Feb 21 2009

Truth about Romania

Category: English posts,MiscellaneousIuliana @ 10:12

Some of rpx’s Wow friends, expressed the desire for us to write our posts in English so they can understand us. We tried this once before, at the beginning of this blog. But we gave up because was difficult, but mostly time consuming, to write the posts in Romanian and then translate them into English. From now on, posts that I consider interesting will be written directly in English.

Romania is a third world country, so you’ve been told or so you think because you don’t now where it is on the map. The truth is Romania is far from a third world country. I will tell you why.
Before 1989, Romanian people had everything any other people on this planet had except the freedom to live the country and access to information about the world around its country. This isolation made Romania technologically retarded so its inhabitants were forced to compensate the missing technology… by using their brains. The Romanians had jobs, lived in concrete blocks of flats or houses, paid bills and taxes, had access to medical services, their children were well educated and taken care of. Pretty normal for the inhabitants of a country isn’t it? Of course there was also poverty, isn’t it anywhere?
Romania has a geographical advantage being the center of the European continent and it is a pretty valuable “friend” to have. And before 1989 Romania was URSS’s friend.
In 1989 the revolution happened and this revolution is still suspected as being caused from outside, in order to break the communists friends apart. The break up happened and a people with broken beliefs can be easily seduced.
Limits were taken away, a phenomenon called freedom filled their hearts and some took it for granted without actually knowing what it meant. Internet was spreading like a plague, new concepts, new ways of life were overwhelming the “overprotected people”. Some Romanians took the chance and left the country in order to build a brighter future. Some of them are teaching at foreign schools and universities, some of them are respected members of science research teams(LHC team has 20 Romanians for example), some of them are important pieces of big IT companies(Sun and Microsoft) and some of them even have their own companies.
The ones not included above are the ones that don’t work with their brains but they use their arms in growing big economies.(Didn’t you ever wondered what Italian and Spanish economy flourished after 1989?)
Of course some Romanians got it all wrong and took advantage of the naivety of the “over-technologized” people, of course once the iron fist of communists disappeared, gypsies started multiplying and left Romania too, because in a democratic country anyone can leave and come back when he wants, what did you expect? There is no perfect people anywhere in this world, any people has its own thieves, killers, dictators, gypsies and bitches.
So next time when you hear about Romania, if you still don’t know where it is on the map or you have no idea about its history, bite your tongue and don’t say out loud that is a third world country if you haven’t been there to see it with your own eyes. Plus, the fact that you don’t know where it is on the map, doesn’t make you very well informed.

This text was written by a Romanian girl, that has a masters degree and works as a developer in a company which is owned by a French business man. A girl which was also an university teacher for a while, which lives in a beautiful house, has a beautful cat which she adores , writes almost daily on a blog, speaks two foreign languages and gains enough money to support herself and the cat :). Am I any different from you, except the fact that I’m living in a country that you don’t know nothing about? I don’t think so.


Feb 15 2009

KDE4

Category: TechnicalRpx @ 20:48

Seaqxx si-a pus Fedora 10. Acesta a venit spre uimirea noastra cu KDE4.2. Mi-as fi dorit sa nu vina cu el.

Desi KDE4 e trecut de mult de stadiul de beta (cel putin conform site-ului oficial), mie mi se pare o prostie sa fie inclus ca desktop manager implicit si fara alternativa (a se citi fara alternativa la KDE3.5. Excludem gnome si alte DM-uri).

Deci care au fost impresiile initiale?

  • Functionaliatea e jalnica.
  • Documentatia e la pamant.
  • Efectele sunt dragute.
  • Bugurile sunt la tot coltul.
  • Mai are cale lunga si batuta pana sa devina noob friendly.

Sa incepem cu primul din lista. Configuratia widget-urilor (Vista style widgets) este foarte greoaie. Click-urile sunt date foarte greu, drag’n’drop-ul necesita putin mai multa atentie decat ar trebui, optiunile banale care ar trebui sa fie disponibile “at a glance” sunt ascunse adanc in sistemul de gestiune. De asemenea, un lucru care poate fi observat din primele secunde si care ar fi trebuit remediat acum muuuulta vreme e ca daca ai un panel fara taskbar in el, atunci toate widgeturile se vor  ancora de mijlocul panelului si nu vor putea fi trase spre margini, sau mai ales (si aici nu exista scuza) faptul ca pe desktop nu se pot crea icoane intr-un mod simplu (a se citi: “click dreapta->new link”).

Documentatia. Care? Unde? La tot pasul exista cate un buton numit Help. Problema e ca acel buton de cele mai multe ori iti arunca in fata o fereastra de “About” care iti furnizeaza cu placere numele si adresa de mail a persoanei ce raspunde de acel widget/componenta. Asta nu e documentatie.

Ca un plus, efectele sunt misto. Maximizarea, minimizarea, schimbarea desktopurilor, toate merg bine. De asemenea, cu “putin” efort se pot instala efecte aditionale, insa adevarata provocare apare la activarea lor.

Ceea ce nu pricep este de unde si pana unde asemanarea izbitoare cu raposatul Vista. Nu voi sta sa derspic firul in 4 si sa aflu daca de fapt Vista a copiat pe KDE4 sau KDE4 s-a inspirat din Vista sau daca printr-o coincidenta uluitoare designerii celor 2 sisteme au avut o inspiratie ridicol de asemanatoare, fiindca ar fi de prisos. Ideea e ca interfata seamana foarte bine cu Aero, doar ca e mult mai greu de configurat si mult mai slaba ca functionalitate.

Cautand putina lumina in acest intuneric am dat peste acest post al unui developer de la KDE. Acesta afirma clar ca versiunea 4 a lui KDE nu este gata pentru a fi primita de publicul larg, iar eu ca un utilizator destul de vechi al lui KDE sunt total de acord cu acesta.


Jan 28 2009

KDE 4 on Windows

Category: TechnicalRpx @ 12:54

Desi Windows 7 pare a fi o clona ieftina a lui KDE, se pare ca si utilizatorii de XP/Vista au o sansa pentru un nou look.

Read more here.


Jan 16 2009

Map Sorter by size of it’s values

Category: TechnicalIuliana @ 15:41

Acum doua zile m-am vazut in postura de a optimiza ceva, din punctul de vedere al utilizatorului, nu al programatorului. Adica trebuia sa ordonez ninste procesari in functie de durata lor, pentru ca userul ce folosea aplicatia sa vada ca in spate chiar se proceseaza ceva. In fine, n-o sa intru in detalii. Ideea era ca datele de intrare ale procesarilor respective erau continute intr-un map de forma Map<K, Collection<V>> si eu ar fi trebuit sa parcurg mapul respectiv si sa pornesc procesarile in functie de dimensiunea colectiilor din map. Deci as fi avut nevoie sa sortez mapul respectiv in functie de dimensiunea valorilor mapului.

Continue reading “Map Sorter by size of it’s values”


Jan 15 2009

Pidgin stuff

Category: TechnicalIuliana @ 22:22

Anul trecut cam pe vremea asta scriam postul asta.

De atunci a trecut ceva timp, iar pidgin a ajuns la versiunea 2.5.4. Fixul din postul a devenit inutil, dar modul de obtinere a unui pidgin direct din surse va ramane mereu acelasi.

  • 1. se obtin sursele ultimei versiuni de pidgin aparute, in momentul de fata de aici.
  • 2. se despacheteaza (daca extensia este tar.gz sau tar.bz2 se da in consola comanda tar -xvf pidgin.*.tar.*)
  • 3. se intra in directorul obtinut in urma despachetarii si se da in consola urmatoarea comanda: ./configure –disable-gtkspell –disable-gstreamer –disable-meanwhile –disable-avahi –disable-nm –disable-tcl
  • 4. apoi urmatoarea: make
  • 5. apoi (ca root de data asta) urmatoarea: make install

Stiu ca pentru linuxarii cu greutate postul asta e banal, dar eu acum doua zile cand voiam sa imi schimb versiunea de pidgin nu am gasit pe nicaieri stringul complet al comenzii configure si a trebui sa o rulez de mai multe ori, pana cand am aflat ce optiuni nu erau suportate implicit ca sa le dau disable.


Jan 03 2009

Human life in my favourite music

Category: English posts,MiscellaneousIuliana @ 13:12

Because of some artistic reasons this post will be written in English.

When we are born we are all so innocent, then for some of us the going gets though, some of us say bye bye before their time, they just die like this, some others live ordinary lives and others do everything to be popular. Some of us not actually die, but do give up and get too friendly with drugs and alcohol. But some of us do make’it and get to meet love and feel insatiable, and get to be happy. But even so, some things might crash and burn or shake and break. It is all normal in a world that continuously spins around us. And it is also normal to have strange relationships and moments when you feel like you have no way out of the darkness. But remember, in a world so big, you are not alone. You are never alone, someone you don’t even know about is always right beside you. Some of us preffer to belive it’s an angel but most of us we know that he/she’s the one, the only one.

So have some faith, even you that consider yourselfs freeks! We are on the verge of something wonderful, at least that’s what Julia says.


Aug 14 2008

HQL-ul mamii lui…

Category: Miscellaneous,TechnicalIuliana @ 19:16

De ceva vreme ma chinui cu un task de la servici. Spun ca ma chinui, pentru ca specificatiile se tot modifica si de fiecare data cand vreau sa implementez ceva gasesc buguri sau nelamuriri.

Hai sa dau niste detalii. Deci am o tabela cu niste inregistrari numite tranzactii. In fiecare tranzactie sunt implicate niste conturi, dar nu direct ci prin intermediul altor tabele. Intr-una din tabele astea o intregistrare are un camp numit value. Eu trebuia sa fac un query care sa sumeze valorile respective pentru tranzactiile in care apare un anumit cont ca destinatie. Toate in toate  tranzactiile sumate nu sunt implicate conturi care au “parinti” intr-o anumita lista. Tranzactiile sunt si ele grupate in documente si se vor lua in considerar numai cele care fac parte din documente care au fost introduse intre datele specificate de utilizator.

Cum ar arata query-ul… asa intuitiv:

select sum(a.value) from Entry a where a.account.id=:id_param and a.sourcedestinationFlag=’destination’
and a.transaction in (select tr from Entry e inner join e.transaction tr where e.account.parentAccount in (:list))
and a.transaction.document.date <![CDATA[>=]]>:start_date
and a.transaction.document.date <![CDATA[<=]]>:end_date;

Simplu nu? Ei bine nu merge, hibernate arunca o exceptie de tipul NullPointerException. Ca respectivul query sa mearga trebuie sa arate de fapt asa:

select sum(a.value) from Entry a where a.account.id=:id_param and a.sourcedestinationFlag=’destination’
and a.transaction in
(select t from transaction t where t in
(select p from transaction p where p not in
(select tr from Entry e inner join e.transaction tr where e.account.parentAccount in (:list)) )
and t.document.date <![CDATA[>=]]>:start_date
and t.document.date <![CDATA[<=]]>:end_date
and t.deleted=:not_deleted_filter_param )

Al doilea select (ala cu p) e necesar tot pentru a preveni NullPointerException. Cea mai faina faza este ca nu iti spune ca este de la query-ul respectiv problema. Spune doar:

Exception in thread “main” java.lang.NullPointerException
at org.hibernate.hql.ast.tree.FromClause.findIntendedAliasedFromElementBasedOnCrazyJPARequirements(FromClause.java:120)
at org.hibernate.hql.ast.tree.FromClause.getFromElement(FromClause.java:107)
at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:81)

(… bla bla bla)

Cool ha?