Howettblog®

Cache or Check?

by Dustin on Sep.17, 2009, under Annoyances, Mac OS X, Mobile, Projects

On September 9th, 2009, Apple unveiled the (disappointing) updates to their iPod line, and released to the world iPhoneOS 3.1. The first, while notable, is nothing interesting in comparison to what they’ve done in the latest release of iPhoneOS.

With the latest release of their desktop operating system, OS X, Apple made great improvements to the system’s speed and application load times (supposedly, I’ve heard mixed reviews of Snow Leopard.) iPhoneOS 3.1 brings in these new enhancements, further streamlining the software on their mobile devices.

The single most impressive, noticeable change I’d like to discuss today is library caching.

(continue reading…)

1 Comment : more...

CyDelete 1.0.0

by Dustin on Mar.25, 2009, under Mobile

CyDelete is an iPhoneOS addon (using MobileSubstrate) that allows you to delete programs installed with Cydia just like they were App Store applications. I recently released it to BigBoss’s Cydia Repository, and it’s received 2123 downloads at the time of this post. It’s been up for about an hour.

Just a brief post to let you all know what I’ve been up to.

Full post here.

1 Comment : more...

Pico-ITX and gPXE (in BIOS) do not mix, outside of blenders.

by Dustin on Mar.25, 2009, under Annoyances, Hacking

I’ve been sitting on this post for quite some time. I recently bought (and later sold, long before this post was typed) a Pico-ITX motherboard, an x86 motherboard smaller than my hand.

I named it Marcus and crafted a custom installation of Gentoo (as I do for every new computer) for it. I also decided to slipstream a gPXE (Enhanced PXE Network Boot) image into the BIOS. All seemed well, and I flashed it.

Reboot time came. I tried to enter the setup screen to configure my new toy!
(continue reading…)

1 Comment : more...

Hard Drive Suicide

by Dustin on Jan.24, 2009, under Annoyances, Linux

DUSTIN
How now! An external hard drive?
SEAGATE
Clatters to the floor
[Within enclosure] O, I am slain!

Well, it happened something like that…

I was about to attach my external enclosure (containing a Seagate 120GB 2.5″ SATA hard drive) to my other laptop, when the cord came up short and the drive slid off my desk.

To the floor three feet below…

While it was running.

Hard Drives are rated to withstand falls from a few feet, but only when they’re not running. When they are running, however, the heads smash into the platters, spinning at 5,400 RPM.

So I’m running a fsck on the drive, and it finds a bad block (about 2.3 million 4096-byte blocks into the disk). As I went to pull my laptop and hard drive into my lap, and the hard drive slides off the desk again. In the same place, and landing the same way.

By this point, I’ve started to give up. Fsck tells me that there is a bad block in the same place, and I check the SMART statistics: 0 Reallocated Sectors.

I write data to the bad sectors to force them to reallocate. This goes on for quite a while (with the badblocks tool, among other things such as creating as many 10GB files filled with zeroes as I could (I got to 6 files of various sizes before the drive began buzzing) and I get up to about 150 reallocated sectors (Or around 90 as a calibrated hard drive value; for the record, the failure threshold is 36. The drive started at 100.).

I decide to back up the data (only one of the actual files on the drive is corrupt; all the damage is in unallocated space) and delete some things I have elsewhere. 156 reallocated sectors.

After backing up the data I decided that it would be best to do a destructive write test. Writing to bad blocks causes the drive’s firmware to reallocate them on a different section of the physical disk.

By the middle of the test (700,000 4096-byte blocks, starting at the first corrupted region), the drive began buzzing again, and when I finally gave up, it had reallocated about 2,100 sectors, and the calibrated value was down to 44.

At this point, I gave up.

Rest in peace, Seagate. You have been with me since I got my laptop. Thanks for all the fish.

On another note, I’m now in the market for a new 2.5″ SATA drive.

UPDATE: The drive is a lost cause. I’m not writing anything to it, and it’s reallocating sectors on its own.

ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE WHEN_FAILED RAW_VALUE
Reallocated_Sector_Ct 0×0033 018 018 036 Pre-fail FAILING_NOW 3282

Powered-on time: 305 days, 6 hours. Rest in Peace.

6 Comments : more...

Windows 7 Beta

by Dustin on Jan.13, 2009, under Windows

I have to say, Microsoft really did a great job here. The beta version of Windows 7 (Build 7000) is far more usable at this stage than Vista ever was. All my issues (see here and here) with Vista are not present here.

Hilights

  • Wireless worked immediately; during setup, no less! (screenshot)
  • All my hardware was detected and drivers automatically downloaded from Windows Update, without my intervention. (screenshot 1: All drivers installed; screenshot 2: Installing my SATA card)
  • User Account Control is 100% less intrusive, and doesn’t hang while blanking the screen.
  • Aero is Beautiful in this release.
  • Paint got a complete overhaul (screenshot: menu) and can do something similar to Word’s AutoShapes.
  • Progress bars in the taskbar. (screenshot)
  • Calculator now has a “Programmer Mode.”
  • It’s fast, in both setup and use.

Minor Issues

  • Address bar icon in IE8 doesn’t support PNG transparency properly. (screenshot)
  • Folders no longer display the size of their contents unless the contents are selected. (screenshot 1: Windows 7; screenshot 2: Windows XP)
  • Paint uses the Ribbon Interface (not an issue, just hard to get used to). (screenshot)

While the beta expires in August of 2009, I foresee great things for Windows 7.

2 Comments more...

WordPress for a New Year

by Dustin on Jan.02, 2009, under Projects

The title says it all; This combines my love of (read: veiled interest in) talking about random things online with my love of having a new toy to play with.

Plus, Howettblog® is now completely located on the HowettNET server!

Leave a Comment more...

iTunes App Store Hacking

by Dustin on Dec.19, 2008, under Hacking

App Store Category List

App Store Category List

Last night, I tried to figure out how the iTunes App Store (as accessed from the iPod Touch) worked.
I was able to simulate the app store experience, and here are the few notes I took on the matter.

All replies from the App Store are gzip-compressed.
If any of these steps fails, the connection is terminated.

  1. The device queries phobos.apple.com for a “bag” (ix=2), which contains a signature and a signing key.
  2. The device sends a non-binary plist (XML property list) of its current applications to a WebObject called “availableSoftwareUpgrades”
  3. The app store replies with a list of all the information for those applications. It is up to the iPod itself to determine whether/not there are upgrades.
  4. Periodically, the device makes a request to metrics.apple.com (which replies 100 Continue instead of 200 OK), which I believe is for stats tracking.
  5. The device reads software categories and loads icons (WebObject viewFeaturedSoftwareCategories)
  6. The device loads the contents of a category (WebObject viewGenre)
  7. The device loads an application’s information descriptor (WebObject viewSoftware). This for some reason contains the text to be used in the price display, as well as the “INSTALL” or “BUY NOW” text.
  8. The device initiated a secure connection to download an application. This is where I had to stop my research, as I couldn’t track this.

Tools used:

  • curl (Commandline URL Fetcher)
  • Wireshark (packet capturer/analyzer)
  • Apache (Web Server, used here to serve fake App Ptore pages)
  • A single firewall rule on my router to redirect all traffic coming from the iPod back to my computer (iptables -t nat -A PREROUTING -s ipod -p tcp -j DNAT –to 192.168.254.1. Note: I couldn’t redirect to a computer inside the router’s network, so I had to hook up via WiFi to the router AND via Ethernet to the modem)
Modified App Store Application

Modified App Store Application

Not much useful information into the app loading process was gleaned from this, unfortunately, though I did manage to snap some “neat” screenshots of my meddling.

Applications are signed, though, so even if this was an exploitable vector, the device would need to be jailbroken first, thus making this useless.
Neat nonetheless.

4 Comments :, more...

If Gentoo Linux were a Car…

by Dustin on Dec.16, 2008, under Humor, Linux

  1. You go pick up an engine (in pieces) and body parts from the central warehouse.
  2. You find that your version of sys-car/transmission is too new and you need to get a newer version of sys-car/engine out of storage.
  3. You put together the engine, transmission, and body. You’re pretty psyched, only to find that you have yet to install car-misc/seats.
  4. You install the seats, but find that the latest version of car-misc/seats does not correctly recognize the human body, due to an incompatibility.
  5. You downgrade car-misc/seats and in the process must downgrade sys-apps/steering-wheel for height concerns.
  6. You install the radio separately, which is the easiest part.
  7. You turn the car on and it explodes.
Leave a Comment more...

Latenight philosophy with DH and DS

by Dustin on Nov.18, 2008, under Philosophy

“Me” is me, “Dustin” is DSollick. Dustin was reading through (and critiquing harshly) a story he wrote.

Dustin: No shit, nothing without life?@!
Me: Actually it’s wrong
Me: :P
Dustin: that too, lifeless worlds
Dustin: lifeless universes
Me: The earth existed long before there was life, for example
Me: indeed
Me: THEN AGAIN
Me: what if all these lifeless worlds and lifeless universes
Me: are just things in our lives? Just things that exist because we, life, observe them?
Me: Sometimes I look in a mirror and wonder how I came to be. How I inhabit this body. What if I inhabited a different body? What recognizes vision and sound and acknowledges it? Is it a mind? Does a mind do that? Or is it the soul. I don’t think you can hook up eyes and ears to a brain and have a person. I don’t think they’ll see the world like any of us. If at all. But what.
Me: What happens when I die? When I am reborn. Do I inhabit another body? Obviously. Do i live through 18 years before I ask the same questions? I had life experiences at 3 that I can’t remember but I know i saw them through my eyes, these eyes. These. Where would they be stored? That says it’s the mind. My soul would remember. Can I tap into that?
Dustin: I wasn’t expecting a philosophical discussion
Dustin: x.x
Me: Neither was I.

Me: is that how it happened
Dustin: yes.
Dustin: XD
Me: in your collective consciousness?
Me: What if we are made up of collective cohesive consciousnesses working as one? Hmm. I don’t feel like multiple people, but what if we are? What if I are? Am? Is.. ? But really.
Me: Interesting thought
Dustin: I’m really glad the 11-page copy I wrote didn’t make it; these are laughable, that one was grimace-worthy
Me: lmao!
Me: Maybe we are mosaics of consciousness. Each part of us coming from a different place. Varying morals. Maybe people get tainted. Maybe serial killers are tainted with a single bad piece. Spreading out like ripples.
Leave a Comment more...

Total: ∞ packages (0 good luck, 1 mistake)

by Dustin on Nov.16, 2008, under Linux

I’d just like to put this out there for everybody…

  1. Make frequent backups. Maybe every month.
  2. Do not, under ANY circumstances, accidentally try to install Haiku to /dev/sda. Ever.

Now that the advice is out of the way, it’s story time!

Yesterday, I was trying to install Haiku to my 512MB flash drive, which, when I plugged it in, got assigned /dev/sdb. The Haiku build system was, at the time set to write to /dev/sda2 (my 3GiB Haiku partition). I deleted the “2″ and went on with my business. I ran jam -q haiku-image to build it.
“Hmm, this is taking a while.”
“dd, wrote 134 MB to /dev/sda”
“/dev/sda?! WHAT?!”
“OH MY GOD!”

It wrote 134 MB of 0×00s to the beginning of my hard drive, clobbering the bootloader, partition table, and the root filesystem of my Linux installation (/dev/sda1).

It also got to the “Populating Image” step, so it was happily chugging along writing a Be File System over my entire hard drive and filling it with Haiku data.
^C!

Programs still ran, not all the files on / were lost, and I was in a state of panic.
One reboot later confirmed the obvious – no more system. Also, no more files in /. The filesystem layout was in memory, and I should have taken the time to recover some of the data before I reformatted.

fsck told me that /usr was trashed.. /usr is like “Program Files” and more for Linux… Random data written in random places on a volume is… bad ;)
/ was definitely a goner…
/home somehow survived, guaranteeing that my 8 years-worth of data would stick around for a while longer!
Fortunately, I had backups from August 15th!
Unfortunately, they were from August 15th. That means 3 months worth of upgrades to do…

Restored / and /usr, some of /var (installed package database only), and went to work upgrading.

500 compiled and installed packages later (the last of which are still going) and Jesus is… Well, for the situation, I have to say he’s done pretty darn well. Kudos, me.

Once this is all done?

BACKUP TIME!

I think I need a NOS.

Leave a Comment : more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...