I was putting two subreports together however noticed the title of the 2nd subreport didn’t “float”, checked its property, “float” was ticked, see screen shot below. After 20 minutes of search, it
Sending out emails using CodeIgniter from Office365 account
I knew CodeIgniter could send out emails using its own Email class which supports three types: mail, sendmail & smtp I initially configured the controller using following config, which failed, with error message “Severity: Warning –> stream_socket_enable_crypto(): SSL: crypto enabling
vCalendar by PHP
Below is a PHP function that generates vCalendar which can be imported into Outlook. Notice VTIMEZONE section which specifies timezone. If this section is missing, Outlook will most likely parse the timezone incorrectly.(default to UTC) function generate_vcalendar() { $to =
PHP AJAX to generate progress bar
Often for long running tasks you want to show progress to users, at least to indicate your application is still running. As PHP is a programming language at server side, it appears difficult to communicate with client to update status
Profiling PHP application
One of my applications ran slow. On detail page, about 300 records are returned from DB and shown on the page, it however took about 5 seconds to render the whole page. How to find out what’s going on behind,
Codeigniter email message – characters replaced with equal signs
When using CodeIgniter Email class, I have some characters replaced by equal signs (=) . To avoid this use below code: $config = array ( ‘mailtype’ => ‘html’, ‘charset’ => ‘utf-8’, ‘crlf’ => “rn”, //Notice double quote to enclose rn ‘priority’
Microstrategy metric
I have to admit I’m not a fan of Microstrategy, the main reason is its rich features are buried in various places at the corner of tiny configuration items. For example I created a metric using CaseV CaseV(mtrFYear, 2013, 16.33,
Jasper report server
I was developing a telecommunication bill using Jasper Studio (V6.0.4) on Windows and Jasper Server (V6.0.1) which was remotely hosted on an Ubuntu server. Jasper Studio was used to design layout while Jasper Server was in charge of generating final
Postgresql debugger
It took me a while to figure out how to enable debugger for Postgresql server on Ubuntu. Initially I thought it was pre-packaged by Ubuntu therefore apt-get installed a few packages such as pgadmin3, pgadmin3-dev, postgresql-version.dbg. Here is a post
PHP debugging
I recently came cross debugging in PHP. I know from my own experience that a lot of people are still using echo/print, var_dump to debug code. Nothing wrong but sometimes when you scratch you head wondering what’s inside that tiny