<?xml version="1.0"?>
<rss version="2.0.">
  <channel>
    <title>Advogato blog for mchirico</title>
    <link>http://www.advogato.org/person/mchirico/</link>
    <description>Advogato blog for mchirico</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Fri, 25 Jul 2008 16:44:33 GMT</pubDate>
    <item>
      <pubDate>Thu, 29 May 2008 14:46:03 GMT</pubDate>
      <title>29 May 2008</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=68</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=68</guid>
      <description>&lt;strong&gt;Google App Engine&lt;/strong&gt;&#xD;
&lt;p&gt;&#xD;
Anyone can sign up and &lt;strong&gt;use&lt;/strong&gt; the  &lt;a href="http" ://code.google.com/appengine/&gt;Google App Engine&lt;/a&gt;. It&#xD;
works nicely on Linux.&#xD;
&lt;p&gt;&#xD;
You have to have Python 2.5, and you download their&#xD;
Software Development Kit. The applications that you build&#xD;
are in Python. After testing the application locally, it&#xD;
can be uploaded to Google. Of course, you can also point&#xD;
your own domain name to where the application lives as well,&#xD;
so no one will know that you're using Google. &#xD;
&lt;p&gt;&#xD;
Yeah, they do limit the amount of content to 500MB, which is&#xD;
enough for development. They're talking about increasing the&#xD;
content for a fee.  So, you have plenty of space for&#xD;
development; but, when you land a contract, for your work,&#xD;
you'll have the option to increase the amount of space and&#xD;
pass the expense along to the client. &#xD;
&lt;p&gt;&#xD;
&#xD;
</description>
    </item>
    <item>
      <pubDate>Fri, 25 Jan 2008 03:40:47 GMT</pubDate>
      <title>25 Jan 2008</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=67</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=67</guid>
      <description>&lt;strong&gt;Wikipedia - Trigger Happy Censors?&lt;/strong&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Is it true you cannot link to an article on your own site,&#xD;
even if the&#xD;
content is relevant and helpful? That strikes me as a form of&#xD;
prejudice.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Okay all I wanted to do was link my &lt;a href="http" ://souptonuts.sourceforge.net/readme_sqlite_tutorial.html&gt;SQLite&#xD;
Tutorial&lt;/a&gt; on the Wikipedia SQLite page so that someone&#xD;
could find&#xD;
some useful information.  Careful, that "MY" is a crime.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Apparently, I cannot link it to my own site because it's me&#xD;
doing it -&#xD;
&lt;i&gt;ad hominem&lt;/i&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; I thought the purpose of Wikipedia was to give out&#xD;
information. I'm&#xD;
okay with someone telling the content isn't relevant. That would&#xD;
certainly be a valid reason for not linking it. But, as I&#xD;
understand&#xD;
it, I'm somehow associated with the SQLite project,&#xD;
therefore, I'm not&#xD;
fit to judge the content?&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Anyway, I hope your experiences with Wikipedia are&#xD;
better. I'm&#xD;
not too positive on it. My intend was only to distribute&#xD;
information.&#xD;
Please see for yourself.&#xD;
</description>
    </item>
    <item>
      <pubDate>Sat, 19 Jan 2008 15:25:16 GMT</pubDate>
      <title>19 Jan 2008</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=66</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=66</guid>
      <description>&lt;strong&gt;Poker&lt;/strong&gt;&#xD;
&lt;br&gt;&#xD;
&lt;blockquote&gt;&#xD;
"The Mathematics of Poker", by Bill Chen and Jerrod Ankenman.&#xD;
(2006)&#xD;
&lt;/blockquote&gt;&#xD;
An excellent book on poker especially if you're into&#xD;
programming poker bots.  The book explains the math, leaving&#xD;
no missing steps; yet, these guys know their math (Chen has&#xD;
a  a PhD in Mathematics from Berkeley, and works at a well&#xD;
known Susquehanna International Group, that specializes in&#xD;
financial analysis).  These guys know their poker too. Chen&#xD;
has 2 world series bracelets in a subdivision of hold'em.&#xD;
&lt;br&gt;&#xD;
&lt;br&gt;&#xD;
&lt;strong&gt;Programming Texas Hold'em Bots&lt;/strong&gt;&#xD;
&lt;br&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; If you're interested in programming Java poker bots, you may&#xD;
want to checkout &lt;a href="http" ://www.poker-academy.com/&gt;Poker&#xD;
Academy&lt;/a&gt;. You can plug in your Java coded bots and use&#xD;
these bots to play against other players on line for PAX&#xD;
(poker play money).  &#xD;
&lt;br&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; A quick note, don't be fooled by the&#xD;
term play money - you'll have to earn that money with hard&#xD;
work against other good players. Time is money. It takes&#xD;
time to earn PAX; therefore, PAX is equivalent to money.&#xD;
&lt;br&gt;</description>
    </item>
    <item>
      <pubDate>Fri, 11 Jan 2008 17:00:49 GMT</pubDate>
      <title>11 Jan 2008</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=65</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=65</guid>
      <description>&lt;strong&gt;Recommended Books:&lt;/strong&gt;&#xD;
&lt;br&gt;&lt;br&gt;&#xD;
&lt;i&gt;&#xD;
"Introduction to GCC for GNU Compilers gcc and g++", by Brian&#xD;
Gough, Foreword by Richard M. Stallman. (2004).&#xD;
&lt;/i&gt;&#xD;
&lt;br&gt;&lt;br&gt;&#xD;
This book is a good read with an emphasis on simple but&#xD;
relevant content. The book is published under the GNU Free&#xD;
Documentation License, and copy can be found &lt;a href="http" ://ftp1.sourceforge.net/souptonuts/gccintro.pdf&gt;here&lt;/a&gt;.&#xD;
&lt;br&gt;&lt;br&gt;&#xD;
Information on purchasing a copy can be found at &lt;a href="http" ://www.network-theory.co.uk/gcc/intro/&gt;&#xD;
http://www.network-theory.co.uk/gcc/intro/&lt;/a&gt;. Since part&#xD;
of the purchase price goes to raise money to improve and&#xD;
create more free software and documentation, I purchased a&#xD;
copy to read on the train. The book is small enough to fit&#xD;
inside any cargo pants side pockets.&#xD;
&lt;br&gt;&#xD;
&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; You may also be interested in the following book:&#xD;
&lt;br&gt;&lt;br&gt;&lt;i&gt;&#xD;
"Comparing and Merging Files with GNU diff and patch; for&#xD;
Diffutils 2.8.1 and patch 2.54", by David MacKenzie, Paul&#xD;
Eggert, Richard Stallman. Edited for publication by Brian&#xD;
Gough. (2002).&lt;/i&gt;&#xD;
&lt;br&gt;&lt;br&gt;&#xD;
&lt;br&gt;&#xD;
If the above free download doesn't work, since I'm not sure&#xD;
it will&#xD;
work outside the United States, try the following &lt;a href="http" ://sourceforge.net/project/showfiles.php?group_id=79320&amp;package_id=256696&gt;Souptonuts&#xD;
 &#xD;
downloads&lt;/a&gt;&#xD;
&#xD;
&#xD;
&#xD;
</description>
    </item>
    <item>
      <pubDate>Thu, 30 Nov 2006 11:49:43 GMT</pubDate>
      <title>30 Nov 2006</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=64</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=64</guid>
      <description>Robert Morris of the NSA proposed the following problem: &#xD;
&lt;br&gt;&lt;br&gt;&#xD;
What is the next series of numbers? &lt;p&gt;&#xD;
1 11 21 1211 111221 ...&#xD;
&#xD;
&lt;p&gt; &lt;br&gt; </description>
    </item>
    <item>
      <pubDate>Thu, 26 Oct 2006 10:15:24 GMT</pubDate>
      <title>26 Oct 2006</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=63</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=63</guid>
      <description>&lt;strong&gt;Fedora Core yum Updates Disabled&lt;/strong&gt;&#xD;
&lt;p&gt;&#xD;
It appears that Fedora core yum updating has been disabled.&#xD;
Perhaps this&#xD;
was done to try and minimize the impact on the servers, while&#xD;
users&#xD;
download the new release of Fedora Core 6?&#xD;
&lt;p&gt;&#xD;
&lt;strong&gt;Symptoms&lt;/strong&gt;&#xD;
&#xD;
&lt;p&gt; &lt;pre&gt;&#xD;
# yum -y update&#xD;
Loading "installonlyn" plugin&#xD;
Setting up Update Process&#xD;
Setting up repositories&#xD;
core                                                       &#xD;
         [1/3]&#xD;
Cannot find a valid baseurl for repo: core&#xD;
Error: Cannot find a valid baseurl for repo: core&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&#xD;
&lt;p&gt; &lt;strong&gt;Fix&lt;/strong&gt;&#xD;
&lt;p&gt;&#xD;
Uncomment the baseurl setting. The following was done on my&#xD;
FC5 systems. It makes  backups, using the extension .backup.&#xD;
&lt;pre&gt;&#xD;
cd /etc/yum.repos.d/&#xD;
perl -pi.backup -e "s/#baseurl/baseurl/" *&#xD;
&lt;/pre&gt;&#xD;
&lt;p&gt;&#xD;
Now you should be good to go.&#xD;
&lt;p&gt;&#xD;
</description>
    </item>
    <item>
      <pubDate>Wed, 4 Oct 2006 01:13:05 GMT</pubDate>
      <title>4 Oct 2006</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=62</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=62</guid>
      <description>&lt;strong&gt;&lt;a&#xD;
href=http://www.advogato.org/person/nconway/diary.html?start=30&gt;nconway's&#xD;
problem&lt;/a&gt;&lt;/strong&gt;&#xD;
&lt;p&gt;&#xD;
Well, my guess is S1(w) &amp;gt; S2(w), since with the simple string&#xD;
"aaaa" there are two occurrences of the substring "aaa". The&#xD;
first is from position 0 to position 2. The second is from&#xD;
position&#xD;
1 to position 3. There is overlap.&#xD;
&lt;p&gt;&#xD;
Note it is impossible to have two occurrences of &#xD;
substring "abc"&#xD;
using any 4 characters. Therefore, more substrings of "aaa"&#xD;
can also&#xD;
be found&#xD;
in the 10 character string.&#xD;
&lt;p&gt;&#xD;
</description>
    </item>
    <item>
      <pubDate>Sun, 20 Aug 2006 00:33:47 GMT</pubDate>
      <title>20 Aug 2006</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=61</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=61</guid>
      <description>&lt;cite&gt;The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one.&lt;/cite&gt;&lt;p&gt;   --W. Stekel
</description>
    </item>
    <item>
      <pubDate>Mon, 6 Mar 2006 14:15:11 GMT</pubDate>
      <title>6 Mar 2006</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=60</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=60</guid>
      <description>&lt;strong&gt;How to Trade in Stocks&lt;/strong&gt;&#xD;
&lt;p&gt;&#xD;
It's been said that Jesse Lauriston Livermore was the&#xD;
greatest stock market operator in history - the only&#xD;
operator who ever made and lost four stock market fortunes.&#xD;
 He did it all on a ``small bankroll, a stock ticker and a&#xD;
telephone.''[1]&#xD;
&lt;p&gt;&#xD;
Jesse Livermore stock picking techniques are still&#xD;
applicable today. In fact, if you do a careful read, you'll&#xD;
see that some well-know authors have actually stolen his&#xD;
techniques.  Livermore's techniques  worked well for him,&#xD;
when he followed them.  Unfortunately, he got emotionally&#xD;
wrapped up in the  marketed and departed from his rules. He&#xD;
died by suicide in 1940.&#xD;
&lt;p&gt;&#xD;
&lt;ul&gt;&#xD;
``It is the human frailty with we all possess in some degree&#xD;
that becomes the investor's and speculator's greatest enemy&#xD;
and will eventually, if not safeguarded, bring about his&#xD;
downfall.''[1]&#xD;
&lt;/ul&gt;&#xD;
&lt;p&gt;&#xD;
Livermore had a number of rules: Never by on a tip alone;&#xD;
Stocks reaching new highs tend to go higher; Never trade in&#xD;
stocks under $15. Have an exit strategy before you buy, etc.&#xD;
&lt;p&gt;&#xD;
&lt;strong&gt;Stock Prices&lt;/strong&gt;&#xD;
&lt;p&gt;&#xD;
There's a program &lt;a&#xD;
href=http://sourceforge.net/project/showfiles.php?group_id=79066&amp;package_id=195382&gt;stock.tar.gz&lt;/a&gt;&#xD;
that&#xD;
grabs current stock price data from yahoo finance. Below is&#xD;
an example usage getting the stock price for Redhat. By the&#xD;
way take a look at this price. It's starting to hit new&#xD;
highs, and it volume follows through on the new high it&#xD;
could be a good buy. Oh, first rule: &lt;strong&gt;Never buy on a&#xD;
tip alone&lt;/strong&gt;.&#xD;
&lt;p&gt;&#xD;
&lt;pre&gt;&#xD;
            &lt;strong&gt;$ stock rhat&lt;/strong&gt;&#xD;
          &#xD;
"RHAT",29.01,"3/3/2006","4:00pm",+0.76,28.10,29.28,28.00,3339778&#xD;
&lt;/pre&gt;&#xD;
&lt;p&gt;&#xD;
This program[1] can do multiple stocks and or indexes as&#xD;
well. See the man page on the program for more help. The&#xD;
source is very simple using socket, bind, connect. It can&#xD;
easily be adjusted for scraping other pages, sending mail&#xD;
(you'll have to change the port), or other desired tasks.&#xD;
&lt;p&gt;&#xD;
&lt;strong&gt; Email Alerts&lt;/strong&gt;&#xD;
&lt;p&gt;&#xD;
I use Gmail; but, but it's a custom setup with the local MTA&#xD;
(Postfix) and Fetchmail. The advantage here is being able to&#xD;
run any standard shell scripts for sending out mail, on your&#xD;
home system, where you might not have a dedicated IP address.  &#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;strong&gt;References&lt;/strong&gt;&#xD;
&lt;ul&gt;[1] How to Trade in Stocks: the Livermore Formula for&#xD;
Combining Time Element and Price. By Jesse L. Livermore. &#xD;
Copyright 1940. ISBN: 0-934380-20-1&lt;/ul&gt;&#xD;
&lt;ul&gt;[2] &lt;a&#xD;
href=http://souptonuts.sourceforge.net/postfix_tutorial.html&gt;Gmail&#xD;
on Home Linux Box using Postfix and Fetchmail&lt;/a&gt;. This&#xD;
article details the basic setup.&lt;/ul&gt;&#xD;
&lt;ul&gt;[3] &lt;a&#xD;
href=http://souptonuts.sourceforge.net/postfix_sbr.html&gt;Postfix&#xD;
Second Instance for Sender-based Routing: Multiple Gmail and&#xD;
Comcast Accounts&lt;/a&gt; Technically you could setup all&#xD;
accounts for a small company this way. &lt;/ul&gt;&#xD;
&lt;ul&gt;[4] &lt;a&#xD;
href=http://sourceforge.net/direct-dl/mchirico/souptonuts/stock.tar.gz&gt;stock.tar.gz&lt;/a&gt;&#xD;
Direct download. This is a simple GPL socket, bind, connect,&#xD;
C program.&#xD;
&lt;/ul&gt;</description>
    </item>
    <item>
      <pubDate>Sat, 4 Mar 2006 21:40:09 GMT</pubDate>
      <title>4 Mar 2006</title>
      <link>http://www.advogato.org/person/mchirico/diary.html?start=59</link>
      <guid>http://www.advogato.org/person/mchirico/diary.html?start=59</guid>
      <description>&lt;strong&gt;Xen and FC5&lt;/strong&gt;
&lt;p&gt;
Xen is cooking up nice on Fedora Core 5. I didn't have any
problem installing this on a Dell OptiPlex GX520, Pentium 4 (3.00 GHz), with 1G
of RAM, Broadcom NetXtreme BCM5751 Gigabit Ethernet PCI Express,
Linksys Gigabit Network Adapter (Model No. EG1032,rev 10).
&lt;p&gt;
It was actually only a matter of minutes before I had everything running,
which I think is the best way to learn about Xen. That is, first
have a running system with multiple guest systems. And, for each guest
account have networking functional. One quick note,
it certainly helps if you have 1G of RAM, so that each guest account can use
the minimum default of 256MB. Take a look at the
&lt;a href="http" ://fedoraproject.org/wiki/FedoraXenQuickstartFC5&gt;
FC5 Xen Quick Start Instructions&lt;/a&gt;
for how it's all done.
&lt;p&gt;
What's missing in these instructions is how to ssh into a guest xm and
run kde remotely. I'll detail here what worked for me.

&lt;p&gt; &lt;p&gt;
&lt;br&gt;
&lt;strong&gt;Xen and remote KDE&lt;/strong&gt;
&lt;p&gt;From the computer you are sitting at, with a monitor,keyboard and
KDE or Gnome loaded and running, you'll connect via ssh to the Xen guest
system. But before you can do this, walk through the step 1, with the
computer in front of you.
&lt;ul&gt;&lt;strong&gt;Step 1&lt;/strong&gt;.  Allow magic cookies; otherwise, you may get the
following error:
&lt;pre&gt;
               Xlib: connection to ":1.0" refused by server
               Xlib: No protocol specified

&lt;p&gt; &lt;/pre&gt;
&lt;p&gt;To enable magic cookies from the shell, issue the following commands.
&lt;pre&gt;
   $ MCOOKIE=$(mcookie)
   $ xauth add $(hostname)/unix:1 MIT-MAGIC-COOKIE-1 $MCOOKIE
   $ xauth add localhost/unix:1 MIT-MAGIC-COOKIE-1 $MCOOKIE
&lt;/pre&gt;
&lt;/ul&gt;

&lt;p&gt; &lt;ul&gt;&lt;strong&gt;Step 2&lt;/strong&gt;. Create a new xterm. This will immediate take you to
vt12. To get back to your main KDE session type ctl-alt-F7. To
go back, again, to vt12 type ctl-alt-F12.

&lt;p&gt; &lt;pre&gt;
    $ xinit -- :1 vt12
&lt;/pre&gt;
&lt;/ul&gt;

&lt;p&gt; &lt;ul&gt;&lt;strong&gt;Step 3&lt;/strong&gt;. From vg12 type in the user and domain. The
example below assumes the guest vm is vm0.domain.com, and
the user to login in with is root.
&lt;pre&gt;
    $ ssh -Y -l root vm0.domain.com
&lt;/pre&gt;
&lt;/ul&gt;

&lt;p&gt; &lt;ul&gt;&lt;strong&gt;Step 4&lt;/strong&gt;. Once you're logged into the guest system, all you have
to do is start KDE.
&lt;pre&gt;
    $ startkde
&lt;/pre&gt;
&lt;/ul&gt;
&lt;p&gt;I didn't have to change anything for KDE, but Gnome takes a few tweaks. 
&lt;p&gt;
&lt;p&gt;
&lt;strong&gt;Reference&lt;/strong&gt;
&lt;p&gt;
You may want to reference &lt;a href="http" ://souptonuts.sourceforge.net/how_to_linux_and_open_source.htm &gt;Linux Tips (TIP 195)&lt;/a&gt;
&lt;p&gt;
Now, in my opinion, it's instructive to look at the &lt;a href="http" ://www.fedoraproject.org/wiki/FedoraXenQuickstart&gt;FC4 Xen Quick Start&lt;/a&gt;, and hack away the working Xen configuration. The FC4 documentation goes into the mechanics of the process.
</description>
    </item>
  </channel>
</rss>
