conky – that’s what I search for!

January 22nd, 2010 by gediminas

Instead of eureka I would say CONKY!
I have search for such sys monitor tool for ubuntu.
Very simple, very stable and lots of configuration possibilities.
Check is out at: http://conky.sourceforge.net/

“<...>Conky is a free, light-weight system monitor for X, that displays any information on your desktop. Conky is licensed under the GPL and runs on Linux and BSD.”

TBD: my conky config goes here.

livestream.com & iPhone camera

October 21st, 2009 by gediminas

How to setup your iPhone camera to stream the video through the livestream.com?

It’s easy if you have a
1. jailbroken iPhone
2. installed veency (vnc server for iPhone)
3. VNC viewer at your streaming box
4. any iPhone app which has live view capture (let’s say Camera)
5. an account at livestream.com
6. livestream.com “Procaster” app
7. wifi router or adhoc wifi network between the iPhone and your streaming box.

livestream.com & iPhone camera from gadominas-trash on Vimeo.

If you have all this then you’re ready to go. Connect your iPhone to local wifi network. Open a vnc session from you streaming box (laptop or whatever). Start the iPhone app which supports live capture and start the Procaster as a remote screen streamer. Ajust the streaming area to fit the vnc screen and you’re LIVE with the portable video camera for live streaming to livestreamer.com. Veency is not so fast to get more than 5fps to your streaming box.

Have another solution for this? Share it!

Assembly’09

August 22nd, 2009 by gediminas

Before a week (aug6 ‘09) there was some buzz at Helsinki, Finland called ASSEMBLY.
Our national team called “Nesnausk” did some presentations about developing graphics.

“Developing graphics Tech for nono-AAA games” by Aras Pranckevičius

Asm’09 seminar: developing gfx tech for small games from Unity3D on Vimeo.

iPhone: learning the ways of GPU from the Driver Code by Relandas Zioma

Asm’09 seminar: learning the ways of GPU from the driver code from Unity3D on Vimeo.

The presentations are easy digestible even if you’re not a 3D person ;)
Good job – Nesnausk!

Google new OS at ServerSide & InfoQ

July 9th, 2009 by gediminas

Yesterday (07/08) google announced about a yet another new toy “gOS – Google Chrome OS”. But I’m not about this news isself, but how it was published through the most famous dev news portals. InfoQ was a first with in on this deal with the “re-typed” fiction without any fresh idea on this from InfoQ itself. The whole article was copied-retyped from googleblogspot performing some smart “phrase-find-replace”.
Then was a TheServerside.com with the same new. The content is much more informative. The link to the original google blogpost and that’s all, without any smart fiction on it.
From the comment perspective, TheServerSide has ~15 comments (until 07/09) and 6 comments at InfoQ for the same new item. The comments at ServerSide looks much more …

DBMaintainer are no longer a part of Unitils

July 6th, 2009 by gediminas

DBMaintainer was separated from the Unitils. DBMainter is a easy way to automate the roll-outs of updates to a relational database. According to the DDL scripts which are held in special file/directory structure the database can be updated/created at development or either at production phases in a ’second’. Updates can be trigered from a command line (ant scripts) or with the junit initialization through the Unitils. DB migration process is versioned in incremental. DBMS implementations such as ‘oracle’, ‘db2′, ‘mysql’, ‘hsqldb’ or ‘postgresql’ are ready to go.

More details on this at serverside.

Don’t mess your JPADAO with named queries stuff

July 5th, 2009 by gediminas

Let’s say I have tones of named queries through all my entities.

These queries have one/two or more named parameters in conditional expression.

The common way to encapsulate my named query lookup in my JPADAO is something like this:

Query q = %getEntityManager()%.createNamedQuery( %queryName% );
q.setParameter ("someParam", new Date ());
q.setParameter ("anotherParam", true);
...
q.setParameter ("tired_butAnoterParamX", 666L);
return q.getResultList();

Do we have another way here? What if my named queries are overloaded by entity mapping..

My proposal for myself was to make generic lookup in my base JPADAO, as follows:

1. pass the named query name and named arguments as a array as follows:

%someFactory%.getXJPADAO().executeNamedQuery( "QueryName", param1, param2, .... , paramN);

2. Retrieve the entity type which is associated with the dao.

3. Tokenize the query which we want to execute and build the parameters bind set.

4. Go through parameters bind set and setup the query.

As an example it can be shown as follows:jpadao_namedqueries_lookupexample

This example will not cover positional parameters features.

The post was migrated from java.net webblogs.