Total Tayangan Halaman

Selasa, 29 Desember 2009

Virus yang menyebalkan

Berdasarkan pengalaman, virus yang paling menyebalkan sebagai yang dipasrahi jaringan dan sistem informasi adalah Conficker. Mengapa? Karena:
1. virus ini mematikan fungsi sharing, apalagi kalo 1 ruang hanya ada 1 printer dengan beberapa komputer
2. virus ini dapat memenuhi jaringan, sehingga router bisa down, trus restart deh... Jumlah komplain meningkat, "pak, kok internetnya putus nyambung", itu yang sering terdengar, awalnya sih dikira routernya rusak, ternyata... conficker biang keroknya

Apa yang terjadi selanjutnya?
1. Sistem Informasi dan Internet putus-nyambung
2. Koneksi jadi super super lemot

Sehingga terjadi banyak komplain, mulai dari mahasiswa, staf sampai dosen. Penghitungan gaji dan vakasi (staf maupun dosen) pun jadi kacau balau, dst, dst....

Jadi, bagaimana mungkin pembuat virus tersebut bisa membanggakan dirinya, dosa apa yang bisa dibanggakan. Mengutip jawaban dari pembuat Ansav (salah satu Anti Virus buatan anak negeri) ketika ditanya:
T: Apakah anda bisa membuat virus?
J: Pertanyaan aneh, dan hanya jawaban "ya" yang bisa saya berikan dengan catatan: saya bisa membuat virus, worm dan berbagai macam malware, tetapi saya tidak bisa membuat Tuhan selalu bisa mema'afkan perbuatan saya.

So, bagaimana solusinya:
1. download "CMC-Conficker.C Removal"
2. download "KKiller_v3.4.1"
3. download "WindowsXP-KB958644-x86-ENU"
4. matikan/disable jaringan
5. jalankan ketika file yang telah didownload tadi
6. restart komputer
7. install antivirus lokal dan antivirus manca
8. aktifkan/enable jaringan
alternatif:
Tidak menggunakan Win**** lagi, hidup akan lebih damai.... Buktinya sekarang server linux semua, komputer di BPTI linux/mac dan beberapa komputer di administrasi juga linux, aktivitas virus berkurang, hanya dosen saja yang sering ribut soal virus karena tidak mau menggunakan Linux/mac

Selasa, 17 November 2009

Variabel dalam Mysql (Studi Kasus: Pemberian Rangking)

Ternyata di mysql kita bisa menggunakan variabel yang bisa digunakan untuk membantu menyelesaikan masalah. Idenya, pemberian rangking dilakukan lewat mysql, tidak lewat kode program. Jadi, eksekusinya akan lebih cepat.

Variabel di dalam mysql diawali dengan @ untuk variabel user (per sesi) dan @@ untuk variabel global. Urutan eksekusinya juga sesuai dengan letaknya, mulai dari kiri ke kanan.

Jumat, 13 November 2009

Tips Ubuntu


Menjadi root:
#su

Mengganti password root:
setelah selesai instalasi
#sudo passwd
--> masukkan password user
--> masukkan password root
--> ulangi password root

Senin, 09 November 2009

Setting Cisco

Rule:
1. memiliki 1 server dengan ip publik (202.x.x.3) tetapi diletakkan di belakang core router
2. lokal dapat mengakses internet
3. internet hanya dapat mengakses 202.x.x.3 port 21, 22, 80
4. lokal dapat mengakses jaringankhusus

Rabu, 28 Oktober 2009

Penelusuran gejala memanfaatkan linear list (versi 1)

Binary Search Tree

ilustrasi penyisipan/insert data ke pohon

ASCII, EBCDIC dan paritas

EBCDIC
function baris = FIND_BARIS(diketahui, dicari)
%FIND_BARIS
%baris = FIND_BARIS(diketahui, dicari)
% fungsi ini akan :) mencari posisi baris dari data yang bersesuaian antara diketahui dan dicari
% :) mengembalikan informasi baris data yang dicari dalam matriks diketahui
% syarat :) jumlah kolom matriks_diketahui == jumlah kolom matriks_dicari
% :) jumlah baris matriks_dicari == 1
%
%Basit Adhi Prabowo - UAD Jogjakarta - 27052004

%misal :
%diketahui : - -
% | 0 1 1 |
% | 1 0 1 |
% | 1 0 1 |
% - -
%jika dicari data [1 0 1]
%maka hasilnya -> [2 3], karena [1 0 1] berada pada baris 2 dan 3
[bket, kket] = size(diketahui);
[bcr, kcr] = size(dicari);

baris = 0;
nbaris = 0;

if bcr == 1 & kket == kcr
for i=1:bket
if diketahui(i,:) == dicari(1,:)
nbaris = nbaris + 1;
baris(nbaris) = i;
end
end
else
error('Jumlah kolom matriks_diketahui == matriks_dicari atau baris matriks_dicari == 1')
end
if baris == 0
disp('0 berarti >> tidak ada data yang cocok')
end

Berbagai macam pengkodean sinyal

Program ini saya buat ketika sedang mengambil matakuliah Komunikasi Data.

Fungsi Umum
function GAMBARBALOK(sinyal, jumlahbarisgambar, jumlahkolomgambar, posisigambar, judul, pertambahanx)
%GAMBARBALOK
%GAMBARBALOK(sinyal, jumlahbarisgambar, jumlahkolomgambar, posisigambar, judul, pertambahanx)
% sinyal sebagai sumbu y
% pertambahanx sebagai interval pada sumbu x
% fungsi ini akan :) menampilkan diagram balok dari sinyal
% :) tidak mengembalikan nilai
%
%Basit Adhi Prabowo - UAD Jogjakarta - 19052004
%revisi 1 - 20052004 - Basit Adhi Prabowo
%revisi 2 - 21052004 - Basit Adhi Prabowo
%revisi 3 - 24052004 - Basit Adhi Prabowo

[baris, kolom] = size(sinyal); %mengetahui berapa jumlah kolom dan baris dari input
min = sinyal(1,1); %kondisi awal sinyal minimal adalah sinyal pertama
max = sinyal(1,1); %kondisi awal sinyal maksimal adalah sinyal pertama

% Kedua versi ini panjang karena dibuat untuk mengantisipasi sinyal berupa matriks 2 dimensi

% VERSI I
% Versi ini lebih pendek dari versi II karena untuk setiap sinyal memiliki dua koordinat x, yaitu
% x dan x+1, misal : [0 1 1 1 0]
% pertambahan sumbu x pada versi ini tetap, yaitu 1
% sumbu x 0 1 1 2 2 3 3 4 4 5
% sumbu y 0 0 1 1 1 1 1 1 0 0

% penentuan sumbu x
% kedua = 0;
% for i=1:baris,
% for j=1:kolom,
% pertama = kedua + 1;
% kedua = pertama + 1;
% x(pertama) = (kedua / 2) - 1;
% x(kedua) = kedua / 2;
% y(pertama) = sinyal(i,j);
% y(kedua) = y(pertama);
% if sinyal(i,j) < min %pencarian nilai minimal
% min = sinyal(i,j);
% else if sinyal(i,j) > max %pencarian nilai maksimal
% max = sinyal(i,j);
% end
% end
% end
% end

Senin, 26 Oktober 2009

Pembuatan Compiler dengan Metode Recursive Descent Parser

Pendahuluan
Manusia dapat melakukan interaksi secara efektif dengan menggunakan media bahasa. Bahasa memungkinkan penyampaian gagasan dan pemikiran. Bahasa pemrograman adalah bahasa yang dibuat agar manusia dapat melakukan komunikasi dengan mesin. Bahasa pemrograman menjembatani antara pemikiran manusia yang sering tidak terstruktur dengan mesin yang memerlukan kepastian untuk melakukan eksekusi. Bahasa pemrograman harus memiliki konstruksi yang dapat merefleksikan gagasan dan independen dari komputer yang dipergunakan. Bahasa pemrograman seperti ini sering disebut dengan bahasa tingkat tinggi. Bahasa tingkat tinggi lebih mudah untuk dipelajari karena bahasa yang digunakan lebih dekat dengan bahasa manusia dan tidak membutuhkan latar belakang mengenai perangkat keras.

Selasa, 13 Oktober 2009

Muslim World Population

Nearly 1 in 4 people worldwide is Muslim, report says (CNN) -- Nearly one in four people worldwide is Muslim -- and they are not necessarily where you might think, according to an extensive new study that aims to map the global Muslim population. Nearly two out of three of
the world's Muslims are in Asia, stretching from Turkey to Indonesia.
India, a majority-Hindu country, has more Muslims than any country except for Indonesia
and Pakistan, and more than twice as many as Egypt.

China has more Muslims than Syria.Germany has more Muslims than Lebanon.And Russia
has more Muslims than Jordan and Libya put together.Nearly two out of three of the world's
Muslims are in Asia, stretching from Turkey to Indonesia.The Middle East and north Africa, which together are home to about one in five of the world's Muslims, trail a very distant second.
There are about 1.57 billion Muslims in the world, according to the report, "Mapping the Global Muslim Population," by the Pew Forum on Religion & Public Life. That represents about 23 percent of the total global population of 6.8 billion.

There are about 2.25 billion Christians, based on projections from the 2005 World Religions Database.

Brian Grim, the senior researcher on the Pew Forum project, was slightly surprised at the number of Muslims in the world, he told CNN. "Overall, the number is higher than I expected," he said, noting that earlier estimates of the global Muslim population have ranged from 1 billion to 1.8 billion.
The report can -- and should -- have implications for United States policy, said Reza Aslan, the
best-selling Iranian-American author of "No God but God."

Fact Box
Report: Top 10 Muslim countries, by population
1. Indonesia: 202,867,000 (country is 88.2 percent Muslim)
2. Pakistan: 174,082,000 (country is 96.3 percent Muslim)
3. India: 160,945,000 (country is 13.4 percent Muslim)
4. Bangaldesh: 145,312,000 (country is 89.6 percent Muslim)
5. Egypt: 78,513,000 (country is 94.6 percent Muslim)
6. Nigeria: 78,056,000 (country is 50.4 percent Muslim)
7. Iran: 73,777,000 (country is 99.4 percent Muslim)
8. Turkey: 73,619,000 (country is about 98 percent Muslim)
9. Algeria: 34,199,000 (country is 98 percent Muslim)
10. Morocco: 31,993,000 (country is about 99 percent Muslim)
Source: "Mapping the Global Muslim Population," The Pew Forum on Religion & Public Life.

"Increasingly, the people of the Middle East are making up a smaller and smaller percentage of the worldwide Muslim community," he told CNN by phone. "When it comes to issues of outreach to the Muslim world, these numbers will indicate that outreach cannot be focused so narrowly on the Middle East," he said.
"If the goal is to create better understanding between the United States and the Muslim world, our focus should be on south and southeast Asia, not the Middle East," he said.
He spoke to CNN before the report was published and without having seen its contents, but was familiar with the general trends the report identified. The team at the Pew Forum spent nearly
three years analyzing "the best available data" from 232 countries and territories, Grim said.
Their aim was to get the most comprehensive snapshot ever assembled of the world's Muslim population at a given moment in time.
So they took the data they gathered from national censuses and surveys, and projected it forward based on what they knew about population growth in each country.
They describe the resulting report as "the largest project of its kind to date." It's full of details that even the researchers found surprising. "There are these countries that we don't think of as Muslim at all, and yet they have very sizable numbers of Muslims," said Alan Cooperman, the associate director of research for the Pew Forum, naming India, Russia and China.
One in five of the world's Muslims lives in a country where Muslims are a minority.
And while most people think of the Muslim population of Europe is being composed of
immigrants, that's only true in western Europe, Cooperman said. "In the rest of Europe -- Russia, Albania, Kosovo, those places -- Muslims are an indigenous population," he said. "More than half of the Muslims in Europe are indigenous." The researchers also were surprised to
find the Muslim population of sub-Saharan Africa to be as low as they concluded, Cooperman said. It has only about 240 million Muslims -- about 15 percent of all the world's Muslims.
Islam is thought to be growing fast in the region, with countries such as Nigeria, which
has large populations of both Christians and Muslims, seeing violence between the two groups.
The Pew researchers concluded that Nigeria is just over half Muslim, making it the sixth most populous Muslim country in the world.
Roughly nine out of 10 Muslims worldwide are Sunni, and about one in 10 is Shiite, they estimated. They warned they were less confident of those numbers than of the general population figures because sectarian data is harder to come by.
"Only one or two censuses in the world ... have ever asked the sectarian question," said Grim.
"Among Muslims it's a very sensitive question. If asked, large numbers will say I am just a Muslim -- not that they don't know, but it is a sensitive question in many places," he said.
One in three of the world's Shiite Muslims lives in Iran, which is one of only four countries with a Shiite majority, he said. The others are Iraq, Azerbaijan, and Bahrain. Huge as the project of mapping the world's Muslim population is, it is only the first step in a Pew Forum undertaking.
Next year, the think tank intends to release a report projecting Muslim population growth into the future, and then the researchers intend to do the whole thing over again with Christians,
followed by other faith groups. "We don't care only about Muslims," Grim said.
They're also digging into what people believe and practice, since the current analysis doesn't analyze that. "This is no way reflects the religiosity of people, only their self-identification ,"
Grim said. "We're trying to get the overall picture of religion in the world."

Sabtu, 05 September 2009

Chip Otomatisasi (Bagian 3)



Chip Otomatisasi (Bagian 2)

Chip Otomatisasi (Bagian 1)

Dulu waktu semester 5 (sekitar bulan november 2004), aku pernah iseng membuat enkoder dengan cara yang lain yang telah diajarkan oleh dosen, ya.. karena waktu itu baru bersemangat dan kebetulan sekalian mencoba sebuah software yang ada di Linux, namanya KLOgic, bagus sih, sayangnya posisi input dan outputnya sudah pasti, maksudnya inputnya selalu di kiri dan outputnya selalu di kanan.

Waktu itu diajarkan untuk membuat enkoder dengan 4 output (2 input) dibutuhkan 8 kaki AND (4 buah AND berkaki 2). Terus aku mencoba merancang 8 output (3 input) dibutuhkan 24 kaki dan 16 output (4 input) dibutuhkan 64 kaki (bener gak ya??). Terus iseng membuat rancangan lain dan menemukan sebuah pola dan dapat dibuat sebuah chip, 1 chip membutuhkan 2 buah AND berkaki 2 (= 4 kaki / chip). Tetapi sialnya, untuk enkoder 4 output butuh 3 chip (= 12 kaki). "Waduh kok malah boros" pikirku saat itu. Terus dicoba untuk enkoder 8 output membutuhkan 7 chip (= 28 kaki). "Lha kok semakin tipis perbedaannya nih??". Akhirnya dicoba membuat enkoder 16 output, ternyata hanya membutuhkan 15 chip (= 60 kaki). Lho???

Jumat, 07 Agustus 2009

Barcode CODE 128 dengan VB .NET

Wah, aku gak mudeng dengan PHP, tapi pingin barcode CODE 128, gimana nih?
Tidak usah khawatir, karena kebetulan juga sudah tak buat. Silakan dicermati
Imports System.Drawing.Imaging
Imports System.IO


Public Class bar_value
Public value As Integer
Public bar As String


Barcode CODE 128 dengan PHP

Mengapa menggunakan CODE 128, bukan yang lain?
Karena dapat digunakan untuk kombinasi antara alfabet dan numerik, kode ini juga dapat digunakan untuk 128 karakter ASCII, panjangnya pun bisa suka-suka (ini dia yang saya cari).

Apa dan siapa CODE 128?
Code 128 terdiri atas 6 seksi, yaitu

Kamis, 06 Agustus 2009

Ajax feat PHP untuk menangani GET, POST dan SESSION

Apa Sih Ajax?
Ajax secara sederhana didefinisikan sebagai penggunaan Javascript untuk melakukan request ke server dan melakukan update bagian-bagian tertentu sehingga tidak perlu melakukan load satu halaman penuh. Pengertian Ajax awalnya adalah 'Asynchronous Java and XML', tetapi pada prakteknya kadang tidak memakai XML, tetapi menampilkan halaman yang diinginkan apa adanya.

Kompresi Website

Bagaimana sih cara menghemat Bandwidth server kita?
Salah satu caranya adalah melakukan kompresi terhadap halaman kita. Caranya sangat simpel, tinggal menyisipkan 3 baris program di program kita, tetapi hanya berlaku di php, yaitu: