May 22 2009

Java Certification Exams(Part n+1)

Category: English posts,TechnicalIuliana @ 9:03

I decided to write this posts in English, because I think they would be useful to more people this way. I know that the things written here may not be new and that on the internet you might find them explained in another 2000 ways, but if is possible that my approach may be easier to understand for some peeple so I’m writing it anyway.
About a month ago I quit my job. I did that because I was unsatisfied with the way the things were going in that company and with the way things were going on in my head. To be more precise, I went to an interview to another company and screwed up the java fundamentals test part. Why? I consider that the main reason was because I wasn’t seriously programming in a while. I was doing code by patterns(mostly via copy-paste) a lot of bash scripting, sql queries(which is not a bad thing though) and deploys. Disappointed of myself I decided to take some time of to reevaluate my programming skills and the knowledge that I thought I had of Java, Poo, algorithms, etc. Also I must add that I was in a hurry at that interview because I was on my lunch break and I had no interest in that job. But still…
I started three days ago to solve java certification tests and so far so good. Except the fact that sometimes I am not as attentif as I should be at the question or get confuzed by some context everything works out great. I still can’t understand what happend to me at that interview. I really screwed up. Badly.

So I’ll go on doing these tests and write here all the wrong or incomplete things I find. I am doing java certification tests dated from 2001-2005 and because java language has suffered a lot of changes during its existence I will not comment on questions that are “deprecated”. Let get it started, shall we?

Continue reading “Java Certification Exams(Part n+1)”

May 13 2009


Category: English posts,MiscellaneousIuliana @ 2:52

Me need help with it… The bloody thing doesn’t seem to work on gentoo :(( !!! ( And documentation for it is 0).

Mar 10 2009

Cross-compiling on Linux using Gentoo crossdev

Category: English posts,TechnicalRpx @ 22:38

Ever wanted to build your program for other architectures than the one on your system?

Maybe you wanted to build a piece of code for a 64bit system but don’t have a 64bit OS available? Or perhaps you want to compile some application for ARM to use on your mobile gadget? It’s all possible using Gentoo crossdev.

Gentoo crossdev will help you install a compiler, linker, runtime libraries and development tools for other architectures than the one native to your system. It does this by emerging the necessary packages in a separate overlay.

To start, emerge crossdev.

# emerge sys-devel/crossdev

Now, create the overlay for it.

# mkdir /usr/portage.crossdev
# echo PORTDIR_OVERLAY=\”/usr/portage.crossdev \$PORTDIR_OVERLAY\” >> /etc/make.conf

That’s all about configuration. It’s time to actually install the cross-compilers.

First, you should take a look at the help provided by crossdev. Issue crossdev –help and crossdev -t help.

Basicly, there are 2 commands which are of interest:

  • crossdev -t TARGET
  • crossdev -C TARGET

-t will install the specified target cross compiler, and -C will erase it.

Also, you can specify how deep the toolchain can go with -sn. The default will install a C compiler, the runtime libraries and a C++ compiler. (see –help).

crossdev -t help will show a comprehensive list of target choices, but I will describe the most usual ones for the average user.

# crossdev -t i686-pc-linux-gnu

installs the 32 bit tools for the PC architecture. Useful if you have a 64 bit system and want to compile for 32 bit without using the -m32 gcc hack.

# crossdev -t x86_64-pc-linux-gnu

install the 64 bit tools for the PC architecture. You can use this if you’ve got a 32 bit system and want to compile for 64 bit or want to test if your application is portable on 64 bit. Obviously, once built, you will not be able to run your application unless you move it on a 64 bit machine and operating system.

# crossdev -t i686-mingw32

installs the 32 bit windows toolchain. This toolchain will give you the ability to compile your application for use with Microsoft Windows. Includes the win32 specific headers and libraries (such as Winsock).

Amongst others, you can install toolchains for ARM, SPARC, Mips, PowerPC, HP-PA and ia64. It is great for checking if your application has any portability issues.

Once installed, the tools may be invoked at the user’s convenience. The format of the tool names is the as follows:


where target is the one installed with crossdev (e.g x86_64-pc-linux-gnu or i686-mingw32) and tool is the tool name (e.g. gcc or ld). So in order to invoke the compiler for win32, we must run

$ i686-mingw32-gcc

And that’s all there is. :)

Note that if your application has dependencies that are not in the standard runtime library, those dependencies must also be compiled with the specific cross-compiler. For example, if your application links to the GTK+ library, GTK+ must also be compiled with that specific toolchain or you will encounter build problems.

If you want to test that everything is OK, here’s an example. It follows the i686-mingw32 approach.

After installing the i686-mingw32 toolchain, we’ll compile a short C program and try to run it with wine.

You can use this program. It’s not the omnipresent “Hello World!” example, but it demonstrates the point.

Save that piece of code as test.c. Next, invoke the builder.

$ i686-mingw32-gcc -o test.exe test.c

There should be no errors. Let’s test the file:

$ file test.exe
test.exe: MS-DOS executable PE  for MS Windows (console) Intel 80386 32-bit

Now let’s run it:

$ wine test.exe


Remember! Your system is able to run only executables native to it. You need an emulator to run your cross-compiled applications (such as wine for windows targets), but that’s not always possible. For example, you will be able to compile a 64 bit application on a 32 bit system, but there is no way to run it on that system.

Mar 08 2009

Seaqxx’s laws

Category: English posts,MiscellaneousIuliana @ 0:35

In the same agenda I have found some rules which I tried to follow  while growing up.

  • Never ever fool around with the best friend of your girlfriend’s boyfriend.
  • Ideals usually stay buried in the heart, reality is  a different thing, no matter how hard it is. When ideals escape from the heart they make the dreamer a hero by killing him.
  • Try not to do things that you don’t enjoy at all. You will get it all wrong every time.
  • Females big absurdity is that they always love you when you have something else really important to do.
  • Males big absurdity is that they always have something else really important to do when you want them to love you.
  • A  battle on two fronts fought by one army is a lost battle unless the leader is Napoleon Bonaparte.
  • Never speak to a wide audience unless you are asked or you have something really important to say.
  • Choose wisely the moments when voice should be raised.
  • Don’t lower yourself to the level of someone intelligently inferior to you.
  • Hazard is very rare, but it is known to happen.

Mar 08 2009

Old days stuff

Category: English posts,MiscellaneousIuliana @ 0:03

I was making some cleaning today trying to decide what old stuff to throw out and I found a small agenda that I had been using for about 3 years, one of high school and two of faculty. Inside, among some of my favorite artists at the time autographs and a lot of stupid things, I found some quotes from a favorite writer of mine, named Liviu Rebreanu. So here they are.

  • Every man needs love and is worthy of it.
  • Love moves the sun… and the other stars.
  • Jealousy is born together with love.
  • In reality, nothing lasts forever.
  • Love never killed anyone, people have killed in its name.
  • Murder is always pregnant with punishment.
  • Love has filed for bankruptcy in this modern world, so did humility and respect.All is dominated by pride, vanity, selfishness, hypocrisy and chauvinism.
  • Hate is love’s sister, so it’s no shame to hate.
  • People with money escape any low, but this one.
  • I worth more than my reputation does.
  • True happiness lasts only a moment. Human nature cannot take more than that.

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.

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.