2008-02-28

How to install BDNE Client over JRE 1.6.0 in Windows

1. Visit http://ha.bdne.edu.ro/bdne-client/ and choose to save the bdne_client.jnlp file using the right mouse button.
2. Install a http server (Abyss Web Server X1 is a good choice) and a site mirroring application (HTTrack Website Copier is also a good choice).
3. Copy the jnlp file inside the home folder of your http server.

4.
Convert the jnlp file from LF to CR+LF for editing convenience (get a tiny tool made by myself here).

5.
Copy all the resources in the form
<jar href=”something.jar”></jar> and convert them to hyperlinks like
<a href=”codebase/something.jar”>something</a>

6. Put the hyperlinks (currently 42 of them) into a simple html file, and place this file inside your home folder of the http server (an example is here).

7.
Download all the resources. With HTTrack create a new project. Navigate with your browser at the loopback address 127.0.0.1 and find the html file containing the resources links. Copy this address to HTTrack, and also choose for action “Download web sites + questions”. When the “Link detected…” window appears, choose “Mirror the whole domain”. The mirroring may take a while (usually the mirroring speed is slightly slower). If you use HTTrack you can select the speed of the download by going to Mirror menu, then Limits tab and type in the Max transfer rate (B/s) the value you want (for example 1000000).

8.
Copy all the resources inside your home http server.

9.
Modify the jnlp file replacing
<jnlp href="bdne-client.jnlp" spec="1.0+" codebase="http://ha.bdne.edu.ro/bdne-client"> with
<jnlp href="bdne-client.jnlp" spec="1.0+" codebase="http://127.0.0.1"> and<j2se version="1.4" max-heap-size="128m" initial-heap-size="32m"> </j2se> with<java version="1.6" max-heap-size="128m" initial-heap-size="32m"> </java>
Also get rid of the icon deleting <icon href="bdne-icon.jpg"> </icon> (an example is here)


10.
Don’t forget to uninstall any other older version of the BDNE Client.

11.
Double-click the modified jnlp file. The client will be installed from local harddisk. Remember to start the http server if you closed it.

12.
To create a shortcut on Desktop and Start menu you can go to JRE bin folder (something like <rootpath>\Program Files\Java\jre 1.6.0_03\bin\) and run javacpl.exe or using the standard way go to Start->Control Panel->Java, then go to General tab, choose View… for Temporary Internet Files and then select the BDNE Client from the list and click the button to install shortcuts.

13.
You can also change the default icon to something more appealing.

Note: You don't need the Abyss Web Server to run after the client is installed. It is required only at installation time when local jnlp file is checked against codebase jnlp file (primarily that's why you download all the installation files to local computer). Every jar file is digitaly signed, therefore you cannot forge them anyway.


Update: The tutorial still works today October, 8th, 2010. It was tested using Java 6 Standard Edition Update 21. A zip file with the client has been uploaded here. If you download this version all you have to do is to follow the tutorial from section 8. Section 9 is only required partially (the changes have been applied, but you may need to modify the codebase).

2008-02-21

VR/X 7 este în sfârşit disponibil

Am reuşit să găsesc suficient timp să termin încă o parte din VR/X. Iată un preview mai jos. Pentru a citi totul mergi pe situl The xunRAGE Magazine.

... Se spune că această lume este doar o faţadă, prin urmare cel mai bun lucru pe care îl poţi face este să nu o iei prea în serios...

...Se auzi în telefon un şuierat însoţit de un pârâit supărător. După ce m-am concentrat am putut distinge vag o voce care spunea pe un ton stins „Ajută-mă!”...

...Trăiesc într-o lume pe care s-ar putea să nu o înţelegi, însă pentru mine aceasta este singura cale...

...Am deschis ochii. Deasupra mea era aplecată Xia cu frumoşii ei ochi albaştri scufundaţi în lacrimi...

...O sferă minusculă apăru undeva la orizont însoţită de un zumzet abia perceptibil. Însă se îndrepta spre mine cu o viteză uimitoare, grila albă din jur părând să se deformeze la trecerea ei...

VR/X 7 - The Spheres Attack, available now!

2008-02-10

Citire de la tastatura in Java

Este necesar sa scrii destul de mult cod pana reusesti sa citesti un sir de caractere de la tastatura in Java.

BufferedReader in = 
     new BufferedReader(new InputStreamReader(System.in));
String s;
try{ s = in.readLine(); }
catch(IOException e){ e.printStackTrace(); }

Poti sa vezi un program cu QuickSort care foloseste aceasta secventa la http://xunrage.googlepages.com.

2008-02-08

Simple PHP Poll

If you're in PHP business, then you certainly need a good editor. That editor for me, at the moment, is Komodo Edit 4.2.1 from ActiveState. Now let’s get to the poll... Well Blogger is not very code friendly, therefore you can get it as a PDF file from here.

2008-02-07

Get a Buz

Am început prin a căuta situri spectaculoase realizate în flash şi am văzut lucruri "much more beyond my html experience". La un moment dat am descoperit acest nou site www.getabuz.com care oferă un serviciu de mesagerie direct în pagina web. Destul de cool. Acum veţi putea sa îmi lăsaţi, dacă doriţi, mesaje vocale. Obiectul este mai lat decât suportă partea dreaptă a paginii de blog. Prin urmare îl găsiţi după topics, la sfârşitul paginii.

Update: Acest site nu mai există, prin urmare gadgetul a fost eliminat din blog.