Friday, November 20, 2009

Full Duplex - Half Duplex

Settingan duplex mode ternyata ngefek juga ke transfer rate suatu server. Settingan yang berbeda antara switch dan server bisa mengakibatkan transfer rate jadi rendah.

Seperti minggu kemarin, backup yang biasanya selesai dalam 10 menit, jadi selesai dalam 5jam, bahkan 13 jam huhuhu...
Setelah dicek, ternyata settingan di server berubah jadi half_duplex. Mungkin efek dari upgrade ke mesh network seminggu sebelumnya, akibatnya settingan di switch dan ethernet card yang digunakan berbeda. Komunikasi tetap bisa berjalan, tetapi rate nya lambat.
Solusinya 2-2nya disamakan settingannya. Switch di half-duplex atau server di full-duplex. Dan pilihan yang tentunya kita ambil adalah force link nya ke full_duplex mode semua.
Yang paling penting untuk force ini adalah eksekusi script berikut:

ndd -set /dev/hme instance 1 -- untuk hme1 atau 2 untuk hme2
ndd -set /dev/hme adv_100fdx_cap 1 -- force ke full duplex
ndd -set /dev/hme adv_100hdx_cap 0
ndd -set /dev/hme adv_autoneg_cap 0 -- disable autonegotiate

Dengan eksekusi script di atas, settingan ethernet sudah berubah menjadi full-duplex.
Tetapi perubahan ini hanya terjadi sementara. Agar setiap kali di reboot station tetap menggunakan mode full-duplex, script tersebut harus dijalankan setiap reboot. Cara yang kami lakukan kemarin adalah menyimpan script tsb menjadi /etc/rc2.d/S18forcehme

Script yang dijalankan bisa script di atas atau script di bawah:

ndd -set /dev/hme instance 1
ndd -set /dev/hme adv_100T4_cap 0
ndd -set /dev/hme adv_100fdx_cap 1
ndd -set /dev/hme adv_100hdx_cap 0
ndd -set /dev/hme adv_10fdx_cap 0
ndd -set /dev/hme adv_10hdx_cap 0
ndd -set /dev/hme adv_autoneg_cap 0



Berikut script yang bisa digunakan untuk mengecek status link:

ndd -get /dev/hme link_speed
0 for 10 Mbps
1 for 100 Mbps

ndd -get /dev/hme link_mode
0 for Half-Duplex mode
1 for Full-Duplex mode

Wednesday, November 4, 2009

Otomatis Maximize Excel Window Lewat Macro

Script ini digunakan untuk otomatis membuka sebuah file excel dalam format maximize.

Option Explicit

Private Sub Workbook_Open()
Application.WindowState = xlMaximized
End Sub


step:
copi kan script di atas ke macro workbook yang akan dibuka di bagian This Workbook

dapet dari sini :)

Monday, November 2, 2009

...jogja never ending love...


tugu jogja


jalan Ahmad Yani a.k.a malioboro suatu ketika


malioboro lautan manusia... malioboro lautan motor...

Wednesday, September 23, 2009

PHP date() Function

It formats a local time/ date as follow:


d - The day of the month (from 01 to 31)
D - A textual representation of a day (three letters)
j - The day of the month without leading zeros (1 to 31)
l (lowercase 'L') - A full textual representation of a day
N - The ISO-8601 numeric representation of a day (1 for Monday through 7 for Sunday)
S - The English ordinal suffix for the day of the month (2 characters st, nd, rd or th. Works well with j)
w - A numeric representation of the day (0 for Sunday through 6 for Saturday)
z - The day of the year (from 0 through 365)
W - The ISO-8601 week number of year (weeks starting on Monday)
F - A full textual representation of a month (January through December)
m - A numeric representation of a month (from 01 to 12)
M - A short textual representation of a month (three letters)
n - A numeric representation of a month, without leading zeros (1 to 12)
t - The number of days in the given month
L - Whether it's a leap year (1 if it is a leap year, 0 otherwise)
o - The ISO-8601 year number
Y - A four digit representation of a year
y - A two digit representation of a year
a - Lowercase am or pm
A - Uppercase AM or PM
B - Swatch Internet time (000 to 999)
g - 12-hour format of an hour (1 to 12)
G - 24-hour format of an hour (0 to 23)
h - 12-hour format of an hour (01 to 12)
H - 24-hour format of an hour (00 to 23)
i - Minutes with leading zeros (00 to 59)
s - Seconds, with leading zeros (00 to 59)
e - The timezone identifier (Examples: UTC, Atlantic/Azores)
I (capital i) - Whether the date is in daylights savings time (1 if Daylight Savings Time, 0 otherwise)
O - Difference to Greenwich time (GMT) in hours (Example: +0100)
T - Timezone setting of the PHP machine (Examples: EST, MDT)
Z - Timezone offset in seconds. The offset west of UTC is negative, and the offset east of UTC is positive (-43200 to 43200)
c - The ISO-8601 date (e.g. 2004-02-12T15:19:21+00:00)
r - The RFC 2822 formatted date (e.g. Thu, 21 Dec 2000 16:01:07 +0200)
U - The seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)



for example you can use this function to change a date format:
date("d M Y H:i:s" ,strtotime($the_date))

copied from here

17 lokasi paling fotogenik di Indonesia

  1. Bali
  2. Lombok
  3. Bukit Tinggi
  4. DIY dan Jawa Tengah
  5. Toraja
  6. Sumatera Utara
  7. Jawa Timur
  8. Maluku Utara
  9. Ujung Genteng
  10. Jawa Barat
  11. Belitung
  12. Ujung Kulon
  13. Kebun Raya Bogor
  14. Halimun
  15. Bintan
  16. Sulawesi Utara
  17. Sumba

* dikutip dari majalah FOTO (bulan September klo ga salah)

ada 1 lagi yang belum tersebut: T.E.M.B.A.G.A.P.U.R.A :)

sekedar pengingat klo mo travelling

* klo sering khilaf belanja, persiapkan juga angkutan barang buat balik nya.
kemarin gara² ga ada wadah buat ngangkut oleh² akhirnya setelah sejam an muter² legian dan poppies lane ga nemu karung, trash bag, plastik besar dan semacamnya, akhirnya kita beli 3 kardus minuman mineral (10rb/ 3kardus), rafia masing² 5rb itupun gulungan rafia biasa yang dibagi 3, lakban 15rb. total 35rb. buset dah... padahal harga normal paling ga nyampe 5rb :D

* klo limited budget, dan mo nginap di hotel backpacker, tengok dulu kamarnya. biar murah tapi klo kamar ga nyaman kan ga enak juga to...

* banyak²lah browsing tentang travel dan penginapan di tempat tujuan. makin banyak browsing, makin banyak info harga² murah yang bisa didapat

* untuk mengantisipasi ketidaktersediaan ATM, pastikan kocek cukup sebelum jalan. ada anjungan tunai mama juga ga ngefek klo ga da ATM. ga bisa diambil tu duit

* bawa baju secukupnya daripada cuman ngeberat-beratin bawaan. klo baju abis bisa dicuci di hotel ;) ato beli di kios² mesti banyak yg jual :D

* klo ga bawa kabel data buat kamera, pastikan memori cukup sampai hari terakhir, jangan sampai hasrat ingin narsis tak tersalurkan karena keterbatasan memori kamera :D jangan lupa juga dengan batere nya. pastikan ada batere cadangan

Sunday, September 20, 2009

gado-gado


uluwatu


awan dari atas heli... berasa lebih dekat


salah satu sudut kios di bali


terong belanda di bali. terong belanda ato terong bali...? :D


beruntung bisa candid monyet, tapi dapetnya blur euy... - persembahan