havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
cjbottaro has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
kloeri has quit [Read error: Connection reset by peer]
kloeri has joined #ruby
mistermocha has joined #ruby
shadeslayer has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
idefine has joined #ruby
cjbottaro has quit [Client Quit]
Alayde has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
cjbottaro has joined #ruby
nettoweb has joined #ruby
mwlang has quit [Quit: mwlang]
lukec has quit [Quit: lukec]
ico has quit [Remote host closed the connection]
Sean__ has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes_ has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
whathappens has quit [Remote host closed the connection]
sneakersec has quit [Ping timeout: 244 seconds]
blackgoat has joined #ruby
braderhart has joined #ruby
frode15243 has joined #ruby
mjc_ has joined #ruby
moss has joined #ruby
davidmichaelkarr has joined #ruby
ELCALOR has joined #ruby
frem_ has joined #ruby
jimcroft has joined #ruby
[diecast] has joined #ruby
digitalfiz has joined #ruby
acalewin has joined #ruby
chrismytton has joined #ruby
Guest4184_______ has joined #ruby
Regulati_ has quit [Remote host closed the connection]
linduxed has joined #ruby
kireevco has joined #ruby
JoshGlzBrk has joined #ruby
zero7 has joined #ruby
SilverKey has joined #ruby
lancetw has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
stannard has joined #ruby
dmnd has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
twodayslate has joined #ruby
frem_ has quit [Client Quit]
roamingdog has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 260 seconds]
aupadhye has joined #ruby
JoshGlzBrk has quit [Ping timeout: 276 seconds]
symm- has quit [Quit: Leaving...]
mleung has quit [Quit: mleung]
stannard has quit [Ping timeout: 240 seconds]
ByronJoh1son is now known as ByronJohnson
CloCkWeRX has joined #ruby
ByronJohnson is now known as Guest42826
bronson has joined #ruby
skalfyfan has joined #ruby
Guest42826 has quit [Changing host]
Guest42826 has joined #ruby
Guest42826 is now known as ByronJohnson
stannard has joined #ruby
hutch34 has joined #ruby
skweek has joined #ruby
roamingdog has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
finisherr has quit [Quit: finisherr]
johnmilton has joined #ruby
hutch34 has quit [Ping timeout: 272 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
kobain has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
craigp has joined #ruby
anna` has left #ruby ["-"]
Cohedrin has quit [Ping timeout: 264 seconds]
santiago_ has quit [Quit: Page closed]
swills has joined #ruby
ur5us has quit [Remote host closed the connection]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Ping timeout: 276 seconds]
ramfjord_ has quit [Ping timeout: 244 seconds]
kies has quit [Ping timeout: 244 seconds]
ensyde has joined #ruby
skalfyfan has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
marr has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
jenrzzz has joined #ruby
skalfyfan has quit [Client Quit]
Cohedrin has joined #ruby
amclain has quit [Quit: Leaving]
skalfyfan has joined #ruby
znz_jp0 has quit [Remote host closed the connection]
znz_jp has joined #ruby
skalfyfan has quit [Client Quit]
insanedreamer has quit [Quit: insanedreamer]
lukec has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
davids3 has joined #ruby
davedev24 has quit []
hutch34 has joined #ruby
roamingdog has quit [Remote host closed the connection]
skalfyfan has joined #ruby
<davids3> Hey everyone, I'm trying to define a new class that inherits from another class and want it to maintain the parent singleton's instance variables. The only way I've discovered works for me is doing the standard `class B < A` and then running `instance_variable_get` on the parent and `instance_variable_set` on the child class each instance var
<davids3> Is there something that I'm just completely overlooking that can accomplish this without leaving me feeling dirty?
skalfyfan has quit [Client Quit]
hutch34 has quit [Ping timeout: 260 seconds]
<davids3> The only other way I could accomplish similar was by doing `B = A.clone` then monkey patching B, but that leaves me without A as the superclass, so I can't call `super` on anything
<jhass> davids3: how about extracting that logic into a module and extend it into both?
skalfyfan has joined #ruby
<davids3> jhass: I don't have access to alter the source of the parent class, so I can't take that path
JoshGlzBrk has joined #ruby
<davids3> And the parent class has some DSL usage/other setup that sets a number of instance variables on the singleton that break the subclass if not present
TheNet has joined #ruby
<jhass> are you still sure subclassing it at all is your best route?
skalfyfan has quit [Client Quit]
TheNet has left #ruby [#ruby]
<jhass> considered wrapping it instead?
<jhass> for example with a SimpleDelegator subclass
roamingdog has joined #ruby
diegoaguilar has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
skalfyfan has joined #ruby
diegoaguilar has joined #ruby
ropeney has joined #ruby
roamingdog has quit [Remote host closed the connection]
gtsai has joined #ruby
skalfyfan has quit [Client Quit]
<davids3> jhass: I'm not entirely up to speed with the DelegatorClass stuff
jtdowney_ is now known as jtdowney
jtdowney has quit [Changing host]
jtdowney has joined #ruby
<davids3> I'll have a look into it now and see if it helps what I'm doing
skalfyfan has joined #ruby
skalfyfan has quit [Client Quit]
roamingdog has joined #ruby
skalfyfan has joined #ruby
jancel has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
stannard has quit [Remote host closed the connection]
<davids3> jhass: From the SimpleDelegator docs, I'm not sure it will work as I may or may not have usage over the creation of instances for the class
<davids3> To be safe, I'm fairly certain I need the singleton's instance variables to be accessible from the beginning of the new class's defintion
Vingador has joined #ruby
dkms has joined #ruby
roamingdog has quit [Remote host closed the connection]
skalfyfan has quit [Ping timeout: 260 seconds]
dkms has quit [Client Quit]
jancel has quit [Ping timeout: 272 seconds]
nankyokusei has joined #ruby
roamingdog has joined #ruby
<jhass> in a SimpleDelegator subclass you can simply override def initialize(*args); super(A.new(*args)); end
<jhass> davids3: ^
<davids3> jhass: Are class methods still delegated to the original singleton class? Ie. `B.perform_action` is delegated to `A.perform_action`?
duckpuppy has joined #ruby
<jhass> no
xue has quit [Ping timeout: 260 seconds]
<davids3> Yeah, I don't think that SimpleDelegator will be suitable then
xue has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
<davids3> I still need the new class' class methods to have access to the parent class singleton's original instance variables
<tgeeky> man, I'm in so deep I can't see the waterline.
elementaru has quit [Ping timeout: 276 seconds]
<jhass> was worth a shot, given you're so vague about your usecase it's hard to give any recommendations and I can't assess whether I agree with your judgment either
<tgeeky> is there a way to... how the hell do I even ask this question.
ur5us has joined #ruby
<jhass> tgeeky: with thinking before writing preferably ;)
<davids3> The use case is essentially-- we have a Rails app and have a set of engines and routes included
<tgeeky> is there a way to replicate the behavior of: if (...); elseif (...); elseif (...); else ...; end
<tgeeky> but dynamically
jaguarmagenta has joined #ruby
<jhass> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<tgeeky> i could just paste the code
<tgeeky> but it's really rough
<jhass> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<davids3> And we need to be able to replace controllers with versions inheriting from the original, same with models, serializers, etc.
<tgeeky> can I delete gists?
<tgeeky> i don't want to be forever embarassed by this
smathy_afk is now known as smathy
<tgeeky> evidently, yes
<jhass> on your account, yes. You can also make them secret. I think anonymous gists you can delete for some time, as long as you have the cookie
roamingdog has quit [Remote host closed the connection]
<tgeeky> ok
<tgeeky> this appears more complicated than it is
<tgeeky> i have a (nested, multi) - hash at the top
<tgeeky> more importantly, it's ORDERED.
<tgeeky> for a particular field in the source database, ie: has['customer','name']
jaguarmagenta has quit [Ping timeout: 240 seconds]
<tgeeky> the 3rd key is an ordered list of regular expressions
<tgeeky> that should be processed like the middle paste in my gist
dhk has quit [Quit: Leaving]
<tgeeky> the (if match=(...)) ; elsif (match =(...))
yude has quit [Read error: Connection timed out]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
GodFather_ has quit [Ping timeout: 276 seconds]
<tgeeky> but I don't know ahead of time how many different possible regex matches there will be, and I'm certain it won't always be the same.
<tgeeky> but an important component here is that the regexes must be processed in that specific order, ie, I must first test using last_first_last_first, THEN @partners
<tgeeky> THEN @last_first_opt_extra
yude has joined #ruby
<tgeeky> then a default one
<smathy> So iterate over them. with either an all? or any? depending on whether you want AND or OR
<tgeeky> smathy: but then the elsif component is broken
<tgeeky> basically, I need to short circuit and skip ALL further hash['customer','name'] entries after one matches
davedev24 has joined #ruby
<jhass> sounds like .any? or .find
chopin has joined #ruby
<tgeeky> hm...
<tgeeky> it actually sounds like my outermost loop (@nmm.each) can't be that.
roamingdog has joined #ruby
<jhass> btw I would strongly recommend to use constants for your patterns
<jhass> there's no reason for instance variables or reassigning them in each call of the method
<tgeeky> jhass: I originally did, but I switched due to something, and haven't switched back
<tgeeky> jhass: though to make sure we're talking about the same hting
<tgeeky> can you point to one wrong line?
SilverKey has quit [Quit: Halted.]
<jhass> line 3
<tgeeky> oh, so drop the @?
<jhass> to 7
jaguarmagenta has joined #ruby
<tgeeky> they were originally not in that function, they were in another class. That's why they have the @ still.
<jhass> I'd go further and make them constants of the module/class you define that method in
<tgeeky> ok, constants are the allcaps things?
<jhass> they most likely shouldn't have been instance variables there either
<jhass> yes
<tgeeky> ok
<tgeeky> I need a different .each method. This one will never work.
<jhass> then next step to more readable code would be to stop using so many abbreviations
<tgeeky> jhass: fair warning, everything that is a string must be exactly that string
<tgeeky> caps and all
<jhass> sure
<jhass> but, @c, nmm,
<tgeeky> oh yeah
<jhass> k, v
<tgeeky> you can't even see where that comes from
<jhass> and you'll forget in a week
<tgeeky> well, k,v screams what it is to me :)
<tgeeky> but yes, I'll change that stuff
<tgeeky> what I want to avoid at all costs, is ever using eval()
<jhass> well here comes my third tip: avoid generic names like hash, key, value
<tgeeky> ok
mozzarel1 is now known as mozzarella
<jhass> try to find names corresponding to your data
<tgeeky> jhass: several of these nits that you are picking are actually due to the fact that I was deciding what kind of data structure to use
<tgeeky> and i just named them after the data structure
<tgeeky> until I selected one
<tgeeky> but I agree with them all
<jhass> IME following these things from the starts makes it incredibly easier to think about the code
<jhass> including finding the right data structures
Coldblackice has quit [Ping timeout: 264 seconds]
Coldblackice_ has joined #ruby
<jhass> for example I have no clue how your NestedMultimap thing even works
<jhass> so no clue what its each yields
<tgeeky> jhass: it's 1 yield per line in the map; it's from yehuda katz's multimap library
idefine has quit [Remote host closed the connection]
xlegoman has joined #ruby
kgrz has joined #ruby
<jhass> I guess for https://gist.github.com/technogeeky/058224e55eba3c1338f8e665826b628d#file-database-transformator-rb-L32-L33 you want to define procs/lambda's instead that take the match
<jhass> 28/29 too
crystal77 has joined #ruby
<tgeeky> jhass: yeah, I haven't even gotten to that part of the problem.
<tgeeky> jhass: I actually came up with somewhat of a clever solution before I even asked the question
<tgeeky> which is: to just reverse all of the hash['customer','name',...] lines
DanKnox has joined #ruby
<jhass> I would also unpack the full thing, from_table, from_column, pattern = k; to_table, to_column, template = v
<jhass> from_table, from_column, pattern = source; to_table, to_column, template = target
<tgeeky> but that won't work in general
<tgeeky> jhass: 1 source to many targets is allowed
SilverKey has joined #ruby
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> but you only get one at a time, no?
<tgeeky> with this loop, yes; but that is exactly the problem
<tgeeky> with this loop, has[...,@last_first_last_first] will be executed 3 times, when it only needs to be executed once.
<tgeeky> ie, the regex will be matched 3 times
<jhass> btw I'd probably just use plain nested arrays
JesseH has joined #ruby
<tgeeky> perhaps I will move in that direction.
davedev24 has quit []
<jhass> [source, [target, ...]] with source and target being your 2-3 element arrays
diegoviola has quit [Quit: WeeChat 1.5]
<jhass> er, [[source, [target, ...]], ...] of course
Dimik has joined #ruby
<jhass> will work the same on your current call side and boom no more domain knowledge of some gem required
<jhass> and I'd argue equally readable when properly formatted
chipotle has quit [Quit: cheerio]
chipotle has joined #ruby
roamingdog has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
e4xit has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
mistermocha has joined #ruby
<jhass> so then you'd just use mappings.each do |source, targets| # unpack source; match = pattern.match(row[:name]); next unless match; targets.each do |target| #unpack target; contact[to_column] = case template; when nil; ...; row[:name]; when Proc; template.call(match); when String; template % match; end etc
<jhass> tgeeky: ^
Seich has quit [Ping timeout: 250 seconds]
gfvcastro has joined #ruby
Seich has joined #ruby
Vingador has quit [Remote host closed the connection]
mdw_ has quit [Ping timeout: 246 seconds]
<tgeeky> jhass: inspecting that
Biopandemic has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
gfvcastro has quit [Client Quit]
gfvcastro has joined #ruby
roamingdog has joined #ruby
CorOne has joined #ruby
jenrzzz has joined #ruby
benlieb has joined #ruby
davedev24 has joined #ruby
chipotle has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
idefine has joined #ruby
chipotle has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
DanKnox_ has joined #ruby
DanKnox has quit [Quit: Textual IRC Client: www.textualapp.com]
cstls has joined #ruby
strigonLeader has joined #ruby
roamingdog has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
unreal has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
unreal has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
jancel has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
craigp has quit [Ping timeout: 260 seconds]
shiru has joined #ruby
jancel has quit [Ping timeout: 276 seconds]
shiru has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 264 seconds]
Dimik has quit [Ping timeout: 260 seconds]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
e4xit has joined #ruby
tristanp_ has quit [Ping timeout: 276 seconds]
skolman_ has quit [Ping timeout: 240 seconds]
ensyde has quit [Ping timeout: 246 seconds]
Vingador has joined #ruby
Yzguy has joined #ruby
nando293921 has joined #ruby
|2701 has quit [Quit: Connection closed for inactivity]
Ebok has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
gix has quit [Ping timeout: 240 seconds]
<jhass> tgeeky: played a bit https://p.jhass.eu/1u.rb
braincra- has quit [Quit: bye bye]
davedev24 has quit []
echosystm has joined #ruby
<echosystm> i'm really confused about how binary data strings work in ruby
<jhass> their encoding is ASCII-8bit aka binary, that's all
<echosystm> if i want to send an integer over a socket, i go socket.send [variable].pack('N'), 0
noodle has quit [Ping timeout: 252 seconds]
<echosystm> how do i receive an integer?
<jhass> socket.read.unpack("N")
<jhass> well, read only that many bytes but you get it
gix has joined #ruby
<echosystm> awesome
<echosystm> thanks!
<echosystm> yeah ive got it reading into a buffer
<echosystm> unpack('N') was the part i was missing
<jhass> note both pack and unpack can take more than one specifier in their format string
jenrzzz has joined #ruby
<jhass> so you can pack/unpack your whole packet to/from an array if you know all the sizes upfront
<echosystm> ok now how do i go from a binary string to a UTF8 stirng?
<jhass> if it's already UTF-8 encoded you could just .force_encoding("UTF-8")
<echosystm> cool
<echosystm> is that bad to do?
<jhass> not really
<jhass> .unpack("U*") might work too
noodle has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<nofxx> What's the nicest fuzzy/weight text matcher around? Got like 1k products name in RAM.... "brand - four or five words product name"
<nofxx> it's really not going over 1k, 2k products... so I'm not considering solr/elasticsearch... no java
diegoviola has joined #ruby
<echosystm> awesome. thanks for your help jhass
<jhass> mmh, no nvm about the last one
braincrash has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<nofxx> oh, and my robot will give me "brand - four or five words product name" that are not always in the same order or is truncated, hence the weight... there's human verification later
konsolebox has joined #ruby
AK-47_ has joined #ruby
<AK-47_> hi all for overclocking join ##securify and press f9 and for interpol channel go to ##beyondtime and for governor and UNITED NATIONS GO TO ##un.org , for SU FEDORA OS COME TO ##su.os
yude has quit [Read error: Connection timed out]
<jhass> !spam AK-47_
AK-47_ was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
yude has joined #ruby
jaguarmagenta has joined #ruby
moeabdol has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
<nofxx> fancy: v
k3rn31 has joined #ruby
mistermocha has joined #ruby
konsolebox has quit [Ping timeout: 244 seconds]
Es0teric has joined #ruby
Rodya_ has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
Tharbakim has quit [Read error: Connection reset by peer]
Tharbakim has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
cstls has quit [Ping timeout: 264 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
roamingdog has quit [Remote host closed the connection]
nankyokusei has joined #ruby
bronson has joined #ruby
benlieb has quit [Quit: benlieb]
vdamewood has quit [Quit: Life beckons.]
cstls has joined #ruby
jenrzzz has joined #ruby
cstls has quit [Remote host closed the connection]
roamingdog has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
davids3 has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 252 seconds]
kith has quit [Ping timeout: 276 seconds]
SilverKey has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jancel has joined #ruby
jgpawletko has joined #ruby
jenrzzz has joined #ruby
shiru has joined #ruby
LoneHermit has joined #ruby
jancel has quit [Ping timeout: 244 seconds]
gfvcastro has quit [Quit: Textual IRC Client: www.textualapp.com]
braincra- has joined #ruby
jancel has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
LoneHermit has quit [Ping timeout: 252 seconds]
shiru has quit [Ping timeout: 252 seconds]
arescorpio has quit [Excess Flood]
n0xff has left #ruby [#ruby]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
arajakul has joined #ruby
zenlot6 has joined #ruby
zenlot has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
tristanp_ has joined #ruby
chopin has quit [Remote host closed the connection]
rbennacer has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
tristanp_ has quit [Ping timeout: 250 seconds]
Devalo has quit [Ping timeout: 250 seconds]
SilverKey has quit [Quit: Cheerio!]
gix has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
meatchicken has quit [Quit: Leaving]
arajakul has quit [Ping timeout: 252 seconds]
tristanp has quit [Read error: Connection reset by peer]
gix has joined #ruby
tristanp has joined #ruby
7F1ABC1ZQ has joined #ruby
LoneHerm_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
skweek has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
nofxx has quit [Remote host closed the connection]
kareeoleez has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
echosystm has quit [Quit: leaving]
rbennacer has quit [Remote host closed the connection]
Dios has joined #ruby
Dios has quit [Max SendQ exceeded]
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
sneakersec has joined #ruby
Rickmasta has joined #ruby
tristanp has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
ta_ has quit [Remote host closed the connection]
tildes_ has joined #ruby
chouhoul_ has quit []
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
hypercube32 has quit [Quit: Ex-Chat]
moeSeth has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
hypercube32 has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
jancel has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has joined #ruby
ramfjord has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
terminal_at_lunc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zapata has joined #ruby
shortdudey123 has joined #ruby
idefine has quit []
pawnbox has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
pawnbox has joined #ruby
k3rn31 has joined #ruby
Symbiosisz has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 276 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Coldblackice_ has quit [Ping timeout: 260 seconds]
cyclonis_ has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
sneakersec has quit [Ping timeout: 244 seconds]
Guest63569 has quit [Changing host]
Guest63569 has joined #ruby
Guest63569 has joined #ruby
Guest63569 is now known as rc0r
SuperLag has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
iMadper has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Quit: Leaving...]
pawnbox has joined #ruby
tristanp has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
craigp has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
elaptics`away is now known as elaptics
jud^ has joined #ruby
moos3 has quit [Read error: Connection reset by peer]
moos3 has joined #ruby
swills has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
spectra has quit [Ping timeout: 260 seconds]
Y_Ichiro has quit [Read error: Connection reset by peer]
Y_Ichiro has joined #ruby
incomprehensibly has quit [Ping timeout: 240 seconds]
cardoni has quit [Read error: Connection reset by peer]
Jet4Fire has quit [Read error: Connection reset by peer]
cstrahan has quit [Read error: Connection reset by peer]
mgorbach has quit [Ping timeout: 240 seconds]
cardoni has joined #ruby
framlinqp has joined #ruby
incomprehensibly has joined #ruby
edwardly has quit [Ping timeout: 240 seconds]
trista___ has joined #ruby
iamayam has quit [Ping timeout: 244 seconds]
framling has quit [Remote host closed the connection]
jud has quit [Ping timeout: 260 seconds]
cstrahan has joined #ruby
borodin has quit [Ping timeout: 260 seconds]
EdwardIII has quit [Ping timeout: 240 seconds]
zhunting has quit [Ping timeout: 240 seconds]
M-shine has quit [Ping timeout: 240 seconds]
tristanp has quit [Ping timeout: 264 seconds]
Jet4Fire_ has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
Es0teric has quit [Ping timeout: 240 seconds]
veloutin_ has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
veloutin has quit [Ping timeout: 240 seconds]
sphex_ has quit [Ping timeout: 240 seconds]
zhunting has joined #ruby
EdwardIII has joined #ruby
mgorbach has joined #ruby
iamayam has joined #ruby
Es0teric has joined #ruby
sphex has joined #ruby
kareeoleez has quit [Remote host closed the connection]
spectra has joined #ruby
yfeldblum has joined #ruby
swills has joined #ruby
M-shine has joined #ruby
LoneHerm_ has quit []
Es0teric has quit [Client Quit]
jaguarma_ has joined #ruby
lxsameer has joined #ruby
Devalo has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaguarmagenta has quit [Ping timeout: 244 seconds]
Antiarc has quit [Ping timeout: 264 seconds]
Antiarc has joined #ruby
Lildirt has quit [Ping timeout: 244 seconds]
JesseH has quit [Quit: Leaving]
pat has quit [Remote host closed the connection]
LoneHermit has joined #ruby
mleung has joined #ruby
LoneHermit has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
jaguarma_ has quit [Ping timeout: 246 seconds]
Lildirt has joined #ruby
nankyokusei has joined #ruby
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has joined #ruby
bronson has joined #ruby
benlieb has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
mleung has quit [Quit: mleung]
jancel has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Sean__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
janno_ has quit [Remote host closed the connection]
craigp has quit [Quit: WeeChat 1.5]
elomatreb has quit [Quit: mep mep]
elomatreb has joined #ruby
tristanp has joined #ruby
trista___ has quit [Ping timeout: 250 seconds]
saneax is now known as saneax_AFK
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
mleung has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
Yzguy has quit [Quit: Zzz...]
PlasmaStar has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Ping timeout: 250 seconds]
NoobPlayer97 has joined #ruby
moeabdol has joined #ruby
NoobPlayer97 has quit [Client Quit]
NoobPlayer97 has joined #ruby
tristanp has joined #ruby
moeabdol has quit [Client Quit]
kareeoleez has joined #ruby
moeabdol has joined #ruby
PlasmaStar has joined #ruby
saneax_AFK is now known as saneax
yfeldblu_ has joined #ruby
NoobPlayer97 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
adgtl_ is now known as adgtl
tildes_ has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
adgtl has quit [Changing host]
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
gtsai_ has joined #ruby
hahuang61 has joined #ruby
ksmutthu has quit [Ping timeout: 276 seconds]
gtsai has quit [Ping timeout: 252 seconds]
lipoqil has quit [Ping timeout: 260 seconds]
caw has quit [Ping timeout: 260 seconds]
ijij_ has quit [Ping timeout: 260 seconds]
Majost has quit [Ping timeout: 260 seconds]
hk238 has joined #ruby
boxrick1 has quit [Ping timeout: 260 seconds]
jmcc___________ has quit [Ping timeout: 260 seconds]
chromis has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
rflot has quit [Ping timeout: 260 seconds]
pizzaops has quit [Ping timeout: 260 seconds]
akitada has quit [Ping timeout: 260 seconds]
lipoqil has joined #ruby
camilasan has quit [Quit: No Ping reply in 180 seconds.]
craigp has joined #ruby
digitalfiz has quit [Ping timeout: 260 seconds]
Evan| has quit [Ping timeout: 260 seconds]
aphprentice has quit [Ping timeout: 260 seconds]
angiebadillo has quit [Ping timeout: 260 seconds]
yonatankoren has quit [Ping timeout: 260 seconds]
angiebadillo has joined #ruby
boxrick1 has joined #ruby
moeSeth has quit [Ping timeout: 260 seconds]
nadir has quit [Ping timeout: 260 seconds]
Hates_ has quit [Ping timeout: 260 seconds]
nyandoge has quit [Ping timeout: 260 seconds]
swgillespie has quit [Ping timeout: 260 seconds]
vcoinminer has quit [Ping timeout: 260 seconds]
deimos__ has quit [Ping timeout: 260 seconds]
bjmllr has quit [Ping timeout: 260 seconds]
Eleeleth has quit [Ping timeout: 260 seconds]
manveru has quit [Ping timeout: 260 seconds]
akitada has joined #ruby
Devalo has quit [Remote host closed the connection]
chromis has joined #ruby
troter__________ has quit [Ping timeout: 260 seconds]
ec has quit [Ping timeout: 260 seconds]
dukedave has quit [Ping timeout: 260 seconds]
spastorino has quit [Ping timeout: 260 seconds]
Evan_ has joined #ruby
jmcc___________ has joined #ruby
nadir has joined #ruby
pizzaops has joined #ruby
deimos__ has joined #ruby
Majost has joined #ruby
kloeri has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
camilasan has joined #ruby
jpinnix_______ has quit [Ping timeout: 260 seconds]
ramblinpeck has quit [Ping timeout: 260 seconds]
andersh has quit [Ping timeout: 260 seconds]
S01780_ has quit [Ping timeout: 260 seconds]
UserInNeed has quit [Ping timeout: 246 seconds]
manveru has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
swgillespie has joined #ruby
passbe has quit [Ping timeout: 246 seconds]
zzak___ has quit [Ping timeout: 260 seconds]
nullFxn has quit [Ping timeout: 260 seconds]
valkyr1e has quit [Ping timeout: 260 seconds]
mroth has quit [Ping timeout: 260 seconds]
digitalfiz has joined #ruby
hahuang61 has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
Eleeleth has joined #ruby
tristanp_ has joined #ruby
spastorino has joined #ruby
troter__________ has joined #ruby
avdi has quit [Ping timeout: 260 seconds]
skmp has quit [Ping timeout: 260 seconds]
tonini has quit [Ping timeout: 260 seconds]
mleung has quit [Quit: mleung]
dukedave has joined #ruby
nyandoge has joined #ruby
vcoinminer has joined #ruby
elomatreb has quit [Quit: mep mep]
S01780_ has joined #ruby
zzak___ has joined #ruby
codepete has quit [Ping timeout: 260 seconds]
JackMc has quit [Ping timeout: 260 seconds]
Hates_ has joined #ruby
rflot has joined #ruby
avdi has joined #ruby
moeSeth has joined #ruby
aphprentice has joined #ruby
nullFxn has joined #ruby
ahuman_ has joined #ruby
elomatreb has joined #ruby
meinside has quit [Ping timeout: 260 seconds]
AdamMeghji__ has quit [Ping timeout: 260 seconds]
mrsolo has quit [Ping timeout: 260 seconds]
ahuman has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 250 seconds]
mroth has joined #ruby
ijij_ has joined #ruby
tonini has joined #ruby
acerna_ has joined #ruby
irick has quit [Ping timeout: 260 seconds]
jlyndon has quit [Ping timeout: 260 seconds]
im0b has quit [Ping timeout: 260 seconds]
UserInNeed has joined #ruby
andersh has joined #ruby
braderhart has quit [Ping timeout: 260 seconds]
halfdan has quit [Ping timeout: 260 seconds]
kapowaz has quit [Ping timeout: 260 seconds]
valkyr1e has joined #ruby
skmp has joined #ruby
codepete has joined #ruby
bobbycvi has quit [Quit: ...]
caw has joined #ruby
SilverKey has joined #ruby
meinside has joined #ruby
pmarreck has quit [Ping timeout: 260 seconds]
acerna has quit [Ping timeout: 260 seconds]
acerna_ is now known as acerna
mrsolo has joined #ruby
passbe has joined #ruby
AlexJakeGreen has joined #ruby
ramblinpeck has joined #ruby
dmnd has quit [Ping timeout: 260 seconds]
amitchellbullard has quit [Ping timeout: 260 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
imanc has quit [Ping timeout: 260 seconds]
kloeri has joined #ruby
jpinnix_______ has joined #ruby
AdamMeghji__ has joined #ruby
kappy has joined #ruby
irick has joined #ruby
mitsuhiko has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Ping timeout: 250 seconds]
jackjackdripper has joined #ruby
kapowaz has joined #ruby
dmnd has joined #ruby
yonatankoren has joined #ruby
amitchellbullard has joined #ruby
jlyndon has joined #ruby
pmarreck has joined #ruby
kappy_ has quit [Ping timeout: 260 seconds]
JackMc has joined #ruby
ec has joined #ruby
im0b has joined #ruby
joaomdmoura__ has quit [Ping timeout: 260 seconds]
halfdan has joined #ruby
tristanp_ has joined #ruby
braderhart has joined #ruby
bjmllr has joined #ruby
mleung has joined #ruby
imanc has joined #ruby
Macaveli has joined #ruby
joaomdmoura__ has joined #ruby
kallisti5 has quit [Ping timeout: 260 seconds]
deepak has quit [Ping timeout: 260 seconds]
crystal77 has joined #ruby
mitsuhiko has joined #ruby
kallisti5 has joined #ruby
stannard has joined #ruby
deepak has joined #ruby
SHyx0rmZ has joined #ruby
LoneHermit has joined #ruby
chipotle has quit [Quit: cheerio]
fenre has joined #ruby
strongcode has quit [Ping timeout: 260 seconds]
strongcode has joined #ruby
ckrailo has quit [Ping timeout: 260 seconds]
ckrailo has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
devyn_ has quit [Ping timeout: 246 seconds]
LoneHermit has quit [Ping timeout: 244 seconds]
devyn has joined #ruby
codecop has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
k0n has joined #ruby
Gasher has joined #ruby
PaulCapestany has joined #ruby
dhaavhincy has joined #ruby
last_staff has joined #ruby
crdpink has quit [Quit: q term]
benlieb has joined #ruby
Oog has joined #ruby
crdpink has joined #ruby
<Oog> i want to every method in my class to be wrapped in a block - how can i do it?
k0n has quit [Ping timeout: 250 seconds]
<Oog> every method that is called I want to be called inside ActiveRecord::Base.transaction { call_method }
firstdayonthejob has joined #ruby
ta_ has joined #ruby
mleung has quit [Quit: mleung]
SilverKey has quit [Quit: Halted.]
saneax is now known as saneax_AFK
saneax_AFK is now known as saneax
sauvin has joined #ruby
gtsai_ has quit []
taylan has left #ruby ["Using Circe, the loveliest of all IRC clients"]
chipotle has joined #ruby
Coldblackice_ has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
helpa has joined #ruby
auzty has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
lxsameer has quit [Read error: Connection reset by peer]
gtsai has joined #ruby
lxsameer has joined #ruby
<tgeeky> jhsalive still?
tristanp_ has joined #ruby
moeSeth has quit [Quit: Connection closed for inactivity]
<tgeeky> jhass: i mean you
ur5us has quit [Remote host closed the connection]
n1x-nz has joined #ruby
lukec has quit [Quit: lukec]
k3rn31 has quit [Quit: Computer has gone to sleep.]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ksmutthu has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
BTRE has quit [Ping timeout: 260 seconds]
<tgeeky> can anyone explain
<tgeeky> what syntax that is using
<tgeeky> where it goes ->(match) { }
tristanp has joined #ruby
Couch has joined #ruby
BTRE has joined #ruby
<tgeeky> it's a lambda
<elomatreb> That's a lambda, basically an inline function
<tgeeky> aha
<tgeeky> i was doing Proc.new { } there
<tgeeky> but it wasn't working...
saneax is now known as saneax_AFK
<elomatreb> There are some subtle differences between Procs and lambda (concerning variables, iirc)
<tgeeky> yeah. I think I was trying to execute the proc in the context of the caller
<tgeeky> ie, something like eval-in-place
<tgeeky> which is not...smart
saneax_AFK is now known as saneax
<elomatreb> That code looks... interesting btw
dhaavhincy has left #ruby [#ruby]
tristanp_ has quit [Ping timeout: 252 seconds]
mark_661 has joined #ruby
iMadper has quit [Ping timeout: 260 seconds]
iMadper has joined #ruby
andikr has joined #ruby
dionysus69 has joined #ruby
<tgeeky> elomatreb: heh. it's an attempt at a general method of doing ETL
<tgeeky> but not too general to be useless
saneax is now known as saneax_AFK
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
saneax_AFK is now known as saneax
saneax is now known as saneax_AFK
saneax_AFK is now known as saneax
saneax is now known as saneax_AFK
solars has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
crystal77 has joined #ruby
hahuang61 has joined #ruby
gtsai has quit [Remote host closed the connection]
zyzioziom has joined #ruby
saneax_AFK is now known as saneax
terlar has joined #ruby
armyriad has joined #ruby
catpoop is now known as mnrmnaugh
TomyWork has joined #ruby
ur5us has joined #ruby
gsingh93 has quit [Quit: ZNC - http://znc.in]
hahuang61 has quit [Ping timeout: 264 seconds]
conta has joined #ruby
exchgr` has quit [Ping timeout: 250 seconds]
gtsai has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
hightower3 has joined #ruby
biberu has joined #ruby
adac has joined #ruby
jancel has joined #ruby
benlieb has quit [Quit: benlieb]
ramfjord has quit [Quit: Lost terminal]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Hello
exchgr has joined #ruby
chipotle has quit [Quit: cheerio]
gtsai has quit [Remote host closed the connection]
TvL2386 has joined #ruby
gtsai has joined #ruby
<TvL2386> how can this be true: irb(main):018:0> IPAddr.new('10.0.0.0/32').include?(IPAddr.new('10.0.0.0/8'))
elaptics is now known as elaptics`away
mistermocha has joined #ruby
mikecmpbll has joined #ruby
gtsai has quit [Remote host closed the connection]
jancel has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Client Quit]
iMadper has quit [Remote host closed the connection]
iMadper has joined #ruby
nankyokusei has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
<alfie_max15> TvL2386, you are asking that because you're looking at the /32 and /8 ??
<TvL2386> alfie_max15, yes
<heftig> TvL2386: include? disregards the argument's netmask
<alfie_max15> yes,
<heftig> you can't ask if a subnet includes another subnet; you can just ask if a subnet includes an address
<alfie_max15> both the IP address are the same, and hence falls within its range
<tgeeky> TvL2386: yes, they are the same
<tgeeky> the mask is not applied for purposes of the ranges
<tgeeky> so
<tgeeky> setting one to a, and the other to b
<TvL2386> I see! Not what I had expected :)
KnownSyntax has quit [Ping timeout: 276 seconds]
tristanp_ has quit [Ping timeout: 272 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Excess Flood]
7F1ABC1ZQ has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
KnownSyntax has quit [Excess Flood]
bronson has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
skolman_ has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Excess Flood]
KnownSyntax has joined #ruby
KnownSyntax has quit [Excess Flood]
KnownSyntax has joined #ruby
KnownSyntax has quit [Excess Flood]
KnownSyntax has joined #ruby
KnownSyntax has quit [Excess Flood]
edwinvdgraaf has joined #ruby
tristanp has joined #ruby
j3r0 has joined #ruby
skolman_ has quit [Ping timeout: 246 seconds]
Oog has quit []
bronson has quit [Ping timeout: 252 seconds]
pikajude_ is now known as pikajude
pikajude has quit [Changing host]
pikajude has joined #ruby
alfie_max15 has quit [Ping timeout: 260 seconds]
Oog has joined #ruby
sarlalian has quit [Ping timeout: 260 seconds]
terlar has quit [Quit: WeeChat 1.5]
skade has joined #ruby
madgen has joined #ruby
Ch4rAss has joined #ruby
terlar has joined #ruby
ur5us has quit [Remote host closed the connection]
benlieb has joined #ruby
GarethAdams has joined #ruby
sarlalian has joined #ruby
senayar has joined #ruby
jaruga___ has joined #ruby
sdothum has joined #ruby
n1x-nz has quit [Quit: Leaving]
kgrz has quit [Ping timeout: 240 seconds]
n1x-nz has joined #ruby
allenn has joined #ruby
troulouliou_div2 has joined #ruby
alfie_max15 has joined #ruby
n1x-nz has quit [Client Quit]
n1x-nz has joined #ruby
araujo has joined #ruby
mikecmpbll has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
kgrz has joined #ruby
<hightower3> Hey how do I get the IP of the remote end from a TCP socket?
ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
elaptics`away is now known as elaptics
Oog has quit []
Bugboy1028 has quit [Remote host closed the connection]
n1x-nz has quit [Quit: Computer says no]
Bugboy1028 has joined #ruby
edwinvdgraaf has quit []
diegoaguilar has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
nobitanobi has joined #ruby
edwinvdgraaf has quit [Client Quit]
tristanp_ has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
n1x-nz has joined #ruby
sdwrage has quit [Quit: Leaving]
tristanp has quit [Ping timeout: 250 seconds]
n1x-nz has quit [Client Quit]
giz|work has joined #ruby
n1x-nz has joined #ruby
n1x-nz has quit [Max SendQ exceeded]
drptbl has joined #ruby
n1x-nz has joined #ruby
Bugboy1028 has quit [Remote host closed the connection]
n1x-nz has quit [Client Quit]
Dimik has joined #ruby
CROOKED^HILLARY^ has joined #ruby
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roelof has joined #ruby
<roelof> A very stupid beginners question . I have this : ["schilderijen"] . How do I convert this to schilderijen ?
rrichardsr3 has joined #ruby
<baweaver> what have you tried?
<PaulePanter> Hi. In a YAML file there is: my_key: [/bla/]
<PaulePanter> Now reading it in Ruby I get ["/bla/"] back.
<PaulePanter> As I want to user a matcher, that’s not so nice.
tristanp_ has joined #ruby
<PaulePanter> Any idea what I am missing.
tristanp has quit [Ping timeout: 250 seconds]
<PaulePanter> ?
<roelof> answer.to_s answer.join baweaver
LoneHermit has joined #ruby
<baweaver> how do arrays work?
platzhirsch has joined #ruby
<roelof> Normally I could do array.first but then I get no output
<roelof> so im a little bit confused
<baweaver> >> ["schilderijen"].first
<ruby[bot]> baweaver: # => "schilderijen" (https://eval.in/576059)
<baweaver> looks good to me
<baweaver> PaulePanter what have you tried?
<roelof> Can I also display it without the "
<baweaver> define "display"
tristanp has joined #ruby
<roelof> I want to print it on the screen without the "
<baweaver> on a console, or where?
skade has quit [Read error: Connection reset by peer]
<baweaver> because that's what puts is for
skade has joined #ruby
<roelof> in a web browser
phredus has joined #ruby
edwinvdgraaf has joined #ruby
<elomatreb> You're using ERb, right?
Bugboy1028 has joined #ruby
<baweaver> you're going to have to give me way more information you know
<baweaver> or we can play 20 questions to find out what you're doing
tristanp_ has quit [Ping timeout: 244 seconds]
<elomatreb> baweaver: He was asking something similar yesterday
LoneHermit has quit [Ping timeout: 240 seconds]
<roelof> I read data from a database. I try to display that data on my webpage , baweaver . So far , clear ?
marr has joined #ruby
<baweaver> what's the actual code?
<elomatreb> What is the name of the file you're editing?
Dimik has quit [Ping timeout: 244 seconds]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
TvL2386 has quit [Ping timeout: 244 seconds]
GarethAdams has quit [Quit: Leaving...]
Ebok has quit [Quit: This computer has gone to sleep]
Bugboy1028 has quit [Remote host closed the connection]
AlexJakeGreen has quit [Remote host closed the connection]
fujinuma has joined #ruby
<roelof> baweaver: for printing on the screen : <p class="au-mb-3 au-pl-4 au-pr-4">Collectie : <%= @painting.collectie[2 .. -3] %></p>
<fujinuma> how can I eliminate the duplication in this code? https://git.io/vrrPi
BTRE has quit [Ping timeout: 250 seconds]
BTRE has joined #ruby
n1x-nz has joined #ruby
<elomatreb> fujinuma: You could write a helper method that accepts a block and gives it the db object as a parameter
tomphp has joined #ruby
Bugboy1028 has joined #ruby
drptbl has quit [Remote host closed the connection]
<elomatreb> I'm assuming you mean the db connect/disconnect stuff
<fujinuma> elomatreb: that's it. I'll give it a try, thanks
n1x-nz has quit [Client Quit]
<elomatreb> I would not be surprised if Sinatra offered a better/cleaner way of doing that, though. Something like Rails filters maybe?
moeSeth has joined #ruby
tvw has joined #ruby
n1x-nz has joined #ruby
<roelof> baweaver: thanks, got it working
giz|work has quit [Ping timeout: 260 seconds]
n1x-nz has quit [Quit: Leaving]
n1x-nz has joined #ruby
n1x-nz has quit [Client Quit]
Bugboy1028 has quit [Remote host closed the connection]
roelof has quit [Quit: Page closed]
TvL2386 has joined #ruby
saneax is now known as saneax_AFK
dionysus69 has quit [Ping timeout: 260 seconds]
Bugboy1028 has joined #ruby
Pumukel has joined #ruby
n1x-nz has joined #ruby
n1x-nz has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
n1x-nz has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
n1x-nz has quit [Quit: Computer says no]
n1x-nz has joined #ruby
n1x-nz has quit [Max SendQ exceeded]
tristanp_ has quit [Ping timeout: 250 seconds]
n1x-nz has joined #ruby
aupadhye has quit [Ping timeout: 264 seconds]
tristanp_ has joined #ruby
tatran has joined #ruby
skade has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 272 seconds]
tatran has left #ruby [#ruby]
tristanp_ has quit [Ping timeout: 250 seconds]
Nice_BikeMaN has joined #ruby
tristanp_ has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
iMadper has quit [Remote host closed the connection]
craigp has quit [Quit: WeeChat 1.5]
iMadper has joined #ruby
craigp has joined #ruby
SilverKey has joined #ruby
ferr has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has joined #ruby
craigp has quit [Client Quit]
zyzioziom1 has joined #ruby
zyzioziom has quit [Ping timeout: 260 seconds]
zyzioziom1 is now known as zyzioziom
craigp has joined #ruby
blaxter has joined #ruby
iMadper has quit [Remote host closed the connection]
iMadper has joined #ruby
aupadhye has joined #ruby
weckl has joined #ruby
<PaulePanter> >> require "yaml"; YAML.load("---\nfoo: [/test/]")
<ruby[bot]> PaulePanter: # => {"foo"=>["/test/"]} (https://eval.in/576082)
<PaulePanter> baweaver: That’s what I tried.
giz|work has joined #ruby
<hanmac> i think the problem is that YAML doesnt have a regexp type, so ruby does think its a String
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<PaulePanter> Any idea, how that can be worked around?
<apeiros> >> require 'yaml'; YAML.load(/foo/.to_yaml)
<ruby[bot]> apeiros: # => /foo/ (https://eval.in/576083)
<apeiros> yaml can represent regular expressions
<apeiros> but you have to write the yaml properly for that
<apeiros> >> require 'yaml'; /foo/.to_yaml
<ruby[bot]> apeiros: # => "--- !ruby/regexp /foo/\n...\n" (https://eval.in/576084)
<apeiros> iow, yaml does have a regex type. but it's not just //
<jhass> s/YAML/Psych/, no?
anenigma has joined #ruby
<PaulePanter> apeiros: Awesome. Thank you.
<PaulePanter> jhass: > You can choose from one of two YAML engines that ship with Ruby 1.9. By default Psych is used but the old unmaintained Syck may chosen.
aupadhye has quit [Ping timeout: 250 seconds]
<jhass> 1.9 is dead, Syck is dead
<jhass> but besides my point either way
eGGshke has joined #ruby
GarethAdams has joined #ruby
ur5us has joined #ruby
mdw has joined #ruby
<PaulePanter> jhass: What was your point?
chipotle has joined #ruby
<PaulePanter> http://ruby-doc.org/stdlib-2.1.5/libdoc/yaml/rdoc/YAML.html also says that Psych is used by default.
<apeiros> jhass: psych is the name of the parser (or rather libyaml wrapper) in ruby, yaml is the language. and yaml the language can have arbitrary custom types, which psych makes use of
<apeiros> 18>> require 'yaml'; /foo/.to_yaml # just curious how it was with syck
<ruby[bot]> apeiros: # => "--- !ruby/regexp /foo/\n" (https://eval.in/576086)
<apeiros> ok, same custom type
Snowy has joined #ruby
<jhass> yeah, my point is that it's not YAML having "a regex type", but Psych using/supporting a custom YAML type for regexes
<jhass> IMO the important difference is: will break/work differently with other YAML parsers
skade has joined #ruby
<PaulePanter> jhass: Ah, thank you!
<apeiros> any yaml parser should be capable of parsing all custom types. i.e. it should not break. but it might not have a sensible representation for the custom type.
alexherbo2 has joined #ruby
<jhass> "YAML has a regex type" just sounds like something portable to me, which it isn't
<apeiros> afaik there's a fallback definition, something akin getting at least a string, an array or a k/v collection. but I never tried.
Snowy has quit [Read error: Connection reset by peer]
<apeiros> true
Snowy has joined #ruby
<apeiros> even languages which support regular expressions might have a different engine, so a regex may not translate 1:1. so you might not even be able to write an adapter for the custom type.
benlieb has quit [Quit: benlieb]
skade has quit [Read error: Connection reset by peer]
iMadper` has joined #ruby
saneax_AFK is now known as saneax
myntcake has joined #ruby
tristanp_ has joined #ruby
aupadhye has joined #ruby
<myntcake> Is there a sample like method applicable to hashes?
joonty has quit [Ping timeout: 244 seconds]
iMadper has quit [Ping timeout: 244 seconds]
skade has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
Jet4Fire_ has quit [Ping timeout: 244 seconds]
<Zarthus> Hash#keys.sample?
joonty has joined #ruby
<Zarthus> (the question mark there is not parth of the method)
Jet4Fire has joined #ruby
kgrz_ has joined #ruby
<Zarthus> alternatively #values if you don't need the key
aupadhye has quit [Ping timeout: 260 seconds]
myntcake has quit [Ping timeout: 252 seconds]
kgrz has quit [Ping timeout: 272 seconds]
nankyokusei has joined #ruby
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
n1x-nz has quit [Quit: Computer says no]
anisha has joined #ruby
Weavel has joined #ruby
zyzioziom has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
tristanp_ has joined #ruby
gtsai has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
mlehrer has joined #ruby
Devalo has joined #ruby
zyzioziom has joined #ruby
startupality has joined #ruby
mistermocha has joined #ruby
tristanp has joined #ruby
CROOKED^HILLARY^ has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Ping timeout: 250 seconds]
gtsai has quit [Ping timeout: 258 seconds]
terlar has quit [Quit: WeeChat 1.5]
mistermocha has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
nadir has quit [Quit: Connection closed for inactivity]
mdw_ has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
conta has quit [Ping timeout: 246 seconds]
ocbtec has joined #ruby
Coldblackice_ has quit [Ping timeout: 260 seconds]
mdw has quit [Ping timeout: 276 seconds]
rrichardsr3 has quit [Quit: He who dares .... wins.]
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 276 seconds]
CROOKED^HILLARY^ has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
Devalo has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 250 seconds]
startupality has quit [Read error: Connection reset by peer]
conta has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
madgen has joined #ruby
Darkwater has joined #ruby
Oog has joined #ruby
tristanp has joined #ruby
jackjackdripper has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
SirCmpwn has quit [Ping timeout: 260 seconds]
SirCmpwn has joined #ruby
m8 has joined #ruby
andrewvos has joined #ruby
staticfox has quit [Read error: Connection reset by peer]
startupality has joined #ruby
staticfox has joined #ruby
rideh- has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
antgel has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
tax has quit [Read error: Connection reset by peer]
eGGshke has quit [Remote host closed the connection]
rideh has joined #ruby
stardiviner has joined #ruby
skade has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has joined #ruby
ptx0 has quit [Ping timeout: 246 seconds]
neanderslob has quit [Ping timeout: 250 seconds]
neanderslob has joined #ruby
eGGshke has joined #ruby
ur5us has quit [Remote host closed the connection]
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
trista___ has joined #ruby
bronson has joined #ruby
Macaveli has quit [Ping timeout: 244 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
glcx has quit [Quit: Quitte]
Macaveli has joined #ruby
Weavel has quit [Quit: IceChat - It's what Cool People use]
tristanp has joined #ruby
GodFather_ has joined #ruby
trista___ has quit [Ping timeout: 250 seconds]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
myntcake has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
alfie_max15 has quit [Ping timeout: 252 seconds]
Ch4rAss has quit [Ping timeout: 244 seconds]
Oog has quit []
Macaveli has joined #ruby
Ch4rAss has joined #ruby
CROOKED^HILLARY^ has quit [Ping timeout: 250 seconds]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
moeSeth has quit [Quit: Connection closed for inactivity]
<myntcake> Is there a sample like method applicable to hashes?
<apeiros> hash.to_a.sample(n).to_h
jancel has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
alfie_max15 has joined #ruby
jaguarmagenta has joined #ruby
sepp2k has joined #ruby
startupality has quit [Ping timeout: 240 seconds]
jaruga___ has quit [Ping timeout: 240 seconds]
Nice_BikeMaN has quit [Quit: Leaving]
<jhass> I usually keep stuff as [[a, b], ...] if that need arises though
<myntcake> hmm
<jhass> chances are big you don't need the key value lookup property of Hash at all
<myntcake> I'm building a 21 like game
RegulationD has joined #ruby
<myntcake> so i was thinking of organizing the hearts,diamonds, etc. with its 2,3,4,5,6... cards
GodFather_ has quit [Read error: Connection reset by peer]
jancel has quit [Ping timeout: 272 seconds]
<myntcake> and so make 4 keys as symbols, and the values as an array of numbers
aleskandro has joined #ruby
<jhass> when will you lookup all cards by its symbol?
jaguarmagenta has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
<jhass> let me rephrase
<jhass> when will you need to fetch all cards of a color, knowing the color?
<myntcake> no, i would just need a card with its head
<myntcake> *type
<myntcake> that would be randomized
k3rn31 has joined #ruby
GodFather_ has joined #ruby
dangerousdave has joined #ruby
<myntcake> so a nested array is better for that occasion?
<jhass> when you say type you mean color + value ?
<myntcake> yea
<aleskandro> Hi all, i'm using the i18n gem on a rails project. In one form I have a nested form for room with fields_for (roomFeature) and the label of the fields are translated from the yaml. But when I make a validation error the field name is not translated. I receive "Roomfeatures description non puo` essere bianca". How can I set "Roomfeatures description" in the yaml?
GodFather has quit [Remote host closed the connection]
habitullence has quit [Quit: habitullence]
GodFather_ has quit [Read error: Connection reset by peer]
<jhass> myntcake: so why not just [[:hearts, 2], [:hearts, 3], ..., [:hearts, 14], ..., [:diamonds, 5], ...]?
RegulationD has quit [Ping timeout: 244 seconds]
GodFather has joined #ruby
<myntcake> so a nested array is a better option?
<myntcake> jhass: idk.. haha i just wanted to type less
<jhass> probably, I don't know all your requirements to the data structure
<jhass> generate it
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<myntcake> so iwas thinking CARDS=[2,3,4,5..] and deck{hearts: CARDS}
marr has quit [Ping timeout: 246 seconds]
GodFather has quit [Remote host closed the connection]
<jhass> colors.flat_map {|color| values.map {|value| [color, value] } }
rodfersou has joined #ruby
tristanp_ has joined #ruby
rodfersou has quit [Client Quit]
<myntcake> is flat_map different from just map?
postmodern has quit [Remote host closed the connection]
<jhass> yes
rodfersou has joined #ruby
<myntcake> it flattens the array?
<jhass> sort of
<jhass> >> %(ab bc cd).flat_map {|s| s.chars }
<ruby[bot]> jhass: # => undefined method `flat_map' for "ab bc cd":String (NoMethodError) ...check link for more (https://eval.in/576137)
<jhass> duh
<jhass> >> %w(ab bc cd).flat_map {|s| s.chars }
<ruby[bot]> jhass: # => ["a", "b", "b", "c", "c", "d"] (https://eval.in/576138)
tristanp has quit [Ping timeout: 250 seconds]
<myntcake> lol
<jhass> >> %w(ab bc cd).flat_map {|s| [s.size, s.chars] }
<ruby[bot]> jhass: # => [2, ["a", "b"], 2, ["b", "c"], 2, ["c", "d"]] (https://eval.in/576139)
GodFather has joined #ruby
<jhass> it flattens only one level
<myntcake> oh
tristanp has joined #ruby
<jhass> it's basically .each_with_object([]) {|item, ary| ary.concat stuff_with(item) }
GodFather has quit [Remote host closed the connection]
mrgrieves has quit [Remote host closed the connection]
<jhass> ?rails aleskandro
<ruby[bot]> aleskandro: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 272 seconds]
habitullence has joined #ruby
<eGGshke> #RubyOnRails
<alfie_max15> eGGshke, trying to join???
tristanp_ has joined #ruby
<eGGshke> +(
kgrz_ has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 252 seconds]
madgen has quit [Ping timeout: 252 seconds]
GodFather has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
trista___ has quit [Ping timeout: 252 seconds]
GodFather_ has joined #ruby
chipotle has quit [Quit: cheerio]
GodFather has quit [Read error: Connection reset by peer]
craigp has quit [Quit: WeeChat 1.5]
craigp has joined #ruby
johnmilton has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
gnufied has joined #ruby
cyclonis_ has quit [Ping timeout: 276 seconds]
craigp has quit [Client Quit]
craigp has joined #ruby
tristanp_ has joined #ruby
startupality has joined #ruby
<Darkwater> what do the cool kids these days use for ruby doc generation?
iMadper` has quit [Remote host closed the connection]
fujinuma has quit [Quit: WeeChat 1.4]
zyzioziom1 has joined #ruby
<workmad3> Darkwater: hand-written with beautiful caligraphy
finnnnnnnnnnn has joined #ruby
zyzioziom has quit [Ping timeout: 244 seconds]
zyzioziom1 is now known as zyzioziom
mistermocha has joined #ruby
d0lph1n98 has joined #ruby
doodlehaus has joined #ruby
doodlehaus was kicked from #ruby by ruby[bot] [was banned before]
chipotle has joined #ruby
griffindy has joined #ruby
shellie_ has joined #ruby
madgen has joined #ruby
<finnnnnnnnnnn> Hello! I’m trying to use an array as a reference to a location in a RecursiveOpenStruct object. It’s probably a bad idea. I’ve asked a question on stack overflow if anyone cares to have a look - http://stackoverflow.com/questions/37411889
hutch34 has joined #ruby
<shellie_> I'm new to ruby, I'm working with rspec. I have this global variable I'm setting in a before all context, which I can't seem to use later in my describe, it goes empty (maybe nil) - any idea what I could do to be able to access it from the describe context?
mistermocha has quit [Ping timeout: 244 seconds]
<tobiasvl> shellie_: perhaps show some code
eGGshke has quit [Quit: Leaving...]
myntcake has quit [Ping timeout: 244 seconds]
chipotle has quit [Ping timeout: 252 seconds]
elementaru has joined #ruby
nankyokusei has joined #ruby
<shellie_> tobiasvl: ^
skade has joined #ruby
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
<Darkwater> shellie_: in that code, ruby tries to resolve @somevar before it's set by something
<shellie_> oh, that's because it interpretes the code, before the 'before context' gets executed?
<Darkwater> on like 6, you're really calling describe with the result ofsomeresource(@somevar) and a block
<Darkwater> yeah
ldnunes has joined #ruby
<Darkwater> if my knowledge of rspec is ok I think you need to pass a string to describe
<Darkwater> describe 'some functionality' do ...
<Darkwater> same with it
craigp has quit [Quit: WeeChat 1.5]
<shellie_> Darkwater: oh, this is serverspec, not pure rspec, I think
<Darkwater> iirc it and describe are equivalent, just some semantic changes
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
craigp has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
<Darkwater> ooh I see what yuo're trying to do
<jhass> not quite, no
c355e3b has joined #ruby
craigp has quit [Client Quit]
Azure has quit [Remote host closed the connection]
<shellie_> Darkwater: what do you think the solution here could be?
craigp has joined #ruby
<Darkwater> I think removing the before :all block might do
<Darkwater> like, set @somevar directly in the describe block
craigp has quit [Client Quit]
<Darkwater> since you're using it to define the tests, instead of actually using them in the tests
<Darkwater> but then again I don't use rspec
<Darkwater> it would at least work
<shellie_> this is my issue. I depend on a function that does some remote execution, which I can call from within a before block, but not outside it, and I'm not too sure how to go about fixing that
<jhass> no need to make it an instance variable even
roamingdog has quit [Remote host closed the connection]
craigp has joined #ruby
<jhass> perhaps you just shouldn't call it outside
<Darkwater> then I think you need to look for a different approach
Ishido has quit [Remote host closed the connection]
myntcake has joined #ruby
nadir has joined #ruby
hanmac has quit [Ping timeout: 260 seconds]
vondruch_ has quit [Quit: Ex-Chat]
vondruch has joined #ruby
<shellie_> how can I print the full name space of a given function?
craigp has quit [Client Quit]
<apeiros> functions don't have namespaces :-p
<apeiros> of a method - depends, do you have a Method or an UnboundMethod instance?
craigp has joined #ruby
<apeiros> oh, actually both support .owner
<shellie_> I think it is bound, but I would need some help in figuring that out :)
<shellie_> let me try owner
<apeiros> so: see Method/UnboundMethod#owner
evidex has joined #ruby
Ishido has joined #ruby
<jhass> and see Object#method
<apeiros> and Module#instance_method
<apeiros> though I assumed you already had gone that far.
<jhass> click on the paste :P
<apeiros> ze paste?
<jhass> yeh!
<apeiros> wher's ze paste?
<apeiros> oh, this is a follow-up question?
davedev24 has joined #ruby
<Darkwater> why do the headers from `ri -T String` contain backspaces? is it so you can't grep them?
tristanp has joined #ruby
anenigma has quit [Quit: Goodbye]
trista___ has joined #ruby
<giz|work> Darkwater: the commit messages for this is: "Prevent Darkwater from grepping strings on 24.May.2016".... the commit is one year old though Oo
LoneHermit has joined #ruby
tristanp_ has quit [Ping timeout: 272 seconds]
aleskandro has quit [Quit: Konversation terminated!]
<Darkwater> lmao
netcho has joined #ruby
<netcho> hi all
<netcho> using whenever gem to create crons, it works fine if i have only one app per server. If i host multiple apps on one server i rewrites crons so only last app deployed has crons in crontab
tristanp has quit [Ping timeout: 252 seconds]
<jhass> systemd timers time!
<jhass> scnr
strigon33 has joined #ruby
<jhass> netcho: run your apps as different users? probably a good idea either way
trista___ has quit [Ping timeout: 250 seconds]
<netcho> not an option
LoneHermit has quit [Ping timeout: 246 seconds]
<netcho> all apps are ran as the same user
<Darkwater> append to cron
tristanp has joined #ruby
<Darkwater> or rather replace the correct one
<Darkwater> as in, the corerct line(s)
hanmac has joined #ruby
beauby has quit [Ping timeout: 264 seconds]
|2701 has joined #ruby
strigonLeader has quit [Ping timeout: 246 seconds]
roamingdog has joined #ruby
tristanp_ has joined #ruby
maucar has joined #ruby
trista___ has joined #ruby
jaruga___ has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
CJKinni has joined #ruby
chouhoulis has joined #ruby
skade has quit [Ping timeout: 272 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
synthroid has joined #ruby
roamingdog has joined #ruby
duncannz has quit [Remote host closed the connection]
beauby has joined #ruby
trista___ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<jhass> "are" != "must"
roamingdog has quit [Remote host closed the connection]
umdstu has joined #ruby
Macaveli has quit [Ping timeout: 258 seconds]
moeabdol has quit [Ping timeout: 276 seconds]
Gasher has quit [Quit: Leaving]
swills has quit [Ping timeout: 276 seconds]
Devalo has joined #ruby
hahuang61 has joined #ruby
CJKinni has quit [Read error: Connection reset by peer]
ksmutthu_ has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
kgrz has joined #ruby
ksmutthu has quit [Ping timeout: 244 seconds]
<lxsameer> is there any alternative for redcarpet gem for jruby ?
hahuang61 has quit [Ping timeout: 260 seconds]
zenlot has joined #ruby
mauricar has joined #ruby
moeabdol has joined #ruby
skade has joined #ruby
eGGshke has joined #ruby
auzty has quit [Quit: Leaving]
zenlot6 has quit [Ping timeout: 276 seconds]
<netcho> jhass: it is not my call :D
<netcho> how is identifier ser?
<netcho> how is identifier set?
LoneHerm_ has joined #ruby
<Darkwater> what/
maucar has quit [Ping timeout: 264 seconds]
ctp has joined #ruby
mikecmpb_ has joined #ruby
<Darkwater> what/
<Darkwater> whoops
startupality has quit [Read error: Connection reset by peer]
<Darkwater> no matter how fitting that was it was 100% an accident i swear
aegis3121 has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
matp has quit [Ping timeout: 260 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
nettoweb has joined #ruby
ptx0 has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
<nettoweb> hey guys, is there a way to not set the full pah of this gem in order to work: :To fix a bug, Im using lie this today: WickedPdf.config = { :exe_path => '/Users/netto/.rvm/gems/
tristanp has joined #ruby
<nettoweb> I'd like to know if there is a variable to get the gem folder directory and dont need to pass my user folder
tristanp_ has quit [Ping timeout: 250 seconds]
tristanp_ has joined #ruby
veloutin_ has quit [Quit: ZNC - http://znc.in]
moeabdol has joined #ruby
veloutin has joined #ruby
trista___ has joined #ruby
<Darkwater> ENV['HOME'] . '/.rvm'?
tristanp has quit [Ping timeout: 252 seconds]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofxx has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
tristanp has joined #ruby
kies has joined #ruby
startupality has joined #ruby
gtsai has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
wwwbukolaycom has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
wwwbukolaycom has quit [K-Lined]
chouhoulis has quit [Remote host closed the connection]
mdih has joined #ruby
gtsai has quit [Ping timeout: 244 seconds]
iooner has quit [Ping timeout: 260 seconds]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]]
<dreinull> !!"x" => true but generates a warning. How else should I check for true/false?
iooner has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<netcho> jhass: i set appname as identifier and update instead of write.... all good now
BTRE has quit [Ping timeout: 276 seconds]
CJKinni has joined #ruby
BTRE has joined #ruby
gheegh has quit [Ping timeout: 260 seconds]
<tobiasvl> dreinull: why do you need to check for true/false and not truthiness/falsiness?
<dreinull> tobiasvl I do
tristanp has quit [Read error: Connection reset by peer]
<tobiasvl> dreinull: ok. why do you need to have a string literal in the test then?
<tobiasvl> with a string literal you could literally (!) replace !!"x" with true
tristanp has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
<tobiasvl> this is a basic XY problem if ever I saw one
last_staff has quit [Quit: last_staff]
<dreinull> tobiasvl example. I check the mapped return of method evals. Just need the true/false results to check if any enumerated value returned a negative response.
johnmilton has joined #ruby
<tobiasvl> dreinull: and you can't check if the enumerated value is truthy or falsy instead?
nobitanobi has quit [Remote host closed the connection]
<dreinull> it is send to a method which returns an array. If array is sent it's true, if not it's false. So I have sth like set.map{|s|!!s.meth}.all?
<dreinull> which works for me
<tobiasvl> but that shouldn't give a warning?
<tobiasvl> there's no string literal there
<dreinull> tobiasvl I assumed the double bang would give a warning nonetheless
<tobiasvl> well it shouldn't
<dreinull> ok then. I'm happy.
nobitanobi has joined #ruby
nobitanobi has quit [Remote host closed the connection]
skade has quit [Ping timeout: 258 seconds]
LoneHerm_ has quit [Remote host closed the connection]
skade has joined #ruby
Biopandemic has joined #ruby
jaguarmagenta has joined #ruby
nobitanobi has joined #ruby
<Cork> anyone know how to exit from Dir.chroot ?
dstarh has joined #ruby
nobitanobi has quit [Remote host closed the connection]
duckpuppy has joined #ruby
<adaedra> Should not be possible, that's the point of chroot
<Cork> adaedra: not always no
zyzioziom has quit [Ping timeout: 272 seconds]
<Cork> in this case it is cause i need to run some programs in that context
<Cork> ah
<workmad3> Cork: I don't believe you can... once you chroot a process you can't unjail it
<Cork> it takes a block
tristanp_ has joined #ruby
ramortegui has joined #ruby
<workmad3> Cork: the idea would normally be to fork then chroot the forked process
ChiefAlexander has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
rkoller has joined #ruby
skade has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
startupality has quit [Read error: Connection reset by peer]
koooge has quit [Quit: Leaving...]
tristanp has quit [Ping timeout: 250 seconds]
<workmad3> Cork: you can do that fairly easily though... `fork { Dir.chroot "blah"; exec "whatever" }`
<Cork> ah, good idea
<Cork> but the main process won't wait for it right?
dhk has joined #ruby
matp has joined #ruby
pandaant has joined #ruby
<workmad3> Cork: not by default, no... but `fork` will return the PID, iirc, so you can capture that and wait for it later
tristanp has joined #ruby
<Cork> ya so pid = fork {}; wait(pid) right?
<Cork> (haven't worked much forks)
jrafanie has joined #ruby
<workmad3> Cork: looks about right
skade has joined #ruby
<apeiros> makes it easy
tristanp_ has quit [Ping timeout: 250 seconds]
<apeiros> (shameless plug)
<Cork> hmm, it works find except it hangs for keypress...
<Cork> hmm, stdin hang?
domgetter has joined #ruby
<Cork> apeiros: ah, nice
tristanp_ has joined #ruby
ldnunes has quit [Quit: Leaving]
skade has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 250 seconds]
skade has joined #ruby
<jhass> dreinull: .all? does truthiness checks too, it doesn't expect true or false
djellemah has quit [Remote host closed the connection]
ldnunes has joined #ruby
hahuang61 has joined #ruby
nobitanobi has joined #ruby
startupality has joined #ruby
<workmad3> Cork: oh, the forked process won't be connected to your stdin...
<workmad3> Cork: you may need to delve into POpen for that
<Cork> ya, i've fiddled with that before
<Cork> forgotten it though >_<
skade has quit [Read error: Connection reset by peer]
<domgetter> (or set $stdout to a logfile in the child process and tail the log)
skade has joined #ruby
<domgetter> oh you said stdin. I should read more
nobitanobi has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
maloik has joined #ruby
SilverKey has quit [Ping timeout: 276 seconds]
skade has quit [Ping timeout: 250 seconds]
GodFather_ has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
skade has joined #ruby
nobitanobi has joined #ruby
<dreinull> jhass ok, just noticed, too.
<jhass> dreinull: there's very few things in ruby that do
<jhass> so your default assumption should be to not need !! noise
finnnnnnnnnnn has joined #ruby
<dreinull> jhass I had a bug elsewhere :)
freerobby has joined #ruby
gfvcastro has joined #ruby
<Darkwater> couldn't you use set.all? { |s| s.meth }?
startupality has quit [Ping timeout: 252 seconds]
<dreinull> Darkwater even better
<aegis3121> set.all?(&:meth)
chipotle has joined #ruby
chipotle has quit [Client Quit]
skade has quit [Ping timeout: 260 seconds]
skade has joined #ruby
nankyokusei has joined #ruby
gfvcastro has quit [Quit: Textual IRC Client: www.textualapp.com]
gfvcastro has joined #ruby
<dreinull> yup
gfvcastro has quit [Client Quit]
nankyokusei has quit [Ping timeout: 264 seconds]
tristanp has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
evidex has joined #ruby
<apeiros> naming question - how'd you call an attribute which stores whether you're "not yet born", "alive" or "deceased"?
maloik56 has joined #ruby
<andrewvos> #unborn?
<andrewvos> oh
<andrewvos> er
tristanp_ has quit [Ping timeout: 250 seconds]
<Darkwater> #stage
<apeiros> andrewvos: does not fit, as unborn? does not not cover the distinction of alive and deceased
<DylanJ> Anyone here know Sequel, Postgres and used TSRANGE types? Great! How can I pass a Time range `(Time.now..Time.now+1)` directly to an instance of a Sequel::Model without wrapping it in Sequel.pg_range. I see there's an option to register types `DB.register_range_type('timerange')
<Darkwater> :unborn/alive/deceased
<apeiros> stage/status are IMO too unspecific
<DylanJ> ` but the function does not exist.
<Darkwater> life-stage/
<apeiros> Darkwater: those are the *values*, I ask for the name of the *property* ;-)
<Darkwater> ?
<apeiros> (and yes, "not yet alive" is indeed "unborn" in that code)
zyzioziom has joined #ruby
tristanp_ has joined #ruby
<andrewvos> apeiros: do you need the destinction between not yet born and deceased?
<andrewvos> cause #alive? might do
<apeiros> phase_of_life, vitality, …?
<andrewvos> sentience
<apeiros> andrewvos: yes, very much so :)
<andrewvos> if !h.alive? && age < 0
<andrewvos> hehe sorry
<apeiros> that's code. I need to store a property in a db ;-)
tristanp has quit [Ping timeout: 250 seconds]
<apeiros> and now I'm looking for a good column name
<andrewvos> #antenatal?
nobitanobi has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
Devalo has quit [Remote host closed the connection]
stannard has joined #ruby
<jhass> constitution?
chipotle has joined #ruby
<andrewvos> natality -> %w{antenatal postnatal}
andrewvos has quit [Quit: WeeChat 0.4.2]
maloik_ has joined #ruby
startupality has joined #ruby
<apeiros> that only seems to cover unborn/alive and misses deceased
maloik has quit [Quit: ZNC 1.6.2 - http://znc.in]
blackgoat has quit [Quit: WeeChat 1.4]
<jhass> liveliness
maloik_ has quit [Remote host closed the connection]
<apeiros> hehe
maloik has joined #ruby
maloik has quit [Client Quit]
maloik56 is now known as maloik
<maloik> hello friends
<apeiros> I wonder whether in 10y we'll just ask our AI assistant for that and they search their 500k vocables dict
deadnull_ has joined #ruby
<Darkwater> no because someone has to teach the aI
andrewvos has joined #ruby
davedev2_ has joined #ruby
<maloik> I missed most of the conversation, but why not `breathing` ?
<maloik> as in a boolean
davedev24 has quit [Ping timeout: 272 seconds]
<apeiros> it's 3 state
<maloik> that coupled with a birth date (which I'm assuming you have) will fix that?
<maloik> sorry for offering suggestions not knowing full context :)
iooner has quit [Ping timeout: 272 seconds]
<andrewvos> existence => antinatal, alive, dead
centrx has joined #ruby
<andrewvos> also I just learned about this https://en.wikipedia.org/wiki/Antinatalism
<elomatreb> ... I don't think I even want to know where you would need this?
<apeiros> we have 3 date fields, estimated_date_of_birth, date_of_birth, date_of_death
<jhass> vivacity
chipotle has quit [Ping timeout: 276 seconds]
<jhass> gotta love English
<apeiros> but while we might know somebody is deceased, we may not know when
<apeiros> similar wrt being unborn and alive
<apeiros> vivacity sounds great. let me check that against the team :D
<maloik> only unknown date of death kind of ruins it :(
iooner has joined #ruby
<maloik> you'd be able to determine alive but unborn or alive and born with the other two dates
<apeiros> we first had two boleans, unborn and deceased
<apeiros> and IMO it'd be proper to put that into a single column which is 3 state
andrewvo1 has joined #ruby
idefine_ has joined #ruby
<andrewvo1> damnit I got disconnected
idefine_ has quit [Remote host closed the connection]
<andrewvo1> what was the final choice?
andrewvo1 has quit [Client Quit]
<jhass> perhaps just vitality
<andrewvos> are you really gonna have a row for something that's unborn
idefine has joined #ruby
<apeiros> andrewvos: not "gonna". we have.
<apeiros> and we must have.
<andrewvos> well
<andrewvos> you should choose something obviou
idefine_ has joined #ruby
<andrewvos> s
<andrewvos> don't try be too clever
crystal77 has joined #ruby
<andrewvos> current_life_state
<apeiros> I try to be concise
<andrewvos> current_life_state [:alive, :unborn, :dead]
<apeiros> my current favorites are phase_of_life and vitality/vivacity
<andrewvos> the former is good
crystal77 has quit [Max SendQ exceeded]
<andrewvos> the latter is irritating
pawnbox has joined #ruby
crystal77 has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
mdw_ has quit [Quit: Sleeping Zzzzz]
crystal77 has quit [Max SendQ exceeded]
crystal77 has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
idefine has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
finnnnnnnnnnn_ has joined #ruby
finnnnnnnnnnn has quit [Ping timeout: 276 seconds]
finnnnnnnnnnn_ is now known as finnnnnnnnnnn
madgen has quit [Ping timeout: 252 seconds]
GodFather_ has joined #ruby
LoneHermit has joined #ruby
hk238 has quit [Disconnected by services]
cdg has quit [Remote host closed the connection]
hk238 has joined #ruby
cdg has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> sorry, got interrupted by a phone call
LoneHermit has quit [Ping timeout: 258 seconds]
<apeiros> thanks andrewvos, jhass, maloik, Darkwater and everybody who helped me bounce :)
<apeiros> phase_of_life it is
Jet4Fire has quit []
<jhass> dunno, are in a phase of your life if you're not yet or no longer alive?
<jhass> physical_state?
strigon33 has quit [Ping timeout: 260 seconds]
craigp has quit [Ping timeout: 260 seconds]
<maloik> what about your soul though
<jhass> irrelevant to some database on earth
<maloik> isn't his database in the cloud?
<Darkwater> #alive? -> :not_yet / :yes / :not_anymore
<jhass> in the wrong one
<Darkwater> :v
strigonLeader has joined #ruby
mikar has joined #ruby
skade has quit [Read error: Connection reset by peer]
strigonLeader is now known as 7GHAA6KLA
strigonLeader has joined #ruby
skade has joined #ruby
strigonLeader has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 252 seconds]
<apeiros> jhass: yes, that was why I didn't take it immediately. but I think it's an acceptable term, even if two states are "out of bounds" :)
<apeiros> incarnation_phase
eL_bamba has joined #ruby
<apeiros> added states: "in_search_of_new_vessel"
mauricari has joined #ruby
rbennacer has joined #ruby
<maloik> I so hope you're not working on AI. That'd creep me out.
<jhass> spiritual_state = previous_level|earth|next_level
mauricar has quit [Ping timeout: 244 seconds]
axl_ has joined #ruby
Velizar has joined #ruby
strigonLeader has joined #ruby
fenre has quit [Read error: Connection reset by peer]
kgrz has quit [Ping timeout: 250 seconds]
import_this has joined #ruby
tristanp has joined #ruby
<Velizar> RubyMine 2016.1 is the latest stable version, right? Why does my RubyMine stay at 8.0.4? I'm on OS X.
7GHAA6KLA has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Remote host closed the connection]
<apeiros> maloik: no, this stuff is mostly relevant for the insurance business part
<import_this> go to the jet brains site directly to get the latest version
<import_this> it should prompt you when opened
<import_this> the program rather not the site, but if it doesn't just download the trial install over and use your previous key
<Velizar> yeah it doesn't, and I don't know why. Guess I'll do that then
CROOKED^HILLARY^ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
<Velizar> 8.0.4 annoyingly flags the &. operator as an error
<import_this> what os are you using
adaedra has quit [Ping timeout: 244 seconds]
<Velizar> OS X, latest
idefine_ has quit [Remote host closed the connection]
<import_this> command + , for pref, search for inspections and expand ruby, you should be able to turn that off there
aharlan has joined #ruby
<Velizar> huh, it asks again for the license on my Arch Linux OS. Nevermind then
<import_this> if you hover over it it will give you the name of the warning to turn off
<Velizar> guess I'll just do that
<import_this> no don't worry about that
adaedra has joined #ruby
<import_this> you can use the license even the older version it will convert to the new one
tristanp_ has joined #ruby
<Velizar> yeah I know
<import_this> it will ask for your license again on both OSs
<Velizar> I meant I'll re-enter the license
<import_this> kk
nobitanobi has joined #ruby
d0lph1n98 has quit [Ping timeout: 260 seconds]
Juanchito has joined #ruby
mdih has quit [Quit: Leaving]
tristanp has quit [Ping timeout: 244 seconds]
SilverKey has joined #ruby
tristanp has joined #ruby
madgen has joined #ruby
import_this has quit [Quit: Textual IRC Client: www.textualapp.com]
startupality_ has joined #ruby
strigon33 has joined #ruby
startupality has quit [Ping timeout: 264 seconds]
startupality_ is now known as startupality
aharlan has quit [Quit: Textual IRC Client: www.textualapp.com]
tristanp_ has quit [Read error: Connection reset by peer]
B1n4r10 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
strigonLeader has quit [Ping timeout: 252 seconds]
eL_bamba has quit [Remote host closed the connection]
crankhar1er has quit [Quit: leaving]
import_this has joined #ruby
crankharder has joined #ruby
ctp has joined #ruby
giz|work has quit [Ping timeout: 264 seconds]
SilverKey has quit [Quit: Cheerio!]
stannard has quit [Remote host closed the connection]
hutch34_ has joined #ruby
stannard has joined #ruby
eL_bamba has joined #ruby
allenn has quit [Remote host closed the connection]
skade has quit [Read error: Connection reset by peer]
Sean__ has joined #ruby
hutch34__ has joined #ruby
B1n4r10 has quit [Ping timeout: 260 seconds]
skade has joined #ruby
B1n4r10 has joined #ruby
cjbottaro has joined #ruby
evidex has quit [*.net *.split]
centrx has quit [*.net *.split]
jrafanie has quit [*.net *.split]
dhk has quit [*.net *.split]
umdstu has quit [*.net *.split]
myntcake has quit [*.net *.split]
habitullence has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
ferr has quit [*.net *.split]
UserInNeed has quit [*.net *.split]
aphprentice has quit [*.net *.split]
aufi has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
yude has quit [*.net *.split]
DanKnox_ has quit [*.net *.split]
CloCkWeRX has quit [*.net *.split]
Asher has quit [*.net *.split]
nertzy has quit [*.net *.split]
ujjain has quit [*.net *.split]
joevandy1 has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
_ht_ has quit [*.net *.split]
mozzarella has quit [*.net *.split]
themightyabby has quit [*.net *.split]
Zackio has quit [*.net *.split]
patrick_star_3 has quit [*.net *.split]
triangles2 has quit [*.net *.split]
malcolmva has quit [*.net *.split]
canton7 has quit [*.net *.split]
nofxx has quit [*.net *.split]
hutch34 has quit [*.net *.split]
Ch4rAss has quit [*.net *.split]
sarlalian has quit [*.net *.split]
hightower3 has quit [*.net *.split]
armyriad has quit [*.net *.split]
andikr has quit [*.net *.split]
ta_ has quit [*.net *.split]
Evan_ has quit [*.net *.split]
spectra has quit [*.net *.split]
nekomune has quit [*.net *.split]
rbr has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
blackwell has quit [*.net *.split]
Raboo has quit [*.net *.split]
ereslibre_laptop has quit [*.net *.split]
jpterry has quit [*.net *.split]
csmb has quit [*.net *.split]
Kamilion has quit [*.net *.split]
Kruppe has quit [*.net *.split]
hadronzoo has quit [*.net *.split]
hutch34_ has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
SilverKey has joined #ruby
jhack has joined #ruby
dionysus69 has joined #ruby
bronson has joined #ruby
noway_ has joined #ruby
mdw has joined #ruby
armyriad has joined #ruby
M-Kodo has quit [Ping timeout: 260 seconds]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Devalo has joined #ruby
chouhoulis has joined #ruby
aries_liuxueyang has joined #ruby
ksmutthu_ has quit [Read error: Connection reset by peer]
idefine has quit [Ping timeout: 252 seconds]
gtsai has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ctp has joined #ruby
deadnull_ is now known as _deadnull
bronson has quit [Ping timeout: 252 seconds]
chouhoul_ has joined #ruby
Velizar has quit [Read error: Connection reset by peer]
gtsai has quit [Remote host closed the connection]
Velizar has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
TvL2386 has quit [Quit: Ex-Chat]
Snowy has quit [Remote host closed the connection]
idefine has joined #ruby
M-Kodo has joined #ruby
gtsai has joined #ruby
aegis3121 has quit [Ping timeout: 264 seconds]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
rodfersou is now known as rodfersou|lunch
fmcgeough has joined #ruby
zast has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
brandly has joined #ruby
aegis3121 has joined #ruby
flughafen_ has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 276 seconds]
borodin has joined #ruby
anisha has quit [Quit: Leaving]
anisha has joined #ruby
FooMunki has joined #ruby
anisha has quit [Client Quit]
tristanp has joined #ruby
smathy has joined #ruby
Yiota has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ljames has joined #ruby
cdg has quit [Remote host closed the connection]
adac has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
zyzioziom has quit [Ping timeout: 244 seconds]
B1n4r10 has quit [Ping timeout: 276 seconds]
banister has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
gfvcastro has joined #ruby
DoubleMalt has joined #ruby
nobitanobi has quit [Remote host closed the connection]
lukec has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
nobitanobi has joined #ruby
ss_much has joined #ruby
isene has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Halted.]
B1n4r10 has joined #ruby
speakingcode has quit [Remote host closed the connection]
hahuang61 has joined #ruby
codecop has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
SilverKey has joined #ruby
elementaru has quit [Ping timeout: 260 seconds]
mauricar has joined #ruby
skweek has joined #ruby
yardenbar has joined #ruby
borodin has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby
chopin has joined #ruby
mark_661 has quit [Quit: Leaving.]
mauricari has quit [Read error: Connection reset by peer]
diegoaguilar has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
borodin has joined #ruby
gtsai has quit [Remote host closed the connection]
skade has quit [Read error: Connection reset by peer]
isene2 has joined #ruby
skade has joined #ruby
madgen has quit [Ping timeout: 252 seconds]
swills has joined #ruby
conta has quit [Ping timeout: 276 seconds]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
startupality has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
gfvcastro has quit [Read error: Connection reset by peer]
flughafen_ has quit [Ping timeout: 258 seconds]
zyzioziom has joined #ruby
eL_bamba has quit [Quit: Leaving]
SilverKey has quit [Quit: Halted.]
nankyokusei has joined #ruby
gfvcastro has joined #ruby
dgynn has quit [Quit: dgynn]
andrewvos has quit [Quit: WeeChat 0.4.2]
freerobby has joined #ruby
nofxx has joined #ruby
sarlalian has joined #ruby
Ch4rAss has joined #ruby
hightower3 has joined #ruby
andikr has joined #ruby
Evan_ has joined #ruby
spectra has joined #ruby
nekomune has joined #ruby
rbr has joined #ruby
blackwell has joined #ruby
martinbjeldbak has joined #ruby
Raboo has joined #ruby
ereslibre_laptop has joined #ruby
jpterry has joined #ruby
csmb has joined #ruby
Kamilion has joined #ruby
Kruppe has joined #ruby
hadronzoo has joined #ruby
hightower3 has quit [Quit: Leaving]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
joonty has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
|2701 has quit [Quit: Connection closed for inactivity]
inukshuk_ has joined #ruby
inukshuk_ has quit [Client Quit]
nankyokusei has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
skolman_ has joined #ruby
moeabdol has joined #ruby
Devalo has joined #ruby
dgynn has joined #ruby
zyzioziom has quit [Ping timeout: 260 seconds]
skolman_ has quit [Remote host closed the connection]
isene2 has quit [Ping timeout: 244 seconds]
dhollinger has joined #ruby
rippa has joined #ruby
centrx has joined #ruby
jrafanie has joined #ruby
myntcake has joined #ruby
umdstu has joined #ruby
habitullence has joined #ruby
GarethAdams has joined #ruby
aphprentice has joined #ruby
UserInNeed has joined #ruby
aufi has joined #ruby
EdwardIII has joined #ruby
yude has joined #ruby
DanKnox_ has joined #ruby
nertzy has joined #ruby
Asher has joined #ruby
ujjain has joined #ruby
ByronJohnson has joined #ruby
joevandy1 has joined #ruby
_ht_ has joined #ruby
mozzarella has joined #ruby
themightyabby has joined #ruby
Zackio has joined #ruby
triangles2 has joined #ruby
patrick_star_3 has joined #ruby
malcolmva has joined #ruby
canton7 has joined #ruby
skolman has joined #ruby
myntcake has left #ruby ["Leaving"]
myntcake has joined #ruby
ByronJohnson has quit [Max SendQ exceeded]
aphprentice has quit [Max SendQ exceeded]
<umdstu> idk. happens a lot. i had to disable audio notifications because its annoying AF
<myntcake> ??
frem_ has joined #ruby
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
<myntcake> that was weird haha
<umdstu> happens daily
aphprentice has joined #ruby
Velizar has left #ruby [#ruby]
[Butch] has joined #ruby
<jhass> audio notifications for IRC joins? oO
crystal77 has joined #ruby
evidex has joined #ruby
skolman has quit [Ping timeout: 260 seconds]
UAS91 has joined #ruby
<UAS91> a
<UAS91> Hey guys, I have a quick question.
synthroid has joined #ruby
solars has quit [Ping timeout: 246 seconds]
skade has quit [Read error: Connection reset by peer]
brandly has quit [Ping timeout: 272 seconds]
import_this has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby
<UAS91> I'm trying to have text after a link_to in my conditional. link_to("text", path(user))
<UAS91> and I'm trying to add text right at the end of the link_to
<UAS91> It's not working if I just put a string on the next line, or at the end of this line
<smathy> ?rails UAS91
<ruby[bot]> UAS91: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<UAS91> And I don't want my entire string to be a link
<UAS91> yeah
<UAS91> rails 3
crystal77 has quit [Client Quit]
<umdstu> jhass: yes… it’s on by default in Colloquy.app
<umdstu> is that confusing to you?
ByronJohnson has joined #ruby
Coldblackice_ has joined #ruby
freerobby has quit [Quit: Leaving.]
synthroi_ has joined #ruby
synthroid has quit [Ping timeout: 244 seconds]
<jhass> sounds very annoying in normal use already
aufi has quit [Ping timeout: 240 seconds]
<umdstu> oh i have no doubt. but historically i had my computer muted
evidex has quit [*.net *.split]
dhollinger has quit [*.net *.split]
rippa has quit [*.net *.split]
centrx has quit [*.net *.split]
jrafanie has quit [*.net *.split]
umdstu has quit [*.net *.split]
myntcake has quit [*.net *.split]
habitullence has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
UserInNeed has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
yude has quit [*.net *.split]
DanKnox_ has quit [*.net *.split]
nertzy has quit [*.net *.split]
Asher has quit [*.net *.split]
ujjain has quit [*.net *.split]
joevandy1 has quit [*.net *.split]
_ht_ has quit [*.net *.split]
mozzarella has quit [*.net *.split]
themightyabby has quit [*.net *.split]
patrick_star_3 has quit [*.net *.split]
triangles2 has quit [*.net *.split]
Zackio has quit [*.net *.split]
malcolmva has quit [*.net *.split]
canton7 has quit [*.net *.split]
idefine has quit [Remote host closed the connection]
freerobby has joined #ruby
amclain has joined #ruby
UAS91 has quit [Quit: Page closed]
moeabdol has quit [Quit: WeeChat 1.4]
idefine has joined #ruby
norc has joined #ruby
Guest38 has joined #ruby
nando293921 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
isene2 has joined #ruby
andikr has quit [Remote host closed the connection]
whathappens has joined #ruby
whathapp_ has joined #ruby
tristanp_ has joined #ruby
yardenbar has quit [Quit: Leaving]
weemsledeux has joined #ruby
aegis3121 has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 272 seconds]
tristanp has quit [Ping timeout: 252 seconds]
kareeoleez has quit [Remote host closed the connection]
fergal_ has joined #ruby
evidex has joined #ruby
myntcake has joined #ruby
dhollinger has joined #ruby
rippa has joined #ruby
centrx has joined #ruby
jrafanie has joined #ruby
umdstu has joined #ruby
habitullence has joined #ruby
GarethAdams has joined #ruby
UserInNeed has joined #ruby
yude has joined #ruby
EdwardIII has joined #ruby
DanKnox_ has joined #ruby
nertzy has joined #ruby
Asher has joined #ruby
ujjain has joined #ruby
mozzarella has joined #ruby
joevandy1 has joined #ruby
_ht_ has joined #ruby
themightyabby has joined #ruby
Zackio has joined #ruby
patrick_star_3 has joined #ruby
triangles2 has joined #ruby
canton7 has joined #ruby
malcolmva has joined #ruby
whathappens has quit [Ping timeout: 240 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
dionysus69 has joined #ruby
<fergal_> hi guys, i have a rake file within which i have a task defined to output current status to stdout, using puts. however, i have noticed that when i run the task via my build system, the output is not displayed during execution, but rather, when the task finishes, all the output is displayed at once. how can i get rake to output the status as the task is running?
gizmore has joined #ruby
Alayde has joined #ruby
tristanp has joined #ruby
jmignault has joined #ruby
felipejose has joined #ruby
<felipejose> someone here this need to host a site, if you send me a message I'm offering 10 acconts for free
Couch has quit [Ping timeout: 246 seconds]
Alayde has left #ruby [#ruby]
jmignault has quit [Client Quit]
jmignault has joined #ruby
edwinvdgraaf has quit [Ping timeout: 272 seconds]
ksmutthu has joined #ruby
<gizmore> felipejose: ssh?
madgen has joined #ruby
tomphp has quit [Ping timeout: 264 seconds]
allcentury has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
fergal_ has left #ruby [#ruby]
smathy is now known as smathy_afk
senayar has quit []
import_this has joined #ruby
brendan- has joined #ruby
import_this has quit [Client Quit]
hutch34__ has quit [Quit: WeeChat 1.5]
hutch34 has joined #ruby
jmignault has quit [Read error: Connection reset by peer]
weckl has quit [Quit: Leaving]
rkazak has quit [Ping timeout: 260 seconds]
rbennacer has quit [Remote host closed the connection]
<myntcake> felipejose: how come?
nettoweb has joined #ruby
<felipejose> because I'm starting now and is a way to make it known
rbennacer has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
<norc> apeiros, got around to it. The overhead of creating a proc object bound to the functions block is really small.
import_this has joined #ruby
armyriad has quit [Quit: Leaving]
import_this has quit [Client Quit]
skweek has quit [Ping timeout: 264 seconds]
mleung has joined #ruby
smathy_afk is now known as smathy
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
benlieb has joined #ruby
<norc> apeiros, effectively the largest overhead is just an memory allocation - there is practically no initialization done aside from setting up flags and the class pointer.
<norc> So Im beginning to feel there is no real reason *not* to have a block argument, since it makes it much more explicit that you expect one.
davedev24 has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
<norc> asm>> Proc.new
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/576450
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 272 seconds]
armyriad has joined #ruby
idefine has joined #ruby
startupality has joined #ruby
psf has left #ruby [#ruby]
platzhirsch has quit [Quit: WeeChat 1.4]
agent_white has joined #ruby
tvw has quit [Ping timeout: 258 seconds]
<agent_white> Moin
Ch4rAss has quit [Quit: leaving]
blaxter has quit [Read error: Connection reset by peer]
mikecmpb_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
blaxter has joined #ruby
tildes_ has joined #ruby
GodFather_ has quit [Ping timeout: 272 seconds]
glcx_ has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
myntcake has quit [Ping timeout: 240 seconds]
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
rkoller has joined #ruby
startupality has quit [Ping timeout: 260 seconds]
B1n4r10 has quit [Ping timeout: 258 seconds]
RobertBirnie has joined #ruby
User458764 has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
lictor36 has joined #ruby
ico has joined #ruby
pandaant has quit [Remote host closed the connection]
felipejose has quit []
startupality has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
whathapp_ has quit [Remote host closed the connection]
whathappens has joined #ruby
dimatteo has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
shinnya has joined #ruby
startupality has quit [Ping timeout: 244 seconds]
barajasfab has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
antgel has quit [Ping timeout: 246 seconds]
skolman has joined #ruby
whathappens has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
Ebok has joined #ruby
ico has quit []
gtsai has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gtsai has quit [Read error: Connection reset by peer]
gtsai has joined #ruby
conta has joined #ruby
gtsai has quit [Read error: Connection reset by peer]
<apeiros> norc: paraphrasing: you say foo(&block) vs. foo() has almost no overhead?
gtsai has joined #ruby
lictor36 has quit [Quit: lictor36]
ChiefAlexander has quit [Remote host closed the connection]
<norc> apeiros, yes. I didnt do any benchmarking though, but I did not see a reason this should be costly (for libraries I would still avoid it if I can)
whathappens has joined #ruby
<norc> Though honestly anything where performance really matters is better implemented in C anyway.
aegis3121 has joined #ruby
whathapp_ has joined #ruby
conta has quit [Ping timeout: 258 seconds]
sesquipedalian has joined #ruby
hahuang61 has joined #ruby
flopsec has quit [Ping timeout: 244 seconds]
Guest56269 has quit [Quit: https://fnordserver.eu]
alxgsv has quit [Quit: https://fnordserver.eu]
startupality has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
m8 has quit [Quit: Sto andando via]
whathappens has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
mistermocha has joined #ruby
zast has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 244 seconds]
rodfersou|lunch is now known as rodfersou
tristanp has joined #ruby
Sean__ has quit [Quit: Textual IRC Client: www.textualapp.com]
ocbtec has quit [Quit: leaving]
tristanp_ has quit [Ping timeout: 260 seconds]
blaxter has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
hahuang61 has quit [Quit: WeeChat 1.5]
SilverKey has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
kfpratt has quit [Remote host closed the connection]
tvw has joined #ruby
kfpratt has joined #ruby
import_this has joined #ruby
startupality has quit [Read error: Connection reset by peer]
startupality_ has joined #ruby
rcvalle has joined #ruby
tacit7 has joined #ruby
tvw has quit [Remote host closed the connection]
ss_much has quit [Quit: Connection closed for inactivity]
mikecmpbll has joined #ruby
RegulationD has joined #ruby
sneakersec has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Madplatypus has joined #ruby
pabloh has joined #ruby
Cohedrin has joined #ruby
nobitanobi has joined #ruby
B1n4r10 has joined #ruby
hutch34_ has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
weemsledeux has joined #ruby
jaruga___ has quit [Quit: jaruga___]
evidex has joined #ruby
tristanp has joined #ruby
flopsec has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jolamb> is `v == :a || v == :b` better or worse ruby than `[:a, :b].include? v` ?
<umdstu> i like the first myself
<umdstu> err second*(
tristanp_ has quit [Ping timeout: 246 seconds]
<umdstu> include ftw!
lictor36 has joined #ruby
edwinvdgraaf has joined #ruby
Es0teric has joined #ruby
<jhass> ?better jolamb
<ruby[bot]> jolamb: "Best" and "better" are subjective. Try to use a different term.
tristanp_ has joined #ruby
LoneHerm_ has quit [Ping timeout: 264 seconds]
<jolamb> faster when looping over 100-300 elements
nankyokusei has joined #ruby
<umdstu> probably the first i think
<GarethAdams> jolamb: what is `v` in relation to the item in the loop?
tristanp has quit [Ping timeout: 272 seconds]
<jolamb> GarethAdams: just some variable containing a symbol, which may be :a or :b
tristanp has joined #ruby
<GarethAdams> so are you *selecting* items equal to :a or :b?
tristanp_ has quit [Ping timeout: 260 seconds]
qhan has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
<jolamb> GarethAdams: nope
tristanp_ has joined #ruby
<jolamb> ok, just timed it, the first form is faster
<qhan> hey folks
<GarethAdams> jolamb: my point is, when you're iterating, the way you're iterating (what you're trying to output) often changes the best way to write the thing in the loop
dimatteo has quit []
gtsai has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
<GarethAdams> so whether you're `select`ing or something else might affect your question
tristanp has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
<qhan> anyone know does ruby maintain key ordering when iterating a hash
<jolamb> GarethAdams: I understand and agree. This wasn't a question of selection though, I was just taking an action depending on some property of the current item in the set being iterated over
pabloh has quit [Quit: This computer has gone to sleep]
yuung has joined #ruby
<GarethAdams> jolamb: :)
norc has quit [Ping timeout: 246 seconds]
<Zarthus> jolamb: it may get faster if you try ary = [:a, :b]; do the loop; ary.include? v; end
codecop has joined #ruby
skade has joined #ruby
kareeoleez has joined #ruby
<Zarthus> jolamb: all the same though, the or statement is probably faster regardless, just less easy to maintain in the future if it changes
synthroid has joined #ruby
<qhan> hey I am new here
JoshGlzBrk has quit [Max SendQ exceeded]
<aegis3121> I don't believe hash order is guaranteed, ^ qhan
<GarethAdams> Hash order is guaranteed since 1.9 :)
JoshGlzBrk has joined #ruby
<aegis3121> or that ¯\_(ツ)_/¯
jackjackdripper has joined #ruby
norc has joined #ruby
startupality_ has quit [Read error: Connection reset by peer]
pabloh has joined #ruby
<jolamb> thanks all
<qhan> thanks all
<GarethAdams> http://ruby-doc.org/core-1.9.1/Hash.html > "Hashes enumerate their values in the order that the corresponding keys were inserted"
<qhan> so hash order is guaranteed since 1.9, what a fantastic thing
bronson has joined #ruby
synthro__ has joined #ruby
synthroi_ has quit [Ping timeout: 240 seconds]
skade has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
zel has joined #ruby
snockerton has joined #ruby
zel is now known as Guest38210
synthroid has quit [Ping timeout: 240 seconds]
yuung has quit [Quit: leaving]
diegoaguilar has quit [Ping timeout: 240 seconds]
<qhan> I am from other languages, so take sometime to get used to quirkiness about ruby, but hey, thanks for helping out!
bronson has quit [Ping timeout: 252 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdg_ has joined #ruby
elaptics is now known as elaptics`away
evidex has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
edwinvdg_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
ta_ has joined #ruby
User458764 has joined #ruby
startupality has joined #ruby
GodFather_ has joined #ruby
freerobby has quit [Quit: Leaving.]
cdg has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 246 seconds]
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
freerobby has joined #ruby
diegoviola has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
nanothief has joined #ruby
diegoaguilar has joined #ruby
craigp has joined #ruby
oncall-pokemon has joined #ruby
tristanp_ has joined #ruby
mwlang has joined #ruby
GarethAdams has quit [Quit: Leaving...]
<umdstu> was there a change in ruby 1.9.x to 2.x with respect to the Hash class, where before I could access a key with `objc.entityAuths.entity` though now that results in “undefined method `entity’ for #<Hash:…”
trista___ has joined #ruby
tristanp has quit [Ping timeout: 244 seconds]
zenlot6 has joined #ruby
<apeiros> umdstu: no
<apeiros> either you didn't have a Hash back then, or you had a monkey patched Hash
<umdstu> I saw HashWithIndifferentAccess somehwere
<apeiros> that's from rails, and I don't think it had that either.
<umdstu> yea its not, that was for a config file, just checked
zenlot has quit [Ping timeout: 276 seconds]
zeroDi has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
tristanp_ has quit [Ping timeout: 240 seconds]
trista___ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
smathy has joined #ruby
flak has joined #ruby
nertzy2 has joined #ruby
triangles3 has joined #ruby
jrafanie_ has joined #ruby
mozzarel1 has joined #ruby
yude_ has joined #ruby
umdstu_ has joined #ruby
last_staff1 has joined #ruby
centrx_ has joined #ruby
RedDwarf has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
Channel6 has joined #ruby
kgrz has quit [Ping timeout: 264 seconds]
habitullence_ has joined #ruby
Zackio has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
roamingdog has joined #ruby
norc_ has joined #ruby
last_staff has quit [Ping timeout: 258 seconds]
rippa has quit [Ping timeout: 258 seconds]
centrx has quit [Ping timeout: 258 seconds]
jrafanie has quit [Ping timeout: 258 seconds]
umdstu has quit [Ping timeout: 258 seconds]
habitullence has quit [Ping timeout: 258 seconds]
yude has quit [Ping timeout: 258 seconds]
Asher has quit [Ping timeout: 258 seconds]
nertzy has quit [Ping timeout: 258 seconds]
mozzarella has quit [Ping timeout: 258 seconds]
patrick_star_3 has quit [Ping timeout: 258 seconds]
triangles2 has quit [Ping timeout: 258 seconds]
last_staff1 is now known as last_staff
habitullence_ is now known as habitullence
centrx_ is now known as centrx
umdstu_ is now known as umdstu
patrick_star_3 has joined #ruby
norc has quit [Ping timeout: 260 seconds]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<qhan> \exit
qhan has quit [Quit: leaving]
Asher has joined #ruby
spider-mario has joined #ruby
tvw has joined #ruby
tristanp_ has joined #ruby
yfeldblum has joined #ruby
pabloh has quit [Quit: This computer has gone to sleep]
Channel6 has quit [Ping timeout: 260 seconds]
sauvin has quit [Remote host closed the connection]
trista___ has joined #ruby
tristanp has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
arlek_ has joined #ruby
Channel6 has joined #ruby
whathapp_ has quit [Quit: Leaving...]
troulouliou_div2 has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 240 seconds]
trista___ has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
prestorium has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giz|work has joined #ruby
Gasher has joined #ruby
mikecmpbll has joined #ruby
Channel6 has quit [Ping timeout: 244 seconds]
arlek_ has quit [Ping timeout: 250 seconds]
tristanp_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
startupality has quit [Ping timeout: 276 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
tristanp has joined #ruby
SilverKey has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilverKey has joined #ruby
roamingdog has quit [Remote host closed the connection]
vikid has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
ibeekman has joined #ruby
jmignault has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has quit [Quit: lukec]
wilbert has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
eL_bamba has joined #ruby
JoshGlzBrk has joined #ruby
Channel6 has joined #ruby
JoshGlzBrk has quit [Client Quit]
tristanp has quit [Ping timeout: 240 seconds]
CROOKED^HILLARY^ has quit [Ping timeout: 240 seconds]
recurrence has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
diegoviola has quit [Quit: WeeChat 1.5]
<recurrence> I have a class that I want to put inside a module and submodule. Is there a way to define all that in one line? Ostensibly, is 'class ModuleA::ModuleB::ClassA' semantically the same?
tristanp has joined #ruby
<ibeekman> Hi guys, I have basically no ruby experience other than a few Homebrew formula contributions. I'm currently trying to fix some stuff a certain formula installs using homebrew's `inreplace` with s.gsub! but ruby regular expressions are giving me a hell of a time... I've done some googling and read up in the ruby-docs on gsub and regexps but am still a bit lost. My problem is that I want to strip off the path from the compiler and linker
<ibeekman> executables that get embedded in an include makefile because these point to shim scripts that are only useable during the homebrew install process... here is my current attempt: https://gist.github.com/zbeekman/339a3f07a9f540a37abcaa51aa28c840
zyzioziom has joined #ruby
bronson has joined #ruby
joonty has joined #ruby
chouhoulis has joined #ruby
<recurrence> Hi ibeekman , you may want to check http://rubular.com/ out :)
jhack has quit [Quit: jhack]
<ibeekman> This is the error that I get when I try it: https://gist.github.com/zbeekman/9ebe0dfdb7107ce3c387738f212b5ffa
banister has joined #ruby
Dysp has joined #ruby
<jhass> ibeekman: protip: a gist can have more than one file ;)
<smathy> recurrence, you need to define the "containing" modules before using them as namespaces for ClassA.
zyzioziom has quit [Client Quit]
tristanp_ has quit [Ping timeout: 252 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alxgsv has joined #ruby
symm- has joined #ruby
<jhass> ibeekman: %r{...} literals help to get rid of the \/ headaches for starters
jenrzzz has joined #ruby
<recurrence> Hi smathy, ah thanks!
tristanp_ has joined #ruby
<jhass> ibeekman: [0-9.] is equivalent to . (any character)
Juanchito has quit [Quit: Connection closed for inactivity]
<jhass> (you meant [0-9\.] most likely)
chouhou__ has joined #ruby
chouhoul_ has quit [Ping timeout: 276 seconds]
<smathy> recurrence, you're welcome.
bronson has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 252 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
startupality has joined #ruby
blaxter has joined #ruby
<jhass> ibeekman: the error says there's no nothing matching /\/usr\/local\/homebrew\/Library\/ENV\/4\.3\/clang\+\+/ in the file
elomatreb has left #ruby ["Leaving"]
<jhass> which seems different to the code you've shown (using [0-9.]+ instead of 4\.3)
CJKinni` has joined #ruby
<ibeekman> @jhass I moved the error to the same gist. re \. yes, so many different regexp dialects, and I'm not too familiar with ruby's... in sed, awk, grep etc. things taken inside [] usually don't need escaping... thanks also the %r{} is very usefull just reading up on that now... I'll perform some more
kobain has quit [Ping timeout: 260 seconds]
<ibeekman> yes, sorry, 4.3 is the simplified case I got rid of the generic portion of the regexp
adac has joined #ruby
<jhass> ibeekman: oh, looks like I was wrong about . needing escaping in [], sorry
majuscul1 is now known as majuscule
tvw has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CJKinni has quit [Ping timeout: 250 seconds]
<norc_> ibeekman, your regex always matches with a trailing dot.
<norc_> ibeekman, so it would match 1.2.3. rather than 1.2.3
<norc_> Or. It does not.
<smathy> :)
tristanp has quit [Read error: Connection reset by peer]
<smathy> Ex-Perl people be like WHA!?!
tristanp has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<norc_> My head somehow does not stop spinning.
nando293921 has quit [Quit: Lost terminal]
<ibeekman> jhass: yes the error is complaining about not matching, but it should be matching which is why I'm confused... norc_ yes it will match those cases... i feel like it is specific enough for my application though, the rest of the REGEXP is disambiguating that there is little to no danger of 1.2.3. being encountered... although . might be a problem... scratch that I'll use a grouping to do it correctly like you suggest
aegis3121 has quit [Ping timeout: 244 seconds]
stannard_ has joined #ruby
<jhass> ibeekman: what's the real value you want to match?
stannard has quit [Ping timeout: 240 seconds]
tristanp_ has joined #ruby
nando293921 has joined #ruby
<jhass> and what's the error matching your code (or the code matching your error)
chouhou__ has quit [Remote host closed the connection]
<ibeekman> Lines like `GASNETTOOLS_CXX = /usr/local/homebrew/Library/ENV/4.3/clang++` should get replaced with `GASNETTOOLS_CXX = clang++`
saneax is now known as saneax_AFK
<ibeekman> jhass I don't understand your most recent question
<jhass> the error says your regex is /\/usr\/local\/homebrew\/Library\/ENV\/4\.3\/clang\+\+/
<jhass> but your code doesn't have the \/4\.3\/ part
<jhass> it has \/[0-9.]+\/ there instead
<jhass> so there's a mismatch
tristanp has quit [Ping timeout: 264 seconds]
<jhass> between the code you've run to get the error
<jhass> and the code you've shown
skade has joined #ruby
tristanp has joined #ruby
<norc_> jhass, Im actually wondering what the error message really means.
<ibeekman> jhass yes the error is for replacing the `[0-9.]` with `4\.3`
codezomb has joined #ruby
<ibeekman> I think it's from homebrew's `inreplace`... maybe I should be asking over there...
<jhass> for what it's worth however the code in the error matches your example http://rubular.com/r/0xNjNYT3LF and so does the code you've shown http://rubular.com/r/fZZ0lVAex6
<jhass> ibeekman: actually, what's ENV.cc's value?
<norc_> ibeekman, also please make it a habit to always include a stack trace for any ruby errors. It is probably not relevant in this case, but often it is very useful information.
skade has quit [Read error: Connection reset by peer]
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
pabloh has joined #ruby
pabloh has quit [Client Quit]
recurrence has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 252 seconds]
crystal77 has joined #ruby
startupality has quit [Ping timeout: 260 seconds]
conta has joined #ruby
hutch34 has joined #ruby
<ibeekman> Thanks for the help guys... I think I may have found the issue: the first gsub! is matching clang++ and clang, so it is stripping out the path. Then the second gsub gets there but ther are no longer any full paths to the clang++ shim.
barajasfab has quit [Quit: Ex-Chat]
banister has joined #ruby
gtsai has joined #ruby
<jhass> yup sounds right
<jhass> I suspected ENV.cc might be clang++ but that's just a variant of that issue
hutch34_ has quit [Ping timeout: 244 seconds]
<jhass> (your code will fail if ENV.cc and ENV.cxx have the same value)
startupality has joined #ruby
<norc_> ibeekman, note, the stack trace would then show that the offending line is the second call to gsub! there.
<norc_> :o(
elementaru has joined #ruby
pabloh has joined #ruby
skade has joined #ruby
<ibeekman> ENV.cc is clang and ENV.cxx is clang++ so the first substitution accidentally handles the second one...
<ibeekman> norc_ I will make sure to remember to do it for next time, sorry I forgot it here
<norc_> ibeekman, use a single gsub! with a backreferences like \1 maybe?
conta has quit [Ping timeout: 246 seconds]
LoneHermit has joined #ruby
lictor36 has quit [Quit: lictor36]
<ibeekman> norc_ are there word boundaries? I know emacs regexp has \> for word boundary... that would let me handle the matches individually (because ENV.cc might be gcc and ENV.cxx might be g++ etc.)
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 244 seconds]
<ibeekman> oh \b?
skol has joined #ruby
<jhass> ibeekman: it is in your setup, but can you guarantee for all possible setups? ;)
<jhass> and yes, \b
skol has quit [Client Quit]
<jhass> I mean $ should be fine here too
RobertBirnie has quit [Ping timeout: 240 seconds]
<jhass> but is less general of course
joes has quit [Quit: leaving]
joes has joined #ruby
LoneHermit has quit [Ping timeout: 272 seconds]
rodfersou is now known as rodfersou|coffee
symm- has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
tristanp_ has joined #ruby
<umdstu> *works on my machine*
* umdstu closes ticket
RobertBirnie has joined #ruby
whathappens has joined #ruby
symm- has joined #ruby
<shevy> :D
tristanp has quit [Ping timeout: 244 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
jancel has joined #ruby
gtsai has quit [Remote host closed the connection]
kies has quit [Ping timeout: 264 seconds]
anisha has quit [Quit: Leaving]
<ibeekman> umdstu are you a student at UMD?
roamingdog has joined #ruby
swills has quit [Ping timeout: 272 seconds]
<umdstu> ibeekman: omg
<umdstu> first person ever to actual make the connection
<umdstu> actually*
<umdstu> …but no
gtsai has joined #ruby
<umdstu> not for a while at least
tristanp_ has joined #ruby
<ibeekman> jhass I much prefer \b because there is no absolute garauntee it will be at the end of a line...
moeabdol has quit [Ping timeout: 250 seconds]
<ibeekman> as for the [0-9] matching I'm doing something more robust...
chouhoul_ has joined #ruby
<ibeekman> umdstu cool when did you graduate/quit/peace out? My advisor moved there from Princeton so I'm working for her at UMD while finishing my PhD from Princeton
chouhoul_ has quit [Remote host closed the connection]
startupality has quit [Ping timeout: 246 seconds]
chouhoul_ has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
<umdstu> graduated ‘09
<ibeekman> oh cool. Ever work for UMIACS? Your ticket closing joke reminded me of a bunch of those guys
<umdstu> yes i d
<umdstu> did*
<ibeekman> lol
<umdstu> well
<umdstu> i worked for the CS department
jackjackdripper has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
<umdstu> i’m super original with my usernames… when I was at virginia tech my username was…. vtechstu
* umdstu drops mic
anisha has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has joined #ruby
rodfersou|coffee is now known as rodfersou
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
umdstu has quit [Quit: umdstu]
ibeekman has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
whathappens has quit [Remote host closed the connection]
kirun has joined #ruby
skade has quit [Read error: Connection reset by peer]
stannard_ has quit [Remote host closed the connection]
skade has joined #ruby
lukec has joined #ruby
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
skade has quit [Client Quit]
dhk has joined #ruby
Cohedrin has joined #ruby
codecop has quit [Remote host closed the connection]
skade has joined #ruby
slackbotgz has joined #ruby
seanzie has joined #ruby
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp_ has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
rkoller has quit [Read error: Connection reset by peer]
tristanp has quit [Read error: Connection reset by peer]
glcx_ has quit [Quit: This computer has gone to sleep]
rkoller has joined #ruby
axl_ has quit [Quit: axl_]
mdw has quit [Quit: Sleeping Zzzzz]
tristanp has joined #ruby
mauricar has quit [Quit: Leaving]
gtsai has quit [Remote host closed the connection]
gizless has joined #ruby
mwlang has quit [Quit: mwlang]
jenrzzz has joined #ruby
|2701 has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
glcx_ has joined #ruby
seanzie has quit [Quit: leaving]
joonty has quit [Ping timeout: 276 seconds]
SilverKey has quit [Quit: Halted.]
gizmore|2 has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
jancel has quit [Read error: Connection reset by peer]
gizmore|3 has joined #ruby
diegoviola has joined #ruby
gizmore has quit [Ping timeout: 244 seconds]
glcx_ has quit [Client Quit]
gizmore has joined #ruby
Channel6 has quit [Read error: Connection reset by peer]
gtsai has joined #ruby
nobitanobi has joined #ruby
gizless has quit [Ping timeout: 276 seconds]
tristanp has joined #ruby
gtsai has quit [Remote host closed the connection]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
tristanp_ has quit [Read error: Connection reset by peer]
jancel has joined #ruby
axl_ has joined #ruby
import_this has left #ruby ["Textual IRC Client: www.textualapp.com"]
gizmore|2 has quit [Ping timeout: 276 seconds]
recurrence has joined #ruby
SilverKey has joined #ruby
axl_ has quit [Client Quit]
gizmore|3 has quit [Ping timeout: 264 seconds]
gizless has joined #ruby
axl_ has joined #ruby
DoubleMalt has joined #ruby
gizmore|2 has joined #ruby
tomphp has joined #ruby
stannard_ has joined #ruby
tildes_ has quit [Ping timeout: 258 seconds]
gizmore has quit [Ping timeout: 246 seconds]
<benzrf> hey, any TH buffs here?
zeroDi has quit [Quit: WeeChat 1.5]
allcentury has quit [Ping timeout: 244 seconds]
gizmore has joined #ruby
cdg has joined #ruby
<benzrf> is there a notation for $(something [| ...stuff here... |])?
<benzrf> like calling a lisp-style macro
jhack has joined #ruby
<Papierkorb> benzrf: what are you trying to do?
gizmore|3 has joined #ruby
<benzrf> oh christ
<benzrf> i meant #haskell lmao
gizless has quit [Ping timeout: 260 seconds]
dgynn_ has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
import_t_ has joined #ruby
gizless has joined #ruby
import_t_ has quit [Client Quit]
import_t_ has joined #ruby
dgynn has quit [Ping timeout: 252 seconds]
dgynn_ is now known as dgynn
gfvcastro has joined #ruby
gizmore|2 has quit [Ping timeout: 260 seconds]
gizmore|2 has joined #ruby
skade has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
nettoweb has joined #ruby
s00pcan has quit [Quit: leaving]
gizmore|4 has joined #ruby
seanzie has joined #ruby
s00pcan has joined #ruby
joes__ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gizmore has quit [Ping timeout: 276 seconds]
gizmore|3 has quit [Ping timeout: 244 seconds]
gizless has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
joes__ has quit [Client Quit]
joes__ has joined #ruby
solars has joined #ruby
mtkd has quit [Ping timeout: 244 seconds]
gizmore|2 has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joes__ has quit [Client Quit]
_joes____ has joined #ruby
arthurl has joined #ruby
<arthurl> can someone please help me understand why this might be happening? https://gist.github.com/alyssenko/8c745f6b54fb29dab8924a2ab80ac629
mesamoo has quit [Excess Flood]
ReK2 has quit [Remote host closed the connection]
seanzie has quit [Quit: leaving]
<arthurl> i'm attempting to install a passenger module for apache
mesamoo has joined #ruby
gizmore|4 has quit [Ping timeout: 276 seconds]
seanzie has joined #ruby
ReK2 has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
import_t_ is now known as import_this
import_this has quit [Quit: Textual IRC Client: www.textualapp.com]
mtkd has joined #ruby
gtsai has joined #ruby
import_this has joined #ruby
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
platzhirsch has joined #ruby
startupality has quit [Read error: Connection reset by peer]
_joes____ has quit [Client Quit]
import_this has quit [Client Quit]
nankyokusei has quit [Remote host closed the connection]
<jhass> arthurl: well, passenger 2.2.2 is 7 years old
centrx has quit [Quit: centrx]
futilegames has joined #ruby
gtsai has quit [Remote host closed the connection]
<arthurl> jhass yes- unfortunately the dev team can't upgrade this older rails 2.x app we have so i'm trying to move an existing web server that supports this app into aws, basically trying to mirror what we currently have it's running off of passenger 2.2.2
_joes____ has joined #ruby
<arthurl> not sure if that's a requirement
<arthurl> probably isn't
recurrence has quit [Ping timeout: 258 seconds]
<jhass> stuck on old, likely insecure passenger, old & insecure ruby (known issues, yeah), guess you can just install a 7 years old OS while being stuck in 2009
_joes____ has quit [Client Quit]
<jhass> if you use the time machine, do it fully
slackbotgz has quit [Remote host closed the connection]
jancel has quit [Remote host closed the connection]
<jhass> I bet on either your gcc or boost being "too new", probably both
moeabdol has joined #ruby
<jhass> also it looks like you're trying to compile the passenger 2.2.2 installed to your ruby-1.9.3-p551 with your ruby-1.8.7-head activated
pjaspers has quit [Remote host closed the connection]
<jhass> please just never connect that thing to the internet
tristanp has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
gtsai has joined #ruby
adac has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
roamingdog has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
blackgoat has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
roamingdog has joined #ruby
tristanp_ has joined #ruby
devwop has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
devwop has left #ruby [#ruby]
moeabdol has quit [Ping timeout: 250 seconds]
trista___ has joined #ruby
borodin has quit [Quit: Page closed]
tristanp has quit [Ping timeout: 252 seconds]
Snowy has joined #ruby
<smathy> (or let us all know the IP if you do)
swills has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has joined #ruby
VeryBewitching has joined #ruby
trista___ has quit [Read error: Connection reset by peer]
seanzie has quit [Quit: leaving]
Snowy has quit [Remote host closed the connection]
tristanp has joined #ruby
<tgeeky> jhass: thanks for your help last night. I ended up making use of the ->(match) { } lambda syntax
duckpuppy has quit [Ping timeout: 260 seconds]
hutch34_ has joined #ruby
<tgeeky> jhass: I actually didn't see your link until very much later
finisherr has joined #ruby
johnmilton has quit [Remote host closed the connection]
<jhass> well that was the least relevant part of it
<tgeeky> well, it was a part that was critical to me getting it to work properly
gtsai has quit [Read error: Connection reset by peer]
<jhass> you already had Proc.new?
tomphp has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
<jhass> that's roughly equivalent, for this usecase anyhow
<tgeeky> procs didn't work right for some reason
<tgeeky> well, they didn't work as I tried them
<jhass> sure, the issue must've been elsewhere and you misinterpreted that as the cause
gtsai has joined #ruby
kobain has joined #ruby
centrx has joined #ruby
jmignault has quit [Quit: quittin' time, Ralph]
<tgeeky> the issue was that I was desiring the proc to be executed in the context of the caller
jmignault has joined #ruby
synthro__ has quit []
<tgeeky> and i needed to explicitly pass in something for it to work
import_this has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
SilverKey has quit [Quit: Halted.]
<tgeeky> there is the code that I finally got working properly
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tgeeky> i am now going to make the other changes you reccomended (though I'm not moving away from nested multimap yet
<tgeeky> )
bronson has joined #ruby
diegoaguilar has joined #ruby
<tgeeky> jhass: but this code properly mimics the if/elsif/elsif/elsif/else behavior, and reduces the number of times the regex is used to a minimum
SilverKey has joined #ruby
<tgeeky> jhass: I can't show you actual output, as the data is real, but it works.
<arthurl> jhass thank you for the insight sir- and yes no plans to have this thing ever talk to the internet :)
<tgeeky> jhass: anyway, your support and your code helped me in my time of need, and helped guide me in the right direction.
<tgeeky> jhass++
<tgeeky> aww, no karmabot
<arthurl> "also it looks like you're trying to compile the passenger 2.2.2 installed to your ruby-1.9.3-p551 with your ruby-1.8.7-head activated" is that necessarily a problem ?
<jhass> yes
elaptics`away is now known as elaptics
crystal77 has joined #ruby
pabloh has quit [Quit: This computer has gone to sleep]
curses has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
platzhirsch has quit [Ping timeout: 240 seconds]
platzhirsch has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<tgeeky> jhass: one thing you mentioned, and I still want to do
<tgeeky> jhass: how do I turn the from_table string into an actual ruby method identifying the ActiveRecord connection?
<tgeeky> ie, 'contact'
lukec has quit [Quit: lukec]
<tgeeky> (i mean to_table)
Gasher has quit [Quit: Leaving]
moredhel has quit [Remote host closed the connection]
<jhass> idk your context enough and I'm not really up to crawl through that new mess you posted
<jhass> stuff to investigate is Object#public_send, Object#instance_variable_get
<tgeeky> jhass: it's tremendously less messy now, there is just more extra code
<jhass> when ((not I stop reading there
<tgeeky> jhass: ok thanks
curses has quit [Client Quit]
fmcgeough has quit [Quit: fmcgeough]
tristanp_ has joined #ruby
workmad3 has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
<tgeeky> jhass: in which case, you already read the relevant part to my question
<jhass> nah I scrolled around
<arthurl> jhass switching over via 'rvm use ruby-1.9.3-p551' made no difference unfortunately
<jhass> chances are you might even just be able to store the object where you store the string currently
curses has joined #ruby
<tgeeky> jhass: yes, I thought of that. We'll find out, I guess. I need to make a connection pool, eventually.
<jhass> arthurl: didn't expect it so, the issues with that would arise after successful compilation
<jhass> arthurl: that's still more of a gcc/boost issue
<jhass> tgeeky: AR has one internally
rodfersou has quit [Quit: leaving]
tristanp has joined #ruby
nando293921 has quit [Quit: Lost terminal]
tristanp_ has quit [Read error: Connection reset by peer]
DoubleMalt has quit [Remote host closed the connection]
<tgeeky> jhass: do you know if AR cares about different classes inside transactions? ie: Contact.transaction do ... some_other_table = SomeOtherTable...
<jhass> no idea
<tgeeky> roger, thanks.
moei has quit [Quit: Leaving...]
nando293921 has joined #ruby
ajax0xd9 has joined #ruby
skade has quit [Read error: Connection reset by peer]
tomphp has quit [Ping timeout: 246 seconds]
noway_ has quit [Ping timeout: 264 seconds]
recurrence has joined #ruby
tristanp_ has joined #ruby
Devalo has quit [Remote host closed the connection]
nando293921 has quit [Client Quit]
tomphp has joined #ruby
jenrzzz_ has joined #ruby
startupality has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
import_this has left #ruby ["Textual IRC Client: www.textualapp.com"]
ajax0xd9 has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
SilverKey has quit [Quit: Halted.]
jenrzzz has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
testing has joined #ruby
<arthurl> jhass i think you're right- i'll try downgrading gcc from 4.4 to 4.1 https://svn.boost.org/trac/boost/ticket/6631
testing is now known as Guest7245
centrx has quit [Quit: centrx]
<Guest7245> How do I move my method out of my initializer? https://gist.github.com/stuffandthings/d2e5694d09a7a67bce71cac8fd7d123b
Yiota has quit [Ping timeout: 246 seconds]
yude_ has quit [Read error: Connection reset by peer]
kgrz has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
RegulationD has joined #ruby
lukec has joined #ruby
beauby has quit [Quit: leaving]
kgrz has quit [Ping timeout: 250 seconds]
Yiota has joined #ruby
ldnunes has quit [Quit: Leaving]
s00pcan has quit [Ping timeout: 246 seconds]
hutch34 has joined #ruby
<jhass> Guest7245: how about https://p.jhass.eu/1v.rb
hutch34_ has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
axl_ has quit [Ping timeout: 244 seconds]
recurrence has quit [Ping timeout: 272 seconds]
axl_ has joined #ruby
startupality has quit [Ping timeout: 264 seconds]
recurrence has joined #ruby
dhk has quit [Quit: Leaving]
<tobiasvl> hmmm is there a way to make ^ and $ match for lines using \r\n as well?
<tobiasvl> I'm not very well versed in those line breaks
neha- has joined #ruby
<jhass> don't they by default?
<neha-> is there a way to do a map and then a reduce in one statement?
<tobiasvl> jhass: not in a script I wrote two years ago
<jhass> mh
<tobiasvl> got a bug report on it now :P
<jhass> neha-: example of the two statement thing?
<neha-> irc.manas.ca
<neha-> oops
<neha-> requested_total = user_with_posts.posts.map { |p| p.requested }
<neha-> requested_total = requested_total.reduce(:+)
<neha-> i'm sure there is a better way :/
ramortegui has quit [Quit: Ex-Chat]
<jhass> neha-: user_with_posts.posts.reduce(0) {|sum, post| sum + p.requested }
<jhass> s/p/post/
<neha-> thanks although i don't get it
<neha-> i'll read up on reduce more
<tgeeky> requested_total = user_with_posts.posts.map { |p| p.requested }.reduce(:+)
<neha-> does that work tgeeky?
<neha-> that is ideal
<tgeeky> shrug. try it?
recurrence has quit [Ping timeout: 258 seconds]
<neha-> oh it actually works
<neha-> yay
<tgeeky> neha-: the concept is easy for mapreduce. map takes a set of things to some other set of things. reduce takes a set of things, and repeats some operation until you only have one thing left.
<neha-> yeah i get that, i'm not sure of the syntax of jhass' line
recurrence has joined #ruby
<neha-> is 0 just the initial val and then sum the running total?
whathapp_ has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
<tgeeky> neha-: 0 is not the initial value, it's the default value.
skade has joined #ruby
<tgeeky> if you are adding a bunch of things together, 0 is the value which will have no effect
wilbert has quit [Ping timeout: 240 seconds]
<tgeeky> (for multiplication, this would be 1)
whathappens has joined #ruby
<tgeeky> their example is multiplication
<neha-> well they say initial value
<tgeeky> > (5..10).reduce(1) { |product, n| product * n }
<tgeeky> >> (5..10).reduce(1) { |product, n| product * n }
<ruby[bot]> tgeeky: # => 151200 (https://eval.in/576565)
yfeldblum has quit [Ping timeout: 260 seconds]
<neha-> but i get what you mean
<tgeeky> neha-: well, let's see what happens when we put 2 in here
<tgeeky> >> (5..10).reduce(2) { |product, n| product * n }
<ruby[bot]> tgeeky: # => 302400 (https://eval.in/576566)
finisherr has quit [Ping timeout: 244 seconds]
<tgeeky> >> (5..10).reduce(0) { |sum, n| sum + n }
<ruby[bot]> tgeeky: # => 45 (https://eval.in/576567)
<tgeeky> >> (5..10).reduce(1) { |sum, n| sum + n }
* tgeeky waits
startupality has joined #ruby
<jhass> neha-: note it's fairly wasteful to create an array here
<neha-> yeah true
finisherr has joined #ruby
<tgeeky> neha-: jhass is vastly smarter than I am with ruby, you would be wise to do what he says
platzhirsch has quit [Ping timeout: 244 seconds]
<tgeeky> >> (5..10).reduce(1) { |sum, n| sum + n }
<ruby[bot]> tgeeky: # => 46 (https://eval.in/576568)
<jhass> neha-: also is this active record?
<neha-> yeah it makess sense
<neha-> and yeah it is activerecord
<jhass> posts.sum(:requested)
<jhass> just let the DB do it
ta_ has quit [Remote host closed the connection]
<neha-> yeah i could do that too
<neha-> thanks
<tgeeky> neha-: when in doubt, do a microbenchmark to prove it's better :O
johnmilton has joined #ruby
<neha-> haha how do you do that
tgeeky has quit [Quit: Lost terminal]
amnan has joined #ruby
<neha-> i see there are some microbenchmark frameworks :o
<jhass> benchmark-ips is probably the easiest still to get it fairly right
<neha-> cool
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
kith has joined #ruby
<Guest7245> jhass: ahh, perfect! I haven't used each_with_object... nice
lukec has quit [Quit: lukec]
rbennacer has quit [Ping timeout: 272 seconds]
arthurl has quit [Ping timeout: 252 seconds]
tgeeky has joined #ruby
<tgeeky> heh. that's a first. I somehow hit a hotkey to logout of my computer and couldn't stop it.
Guest7245 has quit [Quit: Page closed]
johnmilton has quit [Ping timeout: 260 seconds]
eGGshke has quit [Quit: Leaving...]
elaptics is now known as elaptics`away
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has quit [Remote host closed the connection]
GarethAdams has joined #ruby
tristanp has joined #ruby
Dysp has quit [Read error: Connection reset by peer]
tristanp_ has quit [Ping timeout: 258 seconds]
madgen has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
bluOxigen has quit [Ping timeout: 250 seconds]
tristanp has quit [Ping timeout: 252 seconds]
joevandy1 is now known as joevandyk
norc_ has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
whathappens has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 272 seconds]
whathappens has joined #ruby
tristanp_ has quit [Ping timeout: 258 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ledestin has joined #ruby
Juanchito has joined #ruby
jmignault has quit [Ping timeout: 252 seconds]
ChiefAlexander has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
tristanp has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 260 seconds]
whathappens has quit [Ping timeout: 264 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
unreal has quit [Read error: Connection reset by peer]
norc_ has joined #ruby
amnan has quit [Quit: Goodbye]
unreal has joined #ruby
jnoob22 has joined #ruby
recurrence has quit [Ping timeout: 276 seconds]
sneakersec has quit [Ping timeout: 260 seconds]
snguyen has joined #ruby
recurrence has joined #ruby
Azure has joined #ruby
gtsai_ has joined #ruby
jmignault has joined #ruby
jmignault has quit [Read error: Connection reset by peer]
jmignault has joined #ruby
centrx has joined #ruby
gtsai has quit [Ping timeout: 252 seconds]
chrisja has joined #ruby
Devalo has joined #ruby
whathappens has joined #ruby
snguyen has quit [Client Quit]
snguyen has joined #ruby
whathapp_ has joined #ruby
m_antis has joined #ruby
axl_ has quit [Quit: axl_]
curses has quit []
A124 has quit [Ping timeout: 272 seconds]
sfmk has joined #ruby
stannard_ has quit [Remote host closed the connection]
A124 has joined #ruby
jmignault has quit [Ping timeout: 244 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
Devalo has quit [Ping timeout: 276 seconds]
whathappens has quit [Ping timeout: 272 seconds]
whathappens has joined #ruby
startupality has quit [Read error: Connection reset by peer]
neanderslob has quit [Ping timeout: 246 seconds]
whathapp_ has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
yfeldblum has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sammichmaker has joined #ruby
sepp2k has quit [Quit: Leaving.]
moeabdol has joined #ruby
startupality has joined #ruby
bobbycvi has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
<tobiasvl> if I run an external program with IO.popen, which first prompts the user for something, and only when the user has input that do I want to puts to it, how do I do that?
<tobiasvl> or should I just gets from the user first and puts that to the IO maybe
tristanp has quit [Read error: Connection reset by peer]
whathapp_ has joined #ruby
crystal77 has joined #ruby
tristanp has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
tacit7 has quit [Ping timeout: 244 seconds]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
roamingdog has quit [Remote host closed the connection]
pabloh has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
moei has joined #ruby
mtkd has joined #ruby
eL_bamba has quit [Quit: Leaving]
whathappens has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
trista___ has joined #ruby
spider-mario has quit [Remote host closed the connection]
gigetoo has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
snguyen has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
[Butch] has quit [Quit: I'm out . . .]
recurrence has quit [Read error: Connection reset by peer]
tristanp_ has quit [Ping timeout: 252 seconds]
k3rn31 has joined #ruby
jancel has joined #ruby
tristanp has joined #ruby
solars has quit [Ping timeout: 252 seconds]
trista___ has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
Contigi has joined #ruby
benlieb has quit [Quit: benlieb]
jancel has quit [Ping timeout: 252 seconds]
startupality has quit [Ping timeout: 276 seconds]
dhk has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenlot has joined #ruby
kies has joined #ruby
zenlot6 has quit [Ping timeout: 252 seconds]
kies has quit [Max SendQ exceeded]
k3rn31 has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> >> "monkey business" > "busy monkey"
<ruby[bot]> al2o3-cr: # => true (https://eval.in/576619)
gfvcastro has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
tristanp has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
Synthead has joined #ruby
skade has quit [Client Quit]
skade has joined #ruby
skade has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
roamingdog has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
polishdub has quit [Quit: Leaving]
roamingdog has quit [Remote host closed the connection]
daftdolphin has joined #ruby
weemsledeux has joined #ruby
tristanp_ has joined #ruby
benlieb has joined #ruby
davedev24 has quit []
tristanp has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
Elvin has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
nando293921 has quit [Quit: Lost terminal]
rbennacer has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nando293921 has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
davedev24 has joined #ruby
centrx has quit [Ping timeout: 260 seconds]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
centrx has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
nando293921 has quit [Ping timeout: 272 seconds]
rbennacer has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
tristanp has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
cjbottaro has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev2_ has joined #ruby
crcastle has joined #ruby
gtsai_ has quit [Remote host closed the connection]
crcastle has left #ruby [#ruby]
kirun has quit [Quit: Client exiting]
startupality has joined #ruby
gtsai has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
gtsai has quit [Remote host closed the connection]
pabloh has quit [Quit: This computer has gone to sleep]
<sfmk> is it against Ruby practice to create classes in separate files and then relative_require them in the main program?
gtsai has joined #ruby
pabloh has joined #ruby
chrisja has quit [Quit: leaving]
JoshGlzBrk has joined #ruby
<sfmk> I know it's common practice in Java development, but I'm not sure about Ruby
pabloh has quit [Client Quit]
startupality has quit [Quit: startupality]
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
nando293921 has joined #ruby
nando294021 has joined #ruby
gtsai has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<|2701> I do that all the time
<|2701> a downside of that is that anytime you move something, you have to go change a bunch of crap
<sfmk> alright, awesome
<sfmk> yeah that's kind of a nuisance, but I don't really plan on moving anything much, so it should be fine
whathapp_ has quit [Remote host closed the connection]
nando294021 has quit [Ping timeout: 258 seconds]
nando293921 has quit [Ping timeout: 258 seconds]
whathappens has joined #ruby
chouhoul_ has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
whathapp_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whathappens has quit [Read error: Connection reset by peer]
tacit7 has joined #ruby
lictor36 has joined #ruby
jancel has joined #ruby
youch has joined #ruby
blackmesa has joined #ruby
jancel_ has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
jancel has quit [Read error: Connection reset by peer]
ptx0 has quit [Ping timeout: 246 seconds]
mleung has quit [Quit: mleung]
gtsai has joined #ruby
SilverKey has quit [Quit: Halted.]
ptx0 has joined #ruby
Trieste has joined #ruby
gtsai has quit [Remote host closed the connection]
gtsai has joined #ruby
<|2701> alright then
biberu has quit []
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy has joined #ruby
Obore has joined #ruby
gtsai has quit [Read error: Connection reset by peer]
<sfmk> thanks!
gtsai has joined #ruby
gfvcastro has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cyclonis_ has joined #ruby
Es0teric has joined #ruby
rkazak has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
gtsai has quit [Remote host closed the connection]
gfvcastro has quit [Client Quit]
gfvcastro has joined #ruby
allcentury has joined #ruby
tristanp has joined #ruby
gtsai has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
gtsai has quit [Remote host closed the connection]
gtsai has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
gtsai has quit [Remote host closed the connection]
hahuang65 has joined #ruby
dhk has quit [Quit: Leaving]
dhk has joined #ruby
CloCkWeRX has joined #ruby
GarethAdams has quit [Quit: Leaving...]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
ctp has joined #ruby
gtsai has joined #ruby
Obore has quit []
koooge has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
ksmutthu has quit [Ping timeout: 244 seconds]
xlegoman has joined #ruby
diegoaguilar has quit [Ping timeout: 260 seconds]
lukec has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
marr has quit [Remote host closed the connection]
gtsai has quit [Read error: Connection reset by peer]
gtsai_ has joined #ruby
snockerton has quit [Quit: Leaving.]