Archive | Solved RSS feed for this section

Folders Sync

26 May

0325-sync-folder-thumb-100029454-large This may not be a problem for many people but folder syncing can be an issue, especially if you are like me, who has work spread out over at least three computers; one at home, one at the office, and a mobile computer (laptop/tablet/phablet). This is not to mention the syncing of work to online resources like Dropbox, Google Drive and Microsoft’s OneDrive (formerly known as SkyDrive before an injuction by Sky Media in the UK put an end to that – Microsoft should fire the guy who came up with that name as clearly they have no research capabilities) – so that should one by any chance not be at one of their computers but has access to an online machine, they can still get access to their work.

I scoured the web searching for useful solutions to this conundrum and here are the applications I have ended up installing on my computers – in a bid to keep my folders up to date most of the time.

Continue reading

Install RPM with dependencies via CLI in openSUSE

15 Apr

So…this is most likely something trivial to many people, but I found myself googling this the last time I tried to install Skype on my office PC. So, should you not know or have forgotten how to install and RPM with dependencies in openSUSE, here are two ways that work like magic

Method 1 – Yast

The command to run is simple – and this works with the assumption that you have yast-ncurses installed to make yast work well in the command like interface

yast –i /path/to/your-package.rpm

This will refresh your configured repositories, resolve dependencies (if possible), confirm to you what is about to be installed, and then install them with a nice cli interface so to speak.

NB: With Yast, you can choose to browse the repositories for other things to install or update.

Method 2 – Zypper

The command to run is as follows

zypper in /path/to/your-package.rpm

This will refresh your repositories, resolve your dependencies (if possible), confirm to you what is to be installed, and then install them via a simple cli interface – not as complex as yast.

Pesapal Donations Extension for Joomla 2.5.x and 3.x.x–Rough Draft

13 Apr

It has been a while since I worked on payment plugins but it seems like I am giving into the pressure. Find herein some code of some extensions that I have had for a while but for some reason I have not published.

These are rough working drafts of a donation extension for the Pesapal payment gateway. They do need some work but technically, they work. So for anybody who needs simple extension that will accept Pesapal payments – and even handle their IPN notices (yes – the extension will provide you with the URL for the IPN setting in Pesapal)

Find below the download links to the extensions

Pesapal Donate for Joomla 2.5.x (alternate download link)

Pesapal Donate for Joomla 3.x.x (alternate download link)

For some basic details into what the extensions do / how they work…read on

Continue reading

Simple Donation WP Plugin for Iveri Lite Payment System

12 Apr

iVeri is a company that  creates technology for financial institutions and businesses to facilitate multiple-channel transaction acceptance. Their goal is to help their customers (banks and such like financial institutions) create a profitable and sustainable business by enabling them to implement the correct transactional channels for their market environment.

In short, iVeri are a payment gateway that enable banks to accommodate online merchants and in turn, allow the merchants accept electronic methods of payment – like credit card and the like. In Kenya, I&M bank use iVeri to allow their customers accept credit card payments via Visa and Mastercard from their websites.

I was recently tasked to integrate this payment gateway as a way for a Non-Governmental Organization to accept donations via credit card and below is the first raw version of the plugin that I was able to get to work – with the help of the e-commerce department at I&M Bank, Kenya. Click the link below to download the plugin.

Download iVeri Lite Donate Plugin v1.0.0 (alternate download link)

NB: Please note that this is a very basic plugin that only accepts donations. Should you want more features added to it, please do not hesitate to ask in the comments section below. For more detailed description, installation requirements & instructions and screenshots, read on.

Continue reading

Atomic Operations in MySQL–How to wrap Inserts or Updates into a Transaction

18 Feb

innodb-vs-myisam-300x225As a developer, it is normally quite un-nerving to get a call from the people using your beautifully designed software with the message – things have gone wrong and your code or system has gone fritzzz… I normally just blame the operators cum users of the system for either not using the system right or for putting in wrong inputs. I know – as developers, we are supposed to code as if the users are total and absolute idiots but from time to time, the crazy things that users put as inputs on systems just catches us off guard as anybody in their right mind would never have put ‘that’ as an input.

You would be surprised how many times people call, and when the customer care clerk asks the user for their usernames so that their account can be located and looked into – the person needing help on the other side of the line says “Let me text you my username”. The reason as to why some one would use the term bi*** as their username on a public site is beyond me. I digress, back to the topic.

Continue reading

TextCrawler–best thing since sliced bread–if you are looking for text

4 Feb

textcrawlerHow to search many text files for specific string or phrase

Have you ever tried to look through a 1000+ file pre-packaged Content Management System for the name of a function you need to modify or css class in a div that needs to be edited? This may not be a problem affecting many people or developers who deal with text files but for those who have ever been in the above situation, well, you know it can take a while before you find the file in question. Especially for developers like me who like to keep it simple and use a simple text editor like Notepad++ and not an IDE.

Well, TextCrawler is your answer! This is a small application that will rampage through text files of any extension and search for your specified string. Hec, it will even do you one better, should you need to replace the search string with another string. This small application has worked magic for me from time to time, so I just thought I might share it with ya’ll who read this blog.

You can download it here

or here (although I do not recommend the cNet version as it may come with other useless software like toolbars and what not)

It is a pretty simple application to get around so I will not include step by step details here but should you need help in that, simply ask below in the comments.

Download Koowa Plugin for Joomla

1 Feb


Is it just me or do new frameworks for development have weird names. Could someone please advise me on where the name Nooku came from as the name of a PHP Framework? And its codename Koowa as well?

Anyhow, my little research has led me to the conclusion that Koowa or Nooku is an MVC PHP Framework, like many others, which can be used to build nice web applications…yada yada yada…you can read more about this on

Now, should you ever install a Joomla extension that required Koowa…you will be hard pressed to find a download of the plugin. From what I gather, most installers pull it from somewhere (hopefully its source servers) using cURL or simply include it within the extension. But just in case for some reason you need to install Koowa as a plugin, feel free to use the link below to download an installable Joomla plugin for Koowa.


I created the installer from a plugin the required it and downloaded it for its own use. I have tested and ensured that it works even for other plugins that my depend on it. Please be careful though, not to break your Joomla site as there are reports of Koowa doing so.

Should any queries arise…ya’ll know what to do!

Cancel a Recurring Payment in PayPal–How to

1 Feb


I recently bought a script which I needed to accomplish a task – but I had one problem while paying for the script via PayPal – the script developer initiates a recurring payment for continued support of the script. This, I figure, is a sneaky way of constantly charging me for something I might not need. Since I needed the script, I proceeded to purchase it…and now had to find a way to ensure that I do not get charged automatically for any support or product that I may or may not need. For some reason I am more confortable with email reminders and me renewing subscriptions manually – gives me time to re-evaluate the subscription and decide on its worth each time it come up for renewal.

Now, before I get off on a tangent cum rant, should you need to cancel a recurring payment in PayPal, here is what to do.

Continue reading

Blogging from Word 2013 – How to

1 Feb

Word-2013-LogoNow, you may be wondering – why would anybody want to do this? Use word to update WordPress? Well, my reason for wanting to connect word and my blog is…well, when it comes to words, Word is the tool for the job! And the fact that Windows Live Writer is no longer being supported and I believe will simply stop running on my PC sometime in the future when the New CEO of Microsoft decides to simply stop wasting money hosting out dated non-supported software…

Apart from the above trivial reason, there are actually some other advantages for using word to compose blog posts.

First off, it’s a wonderful application. Kudos to Microsoft’s Office Team for this one. For some reason, they still have it in them to Wow users with their newer office suites. They could lend a hand to the Windows team – who just seem to get backlash for the new features they add to windows.

Secondly, as greywulf puts it, if you care about the words you put online, then grammar, spelling, syntax also – could need to be correct, and Word 2013 has proofreading tools in spades, far beyond the capabilities built into blogging engines such as WordPress. For posts that require re-writes, or revisions – especially when you are based in a place where the internet is intermittent and expensive, using word to draft posts while still being able to quickly publish them (without having to open your blog and stuff).

Lastly, Word 2013 takes many cues from Windows Live Writer and offers multiple blog Accounts (including Blogger, Sharepoint, WordPress and Typepad), post Categories and all the features you would expect from a stand-alone blogging client – except Tags, which I hope is an oversight to be fixed in a future update.

So, now that we have established how good Word can be as a blogging client, how does one set it up to blog? Well….read on Continue reading

Block or Allow access to PHP script based on remote IP and CIDR list

25 Jun

400px-CIDR_Address Spam…we all hate it. It is nice when things like reCaptcha and Asimet work but these Chinese have a way of bypassing those spam filters and then fill your blog or website with useless comments and fake registrations. So, how about a way to just block all ip addresses coming from a specific region from viewing your registration page or comment box? Well…find below some steps to follow to do exactly that.

Continue reading