2008-03-21

iPod touch hack released

iPOD touch hack released.
Check out http://www.ziphone.org/. Zibri found the solution to the iPod touch's in ability to be unjailed. The problem was with the nvram being corrupted.
Here is how to do it.

  1. Just run the un-corruption utility in the zPhone utility
  2. Run the jailbreak.
  3. Install the BSD Subsystem.
  4. Then Run the 1.1.3 updates for the BSD subsystem terminal for back spacing.
  5. Then install the SUID Lib Fix .
  6. Install The Term-VT100 terminal program.
  7. Install the Cydia package (DEBIAN style package management!) which will replace the BSD subsystem.
Side notes:
  • The /Library/LaunchAgent/ folder contains the daemon launch plists. deleting one will prevent it from loading.
  • If you still have the BSD subsystem do not change the root password. The BSD passwd utility BREAKS the OS causing you to need to re-install the firmware. The Cydia utility works with out incident.
  • The default root password for for the iPOD will be either "alpine" or "dottie".

2008-03-18

Arthur C. Clarke dead at 90

via Engadget

If you've been under a rock for the past 50 years you might not have realized how much the visions of this man have changed your life. The most prominent would be the geosynchronous com satellite. There is a very high probability that nearly all of the cable TV you watch is from sat feeds, and of course DSS is all sat. Your GPS unit works via geo-sync sats. So does your sat-phone, if you've got some spendy need for one.

2008-03-15

HiR Reading Room: Postfix: The Definitive Guide

Postfix is my favorite MTA right now. Various authentication and mail store options, a "security first" development cycle, and great performance are just a few of the reasons. Gone are the days of Sendmail. Qmail is feature-packed but kludgy (and I don't really care for djb's antics nor his hubris, so maybe it's a little personal). Postfix is king, as far as I'm concerned.

This 278-page guide is svelte, but remains packed with useful tips, configuration examples, and advice on Internet mail infrastructure. Whether you just want to build a mail server for yourself or a small company, or you're looking at revamping the way your corporate e-mail is handled, this book is worth a look.

You don't need to know a lot about MTAs in general to get started. I'd argue that intricate familiarity with Sendmail might even hurt you a little. You can get a ground-up lesson on mail infrastructure from Postfix: The Definitive Guide. A little functional UNIX knowledge is a bonus, though.

2008-03-14

Observations from this week

This has been a crazy week for me. Most of this is related to work and personal life. I have a few observations and it's going to sound like a rant.

Someone I do work for is testing a new SSL VPN solution. This is a VPN that just uses the web browser. I was looking forward to ditching the Windows VM which I pretty much use only for VPN. This particular VPN has been configured to require Windows. What the hell is up with that?

We had the BSD User Group meeting yesterday. Somehow, the meeting room got double-booked between us and the Commodore 64 Club. I say club because no one actually USES Commodore 64 computers for anything anymore. They just look at them and play text adventures on them. At first, I was excited to see the C64 laptop there, figuring someone may have actually installed NetBSD on it, but no. It was just a C64 laptop (there's a model name or number for it but I don't care enough to look it up). Then, I got to thinking about NetBSD. You probably could get it working on a C64. I co-worker of mine suggests that you could probably put a dead hamster in a shoe box and get it to run NetBSD. I don't think that's too much of a stretch.

The C64 club had KCBug outnumbered 3-to-1. This pains me. Had it been a PerlMongers or KC Linux UG meeting I wouldn't have been so hurt, but seriously, KC guys. This was a a disgrace. Get with the program and come to KCBug next month. Please? Thanks. Meeting details will probably get posted to the KCBug Mailing List.

The PHP user's group is tomorrow. I'll probably be there. So will Asmo.

2008-03-12

Electric Skies.

Morning.





This reminded me of the opening line to Neuromancer: The sky above the port was the color of television, tuned to a dead channel. Anyone have more links to literature (in all of it's forms) using the meme of an electric description for the sky?

2008-03-11

Shared Links

I'm not sure if I'm ready to go putting del.icio.us daily RSS feed splices in the HiR RSS Feed yet, but for the time being, we're taking interesting links that show up in our Google Reader feeds and sharing them via the navbar on the right under HiR Shared Links.  You can also add our shared items to your RSS reader.  We'll probably still write commentary on interesting newsworthy articles that we find, but this is a way for us to show you some of what's keeping us interested.


Thanks for reading!
--ax0n
HiR Editor

UNIX Tip of the day: shell math with bc

bc is "an arbitrary-precision calculator language" which so happens to be nearly ubiquitous across all UNIX platforms that I've ever run across. 


Why on earth would you want to do math on the command-line?  Well, that's a good question.  I often find myself using it when I have a terminal window open and don't feel like finding a calculator or firing up the calculator program just to do some basic division or multiplication.  Remember, I suck at doing math in my head unless it's stupidly simple stuff.

What does "arbitrary precision" mean, exactly?  Well, it means that bc will only be as precise (with floating points) as you are with your input.  Integers in, integers out!

axon$ 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'.
491003798 * 2
982007596

This is important when doing division:
5/2
2

5 divided by 2 is obviously not 2. Set the scale to 2 to make it precise to two decimal points, and try again:
scale=2
5/2

2.50

Much better.

Like shells, you can combine multiple commands on one line with a semicolon between commands: FYI: sqrt(x) gives you the Square Root of x and x^y gives you x to the power of y. This is similar to how many scientific calculators or Google Calculator works. In fact, most of Google Calc's syntax works quite well in bc.

scale=0; sqrt (982007596); 16^2
31337
256


Since bc operates on standard input, you can use any of the below methods to do non-interactive math from the command-line or shell scripts:

Pipe:
axon$ echo "2008 * 42" | bc
84336

Here Document:
axon$ bc << EOF
> (2008 * 42) + 65535
> EOF

149871

Use bc if you are writing a shell script that requires floating-point operations, as most shells don't handle math too well. You can even use shell variables.

axon$ export gallons=12.5
axon$ export price=3.879
axon$ echo "A tank of gasoline costs \$`echo "$gallons * $price" | bc`"
A tank of gasoline costs $48.487

Note that while bc exists as part of most UNIX installations (I think it's part of the Single UNIX Specification), that the supported syntax varies between platforms a little bit.  When in doubt, check the man page.