Use this snippet to add drop shadows to elements for Mozilla, Webkit, and browsers that support CSS3:
-moz-box-shadow: 1px 2px 3px #666; -webkit-box-shadow: 1px 2px 3px #666; box-shadow: 1px 2px 3px #666; /* box-shadow: X Y blur hex; */
<アンダブロッブ />
Use this snippet to add drop shadows to elements for Mozilla, Webkit, and browsers that support CSS3:
-moz-box-shadow: 1px 2px 3px #666; -webkit-box-shadow: 1px 2px 3px #666; box-shadow: 1px 2px 3px #666; /* box-shadow: X Y blur hex; */
Use this CSS to apply rounded corners to Mozilla, Webkit, and browsers that support CSS3:
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
Note to self: when installing XAMMP for development on your legacy apps, be sure to set PHP short tags in php.ini:
short_open_tag = On
Cursive L
Looping recursive
into helix
on horizon
Trying to manipulate the iframe from a jQuery script running inside the iframe. Here is how to get a handle on the iframe with jQuery when you have id attribute iframe-id-attribute set on the iframe:
var ifr = $( '#iframe-id-attribue', window.parent.document );
Hatred does not cease through hatred at any time.
Hatred ceases through love. This is an unalterable law.— Buddha
I had a couple records disappear and needed to pull them from backup. The client had already made extensive changes to the database via CMS so I couldn’t copy over the whole database without overwriting all of their changes. Here is the SQL I came up with to transfer a single record:
INSERT INTO target_db.table
SELECT backup_db.table.*
FROM backup_db.table
WHERE backup_db.table.id = '{000}'
Replace target_db with the name of the database you are copying to.
Replace backup_db with the name of the backup database you are copying from.
Replace table with the name of the table you are handling.
Replace {000} with the id field value of the record to transfer.
dompdf is a PHP5 class for rendering HTML/CSS files into PDF. Somehow I’m only learning of this now:
code.google.com/dompdf