<?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/"
	>

<channel>
	<title>Suhas Tech</title>
	<atom:link href="http://suhastech.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://suhastech.com</link>
	<description>I has tech!</description>
	<lastBuildDate>Sun, 18 Dec 2011 05:48:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Get FTP server running on Ubuntu, quick and easy [vsftpd]</title>
		<link>http://suhastech.com/get-ftp-server-running-on-ubuntu-quick-and-easy-vsftpd/</link>
		<comments>http://suhastech.com/get-ftp-server-running-on-ubuntu-quick-and-easy-vsftpd/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 13:59:57 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=2002</guid>
		<description><![CDATA[If you are new to linux this might be a little difficult. Once you have some basics nailed, its super easy. Here&#8217;s how to get it working without worrying about usergroups etc etc. I just wanted to get it working with my WordPress setup (Apache). First, install vsftpd sudo apt-get install vsftpd Configure your installation. [...]]]></description>
			<content:encoded><![CDATA[<p>If you are new to linux this might be a little difficult. Once you have some basics nailed, its super easy. Here&#8217;s how to get it working without worrying about usergroups etc etc. I just wanted to get it working with my WordPress setup (Apache).</p>
<p>First, install vsftpd</p>
<p><code>sudo apt-get install vsftpd</code></p>
<p>Configure your installation.</p>
<p><code>sudo nano /etc/vsftpd.conf</code><br />
or<br />
<code>sudo vi /etc/vsftpd.conf</code></p>
<p>You need to have these to uncommented (Delete the initial &#8220;#&#8221;)<br />
<code>local_enable=YES<br />
write_enable=YES</code></p>
<p>Setup password for your ubuntu user name<br />
<code>sudo passwd ubuntu</code></p>
<p>Give the permissions.<br />
<code>chown -R ubuntu /var/www/</code><br />
Obviously, you can change the path with your requirement.</p>
<p>Restart the FTP service<br />
<code>sudo /etc/init.d/vsftpd restart</code></p>
<p>This enables the Uncomplicated Firewall built-in to Ubuntu on port 21. Don&#8217;t know about others.<br />
<code>sudo ufw allow 21</code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>That&#8217;s it. Login to your FTP with &#8220;ubuntu&#8221; username and your password.</p>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/get-ftp-server-running-on-ubuntu-quick-and-easy-vsftpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable ICMP ping requests on EC2 instances. No more &#8220;Request Timed Out&#8221;</title>
		<link>http://suhastech.com/how-to-enable-icmp-ping-requests-on-ec2-instances-no-more-request-timed-out/</link>
		<comments>http://suhastech.com/how-to-enable-icmp-ping-requests-on-ec2-instances-no-more-request-timed-out/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 09:22:35 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[ec2]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=1981</guid>
		<description><![CDATA[I, recently, switched to the EC2 virtual instance. I wanted to check if the website is online. As usual I used the &#8220;ping&#8221; command. I thought my server was down (kinda freaked out) but the website on the browser was working fine. All I needed to do was to enable the ICMP requests: 1) Log [...]]]></description>
			<content:encoded><![CDATA[<p>I, recently, switched to the EC2 virtual instance. I wanted to check if the website is online. As usual I used the &#8220;ping&#8221; command. I thought my server was down (kinda freaked out) but the website on the browser was working fine.</p>
<p>All I needed to do was to enable the ICMP requests:</p>
<p>1) Log into AWS account.<br />
2) Click on &#8220;Security Groups&#8221;. Choose the required security group.<br />
3) Click on the &#8220;Inbound&#8221; tab.</p>
<p>Create a new rule: Custom ICMP rule<br />
Type: Echo request<br />
Source: 0.0.0.0/0</p>
<p>0.0.0.0 will allow everyone to ping your server. You can specify your own addresses if you want.</p>
<p>That&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/how-to-enable-icmp-ping-requests-on-ec2-instances-no-more-request-timed-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Sourcing @pushmail &#8211; An email app on SMS</title>
		<link>http://suhastech.com/open-source-pushmail-on-sms/</link>
		<comments>http://suhastech.com/open-source-pushmail-on-sms/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 17:59:04 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[z]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=1979</guid>
		<description><![CDATA[Hi all, I&#8217;m open sourcing my txtweb app @pushmail &#8211; An app that&#8217;ll send push email notifications via SMS. I&#8217;m still a noob. This is the first time I&#8217;m open sourcing my project. Hopefully, someone will review my code and provide some constructive criticism. What is @pushmail It is an SMS app on the txtweb.com platform [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>I&#8217;m open sourcing my txtweb app @pushmail &#8211; An app that&#8217;ll send push email notifications via SMS.</p>
<p><a href="http://suhastech.com/how-to-manage-emails-with-sms/#comment-274555152"><img class="aligncenter" src="http://suhastech.com/wp-content/uploads/images/os.png" alt="" width="586" height="139" /></a></p>
<p>I&#8217;m still a noob. This is the first time I&#8217;m open sourcing my project. Hopefully, someone will review my code and provide some constructive criticism.</p>
<p><strong>What is @pushmail</strong></p>
<p>It is an SMS app on the txtweb.com platform with which users can get instant email notifications via SMS. If they choose to, they can read full emails and reply to them. The user just has to setup a simple email forwarder. <a href="http://suhastech.com/mail" target="_blank">http://suhastech.com/mail</a></p>
<p><strong>The &#8220;I just want to get this working&#8221; guide:</strong></p>
<p>I have spent a few extra hours to make sure this can be setup quickly. I try not to just dump the code. So, you can find some comments explaining the mechanism.</p>
<p><a href="https://github.com/suhastech/pushmail" target="_blank">Download the source.</a></p>
<ol>
<li>Fill the common.php files with the constants. The comments will guide you through.</li>
<li>Setup a catch all email daemon and pipe it to the file &#8220;fetch_email_from_pipe.php&#8221;. Make sure it&#8217;s executable (chmod 755).</li>
<li>Install the Zend PHP framework.</li>
<li>Setup a cron that executes &#8220;database_cleanup.php&#8221; regularly. It prunes old emails from the database.</li>
<li>Install the MySQL schema by running install/install.php</li>
<li>Fork and improve the code. <img src='http://suhastech.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ol>
<div>
<p><strong>Why am I open sourcing it?</strong></p>
<ul>
<li>This will hopefully help other developers on the txtweb platform.</li>
<li>Gain a little bit of user trust if they see it&#8217;s quite secure.</li>
<li>Help others implement this in different countries.</li>
<li>Let paranoids setup their own version.</li>
<li>I&#8217;ve been using a lot of open source software. Thought giving something back would be the right thing to do.</li>
<li>A programmer with an empty github account is plain weird. <img src='http://suhastech.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
<li>And Truth be told, I hate maintaining code. My databases are filled with GBs of data! Such a service is an extra burden on my server. My previous host suspended my account. I don&#8217;t think people will actually pay for this service (My target Audience: India :/). There is just no way I can make it self sustaining.</li>
</ul>
<p>I really hope txtweb people notice this and fork the code to maintain their own version of the same.</p>
<p>I have a couple more web apps to be open sourced. So, stay tuned.</p>
</div>
<p><strong>Brief Overview of &#8220;How this works&#8221;</strong> (Just for the curious ones)</p>
<p>Read the txtweb documentation to get the complete picture. <a href="http://www.txtweb.com/tutorials-and-resources">http://www.txtweb.com/tutorials-and-resources</a></p>
<p>In this system, user&#8217;s email username/password, mobile number or other information are not accessible even to the admin.</p>
<p>I have two tables.</p>
<p>Table 1 has two column, one the &#8220;user identifier&#8221; (integer, which is really an auto incremented index) and the other with the &#8220;mobile number hash&#8221; (encrypted form of the mobile number) which is sourced from the txtweb APIs. This is later used to send push email notifications using the txtweb APIs.</p>
<p>When you send &#8220;@pushmail&#8221; (or whatever app handle you have registered) to the txtweb mobile number, the app generates a unique user identifier integer, converts the integer to a unique alpha ID (say xyz) and saves the mobile hash in the above mentioned table. Sends you back a text message to the user with instructions to setup a forwarder to the email address <em>xyz@yourdomain.com</em></p>
<p>I have a daemon setup which catches all emails to <em>yourdomain.com</em>.</p>
<p>As soon as the user forwards an email to <em>xyz@yourdomain.com</em>, it catches the email, looks for the user identifier code, converted back to integer. If a match is found in table 1, the mobile hash is extracted and sends a message &#8220;Reply Z to open this email&#8230; Subject, From Address&#8221;. It saves the email on another table with columns &#8220;auto incremented index&#8221; and &#8220;encrypted email body&#8221;.</p>
<p>It generates a unique ID (auto incremented) for the email and saves the email encrypted with the user identifier integer as the key.</p>
<p>When user replies Z, it goes to another page with GET request, <em>?id=1234&amp;txtweb-mobile=the_mobilehash</em>.</p>
<p>It looks for the table where <em>id=1234</em> (that was generated when you got the email), fetches whatever is in your encrypted email body column). It then fetches the User identifier integer using the mobile hash (the first column). Decrypts (symmetric decryption) the email using the unique identifier interger, this ONLY works if the user identifier code is right, else you will find gibberish text. So, <strong>only the user</strong> can open the email.</p>
<p><strong>The unsolvable problems</strong> (Atleast, for me)</p>
<ol>
<li>If a hacker somehow gets all my database files and wants to open 1 of your emails (There&#8217;s nothing more he can do, trust me), he could try a simple &#8220;for loop&#8221; that tries to decrypt trying all the unique identifier integer (currently 6000). Difficult but still doable with some crunching power. So, make sure you have secured your servers. Still, the hacker has no way of telling what&#8217;s who&#8217;s. Not a big security hole I guess.</li>
<li>The email parsing technique. With literally thousands of RFC rules, different email clients sending in their own standards, I just couldn&#8217;t write a &#8220;one code fits all&#8221; code to parse the emails. Hopefully, someone will improve this.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/open-source-pushmail-on-sms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[WAMP Server] Run PHP in Command line interface</title>
		<link>http://suhastech.com/wamp-server-run-php-in-command-line-interface/</link>
		<comments>http://suhastech.com/wamp-server-run-php-in-command-line-interface/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 08:10:41 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=1971</guid>
		<description><![CDATA[Go to run &#8211;&#62; type &#8216;cmd&#8217; change directory to the PHP folder. You might have a different version. cd C:\wamp\bin\php\php5.3.5 Run your PHP command like &#8220;php -l file&#8221; etc.]]></description>
			<content:encoded><![CDATA[<p>Go to run &#8211;&gt; type &#8216;cmd&#8217;</p>
<p>change directory to the PHP folder. You might have a different version.<br />
cd C:\wamp\bin\php\php5.3.5</p>
<p>Run your PHP command like &#8220;php -l file&#8221; etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/wamp-server-run-php-in-command-line-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Apache2 mod_rewrite not working even after AllowOverride All</title>
		<link>http://suhastech.com/apache2-mod_rewrite-not-working-even-after-allowoverride-all-pretty-permalinks-bitnami-httpd-conf/</link>
		<comments>http://suhastech.com/apache2-mod_rewrite-not-working-even-after-allowoverride-all-pretty-permalinks-bitnami-httpd-conf/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 08:48:07 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=1968</guid>
		<description><![CDATA[I recently moved to an EC2 instance because I needed a little more freedom. Plus, the 1 year free tier looked very attractive. The pretty permalinks on my wordpress installation stopped working. Most Google searches told me to change the AllowOverride None to AllowOverride All. I tried numerous files. Finally, it seems there were 2 occurrences of the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently moved to an EC2 instance because I needed a little more freedom. Plus, the 1 year free tier looked very attractive. <img src='http://suhastech.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The pretty permalinks on my wordpress installation stopped working. Most Google searches told me to change the <em>AllowOverride None</em> to <em>AllowOverride All. </em>I tried numerous files. Finally, it seems there were 2 occurrences of the same  string in the httpd.conf file.</p>
<p>You had to change the one inside this</p>
<pre>&lt;Directory "/opt/bitnami/apache2/htdocs"&gt;
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes MultiViews +FollowSymLinks
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

&lt;/Directory&gt;</pre>
<p>The httpd.conf file is present inside the apache2/conf directory. Some articles say that it is apache2.conf. It depends, I guess.</p>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/apache2-mod_rewrite-not-working-even-after-allowoverride-all-pretty-permalinks-bitnami-httpd-conf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Remove Skype&#8217;s Click to Call thing from Chrome</title>
		<link>http://suhastech.com/how-to-remove-skypes-click-to-call-thing-from-chrome/</link>
		<comments>http://suhastech.com/how-to-remove-skypes-click-to-call-thing-from-chrome/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 05:23:23 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=1963</guid>
		<description><![CDATA[The inefficiency of Skype&#8217;s chrome plugin can be quite annoying at times. There was also no permission prompt to install the Chrome Plugin, that&#8217;s not right. And the Plugin doesn&#8217;t list in the Extension settings. Anyways, You can disable the Plugin by typing &#8220;about:plugins&#8221; in the address bar. There, disable the &#8220;Skype Toolbar&#8221;.]]></description>
			<content:encoded><![CDATA[<p>The inefficiency of Skype&#8217;s chrome plugin can be quite annoying at times.</p>
<p><a href="http://suhastech.com/wp-content/uploads/2011/10/pi.png" rel="thumbnail"><img class="aligncenter size-full wp-image-1964" title="pi" src="http://suhastech.com/wp-content/uploads/2011/10/pi.png" alt="" width="652" height="328" /></a></p>
<p>There was also no permission prompt to install the Chrome Plugin, that&#8217;s not right. And the Plugin doesn&#8217;t list in the Extension settings.</p>
<p>Anyways, You can disable the Plugin by typing &#8220;about:plugins&#8221; in the address bar. There, disable the &#8220;Skype Toolbar&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/how-to-remove-skypes-click-to-call-thing-from-chrome/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Hacked &#8211; sweepstakesandcontestsinfo.com</title>
		<link>http://suhastech.com/wordpress-hacked-sweepstakesandcontestsnow-info-do/</link>
		<comments>http://suhastech.com/wordpress-hacked-sweepstakesandcontestsnow-info-do/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 15:05:59 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=1956</guid>
		<description><![CDATA[Update: It seems a new version of the attack has been made using the .htaccess files. So, this guide might be outdated. &#60;advert&#62;As I&#8217;m a freelancer, I also fix wordpress installations. This will cost about $50. Contact me&#60;/advert&#62; I was recently hacked by this website &#8220;sweepstakesandcontestsinfo.com&#8221; which was adding a little javascript just before &#60;/body&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Update: It seems a new version of the attack has been made using the .htaccess files. So, this guide might be outdated.<br />
&lt;advert&gt;As I&#8217;m a freelancer, I also fix wordpress installations. This will cost about $50. <a href="http://suhastech.com/contact" target="_blank">Contact me</a>&lt;/advert&gt;</p>
<p>I was recently hacked by this website &#8220;sweepstakesandcontestsinfo.com&#8221; which was adding a little javascript just before &lt;/body&gt; tag that was leading the visitors to download a malware filled flash player. I got to know about this when <a href="http://hopeinenomena.net/viewtopic.php?f=76&amp;t=170142" target="_blank">this particular finnish site</a> was discussing about this (Thank god, I check stats).</p>
<p>Anyways, I did a little searching around. Seems that <strong>every single</strong> PHP file of mine was appended with the cheesy base64_encode&#8217;ed code.</p>
<p>My crappy webhost doesn&#8217;t provide SSH Access.  I couldn&#8217;t use my favorite command line. So, had to write some PHP code. Though it&#8217;s not the most efficient script, does the job well.</p>
<p>Ok, Here&#8217;s how you get rid of it.<br />
1) Extract and upload <a href="http://suhastech.com/misc/sweepstakesandcontests-cleanup.zip" target="_blank">this</a> to your root directory.</p>
<p>2) Open one of your PHP file, on the top you&#8217;ll have a code similar to &lt;?php eval(base64_decode(&#8216;shit&#8217;)); ?&gt;, copy and paste it into the &#8216;replace.txt&#8217; file.</p>
<p>3) Open yoursite.com/replace.php. It&#8217;ll take a few minutes. Scroll down, it would&#8217;ve replaced the malicious code.</p>
<p>And oh, you need to have File_SearchReplace PEAR package installed on your host for this script to work.</p>
<p>Also, <a href="http://sucuri.net/new-malware-sweepstakesandcontestsnow-com.html" target="_blank">Sucuri</a> says that these website also do the same crap.</p>
<p>sokoloperkovuskeci.com<br />
sweepstakesandcontestsnow.com<br />
sweepstakesandcontestsinfo.com<br />
sweepstakesandcontestsdo.com</p>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/wordpress-hacked-sweepstakesandcontestsnow-info-do/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A little say cheese moment</title>
		<link>http://suhastech.com/a-little-say-cheese-moment/</link>
		<comments>http://suhastech.com/a-little-say-cheese-moment/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 07:13:43 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[event]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=1237</guid>
		<description><![CDATA[Ok, Ok, I didn&#8217;t really say cheese but anyways, here goes. For http://suhastech.com/mobile/how-to-manage-emails-with-sms/]]></description>
			<content:encoded><![CDATA[<p>Ok, Ok, I didn&#8217;t really say cheese but anyways, here goes.</p>
<p>For <a href="http://suhastech.com/mobile/how-to-manage-emails-with-sms/">http://suhastech.com/mobile/how-to-manage-emails-with-sms/</a></p>
<p><a href="http://suhastech.com/wp-content/uploads/2011/09/DSC_0073.jpg" rel="thumbnail"><img class="aligncenter size-large wp-image-1238" title="DSC_0073" src="http://suhastech.com/wp-content/uploads/2011/09/DSC_0073-1024x685.jpg" alt="" width="640" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/a-little-say-cheese-moment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fetch the new line / paragraph character &#8220;n&#8221; from a GET / POST request</title>
		<link>http://suhastech.com/how-to-fetch-new-line-paragraph-character-n-from-a-get-post-request/</link>
		<comments>http://suhastech.com/how-to-fetch-new-line-paragraph-character-n-from-a-get-post-request/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 07:05:57 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=1226</guid>
		<description><![CDATA[Here&#8217;s a little code that I wrote to correctly fetch the newline character. By URL encoding &#8220;n&#8221; you get %OA which is not decoded back as a C style new line character &#8220;n&#8221;. So, we fetch the query string to manually decode it in the correct mechanism. This is a PHP example, the theory hold [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little code that I wrote to correctly fetch the newline character. By URL encoding &#8220;n&#8221; you get %OA which is not decoded back as a C style new line character &#8220;n&#8221;. So, we fetch the query string to manually decode it in the correct mechanism. This is a PHP example, the theory hold good for other languages as well.</p>
<pre class="brush: php; title: ; notranslate">function get_string_parameters($string) {
$result = array();
if( empty($string) || !is_string($string) ) return $result;
$string = str_replace('&amp;amp;', '&amp;', $string);
$params_array = explode('&amp;', $string);
foreach($params_array as $value) {
$tmp_array = explode('=', $value);
if( count($tmp_array) != 2) continue;
$result[$tmp_array[0]] = $tmp_array[1];
}
return $result;
}

$getstuff = get_string_parameters($_SERVER['QUERY_STRING']);
$paragraphs = explode(&quot;%OA&quot;, $getstuff['YOUR-GET-FIELD']); // edit here
$yourmessage = &quot;&quot;;
foreach ($paragraphs as $paragraph)
{
 $yourmessage = $yourmessage.urldecode($paragraph).&quot;n&quot;;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/how-to-fetch-new-line-paragraph-character-n-from-a-get-post-request/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] iPad / iPhone stuck and going back to DFU mode. Restore error 1600, 1601, 1602, 160x</title>
		<link>http://suhastech.com/solved-ipad-iphone-ipod-stuck-and-going-back-to-dfu-mode-restore-error-1600-1601-1602-160x/</link>
		<comments>http://suhastech.com/solved-ipad-iphone-ipod-stuck-and-going-back-to-dfu-mode-restore-error-1600-1601-1602-160x/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 16:43:03 +0000</pubDate>
		<dc:creator>Suhas</dc:creator>
				<category><![CDATA[ios]]></category>

		<guid isPermaLink="false">http://suhastech.com/?p=944</guid>
		<description><![CDATA[Incoming searches: &#8220;ipad stuck in dfu mode after restore&#8221; &#8220;iphone stuck in dfu mode&#8221; &#8220;itunes restore 1600 error&#8221; &#8220;redsnow stuck at installing bundles&#8221; The power button on my iPad was not working. I knew it was not a hardware problem because the it wasn&#8217;t stuck or anything. It was on iOS 4.2.1. Thought this was [...]]]></description>
			<content:encoded><![CDATA[<p>Incoming searches:</p>
<p>&#8220;ipad stuck in dfu mode after restore&#8221;</p>
<p>&#8220;iphone stuck in dfu mode&#8221;</p>
<p>&#8220;itunes restore 1600 error&#8221;</p>
<p>&#8220;redsnow stuck at installing bundles&#8221;</p>
<p>The power button on my iPad was not working. I knew it was not a hardware problem because the it wasn&#8217;t stuck or anything. It was on iOS 4.2.1. Thought this was a good time to restore to 4.3.3 and &#8216;get updated&#8217; to the new features like nitro JS engine, multitouch gestures etc.</p>
<p>This is not a tutorial but a story of screw ups. If you are facing the same issues, you might follow this if you like but I&#8217;m not responsible for any damages.</p>
<p>Here&#8217;s what I did.</p>
<p>1) I downloaded the 4.3.3 IPSW (Thankfully, I had the .shsh file saved through TinyUmbrella).</p>
<p>2) I opened TinyUmbrella and started the TSS server to fool iTunes to believing that my computer is the Apple&#8217;s verification server. Internally, this is done by the DNS hosts file.</p>
<p>3) Opened iTunes. Shift + Click on restore. Loaded the 4.3.3 IPSW.</p>
<p>4) As you might expect, it didn&#8217;t work. Error 1600 / 1601 / 1603 / 1604 . I&#8217;m not sure.</p>
<p>5) Put my iPad into DFU mode and tried. It restored it alright but it was back to DFU mode after that.</p>
<p>6) As it was on DFU. I built a custom IPSW using SnowBreeze and tried. Same result.</p>
<p>7) Tried with RedSn0w. It booted by got stuck at &#8220;Installing Bundles&#8221;.</p>
<p> <img src='http://suhastech.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Tried booting RedSn0w tethered. Small success, it went to recovery mode. Unplug and replug. Go to iTunes, name the iPad and I&#8217;m in.</p>
<p>9) Now, the problem, as soon as I power off, It went to DFU mode no matter what. Guess the Boot Sectors were screwed up.</p>
<p>10) This might be the crucial step towards the fix.</p>
<p>Went to &#8216;jailbreakme.com&#8217; on Mobile Safari and installed the jailbreak. Once, I powered down, screwed, even the display stopped working. Was hearing sound on the headphones that&#8217;s all.</p>
<p>11) I still had the Sn0wBreeze IPSW. So, used iREB to go to DFU mode (the iPad was working without display).</p>
<p>12) Went to iTunes and Pressed Shift + Restore with finger crossed and Tada! Apple logo on the pad. Yay!</p>
]]></content:encoded>
			<wfw:commentRss>http://suhastech.com/solved-ipad-iphone-ipod-stuck-and-going-back-to-dfu-mode-restore-error-1600-1601-1602-160x/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

