Monthly Archives: February 2012


Fedora Linux: Install OFLB SMonohand Fonts

OFLB SMonohand Fonts is a handwritten monospace latin font with german characters. It is comparable to Microsoft’s Comic Sans or Apple’s Chalkboard.

To install it issue the following command from terminal:

sudo yum install oflb-smonohand-fonts.noarch --nogpgcheck

The nogpgcheck flag will run the command with GPG signature checking disabled. 


Ubuntu Linux: How to Resize and add Label to a many picture files 1

Lets say you have a ton of pictures or photos that you want to resize and add a semi-transparent label at the bottom of this bulk of files and even rename them using a pattern based on a unique number.

You can either do this manually or by using imagemagick. If you chose the second way follow these steps:

First of all install it, from bash/terminal call the following:

sudo apt-get install imagemagick

When that command is successfully completed, navigate to the location that the pictures are and once you are there:

In order to resize all pictures then issue the following command (in this example we make all pictures at most 1200px long or 1200px tall and keep the aspect ratio) :

mogrify -resize 1200 *

NOTE: It will affect the original files! So if you want to keep them make sure to copy them elsewhere BEFORE issuing the above command.

After the above is done, you can issue the following set of commands to:

  1. Get each file and find it’s dimensions (which later will be used for the label creation)
  2. Rename all pictures following the number based pattern
  3. Add a semitransparent label containing custom text at the bottom
counter=0; for i in *;
do let counter=counter+1;
width=`identify -format %w "$i"`;
convert -background '#0008' -fill white -gravity center -size ${width}x30 caption:" Some Arbitrary Text " "$i" +swap -gravity south -composite NewFileName.`printf %03d $counter`.jpeg;
done

This command will preserve the original files.
All together with printing the file that is being processed as debuging information:

mogrify -resize 1200 *; counter=0; for i in *; do let counter=counter+1; echo $i; width=`identify -format %w "$i"`; convert -background '#0008' -fill white -gravity center -size ${width}x30 caption:" Some Arbitrary Text " "$i" +swap -gravity south -composite NewFileName.`printf %03d $counter`.jpeg; done

Sample/Result Photos:

 


EPL 659 – Announcement 15 February 2012ΕΠΛ 659 – Ανακοίνωση 15 Φεβρουαρίου 2012

The class today will start at 18:20.

Right after the introductory seminar of Business Plan Competition CyEC (http://www.cyec.org.cy)

Dare to imagine that your ideas for high tech products and services can be converted into a Successful High Tech Company. Believe that this is not as hard as you think. The Cyprus Entrepreneurship Competition CyEC 2012 opens the way for you to realise your ideas and dreams. Learn how to set up your own company.

Do you want to learn more about CyEC 2012?

Come to the Introductory Seminar
Wednesday, February 15th, 4:30-6 pm,
Ground Floor of Anastasios G. Leventis,
University Campus, Athalassa

Awards
1st Prize € 10.000 • 2nd Prize € 5.000 • 3rd Prize € 3.500

Σήμερα το μάθημα θα ξεκινήσει στις 18:20.

Αμέσως μετά από το εισαγωγικό σεμινάριο του διαγωνισμού επιχειρηματικότητας CyEC (http://www.cyec.org.cy)

Dare to imagine that your ideas for high tech products and services can be converted into a Successful High Tech Company. Believe that this is not as hard as you think. The Cyprus Entrepreneurship Competition CyEC 2012 opens the way for you to realise your ideas and dreams. Learn how to set up your own company.

Do you want to learn more about CyEC 2012?

Come to the Introductory Seminar
Wednesday, February 15th, 4:30-6 pm,
Ground Floor of Anastasios G. Leventis,
University Campus, Athalassa

Awards
1st Prize € 10.000 • 2nd Prize € 5.000 • 3rd Prize € 3.500