Monthly Archives: January 2012

Duration to execute code in Objectice-C

This code snippet outputs the time which is needed to execute some code.

- (void)someAction {

  // save current time
  CFAbsoluteTime startTime = CFAbsoluteTimeGetCurrent();

  [self someAwesomeAlgorithm];

  // print time difference to console
  // output Example: Took 0.000078 seconds.
  NSLog(@"Took %f seconds.", (CFAbsoluteTimeGetCurrent()-startTime));
}
Share

Mac / iPhone / iPad programming ressources list

I started to build apps for the iPhone. Here are some ressources which are useful to know.

Tutorials

Code snippets

Communities

 

List will be extended. If you know additional links, post them in the comments, I will add them.

Updates:

  • 2012-01-08: Added code snippets, video tutorials
  • 2012-01-10: Added code snippets, communities
  • 2012-01-14: Added code snippets, tutorials
Share

URL-Fingerprinting für optimales Cacheing

Mit Hilfe von URL-Fingerprinting ist es möglich, Dateien sehr lange zu cachen (für ein Jahr), jedoch auch gleichzeitig eine Änderung ohne Wartezeit zu publizieren. Was darunter genau zu verstehen ist und wie eine Implementierung aussehen könnte, zeigt dieser Artikel auf.

Read more »

Share