Browsing articles in "Uncategorized"
Jun
6
2011

Web Based vs Desktop Based Softwares

A Web Based application has several significant advantages over a desktop/installable application – 1. Multi-terminal access. 2. Auto-Backups, so your data is always backed up and safe. With desktop/installable softwares you will have to manage your data, backup and make sure everything is safe which is hard work and time consuming. 3. Access from anywhere, no need to install. With a desktop software, your access point is “one” but with web based, you can access from anywhere and everywhere. 4. [...]

May
28
2011

Make a low frequency oscilloscope from PC

An oscilloscope is an instrument that can be used to analyse waveforms or output from circuits. A cheap oscilloscope can be made using a PC and mic. However it is limited to low frequencies at around 25Khz (the audible range). Things needed : 1. A PC with a sound card 2. A mic wire (TRS plug) 3. A sound application – Audacity Simple plug the mic into the mic socket of the sound card. Remove [...]

Oct
31
2010

Mobile phone radiation

Mobile phone radiation is a health hazard. With the increasing use of mobile phones and installation of Mobile phone towers its becoming a bigger health hazard. Phones with more features like Wi-Fi , Bluetooth , GPS and 3G generally have higher levels of radiation. Mobile phone radiation is measured using SAR value. It is Specific Absorption Rate More SAR information This page http://www.sarshield.com/english/radiationchart.htm gives the SAR rating for some Indian brands like Videocon , Micromax [...]

Jun
23
2010

Url encoded forward slash in MVC or codeignitor app urls

When using PATH_INFO , the urls of codeignitor apps or your custom MVC looks like this Now if the parameters contain a forward slash then you would urlencode it as : But opening that kind of URL would give an error : Page Not Found This happens if AllowEncodedSlashes directive of Apache is not turned on. More Here. This directive should be turned on to allow those sort of Urls. And for codeignitor $config['permitted_uri_chars'] should [...]

Apr
21
2010

Moneybookers as a Paypal alternative for freelancers

Recently Paypal has faced some issues with RBI which has resulted in withdrawals being reversed etc. Moneybookers is a service similar to Paypal. Moneybookers is available as a withdrawal option in Scriptlance , Getafreelancer , Odesk. Moneybookers charges 1.9% + 0.29 EU for receiving commercial payments compared to ~ 4% in paypal. In Moneybookers the payer is also charged. Moneybookers account needs verification before it can be used fully. The first simple option is to [...]

Oct
4
2009

PATH_INFO, ORIG_PATH_INFO, APACHE and PHP

A little while back I was trying to make a router for my application which I had grouped into classes. So a url could be like this : www.site.com/index.php/class_name/method?id=15 or www.site.com/index.php/controller/action?id=15 in the MVC style or localhost/project/index.php/class_name/method?id=15 PHP MVC frameworks like codeigniter use urls like that. Apache makes available a variable called PATH_INFO to PHP which stores the portion of the url between script and query string that is /class_name/method On Localhost index.php print_r($_SERVER) shows [...]

Sep
30
2009

Enable Apache mod_rewrite on Windows

In httpd.conf file the following line should be uncommented : LoadModule rewrite_module modules/mod_rewrite.so by removing the # sign before it. Then comes a section which looks like this : The line : AllowOverride None should be made : AllowOverride All Restart Apache. Create a .htaccess file somewhere in htdocs and write some garbage text in it like akjsnajknda and save. Create a index.php along with the .htaccess file. Now open the index.php file in browser [...]

Sep
5
2009

List foreign keys in mysql

One interesting way of listing foreign keys is like this : which is found here and gives an output like this : Another way would be to : which displays the sql query to create the table and has the foreign key constraints too. Apart from this phpmyadmin too shows the foreign keys on the top of a table structure. References : 1. Mysql Docs

Aug
22
2009

Mysql View DEFINER and SQL Security

A little back I tried to backup a database from my webhost and restored it on my localhost mysql. It had a few views. On accessing the views in phpmyadmin mysql gave the error : #1449 – There is no ‘projects’@’localhost’ registered #1449 – There is no ‘projects’@’localhost’ registered So I opened the dump file and found that the error was being caused by a line which looks like this : /*!50013 DEFINER=`projects`@`localhost` SQL SECURITY [...]

Jul
25
2009

Email Hacking Facts and Fictions

Lots of newbies keep asking or search for techniques to hack someones email password like yahoo gmail msn etc. First of all it should be noted that getting someone’s password out of a server is something impossible for the very simple reason that in most cases the password is stored no-where. Newbies think and make attempts to get the some one’s password from the target server. But yes this is not possible. Passwords are not [...]

Pages:1234»