<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>necenzurat</title>
	
	<link>http://necenzurat.net</link>
	<description>AntiChrist Superstar Programmer</description>
	<lastBuildDate>Fri, 01 Jul 2011 15:30:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/necenzurat/dev" /><feedburner:info uri="necenzurat/dev" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>What a Terrible Failure</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/1dAFHK8DhtU/what-a-terrible-failure.dev</link>
		<comments>http://necenzurat.net/2011/06/28/what-a-terrible-failure.dev#comments</comments>
		<pubDate>Tue, 28 Jun 2011 06:18:52 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[yada yada]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[wtf]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=154</guid>
		<description><![CDATA[I can&#8217;t stop laughing: android log.wtf method rocks :&#8217;)]]></description>
				<content:encoded><![CDATA[<p>I can&#8217;t stop laughing: <a href="http://developer.android.com/reference/android/util/Log.html#wtf">android log.wtf method</a> rocks :&#8217;)</p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/1dAFHK8DhtU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2011/06/28/what-a-terrible-failure.dev/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2011/06/28/what-a-terrible-failure.dev</feedburner:origLink></item>
		<item>
		<title>Exploring WordPress SVN</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/jYiWYlERgYw/exploring-wordpress-svn.dev</link>
		<comments>http://necenzurat.net/2011/05/18/exploring-wordpress-svn.dev#comments</comments>
		<pubDate>Wed, 18 May 2011 04:15:31 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=149</guid>
		<description><![CDATA[When i don&#8217;t sleep i do something constructive, more ore less, last time i learned the basics for GIT, now i did some exploring. Exploring WordPress SVN server which is kinda cool, and for all code freaks out there, the links below are ALL the links for *.svn.wordpress.org Core &#8211; core.svn.wordpress.org Plugins &#8211; plugins.svn.wordpress.org Themes [...]]]></description>
				<content:encoded><![CDATA[<p>When i don&#8217;t sleep i do something constructive, more ore less, last time i learned the basics for GIT, now i did some exploring.<br />
Exploring WordPress SVN server which is kinda cool, and for all code freaks out there, the links below are ALL the links for *.svn.wordpress.org </p>
<p>Core &#8211; <a href="http://core.svn.wordpress.org">core.svn.wordpress.org</a><br />
Plugins &#8211; <a href="http://plugins.svn.wordpress.org">plugins.svn.wordpress.org </a><br />
Themes &#8211; <a href="http://themes.svn.wordpress.org">themes.svn.wordpress.org</a><br />
BBpress &#8211; <a href="http://bbpress.svn.wordpress.org">bbpress.svn.wordpress.org</a><br />
Unit Test &#8211; <a href="http://unit-test.svn.wordpress.org">unit-test.svn.wordpress.org</a><br />
Unit Tests &#8211; <a href="http://unit-tests.svn.wordpress.org">unit-tests.svn.wordpress.org</a><br />
Open After the Deadline &#8211; <a href="http://openatd.svn.wordpress.org">openatd.svn.wordpress.org</a><br />
Support Press &#8211; <a href="http://supportpress.svn.wordpress.org">supportpress.svn.wordpress.org</a> (i have no ideea what this is)<br />
Code &#8211; <a href="http://code.svn.wordpress.org">code.svn.wordpress.org</a> (check out this one <a href="http://code.svn.wordpress.org/wordpresscom-video-server/">http://code.svn.wordpress.org/wordpresscom-video-server/</a> )<br />
Google Sumer of Code &#8211; <a href="http://gsoc.svn.wordpress.org/">gsoc.svn.wordpress.org</a><br />
<strong>Source code for the mobile wordpress software:</strong></p>
<p>Android &#8211; <a href="http://android.svn.wordpress.org">android.svn.wordpress.org</a><br />
iPhone &#8211; <a href="http://iphone.svn.wordpress.org">iphone.svn.wordpress.org</a> (same thing is <a href="http://ios.svn.wordpress.org">ios.svn.wordpress.org</a>)<br />
BlackBerry &#8211; <a href="http://blackberry.svn.wordpress.org">blackberry.svn.wordpress.org</a><br />
Nokia &#8211; <a href="http://nokia.svn.wordpress.org">nokia.svn.wordpress.org</a><br />
Windows Phone &#8211; <a href="http://windowsphone.svn.wordpress.org">windowsphone.svn.wordpress.org</a><br />
WebOS &#8211; <a href="http://webos.svn.wordpress.org/">webos.svn.wordpress.org</a></p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/jYiWYlERgYw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2011/05/18/exploring-wordpress-svn.dev/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2011/05/18/exploring-wordpress-svn.dev</feedburner:origLink></item>
		<item>
		<title>Foreach Time in PHP</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/tAg3JtjnC_Q/foreach-time-in-php.dev</link>
		<comments>http://necenzurat.net/2011/04/24/foreach-time-in-php.dev#comments</comments>
		<pubDate>Sun, 24 Apr 2011 00:28:45 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[foreach]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=139</guid>
		<description><![CDATA[The above code will echo all dates from 2000-1-1 to 2001-1-1]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
date_default_timezone_set(&quot;Europe/Bucharest&quot;);
$begin = new DateTime( '2000-1-1' );
$end = new DateTime( '2001-1-1' );

$interval = DateInterval::createFromDateString('1 day');
$period = new DatePeriod($begin, $interval, $end);

foreach ( $period as $dt )
  echo $dt-&gt;format( &quot;Y-m-d\n&quot; ); 
</pre>
<p>The above code will echo all dates from 2000-1-1 to 2001-1-1</p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/tAg3JtjnC_Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2011/04/24/foreach-time-in-php.dev/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2011/04/24/foreach-time-in-php.dev</feedburner:origLink></item>
		<item>
		<title>Be sexy, DO NOT SCALE!</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/88W3h6DSW78/be-sexy-do-not-scale.dev</link>
		<comments>http://necenzurat.net/2011/04/21/be-sexy-do-not-scale.dev#comments</comments>
		<pubDate>Thu, 21 Apr 2011 11:05:20 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[video]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[not scale]]></category>
		<category><![CDATA[sexy]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=136</guid>
		<description><![CDATA[If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get Flash Player from Adobe.]]></description>
				<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" style="width:579px;height:400px" data="http://www.youtube.com/v/nPG4sK_glls&amp;hl=en&amp;fs=1"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="movie" value="http://www.youtube.com/v/nPG4sK_glls&amp;hl=en&amp;fs=1" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash Player</a> from Adobe.</object><br/>
		<!-- Valid XHTML flash object delivered by XHTML Video Embed. Get it at: http://saltwaterc.net/xhtml-video-embed -->
		</p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/88W3h6DSW78" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2011/04/21/be-sexy-do-not-scale.dev/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2011/04/21/be-sexy-do-not-scale.dev</feedburner:origLink></item>
		<item>
		<title>Vaidate mail without confirmation link</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/rgBeJt0v47Q/vaidate-mail-without-confirmation-link.dev</link>
		<comments>http://necenzurat.net/2011/04/10/vaidate-mail-without-confirmation-link.dev#comments</comments>
		<pubDate>Sun, 10 Apr 2011 03:00:03 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[validate]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=128</guid>
		<description><![CDATA[The big picture: validate the mail with regex, then fetch the MX records for the domain, if the mx records exists the mail is somewhat valid. Enjoy!]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
function checkEmail($email) {
   // Regex for checking email format
   $regexp = &quot;^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$&quot;;
   $valid = 0;
	   // Validate the email format
	   if (eregi($regexp, $email)) {
	   	//split email address if its valid so we can check domain
	        list($username,$tld) = split(&quot;@&quot;,$email);
	        // Validate the domain
	        if (getmxrr($tld,$mxrecords))
        	     $valid = 1;
		} else {
	        $valid = 0;
 	   } 
           return $valid;
}
</pre>
<p>The big picture: validate the mail with regex, then fetch the MX records for the domain, if the mx records exists the mail is somewhat valid.</p>
<p>Enjoy!</p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/rgBeJt0v47Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2011/04/10/vaidate-mail-without-confirmation-link.dev/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2011/04/10/vaidate-mail-without-confirmation-link.dev</feedburner:origLink></item>
		<item>
		<title>Behind the Splashscreen</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/fMsIFmfWZgM/behind-the-splashscreen.dev</link>
		<comments>http://necenzurat.net/2011/03/28/behind-the-splashscreen.dev#comments</comments>
		<pubDate>Mon, 28 Mar 2011 03:05:28 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[video]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Splashscreen]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=125</guid>
		<description><![CDATA[If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get Flash Player from Adobe. Quote: C&#8217;mon it is not practical to rewrite Photoshop.]]></description>
				<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" style="width:579px;height:400px" data="http://www.youtube.com/v/yUQsPwjTsqQ&amp;hl=en&amp;fs=1"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="movie" value="http://www.youtube.com/v/yUQsPwjTsqQ&amp;hl=en&amp;fs=1" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash Player</a> from Adobe.</object><br/>
		<!-- Valid XHTML flash object delivered by XHTML Video Embed. Get it at: http://saltwaterc.net/xhtml-video-embed -->
		<br />
<em>Quote: C&#8217;mon it is not practical to rewrite Photoshop.</em></p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/fMsIFmfWZgM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2011/03/28/behind-the-splashscreen.dev/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2011/03/28/behind-the-splashscreen.dev</feedburner:origLink></item>
		<item>
		<title>Foursquare Maps on Chrome Web Store</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/YDVhOC2jkXM/foursquare-maps-on-google-webstore.dev</link>
		<comments>http://necenzurat.net/2011/01/23/foursquare-maps-on-google-webstore.dev#comments</comments>
		<pubDate>Sun, 23 Jan 2011 01:17:01 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[yada yada]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Foursquare]]></category>
		<category><![CDATA[google maps]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=108</guid>
		<description><![CDATA[I love Foursquare so a wile ago i did a mashup with Foursquare and Google Maps, here is the link: Enjoy. If you have bugs to report please do it in the comments.]]></description>
				<content:encoded><![CDATA[<p>I love Foursquare so a wile ago i did a mashup with Foursquare and Google Maps, here is the link:</p>
<p><div id="attachment_110" class="wp-caption aligncenter" style="width: 138px"><a href="https://chrome.google.com/webstore/detail/iapagnfaodiddddbbdjkkadbndimimkb"><img src="http://necenzurat.net/dump/2011/01/128.png" alt="" title="Foursquare Maps" width="128" height="128" class="size-full wp-image-110" /></a><p class="wp-caption-text">Click on the image to go to Chrome Web Store</p></div><br />
Enjoy.</p>
<p>If you have bugs to report please do it in the comments.</p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/YDVhOC2jkXM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2011/01/23/foursquare-maps-on-google-webstore.dev/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2011/01/23/foursquare-maps-on-google-webstore.dev</feedburner:origLink></item>
		<item>
		<title>Comparing two strings in PHP</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/kZm0CK7f6Sw/comparing-two-strings-in-php.dev</link>
		<comments>http://necenzurat.net/2011/01/21/comparing-two-strings-in-php.dev#comments</comments>
		<pubDate>Fri, 21 Jan 2011 00:58:06 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[compare strings]]></category>
		<category><![CDATA[Foursquare]]></category>
		<category><![CDATA[similar_text]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=105</guid>
		<description><![CDATA[Well it took me a bit to find out how to do that but here it is: I am doing a all check-in client for Foursquare and Gowalla and this is problematic: first get all venues from Foursquare (obviously more populated than Gowalla) and list them, then get the name from the selected one and [...]]]></description>
				<content:encoded><![CDATA[<p>Well it took me a bit to find out how to do that but here it is:</p>
<p>I am doing a all check-in client for Foursquare and Gowalla and this is problematic:<br />
first get all venues from Foursquare (obviously more populated than Gowalla) and list them, then get the name from the selected one and compare it with the Gowalla names in the array.<br />
And the rest is history.</p>
<p>The hard part is comparing 2 strings but i found a <strong>function</strong> that can do that, well found 2: </p>
<pre class="brush: php; title: ; notranslate">
similar_text(&quot;This is a text&quot;, &quot;A text this is&quot;, $percent); // yoda stile :')
echo $percent; // 42.8571428571
</pre>
<p>This is quite good because it results are ok for 2-3 word names comparison.</p>
<p>Else there is the Levenshein argorithm </p>
<pre class="brush: php; title: ; notranslate">
$lev = levenshtein(&quot;This is a text&quot;, &quot;A text this is&quot;);
echo $lev; // 14
</pre>
<p>The result is quite disappointing for me but maybe someone else needs it.</p>
<p>PS: This <a href="http://www.phpclasses.org/package/6220-PHP-Compares-strings-to-determine-similarity-level.html">class</a> may be useful some day or for some one.</p>
<p>And yes, i am remaking the Foursquare Mobile Client aka <a href="http://necenzurat.net/2010/05/07/foursquare-check-in-via-google-latitude.dev">4sqr</a> </p>
<p>By the way, anyone got a better idea for comparing 2 strings?</p>
<p>Back to coding now.</p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/kZm0CK7f6Sw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2011/01/21/comparing-two-strings-in-php.dev/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2011/01/21/comparing-two-strings-in-php.dev</feedburner:origLink></item>
		<item>
		<title>Designers vs Developers</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/tuv3lidb1eg/designers-vs-developers.dev</link>
		<comments>http://necenzurat.net/2010/12/22/designers-vs-developers.dev#comments</comments>
		<pubDate>Wed, 22 Dec 2010 13:40:03 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[yada yada]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=95</guid>
		<description><![CDATA[via]]></description>
				<content:encoded><![CDATA[<p><img src="http://necenzurat.net/dump/2010/12/web-designers-vs-developers.png" alt="" title="designers vs developers" width="500" height="778" class="aligncenter size-full wp-image-96" /></p>
<p><a href="http://www.vostok.es/blog/">via</a></p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/tuv3lidb1eg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2010/12/22/designers-vs-developers.dev/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2010/12/22/designers-vs-developers.dev</feedburner:origLink></item>
		<item>
		<title>Give A Beer</title>
		<link>http://feedproxy.google.com/~r/necenzurat/dev/~3/Npd-uHYu1ZU/giveabeer.dev</link>
		<comments>http://necenzurat.net/2010/12/07/giveabeer.dev#comments</comments>
		<pubDate>Tue, 07 Dec 2010 01:27:37 +0000</pubDate>
		<dc:creator>necenzurat</dc:creator>
				<category><![CDATA[yada yada]]></category>
		<category><![CDATA[beer]]></category>

		<guid isPermaLink="false">http://necenzurat.net/?p=90</guid>
		<description><![CDATA[Hello folks, just finished v2 of Give A Beer is kind of rough but will fix that in v3 hopefully. oh please give a beer to me cheers!]]></description>
				<content:encoded><![CDATA[<p>Hello folks, just finished v2 of <a href="http://giveabeer.com">Give A Beer</a> is kind of rough but will fix that in v3 hopefully.</p>
<p>oh please <a href="http://giveabeer.com/necenzurat">give a beer to me</a></p>
<p>cheers!</p>
<img src="http://feeds.feedburner.com/~r/necenzurat/dev/~4/Npd-uHYu1ZU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://necenzurat.net/2010/12/07/giveabeer.dev/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://necenzurat.net/2010/12/07/giveabeer.dev</feedburner:origLink></item>
	</channel>
</rss>
