Error: org.macports.checksum for port php5 returned: Unable to verify file checksums
Some mis behaving server is not hosting the package accordingly.
Took me some time to found the solution:
mac port clean --dist php5
mac port sync
mac port upgrade outdated
//keep trying the above until the server got kicked off from your list
Tuesday, October 9, 2012
Wednesday, October 3, 2012
yaml and "
how to insert a " charactor into yaml value?
here is how:
settingname: """
ironicly, it encloses the " with delimiter "..
and tested working
Monday, October 1, 2012
Zend form element separator
yes, finally i did a separator due to some hiccup on fields being hanging on top of the previous field:
http://pastebin.com/K8qp7ieQ
http://pastebin.com/K8qp7ieQ
a better looking checkbox for zend form element checkbox
Code:
$this->getElement('iagree')->addDecorator('HtmlTag', array('tag' => 'dd', 'class' => 'checkbox'));
$this->getElement('iagree')->addDecorator('Label', array('placement' => 'APPEND', 'class' => 'checkbox', "escape" => false));
//escape to false to prevent from escaping link within the label
//also adding checkbox class to the dd tag and label tag
// and place label to the right of checkbox
Css wise:
dl dd.checkbox {
margin-left: 175px;
float: left;
}
dl label.checkbox {
display: block;
margin-left: 190px;
width: auto;
float: none;
text-align: left;
height: auto;
}
.zend_form label.checkbox.required {
padding-left: 12px;
background-position: left center;
}
$this->getElement('iagree')->addDecorator('HtmlTag', array('tag' => 'dd', 'class' => 'checkbox'));
$this->getElement('iagree')->addDecorator('Label', array('placement' => 'APPEND', 'class' => 'checkbox', "escape" => false));
//escape to false to prevent from escaping link within the label
//also adding checkbox class to the dd tag and label tag
// and place label to the right of checkbox
Css wise:
dl dd.checkbox {
margin-left: 175px;
float: left;
}
dl label.checkbox {
display: block;
margin-left: 190px;
width: auto;
float: none;
text-align: left;
height: auto;
}
.zend_form label.checkbox.required {
padding-left: 12px;
background-position: left center;
}
Subscribe to:
Posts (Atom)