Web Code
Web is the most growing platform. Web progressively remove desktop tools. Development of web applications continuosly growing fast. This site is my notes on the development of web, including web programming, web technology and my lectures resources.
Pixie Sexy
Today I learn more about Pixie, the small-simple-smarter CMS (content management system).I think all my needs is answered with this sexy cms.
Reference:
http://code.google.com/p/pixie-cms/
http://www.getpixie.co.uk/
PHP: array_combine() for PHP < 5
I developed a script to process extensively arrays, and I need to combine some array. I got error
Fatal error: Call to undefined function: array_combine() in ...
It seems function array_combine() only implemented in PHP 5. So I was looking for the solution. There is solution I found.
Insert the code below ....
if(!function_exists('array_combine')){
function array_combine($keys, $values){
if(count($keys) < 1 || count($keys) != count($values) || !is_array($keys) || !is_array($values)){
return false;
}
$keys = array_values($keys);
Trim (Perl)
Sungguh aneh. Perl yang dikenal sebagai text-processing gak punya fungsi trim, fungsi yang menghilangkan spasi atau keluarganya di awal atau akhir string.
Setelah mencari dan mencoba ... ini adalah fungsi trim terefisien yang sata temukan.
sub trim{
$_[0]=~s/^\s+//;
$_[0]=~s/\s+$//;
return;
}
NetBeans (6.5): Install Module Cluster to Existing NetBeans Installation
Fast track!
- Download the module cluster from netbeans.org (in zip format)
- Close netbeans
- Extract the zip file to the NetBeans installation folder
- Add [ModuleName][Number] to /etc/netbeans.clusters
- restart netbeans
Javascript to Exe
Sometimes, I need to convert my javascript program to executable command-line. We spend a lot of time to implement an idea of a useful libraries, and sometime we want to use them in another different environment. Like today, I want to use my funtions in Javascript in command line. But I don't want to write again in different languages like perl, c or vb. I just want to convert.
Source:
http://www.phpied.com/make-your-javascript-a-windows-exe
http://www.jsdb.org/
"NO JDK - NO JRE":Problem Install NetBeans 6.5
Yesterday is time for me to upgrade my Java programming environment. I upgrade JDK, Eclipse and also NetBeans 6.5.
When installing NetBeans 6.5, the problem occur. I choose NetBeans 6.5 All-in-one 242MB for windows 32. When I run the installer, it show error "Java SE Development Kit(JDK) was not found in this computer. Make sure JDK is properly installed and run the installer."
First, I think it is JAVA_HOME problem. But when I look to my environment variable, it is not. So I reinstalled Java (JDK/JRE). But the problem still exist. I searched Google. There is no answer.
I found OSGi
OSGi: popular current Java movement, but I missed it.
Here some informations:
Recursive function in JSP
This snippet demonstrates how to constructs a function and how to implement factorial function in recursive mode.
<HTML>
<HEAD>
<TITLE>Using Recursion</TITLE>
</HEAD>
Passing Arays to JSP Methods
<HTML>
<HEAD>
<TITLE>JSP Passing Arrays to Methods</TITLE>
</HEAD>
Programmer, lecturer and researcher. Kota Bekasi's citizen, but spend time mostly in Jakarta. Maried with 4 children.