Αποθήκευση τηλεφωνικών αριθμών σε MySQL

Γράφω πρώτα το συμπέρασμα, για όποιον βαριέται να διαβάσει το υπόλοιπο κείμενο:

Αποθηκεύστε τους τηλεφωνικούς αριθμούς ως VARCHAR(20), εκτός και αν υπάρχει σημαντικός λόγος γιατί να κάνετε κάτι διαφορετικό. Επιπλέον, χρησιμοποιήστε κώδικα σε επίπεδο εφαρμογής για 2 ενέργειες: Α. για να αφαιρέσετε από την είσοδο του χρήστη οποιουσδήποτε μη αριθμητικούς χαρακτήρες, πριν από την εισαγωγή στη βάση (π.χ. παύλες, κενά, παρενθέσεις), και Β. για να μορφοποιήσετε τον αριθμό με μη αριθμητικούς χαρακτήρες, πριν από την έξοδο στο χρήστη, ώστε να βελτιώσετε την αναγνωσιμότητα (π.χ. με παύλες, κενά, παρενθέσεις).

Read More →

Γιατί το WordPress δεν παίζεται (#0)

Το WordPress δεν παίζεται! Για πολλούς λόγους, αλλά να ένας συγκεκριμένος.

Read More →

Honey, I broke the server

Here's how I caused 25 minutes of downtime to my web server today.

Read More →

Εγκατάσταση openSUSE σε εικονική μηχανή

Πρόσφατα εγκατέστησα το openSUSE σε εικονική μηχανή (ΕΜ) στο Ubuntu 10.10, με το Virtualbox. Μερικές εντυπώσεις από την εγκατάσταση:

  • Με 512Mbyte μνήμη στην ΕΜ δεν προχωρούσε η εγκατάσταση, με 768 προχωρούσε αλλά έβγαζε ένα μήνυμα στη συνέχεια ότι δεν υπήρχε αρκετή μνήμη. Με 1024 MByte όλα καλά.
  • Μου άρεσε: που το λειτουργικό υποστηρίζει αρπαγή του δείκτη ποντικιού όταν αυτός περνάει πάνω από την εικονική μηχανή. Σε Windows XP και 7 που έχω επίσης σε ΕΜ, δεν συμβαίνει αυτό.
  • Μου άρεσε: η προεπιλεγμένη προτεινόμενη διάταξη των κατατμήσεων. Έδωσα στην ΕΜ 8GByte δίσκο, τον οποίο το πρόγραμμα εγκατάστασης «αποφάσισε» πώς θα τον κατατμήσει, με τρόπο που μου φάνηκε σχετικά σωστός -για αυτοματοποιημένη διαδικασία- 1,47GByte swap, 5GByte /, 1,53GByte /home.

Δεδομένου ότι η εμπειρία μου με το KDE και το openSUSE είναι μηδενική, το εξής το ψάχνω ακόμα: Το KDE είναι στα Αγγλικά, παρότι η γλώσσα του συστήματος είναι Ελληνικά, π.χ. οι φάκελοι στο /home εμφανίζονται με ελληνικά ονόματα.

More Ubuntu

I 've been doing some Ubuntu-related reading, and I have to say my faith is shaken. I have been a user of Ubuntu for many versions now, my main point being that the defaults were just right for me, so I could just start using my system post-installation. It's those defaults that are now changing in bulk.

I suppose there are two ways to see this. On one hand, Canonical is for-profit and needs to make money, on the other hand, Banshee has been donating to GNOME some close to $10000 yearly (but we don't know how does 25% of the Ubuntu crowd compare to 100% of the rest), which in turn benefited Ubuntu because it was using GNOME. So I assume that Canonical has calculated that they will profit more by directly obtaining 75% of Amazon sales through Banshee, than by a better GNOME, and what with Ubuntu's turn a bit away from GNOME in the coming releases, should they care?

This will take me some more time to absorb. I 'll be as reluctant (read inert) in changing my main setup as anyone who uses computers 16h/day would be.

Hello, World!

Having the day off today, I got to catch up with some reading that was in the "to-read" bookmarks (unordered) list:

For a few minutes I jumped from article to article by Paul Venezia, then I subscribed to his feed, but not without the bitter thought that I will probably not really have the time to read it.

P.S. I was surprised at how ungracefully Chromium handles a link to an RSS feed, compared to Firefox and Opera, which include a default style for that XML type. WTF Google?

About

Hello, I'm Marios Zindilis and this is my website. Opinions are my own. You also find me on LinkedIn and GitHub.

Unless otherwise specified, content is licensed under CC0.

Search