# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=1028

[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:** 1029

---

## [Sqlite3 in JRuby 1.1.2](https://www.ruby-forum.com/t/sqlite3-in-jruby-1-1-2/139236)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 9\
**Last updated:** [September 2, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/sqlite3-in-jruby-1-1-2/139236 "2008-09-02T12:18:32Z")

</div>

I notice that the new release adds support for Sqlite3: “JRUBY-2438 Support SQLite3 using JRuby” I’ve tried a few things but can’t seem to get this working. Has anyone got some step-by-step instructions? Thanks… V…

---

## [Re: Simple, simple socket question](https://www.ruby-forum.com/t/re-simple-simple-socket-question/147447)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 2\
**Last updated:** [September 2, 2008, 11:46am UTC](https://www.ruby-forum.com/t/re-simple-simple-socket-question/147447 "2008-09-02T11:46:44Z")

</div>

This works on my system (Just brings back 128 bytes HTTP header). (Note the extra ‘\\n’… That’s one too many \\n’s now. There’s one already at the end of Host: www.google.com\\n, so you only need one more to give the b…

---

## [Optimize bigdivrem Part 1](https://www.ruby-forum.com/t/optimize-bigdivrem-part-1/147393)

<div class="topic-metadata">

**Author:** [@TOYOFUKU\_Chikanobu](https://www.ruby-forum.com/u/TOYOFUKU_Chikanobu)\
**Replies:** 4\
**Last updated:** [September 2, 2008, 11:21am UTC](https://www.ruby-forum.com/t/optimize-bigdivrem-part-1/147393 "2008-09-02T11:21:57Z")

</div>

e$BK-J!$G$9!#e(B e$B$$$/$D$+e(B bigdivrem e$B$N:GE,2=0F$,$"$j$^$9!#e(B e$B$^$:$O8!\>Z$,0lHV4JC1$=$&$J$d$D$+$ie(B — bignum.c.org +++ bignum.c @@ -1693,20 +1693,27 @@ xds = BDIGITS(x); if (ny == 1) { dd = yds\[0\]; …

---

## [Faster Bignum#\*](https://www.ruby-forum.com/t/faster-bignum/123544)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 4\
**Last updated:** [September 2, 2008, 10:57am UTC](https://www.ruby-forum.com/t/faster-bignum/123544 "2008-09-02T10:57:12Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B Bignum#\* e$B$Ke(B FFT e$B$rMQ$$$?\>h;;$r\<BAu$7$F$\_$^$7$?!#e(B 10 e$B?J$Ge(B 100000 e$B7e0J\>e$"$k$h$&$J5pBg$J@0?t$N\>h;;$,B.$/$J$j$^$9!#e(B e$B$=$s$J\<{MW$O$J$$$G$7$g$&$+!#e(B $ cat …/test\_fft.rb …

---

## [Inline double quotes](https://www.ruby-forum.com/t/inline-double-quotes/147473)

<div class="topic-metadata">

**Author:** [@johdax](https://www.ruby-forum.com/u/johdax)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 10:23am UTC](https://www.ruby-forum.com/t/inline-double-quotes/147473 "2008-09-02T10:23:00Z")

</div>

hi, i’m searching for a way to remove inline double quotes in ruby, especially in a csv file. sth like “blabla “title” blbl”;“bla bla” should become “blabla ‘title’ blbl”;“bla bla” thanks in advance johnny

---

## [How can I exit with a message in ruby?](https://www.ruby-forum.com/t/how-can-i-exit-with-a-message-in-ruby/147467)

<div class="topic-metadata">

**Author:** [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Replies:** 3\
**Last updated:** [September 2, 2008, 9:31am UTC](https://www.ruby-forum.com/t/how-can-i-exit-with-a-message-in-ruby/147467 "2008-09-02T09:31:40Z")

</div>

hi guys ! does ruby have a die method ? or is it there a method that displays a string before exiting ?

---

## [Open3 and ssh](https://www.ruby-forum.com/t/open3-and-ssh/147475)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 0\
**Last updated:** [September 2, 2008, 9:05am UTC](https://www.ruby-forum.com/t/open3-and-ssh/147475 "2008-09-02T09:05:47Z")

</div>

I’m writing an app using RubyCocoa on MacOS X 10.4.11 which i want to implement a Pseudo-terminal connected to a remote host via ssh. When i test ssh from command line i get the waiting prompt and escape sequences, lo…

---

## [x86\_64$B4D6-$G(BMarshal.dump$B$NIT6q9g(B](https://www.ruby-forum.com/t/x86-64-b4d6-g-bmarshal-dump-b-nit6q9g-b/147407)

<div class="topic-metadata">

**Author:** [@Kouichi\_U](https://www.ruby-forum.com/u/Kouichi_U)\
**Replies:** 5\
**Last updated:** [September 2, 2008, 7:12am UTC](https://www.ruby-forum.com/t/x86-64-b4d6-g-bmarshal-dump-b-nit6q9g-b/147407 "2008-09-02T07:12:12Z")

</div>

NTTe$B%l%\>%J%s%H$N5mEg$H?=$7$^$9!#e(B x86\_64e$B4D6-$Ge(BMarshal.dump/loade$B$,$&$^$/F/$+$J$$8=\>\]$KAx6x$7$^$7$?$N$G!"Jse(B e$B9p$5$;$F$$$?$@$-$^$9!#e(B e$B:F8=%3!\<%I$r0J2\<$K\<($7$^$9!#K\\MhEy$7$$$O$:$Ne(Bobje$B$He(Bobj1e…

---

## [Most elegant way to 'reroute' Text widget events?](https://www.ruby-forum.com/t/most-elegant-way-to-reroute-text-widget-events/147463)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 2\
**Last updated:** [September 2, 2008, 5:56am UTC](https://www.ruby-forum.com/t/most-elegant-way-to-reroute-text-widget-events/147463 "2008-09-02T05:56:48Z")

</div>

After a couple of unsuccessful experiments, I’m afraid it’s time to ask the group. What I want to do is to use the text widget for display, but to have keyboard events processed solely by Ruby. I’ve so far been unsucc…

---

## [Tk questions](https://www.ruby-forum.com/t/tk-questions/147434)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 3\
**Last updated:** [September 2, 2008, 5:35am UTC](https://www.ruby-forum.com/t/tk-questions/147434 "2008-09-02T05:35:11Z")

</div>

In “bind\_remove\_all” (and many other commands), what is the required ‘context’ argument supposed to be. Thanks, Ken

---

## [Bug in JRuby? Or my problem?](https://www.ruby-forum.com/t/bug-in-jruby-or-my-problem/147417)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 3\
**Last updated:** [September 2, 2008, 3:56am UTC](https://www.ruby-forum.com/t/bug-in-jruby-or-my-problem/147417 "2008-09-02T03:56:24Z")

</div>

The following short bit of code: include Java class TextWindow \< javax.swing.JScrollPane include java.awt.event.KeyListener def initialize @text = javax.swing.JTextPane.new #@text.editable = false super(@text) se…

---

## [Changing intendation ruby/emacs-mode?](https://www.ruby-forum.com/t/changing-intendation-ruby-emacs-mode/147357)

<div class="topic-metadata">

**Author:** [@ssecorp](https://www.ruby-forum.com/u/ssecorp)\
**Replies:** 4\
**Last updated:** [September 2, 2008, 2:03am UTC](https://www.ruby-forum.com/t/changing-intendation-ruby-emacs-mode/147357 "2008-09-02T02:03:28Z")

</div>

emacs indents 2 chars only by defualt in ruby-mode. how can I change to 4?

---

## [Access to method in superclass](https://www.ruby-forum.com/t/access-to-method-in-superclass/146815)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 8\
**Last updated:** [September 2, 2008, 12:49am UTC](https://www.ruby-forum.com/t/access-to-method-in-superclass/146815 "2008-09-02T00:49:37Z")

</div>

LIKE ACCEDING TO THE METHOD " setSpeed" OF THE SUPERCLASS “Airplane”. Thak you

---

## [Ruby, GUI and Flex](https://www.ruby-forum.com/t/ruby-gui-and-flex/147408)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 3\
**Last updated:** [September 1, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/ruby-gui-and-flex/147408 "2008-09-01T23:17:42Z")

</div>

hi all is there a way to use a Flex GUI interface? thanks J

---

## [Command to clean the screen in IRB? (like when pressing "Ctrl+L")](https://www.ruby-forum.com/t/command-to-clean-the-screen-in-irb-like-when-pressing-ctrl-l/147445)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 1\
**Last updated:** [September 1, 2008, 10:39pm UTC](https://www.ruby-forum.com/t/command-to-clean-the-screen-in-irb-like-when-pressing-ctrl-l/147445 "2008-09-01T22:39:15Z")

</div>

Hi, I expect there is a command to clean the screen during an IRB session (in fact you can press Ctrl+L to do it, but I’m lookinf for a Ruby command). What is that command? thanks a lot.

---

## [Stripping non alphanumeric characters](https://www.ruby-forum.com/t/stripping-non-alphanumeric-characters/147441)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 2\
**Last updated:** [September 1, 2008, 10:08pm UTC](https://www.ruby-forum.com/t/stripping-non-alphanumeric-characters/147441 "2008-09-01T22:08:46Z")

</div>

I know this is a noob question. What would be the best / most efficient way to replace all non alphanumeric characters in a string? Thanks for your help.

---

## [Regex help, anyone?](https://www.ruby-forum.com/t/regex-help-anyone/147426)

<div class="topic-metadata">

**Author:** [@lazukars](https://www.ruby-forum.com/u/lazukars)\
**Replies:** 2\
**Last updated:** [September 1, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/regex-help-anyone/147426 "2008-09-01T21:22:23Z")

</div>

I’m making a syntax highlighter for ruby and i just need help with a bit of regex. I need to highlight function names (‘hlstring’) in strings such as: “def hlstring(lol, help)” “def hlstring (omg)” “def hlstring arg…

---

## [Ruby Certificate Program @ University of Washington This Fall](https://www.ruby-forum.com/t/ruby-certificate-program-university-of-washington-this-fall/147438)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/ruby-certificate-program-university-of-washington-this-fall/147438 "2008-09-01T20:47:17Z")

</div>

It is that time of year again! (yes, I’m a bit late posting this) There is a certificate course at the UW starting this fall. It is 3 quarters long starting at rubynewb, then rails/web development, then rubyjedi. no, …

---

## [Trouble with YAML::load](https://www.ruby-forum.com/t/trouble-with-yaml-load/147435)

<div class="topic-metadata">

**Author:** [@circlefusion](https://www.ruby-forum.com/u/circlefusion)\
**Replies:** 2\
**Last updated:** [September 1, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/trouble-with-yaml-load/147435 "2008-09-01T20:08:37Z")

</div>

I am still working through Beginning Ruby - From Novice to Professional and I’ve run into a snag with this code: Code that should save YAML data as the local variable yaml\_string and then convert it into an array of …

---

## [Looking for a regular pattern](https://www.ruby-forum.com/t/looking-for-a-regular-pattern/147385)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 22\
**Last updated:** [September 1, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/looking-for-a-regular-pattern/147385 "2008-09-01T20:07:26Z")

</div>

Which pattern represents any characters including space, \\t \\n?

---

## [Rush wish list musings](https://www.ruby-forum.com/t/rush-wish-list-musings/145927)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 6\
**Last updated:** [September 1, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/rush-wish-list-musings/145927 "2008-09-01T19:37:49Z")

</div>

Two things: In my mind, this general thread is somewhat ridiculous. It’s been going on for – what is it? – ten months now? It seems to be just a laundry list for things you want Ruby to do, whether they’re sensible …

---

## [Specifying a network interface, with a http get request](https://www.ruby-forum.com/t/specifying-a-network-interface-with-a-http-get-request/147113)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 12\
**Last updated:** [September 1, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/specifying-a-network-interface-with-a-http-get-request/147113 "2008-09-01T18:44:48Z")

</div>

Hi all, I’m fairly new to Ruby but have learnt a lot in the last month and am enjoying the diverse features it includes. My problem is, we have a machine with multiple IP addresses, eth0, eth0:0 eth0:1 … and I need to…

---

## [Core Date or no Date?](https://www.ruby-forum.com/t/core-date-or-no-date/147413)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [September 1, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/core-date-or-no-date/147413 "2008-09-01T17:49:40Z")

</div>

Is there a core Date class or not? $ irb Date =\> Date Date.instance\_methods(false) =\> \[\] Date.methods(false) =\> \[\] Date.private\_instance\_methods(false) =\> \[\] Huh? And the only documentation I can find…

---

## [A system call during gem installation?](https://www.ruby-forum.com/t/a-system-call-during-gem-installation/147415)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/a-system-call-during-gem-installation/147415 "2008-09-01T17:00:55Z")

</div>

Hi, Is it possibe to create a gem package that could include a system call to register a .dll? Thanks Aidy

---

## [Accessing instance variable](https://www.ruby-forum.com/t/accessing-instance-variable/147400)

<div class="topic-metadata">

**Author:** [@Mayuresh\_K](https://www.ruby-forum.com/u/Mayuresh_K)\
**Replies:** 4\
**Last updated:** [September 1, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/accessing-instance-variable/147400 "2008-09-01T16:49:31Z")

</div>

Hello, I did the following; class O @b = 0 def x=(a) @b = a end end o = O.new o.x = 1 I then tried to access b by doing; c = o.b but irb gave me the following error; NoMethodError: undefined method b' for #\<O…

---

## [Checking for 'nil' Class (not instance) variables?](https://www.ruby-forum.com/t/checking-for-nil-class-not-instance-variables/147414)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 6\
**Last updated:** [September 1, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/checking-for-nil-class-not-instance-variables/147414 "2008-09-01T16:36:52Z")

</div>

See below, what’s the proper way of checking for initialized class-variables ? Cheers John irb(main):031:0\> @nosuchvar.nil? =\> true irb(main):032:0\> @@nosuchvar.nil? NameError: uninitialized class variable @@nosuch…

---

## [Ruby SVN repo?](https://www.ruby-forum.com/t/ruby-svn-repo/147410)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 1\
**Last updated:** [September 1, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/ruby-svn-repo/147410 "2008-09-01T16:13:25Z")

</div>

Hello. Sorry for a question to which probably everyone knows the answer, but I seem to fail to find any official info. Is the Ruby core SVN repo publicly accessible? Do you have to register somewhere, or is anonymous …

---

## [Gsub html sanitizer](https://www.ruby-forum.com/t/gsub-html-sanitizer/147402)

<div class="topic-metadata">

**Author:** [@chelseas](https://www.ruby-forum.com/u/chelseas)\
**Replies:** 5\
**Last updated:** [September 1, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/gsub-html-sanitizer/147402 "2008-09-01T14:31:55Z")

</div>

I’m new to Ruby and a bit confused about how gsub works. I’ve read the documentation, searched ruby-forum, and tried numerous google searches, but can’t seem to figure out how to do something that should be simple. Th…

---

## [String, adding a numeric value to a part](https://www.ruby-forum.com/t/string-adding-a-numeric-value-to-a-part/147394)

<div class="topic-metadata">

**Author:** [@Mayuresh\_K](https://www.ruby-forum.com/u/Mayuresh_K)\
**Replies:** 2\
**Last updated:** [September 1, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/string-adding-a-numeric-value-to-a-part/147394 "2008-09-01T13:22:33Z")

</div>

Hello, Suppose there’s a variable called ‘a’ with a value = 1. Then I build a string “#{a} is really two”, which when printed gives “1 is really two”. How could I add a 1 to the a in that string to make it “2 is real…

---

## [Rails application on Tomcat with jdbcsqlite3 adapter](https://www.ruby-forum.com/t/rails-application-on-tomcat-with-jdbcsqlite3-adapter/147391)

<div class="topic-metadata">

**Author:** [@reis](https://www.ruby-forum.com/u/reis)\
**Replies:** 2\
**Last updated:** [September 1, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/rails-application-on-tomcat-with-jdbcsqlite3-adapter/147391 "2008-09-01T12:42:00Z")

</div>

I’m trying to deploy a rails application to Tomcat. I used Warbler, and then I deployed the application, but it gives me some problems with the jdbcsqlite3. This is the message I got from the Tomcat log files. org.jr…

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=1027)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=1029)
