Category Archives: General

generic things will come here.

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

Posted in General, Linux, Technology, security | Tagged , , | View Comments

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

Posted in General | View Comments

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

Posted in General | View Comments

Congratulations to Indian Cricket Team

April 02, 2011 India wins the cricket world cup. What a day it was, I was watching cricket on TV with my friends. I enjoyed the moment a lot, its an unforgettable feeling. India over comes all the odds & criticism … Continue reading

Posted in General, Gyan By Me, Sports | Tagged , , | View Comments

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

Posted in General | View Comments

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

Posted in General, book | Tagged | View Comments

What am I up to …..

Hey fella

all these days, since quite a few months, I have been busy in to things. Things Things and these things. Its proving out to be a introspection period for me.

Realized… how much, is there to learn. Be it programming language, Algorithm or any other technology which I love or the normal human stuff. So much …. phewwww

Apart from usual stuff I have been playing around with latest symfony versions, jQuery and few unconventional stuff , not much of interest. Lately I have developed interest in other frame works specifically ROR, which is quite similar to Symfony in some aspects.

Don’t know why, but these days I think of starting a project every second day, New ideas come to mind and in day time they don’t seem to be valid one. More over I think of myself as an idiot :)

Procrastination the killer of all thoughts and creativity. I feel like trapped in to it, and not able to think.

Not able to focus and do things I want to do for quite some time now.

Bad part is I know what I need to change, but not getting enough energy to change the situation at all. I hope to do a come back soon. Reading.. reading.. and more reading could be one possible solution to keep out of these rubbish thoughts.

Its very important in ones life to have good mentors. Guess I am missing that very badly. :(

deepak Continue reading

Posted in General, Gyan By Me, developer | Tagged , , | View Comments

And I woke up from dream

Sun Nov 21, 2010 7:16 PM : I woke up all of sudden sweating and I can recall saying something, but don’t know what. It was evening time sky was red/brown like any of the summer days. All of sudden … Continue reading

Posted in General, Gyan By Me | Tagged | View Comments

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

Posted in General, Symfony | Tagged , , , , | View Comments

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

Posted in General, My Video | Tagged , , , | View Comments