Upgrading Twitter

Posted by Martin Homik | Posted in WebApp | Posted on 19-03-2009

0

There is a nice post by Gojko Adzic about a talk he attended. The talk was given by Evan Weaver about experience with upgrading twitter.  It is quite interesting to know how sites having huge traffic solve performance problems.

Up again

Posted by Martin Homik | Posted in Uncategorized | Posted on 28-01-2009

0

That was a surprise. My webspace provider was down for a few days! They had severe MySQL problems. However, now they are up again and I have the impression that my pages are delivered much faster. I hope, it stays like this.

UTF-8 problems, again

Posted by Martin Homik | Posted in Uncategorized | Posted on 19-01-2009

0

Today, I ran into a UTF-8 problem again. That was, when I copied a text snippet from Thunderbird into an Eclipse properties file. Be careful, when you copy-and-paste text from your e-mail nto your Eclipse editor. It looks like the encoding of the pasted text
is superior to the encoding of the existing text. It changed the endcoding f the file several times. Solution:

  1. Copy the full property/text file into clipboard.
  2. Close the file in Eclipse.
  3. Open Notepad++ and set Format to UTF-8.
  4. Paste the text from Clipboard into Notepad++.
  5. Save the file as the one you want to have.
  6. Reopen in Eclipse.
  7. Encoding will be set to UTF-8.

Good luck!
Martin

Christmas wish

Posted by Martin Homik | Posted in Uncategorized | Posted on 11-12-2008

2

Please Apple, offer non-glossy displays. I’d get a new Mac immediately!

Search things I have seen

Posted by Martin Homik | Posted in Uncategorized | Posted on 02-11-2008

2

I often get into a situation in where I search information I have seen somewhere in the Internet. It could be a blog entry, a comment in a forum, some business website etc. When I go to Google, I always get results based on statistics to which all users contribute. But I ususlly search for hits that I have already seen. The more often I have seen them, the higher the ranking should be. So, a good approach for my problem would be:

  • Track the pages which I have visited. That could be done via a Firefox plugin. This has to be stored somewhere.
  • When I add a search term, it should check the pages I have seen first and then propose hits I a am not aware of.

Do you know any service that provides this feature? Probably something from Google?

Apple’s glossy displays

Posted by Martin Homik | Posted in Uncategorized | Posted on 29-10-2008

0

I considered to get a Mac this year. I was waiting for the new MacBook Pro models to be up to date. But Apple ships their producs with glossy displays only. Software developers all over the world discuss this issue and in general they agree that working with a glossy display 8-10 hours a day is a no-go.Now, developers have no choice, and this is a critical point.

Yesterday, I asked a collegue to put his notebook with a glossy display on my desk. My suspicion was correct. I was able to see myself, the lights, the room behind me and the window. I wasn’t able to see the whole display at once. I had to turn my head in order to see some parts of the display. I fear that with a glossy display, my eyes will ache after 4 hours.

In conclusion, I am very disappointed. I won’t buy a Mac with a glossy display. I keep my old Thinkpad which is slow, but at least a pleasure to work with.

Overloading methods and passing ‘null’ as argument

Posted by Martin Homik | Posted in Java | Posted on 28-10-2008

2

Today, I came across a NPE which pointed me to a problem which I cannot resolve. Assuming, you have two overloaded methods in a class:

  1. public void setProperty(Collection c);
  2. public void setProperty(String c);

Which method will be invoked when the parameter is null?

Answer: you cannot call setProperty with a null parameter. The compiler will complain. In all other cases the signature of the method is matched. So, it doesn’t matter if your String has the null value, it only matters that you apply a method applied to a String parameter. This is the signature. This is matched.

German Web2.0 Paper Magazin

Posted by Martin Homik | Posted in Java, WebApp | Posted on 05-09-2008

0

Yesterday I went to town to get the new Java magazine. While I was at the store, I thought I could also try a new magazine. In that moment I realized that customers have many options to get A Linux or a Mac magazine which is a change when I payed attention to the fact the last time (a few years ago).  But actually, I searched for a magazine on Web2.0 or JavaScript. Both are fields I am diving into right now. Though I know many sources on the Net, I was surprised to see, or more accurately not to see, any magazine that covers this topic.

Can you recommend any magazine?

Struts2 URL Tag

Posted by Martin Homik | Posted in Java, WebApp | Posted on 26-08-2008

0

I use the Struts2 URL tag all the time to expand relative paths with the current context. I also use it to address images. I have not proven it, but today, I got the hint that an image to which an argument is appended, will be loaded each time the page is displayed. To prevent appending of additional parameters, use the includeParams attribute and set the value to none. Below is an example for a dynamically created URL.

  1. <s:url value="%{‘images/flags/’+locale+’.png’}" includeParams="none" id="localeURL"></s:url>

Google Reader

Posted by Martin Homik | Posted in Uncategorized | Posted on 26-08-2008

2

The move from working on the desktop to working online has started long ago, but in a few cases I stick to old habbits. Of course, I cannot imagine to do Java development with Eclipse in an online enveronment where the platform and all the needed tools are on some server. This would slow down my daily work. But if you think of information such as web sites e-mails and RSS, then it makes sense to have it all somewhere on the web. Most of us use yahoo, gmx, or google for storing their E-Mails and have access from any host as long as they have online access.

Today, I started to move from reading my RSS feeds with Thunderbird to reading with Google Reader. The reasons are simple and yet decisive:

  • My laptop is about 3,5 years old. A switch to a Mac is very likely. Moving all my downloaded feed content from my local Thunderbird to some future machine is time-consuming and almost infeasible.
  • I want to access my feeds from any machine.
  • I want to see my marked feed entries on any machine.
  • I want to save space on my local machine.
  • I want to keep my data safe.

I did not look for long. I went to NetVibes and Google and checked the idea of having an entry page. But this was not accurate. So, my second choice was to look into Google’s Apps. And guess what, when it comes to productivity, they have quite often a solution for you. In my case, it was Google Reader. And while I am moving my feeds and copy the marked entries (takes some time), I am pretty happy about my step. Does anyone of my dear readers use Google Reader, too. What other alternatives can you suggest?