For several years one of my clients had been using Dreamhost which provided stable and good performance service. I was approached though as they received email notification from Dreamhost advising that their VPS server would not be granted full access and
Jasper report two subreports in one section
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
Desktop virtualisation
Industry: Any industry that needs to maintain 10+ desktops/laptops Typical example: Internet cafe shops, real estate, call centre, schools, and hospitals Benefit: All operating system and its applications are bundled together in an image file, which is maintained at server
Server virtualisation
With the advance of IT technologies, server virtualisation offers the opportunity to create many virtual hosts on one physical machine, which effectively reduces overall IT cost while increases system availability*. There are a number of benefits to adopt server virtualisation:
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,