Shutdown / Restart Lebih cepat

June 13, 2008

Untuk melakukan Restart atau Shutdown windows dengan cepat
bisa dilakukan dari dos prompt dengan mengetikkan perintah

c:>\shutdown -s -f -t 1

Keterangan:

  • shutdown : perintah shutdown
  • -s : opsi untuk (shutdown)
  • -f : opsi untuk (force) menutup paksa semua aplikasi
  • -t : waktu delay proses dalam detik (time)
  • 1 : jumlah detik
perintah tersebut secara lengkap sbb:
Usage: shutdown [-i | -l | -s | -r | -a] [-f]
[-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]  

No args Display this message (same as -?)
-i   Display GUI interface, must be the first option
-l   Log off (cannot be used with -m option)
-s   Shutdown the computer
-r   Shutdown and restart the computer
-a   Abort a system shutdown
-m   \\computername Remote computer to shutdown/restart/abort
-t   xx Set timeout for shutdown to xx seconds
-c   “comment” Shutdown comment (maximum of 127 characters)
-f   Forces running applications to close without warning
-d   [u][p]:xx:yy The reason code for the shutdown
u    is the user code
p    is a planned shutdown code
xx   is the major reason code (positive integer less than 256)
yy   is the minor reason code (positive integer less than 65536)

Download program Restart dan Shutdown.

Membuat Bootable USB Flashdisk

June 13, 2008

Untuk membuat USB Flash Disk (UFD) biar bootable, sebenarnya tidak susah.

Alat yang diperlukan:

  • Disket blank
  • USB Flash Disk (UFD)
  • File DOS untuk di transfer ke disket (Win98.zip)
  • File untuk mem-format UFD (HPUSBFW.zip)

Langkah-langkah:

  1. Buat dulu disket boot (pake Win98.zip)
  2. Format UFD dg system FAT (pake HPUSBFW.zip)
  3. Create DOS startup disk dan arahkan boot file ke disket
  4. Format UFD, setelah selesai copy semmua file di disket ke UFD (jangan di overwrite)
  5. Coba boot UFD.

Membuat floppy boot disk

Memformat UFD

nb: jangan lupa set biosnya untuk boot pertama ke UFD


Mencari bilangan prima dengan php

May 12, 2008

Catatan ini berawal ketika ada tugas dari dosen yang membimbing mata kuliah pemrograman php, untuk mencari bilangan prima.

Soal:
Tampilkan bilangan prima dari nilai awal (1) s/d nilai akhir (100)

jawaban:

<?php

for($i = 1; $i <= 100; $i++) {
for($k = 1; $k <= $i; $k++) {
if(($i % $k) == 0) $l++;
}
if($l == 2) $j .= $i .” “;
$l = 0;
}

if($j == “”) echo “Tidak memiliki bilangan prima”;
else echo “Bilangan prima dari 1 sampai 100 adalah “. $j;

?>

Sedangakan untuk mencari bilangan prima diatas kita bisa mengunakan
Algoritma Bilangan Prima sbb:

procedure BilPrima(num: Integer);
var i, max: integer;
begin
if num=0 then exit;
max := 2000;
for i:= 2 to max do
begin
if ((i=2) or (i=3) or (i=5) or (i=7)) then
begin
Tambahkan ke penyimpanan
num := num-1;
if num=0 then
exit;
end;
if ((i mod 2<>0) and (i mod 3 <> 0) and(i mod 5<>0) and (i mod 7<>0)) then
begin
Tambahkan ke peyimpanan
num := num-1;
if num=0 then
exit;
end;
end;
end;


Mempercepat browsing network

May 12, 2008

Kadang jika kita membuka “my network place”kita harus menunggu lama sampai isi network ditampilkan, kita bisa mengatasinya dengan merubah beberapa setting di registry.

Buka regedit kemudian tambahkan baris berikut:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{2227A280-3AEA-1069-A2DE-08002B30309D}]

@=”Printers”

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

@=”Scheduled Tasks”

Kemudian restart komputer dan rasakan bedanya.


Plugin Untuk Web Browser Safari 3

March 19, 2008

Beberapa Plugin Untuk Web Browser:

For a richer browsing experience, you may want to install the following plug-ins:

QuickTime
Gives you access to Apple’s technology for playing all kinds of digital media. Get the plug-in

Adobe Flash Player
Allows Safari to display the rich interactive content on many websites. Get the plug-in

Adobe Reader
Lets you view and print Adobe PDF files from the websites you browse. Get the plug-in

Java
Displays Java applets you use to play games, chat online, and more. Get the plug-in

Real Player
Lets you play videos from thousands of websites and create video playlists. Get the plug-in

Windows Media Player
Allows you to play music, video, and photos and sync them to portable devices. Get the plug-in

You should seek additional support information from documents included with third party software, from web-based help at the software manufacturer’s website, or by contacting the third-party’s support personnel when applicable.
Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance, or use of information or products found at third-party websites. Apple provides this only as a convenience to our users. Apple has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are dangers inherent in the use of any information or products found on the Internet, and Apple assumes no responsibility in this regard. Please understand that a third-party site is independent from Apple and that Apple has no control over the content on that website.