Mailx on Solaris

Posted September 7th, 2008. Filed under Sharing elmu

Need to send email from Solaris box? It’s very easy…

Just configure SMTP server on

/etc/mail/sendmail.cf

or

/etc/mail/local.cf

depend on your sendmail conf will be use. And then edit DS part into DS[your smtp hotname or IP] like

DS192.168.1.1

*without space*

After that restart sendmail service using command :

svcadm restart sendmail

Now we can use mailx…

echo "This is test email" | mailx -s "Test Email" test@test.com

or

cat file_name | mailx -s "Test Email" test@test.com

Hard Day

Posted September 6th, 2008. Filed under My Job

Wew… Stay on data center until the next day on Ramadhan really fascinating for me even it’s need more patient.

My task is to migrating Oracle BIEE server from RedHat AS 4 platform into Microsoft Windows Server 2003 R2 on Sun X4600 machine(with another added tasks as usual off course :) ) with one of my colleague. Changing bad disk from Sun X4500 server, which consist of 48 disks over there. Just a note from me, even Sun x86 server’s can be installed with Windows platform it need additional things to do. You need a floopy drive… yes that’s really surprise me, what the hell is this we need primitive technology to install this. It just to recognize the SAS drives. Some folks on internet said we can use nLite but haven’t tried that solution yet. Anyway I break my fasting with only 3 dates and small bread without any drink at all (take real food 3 hours later after changing the disk) caused no food mart or any groceries store open nearby. After creating RAID and format the disks (this is done by my colleague actually) installing the OS are very easy just same with the gimmick that says “Just click next.. next.. and next..”. I also create some script on other machine to monitoring some running process , re-run the process if was being killed, logs and send it by email to everybody needed (unix shell script is awesomely useful for many things). After configured SMTP on 2 machine I try my scripts and it works, rocks dude, now no need to check the process manually just see emails and log on to machine if we see errors notification. After done with 3 tasks now installing the Oracle BIEE part which is very easy loooool. Done all task at 4 AM I guess, call taxi and go back to home. Phew, just reach home before “sahur” ends.

Bad things come in the morning, I got office call regarding to my tasks… It’s time connect to the machine now…. Damn, cannot connect using 3G … what happen… I just pay my bill 3 days ago and still far away from my credit limit… Tried to call call center and I got crazy notification “Your cannot make a call caused insufficient balance…” What….!!!! Something wrong here right now… Just rushing go to customer service nearby to fix this… 2 hours wasting my time and got so many calls from office to fix something *sigh*

Got another bad thing again…  to many active connection on server, cannot log on… hiks..hiks…

Solaris Cron

Posted August 17th, 2008. Filed under Sharing elmu

Have you experienced problem with Solaris cron when crontab -e command doesn’t work as usual? Cannot edit your crontab file? Things always different on Solaris, try to do:

export EDITOR=vi

and then run:

crontab -e

don’t forget to run crontab -l to see if the changes are applied. That’s will solved the problem.

Job Description

Posted August 17th, 2008. Filed under My Job

Last year my job desk was a software developer, build VAS messaging application. With only 3 developers and so many requirement with only less than one and a half month effective time for developing the application (what we were doing for the last four months since it started… :p). Pass with good result from my point of view :)

Entering first quarter of this year my job desk changed into system engineer for delivering a new solution in data warehousing technology. Building it from scratch without know anything about it before and no adequate support except at the end of time line. *sighs* This is our team achievement, awesomely succeed. This is flawless victory ha3x (taken from mortal kombat) .

After finished the last project now my job desk changed into technical support (changed again? enough dude…) for datawarehouse implementation, and also for others that I don’t even know (as usual) :) .

Can somebody tell me what my real job desk? Never can answer it if someone ask me :p Some of my friend told me maybe I’m trying to act as a superman, do everything. Hahaha I’m still put my underwear inside my pants not on top of it like Clark Kent do with those pathetic blue costume :)

Which Operating System is the best ?

Posted August 17th, 2008. Filed under Uncategorized

Found this question posted on Linkedin.

I think need to categorize this by it’s usage: server, desktop and mobile. For server usage there is several kind such as Solaris, HP-UX, AIX, RedHat Enterprise, etc. And for desktop usage we have Windows, MacOS, Linux, etc. How about mobile usage? It almost the same with desktop, the different was just for mobile version.

For server usage I prefer to use Solaris, it is really awesome OS with so many features but not recommended for entry user (even vi on Solaris is really sucks, it’s unix based man not linux :p). Solaris came with so many advance features, the latest is ZFS which is a file system. ZFS have good compression, almost no limit file size and creation on virtual storage pool based called zpool. We can create ZFS on top traditional UFS, no need to changed disk layout. Snapshots are the best feature in ZFS for me, we can do backup maintaining without third party software and do it on the fastest way. We can create a snapshot from a pool and move it into backup storage, also we can do a daily backup using incremental snapshots that only use a few disk space because it only capture different things from last backup not capture the whole thing. Using ZFS Snapshots make us have a time machine that can rollback to any save point when problems come, this is really good for disaster recovery plan. Solaris have native hardware with Sun’s machines (of course it is caused Solaris is Sun’s product :D ), same thing for HP with HP-UX and IBM with AIX. Combination of these are one of the best (Sun servers are invading other vendors market share I think). Other OS I’d like to prefer is RedHat Enterprise Linux, no need to explain it Linux is easy to use and manage compared to unix. Other reason for choosing RedHat it because I think gnome still better than KDE :D .

Desktop OS, *sigh* this market share are definitely owned by Microsoft. Who doesn’t know Windows? It’s really easy to use and with so many applications build on top of it, even the security issue and to much consuming resources are still cannot solved by Microsoft as per my assumption (hackers wont do an attacks as intensively to other OS than Windows since it owned more than 90% market share cookie). But once I’m trying MacOS it changed everything. Powerful as unix but ease of use like Windows also the interface are more far better. MacOS are using customer approach to improve, is there any other OS enabling Web 2.0 technologies? Nope, trying to do it with many add on maybe….

Last one is for mobile usage, Windows Mobile is really fit for me. It’s really same thing with desktop version, what you can do in desktop version also available on mobile version. But since Apple realease iPhone, there is a new thought on everyone’s mind including me. It’s amazing, how can Apple make a great innovation on mobile technologies? I bet Steve Balmer was very shock when iPhone launched :p, even it not take Microsoft market share the innovation is really brilliant. How about Symbian? Geez… it’s nothing to compare with, but it use on Nokia’s phone and others also. That makes Symbian lead the market. Linux still struggling to prove them self on mobile.

eCrew Management and Time Management

Posted August 16th, 2008. Filed under Life Dependencies My Job

eCrew Management…

What’s was that? It’s my next personal project.

Damn, it’s really make me have no day for rest. Even I’m still confused which technology will be used, java or php. This is another crazy thinkin’ from me also, accepting this opportunity from my colleague. With only few information I need to build a web based application for crewing management on maritime outsourcing company, really challenging :D . I’m finished creating the business model for this, it not hard to completed since ERP still more complicated. *sighs*

Now I need to start build the demo application, damn I also need to finished other project for web designing, company profile and how about my plan to take some certifications? Arggghhh…..

I need to do something with my time management…. No more hangout… No more reading books… No more free browsing or blog walking… No more other unneeded activities… :( (

Help me please…

Back to write…

Posted August 16th, 2008. Filed under Life Dependencies

Hmmm, I’m starting to write again….

For u guys who know the reason behind this don’t laugh me please :p

Greenplum Database

Posted December 8th, 2007. Filed under Sharing elmu

Database enterprise dengan MPP (Massive Parallel Processing) yang berbasis PostgreSQL yang open source. Database ini di design untuk men-support aplikasi Business Intelligence dalam skala besar dengan multi terabyte data untuk solusi data warehouse.

Kelebihan-kelebihannya antara lain :

Open Source

Berbasis PostgreSQL, salah satu database open source yang sudah terbukti kehandalannya. Selain itu menawarkan banyak kelebihan lainnya yang tidak ada pada software enterprise komersial.

Commodity Hardware

Dapat berjalan optimal pada server yang tidak terlalu mahal. Di desain dapat berjalan pada hardware HP, Dell, Sun standar sehingga biaya utuk setiap terabyte’nya lebih murah.

Shared Nothing Architecture

Menggunakan pendekatan shared nothing architecture dimana membagi penyimpanan menjadi beberapa unit kecil dengan proses independen sehingga mempercepat koneksi ke local-disk secara parallel tidak seperti arsitektur pada umumnya yang menggunakan OLTP sehingga membutuhkan resources yang besar pada setiap prosesnya karena menggunakan single processing.

High Availability

Mempunyai pengaturan yang baik sehingga tidak terjadi redundancy pada pemrosesan datanya. Setiap segmen data mempunyai cadangan (mirror) pada host yang lain yang otomatis me-redirect koneksi pada alternative host cadangan. Hal ini membuktikan bahwa Greenplum mempunyai sistem fail-over yang baik. Paralel prosesnya juga memungkinkan untuk load data 2 terabyte dalam waktu satu jam.

Workload Management

Membatasi jumlah queri aktif di dalam sistem untuk mencegah overload memori, CPU dan I/O disk. Queri-queri diatur dalam antrian dan diproses secara parallel sehingga waktu yang dibutuhkan tidak banyak dengan menggunakan minimum resources.

Scalability and Flexibility

Greenplum memiliki pengaturan ekspansi host, penambahan database baru yang mengimplementasikan arsitektur sebelumnya untuk pengembangan data warehouse.

Performance and Price

Dapat menghemat sampai 80% cost dibandingkan dengan solusi data warehouse lainnya seperti Oracle, Teradata dan Netezza. Performancenya tidak kalah dengan solusi lainnya karena arsitektur MPP dapat membuat queri 10 – 100 kali lebih cepat.

Programmer Salary in My View of Point

Posted December 5th, 2007. Filed under Whatever

Dari sebelum lebaran gw di tawarin kerja di tempat laen. Katanya sih butuh programmer java… Salary yang ditawarin lumayan besar juga :D . Anyway, berapa sih standar gaji programmer di Indonesia?Abis browsing-browsing n’ cari info kesana-kemari gw nyimpulin beberapa hal yang mempengaruhi standar gaji seorang programmer :

1. Coder dan programmer

Yang pertama cuma kuli ketik doang, bos suruh bikin ini itu nurut. Tipe ini biasanya range salary’nya gak gede-gede amat, sekedar cukup di tambah bisa nabung sedikit. Yang kedua ini setengah analis, bukan cuma kuli ketik doang tapi ngerti pemecahan dari masalah yang dihadapin dan ngerti arsitektur software. Tipe ini range salary’nya lumayan gede, bisa sampe buat nyicil kendaraan tergantung pengalamannya ^_^.

2. Certification

Buat orang-orang yang punya sertifikasi berbangga-hati lah soalnya standar gajinya bisa di atas yang gak punya sertifikasi walupun soal kemampuan blom tentu lebih unggul juga. Contoh, programmer java yg punya sertifikasi SCEA pasti standar gajinya jauh dari yang cuma punya sertifikasi SCJP apalagi dari yang gak punya sama skali. Sama halnya kaya gelar, orang yang lulusan S2 pasti standar gajinya lebih besar dari yang lulusan D3 walaupun job desc’nya sama.

3. Business Process Knowledge

Nah, ini dia yang bisa bikin salary kita gede. Orang yang ngerti suatu proses rumit kayak ERP, billing di telco ato networking high scale bisa punya gaji gede bgt apalagi klo bisa bikinnya (dalam hal ini programmer). Semakin rumit business process yang di kuasai’nya maka bakal makin gede juga gajinya karena cuma sedikit orang yang nguasain.

4. Adaptability n’ flexibility

Yang ini gak kalah pentingnya, kadang-kadang ada programmer yang nguasain suatu bidang tapi ketika dia di tuntut untuk ngembangin kemampuannya ato di tempatin di proyek yang bidangnya gak dia kuasai mengalami kesulitan. Padahal kemampuan adaptasi yang cepet dan kemampuan buat learn sesuatu yang baru atau update technology itu penting banget. Perkembangan dunia IT tuh cepet banget dan berimbas pada perkembangan programming juga, blom nguasain JDK 1.5 aja tiba-tiba Sun udah ngeluarin JDK 1.6. Apalagi klo yg opensource kayak Apache, Codehaus ato JBoss dll, dalam setahun bisa nge’rilis beberapa versi.

Regular Expression

Posted December 1st, 2007. Filed under Java Sharing elmu

Regular Expression ato regex itu digunakan untuk parsing file yang memiliki format tertentu yang sama sehingga bisa di definisikan satu kali saja dan tidak perlu mendefinisikan ulang untuk format yang sudah ada (kira2 menurut gw sih begitu).

Misalkan kita punya file csv/txt berisi data karyawan (nama,telp,tgl lahir, dll) sebanyak 1 juta records/ line. Format penulisan telp bermacam-macam dikarenakan tukang entri datanya beda2, cth : (0251)-345677, 6281243095, +62234134 ato yang laennya. Nah, bos kita kan biasanya pengen yang macem2 tuh kaya misalkan format harus di seragamkan semuanya. Weks…! 1 juta records…? mati aja kali. Di sini regex bakalan kepake n’ terasa manfaatnya (banget…!).

Solusi :

public String toNumericOnly(String input) throws RESyntaxException {
      String pattern = "[^0123456789]";
      RE r = new RE(pattern);
      String alphabetOnly = r.subst(input, "");    return alphabetOnly;
}

Thats all, ntr karakter-karakter yang gak di define di pattern bakal di ilangin. Anyway, lib regex’nya bisa di download di Jakarta Apache.