390659-391933 subjects 391047-392810

^ RedCloth: Adding custom verbatim tag
390835 [sutniuq gmx.] I¡Çm using RedCloth for writing texts, it however doesn¡Çt know anything
390903 [transfire gm] Post this up on RecCloth's issues board:<div><br></div><div><a href="http://jgarber.lighthouseapp.com/projects/13054-redcloth/overview">http://jgarber.lighthouseapp.com/projects/13054-redcloth/overview</a><br></div><div><br></div><div><br></div>
390905 [sutniuq gmx.] I always thought that was only a bug tracker and general questions

^ [Ruby C] Using DATA_PTR in multiple methods
390841 [mattbastard ] I'm writing a Ruby extension in C to utilize a library (tsk3, aka. The
+ 390847 [hanmac gmx.d] your alloc method does not create an object, change
| 390859 [sylvester.ke] Is this a C++ extensions? I would be careful mixing new/delete and =
+ 390874 [admin tensor] This is similar to the issue of pointer and address of pointer.
  390906 [mattbastard ] These were very helpful suggestions.  You're right, the
  390907 [admin tensor] And don't forget to deallocate the struct myHandle too. :)

^ array to string conversion
390845 [erj514 gmail] I have an array called l that contains 161 lines of text. I created it
390850 [lw2011 sonic] Your code snippet will fail because it tries to assign global var

^ Http-_headers?
390848 [paradisaeida] Firefox sends Capitalized-Hyphenated.
390914 [drbrain segm] It doesn't matter.  HTTP headers are case-insensitive.
390916 [paradisaeida] Thanks Eric,

^ Hubeye gem updgrade
390849 [luke.gru gma] Hey, I've been working on a project that allows you to track

^ Sending F3 to telnet
390855 [asanramon ya] I have been trying to figure out how to send F3 key in net::telnet. I
390891 [echristopher] That would depend on the terminal emulation the other end is

^ C module calling ruby code cause cfp consistency error
390861 [bukowski.ada] I need some help with joining C code with Ruby.
+ 390870 [kim burgestr] Yes. You cannot call Ruby functions from a thread not created by Ruby. Wh=
+ 390901 [bukowski.ada] Really You explained a lot of things to me. I didn't know basic concepts

^ Persistent error: "String can't be coerced into Float"
390869 [windbreiz gm] I am totally puzzled by this application of the .to_f method. I have

^ redmine.ruby-lang.org MIA
390872 [keltia gmail] I have not seen any downtime announce so can anyone fix the redmine
390873 [sophrinix gm] Are you referring to http://redmine.ruby-lang.org ?

^ black magical hash element vivification
390876 [code apotheo] Ruby (1.9.3p0 to be precise, installed with RVM) is not behaving as I
+ 390877 [adam apresco] This isn't. Hash.new(Hash.new) != Hash.new { |h, k| h[k] = Hash.new }. The
| + 390878 [adam apresco] D'oh! Strike that, it's behaving as expected, it's just hidden beneath an
| | 390889 [code apotheo] That, for me, is *very* surprising behavior.  I would think that it
| + 390880 [jgabrielygal] Returns a new, empty hash. If this hash is subsequently accessed by a
| | 390882 [adam apresco] 2011/12/5 Jes=C3=BAs Gabriel y Gal=C3=A1n <jgabrielygalan@gmail.com>
| + 390887 [code apotheo] I figured out that Hash.new(Hash.new) used the same object for all of
+ 390879 [jgabrielygal] Using that Hash constructor, what you pass is the default value for a
  390890 [code apotheo] I find it rather surprising that assignment does not create something new
  390893 [jgabrielygal] =A0I
  390894 [josh.cheek g] 2011/12/5 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan@gmail.com>

^ Re: Using DATA_PTR in multiple methods
390881 [mattbastard ] No.  I'm attempting this in pure C.  The tsk library is written in cpp,

^ [ANN] Zbatery 4.1.2 - Rack HTTP server without a fork stuck in it
390886 [normalperson] Zbatery is an HTTP server for Rack applications on systems that either

^ [ANN] clogger 1.1.0 - configurable request logging for Rack
390896 [normalperson] Clogger is Rack middleware for logging HTTP requests.  The log format

^ Newbie: Understanding Throw/Catch
390899 [ankush_ganat] interesting (but not so useful=A0in real world=A0) concept of Ruby, i.e. ca=
390900 [josh.cheek g] You got this out of a book? I'd be hesitant to continue learning from it

^ Hashes - thanks!
390904 [wbrisett att] I wanted to thank everybody for putting me on the right track with the array

^ Developing Qt4 applications with Ruby 1.9.x
390909 [rcmitchell g] I am running KDE on 32-bit Linux Mint Debian Edition.  For several years no=
+ 390921 [stefano.croc] qtruby works perfectly for me with ruby 1.9.3, so the answer to your last
+ 390926 [shevegen lin] I cant help you much myself.
  390934 [rcmitchell g] It would be a shame, since Ruby and Qt seem made for each other.  If only=20

^ Ruby way to define binary
390910 [b1368810 lhs] I have some trouble. How can i define the binary of value in ruby? (I
+ 390911 [wbrisett att] Use match
+ 390915 [gilbertly gm] not sure I understand your question correctly, but Ruby does not offer
+ 390928 [shevegen lin] I myself patched class String and added a .to_bool method that turns
| 390929 [eule space.c] Why would you ever need to represent a false as the string 'false'?
+ 390931 [ryand-ruby z] You don't really need to. Everything in ruby has a "truthiness" to it =
+ 390932 [b1368810 lhs] I want to hear this ;) Thanks!

^ Which pcap (tcpdump) library to use?
390917 [andrewinfose] It seems that the pcap library has not been recently maintained, and so
391287 [code984265 g] I'd go for either two of the pcaprub gems imo.

^ WEB SURVEY about Ruby Community
390918 [transfire gm] Did any one else get this survey request?
+ 390919 [normalperson] Yeah, I told him I don't like web browsers, JavaScript or graphics
+ 390927 [shevegen lin] I did not get anything. But I am using only the Web Interface to the
+ 390935 [josh.cheek g] I didn't, maybe it's being marked as spam?
| + 390936 [adam apresco] I got one, but the email itself says that only a sample of the mailing list
| | 390937 [whitequark w] misunderstanding. It seems like a terminology clash, i.e. he has
| | 390941 [sutniuq gmx.] I got this mail as well, but didn't had yet time to do any survey. Is
| | 390943 [transfire gm] It seems okay. Some of the questions seem a bit odd, which is why I wanted=
| | 390944 [luislavena g] Most of the english seems results of Google Translate, most likely
| + 390945 [mike osdn.or] I did.
+ 391055 [mg100622 mit] I'm Masaru Nagai.
+ 391090 [andres.mrad ] wow, thanks god, i was thinking to myself this was some sort of spambot =
  391091 [mg100622 mit] Masaru Nagai is my real name.
  391141 [andres.mrad ] ake

^ [ANN] md2man 1.0.1 (was redcarpet-manpage)
390922 [sunaku gmail] md2man - write UNIX man pages in Markdown

^ [ANN] binman 2.0.0
390923 [sunaku gmail] binman - UNIX man pages for Ruby bin/ scripts

^ Rake question
390924 [mphoeppner g] Say I have a list of files (based on file extension), that all need to
+ 390933 [eldestdamphy] Actually what I would do in your position would be to create rules
+ 390962 [g.diemant gm] Put the transform task definition in front of your each loop.

^ Re: binman 2.0.0
390925 [shevegen lin] That screenshot looks GREAT.
+ 390938 [code apotheo] I do use manpages -- a *lot* -- and I think this is an excellent library.
| 390953 [sunaku gmail] Glad to hear that.  Please enjoy! :)
+ 390954 [sunaku gmail] binman load YOUR_BIN_SCRIPT | markdown > YOUR_WWW_PAGE.html

^ [Job] PHP+Ruby Web Developer London
390939 [job webat.co] We are looking for a talented web developer to work full time in our

^ Truncation using Pixels
390942 [thanuja_16 y] Is there any method available to truncate string based on Pixels in
390946 [jeremy bopp.] I'm not aware of any built-in method to do this, and I suspect it will
390992 [thanuja_16 y] Thanks Jeremy for the reply.
+ 390994 [astounding g] If you're rendering in a web browser, unless you're using some sort of
+ 390998 [hassan.schro] That's what CSS is for. Set a width on the containing element and use
+ 391173 [timr probo.c] This is simply impossible to do on the server side, in part because you

^ Viewing a script source loaded into the interpreter
390948 [promos burch] I've read about the SCRIPT_LINES__ hash being able hold the contents of
+ 390949 [hanmac gmx.d] i thought you joked because i test it...
+ 390950 [promos burch] I believe it also does not work for ruby scripts loaded via the

^ [ANN] terrible_timeout 0.1.0 - an alternative to timeout
390951 [normalperson] This module still sucks, don't use it without knowing its caveats.  Read
+ 390957 [ryand-ruby z] Read
+ 391007 [rubytalk2dav] Read

^ [ANN] minitest 2.9.0 Released
390956 [ryand-ruby z] minitest version 2.9.0 has been released!

^ [ANN] terrible_timeout 0.2.0 - an alternative to timeout
390958 [normalperson] Heh, I reread my own code before using it, too.

^ [ANN] TestR 14.1.1
390959 [sunaku gmail] TestR - Continuous testing tool for Ruby

^ remove newline characters in d anchors
390960 [pillay.mithu] i am working on this code where i need to list the files in a dir and
+ 390964 [shortcutter ] I think you want
+ 390967 [pillay.mithu] i just made the first 2 edits which u suggested and it worked  :)

^ Using any trick to omit () in constant lookup?
390961 [shevegen lin] I once had the idea of an abstracted UI language.
+ 390963 [g.diemant gm] Make a simple button wrapper class and put the logic from your Button
+ 390965 [b.candler po] What you are asking for is possible, simply by overriding the new
+ 390966 [hanmac gmx.d] or an idea, forgot your Button class, and override const_missing
| 390969 [shortcutter ] There is a much simpler solution
+ 390968 [ryand-ruby z] Don't convert the button instance. Change the class.
  390970 [shortcutter ] Road to perdition.

^ Removing a multiple array layer
390971 [stkfdt gmail] I'm trying to remove a array layer implied by multiple Array#product
+ 390979 [g.diemant gm] Try prod =3D prod.product(ranges) without loop.
| 390988 [stkfdt gmail] Tryed but does not the opposite expected output
| 390990 [wishdev gmai] Are you claiming your input arrays are as follows?
| 391121 [stkfdt gmail] Sorry
+ 391122 [stkfdt gmail] ok resolved it

^ Which is the best online document conversion site?
390972 [mariamoore95] Can anyone tell me that which is the best online document conversion
+ 390999 [rakeshgopalm] If you contact production@jvinfosol.com - they have been putting xml
| 391001 [peterhickman] You will probably get a better response if you told us what sort of
+ 391150 [janifersmith] Here is it  just click on onlinedocumentconversion.com and convert your

390973 [wbrisett att] I'm getting ready to try converting one of my behemoth AppleScripts to =
390974 [dave.baldwin] Not familiar with DITA, but have a look at builder.
390975 [wbrisett att] Thanks Dave, looks like a perfect solution for me.

^ Confusing results from string multiplication
390976 [robmarshall ] I actually registered here to ask a different question, but after
+ 390977 [shortcutter ] Congratulations, you really hit a strange corner case in the syntax!
+ 390978 [peter.c.r.la] The difference is down to the optional argument for Fixnum#to_s, the
+ 390980 [matthias wae] but it works correctly for other numbers. try
| 391009 [josh.cheek g] 2011/12/8 Matthias W=E4chter <matthias@waechter.wiz.at>
| 391038 [matma.rex gm] Just a note that this might happen not only with multiplication vs
+ 390981 [robmarshall ] Well, for someone who is new to Ruby, how would I, or anyone for that
| + 390983 [adam apresco] 11.to_s(2) gives you "1011". This is a string, and it doesn't actually know
| | 390984 [adam apresco] Typo! That should be 1011, of course. It doesn't affect the point I was
| + 390986 [pete peterhi] FWIW, ruby will warn you about ambiguous syntax if you run it with warnings
| + 390987 [ymendel pobo] Possibly, but I'd hope not. At some point you should think about
| + 390997 [echristopher] Wherever you heard whitespace doesn't matter, forget it; it's not true.
+ 390982 [robmarshall ] Oh, and just for clarification, I guess it's the "splat" operator, not
+ 390985 [robmarshall ] Well, I do, at least to some degree, understand what's happening. I
+ 390989 [robmarshall ] Well at least I started a lively discussion :-)
+ 390991 [robmarshall ] Oh, and by the way, I do know why '11.to_s*2' works "correctly", in the

^ Greed Dice Game Scoring from Ruby Koans
390993 [nathan linds] charset="us-ascii"
391000 [sduncan weta] This is quite a fun exercise, and interesting to see what people come up

^ rubyscript2exe
390995 [aggouni2002 ] I am trying rubyscript2exe for the first time and I am getting an error
+ 391002 [luislavena g] Luis Lavena
+ 391037 [dickyhide gm] ocra is very easy to use.

^ how to view the structure of a hash
391003 [sodani gmail] I keep finding myself trying to decipher the structure of hash objects
+ 391004 [Carey.Nation] Syntax from memory, so please forgive errors...
| 391013 [sodani gmail] This doesn't really change much in my opinion because the values are
| + 391015 [frosty unluc] What exactly do you want to discover about the hash?  What it's values
| + 391048 [Carey.Nation] Notice the "you'll want to do a bit more to make it readable" part.
+ 391005 [klauer gmail] Would awesome_print( https://github.com/michaeldv/awesome_print ) work?
+ 391018 [whitequark w] require 'pp' # Pretty printer
+ 391051 [shevegen lin] Peter Zotov already suggested the way to go.
  391100 [sodani gmail] Thank you all for the responses. I'll try these all out.

^ What is a good ruby tutorial / book for a beginner?
391006 [sasogeek yah] I have been reading Chris Pine's book for a while now and I'm stuck at
+ 391008 [wbrisett att] programs
+ 391010 [sasogeek yah] I haven't learnt classes or hashes yet... It is in the next 2 chapters
| 391011 [rbakerjax gm] I would recommend The Well Grounded Rubyist by David Black. His book is excellent!
+ 391012 [sasogeek yah] Thanks a ton Russel :) I downloaded the book, going to give it a good
+ 391014 [josh.cheek g] This is a good exercise! When I first tried to sort an array, it hurt my
+ 391017 [nss118 gmail] I really liked Beginning Ruby by Peter Cooper.
  391034 [wbrisett att] Peter also teaches an online course that uses his book at =

^ ERROR Encoding::CompatibilityError
391016 [chonkw nate.] Windows7 32bit
391039 [matma.rex gm] Have you tried adding the magic encoding comment (see below) to the

^ How can I do h["foo"] += "bar" if h["foo"] does not exist?
391019 [andrewinfose] I have a hash with various keys and values that are strings.
+ 391020 [whitequark w] $ irb
| 391022 [ryand-ruby z] key
| 391023 [josh.cheek g] in
+ 391021 [ryand-ruby z] That only works if the value at key "foo" responds to +. In this case, I =
+ 391024 [code apotheo] I guess you could get really ugly with it.
+ 391025 [mayank.kohal] You can have something like this to check whether the key is present or
| 391026 [ryand-ruby z] Values can be false/nil.
| 391032 [shortcutter ] Also, this is inelegant.  Either do this to prevent accidental
| 391035 [mayank.kohal] Thanks for the enlightenment!!! Learned something about hashes today. :)
| 391044 [shortcutter ] irb(main):012:0> h = Hash.new {|ha,k| h[k] = ""}
+ 391052 [gf.bozzetti ] =begin
+ 391057 [andrewinfose] Many thanks to all who replied!

^ reading from file without end-of-lines
391027 [umrzykus gaz] if File.exists?(file)
+ 391028 [gsinclair gm] I tend to strip out all such characters at once, before operating on any li=
| 391031 [shortcutter ] e?
| + 391033 [umrzykus gaz] [cut]
| + 391042 [gsinclair gm] Very elegant.  Except for that ghastly &  :)
|   + 391045 [josh.cheek g] What isn't elegant about the `&'?
|   | + 391056 [umrzykus gaz] looks like reference operator in C ? :)
|   | + 391076 [gsinclair gm] It twists my head trying to think about how it works.  Nothing else in
|   |   391099 [josh.cheek g] I disagree. `&` is known to invoke `to_proc` and place the result in the
|   |   391115 [shortcutter ] Josh, thanks for catching this in my example!
|   + 391046 [shortcutter ] Absolutely agree!  We could remedy this by allowing a single argument
+ 391083 [shevegen lin] It is not elegant because the rest of the line uses . ! ? and ()
| + 391089 [mike stok.ca] Solely may be an exaggeration. & is used in other places, for example =
| + 391094 [shortcutter ] Please note that this is not "&:" notation - it is just "&" because
|   391096 [rubytalk2dav] Not that that's a prescription for a good programming language.
|   391114 [shortcutter ] Which I did not claim.  The point was that there *are* people who like
+ 391084 [shevegen lin] That too. Reminds me of pointers.

^ Learn To Program (Chris Pine) - Building and Sorting Array
391029 [emekapatrick] Super new to programming (1 week or so) and working through 'Learn to
391030 [shortcutter ] Welcome to the world of Ruby!
391064 [emekapatrick] Thanks so much for getting back to me on this much appreciated. Some
391071 [wishdev gmai] Good Day Emeka,
391073 [emekapatrick] Thanks so much for getting back to me and for your kind words. Really
+ 391095 [shortcutter ] It's among the most friendly online communities I have come across -
+ 391109 [alexandermcm] It is one thing reading Chris Pines book and then jumping into rails but=2C=

^ net-ftp 530 error message
391036 [dickyhide gm] I want to write a ftp script to download some folder from

391040 [manavkbgupta] @x = 'Hello world'
+ 391041 [peter.c.r.la] 1.9.3p0 :001 > self
+ 391070 [lw2011 sonic] To expand on the nice diagnostic suggestion in the foregoing post, x and
| 391145 [b.candler po] No, that's not quite right. x here is a method call, not a local
+ 391144 [eule space.c] Why does it (again) sound like a school assignment?
+ 391170 [transfire gm] This can be a bit tricky b/c the toplevel namespace doesn't behave like

^ [ANN] cast_off-0.4.0 released
391043 [shiba rvm.jp] cast_off-0.4.0 has been released.