Lithium batteries costing us a bundle!

Hardware

Service Battery error in Mac OS X

Venkat Srinivasan over at GigaOm's Earth3Tech wrote a detailed entry today explaining why we've chosen lithium to power our devices.

In the context of our family trade it's a fascinating read. My old man designs formulas and plants to make industrial lubricants for a living; stuff for manufacturing, power plants and the like. Turns out he estimates the cost of his business has increased fivefold in the last decade or so, primarily because lithium is an active ingredient and it's now being used in so many other places now!

I'm still waiting for my supercapacitor that would weigh nothing, hold a huge amount of energy, would take a fraction of a second to recharge, and would blow out my whole neighbourhood's electical grid in the process. That'd be schweet.


Ben Sidran’s Cool Paradise, track 03

Media

Ben Sidram's Cool ParadiseIn our continuing series of fascinating lyrical anecdotes derived from Ben Sidran’s 1990 album Cool Paradise, today Ben throws down some IT experience in the track If Someone Has to Wreck Your Life:

If someone has to wreck your life,
might as well be Me.

I think he’s referring to Windows Me. I took more support calls from frantic people about that horrid OS and the then-new System Restore feature than probably anything else ever. Other than printers. People still call, message and email me about printers even NOW. I should get a job at EPSON.

Other tracks:
#01,
#02,
#03,
#05,
#06,
#07,
#08,
#09,
#10,
#11.


I drink coffee because of my genes?

Thoughts

Icon from the Tango Desktop ProjectA few people shared this story on Google Reader, and a couple even mentioned my name! From Neatorama:

New research suggests that individuals who carry a so-called “high-consumption” variation [in two specific genes] appear to drink more coffee.

I'm not sure sure about genes personally; I started drinking coffee with my mum at a young age to keep awake during her early morning chemotherapy sessions. The oncology ward at Gleneagles in Singapore was always busy (a worrying sign) so we used to get the earliest appointments we could. When she moved on, I kept drinking the stuff.

Funnily enough, even the smell of decaffinated coffee boots my spririts and energy a little, leading me to believe there must be something else going on. A tasty placebo perhaps?


A Rubenerd.com status update!

Internet

Icon from the Tango Desktop project

Ichi. While messing around in MySQL this afternoon, I accidentally duplicated thirty blog entries which appeared in the RSS feed and spammed you all. This has been fixed. Thank you to Andrew Middleton and @edible_hat for telling me!

Zwei. I merged my fun little puzzles blog into Rubenerd.com to save me time, and redirected the RSS feed. You can view the entries in their new category here… if you really want to ;).

Tree. Despite missing two days this month due to technical issues, I’m still pressing on with my #PostADay2011 challenge! 363 days isn’t as cool as 365, but I’m up for it :)


Sudoku for 2011-04-10

Annexe

This originally appeared on the Annexe, back when I recorded daily puzzles.

Sudoku puzzle for 2011-04-10


Ben Sidran’s Cool Paradise, track 02

Media

Ben Sidram's Cool ParadiseIn our continuing series of fascinating lyrical anecdotes derived from Ben Sidran’s 1990 album Cool Paradise, today Ben describes what makes him nervous in the song titled Lip Service:

Lip service… makes me nervous […]
Makes me nervous… lip-lip service.

Thank you.

Other tracks:
#01,
#03,
#04,
#05,
#06,
#07,
#08,
#09,
#10,
#11.


Can’t import keys for cPanel users?

Internet

Icon from the Tango Desktop project Icon from the Tango Desktop project

So you have a webhost that accepts SFTP connections but not nessisarily SSH (it does happen). You've got used to using cPanel to add new keys for your various systems, but the latest builds of cPanel complain that the "filename is invalid" whenever you attempt to import a new key. Here's one potential workaround I figured out this evening if you already have another machine authorised.

The typical scenario

There are several different ways to do this on Mac OS X, Linux and other *nixes, but typically when I'm setting up a webhost for a friend/client I go through roughly this process.

  1. Fire up a Terminal and create a new public/private keypair. Accept the default location for the key file, and enter a password when requested.

    % ssh-keygen -b 1024 -t dsa
  2. Navigate to your home folder's ~/.ssh folder and display your new public key.

    % cd ~/.ssh
    % cat id_dsa.pub
    
  3. Copy the resulting key in all its pseudorandom glory to the clipboard.

  4. Log into your webhost's cPanel install. Under the Security heading, choose SSH/Shell Access then push the Manage SSH Keys button.

  5. Click Import Key. Choose a name for your key, paste your new public key into the second of the two large text boxes, and click Import.

  6. Under the Public Keys heading, click the Manage Authoriszation link that corresponds to your new key, then click the Authorize button.

Done! You can now more securely access your webhost's SFTP server from that machine.

The problem

Okay so here's where we had some trouble this afternoon. After we'd gone through this process, cPanel choked after step 5 and refused to accept the new key, citing Invalid Filename as an error. Even if we left the key name as the default is_dsa, it would still return the same error.

Fortunately, there's a way to bypass step 5 by uploading our new key manually.

  1. Create the new key as before.

    % ssh-keygen -b 1024 -t dsa
  2. Navigate to your home folder's ~/.ssh folder and duplicate the new public key file with the name you would have elected to give it in step 5.

    % cd ~/.ssh
    % cp id_dsa.pub your_custom_name.pub
    
  3. Fire up an SFTP session and upload your new public key file into your remote ~/.ssh folder.

    % sftp -oPort=[PORT] username@host
    sftp> cd ~/.ssh
    sftp> put your_custom_name.pub
  4. Now when you go into cPanel, you'll see your new key listed and can authorise it!

According to a cursory Google search, this is a known problem in recent builds of cPanel. Not sure when this will be fixed.


Mahou Shoujo Madoka Magica DMCAness

Internet

Want to trip a Google DMCA warning? Do a search for "anime magica":

In response to a complaint we received under the US Digital Millennium Copyright Act, we have removed 1 result(s) from this page. If you wish, you may read the DMCA complaint that caused the removal(s) at ChillingEffects.org.

Kudo(s) where due to Google for disclosing this, and linking to ChillingEffects.


Links for 2011-04-08

Internet

Links shared from del.icio.us today:

"Minimalist effect in the maximalist market"
(categories: design food packaging)


Ben Sidran’s Cool Paradise, track 01

Media

Ben Sidram's Cool ParadiseMy current musical obsession is with jazz man Ben Sidran. To celebrate this, over the next week or so I’ll be posting lyrical anectodes from each of the songs off his Cool Paradise album. Check out the early 1990s cover, its just too awesome for words ;D.

Today we have a geography lesson from the title track:

East is East,
West is West.

Thank you.

Other tracks:
#02,
#03,
#04,
#05,
#06,
#07,
#08,
#09,
#10,
#11.