Peter-rehm - peter-rehm.de - Peter Rehm's Blog
General Information:
Latest News:
Setting secure file permissions for PHP projects 23 Jul 2013 | 11:21 am
I am setting the permission for folders to 755 and for files to 644. This can be adjusted automatically with find: CODE: $ find /path/to/project -type d -exec chmod 755 {} \; $ find /path/to/proje...
PHP 5.5 Opcache in Development 14 Jul 2013 | 03:36 pm
PHP 5.5 comes with the Zend Opcache built in. There are also recommended settings for production which needs to be adjusted for development. In development you usually dont want to wait until you se...
Google Maps API in Twitter Bootstrap Tabs 22 Jan 2013 | 10:40 pm
It is a common request to use the Google Maps API in some a tab. I came across the issue again today using Twitter Bootstrap. If you embed the MapCanvas not on the first tab you will notice that the...
git; insufficient permission 8 Jan 2013 | 02:32 pm
If you get the following error CODE: error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed you have me...
Changing Locale on Debian to English 7 Jan 2013 | 02:54 am
If you want to change the locale on your Debian system you can make this habben with the following two commands: CODE: dpkg-reconfigure locales locale-gen After that you have to restart your cons...
Installing MongoDB Binaries on Mac 5 Nov 2012 | 06:49 pm
Get latest binaries from here: http://www.mongodb.org/downloads and unzip. CODE: sudo mv mongodb-osx-x86_64-2.2.1 /usr/local/mongodb sudo mkdir /usr/local/mongodb_data /var/log/mongodb sudo chown...
Symfony2 Ordered Fixtures 17 Oct 2012 | 10:33 pm
If you want to set the order in which the Fixtures are boing loaded there are two steps: - Use the AbstractFixture Interface CODE: class LoadCompanyData extends AbstractFixture implements OrderedF...
Symfony2 Permissions on Mac 17 Oct 2012 | 10:31 pm
To configure the permissions on mac use the following commands: sudo rm -rf app/cache/ sudo rm -rf app/logs/ sudo chmod +a "_www allow delete,write,append,file_inherit,directory_inherit" app/cache ...
Compare Content of 2 Folders 25 Aug 2012 | 03:29 pm
If you need to compare 2 folders on a windows machine to figure out whether the content matches to check e.g. if you have really copied all files you can do this on the command line. CODE: - open ...
Compiling error regarding xcode select 18 Aug 2012 | 11:03 pm
If you get this error CODE: xcode-select: Error: No Xcode is selected. Use xcode-select -switch , or see the xcode-select manpage (man xcode-select) for further information. Make sure that you have...