-
Bash Commands sweet stuff
-
<a href="javascript:closeWindow();">Close Window</a>
If you are working in Linux and need to set some more complex permissions than the straight user, group everyone RWX style, then you can.
Working in Ubuntu, you need to first of all install ACL
sudo apt-get install acl
Now before you can use ACL, you need to enable it on whichever volumes you want to use it on. To do this you have to edit your fstab (which if you do it wrong can cause problems so make sure you back it up!)
In the options column of the fstab for the volume you are working with, you need to add acl, eg:
/dev/mapper/server-root / ext4 errors=remount-ro 0
becomes
/dev/mapper/server-root / ext4 acl,errors=remount-ro 0
Now you need to remount
mount -o remount /
Now you need to check acl is working:
mount | grep acl
you should see a line with acl in there
Now to recursively set an ACL for a particular user giving full access on a folder structure, use this command:
setfacl -Rm u:user:rwX,d:u:user:rwX /path/to/folder
To fully understand ACL, hit the man pages
man acl
If you are looking for a consultant that can provide you with highly knowledgeable Magento consultancy services in the UK then you have come to the right place.
Edmonds Commerce can provide Magento consultancy services for your business and are happy to either come to your offices or to work with you remotely using the internet to facilitate complete communication and understanding no matter where you are.
Our Magento consultants are all Magento developers for the most part and have a deep understanding of the Magento platform and its various capabilities and idiosyncracies. We can help you learn to get the best out of your Magento eCommerce based web shop.
If you would like to get in touch with Edmonds Commerce about providing you with a Magento consultant, simply click here to go to our contact form and drop us an email. Or you can give us a call on 0844 357 0201.
Often when creating new code, you want the system to die on any kind of error so that you can be sure that there are no bugs lurking in minor errors that are actually having a major effect.
An easy way to do this is to do this:
create a file called error_handler.php with the following contents:
<?php /* File error_handler * Edmonds Commerce * www.edmondscommerce.co.uk * info@edmondscommerce.co.uk * 0844 357 0201 */ function ec_error_handler($severity, $message, $filename, $lineno) { /*if (error_reporting() == 0) { return; } if (error_reporting() & $severity) {*/ throw new ErrorException($message, 0, $severity, $filename, $lineno); /*}*/ } set_error_handler('ec_error_handler'); function ec_exceptions_handler(Exception $e){ h(1, 'Uncaught Exception'); h(2, $e->getMessage()); h(3, 'Line ' . $e->getLine() . ' of ' . $e->getFile()); foreach($e->getTrace() as $t){ var_dump($t); } die; } set_exception_handler('ec_exceptions_handler');
(Note the h function is this:)
function h($n, $t){
echo "<h$n>$t</h$n>";
}
Now include that file somewhere and all of your tiniest errors will throw an exception and dump a stack trace for you.
This is great for bug hunting.
You will notice that there is some commented out code in the ec_error_handler. Uncomment this if you want the error reporting level to be that of your php.ini settings.
As it is it will throw exceptions for everything, but for bug hunting that’s good I think
If you are finding iPlayer or Youtube videos are using excessive amounts of CPU, it might be worth trying this fix
Simply create a folder in /etc called adobe (assuming it doesn’t already exist)
sudo mkdir /etc/adobe
now create a file called mms.cfg with this single line in it:
OverrideGPUValidation=true
sudo gedit /etc/adobe/mms.cfg
Now save it and restart firefox and you should hopefully find your flash video performance is dramatically improved. I got a 30% reduction.
Solution originally seen here:
http://ubuntuforums.org/showpost.php?p=7535876&postcount=70
It says intel graphics cards only, but its worth a try if you are running another or you are not sure.
Spotify have brought out a native Linux client (finally!) and I can report that it works great.
However, the installation instructions are a little sparse – here are some easier ones:
First you need to add the spotify repository. Here are some proper instructions on how to add repositories:
http://ubuntuguide.org/wiki/Ubuntu:Lucid#Add_Extra_Repositories
Basically though, you need to edit (as sudo) this file: /etc/apt/sources.list
sudo gedit /etc/apt/sources.list
at the bottom of the file paste in this line and save the file:
deb http://repository.spotify.com stable non-free
Now open a terminal window (applications, accessories, terminal) and run the following:
gpg --keyserver wwwkeys.de.pgp.net --recv-keys 4E9CFF4E
gpg --export 4E9CFF4E |sudo apt-key add -
apt-get update
apt-get install spotify-client-qt spotify-client-gnome-support
That installs it, but as far as I could tell nothing is added to the menu. You can actually launch the app by opening a terminal and simply running:
spotify
You might decide to manually add this to the menu or create a custom launcher in your panel
-
Magento – Indexing Process – 1.3.2.4 -> 1.4.1.0 – Magento 1.4.0 Upgrade Issues – eCommerce Software for GrowthFix Magento Index processing error (product price)
-
Invalid mode for clean() …… app/code/core/Zend/Cache/Backend/File.php(532): Zend_Cache::throwException
-
Layout problem after upgrading magento 1.3.* to 1.4
