Bali Web Design Bali Web Developer SEO in Bali

Google

June 22, 2009

How to check nofollow link on firefox?

Filed under: css, html — Tags: — admin @ 12:36 am

As a SEO master, sometime we need to add backlink from another sites to our sites. More backlink can give good SEO credit to your website, of course best if the backlinks come from high page ranking site and have related content with our website.

There are many free resources to get free backlink to you, for example social networking site, social bookmarking site, or blog comments. Important to check if the link give to you is a dofollow link type. Only dofollow link type can give SEO credit to your websites. This rule is apply at least to Google Search Engine.

How to check if the sites can give you dofollow link to your websites? simple way is by view page source on the websites and check if the link contain rel=”nofollow” attribute. If it has then that website cannot give you a backlink. Another thing is to use a plugin or tool to check if the website using dofollow or nofollow link. But until this time, i don’t find a good tool for that. I am to lazy also to view page source and read through the html code if the link using nofollow or not.

I need an easy way to check the link, that means when loading, the browser must give a sign on nofollow link. I believe this way is more faster to check about it. I found a simple solution for firefox. The idea is to add user define style to firefox. So everytime we load a web page, that css will override all style defined.

To do it, please create or edit a file named userContent.css in C:\Documents and Settings\{Your User}\Application Data\Mozilla\Firefox\Profiles\{random string}\chrome. And then add this line into last line :

a[rel*="nofollow"] {
border: 1px dashed black;
background: #FFFF99;
}

And then save it. Please restart firefox to load the setting. Now, if you open a website with nofollow link, you will get a link with dashed border and #FFFF99 background color.

The first link is a nofollow link, and second link is dofollow link.

May 14, 2009

Controlling loop using break and continue with php sample

Filed under: php, php-tips-basic — admin @ 10:34 pm

Probably this article is not talk about high level programming, but as programmer you will need to learn the basic of looping and how to control the loop. We will often use loop to iterate a code or an array to search or doing something. The traditional sintak of loop schema is while, do while, for or for each. This sintak is available on most programming languages.

In this article i will give loop example using php languages. PHP is the most web programming language that commonly use over the internet and web server. We use loop to do similar thing sequently, we call it also iterating a code or commonly iterating an array value.

For example to print number 1 until 10, we can use for statement.

for($i = 1; $i <= 10; $i++) echo $i;

Inside a loop we can put another loop or called as nested loop. When our application is become complicated, nested loop is often use. We commonly use nested loop to do a recursive iteration.

We need to control a loop, deciding the start point and the end point is a must. Without controlling it, you probably create never ending loop. for example this loop

$i = 0;
while($i <= 10){
//
}

To control a loop you need to mention start point and end point. Start point would be initial value for loop condition so the loop can start, for example $i= 0;. Next thing to remember is the end point. In this case $i > 10. So if true condition still valid, the loop still run.

Another control for loop is continue and break statement. Continue statement use to continue the loop to next iteration. In this case all code after break will not executed. I give you an example about how to print only odd number in range 1 until 10.

<?php
for($i = 1; $i <= 10; $i++){
if($i % 2 == 0) continue;
echo $i;
}
?>

On the other hand, break statement used for stoping current loop. For example we want to stop the loop when $total_number > 100;

<?php
$total = 0;
$i = 1;
while(true){
$total += $i;
if($total > 100) break;
$i++;
}
echo $total;
?>

When doing nested loop, we can set number of level that we want to break the nested loop. For example we want to break all loop from second loop, we can use break 2; means we break current loop and outhermost loop.

<?php
$a[0][0] = “a”;
$a[0][1] = “b”;
$a[1][0] = “y”;
$a[1][1] = “z”;
foreach ($a as $v1) {
foreach ($v1 as $v2) {
if($v2 == ‘y’) break 2;
echo “$v2\n”;
}
}
?>

This loop will break when $v2 == ‘y’.

I hope this simple tips can help you understanding on how to control a loop inside your application code. Keep improving your php skill by learning more. Good luck

September 24, 2008

Google Maps Mania

Filed under: google maps — Tags: — admin @ 10:25 pm

As become familiar with Google Map API coding, i would like to announce me as Google Maps Mania. We knew that since 2005, Google has release a beta version of Google Maps Service in February 2008 through its Labs Incubator. And on June 2005 Google Map API is released to all programmer around the world.

Using this great API, Google allowing programmer to create thousand of application using their Google Maps Services. At my first glance, the ability to toggle between street map and satellite view is amazing. For some country we can see a road map also.

Since 2007, i were involving with 2 Probypro’s Project based on Google Maps API. One is known as Pop portal project and the other is Tourismausportal project.

Being involving with this 2 project is sharp my skill on Google Maps API. And because i am doing core code for this two application make me know that Google Maps API is great for building Map Application. And it is free for all.

So on next day i will post many article focus on Google Map API. You can find all topics related to Google Maps coding under google maps category

September 20, 2008

How to load javascript file on window on load

Filed under: html, javascript — Tags: , — admin @ 7:36 pm

Here is another way to load a javascript file on window on load.

<script type="text/javascript">
window.onload = function () {
var script = document.createElement("script");
script.src = "site/js/3000297746.js";
document.body.appendChild(script);
};
</script>

September 8, 2008

How to redirect 404 to error page?

Filed under: website management — admin @ 11:33 pm

We need to give message to our website user that requesting a page that doesn’t exist in our website. If we don’t think about this or left it as default, user will get error message that produce by the browser. And this is not look professional.

So we need to give a message about what they looking is not exists in our website and give him option to search or go to another page. There are a simple way to do it, by add ErrorDocument info on htaccess file.

First create an error html file, named it as you want, for example 404-error-page.htm. And then edit htaccess file, put this line at last line.

ErrorDocument 404 /404-error-page.htm

Upload htaccess file again to your server. Later if someone looking for a page that doesnt exists in your website, server will redirect into 404-error-page.htm

September 7, 2008

Another software for download video on youtube

Filed under: internet — Tags: , — admin @ 8:16 pm

Youtube has many interesting video for watch. There are many short course video for web design, seo mastering, or photography. You also can find many funny video, song clip or interesting video about life.

For watching a video, we need to open a certain clip or video url using our browser. And wait for browser to download video data from youtube server and then show it on video player.

Of course if you want to watch that video again later, you need to open that url again anda download video data from beginning again. This is uncomfortable for us that doesn’t have good speed and cheap bandwidth.

So i just found a software for download a youtube video into your local PC. You can download it here. happy downloading!

September 1, 2008

How to use Google as proxy?

Filed under: internet — Tags: , — admin @ 1:41 am

Sometime our provider or internet connection at office is blocked by administrator. It is a company policy to disallow employee to open certain sites, for example friendster, youtube, or facebook.

They want the employee focus on their job. But you know what i really not comfortable with this situation, because in my opinion i has respect to my task or job so ill do the best for it. But sometime we need to find a usefull article or maybe just looking around for new relationship with other professional.

I have one trick how to open a site that blocked by your administrator. This way i will use Google Translator as a proxy to blocked sites. Here we are

  1. Simple go to http://translate.google.com.
  2. Input url of the site in Translate a web page section.
  3. Select the source language as Spanish and target Language English.
  4. Click translate

You will get the site is translated by Google. Important the site is not blocked.

August 27, 2008

Technorati

Filed under: web-history — admin @ 8:54 pm

Technorati Profile

August 9, 2008

How to download Youtube video to local Computer or PC

Filed under: internet — Tags: , — admin @ 10:08 am

Many of us looking for interesting video on youtube and find it. We also sometime want to save this video into your local computer or PC for watch again later. I have one trick how to download youtube video to your local PC. Here we are:

  1. find video link on youtube for example i want to download NBA Final Video http://youtube.com/watch?v=Qmp8Dbn9tC4
  2. Go to http://www.clipnabber.com/ for media grabber
  3. Paste http://youtube.com/watch?v=Qmp8Dbn9tC4 into URL on clipnabber
  4. Click on Nab Video button
  5. Wait when loading until you see Video URL http://youtube.com/watch?v=Qmp8Dbn9tC4
  6. Right click on FLV Download Link and select Save Target As
  7. Select folder that you want the video to be saved
  8. And then you can play the video file again using VLC Media Player

Enjoy downloading!

August 2, 2008

Login to multiple Google Talk Account

Filed under: internet — Tags: , — admin @ 10:06 am

Google talk is instan messanger service like Yahoo Messanger or MSN. You need a GMail account to be able to use this service. Using this service you can send instan message to another GMail account.

Defaultly one computer is for one account. So if you want to login to many account in one computer? I will show you a simple step how to do it on your computer.

  1. Create shortcut of Google Talk to your Desktop. Google Talk defaultly located on “C:\Program Files\Google\Google Talk\googletalk.exe”. Right click on this file and the select Send To > Desktop.
  2. Right click on new shortcut on your desktop, and then select Properties.
  3. Change target field into “C:\Program Files\Google\Google Talk\googletalk.exe” /nomutex
  4. And then click OK button.
  5. Now every time you double click this icon, it will open new instance of Google Talk.

I hope this article is helpful for you. Enjoy!

Newer Posts »