James Manning

This, for instance, is under ‘H’ for ‘Toy’

[powered by WordPress.]

February 29, 2004

post-4095

by @ 5:02 am. Filed under Uncategorized

why am I still awake? Oh, that’s right, to make inane comments like this - sheesh

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

post generation by way of wget | grep | grep

by @ 3:22 am. Filed under Uncategorized

% wget -q -O - http://www.livejournal.com/community/libertarianism/405566.html | grep -A2 flavor |grep -A1 2004-02|cut -f1-4 -d’ ‘

2004-02-27 07:21
(link)


2004-02-27 14:22
(link)


2004-02-27 19:11
(link)


2004-02-28 23:37
(link)


2004-02-27 19:11
(link)


2004-02-27 22:04
(link)


2004-02-27 19:23
(link)


2004-02-29 00:05
(link)


2004-02-27 15:59
(link)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

post-4093

by @ 1:40 am. Filed under Uncategorized

At the moment, still trying to fully parse this blog entry since it’s pretty informative about the CLR hosted in SQL Server, a very interesting scenario. I had spent a great deal of time in the past learning a lot about Aurora in Oracle (their in-RDBMS-server JVM) since I was using it pretty heavily at Porivo so it’s interesting to compare and contrast.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

February 28, 2004

post-4092

by @ 1:05 am. Filed under Uncategorized

I should probably get to bed since we have to be over at the Swains at like 10am tomorrow (mmmmm turkey frying goodness), but (with apologies to Led Zeppelin), I have to ramble on

[Edit: I just noticed that I mistyped "executive" (as in the branch) as "execute" in that comment - which given who's holding office and his background is sure to spark a cute comment :)]

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

February 27, 2004

what, me ramble?

by @ 10:12 pm. Filed under Uncategorized

crack monkey - that funky monkey!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

post-4090

by @ 9:44 pm. Filed under Uncategorized

so this Intel 82815 (4MB of video memory, obviously on the motherboard) graphics driver (from Intel) is willing to give me 1280×1024 @ 24bpp, but unwilling to allow 1600×1200 @ 16bpp, which I’d much rather have, only allowing 1600×1200 @ 8bpp, which is horrific to try and work with.

bleah.

Edit: to save everyone else the math, yes, 1600*1200*16 == 30720000 is less than 1280*1024*24 == 31457280, and both fit inside 4MB fine, of course :)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

post-4089

by @ 7:11 pm. Filed under Uncategorized

http://www.snotmonkey.com/content/stuff/closings/

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

post-4088

by @ 10:07 am. Filed under Uncategorized

The ice on our street seems much worse (at least traction-wise) than anything else in the last few months - I can’t even get more than about 10 feet without losing all ability for the car to make forward progress.

Working from home it is.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

February 26, 2004

post-4087

by @ 5:38 pm. Filed under Uncategorized

these guys should do more C# programming - I hate what their recipes look like.

Most of their for loops could be foreach’s instead, and most (if not all) of their try/finally blocks could be using blocks instead.

Yes, it’s syntactic sugar, but it’s “good sugar” which I define as sugar that puts less variable and/or block control logic in the hands of the developer, so they have less of a chance of screwing it up :)


Compare:

HttpWebResponse response = (HttpWebResponse)request.GetResponse( );
try
{
    if(VerifyResponse(response)== ResponseCategories.Success)
    {
        // get the response stream.
        Stream responseStream = response.GetResponseStream( );
        // use a stream reader that understands UTF8
        StreamReader reader = new StreamReader(responseStream,Encoding.UTF8);

        try
        {
            html = reader.ReadToEnd( );
        }
        finally
        {
            // close the reader
            reader.Close( );
        }
    }
}
finally
{
    response.Close( );
}

with:

using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
    if(VerifyResponse(response)== ResponseCategories.Success)
    {
        // get the response stream.
        Stream responseStream = response.GetResponseStream( );
        // use a stream reader that understands UTF8
        using (StreamReader reader = new StreamReader(responseStream,Encoding.UTF8))
        {
            html = reader.ReadToEnd( );
        }
    }
}

and

for(int i=0;i<students.Length;i++)
{
    students[i].Join( );
}

with

foreach(Thread student in students)
{
    student.Join();
}

note that this is just syntax i’m talking above, not better code, which is another issue, like fetching using the WebClient built-in (the point of the HttpWeb* classes is if you want to do async operations)


WebClient client = new WebClient();
byte[] data = client.DownloadData(”http://foo.com/random.html”);

Of course, if the contents of the web page you’re fetching are XML, you can skip a lot of middlemen just loading directly, of course :)

XmlDocument doc = new XmlDocument();
doc.Load("http://www.some.place.com/foo.rss");

ramblerambleramble

IEnumera{ble,tor}<T> rocks my world.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

February 24, 2004

DMV fun

by @ 12:15 pm. Filed under Uncategorized

60 minutes waiting in line for my renewal
2 minutes for the eye/sign tests and paying the $15
2 minutes for picture taking and card production

Guess I’m now officially 30. The queues were broken out, at least - at 10:09am (stamped on my ticket) I was the 33rd person for renewal, there were ~127 duplicates (kinda odd since you can do those online) and ~235 id cards. I wish I knew Spanish, eavesdropping would have been much more fun - as-is I could only pick up yes/no and numbers :) My 7th grade Spanish teacher probably wouldn’t be happy to hear that, but IIRC he’s still in jail on that liberties-with-minor (teenage girl molestation) charge so he’s probably got other things to worry about.

ramblerambleramble

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

[powered by WordPress.]

jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.

internal links:

categories:

search blog:

archives:

February 2004
S M T W T F S
« Jan   Mar »
1234567
891011121314
15161718192021
22232425262728
29  

other:

95. We are waking up and linking to each other. We are watching. But we are not waiting.
The Cluetrain Manifesto

23 queries. 1.183 seconds