Sunday 27 October 2013

6 pequeños trucos para Prestashop que te salvarán la vida

http://guiabreve.com/6-pequenos-trucos-para-prestashop-que-te-salvaran-la-vida.html

How to migrate/move Prestashop to another server


  • Copy all files from Prestashop Development (PsD) to Prestashop Production (PsP).
  • PsD: Export database using phpmyadmin in zip format.
  • PsP: Create new database username and password.
  • PsP: Import database using phpmyadmin.
  • PsP: Give the username created full privileges to imported database.
  • PsP: Change Prestashop configuration if needed: /prestashop/config/settings.inc.php
define('_DB_SERVER_', '________');
define('_DB_NAME_', '________');
define('_DB_USER_', '________');
define('_DB_PASSWD_', '________');
define('_DB_PREFIX_', '________');
...etc.
  • PsP: Force .htaccess regeneration by:
# mv /prestashop/.htaccess /prestashop/.htaccess-dev
  • PsP: Browse and login into the Prestashop administration page: 
http://<URL>/admin1111/
  • PsP: Go to Preferences  > SEO & URLs > Set shop URL and change Shop domain + SSL domain + Base URI accordingly to our new configuration
  • PsP: Go to Preferences  > SEO & URLs > Set up URLs > Friendly URL switch it's state to regenerate the .htaccess file.

*In case we experience domain relocation problems, configuration of Shop domain and SSL domain can be found in the database : SELECT * FROM `ps_configuration` WHERE `name` LIKE '%shop_domain%' 

Regards.

Wednesday 23 October 2013

Installing optimus graphic card on ubuntu/linux mint

With 2GB NVIDIA GeForce GT 525M Graphics Card with Optimus installing nvidia-current drivers from restricted drivers causes the loss of compositing. Moreover running nvidia-xconfig crashes X on the next reboot (fix it with sudo rm /etc/X11/xorg.conf and reboot). This happens because you need Bumblebee to make it work, more explanations follow the suggested procedure.
The Bumblebee stable PPA and more information about this subject can be found in Bumblebee.
As an example, using Bumblebee, it changes battery rate from 1900+ to around 1600 for me (verwilst). The current rate (with disconnected charger) can be tested using:
grep rate /proc/acpi/battery/BAT0/state
Installation on 12.04
Add bumblebee ppa, reload, check your update and install bumblebee. Finally add your $USER (replace by your username) to the group bumblebee :
$ sudo add-apt-repository ppa:bumblebee/stable

$ sudo apt-get update && sudo apt-get upgrade

$ sudo apt-get install bumblebee bumblebee-nvidia

$ sudo usermod -a -G bumblebee $USER
Now restart, and check your configuration :
$ glxspheres

$ optirun glxspheres

And compare the fps... If you need to use the nvidia video card, launch your application with optirun at the begin of the command line.

Thursday 10 October 2013

Installing aptana in ubuntu based systems

# sudo apt-get install libjpeg62 libwebkitgtk-1.0-0 git-core
# sudo add-apt-repository ppa:webupd8team/java
# sudo apt-get update
# sudo apt-get install oracle-java7-installer
Download Aptana: http://www.aptana.com/products/studio3/download
# sudo unzip Aptana_Studio_3_Setup_Linux_x86_3.4.2.zip -d /opt
# wget http://www.samclarke.com/wp-content/uploads/2012/04/AptanaStudio3.desktop
# sudo mv AptanaStudio3.desktop /usr/share/applications/AptanaStudio3.desktop

enjoy!

---- more ---

AptanaStudio3.desktop

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Aptana Studio 3
GenericName=Integrated Development Environment
Comment=Aptana Strudio 3 Integrated Development Environment
Exec=/opt/Aptana_Studio_3/AptanaStudio3 %F
TryExec=/opt/Aptana_Studio_3/AptanaStudio3
Icon=/opt/Aptana_Studio_3/icon.xpm
StartupNotify=true
StartupWMClass="Aptana Studio 3"
Terminal=false
Type=Application
MimeType=text/xml;application/xhtml+xml;application/x-javascript;application/x-p
hp;application/x-java;text/x-javascript;text/html;text/plain
Categories=GNOME;Development;IDE;


source: http://www.samclarke.com/2012/04/how-to-install-aptana-studio-3-on-ubuntu-12-04-lts-precise-pangolin/