KBD

Keith Devens .com

Wednesday, December 3, 2008 Flag waving
Mistakes are as serious as the results they cause. – House (The Mistake – ep 30)

Archive: September 16, 2002

← September 15, 2002September 17, 2002 →

Daily link icon Monday, September 16, 2002

Cool quote

"If everything in your life is under control, you're not moving fast enough."

Buffy poll

Via WHEDONesque, lots and lots of interesting bits about the past season of Buffy and Angel

This May, after both "Buffy the Vampire Slayer" and "Angel" ended for the season, I composed and posted a short opinion poll on several listservs. Not realizing what I was getting into, I thought it might be fun to get a great many responses, so I asked for some distribution help from friends. The poll ended up on even more lists and scampered a bit around the net, and in the end, I got a LOT of replies.

Open Source Databases

NewsForge: Why I prefer Open Source databases.

I've been working with databases for many years. I started out with Oracle and Informix then used a little Sybase. Then I discovered open source and used mSQL, MySQL, and PostgreSQL pretty extensively. Most recently I've been working with Oracle again, and just started playing with MSSQL. Why is any of this important? It's important because I've seen the good and the bad of all these systems. And perhaps even more important are my conclusions after 10 years of working with RDBMS'.

Anyone else ever heard of WebGUI? And it does seem very strange that Oracle doesn't support LEFT OUTER JOINs. I don't believe it. I'm also pretty sure that MSSQL does.

Whoa, ok - I needed some corroboration before I believed what he said about Oracle, and here it is. Check out the syntax of Oracle's SELECT statement. Just do a find on "outer" and you'll get the syntax diagram thingy and later you'll get examples using the crappy (+) thing. Granted, this is for Oracle 8, but has Oracle 9 changed it?

Ok, here's some documentation on Transact-SQL (MSSQL's SQL flavor) with examples using LEFT OUTER JOINs. This is for SQL Server 2000, I haven't checked SQL Server 7 - and in fact it appears they don't have the documentation specific to SQL Server 7 available.

Cool, check out http://docs.oracle.com/ and http://tahiti.oracle.com/, the Oracle documentation search engine. Oracle 9i does seem to support LEFT OUTER JOIN.

Google Pursuit!

Check out Google Persuit. Neat!

Presuppositionalism primer

I told my philosophy teacher I'd prepare him a packet on presuppositionalism. Here are links to a few of the articles I printed out for him:

Greg Bahnsen: The Heart of the Matter
Greg Bahnsen: Science, Subjectivity, and Scripture
Greg Bahnsen: Prolegomena to Apologetics

I'm also going to loan him a copy of Van Til's Apologetic: Readings and Analysis.

Hey!

There was just a sticker lying around I had taken off one of my schoolbooks. It said "USED SAVES". I read it and thought, "Hey, I thought Jesus saves!"

Angry code comments

This is the comment I just wrote to myself to remind me what I have to write next time I pick up the code. If you've been paying attention, I've been working on some Java code Smiley... Sorry about the foul language.

// FUCKING LOOPING, INDEX KEEPING, TEDIOUS ASS CODE i'M GOING TO HAVE TO WRITE
// FOR THIS SHIT THAT TAKES ME TWO LINES IN A SCRIPTING LANGUAGE!!!

All to do some simple string manipulations.

Hey, look at that - it wasn't too bad Smiley All I really needed was a version of strtr that had the limitation that the "from" characters could only be one character long. It worked the first time too.

    public static String strtr(String str, char[] from, String[] to){
        StringBuffer sb = new StringBuffer(str);
        int n,m;
        for(n = 0; n < sb.length(); n++){
            for(m = 0; m < from.length; m++){
                if(from[m] == sb.charAt(n)){
                    sb.replace(n, n+1, to[m]);
                    n = n + (to[m].length() - 1);
                    break;
                }
            }
        }
        return sb.toString();
    }

Oh, and since I don't know how expensive the .length() function on Strings or StringBuffers is, I may replace that and pre-cache it (adjusting it for when I lengthen the string, of course).

Also note that the above code example is an excellent demonstration of how Java does not support the Uniform Reference Principle. .length for an array is different than .length() for a String.

← September 15, 2002September 17, 2002 →
December 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 5 posts

Recent comments XML

new⇒Girls, please don't get breast implants

I have 34 A breast but at 22 years​old they seem to be growing again​which ...

76.64.120.153: Dec 3, 10:00am

Perl 6 1.0 in March?

Doh, my mistake. I'm aware of the​relation between Parrot and Rakudo​but I'...

Keith: Dec 2, 1:03am

Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Why no generic OrderedDictionary?

Check​http://www.codeproject.com/KB/recip​es/GenericOrderedDictionary.aspx?d...

Gabrielk: Nov 27, 6:57am

Generated in about 0.065s.

(Used 7 db queries)

mobile phone