This is just a diary.

Saturday, June 5, 2010

Ubuntu 10.04 and Bloom Facebook uploader

It seems that Bloom uploader Java webstart fails to authenticate in Ubuntu 10.04 with OpenJDK. To resolve this issue, I have created a file run.sh in the directory in the webstart cache folder (in my case '/home/myusername/.netx/cache/http/www.antaki.ca/bloom/jars'):

run.sh:

java -classpath Bloom_2_8_0.jar:BrowserLauncher2-1_3.jar:commons-codec-1.3.jar:commons-httpclient-3.1.jar:commons-logging-1.1.1.jar:facebook.jar:forms-1.3.0.jar:glazedlists_java15.jar:jhbasic.jar:json_simple.jar:metadata-extractor-2.3.1.jar:swing-worker-1.1.jar:swingx-1.0.jar ca.antaki.www.bloom.app.Bloom


When I start Bloom using run.sh it starts and authenticates just fine.

Friday, March 26, 2010

Intel WiFi Link 5100 AGN issue with killing wireless router resolved

Issue description: Wireless router (Netgear DGN2000) frequently (every 30s - 60 seconds) drops connection for all connected wireless devices when Windows XP laptop with Intel WiFi Link 5100 AGN card connects to the wireless network.

Resolution:
  1. Go to Start -> Control Panel -> Network Connections
  2. Right click the Wireless Connection that uses the Intel WiFi Link 5100 AGN card
  3. Choose "Properties"
  4. Go to "General" tab
  5. Make sure that "QoS Packet Scheduler" check box is not ticked in the "This connection uses the following items" list as shown below:
intel-wifi-link-fix

Note, that this fix was inspired by the following text:


Re: Latitude E6400, Intel Wifi Link 5300 AGN Drops Connections

Hello from my side,
I had similar problems. Configuration: DELL Latitude E5500 with the Intel Wifi Link 5300 AGN card. My solution after 2 months testing:
  • Uninstall DCP (the network part - perhaps not even necessary)
  • Update to the latest Intel driver (12.4.0.21)
  • Download and install the Intel wireless wifi connection utility tool (12.4.0.0)
  • Go to the network settings, Wireless Network-Settings
  • Disable (untick) "QoS-Planer" and "Network Monitor Driver"
Thats it. I left power settings and other stuff untouched ("Standard setting").
Hope this helps you as well.
Best regards
Claus

Sunday, January 31, 2010

Learning Lithuanian

This is my collection of online resources for learning Lithuanian (especially for English speaking people).

Lithuanian alphabet

Learning basic words
  • Flash game - basic words
Basic phrases
Audio learning

Friday, January 22, 2010

Java clipboard catcher

I tried to write a program in Java that would be monitoring clipboard for the changes and in case you had specific pattern in the clipboard it would perform a specified action (for example download a youtube clip).

Unfortunately according to a discussion here there is no way to monitor clipboard in java unless you do your own clipboard polling.

Anyway, you can download the source code of my endevours here.

Thursday, December 17, 2009

Content Library Flash for Samsung TV (2009 models)

I have just got a new TV and tried to download more content from the Samsung website. Unfortunately due to their bizarre use of JavaScript it I was unable to download them... So I have just extracted the direct links here:

Galeries


Cooking


Children


Wellness


These are links copied from Samsung Medi@ 2.0 web site on 18 December 2009.

These Content Library Flash files are supposed to be compatible with Samsung TV 2009 models (the ones where model contains letter B, for example Samsung LCD 46'' model LA46B650)

Monday, October 5, 2009

Scala swing - listening to Table selection events

I'm now trying to learn a new programming language - Scala.

It took me ages to figure out what's going on with the table selection events. Unfortunatelly there does not seem to be any good and free documentation available to cover scala.dbc or scala.swing packages.

The relevant bits of code to react to cell selection events are provided below:
import swing._
import event._

object topicsTable extends Table()

listenTo(topicsTable.selection)

reactions += {
case TableRowsSelected(`topicsTable`, range, adjusting) => {
println(topicsTable.selection.cells)
}
}

Sunday, August 2, 2009

Slashdot stories and comments as EPUB books

I have recently got Sony PRS-505 an electronic book reader. It's a nifty device that let's me read stuff, however I have not really found any really easy way to convert web pages that I want to read to EPUB format.

Printing stuff to PDF is tricky in the sense that browsers usually add pahe headers, footers and the PRS-505 has to display those even on reformatted pages.

Hence I decided to build a script that would take a snapshot of the Slashdot front page articles and produce a reasonably nicely formatted EPUB.

I'm planning to schedule this script to run every 12 hours and publish all those snaphosts here.

Update 22-August-2009

Upload of epub files was broken and has been fixed now. All the files used to be uploaded broken as the FTP client was using the text transfer mode rather than binary.