Reverse VNC

Reverse VNC is one of the things which can make your day when it will help you connect to some NAT-ed machine. And so it has made my day yesterday, enough to decide to write about it. As everyone knows in direct VNC setup the client connects to the server which listen somewhere (usually on port 5900). If your vnc server is behind a network it might not be so easy to forward it’s vnc port to an external accessible machine so in this case reverse vnc might come in handy....

March 26, 2008 · len

Source routing

The situation Due to some changes in the internet providers it has been decided to add a new external interface to the router machine via a different provider which will work for some time in parallel. The idea is to have both interfaces actives and to have all the services active on both. Let’s call the interfaces ethA and ethB. The problem The problem is that by default you can only do destination based routing and you can only have one default route....

March 22, 2008 · len

Ant and env variables

Desired result Execute an ant target only if some environment variable is set. Something like: ant deploy -> does something<br></br>MYVAR=test ant deploy -> does something more How Why is this so complicated? Because if a environment variable does not exist ant will assign the value ${env.myvar} to the property myvar.0 <property environment="env" /><br></br><property name="myvar.0" value="${env.myvar}" /><br></br><condition property="myvar" value="${myvar.0}"><br></br> <not><br></br> <equals arg1="${myvar.0}" arg2="$${env.myvar}" trim="true" casesensitive="false" /><br></br> </not><br></br></condition><br></br><br></br><target name="myextratarget" if="myvar"><br></br> <echo message="${myvar}" /><br></br> ....

March 20, 2008 · len

The stinging nettle recipe

The stinging nettle recipe (mancare de urzici) This is a recipe which can be done just a few times in the beginning of the spring when the stinging nettles are small. It’s a fasting recipe and even if I don’t fast I like a lot. Ingredients stinging nettles can be bought in piles. At least 4 piles are required for a 2 persons meal. green onion (a bundle) 3-4 garlic gloves 4 tbs of flour Preparation only the leaves of the stinging nettles can be used....

March 16, 2008 · len

About work

I have not written much about my work, my actual work but I think today is a good day to do so as it’s one of the more “typical” days. Every day I start with a set of tasks. Imagine them as a queue, or bag, of tasks. Most of them are just beacons on parallel threads. In fact all off them are beacons on parallel threads. So, generalize: every day I start with a set of queues and a more general queue containing the first task in all those other queues....

March 6, 2008 · len

Chiftelute, chiftelute

Gandindu-ma la ceva bun azi am ajuns de la imaginea/gustul retetei chinezesti de porc cu sos caramel la mai multe idei (1, 2) pe care le-am combinat. Chiftelute, chiftelute Ingrediente carne tocata (am folosit cam 500g de carne tocata de porc si vita) 1 ceapa putina paine (miezul de la o felie uscata) sau 2 linguri pesmet baza de orez fiert cu sare si cuisoare sau cous cous mirodenii pentru carne: patrunjel, sare, piper, coriandru 1 ou bulion, morcov mirodenii pentru sos: cardamon, piper, coriandru, ardei iute (chilli pepper) susan pentru experiment de chiftelute Metoda am taiat ceapa mic de tot intr-un bol am amestecat carnea cu jumatate din ceapa taiata, painea inmuiata cu apa si stoarsa pesmet, oul, patrunjelul bine taiat am facut niste bilute din amestec cam de 2 cm in diametru (cam cat o nuca) pe care le-am prajit in ulei o parte din bilute le-am dat prin susan inainte sa le prajesc restul de ceapa si morcovul ras l-am calit cu putin ulei adaugand pe urma mirodeniile si bulionul....

March 2, 2008 · len

K550i sync

Updated 22-03-2008: fixed broken link. After the tragic death of my T630 phone I have bought a new Sony Ericsson K550i to replace it. The old phone worked quite ok with linux but I was very pleased by how quick I was able to make this new one work with my Ubuntu Gutsy. Synchronization I managed to establish a bluetooth connection with no trouble using the same method described here using multisync....

February 28, 2008 · len

Blogosfera: care pe care

// *Update 2008-02-24:* deoarece harta mea a generat o multime de reactii pozitive m-am hotarat sa o updatez periodic pentru a ramane sincronizata cu evolutia blogosferei romanesti. Ma gandesc sa adaug si o metoda automata de a putea inregistra noi bloguri. Pentru moment puteti sa-mi trimiteti un mail cu blogul vostru pentru a-l introduce in update-ul urmator. Ma gandesc de ceva timp la un graph (harta) al blogosferei romanesti. In mod...

February 17, 2008 · len

GraphViewer

I have been trying to find a way to display on the web in a reasonable fashion a graph of ro blog’s connections. After trying various configurations with graphviz, tulip and other graph visualization software it was clear to me that there is no way to display a highly connected ~ 700 nodes graph in reasonable size image. The best I could hope after trying different layouts of the graph in tulip was something like this:...

February 16, 2008 · len

Java multicast untold aspect

One of the elements not clearly stated if reading the java multicast documentation and examples found on the net is that if you create a multicast receiver this will NOT listed to all available interfaces. Instead one must specify the desired interface because otherwise the MulticastSocket will only listen to the first active (default?) interface. Here is an example of code which specifies exactly the interface to listen to: import java....

January 30, 2008 · len