David Seruyange's Radio Weblog
Tidbits for developers and the interested...

David-ism
Watu
Vicariously
Photo Blogs
Form, Function
Write, Think
Web People
Coders
Feel Good


Subscribe to "David Seruyange's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

Home (all entries)  | Technie  | Prattle (personal stuff)  | Books  | Snippets  | WhiteBox


Tuesday, July 20, 2004
 

Good Media

The Seattle Post-Intelligencer looks to be an excellent paper.  Their resident op-ed cartoonist, David Horsey1, is both hilarious and free. Warning to my Republican friends, his humor is a part of that Big Leftist Media politically correct thing2.

I found the Empire Rising series particularly funny. Or this.

Take heart, dear Republicans!  You can find a haven at the Wall Street Journal's op-ed. You have William Safire and David Brooks at the New York Times. I know you are constantly told that the world is ending and the Big Media Conspiracy is who you should blame but hopefully these small morsels can keep you going, despite the adversity of congressional majorities and a presidency.

posted in [home], [snippets]

1Horsey won a Pulitzer in 2003 for his work.
2Take the time to look at older work, you'll find his barbs point both left and right.


10:23:01 PM    comment []

Google Games

This morning I happened upon the Google Weblog.  Apparently they've put up the following billboard on a busy northern California freeway:

Apparently those gnomes know exactly how my mind works. That's a carrot on the end of a stick which I cannot turn from.  Fortunately, I had done a lot of musing with e while I was in Netmath. I'd even computed it to 50,000 digits.

Figuring out if a number is prime is easy; Fermat's Little Theorem does all the legwork for you1.  I wrote a small program to do this while moving sequentially through blocks of 10 digits in e.  But the gnomes at Google wouldn't let you off that easy; 10 digit numbers are too big for the data types most programming languages use.  Languages like Java have a BigInteger built into the language but I found an open implementation for C# within a few seconds on Google. I will post my solution tommorow (I forgot it at work!).

There's also a cheat if you don't want to hassle yourself with primality, Fermat, or big numbers.  You can move through 10 digit blocks and use a networking class to try and resolve the address. I put a version of that in my solution but it's what my brother and I would call "cheap styles."

Once you've solved that, the website is itself a problem involving e.

I will post a solution for this as well tomorrow, but it isn't horrible once you can determine what these numbers (each a pattern found in e) have in common with each other (hint: the square of 7).

It took my lunch hour from me but the solution took me to the congratulatory page from Google Labs. All this while I was thinking I had adult ADD because it was so hard to focus at work and yet I was able to lose myself completely in this problem. Good news, I guess.

posted in [home], [prattle]

1This works on smaller numbers - with big numbers estimation is involved.  I put a javascript implementation of the theorem up so you can "view source" and see how simple it is for yourself.


9:50:43 PM    comment []

Small Tip

If you read online versions of newspapers, you're bound to often register in order to view the content you originally wanted.  If you ever run into this problem, visit BugMeNot and get the authentication you need for the site.

posted in [home], [snippets]


8:31:42 PM    comment []


Click here to visit the Radio UserLand website. © Copyright 2006 David Seruyange.
Last update: 5/23/2006; 8:25:42 PM.
July 2004
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Jun   Aug