This is just a diary.

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.

Friday, July 3, 2009

The stars of my favourite comedy Peep Show have just earned new respect in my eyes with this skeptical comedy clip:


Wednesday, January 28, 2009