morf's blog

Happy 500th The Simpsons episode

Submitted by morf on Mon, 02/20/2012 - 1:57pm
Yesterday was broadcasted annual 500th The Simpsons episode. I just wanted to pointed out, and say thanks to Matt Groening and The Simpsons team for all the great fun they provided in last (i can't believe it myself) 23 years (since 1989). You can find more information about the episode S24E13 at wiki: At long last leave.

Analyzing Civilization IV Rhye's and fall map

Submitted by morf on Fri, 02/17/2012 - 9:57am

I'm playing Civilization IV Rhye's and fall mod (for Beyond the Sword expansion pack) a lot. I always wonder about the best city locations, so i created a script that can count approximatelly best position for cities. There is lot of variables that needs to be counted in, so it won't be most likely never be finished, but i have some smaller or bigger plans with the "city atlas" how it was called in RFC forum.

Overriding Wordpress mail function wp_mail()

Submitted by morf on Thu, 10/20/2011 - 9:13pm

In one of my previous projects i was instructed to override Wordpress function wp_mail() with custom API. I was surprised how easy it is in Wordpress. I was looking for simple solution in Wordpress, and i found it in file wp-includes/pluggable.php (where is function wp_mail() defined). Obviously Wordpress developers thinking a lot about usability for other developers, and they simply allow override the function by defining your own function before wp-includes/pluggable.php is included. So you can simply write your own plug-in overriding the function wm_mail().

Querying Google safe browsing API with PHP

Submitted by morf on Sat, 10/01/2011 - 5:50pm
php

Recently after some time i had opportunity to work on interesting project which included querying Google safe browsing API with PHP. It was simple and interesting project, so i would like to share my knowledge about it here.

Requirements:

  • Curl extension for PHP
  • Google account and safe browsing API key

php get_browser() without browsecap directive

Submitted by morf on Wed, 09/28/2011 - 10:42pm

I'm probably not the only one who tried to use php function get_browser() on shared hostings and ran into serious troubles, because the directive wasn't set. I tried first parse browscap.ini file with parse_ini_file() function, however the file format isn't compatible with this function.

Zend Framework Custom Dojo (Dijit) Helpers

Submitted by morf on Sat, 12/26/2009 - 12:00am

Implementing custom Dojo or Dijit into the Zend Framework View Helper is pretty simple. Lately i need this feature for Menu and MenuItem Dijits. I will provide you an example how to do it yourself for another Dijits. This example should work with other Dijits as well (i tried Dialog, DropDownButton, Menu, MenuBar, MenuItem, TitlePane, ToolBar, Tooltip Dialog, and Tree so far).

Magento Performance Enhancement

Submitted by morf on Wed, 12/09/2009 - 12:00am

Magento Commerce is very robust system which make me happy with its complexness, but on the other hand this robustness implied bad performance. There are few but reliable tips for Magento Performance Enhancements before you should upgrade your server. You can tune Apache web server, PHP engine configuration and modules, MySQL server configuration, and at last you have to setup Magneto to use this tunes.

Pages

Subscribe to RSS - morf's blog