<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    紫風亂寫

    除了他眼前的屏幕,這個人什么也沒看見。
    被周圍的電腦簇擁著,他只知道他所創造的現實,但又意識到那是虛幻。
    他已經超越了技術。也超越了機器。
    posts - 62, comments - 93, trackbacks - 0, articles - 0
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    2010年7月22日

    有這么一種神器,英文叫做reference card, 中文我不知道叫什么,就作用來說,可以叫做快捷鍵一頁紙,可以打印出來,放在案頭,然后可以隨時查閱。百度不容易找到,用谷歌的話可以使用reference card作為關鍵字查找。

    下面是幾個例子
    Eclipse 4.6: https://github.com/pellaton/eclipse-cheatsheet/raw/master/eclipse4.6/eclipse-shortcuts-4.6.0.pdf
    Intellij IDEA: https://resources.jetbrains.com/assets/products/intellij-idea/IntelliJIDEA_ReferenceCard.pdf
    Emacs: https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf
    Org-Mode: https://www.gnu.org/software/emacs/refcards/pdf/orgcard.pdf

    posted @ 2016-06-05 14:08 Justfly Shi 閱讀(527) | 評論 (0)編輯 收藏

         摘要: Emacs Tutorial中提到的快捷鍵以及自己找的一些快捷鍵  閱讀全文

    posted @ 2016-06-02 02:16 Justfly Shi 閱讀(343) | 評論 (0)編輯 收藏

    修改內容:

    posted @ 2015-12-05 21:28 Justfly Shi 閱讀(1956) | 評論 (0)編輯 收藏


    修改內容:

    • 添加BeanQuery.nested()方法,調用該方法后,具有同樣前綴的屬性或者別名會被放到一個Map中返回,詳情請看Allow format result into a map
    • BeanQuery.selectBean方法標為@deprecated,并添加同一樣功能的方法,命名為BeanQuery.select

    posted @ 2015-12-05 20:48 Justfly Shi 閱讀(2838) | 評論 (0)編輯 收藏

         摘要: 在我看來,干活有兩種方式:

    1. 沒想清楚了,貿貿然開干,然后各處救火各種解決問題
    2. 想清楚了再開干,無驚無險,安然做完

    本文講講如何在設計中系統的思考以避免內存溢出,并給出一個例子講解。  閱讀全文

    posted @ 2015-06-08 19:13 Justfly Shi 閱讀(3975) | 評論 (4)編輯 收藏

    5月初的時候,我發了一個帖子說要開始講單元測試,但是20多天過去了,為什么沒有更新呢?
    原因就是我在做視頻公開課,發現光文字表現的話比較費勁,所以我決定錄制視頻,做成公開課。

    第一個錄制的是JUnit技術,課程地址:http://edu.csdn.net/course/detail/908 歡迎大家觀后留言探討哦。

    posted @ 2015-05-26 22:25 Justfly Shi 閱讀(1633) | 評論 (4)編輯 收藏

         摘要: 從04年開始,我就開始在項目實踐中使用單元測試。十幾年來,參與的項目基本上都或多或少的使用了單元測試,多的能有100%覆蓋率的要求,少的也要覆蓋主要代碼,發現這個實踐在提高軟件質量和開發速度上還是很有好處的。在和朋友同事的交流中,發現有很多項目沒有使用單元測試,也有很多程序員不會寫單元測試,但是大家對這個都很有興趣。所以我想把自己掌握的關于單元測試的技能(架構、設計和技術)和實施策略分享一下。  閱讀全文

    posted @ 2015-05-05 00:33 Justfly Shi 閱讀(6045) | 評論 (4)編輯 收藏

    代碼地址:https://github.com/Jimmy-Shi/bean-query/tree/bean-query-1.1.1

    修改內容:
    • 簡化用戶自定義轉換
    例子:
    List<String> bookNames=select(new DefaultSelector<String>() {
          @Override
          public String select(Object item) {
            return ((Book)item).getName();
          }
        }).executeFrom(bookCollection);

    在Maven項目中引用:
    <dependency>
      <groupId>cn.jimmyshi</groupId>
      <artifactId>bean-query</artifactId>
      <version>1.1.1</version>
    </dependency>

    posted @ 2014-11-23 00:02 Justfly Shi 閱讀(1243) | 評論 (2)編輯 收藏

    Bean Query是一個開源的Java工具包,它復用Apache Commons BeanUtilsApache Commons CollectionsJava Hamcrest 來簡化對Bean(集合)的排序,過濾和轉換。

    項目地址:

    https://github.com/Jimmy-Shi/bean-query

    http://git.oschina.net/jimmyshi/bean-query

    修改內容:

    • 支持用戶自定義排序
    • 支持用戶自定義轉換
    • 支持對一個對象進行轉換和過濾
    • 提供了完整的使用說明文檔

    在Maven項目中引用:

    <dependency>
      <groupId>cn.jimmyshi</groupId>
      <artifactId>bean-query</artifactId>
      <version>1.1.0</version>
    </dependency>

    posted @ 2014-11-21 22:58 Justfly Shi 閱讀(8434) | 評論 (2)編輯 收藏

    修改內容:
    在Maven項目中引用
    <dependency>
      <groupId>cn.jimmyshi</groupId>
      <artifactId>bean-query</artifactId>
      <version>1.0.1</version>
    </dependency>

    posted @ 2014-11-03 21:56 Justfly Shi 閱讀(5552) | 評論 (3)編輯 收藏

    BeanQuery 是一個把對象轉換為Map的Java工具庫。支持選擇Bean中的一些屬性,對結果進行排序和按照條件查詢。不僅僅可以作用于頂層對象,也可以作用于子對象。更多詳細的介紹可以看我的博文: http://www.tkk7.com/justfly/archive/2014/10/26/419067.html

    我剛剛發布了版本1.0.0. 現在已經在Sonatype OSS庫上了,2個小時后將會被同步到Maven中央庫上。

    Sonatype OSS 庫下載地址: https://oss.sonatype.org/content/groups/public/cn/jimmyshi/bean-query/1.0.0/

    Github上的代碼: https://github.com/Jimmy-Shi/bean-query/tree/bean-query-1.0.0

    在Maven項目中引用

    <dependency>
      <groupId>cn.jimmyshi</groupId>
      <artifactId>bean-query</artifactId>
      <version>1.0.0</version>
    </dependency>

    posted @ 2014-10-29 02:24 Justfly Shi 閱讀(4464) | 評論 (0)編輯 收藏

         摘要: BeanQuery 是一個把對象轉換為Map的Java工具庫。支持選擇Bean中的一些屬性,對結果進行排序和按照條件查詢。不僅僅可以作用于頂層對象,也可以作用于子對象。

    BeanQuery的使用非常簡單也很直接  閱讀全文

    posted @ 2014-10-26 23:33 Justfly Shi 閱讀(5510) | 評論 (6)編輯 收藏

         摘要: 作為一個程序員,我們的日常工作之一就是看Log,從Log中發現自己所需要的信息,以及對Log做一些簡單的分析和統計。本文分享了我所使用的工具和方法。  閱讀全文

    posted @ 2014-09-17 23:00 Justfly Shi 閱讀(2802) | 評論 (6)編輯 收藏

         摘要: 本文介紹了在代碼中應該在什么時候需要Log什么信息;使用何種級別的Log;如何Log異常信息;Log中的一些要點。另外也分析了靜態Logger變量和對象Logger變量的優劣。  閱讀全文

    posted @ 2014-08-13 23:32 Justfly Shi 閱讀(25942) | 評論 (7)編輯 收藏

         摘要: 作為《Java程序員修煉之道》博文的第一個主題Logging,我計劃中按照如下三篇來寫: 1. Logback的簡單介紹和配置 2. 在Java代碼中如何使用SLF4J來寫日志以及寫日志的要點 3. 作為一個程序員,在日常工作中如何分析和挖掘Log。 這個是第一篇,簡單介紹一下Logback的配置,適用于開始配置和開始入門,適用于一般情況下的使用。  閱讀全文

    posted @ 2014-08-10 02:46 Justfly Shi 閱讀(19797) | 評論 (1)編輯 收藏

         摘要: 后來我意識到,我不能只抱怨,作為一個寫了10多年代碼,帶過項目、做過業務最終還是寫代碼, 有車有房有妻有娃的四有不太牛逼的程序員,我有責任幫助剛入行的、入行時間不短的,還沒車沒房的Java程序員們掌握一些基礎的東西。
    如果你掌握了這些基礎的東西的話,而且英語口語還湊合的話,歡迎來找我幫你內部推薦工作,估計一萬多的月薪是不成問題的,至于30、40萬的年薪應該也是有機會的。  閱讀全文

    posted @ 2014-08-03 01:18 Justfly Shi 閱讀(5174) | 評論 (13)編輯 收藏

    Sorry every body, I am so busy that I can not finish this article on time. I will try to finish this article after I have got a job. You can compare the 2 xml files in the attached zip file to get some idea.

    There are 2 files in the zip file:
    1. google.xml: The original google search plugin
    2. google-oracle.xml: The search plugin that only search the oracle.com web site.

    Usage
    1. Put the google-oracle.xml in your personal firefox searchplugin folder. In windows firefox version 4 it is {FIREFOX_HOME}\distribution\searchplugins
    2. Restart the firefox. Done

    Click here to download the search plugins

    posted @ 2011-04-18 00:13 Justfly Shi 閱讀(1916) | 評論 (6)編輯 收藏

    If after upgrading your eclipse STS plugin from 2.5.2 to 2.6.0, your grails projects can not be build, and when building it, it always warning that "Errors running builder 'Java Builder' on projec". That might be caused by the old 1.6 groovy compiler.  The solution is to edit the file "eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info" and find the line for org.codehaus.groovy_1.6 and remove it. And then restart the eclipse. you can find that it should be fixed.

    Reference: http://docs.codehaus.org/display/GROOVY/Compiler+Switching+within+Groovy-Eclipse

    posted @ 2011-03-30 22:24 Justfly Shi 閱讀(1510) | 評論 (0)編輯 收藏

         摘要: 第一章 新的機會 第二章 對抗卡布福斯 第三章 “硅谷” 第四章 CD-ROM工廠 優質管理的四大要素 l 選擇正確的人 l 為他們分配正確的工作 l 保持他們的積極性 l 幫助團隊凝聚起來并保持團隊的凝聚力 (其他的一切都只是“文案”) 安全和變化 l 除非感到安全,否則人...  閱讀全文

    posted @ 2011-03-26 23:56 Justfly Shi 閱讀(339) | 評論 (0)編輯 收藏

    上周去一家大型網絡公司的內部系統開發部門面試,該部門主要是為公司的各個部門開發工作中所需要用到的系統,比如財務,人事的一些小系統。面臨著:資源少,任務多,體現不出部門價值等問題。面試出來后想了幾點,發給他們了,另外也分享出來,希望對從事類似工作的同學們有用。
    1. 統一簡潔的頁面風格和CSS
    因為是內部系統,所以頁面不需要太華麗和復雜的界面,所需要的是簡單易用。因為是都是sohu的內部系統,所以可以有統一的頁面風格。
    統一頁面風格帶來以下這些好處:
    a. 只需要采用一套CSS,而不需要在每個項目都進行CSS的開發
    b. 能減少頁面設計的時間,頁面布局,功能區域設置能全部都統一起來
    c. 減低用戶對于新系統的學習曲線
    因為是內部系統,客戶端與服務器之間的連接速度能保證。因此可以采用簡潔的頁面風格。
    簡潔的頁面能帶來以下好處:
    a. 減少頁面的開發難度,不用在一個頁面中堆積過非必要的數據。
    b. 方便任務分配
     
    2. 在做需求的時候同時完成靜態頁面的設計
    這條的好處是做頁面設計的時候能進一步理解用戶的需求,也能同時從解決方案的角度來考慮問題,從用戶的角度來說,針對模型進行思考能進一步的引導他的需求。
    具體的做法就是
    a. 在一邊談需求一邊用紙畫出大概的頁面模型和用戶溝通,初步形成頁面功能的設計
    b. 談完需求之后盡快使用統一的CSS做出靜態的頁面。用頁面跳轉代替表單提交。
    c. 用靜態頁面組成的模型和用戶進行初步溝通,在溝通過程中,如果時間不多的話在紙面上進行修改再溝通,如果時間多的話,快速的修改靜態頁面,爭取盡可能多的把重點頁面和用戶達成一致。
    根據溝通結果把可以開始做的部分安排開發人員開始做,還不能確定的和客戶約好時間再進行下一次溝通。
     
    3. 逐步建立可復用的代碼庫(功能組件)
    這一點說起來容易,做起來需要一定的額外代價,是一個部門內部的積累。前提是第一條建議能夠比較好的實施。這里的代碼庫(功能組件)大到一個功能模塊(連接LDAP),小到一個頁面控件(多層次部門選擇下拉列表)。具體做法是
    a. 在項目開發中有意識的把可通用的組件單獨放到一個包里
    b. 項目結束后,花1到2天的時間整理成可復用的代碼
    c. 整理完之后再對相關技術人員進行培訓(這個很重要,有通用代碼而別人不知道=沒有通用代碼)
    d. 在以后的項目中,在復用的過程中進行完善
    e. 盡量減少復制粘貼再修改
     
    4. 收集客戶部門使用系統后的效果,其結果可用于對上對外和對內
    客戶部門應該會有這樣的數據,因為他們需要這些東西來說明他們上新系統的效果。本部門可以用這些數據來說明自己的貢獻以獲取公司的認同甚至可以去爭取更多的資源
    IT或者運維部門應該會有bug數量的和分布的統計數據,如果沒有的話自己可以收集到達本部門的bug數量和分布的數據,通過這些可以在以后的工作中有意識的避免這些bug
    通過這些數據可以在以后的需求分析過程中為客戶部門提供更容易使用的系統

    posted @ 2011-03-02 11:36 Justfly Shi 閱讀(882) | 評論 (0)編輯 收藏

         摘要: 軟件開發團隊和測試團隊之間的關系是復雜而有趣的,雙方有共同目標,又互相競爭。雙方的共同目標在于減少軟件交付之后缺陷的嚴重程度和數量。雙方的利益競爭在于測試人員盡可能的發現軟件開發團隊交付的軟件產品的缺陷。在這種情況下,減少無謂的內耗,共同保證共同目標的實現,才可能實現雙方的共贏。但是在很多時候,軟件開發團隊和測試人員之間總存在著一種緊張的關系,并因此無謂的添加了到達共同目標的困難。

    在我經歷過的一些開發過程中,多次因為與測試人員之間的頗為愉快的合作,實現了雙贏和共贏。總結出來幾點,拋磚引玉:
    1. 保持良好的心態,提高對開發人員與測試人員之間關系的認識
    2. 對于客戶想法的理解,開發團隊與測試團隊需要達成一致并且保持同步。
    3. 互相幫助,共同提高  閱讀全文

    posted @ 2010-10-24 05:07 Justfly Shi 閱讀(1806) | 評論 (0)編輯 收藏

    1. test if the command notify-send is installed
    notify-send "Hello"
    If the command is not found, install the required package following the tips
    2. vi notify.sh and input the below content into it.
    #!/bin/bash
    DISPLAY=:0.0 /usr/bin/notify-send -30000 "<b>Take a Break!</b>"
    3. chmod +x notify.sh
    4. crontab -e
    5. add the below content as a new line in the opened file. and then save it
    */45 * * * * /home/jimmy/notify.sh
    6. Done!

    posted @ 2010-09-28 15:49 Justfly Shi 閱讀(364) | 評論 (0)編輯 收藏

    It is only available for one session.
    using the below command before you run your query
    ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS';
    For more information, refer to the page http://www.oracle.com/technology/products/database/sql_developer/howtos/howto_policy_date_formats.html
    

    posted @ 2010-08-11 16:45 Justfly Shi 閱讀(363) | 評論 (0)編輯 收藏

    In Ubuntu, key F10 is used to open the first item of the menu bar, but If you use Emacs key binding in eclipse, F10 is used as the redo key. So you need to do the below change.

    Run gconf-editor, browse to /desktop/gnome/interface then scroll down to menubar_accel and delete the F10 value.

    From http://www.h4ck3r.net/2010/04/07/debugging-step-over-f10-eclipse-ubuntu/

    posted @ 2010-07-22 23:35 Justfly Shi 閱讀(333) | 評論 (0)編輯 收藏

    install jdk via Synaptic package manager, the name of it is sun-java6-jdk
    download the eclipse install file for Linux

    1.Extract the eclipse download and move to opt.

    tar xzf wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz
    sudo mv eclipse /opt/eclipse
    cd /opt
    sudo chmod -R +r eclipse
    sudo chmod +x `sudo find eclipse -type d`

    2. Then create an eclipse executable in your path
    sudo touch /usr/bin/eclipse
    sudo chmod 755 /usr/bin/eclipse
    sudo vi /usr/bin/eclipse

    With this contents
    #!/bin/sh
    export ECLIPSE_HOME="/opt/eclipse"
    export GDK_NATIVE_WINDOWS=1

    $ECLIPSE_HOME/eclipse $*

    3 Then create a gnome menu item
    sudo vi /usr/share/applications/eclipse.desktop

    With this contents
    [Desktop Entry]
    Encoding=UTF-8
    Name=Eclipse
    Comment=Eclipse IDE
    Exec=eclipse
    Icon=/opt/eclipse/icon.xpm
    Terminal=false
    Type=Application
    Categories=GNOME;Application;Development;
    StartupNotify=true


    4 You now have a working eclipse. But run this command first to initialize the set up
    . /opt/eclipse/eclipse -clean

    Then from here on you can run from the menu item applications/programming/eclipse

    posted @ 2010-07-22 23:27 Justfly Shi 閱讀(337) | 評論 (0)編輯 收藏

    查找包含某字符串的所有文件
    grep -F 'aaa' -R ./

    如何指定輸出文件的某幾行
    想輸出多行用:
    sed -n '1,np' file
    跳著輸出用";"
    sed -n '1p;4p;7p;9p' file

    posted @ 2010-07-22 23:25 Justfly Shi 閱讀(273) | 評論 (0)編輯 收藏

    open System->Administration->Language support
    1. Install/Remove languages->check 'Chinese(Simplified)
    2. Keyboard input method system->ibus
    open System->Preferences->IBus Preferences->Input method->add "Chinese Pinyin"->move it to the top

    posted @ 2010-07-22 23:23 Justfly Shi 閱讀(420) | 評論 (0)編輯 收藏

    http://www.linuxsir.org/bbs/thread362467.html
    下面的這個已經不再維護了。上面的這個好使。
    http://www.linuxsir.org/bbs/thread320802.html

    posted @ 2010-07-22 23:23 Justfly Shi 閱讀(560) | 評論 (2)編輯 收藏

    create or edit file /etc/hal/fdi/policy/mouse-wheel.fdi, change its content to below
    <?xml version="1.0" encoding="UTF-8"?>
    <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.XAxisMapping" type="string">6 7</merge>
    <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
    <merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
    <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
    </match>


    then run the below command

    sudo rm /var/cache/hald/fdi-cache
    sudo /etc/init.d/hal restart
    sudo /etc/init.d/gdm restart

    posted @ 2010-07-22 23:21 Justfly Shi 閱讀(390) | 評論 (0)編輯 收藏

    主站蜘蛛池模板: 亚洲成a人片在线看| 亚洲区小说区图片区| 亚洲网站在线免费观看| 久久免费精品一区二区| 在线免费观看h片| 中文字幕一区二区免费| 中文永久免费观看网站| 91成人免费观看在线观看| 国产免费黄色无码视频| 男女一进一出抽搐免费视频 | 精品国产综合成人亚洲区| 亚洲精品国产精品乱码不卡√| 亚洲开心婷婷中文字幕| 亚洲AV午夜福利精品一区二区| 亚洲国产女人aaa毛片在线| 亚洲色图古典武侠| 亚洲av乱码一区二区三区| 四虎必出精品亚洲高清| 久久精品国产亚洲av瑜伽| 免费人成视频在线观看免费| 国产精品hd免费观看| 国产免费一区二区三区在线观看| 99爱在线精品视频免费观看9 | 国产亚洲Av综合人人澡精品| sss在线观看免费高清| 中文字幕免费不卡二区| 中国人xxxxx69免费视频| 久九九精品免费视频| 国产免费一区二区三区VR| 老司机亚洲精品影视www| 无码乱人伦一区二区亚洲| 亚洲成人午夜电影| 亚洲av无码成人影院一区| yellow视频免费看| 桃子视频在线观看高清免费视频| 免费人成网站在线观看10分钟| 成人国产mv免费视频| 亚洲精品无码专区在线在线播放| 亚洲欧洲日韩综合| 麻豆69堂免费视频| 亚在线观看免费视频入口|