<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pebbles</title>
	<atom:link href="http://chozhiyath.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chozhiyath.wordpress.com</link>
	<description>My thoughts, my expressions.</description>
	<lastBuildDate>Thu, 15 Dec 2011 06:32:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='chozhiyath.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pebbles</title>
		<link>http://chozhiyath.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chozhiyath.wordpress.com/osd.xml" title="Pebbles" />
	<atom:link rel='hub' href='http://chozhiyath.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Turn Skype into your own Campfire desktop client</title>
		<link>http://chozhiyath.wordpress.com/2010/11/22/campfire-client/</link>
		<comments>http://chozhiyath.wordpress.com/2010/11/22/campfire-client/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 07:55:40 +0000</pubDate>
		<dc:creator>chozhiyath</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[campfire]]></category>
		<category><![CDATA[campfirenow]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pfire]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[skype4py]]></category>

		<guid isPermaLink="false">http://chozhiyath.wordpress.com/?p=47</guid>
		<description><![CDATA[Tired of searching a desktop client for Campfire? Especially for Linux? Well, here is a simple solution. Just get pifire and skype4py packages installed on your Linux (mine is Ubuntu 10.10) and with a little python topping from your part, you are ready to go! The campfire messages will be displayed on your Skype default contact [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=47&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="attachment_54" class="wp-caption alignright" style="width: 170px"><a href="http://chozhiyath.files.wordpress.com/2010/11/idea-b.png"><img class="size-full wp-image-54 " title="!dea" src="http://chozhiyath.files.wordpress.com/2010/11/idea-b.png?w=630" alt=""   /></a><p class="wp-caption-text">credits: http://www.clker.com/cliparts/</p></div>
<p>Tired of searching a desktop client for <strong><a title="Campfirenow" href="http://campfirenow.com/" target="_blank">Campfire</a></strong>? Especially for Linux? Well, here is a simple solution. Just get <strong><a title="Pyfire" href="https://github.com/mariano/pyfire" target="_blank">pifire</a></strong> and <strong><a title="Skype4Py" href="http://skype4py.sourceforge.net/" target="_blank">skype4py</a></strong> packages installed on your Linux (mine is Ubuntu 10.10) and with a little python topping from your part, you are ready to go!</p>
<p>The campfire messages will be displayed on your Skype default contact<strong> &#8216;echo123&#8242;</strong>. You can post a reply back to campfire just by replying to the <strong>&#8216;echo123&#8242;</strong> on Skype but by adding a handle &#8216;@camp&#8217; in the message! Cool eh?</p>
<pre>import pyfire
import Skype4Py

skype = Skype4Py.Skype()
skype.Attach()

def incoming(message):
 msg = ""
 user = ""
 if message.user:
 user = message.user.name

 if message.is_joining():
 msg = "\r\n%s ENTERS THE ROOM" % user
 elif message.is_leaving():
 msg = "\r\n%s LEFT THE ROOM" % user
 elif message.is_tweet():
 msg = "\r\n%s %s TWEETED '%s' - %s" % (user, message.tweet["user"], message.tweet["tweet"], message.tweet["url"])
 elif message.is_text():
 msg = "\r\n%s says: %s" % (user, message.body)
 elif message.is_upload():
 msg = "\r\n%s UPLOADED FILE %s: %s" % (user, message.upload["name"],
 message.upload["url"])
 elif message.is_topic_change():
 msg = "\r\n%s CHANGED TOPIC TO '%s'" % (user, message.body)

 skype.CreateChatWith('echo123').SendMessage(msg)

def error(e):
 print("Stream STOPPED due to ERROR: %s" % e)
 print("Press ENTER to continue")

campfire = pyfire.Campfire("yourdomain.campfirenow.com", "campfireusername", "campfirepass", ssl=True)
room = campfire.get_room_by_name("CampfireRoomName")
room.join()

stream = room.get_stream(error_callback=error)
stream.attach(incoming).start()

def monitor_message(msg, stat):
 message = msg.Body
 if "@camp" in message and stat == "SENT":
 message = message.replace("@camp ", "")
 print "Sending to campfire: %s" % message
 room.speak(message)

skype.OnMessageStatus = monitor_message

raw_input("Waiting for messages (Press ENTER to finish)\n")
stream.stop().join()
room.leave()</pre>
<p>Happy SkypeFire <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chozhiyath.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chozhiyath.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chozhiyath.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chozhiyath.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chozhiyath.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chozhiyath.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chozhiyath.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chozhiyath.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chozhiyath.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chozhiyath.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chozhiyath.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chozhiyath.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chozhiyath.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chozhiyath.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=47&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chozhiyath.wordpress.com/2010/11/22/campfire-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80461554078b5531fb4a570d75290093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chozhiyath</media:title>
		</media:content>

		<media:content url="http://chozhiyath.files.wordpress.com/2010/11/idea-b.png" medium="image">
			<media:title type="html">!dea</media:title>
		</media:content>
	</item>
		<item>
		<title>Zend FW + ACL + Doctrine + Minify easy integration</title>
		<link>http://chozhiyath.wordpress.com/2010/11/16/zend-fw-acl-doctrine-minify%c2%a0easy%c2%a0integration/</link>
		<comments>http://chozhiyath.wordpress.com/2010/11/16/zend-fw-acl-doctrine-minify%c2%a0easy%c2%a0integration/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 07:45:19 +0000</pubDate>
		<dc:creator>chozhiyath</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ACL]]></category>
		<category><![CDATA[Doctrine]]></category>
		<category><![CDATA[Minify]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://chozhiyath.wordpress.com/?p=30</guid>
		<description><![CDATA[The story goes like this&#8230; Suddenly, I had to work on a zend based project with some ORM and Minify toppings and I was looking for some quick and easy start-up in the Internet which finally lead me to do a packing Myself! Here are the demo-able features that Ive used in this starter kit. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=30&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The story goes like this&#8230; Suddenly, I had to work on a zend based project with some ORM and Minify toppings and I was looking for some quick and easy start-up in the Internet which finally lead me to do a packing Myself! Here are the demo-able features that Ive used in this starter kit.</p>
<ul>
<li><a href="http://framework.zend.com/">Zend</a></li>
</ul>
<blockquote>
<ul>
<li> App config via. XML</li>
<li> Routes config via XML</li>
<li> Layouts</li>
<li> Logger</li>
<li>Multi Page Forms (Wizard Forms)</li>
<li>ACL</li>
</ul>
</blockquote>
<ul>
<li>ORM &#8211; <a href="http://www.doctrine-project.org/">Doctrine</a></li>
<li>Minify &#8211; <a href="http://code.google.com/p/minify/">PHPMin</a></li>
</ul>
<p>The project is shared on <a href="https://github.com/">Github</a> and can be downloaded <a href="https://github.com/chozhiyath/Zend-Framework---a-starter-kit">here</a>.</p>
<p><span style="color:#808080;">&#8230;cheers</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chozhiyath.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chozhiyath.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chozhiyath.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chozhiyath.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chozhiyath.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chozhiyath.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chozhiyath.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chozhiyath.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chozhiyath.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chozhiyath.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chozhiyath.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chozhiyath.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chozhiyath.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chozhiyath.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=30&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chozhiyath.wordpress.com/2010/11/16/zend-fw-acl-doctrine-minify%c2%a0easy%c2%a0integration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80461554078b5531fb4a570d75290093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chozhiyath</media:title>
		</media:content>
	</item>
		<item>
		<title>Mozilla Thunderbird Minimize to Tray</title>
		<link>http://chozhiyath.wordpress.com/2010/03/22/mozilla-thunderbird-minimize-to-tray/</link>
		<comments>http://chozhiyath.wordpress.com/2010/03/22/mozilla-thunderbird-minimize-to-tray/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 07:28:19 +0000</pubDate>
		<dc:creator>chozhiyath</dc:creator>
				<category><![CDATA[What I Say]]></category>

		<guid isPermaLink="false">http://chozhiyath.wordpress.com/?p=25</guid>
		<description><![CDATA[Tired of searching a Thunderbird minimizer? Don&#8217;t worry! Just go to https://addons.mozilla.org/en-US/thunderbird/addon/2110 download the xpi and unzip (xpi is actually a zipped folder) to a temp location, edit the install.rdf, find &#60;em:targetApplication&#62; for Thunderbird, set &#60;em:maxVersion&#62;x.x.x&#60;/em:maxVersion&#62; to the desired one. Then again zip the entire folder contents, rename the zip to &#8220;.xpi&#8221;. Hurray! your are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=25&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Tired of searching a Thunderbird minimizer? Don&#8217;t worry! Just go to https://addons.mozilla.org/en-US/thunderbird/addon/2110 download the xpi and unzip (xpi is actually a zipped folder) to a temp location, edit the install.rdf, find <span style="color:#333399;"><strong><code>&lt;em:targetApplication&gt;</code></strong></span> for Thunderbird, set <span style="color:#333399;"><strong><code>&lt;em:maxVersion&gt;x.x.x&lt;/em:maxVersion&gt;</code></strong></span> to the desired one. Then again zip the entire folder contents, rename the zip to &#8220;.xpi&#8221;. Hurray! your are done! Just install this to your Thunderbird.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chozhiyath.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chozhiyath.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chozhiyath.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chozhiyath.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chozhiyath.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chozhiyath.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chozhiyath.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chozhiyath.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chozhiyath.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chozhiyath.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chozhiyath.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chozhiyath.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chozhiyath.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chozhiyath.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=25&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chozhiyath.wordpress.com/2010/03/22/mozilla-thunderbird-minimize-to-tray/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80461554078b5531fb4a570d75290093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chozhiyath</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Maps &#8211; making your map accessible to api without api key</title>
		<link>http://chozhiyath.wordpress.com/2010/02/03/google-maps-making-your-map-accessible-to-api-without-api-key/</link>
		<comments>http://chozhiyath.wordpress.com/2010/02/03/google-maps-making-your-map-accessible-to-api-without-api-key/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 07:34:01 +0000</pubDate>
		<dc:creator>chozhiyath</dc:creator>
				<category><![CDATA[What I Say]]></category>

		<guid isPermaLink="false">http://chozhiyath.wordpress.com/?p=18</guid>
		<description><![CDATA[Making Google map API visible<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=18&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Days back I was playing around with Google&#8217;s maps and I found it quite frustrating that the maps I created with <a title="Google Maps UI" href="http://maps.google.com/maps/mm" target="_blank">http://maps.google.com/maps/mm</a> is not accessible by APIs unless I authenticate by signing in to my Google account. I was getting a &#8216;map not api visible&#8217; error. For those who are having similar situation, here is the solution. Use any api (java, php, python or even javascript) to set your map&#8217;s  &#8216;api_visible&#8217; property to true!</p>
<p><code>&lt;script&gt;<br />
function login(){<br />
token = google.accounts.user.login('http://maps.google.com/maps/feeds');<br />
if(token) updateMap();<br />
}</code></p>
<p><code>function updateMap() {<br />
//mapUrl is the url to your map - http://maps.google.com/maps/feeds/maps/userID/full/mapID<br />
service.getMapEntry(mapUrl, function(entryRoot) {<br />
var entry = entryRoot.entry;<br />
entry.addCustomProperty({name:'api_visible', value:'1'});<br />
entry.updateEntry(<br />
function(ent){alert('Updated!');},<br />
function(e){alert('Upadte err...' + e);});},<br />
function(e){alert("Err..." + e);}<br />
);<br />
}<br />
&lt;/script&gt;<br />
&lt;input onclick="login();" type="button" value="Authenticate!" /&gt;<br />
&lt;input onclick="updateMap();" type="button" value="Update!" /&gt;</code></p>
<p>Happy mapping!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chozhiyath.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chozhiyath.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chozhiyath.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chozhiyath.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chozhiyath.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chozhiyath.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chozhiyath.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chozhiyath.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chozhiyath.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chozhiyath.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chozhiyath.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chozhiyath.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chozhiyath.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chozhiyath.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=18&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chozhiyath.wordpress.com/2010/02/03/google-maps-making-your-map-accessible-to-api-without-api-key/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80461554078b5531fb4a570d75290093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chozhiyath</media:title>
		</media:content>
	</item>
		<item>
		<title>Regular expression for stripping off  tags from html</title>
		<link>http://chozhiyath.wordpress.com/2008/07/22/regular-expression-for-stripping-off-tags-from-html/</link>
		<comments>http://chozhiyath.wordpress.com/2008/07/22/regular-expression-for-stripping-off-tags-from-html/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 09:28:33 +0000</pubDate>
		<dc:creator>chozhiyath</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[RegEx]]></category>
		<category><![CDATA[regular expression]]></category>
		<category><![CDATA[stripping off script tags]]></category>

		<guid isPermaLink="false">http://chozhiyath.wordpress.com/?p=15</guid>
		<description><![CDATA[import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegExp_SandBox { //Pattern to escape final static String SCRIPT_PATTERN = "&#60;\\s*script\\s*([^&#62;]*)\\s*&#62;&#124;&#60;\\s*/\\s*script([^&#62;]*)\\s*&#62;"; //Compile pattern static Pattern scriptPattern = Pattern.compile(SCRIPT_PATTERN, Pattern.CASE_INSENSITIVE); /** * @param args */ public static void main(String[] args) { //Source string String css = "Hello world &#60;p&#62;Not replaced&#60;/p&#62; &#60;script id='youfool' name=\"youfool\"&#62;Test this&#60;/script&#62; &#60;strong&#62;this is strong&#60;/strong&#62;"; System.out.println( css + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=15&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code>import java.util.regex.Matcher;<br />
import java.util.regex.Pattern;</p>
<p>public class RegExp_SandBox {</p>
<p>//Pattern to escape<br />
final static String SCRIPT_PATTERN = "&lt;\\s*script\\s*([^&gt;]*)\\s*&gt;|&lt;\\s*/\\s*script([^&gt;]*)\\s*&gt;";<br />
//Compile pattern<br />
static Pattern scriptPattern = Pattern.compile(SCRIPT_PATTERN, Pattern.CASE_INSENSITIVE);</p>
<p>/**<br />
* @param args<br />
*/<br />
public static void main(String[] args) {</p>
<p>//Source string<br />
String css = "Hello world &lt;p&gt;Not replaced&lt;/p&gt; &lt;script id='youfool' name=\"youfool\"&gt;Test this&lt;/script&gt; &lt;strong&gt;this is strong&lt;/strong&gt;";<br />
System.out.println( css + "\n---------------------------------------------" );</p>
<p>//replace all matches<br />
css = matchAndReplace(css, scriptPattern, "*");<br />
System.out.println( css + "\n---------------------------------------------" );<br />
}</p>
<p>public static String matchAndReplace(CharSequence message, final Pattern pattern, final String replace)<br />
{<br />
Matcher matcher = pattern.matcher(message);<br />
StringBuffer buffer = new StringBuffer();<br />
while (matcher.find())<br />
{<br />
matcher.appendReplacement(buffer, replace);<br />
}<br />
matcher.appendTail(buffer);<br />
return buffer.toString();<br />
}<br />
}<br />
</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chozhiyath.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chozhiyath.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chozhiyath.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chozhiyath.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chozhiyath.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chozhiyath.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chozhiyath.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chozhiyath.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chozhiyath.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chozhiyath.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chozhiyath.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chozhiyath.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chozhiyath.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chozhiyath.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chozhiyath.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chozhiyath.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=15&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chozhiyath.wordpress.com/2008/07/22/regular-expression-for-stripping-off-tags-from-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80461554078b5531fb4a570d75290093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chozhiyath</media:title>
		</media:content>
	</item>
		<item>
		<title>Disabling multicast in multi-homed linux servers</title>
		<link>http://chozhiyath.wordpress.com/2007/05/09/disabling-multicast-in-multi-homed-linux-servers/</link>
		<comments>http://chozhiyath.wordpress.com/2007/05/09/disabling-multicast-in-multi-homed-linux-servers/#comments</comments>
		<pubDate>Wed, 09 May 2007 05:25:10 +0000</pubDate>
		<dc:creator>chozhiyath</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://chozhiyath.wordpress.com/2007/05/09/disabling-multicast-in-multi-homed-linux-servers/</guid>
		<description><![CDATA[Sometimes you will have multiple ip bound to your server&#8217;s network adapters. And, by default multicast will be enabled on all the interfaces except for the loop back. This will create troubles while handling applications that are depending multicasting for their working. We need to enable multicasting on only one network interface. I put this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=8&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes you will have multiple ip bound to your server&#8217;s network adapters. And, by default multicast will be enabled on all the interfaces except for the loop back. This will create troubles while handling applications that are depending multicasting for their working. We need to enable multicasting on only one network interface. I put this in my blog because I found out the solution for clustering problems after a while of research <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong> Steps you need to follow to disable multicast on multihomed servers : </strong><br />
<code><br />
[root@web bin]# ifconfig<br />
eth0      Link encap:Ethernet  HWaddr 00:30:48:5B:54:9A<br />
inet addr:10.5.108.84  Bcast:10.5.108.127  Mask:255.255.255.192<br />
inet6 addr: fe80::230:48ff:fe5b:549a/64 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
RX packets:32349735 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:27410647 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:1607667954 (1.4 GiB)  TX bytes:4270795211 (3.9 GiB)<br />
Interrupt:17</code><br />
<code><br />
eth1      Link encap:Ethernet  HWaddr 00:30:48:5B:54:9B<br />
inet addr:75.126.68.198  Bcast:xx.xx.xx.xx  Mask:255.255.255.240<br />
inet6 addr: fe80::230:48ff:fe5b:549b/64 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
RX packets:442117208 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:471331869 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:1831922661 (1.7 GiB)  TX bytes:3006291822 (2.7 GiB)<br />
Interrupt:18<br />
</code><code><br />
eth1:0    Link encap:Ethernet  HWaddr 00:30:48:5B:54:9B<br />
inet addr:xx.xx.xx.xx  Bcast:xx.xx.xx.xx  Mask:255.255.255.0<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
Interrupt:18<br />
</code><code><br />
eth1:1    Link encap:Ethernet  HWaddr 00:30:48:5B:54:9B<br />
inet addr:75.126.48.157  Bcast:75.126.48.255  Mask:255.255.255.0<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
Interrupt:18<br />
</code><code><br />
eth1:2    Link encap:Ethernet  HWaddr 00:30:48:5B:54:9B<br />
inet addr:xx.xx.xx.xx  Bcast:xx.xx.xx.xx  Mask:255.255.255.0<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
Interrupt:18<br />
</code><code><br />
eth1:3    Link encap:Ethernet  HWaddr 00:30:48:5B:54:9B<br />
inet addr:xx.xx.xx.xx  Bcast:xx.xx.xx.xx  Mask:255.255.255.0<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
Interrupt:18<br />
</code><code><br />
lo        Link encap:Local Loopback<br />
inet addr:127.0.0.1  Mask:255.0.0.0<br />
inet6 addr: ::1/128 Scope:Host<br />
UP LOOPBACK RUNNING  MTU:16436  Metric:1<br />
RX packets:2994064 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:2994064 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:0<br />
RX bytes:2632223784 (2.4 GiB)  TX bytes:2632223784 (2.4 GiB)<br />
</code><br />
You can disable multicast on multiple interfaces by the following command :<br />
<code><br />
[root@web bin]# <span class="B">ifconfig eth1 -multicast</span><br />
</code><br />
Then  the ifconfig will look like :</p>
<p>http://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html</p>
<p>http://www.penguin-soft.com/penguin/man/8/ifconfig.html</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chozhiyath.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chozhiyath.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chozhiyath.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chozhiyath.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chozhiyath.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chozhiyath.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chozhiyath.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chozhiyath.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chozhiyath.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chozhiyath.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chozhiyath.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chozhiyath.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chozhiyath.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chozhiyath.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chozhiyath.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chozhiyath.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=8&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chozhiyath.wordpress.com/2007/05/09/disabling-multicast-in-multi-homed-linux-servers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80461554078b5531fb4a570d75290093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chozhiyath</media:title>
		</media:content>
	</item>
		<item>
		<title>Hi all,</title>
		<link>http://chozhiyath.wordpress.com/2007/04/27/hello-world/</link>
		<comments>http://chozhiyath.wordpress.com/2007/04/27/hello-world/#comments</comments>
		<pubDate>Fri, 27 Apr 2007 12:06:50 +0000</pubDate>
		<dc:creator>chozhiyath</dc:creator>
				<category><![CDATA[What I Say]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to http://chozhiyath.wordpress.com/ For a long time it was in my mind to start blogging. Many are taking blogging seriously while a few find it one among their hobbies. Either way, blogs are really great for &#8220;con·vey·ance&#8220;.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=1&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">http://chozhiyath.wordpress.com/</a> For a long time it was in my mind to start blogging. Many are taking blogging seriously while a few find it one among their hobbies. Either way, blogs are really great for &#8220;<span class="me"><strong>con·vey·ance</strong>&#8220;</span>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chozhiyath.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chozhiyath.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chozhiyath.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chozhiyath.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chozhiyath.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chozhiyath.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chozhiyath.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chozhiyath.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chozhiyath.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chozhiyath.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chozhiyath.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chozhiyath.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chozhiyath.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chozhiyath.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chozhiyath.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chozhiyath.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chozhiyath.wordpress.com&amp;blog=1033294&amp;post=1&amp;subd=chozhiyath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chozhiyath.wordpress.com/2007/04/27/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80461554078b5531fb4a570d75290093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chozhiyath</media:title>
		</media:content>
	</item>
	</channel>
</rss>
