Installing ImageMagick from source in Ubuntu

December 7th, 2009 by Leandro Del Teso
Start by removing any old versions previously installed via apt-get:
sudo apt-get remove imagemagick

Then update apt-get and install some supporting packages:

sudo apt-get update
sudo apt-get install libperl-dev gcc libjpeg62-dev libbz2-dev libtiff4-dev libwmf-dev libz-dev
libpng12-dev libx11-dev libxt-dev libxext-dev libxml2-dev libfreetype6-dev liblcms1-dev
libexif-dev perl libjasper-dev libltdl3-dev graphviz gs-gpl pkg-config

Use wget to grab the source from ImageMagick.org.

Once the source is downloaded, uncompress it:

cdtar xvfz ImageMagick.tar.gz

Now configure and make:

cd ImageMagick-6.5.0-0
./configure
sudo make
sudo make install

To avoid an error such as:

convert: error while loading shared libraries: libMagickCore.so.2: cannot open shared object file: No such file or directory

Add the following line to ~/.bashrc:

export LD_LIBRARY_PATH=/usr/local/lib
sudo ldconfig

You can confirm the install and available formats with:

identify -list format

Source: http://www.digitalsanctum.com/2009/03/18/installing-imagemagick-from-source-on-ubuntu-804/

Listening to Last.fm from Ubuntu

November 18th, 2009 by Leandro Del Teso

A friend reccommended me Last.fm player for Ubuntu.

Simply run:

sudo apt-get install lastfm

That’s it, it works flawlessly and it consumes about 10-12KiB/s of your bandwitdh. Pretty cool, right? Now configure it with your last.fm account details and enjoy Last.fm Radios on your Linux box.

App installers for Java

November 11th, 2009 by Leandro Del Teso

IzPack is a one-stop solution for packaging, distributing and deploying applications.

It is fully cross-platform and generates a single installer. As such, it is an alternative to native solutions such as platform-specific installers and package managers.

IzPack-generated installers only require a Java virtual machine to run.

Further on: http://izpack.org

5 days of Apache Wicket

October 28th, 2009 by Leandro Del Teso

5 days of Wicket!

Source: http://www.mysticcoders.com/blog/2009/03/09/5-days-of-wicket/

2 amazing books I am reading rigth now

October 3rd, 2009 by Leandro Del Teso

These are 2 amazing books I am reading right now.

  • Head First Design Patterns
  • Wicket In Action

I post here the Amazon links, feel free to use them.

Cheers… 

Turn off Eclipse's tooltips

September 21st, 2009 by Leandro Del Teso

Go to:

Window > Preferences > Java > Editors > Hovers

and disable Combined Hover.

Source: http://stackoverflow.com/questions/871732/turn-off-tooltips-in-eclipse-aptana

Remember Goto statement?

September 3rd, 2009 by Leandro Del Teso

One programmer in anger says to the second programmer:
- “Go to Hell!”

The second programmer replies, in obvious repulsion:
- “Ugh, you used goto!”

LOL

Playing Tales of Monkey Island

August 13th, 2009 by Leandro Del Teso

I’m currently playing the new MI game: Telltale Games’ Tales of Monkey Island Chapter 1: Launch of the Screaming Narwhal.

So far, so good. I really like it. I am happy. :D

Non Relational DB: The (near?) future of databases.

July 25th, 2009 by Leandro Del Teso

Neo4j:

“Neo4j is a graph database. It is an embedded, disk-based, fully transactional Java persistence engine that stores data structured in graphs rather than in tables. A graph (mathematical lingo for a network) is a flexible data structure that allows a more agile and rapid style of development.
[...]
Neo4j has been in commercial development for 8 years and in production for over 5 years. It is a mature and robust graph database[...]
In addition, Neo4j includes the usual database features: ACID transactions, durable persistence, concurrency control, transaction recovery, and everything else you’d expect from an enterprise-strength database.[...]“

http://neo4j.org/

http://giladmanor.blogspot.com/2009/07/down-rabbits-hole-with-neo4j-part-1.html

mongoDB:

“MongoDB is a high-performance, open source, schema-free document-oriented database.[...]
When we describe MongoDB as “document oriented”, we mean it’s in the class of databases for which the primary storage unit is a collection – possibly structured – of data, most likely as key/value pairs.”

http://www.mongodb.org

Hypertable:

“Hypertable is an open source project based on published best practices and our own experience in solving large-scale data-intensive tasks. Our goal is to bring the benefits of new levels of both performance and scale to many data-driven businesses who are currently limited by previous-generation platforms.”

http://www.hypertable.org/

Dynamo:

“Unlike a relational database, Dynamo is a distributed storage system. Like a relational database it is stores information to be retrieved, but it does not break the data into tables. Instead all objects are stored and looked up via a key.”

http://www.allthingsdistributed.com/2007/10/amazons_dynamo.html
http://www.readwriteweb.com/archives/amazon_dynamo.php

Extra info:

http://www.computerworld.com/s/article/9135086/No_to_SQL_Anti_database_movement_gains_steam_?taxonomyId=173&pageNumber=1&taxonomyName=Databases

Enable "public_html" for users in Ubuntu for Apache2

July 14th, 2009 by Leandro Del Teso

To enable the “public_html” folder for users in Ubuntu using Apache2, you only have to follow 3 steps. These are:

  1. Add the Apache2 userdir module: In Ubuntu, this functionality comes as a default module for Apache2. If you don’t have it enabled, just enter sudo a2enmod userdir in a console. This command will add and/or enable the module.
  2. Create the public_html directory: Create the public_html directory in the users home Enter mkdir /home/a_user/public_html in a console.
  3. Restart Apache2: restart Apache2 so that the changes take effect. Enter sudo /etc/init.d/apache2 force-reload in a console.

After Apache2 finishes restarting, you will be able to access the user’s public_html directory entering the address as follows in a web browser (I.E. Firefox :D) http://localhost/~a_user

Cheers