Al Gore office
Feb 18
Green Al Gore consuming power and paper.
Hints and tips of a web worker
Feb 18
(https://help.ubuntu.com/community/ApacheMySQLPHP#Virtual%20Hosts)
$ sudo tasksel install lamp-server
Feb 18
pear, zend framework No Comments
There is a zend-framework package available by apt. But it is usually out-of-date. Anyway, if you don’t care (install zf in /usr/share/php/libzend-framework-php) :
$ sudo apt-get install zend-framework
Better is to install zf via zfcampus pear channel, i’ve been using it without problem for several months :
pear channel-discover pear.zfcampus.org
pear install zfcampus/zf
Feb 16
Obvious/well known but always forgotten
sudo tail /var/log/syslog
sudo tail /var/log/messages
Feb 06
The daily scrum won’t go perfect every day. It’s an every day struggle beyond perfection. Sometimes team members, sometimes scrum master, and even product owner will screw up the meeting :
Feb 04
just a little piece of code to test php preg_match(). I used it to test regexp on urls with Zend_Cache_Frontend_Page
$regexp='\?page';//just a regexp (without delimiter)
checkPreg($regexp);
checkPreg($regexp,$_SERVER['REQUEST_URI']);
function checkPreg($preg,$url='http://domain.com/index.php?page=shop/cart2'){
$res=preg_match(sprintf('|%s|',$preg),$url);
echo $preg ." match with $url ? ";
if(false===$res){
echo 'ERROR';
} elseif(0 === $res) {
echo 'NON';
} else {
echo 'YES. Num = '.$res;
}
echo "<br />\n";
}
Jan 06
A Form of Madness – Dive Into HTML5
Doctype : for HTML 5 : “<!DOCTYPE html>”. (case-insensitive)
safari + chrome only
<input name="q" placeholder="Type your query here">
saf + chrome + opera (fallback)
<input name="q" autofocus>
“Browsers (even ie6!) that don’t recognize type=”email” will treat it as type=”text” and render it as a plain text field.” Iphone will adapt it’s virtual keyboard (no space, @…)
<input type="email"> <input type="url">
Rendering depends on browser (iPhone optimizes the virtual keyboard for numeric input, opera renders as a spinbox control…). The browsers that don’t support type=”number” will render it as plain text field.
<input type="number" min="0" max="10" step="2" value="6">
Javascript methods available in HTML5 :
input.stepUp(n) increases the field’s value by n.input.stepDown(n) decreases the field’s value by n.input.valueAsNumber returns the current value as a floating point number. (The input.value property is always a string.)<input type="range" min="0" max="10" step="2" value="6">
Supported only by opera, rendered as plain text boxes in browsers that don’t support.
<input type="date" /> <input type="datetime"/> <input type="month" /> (month + year) <input type="week"/> <input type="time"/>
<input name="q" type="search">
No browser supports it yet.
<input type="color">
$(document).ready(function() {
if (!("autofocus" in document.createElement("input"))) {
$("#q").focus();
}
});
Jan 01
http://www.virtuosimedia.com/tutorials/ultimate-ie6-cheatsheet-how-to-fix-25-internet-explorer-6-bugs