Are you a WiseTechie?
Get yourname@wisetechie.com


Oct 16

Well these are general facts about using bluetooth on your windows mobile mobile phones, most people complain that that they are able to send files and images via bluetooth but when receiving they receive errors like “Unable to Connect” or unable to send files. Most think that this error is caused due to their Windows Mobile Phones, but it isnt so (technically), Imate, HTC, Asus etc. wont make phones with bluetooth not able to receive files.  The trick is basically the same for windows mobile 5 and windows mobile 6, i have taken the screenshots from windows mobile 6.1 on my Asus p320 phone, but i remember it was more or less the same on my Imate and its windows mobile 5.

These are the steps needed to setup your windows mobile device to receive photos/music/data files:

Step 1: In Settings click on Bluetooth, select the mode tab and switch on bluetooth and make this device visible to other devices.

Screen002 Screen003

Step 2: In Settings , click on Beam and check receive all incoming beams.

 Screen004 Screen005

After you complete these 2 steps all of your bluetooth incoming beams should reach your mobile phone and you should be able to share photos, files and music with your friends and receive it from them.

But another problem, all incoming files are stored in my documents, how do you ensure that these are stored in storage card ? Answer to that next week :)


Jul 30

Well, we had made these videos a few months ago telling people how to secure their Wifi connections quite frankly because many people use other people’s internet without their knowledge. We had made the videos to prevent pranks where kids use other people’s networks to save some money.

But the recent blasts in India opened a new picture. Terrorists used the Wifi connection of an American citizen living in Navi Mumbai to send threatening emails and emails taking responsibility for blasts. As an Internet user, its your responsibility to secure your connection and make sure criminals are not using it. The following 2 videos will help you secure your Wifi connection. I will also make another video, showing you how to implement MAC address filtering to further strengthen your Internet security.

These videos are for Linksys WRT54G series, if you have some other router, refer to your user manual to see how this is done or search youtube, someone might have made a video for your model too.

Securing your Wifi connection (WPA security , only people will passphrase will be able to logon to it wirelessly)

Password protect your Router also

This post is issued in public interest


Jun 15

A lot of us aren’t aware that MTNL Delhi telephone bills can be paid online with credit cards, all you need to do is follow the steps :

1. Log onto http://billalert.mtnl.net.in/ (Note: If link is down, try again in 1-2 days, sometimes their server goes down) and click on register to register a user for you and your telephone number.

2. After creating your user, login and see the left hand side menu, click on add telephone.

addnewphonemtnl

3. Fill in your telephone number and CA number which is available on your bills.

mtnladdtelephone

4.Now whenever you login and click on unpaid bills , you should be able to see the currently unpaid bills and pay them via the pay button which takes you to an ICICI bank payment gateway. You can then pay via your VISA or MASTERCARD.

bills

Now wasn’t that easy ? I personally have been using this method for the last 2 years and have only once faced a problem when i made the payment twice (my mistake :P ) , anyway the problem was taken care of by contacting the MTNL accounts dept. pretty easily.

Disclaimer : We do not endorse any payment method, post is for informational purpose only.


Dec 19

We analyse the domains market , and why you should buy your domain ASAP if you have an idea that just might click and some general tips while purchasing domain names.
1. Your dream domain name will be gone – I give my own personal example , i had (have :) ) a pseudoname on the internet , the .com Top Level Domain (TLD) was available for that. I had the cash in paypal for it but was waiting mindlessly for no apparent reason. 5 days later i convince myself to buy that domain name, but to my horror i discover that someone has already booked my domain and parked it. So it makes sense to reserve your domain name.

2. Buy reputed domain names from reputed domain resellers – Dont go to your local market’s domain registrar , they might cheat you by registering the domain in their name and then blackmailing you. Also dont buy a combined package with hostings (Zac from zoomcities had this tip) , as your hosting provider might again blackmail you. Buy from reputed sites like Godaddy and others. I personally use Godaddy only and sure enough this domain is also purchased through them. (No we are not getting paid to write this , just our opinion). You may use any other reputed reseller also. Or maybe wait till we start reselling :P
3. Choosing the domain name – This is the most crucial element of your purchase , spend a lot of time researching the names that might be appropriate for your buisness. Your domain name should attract customers and should clearly tell your sutomers what your site is all about. If you are already an established company without an online presence , your job is a little easier , most people will assume that your web address must be yourcompanyname.com , hence some traffic will be automatically sent to your website.

4. Multiple Extensions of your domain name – When you start earning big , people will try to take advantage of your name and will try and malign your site. Its the sad truth. So once you start earning a lot , we reccomend you buy other TLDs of your company too. For example if you are an indian company , once you get started , you might consider buying yourcompanyname.in or yourcompanyname.co.in

5. Dont get a pun domain name – Just like a good domain name can take you very far ahead , a bad one can take your buisness down too. Read your domain name aloud , with all the permutations and combinations , it shouldnt sound like something it isnt supposed to sound like.

We hope our writings were beneficial to you.


Dec 15

The fact that i have been playing with webhosting for a long time has made me like .htaccess very much , i dont care what others say , but to me the file is indispensible and let me show you how small tasks can be easily achieved by this one file wonder. first thing first , make a test .htaccess file in a test hosting account and proceed. For those who might be confused , .htaccess is a file by the same name.

1. htaccess file redirecting -

.htaccess can be used to make redirects in your site , and that too very easily and these redirects work much better than javascript redirects my experience as a webmaster has taught me.

See and Observe

Redirect /toberedirected http://wisetechie.com/blog/

Here tobe redirected is the old directory which needs to be redirected to the blog directory.

For example – Redirect /tests http://wisetechie.com/blog/

will take you to my blog directory upon entering http://wisetechie.com/tests , the change will take place automatically in the address bar

2. Banning IPs through htaccess-

Although most control panels come with this banning IP feature built-in , some dont , to ban an IP , paste the following into your .htaccess file

deny from IP address

I tried using my own IP address , getting the forbidden error was bit of excitement for me , but being able to access backend easily meant that i could easily edit .htaccess again , i would however reccomend only to ban rogue IPs which you know are trouble.

I have personally used this command , once there was an IP from china which was basically a bot , reading my blog’s feed and copying all content for an automated site , now all it gets is a 403 forbidden page , but it keeps trying , atleast my content is secure. Later i got that IP address’s traffic null routed which basically ended the headache.

3. Changing Directory Index through htaccess-

This is a good tool , however DONT use it if you use automated Installation scripts as they themselves sometimes edit this information and it might result in a conflict. What does this command do then ?

This command allows you to change the default index file of your site , for example , typing yoursite.com will make the webserver originally show yoursite.com/index.html , what if i dont want index.html but wisetechie.html , i can change that through .htaccess too.

DirectoryIndex wisetechie.html wt.html wt.php

The command basically sets the priority for the directory indexes through the .htaccess file , if i open mysite.com/abc/ , then first the server will search for wisetechie.html in that directory , then wt.html in that directory and if even that is not found it will search for wt.php

4. Make Files Secure using htaccess -

Since we are learning old school , another thing we can do easily is protect certain files or certain class of files from being viewed by external agents , an easy way to do this is by the following syntax

# To protect .doc files

<Files *.doc>

Deny From All

</Files>

The command gives a 403 forbidden error for every .doc file that is tried to be accessed by the users.

5. Banning Rogue Bots through htaccess-

All bots come with user agents , some bad bots can be easily identified by their user agents and can be blocked and can help you save precious bandwidth and inturn precious money. We will discuss this in a later post , just to keep you hungry for some more.

6. Index Ignore Command in htaccess file -

This command again is the old school way to prevent directory listings , if i have a directory full of family images , i dont want any stranger to be able to come and list all the pictures namewise and take his pic , only people whom i have given specific URLs should be able to view my personal images.

IndexIgnore *

Put this in the .htaccess file of the directory you dont want anyone to be able to see , if you want specific files not to be listed you can also do that by the following modification.

IndexIgnore *.jpeg *.jpg

This particular command will let all files other than .jpg or .jpeg extensions to be listed in the directory listings as and when done by the user on my site.

The Purpose –

Although most of these are automated these days by programs such as Cpanel and other such systems , i felt it is necessary to know these as this raw knowledge is important for all webmasters , when you add a redirect or a deny entry in cpanel , you should know what is the adventurous way of doing it through your good old htaccess files. By compiling just a few of these commonly used commands i hope i have aroused interest in enough individuals as to how web site administering is actually done. :)

Now when you are done with reading my htaccess tutorial you must realise this is just the basics of htaccess, the vegetables for the roasted vegetables (ok , i know , bad joke , i mean htaccess can be used as a foundation for bigger things) , you got to put the bits and pieces together to create a masterpiece. For those of you wondering what can we do with a .htaccess file , Here is something Rohit cooked up for us(using htaccess and php) over at his blog

Just goes to show a little programming + a smart brain can make small and witty things which you wouldnt have imagined in your wildest dreams otherwise.

Now you guys have probably seen that the avatars on this forum are static, they have to be manually changed before you can use a new one. :-?
Now take a look at my avatar url
http://www.smart-techie.com/images/avatar.gif
Now what happens when you view it? You see a jpg or a gif image.
Try accessing the same url 5 or more times… Did you notice something?
The picture changes automatically at random (amongst a set of 3 pics) If you didn’t see this try more times ;)
How does it happen?
The first part is a VERY simple php script on my webserver (you need a hosting account with php scripting enabled for running scripts). Also (in Linux) CHMOD the files to give execute permission to everyone.
The php code that I am using is

php
$random = rand(1,3);

switch ($random)

{
case 1:header(location: /images/konqi.jpg ) ;

break;

case 2:header(location: /images/Homer.gif ) ;

break;

case 3:header(location: /images/Hobbes.gif ) ;

break;
}

header(Cache-Control: no-store, no-cache, must-revalidate) ;

header(Cache-Control: post-check=0, pre-check=0, FALSE) ;

header(Expires: Mon, 26 Jul 1997 05:00:00 GMT ) ; // Date in the past

header(Pragma: no-cache) ;

?>

Doesn’t take a genius to figure out what is going on here. Anyways I’ll explain :)
1. A random number is chosen between 1 and 3 and the corresponding image is displayed. This is done by the header function which is used to send HTTP headers ( a temporary redirect HTTP 302 response) This says that the resource that you want to see is at some other location).2. The headers at the end are DESPERATE ones which tell the browser “Please don’t cache the images or you will spoil my image changing effect?” Now to save bandwidth and load pages faster, browsers store copies of resources that they retrieved from the Internet on your disk in a location called cache/Temporary Internet files or similar location. Try about:cache in mozilla to see whats in it.
Also an expiry date is given in past so that the browser thinks “Oh, this content that I retrieved has become old. I shouldn’t cache it. Next time I’ll ask for a fresh copy” Sweet…
Now the file is saved as somename.php on your server and on running it the effect of changing avatars is complete.
2. Now for the final bit. Try pasting this url in your avatar field and the forum complains. It wants the URL to end in gif/jpg or whatever. So how to bypass this? Simple. Use the Apache .htaccess file (not available on IIS)
.htaccess is a file that stores settings on a folder basis on you webserver. I modify this file to add a statement

Redirect /avatar.gif http://www.website.com/images/somefile.php

There you have it! It is always easy to fool software.
Try this at least once to see the power of web scripting.


Dec 14

I really hope this post is preserved in time because i feel like a moron having to read up how to restore databases each time and its very easy except maybe if you get in a tight corner. Here we assume we have to backup and restore a database with username@localhost account. The problem with such an account is that it will not have database creation priviliges in many hosts so you will basically kill yourself trying to figure out how to go about this. I assume that your host has disabled the backup facility of Cpanel or you dont have Cpanel (in which case :: GET A LIFE !!! or maybe a good host). Images look a little hazy but you dont really need them , just follow the instructions and backup everything before proceeding , wait , thats what we are doing !!! , ok i stink at situational humour :-| .
Part 1. Backup Your Database in PHP My Admin

Login to your control panel , click on PHP My Admin , if this option is not there and an option My SQL databases is there , open it instead and then click on PHP My Admin.
PHP My Admin Screenshot

Click on Export , you will be able to select one or all of your databases , i leave the other options untouched , do the databases one by one , you will know why later on.

Export Database Screenshot

You will be treated to a file with SQL queries , copy the queries and save it in a txt notepad file or anything which doesnt spoil the commands.

Part 2. Restore Your Database in PHP My Admin

Login to your control panel , click on PHP My Admin , if this option is not there and an option My SQL databases is there , open it instead and then click on PHP My Admin.

Rewind !!!! , this wont work , if you see your SQL commands carefully , they have a create database command , however your account , username@localhost has no database creation priviliges , this is where you will be pulling your hair out like i was , you may create as many users as you like but you wont be able to login with them and further blah blah blah , breaking 3-4 cups later when you regain your senses we continue. Some of you may have already realised the workaround.

Why had we created the backup database wise , there was a reason. We first create the database through the my SQL databases section , then we remove the database creation command from the query backup and also the database ‘USE’ command.


Now going into the PHP My admin , we select the database from the sidebar , click on the SQL button and paste our queries and execute them.

We live happily ever after , although this tutorial might appear non-sensical to you but to a person actually facing the problems i have outlined , rest assured this page is a gold mine of information.