fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
daniel_- has quit [Quit: WeeChat 0.3.8]
<tbrock> guys?
justinmcp has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Kuhni has quit [Quit: まったね!]
Takehiro has joined #ruby
Agis__ has quit [Quit: Agis__]
QKO has joined #ruby
QKO_ has quit [Ping timeout: 252 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
lggr has joined #ruby
sheldon has joined #ruby
<Axsuul> Hmm, is there a return statement for blocks?
nari_ has quit [Ping timeout: 245 seconds]
linoj has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
<rafacv> @Axsuul: blocks returns the evaluation of the last expression, you can use return keyword if you make it a lambda
<Axsuul> rafacv: gotcha thanks
`brendan has joined #ruby
yshh has joined #ruby
hsbt_away is now known as hsbt
naz is now known as nazty
wwoodrum has joined #ruby
<wwoodrum> hey guys
lggr has quit [Ping timeout: 244 seconds]
<wwoodrum> pretty easy question for you guys, but for me not so much.
<wwoodrum> how can i get out of a loop when a user types "exit"
<falieson> poo lets see if i can start contributing!
jenrzzz has joined #ruby
baroquebobcat has joined #ruby
<falieson> if a == "exit" then break end
<falieson> wwoodrum:
<wwoodrum> kk can i doif a == "exit" then break end
<wwoodrum> can i put a print before the break?
lggr has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
cirwin has joined #ruby
<cirwin> is it ever helpful to do something like at_exit{ file.flush; file.close } ?
<cirwin> (I have a file I cant' keep open just inside a block; so not sure what to do with it)
Monie has quit [Ping timeout: 260 seconds]
<falieson> wwoodrum: you certainly can, just put it on multiple lines
jenrzzz has joined #ruby
<falieson> wwoodrum: and you don't need the \n at the beginning of each puts, it already creates a new line
<bassclef> anyone have a good example of parsing json data? https://gist.github.com/3824177 I'm getting a can't convert nil to string error seen in the gist https://gist.github.com/3824177
<falieson> wwoodrum: also look into case -> http://www.skorks.com/2009/08/how-a-ruby-case-statement-works-and-what-you-can-do-with-it/ similar to "switch" in other languages
Banistergalaxy has quit [Ping timeout: 246 seconds]
<cirwin> bassclef: your authenticate function returns nil
<cirwin> you probably want it to return response.body
<bassclef> yes
<bassclef> i do
lggr has quit [Ping timeout: 252 seconds]
<Spooner> No, your last line is a puts, which returns nil.
<bassclef> ohhh
<Spooner> Remove the puts and you are OK.
<bassclef> i see what i did
<bassclef> heh yea i was looking at an example
<bassclef> when i wrote that
<bassclef> woops
conor_ireland has quit [Quit: conor_ireland]
<Spooner> Or, rather, add response.body after the puts.
<bassclef> thanks :)
<Spooner> wwoodrum : If you want a one-liner, then better to use: break if a == "exit" (rather than: if a = "exit" then break end)
cakehero has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
<bassclef> thanks guys!
<bassclef> or gals
<wwoodrum> kk thanks still working on it! ty so much
tyfighter has quit [Quit: tyfighter]
cakehero has joined #ruby
<Spooner> There is a lot of repetition yet in that code, wwoodrum
blazes816 has quit [Ping timeout: 256 seconds]
[Neurotic] has quit [Ping timeout: 245 seconds]
JustinCampbell has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
JustinCampbell has quit [Read error: Connection reset by peer]
elux has quit [Quit: Bye!]
JustinCampbell has joined #ruby
pradeepto has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
<wwoodrum> problem solved. thank you guys
baroquebobcat has quit [Quit: baroquebobcat]
lggr has quit [Ping timeout: 256 seconds]
<Spooner> wwoodrum : Also, brackets around if condition and ; are completely superflous in Ruby.
bigmcq77 has joined #ruby
baroquebobcat has joined #ruby
<chrxn> are you coming from perl, wwoodrum ?
rakm has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jarred has quit [Quit: jarred]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dpk has quit [Quit: Asleep at the keyboard.]
chrishunt has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
<wwoodrum> nah jsut poor at coding
<Spooner> It is just that the code shows clear signs that Ruby isn't your first language.
bttf has joined #ruby
yshh has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
brianpWins has joined #ruby
My_Hearing has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 255 seconds]
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
lggr has joined #ruby
Bosox20051 has joined #ruby
<Boohbah> wwoodrum: you have a lot of redundant to_i's in there
<scx> i have stupid question
<scx> is it vaild?: next if myline =~ /^\s*#/
<scx> i mean that reg exp
<falieson> Spooner: do you mind if I show you what chrxn put together and get your input?
c0rn_ has quit [Quit: Computer has gone to sleep.]
<bperry> scx: yes the regex is semantically valid
<bperry> what are you expecting to match it that isn't
<Spooner> scx Yes, but whether it does what you expect is another thing.
<scx> it work when LC ALL is Latin-2, but fail when UTF
<Boohbah> scx: http://rubular.com/
<scx> i get error:
<scx> invalid byte sequence in UTF-8 (ArgumentError)
<bperry> scx: myline.force_encoding('UTF-8') perhaps?
<bperry> or something like that
duracrisis_ has joined #ruby
cableray has joined #ruby
<scx> bperry: this file is Latin-2,
lggr has quit [Ping timeout: 256 seconds]
<scx> source file is latin-2 too (have line: # encoding: iso-8859-2)
yshh has joined #ruby
linoj has quit [Quit: linoj]
lggr has joined #ruby
c0rn_ has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
Guedes0 has quit [Ping timeout: 244 seconds]
linoj has joined #ruby
VegetableSpoon has quit [Quit: Leaving]
Bosox20051 has quit [Quit: Leaving]
kiyoura has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
daniel_hinojosa has joined #ruby
linoj has quit [Quit: linoj]
kiyoura has quit [Client Quit]
JustinCampbell has quit [Remote host closed the connection]
<scx> is it possible to load ruby file/class, overwrite one method and then run it?
<Spooner> : Yes.
swarley has quit [Remote host closed the connection]
swarley has joined #ruby
Takehiro has joined #ruby
<scx> i mean, for example: class A have 5 methods: one, two, three, four, five(); i want to replace three()
<scx> how to do that?
<nat2610> what kind of structure is https://gist.github.com/3824298 ? (I took it from http://simile-widgets.googlecode.com/svn/timeline/trunk/src/webapp/examples/test_example3/test_example3.html ). I'm basically generating in ruby the data for my <script> but if I display a json from my hash, it escapes the quotes and I end up with something that javascript doens't understand
<Spooner> YEs, just "reopen" the class and write a new version.
<Spooner> nat2610 : Looks like JSON to me.
<Spooner> scx class A; def three; ...; end; end
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pdtpatrick has quit [Quit: pdtpatrick]
ianblenke1 has joined #ruby
<nat2610> Spooner: >> { "a" => "b"}.to_json => "{\"a\":\"b\"}"
<nat2610> how can I avoid the \ ?
<Spooner> Yes.
<Spooner> Those aren't "\" charactes.
reuf has quit [Quit: Leaving]
<nat2610> they are when I print my data
<Spooner> Those are \" characters (that is an actual " put inside a string delimited by ")
<scx> Spooner: others methods will work as in old class?
<Spooner> puts "\"hello\"" # prints => "hello"
<Spooner> puts "hello" # prints => hello
<Spooner> scx Yeah, you are just "monkey-patching" the class, not recreating it.
swarley_ has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
swarley has quit [Ping timeout: 244 seconds]
<scx> Spooner: ok, thanks
<Spooner> nat2610 : Getting what I'm talking about? Just the same as a string that is "frog\n" doesn't have an actual slash in it?
lggr has quit [Ping timeout: 244 seconds]
carlyle has joined #ruby
mrsolo has quit [Quit: Leaving]
<swarley_> wat
lggr has joined #ruby
<Spooner> Yes wat.
elico has joined #ruby
nat2610 has quit [Quit: Leaving.]
rabidpraxis has joined #ruby
ianbrandt has quit [Quit: ianbrandt]
goyox86 has joined #ruby
phar0e has joined #ruby
<phar0e> Hello Ms. Ruby ^_^
ledao has joined #ruby
mikepack has quit [Remote host closed the connection]
ledao has quit [Client Quit]
lggr has quit [Ping timeout: 240 seconds]
cbuxton has quit [Quit: Leaving.]
lggr has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
chrishunt has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
<bassclef> can anyone tak e alook at this and see what i'm doing wrong? https://gist.github.com/3824375 undefined method 'bytesize' for #hash i can't see it!
mahmoudimus has joined #ruby
<bassclef> that's what my json is based on the top example
slicslak has quit [Ping timeout: 260 seconds]
<Spooner> bassclef : But where is the error line? Probably somewhere deep in someone else's code.
<Spooner> Oops, I saw the error at the bottom. Sorry!
<bassclef> np
alvaro_o has quit [Quit: Ex-Chat]
lggr has quit [Ping timeout: 246 seconds]
<Spooner> Incidentally, you probably shouldnt' use @ivars rather than CONSTANTS, if you want values visible inside your methods.
<Spooner> Or pass parameters.
<Spooner> But sadly I haven't a clue about your actual problem :$
<bassclef> hehe
<bassclef> so @auth_token
<bassclef> should just be auth_token you're saying?
<Spooner> No, AUTH_TOKEN
<Spooner> Or just use parameters. Using @ivars in the outer scope is a bit ack.
iamjarvo has joined #ruby
lggr has joined #ruby
jeff_sebring has quit [Quit: Leaving]
baroquebobcat has joined #ruby
<bassclef> word thanks
<Spooner> Anyway, realised that bytesize is a method on String, not Hash. You are passing aHhash when it wants a String (forgot to use #to_json ?).
<bassclef> ahhh yes!
<bassclef> thanks
<bassclef> i did
<Spooner> auth_token would be a local variable, so would not be visible inside the method.
<bassclef> yep i figured that part out
<bassclef> WOOT!
<bassclef> thanks spooner that was it
<bassclef> it worked
<bassclef> :D
<Spooner> @user and @pass could be constants or locals, of course.
sushigeek has joined #ruby
fuleo has joined #ruby
Targen has joined #ruby
jenrzzz has joined #ruby
<Spooner> I would organise a bit to have your constants at the top, then methods, then actual code (that calls your methods). Bit messed up there.
<Spooner> Also, if you put the server/user/password in a YAML file, you can happily paste the code without worrying about giving away trade secrets.
daniel_hinojosa has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 256 seconds]
<Spooner> I should collect all the secret passwords and access keys that have been pasted in this channel by mistake ;)
<Spooner> I could rule the world! The whole, wide world!
lggr has joined #ruby
<scx> how to include ruby source file (load without executing)?
<scx> is it possible?
<Spooner> Loading code without executing it isn't possible (and is indistinguishable from not loading it at all ;D).
swarley_ is now known as swarles
jonathanwallace has joined #ruby
<Spooner> Or you mean loading some definitions (e.g. classes and methods) in a file without running the direct code in the file? Not sure what you mean (or rather, what you "want to achieve").
<scx> Spooner: i have "bloat-file.rb", there are a few classes and one command which create istance of one of these classes
<Spooner> scx In that instance, you should have the command inside a "if $0 == __FILE__" condition in that file. Then if you run the file directly, the code will run, but not if you require the file in another file.
<scx> Spooner: it isn't my file and i cant change it
<Spooner> Well then, the file was written by a muppet ;)
BombStrike has joined #ruby
<Spooner> And no, you can't work around that in any way I know. If the file wants to run code then it will run code.
asteve has joined #ruby
daniel_hinojosa has joined #ruby
asteve has quit [Changing host]
asteve has joined #ruby
asteve has left #ruby [#ruby]
<Spooner> A class definition is "just code" and isn't fundamentally different than direct code like: Frog.new.jump
lggr has quit [Ping timeout: 248 seconds]
hadees has quit [Quit: hadees]
baroquebobcat has quit [Quit: baroquebobcat]
LouisGB has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
brianpWins has quit [Ping timeout: 246 seconds]
nari_ has joined #ruby
<Spooner> scx Actually, no, there are ways to work around it, but they are DREADFUL and should never be used by sane people (and are worse than just copying the file and deleting the stuff you don't want).
sent-hil has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
heftig has quit [Quit: leaving]
JonnieCache|work has quit [Ping timeout: 260 seconds]
davidcelis has joined #ruby
lazyPower has joined #ruby
<lazyPower> Is there a preferred method to recreate the timestamp in rails when using X.minutes.from_now?
lggr has quit [Ping timeout: 246 seconds]
<lazyPower> Specifically, i'm using delayed job, and its failing to run correctly on the stored config values i put in my yaml - its running immediately since its returning a string :|
_Mon_Ouie_ has joined #ruby
<Spooner> lazyPower : #rails or #rubyonrails might be more likely to know that.
hadees has joined #ruby
heftig has joined #ruby
<lazyPower> thanks
butblack has joined #ruby
lggr has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
My_Hearing has quit [Ping timeout: 260 seconds]
freeayu has joined #ruby
slicslak has joined #ruby
nari_ has quit [Ping timeout: 245 seconds]
joofsh has joined #ruby
ttt has joined #ruby
bradyl0ve has quit [Quit: Linkinus - http://linkinus.com]
heftig has quit [Quit: Lost terminal]
Takehiro has joined #ruby
heftig has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
thaostra has joined #ruby
pipopopo has quit [Ping timeout: 260 seconds]
Ruler_Of_Heaven_ has joined #ruby
mahmoudimus has joined #ruby
lggr has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 248 seconds]
cakehero has joined #ruby
duracrisis_ has quit [Read error: Connection reset by peer]
sent-hil has quit [Remote host closed the connection]
duracrisis_ has joined #ruby
nari_ has joined #ruby
dakine has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
tmttt has joined #ruby
<scx> Spooner: what methods? i tried to create new ruby file using grep and sed :p
sent-hil has joined #ruby
<Spooner> scx You could do it inside Ruby. eval File.read("frog.rb").gsub(/meh/,'')
<Spooner> But as I said, it is terrible, terrible stuff.
lggr has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
<Spooner> Or #readlines and delete the last few lines.
ryanf has quit [Ping timeout: 260 seconds]
luckyruby has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
<Spooner> If the file is going to change, then your code might stop working because of formatting changes. If the file isn't going to change, just copy it and manually delete the "bad" lines.
<scx> Spooner: second method will not work: there are methods before that horrible line
ttt has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ttt has joined #ruby
<Spooner> scx #sub or #gsub are your friends then.
<scx> thanks once again
apok_ has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
nari_ has quit [Ping timeout: 245 seconds]
luckyruby has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<scx> Spooner: gsub work on lines, like sed or whole text?
apok has quit [Ping timeout: 245 seconds]
apok_ is now known as apok
piotr_ has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
<Spooner> It works on the whole text in this case. You can use ^$ to link to beginning and end of lines.
<scx> should i use /^foo bar .*/ or /^foo bar[^\n]*\n/ ?
<Spooner> Don't worry about removing spaces and newlines. Ruby just ignores them anyway.
jrist-bbl is now known as jrist
skaczor has quit [Remote host closed the connection]
<Spooner> .* will be to end of string (that is, file in our case).
<Spooner> I don't know what exactly you are trying to match, so I can't tell you how to match it ;)
BrianJ has joined #ruby
<Spooner> scx Have a play in http://rubular.com/
mahmoudimus has joined #ruby
Trioke_ has quit [Read error: Connection reset by peer]
Trioke has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Ping timeout: 240 seconds]
JonnieCache has quit [Ping timeout: 260 seconds]
colinbm has joined #ruby
<Spooner> ".* will be to end of string" - actually untrue, since you need //m for . to match newline. Always forget that.
ckrailo has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
geekmii has joined #ruby
nari_ has joined #ruby
savage- has quit [Remote host closed the connection]
lggr has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
sent-hil has quit [Ping timeout: 240 seconds]
rafacv has quit [Ping timeout: 256 seconds]
radic_ is now known as radic
colinbm has quit [Quit: colinbm]
Rad- has joined #ruby
joeycarmello has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
bttf has quit [Quit: Lost terminal]
manizzle has quit [Ping timeout: 246 seconds]
lazyPower has quit [Quit: Peace, i'm out]
gmci has quit [Quit: Computer has gone to sleep.]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
lggr has joined #ruby
Spooner has quit []
gmci has joined #ruby
<thaostra> I seem to have found a bug in Net::HTTP where there is ~25% CPU usage while downloading files, possibly due to it not waiting for the buffer to fill. CPU usage goes down to ~6% when I add sleep() in the innermost block. Does anyone know of a way around this? Snippet found here: https://gist.github.com/4e01da8091ab2525a446
Nisstyre-laptop has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
daniel_hinojosa has quit [Ping timeout: 260 seconds]
macmartine has joined #ruby
keyvan has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 245 seconds]
xyzodiac has joined #ruby
josh^ has joined #ruby
lggr has joined #ruby
Synthead has quit [Remote host closed the connection]
beneggett has joined #ruby
Synthead has joined #ruby
nat2610 has joined #ruby
shair has joined #ruby
geekmii has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
kenneth has quit [Quit: kswizz.com]
justinmcp has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
voodoofish430 has quit [Quit: Leaving.]
shair has quit []
dmiller has joined #ruby
noyb has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
iamjarvo has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
scx has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
[Neurotic] has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
scx has joined #ruby
xuser has joined #ruby
eddiezane has joined #ruby
verto is now known as verto|off
joofsh has quit [Remote host closed the connection]
joeycarmello has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
Takehiro has quit [Ping timeout: 248 seconds]
goyox86 has quit [Remote host closed the connection]
beneggett has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
P1RATEZ has joined #ruby
reset_ has joined #ruby
joeycarmello has quit [Ping timeout: 256 seconds]
xyzodiac has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
icole has joined #ruby
reset has quit [Ping timeout: 260 seconds]
_Mon_Ouie_ has quit [Ping timeout: 246 seconds]
reset_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
lggr has joined #ruby
_Mon_Ouie_ has joined #ruby
xyzodiac has quit [Client Quit]
ryanf has joined #ruby
jgrevich_ has joined #ruby
falieson has quit [Quit: falieson]
jgrevich has quit [Ping timeout: 248 seconds]
jgrevich_ is now known as jgrevich
ryanf has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 260 seconds]
bradleyprice has joined #ruby
Rad- has quit [Ping timeout: 256 seconds]
Rad- has joined #ruby
swarles has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
bradleyprice has quit [Remote host closed the connection]
aces23up has joined #ruby
justinmcp has joined #ruby
aces1up has quit [Ping timeout: 260 seconds]
Rad- has quit [Client Quit]
kroniksenvy has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
nignaztic has joined #ruby
n_blownapart has joined #ruby
RISCi_ATOM has joined #ruby
rippa has joined #ruby
ircbot1454003504 has joined #ruby
lggr has joined #ruby
ircbot1454003504 has quit [Remote host closed the connection]
nignaztic is now known as nemonic
nemonic is now known as nignaztic
<n_blownapart> re = Regexp.escape("^abcdef") #=> "\\^abcdef" Hi I'm learning the double backslash here has something to do with #escape outputting double-quoted strings? what's the connection? thanks
luckyruby has quit [Remote host closed the connection]
ircbot99 has joined #ruby
joeycarmello has joined #ruby
apok has quit [Quit: apok]
rippa has quit [Ping timeout: 240 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
ckrailo has joined #ruby
luckyruby has joined #ruby
rippa has joined #ruby
ircbot99 has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
nat2610 has quit [Quit: Leaving.]
wpaulson has joined #ruby
ananthakumaran has joined #ruby
lggr has joined #ruby
FifthWall has joined #ruby
jarred has joined #ruby
joeycarmello has quit [Ping timeout: 244 seconds]
yoklov has joined #ruby
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
wpaulson_ has joined #ruby
gmci has quit [Ping timeout: 246 seconds]
sailias has quit [Client Quit]
gmci has joined #ruby
Seventoes has quit [Ping timeout: 240 seconds]
n_blownapart has quit [Remote host closed the connection]
<heftig> n_blownapart: it's not a double backslash, that's just the representation as a string literal
<heftig> \\\\ would be a double backslash
ryanf has joined #ruby
quazimodo has joined #ruby
justinmcp has quit [Remote host closed the connection]
wpaulson has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 246 seconds]
wpaulson_ is now known as wpaulson
mahmoudimus has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
bradleyprice has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
aantix has joined #ruby
lggr has joined #ruby
schronicles47 has joined #ruby
BMF has quit [Remote host closed the connection]
macmartine has joined #ruby
schronicles47 has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
allanm has quit [Read error: Connection reset by peer]
allanm has joined #ruby
Takehiro has joined #ruby
schronicles47 has joined #ruby
jarred has quit [Quit: jarred]
Guest53275 is now known as karstensrage
c0rn_ has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 260 seconds]
eddiezane has quit [Quit: eddiezane]
justinmcp has joined #ruby
Emmanuel_Chanel has joined #ruby
lggr has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
wwoodrum has quit [Quit: irc2go]
schronicles47 has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
macmartine has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
nat2610 has joined #ruby
lggr has joined #ruby
<n_blownapart> hi I thought p calls inspect, but inspect returns a double-quoted string and double backslashes. why? thanks: x = Regexp.new(Regexp.escape("Mr. Joe Smith")) [42] pry(main)> p x #=> /Mr\.\ Joe\ Smith/ --- [43] pry(main)> x.inspect => "/Mr\\. Joe\\ Smith/"
carlyle has quit [Remote host closed the connection]
jenrzzz has joined #ruby
CannedCorn has joined #ruby
burgestrand has quit [Ping timeout: 246 seconds]
<CannedCorn> hey guys
<CannedCorn> is anyone pretty familiar with test-unit?
<CannedCorn> 2.0 that is
<rking> Anyone familiar with the IRC custom of just ask?
<rking> ∞.0 that is.
slicslak has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 244 seconds]
<rking> CannedCorn: Giving you a hard time. What's up man?
beneggett has quit [Quit: Computer has gone to sleep.]
JonnieCache has joined #ruby
butblack has quit [Quit: butblack]
<CannedCorn> rking sorry man, been fighting with it for a while
<CannedCorn> so, i'm trying to get my rake testtasks to run with test::unit 2.x
lggr has joined #ruby
<CannedCorn> so i made a little test file
<CannedCorn> test.rb and when i run it, test unit 2.0 runs, beautiful
<CannedCorn> but when i make a rakefile and run rake test, where test is a testtask, it uses the built in one
macmartine has joined #ruby
cirwin has quit [Ping timeout: 246 seconds]
<CannedCorn> ah
<CannedCorn> gem install rake!
<CannedCorn> and requiring rake are essential
<CannedCorn> what a pain
<CannedCorn> i've been trying to figure that out for hours
uris has quit [Quit: Lost terminal]
beneggett has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
<n_blownapart> hi anyone care to answer above question on regexp 's ? thanks ^^
fyolnish has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
tomaw has quit [Ping timeout: 604 seconds]
slicslak has joined #ruby
lggr has joined #ruby
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
JonnieCache|work has joined #ruby
mohits has joined #ruby
ttt has quit [Remote host closed the connection]
slicslak has quit [Ping timeout: 248 seconds]
schronicles47 has joined #ruby
<bnagy> p is like puts blah.inspect
ttt has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<n_blownapart> thanks Kathmandu .. bnagy still unclear about something if you have time.....
ebragaparah has quit [Ping timeout: 240 seconds]
CannedCorn has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
<n_blownapart> Regexp.new(Regexp.escape("Mr. Joe Smith")) => "/Mr\\. Joe\\ Smith/" ..question is the connection between the double-quoted string and the double backslashes. why?
<n_blownapart> bnagy: ^^
Xeoncross has quit [Quit: Ex-Chat]
<bnagy> that's how backslashes are presented in strings
<n_blownapart> bnagy: is it correct to say that the 1st backslash is escaping the second?
JonnieCache|work has quit [Ping timeout: 245 seconds]
fsck3r has joined #ruby
fsck3r has quit [Remote host closed the connection]
<bnagy> well there's only one backslash there
<bnagy> "\\".bytesize => 1
<n_blownapart> bnagy: hold on, to pry for a look
macmartine has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 256 seconds]
freeayu has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
<n_blownapart> bnagy: hmmm. why doesn't "\".bytesize return nil ? I'm getting an error.
quazimodo has quit [Ping timeout: 246 seconds]
oldB has joined #ruby
mohits has quit [Read error: No route to host]
<bnagy> because it's a syntax error
<bnagy> the \ is escaping the quote
oldB has quit [Client Quit]
lggr has quit [Ping timeout: 260 seconds]
<n_blownapart> interesting bnagy I'm confused though.
hesco1 has joined #ruby
<hesco1> how do I use rdoc to read the docs for a package?
ffranz has quit [Quit: Leaving]
Guest_ has joined #ruby
lggr has joined #ruby
sushigeek has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
oldB has joined #ruby
c0rn_ has joined #ruby
mohits has joined #ruby
scx has quit [Read error: Connection reset by peer]
<hesco1> is rdoc like perldoc ???
oldB has left #ruby [#ruby]
oldB has joined #ruby
Playb3yond has joined #ruby
<n_blownapart> bnagy: so in a sense one backslash is escaping the other?
<bnagy> I guess
n_blowna_ has joined #ruby
n_blownapart has quit [Read error: Connection reset by peer]
<bnagy> it's just for "" strings though, like 'foo\bar' is 7 bytes
Takehiro has quit [Ping timeout: 248 seconds]
<bnagy> but you still can't have '\'
lggr has quit [Ping timeout: 240 seconds]
<n_blowna_> bnagy: thanks ...pondering
Guest_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
n_blowna_ is now known as n_blownapart
oldB has left #ruby [#ruby]
oldB has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<n_blownapart> why does freenode suddenly switch my nickname?
Banistergalaxy has joined #ruby
lggr has joined #ruby
Elhu has joined #ruby
ryanlecompte has joined #ruby
jer1ko has joined #ruby
<jer1ko> ello
Kruppe has quit [Ping timeout: 244 seconds]
sheldon has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
dakine has quit [Ping timeout: 240 seconds]
bpalmer has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Seventoes has joined #ruby
oldB has quit [Quit: oldB]
oldB has joined #ruby
<n_blownapart> http://pastie.org/4900810 still trying to get why single quotes return different escape logic
RISCi_ATOM has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
sagax has joined #ruby
oldB has quit [Client Quit]
[Neurotic] has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
lggr has joined #ruby
mohits has quit [Ping timeout: 240 seconds]
Takehiro has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
rabidpraxis has joined #ruby
thaostra has quit [Quit: Leaving]
rabidpraxis has quit [Remote host closed the connection]
beneggett has joined #ruby
burgestrand has joined #ruby
<n_blownapart> http://pastie.org/4900810 burgestrand would you mind explaining why single quotes return the double backslashes? thanks
icole has joined #ruby
quazimodo has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<burgestrand> n_blownapart: single quotes only allows escaping very few things, single quotes for one: 'hello \'a boo'
<burgestrand> n_blownapart: what you see is a string representation of the string, which is why you see two backslashes at first, but only one backslash when you print it
_Mon_Ouie_ is now known as Mon_Ouie
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<burgestrand> n_blownapart: it’s the same difference when you evaluate nil, versus printing nil
lggr has joined #ruby
<n_blownapart> thanks burgestrand I'm studying all of that
<burgestrand> n_blownapart: in effect, 'foo\bar' only contains one backslash, while "foo\bar" contains whatever character the escape sequence \b stands for (possibly the bell character?)
<burgestrand> n_blownapart: it’s more apparent for something else, like "foo\0bar" and 'foo\0bar'
oldB has joined #ruby
dmiller has quit [Remote host closed the connection]
<n_blownapart> burgestrand: thank you I'm pretty tired.
<burgestrand> me too.
<burgestrand> being tired is bad for learning
tagrudev has joined #ruby
<n_blownapart> burgestrand: yeah I'm just staring but will try everything in pry. thanks!
Taichou has joined #ruby
ananthakumaran has joined #ruby
duracrisis__ has joined #ruby
duracrisis__ has quit [Read error: Connection reset by peer]
duracrisis__ has joined #ruby
<n_blownapart> burgestrand: so the rule (for now) would be just to use double quotes, unless I am trying to escape something esoteric like a bell character?
lggr has quit [Ping timeout: 246 seconds]
<burgestrand> n_blownapart: if you want your string to become the same string you write all the time, use single quotes, what you see when you write the string is pretty much what you get
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
duracrisis_ has quit [Ping timeout: 240 seconds]
<burgestrand> n_blownapart: if you want to use escape sequences, use double quotes
<burgestrand> n_blownapart: some of my co-workers use double-quotes almost exclusively, I mix and match
<n_blownapart> burgestrand: thanks very much that penetrated my thick skull. does one backslash in effect escape the other one? : i.e. \\
Playb3yond has quit [Quit: Playb3yond]
<burgestrand> n_blownapart: try it
lggr has joined #ruby
<n_blownapart> burgestrand: ok many thanks
bradleyprice has quit [Remote host closed the connection]
n_blownapart has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
m3pow has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
c0rn_ has joined #ruby
m3pow has joined #ruby
lggr has joined #ruby
chendo_ has quit [Ping timeout: 240 seconds]
icole has quit [Remote host closed the connection]
AlbireoX`Laptop has quit [Remote host closed the connection]
P1RATEZ has quit [Remote host closed the connection]
chendo_ has joined #ruby
fantazo has quit [Remote host closed the connection]
cakehero has quit [Ping timeout: 256 seconds]
zigomir has joined #ruby
hakunin has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
hakunin has joined #ruby
dakine has joined #ruby
cakehero has joined #ruby
oldB has quit [Remote host closed the connection]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
oldB has joined #ruby
falieson has joined #ruby
duracrisis__ has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
hakunin has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 248 seconds]
katherinem13 has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
mahmoudimus has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
oldB has quit [Quit: oldB]
arturaz has joined #ruby
aganov has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
nat2610 has quit [Quit: Leaving.]
justsee has quit [Quit: Leaving...]
oldB has joined #ruby
lggr has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
haxrbyte_ has joined #ruby
maesbn has joined #ruby
justsee has joined #ruby
manizzle has joined #ruby
ForevernadeAFK has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
bartj3 has joined #ruby
katherinem13 has joined #ruby
monkegjinni has quit [Read error: No route to host]
monkegji_ has joined #ruby
oldB has quit [Quit: oldB]
Forevernade has quit [Ping timeout: 256 seconds]
jer1ko is now known as jer1ko_away
yoklov has quit [Quit: bye!]
oldB has joined #ruby
lggr has joined #ruby
oldB has quit [Client Quit]
mikepack has joined #ruby
jenrzzz has joined #ruby
timonv has joined #ruby
KindOne has quit [Ping timeout: 246 seconds]
awestroke has joined #ruby
nyuszika7h has quit [Ping timeout: 246 seconds]
_mak has joined #ruby
darkc0met has quit [Ping timeout: 264 seconds]
ebragaparah has joined #ruby
icole has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 244 seconds]
friskd has joined #ruby
zeknox has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<zeknox> what method can I use like string.match() that will match all instances of a regex found in the string, and not just the first?
Meon__ is now known as Meon
<bnagy> #scan
noyb has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
elsifaka has joined #ruby
aantix has quit [Quit: aantix]
jgrevich has quit [Quit: jgrevich]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<zeknox> bnagy: great, just what I needed!
jenrzzz has quit [Ping timeout: 252 seconds]
binary3D has joined #ruby
Meon_ has joined #ruby
ebragaparah has quit [Ping timeout: 240 seconds]
pigggie_ has quit [Quit: leaving]
apok has joined #ruby
Meon has quit [Ping timeout: 248 seconds]
<binary3D> I'm getting "invalid byte sequence in UTF-8" when I scrape a longitude value that contains the 'degree' symbol. How should I get around this? http://pastie.org/4900982
saschagehlich has joined #ruby
mohits has quit [Ping timeout: 246 seconds]
Takehiro has quit [Remote host closed the connection]
m3pow has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
nat2610 has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
senny has joined #ruby
lggr has joined #ruby
<zeknox> when i use the string.scan() method and place it into an array (array << string.scan(/regex/)) i get an array inside of an array. how can I avoid this?
djdb has joined #ruby
ebragaparah has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
Meon_ is now known as Meon
<bnagy> you could use a1 + a2, or use flatten
m3pow has joined #ruby
Seventoes has left #ruby [#ruby]
lggr has quit [Ping timeout: 260 seconds]
Averna has quit [Quit: Leaving.]
charliesome has joined #ruby
mohits has joined #ruby
lggr has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
arturaz has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
ZubKonst has joined #ruby
replore_ has joined #ruby
lggr has joined #ruby
jprovazn_away is now known as jprovazn
robustus has joined #ruby
rakunHo has quit [Remote host closed the connection]
<burgestrand> zeknox: Array#concat
answer_42 has joined #ruby
<burgestrand> Same as Array#<< but with an array as an argument to append more than one thing.
ph^ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<zeknox> burgestrand: so I need the "#" after the arrayname
BrianJ has quit [Quit: Computer has gone to sleep.]
<burgestrand> zeknox: no, it’s a convention rubyists use to write out method names, for example Hash.[] vs Hash#[] — the dot or hash-pound tells you if it is a class method (dot) or an instance method (hash-pound).
<burgestrand> zeknox: also, in ruby code, # declares the start of a comment.
monkegji_ has quit [Read error: No route to host]
sspiff has quit [Remote host closed the connection]
Morkel has joined #ruby
monkegjinni has joined #ruby
<zeknox> still lost as to how to solve my issue, just want to use the string.scan() method and get the output into a standard array
tomaw_ is now known as tomaw
lggr has quit [Ping timeout: 260 seconds]
<aces23up> I'm looking for a compression routing to archive a buncha files for dropping on a server then downloading later for decompression, is there any built in ruby libraries for this? I wanted to use rar, but can't seem to find any libraries for decompression for ruby.
`brendan has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
awestroke has quit [Remote host closed the connection]
<binary3D> anyone familiar with UTF-8
<binary3D> I'm using Nokogiri but when it finds a longitude value with the 'degree' symbol it returns an error.
JonnieCache|work has joined #ruby
<Paradox> binary3D, update your libXML
<Paradox> and stick a utf header
<Paradox> on the file
<Paradox> nokogiri works fine for me
<Paradox> with uth
<Paradox> i parse stupid utf data all the time
<Paradox> lol
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has quit [Ping timeout: 248 seconds]
<binary3D> Paradox: how do I update it?
<binary3D> is it a gem?
<Paradox> wat os
<binary3D> ubuntu
<Paradox> probably apt-get
<binary3D> i tried sudo apt-get install libxml
<binary3D> it returns "E: Unable to locate package libxml"
<Paradox> search for it
lggr has joined #ruby
<Paradox> apt-cache or whatever it is
<Paradox> basically means something in the source document has broken utf-8 chars
dhruvasagar has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<binary3D> I know which part of the scrape that's causing it http://pastie.org/4900982
JonnieCache|work has quit [Ping timeout: 245 seconds]
<zeknox> can you return arrays from methods?
<binary3D> Paradox: found it. sudo apt-get install libxml2-dev
lggr has quit [Ping timeout: 248 seconds]
nat2610 has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
pskosinski has joined #ruby
acrocity has quit [Quit: leaving...]
lggr has joined #ruby
Takehiro has joined #ruby
acrocity has joined #ruby
Banistergalaxy has joined #ruby
mikepack has quit [Remote host closed the connection]
Taichou has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
monkegjinni has quit [Read error: No route to host]
lggr has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
friskd has quit [Ping timeout: 244 seconds]
justsee has quit [Quit: Leaving...]
lggr has joined #ruby
chrismcg is now known as zz_chrismcg
dangerousdave has joined #ruby
flype has joined #ruby
skogis has joined #ruby
freeayu has joined #ruby
<A124> zeknox: Yes, you can. After all array is just an object.
lggr has quit [Ping timeout: 246 seconds]
KevinSjoberg has joined #ruby
falieson has quit [Quit: you're awesome!]
lggr has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
jenrzzz has joined #ruby
friskd has joined #ruby
ephemerian has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
cezar has joined #ruby
cezar has quit [Client Quit]
piotr_ has joined #ruby
arturaz has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
hoelzro|away is now known as hoelzro
ryanlecompte has joined #ruby
lggr has joined #ruby
Chryson has quit [Quit: Leaving]
sspiff has joined #ruby
sspiff has joined #ruby
leehambley has joined #ruby
jimeh has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
FifthWall has quit [Quit: Zzzzzzzzzzzzz]
justinmcp has quit [Remote host closed the connection]
apok has quit [Ping timeout: 252 seconds]
eldariof has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
rumba has joined #ruby
Hanmac has joined #ruby
lggr has joined #ruby
chendo_ has quit [Ping timeout: 240 seconds]
chendo_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
nricciar__ has quit [Ping timeout: 240 seconds]
nricciar__ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
colinbm has joined #ruby
Xeago has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
reset has joined #ruby
ryanf has quit [Ping timeout: 248 seconds]
elaptics`away is now known as elaptics
Agis__ has joined #ruby
rpattabi has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
zeknox has quit [Quit: leaving]
<rpattabi> wondering about guide lines of using gems under current project.
manizzle has quit [Ping timeout: 256 seconds]
<rpattabi> gem's source code has require 'swt/full' for example
<rpattabi> this refers to local gem instead of the internal gem within the directory
<rpattabi> should i update require to require_relative?
Xeago has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
<rpattabi> or is there a better way to ask ruby to consider only the internal gem (if thats what it is called)
lggr has joined #ruby
zii has quit [Ping timeout: 246 seconds]
daniel_- has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
chussenot has joined #ruby
Vainoharhainen has joined #ruby
monkegjinni has joined #ruby
zii has joined #ruby
<rpattabi> i pulled a gem in submodule
<rpattabi> i have the same gem installed in the m/c
leehambley has quit [Quit: leehambley]
lggr has quit [Ping timeout: 260 seconds]
<rpattabi> i will like gem in submodule refer to its internal files
<rpattabi> but this gem refers to m/c gem
<rpattabi> is it required that all gems should use require_relative instead of plain require?
<rpattabi> any insights?
lggr has joined #ruby
zii has quit [Read error: Connection reset by peer]
binary3D has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
ken_barber has joined #ruby
manizzle has joined #ruby
ken_barber has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 260 seconds]
Criztian has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
acrocity has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
Xeago has joined #ruby
timmow has joined #ruby
lggr has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
shadoi has quit [Quit: Leaving.]
Shrink has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
spacebug_ has joined #ruby
Shrink has joined #ruby
Xeago has quit [Remote host closed the connection]
acrocity has joined #ruby
arietis has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
awestroke has joined #ruby
parzorep has quit [Quit: parzorep]
Shrink has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
kuzushi has quit [Ping timeout: 260 seconds]
saschagehlich has quit [Quit: saschagehlich]
shadoi has quit [Ping timeout: 245 seconds]
Shrink has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
knirhs has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
monkegjinni has quit [Read error: No route to host]
knirhs has joined #ruby
monkegjinni has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
baphled has joined #ruby
knirhs has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 260 seconds]
ForevernadeAFK is now known as Forevernade
knirhs has quit [Read error: Connection reset by peer]
lggr has joined #ruby
icole has quit [Remote host closed the connection]
rpattabi has quit [Quit: leaving]
sgupta has joined #ruby
nazty has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
nazty has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
sgupta has quit [Read error: Connection reset by peer]
Shrink has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
nohonor has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 245 seconds]
c0rn_ has quit []
naz has joined #ruby
knirhs has joined #ruby
acrocity has quit [Quit: leaving...]
_bart has quit [Quit: _bart]
sgupta has joined #ruby
nazty has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
acrocity has joined #ruby
fixl has joined #ruby
saschagehlich has joined #ruby
knirhs has quit [Ping timeout: 244 seconds]
knirhs has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
Eplemosen has joined #ruby
sgupta has quit [Ping timeout: 244 seconds]
lkba has quit [Ping timeout: 244 seconds]
sgupta has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
sgupta has quit [Read error: Connection reset by peer]
Shrink has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
leehambley has joined #ruby
wallerdev has quit [Quit: wallerdev]
lggr has joined #ruby
chendo_ has quit [Ping timeout: 240 seconds]
notVert has joined #ruby
sgupta has joined #ruby
chendo_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
uris has joined #ruby
berserkr has joined #ruby
jokar has quit [Ping timeout: 248 seconds]
Shrink has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 256 seconds]
JonnieCache|work has joined #ruby
sgupta has quit [Ping timeout: 245 seconds]
samphippen has joined #ruby
Monie has quit [Quit: Quit]
lggr has joined #ruby
jokar has joined #ruby
Monie has joined #ruby
matrixise has joined #ruby
rumba has quit [Quit: Page closed]
lggr has quit [Ping timeout: 248 seconds]
knirhs has joined #ruby
lggr has joined #ruby
sgupta has joined #ruby
sgupta has quit [Read error: Connection reset by peer]
Eplemosen has quit [Quit: NOPE]
Shrink has joined #ruby
<JonnieCache|work> am i actually here now?
<JonnieCache|work> my irc is being funny, keeps disconnecting me
<hoelzro> I see you.
knirhs has quit [Ping timeout: 260 seconds]
Shrink has quit [Read error: Connection reset by peer]
knirhs has joined #ruby
<JonnieCache|work> good. i need to get around to putting my irssi seesion inside a remote screen or something
lggr has quit [Ping timeout: 255 seconds]
und3f has joined #ruby
knirhs has quit [Ping timeout: 260 seconds]
tmttt has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
jgwong_ has quit [Ping timeout: 246 seconds]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Xeago> JonnieCache|work: alias irssi to start it in a screen?
justinmcp has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
danielszmulewicz has joined #ruby
rafacv has joined #ruby
frogprince_mac has joined #ruby
<JonnieCache|work> it needs to be remote though so i dont have to have separate sessions for home and work, with them going down all the time
rumba has joined #ruby
Shrink has joined #ruby
danielszmulewicz is now known as danielsz
parzorep has joined #ruby
knirhs has joined #ruby
timmow_ has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 260 seconds]
fyolnish has quit [Remote host closed the connection]
sgupta has joined #ruby
<Xeago> hmm, where is your remote?
Shrink has quit [Ping timeout: 260 seconds]
<Xeago> and why not use a bnc?
<Xeago> or do you care about history when offline?
lggr has joined #ruby
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
justsee has quit [Quit: Leaving...]
sgupta has quit [Read error: Connection reset by peer]
leehambley has quit [Quit: leehambley]
Shrink has quit [Read error: Connection reset by peer]
_mak has quit [Remote host closed the connection]
kuzushi has joined #ruby
parzorep has quit [Quit: parzorep]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
jcoglan has joined #ruby
<Vinz_> Hm, I installed data_mapper gem and dm-mysql-adapter
<Vinz_> But when I open http://localhost:4567
<Vinz_> I have this error : cannot load such file -- data_mapper
<Vinz_> Any help
<Vinz_> ?
<workmad3> Vinz_: is this a project that uses bundler?
jgwong has joined #ruby
<Vinz_> Nope
lggr has quit [Ping timeout: 260 seconds]
<Vinz_> I use Sinatra + Sinatra-Reloader
Jork1 has joined #ruby
<Vinz_> Oh wait !
<Vinz_> I'll try with restarting Sinatra server
<workmad3> yeah, you'll need to do that
<workmad3> your load path for the existing server won't have the new gem on it
<Vinz_> Oh, it worked :)
chrxn has quit [Ping timeout: 252 seconds]
chrxn has joined #ruby
lggr has joined #ruby
Shrink has joined #ruby
parzorep has joined #ruby
fixl has joined #ruby
<JonnieCache|work> Xeago: i have a bunch of VPSs that dont really do much
jgwong has quit [Ping timeout: 246 seconds]
<JonnieCache|work> Xeago: ive never really worked out what a bnc is, apart from something you can rent to hackers. is it just an irc proxy?
knirhs has joined #ruby
<Vinz_> JonnieCache|work: Run irssi in a screen ?
<JonnieCache|work> yeah thats what im planning :)
<Vinz_> That's what I'm doing :D
_mak has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
Shrink has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 252 seconds]
SeySayux has quit [Ping timeout: 255 seconds]
lkba has joined #ruby
Villadelfia has quit [Ping timeout: 260 seconds]
iori has quit [Remote host closed the connection]
monkegjinni has joined #ruby
lggr has joined #ruby
Villadelfia has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
SeySayux has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
krism has joined #ruby
krism has quit [Client Quit]
Shrink has joined #ruby
jgwong has joined #ruby
icole has joined #ruby
SeySayux has quit [Remote host closed the connection]
Villadelfia has quit [Remote host closed the connection]
m3pow has quit [Ping timeout: 246 seconds]
timmow has quit [Quit: has left the building]
knirhs has joined #ruby
SeySayux has joined #ruby
<Xeago> JonnieCache|work: bnc is an irc server you can connect to which proxy's your connection from there
triptec_ has joined #ruby
triptec has quit [Read error: Connection reset by peer]
triptec_ is now known as triptec
<Xeago> e.g. not requiring ssh for authentication, just normal irc-auth
Villadelfia has joined #ruby
<Xeago> VNC is a popular one, i'll set it up on your server if you want :)
justsee has quit [Ping timeout: 252 seconds]
<Vinz_> ZNC no ?
<Xeago> ZNC yea
<Xeago> wops
<Vinz_> VNC is quite not the same thing :]
danielsz` has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
<Xeago> in practice it could be used for the same thing, however let's just say I borked it :)
lggr has quit [Ping timeout: 240 seconds]
<Vinz_> Yeah, but i don't see the point in using VNC to go on IRC
<Vinz_> quite useless and would be laggy
<Xeago> erhm, have a remote cursor and clipboard :3
icole has quit [Ping timeout: 244 seconds]
<Xeago> English: Marcus' laptop, or Marcus's laptop
<Xeago> the first right?
<Vinz_> First yeah
<JonnieCache|work> of course, forget irssi+screen, what i want is mirc+vnc
<Xeago> mirc
lupine_85 has quit [Ping timeout: 268 seconds]
<JonnieCache|work> its so obvious to me now
<Vinz_> Ugh
<Xeago> mirc!
<Vinz_> mIRC burns in hell
ltsstar has joined #ruby
<Xeago> while I like MSL, it is just too slow for anything
<Xeago> delphi iirc right?
knirhs has quit [Ping timeout: 256 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
<Vinz_> mIRC « is highly configurable »
<Vinz_> ^ True story.
<Xeago> so is irssi
<Vinz_> irssi's better
<Vinz_> Much better
* hoelzro loves irssi
<Vinz_> Do not compare the best with shit :)
<hoelzro> I considered adding support for Ruby extensions for irssi, but that would take a *lot* of work, I think
ChampS666 has joined #ruby
jgwong_ has joined #ruby
<Vinz_> Yup
knirhs has joined #ruby
lggr has joined #ruby
pesblog has joined #ruby
<Vinz_> I'd like Ruby support on irssi, but I don't want to go on weechat
danielsz has quit [Quit: danielsz]
jgwong has quit [Ping timeout: 245 seconds]
danielsz` is now known as danielsz
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
<Vinz_> Hm, anyone here uses DataMapper ?
Shrink has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
knirhs has quit [Ping timeout: 244 seconds]
justsee has joined #ruby
jgwong has joined #ruby
justsee has quit [Client Quit]
knirhs has joined #ruby
froio has joined #ruby
<Vinz_> http://pastie.org/4901666 <- Does anyone know why this is not creating anything in my DB ?
luckyruby has quit [Remote host closed the connection]
lupine_85 has joined #ruby
jgwong_ has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 240 seconds]
m3pow has joined #ruby
<Vinz_> Anyone ?
jgwong has quit [Ping timeout: 252 seconds]
jgwong_ has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
lggr has joined #ruby
<Vinz_> Oh, I think I've found why
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<Vinz_> Now it's working :)
Meon has quit [Quit: Leaving]
Zai_ has joined #ruby
Zai_ has quit [Client Quit]
hsbt is now known as hsbt_away
samphippen has joined #ruby
froio has left #ruby [#ruby]
nari_ has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 248 seconds]
yshh has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
pesblog has left #ruby ["Leaving..."]
replore__ has joined #ruby
lggr has joined #ruby
rubious has quit [Quit: Leaving...]
replore_ has quit [Ping timeout: 255 seconds]
replore__ has quit [Remote host closed the connection]
jvkTommy has quit [Remote host closed the connection]
Zai_ has joined #ruby
parzorep has quit [Quit: parzorep]
Trioke has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 260 seconds]
Hanmac1 has joined #ruby
morozovm has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
parzorep has joined #ruby
parzorep has quit [Client Quit]
monkegjinni has quit [Read error: Connection reset by peer]
<Xeago> do you 'record' time in a timesheet
monkegjinni has joined #ruby
<Xeago> or is it called something else?
lggr has joined #ruby
Xeago_ has joined #ruby
Morkel has quit [Quit: Morkel]
Hanmac1 is now known as Hanmac
Xeago has quit [Ping timeout: 260 seconds]
replore has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
Zai_ has left #ruby [#ruby]
Zai_ has joined #ruby
Zai_ has quit [Client Quit]
bartj3 has quit []
Zai_ has joined #ruby
lggr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ezra has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Russell^^ has joined #ruby
Russell^^ has left #ruby [#ruby]
slainer6_ has joined #ruby
chussenot has quit [Quit: chussenot]
slainer68 has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
saschagehlich has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
bartj3 has joined #ruby
monkegjinni has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
butblack has joined #ruby
butblack has quit [Client Quit]
lggr has joined #ruby
strk has joined #ruby
<strk> how do I check if mystring starts with "MULTI" ?
jgwong_ has quit [Ping timeout: 245 seconds]
jokar has quit [Ping timeout: 246 seconds]
larissa has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
colinbm has quit [Quit: colinbm]
colinbm has joined #ruby
lupine_85 has quit [Ping timeout: 246 seconds]
jokar has joined #ruby
<Hanmac> strk: "MULTIabc".start_with?("MULTI")
lggr has quit [Ping timeout: 245 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
<strk> and string concatenation ?
ZubKonst_ has joined #ruby
<strk> undefined method `start_with?' for nil:NilClass
verto|off is now known as verto
<Hanmac> then you does shit with your code ... show me your pastie
lggr has joined #ruby
ZubKonst has quit [Ping timeout: 255 seconds]
tmttt has joined #ruby
manizzle has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 240 seconds]
elico has quit [Quit: elico]
jgwong has joined #ruby
lggr has joined #ruby
robertotauille has joined #ruby
xyzodiac has joined #ruby
jokar has quit [Ping timeout: 246 seconds]
<strk> :> .. never mind
<strk> moved the logic to SQL
Xeago_ has quit [Remote host closed the connection]
yours_truly has joined #ruby
Xeago has joined #ruby
justinmcp has quit [Remote host closed the connection]
xyzodiac has quit [Client Quit]
lggr has quit [Ping timeout: 255 seconds]
Agis__ has quit [Quit: Agis__]
reset has quit [Quit: Leaving...]
Nisstyre has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
ChampS666 has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
fyolnish_ has joined #ruby
strk is now known as strk_off
jokar has joined #ruby
_bart has joined #ruby
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
_bart has quit [Quit: _bart]
baphled has quit [Ping timeout: 260 seconds]
thisirs has joined #ruby
_bart has joined #ruby
_bart has quit [Client Quit]
lggr has joined #ruby
tommyvyo has joined #ruby
Nisstyre has joined #ruby
jgwong_ has joined #ruby
chussenot has joined #ruby
`brendan has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
jgwong has quit [Ping timeout: 240 seconds]
jokar1 has joined #ruby
jokar has quit [Ping timeout: 246 seconds]
matrixise has quit [Ping timeout: 245 seconds]
larissa has quit [Ping timeout: 246 seconds]
jgwong has joined #ruby
lggr has joined #ruby
jgwong_ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Elhu has joined #ruby
fermion has joined #ruby
justinmcp has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
mark_locklear has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
geekbri has joined #ruby
atmosx has quit [Remote host closed the connection]
lggr has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
lupine_85 has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
nari has joined #ruby
bapa has joined #ruby
lggr has joined #ruby
josh^ has quit [Ping timeout: 256 seconds]
krawchyk has joined #ruby
jokar1 has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
josh^ has joined #ruby
carlyle has joined #ruby
jeffreybaird has joined #ruby
frogprince_mac has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 260 seconds]
TheFuzzball has quit [Ping timeout: 245 seconds]
drPoggs has quit [Quit: Goodbye]
drPoggs has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
xyzodiac has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
lupine_85 has quit [Ping timeout: 250 seconds]
lggr has joined #ruby
joofsh has joined #ruby
oldB has joined #ruby
`gregorg` has quit [Changing host]
`gregorg` has joined #ruby
`gregorg` is now known as gregorg
jonathanwallace has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Spooner has joined #ruby
mensvaga has joined #ruby
EPIK has joined #ruby
lggr has joined #ruby
daniel_- has quit [Ping timeout: 246 seconds]
jgwong has quit [Ping timeout: 246 seconds]
amaurea has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
rafacv has left #ruby [#ruby]
<amaurea> Hi! I'm trying to compile ruby 1.9.3 on a system with openssl 0.9.8e. The compile fails when compiling ext/openssl due to conflicting declarations of HMAC_CTX_copy, etc from openssl_missing.h. I could edit openssl_missing.h to remove these declarations, but that's pretty hacky. Is there a better solution?
jonathanwallace has quit [Remote host closed the connection]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
bpalmer has left #ruby ["ERC Version 5.1.2 $Revision: 1.796.2.6 $ (IRC client for Emacs)"]
cburyta has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk has joined #ruby
lggr has joined #ruby
invisime has joined #ruby
justinmcp has quit [Remote host closed the connection]
d3vic3 has joined #ruby
keyvan has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
_bart has joined #ruby
mucker has joined #ruby
bbttxu has quit [Quit: bbttxu]
lggr has quit [Ping timeout: 256 seconds]
_bart has quit [Client Quit]
dangerousdave has quit [Quit: Leaving...]
jonathanwallace has joined #ruby
dangerousdave has joined #ruby
piotr_ has quit [Read error: Connection reset by peer]
piotr_ has joined #ruby
oldB has quit [Quit: oldB]
JustinCampbell has joined #ruby
aquaranto has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
guns has joined #ruby
monkegjinni has quit [Ping timeout: 244 seconds]
danielsz has quit [Ping timeout: 248 seconds]
guns has quit [Quit: guns]
SeanTAllen has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
Russell^^ has joined #ruby
Russell^^ has left #ruby [#ruby]
jonathanwallace has quit [Remote host closed the connection]
colinbm has quit [Quit: colinbm]
atmosx has quit [Quit: WeeChat 0.3.8]
xiexie_11 has joined #ruby
daniel_- has joined #ruby
strk_off is now known as strk
A124 has quit [Quit: Leaving.]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
A124 has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
whitenoise has joined #ruby
justinmcp has joined #ruby
cakehero has joined #ruby
onibox has joined #ruby
monkegjinni has joined #ruby
colinbm has joined #ruby
mohits has quit [Ping timeout: 246 seconds]
carlyle has quit [Remote host closed the connection]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
Criztian_ has joined #ruby
jimeh2 has joined #ruby
Criztian has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 246 seconds]
jrajav has joined #ruby
ianblenke1 has quit [Read error: Connection reset by peer]
linoj has joined #ruby
ianblenke1 has joined #ruby
bbttxu has joined #ruby
Goles has joined #ruby
jimeh has quit [Ping timeout: 240 seconds]
Russell^^_ has joined #ruby
Forevernade is now known as ForevernadeAFK
Russell^^_ has left #ruby [#ruby]
nari has quit [Ping timeout: 246 seconds]
samphippen has joined #ruby
lggr has joined #ruby
<strk> tables.each do |table|
<strk> user.in_database do |user_database|
<strk> next if true
<strk> that "next" above doesn't trigger next iteration of "tables" but continues to after the end of the "user.in_database" block
schaerli has joined #ruby
<hoelzro> makes sense
<hoelzro> next continues the current block
<hoelzro> ie. the innermost
<strk> does next accept a block count ?
<hoelzro> nope
<hoelzro> use throw/catch
<strk> the inner one is not even a loop
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<hoelzro> next and friends operate on blocks and loops
<hoelzro> doesn't matter which you're in
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
v0n has joined #ruby
samphippen has quit [Ping timeout: 240 seconds]
<strk> so: outer do |a| inner do |b| throw end rescue => e print & next end
* strk never knows how to write end of statement with these semicolon-less languages
samphippen has joined #ruby
<JonnieCache|work> you can use ; if you want
Spooner has quit [Ping timeout: 246 seconds]
horofox has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<JonnieCache|work> also for oneliners people generally use {} instead of do end because its much easier to read
<hoelzro> strk: you need to use catch, not rescue
Banistergalaxy has quit [Ping timeout: 252 seconds]
<hoelzro> so like this:
Jake232 has joined #ruby
<hoelzro> er, I can't even remember how to use catch.
* hoelzro doesn't use it very often
<Xeago> lol
<hoelzro> I *think* it's begin ... catch :sym ... end
kpshek has joined #ruby
darthdeus has joined #ruby
lggr has joined #ruby
<strk> uncaught throw
<strk> uff
sailias has joined #ruby
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
fredjean has quit [Ping timeout: 248 seconds]
peneconleche has joined #ruby
dpk has joined #ruby
philcrissman has joined #ruby
fantazo has joined #ruby
jshsu has joined #ruby
peneconleche has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 256 seconds]
jshsu has left #ruby ["Leaving..."]
<m3pow> hello hoelzro
carloslopes has joined #ruby
Hanmac has joined #ruby
peneconleche has joined #ruby
nwest has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
xyzodiac has joined #ruby
margle has joined #ruby
chimkan_ has joined #ruby
<strk> got it
<strk> catch :thing do; throw :thing; done
lggr has joined #ruby
awarner has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
iamjarvo has quit [Ping timeout: 240 seconds]
dpk has quit [Quit: Asleep at the keyboard.]
<Hanmac> strk when you need catch you maybe do something wrong
Spooner has joined #ruby
xyzodiac has quit [Client Quit]
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
<strk> I'm actually just trying to make the code readable
ChampS666 has joined #ruby
<strk> would use a do { if (cond) break; if (othercond) break; } while (0);
clocKwize has joined #ruby
beit has joined #ruby
awarner has quit [Read error: Connection reset by peer]
<clocKwize> is there a nicer way of putting client_revenue_sum = daily_data.collect { |dd| dd.client_revenue).sum ?
jerius has joined #ruby
Russell^^ has joined #ruby
Russell^^ has left #ruby [#ruby]
margle has quit [Read error: Connection reset by peer]
<burgestrand> There is no Array#sum
<Hanmac> clockwize: daily_data.map(&:client_revenue).inject(0,:+)
cburyta has quit [Remote host closed the connection]
<hoelzro> m3pow: ahoy
<m3pow> ahoy!!
peneconleche has quit [Quit: Linkinus - http://linkinus.com]
lggr has quit [Ping timeout: 260 seconds]
<m3pow> do you know any references to good well explained sorting algorithms in ruby : bubble , selection , etc
cburyta has joined #ruby
<clocKwize> Hanmac, sorry, I missed something: daily_data.collect { |dd| dd.client_revenue).compact.sum
<Hanmac> strk while (0); is so totaly wrong in ruby
<hoelzro> m3pow: me?
<clocKwize> Hanmac, client_revenue can be nil if its not been entered yet and 0 + nil = error
<m3pow> yes sir ! :)
<hoelzro> I do not, unfortunately...
<Hanmac> clockwize: then just add it: daily_data.map(&:client_revenue).compact.inject(0,:+)
<clocKwize> true
<clocKwize> why is inject(0, :+) better than .sum?
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
awarner has joined #ruby
justinmcp has quit [Remote host closed the connection]
mohits has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
ffranz has joined #ruby
ianblenke1 has quit [Quit: Leaving.]
chussenot has quit [Quit: chussenot]
margle has joined #ruby
elaptics is now known as elaptics`away
IrishGringo has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
evansbee has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
Agis__ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
chimkan_ has quit [Ping timeout: 260 seconds]
linoj has quit [Quit: linoj]
lggr has joined #ruby
stopbit has joined #ruby
hollymann has joined #ruby
dhruvasagar has joined #ruby
<Spooner> clocKwize : #sum is not standard Ruby (though it may well be in something like Rails), but #inject(0, :+) is.
<Spooner> But if #sum works, then just use that.
sagax has quit [Quit: Ухожу я от вас]
<hoelzro> ri Array#sum works, though...
samphippen has joined #ruby
<Spooner> What provides it, hoelzro? It isn't standard in 1.9.3
carlyle has joined #ruby
SJr has quit [Ping timeout: 260 seconds]
* hoelzro shrugs
<hoelzro> how bizarre
<Spooner> hoelzro : I assume all your installed gems will add to the ri database. I don't have Rails installed, so I'd guess it is magic they add.
<hoelzro> it doesn't work in irb =(
<hoelzro> I don't have rails either
sailias has joined #ruby
ltsstar has quit [Quit: ltsstar]
<Spooner> It will be one of your gems adding to core, but who knows which one ;)
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
<clocKwize> Spooner, yeah its part of activesupport I guess - Happy to depend on AS.
samphippen has quit [Client Quit]
bapa has quit [Read error: Connection reset by peer]
bapa has joined #ruby
<Hanmac> shevy sha3 is chosen
samphippen has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 260 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
<JonnieCache|work> how can it be broken it only came out yesterday
Russell^^_ has joined #ruby
Russell^^_ has left #ruby [#ruby]
lggr has joined #ruby
<Spooner> clocKwize : Ah yes, I tend to assume AS is just a part of Rails, when it is separate.
<JonnieCache|work> oh *chosen*
* JonnieCache|work has console blindness
<JonnieCache|work> time to go outside
awarner has quit [Remote host closed the connection]
onibox has quit [Quit: leaving]
RJ3000_ has joined #ruby
Gal3rielol has joined #ruby
<Hanmac> JonnieCache you read what you want to hear :D
sspiff has quit [Remote host closed the connection]
triptec_ has joined #ruby
<Xeago> lol
triptec has quit [Read error: Connection reset by peer]
triptec_ is now known as triptec
<clocKwize> Spooner, I'm working with rails anyway :)
joshman_ has joined #ruby
CarlB_the_great has joined #ruby
strk has left #ruby [#ruby]
lggr has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
tmttt has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
Agis__ has quit [Quit: Agis__]
jonathanwallace has joined #ruby
lggr has joined #ruby
elux has joined #ruby
framling has quit [Quit: Lost terminal]
framling has joined #ruby
internet_user has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
bbttxu has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
lolmaus has quit []
nyuszika7h has joined #ruby
philcrissman has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 255 seconds]
<amaurea> I just installed ruby, and I am trying to install a gem now, using gem install sup. However, it fails, complaining that my C compiler doesn't work when running configure for xapian-core. However, if I run configure manually, it works fine. The gem output can be found here: http://folk.uio.no/sigurdkn/gem_sup_error.txt and config.log here: http://folk.uio.no/sigurdkn/gem_sup_log.txt. As you can see, it tries to pass an -R option to gcc, which I have not seen do
lggr has quit [Ping timeout: 256 seconds]
philcrissman has joined #ruby
xyzodiac has joined #ruby
lggr has joined #ruby
Ankhers has joined #ruby
ttt has quit [Remote host closed the connection]
deadalus has joined #ruby
<amaurea> This is with gcc 4.7
t0rc has joined #ruby
t0rc has quit [Client Quit]
xyzodiac has quit [Quit: Computer has gone to sleep.]
xyzodiac has joined #ruby
mercwithamouth has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
tmttt has joined #ruby
_nitti has joined #ruby
lggr has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
chimkan has joined #ruby
iamjarvo has joined #ruby
jimeh2 has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
margle has quit [Quit: Computer has gone to sleep.]
keyvan has quit [Remote host closed the connection]
jerius has joined #ruby
chimkan has quit [Client Quit]
lggr has quit [Ping timeout: 252 seconds]
rmcafee has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
apok has joined #ruby
sent-hil has joined #ruby
bbttxu has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has joined #ruby
JonnieCache|work has quit [Ping timeout: 245 seconds]
jimeh2 has joined #ruby
<shevy> configure: error: C compiler cannot create executables
<shevy> See `config.log' for more details.
lggr has joined #ruby
freeayu has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
<shevy> missing --run aclocal-1.11'
<shevy> something is fucked up
<shevy> do you have aclocal installed
mercwithamouth has quit [Ping timeout: 252 seconds]
<shevy> does it work
<shevy> do you have tar installed
<shevy> does it work
<shevy> `aclocal' -> `/pkg/Automake/1.12.4/bin/aclocal'
<shevy> what is your automake version
josephwilk has joined #ruby
<shevy> /mn/regulus/u1/sigurdkn/local/lib/ruby/gems/1.9.1/gems/xapian-full-1.2.3/
<shevy> is also a very unusual path to have
<shevy> my gem dir is /usr/lib/ruby/gems etc...
_mak has quit [Remote host closed the connection]
ctshryock has joined #ruby
chimkan_ has joined #ruby
leehambley has joined #ruby
ctshryock has left #ruby [#ruby]
<amaurea> shevy: I am installing this in my home directory, since I do not administer this system
jenrzzz has quit [Ping timeout: 252 seconds]
<shevy> ok let's see... I will run "gem install sup"
<shevy> Fetching: xapian-full-1.2.3.gem ( 51%)
<shevy> configure: error: in `/pkg/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3':
<shevy> configure: error: C compiler cannot create executables
<shevy> See `config.log' for more details.
<shevy> failed for me too
<amaurea> That is, ruby has been configured with --prefix=$HOME/local
<amaurea> huh, ok
<shevy> if I have to make an educated guess, the guys who wrote xapian are idiots
<amaurea> nice to see that it isn't just me
<amaurea> which version of gcc do you have?
triptec has quit [Ping timeout: 240 seconds]
<shevy> yes they are idiots
<amaurea> -R is apparently something that used to work, though one wasn't supposed to use it
<shevy> "checking whether the C compiler works... no"
<shevy> my GCC works fine here
<amaurea> my gcc works fine for me too
JonnieCache|work has joined #ruby
<shevy> gcc version 4.6.3 (Debian 4.6.3-1)
<shevy> do they have any bugtracker at all?
dmiller has joined #ruby
Banistergalaxy has joined #ruby
<shevy> lol
<shevy> I just went into the directory
lggr has quit [Ping timeout: 256 seconds]
<shevy> and it is compiling :)
<amaurea> that is, you went into xapian-core, right?
<shevy> gems/xapian-full-1.2.3/xapian-core-1.2.3/
<shevy> into there yeah
<amaurea> I got that to work too, and did make and make install
dhruvasagar has quit [Ping timeout: 252 seconds]
<amaurea> but it didn't stick, so to say: when I tried gem install sup again, it tried to install xapian again, and it failed the same way
<amaurea> perhaps because I only did it for core
mmitchell has joined #ruby
dhruvasagar has joined #ruby
awarner has joined #ruby
skaczor has joined #ruby
Gal3rielol has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has joined #ruby
ndboost has joined #ruby
Takehiro has quit [Remote host closed the connection]
ckrailo has joined #ruby
awarner has quit [Remote host closed the connection]
<amaurea> I tried to ask in #xapian now
flype has joined #ruby
<shevy> I am sure they are incompetent
_mak has joined #ruby
Beoran_ has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Beoran__ has quit [Read error: Operation timed out]
thisirs has quit [Remote host closed the connection]
bradleyprice has joined #ruby
yours_truly has quit [Ping timeout: 240 seconds]
jgrevich has joined #ruby
lggr has joined #ruby
rasbonics has joined #ruby
maesbn has quit [Remote host closed the connection]
hollymann has quit [Quit: hollymann]
maesbn has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
dpk has joined #ruby
jokar has joined #ruby
Axsuul has quit [Ping timeout: 256 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
chrisja has joined #ruby
ChampS666 has quit [Ping timeout: 256 seconds]
Jake232 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bartj3 has quit []
ForevernadeAFK is now known as Forevernade
djdb has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
maesbn has quit [Ping timeout: 240 seconds]
sagax has joined #ruby
ltsstar has joined #ruby
chussenot has joined #ruby
lggr has joined #ruby
blazes816 has joined #ruby
bapa has quit [Ping timeout: 240 seconds]
morozovm has quit [Read error: Connection reset by peer]
zcreative has joined #ruby
hakunin has joined #ruby
davidcelis has quit [Quit: K-Lined.]
replore has quit [Remote host closed the connection]
Jamone has joined #ruby
baphled has joined #ruby
Xeoncross has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
_nitti has joined #ruby
kosspad has joined #ruby
Takehiro has joined #ruby
rippa has joined #ruby
senny has quit [Remote host closed the connection]
Monie has quit [Ping timeout: 244 seconds]
dmiller has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 256 seconds]
nat2610 has joined #ruby
jgwong has joined #ruby
fredjean has joined #ruby
rabidpraxis has joined #ruby
bbttxu has quit [Quit: bbttxu]
carlyle has quit [Remote host closed the connection]
Hanmac has joined #ruby
triptec has joined #ruby
mengu has quit [Quit: Konversation terminated!]
horofox has quit [Quit: horofox]
linoj has joined #ruby
tagrudev has quit [Remote host closed the connection]
lggr has joined #ruby
Virunga has joined #ruby
aganov has quit [Quit: aganov]
awarner has joined #ruby
JustinCa_ has joined #ruby
iamjarvo has quit [Read error: No route to host]
baroquebobcat has joined #ruby
nat2610 has quit [Quit: Leaving.]
JustinCampbell has quit [Ping timeout: 260 seconds]
Pip has joined #ruby
<Pip> Is there 64bit vesrsion of Ruby implementation?
iamjarvo has joined #ruby
eignerchris has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
horofox has joined #ruby
_2easy has quit [Quit: Lost terminal]
horofox has quit [Client Quit]
<Hanmac> Pip ... what OS? under linux you has ruby for 32 and for 64 bit
lteo has joined #ruby
horofox has joined #ruby
<Pip> Hanmac, Win
Virunga has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
d3vic3 has quit [Quit: leaving]
cascalheira has joined #ruby
jearvondharrie has joined #ruby
Virunga has joined #ruby
lggr has joined #ruby
JustinCampbell has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
JustinCa_ has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
_mak has quit [Remote host closed the connection]
awarner has quit [Remote host closed the connection]
Hanmac has quit [Remote host closed the connection]
kosspad has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
sagax has quit [Quit: Ухожу я от вас]
Jork1 has quit [Quit: Jork1]
carlyle has joined #ruby
vjt has quit [Ping timeout: 272 seconds]
samphippen has joined #ruby
vjt has joined #ruby
jgrevich_ has joined #ruby
Jork1 has joined #ruby
<bnagy> Pip: use jruby
<Pip> bnagy, I hate JVM
F1skr has joined #ruby
jgrevich has quit [Ping timeout: 260 seconds]
jgrevich_ is now known as jgrevich
carloslopes has quit [Quit: Leaving.]
ttt has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
daniel_- has quit [Quit: WeeChat 0.3.8]
Hanmac has joined #ruby
philcrissman has quit [Remote host closed the connection]
dmiller has joined #ruby
_nitti has quit [Remote host closed the connection]
philcrissman has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
<bnagy> well, that's your option for 64 bit on windows
lggr has joined #ruby
<bnagy> and anyway 'hating JVM' is like hating thunder, or the colour green or something
margle has joined #ruby
_nitti has joined #ruby
indel has joined #ruby
<bperry> I hate the jvm
margle has quit [Client Quit]
<bperry> I hate java
* Hanmac hates java in general, but eclipse is okay
<bperry> I hate eclipse more than java!
<bperry> #vim
<_7894> Java sucks, but.. hey.. no reason to hate unless you have to work with it
<bperry> I do have to work with it :(
<_7894> That sucks
<blazes816> I'd hate it
<bperry> it is only 30% of my jobish though
caveat- has quit [Ping timeout: 248 seconds]
cakehero has quit [Ping timeout: 256 seconds]
hoelzro is now known as hoelzro|away
deadalus has quit [Ping timeout: 252 seconds]
chrishunt has quit [Ping timeout: 260 seconds]
Takehiro has quit [Remote host closed the connection]
skryking has left #ruby ["Konversation terminated!"]
hadees has quit [Quit: hadees]
lggr has quit [Ping timeout: 260 seconds]
niklasb has quit [Read error: Operation timed out]
<JonnieCache|work> why would you hate the jvm
margle has joined #ruby
<bperry> JonnieCache|work: is that sarcasm?
<bperry> have you been under a rock the past few months where every month there is a java exploit that bypasses the sandbox
lggr has joined #ruby
m3pow_ has joined #ruby
caveat- has joined #ruby
roychri has joined #ruby
awestroke has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
triptec has quit [Ping timeout: 240 seconds]
chrisbolton has joined #ruby
triptec has joined #ruby
macmartine has joined #ruby
ndboost has quit [Remote host closed the connection]
m3pow has quit [Ping timeout: 252 seconds]
<roychri> I have a class with namespace "Foo::Bar::Whatever" and I am trying to see if this class exists by doing Object.const_defined?("Foo::#{somevar}::Whatever") but I get an error "wrong constant name". I presume that a constant cannot have ::, that is why... But I do not know how else to find out if a class exists. any pointers?
samphippen has quit [Quit: Computer has gone to sleep.]
<Hanmac> the joke is, when some sandbox is broken do the java developer make a better sandbox? no, they do yetanother sandbox around the first sandbox
m3pow_ has quit [Client Quit]
m3pow has joined #ruby
horofox has quit [Quit: horofox]
lggr has quit [Ping timeout: 240 seconds]
xyzodiac has joined #ruby
<Hanmac> roychri: "Foo::Bar::Whatever".split("::").inject(Object) {|c,s| c && c.const_defined?(s)}
ndboost_ has joined #ruby
Trioke has joined #ruby
colinbm has quit [Quit: colinbm]
Monie has joined #ruby
timonv has quit [Remote host closed the connection]
mikepack has joined #ruby
<roychri> Hanmac: I'll test this afte lunch! :) Thanks!
notVert has quit [Read error: Connection reset by peer]
aantix has joined #ruby
Jamone has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
AlbireoX has joined #ruby
ndboost_ has quit [Remote host closed the connection]
hukl has joined #ruby
apok has quit [Quit: apok]
monkegjinni has quit [Read error: No route to host]
SegFaultAX|work has joined #ruby
<Hanmac> roychri: this is better: "Foo::Bar::Whatever".split("::").inject(Object) {|c,s| c && c.const_defined?(s) ? c.const_get(s) : false}
monkegjinni has joined #ruby
samphippen has joined #ruby
timmow_ has quit [Quit: is having a nap]
mmitchel_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
hadees has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
mmitchell has quit [Ping timeout: 245 seconds]
samflores has joined #ruby
lggr has joined #ruby
linoj has quit [Quit: linoj]
_nitti_ has joined #ruby
Kudos has quit [Ping timeout: 264 seconds]
nga4 has joined #ruby
carlyle has quit [Remote host closed the connection]
friskd has quit [Quit: friskd]
ryanlecompte has joined #ruby
zii has joined #ruby
_nitti has quit [Ping timeout: 240 seconds]
fboudrea has joined #ruby
oldB has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
tommyvyo_ has joined #ruby
oldB has quit [Client Quit]
lggr has quit [Ping timeout: 246 seconds]
oldB has joined #ruby
fboudrea has left #ruby [#ruby]
ndboost has joined #ruby
hollymann has joined #ruby
<roychri> Hanmac: Your first suggestion does not seem to work. Maybe I am doing it wrong. Trying out second suggestino.
rasbonics_ has joined #ruby
lggr has joined #ruby
Takehiro has joined #ruby
rasbonics has quit [Ping timeout: 246 seconds]
rasbonics_ is now known as rasbonics
<roychri> Hanmac: Will these works if the first part does not exists as a class by itself? "Foo::Bar::Whaveter" and "Foo" does not exists...
CarlB_the_great has quit [Remote host closed the connection]
Bidness has joined #ruby
Bidness has quit [Remote host closed the connection]
alvaro_o has joined #ruby
<roychri> Hanmac: I am asking because what you propose works but some classes and not for others.
Bidness has joined #ruby
<Hanmac> that confuses me ...
tmttt has quit [Ping timeout: 246 seconds]
vivianachan has joined #ruby
<vivianachan> hello
Mon_Ouie has joined #ruby
<roychri> Hanmac: I'll do more tests to make sure it's not me doing something wrong
rasbonics has quit [Read error: Connection reset by peer]
oldB has quit [Quit: oldB]
nyuszika7h has quit [Read error: Connection reset by peer]
jearvondharrie has quit [Ping timeout: 240 seconds]
CarlB_the_great has joined #ruby
<workmad3> roychri: if Foo::Bar::Whatever exists, then Foo exists
<vivianachan> someone could help me
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
nyuszika7h has joined #ruby
sent-hil has quit [Read error: Connection reset by peer]
codebeaker has joined #ruby
nyuszika7h has quit [Client Quit]
sent-hil has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
linoj has joined #ruby
jimeh2 has quit [Ping timeout: 244 seconds]
sent-hil has quit [Remote host closed the connection]
damien has joined #ruby
<roychri> vivianachan: People here answers questions. Please specify why you need help. Check this guide for asking the right kind of questions: http://www.mikeash.com/getting_answers.html
nyuszika7h has joined #ruby
sent-hil has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
leehambley has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
schaerli has quit [Remote host closed the connection]
deadalus has joined #ruby
<vivianachan> thanks
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
sent-hil_ has joined #ruby
ianbrandt has joined #ruby
ianbrandt has quit [Excess Flood]
ianbrandt has joined #ruby
sent-hil has quit [Read error: Connection reset by peer]
chimkan_ has quit [Quit: chimkan_]
chrishunt has joined #ruby
<Spooner> vivianachan : Best to just ask your question, then anyone qualified to answer can answer. If you ask for help, none of us will step forward, because you could want any of 10,000 answers ;)
lggr has joined #ruby
samflores has quit [Ping timeout: 246 seconds]
_bart has joined #ruby
carlyle has joined #ruby
<JonnieCache|work> bperry: fair point. from the point of view of developers the jvm is a great tool though
cantonic_ has joined #ruby
<JonnieCache|work> bperry: but youre right, from the user and operations point of view, perhaps not so much
damien has quit [Client Quit]
<xclite> Is anybody aware of a standard, maintained library for creating Ruby command-line apps? I need something that supports one level of subcommands
daslicious has joined #ruby
<Spooner> xclite : slop (many others though).
<vivianachan> my problem is non capisco bene l'inglese ma ci provo.
<vivianachan> il mo problema è riuscire a collegare mysql2 con rails 3
<JonnieCache|work> at the end of the day, dont run native code you dont trust. those jvm exploits are mostly a problem because the jvm is in browsers, which is just a Bad Idea(tm)
<vivianachan> I do not understand English well but I try.
<vivianachan> m the problem is being able to connect with rails 3 mysql2
<roychri> Hanmac: Ok, I found out why my results were not as I expected. What you provided works great, thanks.
<xclite> Spooner, thanks will check it out. I've looked at thor, commander, etc but didn't have quite what I needed
<Spooner> xclite : cri also manages subcommands.
Bidness has quit [Remote host closed the connection]
<JonnieCache|work> if there was a facility for running c sharp or whatever other bytecode language in the browser, its sandbox would be broken every month as well, because its such a tasty target
<Spooner> vivianachan : Ask in #rails or #rubyonrails
<vivianachan> ok
<Hanmac> its #rubyonrails
<shevy> vivianachan you can always use simple english :)
<shevy> 200 words is ok
<Hanmac> #rails seems to be dead
<vivianachan> thanks
<_7894> 4000
<xclite> Spooner, looks promising, thanks a ton. I wrote my own stuff that parses the subcommands correctly, but I don't want to be reinventing a crappier wheel
<Spooner> Hanmac : Ah, I never go there. I only point people ;)
<shevy> you point them in the wrong direction so they fall into the abyss :(
<shevy> admit it!
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
<xclite> shevy, IT'S A TARP
<shevy> a what?
<xclite> too esoteric i guess
<xclite> haha
<shevy> is that like a turf...
<xclite> or like a trap
<Hanmac> i am in none of the channels eigher ... i only knew wich is the right one
<Spooner> I am the road-sign that Dick Dastardly has spun around!
slainer6_ has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
<shevy> I only know Donald Duck
<xclite> throwback haha
davidcelis has joined #ruby
<Spooner> It was all just noise after Steamboat Willy!
Pip has left #ruby ["离开"]
carloslopes has joined #ruby
chimkan_ has joined #ruby
samflores has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
xyzodiac has joined #ruby
elsifaka has quit [Quit: Veloma e!]
jearvondharrie has joined #ruby
arturaz has quit [Ping timeout: 255 seconds]
DrShoggoth has joined #ruby
lggr has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
jearvondharrie has quit [Ping timeout: 260 seconds]
CarlB_the_great has joined #ruby
voodoofish430 has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
_Amen_Makveli_ has joined #ruby
nga4 has quit []
whitenoise has quit [Quit: This computer has gone to sleep]
_Amen_Makveli_ has quit [Client Quit]
lggr has quit [Ping timeout: 255 seconds]
_Amen_Makveli_ has joined #ruby
_Amen_Makveli_ has quit [Remote host closed the connection]
_Amen_Makaveli_ has joined #ruby
burgestrand has joined #ruby
friskd has joined #ruby
cakehero has joined #ruby
friskd has quit [Read error: Connection reset by peer]
codebeaker has quit [Quit: codebeaker]
lggr has joined #ruby
nat2610 has joined #ruby
jenrzzz has joined #ruby
SegFaultAX|work has quit [Ping timeout: 246 seconds]
Vainoharhainen has quit [Quit: Leaving...]
apok has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
margle has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jblack has joined #ruby
the_jeebster has joined #ruby
chussenot has quit [Quit: chussenot]
zigomir has quit [Quit: Leaving]
mahmoudimus has joined #ruby
falieson has joined #ruby
nat2610 has quit [Quit: Leaving.]
juarlex has quit [Remote host closed the connection]
sent-hil_ has quit [Remote host closed the connection]
lggr has joined #ruby
<falieson> with data mapper, how do I do Foo.last.update(:hello => "earth") but for a specific row rather than the last one?
<bperry> Foo.find_by_id?
Elhu has quit [Quit: Computer has gone to sleep.]
<falieson> thanks. I was trying .get(:id = foo_id) and that didn't work so much appreciated!
<bperry> np
zemanel has joined #ruby
wallerdev has joined #ruby
xyzodiac has quit [Ping timeout: 240 seconds]
jrajav has quit []
shevy has quit [Ping timeout: 246 seconds]
wargasm has joined #ruby
ianblenke1 has joined #ruby
wpaulson has joined #ruby
apok has quit [Read error: Connection reset by peer]
deadalus has quit [Ping timeout: 248 seconds]
apok has joined #ruby
ianblenke1 has quit [Client Quit]
adamkittelson has joined #ruby
eldar has joined #ruby
<falieson> bperry: undefined method `find_by_id' for Calendar:Class
lggr has quit [Ping timeout: 240 seconds]
SegFaultAX|work has joined #ruby
chrisbolton has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
<bperry> sorry it is just find()
Spooner has quit [Ping timeout: 246 seconds]
Jork1 has quit [Quit: Jork1]
<falieson> I'm using datamapper
jonathanwallace has joined #ruby
<bperry> ah nm then heh
<bperry> I misread what you had typed
zcreative has quit [Quit: zcreative]
_nitti_ is now known as _nitit
_nitit is now known as _nitti
shadoi has joined #ruby
<falieson> haha, nm
colinbm has joined #ruby
nightfalcon has quit [Quit: leaving]
lggr has joined #ruby
<Vinz_> Is the :404 symbol valid ?
<falieson> bperry: :-/ I don't see anywhere how to do a specific row. like wtf?
JustinCa_ has joined #ruby
JustinCampbell has quit [Read error: No route to host]
mrsolo has joined #ruby
<falieson> bperry: hmm… I have to use Foo.all(:id => 123).update(:world => "earth") and it works fine
Takehiro has quit [Remote host closed the connection]
<bperry> I see, cool
<Vinz_> Anyone ?
cburyta_ has joined #ruby
xyzodiac has joined #ruby
ncr100 has joined #ruby
cbuxton has joined #ruby
stephenjudkins has joined #ruby
berserkr has quit [Quit: Leaving.]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
jer1ko_away is now known as jer1ko
colinbm has quit [Quit: colinbm]
<Vinz_> Oh non, nevermind
<Vinz_> no*
lggr has quit [Ping timeout: 246 seconds]
keyvan is now known as love_color_text_
jonathanwallace has quit [Remote host closed the connection]
shevy has joined #ruby
yakitori has quit [Ping timeout: 248 seconds]
mr-rich has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
yakitori has joined #ruby
nwertman has joined #ruby
nat2610 has joined #ruby
lggr has joined #ruby
<nwertman> Quick question guys… I'm trying to install the 'sqlite3' gem on my OS X 10.8 machine. Things seem to install fine, but "require 'sqlite3'" is unable to find sqlite
workmad3 has quit [Ping timeout: 255 seconds]
thatRD has joined #ruby
<Xeago> using bundle?
<nwertman> [1] pry(main)> require 'sqlite3'
<nwertman> LoadError: no such file to load -- sqlite3
<matti> Xeago: ;-)
<Xeago> what is the ruby version?
dmiller has quit [Remote host closed the connection]
<nwertman> Stock OS version: 1.8.7
<Xeago> blurgh ML comes with old shit
<nwertman> According to 'gem list' it shows up.
<Xeago> didn't expect that
<Xeago> require 'rubygems'
<nwertman> Already required
mucker has quit [Quit: leaving]
philcrissman has quit [Remote host closed the connection]
mk03 has joined #ruby
<nwertman> Okay, looks like it is some bundler magic that is causing issues.
<Xeago> run bundle exec pry
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
samflores is now known as samflores|away
leehambley has joined #ruby
mk03 has quit [Remote host closed the connection]
internet_user has quit [Remote host closed the connection]
baphled has quit [Ping timeout: 240 seconds]
internet_user has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
mmitchel_ has quit [Remote host closed the connection]
wpaulson has joined #ruby
mmitchell has joined #ruby
jblack has quit [Quit: Changing server]
jblack_ has joined #ruby
sent-hil has joined #ruby
bricker has joined #ruby
jblack_ is now known as jblack
sent-hil has quit [Remote host closed the connection]
lggr has joined #ruby
ffranz has quit [Quit: Leaving]
samflores|away is now known as samflores
ffranz has joined #ruby
Morkel has joined #ruby
cburyta_ has quit [Remote host closed the connection]
kirun has joined #ruby
Morkel has quit [Client Quit]
sepp2k1 has joined #ruby
pskosinski has quit [Ping timeout: 256 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
_nitti has quit [Remote host closed the connection]
Synthead has quit [Remote host closed the connection]
Morkel has joined #ruby
Synthead has joined #ruby
nitti has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
icole has joined #ruby
JonnieCache|work has quit [Ping timeout: 244 seconds]
cburyta has joined #ruby
KindTwo has joined #ruby
Tearan has joined #ruby
jer1ko is now known as jer1ko_away
Jellyg00se has quit [Quit: Leaving]
Zai_ has quit [Quit: Zai_]
jenrzzz has quit [Ping timeout: 260 seconds]
ngoldman has joined #ruby
friskd has joined #ruby
lggr has joined #ruby
slicslak has joined #ruby
darkc0met has joined #ruby
jer1ko_away is now known as jer1ko
dhruvasagar has quit [Ping timeout: 240 seconds]
sent-hil has joined #ruby
friskd_ has joined #ruby
Takehiro has joined #ruby
xargoon has quit [Ping timeout: 265 seconds]
friskd has quit [Ping timeout: 248 seconds]
friskd_ is now known as friskd
Virunga has quit [Remote host closed the connection]
kpshek has quit []
lggr has quit [Ping timeout: 240 seconds]
aquaranto has quit [Remote host closed the connection]
pskosinski has joined #ruby
bwlang has joined #ruby
bwlang has quit [Excess Flood]
rubious has joined #ruby
arturaz has joined #ruby
bwlang has joined #ruby
colinbm has joined #ruby
chussenot has joined #ruby
kpshek has joined #ruby
indel has quit [Remote host closed the connection]
lggr has joined #ruby
atmosx has joined #ruby
jcoglan has quit [Ping timeout: 244 seconds]
hollymann has quit [Ping timeout: 246 seconds]
xargoon has joined #ruby
zemanel has quit [Quit: zemanel]
Takehiro has quit [Ping timeout: 248 seconds]
Neomex has joined #ruby
g-ram_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
monkegjinni has quit [Ping timeout: 252 seconds]
colinbm has quit [Quit: colinbm]
monkegjinni has joined #ruby
jer1ko is now known as jer1ko_away
lggr has quit [Ping timeout: 248 seconds]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
stephenjudkins has quit [Quit: stephenjudkins]
jonathanwallace has joined #ruby
philcrissman has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
whitenoise has joined #ruby
philcrissman has joined #ruby
<blazes816> is there a way to ignore whitespace in a string you're matching with regex? I know /x ignores whitespace in the regex itself, but I want something like: "foo bar" =~ /foobar/ #=> 0
jearvondharrie has joined #ruby
<blazes816> and I need to preserve this in my match as well
macmartine has joined #ruby
stkowski has joined #ruby
<blazes816> "foo bar".match(/foobar/).to_s #=> "foo bar"
dmiller has joined #ruby
gani has joined #ruby
lggr has joined #ruby
awarner has joined #ruby
<Hanmac> "foo bar".tr(" ","") =~ /foobar/
josephwilk has quit [Remote host closed the connection]
Goles has quit [Ping timeout: 246 seconds]
kpshek has quit []
lupine_85 has joined #ruby
Russell^^ has joined #ruby
Asher has joined #ruby
jrist is now known as jrist-afk
SegFaultAX|work has quit [Ping timeout: 240 seconds]
TheFuzzball has joined #ruby
mr-rich has joined #ruby
mengu has joined #ruby
falieson has quit [Quit: falieson]
<blazes816> "foo Bar".tr(" ","").match(/foobar/i) #=> "fooBar"
Virunga has joined #ruby
jer1ko_away is now known as jer1ko
Asher has quit [Read error: Connection reset by peer]
flagg0204 has quit [Quit: leaving]
lggr has quit [Ping timeout: 246 seconds]
undert_ has joined #ruby
Asher has joined #ruby
gani has quit [Quit: leaving..]
jer1ko is now known as jer1ko_away
lupine_85 has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
jonatha__ has joined #ruby
elaptics`away is now known as elaptics
mensvaga has quit [Remote host closed the connection]
jonatha__ has quit [Remote host closed the connection]
eignerchris has quit [Ping timeout: 244 seconds]
eignerchris has joined #ruby
lggr has joined #ruby
mark_locklear has quit [Quit: Leaving]
jeeky has joined #ruby
otters has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Ping timeout: 256 seconds]
otters has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
friskd has quit [Quit: friskd]
baroquebobcat_ has joined #ruby
friskd has joined #ruby
friskd has quit [Remote host closed the connection]
friskd has joined #ruby
friskd has quit [Client Quit]
flagg0204 has joined #ruby
ForevernadeAFK has joined #ruby
baroquebobcat has quit [Ping timeout: 255 seconds]
baroquebobcat_ is now known as baroquebobcat
lggr has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Forevernade has quit [Ping timeout: 240 seconds]
Kudos has joined #ruby
_nyuszika7h_ has joined #ruby
gani has joined #ruby
jearvondharrie is now known as iamjarvo
lggr has joined #ruby
haxrbyte_ has quit [Ping timeout: 260 seconds]
Forevernade has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
gani has quit [Client Quit]
uris has quit [Quit: Lost terminal]
<fir_ed> def method(object) ... end <<---would that work?
<fir_ed> Can ruby take object parameters like that?
<blazes816> yep, everything is an object
<blazes816> def add_one(x); x + 1; end << --- x is an object
<blazes816> unless i'm completely misunderstanding you
zii has quit [Read error: Connection reset by peer]
stephenjudkins has joined #ruby
ForevernadeAFK has quit [Ping timeout: 248 seconds]
Jork1 has joined #ruby
timonv has joined #ruby
zii has joined #ruby
<fir_ed> Mm..that'll do. Thanks blazes816. :).
iamjarvo has quit [Ping timeout: 240 seconds]
Targen has joined #ruby
JustinCampbell has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
JustinCa_ has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
thatRD has quit [Quit: thatRD]
macmartine has joined #ruby
<Hanmac> some things are neigher objects nor methods, but return objects ... like defined? is not an real method, its an parser feature
lggr has joined #ruby
jblack has quit [Quit: Lost terminal]
jer1ko_away is now known as jer1ko
_nyuszika7h_ has quit [Quit: ZNC - http://znc.in]
deadghost has quit [Ping timeout: 255 seconds]
elaptics is now known as elaptics`away
monkegjinni has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
oldB has joined #ruby
the_jeebster has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
lggr has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
verto is now known as verto|off
jbw has joined #ruby
fredjean has quit [Ping timeout: 255 seconds]
awestroke has joined #ruby
verto|off is now known as verto
reset has joined #ruby
fredjean has joined #ruby
nitti has quit [Remote host closed the connection]
answer_42 has quit [Quit: WeeChat 0.3.9]
oldB has quit [Quit: oldB]
lggr has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
Neomex has quit [Quit: Neomex]
imami|afk is now known as banseljaj
zemanel has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
falieson_ has joined #ruby
monkegjinni has joined #ruby
Tearan has quit [Ping timeout: 248 seconds]
the_jeebster has joined #ruby
lggr has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
<falieson_> http://pastie.org/4904074 someone helped me last night, but I don't really understand it or how to implement it. It's the bottom portion of the pastie
slainer68 has joined #ruby
xiexie_11 has quit [Ping timeout: 255 seconds]
samflores is now known as samflores|away
slicslak has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
slicslak has joined #ruby
bluOxigen has joined #ruby
fortysixandtwo_ has joined #ruby
fortysixandtwo has quit [Ping timeout: 240 seconds]
fortysixandtwo_ is now known as fortysixandtwo
lggr has quit [Ping timeout: 244 seconds]
daniel_- has joined #ruby
jrajav has joined #ruby
monkegji_ has joined #ruby
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
vivianachan has quit []
monkegjinni has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
Agis__ has joined #ruby
_bart has quit [Quit: _bart]
lggr has joined #ruby
<falieson_> can someone take a look and point out how I should use tally_dates ?
Virunga has quit [Remote host closed the connection]
mxweas has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
und3f has quit [Ping timeout: 255 seconds]
QKO has quit [Ping timeout: 240 seconds]
cascalheira has quit [Quit: Leaving...]
arturaz has quit [Remote host closed the connection]
monkegji_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
v0n has joined #ruby
jer1ko is now known as jer1ko_away
moshee has quit [Ping timeout: 248 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
lggr has joined #ruby
Xeago has quit [Remote host closed the connection]
ndboost has quit [Remote host closed the connection]
ngoldman has quit [Ping timeout: 252 seconds]
chrishunt has quit [Ping timeout: 246 seconds]
reset has quit [Quit: Leaving...]
jcoglan has joined #ruby
<jcoglan> hi all
oldB has joined #ruby
<jcoglan> having a bit of a problem with TCPServer -- can anyone help? https://gist.github.com/3829094
und3f has joined #ruby
sagax has joined #ruby
nitti has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
samflores|away has quit [Quit: Leaving...]
zemanel has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
eldar has quit []
R3dy has joined #ruby
<R3dy> what would be the ruby equivlant of Python's unpack('>I', string_to_unpack)?
lggr has joined #ruby
<R3dy> so doing that in pythong converts this '"\x00\x00\x04R"' to this '1104'
<R3dy> i try string.unpack(">I") however it does not produce the desired result
deadghost has joined #ruby
Virunga has joined #ruby
nitti has quit [Ping timeout: 244 seconds]
jgwong_ has joined #ruby
<reactormonk> R3dy: what does python >I do?
<R3dy> >I i'm assuming means integer
<R3dy> I'm not exactly sure
<reactormonk> ...
<reactormonk> try I>
<reactormonk> RTFM helps btw
philcrissman has quit [Remote host closed the connection]
SegFaultAX|work has joined #ruby
<R3dy> yeah so it didn't help in this case
<R3dy> thats why I came here
<R3dy> so I tried that
<R3dy> and produces a completly differnt value
<reactormonk> I just did rtfm, and that works
<reactormonk> you might need a halfway updated ruby
<reactormonk> that's in the doc as well
lggr has quit [Ping timeout: 240 seconds]
<R3dy> this is the value ruby gives me
<R3dy> 1375993856
<R3dy> when I run unpack("I>") on that string
jgwong has quit [Ping timeout: 244 seconds]
<reactormonk> "\x00\x00\x04R".unpack("I>")
<reactormonk> => [1106]
<reactormonk> your move.
jrist-afk is now known as jrist
<R3dy> lol got it
<R3dy> might be I am bringing it into the unpack
<R3dy> as a differnt value
bluOxigen has quit [Ping timeout: 246 seconds]
<R3dy> i'll dig deeper
<R3dy> thanks!
<aces23up> anyone know of a library that will redirecting stdout remotely? basically I want to run a remote rake task and get the stdout locally.
<R3dy> p.s no need to get super fursterated with people who don't knwo something that you do. It isn't worth it ;)
eric has joined #ruby
eric is now known as Guest80119
philcrissman has joined #ruby
lggr has joined #ruby
<R3dy> this is so weird
<R3dy> "\x00\x00\x04R".unpack("I>") => [1375993856]
<R3dy> that's from version 1.9.2
Guest80119 is now known as fumduq
cardoni has joined #ruby
nitti has joined #ruby
wpaulson has joined #ruby
lupine_85 has joined #ruby
maletor has joined #ruby
ndboost has joined #ruby
Zai_ has joined #ruby
zii has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 245 seconds]
<R3dy> reactormonk: what version are you running?
lupine_85 has quit [Excess Flood]
fermion has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 255 seconds]
jgwong_ is now known as jgwong
<R3dy> Yeah I found that too. I get that it is suppose to operate the way you are saying
<R3dy> I'm just trying to understand why it isn't on my system
<R3dy> this is what I get in irb
<R3dy> "\x00\x00\x04R".unpack("I>") => [1375993856]
paydro has joined #ruby
<R3dy> ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin11.4.2]
lggr has joined #ruby
<R3dy> that's the verison I'm running, what version are you running?
oldB has quit [Quit: oldB]
fermion has joined #ruby
olrrai has joined #ruby
theRoUS has quit [Ping timeout: 256 seconds]
kirun_ has joined #ruby
jrajav has quit [Read error: Connection reset by peer]
<R3dy> weird, on my sysetm it's N
<R3dy> insetad of I
<R3dy> lol oh well :)
kirun has quit [Ping timeout: 252 seconds]
schronicles47 has quit [Remote host closed the connection]
nitti has quit [Remote host closed the connection]
wallerdev has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
samflores has joined #ruby
schronicles47 has joined #ruby
Takehiro has joined #ruby
reset has joined #ruby
fortysixandtwo has quit [Read error: Connection reset by peer]
fortysixandtwo has joined #ruby
lggr has joined #ruby
nitti_ has joined #ruby
h4mz1d has joined #ruby
timonv has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
chrishunt has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
lupine_85 has joined #ruby
the_jeebster1 has joined #ruby
beit has quit [Quit: beit]
the_jeebster has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 245 seconds]
ndboost has quit [Remote host closed the connection]
arietis has joined #ruby
niklasb has joined #ruby
terrellt has joined #ruby
stephenjudkins has joined #ruby
cantonic has quit [Quit: cantonic]
Hanmac has joined #ruby
fermion has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
anandhegde has joined #ruby
<terrellt> I'm using DBI with an ODBC connection, and using fetch_all. However, when I do that I get an array of objects that are the same. If I do fetch over and over again I get new objects. I think it comes down to if I do a fetch, store that DBI row object in another variable (I used clone, not sure if I have to), then modify a value in one of the variables it gets copied over to the other one - like they're both using the same pointer. Is there a way
thillux has joined #ruby
lupine_85 has quit [Ping timeout: 245 seconds]
<terrellt> Note, row.to_h works just fine, but I wouldn't be able to use symbols at that point (right?)
fermion has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
thillux_ has quit [Ping timeout: 248 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
t0rc has joined #ruby
<terrellt> It should be noted that the DBI Row class overrides .clone and .dup which seems to make it still be a reference.
jcoglan has quit [Quit: jcoglan]
mrsolo has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
samflores is now known as samflores|away
vlad_starkov has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
Kuhni has joined #ruby
moshef has joined #ruby
Xeago has joined #ruby
xorigin has joined #ruby
xorigin has left #ruby [#ruby]
scx has joined #ruby
anandhegde has quit [Quit: Linkinus - http://linkinus.com]
linoj has quit [Ping timeout: 248 seconds]
<moshef> can you help me with a regex to find how many dots there are in text? also, if possible - I'd like to count … as 1 instead of 3.
lggr has joined #ruby
bigmcq77 has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<terrellt> Turned out I had to do my own deep copy to do a fetch all using Marshal.
<bperry> so you want dot groups moshef ?
<moshef> bperry: yes
<bperry> line =~ /\.{1,}/ perhaps
iamjarvo has quit [Ping timeout: 246 seconds]
krawchyk has quit [Remote host closed the connection]
<bperry> that will match it once
<bperry> you may need to do some other fancy stuff to match it across multiple instances in a line
ndboost has joined #ruby
<Vinz_> Using string.count won't do it ?
cardoni has quit [Quit: Leaving...]
_bart has joined #ruby
cardoni has joined #ruby
<moshef> bperry: cool thanks
ndboost has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
<moshef> bperry: one more thing, I'd like to find, from all the non a-z0-9 chars, what i have the most in my text
<terrellt> I'd just replace ... with ., then do string.count.
<moshef> so it will count amount of dots !! /n etc. is it complicated?
<Vinz_> terrellt: That's what i'd do too
<moshef> terrellt: example?
Jamone has joined #ruby
<terrellt> "this is a string...with a period.".gsub(/\.\.\./, ".").count(".") I think? New to ruby.
<Vinz_> string.gsub("...", ".").count('.') ?
<terrellt> Oh, it doesn't have to be a regex expression?
<terrellt> Well that's nice.
workmad3 has joined #ruby
<moshef> but then it won't catch .. right?
<moshef> or .............
<moshef> etc
monkegjinni has joined #ruby
ndboost_ has joined #ruby
<terrellt> It'd count .. as two dots.
<moshef> and I don't want that
ChampS666 has joined #ruby
<terrellt> You want .. counted as 1?
<moshef> :)
<moshef> yap
<moshef> scan /\.{1,}/ does that
<terrellt> string.gsub("..",".").gsub("..",".) should do 'er, right?
rippa has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
<terrellt> Maybe not.
<Vinz_> string.gsub(/\.{2,}/, ".").count('.') ?
<Vinz_> That will do it
<moshef> whats wrong with scan /\.{1,}/ ?
<Vinz_> It will match 2 or more '.'
samflores|away is now known as samflores
<terrellt> What Vinz said.
<moshef> but I want to get all the dots
<Vinz_> Yup
<moshef> . .. … ….. etc
<Vinz_> But it's useless to replace . by .
carlyle has quit [Remote host closed the connection]
<moshef> im not replacing anything
<moshef> just catching it
<moshef> and counting the array returned
Monie has quit [Ping timeout: 255 seconds]
<Vinz_> By gsub you replace it before counting it
<moshef> but I don't want to replace it
<moshef> I want to leave the text as it is
<terrellt> It's not REALLY replacing it, it's just a trick.
<terrellt> It's passing a modified string into count.
Xeago has quit [Remote host closed the connection]
<bperry> it is a new string, not a modified one
<Vinz_> moshef: Oh sorry, didn't see your code
<moshef> right, gsub1! notify it
<moshef> motify*
<moshef> its not mine, someone posted it earlier...
<moshef> hmm, what about counting non a-z0-9 chars?
<bperry> that is a basic regex question, you should google that :)
<Vinz_> non word : \W
<Vinz_> non digit : \D
<Vinz_> (In a regex)
<moshef> hmm
<moshef> I think its a bit more complicated than that, but let me try
zii has joined #ruby
<moshef> since I'd like, if possible, catch \n too etc
Chryson has joined #ruby
<Vinz_> In regex : \n = \n
<Vinz_> :D
<moshef> but it will count the \ and n separated no?
samflores is now known as samflores|away
<Vinz_> Nope
<Vinz_> \ act as escape char
<Vinz_> To count \ and n separated
<Vinz_> You would type \\n
Tearan has joined #ruby
<Vinz_> \ is escaped and n is only the letter in this case
lggr has quit [Ping timeout: 240 seconds]
<Vinz_> While \n is matching \n
<moshef> good to know, thanks Vinz_
<Vinz_> moshef: You might want to test your regex before writing them in your code :
ngoldman has joined #ruby
<Vinz_> rubular.com
<Vinz_> Will help you
<moshef> Vinz_: yeah I know this tool
rakl has joined #ruby
oldB has joined #ruby
lggr has joined #ruby
terrellt has left #ruby [#ruby]
<Vinz_> :)
<Vinz_> g2g
<Vinz_> Bye !
<moshef> Vinz_: bye :)
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
macmartine has joined #ruby
Xeago has joined #ruby
oldB has quit [Client Quit]
mercwithamouth has joined #ruby
whitenoise has quit [Changing host]
whitenoise has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.8]
rumba has quit [Ping timeout: 240 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
robustus has quit [Quit: ZNC - http://znc.in]
lggr has quit [Ping timeout: 260 seconds]
darule has joined #ruby
mmitchel_ has joined #ruby
_bart has quit [Quit: _bart]
DaniG2k has joined #ruby
<DaniG2k> guys I have a total n00b question
samflores|away is now known as samflores
<DaniG2k> i have a string which i'm splitting with str.downcase.gsub(/[^a-zA-Z]/, " ").split
<DaniG2k> and on that I'm running .each do |i|
<DaniG2k> how can I put its value as h[i]
lggr has joined #ruby
<DaniG2k> if its the first time the word has been seen, put 1, else put += 1
Criztian_ has quit [Remote host closed the connection]
daniel_- has joined #ruby
verto is now known as verto|off
mmitchell has quit [Ping timeout: 244 seconds]
samflores has quit [Quit: Linkinus - http://linkinus.com]
DaniG2k has quit [Client Quit]
ncr100 has quit [Ping timeout: 256 seconds]
verto|off is now known as verto
geekbri has quit [Remote host closed the connection]
chrxn has quit [Ping timeout: 240 seconds]
hukl has quit [Quit: Leaving...]
BSaboia has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
cantonic has joined #ruby
lggr has joined #ruby
Takehiro has joined #ruby
darule has quit [Read error: Connection reset by peer]
darule has joined #ruby
robertotauille has quit [Quit: Leaving...]
kpshek has joined #ruby
lupine_85 has joined #ruby
Virunga has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 248 seconds]
ChampS666 has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 260 seconds]
joaoh82 has joined #ruby
lggr has joined #ruby
fermion has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dmiller has quit [Remote host closed the connection]
skaczor has quit [Quit: Leaving]
Jork1 has quit [Quit: Jork1]
JustinCampbell has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
parzorep has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
mmitchell has joined #ruby
h4mz1d has joined #ruby
joaoh82 has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
x82_nicole has joined #ruby
daniel_hinojosa has joined #ruby
nwest has quit [Quit: Computer has gone to sleep.]
leehambley has quit [Quit: leehambley]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jgarvey has joined #ruby
lggr has joined #ruby
slicslak has quit [Ping timeout: 255 seconds]
sepp2k1 has quit [Remote host closed the connection]
daniel_hinojosa has quit [Client Quit]
sailias has quit [Quit: Leaving.]
daniel_hinojosa has joined #ruby
slicslak has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
ltsstar has quit [Quit: ltsstar]
ncr100 has joined #ruby
terrellt has joined #ruby
ltsstar has joined #ruby
ndboost_ has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
lggr has quit [Ping timeout: 246 seconds]
ltsstar has quit [Client Quit]
stephenjudkins has joined #ruby
_bart has joined #ruby
ryanf has joined #ruby
Xeago has quit [Remote host closed the connection]
apok_ has joined #ruby
swarley has joined #ruby
xclite has quit [Remote host closed the connection]
tos9 has joined #ruby
cakehero has joined #ruby
lggr has joined #ruby
<tos9> Does anyone have working up/down arrow/backspace support on OSX with set editing-mode vi?
<tos9> Sorry. In pry and / or irb.
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
apok has quit [Ping timeout: 260 seconds]
apok_ is now known as apok
statarb3 has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 246 seconds]
QKO has joined #ruby
carloslopes has quit [Quit: Leaving.]
lupine_85 has quit [Ping timeout: 240 seconds]
<ryanf> tos9: I haven't tried, but if you're using libedit (the default on OSX), it might help to switch to readline
Morkel has quit [Quit: Morkel]
<tos9> ryanf: That's my backup plan.
<ryanf> it's a good idea anyway, libedit sucks
<tos9> It appears from http://caiustheory.com/use-readline-with-default-ruby-on-os-x that I can even build the extension by itself.
<ryanf> that is my impression, yeah
chussenot has quit [Quit: chussenot]
<tos9> Well, to be fair, the only thing I've had issue with is irb :P. But I don't mind terribly doing it if it's necessary.
pdtpatrick has joined #ruby
tommyvyo has joined #ruby
<ryanf> well for one thing, it makes reverse-i-search work in pry
Xeago has joined #ruby
whitenoise has quit [Quit: This computer has gone to sleep]
<terrellt> Anyone have experience talking to MSSQL with Ruby?
<tos9> ryanf: I have that alraedy
<terrellt> I'm trying to use DBI, and it kind of works, but some of the rows it's fetching is replacing "s" with \x00\x00.
<tos9> Not that I use it much.
<terrellt> I could do a replace, but I don't know if it's going to corrupt other entries too.
lggr has quit [Ping timeout: 246 seconds]
<tos9> Ep, looks like git is done checking out ruby. Guess I'll try to build readline then.
cburyta has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 256 seconds]
Tearan has quit [Quit: Sleepy Badger....]
mmitchell has quit [Remote host closed the connection]
cburyta has joined #ruby
mmitchell has joined #ruby
mwillhite has joined #ruby
lupine_85 has joined #ruby
lggr has joined #ruby
haxrbyte has joined #ruby
<tos9> Hm. That doesn't appear to have fixed it.
aoshel has joined #ruby
juarlex has joined #ruby
internet_user has quit [Remote host closed the connection]
Spooner has joined #ruby
adamkittelson has quit [Remote host closed the connection]
moshef has quit [Quit: moshef]
chrisja_ has joined #ruby
Jork1 has joined #ruby
chrisja has quit [Ping timeout: 260 seconds]
cburyta has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
bradleyprice has quit [Remote host closed the connection]
SegFaultAX|work has quit [Ping timeout: 260 seconds]
niklasb has quit [Ping timeout: 252 seconds]
JonnieCache|work has joined #ruby
lggr has joined #ruby
oldB has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
lupine_85 has quit [Ping timeout: 256 seconds]
GoGoGarrett has joined #ruby
chrisja_ has quit [Quit: leaving]
niklasb has joined #ruby
nat2610 has quit [Quit: Leaving.]
allsystemsarego has quit [Quit: Leaving]
nat2610 has joined #ruby
<tos9> pdtpatrick: Well, I didn't get any errors -- it just didn't appear to fix the behavior switching to gnu readline. Are you suggesting that I recompile ruby from scratch and try it again anyhow?
heftig has joined #ruby
elux has quit [Quit: Leaving...]
<pdtpatrick> I'm saying use rvm if you're not already using it. As you can see, readline is quite easy to install using their guide
aoshel has quit [Quit: aoshel]
<terrellt> Anyone have any experience with TinyTDS?
tommyvyo has quit [Quit: Computer has gone to sleep.]
aoshel has joined #ruby
luckyruby has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
oldB has quit [Quit: oldB]
<tos9> pdtpatrick: Ah, no I wasn't, I just compiled it myself. But alright I'll try using rvm then.
lupine_85 has joined #ruby
recycle has joined #ruby
<pdtpatrick> tos9: here's a good intro (screencast to it) http://teachmetocode.com/screencasts/rvm-ruby-version-manager/
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
ataher has joined #ruby
<tos9> Cool. I've certainly heard of it, but never tried it yet. I'll take a look. Thanks.
DrShoggoth has quit [Quit: Leaving]
recycle has quit [Remote host closed the connection]
kpshek has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
ataher is now known as rehat
JonnieCache|work has quit [Ping timeout: 245 seconds]
rehat is now known as rehatz
alvaro_o has quit [Read error: Connection reset by peer]
JustinCampbell has joined #ruby
<rehatz> can you do a c++ version of a for loop in ruby?
<rehatz> for(var;condition;increment)
alvaro_o has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
kpshek has joined #ruby
<blazes816> rehatz: you can do for in
iamjarvo has joined #ruby
<blazes816> for i in %w(a b c)
niklasb has quit [Ping timeout: 256 seconds]
<blazes816> but it's almost always better to use #each, and if you need the index, #each_with_index
<rehatz> I wanted to do a nested for loop type algorithm and go off the outer for loops var
nitti_ has quit [Remote host closed the connection]
lupine_85 has quit [Excess Flood]
<rehatz> like find the largest pair some in a array of integers
<rehatz> *sum
Chryson has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
joshman_ has quit [Ping timeout: 256 seconds]
thone_ has joined #ruby
dmiller has joined #ruby
diverdude has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
<diverdude> Hello, i am using rake v. 0.9.2.2, but i get errors when migrating app: NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01. I read this can be avoided if i use rake 1.1.1 instead. How do i do that? thx
iamjarvo has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
thone has quit [Ping timeout: 256 seconds]
rmcafee has quit [Quit: rmcafee]
Takehiro has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
awestroke has quit [Remote host closed the connection]
sagax has quit [Quit: Ухожу я от вас]
<musl> rehatz: Have a look at Array#permutation( n ) and Enumerable#inject
jenrzzz has quit [Ping timeout: 244 seconds]
lupine_85 has joined #ruby
<rehatz> ok thanks
<diverdude> zny1?
cardoni has quit [Quit: Leaving...]
<musl> rehatz: It's not exactly clear what the input array looks like or I'd offer an example.
<rehatz> musl: wow that's awesome lol
<rehatz> nah that helps thanks
<musl> Ruby /is/ awesome. :)
ffranz has quit [Quit: Leaving]
tommyvyo has quit [Quit: Computer has gone to sleep.]
wpaulson has joined #ruby
lupine_85 has quit [Excess Flood]
<rehatz> :)
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
lupine_85 has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
ncr100 has quit [Ping timeout: 240 seconds]
recycle has joined #ruby
brianpWins has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
jenrzzz has joined #ruby
lggr has joined #ruby
slicslak has quit [Ping timeout: 246 seconds]
the_jeebster1 has quit [Quit: Leaving.]
alanp has quit [Ping timeout: 256 seconds]
h4mz1d has quit [Ping timeout: 240 seconds]
alanp_ has joined #ruby
sailias has joined #ruby
sailias has quit [Client Quit]
niklasb has joined #ruby
hadees has quit [Quit: hadees]
haxrbyte has quit [Ping timeout: 256 seconds]
haxrbyte_ has joined #ruby
rakl has quit [Ping timeout: 244 seconds]
hadees has joined #ruby
bwlang has left #ruby [#ruby]
stephenjudkins has quit [Quit: stephenjudkins]
cearls has joined #ruby
lupine_85 has quit [Excess Flood]
lggr has quit [Ping timeout: 256 seconds]
fir_ed has quit [Quit: Leaving]
Agis__ has quit [Quit: Agis__]
cearls has quit [Remote host closed the connection]
rakl has joined #ruby
dangerousdave has quit [Ping timeout: 245 seconds]
nwertman has quit [Quit: nwertman]
jgarvey has quit [Quit: Leaving]
swarley has quit [Remote host closed the connection]
v0n has joined #ruby
joofsh has quit [Ping timeout: 246 seconds]
lupine_85 has joined #ruby
hadees has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
_Amen_Makaveli_ has quit [Remote host closed the connection]
SegFaultAX|work has joined #ruby
[Neurotic] has joined #ruby
slicslak has joined #ruby
mxweas has joined #ruby
statarb3 has quit [Quit: Leaving]
justinmcp has joined #ruby
recycle has quit [Remote host closed the connection]
Zai_ has quit [Quit: Zai_]
adamkittelson has joined #ruby
adamkittelson has quit [Remote host closed the connection]
lupine_85 has quit [Excess Flood]
fir_ed has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
lupine_85 has joined #ruby
h4mz1d has joined #ruby
baroquebobcat has joined #ruby
philcrissman has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 255 seconds]
dmiller has quit [Remote host closed the connection]
aoshel has quit [Quit: aoshel]
lggr has joined #ruby
eignerch_ has joined #ruby
mmitchell has quit [Remote host closed the connection]
berserkr has joined #ruby
eignerchris has quit [Ping timeout: 248 seconds]
kpshek has quit []
awarner has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 246 seconds]
kirun_ has quit [Quit: Client exiting]
nat2610 has quit [Quit: Leaving.]
lupine_85 has quit [Excess Flood]
joofsh has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
stephenjudkins has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chussenot has joined #ruby
chussenot has quit [Client Quit]
nat2610 has joined #ruby
lupine_85 has joined #ruby
lggr has joined #ruby
cburyta has joined #ruby
croaker has joined #ruby
Foxandxss has joined #ruby
<rehatz> is there a way to have more than one action on a single line if statement? like: sum += i , break if i % x == 0
yoklov has joined #ruby
mwillhite has quit [Ping timeout: 240 seconds]
macmartine has joined #ruby
stopbit has quit [Quit: Leaving]
<bperry> rehatz: ;
lupine_85 has quit [Excess Flood]
<bperry> sum+=i;break if i%x==0
<Spooner> bperry : That is two statements.
<bperry> he said on a single line :)
<Spooner> rehatz : You need if i % x == 0 then xxxx; yyyy; end
<rehatz> ok
arturaz has joined #ruby
<rehatz> just wondering, new with ruby
<Spooner> Though you could also have: begin; xxx; yyy; end if i %x == 0 (but that is super-ugly!)
<bperry> I see what he was asking, I misinterpretted what he wantd
lggr has quit [Ping timeout: 248 seconds]
<Spooner> rehatz Split it onto several lines; it will a lot nicer.
und3f has quit [Quit: Leaving.]
<musl> rehatz: Sounds like you're yearning for C idioms like: "if( ++i == 0 ) {"
mercwithamouth has quit [Ping timeout: 246 seconds]
bbttxu has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
hadees has joined #ruby
lggr has joined #ruby
<rehatz> maybe, I do like the shortness of the ruby statements
sent-hil has quit [Remote host closed the connection]
lupine_85 has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
wargasm has quit [Ping timeout: 246 seconds]
awarner has joined #ruby
<rehatz> if I define a method that take one argument and then an array as the second like def wee(first, *second) is there a way to get it to accept an array also
Russell^^ has quit [Quit: Russell^^]
<rehatz> trying to get a the method to work with command arguments and I have ARGV[0] for the first argument but I don't know how to get it work with ARGV[1,ARGV.size-1]
lggr has quit [Ping timeout: 260 seconds]
v0n has quit [Ping timeout: 246 seconds]
S3kx has quit [Read error: Connection reset by peer]
<bperry> if you pass an array as second, then it should be the zeroth element in the second variable
_nitti has joined #ruby
S3kx has joined #ruby
<bperry> second[0] == your_array_you_passed
croaker has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Agis__ has joined #ruby
Takehiro has joined #ruby
<bperry> so you would do second[0][1,second[0].size-1]
terrellt has left #ruby [#ruby]
<bperry> make sense?
lggr has joined #ruby
<rehatz> thinking lol
<bperry> I find I prefer using hashes instead of the splat operator
<bperry> that is what it is called
<bperry> * is splat
<rehatz> wait if I do ruby something.rb 2 4 6
<rehatz> isn't each one of the numbers in ARGV
luckyruby has quit [Remote host closed the connection]
<musl> Yes.
<bperry> did you ask two questions or one
<rehatz> one
nwertman has joined #ruby
chimkan_ has quit [Quit: chimkan_]
_nitti has quit [Ping timeout: 256 seconds]
<musl> What are you trying to do with ARGV?
<bperry> are you wanting to pass an array as an arg to the script itself?
<musl> By the way, ARGV.last == ARGV[ARGV.size - 1] == ARGV[-1]
Takehiro has quit [Ping timeout: 244 seconds]
recycle has joined #ruby
Jork1 has quit [Quit: Jork1]
<musl> ... == ARGV.pop
x82_nicole has quit [Quit: Computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 246 seconds]
<musl> ... except the last element is removed with pop :)
jimeh2 has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
parzorep has quit [Quit: parzorep]
recycle_ has joined #ruby
apok has quit [Remote host closed the connection]
apok has joined #ruby
<rehatz> I have a method that takes two arguments and I want the first argument to be ARGV[0] and the second to be the rest
recycle has quit [Ping timeout: 246 seconds]
v0n has joined #ruby
luckyruby has joined #ruby
lggr has joined #ruby
<bperry> that_method(ARGV[0], ARGV[1-ARGV.last])....def that_method(var1, var2)
<musl> or: wee( ARGV.first, *ARGV[1..-1] )
<bperry> var1 is now a valuetype and var2 is an array
<bperry> I didn't know about 1..-1
<bperry> that is neat
bier has quit [Ping timeout: 246 seconds]
<musl> unsplat, too, that way the second arg will be the array, not an array with the array in position 0
juarlex has quit [Remote host closed the connection]
chrishunt has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
<musl> but, that's all assuming we don't have control over the definition of 'wee' and can change it signature.
joofsh has quit [Ping timeout: 246 seconds]
<bperry> mine had a typo, should be 1..ARGV.last
mercwithamouth has joined #ruby
recycle_ has quit [Remote host closed the connection]
dkastner has joined #ruby
joeycarm_ has joined #ruby
Xeoncross has quit [Quit: Ex-Chat]
piotr_ has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 246 seconds]
stkowski has quit [Quit: stkowski]
monkegjinni has joined #ruby
<rehatz> I must be doing something wrong, I keep getting "bad value for range"
v0n has quit [Quit: Leaving]
nimred has quit [Ping timeout: 245 seconds]
<musl> put some context in a pastie or gist and post a link
forced_request has joined #ruby
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
blazes816_ has joined #ruby
carlyle has joined #ruby
lggr has joined #ruby
carlyle has quit [Remote host closed the connection]
<Kuhni> Okay, posted my issue on stackoverflow now, any help is highly appreciated. http://stackoverflow.com/questions/12718172/ruby-rgss3-rpg-maker-vx-ace-scripting-problems
scx has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 246 seconds]
blazes816 has quit [Ping timeout: 256 seconds]
blazes816_ is now known as blazes816
parzorep has joined #ruby
bier has joined #ruby
cburyta has quit [Read error: Connection reset by peer]
cburyta_ has joined #ruby
<blazes816> rehatz: try ARGV.size -1 instead of ARGV.last
<blazes816> ARGV.last is going to return the actual value of the last element, not its index
Tearan has joined #ruby
<musl> blazes816: ARGV[1..-1]
<musl> :p
<blazes816> don't act that way musl
<blazes816> i won't have it
lggr has quit [Ping timeout: 255 seconds]
<musl> Oh? I shall know how to act.
<blazes816> then do it!
<musl> Do what? :p isn't exactly offensive is it? I'd just posted that a few lines back.
fantazo has quit [Remote host closed the connection]
parzorep has quit [Client Quit]
<blazes816> i'm just kidding man
<blazes816> long day
fredjean has quit [Quit: Computer has gone to sleep.]
<musl> Then we're on the same page. :)
swarles has joined #ruby
nat2610 has quit [Quit: Leaving.]
lggr has joined #ruby
nwertman has quit [Quit: nwertman]
banseljaj is now known as imami|afk
SegFaultAX|work has quit [Ping timeout: 246 seconds]
Synthead has quit [Quit: p33 ba115]
arturaz has quit [Remote host closed the connection]
wshaddix has joined #ruby
parzorep has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 260 seconds]
JustinCampbell has quit [Remote host closed the connection]
ngoldman has quit [Read error: Connection reset by peer]
hvq has joined #ruby
hvq has quit [Client Quit]
ngoldman has joined #ruby
sneakyness_wk has quit [Quit: I have to return some VHS tapes]
nat2610 has joined #ruby
lggr has joined #ruby
SegFaultAX|work has joined #ruby
skogis has quit [Ping timeout: 248 seconds]
nwertman has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
rehatz has quit [Remote host closed the connection]
mmitchell has joined #ruby
justinmcp has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 246 seconds]
chrishunt has joined #ruby
slainer68 has quit [Remote host closed the connection]
justinmcp has joined #ruby
wshaddix has quit [Quit: Leaving]
mmitchell has quit [Ping timeout: 246 seconds]
ephemerian has left #ruby [#ruby]
h4mz1d has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
wargasm has joined #ruby
lkba has joined #ruby
danielsz has joined #ruby
<swarles> grrr
uris has joined #ruby
<Vinz_> roar ?
lggr has quit [Ping timeout: 252 seconds]
fortysixandtwo has quit [Quit: fortysixandtwo]
<davidcelis> ror?
<swarles> i'm trying to get the nightly snapshot to compile so i can run gprof on it
<swarles> and see if i can make some modifications for speed ups
soulisson has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
macmartine has quit [Quit: Computer has gone to sleep.]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
vitoravelino is now known as vitoravelino`afk
lggr has joined #ruby
* swarles prays for compilation
ekristen has joined #ruby
<blazes816> make && make pray
Takehiro has joined #ruby
vitoravelino`afk is now known as vitoravelino
<bperry> make clean soul
<ekristen> are these two the same? https://gist.github.com/3830627
davidcelis has quit [Quit: K-Lined.]
<bperry> ekristen: looks like it
rabidpraxis has quit [Remote host closed the connection]
<ekristen> bperry: ok
<ekristen> thanks
<bperry> do they behave differently for you?
shikamaru has quit [Ping timeout: 256 seconds]
Axsuul has joined #ruby
<ekristen> bperry: tough to say -- but it appears so, but it could just be a fluke
SegFaultAX|work has quit [Ping timeout: 245 seconds]
<falieson_> http://pastie.org/4905387 line 72 how do I update the table for each of the hash opportunities? (example output: http://pastie.org/4904850 )
<bperry> they should behave the same
<falieson_> I'm not very comfortable with hash, just learning it
Takehiro has quit [Ping timeout: 244 seconds]
shikamaru has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
SegFaultAX|work has joined #ruby
tjbarber has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
wedtm has joined #ruby
lggr has joined #ruby
BSaboia__ has joined #ruby
ablew_ has joined #ruby
_nitti has joined #ruby
<ablew_> Hey all, I've got an array of variable names I want to iterate over and then reference. How can I do this?
BSaboia has quit [Ping timeout: 246 seconds]