javascript
Submitted by taufiq @Krim.NET on Wed, 02/16/2011 - 17:10
We have incorporated new Syntax Highlighter system in our blog. The syntax highlighter is now client based, intentionally to reduce server load. This new system is developed by http://alexgorbatchev.com/SyntaxHighlighter/ The integration is done with http://drupal.org/project/syntaxhighlighter
To highlight your codes, wrap your codes with syntax hilighter markup below
{syntaxhighlighter brush:bash} ... {/syntaxhighlighter}
Below are few demos:
To highlight HTML:
Submitted by taufiq @Krim.NET on Mon, 09/27/2010 - 12:31
If you are looking for javascript reference, a good site providing good javascript documentation is provided by Mozilla Developer Center
The Knowledge Commodities Information System (Phase 2), K-Commodities 2, is a web based knowledge system for collecting, analysing, and sharing data and information for the Malaysian Ministry of Plantation Industries and Commodities. This allows the Ministry to automatically consolidate about 200 datasets from the internet into a centralised database that is accessible securely through the internet. These datasets include daily prices; daily news; monthly production, exports and imports; quarterly economic statistics; annual domestic and international data; and various electronic documents.
These datasets are then sorted, categorised, cummulated, and consolidated using automated processes overnight, so that it can be analysed using articles, tables, maps, charts, and spreadsheets the next day. The analysed information is then published in specific industry dashboards, where the information can then be sent automatically on a daily, weekly or monthly basis via email to key stakeholders, management, and analysts.
The Ministry of Plantation Industries and Commodities fosters the orderly development of the plantation and commodity sector through the development of higher value-added through downstream processing and promote the marketing of commodities, particularly semi-processed and processed. It's functions are also to oversee the development of the plantation and commodity sector covering research and development (R&D), production, processing, and marketing in respect of palm oil, rubber, wood and wood-based products, cocoa, pepper and tobacco.
The system is developed based on the open source IDA 2.1 (intelligence data analytics) application framework using LInux, Apache, MySQL, PHP and Javascript; and the open source Palo Business Intelligence Suite 3.1. K-Commodities 2 can be viewed at http://k-commodities.kppk.gov.my
Submitted by rajaiskandar @k... on Wed, 09/15/2010 - 23:25

This case use illustrates how a table of monthly data can be further enriched by using the spreadsheet and mapping feature of our Intelligence Data Analytics (IDA) 2.1 application framework. IDA 2.1 was implemented for the Malaysian Ministry of Plantation Industries and Commodities and includes the automated extraction of data from the websites of its agencies.
Data Source : http://econ.mpob.gov.my/stat/web_report1.php?val=201035
End Result : http://k-commodities.kppk.gov.my/dashboard/dataset/733
(access requires a free registration : http://k-commodities.kppk.gov.my/user/register )
Read more on the Features, Functions and Benefits
Submitted by taufiq @Krim.NET on Fri, 09/03/2010 - 16:56
It is well known that the computer doesn't compute 1/3 times 3 = 1, since computer assume the operation is 0.333333333x3=0.999999999. However today we discovered such a problem happening accros plus and minus operation with certain floating points.It happens in IDA Framework 2 App user data entries for account balance looks like pattern below:
- 161001.165
- -100000.009
- -60000.700
- -1000.456
These were amounts for four accounts. Those accounts balance supposed to be exactly zero.
Unfortunately due to CPU bug (I believe) the total operation returns 5.57065504835919000E-12 or 0.00000000000557065504835919000
Submitted by rajaiskandar @k... on Fri, 06/18/2010 - 15:55

I would like to announce the start of the IDA 2.1 project to add our own web based spreadsheet module to the Intelligence Data Analytics (IDA) application framework. This is built combining jQuery javascript and Kohana PHP frameworks. The aim is to make a faster and more reliable web spreadsheet interface for users to perform adhoc queries. 87 sub-functions have been identified for this module. If you would like to learn more please contact us : http://software.krimnet.com/contact
Submitted by rajaiskandar @k... on Mon, 06/07/2010 - 10:06
The Intelligence Data Analytics (IDA) allows dataset to be presented in tabular, chart or map formats. These can then be easily added to the dashboard for the dataset. Adding a chart to a dashboard is a simple two step process: (1) View the chart from the dataset report and copy the image link; and (2) Add a HTML widget and paste the image link. Click here to read an example guide:
Submitted by rajaiskandar @k... on Tue, 05/25/2010 - 11:57
When extracting data from various file formats, it is necessary to check whether the data is a number before it is loaded into a database. This can be done with a simple Javascript function isNaN (is not a number) that can check whether the data value is a number. Using the Palo ETL FieldTransform, add a Javascript function (example called nmonth01) that checks the input value (example called month01) with the following script
if(isNaN(month01)){
nmonth01=0}
else{
nmonth01=month01}
Submitted by rajaiskandar @k... on Sat, 01/09/2010 - 06:36
2009 has certainly been an eventful year in terms of people and technology that we have gained in the Software Unit. From the 11 people that we had at the start of the year, we have now grown to 16 (a near 50% growth) and a few that came and left during the year. From 90% PHP and MySQL, we have added on our own application framework, partnered with a German business intelligence company and configured a few Linux servers. It has also been a very challenging year for the business. Here is a recap of the major events for the year:
Submitted by rajaiskandar @k... on Wed, 11/04/2009 - 23:19

KRIMnet is currently participating in the 24 hour WebDev Contest at the time of writing this post. The contest is held as a precursor to the Malaysian Government Open Source Software Conference (MyGOSSCon) 2009 at the Putrajaya International Convention Centre. The KRIMnet team consist of Taufiq, Fazli, Nurhakimah, Shahida and Fadhil. There are another 7 teams competing, including SUK Terengganu which are represented by Pn. Hashimah, Pn. Hayati, Aidil, Shafiq, and a trainee. Click here for a video clip taken about 4 hours from the start of the competition.