Archive for the ‘domainname’ Category

My Yahoo Small Business Webpage was active yesterday, but today it is not. Any idea why?

Wednesday, February 3rd, 2010

I signed up for my domain name on Domainname.com, and yesterday my website was active, but today it is not. Any idea why?

maybe because it’s friday.

How can I enable clean url section in Drupal 6?

Sunday, January 17th, 2010

I want my url section like this: www.domainname/category/page title or url/article number/, what should I do in drupal 6 to enable this thing?

enable clean urls: http://YOURSITE/admin/settings/clean-urls
Install path module, after this you can manually give to your nodes manual paths.
For automating this process you need to install pathauto module (it will require token module).
Setup correctly after installing pathauto module in http://YOURSITE/admin/build/path/pathauto

p.s. Visting #drupal-support irc channer at irc.freenode.net will give to your more faster answers…

Ftp swf html question. First time uploading into server.?

Saturday, December 12th, 2009

I have upload my glash movie the publish html and a javascript into my host server. When I want to pull up my site, I have to either type in index.html or index.swf at the end of the domain name… How do I go about fixing this so that it can be viewed at just the domain name.

example

I have to put
www.domainname.com/index.fla
to get into my site..

You can edit the .htaccess file placed in your wwwroot directory and add the line:

DirectoryIndex index.html index.htm index.php

Using this line you can specify (the order in) which documents are looked for when no document is specified (ie. just the domainname or just a folder within your domain).

If the file doesn’t exist (make sure you are viewing hidden files as well with your FTP client), you should just create it.

How can i cache my site with www.domainname.com ?

Thursday, December 10th, 2009

My site is cached non.domainname.com
But i want to cache it with www.domainname.com
How can i do it.
Please give me right answer

you have to 301 redirect non.domainname.com url to www.domainname.com url. Get a google webmaster tools account for your site and there specify www.domainname.com as your preferred domain. Get some quality backlinks for www.domainname.com and update your site frequently

So I’m new to web hosting…and I just bought a domain at Godaddy.com?

Monday, November 30th, 2009

Heres my stupid question:

How do I edit the page?

Also, how do I add pages to the website? Like domainname.com/newpage?

You bought the domain name. Now you have to get it hosted at a hosting service of your choice.

Hosting Info:

Free dns services to the internet community: http://www.everydns.com/
Web Hosting Jury: http://www.webhostingjury.com/
http://www.hosting-shopper.com/
http://www.rankpulse.com/www.siteground.com
http://b2evolution.net/web-hosting/top-quality-best-webhosting.php

Useful Tools/Info:

How to Register Your Own Domain Name: http://www.thesitewizard.com/archive/registerdomain.shtml
Web Design Tips: http://www.webweaver.nu/html-tips/
http://hapedit.free.fr/tools.php
Webmaster Frequently Asked Questions: http://www.thesitewizard.com/faqs/

SEO: Does www. vs non-www. really make a difference?

Sunday, November 15th, 2009

Example: Index page: www.domainname.com/articles
if you type with www. or with out www, you are taken to that index page.

However, if you’d like to read an article with out the www, you are taken back to the index page.
Example: if you type domainname.com/articles/baseball_coaching.html with out www, you taken back to the index page.

Would this be looked at as duplicate content?

According to Google, as long as you choose one and stick with it, there should be no adverse impact on your page rank.

If you use both www. and direct, the search engine may see one of the sites as a mirror, therefore decreasing the page rank of both or, worst case, de-listing you.

You can add a simple .htaccess redirect to ensure that one goes to the other without a problem; also, using Google’s sitemaster tools you can specify which one to use in the sitemap tool.

How to change a Javascript File (.js file) with external values?

Wednesday, November 11th, 2009

I need the code for the Javascript file that would enable it to be change with out chaning the JS file like Google adsense goes.
I just need it to change the background colour.

Example Code:

<SCRIPT language="JavaScript">
bg_color = "#FFFFFF";
</SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="http://www2.domainname.com/file/file.js"></SCRIPT>

Thanks, Chris

<!– Paste this code into an external JavaScript file named: colorChange.js –>

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com

var sixteen;
var one;
var red;
var green;
var blue;
var colorCode;
var inputType = "dec";

var ralpha = "0123456789ABCDEF";
var temppos;
var rnumber;
hexArray = new Array();
hexArray[0] = "0";
hexArray[1] = "1";
hexArray[2] = "2";
hexArray[3] = "3";
hexArray[4] = "4";
hexArray[5] = "5";
hexArray[6] = "6";
hexArray[7] = "7";
hexArray[8] = "8";
hexArray[9] = "9";
hexArray[10] = "A";
hexArray[11] = "B";
hexArray[12] = "C";
hexArray[13] = "D";
hexArray[14] = "E";
hexArray[15] = "F";

rhexArray = new Array();
rhexArray[0] = "F";
rhexArray[1] = "E";
rhexArray[2] = "D";
rhexArray[3] = "C";
rhexArray[4] = "B";
rhexArray[5] = "A";
rhexArray[6] = "9";
rhexArray[7] = "8";
rhexArray[8] = "7";
rhexArray[9] = "6";
rhexArray[10] = "5";
rhexArray[11] = "4";
rhexArray[12] = "3";
rhexArray[13] = "2";
rhexArray[14] = "1";
rhexArray[15] = "0";

function d2h(number) { //converts a decimal number to hexadecimal
sixteen = Math.floor(number/16); //value in the 16s position
one = Math.floor(number-(sixteen*16)); //value in the 1s position
sixteen = hexArray[sixteen]; //hex representation of the value in the 16s position
one = hexArray[one]; //hex respresentation of the value in the 1s position
number = sixteen + one; //concatenate string values of hex digits
return number;
}

function h2d(number) { //converts hexadecimal numbers to decimal equivalents
if(number.substring(0,1) == "F") {
sixteen = 15;
} else if(number.substring(0,1) == "E") {
sixteen = 14;
} else if(number.substring(0,1) == "D") {
sixteen = 13;
} else if(number.substring(0,1) == "C") {
sixteen = 12;
} else if(number.substring(0,1) == "B") {
sixteen = 11;
} else if(number.substring(0,1) == "A") {
sixteen = 10;
} else {
sixteen = eval(number.substring(0,1));
}
sixteen = sixteen * 16;
if(number.substring(1,2) == "F") {
one = 15;
} else if(number.substring(1,2) == "E") {
one = 14;
} else if(number.substring(1,2) == "D") {
one = 13;
} else if(number.substring(1,2) == "C") {
one = 12;
} else if(number.substring(1,2) == "B") {
one = 11
} else if(number.substring(1,2) == "A") {
one = 10;
} else {
one = eval(number.substring(1,2));
}
return sixteen + one; //return sum of these decimal numbers
}

function changeFgColor(number) { //this function receives the background’s hexadecimal color code
//as a parameter, and then returns a suitable font color that would
//be visible on that background color
rnumber = "";
for(i=0; i <= number.length-1; i++) {
temppos = ralpha.indexOf(number.charAt(i));
rnumber = rnumber + rhexArray[temppos];
}
return rnumber;
}

function changeBgColor() { //this function reads in values from the text fields, parses the text
//as a color code, and then changes the background color
if(inputType == "hex") { //if user has changed the hexadecimal field
document.colorform.hextext.value = document.colorform.hextext.value.toUpperCase();
if(document.colorform.hextext.value.substring(0,1) == "#") { //if user placed "#" in front of hex color code
colorCode = document.colorform.hextext.value.substring(1,7);
} else {
colorCode = document.colorform.hextext.value.substring(0,6);
}
document.colorform.redtext.value = h2d(colorCode.substring(0,2)); //converts to red’s decimal value
document.colorform.greentext.value = h2d(colorCode.substring(2,4)); //converts to red’s decimal value
document.colorform.bluetext.value = h2d(colorCode.substring(4,6)); //converts to red’s decimal value
document.bgColor = colorCode; //change background color
document.fgColor = changeFgColor(colorCode); //change font color to something readable
return false; //exit function
}

//if program reaches this point, the color code is to be based on inputted decimal values,
//as opposed to hexadecimal values

//check red’s value range
if (eval(document.colorform.redtext.value) > 255 || eval(document.colorform.redtext.value) < 0) {
alert("All values must be and less than or equal to 255 and greater than or equal to 0.");
return false;
}
//check green’s value range
if (eval(document.colorform.greentext.value) > 255 || eval(document.colorform.greentext.value) < 0) {
alert("All values must be and less than or equal to 255 and greater than or equal to 0.");
return false;
}
//check blue’s value range
if (eval(document.colorform.bluetext.value) > 255 || eval(document.colorform.bluetext.value) < 0) {
alert("All values must be and less than or equal to 255 and greater than or equal to 0.");
return false;
}

red = d2h(eval(document.colorform.redtext.value)); //convert red’s decimal value to hex
green = d2h(eval(document.colorform.greentext.value));//convert green’s decimal value to hex
blue = d2h(eval(document.colorform.bluetext.value)); //convert blue’s decimal value to hex

colorCode = red + green + blue; //create hexadecimal color code
document.bgColor = colorCode; //set background color
document.fgColor = changeFgColor(colorCode); //change font color to something readable
document.colorform.hextext.value = "#" + colorCode; //rewrite hex’s text field with new color code
}

function changeInput(type) {
inputType = type; //inputType is to determine whether the user is changing the decimal text fields,
//or the hexadecimal text fields
}

function instruct() { //alerts user with instructions
alert("Enter a Red, Green, or Blue value of 0 to 255 \nor enter a 6 digit Hex Color Code using numbers 0-9\nand letters A-F then click Change Background.");
}

_________________________________________________________

<!– Paste this code into the HEAD section of your HTML document.
You may need to change the path of the file. –>

<script type="text/javascript" src="colorChange.js"></script>
_________________________________________________________

<!– Paste this code into the BODY section of your HTML document –>

<div style="width: 300px; margin-left: 30%; background-color: #fff; color: #00009C; text-align: center; line-height: 1.5em; ">
<form name="colorform" onSubmit="changeBgColor(); return false;">
Red: <input type="text" name="redtext" size="3" value="255" onfocus="changeInput(’dec’)">
Green: <input type="text" name="greentext" size="3" value="255" onfocus="changeInput(’dec’)">
Blue: <input type="text" name="bluetext" size="3" value="255" onfocus="changeInput(’dec’)">
<br>
Hex Code: <input type="text" name="hextext" size="7" value="#FFFFFF" onfocus="changeInput(’hex’)">
<br>
<input type="submit" value="Change Background" style="background-color: #00009C; color: #fff;">
<br>
<input type="button" value="Instructions" onclick="instruct()" style="background-color: #00009C; color: #fff;">
</form>
</div>

If I own the DOMAIN NAMES 2007worldnews.com and 2007-world-news.com and 2006-2007.net why dont i show topp 10-

Sunday, November 8th, 2009

I OWN 2006-2007.NET 2006INFO.COM 2006WORLDNEWS.COM 2007WORLDNEWS.COM 2007-WORLD-NEWS.COM WHY IS IT WHEN EVER I GET A GOOD DOMAIN NAME I AM HID AT THE BOTTOM OF RESULTS BUT WHEN I GET A DOMAINNAME LIKE 2006TOPPS I AM AT THE TOPP

Maybe you have no content on those pages? Or you are using cheap SEO tricks that will make your site blocked by search engines.

Wordpress links questions?

Friday, November 6th, 2009

I have created a blog using wordpress on my host server. However each new page I create has a very weird link e.g. the contact page instead of having a simple link like: domainname.com/about/ has a link like domainname.com/?page_id=6

How do I correct this so the links are simpler?

Many thanks

Hi there,

You need to change the permalink structure.

Go to settings and permalinks in your Wordpress control panel and you will be able to change it in there.

Please note you may need to either make your .htaccess file writeable or create one by doing this.

The Wordpress Demystified program at http://www.wordpressdemystified.com will show you exactly how to do this.

Hope that helps, but please let me know if I can do anything else to help.

Jason

Extracting a Particular Text Pattern from HTML Files?

Thursday, October 29th, 2009

I have more than 4000 HTML Files. I need only a particular line from those files.

Each file contains some lines with a same pattern, and I would like to extract only those lines.

The pattern that I would like to extract from all the files looks like: javascript:listen(’http://www.domainname.com’,'http://www.anotherdomainname.com/somefilename.ext’,0)

Can Anybody suggest me a solution for this?

PS: I don’t have a Linux System, hence I need a batch file Script or a kind of software which runs on Windows Platform for obtaining the solution for this problem.

Thanks in advance.

Hi

I understand from your question that you want to find all occurrences of the given pattern, with each occurrence potentially having a unique URL. I also assume that you are only interested in the URL, because you cut off the rest of the text in your example of the pattern. I then assume that you wish to manipulate or use the search results or URLs in some programmatic way.

Assuming then that you have some programming experience, I suggest that you write a program or script that uses regular expressions to find the occurrences. The following regular expression pattern should suffice:

javascript:listen\(’http://\w+.\w+.\w+[\/\w*.]*’

After some brief testing, this pattern found occurrences like:
1) javascript:listen(’http://www.domainname.com’
2) javascript:listen(’http://www.mydomainname.com/test/page.svc’

If this helped you in any way, but is not sufficient, you may read more about Regular Expressions here:
http://www.regular-expressions.info/reference.html

There are many programming languages that support the use of regular expressions, e.g. vbscript, Microsoft .NET C#, C++, VB, etc.