The bunny theory of code

An interesting article that someone at work posted. I thought I would share it here. I truely agree with what the author said. Detect it early and resolve it early before it gets messed up!

Anyone who’s ever worked with me knows that I place a very high value on what ends up checked-in to a source code repository. The reason for this is very simple: once code gets checked-in, it takes on a life of its own. Checking in is akin to sharing your code with others, and once out in the world, it’s hard to predict what that code will do. Hard, but not impossible, as there is one thing I can virtually guarantee will happen.

Read more at The bunny theory of code | NCZOnline.

How to Enable EPEL Repository for RHEL/CentOS

EPEL (Extra Packages for Enterprise Linux) is a Fedora Special Interest Group that creates, maintains and manages a high quality set of additional packages for Enterprise Linux, including but not limited to Red Hat Enterprise Linux (RHEL), CentOS and Scietific Linux (SL), Oracle Enterprise Linux(OEL).”
Fedora EPEL wiki page

Why use EPEL repository?

  • Easily install lots of open source packages via Yum
  • Maintained by Fedora

Enabling EPEL Repository in RHEL/Centos
Read More

Reliably copy files from a folder

A simple bash script that uses rsync to copy files from a folder. The advantage of this script is when you have a brief network timeout or connection issue, it will still resume until MAX_RESTARTS is exhausted.

Log viewer

A simple log viewer which will be used in conjuction with sudo command to allow users with limited priviledges to view/read log files.

First ER visit for Reina (part 2)

We are still here at mona vale hostpital. Reina still has the cannula in her hand :(. The only difference is she now has been moved to pediatric ward from ER.

The doctors are still keeping her under observation because she is so young. They are monitoring her feed and her nappies to make sure that her condition has not deteriorated. So far things are looking good and they are letting us go home by the end of today.

Reina-ER-visit

First ER visit for Reina

Today has turned into a horrible day for Reina. Last night she did a massive spew over her mum and had high temperature. She did sleep through the night aftet a dose of panadol. This morning she woke up with rashes on her legs and fever.
After being suggested to go to ER by Dr. Hera Chan, we ended up going to mona vale hospital. Reina has been here since 3 PM. She hasnt had a good sleep she is literally overtired. She is not feeding properly as well. On top of all this the doctors say she will need to go thru a blood test and will also need antibiotic. She will be staying in the hospital for the night.

Read More

Twitter OAuth API package via Composer

I had been wanting to implement twitter’s follower count, statuses count on my website. Being a bit more familiar with composer, I went through and created a packagist which is avaiable via composer to be used on any site.

The packagist is rather simple at the moment and allows only getting User Info at the moment but will be adding more features to it later on.

If you are using composer, all you have to do is add the following to the require section of your composer.json file.

"rabinshr/php-twitter-oauth-api": "dev-master"

Twitter counts

Showing follower count, friend count, status count in Twitter


Read More