First | Prev | Next | Last
Pages: 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
Print from irb to CUPS daemon
I have googled for this topic but cannot seem to find anything useful. I want to print a few things directly from an irb session to one of a number of networked printers that I have configured with CUPS. $ lpstat -v device for HPLj5N: socket://22.214.171.124:9100 device for NP4172: lpd://126.96.36.199/NP4172 dev... 27 Mar 2010 22:10
Last Call for Ruby Midwest Speakers
[Note: parts of this message were removed to make it a legal post.] With less than a week left, the Ruby Midwest Conference is still accepting speaker proposals through next Wednesday, March 31! Come join Yehuda Katz, Charles Nutter, and others in sharing your excitement, experience, and expertise with fellow ... 25 Mar 2010 14:57
Threading an email queueing system
I needed an email queueing system for a project I am writing. The script below runs every minute via a cronjob on one of my servers. I am using a table in mysql to keep track of the number of email bot threads to spawn and their current state. They need to be threaded(or at least run concurrently) since some... 25 Mar 2010 14:57
how to revise the programm to analyze web?
the following programme can run successfully,i can get a table require 'hpricot' require 'open-uri' doc = Hpricot(open('http://webbbs.gamer.com.tw/board.php?brd=Chat&p=1')) tab = (doc/'table[@class="ssize"]') (tab/'tr').each_with_index do |line,index| next if (index + 1) %2 == 0 (line/'td').each do |data| pri... 25 Mar 2010 11:27
WhiteBoard Class (for these Boids)
http://gist.github.com/343358 This seems to work with decent performance but I have little/no experience using some of these features - almost seems "too good to be true" to this old time programmer that spent days designing/testing linked lists in the old days.... its 40 lines of code that seems to have s... 26 Mar 2010 05:46
HI all in my application , i have 2 tables subjects and teachers. the relation is one to many. i have to display the subjects first and when i click on the subjects i have to display the teachers. and i have to add the new teacher to the teachers table by selecting the subject. how to do this -- Poste... 25 Mar 2010 13:46
Unit Testing : line by line ?
Hi everybody ! I would like to verify some properties in a method, line by line. For example: class Hello def initialize @a = "hi !" end def say_hi @b = "hi !" # checking here @b = "hello !" # another checking here end end We could imagine that we would like to verify t... 25 Mar 2010 23:10
Read & Write data on the web.
What do I need to read & write data from the web? I simply want to have something on my site to be like a variable $data, and my application can connect to the site and edit $data or other variables (or create new ones). Like... $data[id] = 500 etc... -- Posted via http://www.ruby-forum.com/. ... 25 Mar 2010 05:44
Hi all, i have an array contains no of elements. i want to concatinate 91 before every elemnt of array. example i have A= [234,456,raju] like this i want the out put arry tobe A=[91234,91456,91raju] like thissss i want to add 91 before every element how to do this -- Posted via http://www.ruby-forum.c... 29 Mar 2010 22:30
How to create an infinite enumerable of Times?
I want to be able to have an object extend Enumerable in Ruby to be an infinite list of Mondays (for example). So it would yield: March 29, April 5, April 12...... etc How can I implement this in Ruby? -- Posted via http://www.ruby-forum.com/. ... 25 Mar 2010 06:50