Do not fall into the error of the artisan who boasts of twenty years experience in his craft while in fact he has only one year of experience - twenty times.

VIM settings for PHP Programming

Friday, December 21st, 2007

This is a religious topic, so let’s get done with it quickly:

colorscheme slate
syntax on
set tabstop=4
set shiftwidth=4
set expandtab

Cheers. :)

My development environment

Sunday, December 16th, 2007

Some of my comrades at work look at me in awe (alright, more like with a “WTF? are you insane” stare) when I tell them that my preferred php ide is Notepad++ (plus one of the proggy fonts). I do use gVim too, when I’m on debian (with fluxbox!).

I wonder, is that really unusual? xD

If I couple my tabbed Notepad++ interface with 2 or 3 explorer windows, I have all I need for web development. I don’t think I have to mention Firefox, and all the incredible extensions available. I really don’t. This post mentions some of the essential Firefox add-ons, and some that I didn’t know at the time I read it.

I know that Zend Studio, APtana, PHP Designer, or PHP Eclipse (this has a specific name I don’t remember), are one of the tools I should be using according to the majority of my fellow programmers. However, all I want is syntax coloring, and perhaps a debugger. So yeah, I’m looking for a minimalist editor that provides debugging facilities for PHP. xD

Forms in CodeIgniter Views

Friday, November 23rd, 2007

When you hand code your (x)HTML and, in addition, your CSS, Javascript, and PHP code; things start to look boring. Very Boring! Repetition is FTL. So we, coders, are always on the look for items, techniques, paradigms, frameworks, etc. that reduce the water in our systems. In other words, make us DRY.

From the perspective of an XHTML hand-coder and CodeIgniter user, a form generator *could* be useful in the sense of doing more in less time. This is a simple passive code generator. It takes into account what you would usually put in an “Add”, or “Edit” form. The point here is to write a bit of information, and then, modify the result.

Continue reading »

Blog favrik.com version 3!

Thursday, October 25th, 2007

By no means complete. And that is fine.

Changes and justifications

  1. Improve navigation. Previously, there was no explicit navigation options.
  2. Attempt to reduce bounce rate by increasing the size of display for the categories and recent articles lists. That is, if a visitor comes to the front page, her next click should be to an on-site link. I write for myself, but is interesting to see if the changes I did affect this rate.
  3. Added some colors to try to make the theme less boring and provide easy identification of content zones.
  4. Added random quotes. A feature requested by the client (that would be me). Let’s see if there are some refreshs. xD

Previous versions

Version 1.

Version 2.

So far, the only thing I’m sure of, is that I will be changing the design in 1 to 3 months from now. I like it how it is now. About 90% complete. But that missing 10% will be the most painful.

Accessibility and why should I care

Wednesday, August 16th, 2006

I decided to make this site accessible. Wonderful resource for this matter. In the beginning I said: “I don’t care if not everybody can read my website”. So selfish, and incomprehensive. You have to put yourself in the shoes of others to understand. Of course, for most people it would be safer not to encounter this site. (^_^) But this is great as an exercise. I clearly see myself using accessibility in the near future. o.o”

Doctype

WP uses XHTML 1.0 Transitional.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>


<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>

Language

I mostly use english (en), and spanish (es).

For XHTML 1.0 Strict
<html xmlns=”http://www.w3.org/1999/xhtml” lang=”en” xml:lang=”en”>


For XHTML 1.1
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en”>

Meaningful page titles.

WP accomplishes this fine.

Providing additional navigation aids.

In WordPress this is implemented by a plugin. From the ones listed at the WP forum, and the trac ticket; the most appealing to me is META Relationship Links. You can dowload it.

Presenting your main content first.

Hehe, with CSS, this is truly easy!! And since my navigation div is using absolute positioning: no worries!

To be continued…


Old Articles »