php:// function to clean string for SEO usage

If you need a good function to clean strings to use them as URLs for SEO purposes, here’s a suggestion: function chunk_special_chars($string) { $normalizeChars = array( ‘Š’=>’S’, ‘š’=>’s’, ‘Ð’=>’Dj’,’Ž’=>’Z’, ‘ž’=>’z’, ‘À’=>’A’, ‘Á’=>’A’, ‘Â’=>’A’, ‘Ã’=>’A’, ‘Ä’=>’A’, ‘Å’=>’A’, ‘Æ’=>’A’, ‘Ç’=>’C’, ‘È’=>’E’, ‘É’=>’E’, ‘Ê’=>’E’, ‘Ë’=>’E’, ‘Ì’=>’I’, ‘Í’=>’I’, ‘Î’=>’I’, ‘Ï’=>’I’, ‘Ñ’=>’N’, ‘Ò’=>’O’, ‘Ó’=>’O’, ‘Ô’=>’O’, ‘Õ’=>’O’,… Continue reading

/bin/bash: Remove Dreamweaver synchronization “stuff” from your hosting

As an online note, I’m writing this post to remind myself and help others that still suffer using Dreamweaver on a daily basis and at some point end up having a bunch of unwanted folders and files that Dreamweaver keeps for synchronization information. To remove all that from a Linux… Continue reading

My current methods while using Kohana 3.0.8 – part 1

I’ve finally decided to get started on documenting how I’ve been using this wonderful framework. So if you’re patient enough to deal with my crazy schedule (meaning this series may take a while to be finish), fasten your seatbelt: First of all: Know your environment (your public html folder, a… Continue reading

Responder ou não responder: eis a questão

Como todo brasileiro que se preza, várias vezes eu sou obrigado a adquirir um serviço que depois descubro que na verdade não precisava e preciso fazer pedido de cancelamento do pedido, pedido de estorno etc. Na época da Internetz não é diferente…. E NEM A FALTA DE ATENÇÃO: Comecem a… Continue reading

Center a unordered UL/LI based menu

I lost count of how many times I broke my head trying to do this…. so taking a note will hurt less for sure: styles: #footer{text-align:center;list-style:none} #footer li{display:inline} HTML <ul id=”footer”> <li><a href=”1.php”>Link 1</a></li> <li><a href=”2n.php”>Link 2</a></li> <li><a href=”3.php”>Link 3</a></li> </ul> Really simple in the end