Posts

Fat-Free Framework - Blank Page Error

Was trying getting started with Fat-Free just now, but found that the page wasn't loading at all, or more accurately, a blank page was shown. I added a dummy echo before the template echo, echo "Hello World!"; echo Template::serve('welcome.htm'); and found that the echo is printed, but not everything else in the welcome.htm After debugging, I found out that its caused by {{ Web::minify('ui/',array('style.css'),FALSE) }} The page displays correctly, without css style, after removing that line, and clear the cache . To solve this, its relatively easy. Just need to enable php_sockets in you PHP extension . Then clear the  /cache folder . Hope that save the your time for some of you out there as well! :)

[i9000] Flashing CyanogenMod for Beginners

Image
UPDATE (2011-11-27) : After flashed to CyanogenMod and tested for a few days, I think that CyanogenMod is GREAT, i9000 users should just flash to it since Samsung firmware support for i9000 isn't that great, and slow. :) The guide can be found from  wiki.cyanogenmod.com . But its not complete with all the downloadables, there are few missing steps. 1. Installing the ClockworkMod Recovery Prerequisites: Before you begin, follow Step 1 & Step 2 from  CyanogenMod  to get the drivers installed. Downloadables & Installation Guide Heimdall Firmware Packages -  http://forum.xda-developers.com/showthread.php?t=1196179 (As of now, XXJVT is the latest version) 2. Root your Phone There are few options to root your phone. Gingerbreak  by ChainFire. CF-Root by ChainFire (works for XXJVT) I used CF-Root and it worked. Just a small note, if Odin cannot detect the phone, you can always reinstall the driver by running Kies devic...

DirectAdmin Cron

If your hosting provider blocked you from running PHP files from command line (for security reason). cd /home/ <user> /domains/ <domain.com> /cron_scripts/; /usr/local/bin/php script.php Then the alternative would be using lynx, and access the files via url :) lynx -dump http://www. <domain> .com/path/script.php > /dev/null 2>&1

RE: Android Orphans: Visualizing a Sad History of Support

Image
Source: theunderstatement.com/ A very good summary about Android environment. Very well summed-up and visualized the two rival ecosystem. Root of problems - Hardware Manufacturers Android suppose to be an open source project.By the default nature of an open-source, it is bound to lure all the hackers around the world to get their hands dirty on the project. Yet hardware manufacturers tries very hard to be in control of both the hardware and the software (firmware). ".. there’s no incentive for smartphone manufacturers to update the OS: because manufacturers don’t make any money after the hardware sale... The hacker community (e.g. CyanogenMod, et cetera) has frequently managed to get these phones to run the newer operating systems, so it isn’t a hardware issue." Despite realizing that they can't make money after hardware sale, and they are resource tight to keep up with the pace of the OS development, they still want to be in control. They even demanded takedo...

isChromeWebToolbarDiv

Got this weird error of browser (Chrome) changing ajax/json data passed to server. This "isChromeWebToolbarDiv" DIV was appended at the end of the call. <div id="isChromeWebToolbarDiv" style="display:none"></div> This question has been brought up in stackoverflow. http://stackoverflow.com/questions/7074334/what-ischromewebtoolbardiv. But so far there is no answer to it. Update: As expected, its caused by one of the Chrome/Firefox extension, mentioned in  http://stackoverflow.com/questions/7074334/what-ischromewebtoolbardiv . I guess next time whenever someone (or your customers) faces this issue, just ask them to disable extensions one by one.

[DirectAdmin] Clear Frozen Mail

Using Script to clear mail #!/bin/sh /usr/sbin/exim -bpr | grep frozen | awk {'print $3'} | xargs /usr/sbin/exim -Mrm Set cronjob in DirectAdmin /bin/sh /home/ <user> /domains/ <url> /cron/exim_clear_frozen.sh Put cronjob in /etc/cron.daily References: [1]  http://www.directadmin.com/forum/showthread.php?t=24018 [2]  http://help.directadmin.com/item.php?id=112 [3]  http://www.directadmin.com/forum/archive/index.php/t-23849.html

[DirectAdmin] Setting up Cronjob for Joomla jNewsletter

Method 1: URL access method curl http:// <domain.com> /index.php?option=com_jnews&act=cron wget -O - http:// <domain.com> /index.php?option=com_jnews&act=cron >/dev/null 2>&1 lynx -dump http:// <domain.com> /index.php?option=com_jnews&act=cron >/dev/null 2>&1 If you use 'wget' is better to add the '-O -' option for don't get writed the downloaded file to the disk, only to 'stdout' and if your file is in one protected dir you can add the options '--http-user=USERNAME --http-password=PASS', see bellow: wget -O - --http-user=USERNAME --http-password=PASS http:// <domain.com> /index.php?option=com_jnews&act=cron >/dev/null 2>&1 wget, lynx or curl doesn't work? If you having trouble getting lynx or wget to work. This may be the case if "localhost" is not permitted. Then wget, lynx or curl won't work on the local machine. Read more here  http://drupal.org/node...