<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dragffy.com &#187; HowTo</title>
	<atom:link href="http://dragffy.com/blog/posts/category/information/howto/feed" rel="self" type="application/rss+xml" />
	<link>http://dragffy.com/blog</link>
	<description>The development, documentation, and blogging domain of Gabriel Dragffy.</description>
	<lastBuildDate>Sun, 29 Apr 2012 11:55:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Effectively repair MySQL Tables</title>
		<link>http://dragffy.com/blog/posts/effectively-repair-mysql-tables</link>
		<comments>http://dragffy.com/blog/posts/effectively-repair-mysql-tables#comments</comments>
		<pubDate>Wed, 27 Jan 2010 14:23:44 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=148</guid>
		<description><![CDATA[$ cd /var/lib/mysql find -type f -name '*.MYI' -exec myisamchk --silent --force --fast --update-state --key_buffer_size=64M --sort_buffer_size=64M --read_buffer_size=1M --write_buffer_size=1M {} \;]]></description>
			<content:encoded><![CDATA[<p><code>$ cd /var/lib/mysql</code></p>
<p><code>find -type f -name '*.MYI' -exec myisamchk --silent --force --fast --update-state --key_buffer_size=64M --sort_buffer_size=64M --read_buffer_size=1M --write_buffer_size=1M {} \;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/effectively-repair-mysql-tables/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xdebug.ini</title>
		<link>http://dragffy.com/blog/posts/xdebug-ini</link>
		<comments>http://dragffy.com/blog/posts/xdebug-ini#comments</comments>
		<pubDate>Wed, 09 Sep 2009 10:58:15 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=136</guid>
		<description><![CDATA[Shamelessly ripped from: http://gggeek.altervista.org/2007/11/26/the-completely-unofficial-xdebugini/ There are just a couple of minor annoyances with the Xdebug PHP debugger really, the first one being the absence of a proper documentation package to be downloaded and read offline. I find well-commented ini files, in the Apache httpd.conf style, the best complement to user manuals and technical references: when [...]]]></description>
			<content:encoded><![CDATA[<p>Shamelessly ripped from: http://gggeek.altervista.org/2007/11/26/the-completely-unofficial-xdebugini/</p>
<p>There are just a couple of minor annoyances with the Xdebug PHP debugger really, the first one being the absence of a proper documentation package to be downloaded and read offline.</p>
<p>I find well-commented ini files, in the Apache httpd.conf style, the best complement to user manuals and technical references: when you are editing the forgotten config of that vetust server that has no web access or even ssh whatsoever, awkwardly sitting on an unstable pile of extinguished hardware in the darkest corner of the server room, they will save you dozens of round trips to go googling for information.</p>
<p>Unfortunately the Xdebug distribution contains no such thing: no comments, no list of ini directives, no ini file at all. But since I am a nice chap, after having carved out such precious jewel, I thought it might be of interest to the community, and without further ado here it is:</p>
<p>[xdebug]</p>
<p>;;;;;;;;;;;;;;;;;;;<br />
; About this file ;<br />
;;;;;;;;;;;;;;;;;;;<br />
;<br />
; built by G. Giunta as a verbatim copy of info from xedbug website on 2007/11/08</p>
<p>; You must uncomment one (and only one) line from the following to load<br />
; the xdebug extension.<br />
zend_extension=&#8221;/usr/lib/php4/xdebug.so&#8221;<br />
;zend_extension_ts=&#8221;/usr/lib/php4/xdebug.so&#8221;<br />
;zend_extension_ts=&#8221;c:\php4\xdebug.dll&#8221;<br />
;zend_extension=&#8221;c:\php4\xdebug.dll&#8221;</p>
<p>; When this setting is set to on, the tracing of function calls will be enabled<br />
; just before the script is run. This makes it possible to trace code in the<br />
; auto_prepend_file.<br />
xdebug.auto_trace=Off</p>
<p>; This setting, defaulting to On, controls whether Xdebug should write the<br />
; filename used in include(), include_once(), require() or require_once() to<br />
; the trace files.<br />
xdebug.collect_includes=On</p>
<p>; This setting, defaulting to 0, controls whether Xdebug should collect the<br />
; parameters passed to functions when a function call is recorded in either the<br />
; function trace or the stack trace.<br />
; The setting defaults to Off because for very large scripts it may use huge<br />
; amounts of memory and therefore make it impossible for the huge script to run.<br />
; You can most safely turn this setting on, but you can expect some problems in<br />
; scripts with a lot of function calls and/or huge data structures as parameters.<br />
; Xdebug 2 will not have this problem with increased memory usage, as it will<br />
; never store this information in memory. Instead it will only be written to disk.<br />
; This means that you need to have a look at the disk usage though.<br />
; This setting can have four different values. For each of the values a different<br />
; amount of information is shown. Below you will see what information each of the<br />
; values provides. See also the introduction of the feature Stack Traces for a<br />
; few screenshots.<br />
; Value Argument Information Shown<br />
; 0 None.<br />
; 1 Type and number of elements (f.e. string(6), array(8)).<br />
; 2 Type and number of elements, with a tool tip for the full information.<br />
; 3 Full variable contents (with the limits respected as set by<br />
; xdebug.var_display_max_children, xdebug.var_display_max_data and<br />
; xdebug.var_display_max_depth.<br />
; 4 Full variable contents and variable name.<br />
xdebug.collect_params=0</p>
<p>; This setting, defaulting to Off, controls whether Xdebug should write the<br />
; return value of function calls to the trace files.<br />
xdebug.collect_return=On</p>
<p>; This setting tells Xdebug to gather information about which variables are<br />
; used in a certain scope. This analysis can be quite slow as Xdebug has to<br />
; reverse engineer PHP&#8217;s opcode arrays. This setting will not record which<br />
; values the different variables have, for that use xdebug.collect_params.<br />
; This setting needs to be enabled only if you wish to use<br />
; xdebug_get_declared_vars().<br />
xdebug.collect_vars=Off</p>
<p>; If this setting is On then stacktraces will be shown by default on an error<br />
; event. You can disable showing stacktraces from your code with xdebug_disable().<br />
; As this is one of the basic functions of Xdebug, it is advisable to leave this<br />
; setting set to &#8216;On&#8217;.<br />
xdebug.default_enable=On</p>
<p>; These seven settings control which data from the superglobals is shown when an<br />
; error situation occurs. Each php.ini setting can consist of a comma seperated<br />
; list of variables from this superglobal to dump, but make sure you do not add<br />
; spaces in this setting. In order to dump the REMOTE_ADDR and the REQUEST_METHOD<br />
; when an error occurs, add this setting: xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD<br />
xdebug.dump.COOKIE=<br />
xdebug.dump.FILES=<br />
xdebug.dump.GET=<br />
xdebug.dump.POST=<br />
xdebug.dump.REQUEST=<br />
xdebug.dump.SERVER=<br />
xdebug.dump.SESSION=</p>
<p>; Controls whether the values of the superglobals as defined by the xdebug.dump.*<br />
; settings whould be shown or not.<br />
xdebug.dump_globals=On</p>
<p>; Controls whether the values of the superglobals should be dumped on all error<br />
; situations (set to Off) or only on the first (set to On).<br />
xdebug.dump_once=On</p>
<p>; If you want to dump undefined values from the superglobals you should set this<br />
; setting to On, otherwise leave it set to Off.<br />
xdebug.dump_undefined=Off</p>
<p>; Controls whether Xdebug should enforce &#8216;extended_info&#8217; mode for the PHP parser;<br />
; this allows Xdebug to do file/line breakpoints with the remote debugger. When<br />
; tracing or profiling scripts you generally want to turn off this option as PHP&#8217;s<br />
; generated oparrays will increase with about a third of the size slowing down<br />
; your scripts. This setting can not be set in your scripts with ini_set(), but<br />
; only in php.ini.<br />
xdebug.extended_info=1</p>
<p>; Introduced in Xdebug 2.1<br />
; This setting determines the format of the links that are made in the display<br />
; of stack traces where file names are used. This allows IDEs to set up a<br />
; link-protocol that makes it possible to go directly to a line and file by<br />
; clicking on the filenames that Xdebug shows in stack traces. An example format<br />
; might look like: myide://%f@%l<br />
; The possible format specifiers are:<br />
; %f the filename<br />
; %l the line number<br />
xdebug.file_link_format=</p>
<p>; Controls which IDE Key Xdebug should pass on to the DBGp debugger handler.<br />
; The default is based on environment settings. First the environment setting<br />
; DBGP_IDEKEY is consulted, then USER and as last USERNAME. The default is set<br />
; to the first environment variable that is found. If none could be found the<br />
; setting has as default &#8221;.<br />
xdebug.idekey=</p>
<p>; This is the base url for the links from the function traces and error message<br />
; to the manual pages of the function from the message. It is advisable to set<br />
; this setting to use the closest mirror.<br />
xdebug.manual_url=http://www.php.net</p>
<p>; Controls the protection mechanism for infinite recursion protection. The value<br />
; of this setting is the maximum level of nested functions that are allowed before<br />
; the script will be aborted.<br />
xdebug.max_nesting_level=100</p>
<p>; Introduced in Xdebug 2.1<br />
; By default Xdebug overloads var_dump() with its own improved version for displaying<br />
; variables when the html_errors php.ini setting is set to 1. In case you do not<br />
; want that, you can set this setting to 0, but check first if it&#8217;s not smarter<br />
; to turn off html_errors.<br />
xdebug.overload_var_dump=On</p>
<p>; When this setting is set to 1, profiler files will not be overwritten when a<br />
; new request would map to the same file (depnding on the xdebug.profiler_output_name setting.<br />
; Instead the file will be appended to with the new profile.<br />
xdebug.profiler_append=0</p>
<p>; Enables Xdebug&#8217;s profiler which creates files in the profile output directory.<br />
; Those files can be read by KCacheGrind to visualize your data. This setting<br />
; can not be set in your script with ini_set().<br />
xdebug.profiler_enable=0</p>
<p>; When this setting is set to 1, you can trigger the generation of profiler<br />
; files by using the XDEBUG_PROFILE GET/POST parameter. This will then write<br />
; the profiler data to defined directory.<br />
xdebug.profiler_enable_trigger=0</p>
<p>; The directory where the profiler output will be written to, make sure that the<br />
; user who the PHP will be running as has write permissions to that directory.<br />
; This setting can not be set in your script with ini_set().<br />
xdebug.profiler_output_dir=/tmp</p>
<p>; This setting determines the name of the file that is used to dump traces into.<br />
; The setting specifies the format with format specifiers, very similar to sprintf()<br />
; and strftime(). There are several format specifiers that can be used to format<br />
; the file name.<br />
; See the xdebug.trace_output_name documentation for the supported specifiers.<br />
xdebug.profiler_output_name=cachegrind.out.%p</p>
<p>; Normally you need to use a specific HTTP GET/POST variable to start remote debugging.<br />
; When this setting is set to &#8216;On&#8217; Xdebug will always attempt to start a remote<br />
; debugging session and try to connect to a client, even if the GET/POST/COOKIE<br />
; variable was not present.<br />
xdebug.remote_autostart=Off</p>
<p>; This switch controls whether Xdebug should try to contact a debug client which<br />
; is listening on the host and port as set with the settings xdebug.remote_host<br />
; and xdebug.remote_port. If a connection can not be established the script will<br />
; just continue as if this setting was Off.<br />
xdebug.remote_enable=Off</p>
<p>; Can be either &#8216;php3&#8242; which selects the old PHP 3 style debugger output, &#8216;gdb&#8217;<br />
; which enables the GDB like debugger interface or &#8216;dbgp&#8217; &#8211; the brand new debugger<br />
; protocol. The DBGp protocol is more widely supported by clients. See more<br />
; information in the introduction for Remote Debugging.<br />
xdebug.remote_handler=dbgp</p>
<p>; Selects the host where the debug client is running, you can either use a host<br />
; name or an IP address.<br />
xdebug.remote_host=localhost</p>
<p>; If set to a value, it is used as filename to a file to which all remote debugger<br />
; communications are logged. The file is always opened in append-mode, and will<br />
; therefore not be overwritten by default. There is no concurrency protection<br />
; available.<br />
xdebug.remote_log=</p>
<p>; Selects when a debug connection is initiated. This setting can have two different values:<br />
; req Xdebug will try to connect to the debug client as soon as the script starts.<br />
; hit Xdebug will only try to connect to the debug client as soon as an error condition occurs.<br />
xdebug.remote_mode=req</p>
<p>; The port to which Xdebug tries to connect on the remote host. Port 9000 is the<br />
; default for both the client and the bundled debugclient. As many clients use<br />
; this port number, it is best to leave this setting unchanged.<br />
xdebug.remote_port=9000</p>
<p>; When this setting is set to 1, Xdebug will show a stack trace whenever an<br />
; exception is raised &#8211; even if this exception is actually caught.<br />
xdebug.show_exception_trace=0</p>
<p>; When this setting is set to something != 0 Xdebug&#8217;s generated stack dumps in<br />
; error situations will also show all variables in the top-most scope. Beware<br />
; that this might generate a lot of information, and is therefore turned off by default.<br />
xdebug.show_local_vars=0</p>
<p>; When this setting is set to something != 0 Xdebug&#8217;s human-readable generated<br />
; trace files will show the difference in memory usage between function calls.<br />
; If Xdebug is configured to generate computer-readable trace files then they<br />
; will always show this information.<br />
xdebug.show_mem_delta=0</p>
<p>; The format of the trace file.<br />
; 0 shows a human readable indented trace file with: time index, memory usage,<br />
; memory delta (if the setting xdebug.show_mem_delta is enabled), level,<br />
; function name, function parameters (if the setting xdebug.collect_params<br />
; is enabled, filename and line number.<br />
; 1 writes a computer readable format which has two different records. There<br />
; are different records for entering a stack frame, and leaving a stack frame<br />
xdebug.trace_format=0</p>
<p>; When set to &#8217;1&#8242; the trace files will be appended to, instead of being overwritten<br />
; in subsequent requests.<br />
xdebug.trace_options=0</p>
<p>; The directory where the tracing files will be written to, make sure that the<br />
; user who the PHP will be running as has write permissions to that directory.<br />
xdebug.trace_output_dir=/tmp</p>
<p>; This setting determines the name of the file that is used to dump traces into.<br />
; The setting specifies the format with format specifiers, very similar to<br />
; sprintf() and strftime(). There are several format specifiers that can be used<br />
; to format the file name. The &#8216;.xt&#8217; extension is always added automatically.<br />
;The possible format specifiers are:<br />
; %c crc32 of the current working directory trace.%c trace.1258863198.xt<br />
; %p pid trace.%p trace.5174.xt<br />
; %r random number trace.%r trace.072db0.xt<br />
; %s script name cachegrind.out.%s cachegrind.out._home_httpd_html_test_xdebug_test_php<br />
; %t timestamp (seconds) trace.%t trace.1179434742.xt<br />
; %u timestamp (microseconds) trace.%u trace.1179434749_642382.xt<br />
; %H $_SERVER['HTTP_HOST'] trace.%H trace.kossu.xt<br />
; %R $_SERVER['REQUEST_URI'] trace.%R trace._test_xdebug_test_php_var=1_var2=2.xt<br />
; %S session_id (from $_COOKIE if set) trace.%S trace.c70c1ec2375af58f74b390bbdd2a679d.xt<br />
; %% literal % trace.%% trace.%%.xt<br />
xdebug.trace_output_name=trace.%c</p>
<p>; Controls the amount of array children and object&#8217;s properties are shown when<br />
; variables are displayed with either xdebug_var_dump(), xdebug.show_local_vars<br />
; or through Function Traces. This setting does not have any influence on the<br />
; number of children that is send to the client through the Remote Debugging feature.<br />
xdebug.var_display_max_children=128</p>
<p>; Controls the maximum string length that is shown when variables are displayed<br />
; with either xdebug_var_dump(), xdebug.show_local_vars or through Function Traces.<br />
; This setting does not have any influence on the amount of data that is send to<br />
; the client through the Remote Debugging feature.<br />
xdebug.var_display_max_data=512</p>
<p>; Controls how many nested levels of array elements and object properties are<br />
; when variables are displayed with either xdebug_var_dump(),<br />
; xdebug.show_local_vars or through Function Traces. This setting does not have<br />
; any influence on the depth of children that is send to the client through the<br />
; Remote Debugging feature.<br />
xdebug.var_display_max_depth=3</p>
<p>For installation, just copy and paste it at the end of your php.ini file (or, if you’re on Debian or similarly configured distros, you can save it as separate file in the php ini directory).</p>
<p>Note1: the zend_extension lines at the top of the file are tailored for a php4 install. Make sure to change them to fit your environment.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/xdebug-ini/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apache Virtual Hosts on OS X Leopard</title>
		<link>http://dragffy.com/blog/posts/apache-virtual-hosts-on-os-x-leopard</link>
		<comments>http://dragffy.com/blog/posts/apache-virtual-hosts-on-os-x-leopard#comments</comments>
		<pubDate>Sun, 31 May 2009 13:42:49 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=124</guid>
		<description><![CDATA[If you develop multiple sites and you need virtual hosting functionality, scroll down to the end of the /private/etc/apache2/httpd.conf file and uncomment the following: # Include /private/etc/apache2/extra/httpd-vhosts.conf Next, you’ll need to setup whatever virtual hosts you have in the virtual hosts file /private/etc/apache2/extra/httpd-vhosts.conf You need to make an entry in the httpd-vhosts.conf file like so: [...]]]></description>
			<content:encoded><![CDATA[<p>If you develop multiple sites and you need virtual hosting functionality, scroll down to the end of the <code>/private/etc/apache2/httpd.conf</code> file and uncomment the following:</p>
<p><code># Include /private/etc/apache2/extra/httpd-vhosts.conf</code></p>
<p>Next, you’ll need to setup whatever virtual hosts you have in the virtual hosts file <code>/private/etc/apache2/extra/httpd-vhosts.conf</code></p>
<p>You need to make an entry in the httpd-vhosts.conf file like so:</p>
<pre>
&lt;virtualhost *:80&gt;
   ServerName beta-site-1.com
   ServerAlias www.beta-site-1.com
   ServerAdmin webmaster@beta-site-1.com
   ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
   CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common

   DocumentRoot "/Library/WebServer/beta-site-1"
   ScriptAlias /cgi-bin/ "/Library/WebServer/beta-site-1/cgi-bin"
   <directory "/Library/WebServer/beta-site-1">
     Options FollowSymLinks MultiViews Includes
     AllowOverride All
     Order allow,deny
     Allow from all
   </directory>
&lt;/virtualhost&gt;
</pre>
<p>The examples provided by Apple  in the vhosts file are slightly incorrect and if you use the CustomLog lines as is you will get errors the following errors if you run: <code>apachectl -t -D DUMP_VHOSTS</code>:<br />
<code>Syntax error on line 40 of /private/etc/apache2/extra/httpd-vhosts.conf:<br />
CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" clause (see docs)</code></p>
<p>This is because<br />
<code>CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log common</code></p>
<p>Should actually read:<br />
<code>CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/apache-virtual-hosts-on-os-x-leopard/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Recursively Delete</title>
		<link>http://dragffy.com/blog/posts/recursively-delete</link>
		<comments>http://dragffy.com/blog/posts/recursively-delete#comments</comments>
		<pubDate>Thu, 29 Jan 2009 17:22:12 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/posts/recursively-delete</guid>
		<description><![CDATA[find ./ -type f -name '*.*bk' -exec rm {} \;]]></description>
			<content:encoded><![CDATA[<p><code>find ./ -type f -name '*.*bk' -exec rm {} \;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/recursively-delete/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursive text find and replace in linux</title>
		<link>http://dragffy.com/blog/posts/recursive-text-find-and-replace-in-linux</link>
		<comments>http://dragffy.com/blog/posts/recursive-text-find-and-replace-in-linux#comments</comments>
		<pubDate>Thu, 29 Jan 2009 16:41:34 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/posts/recursive-text-find-and-replace-in-linux</guid>
		<description><![CDATA[Always forget how to do this: find ./ -type f -exec sed -i.bk ’s/string1/string2/g’ {} \;]]></description>
			<content:encoded><![CDATA[<p>Always forget how to do this:<br />
<code>find ./ -type f -exec sed -i.bk ’s/string1/string2/g’ {} \;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/recursive-text-find-and-replace-in-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eliminating crackling/distorted noise on Intel Mac computers running Ubuntu/Linux</title>
		<link>http://dragffy.com/blog/posts/eliminating-cracklingdistorted-noise-on-intel-mac-computers-running-ubuntulinux</link>
		<comments>http://dragffy.com/blog/posts/eliminating-cracklingdistorted-noise-on-intel-mac-computers-running-ubuntulinux#comments</comments>
		<pubDate>Sat, 17 May 2008 10:40:43 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=53</guid>
		<description><![CDATA[I have a first generation macbook coreduo. The latest version of Ubuntu (Hardy Heron 8.04 LTS) works very well on it with minimal configuration. However, several issues remain. One of which is the poor sound quality. Initially, installing linux-backports-modules did the trick, however after several reboots it became clear that it didn&#8217;t always work. I [...]]]></description>
			<content:encoded><![CDATA[<p>I have a first generation macbook coreduo.</p>
<p>The latest version of Ubuntu (Hardy Heron 8.04 LTS) works very well on it with minimal configuration. However, several issues remain. One of which is the poor sound quality. Initially, installing linux-backports-modules did the trick, however after several reboots it became clear that it didn&#8217;t always work. I came across this <a href="http://ubuntuforums.org/showpost.php?p=3764871&#038;postcount=9">post</a>, which I followed and the results were outstanding. I have completely copied it here, only to make sure there is another copy of this important document. Full credit for this one goes to the original author. Anyway, here&#8217;s what you need to do:</p>
<p>Edit the file <code>/etc/modprobe.d/options</code><br />
<code>$ sudo vim /etc/modprobe.d/options</code></p>
<p>And add the following to the end of the file:<br />
<code>options snd-hda-intel model=[MODEL_BELOW] position_fix=2 probe_mask=1</code></p>
<p>Run the following command:<br />
<code>$ sudo update-initramfs -u</code></p>
<p>Then reboot.</p>
<p>You must select the Intel HDA model that corresponds to your computer:</p>
<p>These are the codes you can use in the above instructions:<br />
<strong>intel-mac-v1</strong>   : Intel Mac Type 1<br />
<strong>intel-mac-v2</strong>   : Intel Mac Type 2<br />
<strong>intel-mac-v3</strong>   : Intel Mac Type 3<br />
<strong>intel-mac-v4</strong>   : Intel Mac Type 4<br />
<strong>intel-mac-v5</strong>   : Intel Mac Type 5<br />
<strong>macmini</strong>        : Intel Mac Mini (equivalent with type 3)<br />
<strong>macbook</strong>        : Intel Mac Book (eq. type 5)<br />
<strong>macbook-pro-v1</strong> : Intel Mac Book Pro 1st generation (eq. type 3)<br />
<strong>macbook-pro</strong>    : Intel Mac Book Pro 2nd generation (eq. type 3)<br />
<strong>imac-intel</strong>     : Intel iMac (eq. type 2)<br />
<strong>imac-intel-20</strong>  : Intel iMac (newer version) (eq. type 3)</p>
<p>For example, I have a Macbook 1st generation, and the only setting that worked was<br />
model=intel-mac-v1. All others just gave me <strong>no</strong> sound at all, including the apparently<br />
obvious macbook and the documented-as-equivalent macmini ones.</p>
<p>If nothing works, you can revert this by deleting the line and performing the rest of the steps.</p>
<p>For BEST sound, if the above works, open a terminal and type:<br />
<code>$ alsamixer</code></p>
<p>And set the <strong>front</strong> and <strong>surround</strong> sliders to their maximum.<br />
It might be necessary to unmute them with the &#8216;M&#8217; key.<br />
Press ESC twice to leave the program.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/eliminating-cracklingdistorted-noise-on-intel-mac-computers-running-ubuntulinux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Netatalk AFP with SSL (encrypted authentication) on Ubuntu Hardy Heron 8.04 LTS Server</title>
		<link>http://dragffy.com/blog/posts/installing-netatalk-afp-with-ssl-encrypted-authentication-on-ubuntu-hardy-heron-804-lts-server</link>
		<comments>http://dragffy.com/blog/posts/installing-netatalk-afp-with-ssl-encrypted-authentication-on-ubuntu-hardy-heron-804-lts-server#comments</comments>
		<pubDate>Mon, 12 May 2008 15:19:21 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=51</guid>
		<description><![CDATA[Installing Netatalk from the repositories means that when you connect using a Mac client you will be warned that you are going to send your password in the clear. Obviously this isn&#8217;t great for security, and being prompted every time you want to connect is annoying. This occurs because Netatalk in the Ubuntu repositories is [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Netatalk from the repositories means that when you connect using a Mac client you will be warned that you are going to send your password in the clear. Obviously this isn&#8217;t great for security, and being prompted every time you want to connect is annoying. This occurs because Netatalk in the Ubuntu repositories is compiled without SSL support (SSL is what handles the encryption).</p>
<p>The key to getting this to work is to get the Netatalk source code and compile it yourself. Don&#8217;t worry, it&#8217;s been done hundreds of times before and if you follow this tutorial closely you should be fine.</p>
<p>The commands written always start with a dollar sign ($), you should not type this, it just indicates the commands should be typed at a standard user prompt in the terminal.</p>
<p>First off it&#8217;s a good idea to switch to your home directory:<br />
<code>$ cd ~</code></p>
<p>Make a new directory to hold the hundreds of small Netatalk files:<br />
<code>$ mkdir netatalk</code></p>
<p>Ensure you have essential development libraries and tools installed:<br />
<code>$ sudo aptitude install libdb4.2-dev libslp-dev autotools-dev devscripts cracklib2-dev dpkg-dev libssl-dev</code></p>
<p>Change in to the newly created directory:<br />
<code>$ cd netatalk</code></p>
<p>Install the netatalk source code:<br />
<code>$ sudo apt-get source netatalk</code></p>
<p>Install all required dependencies for netatalk:<br />
<code>$ sudo apt-get build-dep netatalk</code></p>
<p>A new directory called <code>netatalk-2.0.3</code> should have been created, change in to that directory:<br />
<code>$ cd netatalk-2.0.3</code></p>
<p>Compile Netatalk with the SSL option:<br />
<code>$ DEB_BUILD_OPTIONS=ssl sudo dpkg-buildpackage -us -uc</code></p>
<p>Install the finished product!:<br />
<code>$ sudo debi</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/installing-netatalk-afp-with-ssl-encrypted-authentication-on-ubuntu-hardy-heron-804-lts-server/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Profiling in CodeIgniter</title>
		<link>http://dragffy.com/blog/posts/profiling-in-codeigniter</link>
		<comments>http://dragffy.com/blog/posts/profiling-in-codeigniter#comments</comments>
		<pubDate>Tue, 06 May 2008 14:56:16 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=40</guid>
		<description><![CDATA[Profiling an application is a great way to see how it is performing. CodeIgniter comes with a profiling class, which you can make calls to from your controllers. However, during development I find profiling so helpful that I want it on all my pages, without having to specifically call it each time. I also want [...]]]></description>
			<content:encoded><![CDATA[<p>Profiling an application is a great way to see how it is performing. CodeIgniter comes with a profiling class, which you can make calls to from your controllers. However, during development I find profiling so helpful that I want it on all my pages, without having to specifically call it each time. I also want to be able to deploy my development site to a production server &#8211; making calls to the profiler throughout the controllers means I would need to edit each and every controller to make sure the profiler wasn&#8217;t active on the live server.</p>
<p>After much searching I discovered a better solution. This allows you to add profiling to the bottom of every page (along with its debug info and SQL query info). When you copy the dev site live you just exclude 1 file, and profiling will be removed totally. All you need to do is create a file called <code>MY_Output.php</code> in <code>system/application/libraries</code> that extends the Output core class, with the following contents:<br />
<code><br />
< ?php<br />
# /system/application/libraries/MY_Output.php<br />
if (!defined('BASEPATH')) exit('No direct script access allowed');<br />
class MY_Output extends CI_Output {<br />
    function __construct() {<br />
        parent::__construct();<br />
        $this->enable_profiler( TRUE );<br />
    }<br />
}<br />
?><br />
</code></p>
<p>This will enable profiling output on all your pages for development and debug purposes. When you copy your site to a production server just make sure you don&#8217;t copy MY_Output.php file. I normally use rsync for copying live and just add: <code>--exclude="MY_Output.php"</code> to the rsync command.</p>
<p>The condition to using the name <code>MY_Output.php</code> is that you left the variable <code>$config['subclass_prefix']</code> in config.php as default. This defaults to <code>$config['subclass_prefix'] = 'MY_';</code>, so if you change it you will need to alter the filename of your new class.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/profiling-in-codeigniter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clear the DNS cache in OS X Leopard</title>
		<link>http://dragffy.com/blog/posts/clear-the-dns-cache-in-os-x-leopard</link>
		<comments>http://dragffy.com/blog/posts/clear-the-dns-cache-in-os-x-leopard#comments</comments>
		<pubDate>Tue, 18 Mar 2008 16:35:17 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/posts/clear-the-dns-cache-in-os-x-leopard</guid>
		<description><![CDATA[dscacheutil -flushcache]]></description>
			<content:encoded><![CDATA[<p><code>dscacheutil -flushcache</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/clear-the-dns-cache-in-os-x-leopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent Thunderbird from corrupting IMAP attachments</title>
		<link>http://dragffy.com/blog/posts/prevent-thunderbird-from-corrupting-imap-attachments</link>
		<comments>http://dragffy.com/blog/posts/prevent-thunderbird-from-corrupting-imap-attachments#comments</comments>
		<pubDate>Thu, 13 Mar 2008 09:54:16 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[attachments]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[IMAP]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/posts/prevent-thunderbird-from-corrupting-imap-attachments</guid>
		<description><![CDATA[In the &#8220;about:config&#8221; section of Thunderbird (Tools &#62; Options &#62; Advanced &#62; Config Editor) look for the &#8220;mail.imap.fetch_by_chunks&#8221; and &#8221; mail.server.default.fetch_by_chunks&#8221; values and set them to &#8220;False&#8221;. Mozillazine gives some more information about what this value actually does here]]></description>
			<content:encoded><![CDATA[<p>In the &#8220;about:config&#8221; section of Thunderbird (Tools &gt; Options &gt; Advanced &gt; Config Editor) look for the &#8220;mail.imap.fetch_by_chunks&#8221; and &#8221; mail.server.default.fetch_by_chunks&#8221; values and set them to &#8220;False&#8221;.</p>
<p>Mozillazine gives some more information about what this value actually does <a href="http://kb.mozillazine.org/Entire_message_fetched_when_opening_a_IMAP_message">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/prevent-thunderbird-from-corrupting-imap-attachments/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

