apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
timonv_ has joined #ruby
ghr has joined #ruby
mwmnj has quit [Client Quit]
bearish has joined #ruby
philcrissman has joined #ruby
<eam> iamjusthatdude: do you want to know how to do currying? Try reducing this down to a simple case to start with
bjz has quit [Ping timeout: 240 seconds]
wombo has joined #ruby
havenwood has joined #ruby
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
emmesswhy has quit [Quit: This computer has gone to sleep]
klmlfl has joined #ruby
bricker`work has quit [Quit: leaving]
ghr has quit [Ping timeout: 255 seconds]
moritzs has quit [Ping timeout: 240 seconds]
manzo has quit [Read error: Connection reset by peer]
bearish has quit [Ping timeout: 250 seconds]
moritzs has joined #ruby
yairgo has quit [Quit: yairgo]
terrellt has quit [Quit: Leaving...]
wombo has quit [Ping timeout: 272 seconds]
Akagi201 has joined #ruby
emmesswhy has joined #ruby
senayar has quit []
marr has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 260 seconds]
tgauthier has joined #ruby
<tgauthier> shevy how do i reset my nickserv password? :(
DrCode has joined #ruby
<wallerdev> /msg nickserv help
aspires has quit []
timonv_ has quit [Ping timeout: 240 seconds]
wombo has joined #ruby
mikeg has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
b00stfr3ak has quit [Ping timeout: 260 seconds]
Akagi201 has quit [Ping timeout: 240 seconds]
<hfp> Hey all, are there any practical way to access i2c devices on a Raspberry Pi using Ruby?
otherj has quit []
icole has quit [Ping timeout: 250 seconds]
mikepack has joined #ruby
sepp2k has joined #ruby
sepp2k1 has quit [Ping timeout: 240 seconds]
ghostmoth has quit [Quit: ghostmoth]
klmlfl has quit [Ping timeout: 240 seconds]
sylvanica has joined #ruby
agrinb has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
mikepack_ has quit [Ping timeout: 246 seconds]
<hfp> I am using the i2c gem but I am having permission problems. /dev/i2c-1 is only accessible by root. When I `sudo ruby my.rb` then it can't find the gems because they aren't installed for root. Surely there must be a better way?
germanstudent_ has quit [Quit: raus]
Neo-- has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby
germanstudent has joined #ruby
zz_karupa is now known as karupa
spider-mario has quit [Remote host closed the connection]
maniacal_ has joined #ruby
bmurt has quit []
flowerhack has quit [Ping timeout: 250 seconds]
ptierno__ has quit [Quit: leaving]
mikeg has quit [Ping timeout: 255 seconds]
philcrissman has quit [Remote host closed the connection]
GinoMan has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
<aedorn> hfp: That's going to be a Linux permissions issue... your best bet is to add a udev rule to create a group for the device node, then you can add your user to the group and access it without sudo. Alternatively, depending on how you have Ruby installed, you can keep the environment variables when running sudo
philcrissman has joined #ruby
<aedorn> or just use root, of course.
<wallerdev> should be able to find the gems even as sudo unless sudo has a different ruby in its path or something
icarus has quit [Remote host closed the connection]
<havenwood> hfp: what are you using to switch Rubies?
hooper has quit [Quit: Leaving.]
<havenwood> hfp: Or are you just using one and setting it up yourself or /usr/local/ or something?
sparrovv has joined #ruby
<hfp> havenwood: I'm using rvm
<hfp> aedorn: I'd rather not use root, I'll look into the udev permissions
rjhunter has quit [Remote host closed the connection]
ddv has joined #ruby
philcrissman has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
oo_ has joined #ruby
klmlfl has quit [Ping timeout: 250 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest81383
emocakes has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
rjhunter has quit [Ping timeout: 260 seconds]
soxet has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
flowerhack has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
maniacal_ has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
mikeg has joined #ruby
philcrissman has joined #ruby
philcrissman has quit [Remote host closed the connection]
philcrissman has joined #ruby
dbasch has joined #ruby
Musashi1 has joined #ruby
wjimene__ has quit [Remote host closed the connection]
avelldiroll has joined #ruby
wjimenez_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Wolland_afk has joined #ruby
sevenseacat has joined #ruby
EminenceHC has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
<tgauthier> still i blame shevy
sea_local has quit [Remote host closed the connection]
wjimenez_ has quit [Ping timeout: 260 seconds]
nanoyak has joined #ruby
Wolland__ has joined #ruby
Wolland_afk has quit [Read error: Connection reset by peer]
tgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
coreycondardo has joined #ruby
nanoyak has quit [Client Quit]
<pontiki> we all blame shevy. shevy is the new Microsoft. no-- the new Canada!
PanPan has joined #ruby
<godd2> He's not even a real prgrammer, anyway.
<pontiki> well, neither am i. i'm an imaginary mouse.
sylvanica has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
linojon has joined #ruby
sylvanica has joined #ruby
oo_ has quit [Remote host closed the connection]
Wolland__ has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
diebels727 has joined #ruby
oo_ has joined #ruby
skolman has quit [Remote host closed the connection]
gsd has joined #ruby
djbkd has quit [Quit: My people need me...]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Quit: Leaving.]
razum2um1 has left #ruby [#ruby]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
alexju has joined #ruby
mikeg has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
ruby-lang038 has left #ruby [#ruby]
echooo has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
Lewix has quit [Remote host closed the connection]
rjhunter has joined #ruby
Cheezebox has quit [Remote host closed the connection]
Cheezebox has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
zeroNones has joined #ruby
dbasch has quit [Quit: dbasch]
diegoviola has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
philcris_ has joined #ruby
Wolland_afk has joined #ruby
tkuchiki has joined #ruby
mikeg has joined #ruby
jxf has joined #ruby
Cheezebox has quit [Ping timeout: 246 seconds]
philcrissman has quit [Ping timeout: 272 seconds]
diebels727 has quit [Remote host closed the connection]
philcris_ has quit [Ping timeout: 240 seconds]
Peter has joined #ruby
wombo has quit [Ping timeout: 240 seconds]
Peter is now known as Guest75183
Akagi201 has joined #ruby
phutchins has joined #ruby
patric100e99 has joined #ruby
Guest75183 has left #ruby [#ruby]
goleldar_ has quit [Remote host closed the connection]
Wolland_afk has quit [Ping timeout: 245 seconds]
frman has joined #ruby
skolman_ has joined #ruby
sylvanica has quit [Ping timeout: 260 seconds]
frman has quit [Client Quit]
Akagi201 has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
patric100e99 has quit [Ping timeout: 246 seconds]
snath has quit [Ping timeout: 260 seconds]
braincra- has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
skolman__ has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flowerhack has joined #ruby
postmodern has quit [Quit: Leaving]
astav has joined #ruby
chrishough has joined #ruby
skolman_ has quit [Ping timeout: 260 seconds]
tokik has joined #ruby
skolman__ has quit [Ping timeout: 264 seconds]
moritzs has quit [Ping timeout: 240 seconds]
todor has quit [Ping timeout: 245 seconds]
gtrak has quit [Ping timeout: 263 seconds]
snath has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
todor has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikeg has quit [Ping timeout: 245 seconds]
king313 has quit [Quit: .]
zorak has joined #ruby
maxwax has joined #ruby
saarinen has quit [Quit: saarinen]
bashrw has joined #ruby
sylvanica has joined #ruby
nb_bez__ has quit [Quit: Connection closed for inactivity]
<maxwax> Looking for some help with matchgroups.. anyone available ?
<godd2> maxwax in regex's?
<godd2> I can probably answer your question.
<maxwax> Yes.. I'm trying to read in a line that looks like this:
zorak has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
<maxwax> abattis-cantare-test 0.0.15 1.fc20 noarch 1
Wolland_afk has joined #ruby
jonnyro has joined #ruby
<godd2> Go ahead and present your example in a gist: https://gist.github.com/
<maxwax> It'll always have four columns and sometimes five. I prototyped a regex in rubular: /(\S*)\s+/ which works great.
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
omosoj has quit [Quit: Leaving]
optiz0r has quit [Ping timeout: 240 seconds]
troyready has quit [Ping timeout: 250 seconds]
<maxwax> Really just one line of code:
<maxwax> input_fields = input_string.match(/(?<name>\S+)\s+(?<version>\S+)\s+(?<release>\S+)\s+(?<arch>\S+)\s+(?<epoch>\S+)\s+/)
<maxwax> Works great if all fields are present, but fails if the last field is missing.. I'm trying to learn what I don't understand to fix this.
doodlehaus has joined #ruby
goodenough has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<maxwax> Anybody ^ ?
tlarevo has joined #ruby
diegoviola has joined #ruby
gsd has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
jack_rabbit_ has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
zorak has joined #ruby
sylvanica has quit [Ping timeout: 272 seconds]
butblack has joined #ruby
Adran is now known as Madran
lidaaa has joined #ruby
Madran is now known as a[_]
a[_] is now known as Madran
Madran is now known as Adran
bearish has joined #ruby
eka has joined #ruby
wombo has joined #ruby
Musashi1 has quit [Quit: Musashi1]
gr33n7007h has quit [Quit: Ex-Chat]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
gzl_ is now known as gzl
gzl has quit [Changing host]
gzl has joined #ruby
benzrf is now known as benzrf|offline
bearish has quit [Ping timeout: 260 seconds]
<godd2> try grouping up the last column and putting a question mark after it
<godd2> >> "abc".match(/abcd?/)
<eval-in> godd2 => #<MatchData "abc"> (https://eval.in/183817)
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
<godd2> a question mark next to a character or a group will treat it as optional
<maxwax> Trying..
<godd2> in your regex you're expecting there to always be a last column, but as you said, there isn't always one
benzrf|offline is now known as benzrf
sindork_ is now known as sindork
sindork has quit [Changing host]
sindork has joined #ruby
<godd2> also, are there going to be any spaces after the last column?
Kricir has joined #ruby
<maxwax> sometimes yes, sometimes no? Really what I'm trying to do is avoid bash+awk. With awk, I'd give it a field delimiter and just address things as $1 $2 $3, etc..
<maxwax> Haven't done this in Ruby, obivously :)(
<godd2> if there might not be spaces after the last column, then that last little \s+ should be \s*
<godd2> otherwise you're always expecting at least one space after the last column
kireevco has quit [Quit: Leaving.]
<godd2> oh and put a caret in the front of your match so it always aligns the match with the match groups
<maxwax> ^What's that mean ?
timonv_ has joined #ruby
sylvanica has joined #ruby
<godd2> >> "a b c ".match(/^\S \S/)
<eval-in> godd2 => #<MatchData "a b"> (https://eval.in/183818)
Lewix has joined #ruby
<godd2> it means "start at the start of the string"
wald0 has quit [Quit: leaving]
ixti has quit [Quit: WeeChat 0.4.3]
<godd2> more precisely it means "the stuff I care about is at the beginning of this string"
gr33n7007h has quit [Read error: No route to host]
<godd2> >> "aa b c ".match(/^\S \S/) # this shouldn't match
danijoo has quit [Read error: Connection reset by peer]
<eval-in> godd2 => nil (https://eval.in/183819)
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
Lewoco has joined #ruby
danijoo has joined #ruby
optiz0r has joined #ruby
<Lewoco> Why does puts 'test' sometimes not output anything in irb?
<maxwax> godd2: eval-in: Here's my code, still choking on a line with no last column..
<Lewoco> Oh it seems to think I'm nested or something.
<godd2> Lewoco that can happen if the output buffer isn't flushing for some reason, or if you've changed stdout
<godd2> Lewoco if that doesn't make sense, you probably aren't doing that
timonv_ has quit [Ping timeout: 240 seconds]
<godd2> If you're in a block it also won't output
doodlehaus has quit [Remote host closed the connection]
Azure has quit [Quit: Blue Sky Fish]
<godd2> like in a method definition or a lambda or a begin end block
<Lewoco> godd2, Yeah I think it was the later.
phutchins has quit [Ping timeout: 255 seconds]
<Lewoco> The last part of the prompt was :2>
<Lewoco> I typed end a few times and it went back to :0>
<godd2> taht just looks like a happy little clown to me :0>
hamakn has joined #ruby
sylvanica has quit [Quit: Quitte]
krz has joined #ruby
Azure has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
<godd2> maxwax I commented on the gist
astav has quit [Quit: astav]
<godd2> see if changing those last two \s+ to \s* helps
Akagi201 has joined #ruby
emmesswhy has joined #ruby
<maxwax> godd2: No luck :( ..
<godd2> maxwax can you make a gist of some of the data you're regexing over?
<maxwax> godd2: Added a gist comment with what my input file looks like..
klmlfl has joined #ruby
deric_skibotn has quit [Ping timeout: 240 seconds]
goodenough has joined #ruby
Boohbah has joined #ruby
<maxwax> And noticed I did something slightly differently than you.
Spami has quit [Quit: This computer has gone to sleep]
<maxwax> And trying again, matching your code exactly.
Akagi201 has quit [Ping timeout: 250 seconds]
cashnguns has joined #ruby
<maxwax> godd2: Thanks, your code worked.
segv has quit [Ping timeout: 245 seconds]
IceDragon has quit [Quit: Space~~~]
gauravagarwalr has joined #ruby
<godd2> awesome glad you got it working
chipotle has joined #ruby
<maxwax> godd2: Trying to push myself to use Ruby more so I can train my eyes on things like this. I figured something like this (the last parens) would be required, but wasn't sure how it would be done.
yetanoth1rdave has quit [Ping timeout: 250 seconds]
lemur has joined #ruby
tectonic has joined #ruby
<godd2> If you want to be good at regex, I recommend "Mastering Regular Expressions"
lemur_ has joined #ruby
<maxwax> godd2: When I prototyped this with Rubular, Just one regex brought back numbered captures in the web page.. But here I'm making one long one.. Any comments on that ?
<maxwax> IOW, Seems like I can prototype in Rubular, but can't just copy directly and move on to writing code.
astav has joined #ruby
<godd2> In Ruby you can refer to groups after a match with global variables
<godd2> $1, $2 etc
gauravagarwalr has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 260 seconds]
klmlfl has quit [Quit: klmlfl]
heyts has joined #ruby
fella7s has joined #ruby
fella6s has quit [Ping timeout: 250 seconds]
lemur has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
end_guy has joined #ruby
sylvanica has joined #ruby
thomasxie has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
sylvanica has quit [Client Quit]
<godd2> I think $& is the last match or $` and $~. They all do something. But using .match is better because you get back a ruby object and everyone will love you for doing it the ruby way
<maxwax> This project started in bash -- the part that generates the rpm details list. I want to compare two rpm lists to determine what packages are installed on system A but not B, what's on both but a different version, etc.
<maxwax> Once I needed a hash table of some sort, I wanted to ditch bash and ruby's wonderful for that.
CaptainJet has quit []
havenwood has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
philcrissman has joined #ruby
Sht0 has quit [Ping timeout: 260 seconds]
thomasxie has left #ruby [#ruby]
<zorak> hi, nayone here know this method of commenting?
Kricir has quit [Remote host closed the connection]
echooo has quit [Ping timeout: 250 seconds]
wombo has quit [Quit: quit]
sparrovv has quit [Ping timeout: 245 seconds]
o0oo0o has joined #ruby
sylvanica has joined #ruby
<godd2> It doesn't seem inconsistent with the unofficial Ruby Style Guide: https://github.com/bbatsov/ruby-style-guide#comments
<godd2> oh actually, they recommend tomdoc
<godd2> fancy that
_cake is now known as _mitten
philcrissman has quit [Ping timeout: 260 seconds]
agrinb has joined #ruby
echooo has joined #ruby
_mitten is now known as _cake
<godd2> zorak did you have any particular question about it?
<godd2> or just if ruby people like it/use it?
<zorak> when use Public and when Internal?
<godd2> Public for public methods, Internal for private methods
MCDev has joined #ruby
wchun has joined #ruby
<zorak> nad whats the difference?
tris has quit [Ping timeout: 272 seconds]
andrewjanssen has joined #ruby
jonnyro has quit [Quit: leaving]
skolman_ has joined #ruby
<godd2> In Ruby when you make code for a class, you can make a method private.
Lewix has quit [Remote host closed the connection]
<godd2> If you don't know how to do that yet, I wouldn't worry about it. Just read/learn more about Ruby.
skolman_ has quit [Remote host closed the connection]
<zorak> that means that the method only can be called by other methods, rigth?
skolman has joined #ruby
Lewix has joined #ruby
<zorak> nad public that can be called by itself
<godd2> public methods can be called from outside of a class
andrewjanssen has quit [Client Quit]
<zorak> i have this code
radic has quit [Disconnected by services]
radic_ has joined #ruby
<zorak> the only method that is called outside is 'calcular'
<zorak> the other ones are used by calclar
britneywright has joined #ruby
<zorak> should i make the other methods private?
andrewjanssen has joined #ruby
civillia1 has quit [Quit: leaving]
freerobby has joined #ruby
<godd2> That would be recommended
<godd2> you can see on line 60 I write 'private'
<godd2> everything below that is now a private method
bmurt has joined #ruby
<zorak> ok, excelent!
LBRapid has quit [Remote host closed the connection]
<zorak> thanks :2
<zorak> :)
sylvanica has quit [Ping timeout: 245 seconds]
<godd2> zorak: keep in mind that if your code is clean and readable, then you generally don't even have to write comments
echevemaster_ has quit [Quit: Leaving]
echevemaster has joined #ruby
<zorak> i love that, but this code is a mess :P
bmurt has quit [Ping timeout: 240 seconds]
Photism_ has quit [Quit: Leaving]
SCHAAP137 has quit [Remote host closed the connection]
<zorak> and i supuse that if im sending my github to recluters have nice commens cant be bad
<maxwax> godd2: When you write regex, do you comment next to them? Im curious what one might consider 'clean and readable' for a regex :)
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
<godd2> Using named groups is a great start, cause you're expressly saying what that little bit should be.
<godd2> When I look at your regex and the code around it, I have a good idea of what it's supposed to do
<pontiki> maxwax: not to jump on godd2's answer, but commented regexps can be a real boon to future coders (including one's self)
<sevenseacat> some examples of passing/failing values might help
<hfp> Ok so I have the I2C going, I just don't know how to talk to it. In Python, you have to write hex to certain bytes to make things happen. AFAIK, I get an IO object that I can mostly manipulate as a file. Anybody got experience with that kind of things?
<godd2> sevenseacat makes a point that unit tests can help fill a role in documentation here.
<pontiki> using the x modifier (ignoring white space) let's you spread them out to make comments rather nicely
<maxwax> pontiki: I like what he said, but I like documenting my code even more.. I seem to be very much in the minority in that regards.
<godd2> The thing about comments is, they don't change as often as code does
<maxwax> When I write bash with chained together commands, i try to document what each is doing, too. Partly, I'm lazy when I come back to it later, and partly I want to avoid others making mistakes with my code.
<godd2> so if your code changes, and NOT changing the comment still makes the new code work, that comment is now a dirty liar
Kricir has joined #ruby
<sevenseacat> liar liar pants on fire
<pontiki> that is often the downfall with comments
<maxwax> godd2: Yeah, but I'm very disciplined about my documentation.. I'll make a pass just to clean it up before pushing up.
<godd2> and comments tend to be used in the most fragile of places in the codebase
<maxwax> godd2: But your comment stands regardless: documentation is good, but clean code is *always* the goal.
iamjarvo has joined #ruby
<pontiki> mainly, i want to see comments that will turn into api documentation, and comments explaining why a particular implementation was used, if it would not be obvious to someone coming a long later to try to change it
<godd2> I always go for the cycle of 1. describe it, 2. make it work, 3. make it pretty
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> 4. make it fast
<zorak> commented regex is the new black
<godd2> 4. buy more rams
<sevenseacat> 5. make it dead... wait
<zorak> *download* more rams
<godd2> hey whoa, don't tie me to an implementation zorak
<maxwax> godd2: That's a good cycle..
<pontiki> just go read _Beautiful Code_
GriffinHeart has joined #ruby
<sevenseacat> i keep meaning to read that
cashnguns has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has joined #ruby
sylvanica has joined #ruby
butblack has quit [Quit: butblack]
braincrash has quit [Quit: bye bye]
bashrw has quit [Quit: bashrw]
arup_r has joined #ruby
bradleyp_ has joined #ruby
voodoofish1 has quit [Quit: Leaving.]
chrishough has joined #ruby
voodoofish has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
voodoofish has quit [Client Quit]
voodoofish has joined #ruby
voodoofish has left #ruby [#ruby]
Akagi201 has joined #ruby
patric100e99 has joined #ruby
braincrash has joined #ruby
goodenough has quit []
voodoofish has joined #ruby
mary5030 has joined #ruby
starless has quit [Quit: Leaving]
emocakes has quit [Ping timeout: 240 seconds]
klmlfl has joined #ruby
agrinb has quit [Remote host closed the connection]
Akagi201 has quit [Ping timeout: 264 seconds]
patric100e99 has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
yetanotherdave has joined #ruby
emocakes has joined #ruby
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
Cheezebox has joined #ruby
emocakes has quit [Max SendQ exceeded]
<Lewoco> Is it possible to monkey patch from within a method?
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
axilla has quit [Ping timeout: 240 seconds]
m_3 has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
klmlfl_ has joined #ruby
Kricir has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 240 seconds]
klmlfl has quit [Quit: klmlfl]
gregf has quit [Quit: WeeChat 0.4.3]
klmlfl_ has quit [Client Quit]
klmlfl has joined #ruby
astav has quit [Quit: astav]
sea_local has joined #ruby
Channel6 has joined #ruby
gregf has joined #ruby
davedev2_ has quit []
emocakes has joined #ruby
zz_rubydiamond is now known as anildigital
<Lewoco> I think class_eval is my solution.
<Lewoco> How do I include a file from a gem that is in a subdirectory?
bricker`LA has joined #ruby
kristofferR has joined #ruby
jko_ has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
LBRapid has joined #ruby
LBRapid is now known as Guest3571
Guest3571 has quit [Client Quit]
<Lewoco> Oh you can just specify a path in require.
austin has joined #ruby
toastynerd has joined #ruby
havenwood has joined #ruby
froggy__ has joined #ruby
bearish has joined #ruby
KnownSyntax has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
froggy_ has quit [Ping timeout: 246 seconds]
sea_local has quit [Remote host closed the connection]
sea_local has joined #ruby
bearish has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
mikesplain has joined #ruby
klmlfl has left #ruby [#ruby]
klmlfl has joined #ruby
agrinb has joined #ruby
<benzrf> regex is not that good
fold has quit [Ping timeout: 260 seconds]
<benzrf> parser combinators are generally better
Cache_Money has joined #ruby
tkuchiki_ has joined #ruby
sea_local has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
juz88 has quit []
flowerhack has quit [Remote host closed the connection]
Adran has quit [Excess Flood]
armanghassemi__ has quit [Quit: This computer has gone to sleep]
agrinb has quit [Ping timeout: 240 seconds]
pydave6377 has quit [Ping timeout: 250 seconds]
toastynerd has quit [Remote host closed the connection]
juz88 has joined #ruby
oo_ has joined #ruby
lolmaus has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
germanstudent has quit [Ping timeout: 250 seconds]
Adran has joined #ruby
maletor has joined #ruby
lolmaus has joined #ruby
Alina-malina has joined #ruby
pydave6367 has joined #ruby
GinoMan has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Line has joined #ruby
tkuchiki_ has quit [Ping timeout: 250 seconds]
germanstudent has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Line has quit [Client Quit]
oo_ has quit [Ping timeout: 250 seconds]
danijoo has joined #ruby
Rahul_Roy has joined #ruby
flowerhack has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
kenneth has joined #ruby
SpaceKoo- has quit [Ping timeout: 260 seconds]
GinoMan has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
maxwax has quit [Quit: Leaving.]
ereslibre_laptop has quit [Read error: Connection reset by peer]
zz_LoRdToLsToI has quit [Ping timeout: 260 seconds]
linojon has quit [Quit: linojon]
SpaceKookie has joined #ruby
echooo has quit [Ping timeout: 240 seconds]
sea_local has joined #ruby
koderok has joined #ruby
doodlehaus has joined #ruby
LBRapid has joined #ruby
zz_LoRdToLsToI has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
artmann_ has quit [Quit: No Ping reply in 180 seconds.]
havenwood has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
havenwood has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
Akagi201 has joined #ruby
lemur_ has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 250 seconds]
echooo has joined #ruby
lemur has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
atraylen has quit [Quit: Nettalk6 - www.ntalk.de]
rotor has quit [Ping timeout: 272 seconds]
klmlfl has quit [Ping timeout: 264 seconds]
artmann has joined #ruby
rotor has joined #ruby
Akagi201 has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
lemur_ has joined #ruby
lw has joined #ruby
philcrissman has joined #ruby
lemur has quit [Read error: Connection reset by peer]
arup_r has quit [Quit: Leaving.]
oo_ has joined #ruby
Takle has joined #ruby
joshbamboo1 has joined #ruby
dmyers has joined #ruby
jusmyth has joined #ruby
duncannz has joined #ruby
WildBamboo-josh has quit [Ping timeout: 245 seconds]
jusmyth has left #ruby [#ruby]
sea_local has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 250 seconds]
sea_local has joined #ruby
lemur_ has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
simpleuser has quit [Ping timeout: 245 seconds]
lemur has joined #ruby
coreycondardo has left #ruby [#ruby]
Takle has quit [Ping timeout: 272 seconds]
flowerhack has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
Sawbones has joined #ruby
sea_local has quit [Ping timeout: 255 seconds]
toastynerd has joined #ruby
Iota-Spencer is now known as IotaSpencer
kireevco has joined #ruby
lemur has quit [Ping timeout: 255 seconds]
tectonic has quit []
oo_ has joined #ruby
heyts has quit [Ping timeout: 240 seconds]
emocakes has quit []
bricker`work has joined #ruby
rotor has quit [Ping timeout: 272 seconds]
JBreit has quit [Read error: Connection reset by peer]
artmann has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
austin has quit [Quit: Leaving]
jko_ has quit [Remote host closed the connection]
cy has quit [Quit: :q!]
artmann has joined #ruby
rotor has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gaussblurinc1 has joined #ruby
ta has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
LBRapid has quit [Quit: ZNC - http://znc.in]
Akagi201 has joined #ruby
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
davedev24_ has joined #ruby
anildigital is now known as zz_anildigital
LBRapid has joined #ruby
flowerhack has joined #ruby
JBreit has joined #ruby
Channel6 has quit [Remote host closed the connection]
MrL0ngbowman has joined #ruby
agrinb has joined #ruby
freerobby has quit [Quit: Leaving.]
tlarevo_ has joined #ruby
bricker`work has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
lemur has joined #ruby
zz_anildigital is now known as anildigital
frooooooty has joined #ruby
<frooooooty> LBRapid: hi
frooooooty has quit [Client Quit]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
bluOxigen has joined #ruby
ramfjord_ has quit [Ping timeout: 245 seconds]
zubov has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
_cake has quit [Ping timeout: 260 seconds]
bearish has joined #ruby
craigp has joined #ruby
klmlfl has joined #ruby
klmlfl_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
lemur has quit [Ping timeout: 245 seconds]
klmlfl_ has quit [Client Quit]
lw has quit [Quit: s]
zubov has quit [Ping timeout: 240 seconds]
craigp has quit [Ping timeout: 260 seconds]
bMalum has quit [Quit: bMalum]
Cache_Money has joined #ruby
Spami has joined #ruby
grenierm has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
Soliah has quit [Remote host closed the connection]
Soliah has joined #ruby
tobago has joined #ruby
MrL0ngbowman has quit [Ping timeout: 246 seconds]
Fezzler has joined #ruby
Fezzler has quit [Read error: Connection reset by peer]
MrL0ngbowman has joined #ruby
toastynerd has joined #ruby
sinkensabe has joined #ruby
tkuchiki has joined #ruby
Morkel has joined #ruby
sea_local has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
isomorph1smes is now known as isomorphismes
sinkensabe has joined #ruby
emocakes has joined #ruby
djbkd has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Remote host closed the connection]
beneggett has joined #ruby
klmlfl has joined #ruby
artmann has quit [Read error: Connection reset by peer]
artmann has joined #ruby
rotor has quit [Ping timeout: 250 seconds]
hobo has joined #ruby
rotor has joined #ruby
<hobo> if i declare a method that isn't in a class, it defaults to a private method right?
wjimenez_ has joined #ruby
yfeldblu_ has joined #ruby
Sauvin has joined #ruby
klmlfl has quit [Ping timeout: 246 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
wjimene__ has joined #ruby
InhalingPixels has joined #ruby
toastynerd has quit [Remote host closed the connection]
<Hanmac> hobo yes if you define a method in the main context she will be a private method in Object
yfeldblu_ has quit [Ping timeout: 240 seconds]
rotor has quit [Ping timeout: 240 seconds]
artmann has quit [Ping timeout: 240 seconds]
wjimenez_ has quit [Ping timeout: 272 seconds]
<hobo> ahh yeah, and then i just found out you can't call private methods with an explicit receiver
<hobo> thatnks Hanmac
Aaaal has joined #ruby
artmann has joined #ruby
<Hanmac> hobo you can if you use send
wallerdev has joined #ruby
<hobo> Hanmac: this is the code im trying to debug https://github.com/hzab/katas/blob/master/quicksort.rb
<hobo> so it gives the error at line 19 because of the self i think?
<Hanmac> yes, just remove "self." and it might work
<hobo> yeah thanks, was just a weird error that i hadn't seen before
philcrissman has quit [Remote host closed the connection]
<hobo> can you explain why i dont need the self there?
whyy has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
toastynerd has joined #ruby
philcrissman has joined #ruby
MrL0ngbowman has quit [Ping timeout: 260 seconds]
Sawbones has quit []
<hobo> i thought the self would make it recursive?
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
bearish has quit [Remote host closed the connection]
philcris_ has joined #ruby
TheTopBloke has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
kyb3r_ has joined #ruby
tagrudev has joined #ruby
mfmfmfmfmfmf has joined #ruby
<Hanmac> hobo its already recursive without the self
<hobo> (im debugging gfs code)
Soliah has quit [Ping timeout: 250 seconds]
Cheezebox has quit [Remote host closed the connection]
bMalum has joined #ruby
bricker`work has joined #ruby
EasyCo has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
DrCode has quit [Ping timeout: 264 seconds]
rotor has joined #ruby
DrCode has joined #ruby
agrinb has joined #ruby
InhalingPixels has quit []
keen______ has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
keen______ has joined #ruby
cirn0 has quit [Remote host closed the connection]
Cheezebox has joined #ruby
AndChat| has quit [Ping timeout: 260 seconds]
Cheezebox has quit [Remote host closed the connection]
cirn0 has joined #ruby
anaeem1_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
w1xz has joined #ruby
tkuchiki_ has joined #ruby
aganov has joined #ruby
lemur has joined #ruby
ramfjord has joined #ruby
Ilyas has joined #ruby
Ilyas has quit [Max SendQ exceeded]
bricker`work has quit [Ping timeout: 250 seconds]
Ilyas has joined #ruby
cirn0 has quit [Ping timeout: 245 seconds]
havenwood has quit []
starkhalo has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
osvico has joined #ruby
ghostmoth has joined #ruby
artmann has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 255 seconds]
pagioss is now known as pagios
fold has joined #ruby
ghostmoth has quit [Client Quit]
artmann has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
anildigital is now known as zz_anildigital
mattmcclure has quit [Quit: Connection closed for inactivity]
sparrovv has joined #ruby
bricker`work has joined #ruby
doodlehaus has joined #ruby
kireevco has quit [Ping timeout: 246 seconds]
dawkirst has joined #ruby
Aranshada|W has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
narcan has joined #ruby
ptrrr has joined #ruby
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
Aranshada|W has joined #ruby
ptrrr has quit [Client Quit]
Xeago has joined #ruby
qpok_ is now known as qpok
doodlehaus has quit [Ping timeout: 260 seconds]
philcris_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 272 seconds]
philcrissman has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
mfmfmfmfmfmf has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
havenwood has joined #ruby
dawkirst has quit [Quit: Leaving...]
yetanotherdave has quit [Remote host closed the connection]
Lewix has joined #ruby
_tpavel has joined #ruby
sinkensabe has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
bricker`work has quit [Ping timeout: 240 seconds]
ramfjord has quit [Quit: Lost terminal]
Cheezebox has joined #ruby
icebourg has joined #ruby
relix has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
pierre1__ has joined #ruby
OffTheRails has joined #ruby
Aaaal has quit [Quit: Aaaal]
Hanmac has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HelperW_ has joined #ruby
gauravagarwalr has joined #ruby
craigp has joined #ruby
bMalum has quit [Quit: bMalum]
skolman has quit [Remote host closed the connection]
Cheezebox has quit [Remote host closed the connection]
Cheezebox has joined #ruby
diegoviola has quit [Remote host closed the connection]
sea_local has quit [Remote host closed the connection]
sea_local has joined #ruby
Cheezebox has quit [Ping timeout: 245 seconds]
icebourg has quit []
eeezkil has joined #ruby
<kenneth> so what's the concensus these days about what's the best simple testing framework for non-rails stuff?
Macaveli has joined #ruby
sea_local has quit [Ping timeout: 250 seconds]
sea_local has joined #ruby
noop has joined #ruby
<sevenseacat> well the options are the same
<sevenseacat> rspec or minitest/testunit, basically
<sevenseacat> there is no consensus - i prefer rspec, others prefer minitest
alexju has quit [Remote host closed the connection]
m104 has joined #ruby
mityaz has joined #ruby
m104 has quit [Max SendQ exceeded]
mikesplain has joined #ruby
m104 has joined #ruby
jprovazn has joined #ruby
kiri has joined #ruby
charliesome has quit [Quit: zzz]
<shevy> I prefer testing by cleverness
gaussblurinc1 has joined #ruby
agrinb has joined #ruby
bearish has joined #ruby
<Hanmac> hm my code are mosty not testable because of GUI stuff, but i prefer testunit over minitest because it does have some more advaced testing methods
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
kiri has quit [Quit: Leaving]
agrinb has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby
kiri_ has joined #ruby
m104 has quit [Quit: bye]
kiri_ has quit [Client Quit]
HelperW__ has joined #ruby
<gaussblurinc1> hi!
lidaaa has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
Jackneill has joined #ruby
<gaussblurinc1> which object method called in `puts "#{object}"`?
<gaussblurinc1> display?
bearish has quit []
<sevenseacat> on the object? to_s
<sevenseacat> ...or maybe to_str
<gaussblurinc1> hmm, to_s or to_str? :)
bearish has joined #ruby
emergion has joined #ruby
lemur has joined #ruby
HelperW_ has quit [Ping timeout: 260 seconds]
<gaussblurinc1> to_s, yes
fabrice31 has joined #ruby
bayed has joined #ruby
ta has joined #ruby
Ilyas_ has joined #ruby
bearish has quit [Client Quit]
mercerist has joined #ruby
bMalum has joined #ruby
ta has quit [Client Quit]
mercerist has quit [Client Quit]
bearish has joined #ruby
lemur has quit [Ping timeout: 246 seconds]
Ilyas has quit [Ping timeout: 255 seconds]
ta has joined #ruby
timonv_ has joined #ruby
cndiv has quit [Ping timeout: 260 seconds]
siwica has quit [Quit: siwica]
siwica has joined #ruby
Magnus has joined #ruby
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
andikr has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
<Hanmac> gaussblurinc1:
<Hanmac> >> o=Object.new; def o.to_s; warn "to_s"; end; def o.inspect; warn "inspect"; end; "#{o}"
<eval-in> Hanmac => to_s ... (https://eval.in/183859)
suy_ is now known as suy
krandi has joined #ruby
patric100e99 has joined #ruby
sparrovv has quit [Ping timeout: 245 seconds]
anaeem1 has joined #ruby
andrewlio has joined #ruby
<Hanmac> gaussblurinc1: if you want to overwrite the to_s method dont forget the inspect method
<Hanmac> 19>> o=Object.new; def o.to_s; warn "to_s"; end; p o;0
<eval-in> Hanmac => to_s ... (https://eval.in/183870)
<Hanmac> >> o=Object.new; def o.to_s; warn "to_s"; end; p o;0
<eval-in> Hanmac => #<Object:0x40889c04> ... (https://eval.in/183871)
olivier_bK has quit [Ping timeout: 260 seconds]
patric100e99 has quit [Ping timeout: 272 seconds]
pandaant has joined #ruby
anaeem1__ has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
kiri has joined #ruby
febuiles has quit [Remote host closed the connection]
febuiles has joined #ruby
kiri has quit [Client Quit]
zz_anildigital is now known as anildigital
roolo has quit [Quit: Leaving...]
kalusn has joined #ruby
w1xz has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
poulet_a has joined #ruby
whyy has quit [Remote host closed the connection]
philcrissman has joined #ruby
o0oo0o has quit [Remote host closed the connection]
pranny has joined #ruby
o0oo0o has joined #ruby
shelling has quit [Quit: Connection closed for inactivity]
philcrissman has quit [Ping timeout: 240 seconds]
rjhunter has quit [Remote host closed the connection]
<pagios> how can i return json in erb?
rjhunter has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
Robert__ has left #ruby ["Leaving"]
jhass|off is now known as jhass
anildigital is now known as zz_anildigital
lele has quit [Ping timeout: 260 seconds]
pranny has quit [Client Quit]
Wolland_afk has quit [Ping timeout: 246 seconds]
TheTopBloke has quit [Quit: Textual IRC Client: www.textualapp.com]
<gaussblurinc1> Hanmac: overwrite inspect method as to_s method invocation?
emmesswhy has quit [Quit: This computer has gone to sleep]
rjhunter has quit [Ping timeout: 255 seconds]
bbloom has joined #ruby
<pagios> i need to return these as json
<pagios> how can i do that
lele has joined #ruby
whyy has joined #ruby
railsraider has joined #ruby
<Hanmac> gaussblurinc1: the problem: in 1.9 and before Object#inspect did call Object#to_s ... in 2.0 and later it did not ... which means if you want that "#{o}" and p o does return the same, you need to overwride both #to_s and #inspect
<railsraider> has anyone had luck uploading to google drive as a service using oauth?
<railsraider> i get status 200
<railsraider> but the file is not there
bbloom_ has quit [Ping timeout: 245 seconds]
VBlizzard has quit [Ping timeout: 240 seconds]
<railsraider> using the google ruby api
qba73 has joined #ruby
arup_r has quit [Remote host closed the connection]
krandi has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Lewoco_ has joined #ruby
niik00 has joined #ruby
zz_anildigital is now known as anildigital
Pharaoh2 has joined #ruby
<niik00> I everyone. I'm just wondering if someone here has already used the gem listen to track file system events and wrote some specs with that gem ?
mikesplain has joined #ruby
<pagios> http://pastebin.com/5LcU5M6N <---- i am getting an exception
<pagios> i need to return the videos as json thanks
jottr has joined #ruby
Lewoco has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
techsethi has joined #ruby
agrinb has joined #ruby
<Hanmac> pagios: and i am getting "HelpError: exception message is missing, help can not be provided"
<havenwood> mmm, a missing exception exception
mikesplain has quit [Ping timeout: 246 seconds]
<havenwood> inception
Pharaoh2 has quit [Remote host closed the connection]
<pagios> Hanmac: #<NameError: uninitialized constant Sinatra::Application::JSON>
<Hanmac> pagios: maybe you forgot to require it??
<niik00> pagios: require 'json'
<sevenseacat> Hanmac: cute :P
dumdedum has joined #ruby
mkaesz has quit [Ping timeout: 260 seconds]
Sht0 has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
<pagios> Hanmac: ok so no more exception but nothing returned
<Hanmac> thats what you get when having people learn php/rails ... thinking that everything automaticly does require itself on its own
wallerdev has quit [Quit: wallerdev]
<pagios> can i convert from an array to json or need to go array-> hash-> json?
<niik00> Hanmac: whaaaaaaaat ?! It doesn't ? Did people lie to me ? :'(
<Hanmac> pagios: look at ERB help ... i think "<% %>" does not output it, you need the other one i dont know
<niik00> pagios: you just need to call the method .to_json on your object
<sevenseacat> we do get spoilt by rails autoloading, i'll admit.
andrewlio has quit [Ping timeout: 245 seconds]
noeden has joined #ruby
<sevenseacat> <% %> will evaluate, <%= %> will evaluate and print out
<Hanmac> pagios: JSON should support Array structure
saladspork has joined #ruby
anarang has joined #ruby
vereteran has quit [Quit: ZNC - http://znc.in]
naquad has joined #ruby
<pagios> ok so now it returned ["/var/www/videos/vod123.mp4","/var/www/videos/test1234.mp4","/var/www/videos/test12345.mp4"]
havenwood has quit [Ping timeout: 264 seconds]
olivier_bK has joined #ruby
havenwood has joined #ruby
<Hanmac> pagios: hm yes and thats a json string ... or something wrong?
Cooler_ has joined #ruby
<pagios> i dont know it looks more of an array, is it json ? :/
AlexRussia has quit [Ping timeout: 260 seconds]
<Hanmac> if its printed as a string it is json
<sevenseacat> looks like json.
mockra_ has quit [Remote host closed the connection]
mercerist has joined #ruby
mockra has joined #ruby
krisquigley has quit [Remote host closed the connection]
kith_ has joined #ruby
Takle has joined #ruby
fella6s has joined #ruby
noshi_ has joined #ruby
naw_ has joined #ruby
matled- has joined #ruby
wu_1mao has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
PanPan_ has joined #ruby
RandyT has quit [Ping timeout: 264 seconds]
DEA7TH has joined #ruby
noeden has left #ruby ["Textual IRC Client: www.textualapp.com"]
Jameser` has joined #ruby
AlexRussia has joined #ruby
headius_ has joined #ruby
r0bby_ has joined #ruby
the_dude has joined #ruby
Pumukel has joined #ruby
suy_ has joined #ruby
niik00 has left #ruby [#ruby]
zartoosh has joined #ruby
camilasann has joined #ruby
kayloos has joined #ruby
railsraider has quit [Quit: railsraider]
mockra has quit [Ping timeout: 250 seconds]
mattp_ has joined #ruby
hephaest1s_rg has joined #ruby
Rydekull_ has joined #ruby
ericwood_ has joined #ruby
Raboo_ has joined #ruby
yliu has joined #ruby
jzigmund has joined #ruby
izzol2_ has joined #ruby
cout_ has joined #ruby
Blue_Ice_ has joined #ruby
pydave6377 has joined #ruby
sh1ken_ has joined #ruby
benzrf is now known as benzrf|offline
magicien has joined #ruby
magicien has quit [Changing host]
magicien has joined #ruby
crazed_ has joined #ruby
ght_ has joined #ruby
pandaant_ has joined #ruby
GriffinH_ has joined #ruby
Dreamer3__ has joined #ruby
axisys has joined #ruby
drizz_ has joined #ruby
MarcWebe3 has joined #ruby
Derander_ has joined #ruby
jottr_ has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
dphase- has quit [Ping timeout: 257 seconds]
emocakes__ has joined #ruby
yeltzooo has joined #ruby
max06 has joined #ruby
The has joined #ruby
doodlehaus has joined #ruby
pranny has joined #ruby
bmn_ has joined #ruby
Machetez has joined #ruby
peeja_ has joined #ruby
quarcu_ has joined #ruby
mocchi_ has joined #ruby
cescalante_ has joined #ruby
nopc0de- has joined #ruby
Cort3z has joined #ruby
elaptic`` has joined #ruby
Trieste_ has joined #ruby
Morrolan_ has joined #ruby
vlad_sta- has joined #ruby
Shidash_ has joined #ruby
arup_r has joined #ruby
dphase has joined #ruby
braincra- has joined #ruby
Aaaal has joined #ruby
anarang has quit [*.net *.split]
jottr has quit [*.net *.split]
pandaant has quit [*.net *.split]
Sauvin has quit [*.net *.split]
emocakes has quit [*.net *.split]
pydave6367 has quit [*.net *.split]
gregf has quit [*.net *.split]
fella7s has quit [*.net *.split]
PanPan has quit [*.net *.split]
iamjusthatdude has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
drizz has quit [*.net *.split]
Rydekull has quit [*.net *.split]
asuka has quit [*.net *.split]
maloik has quit [*.net *.split]
Derander has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
camilasan has quit [*.net *.split]
cout has quit [*.net *.split]
naw has quit [*.net *.split]
peret has quit [*.net *.split]
malcolmva has quit [*.net *.split]
shevy has quit [*.net *.split]
Jameser has quit [*.net *.split]
kies has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
kith has quit [*.net *.split]
Raboo has quit [*.net *.split]
jzigmund_ has quit [*.net *.split]
tenseiten has quit [*.net *.split]
Thanatermesis has quit [*.net *.split]
mocchi has quit [*.net *.split]
crazed has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
headius has quit [*.net *.split]
yeltzooo9 has quit [*.net *.split]
wu_lmao has quit [*.net *.split]
poulet_a has quit [*.net *.split]
kalusn has quit [*.net *.split]
Macaveli has quit [*.net *.split]
craigp has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
GriffinHeart has quit [*.net *.split]
braincrash has quit [*.net *.split]
Azure has quit [*.net *.split]
heftig_ has quit [*.net *.split]
bmn has quit [*.net *.split]
Morrolan has quit [*.net *.split]
Trieste has quit [*.net *.split]
cuqa has quit [*.net *.split]
suy has quit [*.net *.split]
matled has quit [*.net *.split]
DEA7TH_ has quit [*.net *.split]
peeja has quit [*.net *.split]
gizless has quit [*.net *.split]
rimenes_ has quit [*.net *.split]
hephaestus_rg has quit [*.net *.split]
joast has quit [*.net *.split]
ValicekB has quit [*.net *.split]
bjornar has quit [*.net *.split]
j75 has quit [*.net *.split]
sh1ken has quit [*.net *.split]
pr0t has quit [*.net *.split]
Nahra has quit [*.net *.split]
cescalante has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
ericwood has quit [*.net *.split]
b1nd_ has quit [*.net *.split]
devdazed has quit [*.net *.split]
swartwulf has quit [*.net *.split]
noshi has quit [*.net *.split]
Shidash has quit [*.net *.split]
WillAmes has quit [*.net *.split]
stopbit has quit [*.net *.split]
rostam has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
mattp___ has quit [*.net *.split]
pr00t has quit [*.net *.split]
ght has quit [*.net *.split]
magicien_ has quit [*.net *.split]
Insti has quit [*.net *.split]
MarcWeber has quit [*.net *.split]
quarcu has quit [*.net *.split]
yliu_ has quit [*.net *.split]
axisys_ has quit [*.net *.split]
machete has quit [*.net *.split]
izzol2 has quit [*.net *.split]
nopc0de has quit [*.net *.split]
Liothen has quit [*.net *.split]
drizz_ is now known as drizz
Shidash_ is now known as Shidash
Raboo_ is now known as Raboo
craigp_ has joined #ruby
b1nd_ has joined #ruby
matled- is now known as matled
amitchellbullard has joined #ruby
anildigital is now known as zz_anildigital
ValicekB_ has joined #ruby
isomorphismes has joined #ruby
peeja_ is now known as peeja
pr00t has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
pranny has quit [Ping timeout: 260 seconds]
doodlehaus has quit [Ping timeout: 246 seconds]
maloik has joined #ruby
timonv_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Aaaal has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
chihhsin_cloud has joined #ruby
ValicekB_ is now known as ValicekB
The has quit [Quit: Textual IRC Client: www.textualapp.com]
cuqa has joined #ruby
poulet_a has joined #ruby
Insti has joined #ruby
shevy has joined #ruby
bjornar has joined #ruby
asuka has joined #ruby
LiohAu_ has joined #ruby
anarang has joined #ruby
Thanatermesis has joined #ruby
stopbit has joined #ruby
kies has joined #ruby
gizless has joined #ruby
pr0t has joined #ruby
malcolmva has joined #ruby
j75 has joined #ruby
Sauvin has joined #ruby
rimenes has joined #ruby
Killerkeksdose has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
gregf has joined #ruby
Killerkeksdose has joined #ruby
heftig_ has joined #ruby
Sht0 has quit []
hephaest1s_rg has quit [Ping timeout: 246 seconds]
Sht0 has joined #ruby
Takle has joined #ruby
ghr has joined #ruby
ndrei has joined #ruby
<Lewoco_> Is there a function to convert an array of arguments to a command line that I can pass to Kernel.spawn?
swartwulf has joined #ruby
hephaestus_rg has joined #ruby
<tobiasvl> Lewoco_: that's just a space-separated string?
<tobiasvl> >> ["arg1", "arg2", "arg3"].join(" ")
<eval-in> tobiasvl => "arg1 arg2 arg3" (https://eval.in/183902)
<Lewoco_> tobiasvl, Arguments might have spaces, quotes, double-quotes etc. I'd like proper encoding.
elaptic`` is now known as elaptics
Aranshada|W_ has joined #ruby
roolo has joined #ruby
timonv_ has quit [Remote host closed the connection]
<Lewoco_> tobiasvl, Bugger it. Looks like there's no easy way. I'll use your hack =)
<pagios> is it possible to do a File.basename(@array) ?
Aranshada|W has quit [Ping timeout: 250 seconds]
krisquigley has joined #ruby
whyy has quit [Remote host closed the connection]
<sevenseacat> does it work?
jheg has joined #ruby
<tobiasvl> pagios: what do you want to achieve? what's @array here?
pandaant_ has quit [Remote host closed the connection]
<pagios> tobago: it is an array of filenames
zz_anildigital is now known as anildigital
crus has quit [Read error: Connection reset by peer]
<tobiasvl> then no
<tobago> pagios, what?
<tobiasvl> tobago: I think he meant tobiasvl
<pagios> sorry yea
<tobago> ah o.k.
crus has joined #ruby
<tobiasvl> pagios: map instead
<pagios> tobiasvl: @video_links = Dir.glob('/var/www/videos/*.mp4')
<Hanmac> pagios: Array#map
mockra has joined #ruby
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
Hobogrammer_ has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
bbloom_ has joined #ruby
<pagios> ok it works like this but can i use the same variable to map instead of using 2 variables? @video_links = Dir.glob('/var/www/videos/*.mp4') @video_links_base = @video_links.map { |x| File.basename(x) };
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
bbloom has quit [Ping timeout: 260 seconds]
Fractional has joined #ruby
<Fractional> Is there a way to modify content of a class from a block call?
<Hanmac> pagios: didnt you already had the problem with the file names a few days ago and didnt we already helped you with that?
ndrei has quit [Ping timeout: 240 seconds]
mockra has quit [Ping timeout: 264 seconds]
hephaestus_rg has quit [Ping timeout: 264 seconds]
<pagios> correct
<Fractional> Like you pass a block, performing changes on instance variable @foo. Is there any way to do this?
<Hanmac> Fractional: hm what is your input and what is your wanted output?
<Fractional> Hanmac: Let me gist it
<Hanmac> Fractional: instance_eval or instance_exec ?
<Fractional> Should print 12
<Hanmac> pagios: ah good that i did loging, i know i have seen that problem before at 22.Aug
koderok has quit [Quit: koderok]
<Hanmac> Fractional: instance_exec(&@block)
anaeem1__ has quit [Remote host closed the connection]
pierre1__ has quit [Quit: Leaving]
<Fractional> Hanmac: Thanks, will look into it! :)
W0rmDr1nk has joined #ruby
Aaaal has joined #ruby
Takle_ has joined #ruby
anaeem1_ has joined #ruby
<Fractional> Hanmac: Exactly what I was looking for. Cheers!
r0bby_ is now known as robbyoconnor
jottr_ has quit [Ping timeout: 246 seconds]
eeezkil has quit [Quit: Leaving.]
Takle has quit [Ping timeout: 260 seconds]
techsethi has quit [Quit: techsethi]
theRoUS has quit [Ping timeout: 250 seconds]
Trieste_ is now known as Trieste
Trieste has quit [Changing host]
Trieste has joined #ruby
mikesplain has joined #ruby
Lewoco_ has quit [Quit: Leaving]
Trieste is now known as Trieste_
theRoUS has joined #ruby
Trieste_ is now known as Trieste
<jheg> hey folks
schubam has joined #ruby
Aaaal has quit [Quit: Aaaal]
<jheg> I'm trying to build a game (tic tac toe) and I'm storing the squares into a hash ...
mikesplain has quit [Read error: Connection reset by peer]
pranny has joined #ruby
koderok has joined #ruby
mikesplain has joined #ruby
mengu has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
<jheg> On the computers go I'd like to check to see if a row,col or diag has two of the opponents marker and assuming the remaining square is empty fill it with its marker
agrinb has joined #ruby
<jheg> so I created 8 new hashes (row_1, row_2, Col_1 etc)
<jheg> like so ..
<tobiasvl> hashes?
<jheg> # initialize the empty hash that will store the board squares
<jheg> board_squares = {1 => " ",2 => " ",3 => " ",4 => " ",5 => " ",6 => " ",7 => " ",8 => " ",9 => " "}
<jheg> # rows columns and diagonals
<jheg> row_1 = {1 => board_squares[1], 2 => board_squares[2], 3 => board_squares[3]}
crome_ is now known as crome
<jheg> but when the program passes in a marker in a method I wrote it updates the board_squares hash but that in turn doesn't update the row_1 hash
Pharaoh2 has joined #ruby
<jheg> how do I update the row_1 as the main hash is updated?
<jheg> I thought hashes would be best for this tobiasvl
EasyCo has quit [Quit: Connection closed for inactivity]
<tobiasvl> why are you using hashes instead of nested arrays
<tobiasvl> seriously
jottr_ has joined #ruby
<jheg> I thought hashes would be best
mikesplain has quit [Ping timeout: 246 seconds]
agrinb has quit [Ping timeout: 240 seconds]
<Hanmac> jheg: hm you could for sample use only an long array, that is only shown different for repensending, or use a nested array, hm or you could use a Matrx, but that might be overkill
<jheg> why would an array be better tobiasvl
<jheg> ?
<tobiasvl> jheg: well, to turn it around: why did you think a hash would be better? you're just using the hash as an advanced array anyway
<jheg> hmmm good point
gregf_ has joined #ruby
_lexjm has quit [Read error: No route to host]
<jheg> thanks Hanmac not sure I really understand what you mean there though repensedning?
<Hanmac> "representing"
<jheg> ah OK
<Hanmac> like [0,1,2,3,4,5,6,7,8] is like this in the data, but printed like that [0,1,2] [3,4,5] [6,7,8]
<jheg> so how do I get a hash value or an array element to point to the another hash value or array element?
max061 has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
<jheg> that will work well for use with rows but not sure how I would overcome the issue of diagonals and columns
lemur has joined #ruby
ptrrr has joined #ruby
<jheg> I was thinking one large hash or array to store all the squares then 8 further arrays or hashes that point to each square in the original larger array
<tobiasvl> make methods that get the correct squares every time you ask
<jheg> then I can run conditionals on those
<tobiasvl> or make a Square class instead of using ints (probably overkill)
mengu has quit [Remote host closed the connection]
<jheg> hashes would then work better wouldn't it though because I can use the square number as the key
RandyT has joined #ruby
max06 has quit [Ping timeout: 240 seconds]
<jheg> lemme show you the whole program so far and sorry if the code is crap I'm just learning ...
advorak has joined #ruby
SilkFox_ has quit [Read error: Connection reset by peer]
<tobiasvl> where do you use square numbers as keys in a way that wouldn't be the exact same as array indices (except for offset by 1)
<jheg> I have a method that tells the player which squares are available and checks if the player has chosen a valid square
<jheg> well imagine 8 arrays storing each combination of the board covering 3 squares
<tobiasvl> huh?
<jheg> I would have thought hashes would look more user friendly because I can see straight away which square on the board I am dealing with
lemur has quit [Ping timeout: 260 seconds]
Bounga has joined #ruby
schubam_ has joined #ruby
<jheg> col1{1=>"",2=>"",3=>""}
decoponio has joined #ruby
jxf has quit [Ping timeout: 260 seconds]
<jheg> diag1{1=>"",5=>"",9=>""}
lmickh has joined #ruby
<jheg> is easier to understand than ...
<jheg> col1["","",""]
<jheg> diag1["","",""]
<jheg> I can see straight away exactly which square each key value pair represents
marr has joined #ruby
<tobiasvl> I don't understand why you need that. a column, diagonal and row are the exact same thing, with some abstraction
<jheg> and then return that key and pass it into the original hash or array
<jheg> I thought I'd need to do that to give the computer some intelligence for instance
schubam has quit [Ping timeout: 250 seconds]
<jheg> if player has two 'x' in a row and the other square = " " place a 'o' in that squate
Lewix has quit [Remote host closed the connection]
<jheg> *square
<jheg> I couldn't think of a another way to do it with my current knowledge anyway :)
Macaveli has joined #ruby
schubam_ has quit [Ping timeout: 260 seconds]
<jheg> I suppose I could just abstract the key value pairs from the original square is that what you mean?
<Hanmac> hm i would use 0 for empty, 1 for player1 and 2 for player2 ... the "x" and "o" stuff is only doing later in the output functions
agjacome has joined #ruby
<jhass> why not symbols?
AlSquire has joined #ruby
threesixes has quit [Remote host closed the connection]
Jackneill has quit [Ping timeout: 260 seconds]
<Hanmac> jhass: hm oky symbols and nil world work too
<jheg> As you play the game Hanmac the board updates so I used " " for visuals more than anything
<jheg> It was just a formatting thing
<Hanmac> jheg: like i said the " " are only used in the output, not in the data itself
<Hanmac> >> data = [0,0,1,0,1,0,1,0,0]; diag = [3,5,7]; diag.all? {|k| data[k-1] == 1}
<eval-in> Hanmac => true (https://eval.in/183919)
<jheg> If i'd used nil it would have meant I had to re write the board each time as the 'x' or 'o' would throw out my board
existensil has quit [Quit: WeeChat 0.4.2]
njs126 has quit [Ping timeout: 260 seconds]
patric100e99 has joined #ruby
bbloom has joined #ruby
<Hanmac> jheg: hm then you does print it wrong ... like i said dont touch the data with " ", "x" and "o" they are only for the output, not the internal data
njs126 has joined #ruby
bbloom_ has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrForr has joined #ruby
jheg_ has joined #ruby
kaspertidemann has quit []
rdark has joined #ruby
KnownSyntax_ has joined #ruby
jheg has quit [Ping timeout: 240 seconds]
jheg_ is now known as jheg
<jheg> sorry got disconnected
bearish_ has joined #ruby
patric100e99 has quit [Ping timeout: 240 seconds]
<jheg> Hanmac: That would work perfectly to check if there was a winner right?
sevenseacat has quit [Quit: Leaving.]
<jheg> That is checking to see if all elements in the diag array equal 1?
bearish has quit [Ping timeout: 260 seconds]
bearish__ has joined #ruby
philcrissman has joined #ruby
<Hanmac> jheg: yes it does, you might change it later for other stuff
KnownSyntax has quit [Ping timeout: 260 seconds]
<jheg> great stuff thanks again everyone this has been really useful
ItSANgo_ has quit [Ping timeout: 260 seconds]
<Hanmac> jheg: like let your program select if there is a win:
<Hanmac> >> data = [0,0,1,0,1,0,1,0,0]; lines = [[1,2,3],[4,5,6],[7,8,9], [1,4,7],[2,5,8],[3,6,9], [1,5,9], [3,5,7]]; lines.find {|l| l.all? {|k| data[k-1] == 1} }
<eval-in> Hanmac => [3, 5, 7] (https://eval.in/183931)
bearish_ has quit [Ping timeout: 240 seconds]
<jheg> Nice. I've not come across .find before
techsethi has joined #ruby
max061 has quit [Quit: Leaving.]
philcrissman has quit [Ping timeout: 260 seconds]
noshi_ is now known as noshi
AlexRussia has quit [Ping timeout: 260 seconds]
Dreamer3__ has quit [Ping timeout: 255 seconds]
<Hanmac> jheg: gasp! ... then you might need to look at the other methods Enumerable does have
craigp_ has quit []
echevemaster has quit [Quit: Leaving]
emocakes has joined #ruby
LnL has joined #ruby
Dreamer3 has joined #ruby
Fractional has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
HelperW__ has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
cirn0 has joined #ruby
narcan has joined #ruby
emocakes__ has quit [Ping timeout: 250 seconds]
narcan has quit [Client Quit]
<jheg> ha yeah just working my through them but this little project is deco helping
<jheg> nothing like just writing code to learn new stuff
<jheg> back in 10 changing location
jheg has quit [Quit: jheg]
roolo has quit [Quit: Leaving...]
bbloom has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
njs126 has quit [Ping timeout: 240 seconds]
kaspergr_ has quit [Remote host closed the connection]
GriffinH_ has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
drjfreeze has quit [Ping timeout: 244 seconds]
cirn0 has quit [Ping timeout: 250 seconds]
Dreamer3 has quit [Ping timeout: 272 seconds]
theRoUS has quit [Ping timeout: 260 seconds]
roolo has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
rezzack has quit [Ping timeout: 250 seconds]
drjfreeze has joined #ruby
godd2 has quit [Ping timeout: 263 seconds]
thoolihan has quit [Ping timeout: 263 seconds]
mengu has quit [Ping timeout: 240 seconds]
kiri has joined #ruby
einarj has joined #ruby
andrewlio has joined #ruby
Takle_ has quit [Remote host closed the connection]
AlexRussia has joined #ruby
saladspork has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
kiri has quit [Ping timeout: 246 seconds]
jheg has joined #ruby
techsethi_ has joined #ruby
techsethi has quit [Ping timeout: 255 seconds]
techsethi_ is now known as techsethi
Takle has joined #ruby
karupa is now known as zz_karupa
mikesplain has joined #ruby
matilak has joined #ruby
agrinb has joined #ruby
mikesplain has quit [Ping timeout: 272 seconds]
duncannz has quit [Ping timeout: 250 seconds]
agrinb has quit [Ping timeout: 250 seconds]
Azulinho has joined #ruby
brtdv has joined #ruby
ItSANgo has joined #ruby
theRoUS has joined #ruby
lemur has joined #ruby
<gaussblurinc1> the fastest way to banish all nils in array is … ?
<gaussblurinc1> reject{|i|i.nil?} ?
<jhass> gaussblurinc1: .compact
<Jamo> .compact maybe
<HaniKazmi> Hey guys
<HaniKazmi> I have an array of the form [ {key:foo, name:bar,...}, {key:baz, name:fizz,...},{key:foo, name:buzz,...}, ... ]
<HaniKazmi> I want to change it to the form { foo:[{key:foo, name:bar,...},{key:foo, name:buzz,...}], baz:[{key:baz, name:fizz,...}], ... }
<HaniKazmi> Any nice way of doing so?
<gaussblurinc1> thanks
lemur has quit [Ping timeout: 250 seconds]
<HaniKazmi> I'm currently doing
<HaniKazmi> @sub_hash = {}
<HaniKazmi> sub_accounts.each { |account| (@sub_hash[account[:parent_id]]||=[])<<account }
ndrei has joined #ruby
<Hanmac> hanikazmi: group_by ?
tvw has joined #ruby
<jhass> hanikazmi: won't get much nicer. One I see: @sub_hash = sub_accounts.each_with_object(Hash.new {|h, k| h[k] = [] }) {|account, hash| hash[account[:parent_id]] << account }
bricker`LA has quit [Ping timeout: 260 seconds]
gauravagarwalr has quit [Remote host closed the connection]
roobie has joined #ruby
<jhass> blergh
<jhass> actually that's a group_by
<HaniKazmi> Hanmac: Thanks, didn't think to look in enumerable
doodlehaus has joined #ruby
Trynemjoel has joined #ruby
advorak has quit [Quit: Ex-Chat]
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
Rydekull_ is now known as Rydekull
Rydekull has quit [Changing host]
Rydekull has joined #ruby
doodlehaus has quit [Ping timeout: 272 seconds]
Cort3z has quit [Remote host closed the connection]
AntelopeSalad has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
<roobie> Given a hash, how could I take a subset of it, i.e. take only keys [x, y, z] ?
whyy has quit [Remote host closed the connection]
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
heyts has joined #ruby
phoo1234567 has joined #ruby
<Hanmac> roobie: #values_at ?
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Takle has joined #ruby
tokik has quit [Ping timeout: 246 seconds]
deavid has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
emocakes__ has joined #ruby
PanPan_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
lkba has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
max06 has joined #ruby
deavid has joined #ruby
Aaaal has joined #ruby
emocakes has quit [Ping timeout: 264 seconds]
king313 has joined #ruby
king313 has joined #ruby
LiohAu_ is now known as LiohAu
echooo has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
moritzs has joined #ruby
tkuchiki has joined #ruby
spider-mario has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
brkattk has joined #ruby
Insti has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
oo_ has joined #ruby
tkuchiki_ has quit [Ping timeout: 246 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
brkattk has quit [Remote host closed the connection]
<roobie> Hanmac: that's it - and I've even used it before. Thanks. (Really not an intuitive name!)
koderok has quit [Quit: koderok]
User458764 has joined #ruby
hamakn has quit [Remote host closed the connection]
Insti has joined #ruby
kaspertidemann has quit []
poulet_a has quit [Ping timeout: 245 seconds]
poulet_a has joined #ruby
pranny1 has joined #ruby
pranny has quit [Read error: Connection reset by peer]
matcouto has joined #ruby
gccostabr has joined #ruby
<jhass> roobie: what would be a more intuitive name?
Takle has quit [Remote host closed the connection]
nickjj has joined #ruby
mikesplain has joined #ruby
emergion has quit [Quit: Connection closed for inactivity]
kaspertidemann has joined #ruby
<roobie> jhass: slice :)
<jhass> AS has slice, doing a different thing
agrinb has joined #ruby
emocakes__ has quit [Ping timeout: 246 seconds]
Photism has joined #ruby
oo_ has quit [Remote host closed the connection]
fold has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
guiguidoc has quit [Ping timeout: 255 seconds]
drusepth has joined #ruby
devdazed has joined #ruby
roolo has joined #ruby
rezzack has joined #ruby
njs126 has joined #ruby
guiguidoc has joined #ruby
emocakes has joined #ruby
drjfreez1 has joined #ruby
Dreamer3 has joined #ruby
armanghassemi_ has joined #ruby
kaspergrubbe_ has joined #ruby
sharms has joined #ruby
thoolihan has joined #ruby
suy_ is now known as suy
gauravagarwalr has joined #ruby
drjfreeze has quit [Ping timeout: 260 seconds]
<roobie> Hanmac / jhass : unfortunately that only returns the values, I want the keys associated with them still!
koderok has joined #ruby
<jhass> roobie: nothing in core, if you're inside rails see my link
lemur has joined #ruby
bbloom has joined #ruby
<roobie> Not inside rails I'm afraid
<roobie> I gotta say, I'm sorely disappointed it's not easily possible
pierre1_ has quit [Ping timeout: 260 seconds]
devdazed has quit [Ping timeout: 272 seconds]
ddv has joined #ruby
ddv has quit [Changing host]
<jhass> then wanted_keys.each_with_object({}) {|key, hash| hash[key] = other_hash[key] }
koderok has quit [Client Quit]
catbusters has quit [Quit: Connection closed for inactivity]
<jhass> if you want put that inside class Hash; def slice(wanted_keys); end; end; with other_hash == self
doodlehaus has joined #ruby
bearish__ is now known as bearish
<roobie> I'm not gonna monkey patch Hash :)
<ccooke> roobie: but all the cool people are doing it!
<roobie> First suggestion seems about right tho
<jhass> you can use a refinement
lemur has quit [Ping timeout: 245 seconds]
brtdv has quit []
<jhass> >> module HashSlice; refine Hash do; def slice(*keys); keys.each_with_object(new) {|key, hash| hash = self[key] }; end; end; end; using HashSlice; {a: 1, b: 2, c: 3}.slice(:a, :b)
<eval-in> jhass => undefined local variable or method `new' for {:a=>1, :b=>2, :c=>3}:Hash (NameError) ... (https://eval.in/184019)
codecop has joined #ruby
<jhass> >> module HashSlice; refine Hash do; def slice(*keys); keys.each_with_object(self.class.new) {|key, hash| hash = self[key] }; end; end; end; using HashSlice; {a: 1, b: 2, c: 3}.slice(:a, :b)
<eval-in> jhass => {} (https://eval.in/184020)
<jhass> mmh, interesting :D
philcrissman has joined #ruby
<jhass> >> module HashSlice; refine Hash do; def slice(*keys); keys.each_with_object({}) {|key, hash| hash[key] = self[key] }; end; end; end; using HashSlice; {a: 1, b: 2, c: 3}.slice(:a, :b)
<eval-in> jhass => {:a=>1, :b=>2} (https://eval.in/184022)
jheg has quit [Quit: jheg]
ndrei has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
brtdv has joined #ruby
ndrei has joined #ruby
philcrissman has quit [Ping timeout: 240 seconds]
Pharaoh2 has quit [Remote host closed the connection]
axilla has joined #ruby
Pharaoh2 has joined #ruby
bjz has joined #ruby
o0oo0o has quit [Remote host closed the connection]
o0oo0o has joined #ruby
patric100e99 has joined #ruby
tkuchiki has joined #ruby
phutchins has joined #ruby
tokik has joined #ruby
mercerist has quit [Remote host closed the connection]
mikalv has quit [Ping timeout: 264 seconds]
patric100e99 has quit [Ping timeout: 260 seconds]
doodlehaus has quit []
Meeh has joined #ruby
gerep has joined #ruby
agit0o has joined #ruby
davedev24_ has quit [Remote host closed the connection]
thoolihan has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
treehug88 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
dorei has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
kaspertidemann has quit []
anaeem1_ has quit [Remote host closed the connection]
MCDev has quit [Ping timeout: 250 seconds]
jheg has joined #ruby
sk87 has joined #ruby
sk87 has quit [Client Quit]
butblack has joined #ruby
anaeem1_ has joined #ruby
NuckingFuts has quit [Ping timeout: 240 seconds]
nuck has joined #ruby
<Macaveli> Can you do this better with squeel? PageTranslation.where("alias IS NOT NULL")
<Macaveli> tried with != nil but doesn't work
sunslide has joined #ruby
ldnunes has joined #ruby
<tobiasvl> Macaveli: is this activerecord or ruby on rails? #RubyOnRails might be better suited
<Macaveli> activerecord
<Macaveli> in ror
<Macaveli> alright
<emocakes> biggie smalls
<Macaveli> East coast boooh
<Macaveli> West west yah
Meeh has quit [Ping timeout: 240 seconds]
<roobie> jhass: my preferred method is: wanted_keys = %i[a c]; hash = {a:1,b:2,c:3}; hash.select { |key| wanted_keys.include? key }
<jhass> doesn't return a hash
heyts has quit [Ping timeout: 264 seconds]
schubam has joined #ruby
Meeh has joined #ruby
schubam has quit [Remote host closed the connection]
gerep has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
gerep has joined #ruby
shachar has joined #ruby
Morkel has joined #ruby
<Hanmac> jhass: select does return Hash
<jhass> mmh, did that change?
<Hanmac> >> wanted_keys = %i[a c]; hash = {a:1,b:2,c:3}; hash.select { |key| wanted_keys.include? key }
<eval-in> Hanmac => {:a=>1, :c=>3} (https://eval.in/184037)
<Hanmac> 20>>wanted_keys = %i[a c]; hash = {a:1,b:2,c:3}; hash.select { |key| wanted_keys.include? key }
<eval-in> Hanmac => {:a=>1, :c=>3} (https://eval.in/184038)
<Hanmac> 19>>wanted_keys = %i[a c]; hash = {a:1,b:2,c:3}; hash.select { |key| wanted_keys.include? key }
<eval-in> Hanmac => /tmp/execpad-a584614b1061/source-a584614b1061:2: unknown type of %string ... (https://eval.in/184039)
<Hanmac> 19>>wanted_keys = %i[a c]; hash = {:a =>1,:b =>2,:c => 3}; hash.select { |key| wanted_keys.include? key }
<eval-in> Hanmac => /tmp/execpad-e20d994779ba/source-e20d994779ba:2: unknown type of %string ... (https://eval.in/184040)
<jhass> %i is ruby 2.0
<Hanmac> 19>>wanted_keys = [:a ,:c]; hash = {:a =>1,:b =>2,:c => 3}; hash.select { |key| wanted_keys.include? key }
<eval-in> Hanmac => {:a=>1, :c=>3} (https://eval.in/184041)
<Hanmac> 18>>wanted_keys = [:a ,:c]; hash = {:a =>1,:b =>2,:c => 3}; hash.select { |key| wanted_keys.include? key }
<eval-in> Hanmac => /tmp/execpad-ff5cd199b0b8/source-ff5cd199b0b8:2: warning: multiple values for a block parameter (2 for 1) ... (https://eval.in/184042)
mkaesz has joined #ruby
<Hanmac> 18>>wanted_keys = [:a ,:c]; hash = {:a =>1,:b =>2,:c => 3}; hash.select { |key,_| wanted_keys.include? key }
<eval-in> Hanmac => [[:c, 3], [:a, 1]] (https://eval.in/184043)
<jhass> \o/ :D
<jhass> okay, my bad
<Hanmac> jhass: Hash#select did change with 1.9
simpleuser has joined #ruby
arup_r has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
<shachar> Hi , a small and easy question , i have created a class and within that class i have a method , when trying to execute that method i am getting "in `<class:Warehouse>': undefined local variable or method `do_create_int' for Warehouse:Class (NameError)" , please take a look here http://pastebin.com/4EaAsTrZ THANKS
mikesplain has joined #ruby
Takle has joined #ruby
mikesplain has quit [Max SendQ exceeded]
<izzol2_> hmm how I can check if the "key" is in my hash or not?
agrinb has joined #ruby
<izzol2_> I'm trying to do this by: test["xxx"].empty? but in the result I have NoMethodError: undefined method `empty?' for nil:NilClass.
<izzol2_> Which is correct.
brtdv has quit [Ping timeout: 272 seconds]
<izzol2_> But I need to know if they key is in the hash before that error :)
MCDev has joined #ruby
sk87 has joined #ruby
easier has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 272 seconds]
peret has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
groot_ has joined #ruby
gerep has quit [Ping timeout: 255 seconds]
Sgeo_ has quit [Read error: Connection reset by peer]
pranny1 has quit [Quit: Leaving.]
phutchin1 has joined #ruby
narcan has joined #ruby
phutchins has quit [Read error: Connection reset by peer]
<Hanmac> izzol2_: you are fallen into the rails trap because test["xxx"].empty? would work on rails ... you need to check with test.has_key?["xxx"]
<Hanmac> i mean with test.has_key?("xxx") first
freerobby has joined #ruby
<Hanmac> and then maybe depending on the data a !test["xxx"].nil? too
britneywright has joined #ruby
jespada has joined #ruby
osvico has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
whyy has joined #ruby
<izzol2_> hmm
<izzol2_> irb(main):025:0* test = {"a"=>1, "b"=>2}
<izzol2_> => {"a"=>1, "b"=>2}
<izzol2_> irb(main):027:0> test["c"].has_key?
<izzol2_> NoMethodError: undefined method `has_key?' for nil:NilClass
oo_ has quit [Quit: Leaving...]
Takle has joined #ruby
<tobiasvl> izzol2_: read Hanmac's last line again
sambao21 has joined #ruby
<izzol2_> ahh
<izzol2_> right
<izzol2_> it works with ! and .nil?
<izzol2_> :)
<Hanmac> its okay ... its normal that i got ignored by rails users
hellangel7 has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
ndrei has joined #ruby
freerobby has quit [Quit: Leaving.]
oo_ has joined #ruby
<W0rmDr1nk> hi
<W0rmDr1nk> so I installed ruby gem for asciidoctor-diagram
<W0rmDr1nk> as my local user
<W0rmDr1nk> but where is it installed ?
<pontiki> gem which asciidoctor-diagram
<poulet_a> test.has_key? "c"
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<poulet_a> @izzol2_ : test.has_key? "c"
poulet_a has left #ruby ["Quitte"]
<W0rmDr1nk> pontiki, thanks
kaspergrubbe_ has quit [Remote host closed the connection]
<W0rmDr1nk> nvm
<W0rmDr1nk> got it
ringarin has joined #ruby
<W0rmDr1nk> ok - so now I run: /home/iwana/.gem/ruby/1.9.1/gems/asciidoctor-1.5.0/bin/asciidoctor domain.asciidoc
<W0rmDr1nk> but I get error: asciidoctor: WARNING: domain.asciidoc: line 8: invalid style for listing block: plantuml
starkhalo has joined #ruby
dumdedum has quit [Quit: foo]
<W0rmDr1nk> any ideas ?
<pontiki> not without having to read the documentation and maybe the code...
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
emocakes has quit []
<canton7> I'm guessing you're using an invalid style for a listing block?
shachar has quit [Quit: Leaving]
coreycondardo has joined #ruby
linojon has joined #ruby
coreycondardo has quit [Client Quit]
St_Marx has joined #ruby
wildroman2 has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
mkaesz has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 255 seconds]
toretore has joined #ruby
cirn0 has joined #ruby
arup_r has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
sk87 has joined #ruby
mockra has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
kaspergrubbe_ has joined #ruby
SCHAAP137 has joined #ruby
krisquigley has quit [Remote host closed the connection]
ringarin has quit [Quit: Leaving]
yfeldblum has joined #ruby
osvico has joined #ruby
ndrei has joined #ruby
cirn0 has quit [Ping timeout: 240 seconds]
<mostlybadfly> Buenos días
Trieste has quit [Ping timeout: 250 seconds]
andrewlio has quit [Ping timeout: 246 seconds]
_tpavel has quit [Ping timeout: 272 seconds]
timgauthier has joined #ruby
<timgauthier> shevy you should throw stones at me, i'm back in Europe
earthquake has joined #ruby
mockra has quit [Ping timeout: 246 seconds]
<W0rmDr1nk> pontiki, I had to make a custom laucher for asiidoctor-diagram
yfeldblum has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
davedev24_ has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
maasha has joined #ruby
mikesplain has joined #ruby
siwica1 has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
Aranshada|W_ has quit [Quit: Aranshada|W_]
Takle has joined #ruby
benvds_ has left #ruby [#ruby]
<maasha> My UNIX command line pipe emulation in Ruby is prone to being slow to the verge of hanging (and have even crashed Ruby). I suspect something is blocking, but forked processes are a bitch to debug: https://gist.github.com/maasha/68000429844a2d869e43
spastorino has joined #ruby
mikesplain has quit [Ping timeout: 246 seconds]
kil0byte has joined #ruby
krisquigley has joined #ruby
<maasha> moral support and suggestions are welcome
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gccostabr has joined #ruby
agjacome has quit [Quit: leaving]
linojon has quit [Quit: linojon]
oo_ has quit [Remote host closed the connection]
_tpavel has joined #ruby
linojon has joined #ruby
oo_ has joined #ruby
<jheg> guys I need to check an array of 3 elements and if it contains 2 elements that contain 'x' and the remaining element contains " " then assign 'o' to the element that contains " "
agrinb has joined #ruby
ItSANgo has quit [Quit: Leaving...]
anaeem1_ has quit [Remote host closed the connection]
<jheg> I'm guessing I'll need the count method but I'm struggling to figure out who to get the remming element
andrewlio has joined #ruby
philcrissman has joined #ruby
joast has joined #ruby
yalue has joined #ruby
whyy has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 240 seconds]
dumdedum has joined #ruby
tlarevo_ has quit [Ping timeout: 260 seconds]
philcrissman has quit [Ping timeout: 255 seconds]
<pontiki> can the elements be in any order?
Logico has joined #ruby
chipotle has joined #ruby
<sonOfRa> What's the canonical way to create a set c from sets a and b, where c contains all elements in a that are not in b?
dumdedum has quit [Ping timeout: 246 seconds]
techsethi has quit [Quit: techsethi]
<sonOfRa> arrays, rather than sets
<tobiasvl> c = a - b
<tobiasvl> ?
<sonOfRa> that's actually defined on arrays?
<sonOfRa> yay, ruby!
GinoMan has quit [Ping timeout: 250 seconds]
<tobiasvl> >> a = [1,2,3]; b = [3,4,5]; a - b
<eval-in> tobiasvl => [1, 2] (https://eval.in/184081)
weems|mac has joined #ruby
earthquake has quit [Quit: earthquake]
weems|mac has quit [Changing host]
weems|mac has joined #ruby
<sonOfRa> awesome
User458764 has joined #ruby
<jheg> pontiki: yes
<jheg> its a row in the game tic tac toe or naughts and crosses depending on where you live :)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joast has quit [Quit: Leaving.]
butblack has quit [Quit: butblack]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
butblack has joined #ruby
butblack has quit [Client Quit]
emocakes has joined #ruby
banister has joined #ruby
Alina-malina has quit [Ping timeout: 255 seconds]
pranny has joined #ruby
stef_204 has joined #ruby
alexju has joined #ruby
pranny has quit [Client Quit]
pranny has joined #ruby
orolo has joined #ruby
<pontiki> maybe something with row.count('x') ...
butblack has joined #ruby
doodlehaus has joined #ruby
flowerhack has quit [Remote host closed the connection]
<jheg> yeah thats what I was playing with but so far no joy
<jheg> I must have written it incorrectly coz I thought it was count I needed
bmurt has joined #ruby
krz has quit [Quit: WeeChat 1.0]
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<pontiki> rather brute force, but: https://gist.github.com/tamouse/e833bee467c78c3ceff0
agrinb has joined #ruby
<jheg> that looks perfect pontiki cheers
todor has quit [Quit: leaving]
pranny has quit [Quit: Leaving.]
<pontiki> it really needs to be generalised
<jheg> generalised/
<jheg> ?
Ankhers has joined #ruby
agit0o has quit [Quit: Page closed]
<pontiki> i suppose you have a way of checking columns and diagonals as well?
kayloos has quit [Remote host closed the connection]
dblessing has joined #ruby
<jheg> yeah I have a multi dimensional array that contains the 8 lines
dumdedum has joined #ruby
Takle has quit [Remote host closed the connection]
<Hanmac> pontiki: my idea was something like that:
<Hanmac> >> data = [0,0,1,0,1,0,1,0,0]; lines = [[1,2,3],[4,5,6],[7,8,9], [1,4,7],[2,5,8],[3,6,9], [1,5,9], [3,5,7]]; lines.find {|l| l.all? {|k| data[k-1] == 1} }
<eval-in> Hanmac => [3, 5, 7] (https://eval.in/184082)
gccostabr has quit [Quit: ZZZzzz…]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
sylvanica has quit [Ping timeout: 260 seconds]
joast has joined #ruby
wu_1mao has quit [Quit: Leaving]
ItSANgo has joined #ruby
butblack has quit [Quit: butblack]
kalusn has joined #ruby
<jheg> I have very similar to that from earlier to check for winner Hanmac
catbusters has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
Alina-malina has joined #ruby
Takle has joined #ruby
yfeldblum has joined #ruby
Xeago has joined #ruby
bashrw has joined #ruby
cpruitt has joined #ruby
Cheezebox has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
Alina-malina has quit [Ping timeout: 272 seconds]
qmfnp has joined #ruby
michaeldeol has joined #ruby
<jheg> Hanmac: can you just talk me through exactly whats happening here ...
<jheg> lines.find {|l| l.all? {|k| data[k-1] == 1} }
sailias has joined #ruby
Gil has joined #ruby
<Hanmac> jheg: it does return for which of the lines, all elements that are got from the data array are set to 1
djcp has joined #ruby
Gil has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
Alina-malina has joined #ruby
_tpavel has quit [Ping timeout: 240 seconds]
wu_lmao has joined #ruby
<shevy> timgauthier cool. why did you not stay in canada?
<timgauthier> because Germany
wu_lmao has quit [Client Quit]
<shevy> timgauthier btw random fun "fact" - in austrian (viennese) slang, Canada is "Kanada", and if you split this up into "ka-na-da" this means "ka-na = keiner (nobody)", "da = hier (here)""
gr33n7007h has joined #ruby
<timgauthier> hehe
<shevy> so nobody is there in Kanada! :-)
ta has quit [Remote host closed the connection]
<timgauthier> Kanada is in German
<timgauthier> and yeah thats a fair assumption
Aranshada|W has joined #ruby
djcp has left #ruby [#ruby]
paulfm has joined #ruby
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
<roobie> What's the difference between Hash#select and Hash#keep_if ?
zorak has quit [Ping timeout: 240 seconds]
Kabaka has quit [Ping timeout: 272 seconds]
enebo has joined #ruby
<Hanmac> roobie: Hash#select = new hash, Hash#keep_if = old hash
enebo has quit [Client Quit]
mary5030 has joined #ruby
<Hanmac> shevy & timgauthier: there are some cities in germany after 18:00 sharp you will see one one on the street ... means at 17:59 you will see persons, and at 18:01 everyone is gone ;p
<shevy> Hamburg?
enebo has joined #ruby
gccostabr has joined #ruby
schubam has joined #ruby
<timgauthier> yeah hamburg is like that
banister is now known as banisterfiend
<timgauthier> you could shoot a zombie film on sunday afternoon in hamburg, literally nothing, its dead quiet too
havenwood has joined #ruby
<shevy> ewww
<timgauthier> and you wouldn't need a permit because no one would even see you :P
wildroman2 has quit []
bearish has quit [Ping timeout: 250 seconds]
<timgauthier> Hamburg sucks though so who cares :P dresdin on sunday afternoon still has people out shopping etc
<timgauthier> dresden*
marr has joined #ruby
<timgauthier> leipzig is funny too, looks like a dead industrial city, but you can hear music leaking out of the old factories that have been turned into clubs and bars and theaters and kinos (cinema) and concerts etc
iamjarvo has joined #ruby
<shevy> Dresden is nice but when I was there many years ago, there were still so many buildings damaged
Sthebig has quit [Ping timeout: 272 seconds]
snath has quit [Remote host closed the connection]
msmith_ has joined #ruby
pandaant has joined #ruby
gtrak has joined #ruby
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
<Hanmac> timgauthier: ah you from saxony too?
<timgauthier> i'm in saxony yeah
<wasamasa> timgauthier: I've heard facebook is stationed in hamburg
Cheezebox has quit [Remote host closed the connection]
<timgauthier> shevy how many years ago was that? I mean yeah Dresden just started getting so much money lately
* Hanmac currently near Rossendorf (= near Dresden)
* timgauthier near Zwichau
<shevy> timgauthier about ... 8-11 years, more like 11 I think
<Hanmac> oO inst it "Zwickau" ?
<shevy> oh have you been to the ugliest town yet timgauthier?
<shevy> Chemnitz :-)
<timgauthier> yes
<timgauthier> lol it is ugly indeed lol
<timgauthier> yeah sorry Zwickau
kalusn has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
_tpavel has joined #ruby
<timgauthier> my typing is shit right now
kquig has joined #ruby
cocotton has joined #ruby
<shevy> I like medieval-originated towns like Nürnberg (Nuremburg), in northern italy that is even more widespread
<timgauthier> heh, you can see where the communists stopped.
schubam_ has joined #ruby
schubam has quit [Ping timeout: 255 seconds]
failshell has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
<timgauthier> thats a crazy thing about east german towns and cities, you can see where communism ended, they would tear down and rebuild the city blocks at a time, and where they stopped you have the ugly block buildings next to the cool german houses
mary5030 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<shevy> yeah
qwyeth has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
<timgauthier> I'm in a town right now, its cute, lots of german farm houses, Zwickau is a ... interesting town
bearish has joined #ruby
astav has joined #ruby
<timgauthier> its not specifically ugly, but it definitely is a country town, and its pretty vacant, not a ton of work around here so its lots of empty places
rocknrollmarc has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
kalusn has joined #ruby
jheg has quit [Quit: jheg]
Alina-malina has joined #ruby
albedoa has joined #ruby
Sthebig has joined #ruby
andrcmdr has joined #ruby
yeticry has quit [Quit: leaving]
yeticry has joined #ruby
yeticry has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anarang has quit [Quit: Leaving]
jheg has joined #ruby
iamjarvo has joined #ruby
RichardLitt has joined #ruby
timonv_ has quit [Remote host closed the connection]
yeticry has joined #ruby
cout_ is now known as cout
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
arup_r has quit []
Anarch_ is now known as Anarch
cocotton has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
devdazed has joined #ruby
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
momomomomo has joined #ruby
ffranz has joined #ruby
sylvanica has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
tkuchiki has joined #ruby
gr33n7007h has joined #ruby
jfutbol has joined #ruby
larissa has joined #ruby
charliesome has joined #ruby
devdazed has quit [Ping timeout: 240 seconds]
Miron is now known as Poland
<mikecmpbll> is there a more idiomatic way of replacing all instances of x in an array with something else than
<mikecmpbll> >> [1,2,3,1,2,3].map{|i| i == 1 ? 2 : i }
<eval-in> mikecmpbll => [2, 2, 3, 2, 2, 3] (https://eval.in/184091)
<mikecmpbll> that replaces 1 with 2 for example.
pu22l3r has joined #ruby
Cheezebox has joined #ruby
<daxroc> Anyone know of a test collector for ruby - bamboo ?
Poland is now known as Miron
asteve has joined #ruby
anildigital is now known as zz_anildigital
ylluminarious has joined #ruby
agrinb has quit [Remote host closed the connection]
emocakes has quit []
beneggett has joined #ruby
oetjenj has quit [Ping timeout: 264 seconds]
Sthebig has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
oetjenj has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
madelaney has joined #ruby
easier has quit [Quit: easier]
yfeldblum has joined #ruby
<rocknrollmarc> Hey guys anyone have any experience in using page objects?
itspots has joined #ruby
itspots has quit [Changing host]
itspots has joined #ruby
Xeago has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sunslide has quit [Quit: Page closed]
<shevy> what is a page ogjbect
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
Sthebig has joined #ruby
tobago has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
dj_zubehoer has joined #ruby
cocotton has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rocknrollmarc> oops Page object
larissa has quit [Quit: Leaving]
elstif has joined #ruby
<rocknrollmarc> when you use selenium webdriver or similar you can organize your different pages in page objects, makes it more modular
<elstif> rocknrollmarc: hi. talking about selenium webdriver, are you using any tool relying on that?
jheg has quit [Quit: jheg]
mikesplain has joined #ruby
Kabaka has joined #ruby
<pontiki> where do they go?
<pontiki> woops
<mikecmpbll> rocknrollmarc: i dont yet, but i'm looking to start using them considering my whole test suite is based upon acceptance tests
britneywright has joined #ruby
tagrudev has quit [Remote host closed the connection]
<mikecmpbll> and is quite brittle atm
sk87 has joined #ruby
spyderman4g63 has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
atmosx has joined #ruby
astav has quit [Quit: astav]
lxsameer has quit [Quit: Leaving]
RichardLitt has quit [Quit: RichardLitt]
Petru has joined #ruby
paulfm_ has joined #ruby
aclearma_ has quit [Ping timeout: 264 seconds]
paulfm has quit [Ping timeout: 260 seconds]
cirn0 has joined #ruby
timonv_ has joined #ruby
zz_anildigital is now known as anildigital
goshdarnyou has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
mockra has joined #ruby
<rocknrollmarc> elstif sorry didnt see your response, Im using capybara, vcr, cucumber, site_prism,
gtrak has quit [Ping timeout: 264 seconds]
<atmosx> rocknrollmarc: what do you wanna do?
mikepack has joined #ruby
<rocknrollmarc> mikecmpbll I can only advice I to use Page onjects lots of fun and nice step definitions
cirn0 has quit [Ping timeout: 244 seconds]
poulet_a has joined #ruby
gtrak has joined #ruby
<rocknrollmarc> atmosx Im writing acceptance tests for a node.js webapp thats allready done
<mikecmpbll> i almost already have a page object abstraction in that i have a ton of methods for interacting with the dom
<mikecmpbll> but it's not OO.
Magnus has quit [Ping timeout: 260 seconds]
IrishGringo has joined #ruby
<rocknrollmarc> well why dont you make modules out of them
Alina-malina has quit [Ping timeout: 260 seconds]
mockra has quit [Ping timeout: 260 seconds]
michaeldeol has joined #ruby
<elstif> rocknrollmarc: I guess non of them related with native apps automation (although I am using cucumber and capybara as well)
<rocknrollmarc> All you have to do is include PageObject
<mikecmpbll> indeed..
Macaveli has quit [Ping timeout: 260 seconds]
<rocknrollmarc> so any personal favorites 1. site_prism, 2.capybara-page-object, 3.Page-object ?
<rocknrollmarc> I think Im going for Page Object although Ive allready done then in site_prism kind of like the PageObject Factory
philcrissman has joined #ruby
ryanleesipes has joined #ruby
amargherio has joined #ruby
<rocknrollmarc> Ill tell you what ill just make a feature branch and see whats better and let you know
IceDragon has joined #ruby
<mikecmpbll>
icebourg has joined #ruby
timonv_ has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
Alina-malina has joined #ruby
icebourg has quit [Max SendQ exceeded]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
Cheezebox has quit [Remote host closed the connection]
balder has left #ruby [#ruby]
fantazo has joined #ruby
philcrissman has quit [Ping timeout: 244 seconds]
mockra has joined #ruby
groot_ has quit [Quit: leaving]
tharindu has joined #ruby
tharindu has quit [Client Quit]
icebourg has joined #ruby
icebourg has quit [Client Quit]
Cheezebox has joined #ruby
ylluminarious has quit [Quit: Linkinus - http://linkinus.com]
Cheezebo_ has joined #ruby
icebourg has joined #ruby
Cheezebox has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mockra has quit [Remote host closed the connection]
gaussblurinc1 has quit [Quit: Leaving.]
jprovazn has quit [Quit: Leaving]
zz_jrhorn424 is now known as jrhorn424
ylluminarious has joined #ruby
mockra_ has joined #ruby
noop has quit [Ping timeout: 245 seconds]
RandyT has quit [Ping timeout: 264 seconds]
RandyT has joined #ruby
toastynerd has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
sh1ken_ is now known as sh1ken
sh1ken has quit [Changing host]
sh1ken has joined #ruby
mkaesz has joined #ruby
jheg has joined #ruby
omosoj has joined #ruby
hellangel7 has quit [Remote host closed the connection]
gsd has joined #ruby
bthesorceror has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
sparrovv has joined #ruby
poulet_a has quit [Quit: Quitte]
poulet_a has joined #ruby
sparrovv has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
aganov has quit [Remote host closed the connection]
sparrovv has joined #ruby
krz has joined #ruby
sambao21 has joined #ruby
sparrovv has quit [Read error: Connection reset by peer]
terrellt has joined #ruby
sambao21 has quit [Client Quit]
livingstn has joined #ruby
philcrissman has joined #ruby
beneggett has joined #ruby
User458764 has quit [Ping timeout: 260 seconds]
bricker`LA has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
IceDragon has quit [Ping timeout: 260 seconds]
sambao21 has joined #ruby
IceDragon has joined #ruby
Cheezebo_ has quit [Remote host closed the connection]
User458764 has joined #ruby
toastynerd has quit [Remote host closed the connection]
bearish has quit [Remote host closed the connection]
User458764 has quit [Client Quit]
Cheezebox has joined #ruby
sk87 has joined #ruby
agrinb has joined #ruby
yfeldblum has joined #ruby
Iconate_ has joined #ruby
<Iconate_> how can I split a string by every 2 characters, particularly a hex string
koderok has joined #ruby
koderok has quit [Client Quit]
jpinnix_ has joined #ruby
devdazed has joined #ruby
ericwood_ is now known as ericwood
krandi has joined #ruby
patric100e99 has joined #ruby
awc737 has joined #ruby
<toretore> Iconate_: String#scan
Bish_ has joined #ruby
reisl has joined #ruby
deavidsedice has joined #ruby
hendrici1s has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
matchaw_ has joined #ruby
momomomomo_ has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
pandaant_ has joined #ruby
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
jpinnix has quit [Ping timeout: 240 seconds]
jpinnix_ is now known as jpinnix
Anarch_ has joined #ruby
FL1SK has quit [Ping timeout: 240 seconds]
Bish has quit [Quit: ZNC - http://znc.sourceforge.net]
Cope has quit [Ping timeout: 240 seconds]
mattp_ has quit [Ping timeout: 240 seconds]
andikr has quit [Quit: No Ping reply in 180 seconds.]
Rylee_ has quit [Excess Flood]
rocknrollmarc has quit [Ping timeout: 246 seconds]
albedoa has quit [Ping timeout: 240 seconds]
hendricius has quit [Ping timeout: 240 seconds]
matchaw has quit [Quit: No Ping reply in 180 seconds.]
deavid has quit [Quit: No Ping reply in 180 seconds.]
Killerkeksdose has quit [Quit: No Ping reply in 180 seconds.]
Mongey has quit [Max SendQ exceeded]
pandaant has quit [Ping timeout: 240 seconds]
Anarch has quit [Ping timeout: 240 seconds]
lusory_ has quit [Ping timeout: 240 seconds]
queequeg1 has quit [Ping timeout: 240 seconds]
Karunamon has quit [Ping timeout: 240 seconds]
lusory has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
queequeg1 has joined #ruby
xsdg has quit [Ping timeout: 240 seconds]
Cope_ has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
Killerkeksdose_ has joined #ruby
Logico has quit [Quit: Saindo]
albedoa has joined #ruby
xsdg has joined #ruby
totimkopf has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
Mongey has joined #ruby
patric100e99 has quit [Ping timeout: 240 seconds]
txdv has quit [Ping timeout: 240 seconds]
<havenwood> Iconate_: or regexpless: each_char.each_slice(2).map(&:join)
IrishGringo has quit [Ping timeout: 260 seconds]
zettam has quit [Read error: Connection reset by peer]
totimkopf has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
zettam has joined #ruby
philcrissman has quit [*.net *.split]
omosoj has quit [*.net *.split]
icebourg has quit [*.net *.split]
paulfm_ has quit [*.net *.split]
Petru has quit [*.net *.split]
spyderman4g63 has quit [*.net *.split]
itspots has quit [*.net *.split]
yeticry has quit [*.net *.split]
_tpavel has quit [*.net *.split]
davedev24_ has quit [*.net *.split]
phutchin1 has quit [*.net *.split]
bbloom has quit [*.net *.split]
king313 has quit [*.net *.split]
einarj has quit [*.net *.split]
pr0t has quit [*.net *.split]
cescalante_ has quit [*.net *.split]
Machetez has quit [*.net *.split]
ValicekB has quit [*.net *.split]
sh1ken has quit [*.net *.split]
DEA7TH has quit [*.net *.split]
mr-foobar has quit [*.net *.split]
relix has quit [*.net *.split]
kenneth has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
armyriad has quit [*.net *.split]
MindfulMonk has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
s_e has quit [*.net *.split]
TieSoul has quit [*.net *.split]
sawtooth_ has quit [*.net *.split]
alex-i has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
icedp has quit [*.net *.split]
gf3 has quit [*.net *.split]
moted has quit [*.net *.split]
choke has quit [*.net *.split]
Xiti has quit [*.net *.split]
wmoxam has quit [*.net *.split]
Fraeon has quit [*.net *.split]
xlii has quit [*.net *.split]
badhatter_ has quit [*.net *.split]
sumark has quit [*.net *.split]
redlegion has quit [*.net *.split]
irk has quit [*.net *.split]
ccooke has quit [*.net *.split]
UKn0Me has quit [*.net *.split]
moshee has quit [*.net *.split]
pasv has quit [*.net *.split]
jsaak has quit [*.net *.split]
davzie has quit [*.net *.split]
Kovensky has quit [*.net *.split]
matrixise has quit [*.net *.split]
sirecote has quit [*.net *.split]
snorkra has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
madhatter has quit [*.net *.split]
Pro| has quit [*.net *.split]
QKO has quit [*.net *.split]
Drakevr has quit [*.net *.split]
diegok has quit [*.net *.split]
jeekl has quit [*.net *.split]
yasu has quit [*.net *.split]
mroth has quit [*.net *.split]
schaary|afk has quit [*.net *.split]
lectrick has quit [*.net *.split]
mclee has quit [*.net *.split]
jso has quit [*.net *.split]
eval-in has quit [*.net *.split]
kloeri has quit [*.net *.split]
jpic has quit [*.net *.split]
gkra has quit [*.net *.split]
anekos_ has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
certainty has quit [*.net *.split]
papercode has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
error404 has quit [*.net *.split]
marahin has quit [*.net *.split]
<Iconate_> havenwood: thanks, ended up doing hex.scan(/../)
txdv has joined #ruby
roolo has quit [Quit: Leaving...]
<havenwood> Iconate_: nice
Karunamon has joined #ruby
Cheezebox has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
gtrak has joined #ruby
Sauvin has quit [Max SendQ exceeded]
Cheezebox has joined #ruby
kquig has quit [Remote host closed the connection]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rylee_ has joined #ruby
TieSoul has joined #ruby
omosoj has joined #ruby
paulfm_ has joined #ruby
spyderman4g63 has joined #ruby
Petru has joined #ruby
icebourg has joined #ruby
yeticry has joined #ruby
phutchin1 has joined #ruby
bbloom has joined #ruby
davedev24_ has joined #ruby
king313 has joined #ruby
einarj has joined #ruby
pr0t has joined #ruby
Machetez has joined #ruby
mr-foobar has joined #ruby
DEA7TH has joined #ruby
sh1ken has joined #ruby
cescalante_ has joined #ruby
cjk101010 has joined #ruby
kenneth has joined #ruby
MindfulMonk has joined #ruby
avelldiroll has joined #ruby
armyriad has joined #ruby
relix has joined #ruby
sawtooth_ has joined #ruby
gf3 has joined #ruby
samuelkadolph has joined #ruby
alex-i has joined #ruby
icedp has joined #ruby
s_e has joined #ruby
choke has joined #ruby
Xiti has joined #ruby
xlii has joined #ruby
Fraeon has joined #ruby
wmoxam has joined #ruby
badhatter_ has joined #ruby
sumark has joined #ruby
UKn0Me has joined #ruby
redlegion has joined #ruby
moshee has joined #ruby
irk has joined #ruby
ccooke has joined #ruby
jsaak has joined #ruby
davzie has joined #ruby
pasv has joined #ruby
matrixise has joined #ruby
Kovensky has joined #ruby
sirecote has joined #ruby
Kilo`byte has joined #ruby
madhatter has joined #ruby
snorkra has joined #ruby
Pro| has joined #ruby
Drakevr has joined #ruby
diegok has joined #ruby
QKO has joined #ruby
jeekl has joined #ruby
schaary|afk has joined #ruby
lectrick has joined #ruby
mclee has joined #ruby
yasu has joined #ruby
mroth has joined #ruby
gkra has joined #ruby
jso has joined #ruby
anekos_ has joined #ruby
jpic has joined #ruby
kloeri has joined #ruby
eval-in has joined #ruby
certainty has joined #ruby
error404 has joined #ruby
kiki_lamb has joined #ruby
marahin has joined #ruby
mhenrixon has joined #ruby
papercode has joined #ruby
<havenwood> Iconate_: as long as they're always going to be pairs, not ending in a single you need to capture
Sauvin has joined #ruby
armyriad has quit [Max SendQ exceeded]
Xiti has quit [Max SendQ exceeded]
Davey has quit [Excess Flood]
jheg has quit [Quit: jheg]
Sauvin has quit [Read error: Connection reset by peer]
<havenwood> >> 'abc'.scan /.{1,2}/
<eval-in> havenwood => ["ab", "c"] (https://eval.in/184116)
C0deMaver1ck_ is now known as C0deMaver1ck
Xiti has joined #ruby
Sauvin has joined #ruby
<havenwood> >> 'abc'.scan /../
<eval-in> havenwood => ["ab"] (https://eval.in/184117)
IceDragon has joined #ruby
groot_ has joined #ruby
Xeago has joined #ruby
armyriad has joined #ruby
<havenwood> >> 'abc'.each_char.each_slice(2).map(&:join)
<eval-in> havenwood => ["ab", "c"] (https://eval.in/184118)
madelaney has quit [Quit: madelaney]
cocotton has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
failshell has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
failshel_ has joined #ruby
claw_ has quit [Ping timeout: 260 seconds]
reisl is now known as larissa
anildigital is now known as zz_anildigital
lw has joined #ruby
alex88 has joined #ruby
chrishough has joined #ruby
roolo has joined #ruby
IrishGringo_ has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
hellangel7 has joined #ruby
Davey has joined #ruby
gigetoo has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
matilak has quit [Quit: leaving]
claw_ has joined #ruby
treehug88 has quit []
Xeago has quit [Ping timeout: 260 seconds]
geggam has joined #ruby
spider-mario has quit [Ping timeout: 260 seconds]
ValicekB has joined #ruby
dumdedum has quit [Remote host closed the connection]
kayloos has joined #ruby
artmann_ has joined #ruby
terrellt has joined #ruby
maletor has joined #ruby
kayloos has quit [Read error: Connection reset by peer]
zenspider_ has joined #ruby
jamo__ has joined #ruby
kayloos has joined #ruby
froggy_ has joined #ruby
kalusn has quit [Ping timeout: 260 seconds]
jmbrown412 has joined #ruby
kayloos has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
cbetta_ has joined #ruby
emmesswhy has joined #ruby
emmesswhy has quit [Client Quit]
cantonic has joined #ruby
marr has quit [Ping timeout: 245 seconds]
britneywright has joined #ruby
tkuchiki has joined #ruby
zenspider has quit [Ping timeout: 240 seconds]
sinkensa_ has joined #ruby
timonv_ has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
d2biG has joined #ruby
Lulzon_ has joined #ruby
gigetoo has joined #ruby
anomaly has joined #ruby
ph8 has joined #ruby
pgmcgee- has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
saltsa_ has joined #ruby
cbetta has quit [Ping timeout: 240 seconds]
artmann has quit [Quit: No Ping reply in 180 seconds.]
cbetta_ is now known as cbetta
jamo_ has quit [Ping timeout: 240 seconds]
`ph8 has quit [Ping timeout: 240 seconds]
Lulzon has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
dRbiG has quit [Quit: co'o ro do]
froggy__ has quit [Ping timeout: 246 seconds]
albedoa has quit [Ping timeout: 240 seconds]
pgmcgee has quit [Ping timeout: 240 seconds]
saltsa has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
rotor has quit [Ping timeout: 240 seconds]
d2biG is now known as dRbiG
ndrei has joined #ruby
sinkensa_ has quit [Ping timeout: 250 seconds]
kith_ is now known as kith
lsone has joined #ruby
Morkel has quit [Quit: Morkel]
elstif has quit [Quit: Leaving.]
ozzloy_ has joined #ruby
Xeago has joined #ruby
n1lo has joined #ruby
charliesome has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sectionme has joined #ruby
ozzloy has quit [Ping timeout: 240 seconds]
gtrak has quit [Ping timeout: 293 seconds]
michaeldeol has joined #ruby
relix has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
ssvo has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
mikepack has quit [Read error: No route to host]
cy has joined #ruby
michaeldeol has quit [Client Quit]
mikepack has joined #ruby
cy is now known as Guest51569
lw has quit [Quit: s]
relix has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
Guest51569 has quit [Changing host]
Guest51569 has joined #ruby
max06 has quit [Quit: Leaving.]
Guest51569 is now known as cy
mijicd has joined #ruby
ghostmoth has joined #ruby
gauravagarwalr has quit []
gigetoo has joined #ruby
ghostmoth has quit [Read error: Connection reset by peer]
ghostmoth_ has joined #ruby
elstif has joined #ruby
krz has quit [Quit: WeeChat 1.0]
diegoviola has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
kristofferR has joined #ruby
tkuchiki has quit [Remote host closed the connection]
gtrak has joined #ruby
mikepack has quit [Remote host closed the connection]
spyderma_ has joined #ruby
threesixes has joined #ruby
chipotle has quit [Quit: cya]
toastynerd has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krandi has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
failshel_ has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
dj_zubehoer has quit [Ping timeout: 260 seconds]
rezzack1 has joined #ruby
Kricir has joined #ruby
spyderm__ has joined #ruby
Cheezebox has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 255 seconds]
Cheezebox has joined #ruby
lemur has joined #ruby
mage__ has joined #ruby
<mage__> hello
rezzack has quit [Ping timeout: 246 seconds]
gtrak has quit [Client Quit]
spyderma_ has quit [Read error: Connection reset by peer]
<mage__> any idea how I could rbenv install 1.9.3-p547 in a custom directory ?
pietr0 has joined #ruby
wallerdev has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Cheezebox has quit [Remote host closed the connection]
<mage__> I'm looking for the python virtualenv equivalent ..
yfeldblum has joined #ruby
<crome> you can easily do it by invoking ruby-build directly
gerep has joined #ruby
arya_ has joined #ruby
Azulinho has quit [Ping timeout: 272 seconds]
bearish has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
Cheezebox has joined #ruby
<havenwood> mage__: or take a look at ruby-install and chruby, which support arbitrary directories for installation and switching
<mage__> chruby ?
Bounga has quit [Quit: Bounga]
<mage__> is chruby recommended over rbenv ?
shevy has joined #ruby
gtrak has joined #ruby
Cheezebo_ has joined #ruby
Cheezebo_ has quit [Remote host closed the connection]
<mage__> or is it complementary ?
<havenwood> either or, i'd recommend chruby
<havenwood> not both
tharindu has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<mage__> ok ..
<mage__> thanks
<havenwood> you can pair chruby/ruby-build, chruby/ruby-install, rbenv/ruby-build, or rbenv/ruby-install - one installs the other switches
<havenwood> mage__: i prefer chruby/ruby-install personally, for a variety of reasons
rusty has joined #ruby
<havenwood> or rvm installs and switches
rusty is now known as Guest24483
_|d0m|_ has joined #ruby
mikepack has joined #ruby
gigetoo has joined #ruby
jusmyth1 has joined #ruby
tharindu has quit [Client Quit]
<mage__> rvm is a PITA
troyready has joined #ruby
jusmyth1 has left #ruby [#ruby]
tlarevo has joined #ruby
groot_ has quit [Ping timeout: 244 seconds]
mikepack has quit [Remote host closed the connection]
linojon_ has joined #ruby
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
krisquigley has joined #ruby
Asher has joined #ruby
linojon has quit [Ping timeout: 240 seconds]
linojon_ is now known as linojon
<roobie> or rvm
mkaesz has quit [Ping timeout: 246 seconds]
manacit has quit [Ping timeout: 240 seconds]
albedoa has joined #ruby
omosoj has quit [Ping timeout: 255 seconds]
axsuul has quit [Read error: Connection reset by peer]
centrx has joined #ruby
axsuul_ has joined #ruby
teddyp1cker has joined #ruby
sambao21 has joined #ruby
manacit has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
lsone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danman has joined #ruby
rubynoob has joined #ruby
timonv_ has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
<rubynoob> In pry I 'require active_support' but then `Time.current` gives "NoMethodError: undefined method `current' for Time:Class"
Spami has joined #ruby
timonv_ has joined #ruby
Takle has quit [Remote host closed the connection]
jaffachief has joined #ruby
yacks has quit [Ping timeout: 260 seconds]
<havenwood> rubynoob: require 'active_support/core_ext/time'
mijicd has quit [Quit: leaving]
bricker`work has joined #ruby
treehug88 has joined #ruby
<havenwood> or i guess more specifically: require 'active_support/core_ext/time/calculations'
jmorgan_ has joined #ruby
_|d0m|_ is now known as _|d0m|__
gigetoo has quit [Ping timeout: 260 seconds]
moritzs has quit [Ping timeout: 260 seconds]
Dev-Gitter has joined #ruby
<crome> what is the fashionable gui library for ruby nowadays? (if there's any)
<rubynoob> havenwood: I'm going by the example in Well Grounded Rubyist 2nd edition which only states 'require active_support'
FarlaTux has joined #ruby
PHP4Ever has joined #ruby
_|d0m|__ is now known as __|d0m|__
arup_r has joined #ruby
momomomomo_ has joined #ruby
mikeg has joined #ruby
jimms has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
yacks has joined #ruby
__|d0m|__ is now known as _|d0m|_
moritzs has joined #ruby
b00stfr3ak has joined #ruby
sectionme has quit [Ping timeout: 264 seconds]
<crome> rubynoob: it's a bit old
<crome> active support (and lots of other things) were restructured in rails 3
keen_______ has joined #ruby
<crome> you can require active_support/all though if you wish
keen______ has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 260 seconds]
wjimene__ has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
<rubynoob> havenwood: OK, that works but I would have thought a less specific require would include everything below that level?
<havenwood> 2nd edition is 2014 and its example is: require 'active_support/core_ext'
<havenwood> i think you guys are thinking 1st edition
<rubynoob> crome: Ah, that would be what I'm looking for. Thanks.
janmuffino has joined #ruby
<crome> havenwood: right, I googled up the wrong one
<rubynoob> havenwood: Yes, my mistake but he doesn't specify for the Time examples.
carraroj has joined #ruby
<rubynoob> havenwood: My mistake, overlooking the extension. Sorry :)
bradleyp_ has quit [Remote host closed the connection]
roobie has quit [Ping timeout: 264 seconds]
bradleyprice has joined #ruby
djbkd has joined #ruby
rubynoob has quit [Quit: BitchX: sanitized for your protection]
kalusn has quit [Remote host closed the connection]
bashrw has quit [Quit: bashrw]
gigetoo has joined #ruby
timonv_ has quit [Remote host closed the connection]
sethetter has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
poulet_a has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
bashrw has joined #ruby
heyts has joined #ruby
cantonic has joined #ruby
RichardLitt has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
sdwrage has joined #ruby
Cheezebox has quit [Remote host closed the connection]
OffTheRails_ has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
gerep has quit [Ping timeout: 245 seconds]
jmorgan_ has quit [Ping timeout: 264 seconds]
jmorgan_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
jmorgan_ has quit [Client Quit]
moritzs has quit [Ping timeout: 246 seconds]
bashrw has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
agjacome has joined #ruby
Magissia has joined #ruby
aspires has joined #ruby
<Magissia> Hello, i have trouble compiling ruby with Vistual Studio 2013, i know there's a solution using MinGW on Windows, but i would like to know and learn why it failled. I have a u1077 error (exit code 0x2) at the first step (win32\configuration.bat), i think my path is correct but if someone is willing to check with me i won't refuse.
Squarepy has joined #ruby
<Magissia> From my searches, the 0x2 is about missing file, but the error doesn't show wich file is missing.
chipotle has quit [Quit: cya]
<Hanmac> crome hm i write my own wxWidgets binding ... it is workable but still not complete ... (but 10x times better than wxRuby)
alex88 has quit [Quit: Leaving...]
gigetoo has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
saarinen has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
koderok has joined #ruby
sectionme has joined #ruby
wallerdev has quit [Quit: wallerdev]
koderok has quit [Client Quit]
gigetoo has joined #ruby
timonv_ has quit [Remote host closed the connection]
anomaly has left #ruby ["Leaving"]
mityaz has quit [Quit: Leaving]
pandaant_ has quit [Remote host closed the connection]
bashrw has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
headius_ is now known as headius
iamjarvo has joined #ruby
ndrei has joined #ruby
momomomomo is now known as momomomomo`away
rezzack1 has quit [Quit: Leaving.]
Zesty has joined #ruby
Kricir has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Client Quit]
skolman has joined #ruby
momomomomo`away has quit [Quit: momomomomo`away]
sylvanica has quit [Quit: sylvanica]
ghr has joined #ruby
Lewix has joined #ruby
lsone has joined #ruby
lmickh has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
Kricir has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Kricir has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
groot_ has joined #ruby
Cheezebox has joined #ruby
jheg has joined #ruby
philcrissman has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
skolman has quit [Remote host closed the connection]
<crome> Hanmac: is it public yet?
<Hanmac> crome: https://github.com/Hanmac/rwx but currently still not installable as gem
snath has joined #ruby
kil0byte has joined #ruby
rubytor has joined #ruby
ryanleesipes has quit [Ping timeout: 240 seconds]
gsd has joined #ruby
skolman has joined #ruby
zz_anildigital is now known as anildigital
MrL0ngbowman has joined #ruby
<crome> I like the readme
<crome> clean, easy to follow
gigetoo has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
Spami has joined #ruby
jobewan has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
spyderm__ has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
ta has joined #ruby
hooper has joined #ruby
<Hanmac> crome: yeah i didnt had time for the readme yet ... :/ you can try to play with it if you want (hm you might read the docs of wxWidgets or wxRuby first, or look a bit at the samples)
<havenwood> i dunno, it might look better in markdown
<Hanmac> (if the samples does work, i might need to check them again)
hobo has left #ruby [#ruby]
wallerdev has joined #ruby
hellangel7 has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cocotton has quit [Remote host closed the connection]
<Hanmac> havenwood: "nothing" does look good in any layout-language ;P
j75 has quit [Ping timeout: 250 seconds]
<havenwood> some nothing is better than other nothing!
kenneth has joined #ruby
<Hanmac> rubys nothing is better than phps nothing ;P (and does need less lines of code ;P )
hellangel7 has joined #ruby
albedoa has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
pandaant has joined #ruby
sinkensabe has joined #ruby
<crome> :D
orolo has quit [Quit: This computer has gone to sleep]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
michaeldeol has joined #ruby
lsone has quit [Read error: Connection reset by peer]
W0rmDr1nk has quit [Ping timeout: 260 seconds]
cocotton has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 255 seconds]
lemur has quit [Ping timeout: 240 seconds]
roolo has quit [Quit: Leaving...]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cndiv has joined #ruby
mattp_ has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
goleldar has joined #ruby
cocotton has joined #ruby
danman has quit [Quit: danman]
RichardLitt has quit [Quit: RichardLitt]
fabrice31 has joined #ruby
Lewix has quit [Remote host closed the connection]
gigetoo has joined #ruby
jheg has quit [Quit: jheg]
spyderman4g63 has joined #ruby
deric_skibotn has joined #ruby
Lewix has joined #ruby
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has joined #ruby
orolo has joined #ruby
lsone has joined #ruby
cantonic has quit [Quit: cantonic]
sparrovv has joined #ruby
einarj has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 250 seconds]
Hobogrammer has joined #ruby
timonv_ has joined #ruby
diegoviola has joined #ruby
iamjarvo has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
noeden_ has joined #ruby
ryanleesipes has joined #ruby
sinkensabe has quit [Remote host closed the connection]
noeden_ has quit [Client Quit]
sinkensabe has joined #ruby
chrishough has joined #ruby
sparrovv has quit [Ping timeout: 240 seconds]
MrL0ngbowman has quit [Quit: Leaving]
qba73 has quit []
MrL0ngbowman has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Aaaal has quit [Quit: Aaaal]
gigetoo has joined #ruby
djbkd has quit [Remote host closed the connection]
oldbay has joined #ruby
djbkd has joined #ruby
sk87_ has joined #ruby
Dramors has joined #ruby
aspires has quit []
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
oldbay has left #ruby [#ruby]
oldbay has joined #ruby
sk87_ has quit [Client Quit]
drjfreez1 is now known as drjfreeze
heyts has quit [Remote host closed the connection]
rezzack has joined #ruby
zorak has joined #ruby
timonv_ has quit [Ping timeout: 246 seconds]
cmosguy has joined #ruby
rimenes has joined #ruby
<cmosguy> hi can someone help me, I am trying to compile compass but ruby/rails gives me this error in my file when i try to @import "compass" https://gist.github.com/cmosguy/b760d157abf3bda4b1e1
gigetoo has quit [Ping timeout: 255 seconds]
aspires has joined #ruby
echevemaster has joined #ruby
jerikl has joined #ruby
marr has joined #ruby
mikespla_ has joined #ruby
mikespla_ has quit [Max SendQ exceeded]
arya_ has quit [Read error: Connection reset by peer]
mikespla_ has joined #ruby
mikespla_ has quit [Max SendQ exceeded]
aspires has quit [Client Quit]
gigetoo has joined #ruby
mikespla_ has joined #ruby
mikespla_ has quit [Max SendQ exceeded]
mikespla_ has joined #ruby
aspires has joined #ruby
Pumukel has quit [Ping timeout: 272 seconds]
mikesplain has quit [Ping timeout: 260 seconds]
groot_ has quit [Ping timeout: 245 seconds]
timgauthier has joined #ruby
skolma___ has joined #ruby
skolman has quit [Read error: Connection reset by peer]
pygospa is now known as MrRobot
jrhorn424 is now known as zz_jrhorn424
siwica1 has quit [Remote host closed the connection]
arya_ has joined #ruby
Magnus has joined #ruby
icole has joined #ruby
rotor has joined #ruby
LiohAu has quit [Quit: LiohAu]
RichardLitt has joined #ruby
rdark has quit [Quit: leaving]
gigetoo has quit [Ping timeout: 260 seconds]
jheg has joined #ruby
djbkd has quit [Remote host closed the connection]
techsethi has joined #ruby
benzrf|offline is now known as benzrf
poulet_a has joined #ruby
ylluminarious has quit [Remote host closed the connection]
gigetoo has joined #ruby
kedare has joined #ruby
IrishGringo_ has quit [Ping timeout: 260 seconds]
sh1ken has quit [Quit: leaving]
groot_ has joined #ruby
djbkd has joined #ruby
janmuffino has quit [Quit: Lost terminal]
lw has joined #ruby
lw has quit [Client Quit]
ndrei has quit [Ping timeout: 255 seconds]
<dorei> hello
<dorei> do you think having something like def first_part ; parts.first ; end is overengineering?
lkba has quit [Ping timeout: 245 seconds]
hilmy has joined #ruby
claymore has joined #ruby
<hilmy> anyone here?
ndrei has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<hilmy> because i've a probrem with floating number
ghr has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
AlSquire has joined #ruby
Kricir has joined #ruby
<Hanmac> dorei depends ... its okay if you does keep the parts variable hidden and use only @parts
Lexun has joined #ruby
threesixes has quit [Quit: SATAN!!!!!!!!]
<Hanmac> hilmy let me quess some rounding problem like: ?
<Hanmac> >> 0.1 + 0.2 == 0.3
<eval-in> Hanmac => false (https://eval.in/184157)
wldcordeiro has joined #ruby
Beryllium has left #ruby [#ruby]
tvw has quit []
<hilmy> Hanmac i'm currently setup the ticker price : {"ticker":{"high":0.00054989,"low":0.000034,"avg":0.00029194,"lastbuy":0.000035,"lastsell":0.00054989,"buy":0.000035,"sell":0.00054989,"lastprice":0.000035,"updated":1409565600}} how do i wrote the ouput
andrewjanssen has joined #ruby
thomasxie has quit [Ping timeout: 240 seconds]
<hilmy> example for the high
froggy_ has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
LiohAu has joined #ruby
yetanotherdave has joined #ruby
froggy_ has joined #ruby
<hilmy> latest_trade = data["ticker"][0]["lastprice"] and my output is {lastest_trade} it's not showing the value
elstif has quit [Quit: Leaving.]
roobie has joined #ruby
gigetoo has joined #ruby
<Lewix> hello
<groot_> hilmy: i think the [0] is unnecessary
<Hanmac> hilmy: remove the [0] because yu do not have an array
<hilmy> ok i try
wjimenez_ has joined #ruby
pietr0 has quit [Quit: pietr0]
jshultz has joined #ruby
pietr0 has joined #ruby
ghr has joined #ruby
pandaant has quit [Remote host closed the connection]
<hilmy> umm i think my declaration has an error not the floating :(
aspires has quit []
bthesorceror has quit [Quit: bthesorceror]
momomomomo has joined #ruby
aspires has joined #ruby
lw has joined #ruby
io_syl has joined #ruby
mikespla_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has joined #ruby
Georg3 has joined #ruby
<hilmy> i try it on eval.in
obs has joined #ruby
mikesplain has joined #ruby
mikesplain has quit [Max SendQ exceeded]
lkba has joined #ruby
mikesplain has joined #ruby
mikesplain has quit [Max SendQ exceeded]
lemur has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikesplain has joined #ruby
<hilmy> https://eval.in/184162 that final output has parse error, can you help me?
gigetoo has quit [Ping timeout: 260 seconds]
maroloccio has joined #ruby
ringarin has joined #ruby
mikesplain has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
mikesplain has joined #ruby
lemur has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
sectionme has quit [Ping timeout: 250 seconds]
_sillymarkets has joined #ruby
oldbay has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
teddyp1cker has joined #ruby
icole has quit [Remote host closed the connection]
sectionme has joined #ruby
lw has quit [Quit: s]
nfk has joined #ruby
Rylee_ is now known as Rylee
DrShoggoth has quit [Max SendQ exceeded]
Guest24483 has quit []
<_sillymarkets> Can anyone help me out? I get back "undefined method 'empty?' URI" in ruby 1.9.3 for this https://gist.github.com/sillymarketing/8988141144c09ce5fd03
DrShoggoth has joined #ruby
<_sillymarkets> but in Ruby 2.0 it works fine
icole has joined #ruby
<groot_> hilmy: I'm not sure what is say_to_channel, but I think it should get 2 parameters
sigurding has joined #ruby
IrishGringo has joined #ruby
<groot_> channel and text
schubam_ has quit [Ping timeout: 245 seconds]
<hilmy> groot_ say_to_channel is the ticker post a value on irc
cantonic has joined #ruby
yfeldblum has joined #ruby
teddyp1cker has quit [Ping timeout: 250 seconds]
krisquigley has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<groot_> does it work on it's own?
<groot_> its*
<hilmy> my problem is the ticker can't post the final value {lastest_trade} but pass to the parsererror
sectionme has quit [Ping timeout: 244 seconds]
<hilmy> wait i'm posted full code
<groot_> So I would guess that the response is not a good JSON.
Rosa has joined #ruby
<hilmy> the url must have .json format?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 245 seconds]
kedare has left #ruby ["WeeChat 0.4.1"]
cantonic has quit [Read error: Connection reset by peer]
IrishGringo has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
<groot_> the response should. youre usong JSON.parse and get a parse error
<groot_> so the response is bad
cantonic has joined #ruby
IrishGringo has joined #ruby
gsd has joined #ruby
lw has joined #ruby
LiohAu has quit [Quit: LiohAu]
lw has quit [Client Quit]
<hilmy> so what i'm do now?
dorei has quit []
gigetoo has joined #ruby
Rosa is now known as Jarboe
bradleyprice has joined #ruby
<hilmy> i'm new with ruby language
olivier_bK has quit [Ping timeout: 260 seconds]
<groot_> you need to debug to see what response you got
<groot_> print it to screen or log
Sauvin has quit [Remote host closed the connection]
<groot_> I get {"ticker":{"high":0,"low":0,"avg":0,"lastbuy":0,"lastsell":0,"buy":0.00002606,"sell":2.5,"lastprice":0,"updated":1409565600}}
DootBot has joined #ruby
<TieSoul> hey guys
<TieSoul> I brought a bot
<TieSoul> can you test it?
<TieSoul> do rb> ruby code
<TieSoul> and try to break it
<TieSoul> :P
<roobie> TieSoul: have you got an automated test suite
<hilmy> Program Output Forbidden syscall socketcall
<TieSoul> No.
<roobie> TieSoul: I'd sooner invest time into that than manual testing
jaffachief has quit [Quit: Connection closed for inactivity]
techsethi has quit [Quit: techsethi]
<centrx> I already accessed the bot and deleted all the code. Security vulnerability fixed.
<roobie> Automated tests are fo lyfe. Manual testing only means anything until you alter it again
<TieSoul> yeah, but my bot's main purpose is not to run ruby code. It just uses a simple eval with a banlist.
f0ster_ has joined #ruby
<hilmy> i'm searching the solution on google but i'm dont know the solution
jheg has quit [Read error: Connection reset by peer]
<hilmy> i*
jheg has joined #ruby
lsone has quit [Read error: No route to host]
shackleford has joined #ruby
<centrx> hilmy, Show the broken code at gist.github.com
testcore has joined #ruby
<hilmy> centrx wait
rezzack has quit [Quit: Leaving.]
<havenwood> hilmy: Only in the realm of mathematics can you understand Muad'Dib's precise view of the future.
aaronrl has joined #ruby
arup_r has quit [Quit: Leaving.]
ndrei has quit [Ping timeout: 244 seconds]
aaronrl has quit [Client Quit]
<groot_> hilmy: httpget returned <Net::HTTPBadRequest 400 Bad Request readbody=true>
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hilmy> groot_ but you can access the url with direct link
Hobogrammer has quit [Ping timeout: 255 seconds]
<groot_> hilmy: yes, wait a sec
sectionme has joined #ruby
spyderma_ has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
<hilmy> groot_ ok thanks before for helping me, because i'm experience with ruby language
DootBot has quit [Remote host closed the connection]
TieSoul has left #ruby [#ruby]
pu22l3r has quit [Ping timeout: 246 seconds]
<hilmy> only focus at def usd_price, not another sir;)
gigetoo has joined #ruby
bthesorceror has joined #ruby
GhettoJava has joined #ruby
LiohAu has joined #ruby
spyderman4g63 has quit [Ping timeout: 260 seconds]
<centrx> hilmy, Maybe your OS is not permitting your user to create the socket?
<hilmy> centrx, must portforwarding on router before ?
<groot_> hilmy: I think I got it
ghostmoth_ has quit [Quit: ghostmoth_]
<groot_> youre using net:http for an https address
jheg_ has joined #ruby
claw__ has joined #ruby
<hilmy> groot_ wait i'm try that
mikepack has joined #ruby
andrcmdr has quit [Ping timeout: 245 seconds]
sigurding has quit [Quit: sigurding]
timonv_ has joined #ruby
<groot_> hilmy: use the URI.parse(url).read
jheg has quit [Ping timeout: 245 seconds]
jheg_ is now known as jheg
mikesplain has quit [Read error: Connection reset by peer]
<groot_> it worked for me
mikesplain has joined #ruby
claw_ has quit [Ping timeout: 240 seconds]
<groot_> just don't forget the require 'open-uri' first
<jheg> Been stuck on this problem all day and I haven't managed to find a solution ...
roolo has joined #ruby
<jheg> sorry if any of you have seen this too many times today ...
<hilmy> on the response = ?
<jheg> I have a hash which stores 9 positions:
paulfm has joined #ruby
roobie has quit [Ping timeout: 245 seconds]
ptrrr has quit [Quit: ptrrr]
philcrissman has joined #ruby
paulfm_ has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
diegoviola has quit [Remote host closed the connection]
<groot_> hilmy: here https://eval.in/184190
mikesplain has quit [Read error: Connection reset by peer]
<centrx> jheg, It's really not clear what you mean
<groot_> it hink that should do it
kedare has joined #ruby
mikesplain has joined #ruby
gigetoo has joined #ruby
<jheg> no OK so I am building the game tic tac toe and I am at the stage of giving the computer player some sort of inteligence
<centrx> jheg, Try creating some classes to represent the things you are working with
pu22l3r has joined #ruby
<centrx> jheg, really, what does an 8x3 multidimensional array have to do with implementing tic tac toe ?
Pharaoh2 has quit [Remote host closed the connection]
<jheg> so on the computers go I want to check if 2 of the 3 squares contain the players marker 'x' and the other is ' ' and if so assign the key value pair in the hash with 'o'
philcrissman has quit [Ping timeout: 240 seconds]
<jheg> I was thinking I could pass all arrays into the hash using the arrays elements as the keys to check if there is a match
<centrx> line.two_marked?
<hilmy> the last output is : <TraderCoinInfo> Much error, such 502 Bad Gateway (try again in a minute, Shibe is many sorry) groot_ :(
<jheg> it works well for checking if all? squares in a line are 'x' or 'o' but cannot figure out how to check if 2 contain 'x' and 1 contains ' '
<jheg> .two_marked?
<jheg> ^?
Magissia has quit [Remote host closed the connection]
<centrx> Line.all.each { |line| line.mark_third_square(:o) if line.two_marked? }
IceDragon_ has joined #ruby
arya_ has quit [Ping timeout: 250 seconds]
<centrx> jheg, I understand if this is an exercise in how to work with basic data structures and algorithms at the array level
<centrx> jheg, But a proper implementation would be object-oriented and abstract the array mechanisms behind a class
<jheg> I've not reached OO as yet
<centrx> jheg, Then you could write a line like the above, so that the the logic of what you are trying to do is built into the object/method naming and object/method structure of the code
<groot_> hilmy: print the response you got.
ghostmoth has joined #ruby
sinkensabe has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
<jheg> perhaps I am trying to do too much for current skill set
devdazed has quit [Read error: Connection reset by peer]
<centrx> jheg, I am just trying to understand what it is doing
robustus has quit [Ping timeout: 250 seconds]
<centrx> jheg, Now that I know it is tic tac toe, so I thought up an implementation in that form
<centrx> jheg, Let's see how it work with these data structures
<hilmy> wait groot_
ghostmoth has quit [Read error: Connection reset by peer]
ghostmoth_ has joined #ruby
reset has joined #ruby
sea_local has quit [Remote host closed the connection]
sea_local has joined #ruby
timonv_ has quit [Remote host closed the connection]
<eam> it's not possible to create a symbol referencing a class method, is it?
IceDragon_ is now known as IceDragon
wald0 has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OffTheRails_ has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
<eam> as in I want a symbol for File.exists?
Xeago has quit [Remote host closed the connection]
<IceDragon> eam: try File.method(:exists?)
<IceDragon> That will give you a Method object that you can call like a proc
gigetoo has joined #ruby
devdazed has joined #ruby
robustus has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
jerikl has quit [Quit: jerikl]
sea_local has quit [Ping timeout: 240 seconds]
<eam> IceDragon: interesting thanks
devdaze__ has joined #ruby
fabrice31 has joined #ruby
Zespre has quit [*.net *.split]
androidbruce is now known as bruce-bruce
bruce-bruce is now known as bruceifer
bruceifer is now known as brucethemoose
kaspergrubbe_ has quit [Remote host closed the connection]
icarus has joined #ruby
brucethemoose is now known as bruce-heed
bruce-heed is now known as androidbruce
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
Petru has quit [Ping timeout: 255 seconds]
<hilmy> Exeption 'Errno::EWOULDBLOCK' at line 141
fabrice31 has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
ahuman has joined #ruby
<hilmy> a non blocking socket could not be complete immidiatly
<jheg> centrx: is the 3rd line supposed to be x_count.count ?
agrinb has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
<centrx> jheg, both supposed to be x_count, the count is done in the second line
ldnunes has quit [Quit: Leaving]
Xeago has joined #ruby
<centrx> jheg, You could put it on one line but it would make the line too long and complicated
mrsolo has quit [Ping timeout: 260 seconds]
Kricir has quit [Remote host closed the connection]
devdaze__ has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
devdazed_ has joined #ruby
MrL0ngbowman has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
jerikl has joined #ruby
ldnunes has joined #ruby
devdazed_ has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
devdazed_ has joined #ruby
gigetoo has joined #ruby
Xeago has quit [Remote host closed the connection]
workmad3 has joined #ruby
echevemaster has quit [Remote host closed the connection]
relix has joined #ruby
lsone has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
skolma___ has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
phutchin1 has quit [Ping timeout: 255 seconds]
IrishGringo has quit [Ping timeout: 260 seconds]
<jheg> thanks centrx I'm looking at it now
jerikl has quit [Quit: jerikl]
<centrx> jheg, I forgot to fix the typo
shacklef_ has joined #ruby
m_3 has joined #ruby
Xeago has joined #ruby
shacklef_ has quit [Read error: Connection reset by peer]
maroloccio has quit [Quit: WeeChat 0.4.3]
shacklef_ has joined #ruby
Iconate_ has quit [Quit: Page closed]
txdv has quit [Read error: Connection reset by peer]
shackleford has quit [Ping timeout: 240 seconds]
shackleford has joined #ruby
txdv has joined #ruby
chrishough has joined #ruby
gigetoo has quit [Ping timeout: 244 seconds]
tlarevo has quit [Remote host closed the connection]
Macaveli has joined #ruby
shackleford has quit [Read error: Connection reset by peer]
tlarevo has joined #ruby
_tpavel has joined #ruby
shackleford has joined #ruby
OffTheRails_ has joined #ruby
gigetoo has joined #ruby
_tpavel has quit [Client Quit]
_tpavel has joined #ruby
havenwood has quit [Remote host closed the connection]
shacklef_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
moritzs has joined #ruby
luckyruby has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
olivier_bK has joined #ruby
InhalingPixels has joined #ruby
Phrogz has joined #ruby
Lewix has quit [Remote host closed the connection]
<Phrogz> Anyone here use Shoes v3 on Windows and able to create a package?
sambao21 has quit [Quit: Computer has gone to sleep.]
Lewix has joined #ruby
sea_local has joined #ruby
sea_local has quit [Read error: Connection reset by peer]
jack_rabbit_ has joined #ruby
OffTheRails has quit [Ping timeout: 272 seconds]
OffTheRails_ has quit [Ping timeout: 260 seconds]
crypwolf has joined #ruby
OffTheRails_ has joined #ruby
sea_local has joined #ruby
crypwolf has quit [Client Quit]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tlarevo has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 245 seconds]
ghostmoth_ has quit [Quit: ghostmoth_]
devdazed has quit [Read error: Connection reset by peer]
devdazed_ has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
yairgo has joined #ruby
sambao21 has joined #ruby
redlegion has quit [Ping timeout: 255 seconds]
yairgo has quit [Client Quit]
devdaz___ has joined #ruby
yairgo has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
timgauthier has joined #ruby
jdj_dk_ has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
mikepack has joined #ruby
andrewjanssen has joined #ruby
Dev-Gitter has quit [Ping timeout: 240 seconds]
Magnus has quit [Read error: Connection reset by peer]
Magnus has joined #ruby
nb_bez__ has joined #ruby
binaryhat has quit [Remote host closed the connection]
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
binaryhat has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
rezzack has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
techsethi has joined #ruby
andrewjanssen has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
mikepack_ has joined #ruby
mikepac__ has joined #ruby
Magnus has quit [Ping timeout: 244 seconds]
mikepack has quit [Ping timeout: 260 seconds]
OffTheRails has joined #ruby
PHP4Ever has quit [Ping timeout: 240 seconds]
FarlaTux has quit [Ping timeout: 240 seconds]
skolman has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
febuiles has quit [Quit: febuiles]
mikepack_ has quit [Read error: Connection reset by peer]
Azulinho has joined #ruby
LiohAu has quit [Quit: LiohAu]
sinkensabe has quit [Remote host closed the connection]
sea_local has quit [Ping timeout: 246 seconds]
redlegion has joined #ruby
gigetoo has joined #ruby
kil0byte has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
<Hanmac> workmad3: hey did you see the new doctorWho opening? imo its very "timey" :p
Xeago has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 260 seconds]
dopie has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
mityaz has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ringaring has joined #ruby
Jarboe has quit [Ping timeout: 244 seconds]
banister has joined #ruby
rdavila has joined #ruby
momomomomo has quit [Ping timeout: 260 seconds]
banister has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
momomomomo has joined #ruby
Hanmac has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
banister has joined #ruby
decoponio has quit [Quit: Leaving...]
kaspergrubbe_ has joined #ruby
timonv_ has joined #ruby
yairgo has quit [Quit: yairgo]
mityaz has quit [Client Quit]
ringarin has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
Hanmac has joined #ruby
sectionme has quit [Ping timeout: 250 seconds]
segv has joined #ruby
timonv^ has joined #ruby
nanoyak has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
<rdavila> Hi guys, anyone have some tip for yielding the same args received from a method call? https://gist.github.com/anonymous/ceb7865ae97a714a278a
goshdarnyou is now known as goshdomyou
<rdavila> I’m looking for a one liner because I need to do that in many places
jfutbol has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
agrinb has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
nanoyak has joined #ruby
razrunelord has joined #ruby
enebo has quit [Ping timeout: 245 seconds]
fold has joined #ruby
Dreamer3 has joined #ruby
Snowstormer is now known as Weirdstormer
cantonic has quit [Quit: cantonic]
enebo has joined #ruby
emmesswhy has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
sparrovv has joined #ruby
sea_local has joined #ruby
qwyeth has quit [Quit: Leaving]
_sillymarkets has quit [Ping timeout: 246 seconds]
LiohAu has joined #ruby
mattmcclure has joined #ruby
sectionme has joined #ruby
cantonic has joined #ruby
sinkensabe has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
heftig_ has quit [Quit: Quitting]
paulfm has quit []
charliesome has quit [Quit: zzz]
chrishough has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sinkensa_ has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
sectionme has quit [Ping timeout: 246 seconds]
sinkensabe has quit [Ping timeout: 240 seconds]
ghostmoth has joined #ruby
mikepac__ has quit [Remote host closed the connection]
gigetoo has joined #ruby
sambao21 has joined #ruby
stef_204 has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
anaeem1_ has joined #ruby
jdj_dk_ has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
Kricir has joined #ruby
crypwolf has joined #ruby
crypwolf has quit [Client Quit]
bobbytwo has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 246 seconds]
<Phrogz> rdavila: In general: def foo(*a,&b) bar(*a,&b) end
qba73 has joined #ruby
mockra_ has quit [Remote host closed the connection]
emdub has quit [Read error: Connection reset by peer]
davispuh has joined #ruby
Cheezebox has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
Hanmac has joined #ruby
mockra has joined #ruby
Cheezebox has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
<rdavila> Phrogz: thanks! works like a charm
<Phrogz> You're welcome.
gigetoo has quit [Ping timeout: 246 seconds]
kaspergrubbe_ has quit []
Cheezebox has quit [Read error: No route to host]
Cheezebox has joined #ruby
emdub has joined #ruby
krisquigley has joined #ruby
<waxjar> you could also just make it an alias if you're only forwarding the call
<Phrogz> +1
ringaroses2 has joined #ruby
doodlehaus has quit []
threesixes has joined #ruby
elaptics is now known as elaptics`away
ndrei has joined #ruby
mockra has quit [Ping timeout: 260 seconds]
poulet_a has quit [Quit: Quitte]
_|d0m|_ has quit [Ping timeout: 260 seconds]
<Phrogz> alias_method :bar, :foo or alias bar foo
mockra has joined #ruby
<Phrogz> (Assuming foo was defined and you wanted bar to be another name for it.)
ahuman has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
techsethi has quit [Quit: techsethi]
ringaring has quit [Ping timeout: 250 seconds]
anildigital is now known as zz_anildigital
awestroke has joined #ruby
ItSANgo has quit [Quit: Leaving...]
claw___ has joined #ruby
claw__ has quit [Ping timeout: 250 seconds]
f0ster_ is now known as f0ster
f0ster has quit [Changing host]
f0ster has joined #ruby
Cope_ is now known as Cope
gigetoo has joined #ruby
gregf has joined #ruby
MatthewsFace has quit [Ping timeout: 246 seconds]
jottr_ has joined #ruby
dmyers has quit [Ping timeout: 250 seconds]
thams has joined #ruby
djbkd has quit [Remote host closed the connection]
jimms has quit []
thumpba has joined #ruby
djbkd has joined #ruby
aspires has joined #ruby
jordonbiondo has joined #ruby
jordonbiondo has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
sinkensa_ has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cheezebo_ has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 260 seconds]
emmesswhy has quit [Quit: Leaving]
gigetoo has joined #ruby
LnL has quit [Ping timeout: 245 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Cheezebox has quit [Ping timeout: 250 seconds]
LiohAu has quit [Quit: LiohAu]
pu22l3r_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
obs has quit [Quit: Saliendo]
OffTheRails_ has quit [Ping timeout: 260 seconds]
Squarepy has quit [Quit: Leaving]
chrishough has joined #ruby
rurban has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
bmurt has quit [Ping timeout: 245 seconds]
hephaestus_rg has joined #ruby
cuppscakes has joined #ruby
JBreit has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
kidoz has joined #ruby
fabrice31 has joined #ruby
Peter_ has joined #ruby
awestroke has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
nanoyak has quit [Read error: Connection reset by peer]
coldkey21 has joined #ruby
alvaro_o_ has joined #ruby
nanoyak has joined #ruby
ItSANgo has joined #ruby
Veidit_ has joined #ruby
qhartman has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 260 seconds]
Veidit has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
paulfm has joined #ruby
Cheezebo_ has quit [Remote host closed the connection]
gigetoo has joined #ruby
Cheezebox has joined #ruby
sambao21 has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
chrisja has joined #ruby
cuppscakes has quit [Quit: Disconnected]
Georg3 has quit [Quit: Lingo - http://www.lingoirc.com]
kaspergrubbe_ has joined #ruby
momomomomo_ has joined #ruby
carraroj has joined #ruby
ringaring has joined #ruby
sambao21 has quit [Client Quit]
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
aclearman037 has quit []
livingstn has quit [Ping timeout: 256 seconds]
roobie has joined #ruby
Cheezebox has quit [Ping timeout: 240 seconds]
OffTheRails_ has joined #ruby
hellangel7 has quit [Remote host closed the connection]
carraroj has quit [Client Quit]
paulfm has quit []
sambao21 has joined #ruby
jonathan_alban has joined #ruby
failshel_ has joined #ruby
ringaroses2 has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
codecop has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
failshel_ has quit [Ping timeout: 240 seconds]
weeb1e has quit [Read error: Connection reset by peer]
gigetoo has quit [Read error: Connection reset by peer]
weeb1e has joined #ruby
gigetoo has joined #ruby
_tpavel has quit [Quit: Leaving]
kireevco has joined #ruby
havenwood has quit [Remote host closed the connection]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
shenk has joined #ruby
rubytor has quit [Remote host closed the connection]
cocotton has quit [Ping timeout: 245 seconds]
sectionme has joined #ruby
maletor has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
mikepack has joined #ruby
cuppscakes has joined #ruby
IceDragon_ has joined #ruby
shenk has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 260 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: Mead error: Connection reset by beer]
sectionme has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
shenk has joined #ruby
agrinb has joined #ruby
bobbytwo has quit []
bobbytwo has joined #ruby
Azulinho has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
borodin has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
razrunelord has joined #ruby
ldnunes has quit [Quit: Leaving]
Kricir has joined #ruby
gigetoo has joined #ruby
<borodin> totally a noob here - setting up an rpm build system to grab the latest ruby and build and package a binary. When I grab http://cache.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz I get the latest stable code. But how do I know what major.minor.micro to call this? I mean programatically
<borodin> i.e. does the package contain a version.txt file within it or something?
shenk has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 260 seconds]
razrunelord has quit [Remote host closed the connection]
gccostabr has quit [Quit: ZZZzzz…]
mfmfmfmfmfmf has joined #ruby
charliesome has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
hilmy has left #ruby [#ruby]
mikesplain has quit [Ping timeout: 264 seconds]
pandaant has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
_cake has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has joined #ruby
fold has quit [Ping timeout: 260 seconds]
spyderma_ has quit []
agrinb has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
mutex_ has joined #ruby
bobbytwo has quit [Quit: leaving]
havenwood has joined #ruby
<mutex_> I've been trying to get ruby to stop printing out deprecation warnings when I run rspec... I've added -W0 but they still spam my terminal
<mutex_> is there something I am missing ?
gigetoo has joined #ruby
timonv^ has quit [Remote host closed the connection]
sylvanica has joined #ruby
timonv_ has joined #ruby
FL1SK has joined #ruby
<mutex_> I also passed --no-deprecation-warnings
sambao21 has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
zorak has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
<mutex_> which doesn't even seem to work, even though the documentation lists it
Cheezebox has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
Hobogrammer has joined #ruby
_|d0m|_ has joined #ruby
cndiv has quit [Ping timeout: 255 seconds]
britneywright has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
krisquigley has quit [Remote host closed the connection]
gigetoo has joined #ruby
OffTheRails_ has quit [Ping timeout: 246 seconds]
<avi__> mutex_: with that you can pipe it to nowhere if you want.
razrunelord has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider_> Phrogz: hey. yt?
zenspider_ is now known as zenspider
kireevco has quit [Quit: Leaving.]
amargherio has quit [Remote host closed the connection]
dexkiki has joined #ruby
<mutex_> avi__: I'll give it a try!
jds has quit [Quit: Connection closed for inactivity]
<mutex_> avi__: 'RSpec's reporter has already been initialized with #<IO:<STDERR>> as the deprecation stream'
gtrak has quit [Ping timeout: 264 seconds]
<mutex_> and it goes on to tell me I am being ignored
<mutex_> and that I have to pass cmd line args
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cheezebox has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
dj_zubehoer has joined #ruby
<mutex_> avi__: I originally attempted to pass this in my rakefile via ruby_opts to rspec
<mutex_> but it doesn't seem to work either
britneywright has joined #ruby
<avi__> isn't rake a seperate process from the Rspec process?
dj_zubehoer has quit [Remote host closed the connection]
<zenspider> yup
gigetoo has quit [Ping timeout: 245 seconds]
<zenspider> mutex_: what deprecation warnings?
<avi__> hey in rspec 3 there's an option
<avi__> --deprecation-out
<mutex_> zenspider: I dunno all these esoteric puppet-rspec deprecated calls I don't care about
<mutex_> lemme paste bin it
<zenspider> mutex_: I think rspec is talking about their OWN deprecations
<zenspider> not anyone elses
<zenspider> but... maybe they are.
<avi__> mutex_: https://www.relishapp.com/rspec/rspec-core/v/3-0/docs/configuration/custom-deprecation-stream are you using Rspec 2 or 3. Try --deprectation-out /dev/null
sailias has quit [Quit: Leaving.]
<mutex_> root@unassigned-hostname:/etc/puppet/modules/axcloud#
<mutex_> drat
<avi__> now just paste your password into the channel..
<avi__> ;)
<mutex_> I'm using rspec 3
dexkiki has quit [Quit: Page closed]
gigetoo has joined #ruby
<avi__> Too many uses of deprecated 'Filtering by an `:example_group` subhash'. Pass `--deprecation-out` or set `config.deprecation_stream` to a file for full output.
axsuul_ has quit [Read error: Connection reset by peer]
<mutex_> yes yes, so I attempted this
<mutex_> but it didn't work
<avi__> clear up all your deprecated mess and use --deprecation-out /dev/null
kireevco has joined #ruby
<avi__> try that
<avi__> (I have never tried it)
<mutex_> heh
ryanleesipes has quit [Quit: Leaving]
dj_zubehoer has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mutex_> avi__: ah ha, it works to /dev/null ;-)
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<avi__> ah good
philcrissman has joined #ruby
<mutex_> avi__: now I just have to figure out how to pass it via my rake file
sambao21 has quit [Quit: Computer has gone to sleep.]
mooru has joined #ruby
sylvanica has quit [Quit: sylvanica]
<Phrogz> zenspider: Paying attention now. Wassup?
<avi__> mutex_: there's some example at the bottom of this page https://www.relishapp.com/rspec/rspec-core/docs/command-line/rake-task
<avi__> mutex_: it might be relevant
Lewix has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
pasties has quit [Read error: Connection reset by peer]
<zenspider> Phrogz: I think I worked it out. had to do with an OOOOLD patch of yours in minitest, but it was mostly just my confusion.
<zenspider> Sorry for the bother
Lewix has joined #ruby
<mutex_> avi__: yeah I've been readin this page
timonv_ has joined #ruby
pasties has joined #ruby
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
michaeldeol has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Ping timeout: 255 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
ringaring has quit [Quit: Leaving]
dblessing has quit [Quit: dblessing]
sharms has quit [Ping timeout: 240 seconds]
zartoosh has quit [Ping timeout: 260 seconds]
<Phrogz> zenspider: np :)
cuppscakes has quit [Quit: Whoops, AFK.]
msmith_ has quit [Remote host closed the connection]
bearish has quit [Remote host closed the connection]
Mongey has quit [Read error: Connection reset by peer]
sectionme has joined #ruby
sharms has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
renderfu_ has joined #ruby
Aranshada|W has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
stickpin has joined #ruby
havenwood has quit []
nb_bez__ has quit [Quit: Connection closed for inactivity]
ringarin has joined #ruby
sectionme has quit [Ping timeout: 245 seconds]
renderful has quit [Ping timeout: 272 seconds]
halfdan is now known as sickdan
enebo has quit [Quit: enebo]
Cheezebox has joined #ruby
devdaz___ has quit [Quit: Computer has gone to sleep.]
Ilyas_ has quit [Ping timeout: 246 seconds]
gigetoo has quit [Ping timeout: 250 seconds]
lw has joined #ruby
lw has quit [Client Quit]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
riotjones has joined #ruby
gigetoo has joined #ruby
Kricir has joined #ruby
momomomomo has quit [Quit: momomomomo]
riotjone_ has quit [Ping timeout: 260 seconds]
nanoyak has quit [Client Quit]
shackleford has quit [Remote host closed the connection]
zartoosh has joined #ruby
Soliah has joined #ruby
stickpin has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 250 seconds]
zeroNones has joined #ruby
axsuul has joined #ruby
mary5030 has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zettam has quit [Read error: Connection reset by peer]
Avahey_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
OffTheRails_ has joined #ruby
jobewan has quit [Quit: Leaving]
Peter_ has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 245 seconds]
Aranshada|W has joined #ruby
Nahra has joined #ruby
britneywright has joined #ruby
andrewlio has quit [Remote host closed the connection]
gigetoo has joined #ruby
nanoyak has joined #ruby
Peter_ has joined #ruby
butblack has joined #ruby
Chris-_ has joined #ruby
EasyCo has joined #ruby
Soliah has quit [Ping timeout: 260 seconds]
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
geggam has quit [Ping timeout: 250 seconds]
gsd has joined #ruby
agrinb has joined #ruby
fabrice31 has joined #ruby
gsd has quit [Read error: Connection reset by peer]
Aaaal has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
gsd has joined #ruby
sinkensabe has joined #ruby
DrShoggoth has quit [Quit: Leaving]
Eiam has joined #ruby
Norrin has quit [Quit: ""]
mdeboard has joined #ruby
pandaant has quit [Remote host closed the connection]
advorak has joined #ruby
<mdeboard> Hi everyone. I'm reading the source for ruby-mode.el and am wondering if anyone here recognizes the string "iuwu-mod" or hsa any guesses about what it means in terms of ruby grammar
OffTheRails_ has quit [Ping timeout: 246 seconds]
gigetoo has joined #ruby
<advorak> When running a query: User.first, how can I prevent rails from grabbing from the sql query cache for that query?
cndiv has joined #ruby
<shevy> #rubyonrails
IceDragon_ has quit [Quit: Space~~~]
<shevy> we here know nothing about rails
Chris-_ has quit [Ping timeout: 250 seconds]
<advorak> sorry
<advorak> I was in the wrong tab, shevy ;-)
fabrice31 has quit [Ping timeout: 240 seconds]
<shevy> \o/
TheTopBloke has joined #ruby
treehug88 has quit []
sinkensabe has quit [Ping timeout: 245 seconds]
dj_zubehoer has quit [Remote host closed the connection]
Norrin has joined #ruby
icole has joined #ruby
JBreit has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renderful has joined #ruby
Soliah has joined #ruby
dopie has quit [Quit: Leaving]
sylvanica has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
gigetoo has quit [Read error: Connection reset by peer]
renderfu_ has quit [Ping timeout: 250 seconds]
orolo has quit [Quit: This computer has gone to sleep]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sleepee has joined #ruby
kireevco has left #ruby [#ruby]
GhettoJava has quit [Quit: This computer has gone to sleep]
jhc76 has joined #ruby
lsone has quit [Quit: Textual IRC Client: www.textualapp.com]
Mongey has joined #ruby
jhc76 has quit [Read error: Connection reset by peer]
sleepee has quit [Client Quit]
jhc76 has joined #ruby
<bricker`work> What is everybody preference when initializing an object from within a class method: MyCoolClass.new(...), self.new(...), or new(...) ?
sleepee has joined #ruby
<bricker`work> everybody's*
goshdomyou has quit [Quit: Connection closed for inactivity]
zorak has joined #ruby
djbkd has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
ParisDickinson has joined #ruby
<jhass> new ...
goshdomyou has joined #ruby
jgrevich has joined #ruby
mutex_ has left #ruby [#ruby]
charliesome has quit [Quit: zzz]
bashrw has quit [Quit: bashrw]
<shevy> bricker`work class Foobar -> Foobar[]
zubov has joined #ruby
bjornar has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 260 seconds]
kachi8 has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
<zenspider> mdeboard: I don't see that string in ruby-mode.el
<zenspider> not in the one that ships with emacs nor with the one that ships with ruby
kaspergr_ has joined #ruby
roolo has quit [Quit: Leaving...]
kaspergrubbe_ has quit [Read error: Connection reset by peer]
<zenspider> mdeboard: that looks like it is for a postfix conditional
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<mdeboard> zenspider: What makes you say that
<mdeboard> just out of curiosity
butblack has quit [Quit: butblack]
bearish has joined #ruby
AzureDiamond has joined #ruby
moritzs has quit [Ping timeout: 245 seconds]
goshdomyou is now known as goshdarnyou
butblack has joined #ruby
<mdeboard> zenspider: Great detective work
Pharaoh2 has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Leaving]
<mdeboard> I'm not familiar with ruby's syntax at all unfortunately
<mdeboard> But thanks for the pointer
<zenspider> looks like the holder for:
<zenspider> STMT if EXPR and friends
narcan has joined #ruby
GinoMan has joined #ruby
<zenspider> also points out just how deficient this grammar is defined in emacs :/
narcan has quit [Client Quit]
narcan has joined #ruby
bearish has quit [Ping timeout: 240 seconds]
MCDev has joined #ruby
<Bish_> what the heck are symbols are but.. i can't get behind it
<Bish_> what are they fore
Bish_ is now known as Bish
<jhass> Bish: symbols are used as identifiers
<Bish> like variables.
<jhass> in ruby instead of special numbers or strings as special values, you use symbols
<jhass> no, variables hold values symbols are a value
<Bish> why not calling them globals.
<jhass> globals are variables too, not values
<jhass> and we got them, variables starting with $ are globals
<Bish> so if i have symbol.. which is [1,2,3]
<jhass> that's not a symbol
<Bish> doing func(:symbol) is more like func([1,2,3])
<Bish> than var x = :symbol; func(x);
<jhass> what, no
<jhass> I don't really follow
<Bish> i really have problems understand that stuff
<jhass> are you familiar with other programming languages besides ruby?
axilla has quit [Ping timeout: 264 seconds]
philcrissman has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
<Bish> C mostly
agjacome has quit [Quit: leaving]
Kricir has joined #ruby
philcrissman has joined #ruby
<pontiki> a symbol is a scalar literal, like integers, floats, strings, characters
<jhass> so, in C you often have special constants to a special value, that are passed like options to functions
<jhass> in those functions you then often have if (param == CONSTANT) or something like that
<Bish> constants like const x =, or constant as in #define PI 3.14..
<jhass> in ruby you would use a symbol for that
<jhass> if (param == :my_symbol)
TheTopBloke has quit [Read error: Connection reset by peer]
<jhass> neither really
<pontiki> #define... are macros
<pontiki> symbols in ruby are probably closest to enums in C
<jhass> more constants like O_NONBLOCK
<Bish> pontiki, shhh
<pontiki> ok
<Bish> jhass, well.. but internely they have to be treated like variables.. since it's interpreted
mikecmpbll has quit [Quit: i've nodded off.]
<Bish> so it's just a convention?
<jhass> I don't follow that sentence at all
jerikl has joined #ruby
<Bish> when i say #define O_NONBLOCK 0x3 = O_NONBLOCK will get replaced in the sourcecode
<jhass> symbols are not variables, they are values, just like strings, numbers, true / false and so on
<Bish> well or enum.. same thing, it will be replaced with a number
philcrissman has quit [Ping timeout: 260 seconds]
guest-5575 has joined #ruby
<jhass> yes, I'm not saying they are the same, I'm saying the mostly have the same usecases
Kricir has quit [Ping timeout: 260 seconds]
guest-5575 has left #ruby [#ruby]
<Bish> but the ruby interpreter has to parse the symbols.. and in order to use them he has to treat it 'like' variables..
<jhass> no, that's like saying it has to treat 1 like a variable
toastynerd has quit [Remote host closed the connection]
<Bish> well but i can set a symbol, right?
<Bish> i cannot unset 1
<Bish> or set it 2
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<jhass> no, you can't set a symbol
<Bish> which i could do with a symbol
<jhass> whatever that is
<Bish> wow :D sorry, this is hard
<zenspider> the ruby interpreter has to parse the symbols, just like it has to parse numbers and strings
<zenspider> they're values
<zenspider> there's NO difference between the 3 (other than the type of values that they are)
<Bish> yeah i just tested in irb. still a little bit confused
<Bish> so they're mostly used as key for searching/identifying stuff
<jhass> yes
<Bish> is there some advantage to use them instead of strings for let's say a huge array?
<Bish> hash*
<zenspider> C preprocessor macros are just test based find & replace. it really has nothing to do with C at all.
andrewjanssen has joined #ruby
matcouto has joined #ruby
<jhass> they're lighter because internally represented with numbers and guaranteed to be the same object
<zenspider> Bish: symbols compare in constant time. not proportional to length of strings
<jhass> so "foo".object_id may not equal "foo".object_id
<Bish> cool.
<jhass> :foo.object_id will always equal :foo.object_id in one ruby process
<Bish> i think i got what they're doing
<Bish> is :peter == :"peter" ?
<jhass> yes
<Bish> or :peter == "peter".to_sym ?
<Bish> or both?
<jhass> both
<jhass> though the former is just an alternative syntax
<Bish> thats fukin great. cool
<jhass> the later is a runtime conversion
<Bish> jup, got it
<Bish> to me it feels like dynamic enum
jhc76 has quit [Remote host closed the connection]
<pontiki> ssshhh
<jhass> you should probably avoid .to_sym btw
<Bish> why is that?
<jhass> it's a sign you want to use strings instead
<Bish> pontiki, sorry :D i misunderstood something u said earlier
<shevy> perhaps he wants a symbol
<jhass> and up to the next release symbols aren't garbage collected
<jhass> so if you .to_sym user input, that's an excellent way to DoS you
<Bish> sounds fun
nanoyak has joined #ruby
<Bish> i will just install more ram
<shevy> so symbols are evil
<pontiki> no, external input is evil
<Bish> that will fuck a lot of people up
<Bish> won't it?
sleepee has quit [Quit: Leaving]
bradleyprice has quit [Remote host closed the connection]
Sgeo has joined #ruby
bradleyprice has joined #ruby
claw___ has quit [Quit: Konversation terminated!]
narcan has joined #ruby
claw___ has joined #ruby
linojon has quit [Quit: linojon]
snath has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
Cheezebox has quit [Remote host closed the connection]
Cheezebox has joined #ruby
bradleyprice has quit [Ping timeout: 260 seconds]
Aaaal has quit [Quit: Aaaal]
jmbrown412 has quit [Remote host closed the connection]
Deele has quit [Quit: User excited]
<Bish> im using ruby1.9 and a loop creating symbols already fills my ram
advorak has quit [Quit: Ex-Chat]
sylvanica_ has joined #ruby
ffranz has quit [Quit: Leaving]
sylvanica has quit [Ping timeout: 264 seconds]
<Bish> ruby20 is simply doing it faster, but both doesn't seem to be garbage collected
GinoMan has quit [Ping timeout: 245 seconds]
Cheezebox has quit [Ping timeout: 250 seconds]
Azure has joined #ruby
zubov has quit [Quit: Leaving]
<jhass> yes, in ruby 2.2 they will if created dynamically
sambao21 has quit [Quit: Computer has gone to sleep.]
jerikl has quit [Quit: jerikl]
sparrovv has quit [Remote host closed the connection]
Takle has joined #ruby
sparrovv has joined #ruby
GinoMan has joined #ruby
sylvanica_ has quit [Quit: Quitte]
mrsolo has quit [Quit: Leaving]
djbkd has joined #ruby
timonv_ has joined #ruby
robbyoconnor has joined #ruby
Peter_ has quit [Remote host closed the connection]
GhettoJava has joined #ruby
sparrovv has quit [Ping timeout: 244 seconds]
cndiv has quit [Ping timeout: 245 seconds]
cpruitt has quit [Quit: cpruitt]
timonv_ has quit [Ping timeout: 264 seconds]
larissa has quit [Quit: Leaving]
icebourg has quit []
singleton has joined #ruby
jezebel has joined #ruby
groot_ has left #ruby [#ruby]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Bish> ahh up to the next release, i misread that
Cheezebox has joined #ruby
mary5030 has joined #ruby
<Bish> well thank you, i think i got it now
MCDev has quit [Ping timeout: 250 seconds]
skolman has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 260 seconds]
jerikl has joined #ruby