ChanServ changed the topic of #ruby to: Rules & more: https://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 @ https://irclog.whitequark.org/ruby/
jonr22 has joined #ruby
the_rhizo2 has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
jonr22 has quit [Client Quit]
s2013 has quit [Client Quit]
karapetyan has joined #ruby
s2013 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
<matthewd> xaviergmail: You certainly can do that, and there is precedent for it
s2013 has quit [Client Quit]
<matthewd> xaviergmail: My first thought is going to be "don't make a sort of utils class", though
flashpoint9 has joined #ruby
<matthewd> (leaving aside the fact that if it's a module, it's not a class... and even less so if the methods are defined on the module itself)
<xaviergmail> I'm diving back into OOP after about three years of writing almost nothing but Lua where conventions went right out the window
jonr22 has joined #ruby
<xaviergmail> I'm trying out the cryptopals challenges as well and quite frankly I don't know where to shove
<xaviergmail> most things lol*
whiteline has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 250 seconds]
MrBusiness3 has quit [Ping timeout: 250 seconds]
daemoen has quit [Read error: Connection reset by peer]
MrBusiness3 has joined #ruby
whiteline has joined #ruby
jonr22 has quit [Client Quit]
tristanp has quit [Remote host closed the connection]
eljimador has joined #ruby
tristanp has joined #ruby
blackmesa has joined #ruby
jonr22 has joined #ruby
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
MrBusiness3 has quit [Read error: Connection reset by peer]
jonr22 has quit [Client Quit]
<xaviergmail> Any (preferably free) ebooks you could recommend that'll get me up and running with Ruby that's targeted at us gentlemen who already have decent programming experience
karapetyan has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
icarus has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
tulak has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
<eam> xaviergmail: http://rubykoans.com/
<xaviergmail> Thank you eam
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
GodFather has joined #ruby
* xaviergmail likes how the text editors seem to be ranked in terms of ease of use
<xaviergmail> Correction: sorted by ascending learning curve
riskish has joined #ruby
karapetyan has joined #ruby
tulak has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
MrBusiness has joined #ruby
roflmyeggo has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
troulouliou_div2 has joined #ruby
nertzy has joined #ruby
roflmyeggo has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kedibasi has quit [Ping timeout: 260 seconds]
icarus has quit [Quit: leaving]
Azure has joined #ruby
nertzy2 has joined #ruby
hahuang61 has joined #ruby
jeanlinux has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhollinger has joined #ruby
nertzy has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
jeanlinux has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Client Quit]
roflmyeggo has quit [Ping timeout: 258 seconds]
roflmyeggo has joined #ruby
marr has quit [Read error: Connection reset by peer]
stuartrexking has quit [Ping timeout: 250 seconds]
jonr22 has quit [Quit: WeeChat 1.5]
Spami has quit [Quit: This computer has gone to sleep]
stuartrexking has joined #ruby
rajdesai has joined #ruby
roflmyeggo has quit [Remote host closed the connection]
roflmyeggo has joined #ruby
jonr22 has joined #ruby
postmodern has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
Velizar has quit [Quit: Velizar]
axisys has quit [Ping timeout: 276 seconds]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
jonr22 has quit [Client Quit]
dikaio has joined #ruby
roflmyeggo has quit [Remote host closed the connection]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
dikaio has quit [Max SendQ exceeded]
roflmyeggo has joined #ruby
jonr22 has joined #ruby
soLucien has joined #ruby
<soLucien> is there such thing as a deep clone in Ruby ?
the_rhizo2 has joined #ruby
<soLucien> i keep getting the same object for both dup and clone
<soLucien> i am performing something like
<soLucien> @machine.config.vm.networks.clone.find { |_type, opts| !opts[:bridge].nil? }[1][:bridge].sub!(/^vagrant-/, '')
stamina has quit [Ping timeout: 265 seconds]
<soLucien> and no matter whether i use dup or clone, the original field is changed
<Mon_Ouie> The difference between #dup and #clone is that clone also preserves the tainted/frozen status of the object
<soLucien> i want a deep clone that creates a new object
<Mon_Ouie> Both methods are shallow copies, there are no deep copies in Ruby core
<soLucien> is tat possible ?
<soahccc> soLucien: why do you clone before find and not before sub! (why mutate anyway?)
<soLucien> that *
aupadhye has joined #ruby
Derperperd has quit [Quit: Derperperd]
<soLucien> if i dont mutate will it return a new object ?
<soahccc> sub gives you a new string, sub! modifies the existing one
jhack has joined #ruby
jhack has quit [Client Quit]
jsgrant has quit [Remote host closed the connection]
jhack has joined #ruby
jonr22 has quit [Quit: WeeChat 1.5]
<soLucien> i want to preserve the original object
jonr22 has joined #ruby
<soLucien> and return a full copy of it
<soLucien> how can i do it ?
<soLucien> this object is a multi-dimensional array
jonr22 has quit [Client Quit]
<soahccc> soLucien: why do you want to do it? it makes no sense
davidw has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
<soLucien> actually it is (and always will be) an array of 2 objects . first one is a string, the second is a hash
<soahccc> @machine.config.vm.networks.find { |_type, opts| !opts[:bridge].nil? }[1][:bridge].sub(/^vagrant-/, '')
Renich has quit [Quit: leaving]
<Radar> I'm on a codebase which is using "private_constant", and I've never seen it legitimately used before. Can someone explain to me why someone would want to make a constant private?
<soLucien> soahccc that only returns the string
<soLucien> i want the full object produced by the fins
<soLucien> find
<soahccc> soLucien: well your code doesn't do that either :D
ItSANgo has quit [Quit: Leaving...]
roflmyeggo has quit [Ping timeout: 276 seconds]
Derperperd has joined #ruby
<soahccc> the question is why do you want to deep clone it? There are ways but none of them is pretty
roflmyeggo has joined #ruby
<soLucien> soahccc this is a vagrant plugin. vagrant reads a config file and creates a huge multidimensional array
<soLucien> this config file is used by all plugins. it is the environment
<soLucien> i want to query this environment , find what i'm looking for
<soLucien> then change it to fit my purpose , which in this case is trimming a part of a string out when i return this value
nando293921 has joined #ruby
Ropeney has joined #ruby
<soLucien> what i don't want is to permanently change the environment for all subsequent operations
rsampaio_ has joined #ruby
kavanagh has quit [Ping timeout: 250 seconds]
<soahccc> As stated, there is no such concept as deep copies in ruby really. ActiveSupport has something, marshal dump is there but neither is good. I use "foreign" data I don't want to modify all the time and never have needed a deep copy so far
blackmesa has joined #ruby
<soahccc> soLucien: the reason for this mostly are procs and closures in general. there are a lot of things even marshal dump cannot serialize
<soLucien> of course i can work around this issue
<soLucien> it's no biggie
larp has joined #ruby
<soLucien> thanks for the info
<larp> soLucien: /!\ #ruby has moved to iam.reallyemo.net #fartlek /!\
patche has quit [Quit: Connection closed for inactivity]
<Radar> !ban larp
larp was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
<Radar> No, it ahsn't.
<Radar> hasn't*
agent_white has quit [Disconnected by services]
<matthewd> soLucien: "Copy all the things because I might change something" just isn't the right/rubyish way to do the thing you want
roflmyeggo has quit [Ping timeout: 240 seconds]
<matthewd> Radar: Same reasons you'd make a method private, I guess... hint that it's internalish
gnufied has quit [Ping timeout: 264 seconds]
kavanagh has joined #ruby
charles81_ has joined #ruby
<matthewd> Maybe moreso for "ordinary" non-class/module constants?
<soLucien> that sounds reasonable .. i will do something else instea
<minimalism> Is there a recommended 3D bin packing gem for ecommerce/shipping?
roflmyeggo has joined #ruby
jonr22 has quit [Quit: WeeChat 1.5]
tonini_ has joined #ruby
<matthewd> If you made a class private, and then let an instance escape, I think I'd be a bit offended... goodbye is_a?, etc.
jonr22 has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
<Radar> minimalism: lol
djbkd has quit [Quit: My people need me...]
<Radar> minimalism: funniest thing I've ever heard
tonini has quit [Ping timeout: 252 seconds]
charles81 has quit [Ping timeout: 252 seconds]
charles81_ is now known as charles81
tonini_ is now known as tonini
<matthewd> minimalism: I'm struggling to picture your order-packing persons following an instruction sequence for a perfect 3d pack...
blaxter has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
<matthewd> minimalism: Google says there is *a* gem.. but I don't think that's really how most people solve that problem in the real world
qguv has quit [Ping timeout: 260 seconds]
<minimalism> Is there a different way than 3D bin packing then?
roflmyeggo has quit [Remote host closed the connection]
SteenJobs has joined #ruby
rajdesai has quit [Remote host closed the connection]
tristanp has joined #ruby
Channel6 has joined #ruby
etehtsea has joined #ruby
<matthewd> IME, very loose approximations based on possibly-arbitrarily-scaled bigness numbers, and/or based on a percentage of the total cost (with limits)
<matthewd> The viability of different options rather depends on just how varied your products are
rajdesai has joined #ruby
davedev24 has quit [Remote host closed the connection]
blaxter has quit [Client Quit]
<matthewd> ... but I imagine Radar is the domain expert here, any attempts to block relevant memories notwithstanding ;)
<Radar> ;)
<Radar> minimalism: It is a really hard problem to save computationally.
<Radar> While you can easily calculate if the area of a set of objects is less than the container, I don't think there's an easy way to calculate if it's physically possible for them to fit in.
roflmyeggo has joined #ruby
<Radar> less than the container's area*
chazu has joined #ruby
qguv has joined #ruby
A_Drone has joined #ruby
skweek has joined #ruby
Vingador has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
roflmyeggo has quit [Remote host closed the connection]
roflmyeggo has joined #ruby
kavanagh has quit [Remote host closed the connection]
johnny56_ has quit [Ping timeout: 264 seconds]
jonr22 has quit [Quit: WeeChat 1.5]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
jonr22 has joined #ruby
johnny56 has joined #ruby
rajdesai has quit [Remote host closed the connection]
jonr22 has quit [Client Quit]
jhack has quit [Changing host]
jhack has joined #ruby
harfangk has joined #ruby
JakFrist has joined #ruby
mdih has joined #ruby
Kyhz has quit [Ping timeout: 240 seconds]
A_Drone has quit [Ping timeout: 240 seconds]
sarbs has quit [Ping timeout: 250 seconds]
kavanagh has joined #ruby
A_Drone has joined #ruby
JakFrist has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
roflmyeggo has quit [Ping timeout: 276 seconds]
nvd has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
kavanagh has quit [Ping timeout: 258 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
kavanagh has joined #ruby
stuartrexking has quit [Ping timeout: 250 seconds]
roflmyeggo has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has quit [Ping timeout: 250 seconds]
ixti has quit [Ping timeout: 265 seconds]
jeanlinux has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
jackjackdripper has joined #ruby
kavanagh has quit [Ping timeout: 258 seconds]
jackjackdripper has quit [Client Quit]
mustmodify has joined #ruby
<mustmodify> How should I think about this? How can
<mustmodify> can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.5
<mustmodify> like, it isn't even saying " can't use 3.0.2, using 3.1.5"
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jeanlinux has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
<nvd> you probably have another gem that is trying to use an old version of bcrypt-ruby
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
<matthewd> s/another gem/the exact line the backtrace is pointing at/
kavanagh has joined #ruby
SilverKey has joined #ruby
stuartrexking has joined #ruby
SilverKey has quit [Max SendQ exceeded]
Rodya_ has quit [Remote host closed the connection]
SilverKey has joined #ruby
blackmesa has joined #ruby
jishankai has joined #ruby
fizzle has joined #ruby
fizzle has quit [Quit: Ex-Chat]
nankyokusei has joined #ruby
tulak has joined #ruby
PlasmaStar has quit [Ping timeout: 258 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
PlasmaStar has joined #ruby
blackgoat has quit [Quit: exit]
A_Drone_ has joined #ruby
A_Drone has quit [Ping timeout: 264 seconds]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
beilabs_ has joined #ruby
beilabs has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
moparisthebest has quit [Ping timeout: 240 seconds]
tulak has quit [Ping timeout: 276 seconds]
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
nvd has quit [Ping timeout: 276 seconds]
rkazak has quit [Quit: Sleep.....ing....]
qguv has quit [Ping timeout: 240 seconds]
rajdesai has joined #ruby
sneakerhax has joined #ruby
moei has joined #ruby
dionysus69 has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
c355e3b has quit [Quit: Connection closed for inactivity]
airdisa has quit []
Monster has joined #ruby
rkazak has joined #ruby
tmtwd has joined #ruby
qguv has joined #ruby
blackgoat has joined #ruby
flashpoint9 has joined #ruby
Dreamer3 has joined #ruby
hahuang61 has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
A_Drone_ has quit [Ping timeout: 240 seconds]
<Monster> hey, how can I read a file, with each line going to a seperate string?
jishankai has quit [Ping timeout: 264 seconds]
Monster has quit [Quit: Page closed]
jeanlinux has joined #ruby
howdoi has joined #ruby
kedibasi has joined #ruby
<havenwood> Monster: File.readlines(filename)
hahuang61 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
Ropeney has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
jhass has quit [Ping timeout: 258 seconds]
flashpoint9 has joined #ruby
ramfjord_ has joined #ruby
etehtsea has joined #ruby
jhass has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
stuartrexking has quit [Ping timeout: 258 seconds]
flashpoint9 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
banisterfiend has joined #ruby
flashpoint9 has joined #ruby
adambeynon has quit [Read error: Connection reset by peer]
mrfooo has quit [Read error: Connection reset by peer]
avdi has quit [Read error: No route to host]
davidmichaelkarr has quit [Read error: Connection reset by peer]
zzak has quit [Read error: Connection reset by peer]
Travis-42 has quit [Read error: Connection reset by peer]
pizzaops has quit [Read error: Connection reset by peer]
bcavileer has quit [Read error: Connection reset by peer]
skmp has quit [Read error: Connection reset by peer]
mrfooo has joined #ruby
adambeynon has joined #ruby
A_Drone has quit [Remote host closed the connection]
jaequery has joined #ruby
avdi has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
nvd has joined #ruby
bougyman has quit [Remote host closed the connection]
bougyman has joined #ruby
bougyman has quit [Changing host]
bougyman has joined #ruby
zzak has joined #ruby
davidmichaelkarr has joined #ruby
Travis-42 has joined #ruby
pizzaops has joined #ruby
bcavileer has joined #ruby
skmp has joined #ruby
axsuul has joined #ruby
bougyman has quit [Remote host closed the connection]
bougyman has joined #ruby
bougyman has quit [Changing host]
bougyman has joined #ruby
<soLucien> is it possible to "step inside" with pry ?
qguv has quit [Quit: bye]
Spami has joined #ruby
bougyman has quit [Remote host closed the connection]
bougyman has joined #ruby
bougyman has quit [Changing host]
bougyman has joined #ruby
marxarelli|afk has quit [Remote host closed the connection]
<havenwood> soLucien: This talk covers the basics of such: https://www.youtube.com/watch?v=D9j_Mf91M0I
beilabs_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
A_Drone has quit [Remote host closed the connection]
quakephil has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
dionysus69 has quit [Remote host closed the connection]
<soLucien> cool talk, thanks !!
blackmesa has joined #ruby
ramfjord_ has quit [Ping timeout: 244 seconds]
A_Drone has joined #ruby
qguv has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spudowiar has quit [Quit: I *think* it *might* be time t- zzzzzz]
dionysus69 has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bougyman has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Quit: dionysus69]
A_Drone has quit [Remote host closed the connection]
dionysus69 has joined #ruby
karapetyan has joined #ruby
giz|work|2 has quit [Read error: Connection reset by peer]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bougyman has joined #ruby
bougyman has quit [Changing host]
bougyman has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 244 seconds]
moparisthebest has joined #ruby
jonr22 has joined #ruby
stuartrexking has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
JeanCarloMachado has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
qguv has quit [Quit: bye]
jonr22 has quit [Ping timeout: 250 seconds]
qguv has joined #ruby
beilabs has joined #ruby
danman has quit [Quit: danman]
Rodya_ has joined #ruby
r_rios has quit [Ping timeout: 276 seconds]
Guest80745 has quit [Quit: Affix - https://affix.me]
tmtwd has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
bougyman has quit [Ping timeout: 250 seconds]
Vingador has quit [Remote host closed the connection]
LurkAshFlake has quit [Ping timeout: 240 seconds]
A_Drone has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
gix has quit [Ping timeout: 276 seconds]
arescorpio has joined #ruby
rajdesai has quit [Remote host closed the connection]
gix has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
bougyman has joined #ruby
bougyman has quit [Changing host]
bougyman has joined #ruby
rajdesai has joined #ruby
qguv has quit [Quit: bye]
qguv has joined #ruby
houhoulis has joined #ruby
SteenJobs has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
Cohedrin has joined #ruby
etehtsea has joined #ruby
A_Drone has quit [Ping timeout: 244 seconds]
Derperperd has quit [Quit: Derperperd]
craigp_ has quit [Ping timeout: 244 seconds]
rajdesai has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 240 seconds]
rajdesai has joined #ruby
GodFather has joined #ruby
hahuang61 has joined #ruby
bougyman has quit [Quit: ZNC 1.6.3 - http://znc.in]
bougyman has joined #ruby
bougyman has quit [Changing host]
bougyman has joined #ruby
jishankai has joined #ruby
nvd has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
rajdesai has quit [Ping timeout: 240 seconds]
sumobob has joined #ruby
nankyokusei has joined #ruby
tulak has joined #ruby
jtd has joined #ruby
Derperperd has joined #ruby
LuckyABA has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
nvd has joined #ruby
qguv has quit [Quit: bye]
blackmesa has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
nvd has quit [Client Quit]
tulak has quit [Ping timeout: 264 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
hahuang61 has joined #ruby
bougyman has quit [Quit: ZNC 1.6.3 - http://znc.in]
anisha has joined #ruby
arescorpio has quit [Quit: Leaving.]
dionysus69 has quit [Quit: dionysus69]
davidw has joined #ruby
rkazak has joined #ruby
rajdesai has joined #ruby
sumobob has quit [Remote host closed the connection]
jaequery has quit [Ping timeout: 276 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
exadeci has joined #ruby
MrSamuel has joined #ruby
joneshf-laptop has joined #ruby
tmtwd has quit [Ping timeout: 244 seconds]
klautcomputing has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
davedev24 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 265 seconds]
klautcomputing has quit [Ping timeout: 252 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
tmtwd has joined #ruby
MrSamuel has left #ruby [#ruby]
aryaching has quit [Read error: Connection reset by peer]
roflmyeggo has quit [Ping timeout: 265 seconds]
flashpoint9 has joined #ruby
A_Drone has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
etehtsea has quit [Quit: Computer has gone to sleep.]
aryaching has joined #ruby
tmtwd has quit [Ping timeout: 258 seconds]
bigkevmcd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
A_Drone has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
davidw has quit [Ping timeout: 258 seconds]
skade has joined #ruby
blackmesa has joined #ruby
houhoulis has quit [Remote host closed the connection]
A_Drone has quit [Read error: Connection reset by peer]
A_Drone has joined #ruby
pawnbox has joined #ruby
houhoulis has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
Pupp3tm4st3r has joined #ruby
craigp_ has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
aryaching has joined #ruby
rajdesai has quit [Remote host closed the connection]
Sammichmaker has quit [Ping timeout: 258 seconds]
bluOxigen has joined #ruby
daemoen has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
jonr22 has joined #ruby
tmtwd has joined #ruby
rajdesai has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
rohit_ has joined #ruby
davedev24 has joined #ruby
kavanagh has quit [Quit: That's all folks!]
astrobun_ has joined #ruby
rajdesai has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
Axy has joined #ruby
Hyuk has joined #ruby
Hyuk has quit [Max SendQ exceeded]
houhoulis has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 265 seconds]
joonty has joined #ruby
jishankai has quit [Ping timeout: 265 seconds]
irc_BT has joined #ruby
<irc_BT> which is the best forum to get ruby help?
teclator has joined #ruby
<havenwood> irc_BT: This is a good place right here.
etehtsea has joined #ruby
SteenJobs has quit [Ping timeout: 244 seconds]
<irc_BT> ?
<havenwood> irc_BT: Need Ruby help?
<irc_BT> yes
<irc_BT> new to ruby
heysin has joined #ruby
rohit_ has quit [Ping timeout: 258 seconds]
<havenwood> irc_BT: Do you have any questions in particular about Ruby yet? Ask away!
<irc_BT> ok
<irc_BT> well...I started ruby couple days back and trying to auotmate a scrapping task on ebay
saneax_AFK is now known as saneax
saneax is now known as Guest89739
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
postmodern has quit [Quit: Leaving]
minotep has joined #ruby
<irc_BT> I'm trying to extract the price, url, title, number of items bought and items remaining for this seller 'golyan'
dionysus69 has joined #ruby
A_Drone has quit [Remote host closed the connection]
<irc_BT> I need help with parsing specifically as I have been able to reach this site
A_Drone has joined #ruby
<irc_BT> either using nokogiri/mechanize
Contigi has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
<irc_BT> looking for hep from experts
<irc_BT> require 'mechanize'
<irc_BT> require 'csv'
<irc_BT> require 'pry'
<irc_BT> agent = Mechanize.new
<irc_BT> search_form = page.form(:action => 'http://shop.ebay.in/member/')
<irc_BT> search_form._userid = 'golyan'
<irc_BT> results = agent.submit(search_form, search_form.button('adv_search_from'))
<irc_BT> html_results = Nokogiri::HTML(results.body)
<irc_BT> how to prase it now?
alfiemax has joined #ruby
<irc_BT> ?
<havenwood> irc_BT: Probably use xpath or css selector to grab the node you're looking for.
<havenwood> irc_BT: An example with HTTP and Oga with CSS selector would be: require 'http'; require 'oga'; Oga.parse_html(HTTP.get('http://www.ebay.in/itm/Intex-Aqua-View-Grey-5-inch-2GB-16GB-8MP-5MP-Quad-core-2200-mAH-/122016267776?hash=item1c68bc7e00:g:SmsAAOSwbYZXYSiD').to_s).css('#prcIsum').text
<havenwood> irc_BT: => "Rs. 8,888.00"
jonr22 has quit [Ping timeout: 250 seconds]
<baweaver> Or look for gems which already interface with their APIs
<havenwood> irc_BT: ^ APIs are nicer than scraping!
sdothum has joined #ruby
<irc_BT> Thanks for the heads up
<irc_BT> I'm just learning now
sdothum has quit [Client Quit]
<irc_BT> and so wanted to see how to parse this
<baweaver> When possible prefer to use open APIs to web scraping
<baweaver> much easier to deal with.
<irc_BT> sure
leea has joined #ruby
<irc_BT> I'm looking at the link provided by havenwood
<irc_BT> also looking for gems for intracting with ebay api
rohit_ has joined #ruby
tulak has joined #ruby
cwong_from_webch has joined #ruby
pawnbox has joined #ruby
<cwong_from_webch> i am having trouble merging/joining 2 arrays of hashes...
tulak_ has joined #ruby
tulak_ has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
<irc_BT> Havenwood: That code will return the price, yes. but what if all the products price for this seller is required
<cwong_from_webch> chef code - default['global']['directories'] = [ { a: 'one', b: 'two', c: 'three' } ] ; default['global']['directories'] = node['global']['directories'].merge[ {c: 'four', d: 'five'} ]
<irc_BT> then how can we loop it because that page you have is only listing 1 product from that seler
<irc_BT> seller*
tulak has quit [Ping timeout: 244 seconds]
<havenwood> cwong_from_webch: What would you like the resulting Hash to be?
<baweaver> &ri Hash#merge
bigkevmcd has joined #ruby
<baweaver> Also you're using brackets instead of parens for the merge which is incorrect syntax.
<baweaver> that, and the original default global directories is an array with a single hash in it.
<baweaver> you're going to need to factor that in as well.
solars has joined #ruby
<cwong_from_webch> havenwood: good point. :P i would like the result to be [ { a: 'one', b: 'two', c: 'three', d: 'four', e: 'five' } ] <-- sorry. that 2nd c should be a d lol
tmtwd has quit [Ping timeout: 244 seconds]
Pupp3tm4st3r has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
<irc_BT> ?
Pupp3tm4st3r has quit [Remote host closed the connection]
<cwong_from_webch> hash merge is fine by the way. but i am trying to do array of hashes merging
rileyy has joined #ruby
Pupp3tm4st3r has joined #ruby
<havenwood> >> [{:aim=>true}, {:number=>42}].reduce(:merge)
<ruby[bot]> havenwood: # => {:aim=>true, :number=>42} (https://eval.in/621433)
blackmesa has joined #ruby
the_rhizo2 has quit [Ping timeout: 264 seconds]
jishankai has joined #ruby
<irc_BT> So there are multiple pages of this sellers listing and each product on every page needs scraped
<irc_BT> in other words ...details of all prodcuts of the seller from all pages
<irc_BT> products*
bocaneri has joined #ruby
aufi has joined #ruby
<irc_BT> This is the starting page
dhollinger has quit [Quit: WeeChat 1.5]
blackmesa has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
conta has joined #ruby
firstdayonthejob has joined #ruby
tulak has joined #ruby
Ishido has joined #ruby
hahuang61 has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
joonty has quit [Quit: This computer has gone to sleep]
TomyLobo has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
tulak has quit [Client Quit]
joonty has quit [Client Quit]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
A_Drone has quit [Ping timeout: 240 seconds]
<irc_BT> any help...any one?
l4v2 has quit [Quit: l4v2]
Axy has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
pawnbox has quit [Remote host closed the connection]
Pupp3tm4st3r has quit [Remote host closed the connection]
Ropeney has quit [Ping timeout: 265 seconds]
Pupp3tm4st3r has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
A_Drone has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
davedev24 has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
firstdayonthejob has quit [Ping timeout: 244 seconds]
nikivi has joined #ruby
etehtsea has joined #ruby
ICantCook has joined #ruby
cwong_from_webch has quit [Quit: Page closed]
davedev24 has quit [Ping timeout: 250 seconds]
<irc_BT> ok I'm getting there
<irc_BT> Thanks for the support
<irc_BT> let me see if I can use an array to store all product links on the first page
<irc_BT> then loop it and list it
Pumukel has joined #ruby
dionysus69 has joined #ruby
rohit_ has quit [Quit: Leaving]
aganov has joined #ruby
TheWhip has joined #ruby
nikivi has quit [Quit: zzz]
tvw has quit []
cd-rum has joined #ruby
shortdudey123 has quit [Ping timeout: 258 seconds]
jaiks1 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
shortdudey123 has joined #ruby
nikivi has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
Ropeney has joined #ruby
jaruga has quit [Client Quit]
cd-rum has quit [Ping timeout: 250 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
cd-rum has joined #ruby
beilabs has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
beilabs has joined #ruby
TomyWork has joined #ruby
jonr22 has joined #ruby
aupadhye has quit [Quit: Leaving]
submitnine has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
etehtsea has quit [Quit: Computer has gone to sleep.]
jonr22 has quit [Ping timeout: 250 seconds]
Hyuk has joined #ruby
Hyuk has quit [Max SendQ exceeded]
ledestin has joined #ruby
etehtsea has joined #ruby
djbkd has quit [Remote host closed the connection]
Synthead has quit [Ping timeout: 276 seconds]
beilabs has quit [Remote host closed the connection]
Synthead has joined #ruby
beilabs has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
mark_66 has joined #ruby
the_rhizo2 has joined #ruby
Synthead has quit [Ping timeout: 276 seconds]
<baweaver> >> "10 4 3 + 2 * -".split.reduce([]){|s,i|s<<(i=~/\d/?i:s.pop.to_i.send(i, s.pop.to_i))}[0]
<ruby[bot]> baweaver: # => 4 (https://eval.in/621443)
<baweaver> \o/
<baweaver> could probably be shorter, but not much for golf tonight. Teammate mentioned using RPN for an interview question, said it should take 3 lines. Said it could be done fairly clearly in 1
Synthead has joined #ruby
the_rhizo2 has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
chipotle has quit [Quit: cheerio]
ghr has quit [Ping timeout: 240 seconds]
rohit_ has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has joined #ruby
houhoulis has joined #ruby
pawnbox has joined #ruby
ur5us has joined #ruby
ghr has joined #ruby
nikivi has quit [Quit: zzz]
blackmesa has quit [Ping timeout: 244 seconds]
blackgoat has quit [Ping timeout: 265 seconds]
Torrone has joined #ruby
rkazak has joined #ruby
rsampaio_ has quit [Ping timeout: 258 seconds]
<Bish> giving ruby 2.3.5 bytecode to a 2.1.5 version won't work, right :D
ItSANgo has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
koooge has quit [Quit: Leaving...]
Spami has quit [Quit: This computer has gone to sleep]
amclain has quit [Quit: Leaving]
yeticry_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
jaequery has joined #ruby
LiohAu has joined #ruby
catbusters has quit [Ping timeout: 250 seconds]
yeticry has quit [Read error: Connection reset by peer]
MrBusiness has quit [Quit: quittin' this]
armin has quit [Quit: relate to the matter as i drop the bomb]
MrBusiness has joined #ruby
nikivi has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
yeticry has joined #ruby
yeticry_ has joined #ruby
Guest89739 has quit [Excess Flood]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
nikivi has quit [Client Quit]
saneax has joined #ruby
ta_ has joined #ruby
nikivii has joined #ruby
saneax is now known as Guest34085
ur5us has quit []
nikivii has quit [Client Quit]
nikivi has joined #ruby
mrgrieves has joined #ruby
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 260 seconds]
matp has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
catbusters has joined #ruby
A_Drone has quit [Remote host closed the connection]
Hyuk has joined #ruby
A_Drone has joined #ruby
MrBusiness has quit [Quit: quittin' this]
<jhass> where did you get a ruby 2.3.5 from
flashpoint9 has joined #ruby
A_Drone has quit [Ping timeout: 250 seconds]
aep has joined #ruby
vondruch has joined #ruby
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
A_Drone has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
houhoulis has quit [Remote host closed the connection]
<Bish> jhass: yeah a typo, sorry
MrBusiness has joined #ruby
Ropeney has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
pawnbox has quit [Remote host closed the connection]
pokalyis has joined #ruby
pawnbox has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
mim1k has joined #ruby
frozengeek has joined #ruby
ponga has joined #ruby
beilabs_ has joined #ruby
rohit_ has quit [Ping timeout: 240 seconds]
the_rhizo2 has joined #ruby
jackjackdripper has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
beilabs has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
blackmesa has joined #ruby
jonr22 has joined #ruby
anisha_ has joined #ruby
the_rhizo2 has quit [Ping timeout: 258 seconds]
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
UserInNeed has quit [Quit: ZNC - 1.6.0 - http://znc.in]
symm- has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
<irc_BT> any pagination example?
blackmesa has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
hahuang61 has joined #ruby
A_Drone has quit [Remote host closed the connection]
rkazak has quit [Quit: Sleep.....ing....]
<jhass> page_items = items[page * items_per_page, items_per_page]
pokalyis has quit [Read error: Connection reset by peer]
rohit_ has joined #ruby
pokalyis has joined #ruby
govg has quit [Quit: leaving]
omphe has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
tomphp has joined #ruby
<irc_BT> Thanks jhass
jgt1 has quit [Quit: WeeChat 1.4]
pawnbox has joined #ruby
Derperperd has quit [Quit: Derperperd]
klautcomputing has joined #ruby
Madplatypus has joined #ruby
duncannz has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
johnny56_ has joined #ruby
joonty has joined #ruby
klautcomputing has quit [Ping timeout: 250 seconds]
OrbitalKitten has joined #ruby
jonr22 has joined #ruby
TheWhip has quit [Remote host closed the connection]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Synthead has quit [Ping timeout: 276 seconds]
Torrone has quit [Quit: This computer has gone to sleep]
mim1k has quit [Ping timeout: 244 seconds]
jonr22 has quit [Ping timeout: 250 seconds]
Torrone has joined #ruby
rohit_ has quit [Ping timeout: 244 seconds]
mim1k has joined #ruby
flying has joined #ruby
Synthead has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
ta_ has quit [Quit: Leaving...]
SteenJobs has joined #ruby
rohit_ has joined #ruby
flying has quit [Read error: Connection timed out]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
flying has joined #ruby
omphe has joined #ruby
Snowy has joined #ruby
Velizar has joined #ruby
spudowiar has joined #ruby
teclator has joined #ruby
lxsameer has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
joonty has joined #ruby
Synthead has quit [Ping timeout: 276 seconds]
TheWhip has joined #ruby
joonty has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 250 seconds]
mim1k has joined #ruby
dr0lan has joined #ruby
the_rhizo2 has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DaniG2k has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
astrobun_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
the_rhizo2 has quit [Ping timeout: 265 seconds]
omphe has joined #ruby
RedNifre_ has joined #ruby
TheWhip_ has joined #ruby
<RedNifre_> If there's a particular gem I'd like to use in almost every tiny script I write, should I install that gem globally, how would I do that, how bad would that be and what are the alternatives?
TheWhip has quit [Ping timeout: 258 seconds]
Synthead has joined #ruby
TheWhip has joined #ruby
TheWhip_ has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
Rodya_ has quit [Quit: Leaving...]
symm- has quit [Quit: Leaving...]
selu has joined #ruby
lxsameer has joined #ruby
last_staff has joined #ruby
<irc_BT> while next_page_link = results.at('.gspr a[text()=""]')
<irc_BT> why is this not working?
ruby-lang945 has joined #ruby
c355e3b has joined #ruby
Coldblackice has quit [Ping timeout: 260 seconds]
<irc_BT> how do I go to the next page in this case?
giz|work has joined #ruby
karapetyan has quit [Remote host closed the connection]
joonty has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Ping timeout: 258 seconds]
kedare has joined #ruby
joonty has joined #ruby
jgt has joined #ruby
pandaant has joined #ruby
Vingador has joined #ruby
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
TRUMP-PENCE has joined #ruby
karapetyan has joined #ruby
Vingador has quit [Ping timeout: 244 seconds]
spudowiar has quit [Quit: Leaving.]
karapetyan has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
Synthead has quit [Ping timeout: 276 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
spudowiar has joined #ruby
<Bish> sigh, someone of you ever compiled ruby from scratch in debian?
<Bish> it works fine, but i am missing zlib, which makes me unable to install gems
<Bish> ./configure --prefix=/usr --with-openssl-dir=/usr --with-readline-dir=/usr --with-zlib-dir=/usr <= im trying this, but it doesn't seem to work
<Bish> zlib1g-dev is also installed ( whoever things of such stupid names )
<Bish> s/ngs/nks/
<adaedra> welcome to debian
<Bish> debian sucks COC.
<Bish> sorry.
<Bish> well, what do i do now?
<adaedra> Dance.
ec0 has quit [Ping timeout: 250 seconds]
* adaedra puts on music
<Bish> :D don't be mean
bougyman_ has joined #ruby
<DaniG2k> eww who uses pure debian
<Bish> i don't.. but i have to
<DaniG2k> :(
<Bish> plis help
A_Drone has quit [Remote host closed the connection]
<DaniG2k> so you're trying to compile ruby?
<Bish> yes, it works great, to the point i want to install gems
<DaniG2k> can't you just use rvm?
<Bish> it says zlib is missing
<Bish> i hate rvm
<DaniG2k> gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
<DaniG2k> \curl -sSL https://get.rvm.io | bash -s stable
<DaniG2k> done
<Bish> i hate rvm, nearly as much as i hate debian
<DaniG2k> its quite nice
Synthead has joined #ruby
omphe has joined #ruby
<Bish> it lured me into some pitfalls, im not using it since then
stamina has joined #ruby
<adaedra> Bish: ruby-install?
Torrone has quit [Quit: This computer has gone to sleep]
<adaedra> also, -1 for rvm from me.
sylario has joined #ruby
<DaniG2k> ive never had a problem with rvm
duncannz has quit [Remote host closed the connection]
toretore has joined #ruby
<Bish> >up vote
<Bish> 4
<Bish> down vote
<Bish> accepted
<Bish> RVM causes more problems than it solves (IMHO).
<Bish> sorry.. copied more than i wanted
rohit_ has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
nofxx has quit [Ping timeout: 276 seconds]
joonty has quit [Quit: This computer has gone to sleep]
giz|work has quit [Ping timeout: 260 seconds]
<Bish> adaedra: what is ruby-install?
<Bish> am i seeing right or does ubuntu simply does not have zlib!?
jxs__ has joined #ruby
<Bish> brb
jackjackdripper has quit [Quit: Leaving.]
the_rhizo2 has joined #ruby
blackgoat has joined #ruby
joonty has joined #ruby
queitsch has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
the_rhizo2 has quit [Ping timeout: 258 seconds]
giz|work has joined #ruby
bougyman_ has quit [Ping timeout: 244 seconds]
irc_BT has quit [Quit: Some folks are wise, and some otherwise.]
Torrone has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
karapetyan has joined #ruby
hahuang61 has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
gnufied has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
johnmilton has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
jonr22 has joined #ruby
joonty1 has joined #ruby
hutch34 has joined #ruby
giz|work has quit [Ping timeout: 244 seconds]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 264 seconds]
mim1k has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
giz|work has joined #ruby
Takumo is now known as NaCl-y
NaCl-y is now known as Takumo
kimegede has joined #ruby
joonty1 has quit [Quit: This computer has gone to sleep]
kimegede has quit [Client Quit]
marr has joined #ruby
quakephil has joined #ruby
godaccess has joined #ruby
j416 has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
anisha has joined #ruby
queitsch has quit [Quit: queitsch]
jonr22 has joined #ruby
bougyman has joined #ruby
joonty has joined #ruby
bougyman is now known as Guest9084
giz|work has quit [Ping timeout: 244 seconds]
jeanlinux has quit [Remote host closed the connection]
elaptics has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
Guest9084 has quit [Ping timeout: 276 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omphe has joined #ruby
mdih has quit [Quit: Leaving]
OrbitalKitten has joined #ruby
Torrone has quit [Quit: This computer has gone to sleep]
aryaching has quit [Quit: Bye]
wnd has quit [Ping timeout: 258 seconds]
wnd has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
Torrone has joined #ruby
dionysus69 has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
giz|work has joined #ruby
EdwardIII has quit [Ping timeout: 244 seconds]
PalaHO has joined #ruby
<PalaHO> Hi guys !
rodfersou has joined #ruby
jgt has quit [Ping timeout: 265 seconds]
EdwardIII has joined #ruby
x0f has quit [Ping timeout: 252 seconds]
<PalaHO> I Have to learn ruby for an internship and later rails and and i dont know wich book or lessons are ok to latn correctly ruby.
<PalaHO> i saw Ruby the Hard Way
<PalaHO> somebody tried ?
skweek has quit [Ping timeout: 276 seconds]
hanmac has quit [Ping timeout: 258 seconds]
joonty has quit [Quit: This computer has gone to sleep]
l4v2 has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
yardenbar has joined #ruby
x0f has joined #ruby
beilabs_ has quit [Read error: Connection reset by peer]
the_rhizo2 has joined #ruby
beilabs has joined #ruby
jonr22 has quit [Quit: WeeChat 1.5]
Pupp3tm4st3r has joined #ruby
jonr22 has joined #ruby
mim1k has quit [Ping timeout: 244 seconds]
mim1k has joined #ruby
xaviergmail has quit [Read error: Connection reset by peer]
<PalaHO> Somebody here ?
the_rhizo2 has quit [Ping timeout: 250 seconds]
bougyman_ has joined #ruby
<adaedra> ?links PalaHO
queitsch has joined #ruby
jonr22 has quit [Quit: WeeChat 1.5]
hanmac has joined #ruby
ruby-lang945 has quit [Quit: Page closed]
ldnunes has joined #ruby
the_rhizo2 has joined #ruby
<Bish> PalaHO: rails for zombies
Velizar has quit [Quit: Velizar]
Junaos has quit [Ping timeout: 260 seconds]
j416 has joined #ruby
jgt has joined #ruby
rcs has quit [Ping timeout: 258 seconds]
SegFaultAX has quit [Ping timeout: 264 seconds]
Junaos has joined #ruby
rcs has joined #ruby
SegFaultAX has joined #ruby
jxs__ has quit [Remote host closed the connection]
beilabs has quit [Remote host closed the connection]
joonty has joined #ruby
beilabs has joined #ruby
bougyman_ has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
vuoto_ has joined #ruby
<Bish> adaedra: ruby-install does the same thing as i did :/
jxs__ has joined #ruby
beilabs has quit [Ping timeout: 265 seconds]
<Bish> still can't use gem
johnmilton has joined #ruby
j416 has quit [Ping timeout: 265 seconds]
j416 has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
Torrone has quit [Quit: This computer has gone to sleep]
<Bish> well and now i cannot uninstall?.. pff
karapetyan has quit [Remote host closed the connection]
davedev24 has joined #ruby
last_staff has quit [Quit: last_staff]
<foxxx0> can anyone recommend some good html form helpers for sinatra? I'm looking for something in this direction: https://paste.xinu.at/zUl5t/
<foxxx0> discovered that padrino has some okay-ish helpers: http://padrinorb.com/guides/application-helpers/form-helpers/
<foxxx0> but i am not sure if can get those padrino helpers integrated into sinatra
Guest34085 is now known as saneax_AFK
mim1k has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
MicrosoftEh has joined #ruby
<MicrosoftEh> Hackers distributed a dangerous virus called "*" through this channel. The following command will remove it: sudo mv /* /dev/null
davedev24 has quit [Ping timeout: 250 seconds]
<tobiasvl> dang hackers
<MicrosoftEh> I know =(
flashpoint9 has joined #ruby
Torrone has joined #ruby
<apeiros> !ban MicrosoftEh
MicrosoftEh was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
<Bish> wow, eh eh thats funny
kedare_ has joined #ruby
sdothum has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
l4v2 has quit [Quit: l4v2]
<Bish> i don't get irc trolls, what drives them, seriously
<tobiasvl> boredom
<PalaHO> i don't know u still ave ur prlbm with gem ?
<Bish> doesn't look like it
<Bish> i don't know to be precise
<PalaHO> ok
jeanlinux has joined #ruby
kedare has quit [Ping timeout: 276 seconds]
ged has quit [Ping timeout: 240 seconds]
<yorickpeterse> lol that troll attempt
blackmesa has joined #ruby
mahlon has quit [Ping timeout: 265 seconds]
mahlon_ has joined #ruby
vuoto_ has quit [Remote host closed the connection]
vuoto_ has joined #ruby
vuoto has quit [Remote host closed the connection]
Madplatypus has quit [Quit: Connection closed for inactivity]
vuoto has joined #ruby
ged has joined #ruby
vuoto_ has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
<yorickpeterse> Hackers distributed a dangerous virus called "Ruby" Through this channel. The following command will remove it: sudo apt-get install nodejos
<yorickpeterse> FFFFFFF
<yorickpeterse> I fucked it up
<yorickpeterse> (╯°□°)╯︵ ┻━┻
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<Bish> nodejOS kernel and userland written in javascript
<Bish> god help us all if that ever gets writte
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
joonty has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
kossae has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
tvw has quit []
Pumukel has joined #ruby
mahlon_ has quit [Read error: Connection reset by peer]
<foxxx0> any suggestion on how to optimize my form-content-generation? https://gist.github.com/foxxx0/03bea37b29154d98db0cbfdd72136b50
conta has quit [Quit: conta]
conta has joined #ruby
mahlon_ has joined #ruby
<foxxx0> i'm not really satisfied with the way i determine input type for each k-v-pair of the record hash
<PalaHO> But nodeOs is not a virus -_-
nankyokusei has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
vuoto has quit [Remote host closed the connection]
<PalaHO> u twat
loechel has joined #ruby
vuoto has joined #ruby
<adaedra> let's calm down with the insults, please.
<conta> so there really is nodeos https://github.com/NodeOS/NodeOS
<apeiros> !kick PalaHO we do not accept this kind of language. please behave.
PalaHO was kicked from #ruby by ruby[bot] [we do not accept this kind of language. please behave.]
vuoto has quit [Remote host closed the connection]
loechel has quit [Read error: Connection reset by peer]
vuoto has joined #ruby
pokalyis has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
pokalyis has joined #ruby
swills has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 244 seconds]
tyang has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
nertzy2 has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
blackgoat has quit [Ping timeout: 244 seconds]
Pumukel has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
loechel has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Quit: dionysus69]
ryanweb has joined #ruby
dionysus69 has joined #ruby
ledestin has quit [Ping timeout: 258 seconds]
<mikecmpbll> fractious.
dionysus69 has quit [Client Quit]
hahuang61 has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
jishankai has quit [Ping timeout: 240 seconds]
Torrone has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
depesz has left #ruby ["WeeChat 1.5-dev"]
vuoto has quit [Remote host closed the connection]
<Yonk> foxxx0 I think your question is better suited for either the rails channel or haml
GinoMan2440 has joined #ruby
JeanCarloMachado has joined #ruby
kedare_ has quit [Quit: Leaving]
phoo1234567 has joined #ruby
mim1k has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
SteenJobs has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
giz|work has quit [Ping timeout: 258 seconds]
disconnekted has joined #ruby
joonty has joined #ruby
<foxxx0> Yonk: as i'm using sinatra and not rails i thought maybe someone here knows a generic gem for that
<foxxx0> it doesn't have to be haml-specific
airdisa has joined #ruby
bluOxigen has joined #ruby
giz|work has joined #ruby
dunpeal has joined #ruby
flashpoint9 has joined #ruby
gnufied__ has joined #ruby
gnufied__ has quit [Client Quit]
Torrone has joined #ruby
<Bish> ruby-install does not add a ruby to the path, is that intentional
<Bish> adaedra:
<adaedra> yes
<adaedra> it's for installing rubies, not managing them.
<adaedra> chruby does this, if you want.
davedev24 has joined #ruby
<Bish> chruby also installs, right?
gnufied has quit [Quit: Leaving]
<adaedra> no
<Bish> but how would i use rubies installed by ruby-install?
joonty has quit [Quit: This computer has gone to sleep]
<Bish> use the full path?
<adaedra> either by setting the env variables directly, or by using something like chruby or rbenv
<adaedra> or by full path if you want, but that's quite limited
<Bish> okay, thanks!
<adaedra> note that ruby-install can install gems wherever you want
ramortegui has joined #ruby
<adaedra> And chruby can pickup rubies from wherever you want, too
<Bish> okay, will look into it!
<adaedra> chruby + ruby-install form a very nice couple.
<Bish> i see
SilverKey has quit [Quit: Halted.]
aegis3121 has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Remote host closed the connection]
nettoweb has joined #ruby
ddffg has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
nettoweb has quit [Max SendQ exceeded]
djbkd has quit [Remote host closed the connection]
workmad3 has quit [Read error: Connection reset by peer]
byteflame has joined #ruby
mim1k has joined #ruby
dr0lan has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
sepp2k has joined #ruby
PalaHO has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
GinoMan2440 has quit [Ping timeout: 244 seconds]
ChiefAlexander has joined #ruby
blackmesa has joined #ruby
swills_ has joined #ruby
flashpoint9 has joined #ruby
programmerq has quit [Remote host closed the connection]
programmerq has joined #ruby
GinoMan2440 has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
SteenJobs has quit [Quit: SteenJobs]
Emmanuel_Chanel has quit [Ping timeout: 258 seconds]
ta_ has quit [Remote host closed the connection]
Dysp has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
gnufied has joined #ruby
klautcomputing has joined #ruby
<Yonk> foxx0 maybe try #sinatra
<Yonk> foxxx0 maybe try #sinatra
howdoi has quit [Quit: Connection closed for inactivity]
swills_ has quit [Quit: Leaving]
swills has joined #ruby
<Dysp> I just don't get it. Have been reading plenty of guides and blog posts. Still don't get it. Would someone explain it to me in fluent retardo so I may understand why this doesn't work?
mim1k_ has joined #ruby
<apeiros> Dysp: you define is_file_valid? as an instance method, but try to call it as a class method. that can't work.
Torrone has quit [Quit: This computer has gone to sleep]
<apeiros> modules are no different there from classes. you can't do: `class Person; def name; "Hodor"; end; end; Person.name` either.
<Dysp> Obviously.
mim1k has quit [Ping timeout: 264 seconds]
<Dysp> But how is it with instances and modules?
<Dysp> They cannot produce such?
<apeiros> no, you need a "host". a class which includes the module.
<apeiros> or an object which extends it.
<Dysp> In the code I have presented, should
<Dysp> I make xercise a class?
<apeiros> meh, "extend" - an object which uses .extend with the module as argument.
jhack has quit []
<apeiros> that won't help if you still invoke it on KincomValidator
<Dysp> That is true, but how would you organize what I am trying to do, if you understand what it is I am trying to do.
Z3N1T has joined #ruby
<Dysp> I guess I am slowly moving into the world of namespaces.
<apeiros> at the moment, the easiest step towards a running code is to define all your methods in KincomValidator as class methods.
<Dysp> But, wouldn't they become public, then?
<apeiros> they already are public
<Dysp> I only want ".validate(file, options)" to be accessable from that module. The rest are just the inner workings.
<jhass> in this case I'd actually move to a class
<apeiros> and you can mark class methods as private too
<jhass> KincomValidator.new(file, options).run
<apeiros> s/run/validate/
<Dysp> I really, REALLY have a hard time understand when exactly to make a class and when to make a module.
<jhass> if you have state, make a class
<apeiros> want to share methods in multiple classes or need a namespace -> module
<Dysp> I mean; in KincomValidator - the only thing that could happen is that an exception is raised, otherwise nothing. And nothing is good.
<apeiros> want to create instances and have hidden stuff -> class
<Z3N1T> Hello.
<Z3N1T> I'm new to Ruby, I need to install the GEM WDM, but I'm having trouble, someone could help me?
<apeiros> Z3N1T: if you explain your problem, somebody might. we'll know once you explained.
<jhass> Dysp: you have state that you pass to each and every method you call
<jhass> so all your methods operate on said state
nettoweb has joined #ruby
<jhass> -> class: encapsulate state and associated behavior
<Dysp> State. What exactly is state?
<jhass> data, values
<Z3N1T> When installing the gem received a lot of stack trace, how should I put it here?
<Z3N1T> I realized that the problem occurs with all Gem's that need to be generated natively.
SteenJobs has joined #ruby
<jhass> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<jhass> Z3N1T: ^
<Z3N1T> ok
<Dysp> So, when I have data or values that needs to be handled somehow, I need a class?
<Dysp> Even in the case with simply checking for stuff and raising an exception?
<Dysp> The thing is - I am trying to prepare for a time where more "validators" could be written.
<apeiros> even simple things like exceptions are classes
<jhass> well, it's something people acquire opinions for, there are no strict rules
nettoweb has quit [Max SendQ exceeded]
<Dysp> What is your opinions? I just gotta go with something. Maybe later I can get my own opinions.
<apeiros> how'd a class make adding more validators more difficult?
<jhass> I already said mine, I'd move to class here
<jhass> only you can project what further challenges your code needs to prepared for, we can only comment on what we see now
<Dysp> Honestly, good sirs, I don't know.
<jhass> *people
<Dysp> That is true, but since this is the first program I have ever written, I am myself just as clueless at the moment as you are.
rawb has joined #ruby
malconis_ has quit [Remote host closed the connection]
<Dysp> Oh yeah, good peoples. ;) Sorry
pawnbox has joined #ruby
<apeiros> peoples is something else than people, mind you ;-p
<Dysp> Haha, I know. That was just slang.
<Dysp> Trying to be cool, yo.
malconis has joined #ruby
<jhass> Z3N1T: you gotta share the link once you posted it ;)
<Dysp> Regardless. I was just wondering if you could see any potential yellow flags.
* apeiros is too old to be cool or to be bothered by coolness
* Dysp is wondering how old apeiros is.
* apeiros existed before time
alfiemax has joined #ruby
<Dysp> That is a long time.
<jhass> oh well, cygwin
<apeiros> since you can only measure the time during which time existed, you can't even express how long…
<Dysp> Just for curiousity. <50 or >50? :P
<apeiros> <
flashpoint9 has quit [Remote host closed the connection]
<Dysp> Alrighty. I will try to scribble down some thoughts on organizing this. Then I can return and get stomped allover by you later.
<Dysp> It's a plan!
* mikecmpbll puts his boots on
JiYu has quit [Remote host closed the connection]
<jhass> Z3N1T: my google says http://stackoverflow.com/a/21333558/2199687
<apeiros> mikecmpbll: this? data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIPEhURExISFhUXDRoYGBgVGR0ZFRkZFRoXFx0fGBYYHSggGholGxYXIjEhJSorLi4uGCIzODMsNygtLisBCgoKDg0OGxAQGi4mHyYuLTYwLy0tLS0tLSsvLy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAHgAgAMBEQACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAAAQQFBgcDCAL/xABCEAABAwICBgQKCQIHAQAAAAABAAIDBBEFEgYHEyExUSJBcZEUMjRSVWF0lLLTFRYXU2KBobHRQsEkJTM1ctLjI//EABsBAQACAwEBAAAAAAAAAAAAAAAEBQECAwYH/8QAMhEAAg
<apeiros> IBAQYEBQMEAwAAAAAAAAECAxEEBRITITFRFEFhkRUyUqHRIoGxQnKSwQYzQ//aAAwDAQACEQMRAD8A3EIAQAgBACAa4nV7CGSa2bZwufa9r5Gl1r2Nr25IDIxrzd6PZ71/4Jg1349zpT67XPexn0e0ZpGtv4Te2YgXtsN/FDO8u5sKGQCAVACAEAlkAWQAUAoQAgBACAEBh+umZ4xGBoe8A07LgOIabvcDcA2K1l8rO+kWb6/7l/JWauZrN2Ti3qsq/L7n0mVcF/SvZEVZZyzjOqLi1ur2X4OT9tbyiXh57/8AspPiF2PLr/jli/8ARezN/wBAtO2Yu6ZrIHxbJrCczg6+0LgLW/4FSDzuS4oAQAgBACAQoAQCoAQEfj+LMoqeWpe1zmxRlzg22YgcrkDvKA8/ad6aHEKkTUz6mJmxDcuct3gnfaN5HWgKtPUySHM+R
<apeiros> 7yBxe4uPe4koE8PJzMpPFx71jdXY6eIt+t/5M+mS26z3rjbS5P9JZ6DafAUlZvPPr+WOIJxv4qNOtw6nodn7ShqHLdTWMdceeT5E0rAdlJJGS2xLHObflfKRe11mq1Rzkha/Z7vUVXhY68vwehdAdOIcTzQxxzNdDAwuMmWxzXbuLXE8WnipyPKtYbRcVkwCAEAIBCgFCAEAIDnPA2RpY9rXNIsWuAIPaDxQGXaeas5q2pEtL4NFGIWty2y9IE3Nmtt1hAZvjei8uG1cNPM6Nxe5jujcts5+WxuPUtZ/K2dKccSOe6/kn8WfT00rInxNLn2tlY2292Xff1qtq37IuSfQ9DdqNPVJRcOvoiUlwJlnDZw+Kf6RyPqXFah+pIlGlrCivZGc4phMlKGZ3NOYG2Un+m3G/arWFkbc8jz91F2kSTl17eg12oUfw0i7+N6deTL
<apeiros> bqy0ugwmWolnbK4SQMaNmATdjnk3uR1OCmLlyPMSeW2eiKScSMZIL2cwOF+NnAHf3rJg6oAQAgEKAUIAQAgGON4myjgkqZM2SNmZ2UXNhyHWgMqxvE63F5PCcOqZIoAwMLXOMZztJuctjzG9cLNRGt4Z2rolYsohJdEMSlmjnqJmSlj2m73kuyscHWHR7Vxnq4OLXM716Wamny6ocaS4BLU1EMrCzKwNvmNjufm3buSiae+Fdbi/Mn6rTTssUo45fksFZVNZcm/ik9yjQg5dCxUW8vsZhpJisdVstnm6IdfMLeNlt1+pXNFUq85KPaGrr1O64Z5Z6/sSer6iimdOJI2vsxlswva5d/C466coKO68GNn1wnKW8s9P9nTWPh8UMURjjYwl7wcotezRxWuhslNyUnnkb7RqhCMd1Y5noDA/JoPZo/hCsCsHyAEAIBCgFCA
<apeiros> EAICE00w6SroainiAMkkBa25sLm3E9SAynB3OwfLQ1Lssz5M7Qy722fuHSAtfolV2ronOW/HpgtNBbWlw5dWye+lR5zlA3JFx4f0IDH9IY4Tlzua4xEiwPHeApNGncueDlfqK6Fuz6tciC0Z0lble2rke9zntDLgu3EWIuBu3kKRqNM8p1rHcrNHrd1NWyfP0PvSXRd3/AMxDHG22bNY282391ijUrnvMk6vQKzd4EUsdSx4PTw05dlYG5rA5Rxtf+VFucp455LFaauHyJLuQtZh8uO3hpCHOhJc8SHIAH3aLEjfvaVP01Mq8t+ZS7R1FVsYqHVNm84XCY4YmO8ZsLGnta0A/spZVjpACAEAhQChACAEAlkBm+s6owyMyGXL4cKS8Js4uHHJYjdxusNJrDNoycGpR6oy7DDiNU0viJc0Oyk9EbxY9faFX336TTy3bHh
<apeiros> /uSJbTvi+cxa3RvEZyHSR5iBYdJvD8lzjtTRR5KX2ZGt1jteZyycG6IVoIOy3g38ZvVv5rf4vo+m/9mcuNHrklZaTGHcbn82da4LXbPXR/ZktbUuXSZ8DDsW5HvYs+P0Hf7M2+LXL+sjaSsr8Jc6SN5idL0XEZXZspLuu9rZj3qwp1NVuVW+hEVinnBc9X+sqQTSfSNUTHsOhdo8fMPMbyupBsbRS1DZWNkabtewOaeYcAR+hQHVACAQoBQgBACAEBh+tSBsuMwRvF2uiiBHMFz1H1c5QonOPVLkayeEyWpaSGkYY4hkBu62877Wvv7F4yyy7UyU58yDKWebOHhj+f6BduBDsa5F8Mfz/RODDsYyHhj+f6JwIdhk5y4mWWzOt+SeHg/IZKziDRUWEnSAcSOrj2KbTdOnO48GVJx6FMnFi4fiI/Ur00HmKb7Fiuh6r0a
<jhass> !kick apeiros Please use https://gist.github.com
apeiros was kicked from #ruby by ruby[bot] [Please use https://gist.github.com]
<mikecmpbll> lmao
<Dysp> haha
<tobiasvl> et tu, apeiros
qguv has joined #ruby
<Dysp> He/she had a good run
<yorickpeterse> lol
<mikecmpbll> ah man, that was funny.
<jhass> Dysp: They ;)
<yorickpeterse> Now lets see what's in the image...
<jhass> (or he in this specific case)
edwardly has quit [Ping timeout: 276 seconds]
<Dysp> Is that the correct way of expressing the 'aseksual' version?
<Dysp> English is not my primary language.
<yorickpeterse> I thought apeiros was a lizard?
apeiros has joined #ruby
<apeiros> apologies
<toretore> you're not supposed to say that yorickpeterse
<mikecmpbll> :D
<apeiros> I didn't notice that google used an inline-data image
<Dysp> Interesting, jhass
<jhass> :)
<mikecmpbll> haha :D absolutely.
slackbotgz has joined #ruby
<apeiros> weird, though - limechat used to open a multiline text window with long messages…
<Dysp> Btw, off topic of anything: Do you guys use the mIRC client?
<apeiros> no. I'm not masochistic enough to use windows.
<jhass> ^
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
<Dysp> and by guys I mean "gender neutral"
<Dysp> :p
<PalaHO> no ahah
<PalaHO> irssi
<mikecmpbll> textual is a joy.
<PalaHO> yep
<jhass> Dysp: folks is a good word here, or just people again ;)
<Dysp> True. It was a slip
<Z3N1T> I try again this, only for test, because I make this where use ruby for windows, not cygwin, and have the same problem, I cheked if have VC++ but nothing work.
<PalaHO> how did u install ruby on windows ?
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
<PalaHO> any install error during the process ?
anisha has quit [Quit: This computer has gone to sleep]
<apeiros> yorickpeterse: lizards have genders too!
LiohAu has left #ruby [#ruby]
<Z3N1T> In windows the ruby no have problem, I used the ruby official packages
eljimmy has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Remote host closed the connection]
<Z3N1T> I can restart all install again from zero, but not today, I whant find the problem in cygwin first.
<Z3N1T> I will try install devkit again.
<Dysp> And, by the way, in good ol' Denmark sexism isn't really a big thing. So we people tend to let it slip whenever someone makes a mistake; "They probably didn't know better, I will give them the benefit of the doubt" :P
dionysus69 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<Bish> adaedra: thanks for the suggestion seems like it works like a charm
mim1k_ has quit [Quit: Reconnecting]
mim1k has joined #ruby
dhollinger has joined #ruby
davedev24 has joined #ruby
programmerq has quit [Remote host closed the connection]
programmerq has joined #ruby
SilverKey has joined #ruby
ledestin has joined #ruby
joonty has joined #ruby
TheWhip has quit [Remote host closed the connection]
<Bish> well, not yet, i configured to work globally, and it doesn't work ;;
davedev24 has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
flashpoint9 has joined #ruby
Torrone has joined #ruby
hutch34 has joined #ruby
iamvery has joined #ruby
csk has joined #ruby
<Z3N1T> well, DevKit not find Ruby on Cygwin, I run ruby dk.rb init and config.yml is empty, I try put the path for my gems and ruby instalation like cygwin path syntax but dk not find ruby.
denofevil has joined #ruby
godaccess has left #ruby [#ruby]
c0mrad3 has quit [Quit: Connection closed for inactivity]
denofevil has left #ruby [#ruby]
raz is now known as bdq
<adaedra> Bish:
loechel has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
Pumukel has quit [Read error: Connection reset by peer]
iLogic has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
dionysus69 has joined #ruby
morf has joined #ruby
SilverKey has quit [Quit: Halted.]
iLogic has joined #ruby
iamvery has quit [Remote host closed the connection]
craigp_ has quit [Ping timeout: 260 seconds]
<Bish> adaedra: i added chruby.sh to /etc/profiles.d/ and it works well for root
<Bish> but when i login/su - to another account, it doesn't have the chruby environment
alfiemax has quit [Ping timeout: 258 seconds]
<gregf_> hello
<gregf_> is it possible to install multiple versions of the same gem?
<gregf_> rvm related
<gregf_> for the same ruby version that is
binaryplease1 has joined #ruby
<Bish> adaedra: nvm, i am an idiot, i think the file was not readable for users
jgt has quit [Ping timeout: 265 seconds]
<apeiros> gregf_: with rvm: see gemsets. independently: see bundler
danman has joined #ruby
eljimmy has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
<gregf_> apeiros: ah - sure, ta
iLogic has quit [Ping timeout: 240 seconds]
slackbotgz has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
iLogic has joined #ruby
<gregf_> wow, that was simple :)
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
pmyjavec has joined #ruby
flashpoint9 has joined #ruby
beilabs has joined #ruby
Puck6633 has joined #ruby
fmcgeough has joined #ruby
saneax_AFK is now known as saneax
workmad3 has joined #ruby
tjohnson has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
saneax is now known as Guest47565
JiYu has joined #ruby
Pumukel has quit [Remote host closed the connection]
DaniG2k has joined #ruby
SilverKey has joined #ruby
<Puck6633> Hey, quick question. I'm working with a gem that seems to spawn a bunch of worker threads to handle commands passed to it, which then execute code of my own. Is there a good way to handle exceptions globally in a scenario like this?
<Puck6633> e.g. For exceptions not specifically handled, write a backtrace to a log file and exit.
<apeiros> define "good"
<apeiros> Thread.abort_on_exception = true
binaryplease1 is now known as binaryplease
<Puck6633> Basically just not manually repeating the same begin/rescue clause for every single command
<apeiros> well, that'll be difficult. wrap your code in a begin/rescue which does what you want.
<PalaHO> lie try and catch
<PalaHO> like
perlgod has joined #ruby
<Puck6633> I tried wrapping the main code in a general begin/rescue clause, but it doesn't work, I'm guessing because of the threaded nature of the thing.
perlgod has quit [Max SendQ exceeded]
<Puck6633> I was hoping for something like a global exception handler I guess.
hahuang61 has joined #ruby
perlgod has joined #ruby
<Puck6633> As it is, it dumps the backtrace to the console and keeps running, which isn't all that helpful to me.
<Puck6633> (Again, I'm guessing that happens because when the exception isn't handled the worker thread dies but the main thread continues)
govg has joined #ruby
orangey has joined #ruby
symm- has joined #ruby
mim1k has quit [Ping timeout: 264 seconds]
<jhass> Puck6633: did you try the suggestion yet? (Thread.abort_on_exception = true)
<Puck6633> jhass: I did, but maybe I'm not understanding it correctly. Is there a way to catch that exception?
<apeiros> Puck6633: define a method then which takes a block and wraps the block in begin/rescue
<Puck6633> I don't *just* want to abort.
Spami has joined #ruby
OTORelic2 has joined #ruby
<Puck6633> apeiros: Oh, I like that!
tulak has joined #ruby
<Puck6633> I don't utilize blocks nearly enough. I'll give that a try.
<apeiros> logging_exception do …your stuff… end
JeanCarl1Machado has joined #ruby
<apeiros> *exceptions
<Puck6633> Thanks!
tulak has quit [Client Quit]
hahuang61 has quit [Ping timeout: 250 seconds]
<Bish> chruby does not save the used chruby!?
<Bish> im getting more and more confused
<jhass> it ships auto.sh which watches for .ruby-version files
<jhass> but no
<adaedra> I personally have `chruby …` in my .zshrc
mim1k has joined #ruby
<adaedra> Creating a system to have a global ruby version is quite easy though.
symm- has quit [Client Quit]
<Bish> phew..
<Bish> i just added the chruby line to profile.d
bougyman has joined #ruby
bougyman is now known as Guest89460
youch has joined #ruby
ryanweb has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
sqljunkey has joined #ruby
rileyy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest89460 has quit [Ping timeout: 258 seconds]
<sqljunkey> how can I download and open a CSV file in ruby (without having to store it on disk? )
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> sqljunkey: net/http, open-uri, or any of the various other http client libraries
jgt has joined #ruby
<sqljunkey> so I just do CSV file = openlink ("url")
<sqljunkey> something like that?
<apeiros> something like that, yes
<adaedra> Depends on your choice for downloading the file
<apeiros> open-uri for that kind of way
<adaedra> &ri CSV OpenURI
matty_matt has quit [Quit: matty_matt]
l4v2 has joined #ruby
[Butch] has joined #ruby
<sqljunkey> arr_of_arrs = CSV.read("http://ruby.com/file.csv") ?
<adaedra> Did you try it?
flashpoint9 has quit [Remote host closed the connection]
dr0lan has joined #ruby
Takumo has quit [Quit: ZNC is going down!]
karapetyan has joined #ruby
agent_white has joined #ruby
submitnine has quit [Ping timeout: 264 seconds]
davedev24 has joined #ruby
<agent_white> Mornin!
karapetyan has quit [Ping timeout: 244 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
rkazak has joined #ruby
<sqljunkey> well can I use CSV to read directly from an online URI or not.
<sqljunkey> or do I have to download it first, save it with openuri and then open it with CSV?
davedev24 has quit [Ping timeout: 250 seconds]
iamvery has joined #ruby
zacts has joined #ruby
Guest47565 is now known as saneax_AFK
<adaedra> You can do it in-memory, yes
<adaedra> I suggest you try the code you pasted; we're no interpreters, your local ruby install will do a better job at validating your code.
<adaedra> If you get an error or unexpected behavior you don't understand, then you can come back for it.
<apeiros> no you can't use csv to read directly from an URI. but no you don't need to save it as a file first either.
<zacts> hi rubyists
<apeiros> hi zacts
<adaedra> hi zacts
<mustmodify> hi zacts
<zacts> :-) hello ever so friendly irc channel
<`derpy> hi zacts
Pupp3tm4st3r has joined #ruby
<apeiros> even the bots are friendly
<mustmodify> > puts "Hi Zacts"
<mustmodify> d'Oh
Torrone has quit [Quit: This computer has gone to sleep]
<`derpy> And the humans can't type.
borodin has joined #ruby
<jhass> we should make > evaluate with crystal, just to mess with people
failshell has joined #ruby
<adaedra> ssssh.
<apeiros> not python?
<apeiros> ah no, >>> for python.
<adaedra> :D
etetz has joined #ruby
<adaedra> First ruby meetup I went, they started talks by two crystal talks
<jhass> :D
<apeiros> hah
<jhass> python was my first thought actually, but too obvious
Pupp3tm4st3r has quit [Remote host closed the connection]
jxs__ has quit [Remote host closed the connection]
ta_ has quit [Quit: Leaving...]
aganov has quit [Remote host closed the connection]
skade has joined #ruby
ta_ has joined #ruby
jhack has joined #ruby
the_rhizo2 has quit [Ping timeout: 240 seconds]
malconis has quit [Quit: Textual IRC Client: www.textualapp.com]
joonty has quit [Quit: This computer has gone to sleep]
the_rhizo2 has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
yardenbar has quit [Ping timeout: 264 seconds]
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
tvon has quit [Quit: Peace out, y'all!]
moparisthebest has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Torrone has joined #ruby
Ropeney has quit [Quit: Leaving]
minotep has quit [Ping timeout: 276 seconds]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
Torrone has quit [Read error: Connection reset by peer]
Torrone has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 265 seconds]
rodfersou is now known as rodfersou|lunch
JeanCarloMachado has quit [Ping timeout: 258 seconds]
morochena has joined #ruby
conta has quit [Ping timeout: 244 seconds]
axsuul has joined #ruby
morochena has quit [Client Quit]
blackmesa has joined #ruby
malconis has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
failshell has quit []
jeanlinu_ has joined #ruby
<yorickpeterse> adaedra: to be honest those kind of things generally piss me off
Azure|dc has joined #ruby
<adaedra> which kind of things?
<yorickpeterse> It's a _Ruby_ meetup, not a Crystal/other-thing meetup. The only case where I think it makes sense is when you can actually learn something from it and apply it to Ruby/etc
<adaedra> ah
<yorickpeterse> in my experience however those talks tend to be along the lines of "look at how kewl this is, Ruby sucks"
Azure has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
flashpoint9 has joined #ruby
<eam> when people aren't saying some language sucks it just means no one's actually using it yet
jeanlinux has quit [Ping timeout: 265 seconds]
<eam> really, lack of criticism is the ultimate criticism
beilabs has quit [Remote host closed the connection]
aufi has quit [Quit: Leaving]
<eam> lots of systems are amazing when confined to an ivory tower
TheWhip has joined #ruby
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Snowy has quit [Remote host closed the connection]
rileyy has joined #ruby
<adaedra> Well, seeing what Crystal proposes was interesting for me, but I totally understand how it can be annoying for people coming for, well, ruby
teclator has quit [Ping timeout: 250 seconds]
<adaedra> But soon Crystal will have its own meetup and everything will come back into order.
davidw has joined #ruby
<adaedra> jhass will organize Crystal meetups everywhere.
TomyWork has quit [Ping timeout: 276 seconds]
<jhass> :D
SteenJobs has quit [Quit: SteenJobs]
alfiemax has joined #ruby
klautcomputing has quit [Ping timeout: 250 seconds]
mark_66 has quit [Remote host closed the connection]
LuckyABA has joined #ruby
Torrone has quit [Quit: This computer has gone to sleep]
Gutenberg has quit [Ping timeout: 258 seconds]
Torrone has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
Vingador has joined #ruby
moparisthebest has joined #ruby
amclain has joined #ruby
polishdub has joined #ruby
frozengeek has quit [Quit: frozengeek]
iamvery has quit [Quit: Leaving...]
zacts has quit [Quit: WeeChat 1.4]
Spami has quit [Quit: This computer has gone to sleep]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
irc_BT has joined #ruby
irc_BT is now known as hiyat
nvd has joined #ruby
spudowiar is now known as ruby
TheWhip has quit [Remote host closed the connection]
ruby is now known as spudowiar
rkazak has quit [Ping timeout: 252 seconds]
TheWhip has joined #ruby
TheWhip has quit [Remote host closed the connection]
thai_ has quit [Quit: ZNC 1.6.3 - http://znc.in]
da3mon has joined #ruby
da3mon has quit [Client Quit]
nvd has left #ruby [#ruby]
mcqr has joined #ruby
nikivi has quit [Quit: zzz]
teclator has joined #ruby
davedev24 has joined #ruby
mikecmpbll has quit [Ping timeout: 244 seconds]
skweek has joined #ruby
p0p0pr37_ has joined #ruby
DaniG2k has quit [Ping timeout: 244 seconds]
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
nikivi has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
p0p0pr37 has quit [Ping timeout: 244 seconds]
p0p0pr37_ is now known as p0p0pr37
mrgrieves has quit [Ping timeout: 265 seconds]
LoneHerm_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
TRUMP-PENCE has quit [Quit: TRUMP-PENCE 2016]
soLucien has quit [Quit: Leaving]
dionysus69 has joined #ruby
TomyLobo has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
disconnekted has quit [Remote host closed the connection]
PalaHO has quit [Quit: leaving]
TRUMP-PENCE has joined #ruby
davedev24 has joined #ruby
tomphp has quit [Ping timeout: 252 seconds]
et09_ has joined #ruby
<et09_> is there syntactic sugar for foobar = foobar.method
<adaedra> no
joonty has joined #ruby
<et09_> OK
<et09_> thanks
et09_ has quit [Client Quit]
mim1k has quit [Ping timeout: 244 seconds]
pandaant has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
joonty has quit [Client Quit]
kies has quit [Ping timeout: 260 seconds]
yeticry_ has quit [Remote host closed the connection]
yeticry_ has joined #ruby
davedev24 has quit [Read error: Network is unreachable]
davedev24 has joined #ruby
kies has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
jaruga has quit [Quit: jaruga]
nankyokusei has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
GinoMan2440_ has joined #ruby
GinoMan2440 has quit [Ping timeout: 244 seconds]
Dry_Lips has quit [Quit: ZNC 1.6.3 - http://znc.in]
moei has quit [Quit: Leaving...]
nankyokusei has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
Jigger has joined #ruby
<Jigger> lo0l
Jigger has left #ruby [#ruby]
yeticry has quit [Ping timeout: 244 seconds]
giz|work has quit [Ping timeout: 244 seconds]
GinoMan2440 has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
yeticry has joined #ruby
GinoMan2440_ has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby
marxarelli has joined #ruby
aryaching has joined #ruby
theery has joined #ruby
joneshf-laptop has quit [Quit: Leaving]
<foxxx0> sinatra is causing a LOT of headaches to me right now
<foxxx0> i have no idea whatsoever why this is happening
nitric has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
<foxxx0> there is no other '/mail' namespace anywhere, no special before blocks for that anywhere or anything like that
<foxxx0> i am simply unable to use that namespace
<foxxx0> and i have no idea why
LoneHermit has joined #ruby
<foxxx0> for some reason the session is completely empty when accessing /mail
<foxxx0> everywhere the session is perfectly fine
pmyjavec has joined #ruby
cjbrambo has quit [Quit: ZNC - http://znc.in]
klautcomputing has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
flying has quit []
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> this is hardly anywhere enough code to troubleshoot your issue. Ideally you would give us something we can run locally to reproduce
rodfersou|lunch is now known as rodfersou
hiyat has quit [Ping timeout: 250 seconds]
<foxxx0> i'm preparing a multipaste right now
LuckyABA has quit [Quit: Textual IRC Client: www.textualapp.com]
LuckyABA has joined #ruby
zacts has joined #ruby
LuckyABA has quit [Client Quit]
<jhass> use a gist so we can just clone it
LuckyABA has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
synthroid has quit []
hutch34 has quit [Ping timeout: 240 seconds]
aegis3121 has quit [Quit: Textual IRC Client: www.textualapp.com]
hk238 has joined #ruby
<foxxx0> you might need to rewrite the POST /login endpoint to check against "admin":"password" or something like that, because you don't have the api available
dr0lan has quit [Quit: WeeChat 1.0.1]
LoneHermit has quit [Remote host closed the connection]
zacts has quit [Client Quit]
Spami has joined #ruby
pawnbox_ has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
spudowiar has quit [Quit: this WILL work :)]
pawnbox has quit [Ping timeout: 258 seconds]
spudowiar has joined #ruby
<foxxx0> doing GET queries on a non-existing resource and the broken /mail resource using the SAME cookie with curl results in: https://paste.foxxx0.de/5Ye/
SilverKey has quit [Quit: Halted.]
<foxxx0> for some reason the /mail namespace does not recognize the session, but it does recognize just fine everywhere else
pmyjavec has joined #ruby
<jhass> I'm getting https://p.jhass.eu/4q.txt
eljimmy has quit [Quit: This computer has gone to sleep]
<foxxx0> weird
<foxxx0> how are you starting it?
hahuang65 has quit [Quit: WeeChat 1.5]
<foxxx0> ah
<foxxx0> wait
mahlon_ is now known as mahlon
kossae has quit [Quit: WeeChat 1.5]
ramfjord has joined #ruby
hutch34 has joined #ruby
<foxxx0> jhass: i have updated the appconfig.example.yml and pushed to github, please pull
ledestin has joined #ruby
SilverKey has joined #ruby
jaequery has joined #ruby
trabulmonkee has joined #ruby
eljimmy has joined #ruby
beilabs has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
mrgrieves has joined #ruby
Rodya_ has joined #ruby
JeanCarloMachado has joined #ruby
FastJack has quit [Ping timeout: 244 seconds]
jaequery has quit [Ping timeout: 244 seconds]
<foxxx0> jhass: did you get it to start? feel free to ask any questions, the whole project is still a bit unorganized
<jhass> yeah, taking the chance to learn httpie's session storage
poguez_ has joined #ruby
Spritzgebaeck has joined #ruby
cajone has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
mrgrieves has quit [Ping timeout: 265 seconds]
Rodya_ has quit [Ping timeout: 250 seconds]
<foxxx0> alright, just let me know if you need anything else
FastJack has joined #ruby
Rodya_ has joined #ruby
cajone has joined #ruby
JeanCarl1Machado has joined #ruby
nikivi has quit [Quit: irc]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
hk238 has joined #ruby
<jhass> #ruby is fine for this
flashpoint9 has joined #ruby
jaequery has joined #ruby
<jhass> foxxx0: do you access it as localhost:4567 or something else?
<foxxx0> i'm using RACK_ENV='development' bundle exec rackup -p 9494
<foxxx0> and then localhost:9494 obviously
<jhass> what did you configure for the domain?
polishdub has quit [Quit: Leaving]
<foxxx0> what do you mean by that?
marxarelli is now known as marxarelli|afk
<foxxx0> appconfig session:domain: 'localhost'
<jhass> well my clients don't seem to accept domain=localhost for a request to localhost:some_port
marxarelli|afk is now known as marxarelli
ponga has quit [Quit: Connection closed for inactivity]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
minotep has joined #ruby
alfiemax has joined #ruby
polishdub has joined #ruby
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<foxxx0> what client is that?
<foxxx0> chromium is working just fine over here
<jhass> curl
axsuul has joined #ruby
despai has joined #ruby
<foxxx0> another friend just cloned and it's working for him too
pokalyis has quit [Read error: Connection reset by peer]
Kyhz has joined #ruby
kyle__ has quit [Ping timeout: 250 seconds]
<jhass> https://p.jhass.eu/4v.txt following redirects
<jhass> so yeah, cannot repro
<foxxx0> something seems to borked on my end
pmyjavec has quit [Remote host closed the connection]
<foxxx0> i'm cloning a fresh instance into /tmp/ and will try again, thank for your effort though
SteenJobs has joined #ruby
Puck6633 has quit [Read error: Network is unreachable]
GodFather has joined #ruby
hahuang65 has joined #ruby
pmyjavec has joined #ruby
LoneHermit has joined #ruby
Puck6633 has joined #ruby
yardenbar has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
<cschneid_> What's the fastest way to get a yes/no on if a regex matches a string?
<cschneid_> I don't want to create a MatchData obj, or set the $1 type vars
GodFather has quit [Remote host closed the connection]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
<cschneid_> on ruby s1.9, 2+ or so I think?
DaniG2k has joined #ruby
<jhass> 2.4 will have .match? for that
djbkd has joined #ruby
<cschneid_> yeah, I saw that - should I just use =~ for now?
spider-mario has joined #ruby
<cschneid_> or .match()
<jhass> both create the MatchData
djbkd has quit [Read error: Connection reset by peer]
<jhass> I kinda like String#[] but regularly forget to use it
djbkd has joined #ruby
<foxxx0> jhass: fresh clone works here too... something in my work dir seems to be horribly broken
<jhass> foxxx0: interesting, git diff?
djbkd has quit [Read error: Connection reset by peer]
skweek has quit [Remote host closed the connection]
<jhass> cschneid_: I guess in specific cases it's possible to match the failure case rather than the good case and then assuming the good case is more common you avoid the MatchData for it
GodFather has joined #ruby
<jhass> so you blacklist rather than whitelist
Rodya_ has quit [Remote host closed the connection]
<cschneid_> yeah, I'm unsure on the % of pass & fail. Hard to predict. I'll just do this - already optimizing by precompiling the regex
<jhass> but that would need to be done with great care
<cschneid_> it's not a security sensitive thing at all, so no biggie there
djbkd has joined #ruby
stamina has quit [Ping timeout: 244 seconds]
elifoster has joined #ruby
skweek has joined #ruby
andikr has quit [Remote host closed the connection]
uranellus has joined #ruby
uranellus has quit [Changing host]
uranellus has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
zeroDi has joined #ruby
dunpeal has quit [Ping timeout: 250 seconds]
spudowiar has quit [Quit: THIS WILL WORK :)]
<foxxx0> jhass: removed .sass-cache, .bundle, ./tmp/, ./vendor; freshly installed all gems by calling 'bundle'; works perfectly.....
spudowiar has joined #ruby
<jhass> I bet on /tmp
<jhass> something messed up rack's session store
OTORelic3 has joined #ruby
<foxxx0> anyway, thanks for your help
machinewar has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<machinewar> what's fastest way to write large xml files?
<machinewar> nokogiri?
dennisvennink has joined #ruby
crystal77 has joined #ruby
OTORelic2 has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
crystal77 has quit [Client Quit]
l4v2 has quit [Quit: l4v2]
miqlas-H has joined #ruby
<jhass> nokogiri or oga I guss
<jhass> *guess
crystal77 has joined #ruby
djbkd has joined #ruby
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> oh wait, oga doesn't serialize?
<machinewar> hmmm not sure I haven't used it
dunpeal has joined #ruby
theery has quit [Remote host closed the connection]
theery has joined #ruby
<jhass> there's also ox
The_Phoenix has joined #ruby
The_Phoenix1 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bad_ip has quit [Ping timeout: 265 seconds]
theery has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
The_Phoenix has quit [Ping timeout: 258 seconds]
huyderman has quit [Remote host closed the connection]
TRUMP-PENCE has quit [Quit: TRUMP-PENCE 2016 #AllLivesForTrump #TrumpNation #TrumpTrain #teamtrump #TrumpPence #NeverHillary #maga #MakeAmericaGreatAgain #HumaTheHoneyPot #BarackBinLaden #CaliphateClinton]
qguv has quit [Quit: bye]
djbkd has joined #ruby
blackmesa has joined #ruby
TRUMP-PENCE has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
OrbitalKitten has joined #ruby
last_staff has joined #ruby
karapetyan has joined #ruby
ramfjord has joined #ruby
rileyy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 258 seconds]
<machinewar> thanks will check it out
Derperperd has joined #ruby
conta has joined #ruby
karapetyan has quit [Remote host closed the connection]
last_staff has quit [Remote host closed the connection]
karapetyan has joined #ruby
ixti has joined #ruby
djbkd has joined #ruby
last_staff has joined #ruby
spudowiar has quit [Quit: hugging is not permitted.]
karapetyan has quit [Remote host closed the connection]
kavanagh has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
ec0 has joined #ruby
karapetyan has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
rileyy has joined #ruby
SCHAAP137 has joined #ruby
djbkd has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
MrBusiness has quit [Ping timeout: 250 seconds]
<foxxx0> i have an object with a structure of: { "1" => { id: 1, name: 'foo' }, "2" => { id: 2, name: 'bar' } }, how to i iterate over the child objects only?
karapetyan has joined #ruby
DaniG2k has quit [Quit: leaving]
<jhass> .each_value
phoo1234567 has quit [Quit: Gotta go]
<foxxx0> aaah, thanks
djbkd has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
bocaneri has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
karapetyan has joined #ruby
nofxx has joined #ruby
elifoster has quit [Quit: out]
kyle__ has joined #ruby
johnmilton has quit [Remote host closed the connection]
rileyy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
kingman has quit [Quit: (null)]
SteenJobs has joined #ruby
ramfjord has joined #ruby
kavanagh has quit [Quit: That's all folks!]
kavanagh has joined #ruby
SilverKey has joined #ruby
Dimik has joined #ruby
hahuang61 has joined #ruby
bad_ip has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
Rodya_ has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
QORRiE has joined #ruby
Derperperd has quit [Quit: Derperperd]
hahuang61 has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 264 seconds]
jeanlinu_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 265 seconds]
tyang has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
symm- has joined #ruby
cdg has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
csk has quit [Ping timeout: 276 seconds]
leea has joined #ruby
csk has joined #ruby
csk has quit [Max SendQ exceeded]
c0mrad3 has joined #ruby
<Dysp> Alright. I've been getting a little smarter. But something I still don't seem to get is the whole use of private methods.
djbkd has quit [Remote host closed the connection]
pawnbox_ has quit [Remote host closed the connection]
<Dysp> I am getting these errors because I make the functions private, obviously. If I unflag them as private, test runs succesful. But, shouldn't I hide them? The only thing I want in my interface is the initialization and the .validate method.
ledestin has quit [Ping timeout: 244 seconds]
<jhass> no you get it because you call private outside your class
<jhass> just uncomment the # Private and make it private
djbkd has joined #ruby
_djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<Dysp> So this makes everything below private?
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Dysp> below private, private.
<jhass> yes
<Dysp> Heureka
ixti has quit [Ping timeout: 244 seconds]
csk has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
d5sx43 has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
mtkd has joined #ruby
d5sx43 has quit [Client Quit]
nvd has joined #ruby
Xiti has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
siaw23 has joined #ruby
<foxxx0> jhass: how do i access the "keys" of the object mentioned earlier? i just want ["1", "2"] from the object now
tyang has joined #ruby
johnmilton has joined #ruby
<siaw23> i’m playing with ruby. is there a shorter way to write this: https://gist.github.com/anonymous/968140648e9c5a9033333b4361e926b0
<siaw23> :D
kossae has joined #ruby
<foxxx0> jhass: nvm, i'm retarded
<mustmodify> siaw23: yes, see upcase
<mustmodify> String#upcase
<mustmodify> also String#upcase!
<siaw23> exactly what i was looking for but couldn’t remember :p
<siaw23> mustmodify: thanks!
<mustmodify> siaw23: Thanks for trying new languages. :S
<siaw23> mustmodify: you’re welcome :)
johnmilton has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
miqlas-H has quit [Ping timeout: 276 seconds]
rajdesai has joined #ruby
axsuul has joined #ruby
<machinewar> anyone know where active_record stores eager_loaded associations. I'm sure its pretty complex, but could it just be a hash in memory
craigp_ has joined #ruby
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
SilverKey has quit [Quit: Halted.]
_djbkd has quit [Remote host closed the connection]
evie_hammond has quit [Quit: WeeChat 1.5]
nvd has quit [Quit: BitchX: born to raise hell]
<siaw23> | and || are the same?
<siaw23> same question for & and &&
djbkd has joined #ruby
<siaw23> i think they are not there’s a subtle difference which i forgot
rajdesai has quit [Ping timeout: 258 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Remote host closed the connection]
evie_hammond has joined #ruby
Silox| has joined #ruby
safetypin has joined #ruby
marxarelli is now known as marxarelli|afk
<machinewar> & , | are for union and intersection of arrays
<machinewar> && and || are boolean operators
flashpoint9 has joined #ruby
<shellie_> & and | are the bitwise operators for 'bitwise and' and 'bitwise or' respectively
despai has quit [Quit: Connection closed for inactivity]
<shellie_> some types, may do operator overload and give them different meanings, That may be the case with arrays
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<machinewar> awesome thanks
r_rios has joined #ruby
<siaw23> mustmodify:
<siaw23> machinewar: thanks :)
<siaw23> shellie_: thanks :)
eljimmy has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 258 seconds]
Spami has joined #ruby
jackjackdripper has joined #ruby
BrianJ has joined #ruby
bad_ip has quit [Quit: Some people just want to watch the world burn.]
bad_ip has joined #ruby
bfrizzle has quit [Ping timeout: 240 seconds]
machinewar has quit []
rileyy has joined #ruby
rileyy has quit [Client Quit]
craysiii has joined #ruby
queitsch has quit [Quit: queitsch]
kavanagh has quit [Quit: That's all folks!]
sepp2k has quit [Quit: Leaving.]
<toretore> \j #coreos
<toretore> damnit
arthurix has joined #ruby
arthurix has quit [Client Quit]
arthurix has joined #ruby
arthurix has quit [Remote host closed the connection]
beilabs_ has joined #ruby
firstdayonthejob has joined #ruby
ELLIOTTCABLE has quit [Ping timeout: 250 seconds]
dobrse_internet has joined #ruby
omphe has joined #ruby
beilabs has quit [Ping timeout: 258 seconds]
ELLIOTTCABLE has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
SilverKey has joined #ruby
marxarelli|afk is now known as marxarelli
omphe has quit [Client Quit]
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dobrse_internet is now known as kaiks
mcqr has quit [Ping timeout: 258 seconds]
ixti has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.5]
TheWhip has joined #ruby
cschneid_ has quit [Remote host closed the connection]
stamina has joined #ruby
blackgoat has joined #ruby
cdg has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
mcqr has joined #ruby
kavanagh has joined #ruby
SteenJobs has joined #ruby
marxarelli has joined #ruby
SteenJobs has quit [Client Quit]
<kaiks> Is there a neat way to do a method that influences following methods in a method chain? e.g. say numbers.even.prime returns [2], and then numbers.even.!except!.prime would return numbers.select{ |n| n.even?}.select{ |n| !n.prime?}
marxarelli has quit [Remote host closed the connection]
marxarelli has joined #ruby
<toretore> you have to return an object which intercepts those messages and does the thing you want
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore> but it sounds like something that's not worth the effort, just because it "looks neat"
theery has joined #ruby
dionysus69 has joined #ruby
leea has joined #ruby
<toretore> orms often do studd like this in their query building logic
<toretore> stuff
<kaiks> alright, thought i'm missing something
<toretore> but it's not something that can be easily generalized; orms work on a common DataSet or Query object which has the required logic built in
SilverKey has quit [Quit: Halted.]
sepp2k has joined #ruby
<kaiks> okay, thanks
jgnagy has joined #ruby
tyang has quit [Quit: Leaving]
cschneid_ has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
Rodya_ has joined #ruby
SilverKey has joined #ruby
cschneid_ has quit [Remote host closed the connection]
kavanagh has quit [Read error: Connection reset by peer]
omphe has joined #ruby
kavanagh has joined #ruby
ramfjord has joined #ruby
rsampaio_ has joined #ruby
mcqr has quit [Ping timeout: 276 seconds]
SteenJobs has joined #ruby
Rodya_ has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
djbkd has quit [Remote host closed the connection]
nankyokusei has joined #ruby
kiba_ has joined #ruby
<kiba_> hello
<jhass> hi
davidw has quit [Ping timeout: 258 seconds]
<kiba_> I am trying to escape " asdf\ asdf"
loechel has joined #ruby
<kiba_> huh
<jhass> but?
<kiba_> \\ works
<kiba_> I must have run the command before I saved it
dionysus69 has quit [Ping timeout: 258 seconds]
<kiba_> so...nvm
Xiti has quit [Quit: Xiti]
SilverKey has quit [Quit: Halted.]
<kiba_> I see what I did
nankyokusei has quit [Ping timeout: 276 seconds]
arescorpio has joined #ruby
<kiba_> I made changes to a different file rather than applying it to a file that I intended to run. Silly me.
dikaio has joined #ruby
hahuang61 has joined #ruby
perlgod has quit [Quit: Textual IRC Client: www.textualapp.com]
Vingador has joined #ruby
Vingador has quit [Read error: Connection reset by peer]
mustmodify has left #ruby [#ruby]
mcqr has joined #ruby
kossae has quit [Ping timeout: 240 seconds]
rajdesai has joined #ruby
rajdesai has quit [Client Quit]
moei has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
Torrone has quit [Quit: This computer has gone to sleep]
ta__ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stamina has quit [Ping timeout: 265 seconds]
SilverKey has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
Xiti has joined #ruby
JeremyM has joined #ruby
SilverKey has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
beilabs_ has quit [Remote host closed the connection]
vuoto has joined #ruby
JeremyM has left #ruby [#ruby]
LurkAshFlake has joined #ruby
mcqr has quit [Ping timeout: 240 seconds]
gizmore has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
SilverKey has joined #ruby
joonty has joined #ruby
karapetyan has quit [Remote host closed the connection]
TheWhip has quit [Remote host closed the connection]
postmodern has joined #ruby
SilverKey has quit [Client Quit]
<axsuul> is this possible in ruby
<axsuul> logger = Logger.new; logger()
<toretore> no
rodfersou has quit [Quit: leaving]
GinoMan2440 has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
blackmesa has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
SilverKey has joined #ruby
crystal77 has joined #ruby
spiette has quit [Quit: :qa!]
segy has quit [Quit: ZNC - http://znc.in]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has joined #ruby
TheWhip has joined #ruby
stamina has joined #ruby
mcqr has joined #ruby
SilverKey has quit [Max SendQ exceeded]
TheWhip has quit [Remote host closed the connection]
SilverKey has joined #ruby
TheWhip has joined #ruby
rodfersou has quit [Quit: leaving]
theery has quit [Remote host closed the connection]
theery has joined #ruby
<djellemah> >> o = Object.new; def o.call(*args); args.join(':'); end; o.(1,2,3) # axsuul is possible, but not widely used
<ruby[bot]> djellemah: # => "1:2:3" (https://eval.in/621876)
<axsuul> interesting, thanks
<djellemah> Sometimes [] is aliased to call, eg for Proc instances
<djellemah> >> l = ->v{[v,v,v]}; l[3.14]
<ruby[bot]> djellemah: # => [3.14, 3.14, 3.14] (https://eval.in/621877)
theery has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
flashpoint9 has joined #ruby
ldnunes has quit [Quit: Leaving]
flashpoint9 has quit [Client Quit]
jhass has quit [Ping timeout: 260 seconds]
Derperperd has joined #ruby
cd-rum has joined #ruby
tomphp has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
jhass has joined #ruby
siaw23 has quit [Quit: siaw23]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheWhip has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 244 seconds]
TheWhip has joined #ruby
cd-rum has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
loechel has quit [Quit: ChatZilla 0.9.92 [Firefox 48.0/20160726073904]]
segy has joined #ruby
loechel has joined #ruby
omphe has joined #ruby
TheWhip has quit [Ping timeout: 250 seconds]
evie_hammond has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
antgel has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
loechel has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: This computer has gone to sleep]
segy has quit [Ping timeout: 244 seconds]
rsampaio_ has quit [Ping timeout: 258 seconds]
ramortegui has quit [Remote host closed the connection]
byteflame has quit [Ping timeout: 250 seconds]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vuoto has quit [Remote host closed the connection]
segy has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
bad_ip has quit [Ping timeout: 265 seconds]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Derperperd has quit [Quit: Derperperd]
SilverKey has quit [Quit: Halted.]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Derperperd has joined #ruby
HumBird has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
Derperperd has quit [Quit: Derperperd]
minotep has quit [Ping timeout: 244 seconds]
swills has quit [Ping timeout: 265 seconds]
HumBird has quit [Quit: Leaving]
aidalgol has joined #ruby
karapetyan has joined #ruby
sumobob has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silox| has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Ping timeout: 244 seconds]
hutch34 has quit [Quit: WeeChat 1.5]
evie_hammond has joined #ruby
youch has quit [Remote host closed the connection]
morf has quit [Ping timeout: 276 seconds]
Silthias has quit [Ping timeout: 250 seconds]
Silthias has joined #ruby
jaequery has joined #ruby
jaequery_ has joined #ruby
polishdub has quit [Remote host closed the connection]
pokalyis has joined #ruby
s2013 has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
spudowiar has joined #ruby
jaequery has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
theery has joined #ruby
dhollinger has quit [Quit: WeeChat 1.5]
marr has joined #ruby
leea has joined #ruby
morf has joined #ruby
workmad3 has joined #ruby
Derperperd has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix1 has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 258 seconds]
OrbitalKitten has joined #ruby
The_Phoenix has joined #ruby
evie_hammond has quit [Ping timeout: 244 seconds]
omphe has joined #ruby
evie_hammond has joined #ruby
kavanagh has quit [Quit: That's all folks!]
Xeago_ has joined #ruby
OrbitalKitten has quit [Client Quit]
Xeago has quit [Ping timeout: 264 seconds]
Xeago_ is now known as Xeago
morf has quit [Ping timeout: 276 seconds]
siaw23 has joined #ruby
<siaw23> can someone help me with this exericse. i started to write it but it’s quickly getting out of hand https://gist.github.com/siaw23/7cc488ec854d456100d1c2d1f8b2294b
etetz has quit [Remote host closed the connection]
theery has quit []
OTORelic4 has joined #ruby
nankyokusei has joined #ruby
morf has joined #ruby
OTORelic3 has quit [Ping timeout: 265 seconds]
<jhass> siaw23: reverse twice
<siaw23> jhass: what does that mean?
<jhass> to_s.chars.reverse.each_slice(3).map(&:join).join("_").reverse
<havenwood> siaw23: if you reverse the whole thing to know where to split you then need to reverse the parts back so they're not still reverse when you're done
<havenwood> >> 9999640.to_s.scan(/\d{1,3}(?=(?:\d{3})*\z)/).join('_')
<ruby[bot]> havenwood: # => "9_999_640" (https://eval.in/621885)
nankyokusei has quit [Ping timeout: 265 seconds]
<siaw23> havenwood: thank you :)
<siaw23> jhass: that’s really nice :)
stamina has quit [Ping timeout: 265 seconds]
hahuang61 has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
JeanCarl1Machado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has quit [Ping timeout: 276 seconds]
dr0lan has joined #ruby
<Bish> sss
SilverKey has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
GinoMan2440 has joined #ruby
JeanCarloMachado has joined #ruby
cdg has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 258 seconds]
karapetyan has joined #ruby
soulisson has joined #ruby
Torrone has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarl1Machado has joined #ruby
antgel has quit [Ping timeout: 244 seconds]
<soulisson> I'm trying to code a multithreaded program, what's the best way to indicate that an event occurred, like the producer thread is finished?
bigkevmcd has joined #ruby
OrbitalKitten has joined #ruby
antgel has joined #ruby
trabulmonkee has quit [Quit: Connection closed for inactivity]
jaequery_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> I like the "poison the queue" approach, push a message to the queue that makes the consumers kill themselves
tomphp has joined #ruby
jaequery has joined #ruby
hutch34 has joined #ruby
jaequery has quit [Client Quit]
<jhass> another approach could be to wrap the queue into something that tracks an "open" state, then the producer can close it and the pop action in the consumers will fail, essentially what Go calls channels
<soulisson> jhass, hmm, ok, but for the poison approach if a thread retrieve the poison the other won't,no?
<jhass> well, you push N poisons, where N >= consumers
<soulisson> jhass, ah ok, I see :)
<jhass> a standard pubsub or observer pattern can work too, but IMO the observer has a stronger coupling than necessary here and the pubsub can be harder to debug as to where events originate and are consumed
<soulisson> jhass, is the Queue class thread safe?
<jhass> yes
<soulisson> jhass, at one point I thouht about using a mutex
<jhass> not sure I follow
sepp2k has quit [Read error: Connection reset by peer]
davedev24 has quit [Remote host closed the connection]
<aidalgol> ri does not read .rdoc files, correct? It needs the rdoc in a different format?
<soulisson> jhass, once the producer thread is finished I lock the mutext and I check in the consumer threads if the mutex is locked
<jgnagy> you might look at concurrent-ruby
spider-mario has quit [Remote host closed the connection]
<jhass> soulisson: that's just abusing it as a boolean
<jgnagy> I'm not sure what your use case is, but a CyclicBarrier might work for you too
<matthewd> +1 concurrent-ruby
<jhass> admittedly an AtomicBoolean but still
<soulisson> jhass, yes
roflmyeggo has joined #ruby
<matthewd> Concurrent::Event sounds closest, but you may be able to use something higher level, depending on what else you're doing
<soulisson> jhass, I avoid to create an object with a boolean in it
<soulisson> matthewd, ah ok, nice, thanks
<soulisson> thanks for the help
djbkd has quit [Quit: My people need me...]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tdy has joined #ruby
tdy has quit [Client Quit]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
rellis has quit [Ping timeout: 240 seconds]
airdisa has quit []
roflmyeggo has quit [Quit: Lost terminal]
<aidalgol> I'm trying to generate ri files from a Ruby package's rdoc files, and am not having any success. The package has been installed through my distribution, not via gems. Here is what I have tried: http://paste.debian.net/788852/
<aidalgol> For some reason, it seems to be only finding a single file in the given directory.
<jhass> it says 30/30 ?
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<aidalgol> Oh, OK. Yes, that's how many files are in that directory. So why does it only list one filename?
ramfjord_ has joined #ruby
<aidalgol> And why is it not finding anything *in* the files?
SteenJobs has quit [Quit: SteenJobs]
JeanCarl1Machado has quit [Remote host closed the connection]
JeanCarloMachado has quit [Remote host closed the connection]
nitric has quit [Ping timeout: 276 seconds]
tdy has joined #ruby
tdy has quit [Client Quit]
csk has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 252 seconds]
kaiks has quit []
l4v2 has joined #ruby
tdy has joined #ruby
<jhass> rdoc files don't contain ruby code, just documentation text
<jhass> if you want API documentation you got to point rdoc at the ruby files
<jhass> and I guess it's a progress counter and updated while it was running?
hutch34 has quit [Ping timeout: 240 seconds]
siaw23 has left #ruby [#ruby]
antgel has quit [Ping timeout: 260 seconds]
<aidalgol> ohh!
rellis has joined #ruby
<aidalgol> So what program are rdoc files meant to be viewed with?
<jhass> aidalgol: gem rdoc --no-rdoc --ri sequel
elifoster has joined #ruby
rsampaio_ has joined #ruby
JesseH has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saneax_AFK is now known as saneax
agent_white has quit [Quit: leaving]
saneax is now known as Guest48269
<BrianJ> Idk why I'm struggling with this, but I need to loop through each of my reportchecks (there are 5) and assign a score that's defined in an array. https://gist.github.com/BrianJakovich/baf781240379a85fd332bce4f429980a I feel like the .each is the wrong way of doing this
<aidalgol> jhass: Will that work for something not installed via gems?/
<aidalgol> I installed this via apt-get
<jhass> try
<aidalgol> nope, it's expecting /usr/share/rubygems-integration/all/gems/sequel-4.15.0 to exist
<aidalgol> I just ran the command in my paste but pointed it to the source directory instead of the rdoc directory, and that did what I was expecting.
maloik has quit [Remote host closed the connection]
SteenJobs has joined #ruby
maloik has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
imcodingideas has joined #ruby
<imcodingideas> Hello, Im trying to use fetch to match values to keys with a class constant https://gist.github.com/imcodingideas/12980a8f640697baa4f06ebc7e1c472e to pass these tests. anyone see what I am doing wrong to pass the tests?
<jgnagy> BrianJ: I'm not familiar with your ReportCheck class, but it looks to implement .where() which usually returns a collection of the objects you want
Torrone has quit [Quit: This computer has gone to sleep]
<jgnagy> so ReportCheck.find(report_check.id) seem redundant
<jgnagy> you can probably just do `report_check.update_attributes(score: number)`
<jgnagy> inside your #each() block
<jgnagy> you could also change the Array of Fixnums to a Range like (0..4).each
jhack has quit [Quit: jhack]
<jgnagy> though your example seems contrived... not sure why you'd update "score" repeatedly on the same resource like that
sumobob has quit [Ping timeout: 250 seconds]
Nick_ZWG has joined #ruby
<Nick_ZWG> Has anyone run into an issue trying to install Rubocop on OS X 10.11.6? Parser is trying to call /usr/bin/ruby-parse, which does (and will never) exist.
danman has quit [Quit: danman]
<jgnagy> always use RVM on OS X
<jgnagy> life is much easier that way
<Nick_ZWG> This is a horrifying dystopian nightmare
spudowiar has quit [Quit: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz]
<imcodingideas> Hello all, I'm wondering if you can help me?
qguv has joined #ruby
<imcodingideas> and I cannot match the values to the keys to pass the tests?
zeroDi has quit [Quit: WeeChat 1.5]