Command line tricks for smart geeks

November 24th, 2009

This article collects together a number of useful linux command-line tricks from Linux Format.

Everyone knows the answer to the question of life, the universe and everything is “42″, but for the first time we can reveal the question. It is this: how many command-line tricks must a man memorise? You see, graphical user interfaces are all well and good, but when you want to get real work done it’s time to switch to the terminal.

And so, we squeezed our brain cells, dug through dusty piles of old issues of Linux Format, and sat reflecting quietly over many a pint of ale, all with the goal of bringing you this: 42 awesome new command line tricks we think you ought to commit to memory. We’ve tried to include a few that are easier for our, er, less-experienced readers to enjoy, but we think even the most hardened Linux veteran will learn something new over the next 12,000 words.

The State of Solid State Hard Drives

October 14th, 2009

Jeff Atwood over at Coding Horror has put up a post on his experience with his latest SSD. Sounds promising!

Intel was the only game in town for about a year, but fortunately for us consumers, the competition finally caught up. The new Indilinx controller models, such as this Crucial 128 GB SSD, are just as fast as the X25-M. And, best of all, they’re cheaper, while also offering a not-insubstantial bump to 128 GB of storage!

I picked this model up for $325 plus tax and shipping. And, frankly, I was blown away by the performance difference compared to the 300 GB Velociraptor I had in my system before. That drive is not exactly chopped liver; it’s incredibly fast by magnetic platter drive standards. But it’s beyond slow next to the latest SSDs.

Evolution’s Third Replicator?

July 31st, 2009

This article argues that we are seeing a new form of evolution emerging, after genes and memes.

WE HUMANS have let loose something extraordinary on our planet – a third replicator – the consequences of which are unpredictable and possibly dangerous.

What do I mean by “third replicator”? The first replicator was the gene – the basis of biological evolution. The second was memes – the basis of cultural evolution. I believe that what we are now seeing, in a vast technological explosion, is the birth of a third evolutionary process. We are Earth’s Pandoran species, yet we are blissfully oblivious to what we have let out of the box.

Middle-Click to Open Firefox Links in a New Foreground Tab

June 30th, 2009

Here is a variation of a useful shortcut you might not be aware of. Just include the Shift key when you want to open a link in a new tab in the foreground rather than in the background. It also works for Control-clicks.

It is common knowledge that middle-clicking on a link opens it in a new background tab, but pressing shift while middle-clicking opens it in a new foreground tab. This especially comes in handy when you’ve got dozens of tabs open and don’t want to shuffle through all your tabs to find the one you just opened.

Book: The Canon

June 28th, 2009


The Canon: A Whirligig Tour of the Beautiful Basics of Science
by Natalie Angier.
Mariner Books, 2008.

This would be a decent overview of a broad range of basic science topics, but unfortunately the writing style ended up really putting me off. Rather than making the material more accessible, the author’s attempts at wit just confuses things and after a while gets annoying.

Rating: 5/10

Links:

Related:

Forty-Three of The Best Free Windows Enhancements That You Should Know About

June 23rd, 2009

This post on Freewaregenius lists a number of useful Windows utilities that will make your Windows desktop even better. Check out the rest of their site for other useful freeware programs.

When I first thought of this post, I more or less knew what programs I wanted to list here. The common theme that brought these together was that they were all really cool Windows “enhancements”: i.e. apps that tweak or change the way we work with files, folders, applications, or the system environment itself (or, apps that brings functionality to the Windows environment that could or should have been a built-in option in Windows ;) ).

Book: Ratio

June 21st, 2009


Ratio: The Simple Codes Behind the Craft of Everyday Cooking
by Michael Ruhlman.
Scribner, 2009.

Ruhlman gives readers the ratios behind many basic recipes, and tells you when you should follow them and when you may need to make adjustments or what variations you might want to try. Most of the ratios are related to baking, but also included are some meat-based ratios, stocks and sauces. Knowing and understanding these ratios will ultimately give you great flexibility in the kitchen.

Rating: 8/10

Links:

Book: Shark’s Fin and Sichuan Pepper

June 21st, 2009


Shark’s Fin and Sichuan Pepper: A Sweet-Sour Memoir of Eating in China
by Fuchsia Dunlop.
W. W. Norton & Company, 2008.

Fuchsia Dunlop gives us an entertaining account of how she fell in love with Chinese food and cooking, as well as the surrounding culture and history.

Rating: 9/10

Links:

Related:

Robert J. Sawyer’s talk at Google’s Waterloo office

June 19th, 2009

Robert J. Sawyer, a Canadian science fiction author, gave a fascinating talk at Google’s Waterloo office. He discusses how the world wide web might gain consciousness, the subject of his latest trilogy. The talk touches on several topics related to theories of consciousness, and is worth watching.

I would also recommend picking up his latest novel, Wake, the first book in the WWW (Wake, Watch, Wonder) trilogy. I’ve read the book and the trilogy is off to a great start. I will definitely be picking up the other books when they come out.

A Chili Sauce to Crow About – The Origins of Sriracha Sauce

June 17th, 2009

Good article in the New York Times on where Sriracha sauce comes from.

The lure of Asian authenticity is part of the appeal. Some American consumers believe sriracha (properly pronounced SIR-rotch-ah) to be a Thai sauce. Others think it is Vietnamese. The truth is that sriracha, as manufactured by Huy Fong Foods, may be best understood as an American sauce, a polyglot purée with roots in different places and peoples.

How to Write an Equality Method in Java

June 9th, 2009

Excellent article on how to avoid common pitfalls and preserve the contract of equals() when writing an equality method in Java.

Class java.lang.Object defines an equals method, which subclasses may override. Unfortunately, it turns out that writing a correct equality method is surprisingly difficult in object-oriented languages. In fact, after studying a large body of Java code, the authors of a 2007 paper concluded that almost all implementations of equals methods are faulty.

The Model MHDD – Manual Hard Drive Destroyer

June 5th, 2009

When you need to make sure your data is truly destroyed, use one of these.

Manual Hard Drive Destroyer

Manual Hard Drive Destroyer

Government specifications require that in an emergency situation a hard drive needs to be destroyed so that a person or persons can not spin the drive. This must be done quickly and reliably. The MHDD meets this requirement. It takes less than 15 seconds to destroy each hard drive. All one needs to do is to insert the proper drive height adaptor (if applicable) into the slot and crank the handle 8 rotations. The internal workings of the unit press down on the drive, bending it approximately 90 degrees. The MHDD then pushes the destroyed hard drive out for easy disposal.

DIY Fiber Optic Ring Flash

February 6th, 2009

Now this is something that I haven’t seen before. A ring flash using the camera’s built-in flash and some optical fiber.

Fring

Mobius circuit board

February 4th, 2009

A truly single-sided circuit board from Evil Mad Scientist Laboratories built on a Mobius strip with conductive ink.

Mobius strip circuit board

In electronics, it is common to talk about single sided circuit boards. The most common type is a circuit board that only has printed wiring on one side, and components on the other side. There are also surface-mount boards, where all the wiring and components sit on one side. But aren’t all of those really just two-sided circuit boards where you only put components on one of the sides?

Here we present a method of making your own authentic single-sided circuit board.

Sixth photo meme

December 4th, 2008

It works like this: if you use Flickr, go to the sixth page of your photostream and pick the sixth picture there, then post it to your blog.

Here’s mine:

20070707110445 IMG_2395

This was taken while having dim sum for breakfast, the morning of my brother’s wedding on July 7, 2007. That’s my brother on the left.

Second-Cheapest Syndrome

September 30th, 2008

Useful to know the next time to you eat out.

Ever order the second-cheapest wine on the menu while dining out? You don’t want to spend very much, but you also don’t want to look like a cheapskate ordering the cheapest bottle on the whole menu. Well, one in four diners do (in the UK, at least). In the marketing world, we can define this as a choice set effect with respect to reference pricing—using the cheapest bottle of wine as a standard of comparison against which the other wines are compared.

But did you know that the second-cheapest bottle is usually the worst value?

Binary Beat

September 24th, 2008

Listen to the beat of a binary counter!


Binary Beat from Niklas Roy on Vimeo.

This is an experiment, where I count one byte up – from 00000000 to 11111111. Decimal spoken, this is from 0 to 255. I have assigned a sound to each bit and when it switches from 0 to 1, the sound is played.

The Combine Interview

September 2nd, 2008

This is actually quite a well-done video that parodies an infamous Tom Cruise Scientology interview, but is set in the Half-Life 2 universe.

Hugo Award winners for 2008

August 18th, 2008

Here are the winners for this year’s Hugo Awards. There are links to some of the nominated and winning stories, including the winner for best short story, “Tideline” by Elizabeth Bear.

The History of the Tab

July 16th, 2008

How many college students today ever flip through trays of library catalogue cards? Some of them may never have used an actual tabbed file. But the tab as an information technology metaphor is everywhere in use. And whether our tabs are cardboard extensions or digital projections, they all date to an invention little more than a hundred years old. The original tab signaled an information storage revolution and helped enable everything from management consulting to electronic data processing.