|
If you didn't notice it before:
Today is the "Kiss-Day".
So if you are in love, have a great day. ;-)
But if not, please notice that KISS could also be just another abbreviation - Keep It Simple, Stupid! |
sebastian@nanofortnight:~$ fortune hacker, n.: Originally, any person with a knack for coercing stubborn inanimate things; hence, a person with a happy knack, later contracted by the mythical philosopher Frisbee Frobenius to the common usage, 'hack'. In olden times, upon completion of some particularly atrocious body of coding that happened to work well, culpable programmers would gather in a small circle around a first edition of Knuth's Best Volume I by candlelight, and proceed to get very drunk while sporadically rending the following ditty: Hacker's Fight Song He's a Hack! He's a Hack! He's a guy with the happy knack! Never bungles, never shirks, Always gets his stuff to work! All take a drink (important!)
Free of any content - thanks to Toni.
Today it's just another trip through the regular expressions on a PHP example. I had to replace the <input>-tags in HTML by <span>-tags because of html2pdf (which is another story *g*).
Let's begin. My <input>-tags are in the format
<input name="$NAME" value="$VARIABLE" style="margin-left:60px;">and should be
<span>$VARIABLE</span>
On the first run I will replace all <input by <span:
$HMTL = ereg_replace('<input', '<span', $HTML);
After it I delete all name="$NAME" - where $NAME contains alphanumeric characters, a '_'
or a space:
$HTML = ereg_replace('name="[a-z||0-9||_]*" ', '', $HTML);
Furthermore I need to remove the style=, because I don't need it in the output any more. The
value of margin-left: could be only any numeric character, so I use:
$HTML = ereg_replace('style="margin-left:[0-9]+px;"', '', \$HTML);
Then I write the correct value. I devide the string into 3 parts. Part one is
value=", the second part is my correct value (my regular expression) and the
last part is the ending ". My value could be any alphanumeric character and
the characters _ . : - and a space. After it I write the value between the <span> tags:
$HTML =
ereg_replace('(value=")([A-z||0-9||_||\.||:||\ ||-]*)(")',
'>\2</span', $HTML);
In the end I will try to set a fancy output:
$HTML = ereg_replace('<span >' , '<span>' , $HTML);
$HTML = ereg_replace('</span >', '</span>', $HTML);
In most of cases you'll need to escape the " in your ereg_replace functions (if you really use it to replace something of HTML code)...
If you want to have an additional look at something about regular expressions I suggest the manpage of awk.
It's over now. The Grimme Online Award 2006 in the category
information goes to
Heise has got an article about the Grimma Online Award and also the Wikipedia has got one about the event and its history.
Spreeblick gets the award because it shows the possibility of the genre at best.
"Spreeblick ist kein Kunstwerk, remixt aber Versatzstücke der Popkultur auf intelligente Weise zu etwas völlig Neuem. Spreeblick ist kein Diskussionsforum, und doch entstehen in den Kommentarfeldern seiner Beiträge Debatten von besonderer Qualität."-- comments of the jury
The Grimme Online Award will be given today around 11 PM to the winners in the categories. The guys of the award nominated in the last days two further webpages - one of them is heise news.
The guys of kuechenradio.org (nominated in the category culture and entertainment) allready know that they will not win. It's a pitty, because their podcast is really good... :-/
Another highlight in the following months could be happen on focus online. Toni Mahoni will produce there comments around the WM2006 daily (sometimes with guests).
Additionally he will also make his weekly vodcast for spreeblick.com. So I think the WM could be some kind of funny nevertheless. ;-)
Today it's Ascension - but it's also the birthday of a very famous dog: Goofy
Goofy first appeared May 25, 1932 in Mickey's Revue. So it's his 74th birthday today.
We congratulate Goofy and wish him all the best and a long life without any big mistakes. ;-)
Today I read the article about computer science in the german Wikipedia. Really interesting. There exist also a chapter about computer science and our society with the hint that we have got the year of the computer science 2006.
At the moment where I published this blog entry, the page about it doesn't exist and almost
the half of this year is reached.
So next try: I had a look at the english Wikipedia about
computer science and I figured out
that there doesn't even exist a link to the year of the computer science. Great.
To show you at least one other example I searched the Wikipedia page of 2006, which list all big events in this year and at least the Mozart-year has its own wiki page in the german Wikipedia.
Intersting is also that the english Wikipedia doesn't list 2006 as the year of computer science, but as a year of desert and desertification; the year of Rembrandt and Tesla and so on...
I got confused about all this stuff. So think about this all and about the media and their point of view.
Update (some hours later): I almost forgot to name the
official webpage of the year of computer science.
And now: Good bye everybody!
Via cdp_xe's website I found the Astronomy Picture of the Day by the NASA.
Every day they show a new picture there with an explanation.
Also please notice
that
NASA copyright policy states that "NASA material is not protected by copyright unless noted".
(NASA copyright policy page).
(via Template:PD-USGov-NASA)
Today hansmi pointed me to an interesting website about art - dialog05.com.
They made a presentation about Universal Connections:
"this phenomena inspired us to use the USB interface,
with all its possibilities and ambiguities as a medium for this project",
-- main page of the project
Please have a look at this - really good art with a kind of view of tomorrow.
Today we have got the CSS Naked Day.
That means that you should exclude your CSS file of your website.
We have got this day because of the hype around CSS. But it shouldn't be necessary for your browser to understand CSS to display your website correctly.
Everything should be "plain and simple". So have a nice day, and maybe get naked, too!
Today's entry is about "philosophical wars". I would like to write an entry about this because of a special talk I had in the night at the Chemnitzer Linux Days with Lutz Willek and some others.
The main point is that if you think about special free software or open source projects, you can almost everytime think about two projects, which almost do identically the same.
For example when I think about free/open window managers, to my mind come KDE and GNOME. They are the biggest projects of the winow managers - and they do almost identically the same. But they were designed in different ways.
GNOME uses GTK (The GIMP Toolkit) and KDE uses Qt. GTK is part of the GNU project.
Furthermore if I think of the two biggest free software licenses - the
modified BSD license
and the GNU General Public License
come to my mind.
Both licenses provides freedom - it only depends on YOU, how you define freedom
for yourself. :-)
You can imagine of some more examples, but you should notice that the biggest projects
in a special category are not very friendly to each other and that there exist a really
war about thoughts, ideas, algorithms and some more things.
In the last run I think of VIM and
Emacs - it's not a question about how usefull an editor is, but how you love it.
But it's always the user's choice which software he uses for his daily tasks, so the wars will go on about the users...
Hello everybody.
After a short time without any blog activity, I would
like to write a short entry about doxygen
and our licenses (GNU GPL, GNU FDL and GNU LGPL).
First of all the intention to write this: I saw a lot of people on Savananh.GNU.org who have got a doxygen documentation without any license notices. But everytime I bugged them about this, they wrote to me that the documentation is auto generated and that they couldn't include any notices into it.
On the last weekend I had a look at doxygen because my pi-calculator needs a documentation and I found the doxygen option for HTML (for other output formats look at our own doxygen config):
HTML_HEADER =
Then I had to write into the file the default doxygen statements:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>__PROJECT__<title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body>
So in the end you have got an auto generated documentation but with a copyright and license header. You can follow this instructions for any other formats than HTML, too.
Thanks for reading my blog. Good night.
This should be a general posting about something I really hate.
Nexenta forces its users to
register to start a download.
And if there is something which I really hate then it is to register myself to start a
download of a (free) software.
But there is no limitation I thought of to avoid this. But if a distribution called itself
a complete GNU-based open source operating system built on top of the
OpenSolaris kernel and choose gnusolaris.org for its home
there is a point where I think: It's free software, free like in freedom.
So there is nothing to avoid the publication of an (in)officiall list of mirrors:
Please notice that this list shows only the URIs for the Installation CD.
But of course you can make a donation to the Nexenta team if you like. I only don't want to register somewhere to download a (hopefully) free OS. Thanks for your interest.
"All threats are taken seriously."
This sign was found at the airport in London. It's about the investigation of the police of people who want to fly away by plane.
Q: "Do you have got any weapons?"
A: "Which one do you want?"
This image was discussed in the last ChaosRadio show (110).