President And CEO Of An International Software Company....

by Rob 20. December 2011 12:17

Well, not exactly.  Still, I had all but forgotten about my silly fishbot program I wrote a few years back and then put online last year.  On the one hand, it's a trival application that I threw together for my own personal use.  On the other hand, it's kind of cool to think that people all over the world are actually using something I wrote myself.  

This chart shows the traffic the site recieves from people who have run the application three times or more.  I figure, if you run the darn thing for the forth time, you must find it useful (and so I spam you with ads).

 

That's 93 different countries and some 2500 unique users over the past six months - if we assume it's all legitamate traffic.  In terms of income - I'm sitting around the 75 cents per hour of work.  But it was fun nonetheless.

Tags:
Categories:

Checking Gmail Messages With C#

by Rob 11. December 2011 00:06

 

I used OpenPop.NET for the first time yesterday.  I highly recommend it; it's free, open-source, really simple and it seems to work.

    List<Message> myMail = FetchAllMessages("pop.gmail.com", 995, true, "MyEmail@gmail.com", "mysupersecretpasswordshhhhh!");
    public static List<Message> FetchAllMessages(string hostname, int port, bool useSsl, string username, string password)
    {
        // The client disconnects from the server when being disposed
        using (Pop3Client client = new Pop3Client())
        {
            // Connect to the server
            client.Connect(hostname, port, useSsl);

            // Authenticate ourselves towards the server
            client.Authenticate(username, password);

            // Get the number of messages in the inbox
            int messageCount = client.GetMessageCount();

            // We want to download all messages
            List<Message> allMessages = new List<Message>(messageCount);

            // Messages are numbered in the interval: [1, messageCount]
            // Ergo: message numbers are 1-based.
            // Most servers give the latest message the highest number
            for (int i = messageCount; i > 0; i--)
            {
                allMessages.Add(client.GetMessage(i));
            }

            // Now return the fetched messages
            return allMessages;
        }
    }
Tags: , ,
Categories:

There, I Fixed It!

by Rob 10. December 2011 11:01

I don't consider myself 'cheap'...but I do take a certain satisfaction in achieving a particular goal efficiently (and sometimes that appears the same as cheap.  But whatever...)  For example....

During the first day in the apartment; the landlord pointed to a phone-like device on the wall and said, 'That is the intercomm'.  Fair enough....at the building's main door there is a series of buttons you can press to 'buzz' the alarm/phone in a given apartment.  It's pretty much exactly what I remember seeing in countless buildings in the United States.

It wasn't until some poor guy looking for the bed & breakfast next door rang the apartment at 2am by mistake, did I realize there was no way to turn it off (I also feel bad for the poor guy who accidently pressed the wrong button and was greeted by an angry, half-dressed, barefoot, yelling American...but that's another story).  The second time it happened (only a week or two later, but a different person) it was time to take slightly more drastic measures....

 

The new and improved, 'Silent Buzzer' resolves the noise problem


A hard 'slap and pull' and I had discovered the 'silent mode' previously undocumented on the intercom system.  Arguably, the only down side to this approach is that it worked exactly the same as having no intercom system at all.  Leaving it broken wasn't too bad of an idea, but I like to get the occassional delivery (so long as it's not at 2am).  I took a quick look online to see what it would cost to replace the whole unit with one that has an 'off' switch.  Not cheap.  So, off I went, in search of a switch.  And this is what I came up with....for less than 1 euro.

 

Left: Off position
Right:  On position 

 

I think it's a fix worthy of an entry on There, I Fixed It

Tags:
Categories: