KBD

Keith Devens .com

Friday, May 9, 2008 Flag waving
The three chief virtues of a programmer are: Laziness, Impatience and Hubris. – Larry Wall (Programming Perl)

Tag: Programming

Children:

Page 1 →

Daily link icon Thursday, May 8, 2008

  1. Wiki on a Stick. Self-contained wiki -- one self-modifying XHTML file.

       (0) Tags: [Software, Wiki]

Daily link icon Monday, April 28, 2008

  1. TiddlyWiki - a reusable non-linear personal web notebook (via).

    Also see:

       (0) Tags: [Productivity, Wiki]

Daily link icon Thursday, April 24, 2008

  1. Generator Tricks for Systems Programmers (via). Presentation on Python's generators.

       (0) Tags: [Python]

Daily link icon Wednesday, April 23, 2008

  1. JavaScript: The Good Parts, by Douglas Crockford (via).

       (0) Tags: [Books, Javascript]
  2. Reading binary files using Ajax « nagoon97’s Weblog (via).

       (0) Tags: [Ajax]

Daily link icon Friday, April 18, 2008

  1. Windows PowerShell - Wikipedia, the free encyclopedia. So, I had no idea that Monad had turned into Windows Powershell. I'm excited that Monad saw the light of day even though it didn't come as part of Vista. And it looks like you can work with PowerShell almost the same as you'd work with a unix shell.

       (0) Tags: [Programming, Windows]

Daily link icon Tuesday, April 15, 2008

  1. Javascript getElementsByClass function. I know there's one built into prototype, but I didn't want to include the whole library since I wasn't already using it. This seems to work.

       (2) Tags: [Javascript]

Daily link icon Monday, April 7, 2008

  1. JSLint, The JavaScript Verifier (via).

       (0) Tags: [Javascript]

Daily link icon Monday, March 24, 2008

  1. CodeProject: Debugging Windows Services under Visual Studio .NET..

       (0) Tags: [Programming, Windows]

Daily link icon Thursday, February 28, 2008

'Limit' clause in MSSQL

Solution 1: SQL Server Equivalent To MySQL And PostgreSQL Limit Clause - Joseph Scott’s Blog. Note: assumes unique keys.

SELECT TOP n *
FROM tablename
WHERE key NOT IN (
    SELECT TOP x key
    FROM tablename
    ORDER BY key
)

Solution 2: Finally a LIMIT clause for MS SQL. (Same solution recommended here, with a small explanation.)

select * from (
 select top 10 emp_id,lname,fname from (
    select top 30 emp_id,lname,fname
    from employee
    order by lname asc
 ) as newtbl order by lname desc
) as newtbl2 order by lname asc

Edit: The above is in SQL Server 2k... for 2005 there's a new row_number() function.

Daily link icon Thursday, February 14, 2008

  1. JavaScript Kit- DOM Table Object Methods.

       (0) Tags: [Javascript, Web Development]

Daily link icon Wednesday, February 13, 2008

Join a NameValueCollection into a querystring in C#

C# is ugly as heck:

private static string JoinNvcToQs(System.Collections.Specialized.NameValueCollection qs){
    return string.Join("&", Array.ConvertAll<string, string>(qs.AllKeys, delegate(string key){
        return string.Format("{0}={1}", HttpUtility.UrlEncode(key), HttpUtility.UrlEncode(qs[key]));
    }));
}

In Ruby, this would be (essentially):

e = URI.escape
qs.collect{ |k,v| e(k)+"="+e(v) }.join("&")

Daily link icon Friday, February 1, 2008

  1. LOLCODE - Wikipedia, the free encyclopedia.

       (0) Tags: [Programming]

Daily link icon Tuesday, January 29, 2008

  1. Faster JavaScript Trim.

       (0) Tags: [Javascript]

Daily link icon Friday, January 25, 2008

  1. #haml (via) - new templating language for RoR.

       (0) Tags: [Ruby on Rails, Templating]

Daily link icon Friday, January 18, 2008

  1. 15 Seconds : Tuning Up ADO.NET Connection Pooling in ASP.NET Applications.

       (0) Tags: [ASP.NET]

Daily link icon Thursday, January 17, 2008

  1. .aspx considered harmful « Jon Udell (via):

    The Strunk and White Elements of Style for the literary form that is the web’s namespace hasn’t really been written yet, but Tim Berners-Lee’s 1998 essay belongs in that genre. So does the Richardson and Ruby book RESTful Web Services which, as I noted in my review, recommends that URIs use forward slashes to encode hierarchy (/parent/child), commas to encode ordered siblings (/parent/child1,child2), and semicolons to encode unordered siblings (/parent/red;green). We can, and we should, think and act in principled ways about the web namespaces we create.

       (0) Tags: [Web]

Daily link icon Friday, January 11, 2008

  1. ASP.NET AJAX Control Toolkit.

       (2) Tags: [ASP.NET, Javascript]

Daily link icon Wednesday, January 2, 2008

  1. In-browser syntax highlighting editors: EditArea, CodePress (via).

       (0) Tags: [Programming]

Daily link icon Monday, December 17, 2007

  1. AppJet: Instant Web Programming (via).

       (0) Tags: [Javascript, Web Development]

Daily link icon Monday, December 10, 2007

  1. Jash: JavaScript Shell (via, via).

       (0) Tags: [Javascript]

Daily link icon Tuesday, November 13, 2007

  1. Mozilla Labs Blog » Blog Archive » Prism.

       (0) Tags: [Firefox]

Daily link icon Friday, October 26, 2007

  1. CouchDB "Joins" (via). Figuring out how to do joins in a non-relational db. To finish reading.

       (0) Tags: [Databases]

Daily link icon Friday, October 19, 2007

  1. Confluence + JIRA.

       (0) Tags: [Wiki]

Daily link icon Tuesday, October 16, 2007

  1. DBSlayer (via).

    The DBacesslayer aka DBSlayer aka Släyer (as we like to call it when we're feeling ironically heavy metal) is a lightweight database abstraction layer suitable for high-load websites where you need the scalable advantages of connection pooling. Written in C for speed, DBSlayer talks to clients via JSON over HTTP, meaning it's simple to monitor and can swiftly interoperate with any web framework you choose.

       (0) Tags: [Databases, Json]

Daily link icon Monday, September 24, 2007

  1. 7 reasons I switched back to PHP after 2 years on Rails - O'Reilly Ruby (via). The main reason I'd hope to switch to Rails is not for Rails itself, but to be able to use Ruby. If only PHP used Ruby Smiley frowning

       (0) Tags: [PHP, Ruby, Ruby on Rails]

Daily link icon Wednesday, September 19, 2007

  1. Minimal FORTH compiler and tutorial | Lambda the Ultimate.

       (0) Tags: [Forth]

Daily link icon Monday, September 17, 2007

  1. jamtronix: Example of connecting to SQL Server via Ruby.

       (3) Tags: [Databases, Ruby]
  2. Sequel: Lightweight ORM library for Ruby (via).

       (0) Tags: [Databases, Ruby]

Daily link icon Thursday, September 13, 2007

  1. ONLamp.com -- An Introduction to Erlang (via). To read.

       (0) Tags: [Erlang]
Page 1 →
May 2008
SunMonTueWedThuFriSat
 123
45678910
11121314151617
18192021222324
25262728293031



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 looked like a 12 yr old boys body​before I got mine and I cant be​happier...

Mel: May 9, 2:57pm

Javascript clone function

?!code:language=javascript

var​parent = { name : "jake", age :​"26"};

...

Jake: May 8, 10:05am

I hate ASP.NET

I am a professional developer in​the USA. My company uses me for​specifical...

David: May 5, 11:37pm

WoW Forums -> Defense after clefthoof

Yes, which is why, like it says​above, the crit cap for druids is​2.6 with ...

Keith: May 5, 4:17pm

Spider solitaire

Hello,
I'm a SS newbie, and I have​a two-suit game that I cannot beat.​Is ...

Amanda: May 4, 10:04pm

Generated in about 0.323s.

(Used 13 db queries)