Sunday, February 20, 2011

Menjalankan Age of Empire 1 di Windows7


Age of Empire (AOE) 1 bisa saja dijalankan di Windows7, tetapi tidak akan bisa memainkan multiplayer game. AOE yang berjalan di windows 7 tidak bisa menemukan server di jaringan. Permasalahan ini adalah issue security di Windows7, tapi meskipun firewall sudah dibuka tetap saja masalah ini tidak terpecahkan. Sebenarnya tidak sulit untuk memecahkan masalah ini. Caranya yaitu masuk lebih jauh ke window allowed a program dari windows firewall dan mengijinkan program AOE berkomunikasi lewat windows firewall.

Gb. 1. Firewall Off, Problem belum Solved


Gb. 2. Masuk Window Allow a Program Through Firewall


Gb. 3. Beri Tanda Centang pada AOE


Sekarang aku bisa main AOE di laptopku :D

update 29-6-2012:

Jangan lupa, jika kamu bermain online dengan Gameranger, jika ada masalah dengan koneksi (fail to join) jalankan software itu di compatibility mode Windows XP SP3 & run as administrator untuk memastikan game berjalan dengan lancar.




Wednesday, January 26, 2011

Why 50 Ohms?

The "50 ohm question" comes up from time to time. Most microwave hardware is specified to run in a fifty ohm system (OK, some stuff is 75 ohms, and we'll talk about that as well.) Why was this standard chosen?
The standardization of fifty ohm impedance goes back to developing coax cables for kilowatt radio transmitters in the 1930s. A good explanation for the choice of fifty ohms is given in Microwave Tubes, by A. S. Gilmour, Jr. The quick answer is that 50 ohms is a great compromise between power handling and low loss, for air-dielectric coax. Let's look at the math that proves this, just for kicks.
Here is another thought that recently came in from Mike:
Another thing to consider for reason for why CATV systems use 75 ohm coax. A 2 turn to 1 turn balun changes the impedance of 300 ohm twin lead from an antenna to 75 ohms very nicely and with a relatively broad band.

Cable loss versus impedance

For RF signals, resistance per unit length of coax cables is determined by circumferential area of the conductor surface due to skin depth effect, not cross-sectional area. Here's the solution for loss/length for coax cables of arbitrary dielectric constant and metal properties:


The details of this equation are derived on this page.
You'd think a fat conductor would always give the lowest insertion loss because it has the most circumferential area (the 1/d component of the above equation decreases loss for increasing d), but you'd be wrong! The characteristic impedance of the cable (Z0) throws that log(D/d) function into the denominator, it increases for increasing d.
In order to plot loss/length versus characteristic impedance, let's review the coax impedance calculation. The impedance of coax for a given outer diameter and dielectric is solely a function of the diameter of the inner conductor and the dielectric constant of the filler material:


Now we can plot loss/length versus characteristic impedance. It turns out that insertion loss has a minimum around 77 ohms, for any cable with Er=1 (air dielectric). In our example, we chose 10 mm inner diameter of the outer conductor, and calculated loss at 10 GHz.

Peak power handling

The peak power handling for air coax is limited by voltage breakdown (as opposed to heating effects which limit average power handling). You'd think that you'd want maximum separation between the opposing conductors (inner wire and outer sheaf) to avoid arcing, so you'd make the inner conductor as thin as possible, but you'd be wrong again! The maximum voltage field in a coaxial cable if quite different than between parallel-plane conductors. Here's the equation for "field enhancement", which is a measure of how much worse the fields are than in parallel plate:
Beta=(a/r)/[ln(1+a/r)]
Here a is the is the gap between the conductors and r is the radius of the inner conductor. We took this from Gilmour's book. Once again, characteristic impedance has to be considered because power depends on V2/Z0.
The way to calculate maximum power handling is to assume a critical electric field can't be exceeded to avoid breakdown. We'll assume 100,000 volts/meter (actually it can exceed 1,000,000 volts per meter, but the whole topic of voltage breakdown deserves a lot more attention so we'll be conservative here for the time being). Next, calculate the field that would be generated across the gap in the coax cable, without regard to the geometry (assume the center and outer conductors are parallel plates). Then apply the field enhancement equation above (which is a number greater than 1). Then the maximum power is equal to Vcritical^2/(2Z0). Why the "2" in the denominator? That's because Vcritical is a peak value, not an RMS value.


The best peak power handling occurs at Z0=30 ohms. We'll add some prettier equations on this page soon, or go to our page on coax power handling for more information.
The voltage breakdown of air coax is a function of atmospheric pressure (or altitude), temperature, humidity, and even surface roughness. How do you increase the power handing of air coax? that's easy, fill it with a dielectric such as PTFE! Typical "solid" dielectric withstanding voltage is much higher that the breakdown voltage of air, by a factor of 10 or more. Foamed dielectrics used in cables don't provide much of an increase in voltage handling compared to air, but semi-rigid coax (solid PTFE) can handle 10s of kilowatts, the overall voltage limitation is usually the connectors that are attached to the cables.

The 50-Ohm compromise

The arithmetic mean between 30 ohms (best power handling) and 77 ohms (lowest loss) is 53.5, the geometric mean is 48 ohms. Thus the choice of 50 ohms is a compromise between power handling capability and signal loss per unit length, for air dielectric.

Why 75 Ohms?

For cheap commercial cables such as those that bring CATV to your home, 75 ohms is the standard. These cables don't have to carry high power, so the key characteristic that should be considered is low loss. The answer to the "why 75 Ohms?" question seems obvious. We just saw that 77 ohms gives the lowest loss for air dielectric coax, so 75 ohms might be just an engineering round-off. We know of one text book that will tell you that is why RG cables are 75 ohms... but they are wrong!
Here's the problem. Commercial CATV cables are filled with PTFE foam, which has a dielectric constant around 1.43. Guess what? The loss characteristic is a function of the dielectric constant (~SQRT(ER)), while impedance is a different function of dielectric constant (~1/[SQRT(ER)]). The opposing contibutions of Er muddy the waters quite a bit.
It turns out that the minimum loss impedance for ER=1.43 is around 64 ohms, as shown in the plot below (purple trace). For the record, for solid PTFE (ER=2.2, yellow line) the minimum loss occurs near 52 ohms. So it's serendipity that when we use 50 ohm semirigid coax cables with solid PTFE, they give nearly the lowest possible loss for ER=2.2! PTFE was invented by Roy Plunkett in 1938, well after the 50 ohm standard was in place.


So why 75 ohms? Here's our guess. Often the center conductor of cheap cables is made of a steel core, with some copper plating. The lower the impedance, the bigger the diameter of the center core. An impedance 75 ohms probably was a compromise between low loss and cable flexibility.
Sumber: www.microwaves101.com

Monday, December 27, 2010

SSH Without a Password

Beberapa waktu yang lalu, aku terlibat dengan sebuah pekerjaan embedded programming dimana aku melakukan kompilasi program dan menjalankan executable filenya di SBC yang berbasis linux. Hal ini sedikit merepotkan karena setiap kali selesai compile aku harus mengcopy executable file dengan perintah scp yang meminta password setiap kali dieksekusi. Alangkah lebih mudah jika tahap ini bisa dipermudah karena proses kompilasi dan run dilakukan berulang-ulang. Setelah melakukan pencarian di internet, akhirnya aku menemukan cara untuk menghilangkan password ssh. Langkah-langkah agar bisa SSH tanpa password dijelaskan sebagai berikut.

  1. Pada client jalankan perintah untuk generate key berikut:
    $ mkdir -p $HOME/.ssh
    $ chmod 0700 $HOME/.ssh
    $ ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P ''
    Perintah ini menghasilkan dua file, $HOME/.ssh/id_dsa (private key) dan $HOME/.ssh/id_dsa.pub (public key).
  2. Copy $HOME/.ssh/id_dsa.pub ke server.
  3. Pada server jalankan perintah berikut:
    $ cat id_dsa.pub >> $HOME/.ssh/authorized_keys2
    $ chmod 0600 $HOME/.ssh/authorized_keys2
    Bergantung pada versi OpenSSH, kadang-kadang perintah berikut diperlukan:
    $ cat id_dsa.pub >> $HOME/.ssh/authorized_keys
    $ chmod 0600 $HOME/.ssh/authorized_keys
    Sebagai alternatif, buat sebuah link dari authorized_keys2 ke authorized_keys:
    $ cd $HOME/.ssh && ln -s authorized_keys2 authorized_keys
  4. Pada client test hasilnya dengan melakukan SSH ke server:
    $ ssh -i $HOME/.ssh/id_dsa server
  5. (Opsional) tambahkan line berikut pada $HOME/.ssh/config di client:
    Host server
           IdentityFile ~/.ssh/id_dsa
    Hal ini akan mengijinkan akses SSH ke server tanpa perlu menambahkan path ke file id_dsa sebagai sebuah argument setiap kali melakukan.
  6. Karena scp berbasis ssh, maka melakukan scp juga tidak perlu memasukkan password.
Setelah itu, aku bisa menambahkan line untuk copy executable file di bawah syntax kompilasi pada make file, sehingga copy setelah compile berlangsung secara otomatis.

Tuesday, November 16, 2010

Gnome1 Processor

Gnome1 adalah sejenis prosesor 4bit yang sangat sederhana. Karena kesederhanaan arsitekturnya, prosesor ini dipakai untuk memahami proses kerja dari suatu mikrokomputer dengan lebih jelas. Dari sumbernya, prosesor ini ditulis dengan bahasa pemrograman Abel dari Xilinx. Dalam blog ini, prosesor Gnome1 ditulis ulang dengan bahasa VHDL berikut dengan testbench dan code assembly sederhana untuk tester.

Gambar di bawah ini adalah daftar operasi-operasi yang bisa dilakukan oleh Gnome1


link:
gnome1 processor
testbench
assembly code for test(multiply)
RAM

Saturday, November 13, 2010

Mikroelektronika RF Quick Reference Card


Beberapa hari lagi aku akan menghadapi ujian kuliah Mikroelektronika RF. Agak deg-deg-an juga karena ujiannya closed dan aku belum menguasai semua materinya. Untuk mempermudah hafalan yang kesempatannya cuma tinggal beberapa hari lagi ini aku coba menulis ringkasan rumus-rumus pentingnya. Mudah-mudahan berguna untuk menghadapi ujian besok & semoga bermanfaat juga bagi yang membutuhkan. :)


links:
Mikroelektronika RF Quick Reference Card
Konversi Two Port Parameters
Konversi Two Port Parameters(link2)
Komentar member senior IEEE tentang Konversi Two Port Parameters

Download Google Books Preview



Tips ini aku dapatkan dari blog ini. Sebenarnya kamu bisa saja mengambil image dari cache firefox dan convert ke PDF, tetapi penamaan file di cache tidak beraturan sehingga akan merepotkan untuk mengurutkan halamannya. Nah, tips berikut adalah untuk download google book dengan cara yang lebih mudah

Langkah-langkahnya diringkas sebagai berikut:
1. Kamu harus memakai browser Mozilla Firefox.
2. Install Add on Greasemonkey
3. Install Script Google Book Downloader dari sini, klik install maka secara otomatis Greasemonkey akan menginstallnya


Oke sekarang kamu bisa download dari books.google.com. Sekarang aku akan mencobanya.
1. Pertama buka bukunya di books.google.com atau books.google.co.id
2. Di sebelah kanan atas akan muncul ikon bergambar disket
3. Klik kanan ikon itu dan pilih save link as, beri nama yang urut agar mudah untuk membacanya

Sunday, July 18, 2010

Tips Menghitung Diskon


Ketika jalan-jalan, sering kali kita menjumpai sale atau obral barang dengan diskon sekian persen. Kadang-kadang kita merasa sungkan kepada penunggu sale setiapkali harus menanyakan harga barang sesungguhnya setelah diskon, karena tidak dicantumkan di label (susah amat, mau beli barang aja harus pake matematika).

Nah, berikut akan diuraikan tips cara menghitung diskon dengan cepat dan akurat tanpa perlu menggunakan kalkulator maupun merasa sungkan kepada penjaga sale.
1. Harga barang biasanya dibuat susah dengan akhiran bilangan yang sebenarnya tidak penting. Karena itu, langkah pertama adalah membulatkan harga ke nilai terdekat agar perhitungan menjadi mudah. Misal: 129.900,- menjadi 130.000,- dsb.
2. Diskon biasanya kelipatan 5%, gunakan 10% sebagai acuan. 10% dari harga barang adalah sama dengan harga barang dengan dikurangi sebuah nol di angka paling belakang. Misal: 10% dari 130.000,- adalah 13.000,- dsb.
3. Setelah tahu 10% dari harga barang, total dari diskon tinggal mengalikan dari acuan Misal: 30% dari 130.000,- yaitu 13.000*3 = 29.000,- dsb.
4. Lakukan pembulatan-pembulatan seperlunya untuk mempermudah perhitungan. Dalam hal ini, 29.000 dibulatkan menjadi 30.000,-.
5. Langkah selanjutnya adalah mengurangi harga sebekum diskon dengan nilai diskon yang telah dibulatkan. Misal: 130.000,- didiskon 30% jadi 130.000,- dikurangi 30.000,- samadengan 100.000,- dsb. Itulah perkiraan harga setelah mendapat diskon.
6. Kadang-kadang ada diskon gila-gilaan, misal diskon 80%, diskon 70% dll. Nah, untuk diskon yang semacam ini (lebih dari 50%) tak perlu dihitung besarnya diskon. Langsung saja dihitung harga barangnya. Misal: diskon 80% maka harga barang sesungguhnya adalah 100%-80% = 20% dari harga yang tertera di label. Gunakan cara yang sama seperti di atas.
7. Kalau diskon 50% lebih mudah lagi, yaitu harga barang sesungguhnya adalah setengah dari harga yang tertera di label.

Demikian tips untuk menghitung diskon, semoga cukup jelas. Dan jangan lupa dengan sebuah ungkapan ini, "Practice Make Perfect !!". Artinya, sering-seringlah jalan-jalan dan berburu barang diskon :D

Update 31 Juli :
Kemarin waktu jalan-jalan ke supermarket Yogya, saya melihat ada baju yang double diskon.
Apakah double diskon itu? Di display tertulis 20%+10%. Tapi menurut mbaknya, kalau ditotal jatuhnya jadi 28%. Loh kok bisa? 20%+10% jadi 28%?
Setelah termenung beberapa saat saya baru paham. Begini penjelasannya.
Ada dua kali diskon, yaitu 20% dan 10%. Diskon yang 10% bukan dihitung dari harga awal barang, tetapi dihitung dari harga barang setelah diskon 20%. Jadi kalau dituliskan secara matematik, total diskon menjadi 20%+((100%-20%)x10%) = 28%.
Mbak penjaganya sempat bingung juga waktu aku bergumam, "loh kok bisa 20%+10% jadi 28% ?". Untung saja aku ga nanyain rumusnya. Hehehe...