Quantcast

How To Create Various Redirects

(No Ratings Yet)
Loading ... Loading ...

If you're new here, you may want to subscribe to my RSS feed. So that you can read the latest updates about Web2.0 tools, Making Money Online, Tips in SEO, Ajax and many more. Thanks for visiting ProgramimiCOM!

There are many reasons for redirecting a user to another page. Perhaps the page has moved or perhaps they are trying to access a page they shouldn’t have access to. Or maybe you want to put in an interstitial ad (those full page ads displayed before taking you to the actual page you want to go to).

There are also many ways of implementing a redirect, each with advantages and disadvantages appropriate for different scenarios.

HTML Redirect/META refresh
This is probably one of the most widely used since it is easy to implement. Using a <meta> tag, once a page is loaded, users can be redirected to another page after a certain amount of time. All those “you will be redirected in 5 seconds” pages use a <meta> refresh tag to accomplish this.

The code goes in the <head></head> section of your HTML and looks like the following:

<meta type=”http-equiv” content=”7;url=http://www.programimi.com” />

The number before the semi-colon indicates how many seconds the browser should wait until redirecting the user to the page specified. If an URI is not specified, the page will refresh itself after the set amount of seconds — useful for continuously updating a page without having to use JavaScript.

The PHP Redirect (and other languages)
Using a server-side language, you can invisibly redirect the user to another page. For example, this can be useful if they try to access a secure page without proper authorization and you wish to redirect them to a login page.

The syntax varies with language but here is the PHP code:

<?php
header(”Location: http://www.programimi.com/”);
?>

This modifies the header to send the user to a desired page. Note that headers can only be modified if no output has been sent yet.

.htaccess Redirect
Using .htaccess to redirect has several purposes. Similar to forcing www, you can use mod_rewrite to send users to a different destination. The code is simple — redirect all page requests to a new domain.

RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

The advantage to this method is that it will maintain the page URI the user was trying to access. For example, if they navigate to http://www.olddomain.com/contact.php, they will be redirected to http://www.newdomain.com/contact.php instead of just the domain root.

Moved Permanently - 301 Redirect
Also, note the R=301 option at the end of the .htaccess code above. This 301 code is to let search engines know that the domain has been moved permanently and all old links should be updated to the new domain.

A 301 Redirect can also be achieved in PHP by adding this line prior to the redirection line:

header( “HTTP/1.1 301 Moved Permanently” );

If you’re into SEO (search engine optimization), listing the old domain as 301 is very important.

JavaScript?
There’s actually another method I left out and that is redirecting with JavaScript. I left it out because I can’t think of a situation where it would be better suited than the other methods described above. That, and there are more compatibility issues with JavaScript.

Know of any other ways of redirecting?

Burn .bin file Without A .cue file

(No Ratings Yet)
Loading ... Loading ...

To burn a bin file, you will need an appropriate cue file.

You do exactly the same as for iso files, but when you click on “burn image,” you don’t browse to the bin itself, but instead to the cue file, and you open that one.
When the writer starts to burn, it will automatically search for the bin file and start burning it. In fact, the cue file tells the burning program where it can find the bin file that is attached to it. It is VERY IMPORTANT that you use the right cue file when you burn a bin. i.e both cue and bin files that are attached to each other must be located in the same folder, and every bin file has it’s own cue file.

Normally, when you download a bin file, you can download the appropriate cue file as well. If you do not have the cue file (or feel bold) you can make the cue file yourself, which is really easy to do:

a. Open notepad

b. Copy the following text into notepad:

FILE“nameofimage“BINARY
TRACK 01 MODE1/2352
INDEX 01 00:00:00

Where nameofimage.bin is the name of the bin file you want to burn.

c. The rest is easy: just save the notepad text with the name of the bin, but with the cue extension.

d. The file should be saved in the same folder as its appropriate bin file and should be something like myfile.cue

Or you can use Alcohol 120% to burn directly from the bin file

How to Really Earn at Affiliate Programs

(No Ratings Yet)
Loading ... Loading ...

If you are like hundreds of thousands of people around the world, you are looking for a good way to earn money online. Everyone looking into online business opportunities comes across affiliate programs at some point or another, but only a few actually rise to the level where they are earning decent money, the majority quit before getting to that point.

Affiliate programs are like any other business; they require patience and hard work in order to make it work. Far too often, it is promoted as the ideal way to earn instant cash, which is just not true. In order to earn in affiliate programs, you need to plan for at least a year of low to nothing earnings. Perhaps you will actually earn more, but don’t go into this opportunity expecting to get rich overnight. That being said, you can certainly improve your chances with a few tips.

Build yourself a trustworthy reputation. There are hundreds of other people out there promoting the same affiliate programs links for products and services. People know what an affiliate programs link looks like and will go out of their way to not give you a commission if they think you are only in it for the money. So, to stand out from everyone else, you need to build yourself a reputation.

The best way to go about doing this is to establish a presence in your niche area. This can be anything you choose. Internet marketing is generally not a good idea, since that is the first niche most people head for. Let’s say you decide to focus on herb gardening. Instead of starting up a website to sell a variety of affiliate programs products, start off by writing a blog and offering good, quality information . . . for free!

That’s right, free. You might think this is a bit counter-productive, but remember that you are not going for the fast buck; you want people to keep giving you money and recommending their friends to give you money as well. When they see that you are not only doing this for the money, but to genuinely help people, readers will begin to send more people your way.

Once you have established your reputation as a guru or high quality information provider in your chosen area, you are ready to start monetizing. This could take up to six months to really get people to trust you, so be prepared. Then you can begin to recommend tried and true products that you think would help your readers. Don’t be afraid to throw in non-affiliate programs links as well, to keep things clean. The worst thing a blogger or webmaster can do is to switch from being helpful and free to suddenly trying to make money fast, at the expense of fans.

By following these steps and taking care not to fool your clients, you can make a living at affiliate programs. It is a good way to earn money while doing something you love and providing useful information to others.

Tips and Tricks for Earning with Adsense

(No Ratings Yet)
Loading ... Loading ...

When Google first introduced Adsense, it was a virtually unknown element. The few webmasters who began using it made a lot of money in those first few months. However, now Adsense is so common, you see it repeated various times on every webpage!

Have we become immune to the lure of Adsense? Some webmaster say yes, others claim that they are still earning well using Google’s system. It all boils down to how you use this tool.

Making Adsense blend into your page is supposed to be the best way to earn with it, but now webmasters are discovering that this might not be ideal. People are accustomed to clicking on electric blue links. We all do it and now that everyone is so web-savvy, they automatically look for blue links. So if your webpage features pink or green links, you should consider keeping Adsense links blue. The rest of the ad can match your theme, just make sure that people realize the links are clickable.

Placing ads where they can’t be missed is another technique that is not always used to the best effect. For example, an Adsense banner at the top of your page might make sense since it is the first thing people see, but you also have to take into account how jaded folks are. We see these banners everywhere. We came to your site for specific information and the banner is in the way!

Instead, why not try putting a block of text ads or a vertical banner to the right hand side of the page where it draws the eye but doesn’t stop the reader from getting the information they came to get.

Another useful place to put your Adsense ads is at the bottom of your page as well as in the middle of an article. If you do place a block in the middle of an article, make sure people know that the information continues below and don’t make the block too big. A line of text ads or a small box are all you need.


Placing ads at the end of your article is a good way to get clicks from people who want to know more on the topic. If you have a decent article, seeded with relevant keywords, you should have ads that your readers will find useful at the bottom of the page.

Having well-written content that contains around 5-10% keyword frequency is often the best way to make sure you have relevant ads. Having relevant ads is the key to getting clicks!

Make sure you don’t use any techniques that Google deems inappropriate or you will lose your account and that will be the end of all earnings! This includes clicking on your own Adsense or asking others to. It is not a good idea to try and cheat, since Google has eyes everywhere. One hint that you might not be playing by the rules and “Adios, Adsense!” So stick to real techniques instead!

How To Delete Undeletable Files

(1 votes, average: 5 out of 5)
Loading ... Loading ...

This bugged me for a few weeks before I found a solution. I was creating a file through FireFTP but Firefox crashed in the middle and the file was “half-created”. It exists on the Windows desktop as an empty file but it did not seem to fully exist on the hard drive. It just sits there on my desktop titled “i dont have 8gb free” teasing me because it knows I can’t get rid of it.

When I tried to delete it I got an error message:

Cannot delete file. Cannot read from the source file or disk.

So I know the file isn’t in use by any processes — the computer actually can’t find the file I’m referring to!

Here are things I tried and failed:

  • Deleting through command line.
  • Changing file permissions.
  • Renaming the file (same error as above).
  • Overwriting the file from different programs.
  • Rebooting in safe mode and deleting from there.
  • Booting into a Linux Live CD, loading up the NTFS drive reader to access the file.
  • Clearing processes that may have been using the file.
  • Running full spyware and virus scans.

I was at my wit’s end and about to install some shady third party application when I came across a solution on a newsgroup post:

The solution was simple, using the del command in a command prompt. I had tried this already of course but the trick was to not refer to the file by it’s full name, rather, refer to it by its 8-character “DOS name” also known as the 8dot3 file name. To find the 8dot3 file name, open command prompt and type:

dir /x

Note the 8 letter file name (most likely ending with ~1) and use the del command to get rid of it for good.

del idonth~1

I remember using 8dot3 names in DOS and older versions of Windows but it never occurred to me that this would make any difference when deleting files. Anyway, I’m glad I didn’t have to reinstall Windows just to get rid of this one immutable file sitting on my desktop! Hopefully this will help some of you in the future.

How To Remap Capslock - The Most Useless Key

(No Ratings Yet)
Loading ... Loading ...

capsoff.png

I don’t know about you - But I hate the Caps Lock key. I never use it and occasionally I mistake it for the shift key. I always wanted it to be something else or at least not be there. The Caps Lock key on your keyboard is frequently renowned as the most useless key. Even the One Laptop Per Child laptops have dismissed the caps lock key in favor of a more ergonomic Ctrl key! Well perhaps it is not as useless as Scroll Lock but it is taking up very valuable keyboard estate in its current position. Amongst all keys in close proximity to a touch typist’s hand placement, caps lock is by far the least used (if typing correctly).

Anything caps lock does can be done by the shift key and more efficiently - except when you’re writing something in all caps, which should be quite rarely. Case in point, I had a friend that refused to use the shift key for reasons unknown. If he had to capitalize a letter, he would press caps lock, type the letter and press caps lock again to turn it off. Some would argue caps lock is important for the disabled with poor motor-control but Window’s “sticky keys” is a much better solution for them anyway.

capslock.jpgWhat can it be remapped to?

  • Esc
    The escape key is a pretty useful key for certain applications (*cough* Vim) or for closing Windows and prompts. Since it normally requires removing the hand from its regular typing position, remapping it right beside your pinky seems pretty efficient! Also, the Ctrl-Shift-Esc combo is very handy and this makes it tons easier to press (don’t know what it does, try it out!).
  • Backspace
    Just like the Esc key, backspace is fairly out of the way and hard to press yet is used very often. Makes a lot of sense to make it more accessible.
  • Windows Key
    Personally, I have mine remapped to the Windows Key (yes another hated key) simply because neither my IBM Thinkpad nor my IBM Model M includes one. I use the Windows key mainly to show desktop (Win-D) or to open up a Windows Explorer window (Win-E).
  • Ctrl
    Although the control key is very accessible, some people find it uncomfortable to press in its current position.
  • Enter key or Space Bar or Anything Else
    What can be more fun than having Enter keys on both sides of the keyboard! Or if your thumb gets tired, you can start using your pinky to type spaces instead!

How to remap Caps Lock to another key
For Linux users (on an X environment like KDE, Gnome), it’s pretty easy to remap keys using the xmodmap command.

For Windows users, there are programs that will remap keys for you but if you’re not afraid to tinker with your registry, you can do this manually and it only requires adding one registry value:

  1. Go to Start->Run and type in ‘regedit’ to open the registry editor.
  2. Navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
Note: Keyboard Layout, not Keyboard Layouts!

  1. Go to Edit->New->Binary Value and name it ‘Scancode Map’
  2. Now double-click and edit the value to the following, replacing ## ## with the scan code of the key you wish to map caps lock to.

00 00 00 00 00 00 00 00 02 00 00 00 ## ## 3a 00 00 00 00 00

The scan code for Windows Key is 5B E0, Esc is 01 00, Ctrl is 1D 00. Full list of scan codes and a more detailed tutorial is here.

  1. Reboot your computer and say goodbye to caps lock!

How often do you use the caps lock key? Got another candidate for the most useless key? Have you remapped caps lock to something else? Leave a comment!

Get Articles Accepted by Article Directories

(No Ratings Yet)
Loading ... Loading ...

Article marketing basically consists of submitting your promo pieces to article directories and hoping that they will be approved. However, there is a better way of doing things than simply submitting and waiting with crossed fingers. The trick is to guarantee that article directories accept your work.

It takes time and effort in order to write an article, submit it by hand to the article directories (the recommended method), and if you get rejected, you have wasted all of that time. Simply completing the submission process can take a minute or two and if you are submitting to several article directories or are trying to send multiple submissions to one, that could easily add up to half an hour, time for you to write a whole other article!

The best way to guarantee that article directories accept your work is to be familiar with their guidelines. Each directory is different, but by following general rules, you can ensure that everyone will accept your article. The editors are not usually that picky, as long as you follow formatting guidelines and stick to non-offensive information, you have a pretty good chance of adding your work to the roster.

Formatting guidelines for article directories are pretty standard. If you write an article that is between 400-800 words, you will be fine for length. Article directories tend to like their articles formatted for the web, which means writing in the same manner as this article that you are reading right now, single spaced lines, with a double space between paragraphs. This is easy to read and easy to write, as well. Avoid using TABS or indentation and stay away from automated numbers and bulleted lists. While using number is encouraged for steps, just make sure that your word processor isn’t adding them and indenting them automatically.

Your paragraphs should be fairly short as well. Three to four sentences is usually good. This means there is plenty of white space on the page and gets your article noticed faster. While the editors might accept your article even with long paragraphs, webmasters and ezine editors will be more likely looking for something that is easy on the eyes.

Spellchecking is a must for any article that will see the light of day. There is no excuse for submitting misspelled words to article directories. They will not accept this. All basic grammar rules should be followed, as well. Capitalization at the beginning of sentences and all other such rules need to be applied or your article will probably be rejected. The idea is to look professional, even if that means getting someone else to critique your work.

Links are also a no-no in many article directories and it is best to simply avoid them. If you want to add a link, you can do so in your bio at the end of the article. Otherwise, you can mention company names (like Chapters), but not the site (chapters.com). This will boost your chances of getting accepted into article directories drastically.

By following the guidelines above and making sure to read the submission rules on all article directories that you submit to, you will be sure to have success.

The Importance of Referrer Logs

(No Ratings Yet)
Loading ... Loading ...

Referrer logging is used to allow web servers and websites to identify where people are visiting them either for promotional or security purposes. You can find out which search engine they used to find your site and whether your customer has come from a ‘linked site’. It is basically the URL of the previous webpage from which your link was followed.

By default, most hosting accounts don’t include referrer logs but may be subscribedd for an extra monthly fee. If your web host does not provide a graphic report of your log files, you can still view the referrer logs for your website by logging into the host server using free or low-cost FTP software, like these:

FTP Explorer: http://www.ftpx.com/
LogMeIn: http://secure.logmein.com/dmcq/103/support.asp
SmartFTP: http://www.smartftp.com/
FTP Voyager: http://www.ftpvoyager.com/

The log file is available on your web server which can be download into your computer later. You can use a log analysis tool, like those mentioned below, to create a graphic report from your log files so that the files are easier to understand.

Abacre Advanced Log Analyzer http://www.abacre.com/ala/
Referrer Soft http://www.softplatz.com/software/referrer/
Log Analyzer http://www.loganalyzer.net

You can view the files using Word, Word Perfect, txt or WordPad files even if you don’t have the right tool. This information is very crucial to your business and marketing plans and is not advisable to neglect it.

In addition to identifying the search engine or linked site from where your visitor arrived, referrer logs can also tell you what keywords or keyword phrases your client used for searching.

As referrer information can sometimes violate privacy, some browsers allow the user to disable the sending of referrer information. Proxy and Firewall software can also filter out referrer information, to avoid leaking the location of private websites. This can result in other problems, as some servers block parts of their site to browsers that don’t send the right referrer information, in an attempt to prevent deep linking or unauthorized use of bandwidth. Some proxy software gives the top-level address of the target site itself as the referrer, which prevents these problems and still not divulging the user’s last visited site.

Since the referrer can easily be spoofed or faked, however, it is of limited use in this regard except on a casual basis.

Macro Digital Photography: Some Concerns

(No Ratings Yet)
Loading ... Loading ...

We have always found that looking at objects from another perspective is fascinating. This is because of the fact that we often discover new things just by looking at a familiar object from a different angle or focus. This might be the reason for people’s fascination with digital macro photography.

Digital macro photography is an art. There’s no question about that. It takes the genius of an artist to take something so ordinary and something so dismissible and turn it into something that just captures an aspect of life. For that is what art is. No art ever claimed to contain all the truths of life. Art is a reflection of the world through the eyes of the artist. By looking at a piece of art such as digital macro photography, we get to share the perspective of other people and that can be a very powerful connection.

Another thing about digital macro photography you should know is that it is not easy. You need to consider a lot of factors in order to produce great photographs. What are these factors?

1) Skills – do you actually have the skills necessary for digital macro photography? Do you have the eye for beauty that would be appreciated by people who view your photographs? That’s not all you need. You also need to have a steady hand. While taking digital macro photographs, even barely noticeable movements of the hand can ruin your picture.

You need to have the skills to use a camera properly. You need to be able to adjust the camera in order to take the picture that you truly want to appear. Sure, you can actually edit a digital macro photograph using the computer, but why should you give yourself more work than necessary?

Some people have the necessary skills naturally. However, it is still important to hone these skills by taking classes or attending workshops. Remember that digital macro photography is all about showing things in different ways. Because of this, you need to accept the fact that other people may see your work differently from the way you see it. A fresh eye never hurts.

2) Equipment – you also need the proper tools in order to express your talent. The proper tools can help you a lot if you want to achieve the effect that you want. Remember that although there are tools today that claim to be usable for any type of photography, you should try to find equipment that’s specially made for digital macro photography. This is because such equipment can definitely bring out the best in your skills.

The right equipment is essential because digital macro photography needs a lot of work in order to be perfect. If you have the right tools for digital macro photography, you will be able to achieve your goals and show your pictures the way that you want them to be seen.

3) Subject – everything is interesting when viewed in different ways. However, some subjects are more interesting than others. Some objects, when you choose them as subjects of digital macro photography, manage to amaze you with the amount of things you do not know about them. Great subjects of digital macro photography reveal worlds beyond what you can see with the naked eye. So choose your subjects wisely.

Tools to monitor your website

(No Ratings Yet)
Loading ... Loading ...

You can’t just put your website on the net with right keywords and all the right touches and expect your traffic and ranking will remain constant. As the web is an ever changing landscape, you have to keep track of your own web results like what is happening with the competition and also the best and highest ranked sites. There are many useful tools to help you find out what exactly is happening.

 

1. A tool which you can use to test your own website links or other websites for broken links:

http://home.snafu.de/tilman/xenulink.html

 

2. With this tool you can check search engines for the number of back links to your URL i.e. other web pages linking to your site:

http://www.digitalpoint.com/tools/backlinks/

 

3. It sometimes becomes important to know where the servers of your hosting company are physically located. Because, some search engines like Google have the ability to filter search results based on their physical location called geotargeting. This could be used to determine why your site is showing in only a certain country. This link can also be used to research the country location of a particular competitor’s website:

http://www.digitalpoint.com/tools/website-country/

 

4. In order to track the location of the visitor or a customer to your website:

http://www.digitalpoint.com/tools/geovisitors/

 

5. In order to check the Yahoo! web ranking of your’s or your competitor’s website use :

http://www.digitalpoint.com/tools/webrank/

 

6. Here is a link to check the web ranking of a website using a Mac or Apple computer:

http://www.digitalpoint.com/tools/pagerank-mac/

 

7. You need a Google AdSense account for using this. This link provides you with charts and reports which will help you analyze traffic, clicks, and results from your AdSense advertising

http://www.digitalpoint.com/tools/adsense-charts/

 

8. If you have an AdSense account, you can analyze your website address or another website address to see what Google ads will be displayed when the customer selects certain website names or keywords:

http://www.digitalpoint.com/tools/adsense-sandbox/

 

9. This link will take you to a cooperative advertising network where you can join to display and

share your ads with other website owners:

http://www.digitalpoint.com/tools/ad-network/

 

 

10. You can add the Search Functionality on your website which uses Google. This works only if your site is listed in the Google Index.

 http://www.digitalpoint.com/tools/search/

 

11. Here are some links to free website counters which you can use on your website to track your traffic and hits:

http://www.digitalpoint.com/tools/counter/

http://www.amazingcounters.com/?ref=gad033

http://www.cyber-counter.com/signup.php

http://www.statcounter.com/free_hit_counter.html

http://www.free-counters.net/