Roumazeilles.net

Archive for the 'WordPress' category


WordPress and moving from PHP4 to PHP5

(Friday, August 24th, 2007)

WordPress v2.2Some advice provided by Donncha for those who would like to move from PHP4 to PHP5 on a server supporting WordPress exploitation. Nothing big, but it is always good to check the items she points at:

  • Location of PHP.INI
  • Update to mysql and gd libraries
  • Compatibility with WP-cache

What do you do when someone steals your content

(Wednesday, July 4th, 2007)

Authors of a web site sometimes (more and more often) find themselves in the difficult situation where the content of their site is “borrowed” by someone else. I just found a very helpful and detailled post by Lorelle (”What Do You Do When Someone Steals Your Content“) that explains what to do and how to react. My best recommendation to any blog writer.

Fight SPAM and scan books

(Monday, May 28th, 2007)

It is well known that the human brain has pattern matching capabilities much further advanced than those of the best equivalent software programs. This explains that failure rates of OCR (Optical Character Recognition) program may be as high as 1% (or even 2%) of errors, which is requiring later human proof-reading to ensure a reasonable quality for document scans. But when the document is old, badly printed, or degraded, error rates may climb further into the unusable (even more so when we address the scan of thousands of documents like is done by libraries and cultural institutions all over the world).

On another issue, the SPAM problem on the Internet became a major problem: Prorams try to make believe that they are human beings in order to insert advertisment anywhere a user can write (in the messages of a forum, in the comments of a blog, etc). For some time now, it became common that human users must identify themselves by their capacity to recognize a badly written word. Theoretically, this is a very efficient Turing test allowing to differentiate a human from a machine only by the results of their actions. Practically, the abilities of software programs have become so impressive that SPAM is slowly coming back again through those filters named CAPTCHAs (those images that you must read and copy back in order to be identified and approved for a specific action).

The problem appears to be: create CAPTCHA tremendously difficult for the automated software and, simultaneously, bring human beings to the task of checking scans of documents difficult to read by program.

The solution: reCAPTCHA.

reCAPTCHA - example/exemple

The idea is to provide a CAPTCHA service to thousands of bloggers and forum administrators (WordPress, phpBB, etc.) Users are invited to recognize two words specifically difficult to read (profesional OCR programs failed during scans done by Carnegie Mellon University). The user must recognize them both. One is used to check that this is a human being, the other will fill a database of OCR translations that will be used to deliver even more CAPTCHAs and to improve the quality of a document scanned by Carnegie Mellon. Dual core technology: efficiently fight spammers and deliver millions of human users to improve the scan quality of thousands of ancient documents (without using slave labor).

Example of a difficult to read/scan document:

Example of a really difficult scan (reCAPTCHA)

One of the key advantages is that most pro OCR programs can tell when they fail to recognize a character or a word (when they are not confident enough).

WordPress: How to survive being slashdotted or digged?

(Thursday, May 17th, 2007)

Being propulsed to the home page of a famous web site like SlashDot or Digg is intensely satisfying for the author of a blog, but it usually results in an intense traffic storm for your server that may not survive to the typhoon even if it comes from friends.

DownloadSquad grouped some ideas on how to optimise your WordPress site around this risk or when you fall under that kind of pressure.

Experiment: Mobile Roumazeilles.net

(Saturday, May 5th, 2007)

I just installed a WordPress plugin to make Roumazeilles.net usable from a mobile phone (WordPress Mobile). If you want to test and tell me about problem, you’ll be thanked.

Display code in WordPress

(Saturday, April 21st, 2007)

WordPress v2.1When, as I do, you want to include some bits and pieces of software code in a WordPress post, it starts to become a serious headache. As a matter of fact, WP has not really been prepared for this and it creates a number of issues. Those I already encountered here:

  • The <?php tend to disappear (unless you start juggling)
  • Some charcaters would not display at all (or badly)
  • The overall presentation is pretty bland if you use <code>

So, I looked for a plugin (nearly everything in WordPress is done by adding on of those marvellous little code gems that can be included in a few seconds into the basic configuration) adapted to this task, easy to install (I don’t want to be stuck with heavy maintenance just for this), easy to use.

Here is the summary of what I checked and my opinion regarding them.
(more…)

Make your favicon easily

(Thursday, April 12th, 2007)

Favicon’s are those little icon files that you place at the root of your web site. They display in Internet Explorer along with your bookmarks, in Opera and Firefox on the address bar near to the address of the site you visit.

Example of a favicon seen under Opera

When you want to produce a favicon for your web site, you probably do not want to loose a lot of time. I selected a small free software that takes a few simple graphics and transforms them in a small icon (it tells you the best choice of size and colors for a true favicon):

Adsen Favicon

Simple and to the point. Exactly what you need in such a case.

YAPB: A photoblog using WordPress

(Monday, March 19th, 2007)

I did not yet have time to evaluate it formally but, on the paper, it seems that YAPB (Yet another photo blog) is a plugin allowing ot easily build a photoblog based upon WordPress (the size of thumbnails is configurable, WordPress themes are still usable, but there is no galery).

One rule: One image, one title, one description.

Worth evaluating. Worth downloading.

Webcron.org: crontab on the web

(Sunday, March 18th, 2007)

In the spotlight:

Webcron is an automated task service at set hours. If you know Unix or Linux you already heard about the Crontab. Webcron is a Web adaptation of this well-known Crontab. But nothing complicated at all!

Webcron allows you to do tasks at set hours by looking for a page on your website. For example, save your database, therefore you only have to prepare a script database_save.php that saves the database to a file. Add then a task to you Webcron to do the http://www.domaine.com/sauvegarde_base.php request.

Very simple and recommended.

Statistics for the RSS feed

(Monday, March 5th, 2007)

I recently checked the log files for my web site roumazeilles.net and I stopped to look at the share of the different tools used by the users of the RSS feeds of the site:


my Yahoo! 3.8% *
NetVibes.com 3.8%
Google 11.5%
BlogLines 3.9%
NewsGator 3.5%
MoreOver 4.6% *
Technorati 6.9% *
Firefox 34.6%
Opera 3.2%
Others 24.2%

* : means that the level had to be evaluated indirectly.

It seems that the FireFox users are clearly in love with RSS feed (independently of the Operating System they use).

Which forum for WordPress?

(Saturday, March 3rd, 2007)

I am currently wondering whether I could add forums to roumazeilles.net (you can give me your opinion on this). It would extend the possibility of commenting posts with even more freedom since people could even talk to each other on issues choosen quite freely.

Requirements

For this,I started to check what solutions are available for a WordPress web site adminsitrator in order to stay well integrated into the original web log, with an interface as simple as possible, but providing a very good protection against SPAM (even if you nearly never see them, SPAM messages are still a pain in the neck requiring permanent attention and tools to protect the web site against the flood).

Comparison

The table below give a general idea of the characteristics that I tried to check in the various products I found good enough to be detailed.


RS Discuss XD Forum WP-Forum bbPress
Integration of WP themes Undocumented Based upon a xdforum.css file Around 20 files very similar to a WP theme
WP user integration Yes Yes Yes Yes
(with the support of plugins)
Topic lock Yes ? ? ?
Most recent update 2006-08 2006-12 2006-12 2007-02
Still in development
Online help No No No Yes
Support forum Yes Yes. Only comments to 1 blog page Yes
French language No.
Translation is possible in a file
No No.
Translation is possible in a file
Protection against SPAM Uses WP words Yes.
Still sensitive to lurkers (registered users, not willing to post)
PHP support PHP5 (5.1.0RC1)
PHP4-compatible

Others

Conclusion

For the time being, I would favor bbPress because it is supported by a very active community and because -even if edges are still rough- rapid progress can be observed going in the right direction.

See also

List of plugins for WordPress forums.

WordPress 2.1.1 – Important security advice

(Saturday, March 3rd, 2007)

WordPress v2.1If you have installed WordPress v2.1.1 (precisely this version), you should urgently download the version 2.1.2.

A cracker succeeded in inserting a malicious code in the downloadable copy of this version and it means that your web site may be open to a vicious attack.

Do not wait and check the WordPress web site.

The most expensive ads on Google

(Monday, February 12th, 2007)

Google sells advertising. There is some of it on my web site pages. Normally, as a web site owner, I don’t really look at the price ads are sold (I don’t buy ads to publicize and market my web site). But, nonetheless, I was curious about the price ads are sold to Google customers. More precisely, I tried to identify the ads that are sold at the higher price.

To scrutiny those, I used AdWords, Google’s tool for vendors; It allows to evaluate prices. The result is nearly shocking if you look at the highest scores. They are systematically grouped in a few narrow categories:

  • Loan financing or refinancing – often to pay college
  • Automobile insurance
  • Attorneys and personal lawsuits

First, we can notice that this is significantly skewed towards the American way of life. But these are obviously related to commercial topics linked to professions and skills that can earn you A LOT of money if you can sell them right (isn’t it the main purpose of any publicity and advertising?)

I collected a list of the most expensive search words I could find.

(more…)

Why login?

(Friday, February 9th, 2007)

If you look at the left-hand side menu on this page, you will notice that there is a link to either register yourself (Register) or login (Login). These links are here to give you the ability to identify yourself when your are visiting the Roumazeilles.net web site. It is a two-step process:

  1. Register yourself, for us to know your pseudo and to know how to recognize you
  2. Login, to identify yourself when you are visiting the web site

But what are the advantages for you? There are several of them.

Once you are identified, you can directly send replies or comments to the various posts. Without further ado, you can help other readers with your experience relating to an existing post that you are just reading. Just click on the comment link you will find with each post/article. If you are identified and reading the special page for a post, you will also see a large empty box to type your comments.

When you are identified, you have access to the web site administration (Site Admin). One important possibility here is that you can write a new post/article. It will be submitted for approval and may end in the web site front page, like some other people did. In that case, your name (or pseudo-name) will appear along with the post/article.

If you are worried about providing personal details, don’t. We request only a very limited amount of data. The only compulsory information is a username (or pseudo) that you can choose freely and an email address that is not shown to the visitors. If you indicate a web site address, it will be associated to your username any time it is displayed (isn’t it a nice advertising feature for your own blog?). You will be provided a password that will protect your access rights, and that you can modify later by accessing your account.

Summary of the possible actions (available from the menu)

  • Register to register yourself (and choose you pseudo)
  • Login to identify yourself using your pseudo and password
  • Logout to leave the site
  • Site Admin to submit a new post or modify your account

CSS: Combining styles

(Tuesday, February 6th, 2007)

CSS (Cascading Style Sheets) are a very powerful way to apply styles to an HTML page. It has the advantage of removing most of the formatting (styling) and putting it in a single location. However, in my first tries I tended to create a lot of styles which where very similar one to each other.

For example, I would write:

  1. p {
  2.         margin:0px 10px 5px 10px;
  3.         font-size:13px;
  4.         font-family: Arial, Helv, Helvetica, Geneva, sans-serif;
  5.         color: #000000
  6. }
  7. pre {
  8.         margin:0px 10px 10px 10px;
  9.         font-size:13px;
  10.         color: #000000
  11. }
  12. ol {
  13.         font-size:13px;
  14.         font-family: Arial, Helv, Helvetica, Geneva, sans-serif;
  15.         color: #000000;
  16. }
  17. ul {
  18.         font-size:13px;
  19.         font-family: Arial, Helv, Helvetica, Geneva, sans-serif;
  20.         color: #000000;
  21. }

I wanted to improve and optimize all this. It took me several steps to get it. The first (nearly obvious one since it is described clearly in all CSS tutorials and books) was to group exactly identical styles (like ul and ol, in my example), leading to the following:

  1. p {
  2.         margin:0px 10px 5px 10px;
  3.         font-size:13px;
  4.         font-family: Arial, Helv, Helvetica, Geneva, sans-serif;
  5.         color: #000000;
  6. }
  7. pre {
  8.         margin:0px 10px 10px 10px;
  9.         font-size:13px;
  10.         font-family: Courier, "Courier New", monospace;
  11.         color: #000000;
  12. }
  13. ul, ol {
  14.         font-size:13px;
  15.         font-family: Arial, Helv, Helvetica, Geneva, sans-serif;
  16.         color: #000000;
  17. }

No big deal, but it is reducing the amount of redundancy.

After that point, I was left in the dark with trying to group styles which where not exactly identical and so could not obviously be grouped. What I needed was to understand that a style can be defined in separate (additive) declarations, like:

  1. p {
  2.         margin:0px 10px 5px 10px;
  3.         font-family: Arial, Helv, Helvetica, Geneva, sans-serif;
  4. }
  5. p {
  6.         font-size:13px;
  7.         color: #000000;
  8. }
  9. pre {
  10.         margin:0px 10px 10px 10px;
  11.         font-family: Courier, "Courier New", monospace;
  12. }
  13. pre {
  14.         font-size:13px;
  15.         color: #000000;
  16. }

In the spotlight:

Now, it becomes nearly obvious how to combine styles even when they are not fully identical: Group what can be grouped, keep the rest separated.

  1. p, pre {
  2.         font-size:13px;
  3.         color: #000000;
  4. }
  5. p {
  6.         margin:0px 10px 5px 10px;
  7.         font-family: Arial, Helv, Helvetica, Geneva, sans-serif;
  8. }
  9. pre {
  10.         margin:0px 10px 10px 10px;
  11.         font-family: Courier, "Courier New", monospace;
  12. }
The base CSS for my web site is freely readable and you can study it following the link: roumazeillesv5.css

The final code for my example is then:

  1. p, pre, ul, ol {
  2.         font-size:13px;
  3.         color: #000000;
  4. }
  5. p {
  6.         margin:0px 10px 5px 10px;
  7.         font-family: Arial, Helv, Helvetica, Geneva, sans-serif;
  8. }
  9. ul, ol {
  10.         font-family: Arial, Helv, Helvetica, Geneva, sans-serif;
  11. }
  12. pre {
  13.         margin:0px 10px 10px 10px;
  14.         font-family: Courier, "Courier New", monospace;
  15. }

15 lines instead of 21, nearly no redundancy left (none except what I chose to keep for readability); This has been leading to significant simplifications of my style sheets. I hope it will be the case for you too.

Why you want to start your own blog

(Saturday, February 3rd, 2007)

Some time ago, most people would not even think about creating a web site. Today, it became so easy to do (see another post coming soon) that the only question is not how, but why. Consequently, I decided to give you a few of the common ideas that led most web site designers and bloggers (even amateur ones):

In the spotlight:

  • Initially, because you have something to tell. Of course, you should start only if people usually ask you about something and consider that you have something interesting to say about it. If it is not the case, you may be led by the will to become this kind of expert or reference person on an issue you like.
  • Because you can. We do a lot of things just because we can, not for very complex reasons ;-)
  • Because being recognized expert on a field may attract some interesting job that you could not consider in any other way. I remember that Tom’s Hardware was started by a medical student who had some understanding of technology and hitech gadgets. He moved from Medecine to Technology.
  • Because -if you do it well- you may earn a neat income. Most blogs do not bring any money. However, some are quite a neat source of money. A few thousands of visits per day (easily reachable if you are persistent enough to produce at least 100 posts per year) will be easily monetized to a few hundred dollars per year with the help of Google AdSense or other polite/discreet advertising.

Of course, you need to spend some time to it. But, this is not a lot. For many people browsing the Internet is already a daily activity. Spending a few minutes to keep a log of your activities or researches would be easy. Spending a few hours a week to write about your hobby is usually a neat way to ensure that your knowledge is understandable and that you can share it with others. In some cases, you will even notice that some of your friends will go to your web site before asking you for details that will make the matter for further posts (I often re-use some of my emails into posts).

Will 2007 be the year of your web site?

Your blog in 6 minutes

(Friday, February 2nd, 2007)

You want your own blog? After all, it’s so easy. There are many solutions for this including:

As a matter of fact, with the second solution, you will find all tools already installed and you can start writing posts immediately.


http://www.roumazeilles.net/

Copyright (c) 1999-2009 - Yves Roumazeilles (all rights reserved)

Latest update: 8-sep-09

Search provided by Google.com
Roumazeilles.net
Roumazeilles.net