header image with round borders
 

email regex

February 23rd, 2008 @biophonc

if you need a very easy regex, to validate emails - here’s some I wrote:

^(([\da-z���\.\_\-\~]+)\@([\da-z���\.\_\-\~]+)+(\.\b[a-z]{2,}))$

caught a disease - the IE!

February 19th, 2008 @biophonc

once again I have to do stuff for the IE “only” (omfg!) and it’s a not just a pain in the ass it’s like a heart attacking nightmare horror movie. The IE’s debugging capabilities - uhm wait, what debugging capabilities? - are simly not existent and if you try to mention the IE developer toolbar, I could cry. It’s like a mediaval attemp to transform coal into gold. Useless! Well, I’m a Windows user and there are some cool things about the OS itself, but the IE is a piece of shit - a waste of memory - a big fucking mistake in the technical evolution of mankind. The IE must die, disappear from the world of browsers. There is no hope. Not anymore. Not just a little.


CSS 2.1 - some interesting things about specifications

August 7th, 2007 @biophonc

According to the Specification (4.1.3 Characters and case), identifiers can contain only alphanumerical characters [a-z0-9] and - big surprise - ISO 10646 characters U+00A1 and higher, plus the hyphen (-) and underscore (_).

That’s totally new to me and I’ve never ever seen someone who uses special characters like that for identifiers. Actually this is really bullshit, because no Validator supports identifiers like that. For instance: when you are going to use the ampersand character, HTML expects an html-entity and will fail. The Validation will not fail, when you use the copyright sign (�?© = U+00A9) - but it will fail, when you not write the ampersand as html-entity (&)

Here is an example CSS which will be displayed correctly in most browsers (ff2, ie7, opera9, safari3):

.A\&A {
    background-color: #D1EDEC;
    border: 1px solid #92C0DA
}
.A\26B {
    background-color: #D1EDEC;
    border: 1px solid #92C0DA
}
.A\000026C {
    background-color: #D1EDEC;
    border: 1px solid #92C0DA
}

Nevertheless: it will fail the �all mighty� validator.w3.org test, when the class names are assigned to elements (because of the ampersand). I perfectly understand why the ampersand fails, but IMHO I think it shouldn’t be allowed plus [a-z0-9] and hyphens should be enough to describe the class/id.


most webdeveloper should better grow weeds than…

July 9th, 2007 @biophonc

… writing bad and unforgivable code.

There are lot of good looking sites out there and a lot of good looking (w)CMS front and backends but most of the so called *cool* CMS sucks. WP ist cool - I like it - it’s a good piece of code but I think the templating is kinda hard on the nerves sometimes. Well that’s ok, because you can do quite a lot with it - but take Joomla and or OSC for instance and be prepared for a damn rampage.

I don’t know … maybe I should grow botanic things and stop coding instead of them. Why do people code nowadays procedural, when it’s clear they have to recode (or copy and paste) it more than two times. OOP rules - at least most of the time. Sometimes I stumble upon classes which contains 80% echo/print commands. Why not using a good templating system like Flexy or maybe Smarty if necessary?

Why is it so hard to use a validator or RTFM?

Do not misunderstand me - I am not a coding guru - I am just a person who likes good and usable things but the sad thing is - most of the things I am discover are bull****.

Why does so many things sucks anyway?
Like the IE, the media, the fast food throwaway society, the bad smelling people in the streets, Hollywood movies, Sternburger-Beer, ban of smoking in bars, criminalization of graffiti artists, criminalization of soft drugs, less than 25 days of holiday per year, global warming and so on and so forth and etc and pp and yes - you know what I am saying - don’t you?

It’s Sunday.
It is just a livelong dream.
I am sleeping right now and when I wake up - I’ll be surprised how wonderful you all are and everything is :D


nightmare osCommerce + php5

June 25th, 2007 @biophonc

Why:
* do people code in medieval style?
* do people ignore the signs of the time?

I guess I need to find a quick and easy solution to make osCommerce work on php5. *phew*

– 10 minutes later –

here’s some quick stuff which seems to work for the installation:

cd includes
vi php5_enabled.php
$HTTP_GET_VARS 	= isset($_GET) 	? $_GET 	: null;
$HTTP_POST_VARS = isset($_POST) ? $_POST 	: null;
$HTTP_COOKIE_VARS = isset($_COOKIE) ? $_COOKIE : null;

.htaccess


php_value session.use_trans_sid 0
php_value register_globals 1
php_value auto_prepend_file includes/php5_enabled.php

and et voila!

Database Import
The database import was successful!
osCommerce Configuration
The configuration was successful!

but that would have been to easy!

I needed to change also in catalog/admin/includes/application_top.php

// line 131 from $current_page = basename($PHP_SELF); to
$current_page = (basename($PHP_SELF)!='') ? basename($PHP_SELF) : 'index.php';

and now it seems to work :)


Joomla

June 24th, 2007 @biophonc

It looks good. Which means it has a nice UI but for somehow some things seems to me me irrational or not logic and besides that I am disappointed by the amount of table layout stuff. Hello Joomla developer: We are in the mid of 2007 and not in the 90’s!

Well the performance is ok and there are a lot of extensions out there but again: do not use f*****g tables for layout!


Metakeywords Update

May 18th, 2007 @biophonc

Find the updated version + explanation right here.


Another WP plugin: count-google-results

June 8th, 2006 @biophonc

Yay, I was bored and coded a little plugin to retrieve the google results counter. Just put your query between [ googlecount]here[/googlecount] and that’s it. This can be funny or usefull - i guess ;)

Here’s an example:

I guess I’m quite famous because google finds [googlecount]biophonc[/googlecount] Results on »biophonc«. Today there are 1430 results. If the current result is higher than 1430 - I am more famous than the other day :D - otherwise I’m loosing fame :( - However ‘m not linked by that much sites (18 results atm with this query »site: aint-no-soul.com«) but I’m looking forward and hopefully the current result is higher: [googlecount]site: aint-no-soul.com[/googlecount] (is it? I don’t know it yet ;))

Technical note:

The plugin uses curl, so it is likely that you don’t have it on your local apache installed - however: most provider have it enabled/configured with.

Download:

The current version is 0.3 and I’d call it stable.

Installation:

Upload it to your plugin dir, activate it from the backend and it should work.


New Theme called Womenized

June 2nd, 2006 @biophonc

Don’t ask me why, but Damiano called me a womanizer last weekend and this word was allways on my mind until then, so I’ve choosen the probaly most idiotic name ever: womenized!

Anyhow I have to credit someone: The owner of the picture with the very nice woman: Slastyonoff from domai.com because I have asked him once to use this wonderfull picture of Aneli and he permitted it! Thanks mate!

There are still some bugs within the template tags for wordpress, or better said: I have to bug fix some stuff I’ve did. But therefore live journal and open ID users can also post with their ID on my blog;) I love the open ID feature and *big props* to the creator of this wonderfull plugin!

Whatsoever! I hope you like my new WP theme!


new project online

May 16th, 2006 @biophonc

check out WriterShops.com. There are just 51 shops indexed jet, but I think it’s a nice idea and there are a lot of writers who will like my new project when these are some more shops in it ;)


 

footer image with round borders