menembus batas impian

Archive for Maret, 2013

SyskopD Update


Download file ini kemudian extract kemudian hasil extract kopikan ke folder c; dan kosongkan database dengan memilih file sql yang ada di folder syskopd yang baru ini

link file nya adalah http://www.mediafire.com/download.php?220a98a7ic79sxz

Iklan

sql : copy database antar server


mysqldump -h 192.168.0.2 -u root -p[password] dtbase1 | mysql -h 192.168.0.100 -u root -p[password] dtbase1

Java Menambahkan Hari, Minggu, Bulan Dan Tahun Pada Tanggal


DateFormat df = new SimpleDateFormat(“dd-MM-yyyy”);
Date TanggalPinjam =df.parse(tglcair.getText());
long Hari1 = TanggalPinjam.getTime();
int diff=(int)Double.parseDouble( fjangka.getText());
Calendar cal = Calendar.getInstance();
cal.setTime(TanggalPinjam);

1. Menambahkan 1 Hari
cal.add(Calendar.DAY_OF_MONTH, diff);

2. Menambahkan 1 Minggu
cal.add(Calendar.WEEK_OF_MONTH, diff);

3. Menambahkan 1 Bulan
cal.add(Calendar.MONTH, diff);

4. Menambahkan 1 Tahun
cal.add(Calendar.YEAR, diff);

Date d=cal.getTime();
System.out.println(d);
tgltempo.setValue(d);

nuwun

Installing msttcorefonts on Centos 6.3


Documents received may require MS Fonts to display format correctly, and these MS Ffonts are not available by default in Centos 6.2.

Install tools to create fonts and directories (fake ones for compatibility).
yum install ttmkfdir rpmdevtools

note: ensure all RPM building tools have been installed (see my previous post).

Install ATRPMS repository and MS Fonts.
wget http://dl.atrpms.net/el6-x86_64/atrpms/stable/atrpms-repo-6-5.el6.x86_64.rpm
(for i686 machines, replace x86_64 with i386 as in line below)
wget http://dl.atrpms.net/el6.3-i386/atrpms/stable/atrpms-repo-6-5.el6.i686.rpm

(I am using, x86_64 for remainder of notes)
rpm -ivh atrpms-repo-6-5.el6.x86_64.rpm
yum install chkfontpath
wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
rpmbuild -bb msttcorefonts-2.0-1.spec
(download MS Fonts and compile into packages http://pkgs.org/centos-5-rhel-5/puias-unsupported-i386/msttcorefonts-2.0-1.noarch.rpm/download/)
rpm -ivh rpmbuild/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
(open Libreoffice or Character Map, see if the Arial, Georgia and Times New Roman are available)

If fonts are not appearing, run following then relog-in (Do not run these if above steps work)
mkfontscale
mkfontdir