Closures in Perl

http://www.perl.com/pub/a/2002/05/29/closure.html

Command line tricks for smart geeks

http://www.tuxradar.com/content/command-line-tricks-smart-geeks

filter_var() in PHP

PHP’s FILTER_VALIDATE_EMAIL validates email addresses quickly and easily.

<?php
  $email = "marc@somehost.com";
  if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE)
  {
    echo $email." is invalid";
  }
  else
  {
    echo $email." is valid";
  }
?>

Read it all at http://www.phpbuilder.com/columns/marc_plotz10012009.php3?page=2

Microsoft Patents Sudo

http://www.groklaw.net/article.php?story=20091111094923390

Mono tools for Visual Studio

Mono Tools for Visual Studio

CVE-2009-3547 (NULL pointer dereference and system crash)

Synopsis: “Multiple race conditions in fs/pipe.c in the Linux kernel before 2.6.32-rc6 allow local users to cause a denial of service (NULL pointer dereference and system crash) or gain privileges by attempting to open an anonymous pipe via a /proc/*/fd/ pathname.”

Debian 5.x systems suffer from this vulnerability (with or without Wine installed), and the fix is easy.

At a root shell, do the following:-

sysctl -w vm.mmap_min_addr="1024"
# make it persistent
cat <<EOF > /etc/sysctl.d/mmap_min_addr.conf
# Prevent http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3547
vm.mmap_min_addr=1024
EOF

Full details at http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3547

PHP on the JVM

Caucho’s Resin server now has PHP support with the Quercus module. Claiming anything from 4x to 6x performance improvement, and easy writing of extensions in Java (and presumably any JVM based language), it looks like a really great idea.

Web Open Font Format backed by Mozilla

Type designers and Web designers have reached a consensus on a format specification for embedding fonts on the Web. Mozilla is already including support for the font format in Firefox 3.6, and wide adoption could come sooner than many expected.

Read more at Web Open Font Format

Struts2 course on javaee-trainer

Struts2 course on JavaEE Trainer

TCPDF – PHP class for PDF

TCPDF is a PHP class for generating PDF documents without requiring external extensions. TCPDF Supports UTF-8, Unicode, RTL languages and HTML.