Author Archives: Dan

About Dan

danneh: pronounced dah-neh (if anyone knows how to do this in proper pronunciation letters, please tell me how!) Where to begin. Hmm.. Well, my name is Dan. I am a web developer and system administrator by trade, and an electronics enthusiast by night. I don't consider myself the best at what I do, but I consider myself to be pretty darn good. Development wise, I focus mostly on PHP and Perl and have been involved in the creation of some very well known brands developing sites using Magento e-Commerce and Wordpress (though I'm not at the liberty to name names, but if you look hard enough, you'll find them ;) ) As far as my electronics goes, I'm just starting to get into microcontrollers. My favoured MCU is the PIC, and my favoured MCU programming language is ASM. It might be less readable, it might be harder to learn, but you have much more control over the application in question, and not to mention it's memory footprint when you only have 2KBit of EEPROM to play with! I'm available for freelance work developing Magento themes and modules, custom Wordpress development, Zend Framework/Kohana applications, and System Administration work (designing, installation, configuration and maintenance of single server sites to full-sized multi-machine load-balanced solutions). Contact me with your requirements and I'll see what I can do :) Favourite quote: I would love to change the world, but they won’t give me the source code. Find me on Google+, Facebook, and my rarely used Twitter.

A lesson on LVDS, impedance and cheap cables from China

A handful of months ago, my laptop (Lenovo Ideapad Y500 for those wondering) started suffering with screen issues. Specifically the ones that result from the tiny wires in the LCD cables shearing in the hinges. Taking it upon myself to go to eBay to find a replacement, I found a single seller selling the part for the grand total of $15, all the way from some hole in China. Estimated delivery 3-4 weeks. *sigh*.

Continue reading “A lesson on LVDS, impedance and cheap cables from China” »

Making WordPress’s qTranslate plugin work on different domain names

Recently I was handed a WordPress site for a client that used qTranslate for various versions of their website in different languages. The caveat was that each language needed its own domain name, not a subdomain, path or query string of the main one. For sure I could have redirected the welsh domain to the english version with the /cy/ path in it, but I had a better idea. Use nginx. This is utterly genius.

Continue reading “Making WordPress’s qTranslate plugin work on different domain names” »

Global Internet Speeds – A study, and a little bit of a rant

I know this isn’t the usual type of post I usually put on here, and I’m also aware I’ve been neglecting this recently. A lot. I know – I’m working on that! But anyway.

I was recently linked to an infographic with regards to a study on global internet speeds – where’s fastest, cheapest, best bang-for-your-buck, etc etc. Sure, there’s loads of these around, but it’s always interesting to participate in them, learn about what these various infographics are saying, and compare them. Also, some of the statistics they use to compare country to country can sometimes be astonishing.

Continue reading “Global Internet Speeds – A study, and a little bit of a rant” »

Enabling Spellchecker in Magento WYSIWYG editor

A little bit of a puzzling one, and not appearing to be much information about this, seemingly straight-forward task. Enabling the spellchecker plugin in TinyMCE in Magento’s admin. Here’s how you do it;

In js/mage/adminhtml/wysiwyg/tiny_mce/setup.js, find “theme_advanced_buttons3″, and update it as follows;

theme_advanced_buttons3 : 'tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,media,advhr,|,ltr,rtl,|,fullscreen,|,spellchecker',

Then find “var plugins” (should be a handful of lines above the one you just changed), and update it as follows (this one tripped me up, as not doing this will simply tell TinyMCE to ignore that “spellchecker” button you just added).

var plugins = 'safari,pagebreak,style,layer,table,advhr,advimage,emotions,iespell,media,searchreplace,contextmenu,paste,directionality,fullscreen,spellchecker,noneditable,visualchars,nonbreaking,xhtmlxtras';

Finally, download PHP Spellchecker from TinyMCE’s website, and extract into js/tiny_mce/plugins/.

Reload the admin, open a WYSIWYG editor, and there it is, at the end of the third line of icons!

Fedora 16 to 17 upgrade

I finally had the opportunity to upgrade my laptop from Fedora 16 to 17. When I installed 16 originally, within the week 17 came out, and I was too busy to do anything about it. Granted now 18 is in beta, and is likely to be released tomorrow now that I’ve done this upgrade, I wanted to post about an issue that I came across that no one seems to have touched on much, or at least there’s no real mention of it online. Only by chance did using a couple of tricks combined sort the problem out.

Continue reading “Fedora 16 to 17 upgrade” »