- ARCHIVE / March, 2009
- FreeBSD uptime
I have just stumbled across an old machine I have used for a project couple of years ago, and guess what: -su-2.05b# uname -a FreeBSD xxx 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Sat Aug 27 18:17:42 CEST 2005 root@xxx:/usr/obj/usr/src/sys/PF i386 -su-2.05b# uptime 8:37PM up 617 days, 4:46, 1 user, load averages: 0.00, 0.02, 0.00 I guess this [...]
- Dreamhost did it again
I’ve just received an email from DreamHost (which hosts some of my domains) saying that they have moved my account to a new server. No one who ever tried it really knows what can go wrong during server migrations, so I tried checking some of my sites only to be welcomed with “Application error symfony [...]
- direktno
Simpa is happy to present you direktno.ba, a pay-per-view entertainment audio / video portal currently covering one of the most popular regional TV shows. At the moment you can view all existing episodes of the “Lud, zbunjen, normalan” and watch the new ones at the same time they are broadcasted live on TV! Together with [...]
- Securing WordPress Blog
General recommendations Use the latest stable version of WordPress Rename “admin” user (using sql query) Use strong passwords (lEtTerS, numbers, special chars) Do not use “wp_” table prefix in your wordpress database [TABLE=3] Secure wp-content folder .htaccess file: Order Allow,Deny Deny from all <Files ~ “.(css|jpe?g|png|gif|js|doc|pdf)$”> Allow from all </Files> Secure wp-admin folder .htaccess file: [...]
- Symfony Cron Job
It is good to know that you can use symfony from command line and automate periodic tasks with cron (i.e. sending mails, sms reminders, checking log files, etc.) Here is one symfony cron job example: <?php define(‘SF_ROOT_DIR’, realpath(dirname(__file__).’/..’)); define(‘SF_APP’, ‘front’); define(‘SF_ENVIRONMENT’, ‘prod’); define(‘SF_DEBUG’, false); require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.’apps’.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.’config’.DIRECTORY_SEPARATOR.’config.php’); $context = sfContext::getInstance(); date_default_timezone_set(‘Europe/Sarajevo’); $now = date(‘Y-m-d H:i:s’); $five_min = [...]