PigRider Blogs

Sign In
HTML CSS Javascript Ruby on Rails C++ Java Python SQL Git Linux Others All
Previous 1 2 3 4 5 6 7 8 Next

Delete a file in Windows with a too long filename

[Author: Dingyu]   [Mon, 2017-05-08, 20:44]   [24 views]

Others

1. Open a "Windows Command Processor", or "cmd.exe"
2. Type below commands there to delete the folder:
mkdir empty_dir
robocopy empty_dir the_dir_to_delete /s /mir
rmdir empty_dir
rmdir the_dir_to_delete
Explanation:
This works because robocopy internally uses the Unicode-aware versions of Win32 fun ... see full article

Install or upgrade to Solr 4.10 with Jetty in CentOS 6.6, and set up Solr server to work with Sunspot Gem 2.1.1

[Author: Dingyu]   [Tue, 2017-03-14, 16:14]   [5197 views]

Ruby on Rails Linux

An easy, straightforward, understandable, and painless process to install or upgrade to Solr 4.10 with Jetty in CentOS 6.6, and set up Solr server to work with Sunspot Gem 2.1.1
1. Install Java OpenJDK. Solr 4.10 requires Java 1.7 or greater. I installed Java 1.8 for myself.
yum list java*
# (option ... see full article

Install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem.

[Author: Dingyu]   [Tue, 2017-03-14, 16:13]   [12754 views]

Ruby on Rails Linux

The process to install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem:
(Please click here to see my latest blog for installing Solr 4.10, in which I developed an easy, straightforward, understandable, and painless method to let Solr work together with Sunspot gem.)
1. ... see full article

Slove terminal no 'bash' shell could be found problem for RadRails (Aptana Studio 3) in Windows

[Author: Dingyu]   [Tue, 2017-03-14, 16:13]   [7500 views]

Others

If you installed RadRails (Aptana Studio 3) in Windows, but the terminal doesn't work and show the error like:
This Terminal Emulator is not functional because no 'bash' shell could be found.
Please correct the problem and restart the IDE.
To solve this problem, go to RadRails (Aptana Studio 3) ... see full article

Use an engine to share layout among multiple applications in Rails 3.2

[Author: Dingyu]   [Thu, 2016-08-11, 10:29]   [3422 views]

Ruby on Rails

This blog shows how I build an Rails engine to share layout among multiple applications step by step. The way I build the shared layout engine in this blog may be not the best. However, I only want to give some clue to those who are still struggling in building this kind of engine.
I have created Gi ... see full article

A very good CSS animation creator

[Author: Dingyu]   [Sat, 2016-07-23, 17:25]   [316 views]

CSS

A very good CSS animation creator:
https://daneden.github.io/animate.css/ ... see full article

Setup Ruby on Rails environment in Centos with Apache and MySQL

[Author: Dingyu]   [Tue, 2016-07-12, 16:52]   [1220 views]

Ruby on Rails Linux

Install RVM (Ruby Version Manager)
sudo curl -sSL https://get.rvm.io | bash -s stable
rvm requirements
Install Ruby
rvm install 2.0.0
rvm use 2.0.0 --default
Install Rails
gem install rails
Install MySQL
sudo yum install mysql-server mysql-devel
sudo chkconfig mysqld on
sudo service mysqld restart
S ... see full article

Good Article About Linux Permissions

[Author: Dingyu]   [Tue, 2016-07-12, 14:17]   [297 views]

Linux

Good Article About Linux Permissions
https://www.linux.com/learn/understanding-linux-file-permissions ... see full article

Open Git Bash Terminal From Sublime Text

[Author: Dingyu]   [Fri, 2016-03-11, 18:18]   [1154 views]

Others

1. Install Sublime Package Control plugin from the website: https://packagecontrol.io/
2. Use Package Control to install Sublime Terminal plugin. (http://wbond.net/sublime_packages/terminal)
3. Change the setting of Sublime Terminal as:
{
    // The command to execute for the terminal, leave blank f ... see full article

Use "gedit" edit files on a remote server which doesn't support GUI

[Author: Dingyu]   [Wed, 2016-03-09, 19:17]   [521 views]

Linux

Memo
Use "gedit" edit files on a remote server which doesn't support GUI:
ssh -C -Y username@serverhostname gedit /path/of/the/file
Here:
-C      Requests compression of all data (including stdin, stdout,
        stderr, and data for forwarded X11 and TCP/IP connections).  The
        compression al ... see full article
Previous 1 2 3 4 5 6 7 8 Next

Recent Most Popular Blogs: