This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.
| « | June 2006 | » | ||||
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | |
24 hours of Google Reader Shared Items
links for October 2, 2008
NuevaSync
Virtual Machines
Moving to Windows
Vista on Mac mini
Insecure wifi
links for September 7, 2008
links for September 6, 2008
Squeezebox Boom
I can never remember the syntax to convert numbers between various bases with bc, and end up looking at the man page.
Here is an example of using bc to convert a hex number to binary.
bash$ bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. ibase=F obase=2 01EA 110111101
Technorati Tags: bc
I think your use of "ibase=F" is a little weird, since bc defaults to base 10, it should be "ibase=16". Anyway, I've turned something similar into a bash function:
function hextobin() {
bc
Um, looks my comment got truncated. Here's what I meant:
function hextobin() {
bc
Grr. Truncated again.
<<<
How's that work?
Ok:
function hextobin() {
bc <<EOF
obase=2
ibase=16
$@
EOF
}
Can't believe your blog doesn't let me type a less than sign!
< character
I have removed a plugin that was supposed to make urls linkable. I think that was screwing things up
This
work is licensed under a
Creative Commons License.
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
January 2004
Computer [765]

Blogging [112]

Links [71]

Cars [64]

Electronics [205]

General [134]

Gadgets [62]

Phone [46]

Family [13]

Games [26]

moblog [4]

Hardware [19]

Third Time Dad
Engadget
Autoblog
Geek News Central
Jessica's Blog
atmaspheric | endeavors
Paint the Tiger • Carve the Swan
TiVoBlog
SuperJason's Personal Blog
Forever Geek
sprocket i/o
Slacy's Blog