Al Gore office

1 Comment




GTD: Getting Things Done

Originally uploaded by Emborg

Green Al Gore consuming power and paper.

Share

Install lamp with tasksel in ubuntu

No Comments

(https://help.ubuntu.com/community/ApacheMySQLPHP#Virtual%20Hosts)

$ sudo tasksel install lamp-server

Share

easy install and upgrade of zend framework with pear

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

Share

Reminder : logs to check in first place on linux

No Comments

Obvious/well known but always forgotten

sudo tail /var/log/syslog

sudo tail /var/log/messages

Share

Daily Scrum : how to (not) waste your productivity

No Comments

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 :

  • Some participants are late for the meeting. Yes, believe me, this can happen ! (“Give me your one dollar fine please, we’re going to have some beers at the end of the sprint !”)
  • The meeting turns into a big report to the scrum master / project manager (“Talk to other team members please”)
  • During the scrum meeting two participants (or more) discuss privately. “Hello ! Can you speak to the team please ? Football discussions can occur just after this fifteen minutes scrum”.
  • The meeting turns into a technical discussion about how to resolve an issue. “Discuss this after the meeting !”
  • As a result, the scrum meeting turns into a big and boring daily meeting trying to resolve problems.


Share

Meeting users’ requests

No Comments

Good idea for a future product baseline.

Share

test preg snippet

No Comments

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";
}
Share

Forms with HTML5

No Comments

A Form of Madness – Dive Into HTML5

Doctype : for HTML 5 : “<!DOCTYPE html>”.  (case-insensitive)

Placeholder

safari + chrome only

<input name="q" placeholder="Type your query here">

Autofocus

saf + chrome + opera (fallback)

<input name="q" autofocus>

Email and web addresses

“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">

Number as spinboxes

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.)

Numbers as sliders

<input type="range" min="0" max="10" step="2" value="6">

Date picker

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"/>

Search boxes

<input name="q" type="search">

Color picker

No browser supports it yet.

<input type="color">



Fallback code example for autofocus (jquery)

$(document).ready(function() {
  if (!("autofocus" in document.createElement("input"))) {
      $("#q").focus();
  }
});
Share

A good ie6 cheatsheet (25 bugs fixed)

No Comments

http://www.virtuosimedia.com/tutorials/ultimate-ie6-cheatsheet-how-to-fix-25-internet-explorer-6-bugs

Share

ThreeDots : jquery Plugin for Ellipsis (truncating)

No Comments

ThreeDots: The jQuery Ellipsis Plugin « The Product Guy

Share

Older Entries Newer Entries