# Top

**URL:** https://www.ruby-forum.com/top.md?page=943

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 944

---

## [How can i count total days of particular month](https://www.ruby-forum.com/t/how-can-i-count-total-days-of-particular-month/160744)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 2\
**Last updated:** [February 19, 2009, 9:57am UTC](https://www.ruby-forum.com/t/how-can-i-count-total-days-of-particular-month/160744 "2009-02-19T09:57:33Z")

</div>

Hi , to all . Is there any idea in rails to count totoal days of month eg. 2008-5-01 total days =31

---

## [How to show error messages in pop up or confirm screen?](https://www.ruby-forum.com/t/how-to-show-error-messages-in-pop-up-or-confirm-screen/160094)

<div class="topic-metadata">

**Author:** [@adrianod](https://www.ruby-forum.com/u/adrianod)\
**Replies:** 2\
**Last updated:** [February 13, 2009, 11:47am UTC](https://www.ruby-forum.com/t/how-to-show-error-messages-in-pop-up-or-confirm-screen/160094 "2009-02-13T11:47:42Z")

</div>

I would like to show messages when the validation fails (must be number, cant be blank, etc) but not in the main page I would like to open a pop up or better yet put it in a confirm screen where user would read and t…

---

## [How to create PDF documents from MS word doc using Ruby](https://www.ruby-forum.com/t/how-to-create-pdf-documents-from-ms-word-doc-using-ruby/155662)

<div class="topic-metadata">

**Author:** [@talib](https://www.ruby-forum.com/u/talib)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 7:43am UTC](https://www.ruby-forum.com/t/how-to-create-pdf-documents-from-ms-word-doc-using-ruby/155662 "2008-12-16T07:43:46Z")

</div>

Hi Experts, Could you please tell me how to create PDF documents from MS word doc using Ruby? I have no. of documents (Word Files) which I need to convert to .PDF. TIA, Talib H.

---

## [wxRuby error: Image file is not of type 9](https://www.ruby-forum.com/t/wxruby-error-image-file-is-not-of-type-9/151201)

<div class="topic-metadata">

**Author:** [@ramo](https://www.ruby-forum.com/u/ramo)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 1:35am UTC](https://www.ruby-forum.com/t/wxruby-error-image-file-is-not-of-type-9/151201 "2008-11-12T01:35:38Z")

</div>

Hello I’m having problems with rhis error, I couldnt found the solution (or even mention) on the internet I’m doing a toolbar, called @toolBarPrincipal, then I add the tool,and finally the #realize() method. This er…

---

## [Fckeditor with version 5.0.3](https://www.ruby-forum.com/t/fckeditor-with-version-5-0-3/139611)

<div class="topic-metadata">

**Author:** [@Ed\_Davey](https://www.ruby-forum.com/u/Ed_Davey)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/fckeditor-with-version-5-0-3/139611 "2008-06-05T15:08:08Z")

</div>

Hi there, Firstly, I am really impressed with v5, loads of great new features and feels much snappier also. My clients seem to love FCKeditor, so I’d like to get it working properly on a current job. At present on b…

---

## [FILEUTILS cp/cp\_r rm/rm\_r on Windows XP](https://www.ruby-forum.com/t/fileutils-cp-cp-r-rm-rm-r-on-windows-xp/133375)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [March 31, 2008, 4:15am UTC](https://www.ruby-forum.com/t/fileutils-cp-cp-r-rm-rm-r-on-windows-xp/133375 "2008-03-31T04:15:37Z")

</div>

I cannot seem to get these commands to work as expected in Windows XP pro SP2. Given this task :update do FileUtils.cp\_r File.join(File.dirname(FILE), ‘views/xyz/’), File.join(File.dirname(FILE), ‘…/…/…/app/views’) …

---

## [Patch for X-SendFile on Windows](https://www.ruby-forum.com/t/patch-for-x-sendfile-on-windows/118253)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/patch-for-x-sendfile-on-windows/118253 "2007-10-25T23:24:04Z")

</div>

A new TRAC entry with patch has been added (initially for Camping) to allow X-SendFile on Windows to use DirHandler to send files on drives other than the current drive, if the DirHandler base path is “/” (which is th…

---

## [Viewing some links!](https://www.ruby-forum.com/t/viewing-some-links/107586)

<div class="topic-metadata">

**Author:** [@feduz](https://www.ruby-forum.com/u/feduz)\
**Replies:** 2\
**Last updated:** [June 23, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/viewing-some-links/107586 "2007-06-23T19:19:11Z")

</div>

Hello everyone hope u r doing greate… Im a almost three weeks old in RoR and ive a simple problem which i could find an answer for! Ill tell first a bit about the project im trying to do: Im making a tool for a Team …

---

## [How to integrate video flash player into the rails app](https://www.ruby-forum.com/t/how-to-integrate-video-flash-player-into-the-rails-app/93003)

<div class="topic-metadata">

**Author:** [@arjun\_ghosh](https://www.ruby-forum.com/u/arjun_ghosh)\
**Replies:** 2\
**Last updated:** [April 26, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/how-to-integrate-video-flash-player-into-the-rails-app/93003 "2007-04-26T16:57:50Z")

</div>

Hi, How to integrate video flash player into the rails app. I have to load some video to my site and play them using a flash player JW Player: End-to-End Solution for Streaming & Monetizing Video. can any point in co…

---

## [Using engine technology to bring back productization](https://www.ruby-forum.com/t/using-engine-technology-to-bring-back-productization/54383)

<div class="topic-metadata">

**Author:** [@jeffl](https://www.ruby-forum.com/u/jeffl)\
**Replies:** 2\
**Last updated:** [March 4, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/using-engine-technology-to-bring-back-productization/54383 "2006-03-04T15:47:01Z")

</div>

I was really happy to find somebody had developed a way to productize applications (Peak Obsession) before engines came around. Since then they’ve become out-of-date, but it seems like the engines code would be a goo…

---

## [502 errors and request\_time](https://www.ruby-forum.com/t/502-errors-and-request-time/243527)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 8:40am UTC](https://www.ruby-forum.com/t/502-errors-and-request-time/243527 "2015-12-02T08:40:59Z")

</div>

Hi: I’ve found 2 kinds of 502 errors in my server: connection reset by peer, it happens as request\_time reach to 10s. connection timeout, it happens as request\_time reach to 3s. Server is: centos , kernel(2.6.32) p…

---

## [GNU Radio Companion QT GUI Window Quit Immediately](https://www.ruby-forum.com/t/gnu-radio-companion-qt-gui-window-quit-immediately/233946)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 1, 2015, 3:27pm UTC](https://www.ruby-forum.com/t/gnu-radio-companion-qt-gui-window-quit-immediately/233946 "2015-02-01T15:27:53Z")

</div>

Hi, I am new to GNU Radio, so I built a FM receiver to get started on the journey. I created the following .grc file, and when I clicked \<\>, I saw the QT GUI window pop up and exit immediately. The sound came out on…

---

## [Callback function called twice](https://www.ruby-forum.com/t/callback-function-called-twice/226977)

<div class="topic-metadata">

**Author:** [@Nemanja\_S](https://www.ruby-forum.com/u/Nemanja_S)\
**Replies:** 7\
**Last updated:** [July 27, 2013, 9:34am UTC](https://www.ruby-forum.com/t/callback-function-called-twice/226977 "2013-07-27T09:34:57Z")

</div>

Hi again GNURADIOers, I have a set member function which is also used as a callback from GRC. It looks like this: void test\_file\_sink::set\_sensitivity(double milisecond) { d\_n\_samples = (unsigned int)(milisecond\*…

---

## [White space sensing efforts](https://www.ruby-forum.com/t/white-space-sensing-efforts/184510)

<div class="topic-metadata">

**Author:** [@alexanderl](https://www.ruby-forum.com/u/alexanderl)\
**Replies:** 1\
**Last updated:** [July 2, 2012, 2:10pm UTC](https://www.ruby-forum.com/t/white-space-sensing-efforts/184510 "2012-07-02T14:10:04Z")

</div>

Hi everyone! I’ve set up my USRP1 with 2 WBX, a dipole antenna - originally for FM radio - connected to one WBX, and a 450 MHz omni antenna to the other WBX. The connected PC is running Ubuntu 9.10 x86\_64, build depen…

---

## [Problems installing with ruby 1.9 os x](https://www.ruby-forum.com/t/problems-installing-with-ruby-1-9-os-x/209281)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [August 12, 2011, 9:02am UTC](https://www.ruby-forum.com/t/problems-installing-with-ruby-1-9-os-x/209281 "2011-08-12T09:02:16Z")

</div>

Hi! I get this when I use the main ‘wxruby’ package: /Users/inspire/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site\_ruby/1.9.1/rubygems/custom\_require.rb:36:in \`require’: dlopen(/Users/inspire/.rvm/gems/ruby-1.9.2-p180@new…

---

## [Rdoc 3.6 Released](https://www.ruby-forum.com/t/rdoc-3-6-released/206959)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [May 20, 2011, 5:56pm UTC](https://www.ruby-forum.com/t/rdoc-3-6-released/206959 "2011-05-20T17:56:29Z")

</div>

rdoc version 3.6 has been released! RDoc Project Page: GitHub - rdoc/rdoc: RDoc produces HTML and online documentation for Ruby projects. RDoc includes the rdoc and ri tools for generating and displaying online documen…

---

## [How to enable production enviornment in RoR 2.3.5](https://www.ruby-forum.com/t/how-to-enable-production-enviornment-in-ror-2-3-5/206025)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [April 20, 2011, 7:57pm UTC](https://www.ruby-forum.com/t/how-to-enable-production-enviornment-in-ror-2-3-5/206025 "2011-04-20T19:57:44Z")

</div>

I want to enable production enviornment for my appication.The content of database.yml file is as SQLite version 3.x gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: mysql database: amr…

---

## [Wxmediactrl has no output on windows vista & seven](https://www.ruby-forum.com/t/wxmediactrl-has-no-output-on-windows-vista-seven/185748)

<div class="topic-metadata">

**Author:** [@Alex\_Beeck](https://www.ruby-forum.com/u/Alex_Beeck)\
**Replies:** 1\
**Last updated:** [January 28, 2011, 5:26pm UTC](https://www.ruby-forum.com/t/wxmediactrl-has-no-output-on-windows-vista-seven/185748 "2011-01-28T17:26:57Z")

</div>

Hi, I’ve just tried installing ruby + wxruby from the following installers and in every single one, the wxruby sample media/mediactrl.rb doesn’t do anything after loading an mp3 file under windows vista and windows se…

---

## [Editing page ui's](https://www.ruby-forum.com/t/editing-page-uis/200000)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [December 7, 2010, 4:08am UTC](https://www.ruby-forum.com/t/editing-page-uis/200000 "2010-12-07T04:08:03Z")

</div>

I followed a tutorial at http://blazingcloud.net/2009/11/22/radiant-cms-custom-user-permissions/ to help me figure out how to modify the admin UI through an extensions like so: admin.page.index.add :node, ‘remove\_co…

---

## [When {integer:0} \<\> 0?](https://www.ruby-forum.com/t/when-integer-0-0/186340)

<div class="topic-metadata">

**Author:** [@richardfairhurst](https://www.ruby-forum.com/u/richardfairhurst)\
**Replies:** 7\
**Last updated:** [April 5, 2010, 7:05pm UTC](https://www.ruby-forum.com/t/when-integer-0-0/186340 "2010-04-05T19:05:36Z")

</div>

Greetings, folks! This one will be so obvious to you all, but it has had me baffled for hours. (Script appended below.) Please enlighten me! Thank you! Richard F. the following is called with: do shell script “arch…

---

## [Find.find, limited recursion](https://www.ruby-forum.com/t/find-find-limited-recursion/175576)

<div class="topic-metadata">

**Author:** [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Replies:** 7\
**Last updated:** [September 16, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/find-find-limited-recursion/175576 "2009-09-16T21:55:59Z")

</div>

Hi all, I’m working on a script that’s currently using Find.find to process a complete directory tree of files and directories … .however I needed specific behavior, and I’m still fairly new to this… Basically it wor…

---

## [Picture upload](https://www.ruby-forum.com/t/picture-upload/173895)

<div class="topic-metadata">

**Author:** [@maniga](https://www.ruby-forum.com/u/maniga)\
**Replies:** 7\
**Last updated:** [August 18, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/picture-upload/173895 "2009-08-18T13:16:04Z")

</div>

Hi everybody! I’m new in programming Ruby on Rails, and I have a big problem with a picture upload. I like to save thumbnails in the directory structure and save the image name in the database. So that’s what I’ve do…

---

## [Multi-select category listbox](https://www.ruby-forum.com/t/multi-select-category-listbox/151285)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 1\
**Last updated:** [October 19, 2008, 10:33pm UTC](https://www.ruby-forum.com/t/multi-select-category-listbox/151285 "2008-10-19T22:33:22Z")

</div>

Hi, on to the final bit of my blogging engine and would really appreciate a pointer in the right direction. With each article they can be associated with multiple categories, so inside the admin panel I need to someho…

---

## [Code for connecting to SQL Server?](https://www.ruby-forum.com/t/code-for-connecting-to-sql-server/136927)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 7\
**Last updated:** [May 8, 2008, 1:15am UTC](https://www.ruby-forum.com/t/code-for-connecting-to-sql-server/136927 "2008-05-08T01:15:48Z")

</div>

Hi, I want to connect to my SQL Server DB through ruby code. Searched on the connection and was provided some steps like: Save the latest source distribution of ruby-dbi and copy the file ADO.rb to X:/ruby/lib/rub…

---

## [Older version of rails -- Unknown action error](https://www.ruby-forum.com/t/older-version-of-rails-unknown-action-error/130386)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [February 29, 2008, 11:08am UTC](https://www.ruby-forum.com/t/older-version-of-rails-unknown-action-error/130386 "2008-02-29T11:08:38Z")

</div>

Hi, I’m using Rails 1.2.3 (constraint of the hosting company). I’m getting this error Unknown action No action responded to subscriber upon visiting http://mydomain.com/super\_admin/subscriber/search I have these f…

---

## [Mr Bones 1.3.2](https://www.ruby-forum.com/t/mr-bones-1-3-2/128183)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 7\
**Last updated:** [February 9, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/mr-bones-1-3-2/128183 "2008-02-09T20:00:19Z")

</div>

== Mr Bones \<http://codeforpeople.rubyforge.org/bones\> the “Oooh, Pretty Colors!!” release Mr Bones is a handy tool that builds a skeleton for your Ruby projects. The skeleton contains some starter code and a collect…

---

## [How to edit a file without loading it all into memory](https://www.ruby-forum.com/t/how-to-edit-a-file-without-loading-it-all-into-memory/119745)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 7\
**Last updated:** [November 9, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/how-to-edit-a-file-without-loading-it-all-into-memory/119745 "2007-11-09T22:42:08Z")

</div>

I need to change the texture paths in maya files. The lines are easy to find with grep, and I’m able to create the new line easily enough, but how can I do this without holding the entire file into memory? The files…

---

## [HTML Parser: Which one is better?](https://www.ruby-forum.com/t/html-parser-which-one-is-better/105573)

<div class="topic-metadata">

**Author:** [@gsofhon](https://www.ruby-forum.com/u/gsofhon)\
**Replies:** 7\
**Last updated:** [June 2, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/html-parser-which-one-is-better/105573 "2007-06-02T21:35:34Z")

</div>

I’m new to Ruby and need to parse some web pages. I googled “ruby HTML parser” and have found several parser avaliable. They all seem good and I’m wondering which one is better for me since I’ll have to deal with many…

---

## [Ssl xml rpc](https://www.ruby-forum.com/t/ssl-xml-rpc/83198)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 7\
**Last updated:** [January 25, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/ssl-xml-rpc/83198 "2007-01-25T20:55:50Z")

</div>

I need to make remote procedure calls to a server that has a non-standard RPC protocol. It’s basically RPC but with extra types, no required message length declaration and it’s all done over ssl. I have a working vers…

---

## [I need help to connect Postgres and Ruby on Rails Please](https://www.ruby-forum.com/t/i-need-help-to-connect-postgres-and-ruby-on-rails-please/78319)

<div class="topic-metadata">

**Author:** [@juan](https://www.ruby-forum.com/u/juan)\
**Replies:** 7\
**Last updated:** [December 8, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/i-need-help-to-connect-postgres-and-ruby-on-rails-please/78319 "2006-12-08T14:58:28Z")

</div>

Hello to everyone, I have a problem that is giving me a headache, and trying to do a project in Ruby on Rails and I need to connect with a Data Base that is en Postgres, the truth is that I didnâ€™t think that it was …

---

## [Routing Error](https://www.ruby-forum.com/t/routing-error/73255)

<div class="topic-metadata">

**Author:** [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Replies:** 7\
**Last updated:** [November 22, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/routing-error/73255 "2006-11-22T21:43:49Z")

</div>

Hi guys, I’m experiencing an annoying problem that I’ve hit a brick wall on. Basically I’m going through the Prag.Programmers Rails book and have got to building the depot application. I’ve set up mySQL ok and rails…

---

## [Polymorphic relation question](https://www.ruby-forum.com/t/polymorphic-relation-question/60078)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 7\
**Last updated:** [May 20, 2006, 12:29pm UTC](https://www.ruby-forum.com/t/polymorphic-relation-question/60078 "2006-05-20T12:29:28Z")

</div>

I am trying to get polymorphic relations to work for my app. What I am trying to do is explained by this picture http://iroll.org/code/ I can’t figure out the code for in the controller to create a new phone\_number a…

---

## [Updating abstract classes](https://www.ruby-forum.com/t/updating-abstract-classes/94251)

<div class="topic-metadata">

**Author:** [@valdar](https://www.ruby-forum.com/u/valdar)\
**Replies:** 7\
**Last updated:** [April 27, 2006, 3:43am UTC](https://www.ruby-forum.com/t/updating-abstract-classes/94251 "2006-04-27T03:43:38Z")

</div>

This is more C++ than dsp - this compiles but segfaults: atsc\_equalizer.h: class atsc\_equalizer; protected: atsci\_equalizer \*d\_equalizer; atsc\_equalizer.cc: // peform the actual equalization d\_equalizer-\>filte…

---

## [Functions scope](https://www.ruby-forum.com/t/functions-scope/89788)

<div class="topic-metadata">

**Author:** [@Mirek](https://www.ruby-forum.com/u/Mirek)\
**Replies:** 7\
**Last updated:** [March 29, 2006, 1:03pm UTC](https://www.ruby-forum.com/t/functions-scope/89788 "2006-03-29T13:03:59Z")

</div>

class C def open() # how to call global open function from here? end end

---

## [Regex trick](https://www.ruby-forum.com/t/regex-trick/101391)

<div class="topic-metadata">

**Author:** [@Alain\_FELER](https://www.ruby-forum.com/u/Alain_FELER)\
**Replies:** 7\
**Last updated:** [February 7, 2006, 10:46pm UTC](https://www.ruby-forum.com/t/regex-trick/101391 "2006-02-07T22:46:23Z")

</div>

I want to replace all ’ by ’ ? (I need it to do inserts in mysql). s = “j’ai” s.gsub!(/’/,’’’) p s ==\> gives j’ai and not j’ai as I want Thanks for help.

---

## [\[ANN\] Family Connection 1.0](https://www.ruby-forum.com/t/ann-family-connection-1-0/56149)

<div class="topic-metadata">

**Author:** [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Replies:** 7\
**Last updated:** [January 7, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/ann-family-connection-1-0/56149 "2006-01-07T21:40:21Z")

</div>

This is a follow-up announcement from the 0.9 release. There are no major changes, but this release marks a downloadable (tgz) file as well as a promotional website, a demo application and screenshots. Family Connect…

---

## [Adding record with has\_many relationship .with dynamic column\_name](https://www.ruby-forum.com/t/adding-record-with-has-many-relationship-with-dynamic-column-name/242034)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [May 22, 2015, 9:54am UTC](https://www.ruby-forum.com/t/adding-record-with-has-many-relationship-with-dynamic-column-name/242034 "2015-05-22T09:54:29Z")

</div>

I know that we can add records like record.posts \<\< Post.find(1); but how can add the same Post.find(1) record if I have a variable that contains the name “posts” I have something like this column\_name = “posts” r…

---

## [Help needed NGINX reverse proxy to NODE.JS](https://www.ruby-forum.com/t/help-needed-nginx-reverse-proxy-to-node-js/246102)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [August 27, 2013, 7:15pm UTC](https://www.ruby-forum.com/t/help-needed-nginx-reverse-proxy-to-node-js/246102 "2013-08-27T19:15:15Z")

</div>

Hi, I’ve tried this with NGINX 1.4.1-1ppa1~precise and node v0.10.17 and just can’t get it to work. What I’ve tried / what happens : (a) Yes, I have tested this direct between client code and node listening on 0.0.0…

---

## [Converting Unix time to Ruby time](https://www.ruby-forum.com/t/converting-unix-time-to-ruby-time/225617)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [January 19, 2013, 12:42am UTC](https://www.ruby-forum.com/t/converting-unix-time-to-ruby-time/225617 "2013-01-19T00:42:36Z")

</div>

I’ve been passed an integer: 1325376000 … which is the number of seconds since midnight, Jan 1, 1970 IN A SPECIFIC TIME ZONE (in this case, Pacific). Assuming I know the time zone (I actually don’t – see PS below), …

---

## [Correct use of =~ to match a string in a file?](https://www.ruby-forum.com/t/correct-use-of-to-match-a-string-in-a-file/217230)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 24, 2012, 7:53pm UTC](https://www.ruby-forum.com/t/correct-use-of-to-match-a-string-in-a-file/217230 "2012-02-24T19:53:20Z")

</div>

Hiya All, Back again with more noobie questions ;} I’ve been playing with some basics of opening and writing to files. But have come up stuck trying to search inside a given file. I have small method for matching a s…

---

## [GSM not detecting station, USRP1, FA-SY1, WBX, DBS](https://www.ruby-forum.com/t/gsm-not-detecting-station-usrp1-fa-sy1-wbx-dbs/207974)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 7, 2011, 8:25pm UTC](https://www.ruby-forum.com/t/gsm-not-detecting-station-usrp1-fa-sy1-wbx-dbs/207974 "2011-06-07T20:25:24Z")

</div>

Hello list, I’m having a lot of trouble here while trying to make openBTS work with my USRP1 to play with GSMs. First of all, a little description of my setup: Software: openbts-2.6.0Mamou gnuradio v3.4.0git-130-g…

---

## [Autodestruction d'un record](https://www.ruby-forum.com/t/autodestruction-dun-record/179951)

<div class="topic-metadata">

**Author:** [@titinux](https://www.ruby-forum.com/u/titinux)\
**Replies:** 3\
**Last updated:** [December 8, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/autodestruction-dun-record/179951 "2009-12-08T17:02:58Z")

</div>

Bonjour, J’ai un modÃ¨le reprÃ©sentant des lignes de stock avec une ressource associÃ© Ã une quantitÃ©. On peut modifier la quantitÃ© en stock uniquement par diffÃ©rence (on agit pas sur la quantitÃ© mais en ajoutant…

---

## [Block reading from socket and STDIN](https://www.ruby-forum.com/t/block-reading-from-socket-and-stdin/197217)

<div class="topic-metadata">

**Author:** [@massimiliano](https://www.ruby-forum.com/u/massimiliano)\
**Replies:** 3\
**Last updated:** [February 28, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/block-reading-from-socket-and-stdin/197217 "2009-02-28T21:42:10Z")

</div>

Hi I am pretty new in ruby, may be this topic has already been discussed here. But I start running out of resources. I am on a Windows XP PC and I am using ruby186-26. I am writing a client/Multiplexing Server socket …

---

## [Aplicacion de gestion problema de impresion](https://www.ruby-forum.com/t/aplicacion-de-gestion-problema-de-impresion/156839)

<div class="topic-metadata">

**Author:** [@oderas](https://www.ruby-forum.com/u/oderas)\
**Replies:** 3\
**Last updated:** [January 5, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/aplicacion-de-gestion-problema-de-impresion/156839 "2009-01-05T21:10:54Z")

</div>

Hola !!! Tengo hecha una aplicacion de gestion en la cual uso fpdf para imprimir unas etiquetas y unos formularios. El problema es que tengo 2 impresoras diferentes de las cuales una es la predeterminada del sistema…

---

## [Selecting current page in menu](https://www.ruby-forum.com/t/selecting-current-page-in-menu/147267)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 3\
**Last updated:** [August 30, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/selecting-current-page-in-menu/147267 "2008-08-30T16:48:13Z")

</div>

I have this as my menu. I need to identify which is the current page so I can set the class=“here” How can I do that ? Home Shop Projects Gallery About Me Contact Us

---

## [Plugin to transfer from SQLite to MySQL](https://www.ruby-forum.com/t/plugin-to-transfer-from-sqlite-to-mysql/136121)

<div class="topic-metadata">

**Author:** [@christoforever](https://www.ruby-forum.com/u/christoforever)\
**Replies:** 3\
**Last updated:** [August 21, 2008, 6:27am UTC](https://www.ruby-forum.com/t/plugin-to-transfer-from-sqlite-to-mysql/136121 "2008-08-21T06:27:55Z")

</div>

Hi guys, I created this little plugin. It’s really just a simple rake task. Basically it allows you to xfer a SQLite DB directly to a MySQL DB and vice-versa. Do not pass YAML, do not waste 200 seconds. :wink: I’ve p…

---

## [\#define like with ruby](https://www.ruby-forum.com/t/define-like-with-ruby/143001)

<div class="topic-metadata">

**Author:** [@jyrppa](https://www.ruby-forum.com/u/jyrppa)\
**Replies:** 3\
**Last updated:** [July 14, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/define-like-with-ruby/143001 "2008-07-14T15:55:33Z")

</div>

My code snippet looks like: … testdata\[current\_line + 1\] … … I would like to replace current\_line + 1 with something more desciptive like NEXT\_LINE. In C I would do: #define NEXT\_LINE current\_line + 1 Is there so…

---

## [Is there a way to freeze Rails \_after\_ the fact?](https://www.ruby-forum.com/t/is-there-a-way-to-freeze-rails-after-the-fact/138608)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 3\
**Last updated:** [May 26, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-freeze-rails-after-the-fact/138608 "2008-05-26T14:36:28Z")

</div>

I’ve got a managed VPS (the hosting service provides support) and they just did an unannounced upgrade to Rails 2.0. My app is 1.2.x. Is there a way to freeze Rails and the other gems my app needs to a prior version…

---

## [Multiple nitro apps on 1 vps](https://www.ruby-forum.com/t/multiple-nitro-apps-on-1-vps/133343)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 30, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/multiple-nitro-apps-on-1-vps/133343 "2008-03-30T15:10:41Z")

</div>

Hello. It recently bought a VPS. It’s alfa period will start in a few days. I want to host nitro on it of course. but my vps is like loads of cpu power shared with not so many others and guarantied 512 mb ram. (OS i…

---

## [ON DUPLICATE KEY update counter](https://www.ruby-forum.com/t/on-duplicate-key-update-counter/127507)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 0\
**Last updated:** [January 29, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/on-duplicate-key-update-counter/127507 "2008-01-29T22:27:23Z")

</div>

When my DB insert into MySQL is denied due to a unique field that is already populated, I want to update the field called “counter” for that record so I know how many times a duplicate record tried to perform the inse…

[Previous page](https://www.ruby-forum.com/top.md?page=942&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=944&per_page=50)
