Skip navigation.

Csabi's blog

Things about Mandriva, Linux & the rest of the world

October 2009

( Monthly archive )

Blog Action Day - Climate Change

Yeah, it's Blog Action Day, and I will talk about Climate Change.

This is a really unusual subject for me, I usually talk about simple things, everyday stuff and IT. But, I consider climate change is one of the biggest problems of our and future generations and I will express my thoughts about it. My ideas are based on ... well ... my ideas what I've heard from all overt the world in my 29 years of life, so no scientific or technical studies referenced in this article.

There are many contradictions, both in ideas and scientific proof, about climate change. One thing is sure though, that pollution is part of the reasons for ever rising temperatures. Also, I strongly believe, the human action in climate change is just an addition or "speed up" and not the cause of climate change.

Let's see what is happening ... all over the media there are reports about rising temperatures, the poles melting down, see level rising. As the media puts the problem, apocalypse is just around the corner. I don't believe we are in grave danger though, at least not on short term. For example, noone can explain why 2009 was the coldest year in the last 100 years. Yes, the average global temperature dropped pretty much in 2008 and 2009 and still, we are talking about warming.

I think the actual climate change we are all facing and observing is not about worming of the average annual global temperature, but a redistribution of the hot/cold zones on earth. And even this process is a natural one. There are different studies conducted in Antarctica which prove that CO2 density in the atmosphere is a periodical event. The hundreds of thousands of years ice examples proved it. It is like the Earth is breathing.
However the same study showed that human pollution of the atmosphere, ground, water and the uncontrolled deforestation is speeding up the process.

What can we, humans do? What should we do?
One thing is most probably sure. There is no way to stop the climate change or reverse it (at least not with current technology). All we can and should do is to protect what nature we have left, protect our planet, our air and soil ... in fact, protect our future. How can wee do that? It all has to start with personal responsibility for each and every of us. We, the simple, everyday people, are the ones who has to start the "revolution". We, the simple people, have to be aware of the danger and educate ourselves and our children and all future generations to protect our planet. If each of us (or at least most of us) would have a sense of responsibility we would not even have this "Blog Action Day" ... or at least not with this subject.

So, my proposal for everyone is, don't waste natural resources in your everyday life, buy and use eco-friendly products as much as you can, recycle everything you can. Obviously, one man can't change the world, but if each of us would use for example one lass plastic bag a month, we could save tons of waste.

Yeah, but what about the big corporations and heavy industry? What about them? They are inheritance from our previous generations, they did not even know about climate change when they put the bases of it. Can we blame them? Maybe, a little, but without them we would not be where we are today.

OK, that's all ... these are my thoughts about climate change, pollution and future of humanity.



Blog Action Day



Comunitatea Opera va participa impreuna multi altii pe 15 Octombrie in "Blog Action Day". Participantii propun ca in ziua respectiva sa posteze toti despre aceeasi tema. Anul acesa tema este "Schimbari Climatice".

Mai multe detalii: http://my.opera.com/community/blog/2009/10/09/blog-action-day

Simple Javascript Toolbox

I am new to JavaScript and I had to create a toolbox containing 2 lists with left-right buttons to move elements between them and another 2 buttons to move up/down the elements of the second lists.
The lists are made within the HTML part of the page with the <SELECT multiline> tag.

After searching a lot, I found some tutorials but they were overly too complicated for my level of knowledge of JavaScript.

After some time and disappointment I ended up writing my own code from zero and I thought I will share it with whoever would need it.

Note, this is a very basic and simple example from a beginner in JavaScript. There is most certainly space for improvements.

//Function to move data from left to right and right to left. Parameter direction is "right" or "left"
function moveData(direction){
if(direction=="right"){
var sursa = document.getElementById("statii");
var destinatie = document.getElementById("ruta");
}else{
var destinatie = document.getElementById("statii");
var sursa = document.getElementById("ruta");
}

for(var i = sursa.options.length - 1 ;i >= 0;i--){
if(sursa.options.selected){
destinatie.options[destinatie.options.length] = new Option(sursa.options.text, sursa.options.value, true, true);
sursa.remove(i);
}
}
return false;
}

//Function to move elementr UP or DOWN in a list
function moveUpDown(direction){
var sursa = document.getElementById("ruta");

for(var i = sursa.options.length - 1 ;i >= 0;i--){
if(sursa.options.selected){
var text=sursa.options.text;
var value=sursa.options.value;
sursa.options.selected=false;
if(direction=="up" && i>0){
sursa.options.text=sursa.options[i-1].text;
sursa.options.value=sursa.options[i-1].value;
var selobject=sursa.options[i-1];
sursa.options[i-1].text=text;
sursa.options[i-1].value=value;
}else if(direction=="down" && i< sursa.options.length-1){
sursa.options.text=sursa.options[i+1].text;
sursa.options.value=sursa.options[i+1].value;
sursa.options[i+1].text=text;
sursa.options[i+1].value=value;
var selobject=sursa.options[i+1];
}else{
var selobject=sursa.options;
}
}
}
selobject.selected=true;
return false;

}


//Function to submit all the elements of a list. I made this by selecting all elements from within the submit function
function submitAll(){
var sursa = document.getElementById("ruta");
for(var i = sursa.options.length - 1 ;i >= 0;i--){
sursa.options.selected=true;
}


In my HTML the left list has id="sursa" and the right one has id="ruta". Each button has it's "onClick" set to the appropriate javascript function.

If you need any more explanations, just ask.

Ready for the Future

Recent s-a facut un studiu de catre cei de la Cisco referitor la calitatea Internetului in diferite tari.
Astfel a fost realizat un tabel pe criteriile de dezvoltare/performanta a retelelor de Internet in 66 de tari care reprezinta stadiul de "readiness" pentru viitor ale acestora.
Iata rezultatul in care Romania ocupa locul 8 dintre doar 9 tari calificate ca fiind pregatite pentru Internetul viitorului:
Pregatiti pentru viitor Comfortabili in prezent Satisfac cerintele minime in prezent Sub nivelul minim necesar in prezent
Korea Switzerland Iceland Malta
Japan Czech Republic Estonia Luxembourg
Sweden Norway Greece Chile
Lithuania United States Singapore China
Bulgaria Slovakia Canada Qatar
Latvia Portugal UK Brazil
Netherlands Finland Australia Argentina
Romania France Spain Saudi Arabia
Denmark Germany Poland Cyprus
Hungary New Zealand Costa Rica
Russia Ukraine Bahrain
Belgium Turkey Thailand
Slovenia Ireland Tunisia
Taiwan Italy Mexico
Austria Philippines
Hong Kong UAE
Malaysia
Pakistan
Colombia
Morocco
Vietnam
South Africa
Indonesia

Sursa: http://news.bbc.co.uk/2/hi/technology/8282839.stm