Cyberheb

[k-elektronik /export/home/staff/cyberheb]# cat .live

Nimbrung DPT…

Tags:

Diambil dari salah satu berita detik.com .

“Masalah DPT, bagaimana mungkin menemukan kesalahan 10 juta dalam 24 jam hanya dengan cara manual menggunakan 80 komputer. Saya melihat adik-adik mahasiswa sudah teler. Perkiraan saya paling-paling 180.000 kesalahan dalam 24 jam,” paparnya.

Saya sendiri tidak mengetahui bagaimana sebenarnya metode kerja internal KPU beserta sistem komputerisasinya. Beberapa waktu yang lalu sempat terdengar kabar bahwa KPU melakukan upgrade hardware dari yang digunakan tahun 2004, sedangkan vendor software maupun bagaimana metode internalnya tidak terdengar, at least oleh saya yang kurang gaul ini.

Namun saya rasa walaupun terdapat migrasi database yang menyebabkan inkonsistensi data maka hal ini seharusnya bisa dilacak secara software. Yang menarik adalah pernyataan diatas, yang menurut hemat saya pencarian data yang ganda dilakukan secara manual oleh manusia. C’mon, harga sistem IT KPU bernilai trilyunan, masa’ iya tidak ada diantara para programmer ataupun pemegang IT tersebut yang bisa membuat aplikasi secara cepat untuk mendeteksi data DPT ganda?!

Read the rest of this entry »

http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

Books: Cocoa(R) Programming for Mac(R) OS X (3rd Edition)

Tags: ,

Buku yang luar biasa bagi para newbie dibidang cocoa programming. Saya mengalami beragam hambatan saat mempelejari teknologi OSX terutama Objective-C dan Cocoa, namun setelah membaca buku ini beragam pengetahuan padat bisa didapatkan. Aaron Hillegas mengemas buku tersebut dengan sangat apik, dan penjelasannya yang terstruktur dan step-by-step membuat kita lebih mudah memahami karakteristik cocoa.

Cocok buat para pendatang baru yang ingin mempelajari programming OSX maupun iPhone :) .

http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

lcc32 and vc9

Tags: , ,

lcc32: GUI compiler
VC9: cl compiler
lcc32: command line compiler

Semua diambil dengan menggunakan default option saat proses kompilasi. Hasil diatas berdasarkan analisis IDA. Hm….

#include <stdio.h>

void main(int argc, char *argv[])
{
    printf("Oke\n");
   
}
http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

cl.exe for VC9 (Visual Studio 2008)

TAGS: None

So, recently I installed Visual Studio 2008 and would like to use cl.exe as compiler. Rules still same with VC6, accessing command line tools like cl.exe require some steps to be performed. Here’s 2 problem I found so far:

1. Problem with mspdb80.dll

When we try to execute cl.exe, pop-up window will show which said “This application has failed to start because mspdb80.dll was not found. Re-installing the application may fix this problem”.

mspdb80.dll

Solution for this case is easy, search for mspdb80.dll on your machine and put that .dll into your VC\bin directory. It was located at “C:\Program Files\Common Files\Microsoft Shared\VSA\9.0\VsaEnv” in my system.

2. Environtment variable hasn’t been set correctly

If you’re using IDE provided by visual studio, everything already set-up properly. But when you’re using command line, you should set it up manually. Visual studio already give batch script which can be used to set-up environtment variable correctly. Environment here: lib, include, etc.

Without set it up first, below error will occurred:

C:\Documents and Settings\Cyberheb\My Documents>cl hoho.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

hoho.c
hoho.c(1) : fatal error C1034: stdio.h: no include path set

To fix, run vcvars32.bat under VC\bin directory, which will run batch script “E:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat” in my system. After that, simple compilation should going through:

C:\Documents and Settings\Cyberheb\My Documents>cl hoho.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

hoho.c
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:hoho.exe
hoho.obj

Of course using IDE is much easier, but still…in some case command line is preferable than IDE. Especially when you’re trying to compile some wild spl0it :) . Complete cl.exe options can be found here, I’ll post about various options next time.

http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

GnuPlot on OSX

TAGS: None

Just finished install Ruby Gnu Plot on MacBook OSX version 10.5.6 (Leopard). This is Ruby module for creating some graph using GNUPlot. Ruby Gnu plot can be downloaded from here.

Ruby Gnu plot will become interface to real GNUPlot, thus we still need to install GNUPlot. Unfortunately, since apple shipped this version of OSX with readline emulation, installation of GNUPlot will be failed. Below is the part where GNUPlot installation failed:

g++  -g -O2   -o gnuplot alloc.o axis.o breaders.o bitmap.o color.o command.o contour.o datafile.o dynarray.o eval.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o tables.o term.o time.o unset.o util.o util3d.o variable.o version.o   -lreadline  -lncurses  -lz
Undefined symbols:
"_rl_forced_update_display", referenced from:
_restore_prompt in command.o
"_rl_ding", referenced from:
_alert in mouse.o
"_history_list", referenced from:
_write_history_list in history.o
"_rl_complete_with_tilde_expansion", referenced from:
_rl_complete_with_tilde_expansion$non_lazy_ptr in plot.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [gnuplot] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

GNUPlot will tried to search for ‘real’ readline. We can fix with specified readline as built-in:

$ ./configure --with-readline=builtin

Then make process will finish successfully. Later we can use Ruby GnuPlot for creating some graph:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env ruby

######################################
### Taken from http://rgplot.rubyforge.org/ ###
######################################
require 'gnuplot'

Gnuplot.open do |gp|
Gnuplot::Plot.new( gp ) do |plot|

plot.xrange "[-10:10]"
plot.title  "Sin Wave Example"
plot.ylabel "x"
plot.xlabel "sin(x)"

plot.data &lt;&lt; Gnuplot::DataSet.new( "sin(x)" ) do |ds|
ds.with = "lines"
ds.linewidth = 4
end

end

end

We still need to have X11 installed (can be installed from OSX DVD installer). Result?!

http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

© 2009 Cyberheb. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.