Web APIs by Example, Part I: Twitter • Evan Sims
Use php to post updates to the twitter API. Super easy, super fun.
Monday, November 17, 2008
phpTinyURL for WordPress articles
Creating a “GoTo” URL For Your WordPress-Powered Site
Create a folder w/ a short name and send post ID to it:
http://www.showbizradio.net/goto/2133
For HTACCESS:
I had to do 2 redirects, one htaccess, one php header redirect to use our SEO-friendly slug url.
Create a folder w/ a short name and send post ID to it:
http://www.showbizradio.net/goto/2133
For HTACCESS:
RewriteEngine On
RewriteRule ([0-9]+) /index.php?p=$1 [R=301,L]
RewriteRule (.*) / [R=301,L]
I had to do 2 redirects, one htaccess, one php header redirect to use our SEO-friendly slug url.
Friday, November 14, 2008
replace spaces with plus signs php
Use PHP to replace spaces with plus symbol in a string?
$myString = "1234 Example Street";
$newStr = str_replace( " ", "+", $myString );
echo( $newStr );
Thursday, November 13, 2008
how to force browser to download new stylesheet
Stefan Hayden » CSS Caching Hack
"What does ?version=1 mean? This is what a URL looks like if it’s passing a GET variable from one page to the next. To the browser it means the page is dynamic and it needs to get a new version because code may have changed. The browser has no way of knowing if the CSS file is actually dynamic or not.The trick is to change the number each time you update the CSS file to make sure the browser always downloads the new code."
http://www.stefanhayden.com/style.css?version=1
"What does ?version=1 mean? This is what a URL looks like if it’s passing a GET variable from one page to the next. To the browser it means the page is dynamic and it needs to get a new version because code may have changed. The browser has no way of knowing if the CSS file is actually dynamic or not.The trick is to change the number each time you update the CSS file to make sure the browser always downloads the new code."
Tuesday, November 11, 2008
adjust aquarium pH naturally - also funny aquarium gift
Hilarious office set fishtank for a beta.
Monitoring my fishtank's pH, appears to be a little high (in the high 7's, low 8's). Found that this isn't really a serious concern for my Zebra Danios (pH 6 to 8).
Found tons of information about fish including pH levels while searching for "how to lower aquarium ph level."
Another great fish tank option, killing two birds with one stone, the "Bird Fish Tank":
And the phone fish tank:
publish poll on homepage joomla
Got a hint here:
Polls not publishing
1) write your poll (Components > Polls)
2) publish it
3) go to Extensions > Module Manager
4) click on Polls in the list
5) on the right, select from the drop-down list the poll you want to display
6) apply & save
Polls not publishing
1) write your poll (Components > Polls)
2) publish it
3) go to Extensions > Module Manager
4) click on Polls in the list
5) on the right, select from the drop-down list the poll you want to display
6) apply & save
Subscribe to:
Posts (Atom)