{ "require": { "php": ">=5.3.0", "propel/propel1": "1.*", "willdurand/propel-geocodable-behavior": "dev-master" }, "autoload": { "psr-0": { "": "src/" } } } By adding "willdurand/propel-geocodable-behavior": "dev-master" in composer.json you can use this custom GeoCodable Behavior. Or you can download GeocodableBehavior.php from GitHub repo for this behavior. and put it in /src directory or somewhere, then register this class in your application autoloader. If you want to perform all this task by composer then just run composer update and everything will be ready …
Category: General
Suppose, you think that you just copied a large directory or application or files to any other place inside your operating system. Then you need to change the file permission to all the files or to all the directories recursively in your Ubuntu operating system. In this case, don’t worry I will show you how to set recursive directories only or files only permission from your terminal in Ubuntu. Simply open your terminal and write down the following command to …
Simple we use to show a image by writing the following code: <img src ="thelocationofyourimage.jpg" > Now if sometime you need to change this src attribute value by jQuery. Then you need to put down the following code. $('img[src^="thelocationofyourimage.jpg"]').each(function() { $(this).attr('src', $(this).attr('src').replace("thelocationofyourimage.jpg", "UpdatedLocationOfTheImage.jpg")); }); Try it by yourself. Thanks in advance.
Sometimes I saw an error to do a task in my Ubuntu PC. The error was something like invalid byte sequence in us-ascii. Then after searching a lots of solution over net I found out that local settings of my Ubuntu was messed up. And it’s really important to make your locale settings correct to avoid lots of ugly error. To check your existing locale configuration of Ubuntu, please type the following command: sudo locale If there is something wrong …