Archive by Author

How to fetch the new line / paragraph character “n” from a GET / POST request

Here’s a little code that I wrote to correctly fetch the newline character. By URL encoding “n” you get %OA which is not decoded back as a C style new line character “n”. 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. function get_string_parameters($string) { $result [...]

[Solved] iPad / iPhone stuck and going back to DFU mode. Restore error 1600, 1601, 1602, 160x

Incoming searches: “ipad stuck in dfu mode after restore” “iphone stuck in dfu mode” “itunes restore 1600 error” “redsnow stuck at installing bundles” The power button on my iPad was not working. I knew it was not a hardware problem because the it wasn’t stuck or anything. It was on iOS 4.2.1. Thought this was a good time to restore to 4.3.3 and [...]
txtGPS – GPS navigation on SMS (without data plan)

txtGPS – GPS navigation on SMS (without data plan)

txtGPS is a GPS navigation system that works on SMS. So, you can use it without a Data plan i.e the internet. Might get you out of a tight spot (or you are just are just as cheap as me :D).   As you all know, GPS is free and Data plan is not. This app basically gets the GPS coordinates and sends a text message to txtweb.com’s number to fetch the navigation directions.   As of now, it perfectly [...]
[WordPress] Import WXR files larger than 2 MB

[WordPress] Import WXR files larger than 2 MB

You are staring at this screen with a 100 MB file to import. It’s not the “WordPress Importer” problem. So, it’s time to take a backdoor. There are a couple of ways you can import that file. 1) You can increase the “upload_max_filesize” to a really large number. You can do it in the php.ini file. To edit that, you will most probably need administrator access. or 2) You [...]

[Solved] URL in GET / POST request not working? http://

When migrating from Blogger to WordPress, I ran into to little problem where a URL (with http://) would not work no matter what. If you try it 403 forbidden error would pop up (even with the urlencode). It would work if you remove “http://”. This is actually the core mod_security rules. “HTTP protection – detecting violations of the HTTP protocol and a locally defined usage policy.” –modsecurity.org All [...]
[WordPress] How to Delete Blogger Imported Posts

[WordPress] How to Delete Blogger Imported Posts

Update: This is outdated. The plugin has a simple delete posts button. Blogger Imported sucks. There, I said it. Recently, when I was migrating a James’ Blogger Blog over to WordPress, the Blogger Imported screwed up everything, empty comments, blank pictures. Ugh! We didn’t even have a backup to revert it to the previous state (That was the cardinal mistake). We can’t even reinstall wordpress [...]
All in one SEO Pack for Blogger / Blogspot platform

All in one SEO Pack for Blogger / Blogspot platform

This is useless. Meta tags are deprecated. Off you go, now.   Yes, you heard it right, not for WordPress but for blogger. I’m calling it “SEO Blogger”. This is something I’ve been working for a little while now. This is based on my previous post about conditional tags. Some of you might also remember the Meta tag generator. This is maybe the end result of all that. It does [...]
[AMD Hackintosh] Dual boot Windows 7 and Mac OS X Snow Leopard 10.6.6 or 10.6.7

[AMD Hackintosh] Dual boot Windows 7 and Mac OS X Snow Leopard 10.6.6 or 10.6.7

I wanted to try my hand on iPhone development. That can only be done on a Mac. So, I installed it on my AMD Athlon x2 computer. I tried many distros, retail EmpireEFI, iDeneb, Hazard. These are supposed to support AMD x86 architecture, but they don’t. The only distro that actually supports AMD is “SNOWLEO MAC Snow Leopard OSX86_64” iso. Yeah, it’s 10.6 but don’t worry we’ll upgrade it to [...]
[DIY] Kinect AC Power Adapter / Connector for the Old Xbox 360

[DIY] Kinect AC Power Adapter / Connector for the Old Xbox 360

I bought a Kinect recently (got it shipped from the US) to find out that, it needed an AC adapter for my Original Xbox 360. The original one costs $49 but the problem is, we don’t get it here in India :(. Well, I could make my own in under Rs. 20 (50 cents). All you need is: Soldering Iron, soldering flux and the lead wire Hot glue gun Shielded USB Cable (I got mine from a mobile transfer cable) 12V [...]

COMEDK UGET 2011 Answer Keys Solutions / Solved Papers

COMEDK (Consortium of Medical, Engineering and Dental Colleges of Karnataka) has announced that the Answers Keys to the COMEDK exam conducted on 8th May, 2011 will released as soon the exam is complete. It will be done in a few hours. SUBJECT VERSION PHYSICS A B C D CHEMISTRY A B C D MATHEMATICSCS A B C D BIOLOGY A B C D This exam is mostly written by people coming from across the Karnataka [...]
© 2011 Suhas Tech. All rights reserved.
Proudly powered by Wordpress.
Suhas Sharma+