First  |  Prev |  Next  |  Last
Pages: 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
RegEx
version: 1. abc 600-qwer 2. abc600-qwer 3. abc 6.0.0-pedfs 4. abc 6.12.23-45 5. abc 5.0.6.0 etc... I want to be able to identify which version is version 6, version 5, etc.. I'm not sure if a regex is the best way. I need to be able to say that #1-4 are version 6 and #5 is version 5. But I need to be able... 2 Jul 2008 01:40
Is posible String#to_s doesn't add the decimal value if notneeded?
On Jul 1, 2008, at 4:09 PM, Iñaki Baz Castillo wrote: Hi, I want to convert a string to a Float value: irb> "1.5".to_f => 1.5 But if I do: irb> "1".to_f => 1.0 I get '1.0' instead of just '1'. Is not possible to just get '1' in this case? Thanks a lot. -- ... 1 Jul 2008 19:32
Is posible String#to_s doesn't add the decimal value if not needed?
Hi, I want to convert a string to a Float value: irb> "1.5".to_f => 1.5 But if I do: irb> "1".to_f => 1.0 I get '1.0' instead of just '1'. Is not possible to just get '1' in this case? Thanks a lot. -- Iñaki Baz Castillo ... 1 Jul 2008 18:30
Mac OS X 10.5.4 - no new Ruby?
The Mac OS X 10.5.4 update came out yesterday, but it did not update the installed Ruby to 1.8.7. I thought the idea that this sort of thing would happen was part of the promise of keeping Ruby in a system library framework...? m. -- matt neuburg, phd = matt(a)tidbits.com, http://www.tidbits.com/matt/ Leopard - ... 3 Jul 2008 15:36
Ruby MySQL INSERT variable
k = "50" my = Mysql::new("localhost", "root", "pass", "table") my.query("INSERT INTO table VALUES('2008-05', #{k}, 324)") /Class.rb:212:in `query': Unknown column '50' in 'field list' (Mysql::Error) How do I insert a variable into a row? Thanks -- Posted via http://www.ruby-forum.com/. ... 2 Jul 2008 07:47
workarounds for ruby 1.8.6 segmentations faults
Hi, I am running Rails 2.1.0 and ruby-1.8.6 (2008-06-20 patchlevel 230 [i686-linux]. I am experiencing the same segmentation faults that several others are who are running this version or ruby. Can anyone recommend a good workaround for these bugs until the Rails Core Team puts out something official? Thank... 2 Jul 2008 09:50
Problem with unpack
Hi, I'm trying to read a binary file and would want to find within the file a particular substring. I have done the following file = File.open("testFile","rb") str = String.new file.read(512, str) puts (str.length).to_s # how many bytes have I read? strhex = str.unpack("H*") puts strhex # just sho... 5 Jul 2008 16:36
threadify-0.0.1
Thank you! This gem pretty much makes my life simpler, and will continue to make it simpler! (stdlib please?) ~ ari ... 12 Jul 2008 13:34
[ANN] threadify-0.0.1
this one's for you charlie ;-) NAME threadify.rb SYNOPSIS enumerable = %w( a b c d ) enumerable.threadify(2){ 'process this block using two worker threads' } DESCRIPTION threadify.rb makes it stupid easy to process a bunch of data using 'n' worker threads INSTALL ... 1 Jul 2008 16:27
Web-based game: Fallen Sword & Urban-Rivals
Fallen Sword, a nice game kinda like Diablo(minus the graphics): http://www.fallensword.com/?ref=1847914 Urban-Rivals, it's a great TCG web game with many characters to collect, level up, trade and fight other players with. You can use this link to register quickly: http://www.urban-rivals.com/?sponsor=2226... 1 Jul 2008 16:27
First  |  Prev |  Next  |  Last
Pages: 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158