Rotate screen on Windows [Intel® 945G Express Chipset]

I just found out on that if you have a Intel® 945 or any modern Intel card and you monitor/display/screen appears rotated 90 degrees or upside down, etc you can restore it to it’s original position by pressing Ctrl-Alt-↓ Via: http://www.labnol.org/software/turn-computer-screen-upside-down/6097/

October 23, 2009

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

Adding C++ virtual methods in Visio

Amazing how difficult is to get C** virtual methods in Visio .

March 31, 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

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

Google Chrome : The application failed to initialize properly (0xc0000005) « me & PHP

If you are getting (like me) the “The application failed to initialize properly (0xc0000005)” error when trying to start Google chrome try to use -no-sandbox option as pointed out in Google Chrome : The application failed to initialize properly (0xc0000005) « me & PHP.

September 4, 2008

Microsoft Visio has stopped working after exiting Visio

It seems that Visio has some kind of incompability with Bluetooth drivers. I notice this problem when editing Visio objects embedded into Microsoft Word documents. In my case after I enabled Bluetooth (via my Compaq nw8440 special keyboard button) this problem went away.

September 4, 2008

Cygwin/X: disappering mouse pointer

Remember to start the X system using startxwin.bat not startx. With startx I lose the mouse cursor/pointer when I’m over a X window.

November 15, 2007

cygwin: setup.exe crashes when upgrading packages

I’ve run into a very strange problem. Every time I run setup.exe and try to upgrade bash package setup.exe crashes with the familiar “setup.exe has generated errors and will be close by windows. you will need to restart the program. An error log is being created”. The solution I found is for bash package but I guess it also work for other packages as well After googling a bit I found the this mail thread . But there was no solution posted into the thread so I tried to contact the Mario Frasca (one of the participants in the mail thread) to see if he found any solution to the problem. Well, he did. He sent me a mail telling me that William Crosmun resolved his problem. ...

November 5, 2007

bash: clear: command not found

If your are getting “bash: clear: command not found” on you first install of cygwin you have to make sure that you include ncurses packages in your cygwin installation. clear.exe doesn’t come in the standard installation. You must include ncurses to get clear.exe in your system. If you are using bash you can use Ctrl-L and get the same result though. UPDATE: ncurses is a cygwin package in libs category in Utils category. You can install it using the the Cygwin Setup utility (just run setup.exe again). See screenshot below ...

September 26, 2007