<?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; Information</title>
	<atom:link href="http://dragffy.com/blog/posts/category/information/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>Wed, 27 Jan 2010 14:23:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>Clicking on a GVFS link opens in Firefox</title>
		<link>http://dragffy.com/blog/posts/clicking-on-a-gvfs-link-opens-in-firefox</link>
		<comments>http://dragffy.com/blog/posts/clicking-on-a-gvfs-link-opens-in-firefox#comments</comments>
		<pubDate>Thu, 22 Oct 2009 16:52:30 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Debian]]></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=140</guid>
		<description><![CDATA[For some reason servers that I connected to using FTP  with gnome-vfs would open in Firefox. Odd really.
I fiddled about and eventually developed a filesystem level fix. Just go to  the folder:
~/.gconf/desktop/gnome/url-handlers
And delete the ftp folder!
]]></description>
			<content:encoded><![CDATA[<p>For some reason servers that I connected to using FTP  with gnome-vfs would open in Firefox. Odd really.</p>
<p>I fiddled about and eventually developed a filesystem level fix. Just go to  the folder:<br />
<code>~/.gconf/desktop/gnome/url-handlers</code><br />
And delete the <code>ftp</code> folder!</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/clicking-on-a-gvfs-link-opens-in-firefox/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 you are [...]]]></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 &#8216;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>CodeIgniter 1.7: The URI you submitted has disallowed characters.</title>
		<link>http://dragffy.com/blog/posts/codeigniter-17-the-uri-you-submitted-has-disallowed-characters</link>
		<comments>http://dragffy.com/blog/posts/codeigniter-17-the-uri-you-submitted-has-disallowed-characters#comments</comments>
		<pubDate>Tue, 14 Jul 2009 10:24:17 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=134</guid>
		<description><![CDATA[I was getting the above error from CodeIgniter after urlencoding some base64 encoded binary data and passing it as a URI parameter to CodeIgniter. I looked in the config.php file and found that percent signs were allowed here:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
After some hunting around I found that CodeIgniter is not accepting this in the URI [...]]]></description>
			<content:encoded><![CDATA[<p>I was getting the above error from CodeIgniter after urlencoding some base64 encoded binary data and passing it as a URI parameter to CodeIgniter. I looked in the config.php file and found that percent signs were allowed here:<br />
<code>$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';</code></p>
<p>After some hunting around I found that CodeIgniter is not accepting this in the URI because the actual characters (that are encoded) fall outside the ASCII range. CodeIgniter is actually decoding the characters before testing them. The fix was quite simple, open up <code>libraries/URI.php</code> and go to line 189 where it says:<br />
<code>if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))</code><br />
and change it to:<br />
<code><br />
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))</code></p>
<p>Basically wrapping <code>$str</code> in the <code>urlencode()</code> function.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/codeigniter-17-the-uri-you-submitted-has-disallowed-characters/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>VirtualBox 3 Transparent Background on Ubuntu Jaunty</title>
		<link>http://dragffy.com/blog/posts/virtualbox-3-transparent-background-on-ubuntu-jaunty</link>
		<comments>http://dragffy.com/blog/posts/virtualbox-3-transparent-background-on-ubuntu-jaunty#comments</comments>
		<pubDate>Tue, 30 Jun 2009 15:53:28 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<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=132</guid>
		<description><![CDATA[I upgraded to VirtualBox 3 and then my windows guest went wrong.
First of all, you have make sure the latest version of compiz installed. 
Go to CompizConfigs Settings Manager and look for &#8220;Windows Rules&#8221; under Windows Management category. Enable &#8220;Windows Rules&#8221; and go to &#8220;No ARGB visuals&#8221; use Window Class, click Grab and then click [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded to VirtualBox 3 and then my windows guest went wrong.</p>
<p>First of all, you have make sure the latest version of compiz installed. </p>
<p>Go to CompizConfigs Settings Manager and look for &#8220;Windows Rules&#8221; under Windows Management category. Enable &#8220;Windows Rules&#8221; and go to &#8220;No ARGB visuals&#8221; use Window Class, click Grab and then click in virtualbox window.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/virtualbox-3-transparent-background-on-ubuntu-jaunty/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using APG to generate secure, pronuncable passwords.</title>
		<link>http://dragffy.com/blog/posts/using-apg-to-generate-secure-pronuncable-passwords</link>
		<comments>http://dragffy.com/blog/posts/using-apg-to-generate-secure-pronuncable-passwords#comments</comments>
		<pubDate>Fri, 12 Jun 2009 15:28:20 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=130</guid>
		<description><![CDATA[The following command will generate several passwords with the following properties:

Length of 10 characters
Contain a mixture of upper and lowercase characters
Contain at least 1 number
Completely random most likely not in the dictionary (expect by random luck)
Pronounceable

This makes these passwords easier to remember but very difficult to brute force. They are ideal as passwords for logging [...]]]></description>
			<content:encoded><![CDATA[<p>The following command will generate several passwords with the following properties:</p>
<ul>
<li>Length of 10 characters</li>
<li>Contain a mixture of upper and lowercase characters</li>
<li>Contain at least 1 number</li>
<li>Completely random most likely not in the dictionary (expect by random luck)</li>
<li>Pronounceable</li>
</ul>
<p>This makes these passwords easier to remember but very difficult to brute force. They are ideal as passwords for logging in to machines, servers, routers, etc.</p>
<p><code><br />
$ apg -m 10 -x 10 -a 0 -M NCL -t<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/using-apg-to-generate-secure-pronuncable-passwords/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using SSHFS with Bazaar (Bzr) or Git</title>
		<link>http://dragffy.com/blog/posts/using-sshfs-with-bazaar-bzr-or-git</link>
		<comments>http://dragffy.com/blog/posts/using-sshfs-with-bazaar-bzr-or-git#comments</comments>
		<pubDate>Thu, 04 Jun 2009 11:00:36 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Bazaar]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Revision Control]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=128</guid>
		<description><![CDATA[I use SSHFS to mount remote drives locally. The remote computers don&#8217;t have Bzr installed, and it&#8217;s difficult to get them up to date enough to install the latest Bzr. Therefore, I execute Bzr on my local computer on the mounted filesystem. Using default mount options for SSHFS leads to errors in both Git and [...]]]></description>
			<content:encoded><![CDATA[<p>I use SSHFS to mount remote drives locally. The remote computers don&#8217;t have Bzr installed, and it&#8217;s difficult to get them up to date enough to install the latest Bzr. Therefore, I execute Bzr on my local computer on the mounted filesystem. Using default mount options for SSHFS leads to errors in both Git and Bzr, this is because (I believe) SSHFS doesn&#8217;t directly support file renaming. It is possible to avoid these problems by using the <code>-oworkaround=rename</code> switch with the mount command.</p>
<p>As an example my mount command looks similar to this:<br />
<code>sshfs -oworkaround=rename user@computer1:/var/www /media/computer1</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/using-sshfs-with-bazaar-bzr-or-git/feed</wfw:commentRss>
		<slash:comments>0</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[OS X]]></category>
		<category><![CDATA[Operating System]]></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:

&#60;virtualhost *:80&#62;
   [...]]]></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>Get PHP MySQL  working on Leopard OS X</title>
		<link>http://dragffy.com/blog/posts/get-php-mysql-working-on-leopard-os-x</link>
		<comments>http://dragffy.com/blog/posts/get-php-mysql-working-on-leopard-os-x#comments</comments>
		<pubDate>Sun, 31 May 2009 12:45:06 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=122</guid>
		<description><![CDATA[Installing MySQL on OS X has become infinately easier since you can now download an Apple DMG from the MySQL website which takes care of the fine detail.
However, one thing that changed with Leopard is the socket for Mysql. It moved to /private/tmp, so you may need to configure your php.ini file to point it [...]]]></description>
			<content:encoded><![CDATA[<p>Installing MySQL on OS X has become infinately easier since you can now download an Apple DMG from the MySQL website which takes care of the fine detail.</p>
<p>However, one thing that changed with Leopard is the socket for Mysql. It moved to <code>/private/tmp</code>, so you may need to configure your <code>php.ini</code> file to point it to the new location.</p>
<p>To do so, open the file <code>/private/etc/php.ini</code>, (if no such file exists, then make a copy of <code>/private/etc/php.ini.default</code> and  rename it to <code>php.ini</code>) and edit that.</p>
<p>You have two lines to modify:</p>
<p><code>mysql.default_socket =</code></p>
<p>becomes:</p>
<p><code>mysql.default_socket = /private/tmp/mysql.sock</code></p>
<p>and <code>mysqli.default_socket =</code></p>
<p>becomes:</p>
<p><code>mysqli.default_socket = /private/tmp/mysql.sock</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/get-php-mysql-working-on-leopard-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add items to environment path on OS X Leopard</title>
		<link>http://dragffy.com/blog/posts/add-items-to-environment-path-on-os-x-leopard</link>
		<comments>http://dragffy.com/blog/posts/add-items-to-environment-path-on-os-x-leopard#comments</comments>
		<pubDate>Sun, 31 May 2009 12:39:07 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=119</guid>
		<description><![CDATA[Go to terminal and type:
vim ~/.profile
Assuming you want to add the path /usr/local/bin make .profile look like this:
PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
Separating each item with a colon.
]]></description>
			<content:encoded><![CDATA[<p>Go to terminal and type:<br />
<code>vim ~/.profile</code></p>
<p>Assuming you want to add the path <code>/usr/local/bin</code> make <code>.profile</code> look like this:<br />
<code>PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin</code></p>
<p>Separating each item with a colon.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/add-items-to-environment-path-on-os-x-leopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
