Sometimes you need to encode special characters in your projects. – I often do, while writing in Portuguese that uses “special” Latin characters. For those cases there is a standard rule called ISO-8859-1
ISO-8859-1 is the default character set in most browsers.
The first 128 characters of ISO-8859-1 is the original ASCII character-set (the numbers from 0-9, the uppercase and lowercase English alphabet, and some special characters).
The higher part of ISO-8859-1 (codes from 160-255) contains the characters used in Western European countries and some commonly used special characters.
Entities are used to implement reserved characters or to express characters that cannot easily be entered with the keyboard.
Reserved Characters in HTML
Some characters are reserved in HTML and XHTML. For example, you cannot use the greater than or less than signs within your text because the browser could mistake them for markup.
Read the full article in: www.w3schools.com/tags/ref_entities.asp
How to use custom styles in the Word Press post editor
Every-time I created a word press theme, I felt the need to allow my theme users to use on their contents, the CSS styles that I had created to the theme itself.
They were especially created in order to maintain a visual identity between the layout and the contents, and should be directly applied at the author’s will! – How-come the styles, created specially for that theme (my CSS Classes), weren’t available to be applied trough the default WYSIWYG text editor?
My objective was allowing users to be able to apply the custom styles, in the default panel, using the panels own logic, without any particular knowledge of HTML or CSS and without having to stick to the editor’s default predetermined styles.
In this brief tutorial I’ll explain a very simple way to do this, just by adding a couple of lines of code to your theme’s functions.php, and by creating a very simple CSS file to host your custom styles.
In my previous article about this subject (www.wdmac.com/word-press-custom-css-styles-in-the-wysiwyg-editor) we’ve edited a couple of WP core files, and the result was satisfactory. However those edits where lost on every WP upgrade, and that was not satisfactory at all. This is a clean, straightforward technique, that is “permanent” and non-upgrade-dependent.
This article was updated: August 12th, 2010
Formatting print_r(); to be readable
User friendly array listings, by formatting print_r();
When you wish to see the contents of any PHP array, typically you use the print_r() function.
This will print all the array contents in a very messy text block, without any line-breaks whatsoever, wich is quite difficult to read and browse trough.
Wouldn’t it be so much nicer to show the array contents split by line, clean and easy to read and browse., to find what you’re looking after? This is what we will do in this post.
How to Make a People-Free Photo in a Crowded Place
How to Make a People-Free Photo in a Crowded Place
By Alexey Stiop, Shutterstock Contributor, published in: submit.shutterstock.com/newsletter/217/article2.html (original post images featured)
Have you ever wanted to photograph a landmark or historic site or an interesting piece of architecture, and wished you could do it without including hundreds of tourists in your shot? This especially would present a problem if you planned to submit this image as stock – unless, of course, all these people were your friends and would gladly furnish you with their model releases.
Well, there is a way around this. You will need two things (besides your camera) – a steady tripod and Adobe Photoshop CS3 Extended.
iPad Usability – First Findings From User Testing
iPad apps are inconsistent and have low feature discoverability, with
frequent user errors due to accidental gestures. An overly strong print
metaphor and weird interaction styles cause further usability problems.
Jakob Nielsen’s Alertbox for May 10 is now online at:
