Airport Extreme and Fedora Core 6

Ever since Fedora Core 6 was installed on my PowerBook, I can only access the Internet via ethernet port. It is a not a big problem at home, however if I want to access my university’s network or the Internet from there, the Wireless access is the only way. There is almost no where on campus or in the lab that I could hook the ethernet cable in. So everytime I want to access the network there, I have to boot into Mac OS X. ...

March 9, 2007 · 2 min · 320 words · kenno

Enable Right-click & Middle-click with Fedora Core 6

The title should have been “How to enable right-click and middle click of PowerBook G4’s one-button-mouse in Fedora Core 6”. Since I’m not very keen in selecting a good title, I hope the one I wrote above made sense. My Apple PowerBook G4 comes with just one button mouse. It’s not a problem when using it in OS X because I can simply emulate the right click by holding “fn” key while clicking. Recently, I just installed Fedora Core 6 as dual boot on this laptop; and one button mouse really gave me a big headache. I’ve beent trying to look for a good solution to fix this, but I didn’t get much luck. There were a few links on some blogs reporting that they had successfully solving this mouse problem by using something called “synaptic” driver, but that didn’t work for me either. The temporary solution was to use the USB mouse. ...

March 3, 2007 · 2 min · 238 words · kenno

មេរៀនទី២៖ បីជំហានដើម្បីបង្កើតយ៉ាវា

នៅក្នុងមេរៀនមុន យើងបានឃើញឧទាហរណ៍កម្មវិធីតូចមួយ សរសេរជាមួយយ៉ាវា។ យើងបានបញ្ចប់មេរៀន ដោយចោលសំនួរថា “ហេតុអ្វីក៏យើងជ្រើសបំបែកកម្មវិធីដ៏តូចនោះជាពីរឯកសារ?” តាមពិតទៅ វាពុំមានជាអ្វីសំខាន់ ណាស់ណាទេ វាគ្រាន់តែជាការគិតថា បើធ្វើយ៉ាងនោះ វាមានផ្តល់ភាពងាយស្រូល ក្នុងការពិនិត្យ​កូតដើម។ យ៉ាវាកូតដើម (source code) តែងតែមាន ចុងកន្ទុយ (extension) .java ហើយឈ្មោះរបស់ឯកសារនោះ គួរចាប់ផ្តើមដោយអក្សរធំ ដោយ convention។ ចំនុចសំខាន់មួយទៀត​ដែលគួរគាត់ចំណាំគឺ ឈ្មោះរបស់ឯកសារត្រួវតែដូចនឹងឈ្មោះរបស់ class ។ បើសិនឃ្លាចុងក្រោយនេះ​មិនមានន័យចំពោះអ្នក សូមកុំទាន់បារម្ភ អ្វីៗនឹងបានច្បាស់លាស់ក្នុងពេលអនាគត។ ជាសង្ខេប ដើម្បីបង្កើតកម្មវីធិយ៉ាវា យើងត្រូវធ្វើតាម ៣ ដំណាក់កាល៖ ១) សរសេរកូតដើម (source code) ២) កំផាយកូតដើម ៣) បញ្ជាកូដដែលបានកំផាយរួចហើយ (Execute or run the compiled program)

February 19, 2007 · 1 min · 50 words · kenno

មេរៀនទី១៖ យ៉ាវា ភាសាកុំព្យូទ័រសំរាប់សរសេរកម្មវីធី

នៅក្នុងមេរៀនដំបូងនេះ យើងសន្មតថាលោកអ្នកបានបញ្ចូលយ៉ាវាកំផាយលើរទៅក្នុងមាស៊ីនកុំព្យូទ័រ រួចហើយ។ ដូច្នេះ យើងអាចចាប់ផ្តើមសរសេរកម្មវិធីដំបូងបំផុត ដែលជាកម្មវីធីដ៏ល្បីល្បាញជាងគេគឺ “Hello World”។ public class MyApplication { public static void main(String[ ] args) { HelloWorldProgram p = new HelloWorldProgram(); p.start(); } } សរសេរកូតដូចខាងលើ ហើយផ្ទុកវាជាឯកសារឈ្មោះ MyApplication.java បន្ទាប់មក សូមសរសេរកូចដូចខាងក្រោមនេះ ហើយផ្ទុកវាជាឯកសារមួយទៀតឈ្មោះ HelloWorldProgram.java public class HelloWorldProgram { public void start() { System.out.println("Hello World"); } } យើងកំផាយ (compile) ឯកសារទាំងពីរនោះដោយវាយពាក្យបញ្ជា៖ $ javac HelloWorldProgram.java $ javac MyApplication.java យើងអាចរត់ (run) កម្មវីធីដោយ៖ $ java MyApplication បើសិនជាអ្នកមានចម្ងល់ថា​ ហេតុអ្វីក៏យើងចាំបាច់បំបែកកម្មវិធីដ៏តូចនេះជាពីរចំនែក? ...

February 17, 2007 · 1 min · 70 words · kenno

Compiling C# Souce Code as a Dynamic Link Library

The following is the command to compile dllsource.cs as a dynamic link library instead of the executable file: $ mcs /target:library dllsource.cs We can also specify a different name of the binary with the /out option. For example: $ mcs /target:library /out:mylibrary.dll dllsource.cs Finally, if we want to compile a souce which depends on a dll file, we need to use the /reference option. $ mcs example.cs /reference:mylibrary.dll Note: mcs is the mono compiler. If you use Microsoft C# compiler, just replace mcs with csc.

February 16, 2007 · 1 min · 85 words · kenno