2008-12-29

Belief

I am a ronin. My mind is my nihonto and my life is my yama. Like wind my soul is passing through sakura and I unleash my rage against the enemies. I will never surrender my mountain.

2008-12-15

Amilo Li2735

Astazi am achizitionat un notebook Fujitsu Siemens Amilo Li2735, la pretul de 1900 de lei. Este dotat cu un procesor Intel Core 2 Duo T5750 la 2GHz, realizat in tehnologia de 65nm. Pe langa aceasta caracteristica definitorie, notebookul are un display de 15,4 inches, 2GB memorie RAM (SO-DIMM DDR2 PC2-5300 la 667MHz, 2 sloturi, capacitate maxima 4GB) si un harddisk de 160 GB. Grafica este integrata Intel Graphic Media Accelerator X3100 (333MHz display cores, 500MHz render cores, suporta DirectX 10.0, Shader Model 4.0 si OpenGL 2.0, altfel zis merge blana la joculetele mele stupide).
Box Specifications:
AMILO Li 2735
Display: 15.4" WXGA BrilliantView (1280 x 800)
Processor: Intel® Pentium® Core 2 Duo T5750
Memory: 2 x 1GB RAM DDR2/667
Hard disk: 1 x 160GB SATA/5400rpm
ODD: SuperMulti-format DVD burner DL
WLAN: 802.11 b/g
Graphics: Intel® Graphics Media Accelerator X3100, shared memory depending on RAM
Communication: LAN 10/100
Interfaces: 1 x VGA, 4 x USB 2.0
Interfaces: S-Video out
Interfaces: Mic/Line in, Headphone/Line out
Audio: 2 speakers
Numbers:
Asset Number: 930000525620
Product Number: CCE:SEE-110142-001
SAP Number: 10600976948
PO Number: 3500037790
Serial Number: DWQC001374
Made by: Fujitsu Siemens Computers GmbH, Mies-van-der-Rohe-Strasse 8, D-80807 München

2008-12-06

Trapped Inside

Here. Now. Alone. Full of obsessions. Full of fears. Trapped behind a fence inside the mind where the perceptual point of view offers no hope, no purpose, no sense of time. When eyes become too wide open, it starts to hurt. Then expectations die and life fades to black. A dark existence, where world becomes a lie, where you and me are just mistakes in universe, against the logics of the peace, of eternity.

Thinking... too much, too often. Searching the truth by making unbiased links between ideas. A chain is formed that locks the path to the reality of love and happiness. I stay at the border of this land awaiting for someone to rescue me from the truth that brings the madness...

2008-11-13

Correct phrase

I suppose you know that lovely person very well because you succeeded to light up a sensitive zone from her life. I think you are a writer, a remarkable one. Congratulations!

2008-11-09

Ikariam

De câteva luni joc Ikariam şi de curând am început să folosesc Google Docs pentru a utiliza un spreadsheet. Pentru că am dorit să automatizez cât mai mult calculele am căutat să aflu formulele jocului. Câteva dintre ele sunt oarecum greu de ghicit dintr-o privire, iar rotunjirile pe care le face Ikariam produc şi mai multă confuzie.

Locuitorii unui oraş se împart în 4 categorii: cercetători, muncitori la moara de lemne, muncitori la mina de resurse şi locuitori care nu sunt destinaţi celorlalte activităţi. Putem scrie aceasta ca :

Locuitori = Cercetători + MuncitoriLemn + MuncitoriResursă + Cetăţeni

Cetăţenii produc 4 aur pe oră, cercetătorii consumă 8 aur pe oră, iar muncitorii nici nu produc nici nu consumă aur. Prin urmare aurul brut se calculează astfel:
AurBrut = Cetăţeni * 4 - Cercetători * 8
Dacă este cercetat Tobogan de scrisori din ramura Ştiinţa, atunci cercetătorii vor avea nevoie numai de 7 aur pe oră.

Când vrei să scrii formule blogger este ca o împuşcătură în picior. Din acest motiv pentru mai multe detalii citiţi acest document în format PDF.

2008-11-08

Quick tip

To run Microsoft Windows Malicious Software Removal Tool, click Start then Run... and type: mrt.

2008-10-25

Vundo.Gen

I got Vundo.Gen from the Internet and my Avast Home Edition 4.8 found something a little suspicious, but it failed to actually handle the infection. Using TuneUp I found out a link to a strange named DLL in the Windows\System32 that started with Windows. The file handle was locked by three processes, one of witch was Windows Explorer. I had to use Unlocker to be able to delete the file. Later I use VundoFix to rescan for Vundo and I deleted 6 more files that were not the trojan (therefore this tool sucks).
When a file is suspicious, a cool way to found out if it is clean is to use VirusTotal service where you upload the file and it is checked with 36 antivirus engines.

2008-10-09

Register a DLL or an OCX

To manually register a DLL or an OCX file in Windows use the following command:

regsvr32 [/u] [/s] <path_to_file>

where /u stands for unregister and /s for silent.

Example:

regsvr32 %systemroot%/system32/comdlg32.ocx

2008-09-25

Timidity

Timidity is a fear to not bother others with something you do, to not be in the center of attention to others. Paradoxically, timidity is opposite to natural human behavior. This makes me think that the origin of timidity is in the early childhood. Little children instinctually want to be in the center of attention and they will pretty much use all the necessary resources to obtain that. At this point it’s critical how harsh is the punishment from the grownups. Excessive punishment (even if it’s only verbose) may create the fear that powers up timidity. Timidity is also fueled up by a factor of isolation. In a way parents are the oppression and your friends the resistance. In other words people of the same age are more likely to accept your stupidities than older ones.

Resuming, timidity consists of:

  • Fear not to bother
  • Fear not to be in the center of attention
  • Isolation factor

It’s important to mention that usually timidity installs itself at the instinctual level and is only eliminated by abruptly eliminating the generators.

The opposites of shy persons are the overconfident ones. In this world, the shy persons are the prey and the overconfident persons are the predators. When you form yourself as a person, there are several layers of behavior that interact and depend one on another. Because timidity is on a lower layer it is very difficult to extract and it requires multiple changes in almost all the layers. I guess that the key to success of timidity banishment is the isolation factor: forcing of being with other people will finally reduce the fears and most probably terminate them. But the shy person have to fight himself and push the relational interaction further even if he thinks he does ridiculous things. Unfortunately shy persons will not become very sociable easily, and in most cases is a matter of context.

The Zero Effect

In 2001, when I made my first webpage, I was very excited about all this opportunity, because Internet offers a place where you can publish your ideas and a lot of other things, and all these are available to a broader audience. But there is a problem: nobody knows about your site. You, very soon, realize that you need to promote it. This can be done in two ways: to annoy people by telling them about your site, or to spam them. Either way, finally, a couple of people will visit your site. The problem now is that they compare it to sites belonging to corporations or companies where a team of professionals maintain the content and your site doesn't stand the chance: at its best is considered cute and easily forgotten. While the time passes, there will be zero visitors, zero comments, zero downloads, zero feedback. One day you will embrace that zero and you'll start to put things out just for your own purposes. Sad that day is. Web is no longer different than a notebook, with the exception of the times when you write stupidities and they will hunt you down for that.

2008-09-05

What means xunrage


Back in 2001 I wished I have a unique nickname. The main idea was to stick together two words from two completely different languages, and then search in Google how original that composition was. Finally I came across xunrage, which is formed from the word xun from Chinese and the word rage from English. Xun is one of the eight trigrams of Xiantian Bagua and its meaning is wind. Therefore xunrage translates as the fury of the wind. Considering the fact that in Bagua wind is a mild and gentle element, its association with rage is my personal belief that peaceful things can change in unsuspected ways. Later I’ve created the X logo with those sharp edges, where the blue represents the xun and the pink represents the rage.

2008-08-10

Subtitrari

Softpedia are o sectiune de subtitrari, insa am incercat sa pun si eu o subtitrare la ei pe site si n-am reusit. Le-am trimis-o pe mail si am observat ca m-au ignorat total: nu numai ca nu au pus subtitrarea pe site, dar au eliminat si un comentariu lasat la filmul respectiv in care spuneam ca n-am reusit sa urc subtitrarea. In loc sa rescrie codul defect al sitului lor infect, au ales calea ascunderii adevarului. La urma urmei, nu ma afecteaza pe mine atitudinea lor.

2008-08-09

xunRAGE Art

xunrage
I've uploaded some of the pictures I've created using different programs to Picasa.

2008-08-08

Best Webhost

For me a best webhost is that host that offers for free as much services as it can and it stand the test of time. A best webhost never cares if I use their services and how, as long I'm not reported doing something wrong. A best webhost is just hosting me, no string attached. For the moment I'm looking for such a place to put my homepage there, because my last choice, to my dismay, vanished.

2008-07-10

Licenta

Am sustinut examenul de licenta si totul a fost ok. Vezi notele aici.

2008-07-03

MinGW Developer Studio 2.05 cu MinGW 5.1.4

MinGW Developer Studio 2.05 de la Parinya Software are inclus o versiune de MinGW mai veche şi se poate folosi din primul moment. Însă dacă se doreşte utilizarea sa cu ultima versiune de MinGW, atunci după ce a fost instalat aşa cum am discutat în acest post, se merge în Edit->Options..., tabul Compiler şi se alege în căsuţa corespunzătoare etichetei MinGW path calea C:\MinGW\.

2008-07-02

Bad Icon for IE7

I have chosen to use Internet Explorer 7 as my default browser in Windows XP SP3. For some reason the Start menu icon for the browser didn't show fine. After a bit of research, i found that it simply has set up a bad icon index to -7. I turn it to 0 and everything went fine. The registry key that I have modified follows:
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IEXPLORE.EXE\DefaultIcon]
I modified the default string value to:
C:\Program Files\Internet Explorer\iexplore.exe,0
By the way, the 57th (0x39) byte in a LNK file shows the icon index used.

2008-06-22

Code::Blocks 8.02 cu Borland C++ Compiler 5.5

Când am început eu să învăţ programare în liceu se foloseau exclusiv produsele Borland, adică Turbo Pascal 7 şi Borland C++ 2.6. Unii mai folosesc şi astăzi aceste unelte antice. Pentru cei care sunt fani Borland se poate realiza următoarea combinaţie gratuită: Code::Blocks IDE şi Borland C++ Compiler 5.5. Pentru a descărca compilatorul este necesar să fie creat un cont CDN, însă acest lucru nu este un impediment. În final se obţine fişierul freecommandLinetools.exe pentru instalarea compilatorului şi fişierul de instalare pentru Code::Blocks (eu am ales versiunea cu MinGW inclusă, codeblocks-8.02mingw-setup.exe).
Mai întâi am instalat Code::Blocks şi apoi compilatorul. Pentru instalarea compilatorului am ales calea de instalare în interiorul directorului lui Code::Blocks (C:\Program Files\CodeBlocks\Bcc55). Apoi se crează în subdirectorul bin cele două fişiere, bcc32.cfg şi ilink32.cfg aşa cum este explicat în fişierul readme.txt. Se deschide Code::Blocks şi se merge în meniul Settings->Compiler and debugger..., apoi se alege din drop-down box-ul Selected compiler, Borland C++ Compiler (5.5, 5.82). În tabul Search directories şi subtabul Compiler se adaugă calea C:\Program Files\CodeBlocks\Bcc55\Include. În subtabul Linker se adaugă două locaţii: C:\Program Files\CodeBlocks\Bcc55\Lib şi C:\Program Files\CodeBlocks\Bcc55\Lib\PSDK. În tabul Toolchain executables se alege în căsuţa corespunzătoare Compiler's installation directory, C:\Program Files\CodeBlocks\Bcc55. Automat în subtabul Program Files sunt alese fişierele corecte. În final se poate opta pentru folosirea ca default a compilatorului de la Borland, acţionând cu un click pe butonul Set as default.
Poţi testa faptul că Code::Blocks a folosit compilatorul de la Borland dacă în executabil găseşti şirul de caractere Borland C++ - Copyright 1999 Inprise Corporation. Recent divizia CodeGear de la Borland Software Corporation a fost vândută firmei Embarcadero Technologies, Inc., ceea ce înseamnă că toate uneltele de programare au acum un nou stăpân.

Netbeans 6.1 cu MinGW 5.1.4

A curs apa de pe mine până am reuşit să fac să meargă NetBeans împreună cu MinGW.

Primul pas a constat în download-ul lui NetBeans 6.1 care conţine toate componentele (versiunea de 219 MB) de aici. Anterior instalasem JDK 6 Update 6 şi aveam downloadată şi documentaţia de aici. La instalare am renunţat să instalez serverele, GlassFish V2 UR2, respectiv Apache Tomcat 6.0.16. Datorită acestui fapt nu am instalat nici SOA. Am pornit NetBeans şi am setat locaţia pentru documentaţie din meniul Tools->Java Platforms, tabul Javadoc, apoi Tools->NetBeans Platforms, tabul Javadoc. Este interesant faptul că NetBeans crează indexii pentru help abia după deschiderea unui proiect java, astfel că Help->Javadoc Index Search va funcţiona numai după aceea.

Am crezut că suportul pentru C++ este complet, însă am constatat că NetBeans oferă numai suport pentru editare (este doar un IDE), nu şi pentru compilare sau crearea executabilului.

Printre compilatoarele agreate este şi MinGW şi am decis să-l instalez pe acesta. Problema e că pe SourceForge sunt o mulţime de pachete pentru MinGW şi nu ştiam ce să instalez (vezi aici). Primul lucru pe care l-am instalat a fost Automated MinGW Installer (MinGW-5.1.4.exe). Am ales să instalez toate componentele mai puţin Ada Compiler, Java Compiler şi Objective C Compiler. Automated MinGW Installer a descărcat următoarele fişiere: binutils-2.17.50-20060824-1.tar, gcc-core-3.4.5-20060117-3.tar, gcc-g++-3.4.5-20060117-3.tar, gcc-g77-3.4.5-20060117-3.tar, mingw32-make-3.81-20080326-2.tar, mingw-runtime-3.14.tar, w32api-3.11.tar şi mingw.ini. Locaţia de instalare am lăsat-o C:\MinGW pentru că am observat că dacă conţine un spaţiu în denumirea căii, NetBeans nu se descurcă prea bine. Am observat că mai trebuie şi utilitarul make şi debuggerul. Pentru debugger am mers pe ramura GNU Source-Level Debugger şi apoi am downloadat din Current Release, fişierul gdb-5.2.1-1.exe. La instalare am ales să se instaleze tot în C:\MinGW. După mai multe încercări eşuate am găsit că pentru make trebuie descărcat pachetul msysCORE-1.0.11-2007.01.19-1.tar.bz2 de pe ramura MSYS Base System. Am făcut rost de un arhivator care ştie să despacheteze arhivele bz2 cum ar fi 7-Zip. După despachetare am copiat conţinutul arhivei msysCORE-1.0.11-2007.01.19-1.tar în directorul C:\MinGW. În final am setat NetBeans să folosească MinGW: am mers în meniul Tools->Options, apoi am ales pictograma C/C++ şi sub panoul Tool Collection and dat click pe butonul Add..., am ales ca Base Directory C:\MinGW\bin şi automat NetBeans a detectat că e vorba de MinGW.

2008-06-19

Licenta

Astazi, in sfarsit am terminat lucrarea de licenta de redactat, de printat si de legat. Urmeaza o perioada in care va trebui sa fac o prezentare a ei, si sa studiez ceva programare. Din punctul meu de vedere partea cea mai obositoare a trecut.

2008-06-02

Freelance

Starting with 1st of June 2008, I'm a freelance again. In other words I'm working for myself from now on.

2008-05-22

Reflections

Being you and believing in your existence
It's a big difference between being you and believing in your existence. The main difference is that being you it is like you as a mind and you as a body are a whole, something integrated, something unique, that act and think in the same way. But when you think that you exist, you create a difference between your body and your mind. Then you start to view the life from different angles, from angles that sometimes leave your body. You can go as far as differentiating between your body and your mind or simply you can go farther and create a virtual wall between your internal world and external world. When you believe that you are not a whole structure it’s easy to imagine that your body can hold multiple dimensional selves and soon you will loose yourself.
Goddess
My perception of a girl is like the girl is some sort of goddess. Because you do not have to trouble gods with your thoughts, with your feelings, gods are only there to venerate and to sacrifice your feelings for them, I usually do nothing. But this is an artificial love, an artistic love, because there are not deep roots in this love.
Open to love
To meet love you have to be opened to love. That means that you strongly have to believe that someone can love you, you strongly have to believe that you cannot live without someone. These assumptions are stupid but they are beautiful in their way. And this stupid, yet beautiful thing is love.
Obsession
I know only a way to love: it’s the way of being attracted to someone and transforming the attraction into an obsession. I don't get rid of my obsessions easily. She was a brunette, she was beautiful in a kind of way and nothing was too special about her. That emphasize my beliefs that you're attracted to women that are most closely to your genetic branch. Therefore I believe that my DNA dictates me that brunettes are best fit for the sexual purpose and for the racial continuance of my species.
Changes
I swore to myself or promised as you like to say it, I’d change the way I am. I was catastrophic! People don't change and if they change it takes a life to do it.
Desynchronized
When your world crashes into pieces and you're not upset about it then you don't really exist, you're a fabulous thing from tales. Remaining with nothing creates a very multidimensional sorrow, multidimensional pity, and multidimensional negativism. Then, the existence has nothing to offer. It was not a surprise I desynchronized from school. When world means nothing, school means even less.

2008-05-13

Raport Candidati si Note

Comanda sql pentru crearea unui raport cu notele si probele candidatilor:

select nume+' '+initiala_tatalui+' '+prenume NUME_COMPLET,cnp, profiluri.nume_profil, filiere.nume_filiera, specializari.nume_specializare, forma_invatamant,rom_oral, rom_scris,(select nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect=candidat.id_limba_moderna) PROBA_B, nota_limba_moderna,(select nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect=candidat.id_proba_d) PROBA_D, nota_proba_d,(select nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect=candidat.id_proba_e) PROBA_E, nota_proba_e,(select nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect=candidat.id_proba_f) PROBA_F, nota_proba_f,(select nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect=candidat.id_proba_f_bis) PROBA_REZERVAfrom candidat, specializari, profiluri, filierewhere nume_clasa='XIII' AND tip_clasa='' AND candidat.id_specializare = specializari.id_specializare AND specializari.id_profil=profiluri.id_profilAND profiluri.id_filiera=filiere.id_filieraorder by nume, prenume;

Atentie la Backup!

Recent aplicatia CL a suferit un patch si acum a devenit versiunea 5.1. Diferenta consta in faptul ca s-a modificat baza de date si a aparut un checkbox plasat in graba unde s-a gasit loc (checkboxul cu eticheta "Sustine subiecte 2007").
Prin urmare operatiunea de backup atat din CL 5.0 cat si din CL 5.1 a ramas aceeasi. Se alege din meniul Fisier, optiunea Copie de siguranta. Apoi se alege directorul unde se va crea backupul, conform titlului ferestrei de dialog "Selecteaza directorul unde va fi salvata copia de siguranta". Partea de jos a dialogului trebuie ignorata pentru ca trecut in casuta corespunzatoare "Numele fisierului:" este de fapt calea de directoare in care se salveaza backup-ul, iar casuta corespunzatoare etichetei "Tipul fisierelor:" este complet inutila. Incercarea de a da un nume exportului va rezulta intr-un esec, pentru ca numele este creat automat sub forma:
"backupDatabase_"[zi]"_"[luna]"_"[an]"_"[ora]"_ "[minut]"_"[secunda]"_v5_"[01].exp.

Pana aici probabil ca se gaseste in manual, insa voi merge ceva mai departe cu detaliile.
Primul lucru de stiut este faptul ca fisierul exportat este o arhiva ZIP, prin urmare schimband extensia EXP in ZIP se poate despacheta informatia continuta. In interior sunt 4 fisiere: bacalaureat.data, bacalaureat.log, bacalaureat.properties, bacalaureat.script. Aceste fisiere formeaza de fapt o baza de date HSQL cu numele bacalaureat. Fisierul bacalaureat.data, contrar numelui contine 1MB de carcatere NULL adica 1048576. El este cel mai mare insa e inutil. Fisierul bacalaureat.properties arata ca programul lucreaza cu HSQL versiunea 1.7.x. Datele introduse in sesiunea curenta (in perioada de timp de la deschiderea programului pana la crearea backup-ului) sunt salvate in fisierul bacalaureat.log. Programul realizeaza COMMIT, doar la pornire. Celelalte date se regasesc in bacalaureat.script.

Un backup rapid manual se poate face dupa ce s-a inchis programul, prin copierea fisierelor bacalaureat.properties si bacalaureat.script din directorul data al caii de instalare a programului CL.

Desi versiunea 1.8.x este versiunea curenta de HSQL si este downward compatible, ea va schimba fisierele bacalaureat.properties si bacalaureat.script, iar programul va afisa urmatorul mesaj "Aplicatia mai este pornita o data sau nu aveti drepturi de acces pe directorul data". Schimbarile sunt efectuate in sectiunea de creare a tabelelor in fisierul bacalaureat.script, sau spus altfel in sectiunea de antet pana incep comenzile INSERT. Atentie! Lipsa fisierului bacalaureat.properties duce la aparitia unei ferestre de eroare cu mesajul "Eroare baza de date" si un buton "Inchide". In aplicatie baza de date apare ca fiind goala, insa fisierul bacalaureat.script este intact, insa dupa inchiderea programului fisierul bacalaureat.script este modificat si se pierd toate datele. Dupa ce s-a folosit versiunea 1.8.x se foloseste fisierul bacalaureat.properties pentru versiunea 1.7.x, si se inlocuieste partea de antet din fisierul bacalaureat.script cu cel specific versiunii 1.7.x. Acest lucru este bineinteles necesar daca s-au modificat datele prezente in baza de date, insa nu si structura tabelelor.

2008-05-05

Problema cu CL 5.0

In acest post aratam faptul ca clientul de bacalaureat foloseste JRE 6u5 ca sa se planga ca nu poate rula, ceea ce era mai mult decat straniu. Iata cum face el verificarea versiunii de java in functia main:

public static void main(String args[]){
Properties properties = System.getProperties();
if(properties.getProperty("java.vm.version").startsWith("1.6") properties.getProperty("java.vm.version").startsWith("1.5") properties.getProperty("java.vm.version").startsWith("1.4.2"))
{
//something
} else
{
Show.error("Versiunea minim\u0103 de JRE este 1.4.2.");
System.exit(0);
}
}


Problema e ca in JRE 6u5, atributul care este cautat este java.vm.version=10.0-b19, si prin urmare nu incepe nici cu "1.6", nici cu "1.5" si nici cu "1.4.2". Mai mult, ar trebui sa se aloce memorie astfel:
Properties properties = new Properties(System.getProperties());
Cel mai bine ar fi fost sa se foloseasca atributul java.version=1.6.0_05.
See a test here.

Excel & HSQL

Mai jos sunt cateva comenzi utile:
In Excel:
  • UPPER(A1&B1) - concateneaza continutul din A1 si B1 si apoi converteste toate literele mici in litere capitale.
  • MATCH(B1,altafoaie!$A$1:$A$100,0) - indica randul din altafoaie in rangeul A1:A100 care contine exact informatia din B1.
  • INDIRECT("altafoaie!"&ADDRESS(A1,3)) - intoarce valoarea din altafoaie de pe randul specificat de A1 si coloana C.
Urmatoarele comenzi sunt specifice bazei de date HSQL folosite de aplicatia CL 5.0 pentru bacalaureat:
  • select * from candidat where nume_clasa='XII' AND tip_clasa='A' order by nume,prenume;
    Afiseaza toti candidatii in ordine alfabetica din clasa XII A.
  • select id_tip_subiect, nume_tip_subiect, id_disciplina,
    (select nume_disciplina from discipline where discipline.id_disciplina=tipuri_subiecte.id_disciplina) NUME_DISCIPLINA,
    id_proba,
    (select cod_proba from probe where probe.id_proba=tipuri_subiecte.id_proba) COD_PROBA,
    (select tip_proba from probe where probe.id_proba=tipuri_subiecte.id_proba) TIP_PROBA
    from tipuri_subiecte where id_tip_subiect=197;
    Afiseaza detalii complete despre tipul de subiect care are id-ul 197 (Engleza). Modificand acest cod se poate afla informatii despre oricare alt tip de subiect. Daca se elimina clauza WHERE atunci vor fi afisate toate tipurile de subiecte existente.
  • update candidat set id_limba_moderna=197 where nume_clasa='XII' AND tip_clasa='A';
    Schimba id-ul probei la limba moderna cu 197 (Engleza) pentru toti candidatii din clasa XII A. Daca se foloseste de exemplu id_proba_d=10 (Matematica) atunci se va alege proba d pentru toti elevii din clasa XII A.
  • select * from alocare_tipuri_subiecte where ( id_filiera is null or id_filiera=1 or id_filiera=2)
    and (id_profil is null or id_profil=3 or id_profil=5)
    and (id_specializare is null or id_specializare=8 or id_specializare=74 or id_specializare=77 or id_specializare=39)
    order by id_specializare asc, valabil desc;
    Se filtreaza tipurile de subiecte posibile pentru filiera tehnologica sau teoretica, profilul real sau tehnic, specializarea matematica-informatica, tehnician mecatronist, tehnician transporturi sau tehnician electrotehnist.
  • select count (*) from candidat where id_limba_moderna<>0 and id_proba_d<>0 and id_proba_e<>0
    and ((id_proba_f<>0 and id_proba_f<>192) or (id_proba_f=192 and id_proba_f_bis<>0));
    Se returneaza numarul candidatilor care au optiuni complete, ceea ce inseamna ca au id-ul la proba respectiva diferit de 0, iar pentru Educatie Fizica (192) exista completata si proba de rezerva.
  • select nume +' '+ initiala_tatalui +' '+ prenume Nume_Complet, cnp, nume_clasa+' '+tip_clasa Clasa,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat.id_limba_moderna) Proba_C,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat.id_proba_d) Proba_D,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat.id_proba_e) Proba_E,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat. id_proba_f) Proba_F,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat. id_proba_f_bis) Proba_F_Rezerva
    from candidat order by nume_clasa, tip_clasa, nume, prenume;
    Se afiseaza o lista care contine optiunile candidatilor numai cu numele optiunilor.
  • select nume +' '+ initiala_tatalui +' '+ prenume Nume_Complet, cnp, nume_clasa+' '+tip_clasa Clasa,
    id_limba_moderna,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat.id_limba_moderna) Proba_C,
    id_proba_d,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat.id_proba_d) Proba_D,
    id_proba_e,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat.id_proba_e) Proba_E,
    id_proba_f,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat. id_proba_f) Proba_F,
    id_proba_f_bis,
    (select tipuri_subiecte.nume_tip_subiect from tipuri_subiecte where tipuri_subiecte.id_tip_subiect = candidat.id_proba_f_bis) Proba_F_Rezerva
    from candidat
    order by nume_clasa, tip_clasa, nume, prenume;
    Se afiseaza o lista cu optiunile candidatilor care contine atat numele optiunilor cat si ID-ul acestora.

About Adelina

The following text was initially intended for The xunRAGE Magazine, but it was never published until now:

When someone becomes famous everybody is eager to say that they know her. Well to be completely fair with you, being classmates for a year it's far from knowing somebody. Yes, I met her and all I can say it's that she was a very good person. Nothing outstands except the beauty. But in the 9th grade, we're just a bunch of kids scared by Biology, Math and sometimes IT. Now she presents sport news at Antena 3 and meets famous people. I like to think that there is a world beyond our world for all these people. She had everything necessary to cross beyond. When you watch TV, those people seem flat, and what you know about them makes them flat, but they are real, and sometimes we need to take some time to realize that they have needs like everybody else. I am the witness that those people exist.



Note: She recently leaved from Antena 3, but at the time of the writing of this article she was still working there.

2008-05-04

Un nou homepage

După cum am scris în acest post, am închis proiectul CTT, însă m-am gândit că efortul depus în crearea acestui site nu trebuie să fie risipit. Prin urmare acelaşi template va fi folosit pentru noul homepage. Însă va mai trece ceva timp până când voi face "refactoring" la toate elementele grafice necesare. Planul este ca noua pagină să conţină o colecţie mai vastă de programe şi documente, înlocuind practic vechea pagină de pe Geocities.

2008-04-17

Date elevi BDNE

Pentru aplicaţia de BAC, datele din BDNE sunt destul de puţine. Totuşi pentru a realiza o listă de control se pot urma paşii următori:

  1. Se salvează datele din BDNE Client HA alegându-se din secţiunea Export comanda Exportă Date. Această comandă exportă atât nomenclatoarele cât şi datele aferente unităţii şcolare. Fişierul exportat conţine toate datele, inclusiv situaţiile statistice (SC).

  2. Fişierul exportat are extensia EXP, însă este de fapt o arhivă ZIP, prin urmare schimbaţi extensia.

  3. În interiorul arhivei există un fişier export.xml şi un director export_BDNE_to_DCC. În director se află o bază de date HSQL. Dezarhivaţi conţinutul directorului arhivat într-un director local.

  4. Instalaţi HSQL (vedeţi acest post).

  5. Când se face exportul rezultatului din Database Manager-ul ce există în pachetul HSQL, diacriticele sunt înlocuite cu semne de întrebare. Pentru a avea o listă cât de cât corectă este nevoie de convertirea acestor diacritice în alfabetul englez. Acest lucru îl realizează o mică aplicaţie realizată de mine numită flatenise. Codul sursă pascal este inclus (aplicaţia este compilată cu Virtual Pascal 2.1 build 279).

Fişierele bazei de date exportate au acelaşi nume nomDB. În exemplele de mai jos voi folosi acest nume. De asemenea se consideră JRE 1.6 instalat şi HSQL instalat în directorul C:\hsqldb.

  • Se rulează serverul folosind comanda: java -cp c:\hsqldb\lib\hsqldb.jar org.hsqldb.Server -database.0 d:\bac2008\BDNE\db\nomDB
    unde forma generală este: <java_path>\java -cp <hsqldb_jar_path>\hsqldb.jar <server_classpath> -database.0 <database_path>\<database_name>.
    Se porneşte Database Managerul folosind comanda: java -cp c:\hsqldb\lib\hsqldb.jar org.hsqldb.util.DatabaseManager
    forma generală fiind <java_path>\java -cp <hsqldb_jar_path>\hsqldb.jar <manager_classpath>.
    Se alege în fereastra Connect, în câmpul Type, HSQL Database Engine Server.

  • Dacă aţi parcurs paşii cu succes, veţi vedea în partea stângă a Database Manager-ului o listă arborescentă de tabele. Căsuţa din dreapta sus este destinată introducerii comenzilor SQL. Pentru a afişa lista dorită vom folosi următoarele comenzi:

SET AUTOCOMMIT FALSE;
SET SCHEMA BDNE;

Prima comandă opreşte efectuarea schimbărilor asupra bazei de date până se întâlneşte comanda COMMIT sau ROLLBACK (vezi şi aici). Acest lucru protejează asupra schimbărilor accidentale.
A doua comandă are rolul de a alege secţiunea sau schema sub care se găsesc tabele.

În final introducem următorul query:

select elev.cnp, elev.nume, elev.initiala_tata, elev.prenume,
(select descriere from nom_specializare_meserii
where nom_specializare_meserii.id_specializare_meserie =
asoc_unitate_formatiune.id_specializare_meserie) SPECIALIZARE,
asoc_unitate_formatiune.nume CLASA, asoc_unitate_formatiune.de_la,
asoc_unitate_formatiune.pana_la
from asoc_unitate_formatiune, asoc_elev_formatiune, elev
where asoc_unitate_formatiune.de_la >= '2007-09-01 00:00:00' AND
asoc_unitate_formatiune.id_asoc_unitate_formatiune=
asoc_elev_formatiune.id_asoc_unitate_formatiune AND
elev.id_elev=asoc_elev_formatiune.id_elev
order by asoc_unitate_formatiune.nume;

După apăsarea butonului Execute va fi afişată lista elevilor ce conţine coloanele: cnp, nume, iniţială tată, prenume, specializare, clasa şi o pereche de date pentru valabilitatea informaţiei.
Această listă se poate salva alegând din meniul File comanda Save Result CSV... sau Save Result...
Închideti serverul folosind comanda shutdown; înainte de a părăsi Database Managerul.

Delphi Console Application

Using Delphi 7, one could make a console application (also known as no-GUI application) by having a project file like this:

program ApplicationName;
{$APPTYPE CONSOLE}
{$R 'aresource.res' 'aresource.rc'}
uses SysUtils;
begin
end.

The line {$R 'aresource.res' 'aresource.rc'} is optional. It is used to define a resource, specifically an icon for the application. The RC file is a plain text file that contains the following line:

1 ICON "myapplication.ico"

Therefore all the code for the application goes inside the begin-end pair in the DPR file.

2008-04-15

Why Siveco Rulz!

Programele realizate de catre Siveco Romania pentru Ministerul Educatiei "rulz!" in a bad way. Iata ce face ultima versiune a aplicatiei pentru colectarea datelor elevilor care sustin examenul de bacalaureat: desi este instalata ultima versiune de JRE 6u5, aplicatia nu doreste sa porneasca desi ar putea, insa foloseste ultima versiune de JRE pentru a afisa o fereastra de eroare cu un mesaj stupid.



Iata fereastra de eroare:


Poate cuvantul corect era "maxima" :))

2008-04-12

Hrashti

Am aflat că atunci când tragi de pătrăţelul negru din partea dreaptă jos a bordurii unei selecţii în Excel, execuţi de fapt procedeul de HRASHTI. Este o glumă bineînţeles.
Totuşi cu ocazia aceasta am aflat că Excel ştie să lucreze cu matrici.
Prima funcţie pe care am folosit-o a fost calculul determinantului unei matrici. Ea este funcţia MDETERM(range).
A doua funcţie este funcţia care înmulţeşte două matrici MMULT(range1,range2). Rezultatul funcţiei MMULT este o matrice şi prin urmare trebuie mai întâi selectate celulele în care se va pune rezultatul, apoi se scrie formula şi în final se introduce această formulă folosind combinaţia de taste CTRL+SHIFT+ENTER, nu numai ENTER cum se introduce o funcţie obişnuită. De fapt daca se selectează mai multe celule şi se introduce o formulă obişnuită şi apoi se activează cu CTRL+SHIFT+ENTER, formula se va regăsi identic în toate celulele selectate.

2008-04-07

Enable Autocad 2000 on Windows 2000

If you want to make Autocad 2000 available for a restricted user under Windows 2000, the easieast way is to allow registry access to the following keys:
HKLM\Software\Microsoft\Cryptography\RNG\Seed
HKCU\Software\Autodesk\
HKCR\AutoCAD.Drawing.15\
HKCR\CLSID\{8E75D913-9D21-11D2-85C4-080009A0C626}\

2008-03-30

Default bittorrent în Opera

Opera 9.x este capabil să descarce fişiere bittorrent, însă dacă folosiţi un client specializat pentru acest tip de download, veţi dori să dezactivaţi această facilitate.

Mergeţi în Tools -> Preferences..., apoi alegeţi tabul Advanced. Din stânga alegeţi Downloads, debifaţi căsuţa "Hide file types opened with Opera" şi căutaţi în lista cu MIME type următoarea linie:

application/x-bittorrent   |   torrent

daţi click pe ea şi alegeţi din dreapta butonul Edit...; din fereastra File type care se deschide alegeţi radio boxul "Open with default application" în loc de "Open with Opera". Închideţi ferestrele cu OK.

2008-03-20

Sfârşitul unui proiect

După 533 de zile am decis, în urma oricărei intenţii de colaborare din partea celorlalţi, să întrerup proiectul CTT. Acest proiect a debutat pe 4 octombrie 2006 şi este considerat închis pe 20 martie 2008, ora 00:00. Împreună cu proiectul au fost stopate şi toate serviciile auxiliare sau referinţele, incluzând: contul de gmail, prezentarea de pe youtube, forumul şi zona de contribuţii de pe freehostia, serviciul de statistică de la statcounter.

2008-03-19

Hafiz-Khadje Shamso'D

Hafiz-Khadje Shamso'D din Mihamad (1326 ad - 1390 ad)

Mi-ai atins doar inima uşor,
Şi s-a sfărmat în mii de inimi;
O, cu mii  inimi mă-nfior -
Dar mi te iubesc cu mii de inimi.
Mi-ai tins doar buzele uşor,
Şi s-au sfărmat în mii de buze;
O, cu mii de buze te implor,
Dar mi te sărut cu mii de buze!

Către noapte

... Către noapte
by Novalis (1772 ad - 1801 ad)

... Şi am zărit prin nor
Chipul transfigurat al dragostei mele,
În ochii ei se oglindea veşnicia.
I-am cuprins mâna
Şi lacrimile noastre-alcătuiră
O sclipitoare şi nesfărmată
Legătură între noi.
Mii ani piereau
Ca nişte vijelii în depărtare.
La gâtul ei am plâns ...

fragmented by xunRAGE

Lui Taliarh

Lui Taliarh
by Quintus Horatius Flaccus (65 ac - 8 ad)

Priveşte cum se-nalţă alb Socrate
De-un gros omăt învăluit: cum codrii
Frânţi se îndoaie sub povară;
Cum apele de ger încremenesc.
Înfrânge frigul, din belşug în vatră
Zvârlind butucii: din amfora sabină
Cu mână largă-n cupe toarnă
Vin vechi de patru ni, o, Taliarh!
Iar celelalte - zeilor le lasă;
Când potoli-vor vânturile-n luptă
Pe marea aprigă - nici ulmii,
Nici chiparoşii nu s-or mai clăti.
Fereşte-te să-ntrebi ce va fi mâine;
Fiece zi trăieşte-o - dar al sorţii
Să nu dispreţuieşti, copile,
Nici desfătatele iubiri, nici dansul.
Atât cât cărunţia e departe
De tinereţea ta. Acum să cauţi
A Câmpului-lui-Marte jocuri
Şi preumblările în largi alee.
Acum să cauţi gingaşele şoapte
La tainice-ntâlniri abia rostite,
Când ceasu-i potrivit, în noapte.
Acum să cauţi râsetul zglobiu
Al fetei tale-ntr-un ungher ascunsă,
Şi smulge-i ca zălog iubirii voastre
Brăţara fină sau inelul,
În ciuda dulcei sale-mpotriviri.

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.

2008-01-26

A problem

The problem with meeting/dating/talking to a girl is that what I know is from the movies and movies are reflecting American culture, therefore this knowledge is not helping in getting a Romanian girl, because Romanians are enough different than American, therefore a talk ends unexpectedly, there is not the same opening to such a talk like in Americans.
A talk with a woman is like a game: you move, she moves, you say something, she says something even more embarrassing and stupid, until one of the two is knocked down.

2008-01-22

Kurorori

Am întâlnit o persoană care se încadrează aproape perfect în stilul Gothic Lolita - Black Lolita, nu ştiu dacă şi acea persoană este conştientă de acest lucru, dar asta nu contează prea mult.

2008-01-18

Setting Default Sound Card in Ubuntu

To list the available sound cards:
sudo asoundconf list

To set the default soundacard:
sudo asoundconf set-default-card PARAMETER
for example: sudo asoundconf set-default-card Live