Showing posts with label Scientific software. Show all posts
Showing posts with label Scientific software. Show all posts

Jun 10, 2015

Hisab Ramadhan dan Idul Fitri 2015

Hisab sore 30 Sya'ban dengan Kstars
Hisab sore 29 Ramadhan dengan Kstars
Bismillaahirrahmaanirrahiim
Alhamdulillaahi rabbil aalamiin, wa bihi nashtaiinu alaa umuuriddunyaa waddiin, wa sholallaahu alaa sayyidinaa Muhammadin wa alaa aalihii wa azwajihii wa dzurriyyatihii wa shahbihii ajmaiin

"Mengammbil dalil yang paling shahih" itu bukan berasal dari Alqur'an maupun hadits shahih, maka prinsip/metode/pendekatan itu tidak bisa diposisikan lebih tinggi dari dalil itu sendiri.

Pada penentuan awal bulan (Ramadhan dan Idul Fitri), kita orang Indonesia biasa berselisih (atau saling mengedukasi) mengenai hal ini. Dari beberapa sidang isbat yang disiarkan secara langsung, kita tahu bahwa perbedaan itu ternyata hanya antara Muhammaddiyah di satu pihak dengan Ormas Islam lain plus LAPAN dan Observatorium Bosscha di pihak lainnya.

Kalau menurut saya yang suka mainan modeling (paper tentang risiko banjir Jakarta 2030 dan 2050 submit bulan lalu di NHESS, mohon doanya), yang namanya model itu adalah alat sedang kondisi sebenarnya ya nunggu nanti tahun 2030 dan 2050. Termasuk juga kondisi presipitasi, kenaikan muka air laut, tata guna lahan, dan land subsidence yang tumplek bleg di paper itu. Prediksi itu bukan tidak berguna, karena bisa digunakan pada tahun 2015 untuk perencanaan saja.

Kalau toh prinsip modeling itu cocok dengan prinsip telaah tafsir tentang awal dan akhir puasa, ya mestinya yang diikuti tetap para profesional yang mendalami ilmu tafsir Alquran (please note, ayat puasa sudah ada khusus) dan ilmu hadits (tentang puasa Ramadhan juga, karena sudah jelas). Urutan berikutnya adalah ilmu alatnya yaikni ilmu falak yang menelorkan hisab. Modeling sendiri disini hanya numpang beken, karena tidak profesional dalam studi agama.

Bukankah yang paling berhak menafsiri ayat (puasa) adalah kanjeng Nabi saw dengan haditsnya?

Wallahu a'lam.

Aug 21, 2013

Bulk Convert XLS To CSV

There are many offers. The interesting one is

$ sudo easy_install xls2csv

Sadly, my Ubuntu 13.04 said
error: could not find suitable distribution for Requirement.parse('xls2csv')

But this one Excel – Batch Convert XLS To CSV makes me jump!
The older version has a standard naming which is fine. The new one runs in html which I don't try.

Thank you  Chris West!

Jan 5, 2013

Menulis: keep the head aligned with the idea, not the formatting!

Ada permasalahan distraction ketika kita menulis artikel atau buku dengan aplikasi office yang kita kenal: kita lebih sibuk mengurusi format hasil tulisan dengan 1001 styles, dan lupa dengan spending untuk unsur utama menulis yaitu menuangkan ide.

Kalau tulisannya masih bener-bener scratch, Freemind can have a go. Dari sini, bisa diekspor ke html, odt (format yang sudah dapat sertifikasi ISO) atau apapun terserah. Asal jangan MSoffice (bajakan).

Langkah berikutnya, sebenarnya aft bagus tapi perlu tahu sedikit tentang tagging aft agar bisa dikonversi dengan baik menjadi TeX. Lho kok langsung ke TeX?

TeX membuat kepala kita lebih aligned dengan penuangan ide dan tidak terlalu memikirkan tampilan hasil akhir. Cukup nempelin template di depan, misalnya {article} atau {book} maka hasil akhir penulisan sudah kaya dengan 1001 style yang ditawarkan document editor umumnya.

Beberapa GUI editor untuk LaTeX yang baik dan enak buat newbie kayak aku ...
  1. Gummi, installernya 5MB
  2. TeXStudio, installernya 100MB
  3. TeXMaker, installernya 700MB
Yang gedhe mestinya kaya fitur. Masalahnya kuota tinggal 200MB, jadi harus dihemat.

Happy TeXing!

Jul 4, 2012

Hisab Ramadhan 1433H

Melanjutkan artikel Hisab 1 Syawal 1432H yang (ternyata) rame dikunjungi, saya insert screenshot kstars untuk hari Kamis, 19 Juli 2012.

Hasil ringkasnya, pada Jam 17:49, matahari ada di 0 derajat 1 menit (masih nempel di horizon dikit), bulan ada di ketinggian 1 derajat 48 menit. Mungkin ada 2 pendapat tentang permualaan puasa 1433. Kalau bias dari matahari tidak menutup bulan, mungkin ada yang bisa melihat bulan. Tapi sepertinya bulan terlalu dekat horizon dan matahari.

Yang pengen kstars tapi nggak punya Linux, bisa pasang kde dulu disini. Atau dengan liveCD/liveUSB tanpa perlu instalasi.

Silahkan mulai membongkar referensi dari kitab lama hingga yang terbaru. Mudah-mudahan kita semakin dewasa.

Mengapa aku memilih Free Open Source SOftware

lebih dari 10 tahun y.l, aku hanya mengatakan pada diriku sendiri, dengan dorongan dari pesawat at hotmail dot com, aku tidak akan membajak. niat ingsun itu menendang pantatku ke Linux mulai dari Redhat hingga akhirnya settle dengan Debian Potato.

Sekarang, ada alasan lain. Kalau kita rajin memilih FOSS dan bukan propietary, sebenarnya kita sedang memperkaya diri sendiri: dengan ilmu, kesempatan dan uang. dan sebenarnya bukan hanya diri -individu- tapi juga kelompok (peneliti/perekyasa) yang kerja bareng sama kita, masyarakat pengguna software (mana lg yg gak make?) dan negara dalam skala kapital.

How? kalau tahun 2012 ini ada kebutuhan menggunakan software modeling dengan pagu dana 10 jt, misalnya (kurang, kali), kalau digunakan untuk mbeli software modeling propietary bikinan luar Indonesia -pastinya, krn kl enggak maka hasil modelingnya tidak masuk jurnal internasional- maka uang yang muncul dari ide kita, proposal kita dan harusnya bermanfaat utk kita krn kt yg mengupayakan justru disetor ke negara kaya -pastinya lagi-.

Kalau dgn FOSS, maka 10 jt itu cukup banget utk OJ, rapat, pelatihan, mengembangkan modul atau add-on dengan software house kecil2an punya tetangga sebelah, dan hasilnya masih bisa diklaim utk jurnal internasional. bahkan add-on-nya masih bisa berguna untuk masyarakat luas di dunia. dan karena manfaatnya lebih luas dan terkonsentrasi di tetangga shg tetangga tdk lapar, maka pahala itu terus mengalir hingga proyeknya sudah dilupakan BPKP dan yang mengerjakan proyek sudah dicabut nyawanya.

Kurang FOSS apa lagi?

Jun 4, 2012

Tips agar tidak tenggelam di internet

Permasalahan klasik: sampai di kantor, buka email dan browser, lalu tenggelam di internet dan kehilangan waktu produktif.

Mozilla Firefox profile bisa digunakan untuk membantu memanage waktu browing. Caranya, ketik:
firefox -P
dari start > run atau dari console (Linux)
Lalu buatlah profile baru dan rename yang sudah ada (default). Kata "profile" semestinya merujuk ke orang atau user, tapi di komputer yang mempunyai login unik untuk tiap user atau bahkan desktop/laptop pribadi, profile bisa difungsikan untuk mengkategorikan pekerjaan. Maka buatlah 3 profile: work, play, analysis.

30 menit pertama sampai di kantor, ketika badan masih adem-panas karena kebut-kebutan dengan tukang ojek bisa digunakan untuk mainan fb dan email. Maka bukalah Firefox, pilih profile "play". Setelah 30 menit atau persisnya jam 8:30 (sudah termasuk bonus 15 menit karena datang awal), tutup Firefox.

Buka kembali firefox dengan profile "work". Bila koneksi internet baik, bukalah beberapa tabs. Tabs yang penting seperti "perpustakaan" dan Wikipedia bisa di klik kanan dan "pin this tab". Nanti kalau mau pergi makan siang, tutup aja Firefox ini, tanpa menutup serombongan tabs yang masih terbuka.

Kalau belum istirahat makan siang sudah cape, tutup Firefox dan buka kembali dengan profile "analysis". Menganalisa data adalah seperti membuat prakarya. Ia tidak banyak menghabiskan pikiran dan lebih banyak menggunakan kekuatan jari telunjuk diatas mouse dan keyboard. "Pin" tab penting seperti misalnya tutorial Python atau Matlab.

Demikian sekedar share agar tidak tenggelam dengan asiknya dunia fb yang cenderung emosional dan tidak terkait dengan produktivitas.

Apr 23, 2012

Entrusting the spreadsheet

Ceritanya males nganalisis data spasial dengan Matlab seperti petunjuk Bapake. Maka dibuatlah stupid approach melulu menggunakan ArcGIS model, diekspor ke Python script dan tabel dbf-nya dibongkar-muatkan kembali ke ArcGIS. Seperti yang biasa dikerjakan orang kantor.

Syahdan, selesailah 2x2x25x7 file vektor dan raster ditempel-tempel dan menghasilkan sel di spreadsheet sebanyak 7worksheet@17x800 sel plus beberapa worksheet summary. Didalam (tiap) sel ada "if .. then" yang query antar kolom dalam 1 baris plus regresi linier sederhana yang nyambung lagi ke worksheet lain dengan "names" dan permanent cell query. Di worksheet lain ada extension CorelPolyGUI. Addon statistik yang dijamin dummy-proof.

Waktu hasilnya di sort untuk ngecek konsistensinya, masya Allah! Yang tadinya negatif bisa berubah positif sendiri. Sudah direboot komputernya, diulang masih sama. Hm.. ini bukan soal hardware seperti waktu mbikin loop Python di ArcGIS. Ketemu sama Pak Pakistan, dia cuman ketawa: "Ha ha .. itu juga bagian dari research". Yo wis, ayem-ayem ning tetep nggemblung.

Tak tinggal mlaku-mlaku nyang musholla, sambil berkhayal di perjalanan. Hmm, enaknya semua nilai diubah jadi angka tanpa rumus, kalau perlu dijadikan comma separated value (csv). Dan Subhanallah jalan. So, I just feed the result back as dbf menggunakan LibreOffice. Excel bisa mbaca nggak mau nulis dbf. Panggil ulang di ArcGIS, kolom yang baru langsung tunjuk jari. Alhamdulillah.

Kesimpulan: untuk array yang besar, memang semestinya tidak diolah menggunakan spreadsheet. Mesti banting ke bahasa yang memang dibuat untuk itu: Matlab, Octave, R, Python-Numpy, whatever. Mudah-mudahan, nanti kalau balik ke Indonesia bisa diterjemahkan ke FOSS. Sekarang lebih baik mengerti proses dan approachnya, FOSSnya ngalah dulu.

Mar 19, 2012

Checking an old computer health

One day you need to buy a second hand laptop or try upgrade an old desktop machine. Here's what you can try to check the health of the computer.

Get a Linux live CD or USB (pen drive). Doesn't matter the distro whether it is a sophisticated one or the most simple one with GUI like Puppy, Slitaz or Damn Small Linux. Even a smaller ones with only terminal is also ok, but this require a longer strategy since we need to burden the computer a bit with installation.

Insert the CD/USB pen drive, fire up the computer or hard-boot it. Many computer will boot from either ones. If not, you can tell the CMOS to boot from one of them. Some CMOS tell us we need to press F8 or F12 for selections of drive, others us to change the default value. We can get into CMOS by pressing Del or F2 or Ctr+Alt+Esc or whatever shown on the screen. The CMOS will tell you that.

When you get the Linux live CD/USB on, open a terminal (press alt+F2 type xterm or click on the menu). Do one or all of these:

$ lspci
$ dmesg

Either one should produce lists of hardware and its addresses. There may be one or two errors, but this is NORMAL. Your kernel might not cover all chipsets available in every computer that has been produced.

If you want to be convinced, try to install the live CD/USB. This will burden the (IDE) bus and all the hardware but not to overload it. First, try install on the hard drive. If everything goes fine without error, then the computer is fine. If it fails or produce plenty I/O errors, the hard drive or the IO bus (main board) may have a problem. Wanna be sure? Install the system into a(nother) USB pen drive. If installation goes fine, the hardware is fine, but you need to get a new hard drive.

If installing on a(nother) USB disk also fails or produce many errors, then the main board is old enough to be disposed. However, you still can use this kind of machine for daily use, actually. Try install a mini distro such those three I mentioned. They are small sized and provide good GUI that you can safely browse internet or write an article. Small distro doesn't exhaust your mainboard, but passing quiet executions to produce what you want for daily works.

That's today's share.

Fixing a slow machine

Someone came around to me wishing if I would fix his computers. Well, I would do that when I'm free from office works. Means that I'll do that during the evening at mosque (for a laptop) or home, as long as I'm not too exhausted with office works. That's the deal.

A slowing (sorry) Windows computer may a result of 3 things:
  1. Old or faulty machine/part with big burden (3D game or image processing). A CAD processing would be done by a CAD mind, so this is not a case.
  2. Virus, spam, malware.
  3. A faster wish than the mind ;-)

The first can be seen when you hard drive keeps busy from few clicks on 3D games or Adobe Photoshop or Corel Draw. Solution? Use lightweight and non exhaustive game such as arcade games (2D) or lightweight image processing. Irfanview or the Gimp (raster based) or Dia (vector/diagram) or LibreOffice are just sufficient for doing many things for my beautiful thesis with lots of diagrams and figures. All of them works in Windows.

The second one is a bit complicated. To tell the background, Windows exhaust too much of its IDE bus while working. Much different from my experience on hilariously busy multi-tasking and multi-user Linux machine. Well, I may exaggerate this, but that's what I experience. As a result, a tease of virus or spam from the internet will exhaust the machine easily resulting the slowness. How to fix this?

To make things simple, you need an anti virus. But since your machine is slow now, I suppose the virus has been liven happily inside. Hence, it is nearly impossible to clean it thoroughly no matter how hard you update the anti virus program because the malware has a bungalow inside of your machine.

Best trick is to format the hard drive SEVERAL times, reinstall Windows, add ONE antivirus software ONLY, update it, add more software of your need and safe browsing the internet.

There are also tricks if you don't want to delete the system completely. Use a live CD (or burn the ISO on USB disk using Ubuntu live CD). The command is simple and has been world wide web:

ubuntu@ubuntu:~$ sudo clamscan -irv --remove mnt

That's what I got from VolatileMinds. Of course, there are tons of trick and more you can try. What I often do also is boot the computer with (any) Linux live on CD or USB stick, search for suspicious .exe, .com, or .sys files and delete them. Many virus just happy to live in c:\Documents and settings\ which the files can safely deleted (for most) and fewer live under c:\WINDOWS\ and c:\Program files\. The last two folder require good understanding on the system.

Well, that's quiet long now. Bug me with comment if you wish for more information, I may write other clue or put some images to make you understand better. If I'm way too far (with the respond), Google "clamav livecd". You may find a live CD iso image that will make your life easier.

I think I've shared the principles.

Mar 1, 2012

Populate 118 ESRI asci files in Grass GIS

Next quest in Grass is to populate 118 ESRI ascii files (1 return period) produced by SOBEK hydrology model suite into (relatively) 1 file. Sure that can be done using GUI, but repeating 118 files with several clicks each? That's not elegant. And yet potentially create mistakes.

A view on Grass GUI command execution reveal:
r.in.arc input=D:\analysis\51\dm1emc01.asc output=51dm1emc01@hazard

Next quest is to write a file listing all the asc on the first column and output on the second column and pass this file onto the "r.in.arc" process. More problem yet, Grass GIS command line and cygwin lives in different places. Grass one is a DOS terminal with Linux' bash taste while Cygwin is real Linux terminal inside Windows.

Getting Grass inside Cygwin? Lot's of dependecy to take care.

Hm .. if only I got a Linux box here ...

Previous post: ngakalin-sobek-asc-file-untuk-input-ke Grass GIS

Feb 15, 2012

Bibliography management

Ini quest untuk banyak orang yang lagi belajar atau yang kerja di lingkungan riset. To summary the need:
  1. Kemudahan menuliskan cite
  2. Mendukung groupware
Maka multi platform jadi alasan utama. Itu karena hidupku terlanjur dengan FOSS, plus Indonesia terlanjur nggak punya uang untuk beli software sehingga karena alasan itu, at worst, orangnya punya mental donwload dari Glodok.

Sementara ini solusinya, semua data yang disarankan ditaruh di drop box (diserahkan ke pemerintah yang punya dropbox) diupload di server sendiri yang dikelola sendiri. Nggak reproducable in your institution because you can't do that? Well, let me know. I'll show you how simple that is. Kedua, layanan sharing bibliografi dibikin online di server tersebut. Rencananya menggunakan Plone CMFBibliographyAT atau wrapping dari PHPrefman (lali jenenge) atau dari Uni_kassel.

Wis, mumet sik.

Jan 27, 2012

Ngakalin SOBEK asc file untuk input ke Grass GIS


Problem:
Nggak bisa mbuka asc file hasil model SOBEK either make ArcGIS atau pun Grass GIS.
Ternyata:
File asc ada 'comment' di baris 1. Baris ini, kata yg ngerunning model harus dihapus dulu.
Problem baru:
File-nya ada ratusan. Rasakno ...

Solusi: sed (atau tail)
Perangkatnya Linux atau Cygwin (karena di kampus ga dikasih Linux) yg didalamnya ada sed.
Plus sedikit skill regex yang bisa didownload langsung dari sini:
  1. http://ubuntuforums.org/showthread.php?t=395658
  2. http://sed.sourceforge.net/grabbag/tutorials/do_it_with_sed.txt
  3. http://www.unix.com/unix-dummies-questions-answers/4056-sed-across-multiple-files.html
  4. http://www.tutorialspoint.com/unix/unix-regular-expressions.htm

Gampang, kan?

Nanti ketemu lagi, insya Allah.

Jan 26, 2012

Starting GrassGIS - a user note

I think GrassGIS is created following the many of open source project is created. I mean, the GUI is designed for bunch of folks working at the same project. On the other side, the popular proprietary GIS tools is created for single user. Same as a proprietary operating system and so forth.

So in the GrassGIS starting window, you see my project namely Jakarta with several bunch of maps (and calculations, for later works) which GrassGIS call it mapsets. This is because I work the project by myself.

In a multi user environment, the mapsets may refer to user1, etc. Perhaps, user1 only have task to do certain calculation based on PERMANENT mapsets.

This way, the raw data and the work is easily seen. Not by intepreting the possible filename that is 'invited' in a "catalog".

I think that the start.

Strive!

Jan 25, 2012

Starting GIS


Setelah mondar-mandir antara ArcGIS dan GIS tools versi open source dibawah bendera osgeo4win (GrassGIS, QGis, uDig), sptnya GrassGIS yg cocok.
Sebabnya:
  1. uDig berbasis Java (lho?).
  2. QGis berbasis QT dan GTK. Karena saya (terpaksa) make window$ dan GTK librarynya kecampur2 dan (kata internet pula) susah ngebenerinnya meskipun sudah buka registry, maka saya mundur. Kata saya pada diri sendiri, memang nativenya QGis tidak untuk Window$. Tapi kalau komputernya masih 'baru' atau baru saja diintall ulang dan sudah terbiasa dengan ArcGIS, ya bolehlah. Kelebihan QGis dibanding ArcGIS: lebih Python. Jadi kalau ngolah array gedhe2an ga repot.
  3. GrassGIS berbasis WxPython. Plusnya, pendekatannya thd ArcCatalog lebih simpel sekaligus lebih fungsional untuk kerja tim:
Creating and maintaining MAPSETs
One motivation to maintain different MAPSETs is to store maps related to project issues or subregions. Another motivation is to support simultaneous access of several users to the map layers stored within the same LOCATION, i.e. teams working on the same project. For teams a centralized GRASS DATABASE would be defined in a network file system (e.g. NFS). Besides access to his/her own MAPSET, each user can also read map layers in other users' MAPSETs, but s/he can modify or remove only the map layers in his/her own MAPSET.
You can learn more about mapsets and how to seamlessly access maps found in another MAPSET of the same LOCATION in the g.mapsets documentation.

Hm.. mudah2an ada waktu nanti untuk 'meracuni' tim agar lebih FOSS-friendly. Sukur2 jadi standar.

Sep 21, 2011

Writing a paper, the faster way

Dibawah beberapa catatan untuk keperluan penulisan terbitan ilmiah, dalam hal ini untuk proyek JCAT (Jakarta Climate Adaptation Tools), agar lebih cepat.
  1. Mbaca, mbaca, mbaca.
  2. Gunakan kbibtex (atau bibtex yang lain) untuk memindahkan catatan artikel (judul, pengarang, keyword, ABSTRACT)
  3. Index local references dengan "recoll". Don't forget to change the configuration to consider only folders with pdf, so it won't take forever to index (by default) the whole home directory, unless you need to. Check requirements at the site (e.g. indexing pdf requires pdftotext which is inside the package xpdf or poppler)
  4. Jump start with the paper. Bisa dimulai dengan freemind lalu mbikin outline lalu keduanya diintegrasikan, mengingat freemind 0.9 yg sdh dg bagus melakukan export ke openoffice (odt).
Nggak susah, bukan?

Aug 18, 2011

Googleearth 6 in Debian Squeeze

  1. $ sudo apt-get update
  2. $ sudo apt-get dist-upgrade
  3. Download deb package from http://earth.google.com
  4. $ sudo dpkg -i go*.deb
  5. If many dependency failures, this is the last working try: $ sudo apt-get install lsb-core lsb-release pax alien rpm rpm2cpio libelf1 librpm1 librpmbuild1 librpmio1 libelf1 librpm1 librpmio1 rpm-common
Hint: I did block (double click in the package) and middle click (anywhere in terminal) to get the dependency transferred at the cursor position.

Below is detail notes:

$ sudo dpkg -i google-earth-stable_current_i386.deb
(Reading database ... 182343 files and directories currently installed.)
Preparing to replace google-earth-stable 6.0.1.2032-r0 (using google-earth-stable_current_i386.deb) ...
Unpacking replacement google-earth-stable ...
dpkg: dependency problems prevent configuration of google-earth-stable:
google-earth-stable depends on lsb-core (>= 3.2); however:
Package lsb-core is not installed.
dpkg: error processing google-earth-stable (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Processing triggers for menu ...
Errors were encountered while processing:
google-earth-stable

$ sudo apt-get install lsb-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
lsb-core : Depends: lsb-release but it is not going to be installed
Depends: pax but it is not going to be installed
Depends: alien (>= 8.36) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

$ sudo apt-get install lsb-core lsb-release pax alien
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
alien : Depends: rpm (>= 2.4.4-2) but it is not going to be installed
Depends: rpm2cpio but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

$ sudo apt-get install lsb-core lsb-release pax alien rpm rpm2cpio
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
rpm : Depends: libelf1 (>= 0.131) but it is not going to be installed
Depends: librpm1 (>= 4.8.0) but it is not going to be installed
Depends: librpmbuild1 (>= 4.8.0) but it is not going to be installed
Depends: librpmio1 (>= 4.8.0) but it is not going to be installed
Depends: rpm-common (= 4.8.1-6) but it is not going to be installed
rpm2cpio : Depends: libelf1 (>= 0.131) but it is not going to be installed
Depends: librpm1 (>= 4.8.0) but it is not going to be installed
Depends: librpmio1 (>= 4.8.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

$ sudo apt-get install lsb-core lsb-release pax alien rpm rpm2cpio libelf1 librpm1 librpmbuild1 librpmio1 libelf1 librpm1 librpmio1
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
librpm1 : Depends: rpm-common (= 4.8.1-6) but it is not going to be installed
rpm : Depends: rpm-common (= 4.8.1-6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

$ sudo apt-get install lsb-core lsb-release pax alien rpm rpm2cpio libelf1 librpm1 librpmbuild1 librpmio1 libelf1 librpm1 librpmio1 rpm-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
lsb-rpm lintian lzma lsb elfutils rpm-i18n
The following NEW packages will be installed:
alien libelf1 librpm1 librpmbuild1 librpmio1 lsb-core lsb-release pax rpm rpm-common rpm2cpio
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/5,155 kB of archives.
After this operation, 7,500 kB of additional disk space will be used.
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Preconfiguring packages ...
Selecting previously deselected package lsb-release.
(Reading database ... 182344 files and directories currently installed.)
Unpacking lsb-release (from .../lsb-release_3.2-23.2squeeze1_all.deb) ...
Selecting previously deselected package pax.
Unpacking pax (from .../p/pax/pax_20090728-1_i386.deb) ...
Selecting previously deselected package libelf1.
Unpacking libelf1 (from .../libelf1_0.148-1_i386.deb) ...
Selecting previously deselected package librpmio1.
Unpacking librpmio1 (from .../rpm/librpmio1_4.8.1-6_i386.deb) ...
Selecting previously deselected package rpm-common.
Unpacking rpm-common (from .../rpm-common_4.8.1-6_i386.deb) ...
Selecting previously deselected package librpm1.
Unpacking librpm1 (from .../r/rpm/librpm1_4.8.1-6_i386.deb) ...
Selecting previously deselected package librpmbuild1.
Unpacking librpmbuild1 (from .../librpmbuild1_4.8.1-6_i386.deb) ...
Selecting previously deselected package rpm2cpio.
Unpacking rpm2cpio (from .../rpm/rpm2cpio_4.8.1-6_i386.deb) ...
Selecting previously deselected package rpm.
Unpacking rpm (from .../r/rpm/rpm_4.8.1-6_i386.deb) ...
Selecting previously deselected package alien.
Unpacking alien (from .../a/alien/alien_8.81_all.deb) ...
Selecting previously deselected package lsb-core.
Unpacking lsb-core (from .../lsb-core_3.2-23.2squeeze1_i386.deb) ...
Processing triggers for man-db ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Setting up lsb-release (3.2-23.2squeeze1) ...
Setting up pax (1:20090728-1) ...
Setting up libelf1 (0.148-1) ...
Setting up librpmio1 (4.8.1-6) ...
Setting up rpm-common (4.8.1-6) ...
Setting up librpm1 (4.8.1-6) ...
Setting up librpmbuild1 (4.8.1-6) ...
Setting up rpm2cpio (4.8.1-6) ...
Setting up rpm (4.8.1-6) ...
Setting up alien (8.81) ...
Setting up lsb-core (3.2-23.2squeeze1) ...
debconf: unable to initialize frontend: Dialog

debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
Setting up google-earth-stable (6.0.3.2197-r0) ...
Processing triggers for python-support ...
Processing triggers for menu ...

$ google-earth

Jul 29, 2011

Hisab Ramadhan 1432H



Ringkasnya, pada 30 Juli, saat matahari terbenam, kira2 bulan ada di -5 derajat. Pada hari berikutnya, bulan ada di posisi +6 derajat di atas ufuk. Jadi insya Allah kita mulai puasa bersama tanpa beda pendapat.

Mudah-mudahan bermanfaat.

Jun 24, 2011

Statistical part of sREM

Possible tools with use case for Django:
  1. Matplotlib - comprehensive approach. Scipy has simple implementation for this, and rotareeclub site has good resource on the implementation
  2. jModelica -
  3. Reportlab - industry standard report. too much?
  4. ipython.scipy.org -
Perhaps, the important thing is just kick it on a desktop environment, see the result and upload it onto Django and check again.

Jun 17, 2011

sREM tools

Minggu ini dapet link penting:
  1. Plone theming dengan deliverance
  2. Pengganti jquery untuk query-nya sREM yaitu pyquery
  3. InstantDjango, just like it's name.

Mar 29, 2011

sun-java di Lucid

Gara2nya mau masang freemind. Karena butuh sun-java, maka mesti masang openjdk-6-jre. Karena di Lucid require tzdata/2010m-0ubuntu0.10.04, maka download dulu paket tersebut di
https://launchpad.net/ubuntu/+source/tzdata/2010m-0ubuntu0.10.04/+buildjob/1995244
Lalu, simpen di /var/cache/apt/archives/
Kalu enggak, ya langsung install saja agar menimpah paket defaultnya.
Mungkin developernya perlu diberi tahu bahwa dependensi paketnya ada yang mogok?
Ok, deh. Aku juga register di launchpad ...