amazing development » Computer http://amazing-development.com ruby, java and the rest Fri, 29 Nov 2013 18:57:08 +0000 en-US hourly 1 http://wordpress.org/?v=3.4.2 Unblock-us for Mac OS http://amazing-development.com/archives/2012/03/07/unblock-us-for-mac-os/ http://amazing-development.com/archives/2012/03/07/unblock-us-for-mac-os/#comments Wed, 07 Mar 2012 19:32:04 +0000 Frank Spychalski http://amazing-development.com/?p=540 I’ve been using unblock-us for some time (update: at the time I wrote this article I was creating a trial account every week, but after a few months of flawless service I decided it’s time to become a paying customer, which I am since April) and took only a few precautions like not signing in to any service but hulu.com while using this other DNS service.

Yesterday Damon wrote a great article on how to secure your system for unblock-us and I followed his lead.

My only machine runs Mac OS, so I had to do a bit of research…

Step 1: run bind

Following these instructions:


sudo -s
rndc-confgen -b 256 > /etc/rndc.conf
head -n5 /etc/rndc.conf | tail -n4 > /etc/rndc.key

Make sure the ports match.


launchctl load -w /System/Library/LaunchDaemons/org.isc.named.plist
echo "launchctl start org.isc.named" >> /etc/launchd.conf

Step 2: configure

I didn’t need any fancy setup, so I pasted everything into /etc/named.conf:


//
// Include keys file
//
include "/etc/rndc.key";

// Declares control channels to be used by the rndc utility.
//
// It is recommended that 127.0.0.1 be the only address used.
// This also allows non-privileged users on the local host to manage
// your name server.

//
// Default controls
//
controls {
 inet 127.0.0.1 port 54 allow {any;}
 keys { "rndc-key"; };
};

options {
 forwarders {
  8.8.8.8;
  8.8.4.4;
 };

 listen-on-v6 { ::1; };
 listen-on { 127.0.0.1; };
};

zone "hulu.com" {
 type forward;
 forwarders {
  208.122.23.22;
  208.122.23.23;
 };
};
zone "unblock-us.com" {
 type forward;
 forwarders {
  208.122.23.22;
  208.122.23.23;
 };
};

Step 3: verify

Check for typos in the configuration:

named-checkconf /etc/named.conf

and check if we get new results. Before nslookup returned:

$ nslookup hulu.com
Server: 10.255.255.4
Address: 10.255.255.4#53

Non-authoritative answer:
Name: hulu.com
Address: 63.150.131.26
Name: hulu.com
Address: 63.150.131.11

Now I get:

# nslookup hulu.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: hulu.com
Address: 184.154.113.147
Name: hulu.com
Address: 50.22.86.53
Name: hulu.com
Address: 173.208.155.19
Name: hulu.com
Address: 173.208.170.19

]]>
http://amazing-development.com/archives/2012/03/07/unblock-us-for-mac-os/feed/ 0
How to set up your own dyndns server (simple!) http://amazing-development.com/archives/2012/02/13/how-to-set-up-your-own-dyndns-server-simple/ http://amazing-development.com/archives/2012/02/13/how-to-set-up-your-own-dyndns-server-simple/#comments Mon, 13 Feb 2012 21:03:25 +0000 schlumpf http://amazing-development.com/?p=524 This post has moved to http://ujap.de/index.php/view/DyndnsServer.

Please update your bookmarks.

]]>
http://amazing-development.com/archives/2012/02/13/how-to-set-up-your-own-dyndns-server-simple/feed/ 2
Cups and duplex banner pages http://amazing-development.com/archives/2011/07/26/cups-and-duplex-banner-pages/ http://amazing-development.com/archives/2011/07/26/cups-and-duplex-banner-pages/#comments Mon, 25 Jul 2011 23:43:09 +0000 schlumpf http://amazing-development.com/?p=511 This post has moved to http://ujap.de/index.php/view/CupsBanner.

Please update your bookmarks.

]]>
http://amazing-development.com/archives/2011/07/26/cups-and-duplex-banner-pages/feed/ 0
pgrep or pkill sometimes do not find process http://amazing-development.com/archives/2009/10/15/pgrep-or-pkill-do-not-find-process/ http://amazing-development.com/archives/2009/10/15/pgrep-or-pkill-do-not-find-process/#comments Thu, 15 Oct 2009 10:07:33 +0000 Frank Spychalski http://amazing-development.com/?p=415 The usual problem: you want to kill a process.

$ ps aux | grep randomprocessname
psycho 20429 0.0 0.0 11824 1580 pts/7 S+ 12:00 0:00 /bin/bash ./randomprocessname
psycho 20528 0.0 0.0 4188 740 pts/17 R+ 12:00 0:00 grep randomprocessname
$ pkill -9 randomprocessname
WTF? Kill that sucker!
$ pkill -9 randomprocessname
No typo... Am I crazy?
$ pgrep randomprocessname
What's wrong?
$ pgrep randomprocessna
20429
$ pkill -9 randomprocessna

For some arcane reason pgrep/pkill matches only the first 15 characters.

]]>
http://amazing-development.com/archives/2009/10/15/pgrep-or-pkill-do-not-find-process/feed/ 2
Android G1 gprs setup for simyo with 1gb data plan http://amazing-development.com/archives/2009/03/03/android-g1-gprs-setup-for-simyo-with-1gb-data-plan/ http://amazing-development.com/archives/2009/03/03/android-g1-gprs-setup-for-simyo-with-1gb-data-plan/#comments Tue, 03 Mar 2009 08:52:38 +0000 Frank Spychalski http://amazing-development.com/?p=382 Last week I added the 1gb data plan to my Simyo contract to use the SIM with my Christmas G1. I tried a few configurations I found online for simyo but they did not work for me. After some frustration I tried an eplus configuration and this one finally worked for me:


Name: does not matter
APN: internet.eplus.de
Proxy: <empty>
Port: <empty>
Username: eplus
Password: <empty>
Server: <empty>
MMSC: <empty>
MMS proxy: <empty>
MMC: 262
MNC: 03
APN type: <empty>

Update:

The recommended configuration is:


Name: does not matter
APN: internet.eplus.de
Proxy: <empty>
Port: <empty>
Username: simyo
Password: simyo
Server: <empty>
MMSC: <empty>
MMS proxy: <empty>
MMC: 262
MNC: 03
APN type: <empty>

After the initial success with the eplus configuration, I had some problems with it, too. But I guess these errors were internal eplus network hiccups because they were gone without me changing anything and now both configs work.

]]>
http://amazing-development.com/archives/2009/03/03/android-g1-gprs-setup-for-simyo-with-1gb-data-plan/feed/ 0
Tab + Firefox on OS X http://amazing-development.com/archives/2009/02/26/tab-firefox-on-os-x/ http://amazing-development.com/archives/2009/02/26/tab-firefox-on-os-x/#comments Thu, 26 Feb 2009 17:19:30 +0000 Frank Spychalski http://amazing-development.com/?p=377 A few days ago I finally upgraded my (== my employer’s) Macbook Pro from Tiger to Leopard. Everything worked flawless except for one crazy problem: I could not use to tab key the way I used to in forms. My usual routine of quickly entering username, tab, password, tab, hit return did not work anymore. I searched through the Firefox settings but couldn’t find the “Drive psycho crazy”-option.

But thanks to the omniscient internet I found a solution. At the bottom of the “Keyboard & Mouse” preferences page is a setting which allows you to navigate only between text boxes or between all controls. I don’t know who came up with the great idea that the default should be “text boxes and lists only”, but I guess the mighty Steve knows what he is doing.

]]>
http://amazing-development.com/archives/2009/02/26/tab-firefox-on-os-x/feed/ 0
Pair Programming killed the Uber-coder… http://amazing-development.com/archives/2009/02/21/pair-programming-killed-the-uber-coder/ http://amazing-development.com/archives/2009/02/21/pair-programming-killed-the-uber-coder/#comments Sat, 21 Feb 2009 20:49:22 +0000 Frank Spychalski http://amazing-development.com/?p=347 I stumbled over a great essay on pair-programming (via James Shore).

Rod Hilton explains it much better than I could ever do, why you should Pair-Program. But I haven’t heard about the “ping-pong pairing”:

When doing Test-Driven Development, one of the things we do is called “ping-pong pairing”. So the other developer will write a test, then make it compile but fail. Then he passes the keyboard to me. I implement the feature just enough to make the test pass, then I write another failing test and pass it back.

I have to try this on Monday…

]]>
http://amazing-development.com/archives/2009/02/21/pair-programming-killed-the-uber-coder/feed/ 2
Drop all tables from a mysql database http://amazing-development.com/archives/2009/01/31/drop-all-tables-from-a-mysql-database/ http://amazing-development.com/archives/2009/01/31/drop-all-tables-from-a-mysql-database/#comments Sat, 31 Jan 2009 19:19:45 +0000 schlumpf http://amazing-development.com/?p=335 This post was moved to http://ujap.de/index.php/view/DropAllTables.

Please update your bookmarks.

]]>
http://amazing-development.com/archives/2009/01/31/drop-all-tables-from-a-mysql-database/feed/ 3
Javascript “close hook” for browser window http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/ http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/#comments Tue, 25 Nov 2008 21:38:32 +0000 schlumpf http://amazing-development.com/?p=333 This post was moved to http://ujap.de/index.php/view/JavascriptCloseHook.

Please update your bookmarks.

]]>
http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/feed/ 32
Chumby goes i18n – soon available outside US? http://amazing-development.com/archives/2008/06/02/chumby-goes-i18n-soon-available-outside-us/ http://amazing-development.com/archives/2008/06/02/chumby-goes-i18n-soon-available-outside-us/#comments Mon, 02 Jun 2008 16:52:30 +0000 Frank Spychalski http://amazing-development.com/?p=323
I just stumbled over a this ad for someone to do the internationalization for (probably) chumby.com. I hope this means that they will start selling the chumby outside the US soon :-)

Title: Ruby On Rails I18N Developer
Skills: I18N, Ruby on Rails, mySQL

Job description:

Chumby Industries is looking for a Ruby On Rails/I18N Contractor to deliver results for the internationalization (I18N) effort on the server.
This candidate would be responsible for externalizing all the text strings (both static and dynamically generated) that the website uses so that Chumby could later change the language of the site based on location.

Skills required:
Previous I18N efforts on browser-based platforms
Strong web-based development experience
Ruby on Rails experience
mySQL database experience
Familiarity of layout issues involved with I18N

]]>
http://amazing-development.com/archives/2008/06/02/chumby-goes-i18n-soon-available-outside-us/feed/ 0
Chumbytime http://amazing-development.com/archives/2008/05/16/chumbytime/ http://amazing-development.com/archives/2008/05/16/chumbytime/#comments Fri, 16 May 2008 16:50:07 +0000 Frank Spychalski http://amazing-development.com/?p=322 mikelutz chumby pic from flickrTwo days I got my chumby. Chumby Industries tries really hard to keep foreigners from buying one of their nice toys: they only accept US credit cards and shipping only to a US address. But I’m lucky, one of my colleagues from Mountain View ordered one for me.

My experience so far was great.

Step one: configure WiFi
It detected my local network without a problem. I had to enter the password and was ready to go.

Step two: activate chumby
Create an account at chumby.com and click on “activate chumby”. It shows a 4×4 matrix of dots you have to copy to your chumby to connect you account with your device. This is a nice idea. It’s very simple, easy to use but effective. And surprisingly that’s it.

Step three: add widgets
Just one click. Sometimes the widgets need a some configuration but everything is explained right there.

Minor annoyances

  • only two brightness settings: high & low
  • you have to press pretty hard on the touchscreen

Plans:
Find a German power supply (should be easy) and start coding a widget :-)

]]>
http://amazing-development.com/archives/2008/05/16/chumbytime/feed/ 5
Girl’s day in the office http://amazing-development.com/archives/2008/04/25/girls-day-in-the-office/ http://amazing-development.com/archives/2008/04/25/girls-day-in-the-office/#comments Fri, 25 Apr 2008 09:20:02 +0000 Frank Spychalski http://amazing-development.com/?p=318 Google had a special doodle for the Girl's day
Yesterday was Girl’s day and our office hosted a few girls from schools in and around Munich.

We used Kara to teach them a little bit about programming. You can create finite state machines to control a bug which runs around and tries to solve different problems. The girls did much better than I expected and finished all the exercises we thought would be enough for a whole day before lunch.

Kara screenshot

Kara for Ruby Logo

Without much preparation I decided to teach them a little about “real” programming and Ruby because there is a Ruby version of Kara which lets you write Ruby code to control the bug.

The experiment was very successful. The girls solved all the problems again, this time in Ruby and from their feedback they really enjoyed it.

A couple of years ago I taught a programming course for kids at the Volkshochschule in Karlsruhe. At that time I used Perl (it was a loooong time ago and I didn’t know Ruby then) but if I ever do this again I will use RubyKara.

]]>
http://amazing-development.com/archives/2008/04/25/girls-day-in-the-office/feed/ 0
Darling, I shrinked the menu http://amazing-development.com/archives/2008/03/30/darling-i-shrinked-the-menu/ http://amazing-development.com/archives/2008/03/30/darling-i-shrinked-the-menu/#comments Sun, 30 Mar 2008 14:54:18 +0000 Frank Spychalski http://amazing-development.com/?p=315 Yesterday I installed version 2.5 of WordPress (which is great!) but the menu in the admin interface uses up a lot of screen estate. That’s why I just patched wp-admin.css to save some of this precious space in the admin interface. Just follow the above link and replace your version found in wp-admin/ if you think the menu is too big.

The changes are really simple. Here are the diffs:

--- wordpress/wp-admin/wp-admin.css 2008-03-29 08:21:12.000000000 +0100
+++ ../amazing-development.com/wp-admin/wp-admin.css        2008-03-30 16:47:22.000000000 +0200
@@ -573,8 +573,8 @@
 
 #wphead #viewsite {
        position: absolute;
-   margin-top: 12px;
-   margin-left: 10px;
+       margin-top: 3px;
+       margin-left: 3px;
 }
 #wphead #viewsite a {
        font: 12px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
@@ -590,8 +590,8 @@
 }
 
 #wphead h1 {
-   font: normal 36px Georgia, "Times New Roman", Times, serif;
-   padding: 11px 170px 16px 12px;
+       font: normal 18px Georgia, "Times New Roman", Times, serif;
+       padding: 11px 170px 20px 13px;
        margin: 0;
        margin-right: 15%;
 }
@@ -635,9 +635,9 @@
 }
 
 #adminmenu a {
-   font-size: 16px;
+       font-size: 12px;
        padding: 5px 7px;
-   line-height: 30px;
+       line-height: 20px;
 }
 
 #adminmenu a.current, #sidemenu a.current {
@@ -770,7 +770,7 @@
 }
 
 #submenu li {
-   font-size: 14px;
+       font-size: 10px;
 }
 
 #minisub { /* for empty submenus */
@@ -961,6 +961,14 @@
        text-decoration: underline;
 }
 
+#wpbody h2 {
+  font-size: 12pt;
+}
+
+#titlediv h3 {
+  display: none;
+}
+
 #poststuff h2 {
        margin-top: 20px;
        font-size: 1.5em;
]]>
http://amazing-development.com/archives/2008/03/30/darling-i-shrinked-the-menu/feed/ 2
One Laptop Per Child Germany http://amazing-development.com/archives/2008/03/06/one-laptop-per-child-germany/ http://amazing-development.com/archives/2008/03/06/one-laptop-per-child-germany/#comments Thu, 06 Mar 2008 20:50:20 +0000 Frank Spychalski http://amazing-development.com/archives/2008/03/06/one-laptop-per-child-germany/ I just stumbled over an announcement about OLPC Germany. Last Tuesday was my first chance to play with an OLPC laptop. Everything but the keyboard feels incredibly solid and well made. The only thing I didn’t like was the user interface. I found it quite non-intuitive but perhaps this gets better if I spend a little more time with it. And if not: I can always put Ubuntu on it.

One thing is for sure: as soon as these laptops become available in Germany, I will buy one.

]]>
http://amazing-development.com/archives/2008/03/06/one-laptop-per-child-germany/feed/ 2
Should I buy a TS-409 Pro Turbo NAS? http://amazing-development.com/archives/2008/02/15/should-i-buy-a-ts-409-pro-turbo-nas/ http://amazing-development.com/archives/2008/02/15/should-i-buy-a-ts-409-pro-turbo-nas/#comments Fri, 15 Feb 2008 10:04:37 +0000 Frank Spychalski http://amazing-development.com/archives/2008/02/15/should-i-buy-a-ts-409-pro-turbo-nas/ I was thinking about buying a NAS (network attached storage) server for some time and looked at different products. My requirements are low power consuption, RAID support, and disk encryption.

My current favorite is the TS-409 Pro Turbo NAS. It has:

  • low power consuption (ok, sleep mode: 18.8W; in operation: 44.6W)
  • RAID support (way more features than I would ever need: Single disk, RAID 0 (Disk Stripping), RAID 1 (Disk Mirroring), RAID 5, RAID 5+ Hot spare, RAID 6, and JBOD (Linear Disk Volume))
  • no encryption

But I couldn’t find any other NAS server with a good price (less than 500€) and this combination of features so I guess I have to live without encrypted disks. If you have any experience with this box or know about another box which has all these features, please leave a comment.

]]>
http://amazing-development.com/archives/2008/02/15/should-i-buy-a-ts-409-pro-turbo-nas/feed/ 0
Best apple feature EVER! http://amazing-development.com/archives/2007/10/06/best-apple-feature-ever/ http://amazing-development.com/archives/2007/10/06/best-apple-feature-ever/#comments Sat, 06 Oct 2007 12:04:06 +0000 Frank Spychalski http://amazing-development.com/archives/2007/10/06/best-apple-feature-ever/ According to an article by wired Apple added a special feature to their sexy metallic keyboards: accidental touches won’t activate caps lock. It’s the first step in a process to remove this useless and annoying key from all keyboards.

I’ve remove my caps-lock key from a couple of keyboards already. But I did not know that a campaign called anticAPSLOCK existed which tries to ban caps-lock from future keyboards. Nice idea!

]]>
http://amazing-development.com/archives/2007/10/06/best-apple-feature-ever/feed/ 3