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.