Weblog
Weblog
Is what I was lacking these last months. A new personal obssesion. Something to do with programming and the web that is.
Software just didn't do it for me anymore.
I think that's over now. I actually have the urge to type code again. And there is a new 'big thing' brewing, which is actually reaching the 'proof of concept' phase right now. It's simple, clear and lean. One might even call it elegant, but I won't ;) And it will hopefully be something I actually use. I'm aiming to build something powerfull that lives from the basic simplicity of it's parts. So there, arn't we all?
simple templating in PHP
Ok. This NOT rocket-science. It is NOT very cool or effective. It simply works and is nice and short code. Templating done the quick way. I just though I'd share this cade with the world, as it is so easy to do ;)
function parsetemplate ($templatestr, $infohash) {
// replace placeholders like {foo}
// in templatestr with
// corresponding values from infohash
function lookup ($s, $h) {
if ($h{$s}) {
return $h{$s};
} else {
return "<!-- unknown: $s -->";
}
}
$result = preg_replace (
"/{(w+)}/e",
"lookup('$1', $infohash)",
$templatestr
);
return $result;
}
blivet - 12/17/2001
"It is impossible to overestimate the effect that having a child will have on your life!" I think it is also impossible to describe in a meaningful way to to someone who is not there yet.
This is so true. So very much.
This is so true. So very much.
CamWorld: CamRants: The I Have a Big Dick Awards
You'd think that by the name, the awards would be specifically about scripting technologies like Perl, Python, or Javascript.
<snip />
Let's be honest here. These awards are not about excellence in scripting, excellence in technology, or excellence in anything but kissing up to Dave Winer and his software that only sometimes works (in my experience).
Harsh words, Cam...
<snip />
Let's be honest here. These awards are not about excellence in scripting, excellence in technology, or excellence in anything but kissing up to Dave Winer and his software that only sometimes works (in my experience).
Harsh words, Cam...
Give a man a fish,
and he’ll eat for a day. He’ll say, "Mmmm. Fish. Thanks."
moodlogic.net ::
Access a Network of song profiles, and breathe life into your MP3 collection
I gave it a try today, and I think I can like it... the idea at least is faziating
I gave it a try today, and I think I can like it... the idea at least is faziating
John Buckman:: Overview of Windows Outliners
- Leo is an outlining editor that supports Literate Programming (LP). The addition of outlines is a major advance in LP.
- Leo runs on Windows 95/98/NT, Linux and MacOS 9.
- Leo is language independent and syntax colors text in C, C++, Java, Pascal, Perl, Python, Icon and others.
- Leo is fully scriptable using Python and saves its files in XML format.
on a similar vein...
I'm currently fideling with TreePad which now also has a freeware version and appeard to be rather usefull for people who like using tree-like structures to organize text. The only thing I really miss is an internal scripting possibility...
and combined with this:
TreePad Reader - Free download of CGI and Perl scripts
Now you can share this data over the Internet now with an online explorer-style viewer. Simply upload your TreePad file and visitors can browse your TreePad the way it was meant to be seen: as a tree. This script allows you to open up whatever HJT files are located in the directory. If you have a family tree file, a journal, some notes all in the same directory then the script prompts you to open the HJT file of your choice. Registered version comes with web online editing capability, searching, password protected nodes, multi-user editing passwords for specific nodes, and unlimited support and updates! Technical documentation on the structure of the TreePad file format.
TreePad Reader - Free download of CGI and Perl scripts
Now you can share this data over the Internet now with an online explorer-style viewer. Simply upload your TreePad file and visitors can browse your TreePad the way it was meant to be seen: as a tree. This script allows you to open up whatever HJT files are located in the directory. If you have a family tree file, a journal, some notes all in the same directory then the script prompts you to open the HJT file of your choice. Registered version comes with web online editing capability, searching, password protected nodes, multi-user editing passwords for specific nodes, and unlimited support and updates! Technical documentation on the structure of the TreePad file format.
winterspeak.com Good, Easy Email
I'm linking this because reading it inspired me to continue on my quest for the ultimate personal website-tool. I've hacked several pages of ideas and technical outline by now. Things will be based on my work on phpYamc, using code and ideas but moving away from the general concept...
PalmWiki
PalmWiki is a Hack program for PalmPilot and other Palm devices, which enables easy manipulation of hypertext data. The original idea came from Wiki Wiki Web, and PalmWiki is best if used with Q-Pocket for Palm.
[this is the english version for those who don't do japanese. thx lcom]
[this is the english version for those who don't do japanese. thx lcom]
wxWindows 2.3.2: C++ GUI library
wxWindows 2.3.2 is a development version of the C++ GUI library with bindings for Python, Perl, and recently Basic and Lua. This is the first release that supports MacOS 8/9 and MacOS X, compiled either with CodeWarror or Apple's Developers' Tools. It is the open-source alternative to the Qt toolkit and is free for any use, including commercial use. The currently supported platforms are Windows (including WinXP), the GTK toolkit, widely used under Linux and Unix and Mac OS. [that part about Lua is sadly no longer true. The code was pulled from the public...]
blogdex' Social Network Explorer
very cool! [thx lcom]
I'm still up to it
...just to show all them dorcks that the old man with the cane is still able to produce some striking grafix, I whirled up some layers in Photoshop.
visually impaired, folks, not graphicaly
darn...
I need to do something sensible with all those archive links down bottom of the main page... they are really outgrowing the current content!
Time for another rewrite of the infamous, mysterious 400lines of SBELT? I don't thinks so. Not before I do all those other programming tricks I planned so long ago...
Nope, not hopeless
youre hopeless if you watch Manga-Style Robotech (yes there was a series once) and go: 'Lookee those BattleMechs, that a Marauder?'. That's hopeless ;)
Almost like seeing a Mac and saying: 'Looks a little like Windows, dosn't it?'
Almost like seeing a Mac and saying: 'Looks a little like Windows, dosn't it?'
black, brain, black, hole
You know when we will all know that the right to free speech has been cut in US? Once this blackhole of fer-cryin-out-loud is silenced. Oh please whoever, never let that happen!
chris on TG
The Langreiter implementation of TG is interesting for several reasons. First of all, it's beautiful, here is a screen capture. Secondly, it implements dynamic XML loading, which greatly reduces the load time. What praise, what praise! And don't be so bescheiden Herr Langreiter!
Lego Madness
Lego Mechcommander FASA Battlemechs in LEGO.
FBTB - Your Star Wars LEGO News Source
LDraw is a DOS freeware program written by James Jessiman for modelling Lego models in 3D on the computer.
alles Bild, Text und Tonmaterial ist © Martin Spernau, Verwendung und Reproduktion erfordert die Zustimmung des Authors