<plujon>
And inside a module definition, the lookup rules are as for the instances of Module object? currentMod.methods, currentMod.class.ancestors.each { |x| x.instance_methods }
<plujon>
Is that right?
<Papierkorb>
plujon: So, each time you do include, it actually adds the module after current class in the list. And that's it.
<Papierkorb>
plujon: You can even do the other way around! Check out `prepend`. That will, yep, add the module before the current class/module into the chain. Sometimes required.
conta2 has joined #ruby
brent__ has quit [Remote host closed the connection]
<Papierkorb>
plujon: It really only uses the chain. It never explicitly checks `self` first. Just happens to be the first one in the list .. most of the time
<plujon>
Oh, interesting.
mtkd has joined #ruby
brent__ has joined #ruby
<Papierkorb>
plujon: Try this: Create a class, add a #initialize which puts something on the screen. Now, create a module with an #initialize which also puts something, and then does `super`. Now back to your class, put `prepend TheModule`, and run the program
<Papierkorb>
Well, and create an instance of your class ;)
cagomez has joined #ruby
sarmiena_ has joined #ruby
conta2 has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Quit: Leaving...]
<Papierkorb>
plujon: but in reality, it gets a bit funkier than that. Everything is an object (.. mostly). Now, each object actually also has a class of their own, on top of the other ones. Take any object, grab its #singleton_class, and then ask for its #ancestors
<Papierkorb>
And if you now add a method to that singleton_class, you'll add this method *only* to this object instance, and not to all instances of the class. The singleton_class really is a class, so you can also #include stuff, etc.
brent__ has quit [Ping timeout: 260 seconds]
KeyJoo has joined #ruby
<Papierkorb>
The ancestor chain is always used directly
oliv_____ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
oli______ has joined #ruby
<plujon>
All objects have ancestor chains? Not just instances of Class?
<Papierkorb>
plujon: Have you noticed how I constantly said "most things are objects"? Well, besides the unsurprising things like "source code isn't an object", in fact, you can create things that are not Objects. Do this: `class Thing < BasicObject; def self.a; Array; end; end`. Now, still in pry/irb, call `Thing.a`.
<Papierkorb>
So, not only objects have ancestors et al, but they actually originate in BasicObjects
<Papierkorb>
-s
JBlazeCoder21 has joined #ruby
InfinityFye has joined #ruby
InfinityFye has quit [Client Quit]
oliv_____ has quit [Ping timeout: 276 seconds]
<Papierkorb>
plujon: And at *that* point, you're at wits end in terms what is an accessable thing, as long you're only using Ruby (And no C libraries, or Fiddle)
houhoulis has joined #ruby
<plujon>
So, practically speaking, anything within Object.constants or Object.methods is basically "global" for ruby code. And anything within Module or Class is "global" within module or class definitions?
<Papierkorb>
Effectively, yes
<plujon>
And anything else needs to be included from a Module (or otherwise in one's ancestor chain)...
<Papierkorb>
yep
sameerynho has quit [Ping timeout: 240 seconds]
<plujon>
And, to bring things full circle, classes do not inherit lookup from the module in which they reside.
<plujon>
Okay, thanks for the explanations. I'll try to chew on this awhile.
Dreamer3_ has joined #ruby
wald0 has joined #ruby
QualityAddict has quit [Quit: Leaving]
umaaji has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
oli______ has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cagomez has joined #ruby
* plujon
rushes off
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.1)]
sarmiena_ has quit [Quit: sarmiena_]
bruno- has quit [Ping timeout: 255 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
oliv_____ has quit [Ping timeout: 246 seconds]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
knight33 has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
Guest29292 has quit [Remote host closed the connection]
bruno- has joined #ruby
dstrunk has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
barx has quit [Quit: barx]
ElFerna has joined #ruby
marr has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 255 seconds]
tunaBee__ has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has quit [Remote host closed the connection]
JBlazeCoder21 has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
Guest3135 is now known as Sp4rKy
Sp4rKy is now known as Guest25303
sarmiena_ has joined #ruby
Dimik has quit [Ping timeout: 276 seconds]
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
JBlazeCoder21 has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
apparition has joined #ruby
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
bruno- has joined #ruby
sleepee has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
cahoots_ has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
ElFerna has joined #ruby
mim1k has joined #ruby
bronson has joined #ruby
kculpis has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
sarmiena_ has quit [Quit: sarmiena_]
t-recx has quit [Quit: t-recx]
astrobunny has quit [Read error: Connection reset by peer]
Axy has quit [Ping timeout: 248 seconds]
Lyfe_ is now known as Lyfe
ramfjord has quit [Ping timeout: 240 seconds]
gnufied has quit [Ping timeout: 246 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 240 seconds]
eelster has quit [Ping timeout: 255 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
astrobunny has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
ByronJohnson has joined #ruby
andrzejku has joined #ruby
anisha has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
nacsurte has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
nacsurte has quit [Ping timeout: 258 seconds]
conta has joined #ruby
minimalism has quit [Quit: minimalism]
vuoto has joined #ruby
andrzejku has quit [Ping timeout: 260 seconds]
ByronJohnson has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
ByronJohnson has joined #ruby
bronson has quit [Remote host closed the connection]
tvw has joined #ruby
JBlazeCoder21 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ar1a has quit [Ping timeout: 268 seconds]
jameser has joined #ruby
andrzejku has joined #ruby
ar1a has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Pacra has quit [Ping timeout: 255 seconds]
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCoder21 has joined #ruby
Guest72727 is now known as Sp4rKy
Awsy has joined #ruby
Sp4rKy is now known as Guest11914
uZiel has quit [Ping timeout: 248 seconds]
unreal_ is now known as unreal
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
mark_66 has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
sleetdrop has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
makko has joined #ruby
brent__ has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
<makko>
Hi, say I have a function like: def fn(foo: 1, bar: 2) p foo,bar end; how do I dynamically use foo or bar? for example, x = :foo and then how do I do something like fn(x: 100)?
vondruch has joined #ruby
TomyWork has joined #ruby
nacsurte has joined #ruby
jameser has joined #ruby
vondruch has quit [Remote host closed the connection]
andikr has joined #ruby
vondruch has joined #ruby
code_zombie has quit [Quit: Leaving]
aurelien has joined #ruby
Guest11914 is now known as Sp4rKy
<herwin>
fn(x => 100)
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
<herwin>
those keyword arguments are a bit like hashes
nacsurte has quit [Ping timeout: 276 seconds]
<makko>
herwin: how do I dynamically run the function with a particular keyword assignment? so if I set x to be :foo beforehand, is there a way I can run fn(x: 100) == fn(foo: 100). thanks
<herwin>
yes, by using fn(x => 100), like I just said...
cagomez has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
<makko>
herwin: ah gotcha, my bad. Thank you for your help, I appreciate it!
renchan has quit [Read error: Connection reset by peer]
cagomez has quit [Ping timeout: 255 seconds]
vondruch has quit [Read error: Connection reset by peer]
renchan has joined #ruby
vondruch has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
makko has quit []
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
djbkd has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
ltem has joined #ruby
vondruch has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stan_ is now known as stan
jenrzzz has joined #ruby
kaizoku_ is now known as kaizoku
kaizoku has quit [Quit: Reconnecting]
kaizoku has joined #ruby
sylario has joined #ruby
jameser has joined #ruby
Silthias1 has joined #ruby
vondruch has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
nacsurte has joined #ruby
vuoto has quit [Remote host closed the connection]
nacsurte has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vondruch has quit [Remote host closed the connection]
vuoto has joined #ruby
vondruch has joined #ruby
muzik has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
Axy has joined #ruby
tvw has quit [Remote host closed the connection]
aurelien has quit [Quit: ERC (IRC client for Emacs 25.2.1)]
Beams has joined #ruby
aurelien has joined #ruby
<jokke>
hi
<jokke>
i'm having some trouble with capistrano and gpg-agent provided ssh keys
<jokke>
i have a sub key on a smart card which is capable of authenticating for ssh. this works without a hinch when directly connecting to a server via ssh
<jokke>
capistrano seems to have ~/.ssh/id_rsa hard coded as a identity (or fallback)
romankapitonov has joined #ruby
<jokke>
any ideas how to make it use the key provided by gpg-agent (which acts as ssh agent)
vuoto has quit [Quit: Lost terminal]
<jokke>
never mind.
<jokke>
the deploy user was missing the gpg key
quobo has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
priodev has quit [Ping timeout: 276 seconds]
iMadper` has joined #ruby
priodev has joined #ruby
armyriad has joined #ruby
iMadper has quit [Remote host closed the connection]
bronson has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
aupadhye has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
yabbes has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
meshsmith has joined #ruby
meshsmith has joined #ruby
meshsmith has quit [Changing host]
JBlazeCoder21 has joined #ruby
ramfjord has joined #ruby
bronson has joined #ruby
jameser has joined #ruby
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCo_ has joined #ruby
nacsurte has joined #ruby
meshsmith has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 246 seconds]
Asher has quit [Quit: Leaving.]
marr has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
JBlazeCo_ has quit [Read error: Connection reset by peer]
nacsurte has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
Asher has joined #ruby
ramfjord has joined #ruby
JBlazeCo_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
JBlazeCoder21 has joined #ruby
JBlazeCo_ has quit [Ping timeout: 268 seconds]
jaegerca has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
<jaegerca>
Hello. Anyone aware of a way or a strategy for making it so your models composable in a non-permanent fashion? I would like to make engines for the different parts of my application that extend the functionality of my main models, but I don't want engines to be able to use eachothers added functionality.
<jaegerca>
I think this is impossible in Ruby, at least the way I am thinking about it.
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
Paraxial has joined #ruby
kith has joined #ruby
JBlazeCo_ has quit [Ping timeout: 240 seconds]
ohcibi has quit [Remote host closed the connection]
ohcibi has joined #ruby
<muzik>
I believe thats possible
<muzik>
You just have to read up
alveric has joined #ruby
<muzik>
it has been at least 6 years since i have messed with objects that deeply, but im 90% sure you can
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
Paraxial has quit [Remote host closed the connection]
ta__ has quit [Remote host closed the connection]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
Paraxial has joined #ruby
JBlazeCoder21 has joined #ruby
nrk has quit [Ping timeout: 255 seconds]
cagomez has joined #ruby
bronson has joined #ruby
JBlazeCo_ has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
KeyJoo has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 246 seconds]
sparkyy_ has quit [Ping timeout: 255 seconds]
sparkyy has joined #ruby
JBlazeCo_ has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
sparkyy has quit [Read error: Connection reset by peer]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
nacsurte has joined #ruby
sparkyy has joined #ruby
astrobunny has quit []
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
nacsurte has quit [Ping timeout: 246 seconds]
kies has quit [Ping timeout: 276 seconds]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
JBlazeCoder21 has joined #ruby
maattdd has joined #ruby
ur5us has quit [Remote host closed the connection]
mim1k has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
Paraxial has quit [Remote host closed the connection]
kies has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 268 seconds]
noname2 has joined #ruby
dionysus69 has joined #ruby
JBlazeCo_ has quit [Ping timeout: 240 seconds]
umaaji has quit [Quit: Leaving...]
<jaegerca>
Mon_Ouie: I actually did have a look over refinements, but decided they weren't up to the challenge as the are messy, and they also don't allow you to modify the class itself.
<jaegerca>
muzik: I would be very curious to be pointed in the right direction!
<muzik>
Please explain in more detail what you are after
JBlazeCoder21 has joined #ruby
TomyLobo2 has joined #ruby
<mnemon>
jaegerca: you could extend existing objects with functionality from additional modules at runtime?
<jaegerca>
muzik: So, I have my main application, and I have a Dog model. This has basic support for things like color and name. But perhaps I add an engine that allows my Dog model to sleep in a doghouse or something.
<jaegerca>
Inside the Sleep engine I am adding methods to dog instances and class related to sleeping, doghouses, etc
<jaegerca>
But those methods are not accessible to the rest of the application, or engines, because they are not concerned about sleeping.
mim1k has joined #ruby
rabajaj has joined #ruby
<jaegerca>
I am hoping that in this way I can break out common pieces and compose the dog model appropriately depending on where I am at in my application.
Paraxial has joined #ruby
<muzik>
Sorry, it has been to long since i played with this stuff
<muzik>
too*
<jaegerca>
No worries
<muzik>
So you are looking to have instance methods only for specific objects
<muzik>
note: "instance" method, not "class" method
<jaegerca>
muzik: Well - if that were the case I would just extend the instance in the right place
<muzik>
but you will want many of the objects to share these special new methods?
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jaegerca>
Well - this is in the context of a rails application - so generally in the controller I would just extend that instance with the desired traits
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
<jaegerca>
The issue is really how to deal with things like active record relations
JBlazeCoder21 has joined #ruby
<jaegerca>
dog.doghouse is defines by has_one :doghouse on a class level
<jaegerca>
Which means it's shared immediately to the whole app, I don't want that
<muzik>
Yeah, you have gone above my current understand. Sorry i cannot help. There are looks of good "programming ruby" books available that show these things
<jaegerca>
I only want the sleep engine to understand that relationship
Paraxial has quit [Remote host closed the connection]
GodFather has joined #ruby
<jaegerca>
No worries - I really do think this is impossible in ruby
GodFather_ has joined #ruby
GodFather has quit [Remote host closed the connection]
GodFather_ has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 276 seconds]
<mnemon>
jaegerca: you can extend existing objects with instance methods from modules to add functionality(o=Dog.new;o.extend(SleepModule);o.sleep etc.)
GodFather has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has joined #ruby
<jaegerca>
mnemon: Yes - the issue is just what I referenced before. This Sleep engine may supply an active record relation on Dog. Dog.has_many :doghouses. On an instance level this is all fine and well, just extend as you said, but class level things are my issue. Refinements are the closest I have seen to dealing with this but they don't seem to be exactly what I want.
mim1k has joined #ruby
<mnemon>
jaegerca: if you want to do class level things, why not just extend the Dog class?
<jaegerca>
mnemon: Because I don't want the modifications available to the rest of the application
<mnemon>
then you have SleepyDog class that knows how to sleep in the doghouse :)
<jaegerca>
mnemon: Right now I am just including a SleepyDog module - but the rest of my app understands these things when I want this behaviour isolated.
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCoder21 has joined #ruby
<jaegerca>
I only want my dog to be capable of sleep in the engine
<jaegerca>
mnemon: I think the easiest way to explain this would be: I want to add an active record relationship to Dog, and I want this relationship to only exist in the engine, not the rest of the application, even though the Dog class is in the applications.
JBlazeCoder21 has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has joined #ruby
<mnemon>
jaegerca: so extend the Dog instance in the engine at runtime with the SleepyDog module instead of including it in the base Dog class?
workmad3 has quit [Ping timeout: 276 seconds]
<jaegerca>
mnemon: Ok, so I extend dog with SleepyDog, how do I get the activerecord relationships that would need to be defined on the class?
<jaegerca>
I can't add a has_many :blah to an instance
nacsurte has joined #ruby
<mnemon>
just a sec, haven't done rails in a while so need to check the activerecord docs :)
<jaegerca>
Ok :)
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
JBlazeCoder21 has joined #ruby
vali has quit [Quit: vali]
nacsurte has quit [Ping timeout: 240 seconds]
gr33n7007h is now known as al2o3-cr
<mnemon>
Maybe there's some limitation that I'm not seeing but can't you just do the rails equivalent of o = Dog.new;o.extends(SleepyDog);o.add_relations where add_relations runs the "has_many :blahs" to add the relation to the instance?
<jaegerca>
mnemon: Oh - I don't know, that sounds possible!
<jaegerca>
Let me have a look at the doc
<mnemon>
You of course need to create the migrations to have the DB side support but otherwise should be feasible ...
rabajaj has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
<jaegerca>
mnemon: Sure yes - do you have a link to that method? I am not seeing it
<jaegerca>
mnemon: Ah okay I see what you mean, I thought you found an instance method add_relations. This is a class method, the second I use it the relationship is available to all instances of dog across the app.
<jaegerca>
Which is what I am attempting to avoid.
jackjackdripper has quit [Quit: Leaving.]
mim1k has quit [Ping timeout: 240 seconds]
FahmeF has quit [Remote host closed the connection]
FahmeF has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCo_ has joined #ruby
mim1k has joined #ruby
<al2o3-cr>
if i do `module Test refine String do def sleep() end end end` then call "".sleep 5 it will actually sleep 5 secs?
JBlazeCo_ has quit [Ping timeout: 255 seconds]
ltem has quit [Quit: Leaving]
JBlazeCoder21 has joined #ruby
<al2o3-cr>
it doesn't make sense to me
jenrzzz has joined #ruby
<mnemon>
jaegerca: ah, right ... have you looked at engine namespace isolation? If it's good enough to isolate the modified Dog based on the engine I think this would enable you to modify the class and not have the rest of the application see the new functionality.
rabajaj has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
<Mon_Ouie>
al2o3-cr: That's interesting. It seems related to the fact that String already has a method called #sleep (inherited from Object which includes Kernel), but it's a private method
<Mon_Ouie>
>> "".sleep
<ruby[bot]>
Mon_Ouie: # => private method `sleep' called for "":String (NoMethodError) ...check link for more (https://eval.in/838828)
<Mon_Ouie>
Somehow just defining the refinement affects this
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PING 1501254819"]
moeabdol1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cagomez has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
moeabdol1 has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
ElFerna has joined #ruby
ramfjord has joined #ruby
dhaller has joined #ruby
<dhaller>
2017-07-28 11:21:39 EDT STATEMENT: PREPARE cursor_stmt3 AS SELECT ada_api_db.api_tokens.token FROM ada_api_db.api_tokens WHERE ada_api_db.api_tokens.id=$1::integer
<Mon_Ouie>
Mesh generation for finite elements simulations
mostlybadfly has joined #ruby
<banisterfiend>
Mon_Ouie oh cool, with that you're going into game development or ..? :)
ramfjord has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
Not really, the aspect that I like about it is that the large scale of the problems means you often do things like parallelizing algorithms on GPUs, etc.
<banisterfiend>
Mon_Ouie oh nice. so what kind of job will skills like that lead to eventually? or is something best suited for academia?
<Mon_Ouie>
I'm starting a PhD, probably won't keep doing research all my life though
ramfjord has joined #ruby
brent__ has joined #ruby
<banisterfiend>
oh nice
<Mon_Ouie>
By the way whatever happened to robgleeson after his outburst?
kwesidev has joined #ruby
<banisterfiend>
Mon_Ouie he's back to normal now and has a great job working for one of the world's biggest VPN providers
moeabdol1 has quit [Ping timeout: 276 seconds]
<Mon_Ouie>
Good for him :) does he hang out on IRC with another nick, or has he just moved on completely?
<banisterfiend>
he hangs out on IRC with a bunch of weird nick names heh heh
<banisterfiend>
i dont remember his last one, something super weird.....so i guess he's back to normal for 'some' definition of normal :P but he's definitely viable now anyway
ramfjord has quit [Ping timeout: 240 seconds]
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
moeabdol1 has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
conta3 has joined #ruby
ElFerna has joined #ruby
yabbes has quit [Ping timeout: 255 seconds]
quobo has joined #ruby
bruno- has joined #ruby
bronson has joined #ruby
truenito has quit [Ping timeout: 258 seconds]
dstrunk has joined #ruby
sparkyy_ has joined #ruby
AlexRussia has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
sparkyy has quit [Ping timeout: 260 seconds]
kamilkucharski has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
naprimer3 has joined #ruby
kamilkucharski has quit [Ping timeout: 260 seconds]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vuoto has joined #ruby
TomyLobo2 has joined #ruby
naprimer2 has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
eelster has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nacsurte has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
Ishido has quit [Ping timeout: 246 seconds]
Ishido has joined #ruby
olivi____ has quit [Quit: Leaving...]
JBlazeCoder21 has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
JBlazeCoder21 has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
alex`` has joined #ruby
code_zombie has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
jinie_ has quit [Ping timeout: 240 seconds]
jespada has joined #ruby
Serpent7776 has quit [Quit: Leaving]
jinie_ has joined #ruby
JBlazeCoder21 has joined #ruby
cdg has joined #ruby
eckhardt has joined #ruby
ozcanesen has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta3 has quit [Quit: conta3]
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
sarmiena_ has joined #ruby
SeepingN has joined #ruby
jespada has quit [Quit: WeeChat 1.7]
JBlazeCo_ has quit [Ping timeout: 260 seconds]
JBlazeCoder21 has joined #ruby
zautomata has joined #ruby
conta1 has joined #ruby
high_fiver has quit [Ping timeout: 240 seconds]
Mgtuiw211 has joined #ruby
conta1 has quit [Client Quit]
conta1 has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
Pacra has quit [Ping timeout: 255 seconds]
wald0 has joined #ruby
JBlazeCoder21 has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
JBlazeCoder21 has joined #ruby
roshanavand has quit [Remote host closed the connection]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
kies has quit [Ping timeout: 276 seconds]
kahra has quit [Ping timeout: 248 seconds]
aurelien has quit [Ping timeout: 240 seconds]
ayonkhan has quit [Ping timeout: 240 seconds]
kahra has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
ayonkhan has joined #ruby
nacsurte has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
brent__ has quit [Remote host closed the connection]
sgen has quit [Remote host closed the connection]
<adam12>
I'd like to chop the first folder of a relative path off a string. Has anybody seen anything in stdlib for that? I've checked Pathname and File, but nothing stood out. I could just split in file separator but looking for something more elegant, if it exists.
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
ayonkhan has quit [Client Quit]
ayonkhan has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
cagomez has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nickjj_ has quit [Read error: Connection reset by peer]
nickjj_ has joined #ruby
am55 has quit [Read error: Connection reset by peer]
am55 has joined #ruby
am55 has joined #ruby
cahoots_ has quit [Read error: Connection reset by peer]
jamal7 has quit [Read error: Connection reset by peer]
marr has quit [Read error: Connection reset by peer]
tunaBee has quit [Read error: Connection reset by peer]
tunaBee has joined #ruby
cahoots has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
marr has joined #ruby
ur5us has joined #ruby
bronson has joined #ruby
jamal7 has joined #ruby
ohnowendigo has left #ruby [#ruby]
Moosashi has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
ElFerna has quit [Ping timeout: 268 seconds]
kies has joined #ruby
JBlazeCo_ has joined #ruby
<quuxman_>
Say I'm starting a local web server with `vendor/bundle/bundle exec foreman start web`. How do I start it so I can trigger a debugger with a request and breakpoint, or even better, trigger a debugger on exception?
quuxman_ is now known as quuxman
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
brent__ has joined #ruby
gusrub has quit [Remote host closed the connection]