Skip navigation.
Home

HTML

Salary Surveys for Information Technology

2008-03-12: a report on Tech Republic. It's done by Global Knowledge

Web dev salary survey on Zeldman's A List Apart

Another popular survey is done by SAGE.

Email Obfuscation and Shielding Script

Here's a perl script that takes email addresses as arguments, and returns javascript code that hides your email address from web spiders. The email address is also linked so it's clickable.

#! /usr/bin/perl

foreach my $email (@ARGV) {

        $email =~ s/@/ @ /;
        $email =~ s/\./ . /;

        @parts = split( ' ', $email );

        print "\n";
        print "document.write('');";
        foreach my $word (@parts) {
                print "document.write('".$word."');\n";
        }
        print "document.write('');\n";
        print "\n\n";
}

Laptops are a Virus Risk: How to Email Safely

It's been seven years since the "I LOVE YOU" email virus of 2000, but these email viruses still manage to infect people. More importantly, email-based trojans are still being used to launch more complex, and subtle attacks. (See Timeline of notable computer virues and worms.)

A contemporary high-risk scenario involves laptops that leave the office, and become home computers in the evening.

Office networks generally have some form of malware detection and quarantine. More sophisticated sites run centralized file scanning and email scanning, combined with restricted user access, to reduce the impact of malware. So, within the office network, when a recognized virus appears, it's contained, and doesn't have the opportunity to destroy the network.

Building a Micro-Business Site

A few people have mentioned that they need a website for their crafts business. This article explains how to get started.

Websites

To open a website, you need to purchase a few separate things, and bring them all together. You can do it yourself, or ask your web host or designer to take care of it. Most will, for a small fee. Here are the things you need:

  • A domain name. foobar.com, for example. You can register these at a "domain registrar." There are many companies doing this; I personally use godaddy.com because they're cheap.
  • A web hosting company. They rent you some space on their web server, to host your site.
  • A web site. This is the actual web site, which is a group of files on the web server. You create this on your own computer, and copy them to the "live" web server.

NVU - text fields for copy-and-paste

Here's how to create one of those text fields with HTML that the user's supposed to copy-and-paste into their page. It's not hard.

Create a form.

Add a Text Area. Give it a name, and set the rows and columns.

From the text area dialog, click on the "Advanced Properties..."

Click on the Javascript tab.

Add a property named "onclick" with the value of "this.focus(); this.select();".

Click OK.

Click OK.

NOTE: I found a serious problem - NVU's code reformatting will cause the html code to break within myspace, because NVU inserts newlines. To fix the problem, you have to save out the source, join all the lines, and upload the file manually.

HTML Tag Closing Function

User-submitted HTML often contains small markup errors that can affect other parts of the page. The most common are unclosed tags that cause text to be bolded, italicized, or linked all the way down the page. The visual effect is catastrophic, though the error is really minor.

The html_close_tags() function scans HTML code, and generates a string that will close all the open tags. An easy way to use it is like this:

$html = $html.html_close_tags($html);

NVU to Create HTML Code to Insert into Websites

NVU is a free (as in GPL) Hypertext Markup Language (HTML) editor available at nvu.com.

You can use NVU is to generate bits of HTML code that you paste into a web form, like you do to update your profile, or to post an article. This can be done on any site that allows you to post in HTML.

Step by Step

1. Start up NVU.

2. Type in your text, adding any formatting you wish.

3. When you're ready to post, click on the "SOURCE" tab along the bottom of the editing area. You should see a screen with your text, surrounded and interspersed with text that looks like <this>. Those things are "HTML Tags".

Novice's Notebook

This is a repository of "novice" articles, written with the intent of driving more traffic to the site, and getting more ad clicks. It's pretty crass, I know, but the information may be very useful. Some of the content is adapted from the diy notes, and other notebooks, which are a bit rougher than these.

Most of these articles are not authoritative, because they're based on what I'm learning, as I'm learning it.

Syndicate content