ruby (RSS)

twitter with ruby

Twitter integration should be simple things, recommended the use of twitter gem, so easy. Oauth to support and httpauth. oauth process must be binding. http://twitter.rubyforge.org/

Chinese ruby

1.9.1 Testing a bit of hash in the performance of a ruby at the same time understanding the Chinese program is very powerful!

ruby the General Assembly information

It can not read the future, may be used, up first collection http://www.javaeye.com/wiki/rubyconf/1709-first-rubyconf-china-information

Ruby [Hash method summary]

1. To add a default value Hash: h = (1,2,3,4) # => (1 => 2, 3 => 4) h.default = 7 h [1] # => 2 h [3] # => 4 h [4] # => 7 h [5] # => 7 二. Hash to add key-value pair: h = () # => ...

CruiseControl.rb another Bug

I encountered the problem as follows: Executive: . / cruise build test_cc_01 Time, there will be the following error? SVN is literally no permissions to connect, but I tried a lot of SVN, but I have p ...

Ruby General Assembly and its people MATZ!

Ruby has just attended this technology. Matz looks young, a bit shy, but also there is no lack of sense of humor. But how to communicate with you the distance and obstacles exist! In addition he was v ...

memcached with ruby

memcached is very powerful, it is also very simple to install: http://www.danga.com/memcached/download.bml Download source, compile and install. Libevent library should pay attention to the existence ...

Beijing has a number of ruby programmers?

Surveys such as the title. 报个名it!

rails2.3.2 in the windows under the render: file a bug

In the windows on render: file use absolute addresses, there will be invalid argument error, view the source code, an error is found on the rails of the separator system to determine a problem, it is ...

ruby graphical Can't find a usable init.tcl

1. Need ActiveTcl http://downloads.activestate.com/ActiveTcl/Windows Need tcl8.4.dll Link below the error Can't find a usable init.tcl http://www.archivum.info/comp.lang.tcl/2006-03/msg00338.html ...

Prototype study entry

Prototype by Sam Stephenson developed a Javascript library as well as the originator of other frameworks. Part of its existing Javascript objects such as Object, Function, Dom, String, such as expansi ...

Include vs Extend in Ruby

Posted 3 days back at RailsTips.org - Home In which I show the difference between include and extend when working with modules in Ruby. Now that we know the difference between an instance method and a ...

ruby_helloWorld

Download http://www.ruby-lang.org/zh_CN/downloads/ New helloWorld.rb Inside to write his print ( "helloWorld") Enter the command-line ruby HelloWorld.rb Then output HelloWorld

ACCESS read Ruby data with ADO

Previous tests, records about Connection string is from the previous DELPHI copy the code from the

Interpretation of prototype source

http://prototype.conio.net/ I like Javascript, keen on Ajax applications. I read the prototype source code of their own experience to write it down, I hope all of you to help understand Javascript. I ...

rails web server deploy guide

web server: install ubuntu 64bit server edition then: ################################ 1.install necessary software: ################################ sudo apt-get install gcc g + + make sudo apt-get i ...

Apache +2 Mongrel deployment of Rails

Apache + mongrel to deploy on the articles, the Internet has been a lot. Here, let me talk about the main areas of error-prone. 1 Download One-Click Ruby Install, installed after the ruby-v and the us ...

Advisory rails of the issue of performance

Would like to see the performance of the actual rails Rails to write with a simple query the user's action, controller in the show are as follows: Deployment using ruby 1.8.7 rails 2.3.2, lighttpd ...

netbeans jruby webrick error

=> Booting WEBrick ... JRuby limited openssl loaded. Gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL D: / ruby / netbeans-ruby / NetBeans 6.5.1/ruby2/jr ...

ruby visit website (to deal with the Chinese url)

1 require 'open-uri' 2 require 'net / http' 3 require 'iconv' 4 require 'uri' 5 6 src1_file = "place_file.txt" 7 src2_file = "things_file.txt" 8 sav ...

hpricot: rails Analytical html plug-ins

pricot is fast and easy-to-use Ruby HTML parser, the source of JQuery. It is characterized by 1. Fast, because the core 2 with C rewritten. Easy to use interface, you can use CSS selectors, element ID ...

js achieve the ruby in the array of include?

js achieve the ruby in the array of include?

Win build similar rails development environment for MacOS

Read an article before "to create win under mac os development environment", really good, However, some things get too complicated, I will be here simplified to streamline the 1. To install ...

Ruby Formatting

1. Two spaces indentation 2. Comments New: # The comment Old: # The comment 3. Whitespace should be used to split up the code, not random 4. Lining up and spacing 4.a spaces between variables and equa ...

hpricot: rails plugin Analytical html

pricot is fast and easy-to-use Ruby HTML parser, the source of JQuery. It is characterized by 1. Fast, because the core 2 with C rewritten. Easy to use interface, you can use CSS selectors, element ID ...

Netbeans + JRuby Development Notes (4) - will be deployed jruby on rails open to tomcat

Jruby on rails development to the application deployed to tomcat Environment windows XP jdk 6u12 jruby 1.2.0 rails 2.2.2 netbeans 6.5.1 tomcat 5.5 mysql 5 Upgrade to jruby 1.2.0 jruby not used netbean ...

Netbeans + JRuby Development Notes (4)

Jruby on rails development to the application deployed to tomcat Environment windows XP jdk 6u12 jruby 1.2.0 rails 2.2.2 netbeans 6.5.1 tomcat 5.5 mysql 5 Upgrade to jruby 1.2.0 jruby not used netbean ...

rails authentication framework

ruby script \ plugin install-r 3072 http://svn.techno-weenie.net/projects/plugins/restful_authentication/

ruby transcoding problem

What will the world look unified coding problem, not a switch. A waste of time, the old code to think things went. str = "the captain in April Capitães de Abril" str = Iconv.iconv ( "gb ...

Ruby common errors and solutions

Ruby common errors and solutions (update ...) Above code, the implementation of the following two errors. Error 1: class / module name must be CONSTANT Solution: Module names should be capitalized the ...

Detailed description of the principle of Ajax

Ajax by the HTML, JavaScript ™ technology, DHTML and DOM composition, this method can be distinguished clumsy Web interface will be transformed into interactive Ajax applications. The author of this p ...

Rais_Writing_Index translator: Ragnarok @ Ruby Chinese community translation team

Translator: Ragnarok @ Ruby Chinese community translation team Reprint requests to retain the copyright information, rights reserved! writing / index.html Use Spec:: Ralis the preparation of sample in ...

Broken free weekly Rails (6)

1. Layout For each controller can customize their own layout. At the same time, layout is nested relations: controller nested layout in the application layout. 2. Cache_classes Why development environ ...

Using ruby to expand their network

Ruby wrote a sns of the spider to expand connections to the school as an example: Sleep, and tomorrow morning to see what gains ~

Netbeans + JRuby Development Notes (2)

the number of ruby and char conversion In fact, there is no ruby type of char, if obtained directly 65.to_s only 65, want to be A, then so 65.chr Write this in the encryption and decryption algorithm ...

The success of the first test RoR

The success of the first test RoR Steps: First install ruby Address: http://rubyinstaller.rubyforge.org The second installation of rails gem ruby software management package gem install rails - includ ...

Step-by-step learning Ruby (II): variables, constants

In this paper, the contents of Variable Variable scope Pseudo-variable Constant First, variables 1. Without specifying the type of variable definition

Step-by-step learning Ruby (c): Ruby code Notes

In this paper, the contents of Single notes Multi-line Notes Special treatment Documentation Notes A single note # At the beginning, with # at the beginning until the end of the contents of the Bank a ...

Step-by-step learning Ruby (IV): Ruby Standard type

Ruby, including the number of standard types (Numeric), string (String), range (Range), as well as regular expressions (Regexp). Digital String Interval Regular Expressions Digital Ruby's figures ...

Step-by-step learning Ruby (5): Class, Module, Object, Kernel relationship

1. Class, Module, Object, Kernel relationship Ruby we can see, we can directly write puts, print and so on, feeling like a command verb, like this and we say that all of the Ruby object in a bit of co ...

Step-by-step learning Ruby (f): This method is the definition and call

First, the definition of methods Process approach Although it is a pure Ruby object-oriented language, but it allows us to process-oriented approach to use, we defined a way, we can directly use, faci ...

Step-by-step learning Ruby (7): mathematical expression

We know that in the bottom of the computer is completely based on the data, we have prepared procedures for operation data. Expression is understood to be the number of computers, operator of the join ...

Step-by-step learning Ruby (9): Ruby Regular Expression (I)

Recommend a first-line Ruby regular expression editor http://www.rubular.com/ Ruby's regular expressions of "/ /" as the constructor. Expression of the target returns a RegExp. General r ...

Step-by-step learning Ruby (10): Ruby Regular Expression (Part Two)

The content of this article: Greedy and non-greedy quantifier quantifier Anchor That forward-looking Modifiers With the string is converted Regular expressions commonly used local First, the greedy an ...

Step-by-step learning Ruby (11): Control statements

A comparison statement Most other languages, here the attention of <=> Comparison is mainly used to determine the return to true, & & and, | | or Second, the conditions of modification o ...

Step-by-step learning Ruby (12): Ruby Class

First, the definition of categories, examples of methods of class Second, specific object In Ruby, we can separate the definition of an object method Third, re-defined methods As can be seen from the ...

Step-by-step learning Ruby (14): self and Scope

First, the default is the current object or self In order to know which is the current object, we must know the context of the current 1, top-level object self 2, classes and modules in the self 3, ex ...

Step-by-step learning Ruby (16): Symbol

First, the definition of symbols Ruby Built-category symbol is an example of Symbol, which is the leading symbol of the colon. : a : person : "Hello World" Second, the string could be conver ...

Ruby First China May 21 the General Assembly to convene in Shanghai to start registration

Ruby First China May 21 the General Assembly held in Shanghai from JavaEye and co-sponsored ShanghaionRails, this is a completely free, high-level Ruby General Assembly's first visit to China, Rub ...

Ruby Access Control

public methods, it can be the definition of the category and its sub-class visit can be categories and sub-class object to call the instance; protected method, it can be the definition of the category ...