Μολύβι vs Φωτογραφικής

Πηγή: LikeCool

5 stars


Ανάλυση για την ακροδεξιά

Από την Εφημερίδα το Βήμα παραθέτω το άρθρο “Ο εφιάλτης της ακροδεξιάς πάνω από την Ευρώπη”. Το ακριβές ιστολόγιο είναι το http://www.tovima.gr/default.asp?pid=2&ct=2&artId=326406&dt=18/04/2010.

Oπως και στη «μαύρη» δεκαετία του ΄30, έτσι και σήμερα στη Γηραιά Ηπειρο, από τον Ατλαντικό ως τα Ουράλια, η κοινοβουλευτική δημοκρατία μοιάζει να υποχωρεί. Στη θέση της σηκώνει ξανά το αποκρουστικό κεφάλι της η Ακροδεξιά. Μοντέρνα, «δικτυωμένη» στο Ιnternet, ρητορικά ευέλικτη. Ωστόσο πίσω από το ιλουστρασιόν περίβλημά της παραμένει εξίσου βίαιη και απάνθρωπη με την παλαιά εκδοχή της.

Οποιος έχει διαβάσει την «Εποχή των Ακρων» του Ερικ Χομπσμπάουμ ή τη «Σκοτεινή Ηπειρο» του Μαρκ Μαζάουερ ξέρει καλά ότι ο φασισμός είναι ένα παρασιτικό φαινόμενο: ένα πολιτικό σαπρόφυτο που μεγαλώνει πάνω στο πτώμα της αστικής δημοκρατίας. Σε μια υγιή κοινωνία, όπου οι άνθρωποι στην πλειονότητά τους ζουν καλά και έχουν λόγους να αισιοδοξούν για το ατομικό και συλλογικό μέλλον τους, δεν υπάρχει χώρος για οργανωμένη μισαλλοδοξία: το (χονδρ)εμπόριο του φόβου, η δαιμονοποίηση του «Αλλου», ο τυφλός εθνικισμός- όλα τα κλασικά πολιτικά εργαλεία του φασισμού- δεν έχουν πέραση, με αποτέλεσμα οι ταγοί του να περιθωριοποιούνται.

Οι εφιάλτες ξυπνούν. Δεν χρειάζεται να παρακολουθή σει κανείς τις παρελάσεις των ένστολων νεοναζιστών της παραστρατιωτικής «Ουγγρικής Φρουράς», που ως γνωστόν πήραν πάνω από 16% των ψήφων στις εκλογές της περασμένης Κυριακής, παγώνοντας όλη την Ευρώπη, για να θυμηθεί και πάλι την αθάνατη προειδοποίηση του Μπρεχτ για τον Αδόλφο Χίτλερ: «Μη χαίρεστε με την ήττα του, άνθρωποι:γιατί μπορεί ο κόσμος να σηκώθηκε και να σταμάτησε τον μπάσταρδο, αλλά η σκύλα που τον γέννησε έχει πάλι κάψες».

Οπως και με την τρομοκρατία, έτσι και με την Ακροδεξιά, ο μόνος τρόπος να την αντιμετωπίσεις ριζικά είναι να καταπολεμήσεις τα αίτια που τη γεννούν. Και αυτός είναι ένας στόχος που οι σύγχρονες αστικές δημοκρατίες και οι πλούσιες ελίτ τους είτε δεν επιθυμούν είτε δεν δύνανται να φέρουν σε πέρας. Κακά τα ψέματα: όσο καθησυχαστικοί κι αν εμφανίζονται οι «μετριοπαθείς» πολιτικοί μας, είναι γεγονός ότι σε ολόκληρη την Ευρώπη τα ακραία αντιμεταναστευτικά κόμματα κερδίζουν έδαφος. Ξεχασμένα για δεκαετίες ρατσιστικά ιδεολογήματα, όπως ο ωμός και ακατέργαστος αντισημιτισμός, κερδίζουν καθημερινά νέους πιστούς από μια νέα γενιά που δεν θυμάται- ή δεν θέλει να μάθει- πού οδήγησαν τα ίδια φοβερά λάθη τους παππούδες τους.


Installing bugzilla at OpenSUSE

Bugzilla is a Web-based general-purpose bugtracker and testing tool originally developed and used by the Mozilla project, and licensed under the Mozilla Public License. Released as open source software by Netscape Communications in 1998, it has been adopted by a variety of organizations for use as a defect tracker for both free and open source software and proprietary products.  In this tutorial we will show how to install bugzilla at your linux box. My Linux version is OpenSUSE 11.0. In order to start we need to grab the latest GA version from the bugzilla official web site. Put your pointer at http://www.bugzilla.org/download/ and grab the latest tar.gz, store it somewhere on your local hard drive. We need several things preinstalled in our Linux box, but the first and most important is apache2 web server. Most of todays linux systems come with Apache installed. For OpenSUSE the default htdocs storage is under /srv/www.

Step 1. tar xzvf bugzilla-3.6.tar.gz
Step 2. cp -r bugzilla-3.6 /srv/www/htdocs/
Step 3. cd /srv/www/htdocs/
Step 4. mv bugzilla-3.6/ bugzilla
Step 5. chgrp www /srv/www/htdocs/bugzilla
Step 6. chmod g+x /srv/www/htdocs/bugzilla

In steps 1-6 we untar the bugzilla archive in our local drive. We copy the directory under our web server directory and we give rights to our ‘www’ group.

Some important things that we need to check before installing.

Step 7. Check to see if perl is installed in your system. The command perl -v will show the version of Perl, if any. If you don’t have Perl, follow a tutorial on how to get and install it in Linux.

Step 8. Setup your MySQL database in order to accomodate the bugs database. If you are not familiar with MySQL and it’s installation procedure and the first step to fine tune it please visit a previous post at this blog that explains this things in detail. Go to http://cateof.wordpress.com/2010/04/18/opensuse-and-mysql-the-first-steps/ for further details.

Step 9. Once you are OK with MySQL (bugzilla works with Postgres and Oracle as well) create a database user in order to access the bugs database. bugzilla creates a database called ‘bugs’ and it needs a user to access it. You can do it by using the root mysql user, however this is not too clever. Follow the tutorial I mentioned on Step 8 and create a user called ‘netuser’ that has access to everything in your databases, therefore the netuser will have permissions to change everything in the bugs DB.

Step 10: change your directory to /srv/www/htdocs/bugzilla and execute ./checksetup.pl –check-modules.  This is the step that you will spend some time. Every PERL module checks for prerequisites and requires additional software to be installed. After the first parsing of this script you will be notified for the missing dependencies.  In order to finish soon with this obstacle type the perl install-module.pl –all, in order the script to connect to the Internet and grab the additional modules from the PERL repo.

Step 11: Run ./checksetup.pl. Now the script will respond with a message that every module is OK, however you need to change some of your paramets in apache and bugzilla.

Step 12: Create a backup of localconfig file. Type cp localconfig localconfig.back

Step 13: Edit this file with the following editor and make some changes.  You must change 3 variables:

  • $webservergroup = ‘www’; //it was ‘apache’ by default
  • $db_user = ‘netuser’; //it was bugs by default
  • $db_pass = ‘a_password’; // it was blank by default

Step 14:  Take a backup (cp httpd.conf http.conf.back) at your httpd.conf apache2 configuration file and make some changes with your favorite editor. At the end diffing the two files you must have the following changes:

dhcppc2:~ # diff /etc/apache2/httpd.conf /etc/apache2/httpd.conf.back
152,153c152,153
<     #Options None  //comment out the Options None
<     AllowOverride All // and make AllowOverride to All from None

>     Options None
>     AllowOverride None
167c167
< DirectoryIndex index.html index.html.var index.php index.cgi // add index.php and index.cgi also

> DirectoryIndex index.html index.html.var

Step 15: At /etc/apache2 copy default-server.conf to default-server.conf.back. Make the following changes (I have pasted the output of the command diff default-server.conf default-server.conf.back.

dhcppc2:/etc/apache2 # diff default-server.conf default-server.conf.back
7c7
< AddHandler    cgi-script      .cgi  //this line must be placed after the DocumentRoot “/srv/www/htdocs” line

>
22c22
<       #Options None //comment out Options None

>       Options None
26c26
<       AllowOverride All // change All to None for AllowOverride

>       AllowOverride None

Step 16: Enable mod_perl and restart apache. This is done with the following command

  • a2enmod mod_perl //enable mod perl
  • rcapache2 stop // stop apache
  • rcapache2 start // start apache
  • chkconfig -a apache2 //make apache start everytime the system starts (optional)

Step 17: Increase the max_allowed_packet at your MySQL configuration. Edit /etc/my.cnf and change max_allowed_packet to max_allowed_packet = 4M. This will permit 4meg attachments at your bugs. Restart mysql with /etc/init.d/mysql restart.

Run ./checksetup.pl at the bugzilla directory. Everything should work fine. Open your web browser and point to http://localhost/bugzilla/. Ready to go…


MySQL at OpenSUSE. The first steps.

This tutorial assumes that you have already installed OpenSUSE at your box and your capable of doing simple things with it, ie move around or use the everyday commands. So before we begin let’s check if MySQL is installed on your OpenSUSE machine:

dhcppc2:~ # rpm -qa | grep mysql
libmysqlclient_r15-5.0.51a-27.1
libmysqlclient16-5.1.36-61.1
libqt4-sql-mysql-4.4.0-4.1
libgda-3_0-mysql-3.1.2-42.1
libmysqlclient_r16-5.1.36-61.1
php5-mysql-5.2.5-66.1
qt3-mysql-3.3.8b-44.1
mysql-client-5.0.51a-27.1
kamailio-mysql-1.4.0-9.23
ruby-mysql-2.7.4-84.1
perl-DBD-mysql-4.006-41.1
mysql-5.0.51a-27.1
bytefx-data-mysql-1.9.1-6.
mysql-connector-java-3.1.12-239.1
libmysqlclient15-5.0.51a-27.1

I strikedthrough some software modules that are not needed by default. For sure we need to have mysql and myslq-client in our systems. If these packages are not installed you can downloaded them from the OpenSUSE repositories or leave this duty to yast. Yast will do it for you.  But usually mysql comes pre-installed and probably you will overcome this small obstacle. However when we install MySQL, this does not mean that this module in running in our system as well. If you are planning to use MySQL often a good habit is to configure your system to launch MySQL at the startup. First find out that MySQL is not running and second that is not configured to run at the startup.

dhcppc2:~ # ps -ef | grep mysql

The ps command will respond with the process id, if MySQL is up. In order to see if the process runs on startup execute the following:

dhcppc2:~ # chkconfig –list | grep on

acpid                       0:off  1:off  2:on   3:on   4:off  5:on   6:off
alsasound              0:off  1:off  2:on   3:on   4:off  5:on   6:off
auditd                     0:off  1:off  2:off  3:on   4:off  5:on   6:off
avahi-daemon     0:off  1:off  2:off  3:on   4:off  5:on   6:off
avahi-dnsconfd   0:off  1:off  2:off  3:on   4:off  5:on   6:off
consolekit              0:off  1:off  2:on   3:on   4:off  5:on   6:off
cron                          0:off  1:off  2:on   3:on   4:off  5:on   6:off
...

....
wondershaper     0:off  1:off  2:off  3:off  4:off  5:off  6:off
xdm                        0:off  1:off  2:off  3:off  4:off  5:on   6:off
xend                       0:off  1:off  2:off  3:on   4:off  5:on   6:off
xendomains        0:off  1:off  2:off  3:on   4:off  5:on   6:off

chkconfig is a small but very useful command at the administrator’s command vocabulary.  Most of the times this list does not contain mysql by default. This means that we need to enable mysql to run at the system startup. This is done by invoking the chkconfig command with the following syntax:

dhcppc2:# chkconfig –add mysql
mysql                     0:off  1:off  2:on   3:on   4:off  5:on   6:off

In case you need to see more things about the chkconfig command, here is a nice article at LinuxJournal.com.

Now type the following commands to first check if your service is running and the fire it up:

dhcppc2:/etc/init.d # rcmysql status
Checking for service MySQL:                                           unused
dhcppc2:/etc/init.d # rcmysql start
Starting service MySQL                                                done

The service is up and ready to be configured. Enter the following at your prompt:

dhcppc2:~ # mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we’ll need the current
password for the root user.  If you’ve just installed MySQL, and
you haven’t set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on…

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

You already have a root password set, so you can safely answer ‘n’.

Change the root password? [Y/n] n
… skipping.

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]
… Success!

Normally, root should only be allowed to connect from ‘localhost’.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]
… Success!

By default, MySQL comes with a database named ‘test’ that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]
- Dropping test database…
… Success!
- Removing privileges on test database…
… Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]
… Success!

Cleaning up…

All done!  If you’ve completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

The above dialogue with MySQL will help you configure your system and run a secure database server. If you are running this command for the first time, ie you haven’t configured anything yet, this dialogue will be a little bit different at the beginning. You will be prompted to enter a root password. Give the password that will protect the MySQL root account. This password it may be different from the system’s root password. Now restart your server:

dhcppc2:~ # rcmysql restart
Restarting service MySQL
Shutting down service MySQL                                   done
Starting service MySQL                                                done

Now that you have installed MySQL and have started it, you are ready to test your application. This is a simple process that is intended to verify that the MySQL server is running and that the mysql administrative database has been properly initialized. So first verify which version of MySQL is running:

cateof@dhcppc2:~> mysqladmin version -p
Enter password:
mysqladmin  Ver 8.41 Distrib 5.0.51a, for suse-linux-gnu on i686
Copyright (C) 2000-2006 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version          5.0.51a
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /var/lib/mysql/mysql.sock
Uptime:                 26 min 0 sec

Threads: 1  Questions: 34  Slow queries: 0  Opens: 23  Flush tables: 1  Open tables: 17  Queries per second avg: 0.022

Information about the MySQL installation displays, including information about the version number and the edition of the MySQL server. Next, verify whether the MySQL databases have been properly installed and configured. You achieve this by running the mysql command line utility to access the databases.

cateof@dhcppc2:~> mysql -p

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.0.51a SUSE MySQL RPM

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| openser            |
+--------------------+
3 rows in set (0.00 sec)

mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> SHOW TABLES;
+---------------------------+
| Tables_in_mysql           |
+---------------------------+
| columns_priv              |
| db                        |
| func                      |
| help_category             |
| help_keyword              |
| help_relation             |
| help_topic                |
| host                      |
| proc                      |
| procs_priv                |
| tables_priv               |
| time_zone                 |
| time_zone_leap_second     |
| time_zone_name            |
| time_zone_transition      |
| time_zone_transition_type |
| user                      |
+---------------------------+
17 rows in set (0.00 sec)

mysql> SELECT User,Host from Users;
ERROR 1146 (42S02): Table 'mysql.Users' doesn't exist
mysql> SELECT User,Host from user;
+-----------+-----------+
| User      | Host      |
+-----------+-----------+
| openser   | %         |
| openserro | %         |
| openser   | localhost |
| openserro | localhost |
| root      | localhost |
+-----------+-----------+
5 rows in set (0.00 sec)

Now let’s create a new user that have access to this database outside this Linux box. You need to go to your prompt and type:

dhcppc2:~ # mysql -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.0.51a SUSE MySQL RPM

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> CREATE USER ‘netuser’@'localhost’ IDENTIFIED BY ‘a_password”;
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO ‘netuser’@'localhost’ WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)

mysql> CREATE USER ‘netuser’@'%’ IDENTIFIED BY ‘a_password”;
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO ‘netuser’@'%’ WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)

This sequence of command will create a user called netuser that can access the database either from the console or outside the box, eg via a client from a  Windows machine. More on creating users can be found at http://dev.mysql.com/doc/refman/5.1/en/adding-users.html.


Eruption of Eyjafjallajökull Volcano and Airport Closures

A massive volcanic ash cloud continues to hang over Europe. For the third day in a row, flight delays and airport closures persist across Europe. Eyjafjallajökull is one of the glaciers of Iceland.  The icecap of the glacier covers a volcano that was erupted twice on 2010. The second event (Apr. 14th) caused chaos to European airports. A couple of videos near the volcano reveal the phenomenon

Many people wonder why the airplanes are not allowed to fly these days in Europe. A documentary (~40 min) based on a true story of a British Airways Boeing that passed throught the volcanic ash. It was a flight from Indonesia to Australia back at 1980s.  More preciselly it was a flight from Java to Perth at 1982. That very moment that another volcano erupted as well. It was Galunggung an active stratovolcano in West Java, Indonesia.

The  British Airways aircraft carrying 240 passengers, accidentally entered the ash cloud during night time in June 1982 150 km downwind of the volcano. All four engines failed and the aircraft descended for 16 minutes, losing 7500 metres of its 11500 meter altitude, until the crew managed to restart the engines.

Recalling the events of 24 June 1982 when he spoke to BBC , Captain Eric Moody was asked about his feelings. He remarked “It was, yeah, a little bit frightening”.

The following , National Geographic, video is a reconstruction of that night in the air of Java. Below is the first of the five parts uploaded in youtube.

That plasma around the plane is the St. Elmo’s fire.


Japan facts


How to fool a baboon into showing where the water is


Wildlife: Sealion attacks Octapus


www.illegalsigns.gov.gr

Μια καλή πρωτοβουλία από το Ελληνικό Κράτος. Τα καλά να λέγονται κάποια στιγμή. Οι περισσότεροι από εμάς δεν γνωρίζουμε ότι οι διαφημιστικές πινακίδες που υπάρχουν δεξιά και αριστερά στο οδόστρωμα είναι απολύτως παράνομες. Να σημειώσουμε εδώ ότι έχουν προκαλέσει το θάνατο πολλών οδηγών, είτε αποσπώντας την προσοχή του οδηγού είτε γιατί μια εκτροπή πορείας κατέληξε πάνω στην δοκό στην οποία στηρίζεται η διαφημιστική πινακίδα.

Υπάρχει και ένα δεύτερο στοιχείο που θέλω να σημειώσω, μικρότερης φυσικά σημασίας. Η αισθητική του δρόμου και της γειτονιάς.  Τα κατασκευάσματα αυτά σχεδόν μπουκάρουν στο όποιο φυσικό τοπίο μας έχει απομείνει για να μπορούν οι ιδιοκτήτες των πινακιδών να ζουν στην Εκάλη και να πίνουν στην υγεία του κορόιδου.

Στους δρόμους ταχείας κυκλοφορίας δεν επιτρέπονται πινακίδες ώστε να μην αποσπάται η προσοχή των οδηγών. Είναι ένα βήμα.

Μπείτε στο http://www.illegalsigns.gov.gr και επισημάνατε την παράνομη διαφημιστική πινακίδα. Η διαδικασία είναι εύκολη και για όσους ασχολείστε με το web, απολύτως οικεία. Το site είναι στην αρχή του, αλλά σε κάθε περίπτωση σημαίνει για τον μέσο πολίτη και οδηγό μια αφετηρία και ένα ενδιαφέρον από το κράτος προς αυτόν.

Ποια είναι όμως η βασική σημασία αυτής της πρωτοβουλίας; Όταν το κράτος θέλει να δώσει βήμα στον πολίτη – το κάνει. Όταν θέλει να λύσει το πρόβλημά του – το κάνει.  Για τον πολίτη είναι αρκετό το κράτος να δείχνει την διάθεση και να ξέρει ότι μπορεί να κάνει μια

Κ-Α-Τ-Α-Γ-Γ-Ε-Λ-Ε-Ι-Α

χωρίς να φοβάται. Άρα, καταλήγω, για το Κράτος αυτή η πρωτοβουλία αποτελεί υπέρβαση.


implements ActionListener

Implementing interface ActionListener forces us to define a method with the first line

public void actionPerformed( ActionEvent actionEvent )

in our class. This method’s task is to process a user’s interaction with an object (a button for example). When the user performs the action (for example pressing the button), this method will be called automatically in response to the user interaction. This process is called event handling. The event is the user interaction (pressing the button) and the event handler is method actionPerformed.


Follow

Get every new post delivered to your Inbox.