March 9th, 2010
function limit_words($string, $word_limit) {
// creates an array of words from $string (this will be our excerpt)
// explode divides the excerpt up by using a space character
$words = explode(' ', $string);
// this next bit chops the $words array and sticks it back together
// starting at the first word '0' and ending at the $word_limit
// the $word_limit [...]
Posted in Wordpress | No comments »
January 27th, 2010
Please read the whole text before doing anything.
If you want to reset all your Plasma settings, according to Plasma FAQ:
kquitapp plasma; rm $KDEHOME/share/config/plasma-appletsrc; plasma
This deletes your plasma settings, so you’ll get the default configuration back. If running all the 3 commands at once doesn’t work, try typing them in manually and wait a few seconds [...]
Posted in Desktop | No comments »
January 13th, 2010
# prevent viewing of a specific file
order allow,deny
deny from all
order deny,allow
deny from all
allow from 888.888.888.888
Posted in Web | No comments »
January 8th, 2010
Open Mail.app and visit your account preferences (CMD-,) and select the Mailbox Behaviors tab for your gmail account.
Uncheck the field that says ‘Store notes in Inbox’
Quit Mail.app. Don’t use the red Close button, but quit completely with CMD-Q.
Go to gmail.com and delete the Apple Mail To Do label from the Settings | Labels tab.
Restart Mail.app [...]
Posted in Mail | No comments »
January 8th, 2010
The fix for this is simple, and may have only been unknown to me: Click on a folder in the Gmail folder in Mail’s side bar. Click on the Mailbox menu in Mail. Click on the Use This Mailbox For menu item and click on the Mail folder that corresponds to the Gmail folder you’ve [...]
Posted in Mail | No comments »
December 1st, 2009
Samba is a Linux service wich allows to access a Linux disk* from a Microsoft Windows machine.
*or Hard-drive partition, whatever you call it.
Following problem happens when working on a Samba-mounted share from windows:
the user and owner of a directory-tree are user1 grp1 (e.g. drwxrwx--- karin home_users ... mydir)
user sven edits the file index.html from Windows XP using Ultraedit. The [...]
Posted in Server | No comments »
November 29th, 2009
Posted in Wordpress | No comments »
November 29th, 2009
echo substr(the_title(”, ”, FALSE), 0, 50) . ” (…)”;
Posted in Wordpress | No comments »
November 29th, 2009
function BCLANG ($Cuvant){
$BC["Link-uri rapide"] = “Quick links”;
if ( ($BC[$Cuvant] != “”) && (qtrans_getLanguage() == “en”) ){ return $BC[$Cuvant]; } else { return $Cuvant; }
}
Posted in Wordpress | No comments »
November 28th, 2009
<!–
comment
<!–This can be viewed in the HTML part of a
document–>
Nothing will show
(Tip)
<a -
anchor
<a href=“http://www.domain.com/”>
Visit Our Site</a>
Visit Our Site
(Tip)
<b>
bold
<b>Example</b>
Example
<big>
big (text)
<big>Example</big>
Example
(Tip)
<body>
body of HTML document
<body>The content of your HTML
page</body>
Contents of your web page
(Tip)
<br>
line break
The contents of your page<br>The contents of your page
The contents of your web page
The contents of your web page
<center>
center
<center>This will center your
contents</center>
This will center your [...]
Posted in HTML | No comments »