JAKERI

Icon

Consulting/Development in Java, Objective-C for web based systems and iPhone

Google App Engine + Java

Google has released Google App Engine with support for Java!

It includes a neat plugin for Eclipse also. Here is a video showing features of the Eclipse plugin.

Must test this during the Easter holiday!

Sticky load balance with Apache HTTPD 2.2

Apache HTTPD 2.2 includes some interesting features for making a basic load balancer.

This configuration makes a sticky loadbalancer with 3 backend servers. It is not dependant on any specific configuration of the backend server such as JSESSIONID or PHPSESSIONID.
It will create a BALANCEID-cookie with a route to a backend server.


#You need at least these modules
#Header used for setting cookie
LoadModule headers_module ...
#Proxy
LoadModule proxy_module ...
LoadModule proxy_http_module ...
LoadModule proxy_balancer_module ...

#Set a cookie if BALANCER_ROUTE_CHANGED containing BALANCER_WORKER_ROUTE environment variable
Header add Set-Cookie "BALANCEID=hej.%{BALANCER_WORKER_ROUTE}e; path=/;" env=BALANCER_ROUTE_CHANGED

#Show balancer-manager
<Location /balancer-manager>
  SetHandler balancer-manager
  Order allow,deny
  Allow from all
</Location>

ProxyRequests Off

#Configure members for cluster
<Proxy balancer://jakeri>
  BalancerMember http://b1.jakeri.net:80 route=server1
  BalancerMember http://b2.jakeri.net:80 route=server2
  BalancerMember http://b3.jakeri.net:80 route=server3
</Proxy>

#Do not proxy balancer-manager
ProxyPass /balancer-manager !

#The actual ProxyPass
ProxyPass / balancer://jakeri/ stickysession=BALANCEID nofailover=Off

#Do not forget ProxyPassReverse for redirects
ProxyPassReverse / http://b1.jakeri.net/
ProxyPassReverse / http://b2.jakeri.net/
ProxyPassReverse / http://b3.jakeri.net/

I believe that this configuration is somewhat better compared to this guide.

I got to fix my css for the <code></code> :-/

Apples releases Safari 4 Public beta

Apple released Safari 4 Public beta today!
Even more competition to the javascript speed race.
Nice features such as Cover flow, Nitro (new Javascript engine), history view, native windows look and feel etc.

Beautiful code with wordle

Had to test generate a wordle from source code. In this case HttpServletRequest.java.

Comparison between my generated images and IKEA advertisement

A couple years ago I wrote a small java-program that generated a large image from a collection of thumbnails. I tested the software using thumbnails from the IKEA website.

Since the beginning of this week, IKEA is doing a advertisement on the street that resemble my old computer generated images quite well.

Could IKEA advertising agency have seen my old images;-)

Ingvar Kamprad

IKEA advertisement - Full

Badge code in countupdown

I added possibility to create your own badge for countupdown. Click on an arbitrary counter and you will find badge code if you click the Toggle badge code>>.

Seems to be very buggy in other browsers than Safari (remember til next time, TEST). :-( Back to the drawing table.

I had to use </script> instead of <sript ….. />.



Post from wordpress iphone app

Simple application for writing new posts to your wordpress blog.

I would love to have copy and paste on the iPhone now!

photo

The 10 Commandments of Web Design

Good article about web design.

Rule number one, “Thou shalt not abuse Flash”.

Countupdown as Dashboard Widget

Someone found a neat way to utilise my countupdown application as a Web clip widget in OS X’s Dashboard.

Use Make Text smaller (cmd -) in Safari before using Web clip feature to make it smaller.

First Google App Engine project

Quite useless but helped me to learn python (indentation hell), django, app engine etc.

http://countupdown.appspot.com