Archive for the 'Software' Category

Faster sleep on modern Macs

Friday, June 3rd, 2011

Some years ago Apple introduced a feature called “safe sleep”, which dumps the content of the system RAM into an on-disk file. If battery power falls below the threshold that can sustain the content in the system RAM while the Mac is asleep, OSX will use this fallback virtual memory state during the next power-up.

Dumping some GB (2, 4, 8, …?) to disk takes some time, though. If you do not move around your MacBook too often, you can choose to disable this feature for more instant sleep:

sudo pmset hibernatemode 0

You can also remove the perviously used file to regain some GB of storage:

sudo rm /var/vm/sleepimage

Using gdb to single-step assembly code

Saturday, May 14th, 2011

Using gdb to debug in assembly code without symbols:

layout asm

stepi
# or simply:
si

An update of MAS review times

Wednesday, April 20th, 2011

Who thought Apple’s Mac App review times would have improved since my last (iOS) report, just look at this:

March 28, 2011 08:07 Waiting For Upload
March 28, 2011 08:45 Upload Received
March 28, 2011 08:45 Waiting For Review
March 31, 2011 15:11 In Review
April 05, 2011 22:28 Rejected
April 06, 2011 10:31 In Review
April 07, 2011 08:37 Rejected
April 07, 2011 09:05 Waiting For Upload
April 10, 2011 05:58 Upload Received
April 10, 2011 06:00 Waiting For Review
April 10, 2011 06:15 In Review
April 19, 2011 11:07 Processing for App Store
April 19, 2011 11:10 Ready for Sale

Fun getting an App thru thy all-mighty review guards, heh?

Needed space for the Mac OS X 10.7 Lion preview

Friday, April 15th, 2011

diskutil resizeVolume disk0s3 40G

Life can be so nice!

However, now with Mac OS X 10.7 “Preview 2″ (11A419) my Logitech trackball’s scroll wheel is inverted, … How can a bug like that slip into a solid USB HID stack? Ieek :-(

Update: It’s not a bug, it’s a feature! Preferences -> Mouse -> “Move content in the direction of finger movement when scrolling or navigating” - inverts the mouse wheel, and a-like event’s orientation, … Ieek! Feels so strange, …

dietlibc ported to mips64

Friday, February 4th, 2011

Those who know me, or other fellow readers, may have noticed: I am a little in this low-level computer science stuff, like OS kernel, assembly, ARM, PowerPC, SPARC, and such, …

So my latest pet project, for the weekend education was resurrecting the T2 MIPS port. And as such I had some fun porting dietlibc to MIPS64.

And what a fun ride that was, looking forward to see how MIPS develops on the smart-things side of life!

Call for boycott of: Sony!

Saturday, January 15th, 2011

Sony is suing computer scientist and programmer George Hotz for getting Linux to work on his personal PS3, again - performing an in-depth security analysis of the system on the way and uncovering a bunch of beginner programmer mistakes while at it.

If anyone should have sued anyone in this case, then it should have been the general public in a class action suit against Sony for taking away an formerly advertised “Other OS” feature, a function that allowed the use a real OS, such as Linux, on the “computer system” that is the PS3. A feature taken away by Sony on April the 1st 2010.

If anything, Sony should have silently taken the in-depth security analysis by Hotz and the fail0verflow group and hardened their next gen console, such as an PS4 or PSP2, with the lessons learned form all their sloppy mistakes, such as not using random data for the crypto, … [or for delivering rootkits with their Windows software, …]

I would be all for upgrading my fat PS3 that I intentionally did not update since May 2010 to still be able to boot to my Linux, and thereby save some Euro on my electricity bill due to the more efficient PS3 slim. However, Sony’s customer limiting feature removal does prevent my living room setup from going green, …

Due to Sony’s latest actions, I call to boycott Sony, until they stop suing their customers!

Instead there are plenty of other companies delivering aesthetic, feature rich, and often more affordable consumer electronic products for home entertainment and business computer equipment. Until Sony stops their latest actions against free speech, fair use and the internet I recommend supporting more customer oriented companies. Companies that do not sue their customers for doing whatever they want with the expensive equipment investment.

The PITA that is u/dev

Friday, December 17th, 2010

Udev did it again. Wasting my time during emergency maintenance at a remote datacenter server. The box was flunky and we eventually decided to exchange the hardware to cure sporadic reboots (may have been a faulty cooling fan, …). The question was:

Would the remote machine come back to remote managed life, or would it not?

In the past we usually had no problem with this, even tested it to be prepared for such disaster. But you probably already guessed so from the headline, … udev was again in between us and the network packet flow :-( !

Remote management kept black, and scheduling a reboot into the maintenance PXE & NFS recovery system revealed udev used it’s default persistent name glue to rename the new boards’s NIC with (obviously) different MAC from eth0 to eth1. Hallelujah!

A:

rm -f etc/udev/rules.d/70-persistent-net.rules

and some very unnecessary down-time later an the system was back online running on the new server blade.

And this is even the second time this year the persistent naming got in my way - guess I’ll remove this persistent name gibberish from the default build.

Update: Turned out every new version of udev started to use another just new Linux system-call - as T2 uses dietlibc for the initramfs early-userspace we had to add support for a dozen new system-calls to dietlibc, just to update udev, again, sigh!

Pending Developer Release

Saturday, November 20th, 2010

As I twittered the other day we are working like night and day and are making awesome progress on all fronts (yeah, there are quite some, more than you probably see right now). One of those bits just made an awesome sprint thru Apple’s iTunes App Store review process:

November 19, 2010 12:35 Pending Developer Release
November 19, 2010 06:33 In Review
November 13, 2010 09:34 Waiting For Review

Which is the fastest round trip time we got so far, yay!

If only the sales numbers would report more consistently, one day they are available at 1pm (CET) and the other days “iTunes” is apologizing for “reports being late” and we just get to see them after 8pm. Strange thing for such a huge server farm. Whatever. Maybe id’s Rage HD just sells too well, … :-)

OCRKit 50% off

Monday, November 15th, 2010

Just today, 50% off sale of OCRKit at MacZot, enjoy!

OCRKit is the most accurate affordable OCR for Mac and converts any PDF or graphic file into searchable PDF, RTF, HTML and TXT.

For more information visit the product site - and it is a also available for iPhone and iPad.

The world doesn’t need another platform?

Sunday, October 10th, 2010

So Google’s Andy Rubin said to PCMAG: …, the world doesn’t need another platform. Android is free and open; I think the only reason you create another platform is for political reasons.

Hear hear. The world said exactly the same when Android came along, and we had plain Linux, Windows whatever, RIM, Symbian, Apple’s then still named iPhone OS, QNX, and even yet more.

And then your initial versions where just so badly mangled, and visually lacking Linux flavors that few wanted it. Took you quite some years to polish and JIT it to visibility and speed that is Android 2.2, …

(And Andy, you [at Google] are even working on this other, alternative Google Chrome OS platform yourselves!!!)

If we would have followed such “political” advices in the last century, we would still travel in cars pulled by horses - would still search the index in the library, not need Google at all.

So, let the innovation continue …