In the simplest patterns, the body of the pattern consists of the literal sequence of characters you wish to match:
/MasterCard/
/Bank Branch Number/
Many characters have specialized roles in defining more complex regular expressions; these characters must be ‘escaped’ if you wish to match a literal string in which they appear: {}[]()^$.|*+?\. Patterns can include the common special characters – \t, etc; the octal escape character sequences are also supported (things like \0172). The following code is a first example of the pattern match operator; it tests whether a line read from STDIN contains the character sequence Bank Branch:
$line = <STDIN>;
if($line =~ /Bank Branch/) { ... }
Continue reading →
It’s not an uncommon situation to have a WordPress-based web site managed by a professional programmer for an end-user who doesn’t have any interest in having access to the administrative functions; usually, it’s a straight choice by the programmer to keep the end-user away from reaching the sensitive administrative section, in order to avoid risks potentially catastrophic for the entire web site: the end-user account is set to “editor” level, leaving him free to manage his blog with no chance to access the delicate admin features. Continue reading →
The “blogverse” is one of the most active aspect of the modern internet, with well established leaderships among the many softwares nowadays available. One of the newest entry is a project based on PHP5, and made by some of the WordPress developers: Habari. One of the first questions to answer is the name: what the hell does it mean “habari”?!?!? Well, let’s hear what the official FAQ tells us:
“Habari” is a Swahili word that means “what’s the news?” It’s similar to the English “What’s up?” or the Spanish “¿Qué pasa?” The typical response is “nzuri sana”, which means “very good”. Continue reading →
Posted in News
|
Tagged blog software, habari, PHP
|
With the release of the latest version, WordPress comes with new built-in features to manage its own tags, both for tag lists and tag clouds. In this quick review, we’ll see how to include in your postings pages all the necessary PHP stuff in order to show every posting with its related tag list, if defined by the user at the time of writing. The feature is available as template tag, to be used within the Loop, just a simple PHP code snippet you can include in your template’s index.php file, after the posting lines (or in a position suitable for you) Continue reading →
Reshade is an online service which allow user to resample an image with a very low quality loss. Online use is free, but there is also a stand-alone version available for use on offline computers for USD 149,00.
The intended purpose of reshade is to upsize/zoom images without degrading their quality. It was meant to overcome the problems with other algorithms available (including the ones in Photoshop) that create blurry enlargements. The algorithm was implemented to work well for small upsizes of about 2 times the original, but eventually it turned out to do a good job for any resizing factor. Continue reading →

doTemplate is a new free online web template generator. Creating your own template is fairly simple: first pick a template that suits your purposes from the public library, next customize it by changing colors, tweaking the fonts, and so on, with a great deal of flexibility. doTemplate can be used for XHTML, CSS and tableless web layouts, a great tool for web design professionals.

Social Wallpapering is a community effort to classify, rank and distribute high resolution, high quality images to be used as computer wallpaper. A huge collection is yet available, with a practical division in galleries for standard display, widescreen monitor, dual display, all catalogued under different categories, such as “anime”, “computer related”, “fantasy”, “sci-fi”, “sport”, “tv and movies”, “games”, “music” and so on. Continue reading →
Do you still use Photoshop to capture colors? Now you don’t have to, because with AdesClrPicker you can do the same much faster. With our small and fast color picker tool you don’t have to wait for Photoshop to load just to capture one color from the screen.
AdesClrPicker is a very easy to use, yet powerful color picker application for Web Designers and Web Developers. It allows you to capture colors anywhere on the screen with a single click of the mouse and output it in either HTML, RGB, C++, VB and Delphi color codes. Continue reading →
On this blog it starts tomorrow… so get ready! If you blog using WordPress, you would know that the default for links in the comments are ‘nofollow’. It’s really good in the sense that you can avoid link spamming. But what if you really knows what you are doing and encourage your readers to leave comments by enabling the ‘follow’ option? The WordPress default for links added to a post comment is to add “rel=nofollow” to the link tag. I found a great plugin that disables the automatic rel=”nofollow” attributes added to external links. So now, every time you reply to a post or participate in a comment discussion, you’ll get a link back! Just enter your name, your email address and the URL of your site and you’ll get a link back to your site!
Using the infrared camera built in the Nintendo Wii remote and a head mounted sensor bar (just two IR LEDs), Johnny Chung Lee can accurately track the location of his head and render umbelievable view-dependent images on a traditional screen. This effectively transforms the display into a portal to a virtual environment. The display properly reacts to head and body movement as if it were a real window creating a realistic illusion of depth and space. The program only needs to know your display size and the size of your sensor bar (for parallax tracking purposes). The software is a custom C# DirectX program and is primarily provided as sample code for developers without support or additional documentation. You may need the most recent version of DirectX installed for this to work. Continue reading →