baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ https://irclog.whitequark.org/ruby/
bayed has quit [Quit: Connection closed for inactivity]
<tax> i'm uneasy about ditching perl for ruby
CloCkWeRX has quit [Quit: Leaving.]
Bellthoven has quit []
Bellthoven has joined #ruby
rcvalle has quit [Quit: rcvalle]
agent_white has quit [Quit: bbl]
ILikeMyWineWhite has left #ruby ["Ex-Chat"]
<matthewd> tax: I suspect perl would make a better perl
<snguyen> tax: usually people have inlining gems for languages like C, C++ for performance tuning. personally, i'd feel uneasy about mixing two languages in a source file without a real justification.
<matthewd> tax: or: why do you want to ditch perl for ruby in the first place?
wldcordeiro has quit [Ping timeout: 265 seconds]
spudowiar1 is now known as spudowiar
ruby_ has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
eljimbo has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
ta__ has joined #ruby
<tax> perl is older. it's unpopular because its messy and idiomatic. job prospects and politics of the languages survival and maintenance -is not everything- but its something that i have to consider. and ruby has oop. perl does too sort of..
pawnbox has quit [Remote host closed the connection]
nitric has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
UserOO7 has joined #ruby
<matthewd> Very reasonable reasons... but I'm not sure how they would reconcile with ditching perl for perl-in-a-ruby-wrapper
matp has joined #ruby
devbug has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
ta__ has quit [Ping timeout: 244 seconds]
jackjackdripper has quit [Quit: Leaving.]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devbug has quit [Client Quit]
<meatchicken> ^lol
<meatchicken> I like how tax didn't answer your question at all matthewd
Dakuan has joined #ruby
<baweaver> I would avoid coupling things like that though
<baweaver> instead try and factor pieces out of perl into Ruby and have ruby call the perl scripts as separate entities.
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TPug has joined #ruby
TPug has quit [Client Quit]
ILikeMyWineWhite has joined #ruby
ILikeMyWineWhite has quit [Client Quit]
redpants has joined #ruby
Dakuan has quit [Ping timeout: 244 seconds]
MyMind has quit [Read error: Connection reset by peer]
<baweaver> As long as it's not just one huge perl script you can switch out most of the files
<baweaver> or hire a consultant to deal with all the mess
matp has quit [Remote host closed the connection]
MyMind has joined #ruby
symm-_ has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
Ruby_Rocks_007 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jphase has quit [Remote host closed the connection]
replay has quit [Max SendQ exceeded]
<tax> i look on indeed for "perl developer" jobs. in my city i find 2. in nyc i find 5. but they are senior.
replay has joined #ruby
<tax> but then again there are less people who know perl.
Yzguy has quit [Quit: Zzz...]
RegulationD has joined #ruby
<tax> but overall i think perl is the opposite of the clean code that makes python so attractive.
aryaching has quit [Ping timeout: 265 seconds]
qakar has joined #ruby
aryaching has joined #ruby
alanquillin has quit [Ping timeout: 265 seconds]
jtd has quit [Ping timeout: 265 seconds]
elifoster has joined #ruby
jtd has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
RedNifre_ has joined #ruby
nando293921 has joined #ruby
dminuoso has joined #ruby
<meatchicken> are you okay in the head? you're going off-topic a lot
Vingador has joined #ruby
<meatchicken> and not responding appropriately to the people answering your questions
wldcordeiro has joined #ruby
Synthead has joined #ruby
ramfjord_ has joined #ruby
quiller has joined #ruby
<baweaver> meatchicken: be nice.
<meatchicken> baweaver, I am being nice. Why don't you be nice?
replay has quit [Quit: Textual IRC Client: www.textualapp.com]
<meatchicken> It was an appropriate assertion given the circumstances
Lucky_ABA has joined #ruby
RedNifre has quit [Ping timeout: 252 seconds]
arnonhongklay has joined #ruby
<baweaver> I'm not having that argument. It was out of line to ask if they're okay in the head
<matthewd> meatchicken: I was perfectly happy with the answer to my question
postmodern has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
dminuoso has quit [Ping timeout: 250 seconds]
teclator has quit [Quit: No Ping reply in 180 seconds.]
cajone has quit [Ping timeout: 276 seconds]
teclator has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
ruby_newbie has joined #ruby
ctcrnitv has quit [Quit: Textual IRC Client: www.textualapp.com]
<ruby_newbie> [/^[^aeiou]+/] what is the word ruby method for this?
<ruby_newbie> I'm not understanding this regex at all :(
<baweaver> could be several
<baweaver> since it's in array brackets
rkazak has joined #ruby
<baweaver> >> 'string'[/str/] # Normally that'd be used as
<ruby[bot]> baweaver: # => "str" (https://eval.in/631241)
<baweaver> but in that case it's a string that starts with any character that's not a vowel repeated one or more times.
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
<matthewd> ruby_newbie: So it's calling String#[] -- the '[]' method on String
<ruby_newbie> I see that "school"[/^[^aeiou]+/] returns "sch"
ramfjord_ has quit [Ping timeout: 265 seconds]
<baweaver> rubular would help test things out on that
<ruby_newbie> how would I get "sch" without regex?
TPug has joined #ruby
<baweaver> >> "school"[0..2]
<ruby[bot]> baweaver: # => "sch" (https://eval.in/631242)
<baweaver> &ri String#[]
<ruby_newbie> sorry, that also takes vowels into consideration
cajone has joined #ruby
ramfjord has joined #ruby
<ruby_newbie> "banana" would be "b"
<matthewd> A regex is really the right tool for "the characters up to the first vowel"
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> otherwise you end up with your own psuedo regex
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby_newbie> ohh I see
d0nn1e has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
mac__ has joined #ruby
mac__ has quit [Max SendQ exceeded]
bob434 has quit [Ping timeout: 264 seconds]
mac__ has joined #ruby
ricer2 has quit [Ping timeout: 265 seconds]
d0nn1e has joined #ruby
rritoch has joined #ruby
jaguarmagenta has joined #ruby
pawnbox has joined #ruby
JesseH has quit [Read error: Connection timed out]
blackmesa has quit [Ping timeout: 258 seconds]
Guest38_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
preyalone has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Ping timeout: 244 seconds]
ekinmur has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
agent_white has joined #ruby
nettoweb has joined #ruby
chaos-zhang has joined #ruby
ghr has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
symm-_ has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
Ruby_Rocks_007 has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
cdg has joined #ruby
nankyokusei has joined #ruby
JesseH has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vingador has quit [Remote host closed the connection]
bad_ip has quit [Quit: Some people just want to watch the world burn.]
Ruby_Rocks_007 has joined #ruby
bad_ip has joined #ruby
redpants has quit [Ping timeout: 240 seconds]
ajruiz_ has joined #ruby
Vingador has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
rritoch has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
arescorpio has joined #ruby
ramfjord has joined #ruby
jenrzzz has joined #ruby
charliesome has joined #ruby
Ruby_Rocks_007_ has joined #ruby
Ruby_Rocks_007 has quit [Ping timeout: 255 seconds]
Ruby_Rocks_007_ is now known as Ruby_Rocks_007
Dakuan has joined #ruby
arooni has joined #ruby
<arooni> hey folks; getting ERROR: Failed to build gem native extension. ;; on ubuntu 16.04 trying to run gem install json -v 1.8.0
Dakuan has quit [Ping timeout: 258 seconds]
qakar has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 276 seconds]
ajsharma has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
zeroDi has quit [Quit: WeeChat 1.5]
SteenJobs has joined #ruby
saneax is now known as saneax-_-|AFK
jenrzzz has quit [Ping timeout: 265 seconds]
skweek has joined #ruby
dminuoso has joined #ruby
spsoni has joined #ruby
nettoweb has joined #ruby
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lightstalker has joined #ruby
ramfjord has joined #ruby
spsoni has left #ruby [#ruby]
JoshS has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
dminuoso has quit [Ping timeout: 244 seconds]
ruby_newbie has quit [Quit: Page closed]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
ajsharma has joined #ruby
raeoks has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freedrull has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
aryaching has quit [Ping timeout: 244 seconds]
ruby_ has quit [Remote host closed the connection]
aryaching has joined #ruby
blackmesa has joined #ruby
Elvin has joined #ruby
<freedrull> i get an EOF error for this http request, but only on production running ruby 2.3.0. i'm running 2.3.1 in development and I don't get the EOF error, i see something about a net/http EOF bug being fixed in the 2.3.1 changelog hmm.... http://svn.ruby-lang.org/repos/ruby/tags/v2_3_1/ChangeLog
AndrewIsHere has quit [Remote host closed the connection]
ruby_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
ruby_ has quit [Ping timeout: 244 seconds]
ramadoka has joined #ruby
moos3 has quit [Read error: No route to host]
A5101 has joined #ruby
Devalo has joined #ruby
lizard2010 has quit [Ping timeout: 244 seconds]
ta__ has joined #ruby
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
coetry has joined #ruby
moos3 has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
hahuang65 has joined #ruby
spudowiar has quit [Quit: Leaving.]
spudowiar has joined #ruby
ta__ has quit [Ping timeout: 265 seconds]
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby_ has joined #ruby
hectorsq has joined #ruby
hectorsq has quit [Client Quit]
lizard2010 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
davedev24 has quit []
dviola has quit [Quit: WeeChat 1.5]
hahuang65 has quit [Ping timeout: 260 seconds]
Dakuan has joined #ruby
znz_jp has quit [Remote host closed the connection]
Spami has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
Dakuan has quit [Ping timeout: 255 seconds]
znz_jp has joined #ruby
moos3 has quit [Ping timeout: 276 seconds]
FI_OPwk has joined #ruby
FI_OPwk is now known as ccmcdee
ccmcdee has left #ruby [#ruby]
mac__ has quit [Ping timeout: 255 seconds]
dminuoso has joined #ruby
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
qakar has joined #ruby
fedruantine has quit [Ping timeout: 244 seconds]
dminuoso has quit [Ping timeout: 244 seconds]
ekinmur has quit [Quit: Textual IRC Client: www.textualapp.com]
ruby_ has quit [Remote host closed the connection]
aeruder has quit [Ping timeout: 250 seconds]
aeruder has joined #ruby
fedruantine has joined #ruby
finisherr has joined #ruby
atom3_ has joined #ruby
etehtsea has joined #ruby
zacts has joined #ruby
etehtsea has quit [Client Quit]
atom3 has quit [Ping timeout: 265 seconds]
ruby_ has joined #ruby
blackmesa has joined #ruby
Vile` has quit [Quit: .]
johnDoe111^ has joined #ruby
johnDoe111 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
AndrewIsHere has joined #ruby
dezull has joined #ruby
johnDoe111^ has quit [Ping timeout: 260 seconds]
johnDoe111 has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
AndrewIsHere has quit [Ping timeout: 258 seconds]
<ruby_> hi all: which is better when you need to require something in nested modules? Do these accomplish the same thing? https://gist.github.com/anonymous/601a9c08b95e6a22918dacfdf0567d87
etehtsea has joined #ruby
jackjackdripper has joined #ruby
NetSage has quit [Remote host closed the connection]
<matthewd> ruby_: You should generally do the second, but no, there's no difference between them.
<ruby_> matthewd: thanks!
adam12 has quit [Ping timeout: 276 seconds]
genpaku has quit [Ping timeout: 244 seconds]
adam has joined #ruby
adam is now known as Guest10271
UserOO7 has quit []
braincras has quit [Quit: bye bye]
nankyokusei has joined #ruby
ruby_ has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
solocshaw has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
Guest10271 has quit [Ping timeout: 255 seconds]
genpaku has joined #ruby
smathy has joined #ruby
eljimbo has quit [Read error: Connection reset by peer]
ruby-lang607 has joined #ruby
tdy has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
Bellthoven has quit []
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
ruby_ has joined #ruby
ruby-lang607 has quit [Client Quit]
pawnbox has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
ruby680 has joined #ruby
smathy has quit [Client Quit]
zacts has quit [Ping timeout: 240 seconds]
adam^ has joined #ruby
genpaku has quit [Remote host closed the connection]
genpaku has joined #ruby
eljimbo has joined #ruby
aryaching has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 250 seconds]
Harry__ has quit [Quit: Page closed]
dezull has quit [Remote host closed the connection]
gix has quit [Ping timeout: 265 seconds]
Robtop__ has joined #ruby
Dakuan has joined #ruby
gix has joined #ruby
k3rn31 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
braincras has joined #ruby
adam^ is now known as adam12
danst has quit [Ping timeout: 276 seconds]
Dakuan has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
qakar has quit [Remote host closed the connection]
qakar has joined #ruby
symm- has joined #ruby
Mia has quit [Read error: Connection reset by peer]
qakar has quit [Ping timeout: 250 seconds]
leea has quit [Ping timeout: 244 seconds]
dminuoso has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
axsuul has joined #ruby
duderonomy has joined #ruby
nchambers has joined #ruby
tmtwd has joined #ruby
<nchambers> hiya! does ruby have any nice URL handling libs?
<nchambers> or rather
<nchambers> a library that parses a URL and breaks it up into sections?
dminuoso has quit [Ping timeout: 255 seconds]
ruby_ has quit [Remote host closed the connection]
A5101 has quit [Ping timeout: 244 seconds]
danst has joined #ruby
devbug has joined #ruby
finisherr has quit [Quit: finisherr]
Vingador has quit [Remote host closed the connection]
moos3 has joined #ruby
ta__ has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
<adam12> nchambers: URI
LoneHerm_ has joined #ruby
<nchambers> adam12, thanks. just found that
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
charliesome has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
ta__ has quit [Ping timeout: 250 seconds]
moos3 has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Ping timeout: 258 seconds]
AndrewIsHere has joined #ruby
ReK2 has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
the_drow has joined #ruby
ajruiz_ has quit [Quit: Leaving...]
AndrewIsHere has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
hahuang65 has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
adam12 is now known as adam
Devalo has quit [Ping timeout: 264 seconds]
adam is now known as Guest60848
k3rn31 has quit [Quit: Computer has gone to sleep.]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
Guest60848 is now known as adam12
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
govg has quit [Ping timeout: 258 seconds]
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
ruby680 has quit [Ping timeout: 264 seconds]
the_drow has quit [Read error: Connection reset by peer]
SteenJobs has quit [Quit: peaceee]
coetry has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
learning has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 258 seconds]
the_drow has joined #ruby
nertzy has quit [Ping timeout: 265 seconds]
k3rn31 has joined #ruby
nchambers has quit [Quit: ZNC - http://znc.in]
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
k3rn31_ has joined #ruby
nchambers has joined #ruby
Dakuan has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
k3rn31 has quit [Ping timeout: 244 seconds]
dreamyspell is now known as Guest33204
dreamyspell has joined #ruby
craigp has quit [Ping timeout: 250 seconds]
rkazak has quit [Quit: Sleep.....ing....]
the_drow has joined #ruby
Dakuan has quit [Ping timeout: 244 seconds]
Guest33204 has quit [Ping timeout: 252 seconds]
Ruby_Rocks_007 has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
arescorpio has quit [Quit: Leaving.]
ericsupreme has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
dminuoso has joined #ruby
cpruitt has quit [Quit: cpruitt]
EasyCo has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
the_drow has quit [Read error: Connection reset by peer]
the_drow_ has joined #ruby
dminuoso has quit [Ping timeout: 276 seconds]
bob434 has joined #ruby
learning has quit [Remote host closed the connection]
kies has quit [Quit: baaaaiiiiiiiiiii~]
the_drow_ has quit [Read error: Connection reset by peer]
the_drow_ has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
Rufus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LUMIA930 has joined #ruby
the_drow_ has quit [Read error: Connection reset by peer]
the_drow_ has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tmtwd has quit [Ping timeout: 240 seconds]
ericsupreme has quit [Quit: Leaving]
kies has joined #ruby
conta has joined #ruby
blackmesa has joined #ruby
the_drow_ has quit [Read error: Connection reset by peer]
ziyadb has joined #ruby
rahult has joined #ruby
the_drow has joined #ruby
Ruby_Rocks_007 has joined #ruby
bocaneri has joined #ruby
raeoks has joined #ruby
AndrewIsHere has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 264 seconds]
nando293921 has quit [Ping timeout: 244 seconds]
ngscheur1 has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
AndrewIsHere has quit [Ping timeout: 255 seconds]
Devalo has joined #ruby
ngscheurich has joined #ruby
nankyokusei has joined #ruby
ngscheur1 has quit [Ping timeout: 264 seconds]
A5101 has joined #ruby
dminuoso has joined #ruby
armyriad has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
dminuoso has quit [Ping timeout: 252 seconds]
ta_ has quit [Remote host closed the connection]
decomposite has quit [Changing host]
decomposite has joined #ruby
amclain has quit [Quit: Leaving]
spudowiar has quit [Quit: Leaving.]
alfiemax has joined #ruby
johnDoe111 has joined #ruby
the_drow has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
Dakuan has joined #ruby
dionysus69 has joined #ruby
JoshS has quit [Ping timeout: 255 seconds]
arnonhongklay has quit [Ping timeout: 255 seconds]
ruby_ has joined #ruby
ziprar is now known as zipchat
zipchat has quit [Quit: Leaving]
Dakuan has quit [Ping timeout: 258 seconds]
lightheaded has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
lightheaded has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
pawnbox has joined #ruby
rkazak has quit [Client Quit]
Ruby_Rocks_007 has joined #ruby
craigp has joined #ruby
johnDoe111 has quit [Ping timeout: 244 seconds]
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
arnonhongklay has joined #ruby
johnDoe111 has joined #ruby
astrobunny has joined #ruby
moos3 has joined #ruby
ta_ has joined #ruby
hahuang65 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
armyriad has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
the_drow has quit [Read error: Connection reset by peer]
moos3 has quit [Ping timeout: 258 seconds]
hahuang65 has quit [Ping timeout: 265 seconds]
the_drow has joined #ruby
gizmore has joined #ruby
pokalyis has joined #ruby
Cohedrin has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
learning has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
etehtsea has quit [Quit: Computer has gone to sleep.]
Snickers has joined #ruby
the_drow has joined #ruby
dminuoso has joined #ruby
lightheaded has quit [Read error: Connection reset by peer]
lightheaded has joined #ruby
ruby_ has quit [Remote host closed the connection]
jmazaredo has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
learning has quit [Ping timeout: 255 seconds]
vdamewood has joined #ruby
thadtheman has quit [Remote host closed the connection]
the_drow has joined #ruby
last_staff has joined #ruby
tvw has joined #ruby
etehtsea has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
jmazaredo has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
jphase has joined #ruby
the_drow has joined #ruby
the_drow has quit [Client Quit]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
lheaded has joined #ruby
lightheaded has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
pokalyis has joined #ruby
etehtsea has quit [Client Quit]
johnDoe111 has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
lheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
khushildep has joined #ruby
etehtsea has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
aupadhye has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest43 has joined #ruby
pokalyis has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
<jphase> for some reason on a new rails project (Rails 3.2.22 and Ruby 2.1.8p440) after running: rails generate controller Login index and adding: root 'login#index' to my routes (http://paste.ubuntu.com/23110535/) I get the following errors: http://paste.ubuntu.com/23110536/. I'm trying to follow the getting started guide but as soon as I add my root line in the routes and restart the server it fails. What am I missing?
ramadoka has quit [Read error: No route to host]
<dminuoso> ?rails jphase
<ruby[bot]> jphase: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jphase> whoops, thanks dminuoso :)
<dminuoso> See you there. :)
Moosashi has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ericsupreme has joined #ruby
agit0 has joined #ruby
pokalyis has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
l4v2 has quit [Read error: Connection reset by peer]
l4v2 has joined #ruby
kanobt61 has quit [Read error: Connection reset by peer]
armyriad has quit [Read error: Connection reset by peer]
kanobt61 has joined #ruby
armyriad has joined #ruby
headius has quit [Ping timeout: 276 seconds]
Robtop__ has quit [Read error: Connection reset by peer]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackwind_123 has quit [Ping timeout: 244 seconds]
pokalyis has joined #ruby
ta_ has joined #ruby
lightheaded has joined #ruby
pwnd_nsfw has joined #ruby
ericsupreme has quit [Remote host closed the connection]
tomchapi_ has joined #ruby
humd1ng3r has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Read error: Connection reset by peer]
l4v2 has quit [Quit: l4v2]
headius has joined #ruby
pwnd_nsfw has joined #ruby
Devalo has joined #ruby
chridal has quit [Ping timeout: 244 seconds]
tomchapin has quit [Ping timeout: 258 seconds]
aupadhye has joined #ruby
learning has joined #ruby
humd1ng3r has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
cyclonis has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ericsupreme has joined #ruby
pokalyis has joined #ruby
pokalyis has quit [Client Quit]
dminuoso has quit [Ping timeout: 244 seconds]
chridal has joined #ruby
djbkd has joined #ruby
vinleod has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
Dakuan has joined #ruby
vdamewood has quit [Disconnected by services]
firstdayonthejob has joined #ruby
cyclonis has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has joined #ruby
vinleod is now known as vdamewood
Moosashi has quit [Quit: Moosashi]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
Dakuan has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
CloCkWeRX has joined #ruby
yardenbar has joined #ruby
aupadhye has quit [Ping timeout: 264 seconds]
conta has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
solars has joined #ruby
AltLock has joined #ruby
Dakuan has joined #ruby
Dakuan has quit [Remote host closed the connection]
Dakuan has joined #ruby
LUMIA930` has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LUMIA930 has quit [Ping timeout: 276 seconds]
Hyuk has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
agit0 has quit [Quit: zzzZZZ….]
tulak has joined #ruby
LoneHermit has joined #ruby
Hyuk has quit [Client Quit]
firstdayonthejob has quit [Ping timeout: 264 seconds]
pythonator has quit [Ping timeout: 255 seconds]
pelegreno has joined #ruby
aupadhye has joined #ruby
tulak has quit [Client Quit]
saneax-_-|AFK is now known as saneax
Snickers has quit [Ping timeout: 250 seconds]
k3rn31 has joined #ruby
Madplatypus has joined #ruby
john__ has joined #ruby
aufi has joined #ruby
k3rn31_ has quit [Ping timeout: 258 seconds]
eljimmy has quit [Quit: Leaving]
Macaveli has joined #ruby
jgt1 has joined #ruby
submitnine has joined #ruby
eljimbo has quit [Read error: Connection reset by peer]
EasyCo has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
IanV0rn2341 has joined #ruby
jgt has quit [Ping timeout: 276 seconds]
ngscheurich has quit [Ping timeout: 250 seconds]
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
LoneHermit has quit [Remote host closed the connection]
the_drow has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 265 seconds]
kies has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
tvw has quit []
LUMIA930` has quit [Ping timeout: 276 seconds]
LUMIA930 has joined #ruby
dminuoso has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
the_drow_ has joined #ruby
A5101 has quit [Ping timeout: 265 seconds]
the_drow has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
agit0 has joined #ruby
TomyWork has joined #ruby
<nchambers> do ruby heredocs remove single quotes?
MrBusiness3 has joined #ruby
Burgestrand has joined #ruby
binaryplease has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
claudiuinberlin has joined #ruby
A5101 has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
MrBusiness2 has quit [Ping timeout: 255 seconds]
olspookishmagus has quit [Ping timeout: 265 seconds]
olspookishmagus has joined #ruby
olspookishmagus is now known as Guest3412
blackgoat has quit [Ping timeout: 244 seconds]
kies has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
govg has joined #ruby
biberu has joined #ruby
aganov has joined #ruby
khushildep has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
moos3 has joined #ruby
<oddmunds> nchambers: no
<nchambers> hmmm im not sure what is then
<nchambers> ill have to see if I can get a testcase
Olipro has quit [Ping timeout: 258 seconds]
A5101 has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
vdamewood has quit [Quit: Life beckons.]
ta_ has quit [Ping timeout: 240 seconds]
moos3 has quit [Ping timeout: 260 seconds]
Klasser has quit []
aupadhye has joined #ruby
anisha has joined #ruby
Olipro has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
glcx has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
Burgestrand has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Hyuk has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Silthias has joined #ruby
hahuang65 has joined #ruby
claudiuinberlin has joined #ruby
Moosashi has joined #ruby
Pupeno has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 244 seconds]
Burgestrand has joined #ruby
ukk has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
zipace has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
teclator has quit [Remote host closed the connection]
ta_ has joined #ruby
meatchicken has quit [Ping timeout: 265 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
Hyuk has joined #ruby
Spami has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
ljames has joined #ruby
pawnbox has joined #ruby
meatchicken has joined #ruby
polysics has joined #ruby
Burgestrand has joined #ruby
jaruga___ has joined #ruby
lizard2010 has quit [Remote host closed the connection]
jaruga___ is now known as jaruga____
lizard2010 has joined #ruby
mim1k_ has joined #ruby
eljimmy has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
mim1k has quit [Ping timeout: 276 seconds]
mozzarella has quit [Ping timeout: 255 seconds]
LoneHermit has joined #ruby
Dimik has quit [Ping timeout: 255 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
lightheaded has quit [Read error: Connection reset by peer]
k3rn31_ has joined #ruby
lightheaded has joined #ruby
k3rn31 has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
jsrn_ has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
blackmesa has joined #ruby
arnonhongklay has joined #ruby
k3rn31 has joined #ruby
mikecmpbll has joined #ruby
stan has quit [Quit: Leaving]
marr has joined #ruby
mim1k_ has quit [Quit: Reconnecting]
k3rn31_ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
Ropeney has quit [Ping timeout: 276 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
arnonhongklay has quit [Remote host closed the connection]
pawnbox has joined #ruby
govg has quit [Ping timeout: 244 seconds]
agent_white has quit [Quit: calm]
Pupeno has joined #ruby
bugo has quit [Quit: Changing server]
zipace has quit [Ping timeout: 252 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
teclator has joined #ruby
LoneHermit has quit [Remote host closed the connection]
stan has joined #ruby
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
mozzarella has joined #ruby
cgfbee has quit [Remote host closed the connection]
Hyuk has joined #ruby
qakar has joined #ruby
k3rn31_ has joined #ruby
Burgestrand has quit [Ping timeout: 265 seconds]
johnDoe111 has joined #ruby
k3rn31 has quit [Ping timeout: 265 seconds]
arnonhongklay has joined #ruby
Burgestrand has joined #ruby
qakar has quit [Ping timeout: 250 seconds]
johnDoe111 has quit [Remote host closed the connection]
Snowy has joined #ruby
thomas is now known as evilthomas
johnDoe111 has joined #ruby
cgfbee has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
johnDoe111 has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
schickung has joined #ruby
CrazyEddy has joined #ruby
Burgestrand has quit [Ping timeout: 250 seconds]
devbug has quit [Quit: ZZZzzz…]
jenrzzz has joined #ruby
ericsupreme has quit [Ping timeout: 250 seconds]
meatchicken has quit [Ping timeout: 264 seconds]
meatchicken has joined #ruby
elifoster has quit [Quit: sleep]
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
Burgestrand has joined #ruby
tomphp has joined #ruby
pandaant has joined #ruby
johnDoe111 has joined #ruby
Coldblackice has quit [Ping timeout: 244 seconds]
johnDoe111 has quit [Remote host closed the connection]
Burgestrand has quit [Ping timeout: 244 seconds]
johnDoe111 has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: WeeChat 1.4]
pwnd_nsfw has joined #ruby
solocshaw1 has joined #ruby
atmosx has joined #ruby
Pupeno has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 265 seconds]
solocshaw1 is now known as solocshaw
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnDoe111 has quit [Remote host closed the connection]
marr has quit [Ping timeout: 276 seconds]
Pupeno has joined #ruby
toretore has joined #ruby
rgtk has joined #ruby
kp666 has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
johnDoe111 has joined #ruby
einarj has joined #ruby
ukk has quit [Quit: WeeChat 1.5]
da3mon has joined #ruby
mark_66 has joined #ruby
ukk has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
k3rn31 has joined #ruby
jokke has quit [Remote host closed the connection]
jokke has joined #ruby
k3rn31_ has quit [Ping timeout: 255 seconds]
pokalyis has joined #ruby
k3rn31 has quit [Ping timeout: 244 seconds]
polysics has quit []
Burgestrand has joined #ruby
Moosashi has quit [Quit: Moosashi]
kp666 has joined #ruby
k3rn31 has joined #ruby
DoubleMalt has joined #ruby
diegok has quit [Read error: Connection reset by peer]
diego_k has joined #ruby
Koshian has quit [Ping timeout: 240 seconds]
Koshian has joined #ruby
nankyokusei has joined #ruby
infernix has quit [Ping timeout: 240 seconds]
ta__ has joined #ruby
moos3 has joined #ruby
Couch has joined #ruby
go|dfish has quit [Ping timeout: 250 seconds]
gypki has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
rkoller has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
moos3 has quit [Ping timeout: 260 seconds]
ta__ has quit [Ping timeout: 276 seconds]
Xiti has quit [Ping timeout: 250 seconds]
ukk has quit [Quit: WeeChat 1.5]
ukk has joined #ruby
minimalism has quit [Quit: minimalism]
solocshaw has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
LoneHerm_ has joined #ruby
Talltree has quit [Quit: Talltree]
Talltree has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
Hyuk has joined #ruby
Burgestrand has quit [Ping timeout: 244 seconds]
jokke has quit [Quit: WeeChat 1.5]
jokke has joined #ruby
Hyuk has quit [Client Quit]
jaiks has quit [Ping timeout: 250 seconds]
e4xit_ has joined #ruby
symm- has joined #ruby
e4xit has quit [Ping timeout: 255 seconds]
e4xit_ is now known as e4xit
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
Burgestrand has joined #ruby
jaiks has joined #ruby
infernix has joined #ruby
blackmesa has joined #ruby
hahuang65 has joined #ruby
ukk has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
rbr has quit [Read error: Connection reset by peer]
ljames has quit []
<rgtk> Rubydoc states that Queue#pop blocks untill there are pending objects. Unfortunately when queue is empty, it raises exception "No live threads left. Deadlock?". I am completly bewildered by this.
symm- has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
<jhass> rgtk: it's not Queue#pop that does this but the Ruby runtime that detects that all threads are blocked
rbr has joined #ruby
<jhass> your Queue#pop call is just blocking the last thread you had left
naftilos76 has joined #ruby
solars has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
workmad3 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Remote host closed the connection]
k3rn31 has joined #ruby
<rgtk> Queue#pop is called in main thread, new objects are added from thread pool since work is mainly IO. I guess there is not way aroundsleeping? in main loop?
marr has joined #ruby
<jhass> it means your thread pool is not running/dead/blocked in a way that a wakeup is not possible anymore
<jhass> make sure to Thread.abort_on_exception = true so you notice them dying
<rgtk> $DEBUG is set to true which should print out everything. I am using meh's ruby-thread library which works pretty fine. Pool is working fince since it processes new task as I add them.
<Burgestrand> rgtk could you supply a failing example?
<dminuoso> jhass: I wonder, would the runtime also assume a deadlock if your main thread was blocking on Queue#pop while some other thread was blocking on I/O?
c355e3b has joined #ruby
<Burgestrand> dminuoso nope, works just fine
<jhass> dminuoso: I never verified what the check exactly is, but that would be terrible
<jhass> so I trust it's not the case
<Burgestrand> (eval.in not so happy about reading from stdin though)
DoubleMalt has quit [Ping timeout: 244 seconds]
<jhass> rgtk: $DEBUG is kinda weird, try my suggestion anyway
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<dminuoso> rgtk: Can you gist your code? I think it would be easier looking at your code, than guess working what could be wrong.
selu has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
<rgtk> Preparing it right now. Trying to remove unnecessary code in order to ease pain for you.
<rgtk> jhass: Still the same unfortunately.
ukk has joined #ruby
<jhass> mh
go|dfish has joined #ruby
ukk has quit [Client Quit]
ukk has joined #ruby
learning has quit [Remote host closed the connection]
selu has quit [Client Quit]
Burgestrand has joined #ruby
<rgtk> Is it OK for you to use this simple library in gist: https://github.com/meh/ruby-thread ?
* dminuoso slaps rgtk with a big tab key
<dminuoso> The thing Im poking in your eye with, stop using it.
learning has joined #ruby
<Burgestrand> Friendly!
<rgtk> Hey, why was that for? Is this library that bad?
k3rn31_ has joined #ruby
<ruby[bot]> Ruby community standards recommend using 2 spaces as indentation (see https://github.com/bbatsov/ruby-style-guide#spaces-indentation and https://ukupat.github.io/tabs-or-spaces/).
<dminuoso> ?tabs
<dminuoso> rgtk: ^-
<rgtk> Well, yeah. Tabs. I am using spaces myself. Meh is using tabs
<Burgestrand> rgtk try with the library, that's fine, if it helps keeping the example small
k3rn31 has quit [Ping timeout: 240 seconds]
<dminuoso> rgtk: Just do a ninja pull request and hope he doesn't notice.
<Burgestrand> (keep in mind the library itself could be the thing causing your issues)
<dminuoso> rgtk: at any rate, gist your code.
<dminuoso> rgtk: Its fine.
learning has quit [Ping timeout: 265 seconds]
naftilos76 has quit [Read error: Connection reset by peer]
naftilos76 has joined #ruby
<ytti> is there way around this:
<ytti> [1] pry(main)> "a:b:::".split(":")[2]
<ytti> [2] pry(main)> "a:b::d:".split(":")[2]
<ytti> => nil
<ytti> => ""
<ytti> i'd like both instances to return 'nil'
insanedreamer has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
<Burgestrand> >> "a:b:::".split(":", 2)
<ruby[bot]> Burgestrand: # => ["a", "b:::"] (https://eval.in/631472)
<Burgestrand> >> "a:b::d:".split(":", 2)
<ruby[bot]> Burgestrand: # => ["a", "b::d:"] (https://eval.in/631473)
<Burgestrand> ytti ^
<ytti> Burgestrand, then i can't capture the the [3]
<ytti> Burgestrand, i just want 'missing' to be nil, not empty
<Burgestrand> ytti that's not in your specification
<Burgestrand> ytti :)
chaos-zhang has quit [Quit: Leaving]
braincras has quit [Ping timeout: 258 seconds]
qakar has joined #ruby
<ruby[bot]> rgtk: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/13e87219a97ecbb0bb6b78d56575f8a8
<ruby[bot]> rgtk: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<rgtk> I am sorry it took so long. I tried to keep it as simple as possible.
<rgtk> You are so brave @ruby[bot], thank you!
nadir has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
cgfbee has quit [Remote host closed the connection]
<rgtk> This code fail with deadlock warning.
tvw has joined #ruby
tvw has quit [Remote host closed the connection]
<rgtk> Sorry for typos in comments. I tried to deliverit as fast as possible.
glcx has quit [Quit: This computer has gone to sleep]
tvw has joined #ruby
<Burgestrand> rgtk in this particular example, sure while do have one job, when that job is performed you have nothing else that will ever wake up to save queue.pop from the eternal wait.
qakar has quit [Ping timeout: 250 seconds]
<Burgestrand> rgtk and yes, you do have a thread pool, but it's completely idle so it can never wake up your machine, no?
<Burgestrand> rgtk hm, I see the recursivenessish of this, I'll trace some more, but that's my initial thought at least. :)
insanedreamer has quit [Quit: insanedreamer]
<Burgestrand> rgtk aye, indeed, I'm not sure why you have Job in the gist, it's not being used?
inchw0rm has joined #ruby
<rgtk> Well. You are right. I wanted to used it but it turned out that simple Machine.process also cause deadlock.
giz|work has joined #ruby
cgfbee has joined #ruby
solocshaw has joined #ruby
<inchw0rm> Hello there, I can't seem to download any ruby gems from my computer at work, and the website seems to be down, can anyone confirm this?
<rgtk> And boom. You are right. I created another thread with loop that is adding new object every 1 sec and it's working!
<Burgestrand> rgtk Ruby can be scary smart at times!
<rgtk> That was stupid.
<inchw0rm> ghr, thank you
<ghr> works for me
<rgtk> Well, I don't feed confident right now :D
<rgtk> s/feed/feel
<ghr> office firewall maybe?
<inchw0rm> ghr, yup, most probably
<ghr> doh :(
<rgtk> Burgestrand: Can you tell me where did you see "recursivenessish of this"?
<Burgestrand> rgtk it's not recursive, I just didn't realize at first that the blocks are put into a queue before the thread pool has started, and then moved from the queue into the actual thread pool.
braincrash has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
<rgtk> I want to create long living process that from time to time pools jobs from external sources.
<Burgestrand> rgtk I assume you know `||=` is not thread-safe, and as such if two threads call `Machine.process` you could end up with two queues, and subsequently one job getting lost? (well, we're in MRI so the rules of concurrency are kind of wonky)
<dminuoso> I feel silly. I have a server where chruby is installed, its loaded in my /etc/profile.d/foo.sh - but I cannot figure out where chruby sets the default ruby.
* dminuoso scratches his head
Snickers has joined #ruby
rodfersou has joined #ruby
<Burgestrand> rgtk once somebody's called Machine.queue once it's all fine, but before the @queue has been assigned fully you're in risky land. You *could* assign it in the body of Machine, i.e. `@queue = Queue.new`, outside of having a method, and just do `class << self; attr_accessor :queue; end`.
<darix> wow it took me a while you arent discussing about some ruby gtk bindings
<ytti> Burgestrand,
<ytti> [3] pry(main)> "a:b:::".split(":", -1)[2]
<ytti> [4] pry(main)> "a:b:::".split(":")[2]
<ytti> => ""
<ytti> => nil
<Burgestrand> rgtk https://eval.in/631477
<ytti> Burgestrand, so at least with -1 it is connsistent
<ytti> Burgestrand, does not depend if or not there are other fields defined later
<rgtk> That what I tried to do putting it inside method but I didn't took that into consideration.
<ytti> Burgestrand, but it's other way around, i'd want all missing fields to nil :)
braincrash has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
freedrull has quit [Remote host closed the connection]
<Burgestrand> ytti I didn't know split could take -1, that's cool. I still must say I don't understand what you're talking about though!
<rgtk> Burgestrand: I thank you very greatly for your help.
astrobunny has quit [Remote host closed the connection]
inchw0rm has quit [Ping timeout: 264 seconds]
<Burgestrand> rgtk you're welcome! Feel more confident, everybody makes mistakes. :)
frozengeek has joined #ruby
sevenfourk has joined #ruby
nettoweb has joined #ruby
zapata has quit [Ping timeout: 255 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti> Burgestrand, with -1 ruby behaves like python
<ytti> Burgestrand, without -1 ruby tries to find _minimum_ amount of fields
<ytti> Burgestrand, and if there are no fields until the end, then those fields don't count
<ytti> Burgestrand, which is quite surprising behaviour, imho
Burgestrand has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
pokalyis has joined #ruby
pokalyis has quit [Client Quit]
Burgestrand has joined #ruby
k3rn31_ has quit [Quit: Computer has gone to sleep.]
sepp2k has joined #ruby
k3rn31 has joined #ruby
tildes has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
inchw0rm has joined #ruby
ferr has joined #ruby
zapata has joined #ruby
qubit77 has quit [Quit: Connection closed for inactivity]
RedNifre_ is now known as RedNifre
Hyuk has joined #ruby
solars has joined #ruby
Burgestrand has quit [Ping timeout: 276 seconds]
Burgestrand has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
rsampaio has quit [Ping timeout: 260 seconds]
arnonhongklay has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
ta__ has joined #ruby
moos3 has joined #ruby
ec0 has quit [Ping timeout: 255 seconds]
ex0ns_ has joined #ruby
ex0ns_ has quit [Client Quit]
ta__ has quit [Ping timeout: 276 seconds]
moos3 has quit [Ping timeout: 250 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bob434 has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
bob434 has quit [Client Quit]
pokalyis has joined #ruby
zipace has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
JoshS has joined #ruby
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
sdothum has joined #ruby
Vingador has joined #ruby
nankyokusei has joined #ruby
pokalyis has quit [Client Quit]
Dakuan has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 255 seconds]
ex0ns_ has joined #ruby
ex0ns_ has quit [Client Quit]
LoneHerm_ has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
ex0ns_ has joined #ruby
GodFather has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
pokalyis has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
mozzarella has quit [Remote host closed the connection]
ex0ns_ has left #ruby [#ruby]
quoboo has joined #ruby
mozzarella has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
ericsupreme has joined #ruby
tulak has joined #ruby
ex0ns_ has joined #ruby
bob434 has joined #ruby
bweston92 has quit [Read error: Connection reset by peer]
ex0ns_ has left #ruby [#ruby]
bayed has joined #ruby
ex0ns_ has joined #ruby
ex0ns_ has quit [Client Quit]
DoubleMalt has joined #ruby
dyjakan has joined #ruby
hs366 has joined #ruby
hanmac has joined #ruby
AnoHito has joined #ruby
jphase has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 244 seconds]
bougyman has quit [Ping timeout: 250 seconds]
phredus_ has quit [Quit: No Ping reply in 180 seconds.]
brain_freeze has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
AnoHito_ has quit [Ping timeout: 260 seconds]
cyphase has quit [Ping timeout: 255 seconds]
tulak has quit [Read error: Connection reset by peer]
sash_ has quit [Ping timeout: 250 seconds]
bougyman has joined #ruby
phredus_ has joined #ruby
tulak has joined #ruby
cyphase has joined #ruby
schickung has quit [Quit: schickung]
brain_freeze has joined #ruby
bougyman is now known as Guest49018
sash_ has joined #ruby
sash_ is now known as Guest72404
DoubleMalt has quit [Remote host closed the connection]
ardian_ has quit [Ping timeout: 264 seconds]
tomchapin has joined #ruby
tomchapi_ has quit [Ping timeout: 244 seconds]
Guest72404 has quit [Changing host]
Guest72404 has joined #ruby
Guest72404 has joined #ruby
tulak has quit [Read error: Connection reset by peer]
tulak has joined #ruby
Guest72404 is now known as sash_
sash_ has left #ruby ["WeeChat 1.1.1"]
Burgestrand has joined #ruby
hahuang65 has joined #ruby
blackmesa has joined #ruby
qakar has joined #ruby
solars has quit [Ping timeout: 255 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solars has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
ldnunes has joined #ruby
ardian_ has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
Haliucinas has joined #ruby
matp has joined #ruby
pokalyis has joined #ruby
dionysus69 has joined #ruby
Burgestrand has quit [Ping timeout: 252 seconds]
schickung has joined #ruby
Guest43 has quit [Ping timeout: 244 seconds]
rgtk has quit [Ping timeout: 255 seconds]
praveen has joined #ruby
JeanCarloMachado has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Client Quit]
hs366 has quit [Quit: Leaving]
symm- has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
learning has joined #ruby
Burgestrand has joined #ruby
tulak has quit [Ping timeout: 240 seconds]
mooru has joined #ruby
koooge has quit [Quit: Leaving...]
johnDoe111 has joined #ruby
learning has quit [Ping timeout: 240 seconds]
jmignault has joined #ruby
nadir has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
craigp has joined #ruby
praveen has quit []
tk__ has joined #ruby
moos3 has joined #ruby
agit0 has quit [Ping timeout: 276 seconds]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
antgel has joined #ruby
jaguarmagenta has joined #ruby
da3mon has quit [Quit: Zzzz...]
aupadhye has quit [Ping timeout: 240 seconds]
umdstu has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qakar has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 244 seconds]
qakar has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
Burgestrand has joined #ruby
tlaxkit has joined #ruby
qakar has quit [Ping timeout: 244 seconds]
swills has quit [Ping timeout: 240 seconds]
craigp has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
govg has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
Caelum has quit [Read error: Connection reset by peer]
Dakuan has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
etehtsea has joined #ruby
banisterfiend has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
synthroid has joined #ruby
marsjaninzmarsa has quit [Max SendQ exceeded]
RegulationD has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 258 seconds]
Burgestrand has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
ziprar has joined #ruby
zipace has quit [Disconnected by services]
blaxter has joined #ruby
arnonhongklay has joined #ruby
marsjaninzmarsa has joined #ruby
blackmesa has joined #ruby
marsjaninzmarsa has quit [Max SendQ exceeded]
marsjaninzmarsa has joined #ruby
solars has quit [Ping timeout: 240 seconds]
ardian_ has quit [Changing host]
ardian_ has joined #ruby
marsjaninzmarsa has quit [Max SendQ exceeded]
blackgoat has quit [Quit: WeeChat 1.5]
solars has joined #ruby
MrBusiness2 has joined #ruby
marsjaninzmarsa has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
astrobunny has joined #ruby
naftilos76 has joined #ruby
ta__ has joined #ruby
Dakuan has quit []
MrBusiness3 has quit [Ping timeout: 265 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
etehtsea has quit [Ping timeout: 244 seconds]
wugy has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
roamingdog has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
jshjsh has joined #ruby
ta__ has quit [Ping timeout: 265 seconds]
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
hosttor has joined #ruby
freedrull has joined #ruby
malconis has joined #ruby
meth has joined #ruby
<freedrull> why didn't this exception message come with a stacktrace? i want my money back
meth has quit [Max SendQ exceeded]
<dminuoso> freedrull: Every exception has a related stack trace.
Burgestrand has quit [Ping timeout: 258 seconds]
meth has joined #ruby
aupadhye has joined #ruby
<dminuoso> Well technically that's not necessarily true, but I have yet to see an Exception thrown that overrides #backtrace
malconis has quit [Remote host closed the connection]
aupadhye has quit [Client Quit]
malconis has joined #ruby
GodFather has joined #ruby
aupadhye has joined #ruby
mooru has quit [Ping timeout: 240 seconds]
ukk has quit [Quit: WeeChat 1.5]
Burgestrand has joined #ruby
the_drow_ has quit [Quit: This computer has gone to sleep]
<freedrull> in the console i just see EOFError: end of file reached
<freedrull> and nothing else.....
<freedrull> seems strange
arnonhongklay has quit [Remote host closed the connection]
<freedrull> could i like rescue EOFError => e puts e.backtrace or something ?
last_staff has quit [Quit: last_staff]
ericsupreme has quit [Remote host closed the connection]
hutch34 has joined #ruby
Sammichmaker has quit [Ping timeout: 260 seconds]
<freedrull> ill try it
bkxd has joined #ruby
aegis3121 has joined #ruby
pokalyis has joined #ruby
LoneHerm_ has joined #ruby
bogdanteleaga has quit [Max SendQ exceeded]
arnonhongklay has joined #ruby
bogdanteleaga has joined #ruby
M-mistake has quit [Ping timeout: 244 seconds]
etehtsea has joined #ruby
bogdanteleaga has quit [Max SendQ exceeded]
ramortegui has joined #ruby
pokalyis has quit [Client Quit]
bogdanteleaga has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
M-shine has quit [Ping timeout: 250 seconds]
anisha_ has joined #ruby
M-manveru has quit [Ping timeout: 276 seconds]
Caelum has joined #ruby
anisha has quit [Ping timeout: 258 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
pokalyis has joined #ruby
Snowy has quit [Remote host closed the connection]
nankyokusei has joined #ruby
Snowy has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
ruby_ has joined #ruby
solars has quit [Ping timeout: 265 seconds]
ekinmur has joined #ruby
M-manveru has joined #ruby
M-mistake has joined #ruby
qakar has joined #ruby
M-shine has joined #ruby
glcx has quit [Quit: Quitte]
nankyokusei has quit [Ping timeout: 250 seconds]
Snowy has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
pgib has quit [Ping timeout: 260 seconds]
etehtsea has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
the_drow_ has joined #ruby
da3mon has joined #ruby
solocshaw has joined #ruby
k3rn31 has joined #ruby
nando293921 has quit [Ping timeout: 265 seconds]
jphase has joined #ruby
<freedrull> looks like the backtrace is empty...strange https://gist.github.com/mcfiredrill/77062f5f3f74d992d19c7e5e6254e507
banisterfiend has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
lightheaded has quit [Read error: Connection reset by peer]
lightheaded has joined #ruby
jhack has joined #ruby
<jhass> freedrull: indeed, is e.cause empty too?
crdpink2 has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redpants has joined #ruby
tildes has joined #ruby
Snowy has joined #ruby
nibbo has joined #ruby
Burgestrand has quit [Ping timeout: 240 seconds]
charliesome has quit [Remote host closed the connection]
charliesome has joined #ruby
skweek has joined #ruby
banisterfiend has joined #ruby
crdpink2 has joined #ruby
griffindy has joined #ruby
banisterfiend has quit [Client Quit]
pandaant has quit [Remote host closed the connection]
jrafanie has joined #ruby
hahuang65 has joined #ruby
tildes has quit [Ping timeout: 276 seconds]
Burgestrand has joined #ruby
ta_ has quit [Remote host closed the connection]
cpruitt has joined #ruby
mrEngineer has joined #ruby
jazzpi has joined #ruby
Vingador has quit [Remote host closed the connection]
cdg has joined #ruby
<jazzpi> how can i get the system timezone like in "Europe/Berlin"
ruby_ has quit []
Burgestrand has quit [Read error: Connection reset by peer]
ngw has joined #ruby
<ngw> hi *
nando293921 has joined #ruby
giz|work has quit [Ping timeout: 265 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
solars has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
ruby[bot] has quit [Remote host closed the connection]
Burgestrand has joined #ruby
ruby[bot] has joined #ruby
agent_white has joined #ruby
Snickers has quit [Ping timeout: 255 seconds]
dviola has joined #ruby
rgtk has joined #ruby
aupadhye has quit [Quit: Leaving]
schickung has quit [Quit: schickung]
Guest49018 has quit [Changing host]
Guest49018 has joined #ruby
Guest49018 is now known as bougyman
arooni has quit [Quit: ZNC - http://znc.in]
<agent_white> Mornin'
<Burgestrand> moin'!
nando293921 has quit [Ping timeout: 265 seconds]
LUMIA930` has joined #ruby
aupadhye has joined #ruby
LUMIA930 has quit [Ping timeout: 244 seconds]
meth has quit [Quit: Leaving]
<jhass> jazzpi: Time.now.zone for the identifier, dig into TZInfo (require "tzinfo") if you need the country based identifier for that
hk238 has joined #ruby
<jazzpi> yeah i need the country based one... think i'll just look at /etc/localtime
sevenfourk has quit [Quit: Connection closed for inactivity]
LoneHerm_ has joined #ruby
hosttor has quit [Ping timeout: 260 seconds]
da3mon has quit [Ping timeout: 255 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Poke has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LUMIA930` has quit [Ping timeout: 252 seconds]
LoneHerm_ has joined #ruby
arooni has joined #ruby
redpants has quit [Ping timeout: 265 seconds]
hobodave has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
jshjsh has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 258 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
JoshS has quit [Disconnected by services]
dfinninger has joined #ruby
jshjsh is now known as JoshS
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tildes has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has joined #ruby
LoneHerm_ has joined #ruby
lightheaded has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
pandaant has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Textual IRC Client: www.textualapp.com]
LoneHerm_ has joined #ruby
Burgestrand has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LastWhisper____ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
JoshS has quit [Quit: Leaving]
teclator has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
redpants has joined #ruby
jhack has joined #ruby
LoneHerm_ has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
naftilos76 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
govg has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
skweek has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
tk__ has quit [Quit: ばいばい]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
tildes has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
learning has joined #ruby
learning has quit [Client Quit]
LoneHerm_ has joined #ruby
j416 has joined #ruby
eljimmy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
coolboy has joined #ruby
LoneHerm_ has joined #ruby
j416 has left #ruby ["Palaver https://palaverapp.com/"]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
banisterfiend has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
etehtsea has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
dfinninger has quit []
LoneHerm_ has quit [Remote host closed the connection]
pagios has joined #ruby
blackmesa has joined #ruby
LoneHerm_ has joined #ruby
<pagios> hello, can you have buffer overflow in modern programming languages like ruby/javascript etc?
learning has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
shinnya has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
dminuoso has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
anisha_ has quit [Quit: This computer has gone to sleep]
RegulationD has joined #ruby
silus1 has joined #ruby
<Burgestrand> pagios Yes, and no. The kind of buffer overflow you're most likely referring to should ideally only happen if there's a bug in the interpreter, however (when it comes to Ruby).
ferr has quit [Quit: WeeChat 1.5]
<jhass> pagios: not really. I'd argue for C extensions it's not written in Ruby, just for Ruby and when messing with low level things via FFI you're not using the language but that library which in turn might allow them
<Burgestrand> pagios Then again, there are fixed-width data types.
LoneHerm_ has joined #ruby
<jhass> pagios: but I'm not sure it's an all that useful consideration, what makes you ask?
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
ta_ has joined #ruby
hutch34 has joined #ruby
mtkd has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
mtkd has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Poke has quit [Quit: Leaving...]
<Burgestrand> Ah, C extensions, I didn't think of them even though they're probably the most glaring once. Nice one. :)
tildes has joined #ruby
LoneHerm_ has joined #ruby
xrlabs has joined #ruby
meth has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
solars has quit [Ping timeout: 264 seconds]
AndrewIsHere has joined #ruby
submitnine has quit []
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 250 seconds]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
jrafanie has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
jrafanie has joined #ruby
dfinninger has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
AnFin has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
naftilos76 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
d10n-work has joined #ruby
<pagios> so buffer overflows usually happen in c/c++/java programming languages?
LoneHerm_ has quit [Remote host closed the connection]
symm- has joined #ruby
LoneHerm_ has joined #ruby
jhack has quit [Quit: jhack]
<jhass> huh, Java has buffer overflows?
<pagios> just asking, what programming languages mainly c/cc+?
LoneHerm_ has quit [Remote host closed the connection]
<jhass> do you even know what a buffer overflow is?
LoneHerm_ has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
bweston92 has joined #ruby
aufi has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
<pagios> kind of
LoneHerm_ has quit [Remote host closed the connection]
<jhass> what exactly are you worried of?
LoneHerm_ has joined #ruby
<pagios> just wana understand them more and simulate them
LoneHerm_ has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 265 seconds]
tdy has quit [Quit: tdy]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<jhass> well, do you know what the goal is when abusing a buffer overflow, what the danger is?
LoneHerm_ has joined #ruby
<jhass> or let's say the top three
<pagios> yea executing code that is at root level
tyang has joined #ruby
l4v2 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
roamingdog has quit []
<jhass> I mean less vague, how would a buffer overflow allow an attacker to execute code, what happens
LoneHermit has joined #ruby
<jhass> also what's "code" in this context
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<pagios> the buffer is overpassed, the excess part is filled with a pointer that points the stack to a memory address where malicious code is executed?
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<jhass> okay, sort of, does Ruby have pointers? or java? or javascript?
tildes has joined #ruby
redpants has quit [Ping timeout: 260 seconds]
<pagios> no
LoneHerm_ has quit [Remote host closed the connection]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meth has quit [Quit: Leaving]
<jhass> or do any of those even use the OS provided stack?
TPug has joined #ruby
<jhass> for running your code that is
LoneHerm_ has joined #ruby
Haliucinas has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
aupadhye has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
dminuoso has joined #ruby
7GHABW0X9 has joined #ruby
AnFin has left #ruby [#ruby]
AnarchyAo has joined #ruby
7GHABW0X9 has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
kanyewezt has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
gypki has quit [Read error: Connection reset by peer]
jhack has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
cdg has joined #ruby
LoneHerm_ has joined #ruby
aegis3121 has quit [Ping timeout: 265 seconds]
Spami has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
tildes has quit [Ping timeout: 258 seconds]
aegis3121 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LastWhisper____ has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
SilverKey has joined #ruby
lightheaded has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
dminuoso has quit [Remote host closed the connection]
<ngw> I want to document my library, and use Doctests as much as possible
LoneHerm_ has joined #ruby
<ngw> but the main library make http calls and I don't want to
<ngw> is there still a way to use doctests or not?
LoneHerm_ has quit [Remote host closed the connection]
etetz has joined #ruby
dionysus69 has joined #ruby
tildes has joined #ruby
LoneHerm_ has joined #ruby
pgib has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
giz|work has joined #ruby
bauruine_ has joined #ruby
LoneHerm_ has joined #ruby
gizmore has joined #ruby
gizmore has quit [Changing host]
gizmore has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tdy has joined #ruby
LoneHerm_ has joined #ruby
giz|work has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
tvw has joined #ruby
LoneHerm_ has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Devalo has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<ngw> shit, wrong chan, sorry guys
naftilos76 has quit [Read error: Connection reset by peer]
AzureStigma has joined #ruby
LoneHerm_ has joined #ruby
nankyokusei has joined #ruby
Pupeno has quit [Remote host closed the connection]
naftilos76 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
IanV0rn2341 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
rgtk has quit [Quit: Lost terminal]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
saneax is now known as saneax-_-|AFK
memorasus has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tildes has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
frozengeek has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
naftilos76 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Ishido has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
rgtk has joined #ruby
synthroid has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
howdoi has joined #ruby
duderonomy has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
banisterfiend has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naftilos76 has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
silus1 has quit []
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tildes has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
wugy has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
zacts has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
braincra- has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
tildes has quit [Ping timeout: 250 seconds]
braincrash has quit [Ping timeout: 252 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
meatchicken has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
aganov has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 258 seconds]
rippa has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tyang has quit [Ping timeout: 265 seconds]
LoneHerm_ has joined #ruby
flying has joined #ruby
blackmesa has joined #ruby
JoshS has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
tildes has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
mrEngineer has quit [Quit: mrEngineer]
Alina-malina has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
Xeago has joined #ruby
jhack has quit [Quit: jhack]
LoneHerm_ has quit [Remote host closed the connection]
Silthias1 has joined #ruby
LoneHerm_ has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
GinoManWorks has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 276 seconds]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
tyang has joined #ruby
Guest38 has joined #ruby
LoneHerm_ has joined #ruby
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
AzureStigma has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
yardenbar has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
govg has joined #ruby
LoneHerm_ has joined #ruby
naftilos76 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Vingador has joined #ruby
LoneHerm_ has joined #ruby
meatchicken has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
pokalyis has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
amclain has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
yardenbar has quit [Ping timeout: 276 seconds]
AndrewIsHere has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
learning has quit []
Lucky_ABA has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
LoneHerm_ has joined #ruby
RegulationD has joined #ruby
ziprar is now known as zipace
rodferso1 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 265 seconds]
LoneHerm_ has joined #ruby
brahman has joined #ruby
kobain has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<brahman> Hi, am having a weird dependency issue whilst installing the aws-sdk gem. The version I am trying to install is version 1.34.0, the gem install command fails with a dependency warning but that dependency is not valid for the version I am trying to install. It seems it thinks I am installing the latest version which does have that depdency. Any ideas? Are dependencies stored in cache that I can clear?
rodfersou has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
flying has quit []
jsrn_ has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
memorasus has quit [Read error: Connection reset by peer]
meth has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
[Butch] has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
cdg has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Davedev28 has joined #ruby
LoneHerm_ has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 260 seconds]
arnonhongklay has joined #ruby
Yzguy has joined #ruby
LoneHermit has joined #ruby
dminuoso has joined #ruby
LoneHermit has quit [Remote host closed the connection]
naftilos76 has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
Devalo has quit [Remote host closed the connection]
AndrewIsHere has quit []
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has joined #ruby
Devalo has joined #ruby
LoneHerm_ has joined #ruby
the_drow_ has quit [Quit: This computer has gone to sleep]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
banisterfiend has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
synthroid has joined #ruby
Pupeno has joined #ruby
LoneHerm_ has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
LoneHerm_ has joined #ruby
jshjsh has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
TPug has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
aryaching has joined #ruby
LoneHermit has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
ta_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
JoshS has quit [Ping timeout: 255 seconds]
rgtk has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
wldcordeiro has quit [Ping timeout: 264 seconds]
spectrum has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 276 seconds]
spectrum has joined #ruby
LoneHerm_ has joined #ruby
zacts has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Remote host closed the connection]
ajsharma has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
tomphp has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
rodferso1 is now known as rodfersou|lunch
Cohedrin has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
hopsoft has joined #ruby
AlexRussia has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has joined #ruby
LoneHerm_ has joined #ruby
SeepingN has joined #ruby
Vingador has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
64MAATH7M has joined #ruby
64MAATH7M has quit [Remote host closed the connection]
smathy has joined #ruby
tyang has quit [Ping timeout: 265 seconds]
LoneHerm_ has joined #ruby
nettoweb has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Vingador has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
qakar has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
qakar has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
jshjsh is now known as JoshS
LoneHerm_ has joined #ruby
evilthomas is now known as thomas
tyang has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
claudiuinberlin has quit []
conta has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
Devalo has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
einarj has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
einarj has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
biberu has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
sepp2k has quit [Quit: Leaving.]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
Snowy has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brahman has quit [Quit: Konversation terminated!]
mikecmpbll has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
Snowy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LUMIA930 has joined #ruby
LoneHerm_ has joined #ruby
IanV0rn2341 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
einarj has quit [Ping timeout: 255 seconds]
Snowy_ has joined #ruby
LoneHermit has quit [Remote host closed the connection]
Snowy has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
wldcordeiro has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
frozengeek has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Snowy_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
RegulationD has joined #ruby
skweek has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
pawnbox has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
baweaver is now known as lemur
mtkd has joined #ruby
LoneHerm_ has joined #ruby
lemur is now known as baweaver
LoneHerm_ has quit [Remote host closed the connection]
nettoweb has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
Yzguy has quit [Quit: Zzz...]
Burgestrand has joined #ruby
Madplatypus has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
LoneHerm_ has joined #ruby
Poke has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Yzguy has joined #ruby
LoneHerm_ has joined #ruby
sepp2k has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
marxarelli has joined #ruby
LoneHerm_ has joined #ruby
Yzguy has quit [Client Quit]
d0nn1e has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
kobain has joined #ruby
blaxter has quit [Quit: foo]
LoneHerm_ has quit [Remote host closed the connection]
Yzguy has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
eljimmy has quit [Quit: This computer has gone to sleep]
ukk has joined #ruby
LoneHermit has joined #ruby
SYNT4XERR0R has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
weaksauce has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
davedev24 has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
SYNT4XERR0R has left #ruby [#ruby]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
khushildep has joined #ruby
LoneHermit has quit [Remote host closed the connection]
s2013 has joined #ruby
LoneHerm_ has joined #ruby
SeepingN has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
k3rn31 has joined #ruby
dfockler has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
ta_ has quit [Remote host closed the connection]
banisterfiend has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
lightheaded has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
SeepingN has joined #ruby
lightheaded has joined #ruby
aegis3121 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
ramfjord has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tlaxkit has quit [Quit: tlaxkit]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
TPug has joined #ruby
SteenJobs has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
craigp has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
l4v2 has quit [Quit: l4v2]
LoneHerm_ has quit [Remote host closed the connection]
lightheaded has quit [Ping timeout: 264 seconds]
coolboy has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
jakkn has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
pgib has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
jgt1 has quit [Ping timeout: 260 seconds]
Poke has quit [Quit: Linkinus - http://linkinus.com]
LoneHerm_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
ekinmur has quit [Quit: Textual IRC Client: www.textualapp.com]
LoneHerm_ has joined #ruby
djbkd has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<jakkn> rake question: I have a task that adds extension ".foo" to each element of a filelist FILES like so task :foo => [FILES.inject(FILES.class.new) {|res, fn| res << fn + ".foo" }] I wanted to modify the file paths and added some string manipulation to the part after <<, but this gives me type error implicit conversion of nil to string. I can't figure out what's going on here. What is nil here? And what can I read to understand this?
JoshS has quit [Quit: Leaving]
djbkd has quit [Client Quit]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
craigp has quit [Ping timeout: 260 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
AlphaAtom has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has joined #ruby
LoneHerm_ has joined #ruby
pokalyis has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
<xpitr> jakkn FILES.map{|i| "#{i}.foo" } wouldn't work?
LoneHerm_ has quit [Remote host closed the connection]
<matthewd> jakkn: So you want help understanding what's wrong in your code, which is like the above, only you've changed and introduced an error? :/
Poke has joined #ruby
LoneHerm_ has joined #ruby
jaruga____ has quit [Quit: jaruga____]
jakkn has quit [Ping timeout: 265 seconds]
jgt1 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
LoneHerm_ has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
manj-1603-Lxde1 has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Elvin has joined #ruby
claudiuinberlin has joined #ruby
whathappens has joined #ruby
LoneHerm_ has joined #ruby
jonadab has joined #ruby
Ishido has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
GodFather has quit [Quit: Ex-Chat]
LoneHerm_ has quit [Remote host closed the connection]
GodFather has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
elastix has joined #ruby
Silthias1 has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Silthias has joined #ruby
leea has joined #ruby
LoneHerm_ has joined #ruby
qakar has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
TPug has joined #ruby
Ishido has joined #ruby
LoneHerm_ has joined #ruby
qakar has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
LoneHerm_ has joined #ruby
jgt1 has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
tyang has quit [Ping timeout: 258 seconds]
LoneHerm_ has joined #ruby
Couch has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Snickers has joined #ruby
jakkn has joined #ruby
LoneHerm_ has joined #ruby
qakar has quit [Ping timeout: 252 seconds]
replay has joined #ruby
memorasus has joined #ruby
Time-Warp has joined #ruby
tomphp has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
tomphp has quit [Client Quit]
eljimmy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tomphp has joined #ruby
<jakkn> if anybody has any pointers to what might be wrong I would really appreciate that
LoneHerm_ has joined #ruby
<matthewd> jakkn: We need to see the code you're actually getting the error with
<matthewd> jakkn: Unless I misread, that's not what you showed above
LoneHerm_ has quit [Remote host closed the connection]
bob434 has joined #ruby
LoneHerm_ has joined #ruby
<hanmac> jakkn: inject is wrong at this place, use map like matthewd said. also your inject did miss the default parameter you need for such thing
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
jud has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
<matthewd> (using map wasn't my suggestion, and the inject looks fine - if pointlessly awkward - to me)
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
firstdayonthejob has joined #ruby
Guest866 has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
LoneHerm_ has joined #ruby
jazzonmym11nd has joined #ruby
<hanmac> oh i see it does have a default parameter, but does sill look wrong for me
LoneHerm_ has quit [Remote host closed the connection]
<dminuoso> jakkn: also the next time you get an error, please show us the full stack trace. It always indicates exactly which method invocation is giving you trouble.
skweek has quit [Ping timeout: 255 seconds]
AlphaAtom has joined #ruby
elastix has quit [Quit: elastix]
Time-Warp has left #ruby ["WeeChat 1.5"]
nando293921 has joined #ruby
snguyen has joined #ruby
<jakkn> Ah, I will. Just didn't want to pollute the chat room with a long stack trace
jazzonmym1nd has quit [Ping timeout: 264 seconds]
naftilos76 has quit [Read error: Connection reset by peer]
<matthewd> jakkn: Gist.
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<jakkn> so yeah, please tell me what's wrong, awkward or bad practice. I'm learning as I go here.
<jakkn> smooth
GodFather has quit [Ping timeout: 276 seconds]
naftilos76 has joined #ruby
<dminuoso> jakkn: Also, best practice is not to do complex one liners, even if you are experienced.
LoneHerm_ has joined #ruby
SteenJobs has joined #ruby
<dminuoso> jakkn: They just reduce readability. Even if you understand what the code does right now, an hour from now you probably don't anymore.
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
nitric has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> hehe, reduce
LoneHerm_ has quit [Remote host closed the connection]
<dminuoso> Heh.
LoneHerm_ has joined #ruby
govg has quit [Ping timeout: 250 seconds]
whathapp_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
manj-1603-Lxde1 has left #ruby ["Leaving"]
<dminuoso> jakkn: Incidentally, if you split this into lines - you can suddenly debug this easily (either interactively with irb/pry or just puts/inspect). :)
LoneHerm_ has joined #ruby
<dminuoso> Or perhaps even recognize mistakes yourself.
LoneHerm_ has quit [Remote host closed the connection]
Snickers has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
whathappens has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
<jakkn> I did try that, including debugging with byebug, but I believe I'm missing something basic.
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
manj-1603-Lxde1 has joined #ruby
LoneHerm_ has joined #ruby
manj-1603-Lxde1 has left #ruby ["Leaving"]
LoneHerm_ has quit [Remote host closed the connection]
<dminuoso> jakkn: please edit the gist and attach another file (make sure you give the filename the .rb extension for highlighting) containing the related ruby code. Please correlate the line number 261 for us in that gist.
aswen has joined #ruby
tyang has joined #ruby
LoneHerm_ has joined #ruby
<dminuoso> wait..
<jakkn> will do
nanoz has joined #ruby
nanoz has quit [Changing host]
nanoz has joined #ruby
<matthewd> I'm far more interested in the line from the rakefile, which still hasn't been shown
LoneHerm_ has quit [Remote host closed the connection]
<jakkn> yeah, sorry
<dminuoso> Indeed.
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
coolboy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<jakkn> can't edit the other one cause wasn't logged in
<jakkn> but here's the rakefile
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
ramfjord has joined #ruby
swills has joined #ruby
Xiti has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
craigp has joined #ruby
LoneHerm_ has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Spami has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Spami has quit [Client Quit]
IanV0rn2341 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
<jakkn> The intention is to transform all gff files to yml.
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
chrisja has joined #ruby
mikecmpbll has joined #ruby
tyang has quit [Ping timeout: 250 seconds]
<jakkn> the gff files have a range of different file extensions
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
SteenJobs has joined #ruby
<jakkn> so I want the yml files to be sorted into folders corresponding to original file extension, and then have the added extension of .yml
rsampaio has joined #ruby
<jakkn> if that makes sense
pagios has quit [Ping timeout: 264 seconds]
naftilos76 has quit [Quit: Αποχώρησε]
aegis3121 has quit [Ping timeout: 264 seconds]
LoneHerm_ has quit [Remote host closed the connection]
ec0 has joined #ruby
LoneHerm_ has joined #ruby
ta_ has joined #ruby
aegis3121 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hopsoft has quit [Ping timeout: 244 seconds]
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
RegulationD has quit []
RegulationD has joined #ruby
LoneHermit has joined #ruby
naftilos76 has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
shinnya has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
qakar has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<jakkn> did I miss anything?
LoneHerm_ has quit [Remote host closed the connection]
soLucien has joined #ruby
LoneHerm_ has joined #ruby
zeroDi has joined #ruby
<soLucien> is there any ruby gem that can 1) download a file from a URL into a temp/cache dir 2) keep track on whether it is present and not download it again ?
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
ta_ has joined #ruby
LoneHerm_ has joined #ruby
<havenwood> soLucien: You can do that with the stdlib or there are a variety of http client gems as well!
LoneHerm_ has quit [Remote host closed the connection]
<toretore> File.write(filename, Net::HTTP.get(url)) unless File.exist?(filename)
Comons has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
antgel has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Remote host closed the connection]
LoneHermit has joined #ruby
<dfockler> Is there a reason no one uses Net::HTTP, is it just API ergonomics? I always automatically use another HTTP client
Comons has left #ruby [#ruby]
<dfockler> I'm sure some people use it
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<soLucien> i'm not looking to build my own thing, just asking whether there's something out there that does that
LoneHerm_ has quit [Remote host closed the connection]
<dfockler> It's literally the one line toretore wrote
<toretore> and we're saying that using a gem for such a simple thing is stupid
LoneHermit has joined #ruby
govg has joined #ruby
<soLucien> okay , i missed toretore's line
<soLucien> thanks
<dminuoso> toretore: of course reality is a bit different. you might want to store partial downloads and implement resume functionality..
<dminuoso> suddenly its not a one liner anymore. :P
LoneHermit has quit [Remote host closed the connection]
<toretore> yes but it's still the better way to go
<dminuoso> If thats all he needs, yeah
matp has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore> a gem most likely exists that looks like it does this on the surface, but as soon as the requirements change slightly it'll only cause trouble
LoneHerm_ has quit [Remote host closed the connection]
<dminuoso> And if not, I would simply use wget. :)
minimalism has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<toretore> except if by the grace of azor ahai the author actually wrote something that didn't make a bunch of assumptions and was flexible enough to override the parts that didn't fit
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
dshimy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
bocaneri has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
marxarelli has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
jgt1 has joined #ruby
<havenwood> soLucien: https://github.com/httprb/http or https://github.com/typhoeus/typhoeus are two of the many options if you want to look at streaming or other features made easy to use
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<soLucien> would it work for SMB paths as well (UNC)
LoneHerm_ has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
LoneHerm_ has joined #ruby
<soLucien> i have this written in powershell : https://gist.github.com/s0lucien/eab32e4fc72dee414eecb163ff08540c
<toretore> ruby doesn't know what is smb and not
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> okay .. if i say : i want file \\some-machine\share\file into /tmp/cache/file
<kenichi> i'm pretty sure smb isn't http but it's been awhile
<soLucien> would Ruby know how to fetch from the \\ path ?
<kenichi> windows has bash now so what do i know
Silthias has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<toretore> oh you mean getting the file over smb
<toretore> well, yeah, it's not http
<soLucien> what i mean is i would like to be able to use both http:// and \\ paths ..
jgt1 has quit [Ping timeout: 240 seconds]
<kenichi> two totally different things
matp has joined #ruby
<soLucien> yes they are .. the thing i posted did it for PowerShell
LoneHerm_ has joined #ruby
<soLucien> since this is a Vagrant Ruby plugin, i want to do it in Ruby
A5101 has joined #ruby
<soLucien> and it would be really nice if there were a gem for that
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<soLucien> something that would (for example ) store a file from a URL/URI into a cache/md5-of-name.format
<kenichi> i don't have access to windows/ruby box, but i'm wondering if you could just File.new('\\host\share\file')
LoneHerm_ has quit [Remote host closed the connection]
<matthewd> soLucien: Is that 'Install-Resources' thing a powershell "gem"?
LoneHerm_ has joined #ruby
<soLucien> no , it's my half-assed script
<soLucien> which works fine, but it's not Ruby
<kenichi> since smb shares are fs level on windows, right?
<matthewd> But you don't want to do the same in ruby?
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> i wantt o do the same in ruby (maybe better)
vuoto has joined #ruby
LoneHerm_ has joined #ruby
<soLucien> yes they shouls be fs level .. let me try the file.new
cdg has quit [Remote host closed the connection]
<toretore> kenichi: doesn't it still make a distinction between "//server/resource" and a "mounted resource"?
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> i thaught there's something for this kind of task .. a generic URI cacher gem
LoneHerm_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
SilverKey has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
mikecmpbll has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hutch34 has joined #ruby
<kenichi> toretore: really stretchin the memory here, but once \\host\share is connected/authed, i believe you can just browse it or "mount" it at a drive letter
LoneHerm_ has joined #ruby
<toretore> kenichi: could be, i honestly have no idea
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> i believe lines 34-50 do something similar
LoneHerm_ has joined #ruby
<soLucien> although i don't understand what exactly
l4v2 has joined #ruby
anisha has joined #ruby
<soLucien> but it doesn't seem like a trivial task ..
LoneHerm_ has quit [Remote host closed the connection]
JesseH has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
elifoster has joined #ruby
rsampaio has quit [Quit: WeeChat 1.5]
LoneHerm_ has quit [Remote host closed the connection]
sneakers has joined #ruby
DoubleMalt has joined #ruby
LoneHerm_ has joined #ruby
<toretore> soLucien: first step: find a smb client OR find out if you can just use file paths
<toretore> probably the other way around to short circuit on the easier option
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
dshimy has quit [Quit: leaving]
kab has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has quit [Read error: Connection reset by peer]
matp has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
naftilos76 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 244 seconds]
Yzguy has quit [Quit: Zzz...]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
blackwind_123 has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
dfockler has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
jazzonmym111nd has joined #ruby
tvon has joined #ruby
naftilos76 has quit [Client Quit]
blackwind_123 has joined #ruby
mtkd has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
dfinning_ has joined #ruby
PaulCape_ has joined #ruby
LoneHerm_ has joined #ruby
smathy has joined #ruby
tomchapi_ has joined #ruby
Vingador_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
slappy162 has joined #ruby
Asher has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
trajing has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
chridal has quit [Ping timeout: 264 seconds]
ltd_ has quit [Ping timeout: 264 seconds]
nekomune has quit [Ping timeout: 264 seconds]
minsky has quit [Ping timeout: 264 seconds]
scorphus has quit [Ping timeout: 264 seconds]
rsampaio_ has joined #ruby
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
saneax-_-|AFK is now known as saneax
blackmesa has quit [Ping timeout: 252 seconds]
LoneHerm_ has joined #ruby
jazzonmym11nd has quit [Ping timeout: 264 seconds]
dfinninger has quit [Ping timeout: 264 seconds]
jtd has quit [Ping timeout: 264 seconds]
ixti has quit [Ping timeout: 264 seconds]
SuperLag has quit [Ping timeout: 264 seconds]
johnny56_ has quit [Ping timeout: 264 seconds]
hirvi has quit [Ping timeout: 264 seconds]
ljarvis has quit [Ping timeout: 264 seconds]
m1dnight_ has quit [Ping timeout: 264 seconds]
sonne has quit [Ping timeout: 264 seconds]
pcboy has quit [Ping timeout: 264 seconds]
chee has quit [Ping timeout: 264 seconds]
tmi has quit [Ping timeout: 264 seconds]
tyang has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
ta_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
coolboy has quit [Ping timeout: 265 seconds]
lxsameer has quit [Ping timeout: 264 seconds]
marxarelli has quit [Ping timeout: 264 seconds]
Vingador has quit [Ping timeout: 264 seconds]
tomchapin has quit [Ping timeout: 264 seconds]
duncannz has quit [Ping timeout: 264 seconds]
kies has quit [Ping timeout: 264 seconds]
atom3_ has quit [Ping timeout: 264 seconds]
slappy16 has quit [Ping timeout: 264 seconds]
asdffff has quit [Ping timeout: 264 seconds]
modin has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Ping timeout: 264 seconds]
drale2k has quit [Ping timeout: 264 seconds]
majoh has quit [Ping timeout: 264 seconds]
xMopxShell has quit [Ping timeout: 264 seconds]
akkad has quit [Ping timeout: 264 seconds]
reaVer has quit [Ping timeout: 264 seconds]
Yxhuvud has quit [Ping timeout: 264 seconds]
joconcepts has quit [Ping timeout: 264 seconds]
hostess has quit [Ping timeout: 264 seconds]
SebastianThorn has quit [Ping timeout: 264 seconds]
Luna_Moonfang has quit [Ping timeout: 264 seconds]
NET||abuse has quit [Ping timeout: 264 seconds]
Yxhvd has joined #ruby
LoneHerm_ has joined #ruby
jtd has joined #ruby
ltd has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
rsampaio_ has quit [Client Quit]
mikecmpbll has joined #ruby
ljarvis has joined #ruby
LoneHerm_ has joined #ruby
hostess has joined #ruby
reaVer has joined #ruby
pcboy has joined #ruby
SuperLag has joined #ruby
SebastianThorn has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Caelum has quit [Ping timeout: 260 seconds]
jasondev has joined #ruby
ta has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
atom3 has joined #ruby
LoneHerm_ has joined #ruby
blackmesa has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
NET||abuse has joined #ruby
trajing has joined #ruby
chee has joined #ruby
Trynemjoel has joined #ruby
conta has quit [Ping timeout: 252 seconds]
joconcepts has joined #ruby
LoneHerm_ has joined #ruby
xMopxShell has joined #ruby
TheMoonMaster has quit [Ping timeout: 244 seconds]
blackwell has quit [Ping timeout: 250 seconds]
chridal has joined #ruby
mic_e_ has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
sonne has joined #ruby
SeepingN_ is now known as SeepingN
SeepingN has quit [Remote host closed the connection]
LoneHermit has joined #ruby
akkad has joined #ruby
SeepingN has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
pratyushpraksh has joined #ruby
pratyushpraksh has left #ruby [#ruby]
hirvi has joined #ruby
LoneHerm_ has joined #ruby
ramfjord_ has joined #ruby
skweek has joined #ruby
aegis3121 has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
TheMoonMaster has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
blackwell has joined #ruby
LoneHerm_ has joined #ruby
drale2k has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hutch34 has joined #ruby
rgtk has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
tyang has quit [Quit: Leaving]
nekomune has joined #ruby
vuoto has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
marxarelli has joined #ruby
vuoto_ has joined #ruby
asdffff has joined #ruby
LoneHerm_ has joined #ruby
lxsameer has joined #ruby
yuung has joined #ruby
majoh has joined #ruby
duncannz has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Luna_Moonfang has joined #ruby
ixti has joined #ruby
kies has joined #ruby
LoneHerm_ has joined #ruby
m1dnight_ has joined #ruby
duncannz has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
<yuung> hey, i'm having a strange problem that maybe someone can help me with: i have a server that runs sidekiq jobs. occassionally, this server will give an out-of-memory error when using backticks to call shell commands. however, if i replace the backticks with a system() call, it's fine. any idea why?
LoneHerm_ has quit [Remote host closed the connection]
d5sx43 has joined #ruby
m1dnight_ has quit [Client Quit]
LoneHerm_ has joined #ruby
aegis3121 has joined #ruby
duncannz has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
dfinning_ has quit []
last_staff has joined #ruby
LoneHermit has joined #ruby
m1dnight_ has joined #ruby
matp has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<mikecmpbll> yuung : has it got an enormous amount of output? system will output immediately, backticks store and return the output
devbug has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
ngscheurich has joined #ruby
d5sx43 has quit [Client Quit]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<yuung> mikecmpbll, that's what i was thinking...no, not an unusually large amount of output
pandaant has quit [Remote host closed the connection]
modin has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
devbug has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
johnny56_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
IanV0rn2341 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
matp has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
Spami has joined #ruby
devbug has joined #ruby
tmi has joined #ruby
machinewar has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
devbug has quit [Read error: Connection reset by peer]
<machinewar> is it bad practice to call a class inlcluding a module's instance variable from within a module. I.e. relying on a class including a module to define instance variables
LoneHerm_ has quit [Remote host closed the connection]
tvon has quit [Quit: Peace out, y'all!]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<meatchicken> machinewar, yes
LoneHerm_ has joined #ruby
<meatchicken> don't rely on the module like that
inukshuk_ has joined #ruby
inukshuk_ has quit [Client Quit]
umdstu has quit [Quit: umdstu]
AzureStigma has quit [Quit: Textual IRC Client: www.textualapp.com]
d5sx43 has joined #ruby
frozengeek has quit [Quit: frozengeek]
LoneHerm_ has quit [Remote host closed the connection]
<machinewar> thanks
<meatchicken> or maybe you need to rephrase your question
angrycat has joined #ruby
<meatchicken> can you rephrase
devbug has joined #ruby
<meatchicken> not entirely sure what you mean
frozengeek has joined #ruby
nankyokusei has joined #ruby
LoneHermit has joined #ruby
<machinewar> well I have a few classes that share this complex logic and they all have a database connection as an instance variable
mrmortondk has joined #ruby
<toretore> machinewar: and a question is best asked in code
lightheaded has joined #ruby
<angrycat> What Does It Mean To Parse something?
LoneHermit has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
<machinewar> so I want to pull the logic into a module, but the module would need to know about the instance variable let's say @db
naftilos76 has joined #ruby
vuoto_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<toretore> machinewar: pass the db into the class on instantiation
flashpoint9 has joined #ruby
vuoto has joined #ruby
<machinewar> toretore: that's what happens now, but doesn't solve the module issue
LoneHerm_ has quit [Remote host closed the connection]
<toretore> machinewar: show some code?
LoneHerm_ has joined #ruby
<machinewar> kk one sec
LoneHerm_ has quit [Remote host closed the connection]
<toretore> code > words, it's usually immediately obvious what you mean when we can see the code
LoneHerm_ has joined #ruby
<mikecmpbll> yuung : hmm, not sure then. they're both pretty similar, they both fork and exec ..
<john__> Hey guys. I'm used to programming in a more linear fashion, but I just got hired as a Rails dev... I'm using Sidekiq, Passenger, Capistrano, gitlab, redis, and new relic... doing devops... are there any good resources out there to make my job more effective?
devbug_ has joined #ruby
Devalo has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Devalo has joined #ruby
vuoto_ has joined #ruby
<toretore> real code
<toretore> pls
LoneHerm_ has joined #ruby
devbug has quit [Read error: Connection reset by peer]
Devalo has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
<machinewar> toretore: that is nearly the real code. Just the real code's db#do_something is more complex
nankyokusei has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
Devalo has joined #ruby
<machinewar> and I want that to be a public instance method on the classses
<toretore> then why didn't you gist the real code if it's nearly the same?
swills has quit [Ping timeout: 260 seconds]
<machinewar> because its proprietary
LoneHerm_ has quit [Remote host closed the connection]
Silthias has joined #ruby
<machinewar> and I figure this gets the point across
<toretore> yeah i'm sure someone would steal it, but anyway
LoneHerm_ has joined #ruby
<matthewd> machinewar: What's your question?
devbug has joined #ruby
AlphaAtom has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<toretore> generally, when using a module as a mixin to provide shared functionality that has requirements on the target class is that you say "the class must respond to x and return y"
Caelum has joined #ruby
Asher has joined #ruby
<toretore> you assume a certain interface on the target class
LoneHerm_ has quit [Remote host closed the connection]
vuoto has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
<machinewar> totally. But in this case I'm expecting a certain private interface, which seems wrong
<toretore> in your case: "to use this mixin, it is assumed that a method `db` is available which returns Sequel::Client" or whatever
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
<toretore> private or public doesn't really matter
<machinewar> toretore: awesome that answers my question thanks
devbug has joined #ruby
LoneHerm_ has joined #ruby
<toretore> but not instance variables mind you
devbug_ has quit [Ping timeout: 276 seconds]
<angrycat> I understand parsing as transforming a data stream into à format suited for later processing
LoneHerm_ has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<smathy> angrycat, there's not much more to it than that - not sure if you've now answered your own question, or if there's something more that you don't understand?
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<smathy> john__, the READMEs and docs of each of those things.
<john__> thx @smathy
LoneHerm_ has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
<angrycat> ok, thanks
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
john__ is now known as pythonator
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
Pupeno has quit [Remote host closed the connection]
Moosashi has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
cpruitt has joined #ruby
LoneHerm_ has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
the_drow_ has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
LoneHerm_ has joined #ruby
angrycat has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
the_drow_ has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
bob434 has quit [Quit: This computer has gone to sleep]
daivyk has joined #ruby
yuung has quit [Quit: leaving]
LoneHerm_ has joined #ruby
the_drow_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
Vingador_ has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
daivyk has quit [Max SendQ exceeded]
jackjackdripper1 has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
LoneHermit has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
LoneHerm_ has joined #ruby
ddffg has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
tmtwd has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
whathappens has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
daivyk has joined #ruby
kinduff has joined #ruby
kinduff has quit [Client Quit]
LoneHerm_ has quit [Remote host closed the connection]
ukk has quit [Ping timeout: 258 seconds]
kinduff has joined #ruby
daivyk has quit [Max SendQ exceeded]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
whathapp_ has quit [Ping timeout: 260 seconds]
dmr8 has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
daivyk has joined #ruby
tvsutton has quit [Excess Flood]
pawnbox has joined #ruby
craigp has joined #ruby
LoneHerm_ has joined #ruby
<kinduff> Hello! I'm building a gem and I want to make it easy to configure. It has different classes to be used but want the user to be able to configure them separately with the config block pattern. It works good with modules but I'm unable to find a not-so-dirty way to propagate the same kind of config to the two classes. Example here: https://gist.github.com/kinduff/5b5f618942ffd30d8125331c4a392fec
Yzguy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
the_drow_ has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<matthewd> kinduff: What are you trying that's not working?
the_drow_ has joined #ruby
tvsutton has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<kinduff> matthewd, let me update the gist, one sec
Dimik has joined #ruby
LoneHerm_ has joined #ruby
ajsharma has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
wildleaf has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
LoneHerm_ has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
d5sx43 has quit [Quit: Leaving...]
wildleaf has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
the_drow_ has quit [Read error: Connection reset by peer]
giz|work has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
enterprisey has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
the_drow has joined #ruby
LoneHerm_ has joined #ruby
<kinduff> matthewd: https://gist.github.com/kinduff/64667635551282f4ee04ae4e29a619d3 trying this kind of pattern
LoneHerm_ has quit [Remote host closed the connection]
Vingador has joined #ruby
LoneHerm_ has joined #ruby
<kinduff> having a hard time trying to remember how this heritage works
LoneHerm_ has quit [Remote host closed the connection]
<matthewd> You're defining configure on SubModule, not ClassOne
lightheaded has joined #ruby
LoneHerm_ has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<toretore> kinduff: what makes you choose to implement configuration this way?
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<kinduff> toretore: don't want to mix up class init with configuration. Each of those classes are service that requires fe API keys, etc. After that the user will init the class with options for the service.
LoneHerm_ has quit [Remote host closed the connection]
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
<kinduff> MainModule::SubModule::ClassOne.configure{|c| c.key = "value"}; MainModule::SubModule::ClassOne.new(options);
replay has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
<kinduff> makes sense?
LoneHerm_ has joined #ruby
<kinduff> or should I use configuration in the init and then receive options in another method?
LoneHerm_ has quit [Remote host closed the connection]
hutch34_ has joined #ruby
duncannz has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
LoneHerm_ has joined #ruby
<toretore> kinduff: what if i want to create two instances with different keys?
Vingador has quit [Remote host closed the connection]
<kinduff> toretore: good case
LoneHerm_ has quit [Remote host closed the connection]
<kinduff> toretore: Hmm, what do you recommend?
LoneHerm_ has joined #ruby
<toretore> you can still do something like Module::MyService.new{|c| c.key = 'uyg67f7i' }
the_drow has joined #ruby
devbug has quit [Quit: ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
<matthewd> kinduff: I think you'd need to elaborate on what the class represents, and what the non-configuration options are, for more concrete suggestions
<toretore> c being a Configurator or something that simply translates to a hash which is then used in initialize
hutch34 has quit [Ping timeout: 258 seconds]
whathappens has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
<toretore> or, you know, just use arguments
<zzxc> So I'm a little bit confused by gems. From my ruby application can I query all of th gems in my gem file?
<dunpeal> What's the most idiomatic way to check if a key exists inside a hash?
jgt1 has joined #ruby
<toretore> depends on what you mean by exists
ajsharma has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<toretore> usually just hsh[key]
<Mon_Ouie> Hash#has_key? to avoid issues if the value can be nil or false
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<matthewd> zzxc: Technically yes, but it's not something one would normally need to do... depending on what you mean by 'query', I guess
<dunpeal> Mon_Ouie: right.
<toretore> kinduff: there's nothing wrong with Service.new(key: 'something', something_else: 'hello')
<dunpeal> toretore: exists includes if it is set to nil or false
LoneHerm_ has joined #ruby
<toretore> then what Mon_Ouie said
<kinduff> thanks a lot toretore & matthewd
LoneHerm_ has quit [Remote host closed the connection]
<matthewd> dunpeal: Or use fetch (if it fits your higher-level use case)
<kinduff> I'll go with the init pattern
<toretore> i think #fetch will work too if you want a default value
cdg has joined #ruby
<toretore> 2l8
LoneHerm_ has joined #ruby
aswen has quit [Quit: WeeChat 1.5]
<dunpeal> What's the difference between has_key? and inlcude?
LoneHerm_ has quit [Remote host closed the connection]
<toretore> they're the same
<dunpeal> toretore: the docs imply otherwise
LoneHerm_ has joined #ruby
whathappens has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
<zzxc> I wanted to basically have a extensivable app that that didn't any outside async messaging by default, but add but basically adding a gem would allow it to extend it and use that. Kind of like how logstash works.
<toretore> dunpeal: http://www.rubydoc.info/stdlib/core/Hash#has_key%3F-instance_method
banisterfiend has joined #ruby
LoneHerm_ has joined #ruby
coolboy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
<dunpeal> toretore: interesting. rubydoc.org implies they're not the same: http://ruby-doc.org/core-2.3.1/Hash.html#method-i-has_key-3F
<dminuoso> dunpeal: They are the same.
LoneHermit has quit [Remote host closed the connection]
<Mon_Ouie> They just mean that Hash#include? is not the same an Enumerable#include?
LoneHerm_ has joined #ruby
ukk has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
kinduff has quit [Quit: Textual IRC Client: www.textualapp.com]
ghr has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
Devalo has joined #ruby
<dunpeal> ah, cool.
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
ghr has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
vuoto_ has quit [Remote host closed the connection]
mrmortondk has quit [Quit: Textual IRC Client: www.textualapp.com]
eljimmy has quit [Quit: This computer has gone to sleep]
LoneHerm_ has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
jackjackdripper1 has quit [Ping timeout: 264 seconds]
preyalone has joined #ruby
naftilos76 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 258 seconds]
LoneHerm_ has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
<dminuoso> dunpeal: If in doubt, use the source, luke. :)
nettoweb has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hutch34_ has quit [Ping timeout: 276 seconds]
naftilos76 has joined #ruby
skweek has joined #ruby
LoneHerm_ has joined #ruby
jhack has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
nettoweb has quit [Max SendQ exceeded]
dmr8 has quit [Quit: Leaving]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<dunpeal> dminuoso: sure, but where would I find the source for this? all I can see right now is rb_hash_has_key in hash.c, which doesn't say anywhere that it is the same method as #include
Devalo has quit [Ping timeout: 240 seconds]
ta has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
devbug has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
<dminuoso> dunpeal: Be specific about which #include? you are talking about. There is Enumerable#include? and Hash#include?
LoneHerm_ has quit [Remote host closed the connection]
<matthewd> dunpeal: 4429 defines include? as calling rb_hash_has_key
<dminuoso> dunpeal: If you look at the code region I posted, you will notice that it defines "include?" and "has_key?" (amongst others) to both use the same C function rb_hash_has_key.
LoneHerm_ has joined #ruby
<Mon_Ouie> Also the source code of Hash#include? and of Hash#has_key? is shown to be the same on that ruby-doc page
bob434 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
LoneHerm_ has joined #ruby
<dunpeal> dminuoso: ah, thanks, I didn't see the link you posted.
bob434 has quit [Max SendQ exceeded]
LoneHerm_ has quit [Remote host closed the connection]
naftilos76 has joined #ruby
bob434 has joined #ruby
swills has joined #ruby
the_drow has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<dminuoso> dunpeal: Note if you want to do this on a regular basis, you should always be sure to pick the correct tag (according to whatever version you are using).
LoneHerm_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
lightheaded has quit [Remote host closed the connection]
<dminuoso> (I wrongly linked the source file from trunk)
lightheaded has joined #ruby
dhk has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<dunpeal> dminuoso: ah, sure. thanks
LoneHerm_ has joined #ruby
<dunpeal> I was using the ruby-doc.org because I thought it was "official", but it seems lacking compared to rubydoc.info
naftilos76 has quit [Client Quit]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Chris3y_RubyNewb has quit [Ping timeout: 240 seconds]
the_drow has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
<dunpeal> Should I just use rubydoc.info (YARD) going forward?
moos3 has quit [Ping timeout: 258 seconds]
meth has quit [Quit: Leaving]
LoneHerm_ has quit [Remote host closed the connection]
dhk has quit [Client Quit]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
replay has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
the_drow has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
TPug has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
malconis has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
postmodern has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<Mon_Ouie> Both are generated from the same code, it's just a matter of preference of how it is rendered
LoneHermit has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
machinewar has quit [Ping timeout: 250 seconds]
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
saneax is now known as saneax-_-|AFK
<soLucien> okay this is annoying
xrlabs has quit [Quit: Connection closed for inactivity]
<soLucien> why is '\\host\Software\resources\win2012r2-msdn.iso'
the_drow has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> interpreted as "\\host\\Software\\resources\\win2012r2-msdn.iso"
the_drow has joined #ruby
LoneHermit has joined #ruby
<soLucien> i dont get it , why leave the first 2 chars unescaped ?
<toretore> soLucien: provide code to show that it is
LoneHermit has quit [Remote host closed the connection]
<matthewd> soLucien: Because that is a single escaped character
<matthewd> soLucien: If that's not what you meant (it's not), then you need to compensate
LoneHermit has joined #ruby
<matthewd> >> '\\'.size
<ruby[bot]> matthewd: # => 1 (https://eval.in/631915)
<Mon_Ouie> backslash can still have a special meaning in single-quoted strings when followed by '
last_staff has quit [Quit: going moo moo]
<Mon_Ouie> Which is why there needs to be a way to escape it
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<soLucien> so \\ is special even in single-quoted strings
<soLucien> damnit
the_drow has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> how to compensate ?
LoneHerm_ has joined #ruby
the_drow has joined #ruby
Moosashi has quit [Quit: Moosashi]
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> smth like replace single \ with \\ if the string starts with \ ?
LoneHerm_ has joined #ruby
<xpitr> do you want to see one or two backslashes?
<soLucien> two , but only when i write 2
<soLucien> because it's a UNC path
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> \\server-name\sharename\file
<xpitr> welp, double them
<xpitr> take this and double each \ ^^
jakkn has quit [Quit: Konversation terminated!]
LoneHerm_ has joined #ruby
<soLucien> so double all slashes , cool
<toretore> soLucien: are you looking to write a static string or change one that's already been defined?
<xpitr> or better yet, construct the path in "smart" way, eg. def name(servername, sharename, file); '\\\\' + servername ... you know
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
<soLucien> i am looking to parse a UNC path written by a user . The user will define it as '\\unc\path' because well .. that's a UNC path
<toretore> define how?
LoneHermit has quit [Remote host closed the connection]
malconis has joined #ruby
enterprisey has quit [Remote host closed the connection]
kanobt61_ has joined #ruby
<soLucien> write it in a Vagrantfiles
<soLucien> so it is a ruby variable
<toretore> so as a ruby string literal?
<soLucien> yes
LoneHerm_ has joined #ruby
<toretore> then it's the user's responsibility to do it properly
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> so he writes it as a string lteral. After that, my code downloads the file to a certain directory
<soLucien> Vagrant users shouldn't know Ruby ..
LoneHerm_ has joined #ruby
<matthewd> They need to know Vagrant syntax, though
<toretore> if they're writing a ruby file then they should, by definition
theRoUS has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
<matthewd> And it just happens a Vagrant string has the same syntax as a Ruby string
LoneHerm_ has joined #ruby
Chris3y_RubyNewb has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
kanobt61 has quit [Ping timeout: 250 seconds]
zipace has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
the_drow has joined #ruby
<soLucien> '\\unc\path'.gsub("\\","\\\\")
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 258 seconds]
Yzguy has quit [Quit: Zzz...]
ramfjord_ has quit [Ping timeout: 244 seconds]
<toretore> if you did that to my string i'd be pissed
<Mon_Ouie> backslashes have a special meaning in the replacement string you give to gsub
<matthewd> >> '\\unc\path'.gsub("\\","\\\\").split('')
<ruby[bot]> matthewd: # => ["\\", "u", "n", "c", "\\", "p", "a", "t", "h"] (https://eval.in/631917)
LoneHerm_ has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
<Mon_Ouie> (because you can use e.g. \1 to refer to the first capture group)
Coldblackice has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
whathappens has joined #ruby
LoneHerm_ has joined #ruby
<matthewd> (also, yes, this is trading a solvable user error for unpredictable magic. It is a bad idea.)
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
SteenJobs has joined #ruby
synthroid has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Remote host closed the connection]
the_drow has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
kjellpropell has joined #ruby
SteenJobs has quit [Client Quit]
tulak has joined #ruby
LoneHerm_ has joined #ruby
k3rn31 has joined #ruby
wldcordeiro has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
Pupeno has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
pokalyis has joined #ruby
LoneHerm_ has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
mrEngineer has joined #ruby
<soLucien> #notproud
LoneHerm_ has quit [Remote host closed the connection]
blackwind_123 has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
postmodern has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
mtkd has quit [Ping timeout: 252 seconds]
<Mon_Ouie> Have you tried that code?
anisha has quit [Quit: This computer has gone to sleep]
<soLucien> only in irb
<Mon_Ouie> >> '\\unc\path'.gsub("\\","\\\\") == '\\unc\path'
LoneHerm_ has quit [Remote host closed the connection]
<ruby[bot]> Mon_Ouie: # => true (https://eval.in/631920)
<toretore> probably works better than most vagrant code out there
DoubleMalt has quit [Read error: Connection reset by peer]
<Mon_Ouie> gsub("\\","\\\\") does nothing whatsoever
LoneHerm_ has joined #ruby
<toretore> Mon_Ouie: ssh, just let them leave it like that
<toretore> it's a stupid thing to do
LoneHerm_ has quit [Remote host closed the connection]
mtkd has joined #ruby
LoneHerm_ has joined #ruby
claudiuinberlin has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
jasondev has quit [Quit: Textual IRC Client: www.textualapp.com]
<soLucien> '\\unc\path'.gsub('\\','\\\\\\\\')
<soLucien> woohoo
LoneHerm_ has joined #ruby
<soLucien> killin' it
LoneHerm_ has quit [Remote host closed the connection]
<matthewd> soLucien: Now consider what happens if someone does pass the right thing (e.g., a UNC path they read from a file)
LoneHerm_ has joined #ruby
bob434 has joined #ruby
<soLucien> okay , i'll go for a smoke and try to fix thsi nicely
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> this
LoneHermit has joined #ruby
eljimmy has joined #ruby
<soLucien> the requirement is that '\\unc\path\file' works
<soLucien> as well as '\\\\unc\path'
LoneHermit has quit [Remote host closed the connection]
Yzguy has joined #ruby
ramfjord has joined #ruby
<soLucien> so i need a breath of fresh air in order to fix this
Poke has quit [Quit: Leaving...]
claudiuinberlin has quit [Client Quit]
LoneHerm_ has joined #ruby
<matthewd> Does "\\unc\path\file" need to work too? If not, why not?
ta_ has quit [Remote host closed the connection]
bob434 has quit [Client Quit]
<smathy> I haven't followed this at all, but maybe just replace them with /s
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> no , "" strings have to use double \s
<soLucien> because that's ruby convention
rgtk has joined #ruby
LoneHerm_ has joined #ruby
<matthewd> But... that's the ruby convention for '' strings as well
<soLucien> but escaped strings should follow the escaped string meaning
skweek has quit [Ping timeout: 276 seconds]
<soLucien> isn't '' string supposed to NOT escape anything inside them ?
LoneHerm_ has quit [Remote host closed the connection]
SteenJobs has joined #ruby
<soLucien> no interpolation, no nothing ?
<toretore> no
<toretore> that's not how it is
<soLucien> so you can't interpolate
<toretore> as you can clearly see
<soLucien> but \ == \\
LoneHerm_ has joined #ruby
<soLucien> bs
<soLucien> fss
<Papierkorb> What about \' ?
<matthewd> Right. No interpolation, and no \n etc, but \\ and \' are still special
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<soLucien> Papierkorb this is a vagrant plugin, i want it to be as close to a non-ruby's expectations as possible
Davedev28 has quit [Ping timeout: 258 seconds]
<Papierkorb> soLucien: Then vagrant should've chosen YAML files or something.
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> yep .. they should
<toretore> "let's write our config files in a programming language"
<Papierkorb> And do you expect your users to be too stupid to write \\?
LoneHerm_ has joined #ruby
<toretore> "with some fucking dsls and shit"
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> i expect them not to know that '\\\\some\stuff' == '\\some\stuff' and '\\some\stuff' != '\\some\stuff'
LoneHerm_ has joined #ruby
<soLucien> that is very counterintuitive
<Papierkorb> Just document it.
<Papierkorb> The next person will use "" and then be confused again
LoneHerm_ has quit [Remote host closed the connection]
<soLucien> i can't because it's a dsl that they write
<soLucien> actually fak the users
<Papierkorb> You can't document it? Huh?
LoneHermit has joined #ruby
<soLucien> if they cant figure this out, they can write their own
<soLucien> :D
rgtk has quit [Ping timeout: 255 seconds]
postmodern has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<toretore> what is counterintuitive is if i give you a properly formatted string and then you change it to not be any more
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
al2o3-cr has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
rodfersou|lunch has quit [Quit: leaving]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
tulak has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
tulak has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Devalo has joined #ruby
LoneHerm_ has joined #ruby
s1kx_ has joined #ruby
archaic has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
archaic is now known as Guest16544
LoneHerm_ has joined #ruby
tulak has quit [Read error: Connection reset by peer]
k3rn31_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
k3rn31 has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
LoneHerm_ has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 244 seconds]
LoneHermit has joined #ruby
blackgoat has joined #ruby
LoneHermit has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
s1kx has quit [Quit: bai]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
ta has quit [Ping timeout: 255 seconds]
AlphaAtom has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
blackmesa has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
k3rn31_ has quit [Quit: Computer has gone to sleep.]
LoneHerm_ has joined #ruby
einarj has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
symm-_ has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
einarj has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
TPug has joined #ruby
LoneHermit has joined #ruby
<smathy> He could just use /^\\+/
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 244 seconds]
ericsupreme has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 265 seconds]
LoneHerm_ has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
gingray has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
solocshaw has joined #ruby
redpants has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
symm-_ has quit [Quit: Leaving...]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
hahuang65 has joined #ruby
tulak has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
LoneHerm_ has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
ericsupreme has quit [Quit: Leaving]
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
Time-Warp has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<Time-Warp> irb(main):001:0> nice = %w{zomg everyones in the ruby chat}
<Time-Warp> => ["zomg", "everyones", "in", "the", "ruby", "chat"]
<Time-Warp> irb(main):002:0> nice.sort
<Time-Warp> => ["chat", "everyones", "in", "ruby", "the", "zomg"]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
tulak has quit []
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Guest38 has joined #ruby
jmignault has quit [Ping timeout: 265 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Eiam has joined #ruby
LoneHerm_ has joined #ruby
nando293921 has quit [Quit: Lost terminal]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
ngscheurich has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
gingray has quit [Ping timeout: 265 seconds]
AndyBotwin has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<baweaver> Time-Warp ?
LoneHerm_ has quit [Remote host closed the connection]
Rutix has quit []
<Time-Warp> baweaver: lol
ukk has quit [Quit: WeeChat 1.5]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
bauruine_ has quit [Quit: ZNC - http://znc.in]
bauruine has joined #ruby
LoneHerm_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
nando293921 has joined #ruby
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
leea has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
etetz has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
etetz has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
nanoz has quit [Read error: Connection reset by peer]
pythonator has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
etetz has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 255 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
john has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
john is now known as Guest81535
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
tomchapin has joined #ruby
binaryplease1 has joined #ruby
<ramfjord> I'm working on a little gem for syncing RDS logs, and I need to do something like ``Time.now - 5.days``. How can I do this without pulling in activesupport as a dependency?
<ramfjord> I don't want to initialize a Time.new(t.year, t.month, t.day - 5,...) because I want it to work on the first of the month
binaryplease has quit [Ping timeout: 244 seconds]
<ramfjord> struggling to find non-active record examples of modifying Time objects
<havenwood> ramfjord: Time.now - 5 * 24 * 60 * 60
<ramfjord> s/active record/active support
memorasus has quit [Read error: Connection reset by peer]
<ramfjord> mmm... Yeah, I suppose that would work fine
<ramfjord> I'll jsut do that
spudowiar has joined #ruby
coolboy has quit [Remote host closed the connection]
eljimbo has joined #ruby
GodFather has joined #ruby
binaryplease1 is now known as binaryplease
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
<jazzonmym111nd> or (3600*24)*5
marxarelli has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistym_ is now known as mistym
mistym has quit [Changing host]
mistym has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has joined #ruby
Devalo has quit [Ping timeout: 265 seconds]
<dunpeal> I have a hash with multiple keys. I want to do an ".each" operation, but only on keys in a specific set
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dunpeal> How do I do that?
giz|work has quit [Ping timeout: 264 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dunpeal> I thought of using .values_at, but I get "nil" for missing keys
<dunpeal> e.g. {foo: 'bar'}.values_at(:foo, :qux) #=> ['bar', nil]
wldcordeiro has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
<dunpeal> I guess I can call .compact! on that
frozengeek has quit [Quit: frozengeek]
<smathy> dunpeal, slice.
blackmesa has joined #ruby
<smathy> >> { foo: 1, bar: 2 }.slice :foo, :qux
<ruby[bot]> smathy: # => undefined method `slice' for {:foo=>1, :bar=>2}:Hash (NoMethodError) ...check link for more (https://eval.in/631991)
firstdayonthejob has quit [Ping timeout: 265 seconds]
<smathy> Aww, stupid Rails getting in my head again :(
<smathy> Sorry.
NetSage has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
IanV0rn2341 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackwell has quit [Ping timeout: 244 seconds]
qakar has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
qakar has joined #ruby
<baweaver> >> def slice(h, *ks);ks.each_with_object({}){|k,o|o[k]=h[k]} end; slice({a:1,b:2,c:2,d:4}, :a,:d,:e)
<ruby[bot]> baweaver: # => {:a=>1, :d=>4, :e=>nil} (https://eval.in/631992)
Caelum has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
blackwell has joined #ruby
i- is now known as OverACoder
OverACoder is now known as i-
qakar has quit [Ping timeout: 255 seconds]
Guest64909 has joined #ruby
zipace has joined #ruby
<Mon_Ouie> ks.zip(h.values_at(ks)).to_h
<Mon_Ouie> I mean values_at(*ks)
whathapp_ has joined #ruby
redpants has quit [Ping timeout: 244 seconds]
jphase has quit [Ping timeout: 276 seconds]
whathappens has quit [Ping timeout: 244 seconds]
<toretore> how about just `if set.include?(key)`
devbug has quit [Quit: ZZZzzz…]
Spami has quit [Quit: Leaving]
skweek has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy has joined #ruby
smathy has quit [Client Quit]
kanyewezt has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
Ebok has joined #ruby
ta has joined #ruby
Ruby_Rocks_007 has joined #ruby
ta has quit [Ping timeout: 252 seconds]
dminuoso has quit [Ping timeout: 276 seconds]
unreal has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 264 seconds]
unreal has joined #ruby
BackEndCoder has quit [Excess Flood]
hobodave has quit [Ping timeout: 244 seconds]
BackEndCoder has joined #ruby
pawnbox has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
Moosashi has joined #ruby
BackEndCoder has quit [Excess Flood]
flying has joined #ruby
BackEndCoder has joined #ruby
arnonhongklay has joined #ruby
devbug has joined #ruby
s1kx_ has quit [Quit: bai]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
Caelum has joined #ruby
jphase has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
arnonhongklay has quit [Ping timeout: 260 seconds]
jackjackdripper1 has joined #ruby
kab has quit [Read error: Connection reset by peer]
jazzpi has left #ruby ["WeeChat 1.5"]
jackjackdripper has quit [Ping timeout: 265 seconds]
Moosashi has quit [Quit: Moosashi]
aegis3121 has quit [Ping timeout: 252 seconds]
mtkd has quit [Ping timeout: 250 seconds]
mtkd has joined #ruby
djbkd has joined #ruby
jackjackdripper1 has quit [Ping timeout: 264 seconds]
djbkd has quit [Client Quit]
zeroDi has quit [Quit: WeeChat 1.5]
Moosashi has joined #ruby
ngscheurich has joined #ruby
ramfjord has joined #ruby
Guest64909 has left #ruby [#ruby]
ChiefAlexander has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
johnmilton has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
moos3 has joined #ruby
flying has quit []
ta has joined #ruby
saneax-_-|AFK is now known as saneax
Es0teric has quit [Quit: Computer has gone to sleep.]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
ta has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
jgt1 has quit [Ping timeout: 265 seconds]
giz|work has joined #ruby
<soLucien> what is the recommended way of copying a file from one location to another
<soLucien> creating subfolders as necessary
<theRoUS> soLucien: i use 'cp -r' or 'rsync -a'
moos3 has quit [Ping timeout: 265 seconds]
<soLucien> in ruby ?
flashpoint9 has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
<SeepingN> `cp -r source destination`
<SeepingN> ;)
nankyokusei has quit [Ping timeout: 244 seconds]
<soLucien> this is Windows.
<soLucien> I want a cross-platform solution
l4v2 has quit [Quit: l4v2]
<SeepingN> consider mkdir_p if copy doens't create directory paths
skweek has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
Snowy has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 276 seconds]
whathappens has joined #ruby
jazzonmym1nd has joined #ruby
ramfjord has joined #ruby
arescorpio has joined #ruby
jazzonmym111nd has quit [Ping timeout: 255 seconds]
<havenwood> soLucien: Maybe ^ paired with: File.dirname('path/to/file.txt')
<havenwood> soLucien: Or un.rb is fun: ruby -run -e mkdir -- new_ancestor/subdir -p && ruby -run -e cp -- file_to_copy.rb new_ancestor/subdir
Yzguy has quit [Quit: Zzz...]
<soLucien> it worked with FileUtils.mkdir_p
jhack has quit [Quit: jhack]
hahuang65 has quit [Ping timeout: 264 seconds]
whathappens has quit [Quit: Leaving...]
ramfjord has quit [Ping timeout: 255 seconds]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
solocshaw has joined #ruby
nullfxn has joined #ruby
flashpoint9 has joined #ruby
khushildep has quit [Remote host closed the connection]
ruby-lang844 has joined #ruby
dminuoso has joined #ruby
khushildep has joined #ruby
Ebok has quit [Ping timeout: 252 seconds]
sneakers has quit [Quit: back later]
symm- has joined #ruby
khushildep has quit [Client Quit]
marr has quit [Ping timeout: 244 seconds]
dminuoso has quit [Ping timeout: 260 seconds]
koooge has joined #ruby
pawnbox has joined #ruby
chestnutpie has joined #ruby
<SeepingN> FileUtils.mkdir_p(File.dirname('full/path/to/file.ext')) && FileUtils.cp blah blah
tdy has quit [Quit: tdy]
v0n has quit [Quit: WeeChat 1.0.1]
devbug has quit [Quit: ZZZzzz…]
pawnbox has quit [Ping timeout: 244 seconds]
tomchapin has joined #ruby
v0n has joined #ruby
sepp2k has quit [Ping timeout: 252 seconds]
segmond has joined #ruby
lupine has quit [Ping timeout: 258 seconds]
JDD has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
l4v2 has joined #ruby
mic_e has joined #ruby