Skip to main content


harry 's Public Library

    • a RMagick utility for Sass.


      The aim of this project is to allow designers to generate images on-the-fly while authoring their stylesheets. Compass Magick currently supports:

      • Semi-transparent backgrounds
      • 2-point linear gradients incl. support for rgba(..)
      • Rounded corners
      • Borders incl. rounded borders
      • Image composing, i.e., drawing images on top of the canvas
      • Cropping
      • Filters, currently only grayscale supported

  • Now, just like with Swinger, you can tag your examples with a specific :driver:

  • What a lot of people don’t know is that Steak is nothing more than a bunch of aliases and generators. This doesn’t mean that it doesn’t make your work easier or that it’s a scam, but it’s not a completely separate testing library. It’s essentially just a tool to make it easier to get Capybara running on RSpec.
  • Capybara doesn’t have any generators for its new DSL, but that shouldn’t be a problem. Setting it up is quite easy, just add a file named spec/acceptance/acceptance_helper.rb. In this file, we’ll require spec/spec_helper.rb to make RSpec available. We’ll also require Capybara’s RSpec helper file:

  • require 'rspec'
    require 'capybara'
    require 'capybara/dsl'

    module CapybaraStandalone
      def self.setup
        Capybara.configure do |config|
          config.app_host = ENV['CAPYBARA_TEST_URL'] || 'http://localhost:3000'
          config.run_server = false
          config.default_driver = :selenium

    RSpec.configure do |config|
      config.include Capybara

      config.before(:all) do
      config.after do

  • uby provides some fantastic built-in features for creating Domain Specific Languages (DSLs). A Domain Specific Language is, for our purposes today, like a miniature specialized programming language within a programming language. It is a way to expose functionality in a simple, readable format for other programmers (or yourself) to use. One of the most commonly used DSLs in the Ruby world is Sinatra:

    • 生成训练用的二进制词典


      当前的共走目录为 WORK, 在该目录中创建子目录 seed, final

      cd $WORK mkdir seed final 

      seed 目录中复制先前描述过的如下文件内容,  

      • seed 词典(CSV 格式文件集合)  
      • 所有的配置文件 (char.def, unk.def, rewrite.def, feature.def)  
      • 训练用的数据 (文件名: corpus)

  • 白了上面两点,就可以讲马尔可夫随机场了。还是拿种地打比方,如果任何一块地里种的庄稼的种类仅仅与它邻近的地里种的庄稼的种类有关,与其它地方的庄稼的种类无关,那么这些地里种的庄稼的集合,就是一个马尔可夫随机场。

  • Russ Olsen has been putting together a small series of blog posts about building a DSL in Ruby. The first part dates from October 2006, but the second part has just been released, making it a good double length read. In the mini-series, Russ looks at the motivation for developing a DSL and develops a basic DSL called Potemkin.

  • I’ve intentionally structured this roadmap so that you can learn one thing at a time. That way, you’ll spend more time creating and less time confused.




    A   DEBATE

  • I was bored and made this video and this gtk gui for mounting google docs as a folder on your computer.

  • Tor.rb is a Ruby library for interacting with the Tor anonymity network.

  • what does WebDriver mean to Watir? Some people in the Watir project see an opportunity to leverage the effort put into WebDriver, but to continue to offer the clean neat API that Watir does. Jari Bakken has released an early version of Watir-WebDriver, essentially Watir’s ruby API utilising the WebDriver engine. By using WebDriver, Watir can support any browser that WebDriver does, including a headless HtmlUnit browser, without using Celerity.

  • RACKSPACE and NASA are joined by leaders from across the technology industry like CITRIX, DELL, NTT DATA, RIGHTSCALE and others to drive a deployable, totally open cloud solution. See the full list.

  • This plugin is designed for quick development of a page that implements a Google Map with a list of the locations that are specified within the HTML.
       The plugin tries to allow as much graceful degradation as possible by having the HTML be as semantic as possible. The plugin expect the HTML for the locations to be grouped under a common element. Additionally, it expects the links and Map Info Window content to be grouped under the location elements. It also expects the necessary metadata to be on the location element. This way the HTML semantically reflects that all of those parts and information are associated with the specific location or place.

  • 这些都是我收藏的python的书籍,全部是pdf的 现在共享出来,供大家参考学习


    这些书中有初级的也有高级的 ,GUI方面的书我只找到两本 好少,还要两本django



    • 让你忍不住循环播放的歌曲

      • 制作人:小聪仔
      • 歌曲数:20 
      • 标签:sweet voice you're not alone 
      • 更新时间:2010-07-11
      • 播放:23384  浏览:6198  推荐:27  收藏:128
1 - 20 of 663 Next › Last »
20 items/page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo