Posts

Find text in files script

Unix find . | xargs grep 'my text' -sl

Hostgator SSH "Too many authentication failures"

Recently I was facing issue using regular ssh connection (no public key auth) to hostgator using the command ssh myname@mysite.com -p 2222 > Too many authentication failures for myname This is the command to use when you want to enter login/pwd: ssh myname@mysite.com -p 2222 -o PubkeyAuthentication=no

Prevent Wordpress on localhost to ask for FTP credentials

In my local wordpress install on ubuntu (12.10), wordpress was always asking for FTP credentials (and not on my windows 7 box) when installing a plugin or updating wordpress from the Dashboard. Here are the steps that works for me to fix that: cd /var/www sudo chown -R www-data:www-data wordpress

Mercurial in Eclipse Juno

the following update site can be used: http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/stable/

Solving "set up docs offline" not available for google apps user

As I installed Google Drive web app in Chrome, I notice that the option "Set up docs offline" was available for my Google (gmail) account but not for my google apps domain account. As a matter of facts, this must be enabled first by the administrator of the google apps domain. Go to the google apps dashboard Go to the settings for the Google apps Select Drive & Docs application Check "Allow users to enable offline docs" in the offline section Click on "Save changes" Wait...(1 hour). In fact I tried to simply restart Chrome after 15mn The option "Set up docs offline" should then be available for your users

Setup Google account in Android Emulator

As of today with Emulator with Android 4.1, google accounts are not available in the emulator. An alternative is to set it as a Mobile Exchange Account (!) Go to the Add Exchange Account page Enter your google email and password In the next page, retrieving account will fail. Replace the "Domain\Username" field with your email again and replace the "Server" field with the address: "m.google.com"

Recovering corrupted eclipse workspace

It has happened to me sometimes when Eclipse has crashed or if I had to kill it after it becomes unresponsive that the workspace was corrupted and that I was unable to launch the same workspace. Too lazy to create a new workspace and import all my projects again, one trick that did work was to go into the workspace folder and remove the following file: <my_workspace_name> /.metadata/.plugins/org.eclipse.core.resources/.snap I was than able to start eclipse again and find all my projects in it.