itheme

Currently my blog theme is itheme from N.Design Studio. You can download it at this link: http://www.ndesign-studio.com/wp-themes/itheme. If you try to install it yourself, you will notice something is missing. Exactly, the calendar icon is missing, and the date is not showing. Being a lazy programmer, it was ok for me at first. But after a while it bothered me so much that, I was so determined to fix it. It took me a while, but it’s worth it! ;) ...

July 21, 2010 · 2 min · birdchan

00020970-0000-0000-C000-000000000046

Are you getting the following error? Unable to cast COM object of type ‘Microsoft.Office.Interop.Word.ApplicationClass’ to interface type ‘Microsoft.Office.Interop.Word._Application’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{00020970-0000-0000-C000-000000000046}’ failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA). If so, no need to freak out. Basically, your COM object, in this case the Word application is missing. To debug, make sure you don’t accidentally close/quit this Word app object before making your API calls to it. ...

July 8, 2010 · 1 min · birdchan

itunesconnect error

Since my iphone OS got upgraded to iOS 4, I had to upgrade my Xcode as well… I just installed the latest Xcode 3.2.3 from xcode_3.2.3_and_iphone_sdk_4__final. It took out my previous SDK versions, and now I only have 3.2 and 4.0 left. It took me a while to fix all the framework paths. For your convenience, right click on a red framework, then choose General, for Path Type choose Absolute Path, then navigate to the following path to re-select your framework paths. /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/System/Library/ ...

June 24, 2010 · 1 min · birdchan

Saying no to UML

I have been reading some articles on UML and how nice it is to draw the initial picture of the whole system design. There are claims that say there are some tools out there that automate code generation to create empty classes and methods based on the UML diagram. What a novel idea! So I went and hurt for “those tools”. To my disappointment, I found many “old websites” and dead links… a domain was on sale as well… This doesn’t look exciting… ...

May 13, 2010 · 4 min · birdchan

CLLocationManager error

This happened to me while debugging an iphone app with CoreLocation. I got crashes consistently. Then I started paying more attention to the console output, here is the error message: ERROR,Time,290362745.002,Function,“void CLClientHandleDaemonDataRegistration(__CLClient*, const CLDaemonCommToClientRegistration*, const __CFDictionary*)",server did not accept client registration 1 WARNING,Time,290362745.005,Function,“void CLClientHandleDaemonInvalidation(__CFMessagePort*, void*)",client 1035.0 has been disconnected from daemon That doesn’t make much sense… ^^; Then I realized I kept saying no to the pop up question “Would Like to Use Your Current Location”. I tried saying “OK”, then everything worked. No more errors. ...

May 6, 2010 · 1 min · birdchan

Pulling from Git

Perhaps Git is still new, I couldn’t find any one-click solutions to simply pulling a copy from a git repository in osx. If you are new to git, and you are a osx user, and you just want to pull the latest code from a repository, you are at the right place. I will show you the quickest way to do just that. 1. First download git-osx-installer at http://code.google.com/p/git-osx-installer/ 2. Install it (you will need root login). After that, you should have /usr/bin/git 3. Say you want to pull from git://github.com/omz/AppSales-Mobile.git 4. Make a directory, for example: mkdir myApp 5. cd myApp 6. At this point, you would want to do a “git clone git://github.com/omz/AppSales-Mobile.git”. However, I bet you will get some error messages. So read on. ;) 7. Type “locate git-core”, check to see that you have “/usr/local/git/share/git-core/templates/”. 8. Type “locate index-pack”, check to see that you have “/usr/local/git/libexec/git-core/git-index-pack” 9. Now, set the path: export PATH=/usr/local/git/libexec/git-core/:$PATH (or wherever git-index-pack is located at from step #8) 10. Issue this command: git clone --template=/usr/local/git/share/git-core/templates/ git://github.com/omz/AppSales-Mobile.git ...

February 10, 2010 · 1 min · birdchan

Sorting

A nice video on comparing bubble sort and quick sort. [youtube &hl=en_US&fs=1&] http://www.youtube.com/watch?v=vxENKlcs2Tw Another video on merge sort. Nice job! [youtube &hl=en_US&fs=1&] ...

December 28, 2009 · 1 min · birdchan

Hollow breakpoints...

While trying to pinpoint where a bug was in VS.NET 2008, the breakpoints I set became hollow… I was like @#$%#$%^#$. The error message is “Breakpoint will not currently be hit. No symbols loaded for this document.” So I was like, easy, just delete all the temp files and restart. Well, not that easy, the breakpoints decided to stay hollow… Call me stupid, I try that again, still the same. ...

August 28, 2009 · 1 min · birdchan

Microsoft.Office.Interop.Word

If you keep getting the following error message in vb.net, you are not alone: Could not load file or assembly ‘Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified. Usually, what happens is your code works perfectly fine in your dev box, but your clients report getting the error above. Don’t waste time on debugging at your dev side, because the real issue is that your clients are missing some dll files due to different licenses. ...

July 13, 2009 · 1 min · birdchan

Foo and Bar

For some reasons, today I finally had the mood to look up the origin of “foo” and “bar”. For those of us who write programs, in many if not all programming books we often see variables and functions or even classes named “foo” or “bar” without further explanations. The more you read the more you ignore this innocent question “why foo and bar?” It turns out foo and bar are from the acronym FUBAR. It means, well, why don’t you check out the full meaning here: http://weblogs.asp.net/jasonsalas/archive/2004/05/19/134665.aspx . ...

February 18, 2009 · 1 min · birdchan