Category Archives: General
How to implement self signed SSL certificate in websites
Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems.The Secure Socket Layer(SSL) is used to encrypt the data stream … Continue reading
Hi
Friends I have been away from everything (work, sns, fun etc.) since last three months due to health reasons. I was just lying on my bed and did nothing as I was not able to move. After 3 months I … Continue reading
I hate you Array()
Dear Array(), You are most frequently used data structure in any programming language and so use full for every developer. But somehow I have developed a strong dislike for you. When ever I see you I feel like banging my head … Continue reading
What do I do to be happy most?
Well it has become a treasure hunt for me, when I am depressed I like doing following … Look for inspiration I listen to steve jobs, randy pausch, JK Rowling etc … read books, read blogs Get shower start browsing … Continue reading
Recommend: DBMS By Johannes Gehrke
Hi, I just thought of sharing this book with you all for DBMS concepts. I keep reading this book to keep my basics on track and occasionally use it as reference as well. Here is the link to buy the book on amazon.
For a free e-copy drop a mail to [deepak at decentmind dot com] requesting the same.
-deepak Continue reading
Multiple domains on symfony project
This post is about developing a symfony project that provides multiple applications that are reachable on multiple top level domains. In our case, the symfony applications “UMTS Netzabdeckung” and “Flatrates Vergleich” share the same backend (models, data, etc.) but each site is a standalone application and has a dedicated top level domain.
Create two applications
The first step is to create two applications. Run
symfony generate:app site1
symfony generate:app site2
in your console and change the default actions, routing, etc. Same thing as usual.
Edit .htaccess
The next step is quite simple: Open your .htaccess file in /sf_project_dir/web and insert your second application to the .htaccess file (BEFORE the default RewriteRule)
RewriteCond %{HTTP_HOST} secondhost.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ site2.php [QSA,L]
That’s all!
That’s all to get it working. Each request to your second domain will be redirected to the according application. A drawback is, that your “frontend” application is still reachable on your second domain if you type in the script name directly. Since I’m not an htaccess expert, I just added some php code to my index.php:
if($_SERVER['SERVER_NAME'] != ‘www.flatratesvergleich.de’) {
header(‘Location: http://www.flatratesvergleich.de’ . $_SERVER['REQUEST_URI']);
die;
} Continue reading
J.K. Rowling Speaks at Harvard Commencement
J.K. Rowling, author of the best-selling Harry Potter book series, delivers her Commencement Address, “The Fringe Benefits of Failure, and the Importance of Imagination,” at the Annual Meeting of the Harvard Alumni Association. (via harvardmagazine.com)
J.K. Rowling Speaks at Harvard Commencement from Harvard Magazine on Vimeo.
J.K. Rowling, author of the best-selling Harry Potter book series, delivers her Commencement Address, “The Fringe Benefits of Failure, and the Importance of Imagination,” at the Annual Meeting of the Harvard Alumni Association. (via http://harvardmagazine.com)
I always liked this video as it has been a vigra for my moral. I am posting it here for my own reference Continue reading


