Monthly Archive for March, 2006

New social bookmarking / del.icious tutorial

When you work with IT and the Internet, it’s sometimes easy to forget that what is easy and obvious to us, may not be so for “regular” people. My recent feeds tutorial, for instance, was quite successful because of exactly that - because it didn’t assume that people already knew most of the stuff.

And so, I have just written a new tutorial, this time about social bookmarking, using del.icio.us as a practical example. Like the feeds one, this is probably not for you, now reading this blog, but it may be useful for showing to your less tech-inclined friends or family.

Without further ado…

I hope you enjoy it. :)

…and I shall DESTROY THE WORLD!!!

I absolutely loved this guide on how to destroy the Earth. From the intro:

This is not a guide for wusses whose aim is merely to wipe out humanity. I (Sam Hughes) can in no way guarantee the complete extinction of the human race via any of these methods, real or imaginary. Humanity is wily and resourceful, and many of the methods outlined below will take many years to even become available, let alone implement, by which time mankind may well have spread to other planets; indeed, other star systems. If total human genocide is your ultimate goal, you are reading the wrong document. There are far more efficient ways of doing this, many which are available and feasible RIGHT NOW. Nor is this a guide for those wanting to annihilate everything from single-celled life upwards, render Earth uninhabitable or simply conquer it. These are trivial goals in comparison.

This is a guide for those who do not want the Earth to be there anymore.

Long, but a great read. :)

HTML, CSS and tables

In remote times, web designers used HTML <table>s for positioning text on pages, which these days is frowned upon by every single book or tutorial. The proper way is to use CSS for positioning, or any other kind of formatting.

However, many people, aparently, don’t really understand why using tables for formatting was “bad”; they only hear that “good designers use CSS instead”, and, therefore, seem to think that any use of the <table> tag is evil. I believe I’ve even seen a web tool which analysed pages, and complained about any <table> it found (I don’t remember what it was, though). Continue reading ‘HTML, CSS and tables’

AdSense curiosities

It’s interesting to observe how well the “contextual” part of AdSense works.

For instance, for my mini-site for yesterday, Chess: basic principles, it’s working very well. Most ads are about chess, chess sets, or board games. I’m pretty impressed by this one.

However, it fails completely for the Portuguese version of the above, Princípios básicos de Xadrez. The ads are in Portuguese, and mostly related to games - cell phone games, soccer games and so on. There isn’t a single ad about chess or board games.

Why is that? The content is exactly the same, only in a different language. Even the meta tags are correct. I believe that, in this case, it isn’t Google’s fault; it’s just that there is nobody in Portugal using AdWords to advertise something related to chess. In this way, I sadly have to admit, we’re a more primitive country: soccer rules here. :( But I digress.

Another one that isn’t working is today’s mini-site, Zombie Types. This one’s in English, so there should be something out there (horror movies, horror games, etc.)… but the ads I’m getting, even after half a day, are “public service” ads - the kind they use when they can’t find keywords in the site. And these don’t pay.

This can happen, sometimes, when you put the AdSense code before there’s any content in the site, because it can take some time for "Mediapartners-Google/2.1" (the AdSense bot) to come back to the page, so it’s the page’s initial version that counts. But that was not the case here; the AdSense code was the last thing to be added. Oh well… it should be fine in a week or two.

The power of social bookmarking

Yesterday morning, I completed a new mini-site, Chess: basic principles. It’s a short, 1-page site with some principles for chess openings, intended for “advanced beginners”. As I usually do, I submitted it to several social bookmarking sites.

The results were amazing, much better than I ever got in the past. Digg mostly ignored it, and the Portuguese Digg clones (where the Portuguese version, Princípios básicos de Xadrez, was also submitted) are too small to make a difference. But several others…

Continue reading ‘The power of social bookmarking’

Performancing: Tell a Good Story

A new post in Performancing, called Tell a Good Story, talks about how to make personal blogs more interesting.

Usually, by “personal blog”, people tend to imagine a nihilistic teenager who whines about the absurdity of existence, while writing about what he ate yesterday. And, certainly, many blogs are no more than that. :)

But even a personal, non-thematic blog can be much more interesting than the above example. Even if not of “general” interest (but then, even a thematic blog isn’t of general interest - it’s only meant for those who’re interested in the theme), at least to those who, even though they don’t know the author, have similar tastes and personality. Or simply enjoy reading interesting stories and opinions.

The author’s suggestion is, basically, to tell a good story (which you may already have deduced from the title :)) When talking about your life, for instance, you can be original, create mysteries which are only solved at the end (thus causing the reader to read the entire post), have a sense of humor, create a pleasant read. In short, be interesting. Or, alternatively, you can simply say “I did this, then I did that, and then I did that“. Obviously, the former version is much better… but also much rarer.

Really, read the article, it’s a very good one. :)

An Anti-Spam gateway #11: amavisd-new and Postfix

(NOTE: this is part of the “An Anti-Spam gateway” series)

Not much longer, now… :)

Add the following line to /etc/postfix/main.cf:

content_filter=smtp-amavis:[127.0.0.1]:10024

and the following lines to /etc/postfix/master.cf:

# amavisd-new
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes

127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o receive_override_options=no_header_body_checks

(re)Start postfix. It should be listening on two ports now: 25 and 10025.

Beware of silent corrections…

I like FeedBurner a lot; it gives me great stats for my feeds, and adds some nice features to them.

However, one of those features can actually be a problem: it silently fixes some errors in feeds. Sounds good, doesn’t it? The problem with silent corrections, however, is akin to the way Internet Explorer displays HTML with errors: because of that, people may not notice them for a while, and unsolved errors tend to accumulate.

However, FeedBurner does complain of problems in feeds when adding a new one, and that’s how I spotted this yesterday; I was adding a new blog’s feed to it (no, I’m not that crazy, this one isn’t mine, it’s just on my server :)), and it complained. The feed didn’t start with the <xml> tag, as it should, but with 2 blank lines; XML feeds must begin with that tag. I checked my other blogs’ feeds, and they all had the same problem.

But it was a simple WordPress 2.0.2 installation, with the default theme, and just a “hello world” post… what was happening? I had, however, enabled 3 plugins first. Disabling them all corrected the problem, so it was a simple case of re-enabling them one at a time and find the culprit. It was one I had copied & pasted from a web interface to subversion, and it had a couple of blank lines outside the <?php ?>.

The problem was that, due to FeedBurner silently “fixing” this in its versions of the feeds, I never became aware of this. It had been this way for weeks.

It’s stuff like this that teaches us that, unlike what would appear at first, it’s better to stop at an error than to silently “fix” it and proceed anyway.

New feeds / Bloglines tutorial

I’d already mentioned the Portuguese version in the previous post, but the English version is ready now as well. So, without further ado…

Feeds - what they are, and how to use them is a short, non-technical tutorial (with lots of screenshots) for using Bloglines (for simplicity, since this is mostly a “howto”) to subscribe to, and read, feeds for the first time.

If you already know how to add feeds to your favorite aggregator, this tutorial is probably not for you. It may, still, be useful for your less technologically inclined friends. :)

(If you prefer, the Portuguese version is also available (and slightly improved) at Feeds - o que são e como usar.)

Quick HTML page creation

A couple of days ago, I needed to create a basic, static HTML page, with mostly text and a couple of images, for another mini-site. I usually create those by hand, using a simple text editor; however, when the page is longer, it can be annoying to remember to close all the tags, replace every accented character with the proper ampersand code (e.g. á is &aacute;), and so on. In other words, it’s tiresome, because you can’t simply write the content.

On the other hand, I tend to dislike WYSIWYG HTML editors, as they, mostly, create “write-only code”. All I needed was for it to do what I said in the paragraph above: create the paragraphs automatically, replace the accented characters, and so on. And, also, create simple, readable, easily editable HTML, without adding unneeded stuff. In other words, what WordPress already does… but I didn’t want to use WordPress for that; it was to be a simple, static page.

I was pleasantly surprised with Nvu. It did exactly what I wanted, and the generated HTML was clean and virtually perfect - so much that, after I generated the initial version, I never touched Nvu again, it’s perfectly readable in a text editor.

(you can find the mini-site here, but, be warned, it’s in Portuguese, though an English version is coming soon.)

I’m guessing that Mozilla Composer (from SeaMonkey) would work equally as well, though I don’t have it installed.

The "Blogging tips" series: Questions?

Now that the “Blogging Tips” series has about 40 parts, I think it’s time to finally complete it - hopefully, soon. I still have some ideas for a couple of parts, but, meanwhile, do you (yes, you) have any questions? About blogging, blogging software, blogging optimization, promotion, SEO, etc.?

Just ask. If the answer is quick and simple, I’ll answer it in a comment (and possibly use it for some kind of FAQ); if it’s more complex, there may be a new post, possibly even part of the series.

Come on, free consulting! :) What more could anyone want? ;)

Old and improved: Spyware Prevention and Removal Guide

To coincide with my 3rd press release :), I updated, and expanded a little, this very blog’s second (and first “real”) post ever, Avoiding and Removing Spyware.

It’s not rocket science, of course, but, just by doing what I’ve written there, and without spending a cent, my Windows XP installation from 2003 (on my home desktop / gaming PC) still “lives”, without the usual “my PC has been getting slower and slower… time for another reformat” crap.




Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal
Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal