Dodona gives you answers

Archive for September 2008

How can I measure things on my screen in Mac OSX?

with one comment

As a webdesigner I often want to measure if a certain distance or size in a browser window corresponds to the distance I want it to be. A handy way to do this is to use an on-screen ruler which measures distances in pixels on your screen.

I used to use the ruler option in Art Directors Toolkit for this, which comes bundled with Mac OS X. What I like about this ruler is the compound option, so you can measure horizontal and vertical distances at the same time. A disadvantage is that it has the default Mac OS X shadow. This can make it quite difficult to measure things exactly, because the shadow blocks your view. You can solve this problem by using ShadowKiller, a little app which removes (or returns) all shadows behind Mac OS X windows. It works, but is not very handy.

Today I found PixelStick. It is a ruler, but with no shadow! Great! And it’s free too! Disadvantage: no compound option. But I like the simple-ness of it. You can use it to measure distances in any angle (default), but also lock it to measure only horizontally or vertically. And just as the Art Directors Toolkit ruler it always stays on top of the other application windows.

Art DIrectors Toolkit:

Status: Tested (both), Works (both)

Interested in a Content Management System built for webdesigners by webdesigners? Check out Spike CMS.

Written by lutsen

September 16, 2008 at 11:53 am

Posted in Mac

What is an easy way to get all the data from my MySQL database?

leave a comment »

I recently just wanted to get all the data from a MySQL database, without having to install phpMyAdmin or something similar extended. This nice script did the job.


Status: Tested it, works, like it

To view the code press: Read the rest of this entry »

Written by lutsen

September 13, 2008 at 9:35 am

Posted in PHP

How do I prevent a textfield in Actionscript from scrolling 1 line when it shouldn’t scroll?

leave a comment »

There is a strange bug in Actionscript which makes a textfield which shouldn’t scroll still scroll one line. I only found this bug in Windows and only when scrolling using the scroll-wheel.
The code below, although not very beautiful, will prevent the textfield from scrolling. I found it here.

myTextField.addEventListener(Event.SCROLL, onScroll);

function onScroll(evt:Event):void {
    myTextField.scrollV = 0;


Status: Tested it, works

Written by lutsen

September 12, 2008 at 11:28 am

Posted in Actionscript

What is a good, secure, developer friendly and user friendly PHP login script?

I wrote one myself, it’s called P.U.L.S. and you can download it and read all about it on P.U.L.S means PHP User Login Script and is a PHP scritp which enables users to register and then login to a website or -page.

Read more >

Written by lutsen

September 9, 2008 at 1:02 pm

Posted in PHP