Warning: strpos(): needle is not a string or an integer in /var/www/html/index.php on line 17

Warning: strpos(): needle is not a string or an integer in /var/www/html/index.php on line 23
Martins dies und das - blog.martin-enders.de
CL-Webframework 
Thursday, February 28, 2008, 09:54 PM - Computer, Common Lisp, Web Framework
I fetched up the idea of the CL-Webframework mentiond three postst before. I tried to implement an prototype in PHP because this server is a virtual machine and I have some problems to install SBCL.

But the Problem was that I have to deal quite fast with technical restrictions of PHP. That means that I have to think to much about the language itself and if you are a programming-rookie like me it's not so easy to keep track of all these language restrictions. In this way for me it is easier to write in lisp.

I have a little bit expirience with Edmund Weitz' hunchentoot HTTP-Server and I think I can do it easyer with such an setup.

I hope I'll can work a little bit on this small project the next time.

PS:
My concept of the Framework is not much more like the dispatcher of hunchentoot but I like some more functions which are more specific to web publishing which makes content-providing more flexible and easier to use.
I think the way I'd like to go is to provide an more abstract layer for the dispatcher of hunchentoot which maps the ideas and concepts of Publishing Documents in the Web to an Server.
  |  permalink
Create fancy text images with convert (imagemagick) 
Tuesday, February 5, 2008, 09:15 PM - Linux, shell scripts
Today I made a little shell script to create the text-logos like the 'fancy text' image in this entry.


convert -fill 'rgb(128,128,128)' -background transparent -font FONT.TTF -pointsize 50 label:"EXAMPLE TEXT" -rotate 90 OUTPUT_FILE

-fill        Color in rgb notation
-background  Background color (here transparent background)
-font        ttf-file (I think you can also use a system font).
-pointsize   size of the text
-label:""    Text which appears in the image
-rotate      Rotate the image
-OUTPUT_FILE filename of the output file
             (here png because I use a transparent background)


Source: http://imagemagick.org/script/command-line-tools.php
  |  permalink  |  related link
Entry ratings through search engine 
Sunday, February 3, 2008, 02:25 PM - Blog
The most of the previous entries are rated with 3 and have 5 ratings.
I think thats because a search engine was crawling over this blog and opend every rating link.

I hope that the following robots.txt can fix this problem:

User-agent: *
Disallow: rate_cgi.php


PS: In the first moment I was wondering if there has been somebody on my blog and rated articles :-P.

It seems that the robots.txt is not working. Maybe there is a conflict with the following meta-tags:
<!-- Robots -->
<meta name="robots" content="ALL,INDEX,FOLLOW,ARCHIVE" />
<meta name="revisit-after" content="7 days" />


I decided to deactivate the rating functionality.
  |  permalink
Idea for CL-Webframework 
Saturday, February 2, 2008, 11:41 PM - Common Lisp, Web Framework
The idea behind this framework ist that all sites are made of any number of content blocks which belong to an URL.
So the content blocks are mapped to an URL
(URL (Content-I Content-II))

An Example:
Content Block I
-------
| abc |
-------

Content Block II
-------
| def |
-------


Block I and II are bound to serverrelativ URL /content
(:/content ("Content Block I" "Content Block II"))
http://www.martin-enders.de/content leads to a page like this:

/-page----------\
|               |
|   -------     |
|   | abc |     |
|   -------     |
|   -------     |
|   | def |     |
|   -------     |
|_ _ _ _ _ _ _ _|


Idea


The idea behind this framework is that you can map differnt content blocks to an url.

Problems / Questions


How should sites be treated when you use special functionality. Is in content blocks just HTMl allowed or should it be possible to integrate lisp into the pages?
The content Blocks are integrated in an layout so the HTML in the content block is just a part between the <body> and </body> tag. If you need an extra css file you have to be enabled to integrate an special tag to integrate additional information into the HTML head.

But all these workarounds lead to inconsistencies in the framework - it seems that it's not a good design now.

Conceptual Lisp Dispatcher:


(defvar *dispatch*)
(setf *dispatch* '(:/       ("index")
		   :/web    ("web")
		   :/css    ("css2" "css3")))

(defun get-content(content-block)
  content-block)

(defun render-content(content)
  (format t "~a" content))

(defun dispatcher(script-name)
  "This function takes a string as argument 
   and converts it into an keyword for 
   comparison with the url's in *dispatch*"
  (let* ((request (intern (string-upcase script-name) "KEYWORD"))
	 (content (getf *dispatch* request)))
    (dolist (content-block content)
      (render-content (get-content content-block)))
    request))

Conclusion


I'd like to have a small consistent framework for publishing in the web. But the current state of this idea has to many inconsistences.
  |  permalink
New home for my blog 
Friday, February 1, 2008, 12:32 AM - Web, Blog
Currently I'm at work to provide my site a new (better) home. The server is working so far (apache2 and php) but e.g. mail isn't configured.

I'd like to convert the static pages of this blog to html-pages and publish them under www.martin-enders.de - because they don't need any dynamically created content so there is no reason to manage them with a blog system.



From here to the future this blog has a new home at blog.martin-enders.de.
The former blog at mitglied.lycos.de/oberweissenbach/blog is no longer active.



  |  permalink
New Webspace 
Wednesday, January 30, 2008, 07:03 PM - Web, Blog
I orderd today an virtual server from strato.
I have choosen an virtual server because they are not as expensive as dedicated servers. I think for my small applications even a virtual machine is oversized.
My new server will be reachable over the martin-enders.de domain.

I like to set up wordpress for publishing things. One Problem is how to add this entries in a new wordpress installation. The easiest way is maybe to move this complete blog to a new home and link to it.

Now I'm really curious about this v-server.
I have to make some new pictures because the pictures of this and the last entry are not relating to the content of them.


  |  permalink
Structure of Content 
Monday, January 28, 2008, 10:36 PM - General, Computer, Web, Blog
<loose thinking>
Recently I found a new old website of me but this site by itself is a site which includes an older site of me.
So I'm glad that the contet I produced isn't lost but now I think that all this content should be structured.
The Problem is I don't know how to structure it. Should I convert all text-sites into content management system, or should I use wordpress as a combination of Blog and static sites. Or should I write a System by myselef.
I have really no idea....
The main problem is maybe that I don't know what I really want to do with my web-site.
Sometimes I'd like to provide interresting things I'm working on and sometimes I'd like to have a playground.

I'm going to be totally confused :-P.

Maybe I should smash all that old shit to bits (with Thors hammer Mjölnir (-; ) and start with a new small well designed and structured page.
</loose thinking>
  |  permalink
A-Team Fanfiction - Convert people into A-Team fans 
Tuesday, January 22, 2008, 07:02 PM - A-TEAM
I found this amazing site (ateamfanfic.org) at ateamresource.de.

I have two colleagues studying with me, who didn't know THE A-TEAM at all. At first I can't belive it but now I can (ab)use them for a test (-; .

10 ways to convert people into A-Team fans
by Hannurdock


*Giggle* - I'm tired, and this is the kind of weird thing I do when I am over-tired. Here's to the weekend !!! *Raising beer at 2.00 in the morning*

SCENARIO: OK, so your friend is not exactly an A-Team enthusiast. She hates the team, and your job is to convert. *giggle*

1. Hum the A-Team theme tune whenever you are around the AA Friend (Against A-Team). Eventually, whether she knows it or not she'll start humming it too. A catchy tune always catches them out.

2. Have an evening at home playing board games. Put a few episodes of the A-Team on the box. Play the game for hours, being as boring as possible. Eventually she will turn her eyes for entertainment towards the TV, and wham, got her.

3. Ask her opinions every minute on if she thinks Face is good looking. Show pictures, with him smiling broadly. If that doesn't work, nothing will.

4. Infect her Furby with A-Team words - like 'I love it when a plan comes together', 'and on the jazz'. The principle being simple, Furby owners love their pretend pets so much, they DO start to talk like them. (Believe me I know, I have two).

5. Comment on every movie with an A-Team slant. Like, oh isn't Aliens a good film. Yeah, but wouldn't Hannibal be an ideal choice instead of Hicks. More leadership experience, after all.

6. Ask her opinions on the war in Vietnam. Then spend five hours explaining how the team knocked over the Bank of Hanoi and got caught 50 clicks from Denang.

7. Smoke cigars in her prescence. When asked to put it out, chew off the end and spit it on her shoe.

8. Steal a straight jacket, put her in it and leave her with the television set doing a marathon of 10 ateam episodes. If nothing else, at least she'll act like Murdock when she's freed.

9. Create an A-Team computer virus especially for her machine. Have Hannibal snickering in the background, and BA telling her to SHUT UP, FOOL! would be extremely amusing, and also send her insane.

10. Last, but certainly not least, introduce her to the fanfic at the VA Canteen.

Well, that's it. If your friend is not seriously insane or salivating like a mad woman once your done, you may have scored a winner !!

Either that, or just throw her in the VA in a straight jacket !!!

Hannurdock
(Smiling wickedly)

Source: http://www.ateamfanfic.org/read.php?&sku=103
  |  permalink
THW - Tödlicher Einsatzunfall in Sachsen-Anhalt 
Thursday, January 17, 2008, 09:03 PM - THW
„Die Angehörigen der Bundesanstalt THW im Ehren- und Hauptamt sind bestürzt. Unser Mitgefühl gilt der Familie und den Kameraden des Opfers“, sagte THW-Präsident Albrecht Broemme, als er vom tragischen Ausgang dieses Einsatzes erfuhr.

Quelle: Quelle: THW Pressemitteilungen

Dem moechte ich mich natuerlich anschliessen.


  |  permalink  |  related link
Dakar 2008 canelled 
Friday, January 4, 2008, 04:00 PM - Moped

Lisbon, Friday the 4th of January 2008
A.S.O. cancels the 2008 edition of the Dakar rally

After different exchanges with the French government - in particular the Ministry for Foreign Affairs - , and based on their firm recommendations, the organisers of the Dakar have taken the decision to cancel the 2008 edition of the rally, scheduled from the 5th to the 20th of January between Lisbon and Senegal’s capital.

Based on the current international political tension and the murder of four French tourists last 24th of December linked to a branch of Al-Qaeda in Islamic Maghreb, but also and mainly the direct threats launched directly against the race by terrorist organisations, no other decision but the cancellation of the sporting event could be taken by A.S.O.

A.S.O.’s first responsibility is to guarantee the safety of all: that of the populations in the countries visited, of the amateur and professional competitors, of the technical assistance personnel, of the journalists, partners and rally collaborators. A.S.O. therefore reaffirms that the choice of security is not, has never been and will never be a subject of compromise at the heart of the Dakar rally.

A.S.O. condemns the terrorist menace that annihilates a year of hard work, engagement and passion for all the participants and the different actors of the world’s biggest off-road rally. Aware of the huge frustration, especially in Portugal, Morocco, Mauritania and Senegal, and beyond the general disappointment and the huge economical consequences in terms of direct and indirect repercussions for the countries visited, A.S.O. will continue to defend the major values of great sporting events and will carry on its engagement for a durable development through the Actions Dakar, started 5 years ago in sub-Saharan Africa with SOS Sahel International.

The Dakar is a symbol and nothing can destroy symbols. The cancellation of the 2008 edition does not endanger the future of the Dakar. To offer, for 2009 a new adventure to all the off-road rally passionate is a challenge that A.S.O. will take on in the months to come, faithful to its engagement and its passion for sports.

Source: http://www.dakar.com/indexus.html
  |  permalink

Next