Categories
Web

Synced again

Ever since I upgraded to Firefox 3 I have been missing the good old Google browser sync extenstion for Firefox. Google decided to discontinue development of it, so there will never be a version that supports F3.

Enter Mozilla Weave. It basically does the same as Google Browser Sync, but is especially useful in F3 because of the search in history, bookmarks and bookmark tags. I can now usually get back to somewhere I have been through searching in the location bar.

Initially it worked just fine, but after the word spread their servers has had way too much load. This has resulted in syncs just hanging or in best case taking a loooong time. So after a little mess I started doing some research and found that you can configure your own weave server. All it takes is basically WebDAV and password protection.

With Dreamhost being my primary provider it was really easy. The following steps were taken:

  • Create a new subdomain (ex: sync.mydomain.com)
  • Create a folder called user/myusername. Weave always looks in a user subfolder
  • Click goodies -> webdav and set password and enable webdav for the user/myusername folder

That’s just about all it took and my syncs are againg working with a much better speed. Because of the loads they’re not taking on new users, so setting up your own server is also a way to test the extension for new users.

Update: The newest version of Weave tries to do some sort of bookmark/link exchange between users. This fails as it requires some kind of script on the server, which I naturally don’t have. It manifests itself as a warning on the lower bar, but can safely be ignored. To get completely rid of it, just create an empty file under api/share/get.php . It won’t enable the feature, but at least you get rid of the warnings.

Categories
OS tricks Web

The backups you never make

So my harddrive for my home-server crashed. Seems like it short-circuited or something. Any tips for restoring would be appreciated. 🙂 I had devised some sort og backup mechanism, that obviously didn’t work. Lost about a years worth of posts. 🙁

Have signed up to Dreamhost now which offers 200GB diskspace on the cheapest plans. Finnally we are seeing hostingplans that are viable for my hosting. My first impression of their controlpanels etc. are really good too. Some minor glitches, but seems like a well thought through product.

UPDATE: Think I retrieved most my content from some caches. It’ll be a fair bit of job to put it back into wordpress, but at least it’s not lost. 🙂

Categories
Development Web

Character conversion in J2EE webapps

A little over a year ago I linked to a couple of articles regarding internationalisation and charactersets here. Now I’m doing the same thing all over again, and I of course forgot one small step. For a really extensive and good overview of everything check out this excellent article, read it for in depth info. What I had to do was:

  1. Always use UTF-8 codes in your property files. JRC Editor will help you with that.
  2. Create a ServletFilter that sets the character encoding for each request: req.setCharacterEncoding(“utf-8”)
  3. Set the encoding for the JSP compiler: < %@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8" %>
  4. Set the encoding for the browser to interpret: meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″

That should be it. 🙂