Some useful tips and tricks

Just another WordPress tips:

WordPress provides options for Email subscriptions on various categories. A few of these categories are:

  1. Subscription to comments
  2. Subscription to blog posts.

These options are by default set to true, which means a user can subscribe to a comment and/or blog, to get updated on each comment and post on the blog. These are always liked by many bloggers but a few like me, would prefer not to enable this feature. So, to disable these features, goto “Settings > Discussion“, and scroll down to view the options.

  1. Subscribe To Comments  ->  Uncheck this to disable the comment subscription feature.
  2. Subscribe To Blog  ->  Uncheck this to disable the blog subscription feature.

If you wanna create a custom Home Page that doesn’t have your Blog posts and keep all your Blog posts in a different page, you can do that by just making a few changes to your pages.

By default, WordPress would display your Blog posts in the Home Page. But WordPress, provides you the option for customizing this to your needs.

First, create a page that you’re gonna use as your Home Page, let’s say “Home”. To create a page, goto “Pages” menu and select “Add New” option. Give the Page name and click “Publish”.  Now create another page, which you’ll use as your Blog Page for posting your Blogs, let’s say “Blog”. Now you need to make a small modification, to know which page your WordPress site will use as the Home Page and which one will it use for posting your Blogs.

To make this work, goto the “Settings” menu and select “Reading”. You can see the “Front page displays” setting, which by default has the “Your latest posts” option enabled. Now select “A static page” option and in the “Front Page” drop down list, select the page that you’ll use as your Home Page, in our example, its “Home”. Now in the “Posts page” drop down list, select the page that you’ll use for posting your blogs, in our example, it’s “Blog”.

That’s it. Now you have a static Home page as your default page, which you can edit and change it to your needs. And you have your separate Blog page, which will show all your blog posts.

Have fun.

Installing Autotest

To install autotest, follow these steps
$ sudo gem install autotest
$ sudo gem install autotest-rails-pure
$ sudo gem install autotest-growl

For notification of any file system change, install this

  • For Linux OS:
    $ sudo gem install autotest-inotify
  • For Mac OS X:
    $ sudo gem install autotest-fsevent

Create a file “.autotest” in the project directory and add these lines
require 'autotest/growl'
require 'autotest/inotify'

Mac OS users should use “fsevent” instead of “inotify”.

Now when you run autotest, it should run successfully.

First install the rpm fusion package.

$ rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

Then install the VLC player.

$ yum install vlc

Install Remi repository first,
$ rpm -Uvh http://rpms.famillecollet.com/remi-release-14.rpm

To check available MySQL versions
$ yum list mysql

To check available Mysql and Mysql server versions.
$ yum --enablerepo=remi list mysql mysql-server

To update or install MySQL
$ yum --enablerepo=remi install mysql mysql-server

To start MySQL server and autostart MySQL on boot
$ service mysqld start
$ chkconfig --levels 235 mysqld on

At first, we need Ruby, at least a 1.8.7 version for Rails 3 installation. Also we need a database, here which is MySQL and the necessary RubyGems.

All these dependencies and Rails can be installed in a single command,

$ yum install rubygem-rails ruby-devel mysql-devel ruby-mysql -y

The above command installs MySQL, Ruby 1.8.7, Rubygems, and Rails 2.3.8. But we need Rails 3, isn’t it? So, type this command after running the previous one.

$ gem install rails

This will install the Rails 3 framework.

Type this as root user.
$ sudo apt-get install avant-window-navigator

Follow

Get every new post delivered to your Inbox.