Erm's I.T. Girl – Zelna Ellis

Don't fear when Zel is near…

How To Hide Ads On Go-Daddy Free Site

If you have a Go-Daddy free-site this is how you can hide the advertisements to display in the browsers.
It is this simple!

Update your existing CSS files by adding the following code:
/*Hide Go-Daddy Ads on free-site*/
#conash3D0
{
display:none;
}

If you do not have an existing CSS file, it is quite easy to create.
Just follow these steps:

1. How to create a CSS (Cascading Style Sheet) File:

  • Open your favourite text editor.
  • Copy a paste the above code in it.
  • Save the file as, e.g. style.css
  • Upload the file to the root directory or a directory(folder) of your choice to your Web host.

2. How to link a CSS file in your existing Web Pages
Add the following code before the </head> tag in your existing pages.

  • If the CSS file is in the root directory:
    <link rel="stylesheet" href="/style.css" type="text/css" / >
  • If the CSS file is in the same directory as your Web Page:
    <link rel="stylesheet" href="style.css" type="text/css" / >
  • If the CSS file is in another directory, replace the words directoryName with the actual directory name:
    <link rel="stylesheet" href="/directoryName/style.css" type="text/css" / >

Remember to save or upload the files to your Web Host.

28 October 2009 Posted by | Coding, HTML | , , , | Leave a comment

Have a professional looking parked domain site

Intro

Parked Domain

Well I was actually looking around for WordPress Themes for my new website, then Ian Stewart' Launchpad gave me a great idea for making a html template for websites that is not quite ready yet.

When you’re getting ready to launch your website, most of the hosting companies and/or registars offers a parked domain, that can turn your site into an advertising campaign for them. I am also not a fan of the "Under Construction" pages.

Now you can park your domain in style!

You can download this template here. The MD5 Sum for this file is e859db95e43656b1ffc8bd909d87dec8

The fileparkeddomain.zip contains:

  • A Style Sheet: style.css
  • Index Page: index.html
  • RSS Feed File: mysite.rss
  • Readme File: readme.txt
  • Images (Sub-Folder)
    • RSS graphic: rss-icon.png
    • Footer graphic: bar.gif
  • Screenshot: parkeddomain.jpg

I’ve implemented it on my new Web site. Preview it here.

DomainParking Features

  • Professional design and typesetting.
  • Integration with Feedburner
  • GPL Licensed – you can do with it what you want to.

DomainParking Editing Instructions

RSS Feed File
For more info, read the RSS 2.0 Specifications.
You can update the file with your information in any text editor. Remember to save.
Upload the file to your host.
Validate it at http://validator.w3.org/feed/.
Enter the full URL of your RSS file into the form. Click the button. If there are any errors, the validator will tell you about them. Otherwise, it will validate your file.
Subscribe at http://feedburner/google.com, follow the instruction to get your feedburner links.

The Index File
You can update the file in your favourite html editor or text editor.
Update the page's title with your own.
If you want to use a favicon, make sure to upload your icon to the host and remove <-- Favicon disabled, as well as -->.
If you want to use a logo, make sure to upload your logo imagefile to the host and remove <-- Logo disabled, as well as -->.
In <h1><span>You’ve found </span> zellism.</h1> replace zellism with your name.
In the subscribe-options division, replace the feedburner URI with yours.
Save your file and upload your file to your host.
Head over to http://validator.w3.org/ to validate your file.
Enter the URL of your HTML file into the form. Click the button. If there are any errors, the validator will tell you about them. Otherwise, it will validate your file.

Conclusion

Now you can have a professional looking parked domain theme.
If you need any more help, feel free to leave a comment on this post or contact me by e-mail.
Hope this will help you to have a professional looking site while it is "UNDER CONSTRUCTION".
Best of luck with your website!

27 October 2009 Posted by | HTML, Tutorials | , , , , , , , | Leave a comment

DIY – How to Register your Domain name yourself.

Intro

After a friend call me today and ask me to assist them to register their domain name, I’ve decided to write a post and tell you exactly how you can register your own domain name in a few minutes.
Well in South Africa you can easily pay between R150 to R200 to register your .co.za name, by using other companies. If you do it yourself, you pay only R50.00.

Take Note: If you are an eligble Non-Profit organisation in South Africa, you do not need to pay for domain name. It’s for FREE!

Step 1- Check if your domain name is available.

For Non-Profit Organisations – .za.net or .za.org

  • Check if your domain name is available here.
  • Type YourDomainName.za.net or YourDomainName.za.org in the provided text box.
  • Press Enter.

For .co.za domain names.

  • Check if your domain name is available here.
  • Type in the domain name in the text box.
  • Click Enter.

Step 2 – Obtain DNS Nameserver’s name and IP Addresses

You need a minimum of two independant DNS Nameserver names and IP Addresses.

Use your hosting company

  • Obtain information from your Web hosting company.
  • Note: You need to add your domain name at your host company as a domain or add-on domain before you can proceed.

Use EveryDNS

  • Login or Signup at EveryDNS.
  • For New users: Just choose an username, enter your e-mail address, and passwords for EveryDNS, and click Signup.
  • Enter domain name under Add new domian:(basic) e.g. yourdomainname.co.za or yourdomainname.za.org
  • Click the >>(basic) button.
  • Your domainname.co.za should appear now under the Primary Domains
  • EveryDNS Domain Name Server Details:
    Domain Name Server 1: ns1.everydns.net IP Address: 208.76.62.100
    Domain Name Server 2: ns2.everydns.net IP Address: 78.129.207.168
    Domain Name Server 3: ns3.everydns.net IP Address: 208.76.63.100
    Domain Name Server 4: ns4.everydns.net IP Address: 208.76.60.100
  • See note how to update EveryDNS with your Web Hosting details.

Step 3 – Register your domain name

For Non-Profit organisations – .za.net or .za.org

  • Read the ZA Nic Policy for Domain Registrations carefully.
  • If you do agree with the terms, follow these steps:
    Fill in the Registration Form.
    It is pretty straight forward.

    At the Technical Information section you will fill in your Domain Name Servers
    You must fill in at least 2 names.
    Name1: Domain Name Server 1
    IP1: IP Address for Domain Name Server 1
    Name2: Domain Name Server 2
    IP2: IP Address for Domain Name Server 2

  • Double check that the information is filled in accurately.
  • If you do agree with ZA Nic Policy for Domain Registrations click Submit.
  • If there are any errors resulting from the submission of your request, ZA Nic will reply to you by e-mail. Follow the steps again until your request is accepted.
  • It can take a few days before you will get a reply from ZA Nic. You can always check on the Status Page for where your request lies in the queue.

For .co.za Registrations

  • Download the application form here.
  • Open this document in your favourite text editor and complete the details.
  • Replace YourDomainName.co.za with your actual domain name
  • Only fill in, do not delete any text!!!!
    Section 1:
    1a. Complete domain name: YourDomainName.co.za
    1b. Action – [N]ew, [U]pdate, or [D]elete : N

    Section 2:
    Enter your details accurately.
    2a. Domain Registrant: Your Name and Surname or Organisation name
    2b. Registrant Postal address: P.O. Box 111, Town, Postal Code
    2c. Registrant Street address: Street Address, Town, Postal Code

    2e. [I]nvoice or [A]ccount (Default I):I
    2f. Organisation to be billed or account no. :Your Name and Surname or Organisation name
    2g. Email to send invoices to: Your e-mail address

    Item 2i must contain the Postal Address for Tax Invoicing purposes.

    2i. Invoice Addr: Postal Address, Town, Postal Code

    2j. Registrant Phone No.: Telephone No.
    2k. Registrant Fax No. : Fax No. – can leave blank if you don’t have one.
    2l. Registrant e-mail : Your e-mail address

    2n. VAT No. for 2f : Fill in VAT No. or leave blank

    Section 3: You can leave as is.

    Section 4: Fill in the details of the Administrative person. If there is not a person appointed, fill in your details.
    Section 5: Fill in the details of teh Technical person. If there is not a person appointed, fill in your details.

    Section 6: You need to fill in a minimum of 2 names. e.g.:
    Section 6a: ns1.everydns.net
    Section 6b: ns2.everydns.net
    Replace the names with your Domain Name Server names

    Section 9 – Here you can fill in some descriptions in about what the website will be about
    E.g.
    9a. : Commercial

    Section 10 – Fill in the address as stated in Section 2c.

  • Double check that the details are filled in correctly and Save.
  • OK, now you are ready to submit your request.
  • Select all the text in this document, and copy it.
  • Fire up your e-mail program.
  • Compose a new message. Make sure it is in Plain Text Format.
  • To : coza-admin@co.za
  • Subject: New domain YourDomainName.co.za
  • In the body of message delete everything if necessary.
  • Paste
  • Click Send.
  • It will take approxiametly 5 minutes before you will get a reply from Uniform SA.
  • If all is fine you will receive a message with the subject COZA: OKAY: New domain "YourDomainName.co.za" and an invoice in another message.
  • If there were any errors you will receive an e-mail message stating the error. Correct the error and follow the steps until you succeeded.
  • So all what is left for you to do, is to pay your R50.00 to UNIFORM SA.
  • Their bank details is on their site as well as in the Invoice (sent by e-mail to you).

Note for EveryDNS users:

  • Once you setup a hosting plan with a provider (Host4Africa, Hetzner, Gridhost, etc – there are plenty to choose from), they will provide you with a Shared IP Address.
  • From EveryDNS, login and select your website.
  • Update Your Records: Replace YourDomainName.co.za with your actual Domain Name.
    1. Fully Qualified Domain Name: YourDomainName.co.za
    2. Record Type: A
    3. Record Value: Shared I.P. Address provided by your Web Host company.
    4. Click Add.
    5. Fully Qualified Domain Name: www
    6. Record Type: CName
    7. Record Value: YourDomainName.co.za
    8. Click Add.

Conclusion

Well, in a few easy steps you can register your domain name yourself.
Since I prefer to have total control over the DNS Settings, I prefer to use EveryDNS for local (South African) domains.
For .com domains I prefer to use GoDaddy. It costs $10.69USD or lower.

25 October 2009 Posted by | Domains | , , , , , , , , , , | 3 Comments

Backup Entire Registry in Windows XP

Note: You can create a System Restore Point instead.

Backup registry

From the Start menu

  1. Select run
  2. Type: regedit
  3. Click OK or press Enter
  4. From the Registry Editor select My Computer
  5. From the Registry Editor’s menu select File | Export
  6. In the Export Registry File window, choose a location to save the file in.
    Note: I recommend that you save the file to your Desktop or C:\ drive, so that it easy accesible if you do run into problems later.
  7. Enter a name for the backup file in the File name textbox.
    Note: This file name is for you to remember what the exported registry file is for. Since you are backup up the entire Registry I recommend that you use the following filename: Full Registry Backup.
  8. Click the Save button.

A Registration File with a REG file extension will be created in the location you chose in Step 6 and with the file name you chose in Step 7.

Watch the video clip here.

19 October 2009 Posted by | Tutorials | | Leave a comment

VB.NET – Catch error messages from Process

In previous posts, how to run MySQL scripts and add local users and groups with net command in VB.NET, it did not catch any errors from the child processes running.

In this post, you will see how easy it is to catch those error messages.

Download code (PDF) here.

In this example, it will display message "Process Completed" or the "Error message" in a label on the GUI.

Process

Process

Here is the code snippet:
Private Sub RunTheCommand(ByVal TheCommand As String, ByVal TheArguments As String)
     Try
          Dim proc As New Process
          Dim err As String = ""
          'Clear any messages in the GUI.
          lblError.Text = ""

          proc.StartInfo.FileName = TheCommand
          proc.StartInfo.Arguments = TheArguments

          'StartInfo.UseShellExecute must be False when StartInfo.RedirectStandardError = True.
          'Otherwise when reading the stream from StandardError will throw an exception.
          proc.StartInfo.UseShellExecute = False
          proc.StartInfo.RedirectStandardError = True
          'Don’t show command prompt window.
          proc.StartInfo.CreateNoWindow = True
          'Start process
          proc.Start()
          'Read the error stream (synchronously) first to the end before
          'waiting for the child process to exit – to avoid a deadlock.
          err = proc.StandardError.ReadToEnd
          proc.WaitForExit()
          proc.Close()

          'Display errors on the GUI if any
          If err = "" Then
               lblError.Text = "Process Completed"
          Else
               lblError.Text = err
          End If

     Catch ex As Exception
          MessageBox.Show(Err.Description, "Process Error", _
               MessageBoxButtons.OK, MessageBoxIcon.Error)
     End Try
End Sub

Happy Coding 🙂

17 October 2009 Posted by | .NET & MySQL | , , , , | Leave a comment

Make a plan

Hello, is this the South African Police?”
“Eish-Yes. What you want?”
“I’m calling to report my neighbour, Hendrik van der Merwe! He is hiding dagga inside his firewood.”
“Eeeh-Yes…Thank you for your co-operasheen and informasheen in combating crime and violence, in our society suh”
The next day, the SAP descends on Hendrik’s house. They search the braai lapa where the firewood is kept. Using axes, they chop open every piece of wood, but find no dagga. They shout and swear at Hendrik and leave..
The phone rings at Hendrik’s house.
“Hey, Hendrik! Did the SAP come?”
“Ja!”
“Did they chop your firewood for the braai tonight?”
“…Ja….”
“Happy Birthday Boet!”

15 October 2009 Posted by | Jokes | , , , , | Leave a comment

Rugby: ABSA Currie Cup Final Log

The Semi-Finals:
Semi Final 1 = Sharks vs Cheetahs
Semi Final 2 = Western Province vs Blue Bulls

ABSA Currie Cup Final Log Standings:

Teams
P
W
L
D
PD
Points
The Sharks
14
12
2
0
193
54
Vodacom Western Province
14
10
4
0
219
50
Vodacom Blue Bulls
14
9
5
0
176
46
Vodacom Cheetahs
14
8
6
0
205
40
GWK Griquas
14
8
6
0
-43
40
Xerox Lions
14
7
7
0
99
37
Platinum Leopards
14
1
13
0
-324
6
Boland Cavaliers
14
1
13
0
-525
5

11 October 2009 Posted by | Rugby | , , , , , | Leave a comment

VB.NET Run MySQL Script

To run a MySQL Script in VB.NET has one trick: The command window must stay open while the script is running.

Here is an example of the arguments string to pass to the cmd.exe:
"/K ""mysql.exe"" " & "-h hostname -u username -ppassword < filename.sql"

Explanation of some of the arguments string:
/K = Carries out the command specified by the string but doesn’t terminate – cmd window remains open.
Then the MySQL values:
hostname = MySQL Server hostname
username = MySQL username
password = MySQL user’s password
filename = MYSQL script – must be full path.

Note:
I’ve encountered errors when one doesn’t specify the time in process.WaitForExit().

Code Snippet:

Private Sub RunMySQLScript(ByVal TheArguments As String)
     Try
          Dim proc As New Process
          proc.StartInfo.FileName = "cmd.exe"
          proc.StartInfo.UseShellExecute = False
          'Don’t show command prompt window.
          proc.StartInfo.CreateNoWindow = True
          proc.StartInfo.Arguments = TheArguments
          proc.Start()
          'Time in milliseconds, can change value to wait.
          proc.WaitForExit(1000)
          proc.Close()
     Catch ex As Exception
          MessageBox.Show(Err.Description, "Run MySQL Scripts", _
          MessageBoxButtons.OK, MessageBoxIcon.Error)
     End Try
End Sub

10 October 2009 Posted by | .NET & MySQL | , , , , | 1 Comment

FNB Online Fraud Warning

FNB Customers Be Aware!

FNB Phising/Fraud Letter

Another poor phising attempt, but unfortunately people are still getting caught out with this. How many times haven’t you received a notice that the bank will never ask for these details in such a matter?

This is the letter I received via e-mail but there are a few things wrong with this letter:

Remember:No bank or financial institution will ever request you to update your details in this way!

7 October 2009 Posted by | E-Mails | , , , | Leave a comment