Tuesday, August 23, 2011

Identifying which Java Thread is consuming most CPU

A nice way to debug cpu usage by threads in a java process

http://code.nomad-labs.com/2010/11/18/identifying-which-java-thread-is-consuming-most-cpu/

Sunday, May 8, 2011

openSuse 11.4, broadcom bcm4312 and Tumbleweed

it works out of the box after adding the the Packman repo and installing

broadcom_wl and broadcom_wl_kmp_desktop

Kindle whispernet connection

it's possible to fix kindle connection problems to whispernet following the amazon customer service directives:

Visit your Kindle's Settings screen by selecting that option from the Home screen menu. When you're on the Settings screen, type 311 on Kindle's keyboard.

When prompted to switch wireless providers, select "OK" to see a list of providers in your area. Please allow up to two minutes for Kindle to complete a search of available wireless providers.

Select a carrier from the list and wait for Kindle to return to the Setting screen and attempt to connect to Whispernet. If after two minutes you are still unable to connect or your signal strength does not improve, please repeat the steps above and select a different carrier from the list.

it worked on my kindle 2nd generation

Tuesday, March 1, 2011

jmap

jmap -heap:format=b <THIS IS A PID!!!>

binary output can be analyzed with MAT

eclipse Helios has preconfigured update site for MAT but it is disabled

look in the "available software site" configuration page and enable the site to install the software

Sunday, January 16, 2011

html in kindle

I copied drools documentation on my kindle in this way:

open documentation as single html page and save using firefox (opera doesn't save images)

open the file with a text editor and remove the following

xmlns="" xmlns:d="http://docbook.org/ns/docbook" xmlns:rf="java:org.jboss.highlight.XhtmlRendererFactory"

import the saved page in the calibre's ebook library, fix metadata and convert to mobi

move the ebook in the kindle