<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>maSnun.com</title>
	<link>http://masnun.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 18 Mar 2010 10:01:16 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Building A Proxy Scraper with 15 lines of Python</title>
		<description><![CDATA[Yes, Python is great! It&#8217;s beautiful and so on&#8230;. I have described the power of Python many times. For now, just the codes   Here&#8217;s a proxy scraper I built a few moments ago. It scrapes the web page at proxy-hunter.blogspot.com and lists the available open proxies.

#!/usr/bin/env python
&#160;
from BeautifulSoup import BeautifulSoup as Soup
import re, [...]]]></description>
		<link>http://masnun.com/blog/2010/03/18/building-a-proxy-scraper-with-15-lines-of-python/</link>
			</item>
	<item>
		<title>Using Python on Hostmonster, Umbrahosting And Other General  Shared Hosting</title>
		<description><![CDATA[I&#8217;ve a hostmonster and umbrahosting shared hosting where my sites are running smoothly in PHP. I&#8217;m perfectly happy with both UmbraHosting and HostMonster. Additionally both the hosting providers have Python support. Being a Python enthusiast, I decided to check out.
On both Hostmonster and Umbrahosting, you can execute Python scripts as CGI scripts. But you must [...]]]></description>
		<link>http://masnun.com/blog/2010/03/11/using-python-on-hostmonster-umbrahosting-and-other-general-shared-hosting/</link>
			</item>
	<item>
		<title>Sending SMS With AloAshbei Platform (GP APIs) and PHP</title>
		<description><![CDATA[Here&#8217;s a working example of Grameen Phone&#8217;s AloAshbei Platform.

&#160;
&#60;?php
/*
* Demo of the SMS API
* Author: maSnun
* URL: http://masnun.com
*/
&#160;
&#160;
// I hosted the WSDL on my own host
$soap = new SoapClient&#40;&#34;http://masnun.com/wsdl/wsdl.php&#34;&#41;;
&#160;
// Set the parameters in an array
&#160;
$a&#91;'registrationID'&#93; = &#34;masnun&#34;;
$a&#91;'password'&#93; = &#34;******&#34;;
$a&#91;'sourceMsisdn'&#93; = '8801711960803';
$a&#91;'destinationMsisdn'&#93; = '88017********';
$a&#91;'smsPort'&#93; = 7424;
$a&#91;'msgType'&#93; = 4;
$a&#91;'charge'&#93; = 2.00 ;
$a&#91;'chargedParty'&#93; = '8801711960803';
$a&#91;'contentArea'&#93; = 'gpgp_psms';
$a&#91;'msgContent'&#93; = [...]]]></description>
		<link>http://masnun.com/blog/2010/02/04/sending-sms-with-aloashbei-platform-gp-apis-and-php/</link>
			</item>
	<item>
		<title>Hosting your Twitter Bots on Google App Engine</title>
		<description><![CDATA[UPDATE:  Download  the improved version of the application. I have made some code changes after the blog post got posted to reddit. The source code is now more readable and the app  easily configurable.

I am amazed to see the implementation of cron jobs on Google App Engine. I was hosting my twitter [...]]]></description>
		<link>http://masnun.com/blog/2010/02/02/hosting-your-twitter-bots-on-google-app-engine/</link>
			</item>
	<item>
		<title>Building a Jabber Bot (Google Talk) with Python and Google App Engine</title>
		<description><![CDATA[To develop a Jabber / Google Talk Bot, we first need to enable the XMPP inbound service for the application. Just add the lines:

inbound_services:
- xmpp_message

to your app.yaml file. That would activate the service for our application. Have a look at my application&#8217;s app.yaml file:

&#160;
application: masnun-test
version: 3
runtime: python
api_version: 1
&#160;
handlers:
- url: .*
  script: masnun.py
&#160;
inbound_services:
- xmpp_message

Now, we [...]]]></description>
		<link>http://masnun.com/blog/2010/02/01/building-a-jabber-bot-google-talk-with-python-and-google-app-engine/</link>
			</item>
	<item>
		<title>Handling JSON in Python</title>
		<description><![CDATA[On php, I just use json_encode() and json_decode() to handle JSON data with ease. Python has a built in module named &#8220;json&#8221; for the same purpose. Here&#8217;s the link for the official documentation: http://docs.python.org/library/json.html   The documentation has pretty examples. Still, I wanted to try things out by myself. I used Python to parse [...]]]></description>
		<link>http://masnun.com/blog/2010/01/30/handling-json-in-python/</link>
			</item>
	<item>
		<title>Created Another WordPress Theme</title>
		<description><![CDATA[I have finally chosen web application engineering as my core subject of specialization. I have always appreciated the beauty and usability of web applications. You can easily paint your dreams on a web page, rather than on a desktop software. I have been developing mobile web sites for over 3 years now. I loved playing [...]]]></description>
		<link>http://masnun.com/blog/2010/01/30/created-another-wordpress-theme/</link>
			</item>
	<item>
		<title>A Simple Web Server in 30 Lines of Python Code</title>
		<description><![CDATA[I haven&#8217;t recently had much time to do the fancy R&#038;Ds I always loved! Today afternoon I was not feeling good to study, let alone that huge microeconomics assignment. I fired off the python interpreter and started coding aimlessly. I was inspecting the http.server module of Python 3 when an urge to create a web [...]]]></description>
		<link>http://masnun.com/blog/2010/01/16/a-simple-web-server-in-30-lines-of-python-code/</link>
			</item>
	<item>
		<title>A reflect() Function For Quick Reflection in PHP</title>
		<description><![CDATA[The Reflection API is the perfect way to reverse engineer and inspect php objects and functions. I have written a function to quickly pass params to the Reflection API and get things done.
Here&#8217;s the source codes:

&#160;
&#60;?php
&#160;
function reflect&#40;$data,$return = false&#41; &#123;
    $string = &#34;\n \nReflecting: {$data} \n&#34;;
    $string .= &#34;\n====================\n&#34;;
 [...]]]></description>
		<link>http://masnun.com/blog/2010/01/05/a-reflect-function-for-quick-reflection-in-php/</link>
			</item>
	<item>
		<title>Track Your Favorite Topic on Twitter: A PHP CLI Tool</title>
		<description><![CDATA[Here&#8217;s a little php utility that will let you watch the Twitter public time line for your favorite topic. This is specially helpful for those who want to build some tracking application on the basis of the twitter streaming APIs.
Here&#8217;s the source:

&#60;?php
$topic = $argv&#91;1&#93;;
if&#40;empty &#40;$topic&#41;&#41; &#123;
    $topic = &#34;php&#34;;
&#125;
$username = &#34;twitter_username&#34;;
$password = [...]]]></description>
		<link>http://masnun.com/blog/2010/01/03/track-your-favorite-topic-on-twitter-a-php-cli-tool/</link>
			</item>
</channel>
</rss>
