Install Apache/PHP/MySQL on Snow Leopard
via Install Apache/PHP/MySQL on Snow Leopard.
Tags: install, mac, mamp stack, mysql, PHPInstall Apache/PHP/MySQL on Snow Leopard
via Install Apache/PHP/MySQL on Snow Leopard.
Tags: install, mac, mamp stack, mysql, PHPInstall the INTL extension with MacPort intalling php5-intl (sudo port install php5-intl), then copying the library to MAMP:
cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/
Check the correct folder.
Maybe you will need to change the architecture of the MacPort compiler because MAMP is compiled in 32bit
# /opt/local/etc/macports/macports.conf
build_arch i386
Installing the INTL extension on MAMP | Geert Van Damme.
Tags: intl extension, mac, mamp, PHP
selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
via Selectivizr – CSS3 pseudo-class and attribute selectors for IE 6-8.
Tags: compatibility, css3, html5, ieThere’s been a lot of confusion over the difference (or perceived lack of a difference) between the <article> and <section> elements in HTML5. The <article> element is a specialised kind of <section>; it has a more specific semantic meaning than <section> in that it is an independent, self-contained block of related content. We could use <section>, but using <article> gives more semantic meaning to the content.
By contrast <section> is only a block of related content, and <div> is only a block of content. Also as mentioned above the pubdate attribute doesn’t apply to <section>. To decide which of these three elements is appropriate, choose the first suitable option:
1. Would the content would make sense on its own in a feed reader? If so use <article>
2. Is the content related? If so use <section>
3. Finally if there’s no semantic relationship use <div>
Dr Bruce has written HTML5 <article>s and <section>s, what’s the difference?, so we recommend reading that if you are still fuzzy on when to use <article>.
via The article element | HTML5 Doctor.
Tags: html5Map an image can be really annoying, so you need a valid tool to do it. Do it easier with the online image map editor of maschek
maschek.hu – Online Image Map Editor.
Tags: html, map, map imageDelete recursively all .svn files and folders.
rm -rf `find . -type d -name .svn`
via Recursively delete .svn directories.
Tags: cmd, svn, terminalThe script is very simple in use – just run php migrate.php myscript.php or php migrate.php directory/ and see if youll get any warnings. If you get none, the script thinks your code is ok Running php migrate.php -h displays help.I have placed the script on github – http://github.com/smalyshev/migrate
via DevZone » 5.2 to 5.3 migration.
Tags: migration, PHPchflags -R nouchg ./
via Fixing the Cant move .svn/tmp/entries to .svn/entries error | Arc90 Blog.
Tags: eclipse, mac, svnAs specified from the RFC4627 the correct header is application/json and not text/json.
In PHP you can use:
header('Content-type: application/json');
If you need not cache the output, a common problem with GET requests on IE, you can use these lines of code:
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
Tags: header, http, http header, json, PHP
Have you something free for download to offer? Don’t offer it completly free, ask for a tweet! This is in absolute the solution for ask popularity for your work.
Pay with a Tweet – A social payment system.
Tags: business model, facebook, micropayments, social, twitter