Posts Tagged With ‘Apache&8217

A Real Django Application On A Shared Hosting

I got working a simple django application on a shared hosting before but never tried a real application till to night. I was developing a project for fun nothing much and it is about to finish and ready for a real time test. After struggling with .haccess mod_rewrite issues1 (mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use ‘RewriteOptions MaxRedirects’ to increase the limit if neccessary) my application is deployed and first http request is called. No, as you guess it didn’t work. My hosting provider uses an old version of mysql driver for python which is MySQLdb-1.2.0 but django 1.0 requires MySQLdb-1.2.1p2 or newer. So, planning to email and ask them if it is possible to upgrade driver if not I’m going to use my friends home servers to host it.

1 To fix this issue add your domain name to rewrite condition like
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST}
RewriteCond %{REQUEST_URI} !
RewriteRule ^(.*)$ cgi/yoursite.cgi/$1 [QSA,L]

The Server In You Pocket

I’ve been dealing with iPhone since I bought it but I’ve not mentioned it before. I don’t have a mac so I don’t have an iPhone SDK too. I was using cross platform compilers to compile an application on windows and put it on iPhone. It is really painful. Today I got my first server up and running, it is django development server. Also, a crud application running on it.

A tutorial is available about it.

Load Balancing

I had some problems with load balancing on glassfish clusters but today I got it up and running on my local machine using apache2 as web server.

Why not to use MS SQL Server

The Keyword column corresponds to some representation of a single token extracted at indexing time. What makes up a token is determined by a component of the full-text engine called a “word breaker.” Each language supported by full-text search has a word breaker component that breaks a text stream into individual tokens based on the rules for word boundaries of that particular language.

Except Turkish MS SQL Server 2005 supports all languages that’s why you can not use full-text search efficiently in Turkey. If you have to use MS SQL Server 2005 you should try Lucene for search purposes.

MSDN documentation mentions full-text search improvements on MS SQL Server 2005, I can not imagine how terrible MS SQL Server 2000 was …