Carpe diem!

Make your lives extraordinary

clean up mikrotik user-manager logs

here is the one line code to delete all log entries on user-manager log

:foreach i in=[/tool user-manager log find] do { /tool user-manager log remove $i; }

February 28, 2010 Posted by | Blogroll, code Warior, Ngoprek, techno | , , , , | 3 Comments

c# : Stupid string Concat

maksutnya supaya lebih mudah diprogramnya, namun apa daya performansinya jauh mengecewakan. itulah yang terjadi saat saya akan menyimpan sebuah array of double dengan menggunakan c#. simple problem :

int nx;
int ny;
double[,] data = new double[nx,ny];
 
saya ingin dump data tersebut menjadi sebuah string lalu mengcompress-nya.

my first simple answer is :

—————————————————————————–
            string result = “”;
            for (int i = 0; i < nx; i++)
            {
                for (int j = 0; j < ny; j++)
                {
//separate row data with space
                    result += data[i, j].ToString() + ” “;
                }
//separate column data with space
                result += “-“;
            }
           result = compress(result);
——————————————————————————–
DEBUG –> RUN …
1 menit berlalu …..
5 menit berlalu …
10 menit berlalu ….
break the RUN…
watch i = 651  dan j = 126
usut punya usut  nx = 931 dan ny=165 …. wahh h…. masih 2/3 jalan nih …
 
langsung ganti algoritma baru :
——————————————————————————–
         public void dumpdatatofile(string filename)
        {
            StreamWriter sr = File.CreateText(filename);

            for (int i = 0; i < nx; i++)
            {
                for (int j = 0; j < ny; j++)
                {
                    sr.WriteLine(data[i,j].ToString(“E”));
                }
            }

            sr.Close();
        }
        public string loadFileToString(string filename)
        {
            StreamReader sr = File.OpenText(filename);
            string result = sr.ReadToEnd();
            sr.Close();
            return result;

        }

        public void main()
        {
            string filename = “C:\\waveshot.” + Guid.NewGuid().ToString(“N”) + “.tmp”;
            dumpdatatofile(filename);
            cVelocities = Utils.Compress(loadFileToString(filename));
//            File.Delete(filename);
        }

——————————————————————————–
DEBUG –> RUN …
1 second later …. done !!!

wow … dashyattt ….
string concate c# sucksss …..

 

October 30, 2009 Posted by | Biz to work, Blogroll, code Warior, HPC, Ngoprek, santai, techno | , , | Leave a comment

New best fit OSCAR Cluster Configuration

Setelah 4 hari bertapa di ruangan data center. akhirnya.. tembus juga OSCAR Cluster di Linux OS yang baru-baru. Konfigurasi software barunya :
– OSCAR 5.1 RC1
– CentOS 5.3 X86_64

Instalation Step :
1. Install CentOS 5.3
Note :
– pilih juga paket-paket program yang berkaitan dengan Software development, perl dan X termasuk createrepo
– disable firewall
– disable selinux

2. edit /etc/hosts <– baca readme OSCAR
3. edit /etc/ssh/sshd_config enable permitrootlogin yes
4. edit /etc/yum.conf disable gpgcheck
5. copy semua *.rpm dvd centos ke /tftpboot/distro/centos-5-x86_64
6. extract all oscar-repo*.tar.gz ke /tftpboot/oscar/
7. install yume dari /tftpboot/oscar/common-rpms/
8. yume –repo /tftpboot/oscar/common-rpms install oscar-base
9. edit PackageSmart.pm line 74 tambahkan “|centos”
10. cd /opt/oscar/
11. ./install_cluster eth0
12. ikuti 9 step wizard oscar
13. disable selinux on slave node boot
finally …………….
— done — done — done — and done —

Tentu saja, percobaan gagal sudah banyak dilakukan :
– Centos 5.3 + Oscar 6.0.3 + repo online <– failed to build client image
– Centos 5.3 + Oscar 6.0.3 + repo dvd <– failed to build client image
– Centos 5.2 + Oscar 6.0.3 + repo dvd <– failed to build client image
– FC9 64 bit <– anaconda error saat install FC9
– Centos 5.2 + Oscar 5.1b2 <– failed openmpi not exist

August 3, 2009 Posted by | Blogroll, code Warior, HPC, Ngoprek, techno, Uncategorized | , , , , , , | 3 Comments

detecting Terminal server session with c#

SystemInformation.TerminalServerSession Property

Note: This property is new in the .NET Framework version 2.0.

Gets a value indicating whether the calling process is associated with a Terminal Services client session.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

Visual Basic (Declaration)
Public Shared ReadOnly Property TerminalServerSession As Boolean

Visual Basic (Usage)
Dim value As Boolean

value = SystemInformation.TerminalServerSession

C#
public static bool TerminalServerSession { get; }

C++
public:
static property bool TerminalServerSession {
	bool get ();
}

J#
/** @property */
public static boolean get_TerminalServerSession ()

JScript
public static function get TerminalServerSession () : boolean

Property Value

true if the calling process is associated with a Terminal Services client session; otherwise, false.

Remarks

The TerminalServerSession property indicates whether the calling process is associated with a Terminal Services client session.

NoteNote
This property is supported only on Windows NT 4.0 SP4 or later, Windows 98, Windows Millennium Edition, Windows 2000, Windows XP, and the Windows Server 2003 family.

May 11, 2009 Posted by | Blogroll, code Warior, Ngoprek, techno | Leave a comment

Space effective compute node

Semakin hari, semakin efisien penggunaan space server yang dapat dimasukkan ke dalam rack data center.

waktu yang lalu telah mencoba technology 1U twin dari supermicro, dimana dalam 1U rackmount server terdapat 2 buah serverboard dengan kemampuan dapat menampung 2 buah processor Xeon Quad Core dan 48GB memori. cukup dengan power 780watt. ckckck …. so far .. no complain about 22 node of these type of server.

1U Twin

1U Twin

baru-baru ini supermicro mengeluarkan series baru 2U twin2.. dashyat… 2U = 4x serverboard = 4 x 2 processor Quad core = 4 x 48GB memori.cukup dengan power 1000watt. wuih … a lot of number .. i wish i could try this machine …

2U Twin2

2U Twin2

go green my grid ..

April 24, 2009 Posted by | Biz to work, Blogroll, Ngoprek, santai, techno | , , , , | Leave a comment

Waveshot -Imaging Server 0.4 (alpha)

Now handling over 2 million grid data. great!!

ImageSever

ImageSever

 

Running On PC :
Processor : Core2duo 1.66 GHz
Memory : 4GB
VGA Card : ATI Radeon 2601 (128MB) PCI-E
HD : 80GB

Task Manager Status :
Process Name : ImageService.exe
–> memory : 466 MB
–> CPU : 99

My current Waveshot – Imaging Server Alpha Released Notes :

—————————————————–
v.0.4 (alpha) – 19 februari 2009
—————————————————–
– Fixed for point cloud data over 500.000 grid.

—————————————————–
v.0.3 (alpha) – 7 februari 2009
—————————————————–
– Adding Logger Daily Rotation Function
– replace ftp client with FTPWebRequest
– bug fixes on velocity update grid maxfreq – minfreq = 0 (single floating limitation)
– use keepalive false for FTP connection

—————————————————–
v.0.2 (alpha) – 6 februari 2009
—————————————————–
– Adding Logger Function
– Visible / Invisible viewport
– bug fixes on ftp connection
– Adding plot title
– bound settings to text box

 

February 27, 2009 Posted by | Blogroll, Ngoprek, techno | , , , , , , , | 2 Comments

Akhirnya datang juga

setelah menunggu 9 bulan….
akhirnya datang juga ….

Jalan depan rumahku sudah diaspal euyyyy ….
hore!!!

gambar 1: jalan aspal depan rumah masih belum halus


gambar 2: sudah tidak kawatir belepotan sampai kantor

Blogged with the Flock Browser

June 13, 2008 Posted by | Blogroll, curhat, santai | Leave a comment

Melihat sendiri rumah sistem risha di puslitbang permukiman

beberapa bulan ini saya sering dihubungi oleh beberapa orang, menanyakan masalah risha (rumah instan sederhana sehat). usut punya usut ternyata, sumber rekomendasinya berasal dari blog tetangga.  Waktu awal-awal dipinjami buku oleh pak khairul ummah, istri saya ingin menjadi aplikator untuk rumah dengan sistem RISHA ini. Mungkin lebih tepatnya istri saya memposisikan sebagai Arsitek/Desainer untuk sistem RISHA ini.

informasi dicari-cari mulai dari beli buku, bertanya-tanya ke produsen (PT. Puri Panindo) dan akhirnya direferensikan ke aplikator risha (Bpk. Purnomo) yang tinggal di daerah cileunyi. Informasi yang didapat masih sedikit, cuman beberapa sample dari implementasi risha dan informasi panel-panel yang ada di sistem risha hingga membuat RAB berbasis sistem risha. harga panel-panel waktu survey dahulu  berkisar antara 60rb – 90rb.

Jumat kemaren seorang teman(ibrahim) mengajak untuk melihat langsung sample yang ada di puslitbang Permukiman PU di cileunyi.begitu sampai disana, langsung meluncur ke tempat rumah sample dengan sistem RISHA ini. dibawah ini skrinsutnya.


gambar 1 : motorku nampang di rumah sample RISHA 2 lantai.


gambar 2 : ibrahim sedang melihat sambungan-sambungan panel yang tidak estetik

gambar 3: rumah panggung dengan sistem RISHA (lebih menarik)


gambar 4 : kantor-kantor kecil dengan sistem RISHA

beberapa catatan yang kami peroleh dari hasil survey :
Sisi positif RISHA :
– Dengan sistem prefabrikasi, bisa menghemat biaya tukang. struktur rumah dapat dibangun dalam waktu 1 hari (katanya).
– konsep rumah tumbuh, bisa diimplementasikan untuk yang modal cekak.
– Konsep pondasi setempat (hanya bagian tumpuan), mengurangi kebutuhan material.

Sisi Negatif :
– Kurang estetik (sambungan-sambungan antar panel tidak rata dan tonjolan mur/baut)
– Pemasangan terkesan asal-asalan
– terbatas 2 lantai

Temanku(ibrahim) sedang mempertimbangkan sistem RISHA ini menjadi bagian teknologi yang akan diimplementasikan untuk bisnis plan yang sedang dibuatnya berjudul perumahan yang revolusioner cukup dengan cicilan 300rb-an dan bahkan bisa tanpa DP sebuah rumah yang nyaman dapat dimiliki. WAHH …..!!! bisa yah ??!
setelah mendengar penjelasan singkatnya dari ibrahim, memang mungkin bisa dilakukan!. Tertarikkah anda??!!

Blogged with the Flock Browser

Tags:

May 26, 2008 Posted by | Biz to work, Blogroll, Jalan2X, peduli!, santai, techno | 45 Comments

Vacancy : Programmer Java for Linux

Dibutuhkan programmer Java (1 orang) untuk environment linux. lokasi kerja fulltime di jakarta kirimkan CV HRD PT. Insan Infonesia ke ivan.suci[at]dev.insan.co.id dan cc ke isfcorp[at]melsa.net.id.

January 23, 2008 Posted by | Blogroll, Lowongan kerja, peduli!, santai | Leave a comment

Home sweet home …:D

akhirnya …..
benteng selesai dibangun  dengan segala kekurangan dan banyak kelebihannya (super duper over budget!!).

skrinsut tahap akhirnya : (kurang pasang pintu)


pict : air hujan … langsung masuk selokan


pict : ditutup bilik untuk garasi motor, cuci-cuci dan dapur


pict : tampak samping rumah (sudah kayak rumah khan??!)


pict : water torn memanfaatkan ruang miring


pict : paving blok persiapan buat mobil … he he he (udah liat ndak mobilnya)

sekarang waktunya bayar hutangnya maszzz….. 😦
 

December 2, 2007 Posted by | Blogroll, curhat, peduli! | 7 Comments