Weblog


Weblog

reinventing the wheel...

31.03.2004, 15:41 · Martin · Permalink

holy cow, I'm doing that right now. I need a robust HTML parser in Tcl. No DOM bells and whistles, just turn a HTML-Table into a Tcl data structure, filter that and spit out some reformed HTML. Key word here is 'just'...
So far anything I've seen either is C-based (nogo for this installation) or requires a complete libary installation (tcllib)...

Well, looks like I'll use the alotted time buget to do do some nice reinventing, tralala

I'll also take it as an opportunity to get some practice coding on my Mac... getting a better feel for the machine etc.
I need to use any opportunity to break my dependancy on the win2k machine here for such things... You know, one puts up with all those little annoyances of an windows machine just because everything is already set up and one is 'used to it'. But I will never benefit fully of MacOS X if I don't start using it and getting settled in

I'm going for a REX like shallow parsing (tokenizing) first

Step one: the tokenizer

# $html contains out HTML raw data
while {[regexp {^<.*?>} $html tag]} {
	# remove the tag from string
	set html [string replace $html 0 [expr [string length $tag]-1]]
	puts "tag: $tag"
	# get the text between tags
	regexp {^[^<]*} $html text
	set html [string replace $html 0 [expr [string length $text]-1]]
	if {[string length $text]} {
		puts "text: '$text'\n"
	}
}
puts "remaining: \[$html]"

If everything went right, the last line of output should read:
remaining: []
Instead of printing out the tokens, we'll need to process them of course!
Lesson learned so far: regexps only go so far before the become more trouble than they are worth. That's why I'm using string replace in there

Ok, you guessed, that's not ever half the work done yet...

Mark Bernstein: Europe and Faerie

29.03.2004, 00:44 · Martin · Permalink

Has read Emma Bull's 1987 War for the Oaks, and goes to compare faeries/immortals and humans/mortals to Europeans and Americans... Also intersting is his listing of 'related books' at the end:
See also Neil Gaiman (Great Britain), American Gods, and William Gibson (Canada), Pattern Recognition, and Laurel Hamilton (U.S.), A Kiss of Shadows.

I'd never have connected 'Pattern Recognition' and 'War for the Oaks' although I read them very close to each other and absolutly loved both...

The only change that lasts is self-determined change

27.03.2004, 22:25 · Martin · Permalink

If you want to become a successful business man or a great artist, it is probably not because somebody told you to do so, it is most likely because you knew or heard of somebody who already was.

You may be able to force or convince somebody to change their mind, but it won't last. The only change that lasts is self-determined change. And it is also by far the most pleasurable and satisfying change.
Eolake Stobblehouse

Note: I'm fully aware that link to the source of that quote should be marked 'not worksafe'... it points to some nudity after all. Nevertheless I think the above quote is absolutly true and applies generally.

displacing the PC

27.03.2004, 20:22 · Martin · Permalink

Today I solved a long running gripe I had with my workplace situation in my Office at home.

You see I now have this here TiBook, but somehow I was only sing it in places where the desktop (a win2k PC) couldn't go... like on the sofa etc.
But that also means I'm using the far superior OSX machine only for tasks where I'm in a contemplative mood, like writing personal things in Tinderbox etc.
But all the tasks that need more concenrtation on what's happening onscreen - like coding, designing etc. - are not really suited for a sofa...

Now one reason this situation came along is the fact that my home-office has exactly one place where I can comfortably sit. The desk there is occupied by a very large 19" Eizo CRT. My laptop is usually confined to a sidboard kind of place, where I can not stretch my legs under the table...

So today I Ithought this situqation needed changing. While the CRT can't move anywhere else - it's that large that this spot on my desk is the only one tht will accomodate it's full depth. The I noticed that my PowerBook might actually comfortably sit in front of that CRT where the PC keyboard usually sits. problem solved!

So what is the point blogging about this? (What is the point blogging about anything *g*)

Which of the availeable Computers one uses depends on how comfortable one can work on it as much as on the features/power it has.

good ideas, bad code

27.03.2004, 18:16 · Martin · Permalink

via Chris Langreiter

Steffano Mazzochi: 'anyway, it's a design pattern: Good ideas and bad code build communities, the other three combinations do not. This is extremely hard to understand, it's probably the most counter-intuitive thing about open source dynamics.'

This a very interesting observation, and I agree with Chris that this can be applied to any field, not only Open Source. Actuall I don't find it so very counter-intuitive once you start thinking about it: There is this outstanding idea, this brilliant concept. And there is a few implementations. But none of them is actually good code, or does the job 100%. So on the one side you have the desire for a solution, and on the other the opportunity to change something. And the need to do so. Think about it the other way around: A compelling idea and a product that implements it 100%... where's the need to get involved? Where's the motivation? The product is already there, good enough.

There's a analogon from the world of SciFi writing: They say Larry Niven would not only have inovative ideas, but he'd also write the 'one and all' story about it. Saying it all, and dealing with the idea in all consequence. So later no other write would pick up that idea because 'it has all been said' already.

So maybe this is the lesson to be learned: 'If you want others to participate in your product/field/idea, then let some questions unanswered, some features missing, some work for others to do.'

PR-Betrug mit dem Wort "Barrierefreiheit"

26.03.2004, 12:41 · Martin · Permalink

Die Neufassung, die auch nicht mehr mit Absicht Behindertengleichstellungsgesetz, sondern Barrierrefreiheitsgesetz heisst, gibt vor, daß es nur noch einen Weg ins Haus (also nur eine Praesentation) gibt, die aber von jedem mit beliebigen Mittel inhaltlich gleich gelesen werden können muss.

Speak To Me!

26.03.2004, 10:24 · Martin · Permalink

Simon has this very nifty OSX trick
In Terminal do say 'some text' to have OSX Speech read the text to you... No if you combine that with backtick command execution the possibities are boundless...

Quicksilver?

26.03.2004, 10:06 · Martin · Permalink

What's that you ask? Me too. Seems to be all the rage for OSX users, so I guess I'll need it too...
  • Quicksilver Homepage
    Quicksilver is an evolving structure for manipulating any form of data. The current modules include a launcher, a clipboard recorder, and a shelf.
  • A tutorial

Effective, not efficient

25.03.2004, 16:53 · Martin · Permalink

Once the work gets mediocre because design quality is no longer appreciated by the system, design fees go down. Then one starts to make economies - like hiring cheaper employees, and the quality of the output sinks even lower. The whole purpose of controlling - earning more through efficiency - is turned on its head.

via lcom

MPlayerOSX

25.03.2004, 16:44 · Martin · Permalink

MPlayerOSX is binary distribution of MPlayer (The Movie Player for Linux) and comes with native GUI in MacOSX. After installation you can simply (by Drag&Drop) play almost all 3ivx, DivX 3,4,5 and other codecs files in the window or fullscreen mode. Rendering of very nice antialiased text-based subtitles is also supported.

Gimp.app

25.03.2004, 16:34 · Martin · Permalink

A self contained application bundle of the
GNU Image Manipulation Program for OS X.

Gimp-2.0rc1.dmg
Gimp-1.2.5.dmg

Not yet the final 2.0 but that will be coming soon, or so they say

feedback please

25.03.2004, 14:23 · Martin · Permalink

I'd like to hear some opinions about my 'company website' I'm currently designing for my own consulting services... Thanks

Paul Everitt

25.03.2004, 00:03 · Martin · Permalink

did a nice Narrated demo of XML/XSLT with the <oXygen/> editor
It is a 5 min narrated demo, served as a 1.7mb flash file. Done in Camtasia Studio. What I like about it is the fact that it was perfectly useable over my 56k dial-up link.

Butterfly XML -- Elegant XML

24.03.2004, 13:22 · Martin · Permalink

Butterfly XML Editor is an IDE built on top of a new real-time incremental XML parsing algorithm. The editor features syntax and error highlighting, incremental validation, code completion, XSLT pipelines, and side by side DOM and source viewing.

libTextCat - Lightweight text categorization

23.03.2004, 17:45 · Martin · Permalink

Libtextcat is a library with functions that implement the classification technique described in Cavnar & Trenkle, "N-Gram-Based Text Categorization" [1]. It was primarily developed for language guessing, a task on which it is known to perform with near-perfect accuracy.

The central idea of the Cavnar & Trenkle technique is to calculate a "fingerprint" of a document with an unknown category, and compare this with the fingerprints of a number of documents of which the categories are known. The categories of the closest matches are output as the classification. A fingerprint is a list of the most frequent n-grams occurring in a document, ordered by frequency. Fingerprints are compared with a simple out-of-place metric. See the article for more details.

Considerable effort went into making this implementation fast and efficient. The language guesser processes over 100 documents/second on a simple PC, which makes it practical for many uses. It was developed for use in our webcrawler and search engine software, in which it it handles millions of documents a day.

IBook Tablet

23.03.2004, 10:01 · Martin · Permalink

You might be looking for the iPal... It's only an idea also..

CVS for Websites HOWTO

19.03.2004, 09:59 · Martin · Permalink

And here is also a PDF for download
via 0xDECAFBAD

Now I know where that came from

18.03.2004, 20:32 · Martin · Permalink

on John Battelle's Searchblog: A David Gerlertnter quote
I don't want to use Google if I can avoid it...to use it I have to know the right question to ask, and that is often not the case I know that question...

Is exactly my oint with keyword based search... I need to know what I'm looking for. Which, in case of knowledge search, I don exactly not!

I don't care about accessibility.

18.03.2004, 14:02 · Martin · Permalink

So I end up delivering solutions to my clients that are far less complex to implement, are much easier to maintain, cost exponentially less to serve, work on multiple browsers and devices, do way better in the search engine lottery, and -- of course -- are accessible to everyone ... everyone ... using the Web today. And try to argue with the business value of that.

don't care about accessibility. Because when Web design is practices as a craft, and not a consolation, accessibility comes for free.

super smart babies?

18.03.2004, 12:14 · Martin · Permalink

But researchers at Duke University may have already found a much simpler method to create superbabies. According to their news release, providing supplements of the important nutrient choline to animals in utero "super-charged" their brains, making their neurons larger and faster at firing electrical "signals" that release memory-forming chemicals. Choline is a naturally occurring nutrient found in egg yolks, milk, nuts, fish, liver and other meats as well as in human breast milk. It is the essential building block for the memory-forming brain chemical acetylcholine and it plays a vital role in the formation of cell membranes throughout the body. The implications of this study for humans are profound because the collective data on choline suggests that simply augmenting the diets of pregnant women with this one nutrient could affect their children's lifelong learning and memory. In theory, choline could boost cognitive function, diminish age-related memory decline, and reduce the brain's vulnerability toxic insults.


alles Bild, Text und Tonmaterial ist © Martin Spernau, Verwendung und Reproduktion erfordert die Zustimmung des Authors

Martin Spernau
© 1994-2026


amazon.de Wunschliste

Facebook me!
Google+

powered by Traumtank