tinyMCE.init({
mode : “exact”,
elements : “elementID1,elementID2…”
});
Posted on 25 November 2009.
tinyMCE.init({
mode : “exact”,
elements : “elementID1,elementID2…”
});
Posted in JavaScript - Ajax0 Comments
Posted on 23 November 2009.
You can use this function when the subject at an email is not displayed correctly.
The idea is to base64_encode the subject header. Something like Continue Reading
Posted in Linux, PHP, Tips & Tricks0 Comments
Posted on 23 November 2009.
Use this script to update content dynamicaly. Original source from
http://www.unfocus.com/projects/historykeeper/ Continue Reading
Posted in JavaScript - Ajax, PHP0 Comments
Posted on 20 November 2009.
I’m a freelance web developer based in Hampton, UK. I write about and enjoy front-end web development. Most of what I write focuses on my favorite topic, JavaScript! To read my blog or find out more about me please visit my site!
Posted in JavaScript - Ajax0 Comments
Posted on 18 November 2009.
| Format | A series | B series | C series | |||
|---|---|---|---|---|---|---|
| Size | mm × mm | in × in | mm × mm | in × in | mm × mm | in × in |
| 0 | 841 × 1189 | 33.1 × 46.8 | 1000 × 1414 | 39.4 × 55.7 | 917 × 1297 | 36.1 × 51.1 |
| 1 | 594 × 841 | 23.4 × 33.1 | 707 × 1000 | 27.8 × 39.4 | 648 × 917 | 25.5 × 36.1 |
| 2 | 420 × 594 | 16.5 × 23.4 | 500 × 707 | 19.7 × 27.8 | 458 × 648 | 18.0 × 25.5 |
| 3 | 297 × 420 | 11.7 × 16.5 | 353 × 500 | 13.9 × 19.7 | 324 × 458 | 12.8 × 18.0 |
| 4 | 210 × 297 | 8.3 × 11.7 | 250 × 353 | 9.8 × 13.9 | 228 × 324 | 9.0 × 12.8 |
| 5 | 148 × 210 | 5.8 × 8.3 | 176 × 250 | 6.9 × 9.8 | 162 × 229 | 6.4 × 9.0 |
| 6 | 105 × 148 | 4.1 × 5.8 | 125 × 176 | 4.9 × 6.9 | 114 × 162 | 4.5 × 6.4 |
| 7 | 74 × 105 | 2.9 × 4.1 | 88 × 125 | 3.5 × 4.9 | 81 × 114.9 | 3.2 × 4.5 |
| 8 | 52 × 74 | 2.0 × 2.9 | 62 × 88 | 2.4 × 3.5 | 57 × 81 | 2.2 × 3.2 |
| 9 | 37 × 52 | 1.5 × 2.0 | 44 × 62 | 1.7 × 2.4 | 40 × 57 | 1.6 × 2.2 |
| 10 | 26 × 37 | 1.0 × 1.5 | 31 × 44 | 1.2 × 1.7 | 28 × 40 | 1.1 × 1.6 |
The tolerances specified in the standard are
Posted in Graphics0 Comments
Posted on 18 November 2009.
function cleanHTML($html) {
///
/// Removes all FONT and SPAN tags, and all Class and Style attributes.
/// Designed to get rid of non-standard Microsoft Word HTML tags.
///
// start by completely removing all unwanted tags
$html = ereg_replace(“<(/)?(font|span|del|ins)[^>]*>”,”",$html);
// then run another pass over the html (twice), removing unwanted attributes
$html = ereg_replace(“<([^>]*)(class|lang|style|size|face)=(\”[^\"]*\”|’[^']*’|[^>]+)([^>]*)>”,”<\\1>”,$html);
$html = ereg_replace(“<([^>]*)(class|lang|style|size|face)=(\”[^\"]*\”|’[^']*’|[^>]+)([^>]*)>”,”<\\1>”,$html);
return $html
}
http://snipplr.com/view/5217/clean-word-html-using-regular-expressions/
Posted in PHP0 Comments
Posted on 18 November 2009.
<!-- This is an HTML Comment --> Continue Reading
Posted in PHP0 Comments
Posted on 17 November 2009.
Linux System Status Utilities Continue Reading
Posted in Linux0 Comments
Posted on 12 November 2009.
What Does This Meta Tag Look Like?
This meta tag is usually placed beneath the title and meta description tags in the
<HEAD></HEAD> section of your pages’ HTML code, like this:<HEAD>
<TITLE>your DESCRIPTIVE KEYWORDS title goes here</TITLE>
<META NAME=”DESCRIPTION” CONTENT=”Your keyword rich marketing sales-pitch meta description goes here”>
<META NAME=”KEYWORDS” CONTENT=”your keywords,go here,separated by a comma,but not a space”>
</HEAD>
Posted in HTML - XHTML0 Comments
Posted on 11 November 2009.
Establishes a persistent connection to a MySQL server.
mysql_pconnect() acts very much like mysql_connect() with two major differences.
First, when connecting, the function would first try to find a (persistent) link that’s already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.
Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (mysql_close() will not close links established by mysql_pconnect()).
This type of link is therefore called ‘persistent’.
Posted in PHP0 Comments
