Showing posts with label solution. Show all posts
Showing posts with label solution. Show all posts

Tuesday, May 6, 2008

Solution: All text in Firefox in italics

Out of nowhere, some time ago, all my (normal) texts in Firefox and Internet Explorer went italic. Meaning, every bit of text that wasn't in bold or a header went italics...
What happened was that for some reason the default Arial font went missing. Firefox and IE then automatically switched to the italics variant of the standard Arial font for displaying text in Arial. The solution is easy: copy a Arial.ttf file back into c:\windows\fonts.
I can't supply you with the file (licensing issues) but just know that it is supplied with every copy of windows. Just open up c:\windows\fonts on any PC that doesn't have the problem, copy the file Arial.ttf (Arial standard) onto an USB stick and then copy the file into the c:\windows\fonts folder of the PC that does have the problem..

Sunday, March 25, 2007

CakePHP: Setting up the ACL tables

I am currently exploring my way into CakePHP. Have to say I am really enjoying working with it. Everything is starting to get clearer to me step by step.. Just now I've been struggling with getting the ACL tables properly set up. The manual suggests that I simply ran the /cake/scripts/acl.php scripts from the command line. I appeared that this was easier said than done, so here's what I eventually came up with:

  1. Open your command prompt (Windows Key + R);
  2. Move to your PHP directory (which contains php.exe)
  3. Run the following command:
    php.exe -f "x:\webroot\cake project\cake\scripts\acl.php" initdb
The script now properly executes and creates the aros, acos and acos_aros tables. Please make sure your database is properly configured and for the rest just follow on what the manual has to say!

Saturday, March 24, 2007

Apache server on Windows Vista

In the past I always configured my own Apache webserver / PHP, etc. I don't know why (I'm not that much of a server expert), but it just fellt better. On my new PC with Windows Vista however, I couldn't get it to work easily. So I looked around a bit and stumbled upon an all-in-one solution called Wamp. According to the developers it works fine on Vista (takes care of UAC), and after some testing I can happily confirm that it does! The setup asks a few questions, so it automatically configures the web servers. Another cool thing is that Wamp runs an icon in the taskbar (next to the clock) that let's you quickly configure stuff! Nice!