dimitris kalamaras

math, social network analysis, web dev, free software…

Category: Linux

I’ve got Linux in my pocket too!

Yeeeeeeeeeeah! I am now yet another proud Nokia N900 owner!

Nokia N900 (Image from NOKIA)

Nokia N900 (Image from NOKIA)

This device runs Linux on an ARM Cortex 600MHz CPU, 1GB RAM and 32GB HDD, and it is more a portable computer than a mobile phone, thanks to its 3.5” touch screen (800×480 resolution) and the embedded keyboard. Right now, my N900 is still charging (minimum 6 hours initial charge I was told!) so I haven’t had the chance to play with it yet, but I plan to explore it tomorrow evening. Stay tuned!

melux: a custom ubuntu iso creation script!

When I was working for the Greek Linux Format, I was making special editions of Ubuntu for the magazine’s DVD. Those were the same distro of course, but with a lot more packages preinstalled. For that purpose, I had written all the useful info and relevant commands inside a text file. Of course, that wasn’t highly efficient, since I had to manually run through (read: copy/paste) all the commands again and again for every new custom Ubuntu image. So, I was always thinking that I should assemble and automate all those commands in a nice Bash script, but I never really tried it. This week, I finally decided to build that script and share it with everyone. So, I hereby give you Melux 1.0 (see full code below).

Read More

Qt (Μέρος IIΙ): Αρχειοθέτης άρθρων

Στο προηγούμενο tutorial φτιάξαμε μια γραφική εφαρμογή, το BookAdmin, για να διαχειρίζεστε τη συλλογή των βιβλίων σας χρησιμοποιώντας μια βάση δεδομένων MySQL. Δεν ήταν κάτι ιδιαίτερο, βέβαια, και η αλήθεια είναι ότι θα έπρεπε ίσως να συνεχίζαμε την ανάπτυξή της (βάζοντας π.χ. φίλτρα για τις εγγραφές). Ωστόσο, πολλοί αναγνώστες του “LF” μας ζήτησαν με ευγενικό τρόπο (μας δωροδόκησαν καλά!) να τους δώσουμε έναν τρόπο αρχειοθέτησης των άρθρων του περιοδικού για όλα τα μέχρι σήμερα τεύχη. Οπότε σκεφτήκαμε: “τι καλύτερο από το να γράψουμε ένα μικρό tutorial γι’ αυτό βασιζόμενοι σε ότι κάναμε στο BookAdmin;” Έτσι, αυτή τη φορά, θα φτιάξουμε μια τέτοια εφαρμογούλα για να τηρείτε το “αρχείο” σας, αλλά και για να δείτε πως φτιάχνεται κάτι τέτοιο στην πράξη. Τέτοιο …making of ούτε στο Holywood δεν θα βρείτε! 😛 Σημείωση: μπορείτε να κατεβάσετε όλον τον κώδικα του άρθρου από εδώ.

Το σχέδιο έχει ως εξής. Η εφαρμογή, ας την βαφτίσουμε ArtAdmin, θα πρέπει να έχει ένα γραφικό περιβάλλον αντίστοιχο του BookAdmin, δηλαδή με πεδία για προβολή και αναζήτηση κάποιων εγγραφών (δηλαδή άρθρων) και ένα TableView σε ξεχωριστή καρτέλα για να βλέπετε όλα τα άρθρα μαζί. Συνεχίζοντας με αυταπάρνηση την παράδοση που θέλει κάθε προγραμματιστή …τεμπέλη, θα βασιστούμε στη φόρμα του BookAdmin αλλάζοντας ελαφρώς την πρώτη καρτέλα της για να φτιάξουμε το ολοκαίνουριο ArticlesAdmin – φασόν δηλαδή 🙂 Αυτή τη φορά, όμως θα προσθέσουμε και μερικά νέα κόλπα…

Read More

Σπιτικό Clustering με Linux…

Αν και η επεξεργαστική ισχύς των σύγχρονων υπολογιστών αυξάνεται ταχύτατα, υπάρχουν πάρα πολλές εφαρμογές που απαιτούν πολύ μεγαλύτερη ισχύ από εκείνην του μέσου PC, όπως η κωδικοποίηση βίντεο σε MPEG, η συμπίεση μεγάλων αρχείων ήχου σε OGG ή MP3, το rendering μιας 3D εικόνας ή ενός animation, η διεξαγωγή ενός υπολογιστικού πειράματος, ο μεταγλωτισμός ενός σύνθετου προγράμματος κ.α. Σε αυτές τις περιπτώσεις χρειάζεστε πολύ ισχυρούς επεξεργαστές με αποτέλεσμα να πρέπει να ξοδέψετε ένα σωρό χρήματα.

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

Μαντέψτε ποιο είναι το λειτουργικό σύστημα που μπορεί να το κάνει εύκολα, γρήγορα και δωρεάν… Φυσικά, το Linux. Υπάρχουν πολλές διανομές Linux που παρέχουν ενδογενή υποστήριξη για clustering. Εμείς επιλέξαμε να χρησιμοποιήσουμε μια live διανομή Linux, το ClusterKNOPPIX, το ΙSO image της οποίας μπορείτε να βρείτε στο http://clusterknoppix.sw.be. Εάν ενδιαφέρεστε να δείτε κάποιο άλλο Linux με δυνατότητες clustering, δείτε την ιστοσελίδα: http://lcic.org/distros.html.

Το ClusterKNOPPIX είναι live CD, δηλαδή τρέχει εξολοκλήρου από το CD που θα κάψετε και έτσι δεν θα χρειαστεί ούτε καν να πειράξετε τα δεδομένα των δίσκων των υπολογιστών που θα χρησιμοποιήσετε…

Read More

RPM .specs, for a Qt4 application

Been busy the last few days; mostly reading math but occasionally I would steal some time (preferably late at night or in the afternoons) to hack on SocNetV — btw, I released a bugfix 0.47 a couple of days ago.

Today, I decided to check on SUSE Build Service. This is a complete distribution development platform that provides the means to build packages for openSUSE distributions as well as most other Linux distributions. The whole idea seemed to be “upload your source tarball and a spec, and we’ll make binary packages for you for every distro you name”. This is just awesome, if you think about it, cause it takes all the trouble from the developer. Well, I was reading their manual, trying to understand which-is-which and what-to-do-to-build-my-great-package, when I realized that I could easily make an RPM for SocNetV with no hassles, and no Build Service at all. You see, we had a very nice tutorial on building RPM packages in the Greek edition of Linux Format magazine. At the time, I hadn’t test the instructions in real world examples, but hey ..it couldn’t be that hard! And it wasn’t. Actually, it was far easier than I thought in the first place…

Read More

SocNetV 0.46 is here!

I just uploaded the new SocNetV version to the Sourceforge File Release System (FRS). Nothing special this time. SocNetV 0.46 is just a bug fix release – Pajek format loading is improved and zooming widgets work as they should (at last!).

The only new features is that nodes can be automatically resized according to their outDegrees. This is no novelty, but helps a lot. Imagine you have a network of 100 nodes where you have applied a betweeness centrality layout. Nodes which happen to be on many shortest paths between other pairs of nodes will be positioned towards the center of the screen, and can be thought of as ‘mediators’ of information. This is nice, but for instance do they also happen to have many links to other nodes? In other words, do they know a lot of actors as well? With one click, SocNetV can give now an answer, depicting nodes with different sizes according to their outLinks: nodes with more links are bigger than those with less links. Wow 😛

Math and Algebra software you can’t miss in Linux…

Yesterday, I was searching for some nice mathematics applications, mainly for computer algebra, in Linux and here are my two main conclusions.

  • First, there are hundreds of math programs and libraries out there for any need!
  • Second, try to stick with Debian-based distros, or else you ‘ll end up compiling the universe.

In the beginning, I had not exact idea what I was searching for, but to be honest I would love to have something like Mathcad (which unfortunately is commercial and not open-source). Unfortunately, I don’t believe there is such thing in Free Software, at least for the moment.

Nevertheless, after a little search with apt-cache (using Debian unstable), various applications came to my attention.

Read More

Page 3 of 3

Powered by WordPress & Theme by Anders Norén