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

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

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

    Read Sean

    Read me, read Sean.
    posts - 508, comments - 655, trackbacks - 9, articles - 4

    2014年3月9日

    不知道從什么時候開始的,tsocks在Mac下面安裝要費些周折,brew官方和曾經一度存在的第三方tap都不再支持直接brew install,需要手工創建formula。過程倒也還OK:

    vim /usr/local/Library/Formula/tsocks.rb

    require 'formula'

    class Tsocks < Formula
      # The original is http://tsocks.sourceforge.net/
      # This GitHub repo is a maintained fork with OSX support

      homepage 'http://github.com/pc/tsocks'
      head 'https://github.com/pc/tsocks.git'

      depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3

      def install
        system "autoconf""-v"
        system "./configure""--prefix=#{prefix}""--disable-debug""--disable-dependency-tracking""--with-conf=#{config_file}"

        inreplace("tsocks") { |bin| bin.change_make_var! "LIBDIR", lib }

        system "make"
        system "make install"

        etc.install "tsocks.conf.simple.example" => "tsocks.conf" unless config_file.exist?
      end

      def test
        puts 'Your current public ip is:'
        ohai `curl -sS ifconfig.me 2>&1`.chomp
        puts "If your correctly configured #{config_file}, this should show the ip you have trough the proxy"
        puts 'Your ip through the proxy is:'
        ohai `tsocks curl -sS ifconfig.me 2>&1`.chomp
      end

      def config_file
        etc / 'tsocks.conf'
      end
    end

    有了上述formula之后,即可 brew install --HEAD tsocks 。

    posted @ 2014-05-07 23:23 laogao 閱讀(4082) | 評論 (2)編輯 收藏

    有了RPi當然免不了要玩玩XBMC,這里推薦XBian,安裝配置過程如下:

    1- 下載.img文件 ( http://www.xbian.org/download/ );
    2- 用dd命令將.img(比如XBian_beta_2.img)寫入SD卡;
    3- 將中文字體(比如wqy-zenhei.ttc)重命名為arial.ttf,復制到SD卡的~/.xbmc/media/Fonts目錄(XBian默認用戶為xbian,密碼raspberry);
    4- 從 https://code.google.com/p/xbmc-addons-chinese/downloads/detail?name=repository.googlecode.xbmc-addons-chinese-eden.zip 下載資源插件并復制到SD卡;
    5- 將SD卡插入RPi并連接HDMI到電視機/顯示器;
    6- RPi開機,進入XBian的配置頁面,可以校準屏幕,配置網絡連接等;
    7- 在系統設置中選擇字體為Arial,語言選為中文,此時應該看到界面可正常顯示中文;
    8- 安裝擴展程序,選擇之前下載到SD卡的repository.googlecode.xbmc-addons-chinese-eden.zip文件,擴展安裝成功后即可在擴展程序列表中看到對應的資源條目,逐一安裝即可。

    額外提示:XBMC也可以通過網絡共享播放視頻,之前跟大家提到過XBMC顯示中文字幕有時出現整行被方塊覆蓋的問題,解決方法是在字幕文件中查找并刪除或替換"…"字符。Enjoy!

    posted @ 2014-04-06 17:45 laogao 閱讀(2369) | 評論 (0)編輯 收藏


    整理一下 IntelliJ IDEA 最常用的快捷鍵,按照便于記憶的方式排列:

    Ctrl-N              Class... (find by name)
    Ctrl-Shift-N        File... (find by name)
    Ctrl-Shift-Alt-N    Symbol... (find by name)
    Ctrl-G              Line... (goto line)
    Ctrl-H              Type hierarchy (hierarchy)
    Ctrl-Shift-H        Method hierarchy (hierarchy)
    Ctrl-Alt-H          Call hierarchy (hierarchy)
    Ctrl-Q              Quick documentation
    Ctrl-Alt-I          Auto-indent lines (indent)
    Ctrl-Alt-L          Reformat code (line up)
    Ctrl-Alt-O          Optimize imports (optimize)
    Ctrl-/              Comment with line comment (//)
    Ctrl-Shift-/        Comment with block comment (/*...*/)
    Ctrl-W              Select word or block (word)
    Ctrl-D              Copy line (duplicate line, yyp)
    Ctrl-X              Cut line (dd)
    Ctrl-U              Uppercase/lowercase (upper)
    Ctrl-J              Insert live template
    Ctrl-Alt-J          Surround with live template
    Ctrl-Alt-T          Surround with (template)
    Ctrl-Shift-J        Join lines (join)
    Ctrl-E              Recent files (editions)
    Ctrl-Shift-E        Recently changed files (editions)
    Alt-Shift-C         Recent changes (changes)
    Ctrl-B              Delcaration
    Ctrl-Shift-B        Type declaration
    Ctrl-Alt-B          Implementation(s)
    Ctrl-P              Parameter info (parameter)
    Ctrl-Space          Basic completion
    Ctrl-Shift-Space    Smart completion
    Ctrl-Alt-Space      Completion lookup
    Alt-Enter           Auto-complete
    Alt-Insert          Generate...
    Ctrl-Shift-Up/Down  Move statement up/down
    Alt-Shift-Up/Down   Move line up/down
    Ctrl-Up/Down        Scroll up/down
    Alt-Up/Down         Previous/next method
    F2                  Next highlighted error
    Shift-F2            Previous highlighted error
    Ctrl-F              Find
    Ctrl-R              Replace
    F3                  Next match
    Shift-F3            Previous match
    F4                  Jump to source
    Ctrl-Alt-Shift-T    Refactor this
    F5                  Refactor copy
    F6                  Refactor move
    Ctrl-F6             Refactor change signature
    Shift-F6            Refactor rename
    Alt-Delete          Refactor safe delete
    Ctrl-Alt-V          Refactor extract variable
    Ctrl-Alt-F          Refactor extract field
    Ctrl-Alt-P          Refactor extract parameter
    Ctrl-Alt-M          Refactor extract method
    Ctrl-Alt-N          Refactor inline
    

    posted @ 2014-03-09 13:38 laogao 閱讀(12887) | 評論 (0)編輯 收藏

    主站蜘蛛池模板: 亚洲中文无码永久免费| 亚洲国产精品久久久久秋霞影院 | 91老湿机福利免费体验| 亚洲国产三级在线观看| WWW免费视频在线观看播放| 国产日产亚洲系列| 中文字幕免费在线播放| 中文日本免费高清| 久久亚洲国产欧洲精品一 | 日韩欧毛片免费视频| 性xxxx黑人与亚洲| 日韩av无码成人无码免费 | 日亚毛片免费乱码不卡一区| 国产精品深夜福利免费观看 | 国产免费69成人精品视频| 国产亚洲精品AAAA片APP| 亚洲国产精品成人久久蜜臀| 一区二区3区免费视频| 亚洲伊人久久综合影院| 两个人看的www高清免费观看| 亚洲国产成人一区二区精品区| 四虎影视在线影院在线观看免费视频| 亚洲黄色片在线观看| 野花高清在线电影观看免费视频 | 一级毛片无遮挡免费全部| 国产成人麻豆亚洲综合无码精品| 国产精品免费观看调教网| 亚洲天堂一区二区三区| 日日操夜夜操免费视频| 国产成人精品免费大全| 亚洲国产老鸭窝一区二区三区| 国产国产人免费视频成69堂| 亚洲精品国产综合久久久久紧| AV在线亚洲男人的天堂 | 四虎永久免费观看| 免费无码又爽又刺激网站| 中文字幕亚洲综合精品一区| 啦啦啦中文在线观看电视剧免费版 | 91久久成人免费| 亚洲成a∧人片在线观看无码| 久久久无码精品亚洲日韩软件|