Monday, November 29, 2010

The nice story about hacking the new iPhone OS (or: hackers are nice people)

A short history lesson
Skip to the iphone story if you're short on time


I unlocked my iPhone again today, after the iPhone DevTeam came out with another wonderful way to "jailbreak" and unlock it. When I read the story about how they cracked the iPhone this time, I actually found it hilarious, to the point where I decided to blog about it, trying to keep it in layman's terms. Maybe my friends can laugh with me without understanding the fine technical details.

When I was young I wanted to be a hacker. Hacking into my bank's computer system and pumping my balance up sounded so much easier than actually having to work for money. So I read about what "hacking" is what hackers are, and surprisingly, one of the first sentences I read in a few different sources was "hacking is good, not evil". I got a lengthy explanation on the difference between hackers and crackers and how the very basic quality of a hacker is that whatever they do, they do it to improve things and not to harm anything or anyone. I believe this is true, especially in the case of the iPhone hackers, who are not looking for fame (they're anonymous) or fortune (they refuse to take donations).

Enter the iPhone DevTeam. A bunch of folks, people don't know who they are, who decided one day that Apple is being unfair by making everyone take "their way or the highway". So they "jailbroke" the iphone, and made it into a better device - one that is open and can work exactly how its owner wants it to, without having to go through Apple's approval. Then they also unlocked it and made it usable on any GSM network, and not just AT&T. By that I'm pretty sure they didn't only help the people, they also helped Apple. I bought my first iPhone only because I knew I can use it anywhere in the world. The hackers helped Apple increase sales and footprint.

For some mysterious reason Apple has been after those hackers since day 1. They are constantly patching the holes that the hackers use to make the iPhone a more usable device. There's a cat and mouse game between the hackers and apple that has been going on for years now. And the last story of how the hacked the iPhone AGAIN after OS 4.2.1 was released by apple is quite funny.


The story
It started off with Apple closing all known holes, making it quite hard for the hackers to allow people to use their phone outside of the intended network (AT&T in the states). Seems like the hackers got a look into the newly released operating system, and said "kudos, apple, this is going to take a while". So they thought "how can we still help all these poor people who happen to have bought a phone recently and are locked in the unlockable OS?". You see the problem is, Apple wouldn't let you downgrade your phone. Once you have the version 4.1 installed, you cannot go back to version 4.0 or 3.2. You can only go up the version number scale. This means that while there is no known hack for version 4.1, you are pretty much stuck in the locked state.
Well, I guess suddenly someone remembered that the iPad (not iPhone) actually has operating systems starting with the number 6. Not only that, but the iPad actually has a known hack. So what they did was, instead of creating a hack for version 4.2.1, they created a hack that takes bits and pieces from version 06.15 (the ipad version), including the version number itself, merges into any iphone version, creating a mongrel that looks like it has the number 06.15, but is actually an iphone OS that can be unlocked. While installing this on the iPhone, the iPhone does not reject the new operating system, because it checks and sees that 06.15 is greater than 4, or 4.2. Problem solved, and Apple can (again) kick themselves in the head while thousands of iPhone users got control of their device again.
Surely the next iphone version will explicitly make sure that it is not taking the iPad OS in the back door...

Tom won again, and Jerry is looking for new ways to catch him.

Sunday, August 29, 2010

תסתמו


טוב, נראה לי שמישהו צריך להגיד את זה.
מתנחלים - אני מכיר כמה חבר'ה על הכיפק מעבר לקו הירוק, אבל בגדול אני חושב שמי שגר היום מעבר לקו הירוק הוא במקרה הטוב נודניק, ובמקרה הרע פנאט.

מכאן ועד לקחת את החוק לידיים ולהחליט שאני כאומן לא מוכן להופיע בפני אזרחי המדינה, שומרי חוק, יש דרך ארוכה. אין כל ספק שהאמנים הם שהתחילו את כדור השלג המטופש הזה. אם הייתי רוצה לשמוע את הדעות הפוליטיות שלהם, הייתי מצביע להם בכנסת. אני לא מעוניין בדעה הפוליטית לא של בעל המכולת שלי ולא של השחקן שעומד על הבמה בהצגה שעליה שילמתי ממיטב כספי. אמנים צריכים לעסוק באמנות, ולא בפוליטיקה, וכמו שאין לכם בעיה להופיע בחו"ל, ולא צריכה להיות לכם בעיה להופיע במצרים או בעזה, ככה לא צריכה להיות לכם בעיה להופיע באריאל, או על הירח, כל עוד נותנים לכם חמצן ואבטחה ראויה.
כמובן שהפוליטיקאים עצמם לא טומנים את ידם בצלחת ובמקום להרגיע את הרוחות, ישר טיפסו על עצים ועשו רעש גדול.
שורה תחתונה רציתי לומר לכולכם - פשוט תסתמו. נמאסתם. כולכם. כן, גם את

Sunday, April 25, 2010

Change MySQL Engine for a bunch of tables (or all of them)

Prepare for another very technical / boring morning blog !

I needed to change an entire MySQL database from MyISAM to InnoDB (that is, change all tables in the schema). After Googling for how to do that in a bulk, I found... nothing (didn't look very thoroughly, though...)

I was contemplating doing it manually, as there weren't too many tables in my schema, but I finally caved in and the Engineer in me won and went looking for an our of the box solution.

This is what I came up with (don't laugh) :
SELECT CONCAT('ALTER TABLE `', TABLE_NAME, '` ENGINE = InnoDB;') FROM information_schema.`TABLES` WHERE TABLE_SCHEMA = '';

Run this from your MySQL command line, control-mouse-select the result (so that you can get just the text without the frame) and paste into your favorite MySQL client. Voila.

And the Geek Oscar this morning goes to....

Hope you find this useful

Thursday, March 4, 2010

Saving Power (??) - Yet another morning blog


I got an email from MicroMiser today announcing their latest version. This reminded me that I actually have Micromiser installed on my machine, so I decided to open and it up and see what gives.

I found the image on the right here.
Turns out Micromiser saved me $2.46 by now, and more importantly helped save the environment, yadayadayada.

For those of you (all of you?) who didn't know this, MicroMiser makes some fancy technology that should help companies with large server farms save on their energy by doing some voodoo magic that you can read about on their website. As a bonus, they are giving away that same technology for free for personal computers.

So,
It's a free open beta (registration required). And just in case these guys make more than just a window with random "you save $X" messages - you should probably install it and feel better about being a tidbit greener.

P.S. Thanks to @Ehud who introduced me this cuty as part of the effort to convert me to Linux. Too bad the Windows version came short-after, dude.

Saturday, February 6, 2010

How is it that...

I just tried to make my kids' computer usable by one, M. Wife.

She needed primopdf, so I installed it for her. Then it didn't work. Nothing would print, no errors, nothing.
After playing with it a bit, taking the "push all the buttons" approach, I finally managed to get an actual error message in place of the nothingness:
The application failed to initialize properly (0xc0000135)

Copy/paste in Google. Voila. It shows up a zillion times in almost any app you can think of, and the explanation - the dot-Net framework is missing. OK, so now I'm downloading the thing, and we'll be back up and running in no time. I guess my kids never needed the .Net framework.

Now I gotta ask a series of how is it questions :
1) How is it that M$ expects the .Net framework to be so mighty popular, and they still haven't implemented a decent error message of "please install the .Net framework" if it's not found ?
2) How is it that MS themselves did not use the .Net framework for Office 2007 ? (I have office on this machine, and it worked without it). Not good enough for them ?
3) How is it that when I write "download .Net framework" in any search engine including Bing, I get v2.0 as the first result, whereas v3.5 only comes second, and v3.5sp1, which is the newest one may or may not show up depending on which search engine I use?

So many stupid questions, so little time...