mail issue with iphone software 2.0 and jailbroken phone
July 10th, 2008
Until a recently my phone was jailbroken, in order to run apps like Twinkle and Go. Earlier today I upgraded to the leaked 2.0 firmware. The upgrade itself went without a hitch, and everything seemed to be working. That is until I tried to start the Mail app. It immediately closed. It seemed like Mail was crashing due to permissions or settings. Here are the steps I tried that failed:
- Disabling the account
- Deleting the account
- Re-upgrading the phone
- Running Setting Reset on the phone
- Running Full Reset on the phone
- Attempting to downgrade to 1.1.4 (the downgrade failed every time)
Here's what worked:
- Re-upgrade the phone. don't restore from a back up or select setup new, yet
- open Terminal.app
cd ~/Application Support/MobileSync/Backup cd <newest folder here> grep Accounts *|cut -d' ' -f |xargs rm
- Reconnect the phone and restore the backup you just messed with
hardware issue weekend
April 14th, 2008
This weekend I relocated myself and my servers to our temporary stomping grounds. Everything went without a hitch. Except of course for my main server, the trusty dual p3 800 machine that has hosted hasno for a long time. Luckily the drive array was not troubled by the loss of it's brainier compatriot. I picked up a nice new core2duo e6550 and mobo at a local store and had it up and running later in the day. Things are a lot speedier with current hardware. Rest in peace my 800mhz friend.
In addition to the server hardware troubles, my macbook's hard drive has yet again. This is my third hard drive failure. Hitatchi's 160gb sata drives are krud. The laptop itself is great, I just wish I didn't have the hard drive dying every 3-6mo. At least the server migration went through without data loss, I guess I'll just focus on the bright side of the weekend.
As a side note, cablevision can't and won't maintain static ip addresses through a move. So if your a business user hosting content at your office, expect longer downtime due to dns propagation and ip address setup snafus when moving. Make sure you have them unblock ports 80 and 25, since by default on all new ip setup they block them even if they were unblocked for your account previously.
Subversion on Windows with TortoiseSVN
February 19th, 2008
It's my first foray into screen casting, hopefully people find it useful. I cover setting up a subversion repository, accessing the repository, putting things into the repository and some other items. I tried pushing this to Google video, but it consistently mangled the text. I'll give it a shot again once I have some time. Any feedback or requests are welcome.
For those of you with ipods, here's an ipod friendly version.
windows vim 7.1.212
January 28th, 2008
I've finally gotten around to rebuilding my windows vim install with the latest patches. I tested it on my work machine and laptop's vmware image. It's built with huge, ruby, python, perl, and IME (multibyte). The binaries are optimized for pentium4+ machines with SSE2. You can get the installer here.
ms word is bad for documentation
December 31st, 2007
Every time I have to document code or architecture in Word, I get upity. It's not that Word isn't good for creating documents, it is in fact great at creating nice looking documents. The problem is that code is a living creature, and word documents generally aren't. They are written and forgotten, filed away and lost. I generally envision the giant storage warehouse from Raiders of the Lost Ark. 
So like many other developers I push for documentation via wiki. Depending on your environment this may hard to accomplish. If your lucky enough to be using subversion for version control, then you can just setup trac. Trac just happens to provide everything one would need for a lively quick moving project, a wiki, subversion browser, ticket management, and wiki syntax linking them all. The wiki-ticket integration is great for impromptu code reviews. Not to mention the RSS feeds with links to changesets.
So far trac has been a hit at every place I've worked. It takes a culture change, but it's worth it. Give it a try if you haven't already. If your coming from in-house sharepoint and sourcesafe pairings, it'll be a refreshing change.
svn windows crashing (rapidsvn and ankhsvn)
November 2nd, 2007
At work I end up using a Windows 2k3 machine for development. I have a personal svn repository setup for my projects, which I end up merging into vss (which is the suck). I tried installing Ankhsvn, an addin for visual studio enabling svn integration, and I tried rapidsvn. Both programs crashed due to some interaction with my system. Some googling brought back some stuff about the version of svn being a problem. That was wrong.
It turns out that the iconv libs provided with the svn install I used were not compatible with the other apps. Not sure why. I noticed this when I checked out the app with Process Explorer and saw APR_ICONV_PATH=c:\program files\subversion\iconv. Once I saw that I tried the debug build of svn from tigris and everything started working except the old subversion bins. Anyway, if you run into a null pointer error (exception) stemming from libapriconv.dll or libapriconv-1.dll, try replacing the subversion bins and libs.
technorati claim
October 23rd, 2007
lemontastic macbook woes
September 26th, 2007
My poor little macbook is once again in the throws of hard drive failure. I returned from lunch and attempted to unlock the screensaver, to find that bringing up the login dialog took ~2 minutes. The only large processes running at the time were firefox and azureus on a machine with 2gb of ram. When I was finally able to login, I noticed an error message from azureus regarding failed writes. At that point, I craned my head towards where the hard drive was located. That tell-tale click-grind-whir noise was repeating softly above the fan noise. I figure, I have maybe a day before this thing kraps itself. Time to make a backup and start calling Apple. Unfortunately this always seems to happen when I am about to travel somewhere. I love this little laptop more than my old pb 12", which was a great little machine. Hopefully apple will just replace it at this point, since I've had it less than one year and have had the hd logic board and fan fail before this.
<update>I've spoke with apple yesterday, and the tech was adamant about me running DiskUtility's verify. I didn't want to do that before attempting to backup the latest changes to the machine. I do have a backup from 3 weeks ago, but it's missing a vm that I would like to have. So I left the machine attempting to copy that vm and a few other files overnight. When I woke up ~6hrs later, it was still "working", but the UI was not responsive. So I turned if off and on again (The IT Crowd...). The wonderful missing OS screen was what I got in return.
I contacted apple this morning and was told that since the part hadn't failed 3 times, I couldn't just get a laptop replacement. This means that to date I have had 16 days of downtime with this laptop due to hardware issues. Let's assume that it will take 5 days to get me the new part. I think that's a fair assumption since it's Thursday. That will mean 21 days with out the laptop, in less than one year. Let's figure out what the availability of the laptop is. Google tells me that 1 month = 30.4368499 days. Ok, so I've had it since January, so that's 9 months or 273 days. So it seems like I have been with out the laptop 7.69% of the time since I got it. Great, so conversely it's been functional 92.31% of the time. This only ever happens before I travel, it's like the macbook is protesting.
dav svn finally
September 21st, 2007
I took a moment yesterday and tooled around with my apache setup in order to get dav svn up. Directory listing is currently denied as I have projects in there that aren't public. The SVNListParentPath directive doesn't seem to operate properly unless I grant read to /, which then exposes the file structure of everything in the repository. The actual files can't be read as Authz is setup and actually kicks in when you try to access the files past the first level of a project ( say /mystuff/a_file ). My searches on the subject haven't been very enlightening, if anyone's dealt with a similar setup I'd appreciate any tips. This was primarily motivated by experiences with web-only proxies at some sites.
That all being said, here's a list of the trees currently:
- http://svn.hasno.info/ruby-hl7 is the hl7 tree
- http://svn.hasno.info/mephisto is my mephisto trunk and mephisto plugins
- http://svn.hasno.info/fastxml my little hpricot-like libxml library
now serving 40 of 326 (dmv podcast?)
September 19th, 2007
isp change update
September 6th, 2007
isp change
August 6th, 2007
compounded errors
June 21st, 2007
I've recently purchased a Motorola Razr v3xxx (did they really need all those x's?) in order to get access to 3g wireless. I'm coming from a Razr v3, so the interface is familiar, and the phone seems fine. Except of course for the crashing. Anything involving data transfer will eventually cause this thing to crash. Hard, as in the softkeys no longer respond to anything. The only resolution is to pull the battery. If that weren't enough, this has unearthed an issue with pppd on my macbook.
Apparently the osx is none too fond of bluetooth devices disappearing. The ppp daemon sits in a perpetual "Disconnecting" state. Killing the process results in a zombie. I'm not certain what the Internet Connection tool checks to find the current status of the bluetooth connection, but it is inextricably linked to the pppd process which is itself stuck. At this point this requires me to reboot the macbook in order to reconnect to the net.
I wonder if anyone else has run into this pair of issues, then again this may be one of those ultra niche things. How many people could there be using bluetooth to ride their phone's network connection?