[WordPress] – How I install wordpress manually

The easier way to install self-hosted WordPress on my host is using autoinstallers provided available in cPanel like Fantastico, Softaculous,etc but I want to experience manual installation just to see how complicated it is. It seems not too difficult. Probably my installation was smooth sailing. No issues encountered. Successful in the first attempt.

I referenced instructions from here:

  • http://www.siteground.com/tutorials/wordpress/wordpress_manual_installation.htm
  • http://codex.wordpress.org/Installing_WordPress

This is what i did:

  1. Get the wordpress files from WordPress download page. v3.5 as of this writing. I downloaded the .zip file into my computer.
  2. Extract the .zip file in my computer.
  3. I logged in to my web hosting cpanel to create a database for the new wordpress installation. Using the MySQL Database wizard, 
    1. Create New Database
    2. Create New User and add this new user to the New Database
  4. I go into the folder where I extracted the file and rename wp-config sample.php to wp-config.php
  5. I edit wp-config.php. I substituted the database details details. I leave the rest as it is.
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘database_name_here’);
    /** MySQL database username */
    define(‘DB_USER’, ‘username_here’);
    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘password_here’);Test
  6. Upload the wordpress files to my web hosting. I placed it to the root of my domain. 
  7. Using a browser, I open my wordpress install page www.mydomainname.com/wp-admin/install.php. On this page, i entered a title for my blog site, user name and password. These will be use to access my wordpress dashboard.

That’s it. I’m done. I have installed wordpress manually.

[WordPress] – Twenty Eleven customization

I learned 3 customization useful when using the WP Twenty Eleven theme. This theme is plain and simple.  Ideal for the page that I’m building. but there are features which i want to remove. First things first. I need a child theme. This link guided me on how to create a Child Theme. When that is done, I can start customizing i.e. removing features i don’t need.

Delete/Prevent “recent post”
This is best done in a child them. Download a copy of showcase.php from your server (wp-content/themes). Open and edit this file. Search and delete this section

<section class= "recent-post">
<h1 class="showcase-heading"><?php _e( 'Recent Posts', 'twentyeleven' ); ?></h1>
.
.
.
.

</section><!-- .recent-posts -->

Upload the file to your child theme folder and reload your blog.

Remove categories in post footer
I would not want the bottom of my posts to show the “Posted in <CategoryName>” sentence. To remove that, I open the style.css of the child theme and add the following lines:

.entry-meta
{
display:none;
}
Remove Comments form
This does not require editing to the theme. Instead, in the dashboard, go to Post -> All Posts. There is a checkbox to the left of column “Title” both on top and at the bottom. This will select Check all post. Then click on the drop down box with the word “Bulk Actions”. Select “Edit” and click the apply button. I see a form and on this form, I look for drop down box with label “Comments” and select “Do Not Allow”. I click on the Update button and I’m done. The comments form will no longer appear at the bottom of the posts. Can do this for pages as well.

[Bookstore] – Think And Grow Rich

buynow

Book Description

A must for anyone wanting to improve their lives and their positive thinking. There have been more millionaires and indeed, billionaires, who have made their fortunes as a result of reading this success classic than any other book every printed. NAPOLEON HILLS’s “Think and Grow Rich” is the authors most famous work. This is the COMPLETE Reference Book. A true masterpiece with the fundamentals of the Success philosophy.

***** ABOUT THE AUTHOR: Napoleon Hill was an American author who was one of the earliest producers of the modern genre of personal-success literature. His most famous work, Think and Grow Rich, is one of the best-selling books of all time. Hill’s works examined the power of personal beliefs, and the role they play in personal success. “What the mind of man can conceive and believe, it can achieve” is one of Hill’s hallmark expressions. How achievement actually occurs, and a formula for it that puts success in reach for the average person, were the focal points of Hill’s books.

****** Wikipedia, the free encyclopedia, about”Think and Grow Rich“: Think and Grow Rich is a motivational personal development and self-help book written by Napoleon Hill and inspired by a suggestion from Scottish-American businessman Andrew Carnegie. While the title implies that this book deals only with how to get rich, the author explains that the philosophy taught in the book can be used to help people succeed in all lines of work and to do or be almost anything they want. For instance, Jim Murray (sportswriter) wrote that Think and Grow Rich was credited for Ken Norton’s boxing upset of Muhammad Ali in 1973. The Reverend Charles Stanley writes “I began to apply the principles of (Think and Grow Rich) to my endeavors as a pastor, and I discovered they worked!” The book was first published during the Great Depression. At the time of Hill’s death in 1970, Think and Grow Rich had sold 20 million copies. It remains the biggest seller of Napoleon Hill’s books – a perennial best-seller after 70 years (BusinessWeek Magazine’s Best-Seller List ranked Think and Grow Rich as the sixth best-selling paperback business book 70 years after it was first published). Think and Grow Rich is listed in John C. Maxwell’s A Lifetime “Must Read” Books List. The text of Think and Grow Rich is founded on Hill’s earlier work The Law of Success, the result of more than twenty years of research based on Hill’s close association with a large number of individuals who achieved great wealth during their lifetimes. At Andrew Carnegie’s bidding, Hill studied the characteristics of these achievers and developed 16 “laws” of success intended to be applied by anybody to achieve success. Think and Grow Rich condenses these laws further and provides the reader with 13 principles in the form of a philosophy of personal achievement. It is noted in the book, that an individual with desire, faith, and persistence can reach great heights by eliminating all negative energy and thoughts and focusing at the greater goals in hand.

Product Details

  • Paperback: 238 pages
  • Publisher: Tribeca Books (December 6, 2012)
  • Language: English
  • ISBN-10: 1612930298
  • ISBN-13: 978-1612930299
  • Product Dimensions: 9.9 x 7 x 0.7 inches

 

buyfromamazon

WordPress.com or WordPress.org?

WordPress.com or WordPress.org? WordPress.com refers to wordpress hosted sites while wordpress.org are self hosted site.  What is the difference? As usual, I’ll present it in the usual gangnam Azare style i.e. a table. When it comes to formatting webpages, html table is my first choice. Formatting tables in wordpress is a bit different from normal html. If you want to know how to draw a borderless table, read my aha-moment-borderless-table-in-wordpress-com-post

WordPress.com WordPress.org
Cost Generally free. As in hosting is free. If you don’t like yourchoseofname.wordpress.com domain name, WordPress.com provides domain name purchase. And you can premium theme from wordpress.com too. Everything is at your own cost. Domain and hosting purchase. As well as purchase of essentials plugins for anti-spam, backup, SEO, etc.
Monetization WordAds but only sites with custom domains and “moderate to high traffic and appropriate content” are eligible to apply. Affiliate links is also not allowed. No restriction to make money. Advertising, selling products, affliate links. Plugins available to make it easy to add the functionality. For example, WPZon makes it easy to populate a blog post with keyword targeted Amazon products.
Customization Minimal customization. Can’t upload anything to the server. So in terms of themes and plugins, restricted to what is offered by wordpress.com. And customization to these themes are relatively limited as well. As mention, wordpress.com offers premium theme. No 3rd party plugins allowed. Complete control of your site. Install themes, widgets and plugins as desired. Take extreme care though. Possible exposure to viruses, hacks, exploits, malware, spyware. If that is not enough, there could be incompatabilities.
Knowledge Suitable for technically challenged people. Setup with just a few clicks. And you concentrate on content. Write post, pages, add tags and categorize it. Don’t need to bother about technical stuff like spam protection, backups, updates, security, spam-protection, etc. These are all  automatically handled. Needs quite a fair bit technical skills. If hosting does not provide one script install, setting up may require require manual database creation and file upload. You are on you own when it comes to spam protection, backups, updates, security.

Which is suitable for you? Well it all lies on your needs. For a beginner, I think it’s good to start to with wordpress.com. Familiarize and get a feel of the admin tool, build up a collection of content and then thing about moving to self hosting.  That’s what i’m doing.

References:

  1. http://diythemes.com/thesis/rtfm/differences-wordpress-com-org/
  2. http://weblogs.about.com/od/choosingabloghost/p/WordpressOvrvw.htm

Display Line number in Eclipse

This is trivial but useful. especially for debugging. Having line number displayed makes the error “visible”. I mean I can dive in to the problem area.  The feature is off by default. The setting is in the Preferences dialog. Either go in Window -> Preferences or right-click on editor window and select “Preferences…“.In the dialog that appears, go to Editors -> Text Editors and check the “Show line numbers”  as highlighted in the screenshot below.Click OK. And the line numbers appear on the left side of the editor window

[Aha! moment] Borderless table in wordpress.com post

I love using table to format my post. And it makes sense to hide the border. In web pages, it is simple adding table attribute border=”0″. As you might have know, we can use html tag in wordpress.com. However, that same table border attribute does not work when i added.  With the border visible, my posts looks ugly.

The way to hide the table border is adding attribute style=”border: none;” in table tag as well as all the table data (<td>) tags.

Here’s the table without the tag:

Column 1 Row 1 Column 2 Row 1
Column 1 Row 2 Column 2 Row 2
<table>
<tbody>
<tr>
<td>Column 1 Row 1</td>
<td>Column 2 Row 1</td>
</tr>
<tr>
<td>Column 1 Row 2</td>
<td>Column 2 Row 2</td>
</tr>
</tbody>
</table>

Ugly isn’t it? Now here’s the table with the tag added:

Column 1 Row 1 Column 2 Row 1
Column 1 Row 2 Column 2 Row 2
 <table style=”border: none;”><tbody>
<tr>
<td style=”border: none;”>Column 1 Row 1</td>
<td style=”border: none;”>Column 2 Row 1</td>
</tr>
<tr>
<td style=”border: none;”>Column 1 Row 2</td>
<td style=”border: none;”>Column 2 Row 2</td>
</tr>
</tbody>
</table>

Aha!

[Bookstore] – Outliers: The Story of Success

buynow

Book Description

In this stunning new book, Malcolm Gladwell takes us on an intellectual journey through the world of “outliers”–the best and the brightest, the most famous and the most successful. He asks the question: what makes high-achievers different?

His answer is that we pay too much attention to what successful people are like, and too little attention to where they are from: that is, their culture, their family, their generation, and the idiosyncratic experiences of their upbringing. Along the way he explains the secrets of software billionaires, what it takes to be a great soccer player, why Asians are good at math, and what made the Beatles the greatest rock band.

Brilliant and entertaining, Outliers is a landmark work that will simultaneously delight and illuminate.

Product Details

  • Paperback: 336 pages
  • Publisher: Back Bay Books; Reprint edition (June 7, 2011)
  • Language: English
  • ISBN-10: 0316017930
  • ISBN-13: 978-0316017930
  • Product Dimensions: 5.5 x 1.1 x 8.2 inches

buyfromamazon

[Bookstore] – Why Men Marry Some Women & Not Others


Why Men Marry Some Women & Not Othersbuynow

Book Description

A compulsive, informative and eye-opening read for women who want to know which men are most likely to commit to a relationship, what attributes in a partner they’re looking for or whether their current partner will ever propose. Based on 11 years of extensive market research An utterly compelling read, this book contains illuminating facts and tips from the author’s market research team of 300 experienced researchers who interviewed focus groups and engaged couples over a period of 11 years. Over 2,500 women and their fiances, along with over 1000 single people, were interviewed. When their answers to questions were analysed, patterns arose that led to the successful strategies offered in this book. Discover: * How to increase your chances of marrying by up to 60% * Ten warning signals that a man is never going to marry * How to trigger a proposal * The advantages and dangers of dating divorced or widowed men * How to deal with a partner’s children Findings included: * After 18 months of a relationship, the chances that a man will propose drop by 50% * Women who are slender have an easier time meeting men and better odds of getting married * To be on the safe side, a woman should seriously start looking for a husband in her late 20s. * The majority of male graduates between 28 and 33 are in their high commitment years and likely to propose * After 38, the chances men will ever marry drop dramatically. At 42 or 43 many men become confirmed batchelors * Single men in their late thirties or forties with divorced parents may believe in living together, because in their minds, once people marry, the romance ends * Men rate sexual or social virtue when choosing a bride: someone they could take home to Mother or introduce to their boss * For many, their future spouse is a status symbol; meeting their ideas of refinement, elegance and decency

Product Details

  • Paperback: 240 pages
  • Publisher: Element Books; First Edition edition (February 2, 2004)
  • Language: English
  • ISBN-10: 0007178611
  • ISBN-13: 978-0007178612
  • Product Dimensions: 7.6 x 5 x 0.7 inches
  • Shipping Weight: 7 ounces

buyfromamazon

The one that got away.

Stories to Tell


Disc: 1
1. Endless Summer Nights
2. One Thing Left
3. Hazard
4. Over My Head
5. Angelia
6. Now And Forever
7. Keep Coming Back
8. This I Promise You
9. Loved
10. Should’ve Known Better
11. Right Here Waiting
12. When You Loved Me

Disc: 2
1. Don’t Mean Nothing
2. Should’ve Known Better
3. Endless Summer Nights
4. Keep Coming Back
5. Take This Heart
6. Hold On to the Nights
7. Angelia
8. Hazard
9. Too Late to Say Goodbye
10. Satisfied
11. Right Here Waiting
12. When You Loved Me

I like this cover by Richard Marx. I love the original by Katy Perry but this cover version gave it a bit manly. I mean (to me) the man side of the story. The past relationship that you have with this one girl. Your school sweetheart.   The fond memories you now looked back at and wish it didn’t end. You wish you could go back in time and change things back then so that you and your ex are still together now.Great song, superb vocals. Enjoy….


Summer after high school when we first met
We make out in my Mustang to Radio head
And on your 18th birthday we got that chain tattoos
Used to steal your parents’ liquor and climb to the roof
Talk about our future like we had a clue
Never plan that one day I’d be losing you
And in another life you would be my girl
We keep all our promises, be us against the world
And in other life I would make you stay
So I don’t have to say you were the one that got away
The one that got away

You were dreaming I was your Johnny Cash
Never one, we got the other, we made a pact
Sometimes when I miss you, I put those records on, whoa
Someone said you had your tattoo removed
Saw you downtown singing the blues
It’s time to face the music,
I’m longer your muse

And in another life you would be my girl
We keep all our promises, be us against the world
And in another life, I would make you stay
So I don’t have to say you were the one that got away
The one that got away
The one, the one, the one
The one that got away

[Bookstore] – How to change your life in 7 steps

buynow

Book Description

As a start, I am not an avid reader. I’m doing my 3% here to be one. I consider this book a quick read. A self help book by John Bird. He is one of the founder of Big Issue (http://en.wikipedia.org/wiki/The_Big_Issue). It is thin but don’t be fooled. It is packed with stories, advise and inspirational words. With such well written advise, my reading becomes effortless. I am amazed I reached the last few pages after a few days! Do you know what Richard Branson started out with? Find out in this book.Start with 3%. That’s the first step the author suggested we do to achieve more with our life. We  have big and grand goals in life. We got excited with it initially but due to some reason it fades away and we fail to realize it. The book reminds us to Aim big, get there small. Take small steps to get to that 100%. His advise is enjoy and celebrate what you have achieve at every step no matter how small it is. You will feel motivated to do more.There’s six other simple rules that could help you change your life according to John. The second rule is to stop thinking like a victim. Next, be true to yourself and others. Fourth, stop knocking everyone else. Fifth, think for yourself. Sixth, make mistakes and last of all, be your own leader.

To find out what he elaborated about all these rules, click on the link and get this book.

Product Details

buyfromamazon

  • About Me

    azarepuasa

    A bloke currently trying hard to improve his life. Career advancement, finding Miss Right and settle down and making lots of $$ are the only things in my mind right now.

    View Full Profile →

  • Feedback & Comments

    If you have any comments or feedback, write it here.