Vortexmind: free your mind Blog

Who controls the past, controls the future. Who controls the present, controls the past.
dicembre 5, 2006

Quick Tips – Installing JINI on Gentoo with NPTL

Author: Vortexmind - Categories: English, Tutorial - Tags: , , , , , , , , , , , , , , , , , , , ,

Just a quick tips for all folks out there that are getting mad on this smiley

Problem: if you are trying to install JINI in Gentoo Linux, after you downloaded the installer starter kit you may start it and find errors like this:

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

This seems to happen if you have compiled your glibc libraries with nptl and nptlonly USE flags. You will be unable to install JINI (and I have read that this problem could happen to other java installers. But there is an easy solution for this! Read it all..

novembre 13, 2006

Best 10 Wordpress Plugins for Google Adsense

Author: Vortexmind - Categories: Blogging, Surfing The Net - Tags: , , , , , , , , , , , , , ,

Direttamente da quick online tips, vi rigiro la lista dei migliori plugin per wodpress in grado di integrare google adsense nel vostro blog. Proprio quello che mi serviva, dato che ad oggi usavo ancora modificare manualmente i template. Read it all..

ottobre 10, 2006

Java Threads – Runnable – Issues – Newbie Tips

Author: Vortexmind - Categories: English, Informatica - Tags: , , , , , , , , , , ,

Since I’m getting back on programming, I’m currently re-skilling myself on this duty. Having not programmed Java in a while, I’ve found myself on trouble on this simple topic: Java concurrency and threads. I will insert on the blog some “quick tutorials” about various subjects. I’ve found that programmers sometimes need a fast solution on a given problem. They could surely get it by looking at the API’s and so on, but it costs valuable time. So I will go straight to the problem.

  • Problem: I need to do a fixed job on some data in a parallel fashion.
  • Solution: using a multi-threaded model, I have two classes Controller and Worker. Worker is essentially a thread that does the fixed job and reports the data to the Controller
  • Main issues: is it better to “extends Thread” or to” implements Runnable“? How to accessing shared variables concurrently and avoid race conditions? How to pass data from Worker to Controller?

Read it all..