<?xml version="1.0"?>
<rss version="2.0.">
  <channel>
    <title>Advogato blog for robhudson</title>
    <link>http://www.advogato.org/person/robhudson/</link>
    <description>Advogato blog for robhudson</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Sat, 17 May 2008 04:42:39 GMT</pubDate>
    <item>
      <pubDate>Mon, 1 Dec 2003 17:50:48 GMT</pubDate>
      <title>1 Dec 2003</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=31</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=31</guid>
      <description>&lt;b&gt;MySQL tips&lt;/b&gt;

&lt;p&gt; &lt;p&gt;I've been studying recently for the 
&lt;a href="http://www.mysql.com/certification/index.html" &gt;MySQL certification&lt;/a&gt;
test and have discovered a few tricks along the way.  One of my favorites is
the combination of using &lt;em&gt;pager&lt;/em&gt; and &lt;em&gt;vertical output&lt;/em&gt;.

&lt;p&gt; &lt;p&gt;To set your pager to use &lt;em&gt;less&lt;/em&gt;:

&lt;p&gt; &lt;pre&gt;
mysql&amp;gt; pager less
PAGER set to less
&lt;/pre&gt;


&lt;p&gt; &lt;p&gt;Now when you perform a select which returns more rows than rows on your screen,
the pager will allow you to paginate through the results.

&lt;p&gt; &lt;p&gt;To get MySQL to display results vertically instead of in columns horizontally,
end your SQL with "\G" instead of with the semicolon (or "\g")...
&lt;pre&gt;
mysql&amp;gt; SELECT * FROM mails WHERE LENGTH(txt) &amp;lt; 300 lIMIT 300,1\G
*************************** 1. row ***************************
  msg_nro: 3068
     date: 2000-03-01 23:29:50
time_zone: +0200
mail_from: Monty
    reply: monty@no.spam.com
  mail_to: "Thimble Smith" &amp;lt;tim@no.spam.com&amp;gt;
      sbj: UTF-8
      txt: &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; "Thimble" == Thimble Smith writes:

&lt;p&gt; Thimble&amp;gt; Hi.  I think this is a good idea.  Is anyone familiar with UTF-8
Thimble&amp;gt; or Unicode? Otherwise, I'll put this on my TODO list and see what
Thimble&amp;gt; happens.

&lt;p&gt; Yes, please do that.

&lt;p&gt; Regards,
Monty
     file: inbox-jani-1
     hash: 190402944
1 row in set (0.09 sec)
&lt;/pre&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 11 Jun 2003 17:06:41 GMT</pubDate>
      <title>11 Jun 2003</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=30</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=30</guid>
      <description>&lt;b&gt;Hacking Unwanted Marketing&lt;/b&gt;
&lt;p&gt;
I just read a little article on things to do to annoy telemarketers and junk mail senders.  Some were pretty funny and creative so I thought I'd share:

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Return ads with bills:&lt;/b&gt; When a company sends you ads along with your monthly bill, send those same ads back with your check.  Let them throw away their own junk.
&lt;li&gt;&lt;b&gt;Return unwanted applications:&lt;/b&gt; When a credit card company (or other company) sends you those "pre-approved" applications, they often include a return envelope with free postage.  Those envelopes only cost them if they are used.  So rip the application in half, and send it back to them, costing them money.  While you're at it, why not include some extra junk mail and push the weight over an ounce to cost them more!
&lt;li&gt;&lt;b&gt;Hold, please...&lt;/b&gt; When a telemarketer calls and asks for person X, ask them to hold on.  Don't hang up and set the phone down and walk away.  When the phone makes those annoying beeps, you know the telemarketer has hung up and you probably wasted a good minute of their time.&lt;/ul&gt;</description>
    </item>
    <item>
      <pubDate>Mon, 5 Aug 2002 23:28:57 GMT</pubDate>
      <title>5 Aug 2002</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=29</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=29</guid>
      <description>&lt;b&gt;VNC&lt;/b&gt;
&lt;p&gt;
I've got a Linux workstation as my primary box at work, and a Windows computer on my left side.  So, I've got two keyboards and two mice and two monitors.  I was looking for a way to switchbox my keyboard and mouse. Ended up finding &lt;a href="http://www.hubbe.net/~hubbe/x2vnc.html" &gt;x2vnc&lt;/a&gt;.
&lt;p&gt;
Now, I move my mouse to whatever edge I designate, and it starts sending my mouse and keyboard output to my windows computer (with a listening VNC session).  Very slick and very useful.
</description>
    </item>
    <item>
      <pubDate>Mon, 15 Jul 2002 23:52:24 GMT</pubDate>
      <title>15 Jul 2002</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=28</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=28</guid>
      <description>&lt;b&gt;QT &amp;amp; C++ Programming&lt;/b&gt;
&lt;p&gt;
I've been really wanting to learn C++/QT Programming and finally got around to playing with it. A few months ago, I wrote one console based program which was a conversion of a perl script from a friend that analyzed the folding@home output and gave statistics on the work unit times. I successfully converted it and got a refresher course in C++ at the same time.

&lt;p&gt;
Recently, I started playing with QT-designer, a GUI based GUI builder (RAD tool?). My first attempt took 2 numbers and added them together and spit out the result. 

&lt;p&gt;
My 2nd attempt was much more interesting as seen by &lt;a href="http://cogit8.org/rob/images/sshot/sparge.png" &gt;this screen shot&lt;/a&gt;. It is a batch sparge or no sparge homebrewing calculator. I found a spreadsheet that had the calculations layed out and just GUIfied it. It was a fun exercise and should actually be useful. There is some stuff I need to clean up (like having the program not segfault when you want t close it) but other than that it works well. Maybe I'll keep going and make a suite of homebrewing calcs.  &amp;lt;g&amp;gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 17 Mar 2002 17:57:50 GMT</pubDate>
      <title>17 Mar 2002</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=27</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=27</guid>
      <description>&lt;b&gt;Unix-based Wireless Access Point&lt;/b&gt;
&lt;ul&gt;
I'm doing research this morning into how to set one of these
things up.  I just ordered 2 prism based wireless PCMCIA
cards for about 30 USD each.  I've got an ISA to PCMCIA
adaptor.  So I'm building my own WAP soon.  I've got an old
486 I'm thinking of using and will probably go for FreeBSD
as the OS, as I think the prism2 support there is a little
better.  This should be a fun little project and hopefully
not too frustrating.  Found lots of docs this morning on
these, so it looks like I'm in good hands.
&lt;/ul&gt;</description>
    </item>
    <item>
      <pubDate>Tue, 11 Dec 2001 04:25:42 GMT</pubDate>
      <title>11 Dec 2001</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=26</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=26</guid>
      <description>Note to self:
&lt;p&gt;
&lt;ul&gt;&lt;tt&gt;
in Perl: (.*?)&lt;br&gt;
in Vim:&amp;nbsp; \(.\{-}\)
&lt;/tt&gt;&lt;/ul&gt;</description>
    </item>
    <item>
      <pubDate>Mon, 26 Nov 2001 03:35:05 GMT</pubDate>
      <title>26 Nov 2001</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=25</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=25</guid>
      <description>Finishing up &lt;i&gt;The Fellowship of the Ring&lt;/i&gt; and ordered
&lt;i&gt;Secrets and Lies: Digital Security in a Networked
World&lt;/i&gt; by Bruce Schneier.  &lt;i&gt;Applied Cryptography&lt;/i&gt;
would have been way over my head, and I enjoy reading about
cryptography so I thought this would be a good holiday reader.
 Last year I read &lt;i&gt;The Code Book&lt;/i&gt; by Simon Singh (after
&lt;i&gt;Cryptonomicon&lt;/i&gt;) about the same time of year.  That was
a fun book too.
&lt;p&gt;
Been playing with &lt;a
href="http://www.tastybrew.com/"&gt;Tastybrew.com&lt;/a&gt; lately. 
I've finally got most of a working site for homebrewers.  I
recently added a diary entry similar to here.  We'll see if
homebrewers will use it as much as programmers.   If they're
any homebrewers here, check it out.  Feedback is always
welcome.  :)
&lt;p&gt;
Wrote linux.com a while ago after finding this quote on
their site (&lt;a
href="http://www.linux.com/legal.phtml"&gt;here&lt;/a&gt;):
&lt;ul&gt;&lt;i&gt;
Code powering the Linux.com site is available under the GNU
Public License. Please email dev at linux.com for more
information.
&lt;/i&gt;&lt;/ul&gt;
I'll have to try again as I never got a response.  It would
be cool to see some of the tricks they use there, since I'm
mostly coding websites in PHP and MySQL these days.
&lt;p&gt;
Grabbed Galeon 0.12.3 a bit ago after hearing lots of good
things about it.  I compiled it and ran with it about a day
before 1.0 came out.  It's pretty rock solid and blazingly
fast.</description>
    </item>
    <item>
      <pubDate>Mon, 19 Nov 2001 03:35:43 GMT</pubDate>
      <title>19 Nov 2001</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=24</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=24</guid>
      <description>&lt;a href="http://www.advogato.org/person/Mulad/" &gt;Mulad&lt;/a&gt;: About the web/database interface to
mp3s.  Take a look at &lt;a
href="http://www.turnstyle.com/andromeda/"&gt;Andromeda&lt;/a&gt;.  I
haven't used it but did play with it a bit.  It's an all in
one php file (including the images, which are inlined
arrays).  Pretty cool stuff, and it looks really sharp with
themes.  I'd be interested in how it goes b/c I'm thinking
of doing the same thing on my network.</description>
    </item>
    <item>
      <pubDate>Tue, 16 Oct 2001 15:24:44 GMT</pubDate>
      <title>16 Oct 2001</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=23</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=23</guid>
      <description>&lt;b&gt;Bad Joke&lt;/b&gt;
&lt;p&gt;
A friend and I were talking about compilers and such and I
came up with this bad joke.  I still tell it to people,
though...
&lt;p&gt;
&lt;i&gt;Q: What did the compiler say when it ran out of stack
space?&lt;br&gt;
A: I haven't got a char in the world.&lt;/i&gt;</description>
    </item>
    <item>
      <pubDate>Tue, 9 Oct 2001 17:50:46 GMT</pubDate>
      <title>9 Oct 2001</title>
      <link>http://www.advogato.org/person/robhudson/diary.html?start=22</link>
      <guid>http://www.advogato.org/person/robhudson/diary.html?start=22</guid>
      <description>&lt;b&gt;Open Source in the classroom&lt;/b&gt;
&lt;p&gt;
&lt;a href="http://www.advogato.org/person/sej/" &gt;sej&lt;/a&gt; I would love to see a class like you
mentioned.  I've recently had privy to see a closed-source
package that is being sold commercially that was originally
written by a newly graduated CS student.  That software
(C++) is horrible and uses things like a custom built string
class, a home grown binary database library, etc.  Some of
the elements are probably pieces of code he had to write for
a class, no doubt.  While I don't question his skills as a
programmer, I do think that using the string class that
comes with C++ would have been a much better choice.
&lt;p&gt;
I'm sure if students had to take a class like this, they
would 1) no more about the open source world and what's out
there, and 2) understand that code re-use can save lots of
time and headaches.  I wish that curriculum was around when
I was taking classes!</description>
    </item>
  </channel>
</rss>
