Tag Archives: Programming

Script To Find SCSI Bus Id

Despite Linus’ assertion that the concept of SCSI Ids is “f*cking idiotic”, sometimes they’re necessary. For example, sometimes the following will work to recover an Offlined device:

echo “scsi remove-single-device 99 0 3 0″ > /proc/scsi/scsi
echo “scsi add-single-device 99 0 3 0″ > /proc/scsi/scsi

There’s a script named lsscsi [...]

CHDK – Hacking Your Canon Camera…

My previous post is a video I made using my Canon S2’s Intervalometer. Essentially it lets you set the camera to take up to 100 photos at a given interval, from 1…N minutes (I forget N at the moment.) Unfortunately, a couple limitations of Canon’s implementation screwed me in that video:

The Canon Intervalomer takes [...]

Theory of the DOM Lectures by Douglas Crockford

Advanced Javascript Lectures by Douglas Crockford

Writing Efficient Javascript by Gopal Venkatesan

Advancing Javascript by John Resig

Beginning Javascript Lectures by Douglas Crockford

Good CSS Tutorials / Resources

CSS starts out being a pain for everyone. Don’t worry. You’re not stupid, CSS is.
The Only Ten Things To Know About CSS
Part 2 of our code snippets series takes a look at more handy pieces of html, ajax and css that you can incorporate into your web designs. If you missed part 1 you can [...]

No Silver Bullet

Not only are there no silver bullets now in view, the very nature of software makes it unlikely that there will be any–no inventions that will do for software productivity, reliability, and simplicity what electronics, transistors, and large-scale integration did for computer hardware. We cannot expect ever to see twofold gains every two years.
First, one [...]

How To: Cross-Browser XSL Transform on Dynamic Web Pages

Abstract

Data is sent to browser as either XML embedded within HTML, or XML over AJAX request.
Javascript runs XSL rules on the XML to transform it into HTML.
Newly generated HTML is inserted into DOM.
This allows sorting, paging, etc.

Tools

xstream to do java object -> XML conversion
sarissa to do XML transform in the browser; uses the [...]

Excellent Shockwave Mosaic

This is a great piece of programming – I guess they’ve associated photos with color values, thus allowing you to browse infinitely by zooming. Check it out.
Link

Advanced Javascript Tutorial

He moves along to show you how to make cookies (Mmmmm), and you’ll learn fancy string handling and associative arrays along the way. Give your JavaScript a sense of history and time (by setting timelines on your pages so that different events occur at different times), and then learn how to sense which browser your [...]

Duck Typing In Java

Here’s a great way to do Duck Typing in Java. I’m using the same technique in some software that I’m currently writing.
This is exactly what Duck Typing allows us to do—to implement an interface at runtime. So all that remains is to figure out a way to implement this in Java…
Link

Good Javascript Tutorial

Covers the basics well.
Link

Sunbird And Exchange – Integration NOT Planned

Are mozilla insane? I would have assumed that crack teams of developers were being actively funded in integrating Sunbird and MS Exchange. In fact, the bug tracking this integration has been open since 2002, and assigned to only one developer for the past two years. What’s worse: his most recent comment on the bug (six [...]