Tag Archives: Development

How TO Install GoDaddy Wild Card SSL Certificate

This article presumes that you have already downloaded the wild card certificate after generating the private key and csr request. GoDaddy gives you two files: gd_bundle.crt yourdomain.com.crt Step 1. change httpd.conf file to create a virtualhost for https at port … Continue reading

Posted in Linux, developer | Tagged , , , , , | View Comments

Symfony2 WebProfiler

Symfony2 just introduced its WebProfiler, the utility will soon be the favorite of all programmers. Most veterans will recall that five years ago was the first Symfony framework to include a web debug toolbar. This bar displays useful information for debugging applications and provides access to all logs with a single click:

Symfony2 presents its WebProfiler as the great evolution of the web debug toolbar. Whenever you view a page, Symfony2 generates a unique token debug (pictured above, the token is 4c7e59811509c). By clicking on that token, it shows the WebProfiler with all the debug information:

In the menu on the left side you can see the five main sections to the Profiler which now has:

Request: displays information about the request and response (parameters, cookies, headers).
Exception: if the request has caused an exception, it shows the type of exception, the message from the server and the whole execution trace.
Events: Shows the events raised during execution of the application (along with their event listeners) and the events that have been identified but have not come to run.
Logs: Displays the same information to log the original debug toolbar.
Doctrine / Propel: shows the queries to the database and the time taken for each.
Another great features of the Profiler is that it keeps all your information in a database called SQLiteprofiler.db and stored in the directory cache/ in your application. With this database, you’ll be able to consult the entire execution history of your application, which will facilitate the clearance of projects:

If you want to try the Profiler, you need version of the sandbox Symfony2 PR3, which has not yet been published as a downloadable file. Therefore, when you can only download via git:

mkdir sandbox
git clone http://github.com/symfony/symfony-sandbox.git sandbox
cd sandbox /
git checkout PR3
Now you can try accessing http://localhost/sandbox/index_dev.php Continue reading

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

Using Namespaces in Propel 1.5

Propel 1.5 does not cease to please the pace of development and introduction of new features, just a few weeks ago, Francois Zaninotto(project leader Propel) has published a new opportunity to edit the nested forms using mergeRelation and embedRelation and the other day to use Namespaces in the generation of models.

Propel 1.5 allows the use of Namespaces in files describing your model if you are using in the php version 5.3

Add the use of models is very simple:






A model class:

/ / Use fully qualified name
$ Book = new \ Bookstore \ Book ();
/ / Or use an alias
use Bookstore \ Book;
$ Book = new Book ();
/ / Remember to use the \ namespace for core Propel classes in this case
$ Con = \ Propel:: getConnection ();
$ Book-> save ($ con);
More details can be read in the blog Francois Zaninotto Continue reading

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

How to uninstall / remove Ruby Gems (on Ubuntu)?

Hi All, I was trying to remove Ruby Gems on my lucid distro (ubuntu 10.04). I thought of posting it here for my own reference. Some of you might find useful.

First thing we need to find out is the exact location that the Ruby installs it’s libraries. In the terminal program, You can type the following command to find out the exact location.

ruby -e 'puts $:'

You’ll get list of paths. This is the output that I got in my machine.

/usr/local/lib/site_ruby/1.8
/usr/local/lib/site_ruby/1.8/i486-linux
/usr/local/lib/site_ruby/1.8/i386-linux
/usr/local/lib/site_ruby
/usr/lib/ruby/vendor_ruby/1.8
/usr/lib/ruby/vendor_ruby/1.8/i486-linux
/usr/lib/ruby/vendor_ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/i486-linux
/usr/lib/ruby/1.8/i386-linux
.

Next we need to change our directory in to /usr/local/lib/site_ruby/1.8 and type following command to list the files.

ls -la
drwxr-xr-x 5 root root   4096 2009-07-15 12:15 .
drwxr-xr-x 3 root root   4096 2009-07-15 12:14 ..
-rw-r--r-- 1 root root   1415 2009-07-15 12:15 gauntlet_rubygems.rb
drwxrwsr-x 2 root staff  4096 2009-07-15 12:14 i486-linux
drwxr-xr-x 2 root root   4096 2009-07-15 12:15 rbconfig
drwxr-xr-x 6 root root   4096 2009-07-15 12:15 rubygems
-rw-r--r-- 1 root root  29116 2009-07-15 12:15 rubygems.rb
-rw-r--r-- 1 root root    268 2009-07-15 12:15 ubygems.rb

Now we are ready to remove the gems. Type

rm -r rubygems.rb ubygems.rb rubygems

If you wish to remove all gems installed in your computer, first find out the location by executing following commands

 which gem gem1.8

Next you can remove them by using following commands. That’s it!

rm -r /usr/local/bin/gem
rm -r /usr/bin/gem1.8

All the best. Continue reading

Posted in Technology, developer | Tagged , , | View Comments

Unit Level Software Testing

I have heard some people saying that Unit testing is done primarily by the developers and test engineers need not know about Unit testing. But this is not the case, Unit testing is as important for test engineers as it … Continue reading

Posted in Software Testing | Tagged , | View Comments

Type confusions in Symfony

I post this merely to point out how easy it is to forget to check EVERYTHING when you appear to have a bug. I’ve been trying unsuccessfully for the last hour to save a string to my database, like $myString … Continue reading

Posted in Symfony | Tagged , , , | View Comments

Symfony: get the working environment(Development or Production)

While developing an application in Symfony , You might want to run some part of your code in development environment and other part in production environment. In such situation you can use sfConfig::get class to get the environment in which … Continue reading

Posted in Symfony, Technology | Tagged , , , , | View Comments
Get Adobe Flash playerPlugin by wpburn.com wordpress themes

DecentMind is Digg proof thanks to caching by WP Super Cache