I used so many GPRS services in pune. I am really comfortable with that speed but When I used the Reliance broadband service I really got supprize about service of reliance netconnect. What Reliance is providing is really good in … Continue reading
Monthly Archives: November 2009
remove .bak files from folder through command
I found following URL helpful to me http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/ I used following command for deleting the .bak files from folder. #find ./ -name “*.bak” -delete
Fetch the wordpress post paragraph number wise
I created One function for fetching the wordpress post as per p tag number. # You can Use this function for showing function paragraph_show($paragraph_number, $post_content){ $show_after_paragraph_tag = 1; $paragraph_number= $paragraph_number – 1; //echo $paragraph_number; $content = apply_filters(‘the_content’, $post_content); if(substr_count($content, ‘ … Continue reading
Image upload issue in wordpressmu with nginx
I sovled the issue with WordprssMU and Images. you can use following code. Please Use the following code; location ~ ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ { root /usr/share/nginx/html/wordpressmu; rewrite ^/.*(/wp-admin/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last; rewrite ^/.*(/wp-includes/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last; rewrite ^/.*(/wp-content/themes/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last; rewrite ^/.*(/wp-content/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last; … Continue reading
Nginx rule with image fix for multiple wordpress instance
I sovled the issue with Wordprss and Images. If you want to host or install two instances on one domain in that senorio you can use following code. Please Use the following code; location ~ ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ { #images for wordpress … Continue reading
How to change the computer name in linux
Follow me if you want to change the computer name on Linux [siwan@localhost ~]$ hostname siwan hostname: you must be root to change the host name [siwan@localhost ~]$ su Password: [root@localhost siwan]# hostname siwan [root@localhost siwan]# close the terminal or … Continue reading
How to host multiple rails site on Nginx
User following code in Nginx.conf file.. and paste into that file #vim /etc/nginx/nginx.conf Incoming search terms:multiple rails sites nginxhow to host multiple rails nginx
USA State list for Rails
Every time we need this migration script for our projects Use following command for Model generate [siwan@localhost siwan]$ ruby script/generate model UsStates exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/us_states.rb create test/unit/us_states_test.rb create test/fixtures/us_states.yml exists db/migrate create db/migrate/20091117115011_create_us_states.rb [siwan@localhost siwan]$ … Continue reading
Issue with installing the mysql gem: solved, how to install mysql gem without issue
When tried to install mysql gem I got following error [root@localhost siwan]# sudo gem install mysql Building native extensions. This could take a while… ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for mysql_ssl_set()… … Continue reading
Install mp3 player and vlc player on Fedora
Play mp3 songs in fedora linux I am using the Fedora 11 and on that I am going to install the Fluendo MP3 plugin If you want to install the Fluendo MP3 plugin on Fedora 8, 9, 10 or 11 … Continue reading