Archive for August, 2009

Black Clouds & Silver linings

Thursday, August 27th, 2009

Could this be the end?
Is this the way I am?
Sitting here alone
No one by my side
I don’t understand
I don’t feel that I deserve this
What did I do wrong?
I just don’t understand

Give me one more chance
Let me please explain
It wasn’t all just circumstance
I’ll tell you once again
You took me for a ride
Promising a vast adventure
The next that I know
I’m frightened for my life…

Java Swing text anti-aliasing

Wednesday, August 26th, 2009

It really gets to my nerves when JREs (both Sun’s and OpenJDK) will by default output butt-ugly aliased fonts in all that is Swing (another reason to use Eclipse!).

Fortunately there’s an easy way to enable font anti-aliasing for all of swing (works on both Sun and OpenJDK, but OpenJDK imho looks better!):

-Dawt.useSystemAAFontSettings=lcd

So if your eyes are tired of NetBean’s ugliness, you could modify its shortcut like this:

/bin/sh "/home/andrew/local/netbeans-6.7/bin/netbeans" -J-Dawt.useSystemAAFontSettings=lcd

Do a Google search for awt.useSystemAAFontSettings for more info.

Fedora 11 PulseAudio Workaround

Thursday, August 6th, 2009

http://forums.fedoraforum.org/showthread.php?t=225660

You can ignore the yum remove/install stuff.

The tsched=0/realtime-scheduling/default-fragment-size-msec stuff however seems to have fixed the problem for me.

You might (or might not) need, however, to make yourself a member of the pulse-rt group.

Update: upgrading to kernel 2.6.30.5-43.fc11.x86_64 resolves these issues, and you can revert your PA configuration settings to their default values.

Announcing SlimWeb 0.9.3-beta

Wednesday, August 5th, 2009

SlimWeb 0.9.3, codenamed “Simple things should be simple. Complex things should be possible.”, is available for download:

http://download.slimweb.net/devel/slimweb-0.9.3.tar.bz2

Fedora 11 PulseAudio Fail

Monday, August 3rd, 2009

PulseAudio did it again.

On a NForce4 motherboard and a fully up-to-date Fedora 11 box, i.e. :

  • kernel-2.6.29.6-213.fc11.x86_64
  • alsa-lib-1.0.20-1.fc11.x86_64
  • pulseaudio-0.9.15-14.fc11.x86_64
  • alsa-plugins-pulseaudio-1.0.20-2.fc11.x86_64

PulseAudio will crash only after a few seconds of playback :-( ((

The issue is old but is fixed according to Fedora’s official bug tracking system. In fact I can’t reproduce it with the F11 stock kernel-2.6.29.4-167.fc11.x86_64.

Here’s a quick and dirty workaround:

pasuspender mplayer -ao alsa:noblock:device=dmix=0.0 anything.mp3.or.avi

If you really hate PulseAudio in your guts you can even remove it from your system. Don’t forget to remove alsa-plugins-pulseaudio as well. Dammit, why isn’t there an easier way to disable PulseAudio altogether and revert to alsa/dmix output for all applications and desktop environments in Fedora? Like back in the good old Fedora Core days?

Btw here’s the complete crash output from PulseAudio:

(more…)