git: error pushing via HTTP (return code 22)

If you get a error: Cannot access URL http://github.com/xxxxxxx/, return code 22 when trying to push changes to a git repository via HTTP. This is probably because you are using an HTTP proxy to access the repo and that proxy doesn’t support WebDAV HTTP methods (especially PROPFIND). So when git issues a PROPFIND the http proxy answers back with a 500 Internal Server Error or something like that. It seems that PROPFIND is absolutely required so if you can use git:// directly or use a HTTP proxy which supports PROPFIND. Then I think the only option left is try use CONNECT in the proxy.

September 23, 2009

Adding a Google Search Web Element to a Wordpress theme

The newly released Google Web element: custom search is awesome. To add it to my wordpress theme (which doesn’t have a top sidebar for widgets) I had to edit (Appearance ⇒ Editor) the header.php file and add the snippet I got from Google there, at just at the end of the header.php. So the search web element is show right after the banner and before the posts. ...

September 16, 2009

project.displayName and project.name don't get set for Netbeans Platform Application projects

I just reported it to netbeans issuezilla issue 169074. I was trying to use these variables as pointed out by Michal Hlavac in my post about templates. And then I realized that these variables don’t seem to work for Netbeans Plaform Application projects. Instead of the project name and display name they (the template variables, I mean) get replaced by an error message Expression project.name is undefined on line 10, column 19 in Templates/Licenses/license-gplv3.txt ...

July 23, 2009

How not to do a parcel tracking system

The SEUR tracking system in amazing in the wrong way. I got a tracking number from a bike shop that dispatched a bike from spain to sweden. Ok, so I go to http://www.seur.es (because http://seur.es didn’t work) and put my tracking number there. Nothing, the tracking number is not yet in the system. Disappointment number 1. But this is not the first time I see this, you get a tracking number and it takes a while until you can actually find it in the system so I’m OK. ...

May 28, 2009

Firefox detecting wrong Java Plugin version on Windows.

First read this Mozillazine page In my case the problem was that some program overwrote the registry entry HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Runtime Environment/BrowserJavaVersion with the old value 1.6.0_01. When I set it back to 1.6.0_06 everything worked fine again. Now the addons window looks like before it showed Java Platform SE 6 U1 instead

December 12, 2008

Got my new Apple Lanyard Headphones

Amazing, the swedish apple store dont sell the old Apple Lanyard Headphones, the ones that fits in both Apple 1st generation and 3rd generation. And I cannot buy it from the US Apple store either, they just don’t let you to do so. So at the end I reverted to EBay and I found a nice offer from buyitloveit.com($12 + $6.5 shipping). That’s halft the price listed on the Apple Store ($39.00) and they are new not used. The ebay description said that the packaging was damaged but the only thing I could find was a sticky mark on the top of package. And it only took one week to deliver from UK to Sweden. Nice.

November 20, 2008

"Reload in target plaform" is not working in Netbeans 6.1/6.5 RC2 in Mac OS X 10.5 Leopard

I filed a bug report http://www.netbeans.org/issues/show_bug.cgi?id=153354 It seems that it cannot find the inner class ResolvableHelper inside the TopComponent. (throws a NoClassDefFoundException, see the messages.log for details ). It’s funny though, because it works perfectly in Windows XP and Vista, I thought this stuff was platform independent.

November 19, 2008

dropbox not syncing files

Today I fixed my dropbox installation on mac os x . It was not updating (sending) files from the Mac to the Dropbox servers. In fact it was sending new files to dropbox servers but some old files that were supposed to be on dropbox account were not synchonized and I couldn’t get Dropbox to notice that, until today. I found this post and it seems that if you close dropbox, delete the ~/.dropbox directory and restart dropbox you’ll get the account linking screen again and dropbox will index everything and make sure that your local Dropbox directory match the online one. It took a while but all the files are safely transferred to Dropbox now.

October 20, 2008

Voltcraft Energy Control 3000

An article on the Elektor magazine on home power meters caught my attention, particularly the wireless one. In the article they mention the Voltcraft Energy Control 3000, that is able to receive data (about energy consumption) from several sensor and can be connected to the pc via usb. The only problem is that the software that comes with it is in german only. The price is ok, 100€ + 35€ per sensor. But I cannot find any information on the actual format of the data that the Voltcraft Energy Control 3000 provides. I also impossible to tell whether or not special USB drivers are needed. It could be that it presents itselft as a hard drive and expose the date as a file. That would be the easiest way to interface with it and use my own tools to process the data. That would also make possible to connect to my MacBook Pro. ...

July 18, 2008

Wireless Power Meters

I’ve been trying to find power meters for home. My criteria is that it has to support several sensors (because I want to know how much energy my computer and home cinema is spending) and it has to be wireless (because it more convinient this way). After researching a couple of hours, it doesn’t lok good. The number of choices is very small. The Voltcraft option is in doubt because all the information I can find is in german. And the only other working option that I found is Plogg. ...

July 18, 2008