Author Archives: deptz

Menyikapi Perbedaan Idul Adha 1431 Hijriah

Catatan:

artikel diambil dari: http://sains.kompas.com/read/2010/11/16/09075675/Memahami.Perbedaan.Idul.Adha.1431.H-4

————————–

Ijtimak Awal Zulhijah 1431 Hijriah 6 November 2010 pukul 15.52 WIB

Ijtimak Awal Zulhijah 1431 Hijriah 6 November 2010 pukul 15.52 WIB


Potensi adanya perbedaan Idul Adha 1431 Hijriah sudah diprediksi para ahli hisab rukyat dan astronom sejak beberapa tahun lalu. Perbedaan itu terwujud saat ini dengan adanya sebagian umat Islam Indonesia yang memperingati Idul Adha pada Selasa ini, sama seperti di Arab Saudi, dan sebagian lagi Rabu esok. Melalui sidang isbat atau penetapan yang dilakukan Kementerian Agama dan dihadiri wakil berbagai organisasi massa Islam, pemerintah menetapkan Idul Adha 10 Zulhijah 1431 H jatuh pada 17 November 2010.

Continue reading

New Modem

For a long time, i want to have a modem. But for many reason, i didn’t buy it.Until today i buy a modem, Huawei E1550. I choose Simpati as my internet provider because Simpati (Telkomsel) is the one and only provider which have HSDPA network around my house. 😀

When i first plug it on my macbook pro, Mac OS X can not detect it. I think there was a problem with the modem. So i try plug my modem to other computer(Windows XP), it can be detected and work normally. So i try googling it. I found this. The post explain that i should download Dashboard for Mac OS X 10.6 / Mobile Partner(Modem Management Software) from huawei device site. Continue reading

Error on Java Update Mac OS X Snow Leopard October 2010

I just updated Java on my macbook pro (running on Mac OS X Snow Leopard (10.6) ), update process is run normaly. And the update has installed successfuly. But, open office 3.2.1 on my macbook pro cann’t detect Java Runtime Environment (JRE) after this update process. It was make some features has been disabled.

JRE Not Found

JRE Not Found

Then i search on google. I’ve found a bug report in open office website. It also provided reference how to solve this problem. Continue reading

Sub Query in CodeIgniter

Few month ago, i posted about sub query in codeigniter here. And today i’ve found another way. It using active record class in codeigniter. For example:

$this->db->select('(SELECT SUM(payments.amount) FROM payments WHERE payments.invoice_id=4') AS amount_paid', FALSE);
$query = $this->db->get('mytable');

Just put ‘FALSE’ to second parameter in select() function. $this->db->select() accepts an optional second parameter. If you set it to FALSE, CodeIgniter will not try to protect your field or table names with backticks. This is useful if you need a compound select statement.

So simple. Isn’t it?:D

$this->load->view()

When you are using codeigniter, you will use function $this->load->view to load your ‘view’. In codeigniter user guide, a view is described as simply a web page, or a page fragment, like a header, footer, sidebar, etc. In fact, views can flexibly be embedded within other views (within other views, etc., etc.) if you need this type of hierarchy.

In my last project, some fragment on view is loaded in every page. They are header, footer and sidebar. And the content is dynamic. I don’t want to load views for every page. So i write a function in a library (or you can also extends the controller) to handle loading views for every page.
Continue reading