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
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]
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]
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
<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>
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
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 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 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]
<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 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
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]
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]
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 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]
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]
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]
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 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.
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
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]