Yearly Archives: 2015


Update: ElStr.class.php goes to v1.2

php-iconThe PHP Class ElStr with usefull functions for modern greek unicode text manipulation, such as transcript greek to latin, or accent marks stripping is now updated to version 1.2

What’s new?

  • mixed case support for difthongs, etc:
    • μπ => mp or τζ => tz
    • Μπ => Mp or Τζ => Tz
    • μΠ => mP or τΖ => tZ
    • ΜΠ => MP or ΤΖ => TZ

  • Two new accent mark removal methods:
    • strtolower_no_accent($str) – that Convert unicode string to lower case, without accent marks for the greek letters
    • str_no_accent($str) – that Remove accent marks for the greek letters at passed unicode string (no any case convertion)

Examples

require('ElStr.class.php') ;
$txt = "Το μπαρμπουνάκι θέλει μπυρίτσα" ;
$elstrObj = new El_Str() ;

echo $elstrObj->to_latin($txt) ;
//echoes: To barmpounaki thelei byritsa

echo $elstrObj->strtoupper_no_accent($txt) ;
//echoes: ΤΟ ΜΠΑΡΜΠΟΥΝΑΚΙ ΘΕΛΕΙ ΜΠΥΡΙΤΣΑ

echo $elstrObj->strtolower_no_accent($txt) ;
//echoes: το μπαρμπουνακι θελει μπυριτσα

echo $elstrObj->str_no_accent($txt) ;
//echoes: Το μπαρμπουνακι θελει μπυριτσα

Downloads

Download v1.2      View Source


Introducing Antigrafon backup utility

Gnome-applications-officeAntigrafon is an open source, simple but efficient backup utility, for mirroring all subfolders and files of an origin folder to a destination folder. You can also select to backup files cumulatively, by keeping the files at the destination even are not present at the origin anymore. Else, these files will be deleted also from the destination (mirror mode).

For more info, updates and donwload see at the project’s home page multipetros.gr/public-projects/desktop/antigrafon/


Confing.dll Released

puzzle-iconMultipetros.Confing.dll is an open source (MIT Licensed) .NET library with classes for easily confinguration properties manipulation.

There are three (3) classes, the SimpleIni Class, the Ini Class and the RegIni Class. The first two of them are contacting with flat text files to store the properties in the common used INI file format and the other one with the MS Windows Registry.

For more info, full documentation text, downloads and updates, see at the project’s home page at /public-projects/libraries/confing-dll/


Rewrite GET requests as virtual sub-folders in Apache

apache-logoIn search of a solution, to rewrite an one-parameter GET Request as virtual sub-folders, limiting it to specific values, I concluded to write the above Apache .htaccess rewrite rule.

This script, rewrite the value of the parameter named id, with the accepted values a,b or c as virtual sub-folders of a destination.

Script

RewriteEngine On
RewriteRule ^(a|b|c)\/?$ /?id=$1 [L]

Example

  • http://myhost.com/a/ rewrited as http://myhost.com/?id=a
  • http://myhost.com/a rewrited also as http://myhost.com/?id=a
  • http://myhost.com/d is not rewrited

Introducing TouchedFiles

touchedfiles-0
An open source program, builded for .net 3.5, to find and open last edited files, of the selected path. You can also enable or disable recursive searching in its subfolders.

By default, the program searches for files have modified, or created one day before and after. But this can change by modifying the date picker.

For more info, updates and donwload see at the project’s home page multipetros.gr/public-projects/desktop/touchedfiles/