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..

ottobre 15, 2006

vNES – Emulatore NES nel browser – Web Games

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

vNES HomepageAvete presente i vecchi giochi da bar tipo Bubble Bobble, Arkanoid, Bomberman e così via? Immagino che avrete anche presente i vari emulatori tipo il MAME che vi permettono di rigiocarli sul vostro PC. Quello che (forse) non avete ancora presente è che esiste un sito (vNes) che vi permette di giocare ai giochi emulati direttamente nella finestra del browser, senza scaricare programmi aggiuntivi (a parte i runtime Java 1.5 che ormai sono standard in tutti i PC). Questo è possibile perchè il tizio ha preso nescafe (un emulatore NES scritto in Java sotto forma di applet) e l’ha combinato con le ROM presenti sul sito. Non so se questo sia legale o meno, comunque saranno affaracci suoi smiley Provatelo!

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..

aprile 11, 2006

Circuit simulator Java applet

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

Ora voglio proporre una simpatica applet Java che sicuramente sarà apprezzata da tutti gli studenti di Elettrotecnica ed Elettronica, nonchè dai semplici appassionati … magari l’avessi avuta a disposizione io all’epoca! Circuit Simulator è un’applet web che vi permette di simulare in pochi passi un sacco di circuiti. Si parte dai semplici LRC, passando poi a veri e propri componenti combinatori e sequenziali, amplificatori, mosfet e via dicendo. Sono già disponibili i layout di molti circuiti largamente utilizzati (come i filtri ed i generatori d’onda), ed è sempre possibile modificare il circuito aggiungendo o rimuovendo componenti, o variandone le caratteristiche. E’possibile anche avviare una simulazione grafica degli andamenti delle misure d’interesse (voltaggi e tensioni), evidenziando anche gli andamenti ai capi di un particolare componente. Insomma, un comodissimo tool didattico per tutti gli appassionati e per gli studenti!