Hello visitors
I am pleased to inform all of you that, i have moved my personal blogging site to a new location with a new domain name. You can check my latest post on Web World at:
Codeinterior: write code which talks
thanks
Masud
Hello visitors
I am pleased to inform all of you that, i have moved my personal blogging site to a new location with a new domain name. You can check my latest post on Web World at:
Codeinterior: write code which talks
thanks
Masud
Twitter is one of the micro blogging site in the world. Actually people used Twitter answering a question “what are you doing?”. Twitter has done some great thing like included jaber interface to post directly from google talk or other IM who support jaber API. Twiter also provide a small API, by which you can post your msg from other site.
The API is looks like this which is collected from google code. Here is a simple view
function postToTwitter($username,$password,$message)
{
$host = "http://twitter.com/statuses/update.xml?source=SITE_NAME&
status=".urlencode(stripslashes(urldecode($message))); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_POST, 1); $result = curl_exec($ch); // Look at the returned header $resultArray = curl_getinfo($ch); curl_close($ch); if($resultArray['http_code'] == "200"){ $twitter_status='Your message has been sent!
<a href="http://twitter.com/'.$username.'">See your profile</a>'; } else { $twitter_status="Error posting to Twitter. Retry"; } return $twitter_status; }
I have recently add this features to one of my application development and hereby i share this knowledge with all of you. good luck 🙂
NB: To see the code working you should activate the curl library from php.ini
Smashing Magazine site is one of my favorite site for latest news on IT technology. Today i read the magazine and found really a interesting JavaScript library about date functionality. It do some amazing thing on the fly and the functions are very much user friendly. you can easily understand and remember those function name and their functionality. Here are some example that i found in the dateJS site.
I hope all of you will have lots of fun just using this library. Please mention if you made any change to this library for better performance.
reference: http://www.datejs.com
In my recent project I have to do something like that:
To do the following job I use Flickr API & YouTube API which helps me most. It’s become very much easy, which was too much difficult for me.
For YouTube there are lots of API available, but I found following API very much effective. You can download the API from the following link:
http://waxjelly.wordpress.com/2007/03/08/youtube-api-class-redeaux/
You just have to do the following thing:
It used two activeX bases Javascript class to show the video in your own page without redirecting to the orginal page.
i am feeling two much happy to have such usefull API. 🙂
smashing Magazine is one of the best site that i ever find in the internet. i just heard about this. It published several articles on different aspect of programming. You can easily increase your technical knowledge from this. This site always updated with latest article, tutorial etc. It includes article and tutorial on
CSS, AJAX, PHP, Web 2.0, Ruby, XML, DHTML, JS, framework and many more.
I get much help from this site and become a big fan of this site. I hope it will also works for you.