Archive for October, 2008

Apache mod_rewrite redirect for non secure requests to secure www. subdomain

Wednesday, October 29th, 2008

In many cases SSL certificates are issued for the "www." domain.
Then you'll want to have all links pointing to "www." domain otherwise you'll see Firefox's error message:

"Secure Connection Failed. The certificate is only valid for www.domain.com"

[code]
RewriteEngine on
#RewriteCond %{SERVER_PORT} ^80$

RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]

RewriteRule .* https://www.domain.com%{REQUEST_URI} [QSA,R=301,L]

[/code]

Walking is good for you but do not forget that you’re out.

Monday, October 27th, 2008

Dear Reader,

We are often advised how good the walk is for the heart and that it has so many benefits.
This is all true.
I want to stress on something else now.

While walking many people forget that they are out. They put their headphones and walk as they were alone.
Once, I saw a guy on a bicycle listening to some music.
I can't accept that.
Honestly, these people are at serious risk.
They put their lives in hands of the drivers.

I was walking on my way to the YMCA and suddenly one SUV came from my left side and crossed my way.
Probably the driver didn't check their blind spot. The speed of the car must have been at least 40-50 km per hour.
I got very lucky that I wasn't one step ahead.

Here is a sample picture created with Windows Paint.

It is quite strange the day before my uncle mentioned that while walking one should also watch out
for vehicles that go in the same direction as one does.

Lesson #1: is that no matter where you are do assume that all drivers are really really bad drivers.
That will keep you alert.

Lesson #2:
When you drive always always check your blind spots.
These important rules are made because they are needed.
Obey them.

Slavi

Zend Studio: svn: This client is too old to work with working copy

Sunday, October 26th, 2008

If you are using Tortoise SVN and Zend Studio on Windows machine you may encounter this error message:
"svn: This client is too old"

Zend Studio ships with a cvs and svn clients which allows you to commit directly from the editor.
However, when you start using TortoiseSVN and perform an update to a checked out codeĀ  TortoiseSVN

will update the format of .svn files.

That's why you see "svn: This client is too old to work with working copy".

Solution:

Download and Install CollabNet Subversion Command-Line Client for Windows

Tell Zend Studio that you want to use a different svn binary.

Go to Tools -> Preferences -> Source Control

[General Settings]

change old:
C:\Program Files\Zend\ZendStudio-5.5.1\bin\SourceControl\svn\svn.exe

to:
C:\Program Files\CollabNet Subversion\svn.exe
Note:

Please note that you need the SVN client, not the Server ;)
Slavi

Welcome

Saturday, October 25th, 2008

Dear Reader,

Welcome to my new blog.

I was using blogger for quite some time but I decided that it is time to post future articles to a blog hosted on my domain name.

If you need to check some of my old articles they can be found at

http://devcha.blogspot.com

Slavi