<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.5" -->
<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/"
	>

<channel>
	<title>tech . greg milsted . com</title>
	<link>http://tech.gregmilsted.com</link>
	<description>This blog is accompanying my working practice</description>
	<pubDate>Thu, 29 Jul 2010 16:31:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>
	<language>en</language>
			<item>
		<title>recursive diff</title>
		<link>http://tech.gregmilsted.com/?p=78</link>
		<comments>http://tech.gregmilsted.com/?p=78#comments</comments>
		<pubDate>Thu, 29 Jul 2010 16:31:07 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>Learning Linux and Perl</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=78</guid>
		<description><![CDATA[How to see differencies in different folders recursively.
diff -u -r -B -N -s FOLDER1 FOLDER2
[http://linux.devquickref.com/linux-recursive-diff.html]

]]></description>
			<content:encoded><![CDATA[<h3 class="tip_desc">How to see differencies in different folders recursively.</h3>
<p>diff -u -r -B -N -s FOLDER1 FOLDER2</p>
<p>[http://linux.devquickref.com/linux-recursive-diff.html]
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=78</wfw:commentRss>
		</item>
		<item>
		<title>Perl arrays within arrays</title>
		<link>http://tech.gregmilsted.com/?p=77</link>
		<comments>http://tech.gregmilsted.com/?p=77#comments</comments>
		<pubDate>Tue, 09 Mar 2010 16:10:20 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>Learning Linux and Perl</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=77</guid>
		<description><![CDATA[http://www.suite101.com/article.cfm/perl/94552
http://www.misc-perl-info.com/perl-array-length.html
EXAMPLE
# Parts and Programme Codes
@PSUB01 = (&#8217;PSUB01&#8242;,[&#8221;Part A&#8221;,&#8221;Part B&#8221;,&#8221;Part I&#8221;]);
@PSUB02 = (&#8217;PSUB01&#8242;,[&#8221;Part A&#8221;,&#8221;Part B&#8221;]);
@PSUB03 = (&#8217;PSUB03&#8242;,[&#8221;Part A&#8221;,&#8221;Part B&#8221;]);
@PSUB12 = (&#8217;PSUB12&#8242;,[&#8221;Part A&#8221;,&#8221;Part B&#8221;,&#8221;Part I&#8221;]);
@PSUB13 = (&#8217;PSUB13&#8242;,[&#8221;Part B&#8221;,&#8221;Part I&#8221;]);
@programmecodes = (\@PSUB01,\@PSUB02,\@PSUB03,\@PSUB12,\@PSUB13);

]]></description>
			<content:encoded><![CDATA[<p>http://www.suite101.com/article.cfm/perl/94552</p>
<p>http://www.misc-perl-info.com/perl-array-length.html<br />
EXAMPLE</p>
<p># Parts and Programme Codes</p>
<p>@PSUB01 = (&#8217;PSUB01&#8242;,[&#8221;Part A&#8221;,&#8221;Part B&#8221;,&#8221;Part I&#8221;]);<br />
@PSUB02 = (&#8217;PSUB01&#8242;,[&#8221;Part A&#8221;,&#8221;Part B&#8221;]);<br />
@PSUB03 = (&#8217;PSUB03&#8242;,[&#8221;Part A&#8221;,&#8221;Part B&#8221;]);<br />
@PSUB12 = (&#8217;PSUB12&#8242;,[&#8221;Part A&#8221;,&#8221;Part B&#8221;,&#8221;Part I&#8221;]);<br />
@PSUB13 = (&#8217;PSUB13&#8242;,[&#8221;Part B&#8221;,&#8221;Part I&#8221;]);</p>
<p>@programmecodes = (\@PSUB01,\@PSUB02,\@PSUB03,\@PSUB12,\@PSUB13);
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=77</wfw:commentRss>
		</item>
		<item>
		<title>Useful information on getting files (local/urls/etc)</title>
		<link>http://tech.gregmilsted.com/?p=76</link>
		<comments>http://tech.gregmilsted.com/?p=76#comments</comments>
		<pubDate>Wed, 24 Feb 2010 15:52:47 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>Learning Linux and Perl</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=76</guid>
		<description><![CDATA[http://www.php-mysql-tutorial.com/wikis/php-tutorial/reading-a-remote-file-using-php.aspx

]]></description>
			<content:encoded><![CDATA[<p>http://www.php-mysql-tutorial.com/wikis/php-tutorial/reading-a-remote-file-using-php.aspx
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=76</wfw:commentRss>
		</item>
		<item>
		<title>EAccelerator - max your PHP</title>
		<link>http://tech.gregmilsted.com/?p=75</link>
		<comments>http://tech.gregmilsted.com/?p=75#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:05:15 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>Learning Linux and Perl</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=75</guid>
		<description><![CDATA[http://www.geektips.net/105/how-to-install-eaccelerator.html

]]></description>
			<content:encoded><![CDATA[<p>http://www.geektips.net/105/how-to-install-eaccelerator.html
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=75</wfw:commentRss>
		</item>
		<item>
		<title>Setting up Yum on FC2</title>
		<link>http://tech.gregmilsted.com/?p=74</link>
		<comments>http://tech.gregmilsted.com/?p=74#comments</comments>
		<pubDate>Sat, 06 Feb 2010 14:20:58 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>Learning Linux and Perl</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=74</guid>
		<description><![CDATA[http://forums.spry.com/centos-fedora-redhat/201-setting-up-yum-fc2.html

]]></description>
			<content:encoded><![CDATA[<p>http://forums.spry.com/centos-fedora-redhat/201-setting-up-yum-fc2.html
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=74</wfw:commentRss>
		</item>
		<item>
		<title>Upgrade to PHP 5 on Plesk 7.5.4</title>
		<link>http://tech.gregmilsted.com/?p=73</link>
		<comments>http://tech.gregmilsted.com/?p=73#comments</comments>
		<pubDate>Sat, 06 Feb 2010 14:19:53 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>Learning Linux and Perl</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=73</guid>
		<description><![CDATA[http://forums.serverbeach.com/showthread.php?t=6125

]]></description>
			<content:encoded><![CDATA[<p>http://forums.serverbeach.com/showthread.php?t=6125
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=73</wfw:commentRss>
		</item>
		<item>
		<title>Upgrading plesk mysql database</title>
		<link>http://tech.gregmilsted.com/?p=72</link>
		<comments>http://tech.gregmilsted.com/?p=72#comments</comments>
		<pubDate>Wed, 03 Feb 2010 13:26:51 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>Learning Linux and Perl</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=72</guid>
		<description><![CDATA[Great article thanks Jeff:
http://jeffbaier.com/articles/how-to-upgrade-mysql-on-a-server-with-plesk/

]]></description>
			<content:encoded><![CDATA[<p>Great article thanks Jeff:</p>
<p>http://jeffbaier.com/articles/how-to-upgrade-mysql-on-a-server-with-plesk/
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=72</wfw:commentRss>
		</item>
		<item>
		<title>Restoring a MySQL replication slave (linux)</title>
		<link>http://tech.gregmilsted.com/?p=71</link>
		<comments>http://tech.gregmilsted.com/?p=71#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:54:57 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>MySQL</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=71</guid>
		<description><![CDATA[If you find the slave you are using is out of sync too much to skip and ignore you really need to do a rebuild.  Sometimes this isn&#8217;t possible as the database is a live system and cannot be stopped.
Best to open two windows as the next couple of steps need to be done quickly.
On [...]]]></description>
			<content:encoded><![CDATA[<p>If you find the slave you are using is out of sync too much to skip and ignore you really need to do a rebuild.  Sometimes this isn&#8217;t possible as the database is a live system and cannot be stopped.</p>
<p>Best to open two windows as the next couple of steps need to be done quickly.</p>
<p>On the master server login to mysql and type; show master status;</p>
<p>Make a note of the file and position (masterserver-bin.00000001,  123321123)<br />
Stop the mysql service on the slave server, service mysqld stop</p>
<p>Now you need to copy the live database (MYI, etc.) files from the master server to the slave:</p>
<blockquote><p>cd /var/lib/mysql/databasename</p>
<p>scp -pr * 192.168.0.1:/var/lib/mysql/databasename/<br />
(p is to copy permissions and r is to copy recursive just in case)</p></blockquote>
<p>When the copy finishes restart the service on the slave; service mysqld restart</p>
<p>stop slave;</p>
<p>change master to master_log_file=&#8217;servername-bin.0000001&#8242;, master_log_pos=101010101010;</p>
<p>Now start the slave (start slave;) and run `show slave status;` you may have to skip a couple of files (depending on your db size and how quick you were in the first couple of steps)<br />
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; slave start; show slave status;</p>
<p>Repeat the last step until the database reports no duplicate entries (we also had to repair a table or two - easy `repair table tablename;`)
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=71</wfw:commentRss>
		</item>
		<item>
		<title>Deleting incorrectly submitted assignments</title>
		<link>http://tech.gregmilsted.com/?p=70</link>
		<comments>http://tech.gregmilsted.com/?p=70#comments</comments>
		<pubDate>Wed, 27 Jan 2010 10:27:47 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>moodle</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=70</guid>
		<description><![CDATA[Open the submitted assignments grading page and hover over the file that has been submitted
At the bottom left hand corner of your browser it should give you the full url to that file including after the word assignment the assignment id (i.e. 201) and the student id (i.e. 56), e.g. /assignment/201/56/submittedfile.doc
Open the files directory in [...]]]></description>
			<content:encoded><![CDATA[<p>Open the submitted assignments grading page and hover over the file that has been submitted</p>
<p>At the bottom left hand corner of your browser it should give you the full url to that file including after the word assignment the assignment id (i.e. 201) and the student id (i.e. 56), e.g. /assignment/201/56/submittedfile.doc<br />
Open the files directory in a new tab or window and navigate into moddata/assignment/201/56/</p>
<p>Right click on the submitted file and save to desktop (just incase something goes wrong)</p>
<p>Now delete the folder and the file in it (/56/)</p>
<p>There is still a row in the database that says the student has submitted a file so open the database and the assignment_submissions table, search for the assignment id (201) and userid (56)</p>
<p>Delete the row</p>
<p>Go back and log in as the student to check they can now upload a file.
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=70</wfw:commentRss>
		</item>
		<item>
		<title>How to identify the file extension of an uploaded file PHP</title>
		<link>http://tech.gregmilsted.com/?p=69</link>
		<comments>http://tech.gregmilsted.com/?p=69#comments</comments>
		<pubDate>Wed, 11 Nov 2009 13:26:49 +0000</pubDate>
		<dc:creator>gregmilsted</dc:creator>
		
		<category>PHP</category>

		<guid isPermaLink="false">http://tech.gregmilsted.com/?p=69</guid>
		<description><![CDATA[$ext = strtolower(substr(strrchr($file[&#8217;name&#8217;], &#8216;.&#8217;), 1));

]]></description>
			<content:encoded><![CDATA[<p>$ext = strtolower(substr(strrchr($file[&#8217;name&#8217;], &#8216;.&#8217;), 1));
</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.gregmilsted.com/?feed=rss2&amp;p=69</wfw:commentRss>
		</item>
	</channel>
</rss>
