You are here

Risharde's Blog

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):

10.0.1.0/24 via 10.10.10.1

where 10.10.10.1 is the router and the 10.0.1.0/24 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.

Transfer credit from one phone to another on bmobile

Recently I needed to transfer credit from my phone to another persons phone. After quick research I found that all you have to do is type *131*phonenumberyouwantmoneytogoto*dollaramount#

you will then be asked to confirm and the person will recieve the credit

good luck

this has only been tested on bmobile

What you need to know about Funerals in Trinidad and Tobago

From my unwanted experience of my father's passing, I thought it would be the proper thing to give everyone an idea of the amount of work done during the days before the actual funeral. I have to tell you that I totally underestimated how much work needed to be done.

Basically, when one of your loved one dies, the first thing you have to get is the death certification which is generally done at the Registrar of the medical complex (if the person passed away at one). I am suspecting that if the person passes away at home, a DMO (District Medical Officer) would have to be contacted to do this on your behalf.

After you have done the registering of the death, 2 doctors must sign off on the document. This has to then be taken to the Governmental Births and Death building so that a digital death certificate can be produced. We were told to have at least 3 of these certificates which cost $25 TT each however, you will most likely need more so I would recommend about 6 since you'd also need to submit to work for their records plus to the country and courts where applicable. The first 3 are to be issued to the police, funeral home and priest performing the funeral.

Now the actual planning of the funeral is really something else so you better just use a funeral home. In south, there is Guides Funeral Home which offered us a really competitive package and they were larger than Belgroves. Both are on Coffee Street so you can go to do a comparison. Of course, this is the time you have to really have your mind strong because you're going to see coffins and so forth - which really brings on emotions. Of course, when you see the bill as well, you'll also realize that funerals are not cheap and that preparing is really a sobering thought.

Funeral Homes normally never have enough space as in our experience. Also, printing programmes might not be enough so planning is very important.

Those are all the things I can think off at this point in time, not sure how helpful it will be to others.

Microphone USB for Raspberry PI

Plug in your USB microphone.

Let’s open up an ALSA configuration file in vim: sudo vim /etc/modprobe.d/alsa-base.conf

Change the following line: options snd-usb-audio index=-2

To this: options snd-usb-audio index=0

Back in the shell, run: sudo alsa force-reload

When to use Wordpress and why? How Drupal isn't getting there yet...

The majority of websites and designers are using Wordpress to create quite impressive websites out there on the internet as opposed to using Drupal. I asked the typical question - WHY? I decided to have a look at Wordpress again to see if or what makes it the choice for most developers out there - I found out that Wordpress has reached 4.x status and a lot has changed since the time when I decided to give up on Wordpress for my more custom / specialized needs.

Interesting enough, one of the reasons developers still use Wordpress is because churning out a simple site is so much easier to do with Wordpress. It just has all the basic bells and whistles with a simple admin control panel that allows you to do what you want to do - GET YOUR INFORMATION ON THE INTERNET! There is hardly any much of a learning curve because the basics are quite straight forward. 

So how is this different from Drupal? Well Drupal's strength is its modules which interact with other modules, reducing the time to develop but there's a problem. The Administration control panel isn't simple and its quite "ugly" so to speak in the sense that its default is stricly text based and not well organized. The learning curve is therefore medium to high. I still love Drupal for custom content creation and views but if you aren't going to do much complexity features, it might be best to stick with Wordpress.

Wordpress feels much more lightweight when it comes to loading times and Drupal tends to require much more resources. While Drupal has come a long way since my list complaint about performance it isn't quite fast without caching mechanisms which you have to install separately. 

What's a breath of fresh air in Wordpress and something I have complained about with Drupal a few years is having the feature to do simple core upgrades. With Drupal, its still quite difficult to do a core upgrade but it seems Wordpress has moved a notch forward and can now do core upgrades right from the interfaces. What's even more convenient is that Wordpress allows you to find plugins right from in the interface, something that Drupal current lacks and sadly makes it a little longer to install plugins.

Drupal with the right backend modifications can stay within the market as a good development choice but only when the developers see the need to ensure that simplicity should be designed in and have an option to add complexity and not the way around.

When should you use MySQL and SQLite

Since I've been recently working on some additional web development projects to get my skills back to top shape and further my skills altogether, I decided I'd talk today on a topic that I couldn't get a straight answer to on the internet. So for those of you who don't know, many websites in this day and age are "dynamic". This means that the data is generated via scripts (basically, little programs) that pull data usually from a database and return it as a page to the user. Most of these websites rely on a database such as MySQL and this is all well and good for most websites. But it really depends. Mainly because running a database also utilizes background resources and retrieving information may require CPU and RAM to get the data back to the user. So firstly, let's talk about MySQL and Sqlite. MySQL is a full fledge compliant database that is extremely popular on the internet. To run mysql with InnoDB, it takes about 512MB of RAM to safely allow it to perform "OK". SQLite is a flat file database which doesn't require the sources of MySQL and might be limited in its functions but it does have it's place. Putting them to a test, it was noticeable that MySQL took a few seconds to do transactions (2 seconds or so) to load a Drupal page with memcache enabled as opposed to a SQlite database which was able to load the page in about 1 second. Overall drupal performance for a small website with about 100 content items is dramatically faster with SQLite. Now with that being said, if you have a lot of records (over 1000), SQLite may perform slower especially on indexed tables and this is where you should use MySQL to get the performance break you need. So in the end, it really depends on how much data you're working with to gain performance breaks.

Flow merges with Cable Wireless, not optimistic at all

A day ago, I received an automated call from Flow with an announcement that Flow would be merging with Cable and Wireless. This really alarmed me because if I have not mistaken, TSTT is also partially owned and operated by Cable and Wireless. Thus for the pas 10 years and more, I was subjected to poor, substandard service from TSTT and thus Cable and Wireless. A good example of such poor service was extremely low dsl speeds and international calling rates that were really insane to easily describe it.

I therefore dont expect that this will improve the Flow brand at all. In fact, if you can recall, it was so bad, people were begging digicel to come into the telecommunications market.

Rapsberry PI and PocketSphinx error fix

http://robot.laylamah.com/?p=35

Lalymah seems to solve the issue of not getting audio into pocketsphinx: Error opening audio device plughw:1,0 for capture: Connection refused

Mixer load failed: Invalid argument FATAL_ERROR: "continuous.c", line 246: Failed to open audio device

To fix on the Raspberry PI, do the following: sudo apt-get remove pulseaudio -y sudo aptitude purge pulseaudio -y sudo mv /usr/include/pulse/pulseaudio.h /usr/include/pulse/pulseaudio.h.old

Recompile sphinxbase and pocketsphinx and you should be good to go

You could also try reading this one: http://www.rmnd.net/speech-recognition-on-raspberry-pi-with-sphinx-racke...

Debian / Raspbian High CPU NTFS

Okay, so this is a major limitation I've encountered with the Raspberry PI. Using a USB hdd with an NTFS partition is going to see a lot of high CPU usage. It seems to be the mount drivers. The only thing I've found to alleviate this completely is to make an EXT4 partition on the USB drive and WOW DID IT MAKE A DIFFERENCE!

Pages