If you are running Ubuntu, try to compile a C program, and discover that stdio.h is missing, then you need to execute this command.
apt-get install build-essential
Monday, March 03, 2008
Saturday, March 01, 2008
DTrace on Mac OS X
I recently discovered that Mac OS X Leopard includes support for DTrace tracing.
However, some searching uncovered this post which notes that DTrace is limited to not being able to trace some applications.
However, some searching uncovered this post which notes that DTrace is limited to not being able to trace some applications.
Monday, February 25, 2008
Star Wars by a Three-Year-Old
If you've had kids, particularly if your first is a daughter, then this will seem very familiar.
Explanation of Star Wars by a Three-Year-Old.
Explanation of Star Wars by a Three-Year-Old.
Monday, February 11, 2008
Impressive Warehouse Fire
I could see this fire as soon as I left our house this morning, over 40 miles away. Wow!
(Oh, click on the link under the picture that says Photos, that takes you to a photo album).
(Oh, click on the link under the picture that says Photos, that takes you to a photo album).
Wednesday, February 06, 2008
Primary Delegates Map
Here's a nice interactive map a the Washington Post of primary delegates and who has won them so far.
Here are some more.
Here are some more.
Tuesday, February 05, 2008
Bazaar
Okay, a guy I work with, Jon, told me about Bazaar (bzr), which is a version control system. I've been trying it out for several weeks, using at work regularly, and just playing with it at home. I've really come to like it a lot except for one shortcoming noted below.
The web site does a good job of listing the features but here are the ones that I like.
One big paradigm shift involves how version numbers are assigned. In CVS, each file has it's own series of version numbers. For example file1 might be at version 1.4 and file2 might be at 1.20. The only idea of a global version is achieved with tags.
With bzr, even if you only commit changes from file2, if that's version 25, then version 25 represents the state of all files in the project at that point. This has a few implications.
Bazaar has one shortcoming that is very annoying—it doesn't support RCS keywords. In RCS, you can place text like $Revision$, $Author$, and $Date$ in your file and they will be updated with the current values. I've depended on this over the years and miss it a lot when it's missing. I think files should have their identifying information when printed without having to refer to the on-line version control system.
It's pretty easy to write a little program that edits in this information, say just before committing changes, and indeed I've already written most of it. It could even be made a plugin for Bazaar so I may do that.
In the end, Bazaar is highly recommended for keeping versions of any important files (not just program code).
The web site does a good job of listing the features but here are the ones that I like.
- Commands are similar to CVS.
- You don't need a central repository.
- It's completely written in Python and supports plug-ins.
- It's very easy to use.
One big paradigm shift involves how version numbers are assigned. In CVS, each file has it's own series of version numbers. For example file1 might be at version 1.4 and file2 might be at 1.20. The only idea of a global version is achieved with tags.
With bzr, even if you only commit changes from file2, if that's version 25, then version 25 represents the state of all files in the project at that point. This has a few implications.
- If you list the log of changes for, e.g., file2, you might see it was updated in versions 25, 23, 22, 10, and 7.
- You can list the global log of changes which shows comments and which files were changed for ever version number.
- It's trivially easy to commit changes since you don't have to list files, but can just do a commit which catches everything. This is more convenient than I ever imagined.
Bazaar has one shortcoming that is very annoying—it doesn't support RCS keywords. In RCS, you can place text like $Revision$, $Author$, and $Date$ in your file and they will be updated with the current values. I've depended on this over the years and miss it a lot when it's missing. I think files should have their identifying information when printed without having to refer to the on-line version control system.
It's pretty easy to write a little program that edits in this information, say just before committing changes, and indeed I've already written most of it. It could even be made a plugin for Bazaar so I may do that.
In the end, Bazaar is highly recommended for keeping versions of any important files (not just program code).
Wednesday, January 30, 2008
Reversing Memory Loss?
This is a fascinating article from The Independent about doctors electrically stimulating a 50-year-old man's brain caused old memories to flood back in vivid detail.
Also,
The accidental breakthrough came during an experiment originally intended to suppress the obese man's appetite, using the increasingly successful technique of deep-brain stimulation. Electrodes were pushed into the man's brain and stimulated with an electric current. Instead of losing appetite, the patient instead had an intense experience of déjà vu. He recalled, in intricate detail, a scene from 30 years earlier. More tests showed his ability to learn was dramatically improved when the current was switched on and his brain stimulated.
Also,
What they don't say in the article is that, as the electrical current was increased, the man forgot the alphabet and asked the scientists, “Can you tell me what kind of cow I am?” At higher currents he simply began yelling “Turn it off! Turn it off!”
Professor Lozano said: "This is the first time that anyone has had electrodes implanted in the brain which have been shown to improve memory. We are driving the activity of the brain by increasing its sensitivity – turning up the volume of the memory circuits. Any event that involves the memory circuits is more likely to be stored and retained."
Monday, January 21, 2008
What Have You Changed Your Mind About? Why?
This is a fascinating question that was discussed in these articles.
Those sites are in increasing order of origin, I believe.
The gist I got is that asking a person this question leads to interesting and important insight at least about the “scientific” aspects of their background. Note that this means scientific in a general sense of thinking and learning, more so than as, say, a professional scientist.
Now I just need to answer the question myself. I'm not sure I have an answer yet. I'll see what I can come up with and report back here.
Those sites are in increasing order of origin, I believe.
The gist I got is that asking a person this question leads to interesting and important insight at least about the “scientific” aspects of their background. Note that this means scientific in a general sense of thinking and learning, more so than as, say, a professional scientist.
Now I just need to answer the question myself. I'm not sure I have an answer yet. I'll see what I can come up with and report back here.
Two Shared Items Pages from Google Reader
Arg. Okay, I'm now reading, and thus posting, from two different Google Reader accounts. This means I now have two Shared Items pages. Both links are to the right: Shared Google Reader and More Shared Reader. It may be worth looking at both of them.
Maybe someday I'll reorganize my Google life to allow reading and posting from one of them. I might be close to that now.
Maybe someday I'll reorganize my Google life to allow reading and posting from one of them. I might be close to that now.
Friday, January 18, 2008
Build a Computer from the Ground Up
This looks like a really neat book! It teaches you how a computer works while building one (using emulators) starting with logic gates and ending with software. Recommendations are high.
The Elements of Computing Systems: Building a Modern Computer from First Principles
by Noam Nisan and Shimon Schocken, The MIT Press, 2005.
At Amazon.
The Elements of Computing Systems: Building a Modern Computer from First Principles
by Noam Nisan and Shimon Schocken, The MIT Press, 2005.
At Amazon.
Monday, January 14, 2008
New Yorker Article on Google
The New Yorker article The Annals of Communications: The Search Party is pretty good.
Tuesday, January 08, 2008
Laser HDTV
Laser TVs are something we've imagined and anticipated for some time. Now, here's an HDTV version. Maybe there were standard laser TVs in the past that I've just missed.
If this is what I think it is, a TV raster image created with scanned lasers, then I think it has important implications for applications. I was going to suggest what some of those implications were but the more I thought about it just now, the more I realized maybe it's not as straightforward as I thought. More thinking required. 8-/
If this is what I think it is, a TV raster image created with scanned lasers, then I think it has important implications for applications. I was going to suggest what some of those implications were but the more I thought about it just now, the more I realized maybe it's not as straightforward as I thought. More thinking required. 8-/
Monday, January 07, 2008
Friday, January 04, 2008
Thursday, January 03, 2008
Python Videos by Jeff Rush
I've only watched this first video, but I found it to be an outstanding first look and code walk through of a simple Python script. It's from a series of videos by Jeff Rush which seem to be quite well done. Check it out and note how powerful a simple Python program can be. The presentation is very well done.
He does use a couple of advanced features:
He does use a couple of advanced features:
- Compiled regular expressions
- A list comprehension
Monday, December 31, 2007
Your U.N.C.L.E. on DVD!!!!!

Outstanding news!! Time Life now has the first season of The Man from U.N.C.L.E. (1964--65) on DVD!
The first season includes the Project Strigas Affair, which featured guest stars William Shatner and Leonard Nimoy!
Friday, December 14, 2007
Tuesday, December 04, 2007
Spam Trap
Fascinating! From Slashdot, an article on a new type of spam detection in
Abaca's new filtering techology that bases detection on a computed reputation of recipients rather than email content or the sender.
Abaca's new filtering techology that bases detection on a computed reputation of recipients rather than email content or the sender.
Subscribe to:
Posts (Atom)