Wednesday, August 17, 2005

Geek Joke

I read this awhile ago. And, the more I think about it, the funnier it becomes. It is funny because it’s true. Then, if you step back from it, it is just plain funny and clever.

From Coding Horror:

A Software Engineer, a Hardware Engineer and a Departmental Manager were on their way to a meeting in Switzerland. They were driving down a steep mountain road when suddenly the brakes on their car failed. The car careened almost out of control down the road, bouncing off the crash barriers, until it miraculously ground to a halt, scraping along the mountainside. The car's occupants, shaken but unhurt, now had a problem: they were stuck halfway down a mountain in a car with no brakes. What were they to do?
"I know", said the Departmental Manager, "Let's have a meeting, propose a Vision, formulate a Mission Statement, define some Goals, and by a process of Continuous Improvement find a solution to the Critical Problems, and we can be on our way."
"No, no", said the Hardware Engineer, "That will take far too long, and besides, that method has never worked before. I've got my Swiss Army knife with me, and in no time at all I can strip down the car's braking system, isolate the fault, fix it, and we can be on our way."
"Well", said the Software Engineer, "Before we do anything, I think we should push the car back up the road and see if it happens again."

Sunday, August 07, 2005

Mashups

I have been listing to some Mashups from www.MashupTown.com. These are awesome peaces of arts. If you have never listened to a Mashups before check out some of my favorites listed below.

Gotta Make Betty Sweat
Sharp dressed party
Bootystition
Spending one of these nights with Kelly
Stairway to Bootleg Heaven

Wednesday, June 08, 2005

VBScript - Add a file to iTunes

Rab dropped a comment on my iPodder VBScript(Copy New PodCast to My SD Card) post with an example of how to adding a file to iTunes. After looking at his script, I thought it might be cool to see if I could create a Playlist in iTunes and then add the file.

001 ' Variables
002 dim iTunes, FullPath, playlist
003
004 FullPath = "C:\Music\Machups\wewillrockbeverlyhills.mp3"
005
006 ' Connect to iTunes app
007 set iTunes = CreateObject("iTunes.Application.1")
008
009 ' Create playlist
010 set playlist = iTunes.LibrarySource.Playlists.ItemByName("My Test")
011 if playlist is Nothing then
012 iTunes.CreatePlaylist("My Test")
013 set playlist = iTunes.LibrarySource.Playlists.ItemByName("My Test")
014 end if
015
016 ' Add file to playlist
017 playlist.AddFile(FullPath)
018
019 set iTunes = Nothing
020 set playlist = Nothing


Line 10 tries to get a reference to a Playlist called “My Test”. If the Playlist does not exist the playlist variable will be Nothing. If the playlist variable is Nothing, “My Test” Playlist will be created (line 12) and on line 13 the playlist variable will get a reference to the newly created Playlist. Then on line 17 the mp3 file is added to that Playlist.

Friday, June 03, 2005

Google-fu

There are some great Google commands over at Coding Horror. (I keep going back to this page, maybe because of the Ninja.)

Also, Engadget has a cool article on how to customize a Google map.

Friday, April 29, 2005

The Long Tail

If you have not seen Chris Anderson's artical The Long Tail in Wired Magazine, it is worth a read. It is about how buying and selling books, music and movies has changed (and is changing) with the internet.

Tuesday, April 19, 2005

TaskList

TaskList is a cool command-line Windows XP command that can tell you additional information about processes that are running on your machine. I happened across this when I was looking for what the svchost.exe does. (You may have seen this in your “Windows Task Manager”.) svchost.exe runs services on your machine and to see what services are running enter the following at the command prompt.

tasklist /svc

Actually the /svc will display all the services for all the running processes and if the process isn’t running a service it will display “N/A”. If you only want to look at the svchost.exe process you can use the /fi switch.

tasklist /svc /fi "IMAGENAME eq svchost.exe"

IMAGENAME is the name of the column that you would like to filter (IMAGENAME is actually the process exe name). eq stands for equals and svchost.exe is the value.

Another useful switch is the /m. This will display all the DLL’s that are loaded for each of the running processes. Enter the following at the command prompt.

tasklist /m

To see a list of all the processes that have a specific DLL loaded you can enter the following.

tasklist /m netapi*

This will display all the processes that are running with the netapi32.dll loaded. (“*” is a wildcard. You can type out netapi32.dll if you like.)

For more help on this command you can use the /? switch. Enter the following at the command prompt to see more information on using the tasklist command.

tasklist /?

Thursday, April 07, 2005

Will monkeys replace programmers?

As I was pondering and Googling this, I came across the term “Code Monkey”.

Wikipedia's definition - "Amateur computer programmer who stiches together snippets of code found on the internet and in books and puts them together to make an application, without having an appreciation or understanding what the principles behind the code or the concept of coding are."

Another Wiki definition - (down on the page) "Rather than an insult for a programmer who is sloppy (which the above implies), I hear it used for someone who is doomed to work on "unglamorous" programming tasks, often using older/antiquated/"uncool" technology. Examples of work that a CodeMonkey might do in this definition (I do not intend to denigrate these tasks myself)" (hmm... Maybe I am a code monkey)

I also thought this was good (also from the wiki site above):

“If an infinite number of monkeys on an infinite number of type-writers randomly tap the keys, would they eventually produce Hamlet? And would they eventually be able to produce {insert your favorite program}?”

I also found this funny fictional story about monkeys on strike at Fox Broadcasting.
Monkeys NOT Working Around the Clock, On Strike