You are here

Risharde's Blog

Shame on TGI Fridays Gulf City. No WIFI??!!!

It is really a deep shame that a so called well established dining restaurant such as TGI Fridays at Gulf City does not have free wifi access in this day and furthermore considering the exorbitant prices that one pays to eat and dine at this so called higher class restaurant, one would expect the least luxury of having such. This goes to show that people pay ot only for food but convenience and to always be connected. I dont believe that I get enough at TGI for what O pay for.

Kloxo vulnerability causes devastating outbound ddos attacks

Recently Kloxo a fairly popular open source control panel for linux contained a vulnerability that allowed an attacker to take control of the server running kloxo and sending out attacks via multiple methods one of which was dns reflection due to misconfiguration. This is one of the reasons I decided to move on from kloxo a few years ago, it was extremely vulnerable and I wanted to sleep better at night. While they have released an update I am not convinced it is safe for production use. As for KloxoMR I really dont see how one man can keep up with maintaining it forever.

Digicel IMAX - Simply Amazing!

I've been an avid customer of Movietowne for quite some time and thought that it was the best place to spend time with my loved ones. Well, today, I've experienced the acclaimed Digicel IMAX experience and I have to say, I'm a believer. Other than the food variety which was limited, the Digicel IMAX theatre literally took my breath away when I looked at both the 2D (Hunger Games) and 3D movies (Thor 2). You might be wondering what the difference is? Well, trust me, firstly the quality is about 5 times cleaner than Movietowne's and the sound is a lot richer. Of course, you pay more for that quality and that's the catch! The screen is much larger than the largest Movietowne's screen from what I gathered and spanned the whole front of the theatre from left to right and to the top up to the ceiling - it's literally THAT BIG! The popcorn was less buttery than Movietowne but in my honest opinion, it was very tasty and had enough salt... it didn't leave me upset at the end.

If you get a chance, I definitely recommend it but I wish they could just keep the prices on par with Movietowne and they'd be my #1 destination!

Adding static routes to CENTOS

Let's say the interface is eth0, you would create file perhaps using nano like this:

nano /etc/sysconfig/network-scripts/route-eth0

Then add your network/subnet and the gateway/router (example): via

where is the router and the is the network/subnet

Then restart the network using
service network restart

Good luck!

TSTT redeemed themselves a little

After a meeting recently, myself and other people were happy with the outcome. We were able to explain why we felt that TSTT wasn't giving us the customer service we wanted and some of the managers at TSTT were able to resolve most of the issues within 2 days. This impressed me so I'm giving them some kudos on my blog.

Flow 25MB internet is legit!

I recently tested a 25MBit connection from FLOW / Columbus Communications I have to tell you - It's AWESOME! You get every single drop of bandwidth. So far, I've experienced no downtime, the install was easy, nothing to really do other than plug into your router and boom, you're on!

IT Managers of the Government

You know, I've had chats with a lot of people and for some reason, people tend to believe that Government works don't work hard. This is particular FAR FROM THE TRUTH from my experience. I work EXTREMELY HARD! If you're one of those people who believe that government workers don't work hard, you are misinformed to a certain extent. I am not saying that some people don't slack of but this happens in both public and private institutions. Today, I sat at an IT Managers group and I really felt that we want to create a better tomorrow for the citizens of Trinidad and Tobago. I know its going to be a lot of work but we are accustomed to working so the iffy part for me is if we all can agree to move forward. Putting 10 brilliant people together and trying to get them to agree on something is generally very hard. With the right steering however maybe our work isn't in vain. Overall thought, it was good to be an attendee at IT4MD (iGovTT).

Freepbx Paging/Intercom tweaking for devices that cannot autoanswer / conference

Right, so the title is really complicated so I need to explain what I am trying to do here. Essentially, I had some extensions that I wanted in an "Intercom mode" (kind of like a conference), except I wanted to be able to dial a number and it would do automatic calling to all the other extensions and hope that they have autoanswer enabled. Well, generally speaking, the devices I am using (which are soft phones) don't seem to have autoanswer so the Paging and Intercom settings in FreePBX basically times out the call to each device after 5 seconds which is way too short for you to manually answer it. So.... I did some ..... tweaking and thought this would be useful for those of you having this strangely unique issue.

Time to get to the linux console
Go to /var/www/html/admin/modules/paging

Edit the
I use nano to do this: nano

Look for and change the value to something higher. I used 20 (its in seconds apparently)



Now go to the Paging and Intercom Freepbx webpage, create a new group and associate the extensions you want to intercom to. I use duplex because I want it to be like an emergency conference.

Save, apply

and now test it out! ;]

Good luck!

Samsung Prices

Maybe its because of the craze and popularity... or perhaps its because its the latest advertised technology but I really think that Samsung prices are fairly expensive. Getting one of their higher end phones will cost you 4000Tt and up such as the note 2 and note 3 or even the s4. Now why would I describe it as expensive? Well for one the added samsung gear would cost you another 2000 tt easy. Compare the cost of an s4 to a high end Blu phone and the features dont seem to be much different except for the fact that Blu doesnt have a smart watch to my knowledge. Furthermore this gorilla glass is over rated. I really dont care for gorilla glass with regard to scratching... I want something strong enough to handle a fall and gorilla glass cracks very easily.


Found this somewhere on Stackoverflow:

Colour commands
tput setab [1-7] # Set the background colour using ANSI escape
tput setaf [1-7] # Set the foreground colour using ANSI escape
Colours are as follows:

Num Colour #define RGB

0 black COLOR_BLACK 0,0,0
1 red COLOR_RED max,0,0
2 green COLOR_GREEN 0,max,0
3 yellow COLOR_YELLOW max,max,0
4 blue COLOR_BLUE 0,0,max
5 magenta COLOR_MAGENTA max,0,max
6 cyan COLOR_CYAN 0,max,max
7 white COLOR_WHITE max,max,max
There are also non-ANSI versions of the colour setting functions (setb instead of setab, and setf instead of setaf) which use different numbers, not given here.

Text mode commands
tput bold # Select bold mode
tput dim # Select dim (half-bright) mode
tput smul # Enable underline mode
tput rmul # Disable underline mode
tput rev # Turn on reverse video mode
tput smso # Enter standout (bold) mode
tput rmso # Exit standout mode
tput sgr 0 # Reset all attributes
Cursor movement commands
tput cup Y X # Move cursor to screen postion X,Y (top left is 0,0)
tput cuf N # Move N characters forward (right)
tput cub N # Move N characters back (left)
tput cuu N # Move N lines up
tput ll # Move to last line, first column (if no cup)
tput sc # Save the cursor position
tput rc # Restore the cursor position
tput lines # Output the number of lines of the terminal
tput cols # Output the number of columns of the terminal
Clear and insert commands
tput ech N # Erase N characters
tput clear # Clear screen and move the cursor to 0,0
tput el 1 # Clear to beginning of line
tput el # Clear to end of line
tput ed # Clear to end of screen
tput ich N # Insert N characters (moves rest of line forward!)
tput il N # Insert N lines
Other commands
tput bel # play a bell
With compiz wobbly windows, the bel command makes the terminal wobble for a second to draw the user's attention.

Example usage

echo "$(tput setaf 1)Red text $(tput setab 7)and white background$(tput sgr 0)"
Looks like this on my Ubuntu terminal:

Screenshot of colour terminal text

Use command sgr 0 to reset the colour at the end.

Performing multiple operations at once

tput accepts scripts containing one command per line, which are executed in order before tput exits.

Avoid temporary files by echoing a multiline string and piping it:

echo -e "setf 7\nsetb 1" | tput -S # set fg white and bg red

When work became work

Today, is my first day official home after resigning from my job. It's really astonishing to literally FEEL how much time I've gotten back by just not having to fight to beat the traffic to Port of Spain and well work itself. So what can I say from my experience without breaking contractual privacy / confidentiality agreements. Well, let's start where work became work. I know this sounds like I've made a typographical error but it isn't. One reason for pursuing my tertiary education in Computer Science was because I am truly passionate about Information Technology. Doing "I.T" has been turned from second into first nature for me, it is who I am. People in the work place really get confused when I haven't heard about a piece of technology that they know about - as if to say that someone in I.T MUST KNOW THE ENTIRE WORLD OF I.T.

So coming back to my topic about when work became work. I.T has always been the fun part for me, both in and out of work. In work though, I.T became "work" as opposed to a "job". You see, a job is technically work BUT some people actually LIKE their jobs. So a job is like 1 + 1 = 2 in math. The work I am referring to is when its no longer really a job that you like but really just perhaps a frustration. Getting down deeper into how I feel, I'd say that work was once fun and enjoyable but then circumstances changed (as it naturally does) but in an unnatural way. I had to deal with people who thought they knew I.T and further more, people who would say a few sentences and think that one could build the actually solution within the same time it took for them to say some sentences.

For example: Let there be a house, and there was a house....

Obviously, only God could do such miracles... or so I would imagine.
As I further stated, it became work when I had to really explain I.T to people who couldn't understand it but think that they do. Of course, I'm not saying I'm perfect but why hire someone (with experience and knowledge) and then don't take their advice. So essentially, work became literally work... the joy and fun of having a job was lost and thank God I have the resources to quit. I really do feel sorry for those of you out there who are not in a position to quite your miserable works - I really genuinely do feel sorry. Life isn't fair and the work world is worse than life, its hell.

Stay strong my friends.