Hanya Sebagai Pengingat

=================================

Selasa, 07 Februari 2012

redirect spring

return "redirect:/utama.htm";


untuk request parameter
@RequestParam("link") String link,

Minggu, 01 Januari 2012

JMeter Multiple User

You can use a CSV Data Set Config. This control will allow you to use an external source of variables. Add -> Config Element -> CSV Data Set Config You must set the variable names, something like: Variable Names (comma-delimited): USERNAME,PASSWORD

Then you can use the variables in your HTTP Requests parameters like: ${USERNAME} and ${PASSWORD}

Minggu, 27 November 2011

get IP Address

public void service(HttpServletRequest req, HttpServletResponse res)
throws IOException {
String IP = req.getRemoteAddr();
}

Selasa, 22 November 2011

Akses USB Virtualbox Ose ubuntu

untuk dapat mengakses USB pada virtualbox ose yaitu dengan

Add yourself to the user group vboxusers, then log out and back in, to make use of available USB devices. To do this via the graphical interface, click System Settings/Users and Groups/Manage Groups.


https://help.ubuntu.com/community/VirtualBox/USB

Senin, 22 Agustus 2011

Menambah plugin JAVA pada firefox di ubuntu

untuk firefox 5.0
cd /usr/lib/firefox-5.0/plugins
(masuk ke firefox plugins)
ln -s /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libnpjp2.so
(cari lokasi JRE nya) (buat simbolik link asumsi java sudah teinstal)

Error creating bean with name 'sessionFactory' defined in ServletContext

I had the same error when initializing Spring on startup, using some different library versions, but everything worked when I got my versions in this order in the classpath (the other libraries in the cp were not important):

asm-3.1.jar (lastest)
cglib-nodep-2.1_3.jar
asm-attrs-1.5.3.jar

Rabu, 17 Agustus 2011

SVN

SVN tanpa server
Setup a Subversion Server in 4 Minutes
You are going to need to type fast but I think you can do it in 4 minutes. :) These are my notes on what worked for me on my Fedora core 6 with svn lib already installed by the package manager:
1. Create a Repository

svnadmin create /svnrepos

2. Create a SVN User

vi /svnrepos/conf/svnserve.conf

In that file add these three lines:

anon-access = none
auth-access = write
password-db = passwd

Create a password file:

vi /svnrepos/conf/passwd

In that file add a line for your user:

# add users in the format : user = password
tony = mypassword

3. Import Your Project

(assuming you’ve put your project files in /projects/myrailsproject)

svn import /projects/myrailsproject file:///svnrepos/myrailsproject

4. Start the SVN Server as Daemon

svnserve -d

Done! You should now have a svn server running with one project named myrailsproject.

Try checking it out of the repository:

svn co svn://192.168.0.2/svnrepos/myyrailsproject

Since we set anon-access to none you should be prompted for username and password which you created in the file /svnrepos/conf/passwd.

sumber
http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/


Adapun langkah – langkah untuk menginstall subversion server :
1# Install modul subversion kita langsung ambil dari repostory di internet, kalau server anda tidak terkoneksi dengan internet silahkan download packetnya terlebih dahulu di : http://subversion.tigris.org/
$ sudo apt-get install subversion libapache2-svn
2# Setelah proses instalasi selesai sekarang kita bisa membuat contoh project Repository, disini saya akan membuat Repository project di /svn lokasi terserah anda bisa juga di /home/user/svn
$ Sudo svnadmin create /svn
3# Selanjutnya lakukan konfigurasi di /etc/apache2/mods-available/dav_svn.conf
$ sudo gedit /etc/apache2/mods-enabled/dav_svn.conf
4# Contoh konfigurasi untuk lokasi project /svn (letakan pada bagia bawah)
—————————

DAV svn
SVNPath /svn
AuthType Basic
AuthName “zmoerf”
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user

————————-
5# Buat user dengan nama “zmoerf” untuk akses svn di Http://server/svn/
$ sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd zmoerf
chown -R www-data:www-data /svn/*
chmod -R 774 /svn/*

Jika “ htpasswd2” tidak ada gunakan “htpasswd”
6# Restart apahce
$ sudo /etc/init.d/apache2 restart
7# Akses svn di à http://server/svn/ (masukan user:pass yang dibuat tadi)