發表文章

Unable to recompile VirtualBox kernel module

當 '/etc/init.d/vboxdrv setup' 出現 Stopping VirtualBox kernel modules [ OK ] Uninstalling old VirtualBox DKMS kernel modules [ OK ] Trying to register the VirtualBox kernel modules using DKMS Error! Your kernel source for kernel 2.6.33.3-85.fc13.i686 cannot be found at /lib/modules/2.6.33.3-85.fc13.i686/build or /lib/modules/2.6.33.3-85.fc13.i686/source. [FAILED] (Failed, trying without DKMS) Recompiling VirtualBox kernel modules [FAILED] (Look at /var/log/vbox-install.log to find out what went wrong) 確定有安裝 DKMS ... 還是無法執行 vboxdrv setup 嘗試安裝下面軟體,終於可以了... @@ 但是不是要全部安裝,我不確定。我是做了 1 & 2。 1 .      yum install gcc     yum groupinstall 'Development Tools' 2 .     yum install kernel-PAE-devel     reboot 3 .     yum update kernel     yum ins...

關閉SELinux

關閉SELinux vi /etc/sysconfig/selinux 將  SELINUX=enforcing 改成  SELINUX=disable # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: #     enforcing - SELinux security policy is enforced. #     permissive - SELinux prints warnings instead of enforcing. #     disabled - No SELinux policy is loaded. ###SELINUX=enforcing SELINUX=disabled # SELINUXTYPE= can take one of these two values: #     targeted - Targeted processes are protected, #     mls - Multi Level Security protection. SELINUXTYPE=targeted 

寫給大家的 Git 教學

寫給大家的 Git 教學 View more presentations from littlebtc

調整 VirtualBox 虛擬硬碟容量 (.vdi)

VBoxManage modifyhd /home/shyuan/.VirtualBox/HardDisks/NewHardDisk1.vdi  --resize 50000 其中引號處是要調整容量的虛擬硬碟印象檔,後面的數字 50000 是想要的容量 ( 單位為 MB ) 調整完後,可以看到 vdi 的空間變大了。 但還需要進入 OS 後,將 partition 作修改。

Jobs' apple!

圖片

Nano-X API

Nano-X API  它沿用了 X Window 系統上的 Xlib API,但函數命名都以 Gr 而不是 X 開頭。 Nano-X API 是基于客戶/伺服器體系結構的。 它並沒有提供像 Microwindows API 那樣的視窗,標題欄和視窗移動的功能。 但可以由其他一些視窗部件集,如 flnx 和 tinywidget 等來完成, 這意味著應用程式的編程者往往並不是直接操作 Nano-X API,而是在和這些視窗部件集直接打交道。  常見的 Nano-X API 可以按照功能進行如下的劃分。  -  客戶/伺服器  模式    GrOpen                    建立與 nano-X 伺服器的連接    GrClose                   關閉與 nano-X 伺服器的連接  -  事件    GrSelectEvents            視窗中的事件過濾(遮罩掉對未選擇事件的回應)    GrGetNextEvent            獲取事件佇列中下一個事件,並從事件佇列清除    GrCheckNextEvent          檢查事件佇列中下一個事件    GrPeekEvent               查看事件佇列中下一個事件,並不從事件佇列清除  -  窗口創建和銷毀    GrNewWindow               創建普通窗口...

RGB 配色表

顏色 英文名稱 RGB 16色   Snow 255 250 250 #FFFAFA   GhostWhite 248 248 255 #F8F8FF   WhiteSmoke 245 245 245 #F5F5F5   Gainsboro 220 220 220 #DCDCDC   FloralWhite 255 250 240 #FFFAF0   OldLace 253 245 230 #FDF5E6   Linen 250 240 230 #FAF0E6   AntiqueWhite 250 235 215 #FAEBD7   PapayaWhip 255 239 213 #FFEFD5   BlanchedAlmond 255 235 205 #FFEBCD   Bisque 255 228 196 #FFE4C4   PeachPuff 255 218 185 #FFDAB9   NavajoWhite 255 222 173 #FFDEAD   Moccasin 255 228 181 #FFE4B5   Cornsilk 255 248 220 #FFF8DC   Ivory 255 255 240 #FFFFF0   LemonChiffon 255 250 205 #FFFACD   Seashell 255 245 238 ...