<?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>MiguelitoNet &#187; My l337 skillz</title>
	<atom:link href="http://www.miguelito.org/category/my-l337-skillz/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.miguelito.org</link>
	<description>My little corner o' the web where I spout any crap I feel like spouting. If you disagree... either leave, or better yet, comment. Note: All postings on this site are my opinion, and mine alone. They do not reflect the opinions of my employer or any group I might be officially (or unofficially) accociated with. And yes, It really is getting that bad out there.</description>
	<lastBuildDate>Wed, 25 Mar 2009 00:10:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>NX server auth suggestion&#8230; local/passwd auth without allowing passwd auth on public sshd</title>
		<link>http://www.miguelito.org/2008/07/21/nx-server-auth-suggestion-localpasswd-auth-without-allowing-passwd-auth-on-public-sshd/</link>
		<comments>http://www.miguelito.org/2008/07/21/nx-server-auth-suggestion-localpasswd-auth-without-allowing-passwd-auth-on-public-sshd/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 05:41:38 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[Cool programs]]></category>
		<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=102</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>I thought this was pretty simple, but after chatting with a few, apparently not a lot have thought of it.&nbsp; If you want to use NX to connect to a server from the internet, but also want more security on that same host by only allowing known rsa/dsa keys the ability to login, and you don&#8217;t like the nx passworddb option; you can use the following setup:
<ul>
<li>Leave the &#8220;public&#8221; sshd process listening on port 22, only allowing known keys (and don&#8217;t allow root logins IMO).</li>
<li>Setup a 2nd &#8220;local&#8221; sshd process listening on another port.&nbsp; My setup is as follows:</li>
<ul>
<li>Create /etc/ssh/sshd_config_local, in that file there will be 2 differences&#8230;</li>
<li>Port 222</li>
<li>UsePAM yes (or set PasswordAuthentication yes if you don&#8217;t use PAM).</li>
<li>For extra super security, also set: ListenAddress 127.0.0.1</li>
</ul>
<li>Setup another init script (I just copied sshd to sshd_local) and add the following to the line that spawns the sshd process:</li>
<ul>
<li>-f /etc/ssh/sshd_config_local</li>
</ul>
</ul>
<p>Setup your links, run chkconfig, whatever your distribution does, and then start the service (sudo su &#8211; root -c &#8216;/etc/init.d/sshd_local start&#8217;).&nbsp;&nbsp; You should now have another daemon running that looks like:<br />&nbsp;/usr/sbin/sshd -f /etc/ssh/sshd_config_local</p>
<p>The only configs needed for nx (I&#8217;m using the free nomachine server, not freenx, might be slight differences) are (in /usr/NX/etc/server.cfg):
<ul>
<li>SSHDAuthPort to 222</li>
<li>EnablePasswordDB = 0</li>
</ul>
<p>..and that&#8217;s it.&nbsp; Now connections to the server connect to port 22 as user nx using the key that came with the client (or you can setup a custom key&#8230; you figure that out) and then it does the ssh step (to auth/fwd the connection) via basically doing an &#8216;ssh -p 222 -l $USER localhost&#8217; on the server, so it uses your &#8220;local&#8221; sshd copy and passwords work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2008/07/21/nx-server-auth-suggestion-localpasswd-auth-without-allowing-passwd-auth-on-public-sshd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Now that&#8217;s what I call recording time&#8230;</title>
		<link>http://www.miguelito.org/2007/05/21/now-thats-what-i-call-recording-time/</link>
		<comments>http://www.miguelito.org/2007/05/21/now-thats-what-i-call-recording-time/#comments</comments>
		<pubDate>Tue, 22 May 2007 03:16:00 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=72</guid>
		<description><![CDATA[Following the info from the chatter on the web recently about being able to use the eSATA port on the Tivo Series 3, I ordered an Antec MX-1 enclosure and a 750Gig disk and updated mine to 1TB of storage. Kicking it in was rather simple. Here the Tivo is activating the disk during boot: [...]]]></description>
			<content:encoded><![CDATA[<p>Following the info from the chatter on the web recently about being able to use the eSATA port on the Tivo Series 3, I ordered an Antec MX-1 enclosure and a 750Gig disk and updated mine to 1TB of storage.</p>
<p>Kicking it in was rather simple.</p>
<p>Here the Tivo is activating the disk during boot:<br />
<a href=http://www.miguelito.org/gallery/main.php/v/Mikes-albums/album01/TivoS3/CIMG0067.JPG.html><br />
<img alt="tivo_sees_disk.jpg" src="http://www.miguelito.org/images/tivo_sees_disk.jpg" width="384" height="288" /></a><br />
Note the new storage estimates.. w00t:<br />
<a href=http://www.miguelito.org/gallery/main.php/v/Mikes-albums/album01/TivoS3/CIMG0069.JPG.html><br />
<img alt="tivo_new_estimates.jpg" src="http://www.miguelito.org/images/tivo_new_estimates.jpg" width="384" height="288" /></a></p>
<p>Yeah, that&#8217;s 51 DAYS of standard def programming storage.  Wow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2007/05/21/now-thats-what-i-call-recording-time/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IMDB broke WMDB&#8230;. again</title>
		<link>http://www.miguelito.org/2007/02/19/imdb-broke-wmdb-again/</link>
		<comments>http://www.miguelito.org/2007/02/19/imdb-broke-wmdb-again/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 20:20:14 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=71</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>So IMDB has <b>massively</b> changed their layout again.   This broke most of the parsing bits that <a href=http://wuffs-moviedb.sourceforge.net/>WMDB</a> did.</p>
<p>I&#8217;ve put together a <a href=/files/functions.php.diff>Diff against functions.php</a> for fixing these changes.</p>
<p>note that I did remove the $end value from the end of several strpos calls so that it does more parsing of the data then it used to.  Could probably fix orders so that it doesn&#8217;t have to, but it&#8217;s working this way.  I&#8217;m guessing the order of how things appear in the html changed from how it was parsed before.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2007/02/19/imdb-broke-wmdb-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get string from phone for iSync</title>
		<link>http://www.miguelito.org/2006/11/13/get-string-from-phone-for-isync/</link>
		<comments>http://www.miguelito.org/2006/11/13/get-string-from-phone-for-isync/#comments</comments>
		<pubDate>Mon, 13 Nov 2006 17:21:51 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=67</guid>
		<description><![CDATA[Apparently the software update for the Sprint V3m last week changd the string the phone sends, and so my previous post didn&#8217;t work for everyone. In fact, I tried re-doing my steps again to make sure, and found I couldn&#8217;t add back my own phone anymore because I&#8217;d updated the software (so if it was [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently the software update for the Sprint V3m last week changd the string the phone sends, and so my <a href="http://www.miguelito.org/mig-archives/000274.html">previous post</a> didn&#8217;t work for everyone.  In fact, I tried re-doing my steps again to make sure, and found I couldn&#8217;t add back my own phone anymore because I&#8217;d updated the software (so if it was added to iSync before the update, iSync continued to work even with the updated string).</p>
<p>For those that haven&#8217;t seen, the new string is:<br />
&lt;string&gt;Motorola CE, Copyright 2000+Motorola V3m-Sprint Phone&lt;/string&gt;</p>
<p>I wrote up a quick shell script that will help you get the string from any V3* razr now (and change the grep for v3 to anything else, like k1 to get other model&#8217;s strings).</p>
<p>Script is <a href="/files/getbtstring.sh">getbtstring.sh</a> For those not all that unix/Terminal savy.. save to your home directory, open a terminal, run:<br />
chmod +x ./getbtstring.sh<br />
./getbtstring.sh</p>
<p>I used sudo to do the few things that require root access, so just type in your password and it should work as is&#8230; it&#8217;ll pause and tell you to open iSync and try to add the phone, after you get the &#8220;iSync does not support his phone&#8221; hit return in the terminal, and it&#8217;ll print out what the string should likely be.  it&#8217;ll also print out the raw data that you can share with me or others out there if the &lt;string&gt; bit doesn&#8217;t work.</p>
<p>For the REALLY poor terminal people.. you can update the file with the following steps:<br />
(Note that \n means hit return)<br />
1. Save the MetaClasses.plist file with the proper string in your homedir as MetaClasses.plist<br />
2. run: vim /Applications/iSync.app/Contents/PlugIns/ApplePhoneConduit.syncdevice/Contents/PlugIns/PhoneModelsSync.phoneplugin/Contents/Resources/MetaClasses.plist<br />
3. Press the &#8216;j&#8217; key 3 times and the cursor should be on the first &lt;dict&gt; in the file&#8230;<br />
4. Press the &#8216;o&#8217; key and you should see &#8220;&#8211; INSERT &#8211;&#8221; on the bottom of the terminal.<br />
5. Press the &#8216;esc&#8217; key and the &#8220;&#8211; INSERT &#8211;&#8221; should go away.<br />
6. Press the following keys in order: :set noai\n<br />
7. Press the following keys in order: :r /Users/&lt;your username&gt;/MetaClasses.plist<br />
\n<br />
You should now see the updated V3m part added to the file.<br />
8. Press the following keys in order: :wq\n<br />
The file should now have saved and quit.</p>
<p>In #7 above, replace &lt;your username&gt; with your username on the mac&#8230; if you&#8217;re not sure what it is, on the terminal command line, type id and hit return.. it&#8217;ll show your name.. mine is mmarion, id for me shows:<br />
uid=501(mmarion) gid=501(mmarion) groups=501(mmarion), 81(appserveradm), 79(appserverusr), 80(admin)</p>
<p>You might need to reboot now (or try killing the SyncServer process if you know how).. open iSync again and try adding the phone again.</p>
<p>Update (11/16/2006 2:32PM): Oops.. guess I can&#8217;t link inside comments&#8230; <a href="/files/getbtstring2.sh">here&#8217;s the getbtstring2.sh file</a> for people.</p>
<p>Update (9/27/2008): Anyone that asked about the script with Leopard&#8230; download the script again (<a href=/files/getbtstring.sh>getbtstring.sh</a>) and give it another shot.  Unfortunately I can&#8217;t really test it because I have completely downed the Apple Kool-aid and got an iPhone 3G a month or so ago.. and can&#8217;t find the RAZR.. I know it&#8217;s still around here somewhere, but I&#8217;m not sure where. :-/   If it doesn&#8217;t work, <a href="mailto:mignet@miguelto.org?Subject: Updated getbtstring.sh output">Mail me</a> the /tmp/blued.trace file the script outputs and I&#8217;ll see if I can get how it&#8217;s dumping the info from dtruss.  It should be in there.. just might be different.</p>
<p>Update (minutes after last): Apparently <a href=http://www.apple.com/macosx/features/isync/>Apple supports the V3m now</a> so the above is likely unecessary anymore.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2006/11/13/get-string-from-phone-for-isync/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Getting iSync to work with a new Sprint Motorla RAZR V3m</title>
		<link>http://www.miguelito.org/2006/11/08/getting-isync-to-work-with-a-new-sprint-motorla-razr-v3m/</link>
		<comments>http://www.miguelito.org/2006/11/08/getting-isync-to-work-with-a-new-sprint-motorla-razr-v3m/#comments</comments>
		<pubDate>Wed, 08 Nov 2006 20:31:25 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=66</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><H2> [ Listening: <strong>Finally Woken</strong> from the album "Finally Woken" by <a href="http://www.google.com/search?q=%22Jem%22">Jem</a> ] </H2></p>
<p>So I exchanged my new Samsung A900 in for a RAZR, in the hopes of using iSync to sync my calendar and address books over bluetooth.   Wasn&#8217;t too happy to find that iSync gave the &#8220;Device is not supported by iSync&#8221; message when I tried to add the device.  I however, am not quick to give up on tech things like this and figured I might be able to get it working myself.  I saw hits on the net of people using V3m phone from other carriers, often requiring direct editing of files in the iSync.app tree itself.</p>
<p>Basing changes on <a href=http://www.howardforums.com/archive/topic/1015267-1.html+isync+gmi+gmm+v3m&#038;hl=en&#038;gl=us&#038;ct=clnk&#038;cd=1&#038;client=firefox-a>this thread about the KRZR K1m</a> I changed the MetaClasses.plist file on my MacBookPro&#8230; but still couldn&#8217;t get iSync to recognize the device.</p>
<p>I figured that the strings used to recognize the device were likely wrong, and needed to figure out my phone&#8217;s strings&#8230; to do this, I used the ktrace and kdump commands to trace the blued process on the mac when trying to add the phone again.  Aha.. I found things that looked helpful:</p>
<pre>
manzana:~ mmarion$ egrep 'GMM:|GMI:' blued.txt | grep -i motorola | sort -u
+GMI: Motorola CE, Copyright 2000\r
+GMM: Motorola NC-V3m Phone\r
</pre>
<p>Now we&#8217;re getting somewhere&#8230; (don&#8217;t ask me what gmi and gmm are.. I don&#8217;t know, I just looked for things that were in the MetaClasses.plist file and might be related).  Anyone else that has a newer phone/carrier&#8217;s model that isn&#8217;t being recognized yet.. this will probably work for you too (finding the strings your phone is using that is.. not the exact strings I found).</p>
<p>So I added a new &lt;string> line like so:</p>
<pre>
&lt;string>Motorola CE, Copyright 2000+Motorola NC-V3m Phone&lt;/string>
</pre>
<p>Killed and restarted iSync.. and voila, my phone was added.</p>
<p>Now I can sync iCal and my Address book.</p>
<p>Note.. it&#8217;s not perfect, after sleeping the MBP, the phone isn&#8217;t seen on bluetooth sometimes.. I just open the bluetooth &#8220;browse device&#8221; bit to kick in a connection between the MBP and phone, and then iSync works.<br />
The sync also fails sometimes when deleting calendar events.. so I just blow the whole calendar away (which is pretty simple&#8230; there&#8217;s a quick &#8220;deleted all events&#8221; choice under options) and sync.  That might not work for people that really want 2 way syncing to work, I just need my phone to have a copy of what my computer has (from exchange at work).</p>
<p>Some info:<br />
The path to the MetaClasses.plist file in question is:<br />
$ pwd<br />
/Applications/iSync.app/Contents/PlugIns/ApplePhoneConduit.syncdevice/Contents/PlugIns/PhoneModelsSync.phoneplugin<br />/Contents/Resources<br />
Remember that one&#8230; <img src='http://www.miguelito.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve put a copy of the section I added to the MetaClasses.plist file here: <a href="http://www.miguelito.org/MetaClasses.plist">MetaClasses.plist</a></p>
<p>Update:  Oops.. I forgot to add, for some reason the calendar bits sync ok, except for the location of the meeting.. trying to figure that one out still.</p>
<p>Update (Nov 15, 12:45): People have asked for my full MetaClasses.plist file so <a href=/files/MetaClassesFull.plist>here</a> it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2006/11/08/getting-isync-to-work-with-a-new-sprint-motorla-razr-v3m/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Read in a sig file in horde/imp</title>
		<link>http://www.miguelito.org/2006/08/19/read-in-a-sig-file-in-hordeimp/</link>
		<comments>http://www.miguelito.org/2006/08/19/read-in-a-sig-file-in-hordeimp/#comments</comments>
		<pubDate>Sat, 19 Aug 2006 19:27:34 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=63</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><H2> [ Listening: <strong>Gina Escapes</strong> from the album "Battlestar Galactica: Season 2" by <a href="http://www.google.com/search?q=%22Bear McCreary%22">Bear McCreary</a> ] </H2></p>
<p>I&#8217;ve had a cron job that randomly updates my .signature file on my unix systems every 5 minutes for years now and I really wanted to have the same kind of random signatures in IMP as well.  So I made a very simple change to the imp.php file (in &lt;horde>/imp/lib/Identity) that allows you to read in a file rather then only read the signature that you&#8217;ve saved in the database.  Syntax is very easy.. set your signature in the horde prefrences to FILE:&lt;filename> like FILE:/home/mmarion/.signature and this small bit I added will read in that file instead of printing out the value set in the database.</p>
<p>Patch is simple, download <a href=/files/imp.php.diff>here</a> and here&#8217;s how it looks:</p>
<pre>
--- imp.php.orig        2006-08-19 11:53:24.000000000 -0700
+++ imp.php     2006-08-19 11:53:50.000000000 -0700
@@ -455,6 +455,15 @@

$this->_signatures[$ident] = $val;

+       if (preg_match('/FILE:/',$val)) {
+                       $sigFileSplit=preg_split('/:/',$val);
+                       $sigFile=$sigFileSplit[1];
+                       $sigFileSize=filesize($sigFile);
+                       $sigFilePtr = @fopen($sigFile, 'r');
+                       $val = "-- \n" . fread($sigFilePtr, $sigFileSize);
+                       fclose($sigFilePtr);
+       }
+
return $val;
}
</pre>
<p>Obviously I didn&#8217;t add any kind of error checking for FILE: without a valid file, or for empty files, or files that can&#8217;t be read.. but eh.. works for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2006/08/19/read-in-a-sig-file-in-hordeimp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>We are Grey. We stand between the darkness and the light.</title>
		<link>http://www.miguelito.org/2006/03/25/we-are-grey-we-stand-between-the-darkness-and-the-light/</link>
		<comments>http://www.miguelito.org/2006/03/25/we-are-grey-we-stand-between-the-darkness-and-the-light/#comments</comments>
		<pubDate>Sun, 26 Mar 2006 01:49:07 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=88</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<h2> [ Viewing: <img src="http://ec1.images-amazon.com/images/P/B0000DGBEY.01._SCTHUMBZZZ_.jpg" /><a href="http://www.amazon.com/exec/obidos/redirect?tag=0DEQ5DFC7SBKB444BT82%26link_code=xm2%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=B0000DGBEY%2526tag=0DEQ5DFC7SBKB444BT82%2526lcode=xm2%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/B0000DGBEY%25253FSubscriptionId=02ZH6J1W0649DTNS6002">&#8220;Babylon 5 - The Complete Fourth Season&#8221; (Tony Dow)</a> ] </H2></p>
<p>Yeah, I&#8217;ve been running through B5 again, and have it on the brain.. watching season 4 now&#8230; but&#8230;</p>
<p>I finally had a chance to take a real crack at installing <a href=http://projects.puremagic.com/greylisting/>Grey-Listing</a> on our colo box (which also serves as MX for several of us), and holy crap does it make a difference.  I got it up and running at 2:45PM on Thurs (Mar 23rd, 2006) and already it&#8217;s had a massive effect.  In just over 48 hours now, the database the program uses already has 4037 records of mails that never properly tried to resend again (most likely spam) vs 365 mails that have properly resent after the initial delay (most likely not spam).  Just goes to show that most spam is just blasted out from hosts that are hacked or setup just for spamming and they don&#8217;t want to deal with the bandwidth required to retry.</p>
<p>On top of that, I found I had a bug in spamassassin that was allowing it to pass quite a few spams into my inbox (and my sister&#8217;s as well) because the mail was never actually scanned properly.  Only when I went to test a mail by hand to see why it hadn&#8217;t been flagged as spam (by cat&#8217;ing it into spamc myself) did I see the error, then I grep&#8217;d a ton out of the mail logs.  The error was:<br />
Mar 23 23:46:07 www spamd[15003]: error: Can&#8217;t locate object method &#8220;new&#8221; via package &#8220;Net::DNS::RR::TXT&#8221; at /usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux/Net/DNS/RR.pm line 240._ , continuing</p>
<p>I looked on google and saw mention of updating that pkg, which I did. It had no effect.  Then I started to noticed that the above has version 5.8.5 in the path, and I&#8217;d updated perl to 5.8.7 previously (back in Jan).  Turns out the spamd process had been running for months&#8230; well back into 2005.  So a quick restart of the daemon, now using the updated perl (and modules) and it fixed the problem.  So spamassassin is catching more mails, which, coupled with grey-listing, has dropped spam down to almost nothing.  I used to get 50+ spams in my inbox a day (on top of what spamassassin filtered out) and in the last 2 days I&#8217;ve had 2!</p>
<p>I even setup a cron job to graph the number of filtered spam vs inbox (vs 2 lists I&#8217;m on) <a href=http://www.miguelito.org/spam-stats/>here</a>.  Should be interesting to see how low the spam levels stay over the next few weeks.  I notice that I&#8217;m still getting some spam, but spamassassin is filtering off so much more.  Some of that is stuff that I signed up for long ago and forgot, or that I was signed up automatically for by using some website&#8230; working on getting off those lists as well.</p>
<p>Man it&#8217;s nice to have mailboxes that are more manageable again.</p>
<p>The quote from B5 is really fitting though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2006/03/25/we-are-grey-we-stand-between-the-darkness-and-the-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Patch to Wuff&#8217;s Movie DB to track borrowers</title>
		<link>http://www.miguelito.org/2005/11/16/patch-to-wuffs-movie-db-to-track-borrowers/</link>
		<comments>http://www.miguelito.org/2005/11/16/patch-to-wuffs-movie-db-to-track-borrowers/#comments</comments>
		<pubDate>Thu, 17 Nov 2005 06:06:53 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=80</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<h2>[ Music: <strong>Disappearing World</strong> from the album &#8220;Life In Slow Motion&#8221; by <a href="http://www.google.com/search?q=%22David Gray%22">David Gray</a> ]</h2>
<p>I coded this ages ago, but noticed a few queries for it in the feature request page for WMDB.  So here&#8217;s a quick bit on it..</p>
<p>Fairly simple, adds a borrowers bit similar to type, language, etc.  Can do simple searches on what someone has borrowed, etc.  I also added it in the base listing on the main display page so it&#8217;s clear up-front to friends or family if something new is already borrowed.</p>
<p>Here&#8217;s a diff <a href="/stuff/WMDB_2.02-borrowers_patch.diff">patch</a> you can download and patch against the latest 2.02 base.</p>
<p>Any problems?  lemme know..</p>
<p>BTW, I saw the other request for ability to send a reminder email to borrowers.. shouldn&#8217;t be too hard to implement that, but I don&#8217;t have time right now.</p>
<p>Update: I guess I should explain for those that are wondering what the hell Wuffs Movie DB is&#8230; it&#8217;s the software I&#8217;m using to catalog my <a href=/DVD2>DVD collection</a> online.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2005/11/16/patch-to-wuffs-movie-db-to-track-borrowers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yes&#8230; I am a gadget geek.</title>
		<link>http://www.miguelito.org/2005/07/28/yes-i-am-a-gadget-geek/</link>
		<comments>http://www.miguelito.org/2005/07/28/yes-i-am-a-gadget-geek/#comments</comments>
		<pubDate>Thu, 28 Jul 2005 22:36:40 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=34</guid>
		<description><![CDATA[Went online and downloaded the new 2.00 firmware for my PSP before it was available via the normal online upgrade link.. not even sure if it&#8217;s available there yet. You can see a (very blurry) snap of the new menu entry for the browser: And here I&#8217;m viewing my site: Pretty cool, but entering text [...]]]></description>
			<content:encoded><![CDATA[<p>Went online and downloaded the  new 2.00 firmware for my PSP before it was available via the normal online upgrade link.. not even sure if it&#8217;s available there yet.</p>
<p>You can see a (very blurry) snap of the new menu entry for the browser:</p>
<p><a href="http://www.miguelito.org/images/Photo_072805_001.jpg" onclick="window.open('http://www.miguelito.org/images/Photo_072805_001.jpg','popup','width=640,height=480,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://www.miguelito.org/images/Photo_072805_001-tm.jpg" height="100" width="133" border="1" hspace="4" vspace="4" alt="Photo_072805_001" title="Photo_072805_001" /></a></p>
<p>And here I&#8217;m viewing my site:</p>
<p><a href="http://www.miguelito.org/images/Photo_072805_002.jpg" onclick="window.open('http://www.miguelito.org/images/Photo_072805_002.jpg','popup','width=640,height=480,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://www.miguelito.org/images/Photo_072805_002-tm.jpg" height="100" width="133" border="1" hspace="4" vspace="4" alt="Photo_072805_002" title="Photo_072805_002" /></a></p>
<p>Pretty cool, but entering text is way too slow.</p>
<p>Apache logs for the browser hits look like so..</p>
<p>192.168.1.117 &#8211; - [27/Jul/2005:17:50:41 -0700] &#8220;GET /styles-site.css HTTP/1.1&#8221; 200 4160 &#8220;http://miguelito.org/&#8221; &#8220;Mozilla/4.0 (PSP (PlayStation Portable); 2.00)&#8221;<br />
192.168.1.117 &#8211; - [28/Jul/2005:01:42:41 -0700] &#8220;GET /styles-site.css HTTP/1.1&#8221; 200 4160 &#8220;http://miguelito.org/&#8221; &#8220;Mozilla/4.0 (PSP (PlayStation Portable); 2.00)&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2005/07/28/yes-i-am-a-gadget-geek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screw the referer spammers&#8230;.</title>
		<link>http://www.miguelito.org/2005/05/16/screw-the-referer-spammers/</link>
		<comments>http://www.miguelito.org/2005/05/16/screw-the-referer-spammers/#comments</comments>
		<pubDate>Tue, 17 May 2005 06:17:36 +0000</pubDate>
		<dc:creator>Miguelito</dc:creator>
				<category><![CDATA[My l337 skillz]]></category>

		<guid isPermaLink="false">http://webdev.miguelito.org/?p=17</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>So, because of what I talked about in my [previous http://www.miguelito.org/mig-archives/000213.html post] I&#8217;ve edited awstats a little and added in my own referer URL checker&#8230; so ha!</p>
<p>Output from awstats shows this now:</p>
<p>www httpd {566}$ /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.miguelito.org<br />
Update for config &#8220;/etc/awstats/awstats.www.miguelito.org.conf&#8221;<br />
With data in log file &#8220;/var/log/httpd/access_log&#8221;&#8230;<br />
Phase 1 : First bypass old records, searching new record&#8230;<br />
Direct access after last parsed record (after line 5230)<br />
<My new stuff><br />
CheckReferer called with Referer URL: http://www.ua-princeton.com/<br />
Rejecting Refer URL http://www.ua-princeton.com/ base on hit count of 106<br />
Warning: awstats has detected that some hosts names were already<br />
<End of my new stuff><br />
resolved in your logfile /var/log/httpd/access_log.<br />
If DNS lookup was already made by the logger (web server), you should change your setup DNSLookup=1 into DNSLookup=0 to increase awstats speed.<br />
Jumped lines in file: 5230<br />
Found 5230 already parsed records.<br />
Parsed lines in file: 38<br />
Found 27 dropped records,<br />
Found 1 corrupted records,<br />
Found 0 old records,<br />
Found 10 new qualified records.</p>
<p>If I get any requests, or just have the time to make some diffs soon.. I&#8217;ll post the code for download here for anyone that wants it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miguelito.org/2005/05/16/screw-the-referer-spammers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

