vankuik.nl RecentChanges 2014-11-01 XML TXT

vankuik.nl

Latest weblog entries

2014-10-18 Remapping your keyboard in OS X Yosemite

If you want to remap your notebook's or external keyboard, there's an excellent and free choice available: Karabiner from the friendly Takayama Fumihiko.

Upon upgrading OS X yesterday, I found it worked straight away in Yosemite as well.

Besides remapping the obvious keys, if you would like to remap that useless Caps Lock key on OS X, get Seil.

2014-10-09

On iOS 8, user permission is required for scheduling local notifications (of class UILocalNotification). Here's an Objective-C example.

To check whether you have permission:

  - (BOOL)appHasPermissionForLocalNotifications
  {
      UIUserNotificationSettings *settings = [[UIApplication sharedApplication] currentUserNotificationSettings];
      if(settings.types & (UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge)) {
          NSLog(@"Permission present: 0x%ulX", settings.types);
          return YES;
      } else {
          NSLog(@"Permission not present: 0x%ulX", settings.types);
          return NO;
      }
  }

To request permission:

  [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];

2014-09-26 Tomcat error on Ubuntu 14.04

If you upgraded Ubuntu to 14.04 and you've got Tomcat running, chances are that you get the following error in catalina.out:

 SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-80"]
 java.net.SocketException: No such file or directory

Solution is here:
Tomcat7 bind to port 80 fails in ubuntu 14.04lts

2014-09-03 iStat Menus 5

Bjango released iStat Menus 5. I really like this app, but found a minor issue today. I've already sent the folks an e-mail, but for the sake of the internet, I'm documenting it here as well.

iStat Menus can show a graph of your CPU usage along with a nice quick lookup table with the most busy process. It seems it tries to do something helpful with the process name, but in the case of ClamXav, a free and open source virus scanner, it says: ScheduleHelper. The process name in Activity Monitor is more to the point: clamscan.

istat menus process comparison.png

2014-07-25

Today, I found out that on Debian Wheezy, when using XFCE on the desktop and accessed via VNC, the Tab key is disabled for some reason.

Solution is here.

More...

Weblog Archive

Weblog entries 2014

Weblog entries 2013

Weblog entries 2012

Weblog entries 2011

Weblog entries 2010

Weblog entries 2009

Weblog entries 2008

Weblog entries 2007

Weblog entries 2006

Weblog entries 2005

Weblog entries 2004

All weblog entries

Articles

Articles, chronologically (latest first). This is pretty old stuff.

Scribblings

Not yet finished. Maybe will never be finished. Maybe they'll get deleted. Who knows?

Programming:

System administration:

Others:

Files: