Copenhagen Cocoa

Spilling the Beans

Asian Sensation

June 26th, 2010


Some of may have heard, but now it is 100% certain, from September to February I will be in Hong Kong and India as a volunteer for Areopagos.

I will be involved in social-work, and through my work learn about Asian culture, spirituality, and religion.

I am looking forward to seeing the world from a totally new perspective, and I hope I will learn much on my trip, about people, Asia, culture and God.

What about CCDC 2010?

Well I am still doing all I can to get it up and running, and I hope I can have a date soon, so I can host the event before my departure, for this I need strong support from the community, keep your weekends in late August and early September open, I will announce a date, as soon as possible.

Like last year CCDC will have a low entry-ticket, and I hope to get just as terrific speakers.

This year I will hand out the Copenhagen Cocoa Award, to the Scandinavia-based group/individual who since last year, has made a lot of cool contributions to the iOS platform.

I am accepting nominations from now, and you are more than welcome to nominate yourself, all nominations should be sent to: nominations@copenhagencocoa.com.

What about NSCoder Night?

I hope I can find an appropriate steward to host NSCoder Night while I am away, this person will have accesses to the blog, and will be posting event details.

| Permalink |

Writen by: Aron Allen

NSCoder Night this Evening

June 22nd, 2010


Remember NSCoder Night this evening (22nd of June) 19:00, we meet at Café Retro, Knabrostræde 26.

Bring your Mac and come code with friends.

| Permalink |

Writen by: Aron Allen

Where is the Language Key?

June 17th, 2010


One of the greatest UI innovations on the iPhone software keyobard, is the dedicated language key.

Never before has it been so easy to change keyboard layout and dictionary.

It makes me wonder where the dedicated language key is on normal PC’s, it would be so convenient to toggle languages with a dedicated hardware button.

Being bi-langual I am growing tired of OS X, red lines, it does not detect language very well, and even when you change the dictionary, and your word is spelt correctly, it will only check the word again if you click it.

Another annoyance is iWorks unorthodox way of handling spell checking, it is tied to the specific style of the paragraph, this may be a great idea in documents containing more than one language, but most documents contain exactly one language, and therefor the default should be the change the dictionary document wide.

Would it be possible to override the functionality of Caps Lock, and instead use it as a dedicated language key, coupled with a nice UI overlay? It could be most useful.

| Permalink |

Writen by: Aron Allen

NSCoder Night This Evening

June 15th, 2010


Remember NSCoder Night this evening (15th of June) 19:00, we meet at Café Retro, Knabrostræde 26.

Bring your Mac and come code with friends.

| Permalink |

Writen by: Aron Allen

CocoaHeads Summer Finale

June 7th, 2010


CocoaHeads is hosting their last event on this side of August, the last event will take place tomorrow (8th of June), in Copenhagen.

The agenda is to watch todays keynote together.

Head over to their Google Group to sign-up!

| Permalink |

Writen by: Aron Allen

I Am Flattred

June 3rd, 2010


I have just implemented Flattr properly, Flattr is a project to ensure easy micro-payment for content you like online. The idea is you choose a monthly amount you want to spend (as low as 2€), your amount is then divided between the posts you have Flattred during the month.

Flattr is still in closed beta, the notorious @brokep is part of the team, and he occasionally tweets invite codes (that is how I got in).

| Permalink |

Writen by: Aron Allen

Proper Short Domain Behavior

June 3rd, 2010


Morten Kaltoft (@owix) informed me of problems with my short domain name setup, Google punishes double content posting, and it appeared I was doing so.

After some searching, i found a helpful post by Gruber. Now any request on the short domain “cph.cc” will redirect to the longer “copenhagencocoa.com” with a proper 301 response. It took some time to get working, since I have never messed with mod_rewrite before, nor regular expressions, if you are experiencing similar problems for your domain, you can add this at the top of your .htaccess file:

#Rewrite short domain
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?shortdomain\.com$
RewriteRule (.*) http://longdomain.com/$1 [R=301,L]

A run through of the code might be in order, the first two lines are mandatory, the third line is the condition for the execution of the fourth line.

‘%{HTTP_HOST}’ fetches the domain the user requested, if it matches the appending regular expression, the fourth line will be executed.

The appending regular expression requires some explanation. The ‘^’ signifies the beginning of the expresion. The ‘(www\.)?’ signifies that the expression will return true regardless of a prepending ‘www’.

‘shortdomain\.com’ describes the domain we are trying to match, and the concluding ‘$’ ends the regular expression.

The reason we write ‘\.’ instead of just plain ‘.’ is that the dot-character is reserved in regular expressions, it signifies any single character, by prepending the backslash we ensure that we are only looking for the dot-character.

The forth line will replace the entire URL ‘(.*)’ with the the new domain, the $1 inserts the tail of the URL (anything after the TLD). ‘R=301′ sends the proper HTTP response (moved permanently), and the L ensures we do not execute any following rules, this is to avoid daisy-chaining rule execution, if other rules are present in the .htaccess file.

| Permalink | 1 Comment

Writen by: Aron Allen