jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.3, 2.4.5, 2.3.8, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
<c-c> ok, I'll be sure to watch that when I have extra 30 minutes
<phaul> you wasted a lot more already :)
<phaul> I have to go. good luck
<c-c> I'm not going to use monads. 8) Replying to a code paste with a video - thats basically blowing someone off.
<c-c> Sad that I couldn't use your suggestions, but remember succint, on-topic, to-the-point
<c-c> best accept facts: my question is broad, and its hard to provide answer to it, unles you already have a code-example.
phaul has quit [Ping timeout: 252 seconds]
<c-c> Maslows Hammer
<c-c> - When you've been studying/using X, all problems look like you should use X to solve them
kurko_ has joined #ruby
Frankenstein has joined #ruby
mixfix41 has quit [Quit: Lost terminal]
fredlinhares has quit [Quit: WeeChat 1.9.1]
nadir has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
marmotini_ has joined #ruby
themsay has joined #ruby
<mroutis> What's the name of this "early return" from functions, instead of nesting a lot of "if" cases?
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mroutis> guard clauses!
Frankenstein is now known as uplime
<mroutis> it was not a trivia, just me fighting my memory out loud
<baweaver> yep, guard clause.
<c-c> - that video *is* great and makes me wonder if I should monad
m27frogy has joined #ruby
<c-c> Ah well, 4 am soon, maybe I'll go dream of eventually optionals
cxl has joined #ruby
<cxl> Hi, I can't wrap my head around this one: is there a difference between using self or the class name: https://dpaste.de/UzcZ ?
<baweaver> one is generic and doesn't require you renaming everything if the class name changes or you want to move it somewhere else.
<cxl> so they are equivalent, but the first is prefered?
<baweaver> Pretty much.
<cxl> Or is there ever a good reason to use the class name instead of self?
ta_ has quit [Ping timeout: 252 seconds]
AJA4350 has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
<cxl> wait, there is a difference, but I can't tell what it is. In this code: https://dpaste.de/poKn, if I replace all the User. with self., and then do User.first.remember in the rails console, it can't find the new_token method. But if I use User. as it is in the dpaste, then it works. I don't understand why that is.
ur5us has quit [Ping timeout: 272 seconds]
<cxl> I still don't get why User.first can't resolve self.new_token to User.new_token
rivalomega has joined #ruby
akaiiro has joined #ruby
rivalomega has quit [Ping timeout: 252 seconds]
akaiiro has quit [Ping timeout: 244 seconds]
akaiiro has joined #ruby
tdy has quit [Ping timeout: 252 seconds]
Tempesta has joined #ruby
akem has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
armyriad has quit [Ping timeout: 244 seconds]
apparition has joined #ruby
armyriad has joined #ruby
noobineer has joined #ruby
apparition has quit [Client Quit]
mroutis has quit [Ping timeout: 244 seconds]
dviola has quit [Quit: WeeChat 2.2]
marmotini_ has quit [Ping timeout: 264 seconds]
marmotini_ has joined #ruby
c0ncealed3 has quit [Read error: Connection reset by peer]
c0ncealed3 has joined #ruby
marmotini has joined #ruby
marmotini_ has quit [Ping timeout: 264 seconds]
braincrash has quit [Quit: bye bye]
za1b1tsu has joined #ruby
marmotini_ has joined #ruby
braincrash has joined #ruby
marmotini has quit [Ping timeout: 252 seconds]
ivanskie has joined #ruby
arescorpio has joined #ruby
akaiiro has quit [Ping timeout: 252 seconds]
noobineer has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
akaiiro has joined #ruby
mroutis has joined #ruby
nadir has joined #ruby
jetchisel has joined #ruby
marmotini has joined #ruby
marmotini_ has quit [Ping timeout: 244 seconds]
marmotini has quit [Ping timeout: 252 seconds]
arescorpio has quit [Quit: Leaving.]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
mroutis has quit [Remote host closed the connection]
_whitelogger has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marmotini has joined #ruby
akaiiro has quit [Remote host closed the connection]
WA9ACE has quit []
rivalomega has joined #ruby
_whitelogger has joined #ruby
marmotini has quit [Ping timeout: 252 seconds]
WA9ACE has joined #ruby
donofrio_ has quit [Remote host closed the connection]
donofrio has joined #ruby
whysthatso has joined #ruby
rivalomega has quit [Read error: Connection reset by peer]
rivalome_ has joined #ruby
ohcibi has joined #ruby
ivanskie has joined #ruby
rippa has joined #ruby
RougeR has quit [Ping timeout: 272 seconds]
MoritaShinobu has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
venmx has joined #ruby
Nicmavr has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
MoritaShinobu has quit [Quit: Leaving]
mangold has quit [Quit: This computer has gone to sleep]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leah2 has quit [Ping timeout: 264 seconds]
reber has joined #ruby
leah2 has joined #ruby
reber__ has joined #ruby
mangold has joined #ruby
petemoore has quit [Ping timeout: 250 seconds]
petemoore has joined #ruby
Dbugger has joined #ruby
xuanrui has quit [Read error: Connection reset by peer]
RougeR has joined #ruby
xuanrui has joined #ruby
_whitelogger has joined #ruby
whysthatso has quit [Quit: whysthatso]
themsay has quit [Ping timeout: 252 seconds]
Dimik has quit [Ping timeout: 245 seconds]
GodFather has quit [Read error: Connection reset by peer]
marmotini has joined #ruby
marmotini has quit [Ping timeout: 240 seconds]
Vashy has joined #ruby
<Vashy> I recently upgraded my local ruby version from 2.4.1 to 2.5.1 and set it to the current and default with rvm
<Vashy> but I just tried using rails and it said the gem wasn't isntalled, and when I tried 'gem install rails' it said gem wasn't found
<Vashy> so I ran 'apt install rubygems'
<Vashy> and now when I try 'gem install rails' it tells me:
<Vashy> ERROR: While executing gem ... (Gem::FilePermissionError)
<Vashy> You don't have write permissions for the /var/lib/gems/2.3.0 directory.
<Vashy> any ideas how I can fix?
GodFather has joined #ruby
jackrandom has quit [Quit: ZNC - https://znc.in]
jackrandom has joined #ruby
themsay has joined #ruby
themsay has quit [Ping timeout: 240 seconds]
themsay has joined #ruby
danguita has quit [Ping timeout: 252 seconds]
danguita has joined #ruby
venmx has joined #ruby
doubledup has joined #ruby
doubledup has quit [Remote host closed the connection]
Nightmare has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
sameerynho has joined #ruby
clemens3 has joined #ruby
Sembei has joined #ruby
Pisuke has quit [Ping timeout: 245 seconds]
akem has quit [Remote host closed the connection]
akem has joined #ruby
jetchisel has quit [Ping timeout: 264 seconds]
whysthatso has joined #ruby
whysthatso has quit [Client Quit]
venmx has quit [Ping timeout: 244 seconds]
rivalome_ has quit [Remote host closed the connection]
rivalomega has joined #ruby
venmx has joined #ruby
rivalomega has quit [Ping timeout: 240 seconds]
ua has quit [Ping timeout: 244 seconds]
<c-c> Ok, moving forward with last nights imperative nil-check hell. Managed to remove about 30% of redundant lines: https://gist.github.com/csmr/31639d9172274841edc7e528e2351998
<c-c> ^ its as simple IPC model as I can implement. Then again, I'm no genius so I suppose its probably still kinky.
<c-c> - also still have funny stuff happening with .put/puts/!/flush. Seems the only way to be 100% sure the message flows into a pipe is "my_pipe.puts msg\n my_pipe.flush"
<c-c> (thats why the put! and get! singleton methods were not used in that snippet)
themsay has quit [Ping timeout: 252 seconds]
themsay has joined #ruby
dellavg_ has joined #ruby
ua has joined #ruby
whysthatso has joined #ruby
cd has joined #ruby
phenom has quit [Ping timeout: 244 seconds]
xfbs has joined #ruby
<c-c> s/IPC/nonblocking IPC/
clemens3 has quit [Remote host closed the connection]
<c-c> - bah, looking at IO.select doc, looks like should read all pipes that a proc has open in read_line_nonblocking
<c-c> hehe so don't look at the snippet, it should probably be a mixin module thing anyway
ur5us has joined #ruby
danguita has quit [Quit: WeeChat 2.2]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
danguita has joined #ruby
danguita has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
ellcs has joined #ruby
danguita has joined #ruby
jetchisel has joined #ruby
ta_ has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
GodFather has quit [Ping timeout: 244 seconds]
xfbs has quit [Quit: afk]
beefjoe has joined #ruby
phaul has joined #ruby
kapil____ has joined #ruby
mikecmpbll has joined #ruby
roshanavand has joined #ruby
xfbs has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
<c-c> hm, maybe I should wrap that IPC code in an array with maybe. So you get IPC message-stack that only needs list of pipes and .read_next to use.
<c-c> hnnh, that would be two-directional named pipe in ruby
<c-c> hnghh, an asyncronous bidirectional named pipe in ruby, to be correct
tbuehlmann has quit [Ping timeout: 252 seconds]
tbuehlmann has joined #ruby
blackmesa has joined #ruby
<c-c> yet another async bidirectional ipc lib? pipesnow? hm, maybe I could call it fiberoptic
<c-c> hm, I wonder if thats easily confused with threading
za1b1tsu has quit [Quit: WeeChat 2.1]
djellemah has joined #ruby
* c-c mumbles monologue and wondrs off
_whitelogger has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
beefjoe has quit [Quit: <3]
Fusl has quit [Ping timeout: 256 seconds]
DTZUZO has joined #ruby
Fusl has joined #ruby
Xiti has quit [Quit: Xiti]
wildermind has joined #ruby
GodFather has joined #ruby
<snickers> hi, how can I do something like this in net-http?
Puffball has quit [Remote host closed the connection]
MoritaShinobu has joined #ruby
Puffball has joined #ruby
blackmesa1 has quit [Ping timeout: 252 seconds]
Xiti has joined #ruby
blackmesa1 has joined #ruby
rivalomega has joined #ruby
apparition has joined #ruby
rivalomega has quit [Ping timeout: 252 seconds]
xfbs has quit [Quit: afk]
conta has joined #ruby
_whitelogger has joined #ruby
blackmesa1 has quit [Ping timeout: 252 seconds]
themsay has quit [Remote host closed the connection]
blackmesa1 has joined #ruby
MoritaShinobu has quit [Ping timeout: 252 seconds]
AJA4350 has joined #ruby
kurko_ has joined #ruby
leah2 has quit [Remote host closed the connection]
leah2 has joined #ruby
MoritaShinobu has joined #ruby
wojnar has joined #ruby
<havenwood> Vashy: You can use `sudo` for the system location your package chose for RubyGems, or use the --user-local flag to switch the location to your home directory.
<havenwood> Vashy: Or install a Ruby that already has RubyGems configured for home directory installs.
rivalomega has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 260 seconds]
ivanskie has joined #ruby
kurko_ has joined #ruby
GodFather has joined #ruby
venmx has quit [Ping timeout: 264 seconds]
dinfuehr_ has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
apparition has quit [Quit: Bye]
<cxl> Vashy: looks like your rvm doesn't work well (system is using 2.3.0). Try running `rvm` and scroll back up to see if it complains about not being in path or something of the sort. If it does, you need to fix your rvm install, #rvm could be of help.
<havenwood> Vashy: After reading cxl's comment I retract what I said above. i didn't read what you wrote carefully enough and I'm pre-coffee.
<havenwood> Vashy: You don't need the rubygems package for RVM. Does the `rvm` command work? What's `rvm current`?
MoritaShinobu has quit [Read error: Connection reset by peer]
xfbs has joined #ruby
TheBloke has quit [Ping timeout: 252 seconds]
marmotini has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildermind has quit [Quit: Connection closed for inactivity]
beefjoe has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
i8igmac has joined #ruby
<i8igmac> if i run a block can i have this block return a variable
sameerynho has quit [Ping timeout: 240 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
<i8igmac> var=stuff.each do |x| return x end
venmx has joined #ruby
<i8igmac> or like
<i8igmac> nvm i dont know how to ask a proper question lol
<i8igmac> block.all? do |x| x.include?("string") end => true
<i8igmac> i want the block to return true
<havenwood> i8igmac: it would
<havenwood> i8igmac: (assuming they all include the string)
<havenwood> i8igmac: have you tried it?
<i8igmac> um, i just used all as a example, maybe that is my problem
<i8igmac> if any line includes the string... let me check
<i8igmac> block.any? do |x| x.include?("string") end => true
<i8igmac> oh, i was making a mistake with the block and nokogiri needs x.to_s.include? or it always returns false
<havenwood> i8igmac: for your particular example, you could write: block.all? /string/
<i8igmac> i just discovered any?
<i8igmac> its works just fine ;-)
<i8igmac> page.css(@href).any? do |x| if x.include?("string"); end
nadir has quit [Quit: Connection closed for inactivity]
nchambers has joined #ruby
<cxl> Ugh, self and classes are confusing me even more now that I'm digging into it. Why is method1 undefined on L11? https://repl.it/repls/DualFrostyCopyleft
<cxl> Wouldn't self in that context be an instance of Foo, and it having not instance method called method1 then wouldn't it climb up to the class to look for it there?
ta_ has joined #ruby
uplime has quit [Ping timeout: 244 seconds]
<havenwood> cxl: It isn't undefined on L11. That would return: #=> "method3 and method1"
<havenwood> cxl: Double check with the code you're showing us?
<havenwood> cxl: Foo.method3 #=> "method3 and method1"
<cxl> havenwood: what am I missing? If I run that code it says undefined method method1 in the repl
<cxl> oh my bad, it's probably tripping on L25 rather
<havenwood> cxl: You're defining class not instance methods here.
<havenwood> cxl: Foo.method1
<havenwood> cxl: Foo.method2
<cxl> but why then? on that line, wouldn't foo.method1 run the class method?
<havenwood> cxl: Class methods are called on the class itself, not an instance of the class.
<cxl> I thought ruby would look for a given method in the instance first, and then in the class if it can't find it.
<cxl> and so on until it ran out of superclasses
<havenwood> cxl: `foo` is an instance of `Foo` in your example. you can call instance methods on `foo`. you can call class methods like you've defined on `Foo`.
<i8igmac> thanks havenwood
<havenwood> i8igmac: not sure I helped, but no prob! any time!
ta_ has quit [Ping timeout: 252 seconds]
<cxl> so on L11, what is `self` then? The instance?
<havenwood> cxl: instance methods have a separate lookup than class emthods
<havenwood> cxl: No, on line 11 `self` is `Foo`.
<havenwood> cxl: The class Foo, just like on like 19.
<cxl> ok, but I can't call any of these def Foo/self methods from the instance?
<havenwood> cxl: We just use `self` instead of `Foo` in these cases so you can change the name of the class without going through and changing everywhere it's referenced.
<havenwood> cxl: No, these are all class methods without an instance method equivalent.
<havenwood> cxl: You can't call them on an instance, unless you do: foo.class.method1
<cxl> so my issue is only because I thought that the pattern was look for method on instance, and then up the class and superclasses if not found, but instead it's look it up on the instance and fail if it's not there?
<havenwood> cxl: So basically, you can't call them on the instance. They're class methods.
<havenwood> cxl: Well, it'll look for instance methods in the class hierarchy.
<havenwood> cxl: The book "Ruby Under a Microscope" has a good explanation of method lookup.
<cxl> and to declare instance methods from the class, I'd have to do it in the constructor, as self.mymethod?
* cxl looks that book up
conta has quit [Quit: conta]
xfbs has quit [Quit: afk]
<phaul> cxl also this explains a lot : https://www.youtube.com/watch?v=X2sgQ38UDVY (Dave Thomas - Ruby object model)
<cxl> thank you
LiftLeft has quit [Ping timeout: 252 seconds]
<phaul> I don't understand what I have done here: -> x { x }.yield_self { |p| p[p] } ? and why isn't it a stack overflow ?
<phaul> ah never mind. I confused myself
<phaul> -> x { x[x] }.tap { |p| p[p] }
<phaul> that's what I meant :)
noodle has quit [Quit: /quit]
noodle has joined #ruby
<phaul> I guess it boils down to ... a = a being an infinite recursion or an assignment of an object...
akaiiro has joined #ruby
<phaul> as if id = x -> { x }, then id[id] could be either infinite recursion, or just a proc.
mroutis has joined #ruby
akaiiro has quit [Ping timeout: 264 seconds]
amelliaa has joined #ruby
LiftLeft has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
roshanavand has quit [Quit: leaving]
Nicmavr has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
Cthulu201 has quit [Read error: Connection reset by peer]
bak1an has joined #ruby
akaiiro has joined #ruby
marmotini has quit [Ping timeout: 264 seconds]
<c-c> phaul: hey I watched the monad vid
<c-c> phaul: it was good stuff, thanks!
<phaul> c-c hi, np I enjoyed all vids from Tom Stuart, all recommended... Some are more exoteric but even more entertaining
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul> "programming with nothing" is crazzy...
sanscoeur has joined #ruby
sanscoeur has quit [Remote host closed the connection]
tdy has joined #ruby
DTZUZO has quit [Ping timeout: 244 seconds]
orbyt_ has joined #ruby
wojnar has quit [Remote host closed the connection]
LiftLeft has quit [Ping timeout: 264 seconds]
beefjoe has quit [Quit: <3]
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
LiftLeft has joined #ruby
amelliaa has quit [Quit: -]
<c-c> I'm wondering if should implement my own Maybe on Ruby 2.3.3
<mroutis> c-c: there's a Maybe in dry-rb
patr0clus has joined #ruby
<c-c> I think I mostly understand what Maybe is
<c-c> - but maybe should implement, to learn if nothing to learn
kurko_ has joined #ruby
<c-c> - or Maybe something
* c-c meta
GodFather has joined #ruby
cats has quit [Ping timeout: 250 seconds]
marmotini has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
mroutis has quit [Ping timeout: 252 seconds]
clemens3 has joined #ruby
LiftLeft has quit [Ping timeout: 264 seconds]
marmotini has quit [Ping timeout: 264 seconds]
LiftLeft has joined #ruby
Dimik has joined #ruby
LiftLeft2 has joined #ruby
marmotini_ has joined #ruby
marmotini has joined #ruby
LiftLeft has quit [Ping timeout: 264 seconds]
marmotini_ has quit [Ping timeout: 272 seconds]
ellcs has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
cats has joined #ruby
cats has quit [Ping timeout: 252 seconds]
akaiiro has quit [Remote host closed the connection]
aufi has joined #ruby
<JasonO> hi
armyriad has quit [Quit: Leaving]
<JasonO> how can I change a value using find_by
<JasonO> for example: Recipient.find_by(name: "Frankie").available
<JasonO> which will return the value.. how can I set the value to something else like Recipient.find_by(name: "Frankie").available = true
patr0clus has quit [Ping timeout: 264 seconds]
streiu has joined #ruby
<phaul> JasonO: this is active record right? I expect your code to work. What's the issue?
<havenwood> I'm guessing the issue is it's not saving?
<JasonO> phaul: yeah it is
<phaul> yes, it would need an explicit save
<JasonO> was actually just looking at this:
<JasonO> test = Recipient.where(:name => 'Frankie')
<JasonO> test.update_all(:available => true)
RedNifre has joined #ruby
<JasonO> currently I've: Recipient.find_by(name: recipient)
<RedNifre> Hey there. What's the idiomatic ruby way for tail -f somefile | ruby somescript.rb?
<havenwood> JasonO: Do you want to not touch updated_at and skip validations and callbacks?
<JasonO> how would I save it if I did Recipient.find_by(name: "Frankie").available=true
<JasonO> havenwood: not at all
<havenwood> JasonO: Recipient.find_by(name: "Frankie").tap { |recipient| recipient.available = true }.save
<havenwood> JasonO: Or use multiple lines.
<havenwood> JasonO: Or there's #update_attribute.
<JasonO> havenwood: that worked, thanks!
<JasonO> I used multiple lines though
TomyLobo has joined #ruby
akem__ has joined #ruby
akem has quit [Read error: Connection reset by peer]
kapil____ has joined #ruby
marmotini has quit [Remote host closed the connection]
marmotini has joined #ruby
<RedNifre> Basically I want to only read new lines as they are added to a log file.
<phaul> &ri IO.select
<phaul> could work.. :) never used select from Ruby, but that's how I would start
<phaul> better than busy waiting in a tight loop
<phaul> or sleeping
<RedNifre> hmmm, looks somewhat complicated.
mroutis has joined #ruby
<phaul> althhough, does it even work for non socket descriptors...
<RedNifre> I wonder if there's a simpler `tail -f bla | ruby bla.rb` solution.
<phaul> don't know. There must be a way for the OS to wake up a process when a file is touched
* phaul wanders off and looks up tail source code
cats has joined #ruby
nowhere_man has joined #ruby
TheBloke has joined #ruby
<phaul> if you don't care about performance, I guess the easiest is just to sleep. old_num_bytes = 0; loop { fd = File.open(); fd.seek(old_num_bytes); fd.read; old_num_bytes = fd.pos ; sleep(some_arbitrary_time)}
<phaul> ^that's just a pseudo code about the idea. it's leaking file descriptors at this form.
aufi has quit [Ping timeout: 272 seconds]
lytol_ has joined #ruby
dellavg_ has quit [Ping timeout: 244 seconds]
<al2o3-cr> something like this: IO.open(file) { |io| f.seek(0, :SEEK_END); loop { select [io]; line = io.gets ... }
<phaul> just don't forget to sleep at some point :)
LiftLeft2 is now known as LiftLeft
<phaul> the tail I looked at does use OS specific stuff for this. (kevents). so if tail does that then there is probably no good answer
<al2o3-cr> phaul: yes, i missed the sleep but you get the point ;)
<phaul> al2o3-cr: sure
<al2o3-cr> =P
kn-928 has joined #ruby
xfbs has joined #ruby
Dbugger has quit [Remote host closed the connection]
RougeR has joined #ruby
clemens3 has quit [Remote host closed the connection]
RedNifre has quit [Ping timeout: 240 seconds]
RedNifre has joined #ruby
beeman has quit []
catch22 has joined #ruby
herbmillerjr has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
herbmillerjr has quit [Client Quit]
beeman has joined #ruby
blackmesa has joined #ruby
im0nde has quit [Ping timeout: 264 seconds]
blackmesa1 has quit [Ping timeout: 260 seconds]
<phaul> RedNifre: so what does that leave you with? Are you going to implement the loop + sleep combo?
GodFather has quit [Ping timeout: 252 seconds]
* baweaver wanders in
<baweaver> ohai
<phaul> howdy
ta_ has joined #ruby
nchambers is now known as uplime
ta_ has quit [Ping timeout: 252 seconds]
kn-928 has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
daemonwrangler has quit [Quit: ZNC 1.6.5 - http://znc.in]
im0nde has joined #ruby
daemonwrangler has joined #ruby
ozzloy has quit [Ping timeout: 245 seconds]
akem__ has quit [Remote host closed the connection]
akem__ has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
ellcs has joined #ruby
rivalomega has quit []
uplime has quit [Ping timeout: 252 seconds]
<RedNifre> hmmmm...
<RedNifre> Well, given that I'm rewriting my big ball of mud code to clean it up I guess I should do the proper 'select' solution
armyriad has joined #ruby
<RedNifre> You see, historically I used ruby to write tiny ugly prototypes and when it got too messy I rewrote it in a different language, but now I'm trying to do it properly in ruby (because I couldn't find a better scripting language)
orbyt_ has joined #ruby
ta_ has joined #ruby
DTZUZU has joined #ruby
orbyt_ has quit [Client Quit]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
kn-928 has joined #ruby
marmotini_ has joined #ruby
funnel has quit [Ping timeout: 245 seconds]
RedNifre has quit [Read error: Connection reset by peer]
funnel has joined #ruby
kn-928 has quit [Ping timeout: 252 seconds]
marmotini has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
reber has quit [Remote host closed the connection]
reber__ has quit [Read error: Connection reset by peer]
TomyLobo has quit [Read error: Connection reset by peer]
RedNifre has joined #ruby
xfbs has quit [Quit: afk]
ta_ has quit [Ping timeout: 244 seconds]
uplime has joined #ruby
xfbs has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
patr0clus has joined #ruby
pharma_joe has joined #ruby
catch22 has quit [Quit: Leaving]
stooj has quit [Quit: ZNC 1.7.0 - https://znc.in]
stooj has joined #ruby
mroutis has quit [Remote host closed the connection]
patr0clus is now known as s3nd1v0g1us
tdy has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
sameerynho has joined #ruby
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 240 seconds]
pharma_joe has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
moei has quit [Quit: Leaving...]
graphene has joined #ruby
pharma_joe has quit [Client Quit]
agent_white has quit [Quit: leaving]
ziggylazer has quit [Ping timeout: 268 seconds]
ziggylazer has joined #ruby
ta_ has joined #ruby
marmotini_ has quit [Ping timeout: 252 seconds]
marmotini_ has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
<uplime> is there a function that expands a relative path in terms of the pwd? like if pwd = "/foo/bar/baz", expand("..") -> "/foo/bar"
<al2o3-cr> uplime: File.expand_path('..', '/foo/bar/baz') ?
<uplime> perfect, thanks
<al2o3-cr> np.
danguita has quit [Quit: Connection closed for inactivity]
xfbs has quit [Quit: afk]
kapil____ has quit [Quit: Connection closed for inactivity]
lytol_ has quit [Remote host closed the connection]