Bookmarks

Install Apache/PHP/MySQL on Snow Leopard

2012/02/02 | Permalink | Comment?

Install Apache/PHP/MySQL on Snow Leopard

via Install Apache/PHP/MySQL on Snow Leopard.

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , , , ,

Bookmarks

Installing the INTL extension on MAMP

2012/01/07 | Permalink | Comment?

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

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , , ,

Bookmarks

Selectivizr: CSS3 pseudo-class and attribute selectors for IE 6-8

2011/12/27 | Permalink | Comment?

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.

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , , ,

Bookmarks

When should I use article, section or div html5 tags?

2011/12/15 | Permalink | Comment?

There’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.

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags:

Bookmarks

Online Image Map Editor

2011/12/01 | Permalink | Comment?

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

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , ,

Code Snippets

Recursively delete .svn directories

2011/11/26 | Permalink | Comment?

Delete recursively all .svn files and folders.

rm -rf `find . -type d -name .svn`

via Recursively delete .svn directories.

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , ,

Bookmarks

PHP 5.2 to 5.3 migration tool

2011/11/20 | Permalink | Comment?

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

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: ,

Code Snippets

Fixing the Cant move .svn/tmp/entries to .svn/entries error

2011/07/31 | Permalink | Comment?
chflags -R nouchg ./

via Fixing the Cant move .svn/tmp/entries to .svn/entries error | Arc90 Blog.

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , ,

Code Snippets

JSON correct http header

2011/02/21 | Permalink | Comment?

As 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');

RFC4627.

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , , , ,

Bookmarks

Pay with a Tweet, a social payment system

2011/02/17 | Permalink | Comment?

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.

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , , , ,
« Previous Entries