Unlikely Teacher

1. Share Everything* [Programming Gotchas, Technology News, Insights on Living and Everything in Between]

Entries Tagged as 'Programming'

System.InvalidProgramException: Invalid IL code

September 3rd, 2010 · No Comments · Dotnet

I created a program in VB Express, tested it and added the application to our daily ANT build using Mono. I then made some modifications and re-compiled with mono. The compile process went well and the program was able to start properly. But when it reached a certain part of the code, I got the [...]

[Read more →]

Tags: ··

Apple Push Notification: Failed to register with error: Error Domain=NSCocoaErrorDomain

April 5th, 2010 · 1 Comment · Objective-C

I’m currently working on getting Push Notifications to work in my test application using Urban Airship’s service and got this message: Failed to register with error: Error Domain=NSCocoaErrorDomain Code=3000 UserInfo=0×117520 “no valid ‘aps-environment’ entitlement string found for application” I searched the web and most of the blogs/tutorials I found mentioned that I needed to create [...]

[Read more →]

Tags: ··

Unable to read a jre library while constructing the blacklist

December 30th, 2009 · 3 Comments · Java, Mac OS X

Yesterday I started playing around with Google App Engine and Java. Today, when I tried upgrading the JDK/VM that Google App Engine is using from Eclipse Galileo to Java 6 in Mac OS X, I got the error below: com.google.appengine.tools.development.agent.impl.BlackList initBlackList SEVERE: Unable to read a jre library while constructing the blacklist. Security restrictions may [...]

[Read more →]

Tags: ··

Extra Space (20px) in iPhone OS 2.2.1 Nav Bar

July 1st, 2009 · No Comments · Objective-C

I currently have an iPhone application which has 4 tabs, when I click any of those tabs, the application should show a new view with a Nav Bar which then contains a table view. My problem: there was blank space (about 20 pixels) showing between the status bar and the Nav Bar. I tried looking [...]

[Read more →]

Tags: ·

Learn Objective–C on the Mac eBook for $10

January 8th, 2009 · 1 Comment · Books, Objective-C

For those interested in joining the IPhone development craze then this book might be the one for you. You can get the eBook version from the Apress daily deal site for only $10 for the next 24 hours.

[Read more →]

Tags: ··

Flex/Flash navigation link problems in Mac OS X

November 14th, 2008 · 1 Comment · Flex, Mac OS X

I’ve had one of the weirdest problems last week when a friend reported that our newly designed navigation menu created in Flex was not working on her MacBook. Basically, I had a couple of moving Flex Canvas’s where I attached mouse click events. private function homeClicked(evt:MouseEvent):void { getURL('/'); } private function updatesClicked(evt:MouseEvent):void { getURL('/category/updates'); } [...]

[Read more →]

Tags: ····

Free Alternative to Flex Builder

September 26th, 2008 · 12 Comments · Flex, Tools

It’s been a long time since I last played with Flex. I feel like starting from square one. This also means that I have a more difficult path ahead of me, with my Flex Builder trial license already expired. Fortunately, it’s not that hard to setup basic mxml auto complete functionality with a plain Eclipse [...]

[Read more →]

Tags: ·····

Mapping IP addresses to locations

August 8th, 2008 · No Comments · Programming, Tools

From the August issue of the JavaRanch Journal: Have you ever wondered how some websites are able to determine where you visited from? It all begins with the IP address that you belong to when you connect to the internet. Every time you log onto the internet your ISP assigns an IP address to you. [...]

[Read more →]

Tags: ·

Eclipse 3.4 (Ganymede) – Managing Extension Locations

June 26th, 2008 · 22 Comments · Programming, Tools

Upon installing Ganymede, I immediately tried looking for the “Manage Configuration” option to install the plugins I have configured in an “Extension Location”. (see Europa screen shots below) Help > Software Updates > Manage Configuration Add Extension Location But to my surprise, that option is no longer available in Ganymede! Instead you need to click [...]

[Read more →]

Tags: ··

Does Certification Help?

May 21st, 2008 · 2 Comments · Dotnet, Flex, Java

I was recently asked by a fellow Ranch Hand (through Private Message) regarding my take on Certifications. Subject: Does Certification Help? Message: Hi, I have done SCJP, SCWCD and will now give SCBCD and then SCEA. You have done these certifications. Does these help in career? Which country do u reside and what technology u [...]

[Read more →]

Tags: ··