Building Apache Tika 0.6 fails if the locale is not en_US

I tried to build Apache Tika 0.6 yesterday and I couldn’t build it because the tests failed. The failing tests were testExcelParserFormatting(org.apache.tika.parser.microsoft.ExcelParserTest) testExcelFormats(org.apache.tika.parser.microsoft.ooxml.OOXMLParserTest) and the failure had to to with the fact that the locale was “es_ES” and the numbering format differs ("1.599,99" and not “1,599.99”) $ mvn -version Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200) Java version: 1.6.0_17 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home Default locale: es_ES, platform encoding: MacRoman OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"@ I changed the locale temporarily to be able to build ...

March 10, 2010

Connect to the internet via Bluetooth PAN with Mac OS X Snow Leopard

If you want to access the internet via your phone 3G/GPRS connection you can use Bluetooth PAN. In my case I have a Sony Ericsson W715 so the first thing to do is to tell the phone which connection to use Menu > Settings > Connectivity > Bluetooth > Data accounts and select the account that you normally use to browse the net from the phone. Then turn on bluetooth ...

January 27, 2010

STaX: OutOfMemoryError when parsing big files

Java 6 includes STaX , when I tried to parse a Evernote backup file with it, I got a OOME error. java.lang.OutOfMemoryError: Java heap space at com.sun.org.apache.xerces.internal.util.XMLStringBuffer.append(XMLStringBuffer.java:205) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.refresh(XMLDocumentScannerImpl.java:1520) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.invokeListeners(XMLEntityScanner.java:2070) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.peekChar(XMLEntityScanner.java:486) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2679) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:548) at Googling a bit I found a bug report 6536111. It says that this should be fixed in 1.6.0_14. But I tried Sun 1.6.0_16 and no luck. I got the exact same thing. ...

August 25, 2009

Import delicious bookmarks into Evernote

I tried to use the delicious online import tool from Evernote and I have to say that I’m not satisfied with it. It’s limited to 1000 tags (that’s due to important performance issues in Evernote when the number of tags is big) and if you don’t import the tags the tag information is lost. I was expecting that it will add the delicious tags and link notes as body text in the Evernote note but they don’t. So I decided to do my own import to preserve that information. ...

August 8, 2009

Python support for SSL and HTTPS is not installed

I was getting “Python support for SSL and HTTPS is not installed” while trying to use Mercurial on Mac OS X 10.5 Leopard. I upgraded python to 2.5.2 sudo port upgrade python and mercurial too (1.2.1) sudo port -u upgrade mercurial But that didn’t fix it. I’m glad that I found the solution on Twitter Just do an sudo port install py25-socket-ssl

May 8, 2009

Warning: Invalid keyword 'DNSCache' (webalizer.conf) in MacPorts (Mac OS X)

If you installed webalizer via MacPorts in your Mac OS X you must know that it comes without dns support. That’s why you’re getting those Warning: Invalid keyword 'DNSCache' (webalizer.conf) Warning: Invalid keyword 'DNSChildren' (webalizer.conf) Warning: Invalid keyword 'DNSCache' (webalizer.conf) Warning: Invalid keyword 'DNSChildren' (webalizer.conf) To enable it , uninstall webalizer sudo port -d uninstall webalizer Edit the Portfile for webalizer vi /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/webalizer/Portfile to add an --enable-dns \ (note the ending backslash “") in the configure.args section just before of ...

March 20, 2009

How to fix the cyberduck quicksilver plugin

If the CyberDuck plugin is not working for you, (you can’t right-arrow to see the bookmarks) make sure that you changed the default nicknames of the bookmarks. Probably if you open the Console you’ll find some “missing nickname” errors there. [March19] [March 19] 7:31:22 PM Quicksilver[6037] Error: No 'Nickname' key for favorite: I found the answer in this google group Can’t right-arrow into Cyberduck - Blacktree: Quicksilver | Google Groups .

March 19, 2009

Listen to radio online (in Mac OS X)

I want to listen to Sverige Radio P1 in Mac OS X. It seems that Windows Media Player and RealPlayer are the only supported options so I thought I couldn’t do it but then I found Flip4Mac WMV Player also known as Windows Media® Components for QuickTime, by Flip4Mac™ . After installing it and restarting Safari 4, I could listen to SR P1 with no problem. References: Flip4Mac WMV Player Play Windows Media files in your QuickTime Player Windows Media® Components for QuickTime

March 19, 2009

"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