Tuesday, March 03, 2009

Unrecognized selector sent to instance

As you may or may not know, I do iPhone/Cocoa touch now...

While playing around with something this evening I stumbled across something I thought I'd share:

I received the following error in my Xcode console: "EXC_BAD_INSTRUCTION". More specifically the following was the message: "unrecognized selector sent to instance 0x52d960"...

After looking for some answers in my code and debugging through it, I came across this. When you build in Xcode by using cmd+B you apparently don't build (rebuild that is) the entire solution, but only the classes changed since last build. In my case the above error arose because the class I was working on, "A", called a method on another class "B" further calling a method on a class "C" that had changed signature. "A" was compiled with no errors, and "C" too. But "B" wasn't, and the erroneous method call wasn't caught by the compiler... I did a clean and then a build againg and the coding error was caught.

Just a little something to remember when working with Xcode.

Sunday, December 07, 2008

The votes are in...

.. And the results are good! Hello Group won the Adobe MAX Award they were nominated for!

The rich internet application MyHome won the award in the "envision" category. Read more about it on Hello's web site: http://www.hellogroup.com/max2008/

Congratulations to the team behind it - nice work :-)

Tuesday, November 25, 2008

Hello Adobe MAX

So stuff is happening. The Adobe MAX tour has started, and some good news has already come from it:

Hello has submitted a project to the Adobe MAX Awards 2008 and it has made it to the finals! The project is called "MyHome" (MinBolig) and has been developed in collaboration with the Danish Electricity Savings Trust (Elsparefonden).
You can vote for it, and make it win. Wouldn't it be cool to have a Danish project win the European Adobe MAX Awards. Vote here:
https://www.adobemaxsubmission.com/viewer/?projectid=96&location=EMEA

Oh, and Hello has already won a MAX Award for Best Enterprise Application, with Nasdaq:
http://max.adobe.com/blog/2008/11/max-awards-2008-nasdaq-market-replay.html

Thursday, October 09, 2008

Exciting new videos

In the last few weeks, a lot of new videos have been posted to Channel9, Microsofts portal for spreading the word about new software...

A lot of the posts are from the JAOO conference, which was held here in Denmark not too long ago. And just like last year, I've seen almost all the videos, and found the pretty cool. It seems like a lot of the videos are about programming languages and/or parallelism, and the evolution in those fields - very intriguing!

Maybe JAOO is a conference I should attend next year.

Anyway, check it out at http://channel9.msdn.com

Tuesday, September 30, 2008

I'm online again!

I recently moved to a new apartment (in beautiful Frederiksberg) and have thus been without Internet for a couple of days - you know how it goes.

Then yesterday I received a letter from my ISP saying my Internet connection was switched on and that I could start using it. I didn't have time to try it then, and haven't until now. There were problems, however. The ISP (ComX) has a website where all "clients" to your Internet should be entered with their MAC address. I did that with my AirPort Express, using the MAC address that Airport Utility would show me, bu that didn't work. After reading a few forums and thinking and swearing, the solution was to use the right MAC address. Not meaning I "misspelled" the address, but apparently wireless routers have two MAC addresses - one for WAN and one for LAN. The one I saw in AirPort Utility was the LAN one, and the ISP wanted the WAN one...

But it works now!!!

Thursday, September 25, 2008

The group finally says hello!

After having been officially merged for a couple of months, Hello Group (formerly HelloWeb, HelloGroup, HelloBrand etc...) has released a web site!

Be sure to check it out here:

www.hellogroup.com

I find it pretty neat! I'm in one of the videos - see if you can spot me :-)

If you don't already know it, I do a lot of work for Hello Group, and I'm proud to say that I've been doing some of the finishing touches on the site. I've developed a new plugin for the site - which is running on the Wordpress blogging engine.

Saturday, September 06, 2008

Auto XML sorted

I've been fighting a bug for some hours now bug have finally found the solution!

Here's the deal: I've developed a tool to import the contents of some files into a database. Furthermore there is a UI for CRUD'ing the now database content. The problem was, that when I imported from more than 10 files (don't know why this exact number, it's purely empirical) the data would show up pretty strange. It should have a format like this:

1 (count: 34)
3 (count: 54)
2 (count: 20)

But instead it was showing:

1 (count: 1)
2 (count: 1)
1( count: 1)
1 (count: 1)
3 (count:1)
... etc.

Weird!

At first I was looking at the import tool - I must have made an error somewhere, but no. The solution was to sort the data! The stored procedure selecting the data uses FOR XML AUTO to generate a hierachical structure, and somehow that twisted the data. But after adding "ORDER BY ColumnName" to the SQL it comes out right!

I don't understand why yet - and can't find any other posts regarding the same topic....