Author Archive

Colorblender – passende Komplementärfarben finden

Posted by on Wednesday, 28 January, 2009

Wenn man wie ich lange weit weg von Design ist und doch mal wieder ein wenig mit Farben spielen muss – Colorblender kann automagisch passende Farben berechnen.

Ein weiteres nettes Tool für Farbschemas kann die Farbgebung auch einfacher machen.

The tiniest CMS

Posted by on Wednesday, 21 January, 2009

It’s NanoCMS

Features:

  • Filebased
  • Easy Integration
  • Easy Installation
  • Tiny
  • Full Templating
  • Simple ( or simplest ) Interface
  • WYSIWYG
  • Automatic Sidebar Linking!!
  • Add Content other than pages also.
  • Easy to Extend
  • Multilingual & Easy to Translate
  • Use PHP Scripting…

Most of the stuff you need for a small website without getting your hands dirty

Obtree database cleanup – list of objects with most instances

Posted by on Wednesday, 21 January, 2009

Note for me, do not forget that

select object_id, count(object_id) as x from objpicture group by object_id order by x desc

Replace objpicture with other tables as neeed, but the binaries will make up quite a bit of  content

mod_rewrite and alias or directories

Posted by on Tuesday, 20 January, 2009

I have been trying around and i think i got it figuted out why mod_rewrite ignored the directives i gave for a directory. The simplified vhost file should explain

<VirtualHost 143.161.2.140:80>
DocumentRoot d:\Sites\app1
ServerName example.com

RewriteEngine on
RewriteLog logs/mod_rewrite.log
RewriteLogLevel 0

Alias /app2 “d:\Sites\eparcelroot\pages\eParcel”
<Directory d:\Sites\approot\pages\app2>

Options Indexes MultiViews FollowSymLinks
# without FollowSymLinks mod_rewrite does nothing in the direcotry

AllowOverride All
Order allow,deny
Allow from all

RewriteBase /app2
# without RewriteBase you’ll be stuck in the documentroot

RewriteCond   %{THE_REQUEST}   /download/
RewriteRule    download.php/(.*)/(.*)   download.php?id=$1&file=$2 [nocase,last]

</Directory>

</VirtualHost>

Getting Obtree output to be xhtml valid

Posted by on Monday, 12 January, 2009

As Obtree dates back in the times before xhtml it takes a few tweaks to get the output to be xhtml conform.

In the StyleDefinition DefaultStyles add the following

<!– convert the sys-break of text objects from <br> to <br /> –>
<styledef sys-break>
<styleheader><br /></styleheader>
<stylefooter></stylefooter>
<stylepreview displayname=”sys-break” font=”sans-serif” size=”12″  color=”black” />
</styledef>

<!– change the <p> that a <sty sys-align-left> creates from<p> to a <div> – so you can use <h1> in it –>
<styledef sys-align-left>
<styleheader><div style=”padding-bottom: 12px”></styleheader>
<stylefooter></div></stylefooter>
<stylepreview displayname=”sys-break” font=”sans-serif” size=”12″  color=”black”/>
</styledef>

Größenangaben in em

Posted by on Friday, 9 January, 2009

Ich habe endlich eine verständliche Erklärung der EM-Größenangaben gefunden:

Obtree – list of unreferenced objects

Posted by on Thursday, 8 January, 2009

If you need it, and are brave enough, try this:

SELECT
op.object_id,
wo.name,
wo.url,
op.valid_from,
op.updated_date,
op.state,
op.raw_size
FROM
objpicture op
INNER JOIN webobjects wo ON (wo.id = op.object_id)
WHERE
object_id NOT IN (
SELECT
mr.ref_id
FROM
webobjects wo
LEFT JOIN macroref mr ON (mr.ref_id = wo.id)
WHERE
mr.ref_id in (
SELECT object_id FROM objpicture
)
)
AND object_id NOT IN (
SELECT page_id FROM objilink WHERE page_id IN (
SELECT object_id FROM objpicture
)
)
AND wo.type = 5
ORDER BY op.raw_size DESC

Haarverlust

Posted by on Tuesday, 6 January, 2009

Haarverlust So, es ist passiert. Eine Veränderung hat stattgefunden.

If programming languages were religions

Posted by on Saturday, 27 December, 2008

It would be like that

Grafisches Traceroute

Posted by on Friday, 26 December, 2008

Problemstellung: man hat eine IP Adresse (zB von den freundlichen Spammern) und möchte einfach  nur wissen wo sich diese netten Leute geographisch befinden.

http://visualroute.ch/

macht grundsätzlich das gleiche wie ein tracert, ist aber erstens webbasiert, fragt mit seiner IP anstatt der eigenen, zeigt viel nette Zusatzinformation (zB Whois Information des Providers) und kann zumindest Länder anzeigen.

Ein Danke an BBoxBBS in der Schweiz