KBD

Keith Devens .com

Saturday, May 17, 2008 Flag waving
C++ is history repeated as tragedy. Java is history repeated as farce. – Scott McKay

Tag: Web

Parents:

Children:

Page 1 →

Daily link icon Monday, May 12, 2008

  1. John Resig - Processing.js (via):

    I've ported the Processing visualization language to JavaScript, using the Canvas element.

    Impressive, to say the least.

       (0) Tags: [Javascript]

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 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 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 Thursday, February 14, 2008

  1. JavaScript Kit- DOM Table Object Methods.

       (0) Tags: [Javascript, Web Development]

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 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 19, 2007

  1. Confluence + JIRA.

       (0) Tags: [Wiki]

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 Thursday, August 16, 2007

  1. Simon Willison: jQuery for JavaScript programmers. Maybe I'll use jQuery instead of Prototype for future development.

       (0) Tags: [Javascript, Web Development]

Daily link icon Wednesday, August 8, 2007

  1. Emprise JavaScript Charts :: 100% Pure JavaScript Charts.

       (2) Tags: [Javascript]
  2. SproutCore (via):

    Sprout Core is a application framework written in Java Script. It’s designed for creating full applications that run inside the web browser.

    MIT license.

       (0) Tags: [Javascript]

Daily link icon Monday, July 30, 2007

  1. Scale rails from one box to three, four and five (via).

       (0) Tags: [Ruby on Rails, Web Development]

Daily link icon Wednesday, July 25, 2007

  1. YSlow for Firebug (via). Clever name. Yahoo-developed plugin for Firebug that helps analyze site performance.

       (0) Tags: [Firefox, Web Development]
  2. Fleeting Ideas: Disambiguated URLs with Ruby on Rails (via).

       (0) Tags: [Ruby on Rails]

Daily link icon Friday, July 13, 2007

Javascript toggle functions

Some more handy Javascript (depends on Prototype):

function toggleByClass(id, className, callback){
    // shows the element with id 'id'
    // and hides all other elements with class 'className'
    $A($$('.'+className)).each(function(element){
        $(element).style.display = "none";
    })
    if(id) // call it with a false id to hide all
        $(id).style.display = "block";
    if(callback)
        callback(id, className);
}

function toggleById(id1, id2){
    var a = $(id1).style;
    var b = $(id2).style;
    if(a.display == 'none' || a.display == ''){
        a.display = 'block';
        b.display = 'none';
    }else{
        a.display = 'none';
        b.display = 'block';
    }
}

Daily link icon Friday, June 29, 2007

<select> utility javascript functions

I always wind up needing functions to dynamically populate the options on a <select> list, or select a given item in an existing <select>. So I've finally written them out in a reusable form:

<select id="foo" onchange="alert(this.value)"/>

<script language="javascript" type="text/javascript">
function loadSelectOptions(selectId, keys, values, selectedOption){
    var list = document.getElementById(selectId)
    if(!list)
        return;

    var selectedIndex = 0;
    list.length = 0;

    var found = false;
    for(var i=0,n=keys.length; i<n; i++){
        list.options[i] = new Option(values[i], keys[i]);
        if(selectedOption == keys[i]){
            list.selectedIndex = i;
            found = true;
        }
    }
    return found;
}

function selectSelectOption(selectId, value, runEvent){
    var list = document.getElementById(selectId)
    if(!list)
        return;

    var options = list.options;
    for(var i=0,n=options.length; i<n; i++){
        if(options[i].value == value){
            list.selectedIndex = i;
            if(runEvent)
                list.onchange();
            return true;
        }
    }
    return false;
}

loadSelectOptions("foo",['foo','bar','baz'], ['FOO','BAR','BAZ'],'baz')
var list = document.getElementById("foo")
list.remove(1)
selectSelectOption("foo","baz")
</script>

Daily link icon Thursday, June 7, 2007

  1. Because I'm sure it'll come in handy later, here's a javascript object clone function:

    function clone(obj){
        if(obj == null || typeof(obj) != 'object')
            return obj;

        var temp = {};
        for(var key in obj)
            temp[key] = clone(obj[key]);
        return temp;
    }

    Update: From feedback in the comments, a better version is:

    function clone(obj){
        if(obj == null || typeof(obj) != 'object')
            return obj;

        var temp = new obj.constructor(); // changed (twice)
        for(var key in obj)
            temp[key] = clone(obj[key]);

        return temp;
    }
       (18) Tags: [Code, Javascript]

Daily link icon Wednesday, June 6, 2007

  1. Firebug is amazing. That is all.

       (0) Tags: [Firefox]

Daily link icon Monday, April 9, 2007

  1. James Clark's Random Thoughts: XML and JSON (via). JSON is fine, l2p. Smiley

       (0) Tags: [Json, XML]
  2. Destroydrop » Javascripts » Tree. dTree has worked great for me so far.

       (3) Tags: [Javascript, Web Development]
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 2 posts

Recent comments XML

new⇒Maps of Iraq

my husband is in Scania too..he​says it's not too bad..he's been at​worse...

Cristy: May 16, 3:54pm

"IMDB for music"

IMDB for Music? It looks to be a​couple of years old...​http://MusicTell.co...

Ken Empie: May 14, 9:57pm

Generated in about 0.187s.

(Used 12 db queries)