Archive for the 'Technical' Category

Page 2 of 4

“Kill Caps Lock” on the Mac

I can’t believe I didn’t know this before. It is so simple to completely disable the Caps Lock key on any Mac. I always hit it when I want to hit tab or shift instead. I never use it intentionally (when’s the last time you typed a signficant number of capital letters in a row?), so I am thrilled that I have found this tip.

(0)

Intel Releases 4004 Schematics – Great for Students

Intel today released the schematics of the 4004, the world’s first microprocessor on a chip. The 4004 was released 35 years ago today, on November 15, 1971. This revolutionary chip had only 2,300 transistors (compare that with the millions of transistors found on microprocessors today). It supported a maximum clock speed of 740kHz and used 4-bit data words. Today’s chips are 5-6 orders of magnitude faster and use 32- or 64-bit words.

Intel 4004 ChipNo human alive is capable of analyzing today’s processors at the transistor level. Digital design these days happens largely at the block level. Simply put, a group of engineers design the individual blocks (arithmetic unit, floating-point unit, registers, data control, bus, etc.) and then another group combines the blocks to create the processor. Specialized software programs, called CAD or Computer Aided Design tools, exist to make this process simpler. They determine how the millions of transistors will be laid out and how they will be wired together.

The 4004, on the other hand, was designed during an era where computers were mostly glorified calculators. Every one of the 2,300 transistors used in the chip was lovingly drawn into the schematic by an engineer. This makes it possible for anyone who has taken at least a semester of logic design to grasp the majority of what’s going on in this chip. These schematics are invaluable for undergraduates who are seeking comprehensive examples beyond those provided by the textbook of complete but simple digital systems. I would have loved to be able to look at these last year and see how my classroom knowledge lined up with a real, commercial product.

Continue reading ‘Intel Releases 4004 Schematics – Great for Students’

Random Color Terminal

I’ve always wanted something like this. Daniel Jalkut of the Red Sweater Blog has created an AppleScript to randomize the color scheme of the terminal. Just drop it in ~/Library/Scripts/Applications/Terminal and it will show up in the script menu under “Terminal Scripts.” Click on it until you find a color scheme that pleases you.

There are two cool hacks that I came up with for this script. Both involve changing ~/.bash_profile (or the startup script for whatever shell that you use). If you don’t have a file named .bash_profile in your home directory, then create one. AppleScripts can be invoked from the command line by using the osascript command, and we can use this to our advantage in two ways.

  1. Every time we start up a new terminal, randomize the color. Simply add the line

    osascript ~/Library/Scripts/Applications/
    Terminal/RandomColorTerminal.scpt

    somewhere in your .bash_profile (all on one line).

  2. Set an alias to the above command so that we can change the color very quickly without needing to navigate to the script menu with the mouse. To do this, add the line

    alias newcol='osascript ~/Library/Scripts/Applications/
    Terminal/RandomColorTerminal.scpt'

    to .bash_profile (all on one line). Now, whenever you type newcol at the command line, you will get a new color scheme.