Monthly Archives: July 2012

How to change the format of Date in Java?

Here is DateFormatter.java file: import java.util.*; import java.text.*; class DateFormatter {    public static void main(String args[]) {        Date dNow = new Date( );        SimpleDateFormat ft = new SimpleDateFormat (“yyyy-MM-dd”);        System.out.println(“Current Date: ” + ft.format(dNow));    } … Continue reading

Posted in Uncategorized | Leave a comment

How to configure LDAP with Bonita User XP?

To use users on Ldap directory on server instead of making users in Bonita User Xp, follow the following steps: 1. Open BOS-5.6.3-Tomcat-6/external/security/jaas-standard.cfg file and type the following: BonitaAuth { com.sun.security.auth.module.LdapLoginModule REQUIRED userProvider=”ldap://host:port/ou=people,dc=example,dc=com” authIdentity=”uid={USERNAME},ou=people,dc=example,dc=com” userFilter=”(&(uid={USERNAME}))” useSSL=false debug=true; }; BonitaStore { … Continue reading

Posted in Uncategorized | 5 Comments

How to configure cgi-bin in Home Folder?

Earlier I explained how to run websites from the home. Today I will tell how to configure for cgi-bin so that you can run cgi scripts from home itself. 1. Open /etc/apache2/httpd.cfg file. $ sudo vi /etc/apache2/httpd.cfg file 2. Copy … Continue reading

Posted in Uncategorized | Leave a comment

How To Configure public_html folder in home dirctory same as /var/www in Apache2?

If you want to set up Apache2 so that users have personal websites in their home directories, with /home/user/website linking to http://www.blah.com/~user or localhost/~user  . You can do this using the userdir module of Apache. Follow the following steps: 1. … Continue reading

Posted in Uncategorized | 7 Comments

Syntax Colouring/Highlighting in vi or vim Editor

Vim or vi is a text editor. It can be used to edit all kinds of plain text. It is especially useful for editing programs or UNIX/Linux configuration files. Task: Turn on color syntax highlighting Open file (for example file.c): … Continue reading

Posted in Uncategorized | Leave a comment

How to write to MySQL Database using Editable Grids in Bonita-5.6?

Firstly draw flowchart as shown: Skipping the first form  Click inside pool rectangle and click on Application Tab in Details Panel. Click on form tab and check the checkbox Skip. It will skip the starting form. 2. Declaring global variable: … Continue reading

Posted in Uncategorized | 7 Comments