Archive

Archive for the ‘How to...’ Category

How to Block Adult Content from Children’s Google Search Results

February 24th, 2010 Ashesh No comments

While there are many ways of parental control over children’s Internet activities such as using software, application or even setting parental control within Windows itself to monitor kids’ Internet browsing, surfing, chatting or online gaming activities, no filtering mechanism is 100 percent accurate. Therefore, Google has developed SafeSearch, a feature that lets you filter sexually explicit web sites and images from your search results, eliminating the most inappropriate materials from popping up on your children’s computer.

Parents who share the same computer with their children will find that Google’s SafeSearch very useful in filtering undesired search contents with three (3) different settings: Read more…

Deny visitors by IP address using .htaccess

January 28th, 2010 Ashesh No comments

The visitor blocking facilities offered by the Apache Web Server enable us to deny access to specific visitors, or allow access to specific visitors. This is extremely useful for blocking unwanted visitors, or to only allow the web site owner access to certain sections of the web site, such as an administration area.To set-up visitors restrictions and blocking, create a .htaccess file following the main instructions and guidance which includes the following text: Read more…

How to Change Your IP Address in Linux Shell

January 3rd, 2010 Ashesh 1 comment

Ever wonder how to easily change your IP address without having to go through the daunting task of going through the system menu? If you can open a Linux Shell and type on a keyboard, then you can change your IP Address with one command line.

  1. Turn on the computer in which you are running a Linux distribution. Once started, open a Shell, which is similar to a command prompt screen in Windows.
  2. To change the IP address you will need to use the “ifconfig” command. Also, you should have an IP address in mind that is different than your current IP address.
  3. With an IP address in mind, type: “ifconfig eth0 192.168.X.XXX up” without the quotation marks and placing your numbers in for the Xs. Keep in mind that a normal IP address will begin 192.168 and then you should normally have one number then two to three numbers for the last section of the address
  4. Press “Enter” to run the command and change your IP address. Once it is completed you should check the change by simply typing “ifconfig” without the quotation marks, and pressing “Enter.” This will display your current IP address so you can verify that is was changed to the one you entered in Step 3.

Create An Ajax Style File Upload

January 1st, 2010 Ashesh No comments

If you visit Asp.net Ajax Forum, you will find hundreds of request on File Upload Control that it does not give Ajax version of the page when it is placed in an UpdatePanel. Certainly, it is not possible, as the XMLHTTPRequest object that is used internally to post the form does not support file upload. In this post I will show you how to create Ajax like version of the file upload. The trick is very simple, I will use an Iframe to upload the file so the whole page does not get refreshed and when the post is in progress it will show a dummy progress. The following shows you the screenshots of the solutions: Read more…

Categories: Ajax, How to... Tags:

Creating a Multi-File Upload Script in PHP

November 20th, 2009 Ashesh No comments

As a PHP programmer I had run into a problem where a client needed a form to upload more than one file at a time. So one night I sat down and spent an hour figuring out the best and easiest way to do this. In this tutorial, the for loop is going to be your best friend.

uploadForm1.php

<html>
<head>
<title># of Files to Upload</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</meta></head>
 <a href="http://www.ashesh.com.np/1088/#more-1088" class="more-link">Read more...</a></html>

How To Add Bing Search To Firefox, Chrome, Opera and IE: Microsoft Bing Tips

November 17th, 2009 Ashesh No comments

Microsoft’s new search engine – Bing is creating a great buzz these days. If you enjoy using Bing then follow these simple ways to integrate Bing search in your favourite browser.

Adding Bing to IE: For adding Bing to IE, visit the Bing search engine and perform the search for the keyword TEST (all capital letters). Copy the URL of the search page, now visit this link and paste the URL copied earlier into the URL field on this page. Name the search engine and click on the Install search provider. Read more…

WordPress Security How To

November 14th, 2009 Ashesh No comments

Blogging is supposed to be fun but it isn’t always like that. If you are hosting your own blog there is a great chance that one day a hacker may decide to target your site.

Upgrade

As good as it is, WordPress still has security issues. Upgrading to the latest version is a must if you want to lower the risk of getting your site hacked.

Upgrading today is really easy, thanks to excellent plugins like Instant upgrade. You have no excuse not to upgrade. Read more…

Categories: How to..., Wordpress Tags: ,

Display total online users in web page

November 13th, 2009 Ashesh No comments

Here, how you can display total number of online user in your webpage you want. Just include file name, which I have given file name as online-user.php here. You need to include this file on any php page you want to display total users online.

I have developed this php script to implement on my own webpage.
See this, I have implement this on http://www.ashesh.com.np/nepali-date-converter.php

    Example for how to include online-user.php in web page.

    < ?php include 'path/online-user.php'; ?>

online-user.php

1
2
3
4
< ?php
$rip = $_SERVER['REMOTE_ADDR'];
$sd  = time();
$count = 1; <a href="http://www.ashesh.com.np/display-total-online-users-in-web-page/#more-1037" class="more-link">Read more...

How to use the meta tag “ROBOTS”

November 11th, 2009 Ashesh No comments

How do you explain a spider of a search engine you only want him to index just the first page of your website or he is allowed to index the whole website. You use the so called ROBOTS tag.

The robots meta tag is not the same as the file called robots.txt  You should use these two together. Both are used by the seach engines like Yahoo and Google. If you use this meta tag the wrong way you might shut the search engines out. So the influence of this meta tag is significant.

Read more…

Categories: How to..., SEO, meta tag Tags:

How to use the meta tag “NO EMAIL COLLECTION”

November 10th, 2009 Ashesh No comments

The meta tags no-email-collection is an unspam.com initiative. Sure, the die-hard spammer wil not be stopped by this tag. This tag is mainly used to have a statement on your website: we don’t want you to harvest our email-address.

And if you have this statement on your website you are able to complain about spam harvesting and spam runs. In the USA you can even start a lawsuit.

This is why the meta tag contains a link to the page with your statement regarding spamruns and harvesting.

This meta tag has no influence on your search engine ranking. Meta tags who do have a lot of influence are the title of your page, the keywords and the description meta tags. Read more…

Get Adobe Flash playerPlugin by wpburn.com wordpress themes