Archive | Uncategorized RSS feed for this section

Creating a Twitter Widget

13 Jul

twitter-logo-3As a web developer, social media integration is something that nearly all my clients want – not withstanding how active or not they are on the various platforms available. For the most part – all I would need to integrate a Twitter Widget was the Twitter Username of the client. That for the most part has since changed and I am now starting to ask people to delve into settings pages that they would ordinarily not go to. So call this an online manual to not only simplify my life (by providing a simple page to redirect persons whom I need to this on my behalf) – but hopefully also reduce any frustration that other developers may go through when trying to get this simple crucial feature for their clients’ websites. Continue reading

Complicated is never better…

31 Jan

I wonder what the sentiments for Windows 8 are out there, after is has been out for quite a while. I believe that some people are just forcing themselves the learn in or being forced by circumstances to learn it as it comes with new PCs. It has nice cool features that seem to be boding well for it. That said, these features can not be fairing very well in the long run as some legacy features are creeping back into the OS like the start button in Windows 8.1 and the rumored return of the start menu in the next major release of Windows.

As cool as windows 8 works, looks and feels, clearly it design features do not work very well for sites.

For the last month or so, I had implemented quite a cool looking but complex template on this blog and damn did i get complaints. To all those who could not use the site appropriately, I apologize. The other template clearly did not work for code sections and stuff like that – not to mention how log it took me to get it working properly and at the time of replacing it, it still was not working fully as expected.

This was not the blog for that template but seeing as it cost a pretty penny, I will find a place to use it. In the mean time, please continue using the blog. I also fixed the contact me page so get contacting!

Script to Create New Joomla! 2.5.x / 3.x Users

18 Sep

Off late, I have been getting quite a few calls from some of my clients about their hosting providers warning them about the threat that is Joomla 1.5.x installations. Now, while moving from Joomla 1.5 to Joomla 3.x is well documented but not too easy to follow sometimes, this is not too much of an issue.

But what do you do when someone has attempted and things have gone wrong somewhere…and reverting back to the old Joomla to try again is not an option? Well, that is where carefully managed scripts com into play.

Continue reading

Sample Post via email to WP.COM Site

3 Jul

I do not know how well this will work but, this could be the only way to get this stuff to work the way I intend it to.

How to remove non-UTF8 characters from strings with PHP

25 Jun

Short post this one – seem to be having some trouble generating an XML feed from a database of over 10,000 listings and remove non-UTF8 characters from the feed. Well, PHP to the rescue. There are many ways of doing this, but find below some regexes that I have tried and tested and work pretty well.

//reject simple non utf-8 xters
preg_replace('/[^(x20-x7F)]*/','', $string);
//reject overly long 2 byte sequences,as well as characters above U+10000 and replace with nothing
preg_replace('/[x00-x08x10x0Bx0Cx0E-x19x7F]|[x00-x7F][x80-xBF]+|([xC0xC1]|[xF0-xFF])[x80-xBF]*|[xC2-xDF]((?![x80-xBF])|[x80-xBF]{2,})|[xE0-xEF](([x80-xBF](?![x80-xBF]))|(?![x80-xBF]{2})|[x80-xBF]{3,})/S','?', $string );
//reject overly long 3 byte sequences and UTF-16 surrogates and replace with nothing
preg_replace('/xE0[x80-x9F][x80-xBF]|xED[xA0-xBF][x80-xBF]/S','?', $string );

Should these not work for you, comment!

PHP Script to create Add-on Domain in cPanel via XML-API

21 Jun

whm-0 I know, I have been away for a while and the point of this blog being the place where I document challenges I face seems somewhat lost but alas….recovery of that point is nigh.

Now, this may not be a problem that many people face but getting good sample code from the cPanel XML-API documentation is a bust. They do have a nice Forum though, where it is possible to get the answers one may seek but forums involve a lot of reading which I try to avoid when looking for what should be quick solutions.

I have therefore decided to document something that I figured would only take me a couple of minutes to figure out, only for it to kill four precious hours. So here goes…

Continue reading

Hi there

11 Jan

halo pple – no too much content here, just checking how wordpress is going to handle my blogs.

Hello world!

11 Jan

Welcome to This is your first post. Edit or delete it and start blogging!