Sunday, March 8, 2015

Email Validation with Regular Expression (PCRE)

The following is an regular expression for matching a valid email address.

It has been tested with PHP's PCRE, but it can work with other regex environments.

It will match valid email addresses in multiple lines (one email address per line)

Email Validation Regex


/^([\w\-_~!$&'()*+,;=:]|(?<!^)(?<!\.)\.(?!\.)(?!@))+@(\w|(?<!@)(?<!\.)(?<!\-)\.(?!\.)(?!\-)(?!$)|(?<!@)\-(?!$))+$/img

Regex analysis


It validates based on the following rules:

  • start of line
  • user part (local part)
    • one or more of the following:
      • alphanumeric character
      • specific punctuation: -_~!$&'()*+,;=:
      • a dot (.)
        • if it is not preceded by
          • start of line
          • another dot (.)
        • and not followed by
          • another dot (.)
          • @ symbol
  • @
  • domain part (hostname part)
    • one or more of the following:
      • alphanumeric character
      • a dot (.)
        • if it is not preceded by
          • @ symbol
          • another dot (.)
          • a hyphen (-)
        • and if it is not followed by
          • another dot (.)
          • a hyphen (-)
          • end of line
      • a hyphen (-)
        • if it is not preceded by
          • @
        • and if it is not followed by
          • end of line
  • end of line

Email Syntax Rules

The email syntax rules that are implemented are the following:

Local part
  • Uppercase and lowercase Latin letters (a–z, A–Z) (ASCII: 65–90, 97–122)
  • Digits 0 to 9 (ASCII: 48–57)
  • These special characters: - _ ~ ! $ & ' ( ) * + , ; = : and percentile encoding i.e. %20
  • Character . (dot, period, full stop) (ASCII: 46) provided that it is not the first or last character, and provided also that it does not appear consecutively (e.g. John..Doe@example.com is not allowed).
Hostname part

  •  Alphanumeric characters
  • dots (.) but not two or more consequtives dots, not at start of hostname or end of hostname part
  • hyphens, but not at start or end of a label (name between dots)
There are more advanced rules that are not covered by this regex.

Thursday, March 5, 2015

Introducing Regular Expressions

A must read for programmers of any language. Sooner or later you'll bump onto regular expressions


http://it-ebooks.info/book/871/

Saturday, January 31, 2015

www.w3schools.com

 Great Beginner's Site for Web technologies

PHP Tutorial
http://www.w3schools.com/php/default.asp


Web services Tutorial:
http://www.w3schools.com/webservices/default.asp


Sunday, June 1, 2014

Cruise for a Corpse - vintage adventure game




I found this awesome adventure game vintage adventure game and playing it at DosBox (MS-DOS emulator). Although I know who the murderer is, it's fun and relaxing to play again one of my youth favorites adventure game.

You take the role of a private investigator. You are invited aboard a cruise by a wealthy friend of yours 'Nicklos Karaboujan' aboard. But the night the cruise begins the Nicklos is murdered. You have 24 hours to find the murderer before the ship reaches it's next destination.

It was hours of mystery and fun! I strongly urge you to play it.

Wiki: Cruise for a Corpse



Saturday, May 31, 2014

HOARD HAT - Random Treasure Generator DnD v3.5 - FREE Mobile App - No internet connection required

Play/Install (mobile & desktop): http://hoardhat.killerchip.net/
More Killerchip Apps: http://www.killerchip.net/

Random Treasure Generator for RPG games (v3.5)

Hoard Hat is a random treasure generator for RPG games (v3.5). A companion for those that build adventures before-hand or need to quickly roll treasure for an 'unexpected' encounter.

T-Roll - Dice Roller - FREE Mobile app - No internet required

Play/Install: http://troll.killerchip.net/ (for desktops also)
Home Page/More info: http://www.killerchip.net/troll.html
More Killerchip apps: http://www.killerchip.net/





T-Roll is a dice roller for RPG games and tabletop games in general. It allows MASSIVE rolls of dice and instantly sum and count results.

Features:
* Dice supported: d4, d6, d8, d10, d12, d20, d100
* Massive Rolls (e.g. 400d20 is easy)
* Automatic Summary of rolls (e.g. sum-up of 20d6)
* Automatic count analysis of rolls (e.g. how many 1s, 2s, 3s, 4s rolled on 50d4)
* Easy counts of rolls (e.g. how many 19s+20s on 50d20 rolls)
* Mixed rolls (e.g. 30d4+20d20+10d6)

And of course easy simple rolls.
* Single click d6 to roll a d6 once.
* Click 4 times d20 to roll 4 d20 in row

T-Roll (dice roller) bug fixed: run in offline-mobile mode

T-Roll - Dice Roller for board games - has received an bug-fix update.


The bug was not allowing the app to run on mobile device without internet connection. Now the fix has been applied and it will able to operate again in offline mode for mobiles (no internet connection needed).

Just connect the mobile to the internet once, and open T-Roll URL:

With the update of the page the fix will be installed automatically.

HoardHat (treasure generator) bug fixed: run in offline-mobile mode

Hoard Hat - the Random Treasure Generator for v3.5 DnD rpg has received an bug-fix update.



The bug was not allowing the app to run on mobile device without internet connection. Now the fix has been applied and it will able to operate again in offline mode for mobiles (no internet connection needed).

Just connect the mobile to the internet once, and open HoardHat URL:


With the update of the page the fix will be installed automatically.
 

Sunday, May 18, 2014

Hoard Hat - Random Treasure Generator DnD v3.5 for mobiles

http://hoardhat.killerchip.net/

An updated version has been released. It is bundled with the new Killerchip.net web site to provide more information and help on the app.

To update: just visit the above link and update should be done automatically.


T-Roll: Free Massive RPG and Board games roller for mobiles and desktops

http://troll.killerchip.net/
An updated version of T-Roll dice roller available, that bundles with new Killerchip.net web site.


New Killerchip.net portal face

Killerchip.net gets a facelift.

It has now new look and more information on the hosted board-game related apps and games.

Visit http://www.killerchip.net/


Tuesday, March 25, 2014

Babylon 5 (awsome)

Just finished watching Babylon 5 season 3. Can't wait for season 4.

I know it's an old series, but is the best sci-fi series I have seen so far.

Plot is awsome. And is full of philosophical, political, religious messages and food for thought.

And finally Space Opera by all its means.

I recommend it to anyone (sci-fi fun or not).


Sunday, March 23, 2014

Book: Pro HTML5 Games

I started the following book on game development based on HTML5.

Pro HTML5 Games
http://www.apress.com/9781430247104

It seems promising and I can't wait to get started.





Starter UML tools

>Programming

I just started playing around with UML notation, in order to be able to write down and visualize my Object Oriented Programming ideas.

I found the following utility a good start. StarUML.
http://staruml.sourceforge.net/en/

I mainly use it for creating Class notes and documentation, Class diagrams and Collaboration diagrams.

I also use OpenOffice Draw, to create flow-charts for describing my object methods

http://www.openoffice.org/



Saturday, February 8, 2014

T-Roll dice roller gains Firefox fans

T-Roll, the Massive Dice Roller for RPG and tabletop games, is gaining more fans among the Firefox community.

One month after its publication at Firefox Marketplace, already has reached 43 installs.

It is especially design to work on mobile and tablets, favoring Firefox OS and Firefox browsers.

It works OFFLINE; no Internet connection required.

Access T-Roll from you mobile or desktop here: troll.killerchip.net

 

Wednesday, July 24, 2013

Thursday, August 2, 2012

Escaping: My scratch-based shoot-em-up game

I have been playing around with Scratch for a few weeks now. Scratch is a very efficient and easy to use programming environment, used for teaching/learning programming.
http://scratch.mit.edu

The result is a basic shoot-em-up game, I called 'Escaping'.
You can play it online or download the project file itself and running in on your scratch installation. (I recommend the 2nd).

http://scratch.mit.edu/users/killerchip

If you are playing around with scratch, it's worth downloading the project.
I have created the objects in this project as 'independent' as possible. So you can export them and use at your own game.

There are also a lot of notes inside the code to help you with.

If you have any comments or need extra help, don't hesitate to contact me.

Enjoy!

Sunday, May 6, 2012

The Hobbit, Production Video #1 [HD]

Greek Subtitles

Ελληνικοί Υπότιτλοι


Έχω φτιάξει ελληνικούς υπότιτλους για το παρακάτω video του YouTube.


Τους υπότιτλους θα τους βρείτε εδώ:
http://www.videolan.org/vlc/

Πως να δείτε το video με υπότιτλους

Μπορείτε να κατεβάσετε το video από το YouTube χρησιμοποιώντας ένα πρόγραμμα όπως το JDownloader.

To κατεβασμένο video μπορείτε να το δείτε με έναν media player, όπως ο VLC Media Player
http://www.videolan.org/vlc/

Φροντίστε το αρχείο του βίντεο και το αρχείο υπότιτλων να έχουν το ίδιο όνομα.
Π.χ.
video1.mp4
video1.srt

Καλή διασκέδαση!


Tuesday, December 27, 2011

Ο Ψεύτης Λαγός (παιδικό νανούρισμα)

Χιλιόμετρα και χιλιόμετρα πέρα-δώθε στο διάδρομο προς ηρεμία του νεαρού... γέννησαν το παρακάτω τραγούδι:

Ο ΨΕΥΤΗΣ ΛΑΓΟΣ

Ζουμ ζουμ ζουμ
ζου-ρουμ ζουμ ζουμ
ζουμ ζουμ ζουμ
ταρά τα τζουμ

Μια φορά κι έναν καιρό
ήτανε ένας λαγός
τ' άλλα ζώα ενοχλούσε
και όλο ψέμα τους πουλούσε


Ζουμ ζουμ ζουμ
ζου-ρουμ ζουμ ζουμ
ζουμ ζουμ ζουμ
ταρά τα τζουμ

Πάει κάτω απ' το δεντράκι
που φωλιάζουν τα πουλιά
και κοιτάει σε κλαδάκι
και μιλάει σε πουλάκι

Ήτανε ο κυρ Σπουργίτης
που ετοιμάζονταν για δύτης
σε λιμνούλα θα βουτούσε
και όλη μέρα τραγουδούσε

"Έϊ που πας κύριε Σπουργίτι
μη βγεις σήμερα από το σπίτι
στη λιμνούλα που βουτούσες
εθεάθησαν πατούσες"

"Με το όπλο και τον σκύλο
είναι ένας κυνηγός.
Κυνηγάει τα πουλάκια
φοβερός και τρομερός"

Τρομαγμένο το σπουργίτι
μπαίνει πάλι μεσ' το σπίτι
"Πω πω πω τι τρομερό
Μπάνιο δεν θα κάνω εγώ"

Και ο λαγός χασκογελούσε
τις αυτάρες του τραβούσε
"Χα χα χα, χαχά, χα χα
Του την έσκασα ξανά"


Ζουμ ζουμ ζουμ
ζου-ρουμ ζουμ ζουμ
ζουμ ζουμ ζουμ
ταρά τα τζουμ

Πάει μέσα στη σπηλιά
που κοιμάται η αρκουδίτσα
αγαπητή μέσα στο δάσος
όλοι την φωνάζουν Λίτσα


"Μην κοιμάσαι κύρα Λίτσα
Μες το διπλανό αμπέλι
στη γεμάτη την κυψέλη
οι μέλισσες χαρίζουν μέλι"


"Τρέξε τώρα να προλάβεις
για το μέλι που θα φας
πριν πλακώσουν κι' άλλα ζώα
και αρχίσει ο καυγάς"


Τρέχει, πάει η αρκουδίτσα
με τα σάλια της να τρέχουν
στο αμπέλι, στη κυψέλη
αλλά πουθενά το μέλι


Βγαίνει έξω το μελίσσι
οργισμένο, θυμωμένο
την αρκούδα να τσιμπήσει 
και το μέλι τους ν' αφήσει


"Πω πω πω τι τρομερό.
Μου τσιμπήσαν το πωπώ.
Πως την πάτησα εγώ;
Να καθήσω δεν μπορώ!"


Κι ο λαγός χασκογελούσε
τα μουστάκια του τραβούσε
"Χα χα χα, χαχά, χα χα
Της την έσκασα ξανά!"


Ζουμ ζουμ ζουμ
ζου-ρουμ ζουμ ζουμ
ζουμ ζουμ ζουμ
ταρά τα τζουμ


Δίπλα σ' ένα βελανίδι
κάθεται ο σκιουράκης
που όπως το φαντάζεσται
το όνομά του είναι Λάκης

Πεινασμένο ο κυρ Λάκης
το βελανίδι του θα φάει
Να το κάνει μια χαψιά;
Ή λίγο-λίγο να μασάει;

"Μην το τρως το βελανίδι,
άκου που σου λέω Λάκη,
βρήκα εγώ ωραίο παιχνίδι
να το κάνουμε μπαλάκι"

"Πιάσε τέρμα εσύ εκεί
να κλωτσάω εγώ εδώ
κι αν σου βάλω τρία γκολ
θα κερδίσω το ΠΡΟΠΟ!"

Παίρνει φόρα ο λαγός,
το βελανίδι το κλωτσάει
στην πλαγιά κατρακυλάει
και στη λίμνη πέφτει πάει.


Σαστισμένος ο κυρ Λάκης
δεν μπορεί να το πιστέψει
πω πω πω ο καψερός
που θα μείνει νηστικός


Κι ο λαγός χασκογελούσε
τις αυτάρες του τραβούσε
"Χα χα χα, χαχά, χα χα
του την έσκασα ξανά!"


Ζουμ ζουμ ζουμ
ζου-ρουμ ζουμ ζουμ
ζουμ ζουμ ζουμ
ταρά τα τζουμ


----

Στατιστικά στοιχεία: Συνήθως ο μπέμπης κοιμάται στο μέσον της ιστορίας της αρκούδας. Σπάνια έχει προλάβει την ιστορία του σκίουρου. Εάν το δικό σας μωρό την αντέχει όλη... repeat και υπομονή :-P