How to recursively delete .svn directories
Just move to the directory where you want to delete, recursively, the .svn directories and type the folowing line:
rm -rf `find . -type d -name .svn`
Just move to the directory where you want to delete, recursively, the .svn directories and type the folowing line:
rm -rf `find . -type d -name .svn`
[ad#only_in_post]
I met the following error when trying to launch an Android project using eclipse:
[2010-10-23 19:31:02 - adb]Failed to get the adb version: Cannot run program "/usr/src/android-sdk-linux_x86/tools/adb": java.io.IOException: error=2, <a href="http://www.score-louisville.org/content/view/31/">cialis effectiveness</a> No such file or directory
After googling I found those useful steps to make it running properly:
1. install getlibs from http://frozenfox.freehostia.com/cappy/getlibs-all.deb
2. open terminal and go to your android folder and then platforms/android-1.6/tools
3. run this command from terminal getlibs aapt
Copy and paste the following commands into your terminal:
1 2 3 | sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" sudo apt-get update sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin sun-java6-fonts |
Verify your java version:
1 | java -version |
Done
Error:
1 2 3 | Warning: include_once(Net/SMTP.php) [function.include-once]: failed to open stream: No such file or directory in /usr/lib/php/Mail/smtp.php on line 348 Warning: include_once() [function.include]: Failed opening 'Net/SMTP.php' for inclusion (include_path='.:/usr/lib/php') in /usr/lib/php/Mail/smtp.php on line 348 Fatal error: Class 'Net_SMTP' not found in /usr/lib/php/Mail/smtp.php on line 349 |
All you need is to install the missing pear package:
1 | sudo pear install Net_SMTP |
The Juggernaut plugin for Ruby on Rails aims to revolutionize your Rails app by letting the server initiate a connection and push data to the client. In other words your app can have a real time connection to the server with the advantage of instant updates. Although the obvious use of this is for chat, the most exciting prospect is collaborative cms and wikis.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/sh -e
APP_PATH=/home/zooz.com/current
JUGGERNAUT_CONFIG="$APP_PATH/juggernaut.yml"
JUGGERNAUT_PID="$APP_PATH/tmp/pids/juggernaut.pid"
JUGGERNAUT_LOG="$APP_PATH/log/juggernaut.log"
RAILS_ENV=production
case $1 in
start)
echo "Starting Juggernaut ..."
juggernaut -d -c $JUGGERNAUT_CONFIG --pid $JUGGERNAUT_PID --log $JUGGERNAUT_LOG
;;
stop)
echo "Stopping Juggernaut ..."
juggernaut -k * -c $JUGGERNAUT_CONFIG --pid $JUGGERNAUT_PID --log $JUGGERNAUT_LOG
;;
restart)
echo "Juggernaut restart ..."
echo "Stopping Juggernaut ..."
juggernaut -k * -c $JUGGERNAUT_CONFIG --pid $JUGGERNAUT_PID --log $JUGGERNAUT_LOG
echo "Starting Juggernaut ..."
juggernaut -d -c $JUGGERNAUT_CONFIG --pid $JUGGERNAUT_PID --log $JUGGERNAUT_LOG
;;
esac |
Today I got the error below :
1 | ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) |
after typing :
1 | mysql -u root |
I don’t know why ? but I know how to solve it.
First of all let’s disable password authentication :
Stop your MySQL daemon:
1 | /etc/init.d/mysql stop |
or
1 | /etc/init.d/mysqld stop |
1 | mysqld_safe --skip-grant-tables & |
Secondly run :
1 | mysql -u root |
Finally, In your MySQL command line prompt issue the following command:
1 2 3 4 | USE mysql; UPDATE user SET password=PASSWORD("my_password") WHERE user="root"; FLUSH PRIVILEGES; EXIT |
Password is now reset to my_password. So just restart your MySQL server using :
1 | /etc/init.d/mysql restart |
or
1 | /etc/init.d/mysqld restart |
and use your new password to authenticate :
1 | mysql -u root -p |
All that remains is to enter your password.
To have more fun with GTalk (Google Talk) you can add some text formatting :

[ad#only_in_post]
[ad#only_in_post]
This is a stupid post but if you are addicted to Google Talk, like me, you will have more fun with GTalk using those few styling tips.
1 2 3 4 5 6 7 8 | pecl install pecl_http downloading pecl_http-1.6.3.tgz ... Starting to download pecl_http-1.6.3.tgz (173,005 bytes) .....................done: 173,005 bytes 71 source files, building running: phpize sh: phpize: not found ERROR: `phpize' failed |
1 | apt-get install php5-dev |
or php4-dev if you are running php 4.x
1 | apt-get install php4-dev |
Q : What’s the best thing that may happen to a developer ?
A : A Bugat the beginning of the day
![]()
I ran script/console in a rails project to debug something on console, but I got this LoadError:
1 2 3 4 5 6 7 8 9 10 | Loading development environment (Rails 2.1.0)
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require’: no such file to load — readline (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require’
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules’
from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each’
from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules’
from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup’
from /usr/local/lib/ruby/1.8/irb.rb:54:in `start’
from /usr/local/bin/irb:13 |
1 2 | sudo apt-get install libncurses5-dev sudo apt-get install libreadline5-dev |
Then move to your ruby source folder, subfolder ext/readline and then configure, build and install stuffs.
[ad#hire_me]
1 2 3 4 | cd /usr/src/ruby-1.8.6-p368/ext/readline/ ruby extconf.rb sudo make sudo make install |
you may get something like this : ( when running ruby extconf.rb)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | marouan@myownpercept:/usr/src/ruby-1.8.6-p368/ext/readline$ sudo ruby extconf.rb checking for tgetnum() in -lncurses... yes checking for readline/readline.h... yes checking for readline/history.h... yes checking for readline() in -lreadline... yes checking for rl_filename_completion_function()... yes checking for rl_username_completion_function()... yes checking for rl_completion_matches()... yes checking for rl_deprep_term_function in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_completion_append_character in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_basic_word_break_characters in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_completer_word_break_characters in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_basic_quote_characters in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_completer_quote_characters in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_filename_quote_characters in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_attempted_completion_over in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_library_version in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_event_hook in stdio.h,readline/readline.h,readline/history.h... yes checking for rl_cleanup_after_signal()... yes checking for rl_clear_signals()... yes checking for rl_vi_editing_mode()... yes checking for rl_emacs_editing_mode()... yes checking for replace_history_entry()... yes checking for remove_history()... yes creating Makefile |
Recent Comments