勤&快

          問題其實就是你期望的東西和你體驗的東西之間的差別
          隨筆 - 55, 文章 - 0, 評論 - 68, 引用 - 0
          數據加載中……

          使用文泉驛正黑配置ubuntu9.04字體

          安裝正黑之后,基本所有字體都很好的顯示。
          只是部分字體,如pidgin對話中的字體,ubuntuforums.org的字體,還不是很好看。據說是因為uming是默認san字體。
          可以修改配置文件修改這些字體的顯示:

          解決,就是修改uming的映射關系

          注意:下面是配置文件片段,請勿直接拷貝。

          本文是我方便自己查閱之用,不是正式教程,如需詳細配置文件,請聯系我

          30-cjk-aliases.conf


          <!-- Aliases for Simplified Chinese Windows fonts -->

          <alias>

          <family>SimSun</family>

          <family>NSimSun</family>

          <family>SimSun-18030</family>

          <family>NSimSun-18030</family>

          <family>AR PL UMing</family>

          <family>AR PL ShanHeiSun Uni</family>

          <family>AR PL UMing CN</family>

          <family>宋體</family>

          <family>AR MingtiM GB</family>

          <accept><family>DejaVu Sans</family></accept>

          <accept><family>WenQuanYi Zen Hei</family></accept>

          </alias>


          35-ttf-arphic-uming-aliases.conf


          <alias binding="same">

          <family>AR PL ShanHeiSun Uni</family>

          <prefer><family>DejaVu Sans</family></prefer>

          <prefer><family>WenQuanYi Zen Hei</family></prefer>

          <prefer><family>AR PL UMing HK</family></prefer>

          </alias>

          <alias binding="same">

          <family>AR PL ShanHeiSun Uni MBE</family>

          <prefer><family>DejaVu Sans</family></prefer>

          <prefer><family>WenQuanYi Zen Hei</family></prefer>

          <prefer><family>AR PL UMing TW MBE</family></prefer>

          </alias>


          69-language-selector-zh-cn.conf

          將dejavu和zenhei對應字體提到第一位



          posted @ 2009-05-04 11:21 daning 閱讀(1412) | 評論 (2)編輯 收藏

          ubuntu 9.04發布在即


          posted @ 2009-04-10 22:21 daning 閱讀(195) | 評論 (0)編輯 收藏

          Windows Live Mail (前身Hotmail) 開放POP3/SMTP支持

          原文地址:http://jimmylvo.blogbus.com/logs/36661860.html

          雖然消息出來有日子了
          但為了方便大家 還是po出來


          以下是設置方法:

          • POP3服務器:pop3.live.com (端口995)
          • 是否需要POP SSL?
          • SMTP 服務器:smtp.live.com (端口25或者587)
          • 是否需要TLS/SSL?
          • 用戶名:你的 Live ID,如,username@live.com/hotmail.com/msn.com etc.
          • 密碼:你的密碼
          • 是否需要身份識別:是(匹配你的POP用戶名和口令)

          趕緊把msn的email轉到gmail中。

          posted @ 2009-03-31 21:10 daning 閱讀(2076) | 評論 (4)編輯 收藏

          linux下實現ibm小紅點加中鍵實現滾屏

          新建文件/etc/hal/fdi/policy/mouse-wheel.fdi
          寫入如下內容:

          <match key="info.product" string="TPPS/2 IBM TrackPoint">
          <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
          <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
          <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
          <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
          <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
          <merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
          </match>
          2。重啟后,在命令行輸入

          xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
          xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2
          xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Y Axis" 8 4 5
          xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation X Axis" 8 6 7
          重啟
          參考:
          http://tpctl.sourceforge.net/configure-trackpoint.html
          http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint

          posted @ 2009-03-28 20:33 daning 閱讀(810) | 評論 (0)編輯 收藏

          在ibm x60上使用ndiswrapper和windwos驅動

          我的無線網卡是intel 3945的,芯片組型號是8086:4227(如何查看無線網卡芯片組型號,參考這里)。intel官方的linux驅動太不穩定,速度很滿,而且經常斷線。開始嘗試了ipw3945,但是升級內核之后,就不能用了。現在轉向使用ndiswrapper+windows驅動了。

          Ndiswrapper現在似乎停止開發了,不過至少現在可用。似乎馬上就發布的9.04中,包含了最新的linux內核,2.6.28,其中包含的驅動就可以直接解決intel 無線網卡的問題。但愿吧。期待中。


          直接在ubuntu下安裝,

          sudo apt-get install ndiswrapper-common ndiswrapper-utils


          詳情,主要參考:

          https://help.ubuntu.com/community/WifiDocs/Driver/Ndiswrapper

          http://ubuntuforums.org/showthread.php?t=885847


          我使用的是http://ndiswrapper.sourceforge.net/index.html上的1.54版本。

          重點是如何找到和ndiswrapper兼容的windows版無線網卡。

          如果你使用錯了驅動, 比如使用了w39n51驅動,那么在加載ndiswrapper模塊的時候:

          sudo modprobe ndiswrapper

          可能就出現死機現象。

          原來ndiswrapper有一個相兼容軟件的列表,現在不能訪問了。不過有一個歷史記錄,可以在這里訪問到。這里只有8086:4222向兼容的驅動。如果要使用8086:4227芯片,就需要到聯想官網下載最新驅動。解壓縮后得到的驅動是NETw5x32windows驅動,一般都可以在windows分區的WINDOWS/system32/drivers/下找到。

          使用ndiswrapper之后,無線網卡穩定了,不過速度似乎一般般。

          如果是自己編譯安裝的ndiswrapper,那么每次內核升級之后,都要重新安裝一遍才可以繼續使用。

          posted @ 2009-03-28 16:30 daning 閱讀(644) | 評論 (0)編輯 收藏

          轉載:優秀設計十原則

          原文:http://hi.baidu.com/madesign/blog/item/98174954165de45c564e00ee.html
          也許在設計軟件的時候,也可以考慮這10條原則。

          現代的工業設計,在很大程度上受到了有著截然不同思考方式的兩個設計大師的長遠影響。

          一個是美國的 Raymond Loewy (左),他的特點是有強烈的個人風格,他的最知名的設計就是可口可樂的商標和風靡六十年代的流線型產品造型。

          另一個是德國的 Dieter Rams
          (右),他則比較講究設計的條理性,他的優秀設計十原則影響了幾代人。

          現在國際知名的幾個設計師如Philippe Starck, Jonathan Ive, Jasper Morrison, Karim Rashid,都在一定程度上受到了他們的影響,具體誰學誰,你們來說說:





          設計十原則(請英語好手翻譯下,我相信這里的讀者一定是臥虎藏龍):

          1. Good Design is innovative
          It does not copy existing product forms, nor does it produce any kind of novelty for the sake of it. The essence of innovation must be clearly seen in all functions of a product. The possibilities in this respect are by no means exhausted. Technological development keeps offering new chances for innovative solutions.


          2. Good Design makes a product useful
          A product is bought in order to be used. It must serve a defined purpose – in both primary and additional functions. The most important task of design is to optimise the utility of a product.


          3. Good Design is aesthetic
          The aesthetic quality of a product – and the fascination it inspires – is an integral part of the its utility. Without doubt, it is uncomfortable and tiring to have to put up with products that are confusing, that get on your nerves, that you are unable to relate to. However, it has always been a hard task to argue about aesthetic quality, for two reasons.

          Firstly, it is difficult to talk about anything visual, since words have a different meaning for different people.

          Secondly, aesthetic quality deals with details, subtle shades, harmony and the equilibrium of a whole variety of visual elements. A good eye is required, schooled by years and years of experience, in order to be able to draw the right conclusion.


          4. Good Design helps a product be understood
          It clarifies the structure of the product. Better still, it can make the product talk. At best, it is self-explanatory and saves you the long, tedious perusal of the operating manual.


          5. Good Design is unobtrusive
          Products that satisfy this criterion are tools. They are neither decorative objects nor works of art. Their design should therefore be both neutral and restrained leaving room for the user’s self-expression.


          6. Good Design is honest
          An honestly-designed product must not claim features it does not have – being more innovative, more efficient, of higher value. It must not influence or manipulate buyers and users.


          7. Good Design is durable
          It is nothing trendy that might be out-of-date tomorrow. This is one of the major differences between well-designed products and trivial objects for a waste-producing society. Waste must no longer be tolerated.


          8. Good Design is thorough to the last detail
          Thoroughness and accuracy of design are synonymous with the product and its functions, as seen through the eyes of the user


          9. Good Design is concerned with environment
          Design must contribute towards a stable environment and a sensible use of raw materials. This means considering not only actual pollution, but also the visual pollution and destruction of our environment.


          10. Good Design is as little design as possible
          Back to purity, back to simplicity.


          posted @ 2009-03-27 13:15 daning 閱讀(156) | 評論 (0)編輯 收藏

          自動添加log4j聲明

          寫log是個好習慣,但是每次都在代碼中創建logger代碼,太麻煩。
          在eclipe中設置一下,
          windows->preference->java->editor->templete
          添加新模板,比如叫logger
          如下圖所示:

          在pattern中填入:
          private static Logger logger = Logger.getLogger(${enclosing_type}.class);
          保存。

          下次再需要建立logger的時候,就輸入log然后按alt+/,就會自動補全了。

          posted @ 2009-03-23 11:05 daning 閱讀(191) | 評論 (0)編輯 收藏

          調整word文檔默認顯示比例

          需求:
          假設當打開一個word文檔時,word文檔的顯示比例是200%或者其他什么值。你想調增為100%, 使用 試圖-》顯示比例 調整后,保存。再次打開,顯示比例又原來的200%比例了。

          嘗試了半天也沒發現好的方法可以解決。一個偶然的機會,發現了一個有點變態的方法。

          解決方案:

          參考:http://www.dzwebs.net/355.html

          若要隨文檔或模板保存特定的顯示比例設置以使該文檔或模板總以該特定的顯示比例設置打開,必須先在該文檔或模板中做一處更改。所做的更改只是添加并刪除一個空格即可,這樣可確保該文檔或模板經過編輯,設置被保存。

            1、打開您希望以特定顯示比例設置保存的文檔或模板。

            2、在“視圖”選項卡上的“顯示比例”組中,單擊“顯示比例”。

            3、選擇所需的設置。

            4、在該文檔或模板中添加并刪除一個空格。

            5、單擊“Microsoft Office 按鈕”,然后單擊“保存”。



          =====================下面的方法太土了,致歉=========================
          在Office 2003中成功。
          1. 打開文檔
          2. 調整為你想要的顯示比例
          3. 隨便做些修改,加一個字或者刪一個字,保存,但別關閉文檔。
          4. 使用任務管理器,結束WINWORD進程。這樣就把word文檔意外關閉了。
          5. 重新打開word文檔,選擇恢復文檔,就是你想要的顯示比例了。

          如果沒有成功,就反復試幾次。

          注意:有一定風險,建議將源文件備份一下再試。

          posted @ 2009-03-19 21:03 daning 閱讀(6470) | 評論 (0)編輯 收藏

          windows右鍵打開命令行窗口

          總是用到svn和maven命令,每次定位目錄太麻煩,想加入個向linux下open-terminal的功能。
          參考:
          http://www.lanbolee.com/blog/read.php?215

          方法一

          打開“我的電腦”,點擊菜單中的“工具”-“文件夾選項”,選擇“文件類型”,找到“(無)資料夾”, 點“高級”,“新建”,在“操作”中填入 “CMD快速通道”(其實愛填什么都可以),“用于執行操作的應用程序”中填入“cmd.exe /k cd %1”(這個是關鍵),確定即可。


          右鍵打開任何一個文件夾、分區,點擊“CMD快速通道”,就可以打開CMD命令行了。


          方法二


          PS: 其實所有的實現方法都是對注冊表做了同樣的修改:在HKEY_CLASSES_ROOT"Folder"shell下增加一個“CMD”子鍵,將該子鍵的 “(默認)”鍵值修改為“CMD快速通道”,然后在該子鍵下再建立一個子鍵“command”,將“command”的“(默認)”鍵值修改為 “cmd.exe /k cd %1”。用注冊表文件表示就是:

          Windows Registry Editor Version 5.00

          [HKEY_CLASSES_ROOT"folder"shell"cmd]
          @="CMD快速通道"

          [HKEY_CLASSES_ROOT"folder"shell"cmd"command]
          @="cmd.exe /k cd %1"

          posted @ 2009-03-19 11:52 daning 閱讀(1057) | 評論 (1)編輯 收藏

          在局域網做maven repository鏡像

          有些庫在maven官方庫中沒有或者不是最新的。維護一個自己的庫比較好。
          參考:
          http://maven.apache.org/guides/mini/guide-mirror-settings.html
          http://jdkcn.com/entry/shrink-maven-mirror.html
          在crontab中加入如下內容,
          每天凌晨2點同步庫。

          0 2 * * * rsync ------progress --exclude "*.zip" --exclude "*.gz" --exclude "*.war" --exclude "*.bz" --exclude "*.bz2" rsync://rsync.cica.es/maven2 /home/rory/repository

          posted @ 2009-03-16 16:54 daning 閱讀(904) | 評論 (0)編輯 收藏

          僅列出標題
          共6頁: 上一頁 1 2 3 4 5 6 下一頁 
          主站蜘蛛池模板: 大洼县| 逊克县| 井研县| 蒲江县| 英德市| 苏州市| 克什克腾旗| 来凤县| 巴林右旗| 黄平县| 会昌县| 三台县| 宣化县| 卢氏县| 旺苍县| 乐昌市| 翼城县| 方城县| 金坛市| 泰来县| 酉阳| 巴马| 商水县| 大英县| 葫芦岛市| 海盐县| 呼伦贝尔市| 中宁县| 百色市| 长汀县| 辽中县| 萨嘎县| 乡城县| 故城县| 称多县| 亳州市| 波密县| 新巴尔虎左旗| 九寨沟县| 怀仁县| 巴林左旗|