PigRider Blogs

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

Open Git Bash Terminal From Sublime Text

[Author: Dingyu]   [Thu, 2017-06-15, 12:06]   [1324 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

How to make Yarn work smoothly in Windows

[Author: Dingyu]   [Thu, 2017-06-15, 12:06]   [94 views]

Javascript

This article is for anyone installed Yarn by using .msi file in Windows.
You may got errors like:
readlink: command not found
winpty: command not found
My Solution: After I installed the latest Git (version 2.13.1) and used Git Bash, all those errors were gone.
Then, when you use yarn init command i ... see full article

Delete a file in Windows with a too long filename

[Author: Dingyu]   [Mon, 2017-05-08, 20:44]   [108 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]   [5565 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]   [13358 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]   [7735 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]   [3622 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]   [411 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]   [1390 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]   [400 views]

Linux

Good Article About Linux Permissions
https://www.linux.com/learn/understanding-linux-file-permissions ... see full article
Previous 1 2 3 4 5 6 Next

Most Popular By This Author: