_djbkd has quit [Remote host closed the connection]
JammyHammy has quit [Read error: Connection reset by peer]
<bougyman>
hrm, i've never used a fifo from ruby
<bougyman>
just realizing this now after 15 years.
<bougyman>
what's the SOP, here?
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bougyman>
google keeps showing me shit about named pipes.
arashb has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
agent_white has quit [Quit: backlate]
pwnd_nsfw` has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zukin has joined #ruby
<bougyman>
nm, figured it out.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
zacts has quit [Ping timeout: 258 seconds]
mattp_ has quit [Read error: Connection reset by peer]
arashb has quit [Ping timeout: 248 seconds]
mattp_ has joined #ruby
Robtop__ has quit [Ping timeout: 258 seconds]
marxarelli is now known as marxarelli|afk
Drakevr has quit [Ping timeout: 268 seconds]
majoh has quit [Ping timeout: 256 seconds]
xsdg has quit [Ping timeout: 250 seconds]
Fraeon has quit [Ping timeout: 250 seconds]
SeepingN has quit [Disconnected by services]
Drakevr has joined #ruby
ljarvis has joined #ruby
SeepingN_ has joined #ruby
xsdg has joined #ruby
Fraeon has joined #ruby
Bellthoven has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
zukin has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
majoh has joined #ruby
al2o3-cr has joined #ruby
Felipe__ has quit [Quit: Leaving]
flashpoint9 has joined #ruby
nettoweb has joined #ruby
pokalyis has quit [Read error: Connection reset by peer]
<flashpoint9>
Hey, Im working on some algorithms and there is one where I find some numbers under 5000, At the end my array has its last value as higher than 5000 because im using a while and it still fires on the first 5000+
<flashpoint9>
my question is which loop/iterator checks for the value first before firing?
pokalyis has joined #ruby
GodFather has joined #ruby
jhack has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
nitric has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 268 seconds]
<SeepingN_>
while (x == y) do
al2o3-cr has quit [Ping timeout: 260 seconds]
<SeepingN_>
or maybe until
<SeepingN_>
until (x > 5000) do
Rickmasta has joined #ruby
al2o3-cr has joined #ruby
axsuul has joined #ruby
charliesome has joined #ruby
<axsuul>
What's the closest to running a shell command in ruby? For example, I'm trying to run the command `docker build .` but it errors out in ruby. However, if I run it directly in the shell, it works. What gives?
SeepingN_ has quit [Quit: The system is going down for reboot NOW!]
danostrowski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhass has joined #ruby
Kayla has joined #ruby
<axsuul>
Never mind
Kayla has quit [Client Quit]
renderful has joined #ruby
CloCkWeRX has joined #ruby
Rodya_ has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
nonnatus has joined #ruby
flashpoint9 has quit []
ResidentBiscuit has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
vitd has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
cdg has joined #ruby
Azure has joined #ruby
Azure|dc has quit [Ping timeout: 258 seconds]
cdg has quit [Read error: Connection reset by peer]
zukin has joined #ruby
jaguarmagenta has joined #ruby
cdg has joined #ruby
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizless has quit [Ping timeout: 250 seconds]
gizless has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
<xall>
is something like `free_trial? ? FREE_TRIAL : subscription.plan_name` acceptable style? it seems goofy with two `?`s
jaguarmagenta has quit [Ping timeout: 260 seconds]
Vivekananda has quit [Quit: Leaving]
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<axsuul>
xall: i see it all the time
symm-_ has joined #ruby
pawnbox has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
sneakers has quit [Ping timeout: 260 seconds]
<xall>
axsuul: thanks
frankiee_ has joined #ruby
mrkn has joined #ruby
Qommand0r has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
ccmcdee-sfc has joined #ruby
eljimmy has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Immune_ has joined #ruby
nettoweb has quit [Ping timeout: 268 seconds]
Immune has quit [Read error: Connection reset by peer]
eljimbo has quit [Ping timeout: 252 seconds]
tectonic has joined #ruby
eljimbo has joined #ruby
eljimmy has quit [Read error: Connection reset by peer]
bovis has quit [Quit: leaving]
eljimmy has joined #ruby
eljimbo has quit [Ping timeout: 258 seconds]
zukin has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
tectonic has quit []
frankiee_ has quit [Ping timeout: 252 seconds]
zacts has joined #ruby
ekinmur has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
montj2 has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
tectonic has joined #ruby
ur5us_ has joined #ruby
ur5us has joined #ruby
Bellthoven has quit []
montj2 has quit [Client Quit]
flashpoint9 has joined #ruby
montj2 has joined #ruby
montj2 has quit [Client Quit]
montyboy has joined #ruby
montyboy has quit [Client Quit]
montyboy has joined #ruby
JeanCarloMachado has joined #ruby
tyang has quit [Read error: Connection reset by peer]
optiz0r has quit [Ping timeout: 248 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jameser has joined #ruby
Jameser has quit [Client Quit]
Rodya_ has joined #ruby
SCHAPiE has quit [Ping timeout: 260 seconds]
harfangk has joined #ruby
jcao219 has quit [Ping timeout: 268 seconds]
hutch34 has joined #ruby
JoshS has joined #ruby
Derperperd has quit [Quit: Derperperd]
Rodya_ has quit [Ping timeout: 258 seconds]
GodFather has quit [Ping timeout: 258 seconds]
marxarelli|afk has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 258 seconds]
flashpoint9 has quit [Remote host closed the connection]
toni_ has quit [Ping timeout: 268 seconds]
Chagel has joined #ruby
xall has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 258 seconds]
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
amclain has quit [Quit: Leaving]
SCHAPiE has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
nowhereman has quit [Remote host closed the connection]
dhk has joined #ruby
jhack has quit []
SCHAPiE has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 258 seconds]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
Contigi has quit [Ping timeout: 248 seconds]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
montyboy has quit [Quit: WeeChat 1.4]
ace05 has quit [Remote host closed the connection]
jazzonmym11nd has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Chagel has joined #ruby
hutch34 has joined #ruby
bmurt has joined #ruby
braincrash has quit [Quit: bye bye]
blackgoat has quit [Quit: WeeChat 1.5]
sneakerhax has joined #ruby
sneakerhax has quit [Client Quit]
astrobunny has joined #ruby
jaguarmagenta has joined #ruby
tmtwd has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Ping timeout: 248 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
braincrash has joined #ruby
gix has quit [Ping timeout: 248 seconds]
blackgoat has joined #ruby
gix has joined #ruby
emilford has joined #ruby
emilford has quit [Client Quit]
emilford has joined #ruby
nowhereman has joined #ruby
elvin has joined #ruby
emilford has left #ruby [#ruby]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Blueby has joined #ruby
roger_rabbit has quit [Ping timeout: 248 seconds]
<Blueby>
Hi Folks, I am working on some server-side API calls to third party APIs, I tried implementing with rest-client and with httparty, but both were very slow
<Blueby>
When I make the request on the browser, the response is almos immediate, so I don’t think its an issue with the API that I am making the request to
<Blueby>
Any thoughts?
<Blueby>
Im working on rails 5 if that is relevant
charliesome has quit [Ping timeout: 258 seconds]
braincrash has quit [Ping timeout: 258 seconds]
<baweaver>
How do you know it's slow
<baweaver>
what are your speed requirements
<baweaver>
and how is that not meeting them
<baweaver>
Also, you sure it's not the service?
brendan- has joined #ruby
igniting has joined #ruby
twalla has joined #ruby
astrobunny has quit [Remote host closed the connection]
<baweaver>
Blueby: ^
<Blueby>
So I know its slow, because it takes about 2 minutes to pull the data that on the browser I get instantaneoulsy
<baweaver>
Cache?
<Blueby>
I don’t think so. I tried a number of different sites
<zukin>
i guess i will have to read over the beginning of "beginning ruby 3rd edition" i dont think it ever mentions it
<agent_white>
Eh. Some things you stumble upon only when you need it :)
<zukin>
in chapter 7 that snippet of code appears
<zukin>
thank you soo much agent_white
<agent_white>
zukin: Mhm!
Burgestrand has joined #ruby
aganov has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
User458764 has joined #ruby
twalla has joined #ruby
mark_66 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
zukin has quit [Ping timeout: 248 seconds]
twalla has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
ziarkaen has joined #ruby
blackgoat has joined #ruby
czerasz has quit [Quit: Ex-Chat]
djellemah has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
ziarkaen has quit [Ping timeout: 260 seconds]
sandelius has joined #ruby
Humdai has joined #ruby
frankiee_ has joined #ruby
Derperperd has quit [Quit: Derperperd]
frankiee_ has quit [Ping timeout: 258 seconds]
jsrn has joined #ruby
Silthias has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
<jokke>
hello
elenatanasoiu has joined #ruby
Silthias1 has quit [Ping timeout: 258 seconds]
jaequery has joined #ruby
<jokke>
i need some help with virtus. anyone here use it? I'm trying to find a way to temporarily set all attributes as required: false in a model and all nested models...
tcrypt[away] is now known as tcrypt
Silthias1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tcrypt is now known as tcrypt[away]
mikecmpbll has joined #ruby
<jokke>
i guess there's no easy way to do it... :/
Silthias has quit [Ping timeout: 260 seconds]
ekinmur has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
xall has quit [Ping timeout: 268 seconds]
claudiuinberlin has joined #ruby
NightMonkey has quit [Ping timeout: 248 seconds]
blaxter has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ekinmur has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tcrypt[away] is now known as tcrypt
ziarkaen has joined #ruby
tcrypt is now known as tcrypt[away]
jenrzzz has quit [Ping timeout: 268 seconds]
NightMonkey has joined #ruby
Filiphe has joined #ruby
charliesome has joined #ruby
mim1k|wo1k is now known as mim1k|work
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
tomphp has joined #ruby
charliesome has joined #ruby
Burgestrand has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
kies^ has quit [Ping timeout: 268 seconds]
tercenya_ has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Client Quit]
tercenya has quit [Ping timeout: 250 seconds]
tercenya_ has quit [Remote host closed the connection]
gingray has quit [Ping timeout: 252 seconds]
tercenya has joined #ruby
DoubleMalt has joined #ruby
zukin has joined #ruby
tuxaddic1ed has joined #ruby
k200 has joined #ruby
nankyokusei has joined #ruby
<k200>
in my rake task i am initializing a variable to zero at task description and then passing this var to function 1. function 1 pass this to function 2. in functoin 2 i am increment it. but this is not reflecting to original varibale at the end of execution.
<dminuoso_>
k200: Gist the code.
gingray has joined #ruby
troulouliou_div2 has joined #ruby
tuxaddicted has quit [Ping timeout: 268 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
nadir has joined #ruby
pawnbox has quit [Remote host closed the connection]
zukin has quit [Ping timeout: 250 seconds]
antgel has joined #ruby
pawnbox has joined #ruby
<apeiros>
does not seem to be such an important problem after all, eh?
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
renderful has joined #ruby
<k200>
cant share the code.
<dminuoso_>
cant help you then
Snowy has joined #ruby
<dminuoso_>
k200: Or just make a test case.
<dminuoso_>
Something that I can just run through my rake to observe the behavior you are describing.
AndrewIsHere has joined #ruby
<apeiros>
?consultant k200
<ruby[bot]>
k200: if you just want a solution, or need help with a problem where you can't disclose relevant parts, then please hire a consultant. Or find a way to either remove or replace the parts you can't disclose.
<k200>
apeiros: sure. thanks.
<k200>
apeiros: this type of behaviour explains why we have religiouns who make it compulsory to follow only that religion and not allow to convert.
<dminuoso_>
Note that I provide professional consultation. Between marriage counselling and tips for baking triple choc chip cookies I offer a great variety of services.
<k200>
no thanks.
<apeiros>
k200: if you think you're in a position to be snotty then reconsider
<apeiros>
I gladly show you the door for that kind of behavior.
<apeiros>
remember, you're asking for free help. it's nothing more than just basic manners to provide useful information when doing so.
<dminuoso_>
k200: If you change your mind let me know, I know all the tricks to making triple choc chip cookies that will win the heart of every woman and man you know.
renderful has quit [Ping timeout: 260 seconds]
coyo has quit [Ping timeout: 252 seconds]
jaguarmagenta has joined #ruby
twalla has joined #ruby
<apeiros>
for as far as I can see it, it's not the kind of problem where you couldn't make an example which you can share. so in my book you're just being lazy and now become offensive because you don't get the help served on a silver platter.
AndrewIsHere has quit [Ping timeout: 258 seconds]
blaxter has quit [Quit: foo]
Beams has joined #ruby
ben_____1 has joined #ruby
blaxter has joined #ruby
zukin has joined #ruby
astrobunny has quit [Remote host closed the connection]
twalla has quit [Ping timeout: 260 seconds]
ekinmur has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
ace05 has joined #ruby
Gasher has joined #ruby
<tobiasvl>
dminuoso_: I might actually be interested in tips for those cookies
workmad3 has joined #ruby
jcao219 has joined #ruby
al2o3-cr has joined #ruby
flashpoint9 has joined #ruby
ace05 has quit [Ping timeout: 260 seconds]
ekinmur has quit [Ping timeout: 250 seconds]
tfitts has quit [Quit: Connection closed for inactivity]
blaxter has quit [Quit: foo]
<darix>
tobiasvl: chocolate cookies are good.
gingray has quit [Ping timeout: 258 seconds]
marr has joined #ruby
ctp has joined #ruby
zukin has quit [Quit: leaving]
alaibe has quit [Ping timeout: 252 seconds]
Pumukel has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
da3mon has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
<al2o3-cr>
morning troopers
<apeiros>
moin al2o3-cr
gingray has joined #ruby
<al2o3-cr>
good morning apeiros
ziyadb has joined #ruby
blaxter has joined #ruby
<dminuoso_>
tobiasvl: Very well. Step into my office to sign a non-disclosure agreement, and a consultation contract.
<dminuoso_>
Also be sure to bring your credit card.
ARCADIVS has quit [Quit: ARCADIVS]
<apeiros>
dminuoso_: wait, what? you want money for that? are you insane? tobiasvl surely will offer you some exposure in exchange for the recipe. that's much more valuable than any money!
Couch has joined #ruby
<apeiros>
or how did that line usually go? as an item in the cv?
<apeiros>
eh :)
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
twoninefive has joined #ruby
ur5us_ has joined #ruby
ur5us has joined #ruby
Oclair has left #ruby ["Bye Bye"]
alaibe has joined #ruby
quazimodo has quit [Ping timeout: 268 seconds]
blaxter has quit [Client Quit]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ocbtec has joined #ruby
rajdesai has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ur5us_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
Immune_ has quit [Read error: Connection reset by peer]
djbkd_ has quit [Remote host closed the connection]
twoninefive has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
<dminuoso_>
apeiros: Good consultation is never free.
<dminuoso_>
But then again, neither is terrible consultation.
<dminuoso_>
But I didn't tell you.
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
djbkd_ has joined #ruby
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
jaguarmagenta has quit [Ping timeout: 268 seconds]
Wayne_Shephard has joined #ruby
CloCkWeRX has joined #ruby
ENN13 has joined #ruby
ENN13 has left #ruby [#ruby]
Immune has quit [Ping timeout: 252 seconds]
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
da3mon has quit [Quit: Zzzz...]
rajdesai has quit [Ping timeout: 268 seconds]
c0mrad3 has joined #ruby
postmodern has quit [Quit: Leaving]
rajdesai has joined #ruby
eizua has quit [Quit: Leaving]
astrobunny has joined #ruby
rajdesai has quit [Client Quit]
definity has joined #ruby
<definity>
Hi, im trying to learn what yield does, can you use multiple yields in 1 method? or can you only use 1 yield for the one block passed to it?
<canton7>
you can yield multiple times, sure
<canton7>
each time you yield, the block passed to that method is invoked
<dminuoso_>
definity: It's best to start with procs/lambda
<dminuoso_>
yield just calls the block that was passed the the inner most function of the current context.
<dminuoso_>
It's useful for performance considerations, but for clarity you could use canton7's "method2" variant instead.
<dminuoso_>
It's more obvious what happens. :)
<canton7>
(to be clear: I'm not recommending that you use my 'method2' in normal code like that - it's just to show that 'yield' does the same thing as explicitly capturing and calling the block)
<dminuoso_>
canton7: dunno, for beginners I feel like 'method2' is less "magical"
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aswen has joined #ruby
marsjaninzmarsa has joined #ruby
<definity>
Il check out them links thanks :)
astrobunny has quit [Ping timeout: 260 seconds]
ekinmur has joined #ruby
definity has quit [Quit: Leaving]
urtokk has joined #ruby
Rickmasta has joined #ruby
definity has joined #ruby
Rickmasta has quit [Client Quit]
da3mon has joined #ruby
<definity>
sorry got DC, In my example here how can i pass 3 block one for each yield or is that not a thing in Ruby? http://ideone.com/rU8E5G
<elomatreb>
definity: You can't pass more than one block to a method. If you want to do something similar, use Procs or lambdas
User458764 has joined #ruby
ekinmur has quit [Ping timeout: 252 seconds]
<definity>
Thanks elomatreb! I'll check thoughs out now :)
<dminuoso_>
definity: In Ruby every method has an internal and implicit block argument, however you cannot see this block directly (it's not an object)
blackmesa has joined #ruby
<dminuoso_>
definity: block_given? returns whether a block was passed, and yield just calls that block.
djbkd_ has quit []
<definity>
Interesting, I have been doing ruby a day now bit of a weird language but I like it so far.
<dminuoso_>
definity: The "method2" example above binds that block argument into an explicit proc object (called "blk" there), giving you an actual Ruby object that you can use, pass around - and even call (like yield)
claudiuinberlin has quit [Remote host closed the connection]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
blackmesa has quit [Ping timeout: 260 seconds]
pragmaticus has joined #ruby
<definity>
dminuoso_: Interesting, this is gonna be a bit of a learning curve.
<definity>
but im making myself a cheat sheet of what i learnt so far so i can go back and revise, never done it before but hopefully it will help.
<definity>
Does any parameter that begin with an ampersand a Block argument?
Drakevr has quit [Changing host]
Drakevr has joined #ruby
GodFather has joined #ruby
harai_ has quit [Ping timeout: 250 seconds]
agent_white has quit [Quit: agent_white]
ben_____1 is now known as ziarkae
ziarkaen has quit [Disconnected by services]
ziarkae is now known as ziarkaen
jazzonmym11nd has joined #ruby
<apeiros>
tobiasvl: hah :D
ziarkaen has quit [Quit: leaving]
ziarkaen has joined #ruby
braincrash has joined #ruby
Rodya_ has joined #ruby
ziarkaen has quit [Client Quit]
the_drow has joined #ruby
ziarkaen has joined #ruby
jazzonmym11nd has quit [Ping timeout: 258 seconds]
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
ziarkaen has quit [Client Quit]
jazzonmym11nd has joined #ruby
ziarkaen has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
Torrone has quit [Quit: This computer has gone to sleep]
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
antgel has quit [Ping timeout: 258 seconds]
Torrone has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
ejnahc_ has joined #ruby
ejnahc has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
<dminuoso_>
>> def method(&a, &b); end
<ruby[bot]>
dminuoso_: # => /tmp/execpad-443ccdd0d37b/source-443ccdd0d37b:2: syntax error, unexpected ',', expecting ')' ...check link for more (https://eval.in/660611)
<dminuoso_>
definity: ^- You can have only one block anyway.
jcao219 has quit [Ping timeout: 252 seconds]
<dminuoso_>
definity: And the block argument has to be the last argument.
<dminuoso_>
definity: Also note that there is a slightly semantical difference. When you bind an argument to a proc, then that block parameter becomes mandatory.
<definity>
so the only difference between Lambdas and Procs is Lambdas do not care about the amount fo arguments it has been passed? where as Proc will throw and error?
<dminuoso_>
definity: No there's another more important difference:
<definity>
okay thanks il google it
<dminuoso_>
definity: "return" (amongst others) inside the closure behaves differently.
<dminuoso_>
definity: For a lambda "return" will return from the lambda itself (as you might naively expect), wheras inside a proc it will return from the current (!) method.
claudiuinberlin has quit [Ping timeout: 252 seconds]
<definity>
right okay, the lambda is understandable. i think i understand the proc, will it just return from what ever method proc.call is called from?
<dminuoso_>
definity: Exactly.
koooge has quit [Quit: Leaving...]
<definity>
dminuoso_: Ahh cool :) Thanks!
<dminuoso_>
definity: Oh and you mixed up the argument thing between procs and lambda. :)
<dminuoso_>
(lambda checks the number of args)
<dminuoso_>
definity: Now, could you tell the difference between a block and a proc?
the_drow has quit [Read error: Connection reset by peer]
<dminuoso_>
(Just curious about your take on this)
ace05 has joined #ruby
<definity>
okay, i ahve tried something and was a little confused from the results, https://eval.in/660621 surley lam.call(3,2,1) should get called since it has the right amount of arguments. This example runs in Sublime Text not sure why it does not run on Eval.in
<definity>
good question
<definity>
well a block is not an object
<definity>
a proc is an object
the_drow has joined #ruby
<dminuoso_>
Yup that's it.
ace05 has quit [Ping timeout: 250 seconds]
<dminuoso_>
definity: Perhaps Sublime runs this through REPL.
<dminuoso_>
definity: The first invocation raises an exception which is never caught on eval.in - so execution stops right there.
<dminuoso_>
I can't tell you what Sublime is doing, but eval.in behaves correctly.
<definity>
okay, thanks :)
blackmesa has joined #ruby
the_drow has quit [Client Quit]
nettoweb has joined #ruby
<definity>
There was an error in Sublime, it just gave an exit code of 1 instead of spitting out an error.
ekinmur has joined #ruby
tvw has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
da3mon has quit [Quit: Zzzz...]
ekinmur has quit [Ping timeout: 258 seconds]
AlexRussia has quit [Ping timeout: 258 seconds]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
Guest91084 has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
User458764 has joined #ruby
Burgestrand has joined #ruby
mim1k|work has quit [Ping timeout: 260 seconds]
nuck has joined #ruby
nuck is now known as Guest44669
AlexRussia has joined #ruby
mim1k|work has joined #ruby
ziarkaen has quit [Ping timeout: 258 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
aswen has quit [Ping timeout: 252 seconds]
<jokke>
hey
<jokke>
how can i make a class with Class.new look like another existing class?
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis>
jokke: could you be more specific?
AlexRussia has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
<jokke>
instead of an instance showing up as #<#<Class:0x00555c0927ca58>:0x00555c0925df90 @bar=nil, @foo=nil> i need it to look like they'd be instances of MyClassNameHere
Torrone has quit [Quit: This computer has gone to sleep]
montyboy has joined #ruby
<pagios>
hello, by default an object can access the internal variables if they are both initialized from the same class?
<pagios>
internal state* ?
<ljarvis>
"an" and "both" don't go together, perhaps you could share some code, pagios?
<dminuoso_>
ljarvis: Sure it does! Today a person asked what optimization level GCC would apply if both -O0 and -O2 were passed.
<dminuoso_>
Here was the priceless response:
<pagios>
ljarvis, can obj1 access the internal state/variable of obj2 if they are both initalizted from the same class\/
<dminuoso_>
10:49 < velco> if you pass both -O2 and -O0 your program will exist in the superposition of both optimised and not optimised state, until you collapse the wave function by observing the generated assembly
<ljarvis>
pagios: if they're instance variables and you've created a new instance, then no
<dminuoso_>
pagios: No.
<ljarvis>
pagios: instance state is.. per instance
<dminuoso_>
pagios: And that is a good thing. It is called encapsulation.
<elomatreb>
There are class variables that do sort of what you want, but they're generally avoided
cdg has joined #ruby
<pagios>
so objects of the same class trigger each others public methods to access data of each others?
aupadhye has quit [Ping timeout: 258 seconds]
<dminuoso_>
pagios: sure. Anyone can.
<pagios>
Protected access is used when objects need to access the internal state of other objects of the same class
<pagios>
thats what i read
Torrone has joined #ruby
<dminuoso_>
pagios: Look at it from the opposite perspective.
<dminuoso_>
pagios: protected methods disallow access from any other.
<ljarvis>
pagios: that's correct
flying has quit []
renderful has joined #ruby
<dminuoso_>
pagios: Public methods give access to anyone, and its good style to limit access to only those who need it.
<ljarvis>
I disagree with that ^ but it's personal choice really
jazzonmym11nd has quit [Read error: Connection reset by peer]
Beams has quit [Quit: .]
<apeiros>
dminuoso_: yeah, that I knew. code on RHS in arguments is evaluated in the context of the receiver. you can go quite crazy there :D
<apeiros>
you can even use arguments further left
<pagios>
so mainly an instance variable is limited to the object scope, if i want to read an object instance variable from another object i need to use accessors/getter methods, i cannot access the internal state directly, only by methods i can do it
<ljarvis>
pagios: in theory yes, but there are ways to circumvent these things in Ruby
<dminuoso_>
pagios: My reasoning comes from my C/C++ background, where I try to think in terms of invariants a lot.
<pagios>
like for example using @@ class vars?
<apeiros>
pagios: you need to go through a method in order to read instance variables "from outside"
<dminuoso_>
pagios: Proper encapsulations maintains invariants. Access control helps maintain class invariants.
<apeiros>
that method can be an accessor, but doesn't have to be.
<pagios>
ok apeiros
renderful has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
<dminuoso_>
pagios: And note that objects not giving internals to anyone else is crucial to invariants.
<apeiros>
pagios: building up on dminuoso_'s invariants: f.ex. you might not want to allow a Date instance to ever contain an invalid date, such as 2016-10-35
bkxd has joined #ruby
AndrewIsHere has joined #ruby
<apeiros>
hm, maybe a bad example since date classes should better be implemented as immutables :)
<dminuoso_>
apeiros: A better example would be someone storing a string inside the internal variable instead.
<pagios>
so protected allows objects of the same class to access each others, whereas private methods exclusively allows instance object to call the private methods of its class
<dminuoso_>
pagios: Yes.
AltLock has joined #ruby
fmcgeough has joined #ruby
hammond has quit [Ping timeout: 268 seconds]
<pagios>
so in private, we are making the methods security behave like instance variable
<dminuoso_>
It's not about security.
<dminuoso_>
It's visibility.
AltLock has quit [Client Quit]
<dminuoso_>
If someone really wants, he can pry into your object and inspect/mutate internal state as much as he wants.
hammond has joined #ruby
hammond has joined #ruby
hammond has joined #ruby
<ljarvis>
tl;dr you can pretty much just forget protected exists and live a long and prosperous ruby life
<dminuoso_>
^-
<dminuoso_>
I have yet to use protected methods in Ruby.
<dminuoso_>
But private methods I have everywhere.
<apeiros>
same
<ljarvis>
+1
<apeiros>
and I consider "private" to be mostly as documenting
<ljarvis>
definitely
<apeiros>
for all those poor coders like me who don't read docs and just explore apis in the repl :)
<ljarvis>
since nothing is really private anywho :D
<dminuoso_>
ljarvis: Well the same thing could be said about "private" in C++. There's always ways to work around - but at the end it's just a tool to enforce policy.
<ljarvis>
yep sure
DoubleMalt has quit [Ping timeout: 268 seconds]
<ljarvis>
I wrote some C++ last week for a client of mine, haven't used it in years (learned it before Ruby). A lot has changed, probably for the better, although some syntax changes took some getting used to
<dminuoso_>
ljarvis: The syntax has certainly not improved. ;)
<ljarvis>
in short I'm glad I don't write it daily :)
<ljarvis>
dminuoso_: yeah I didn't like it much either
<dminuoso_>
If you are not used to it, then this will just confuse the heck out of you.
Torrone has quit [Quit: This computer has gone to sleep]
ace05 has joined #ruby
<ljarvis>
this is why I don't write Rust, even though I tried learning it a couple of times
<ljarvis>
the syntax just hurts my face
<dminuoso_>
ljarvis: Fists can do that to you too.
<ljarvis>
a strange but accurate observation
sczizzo has quit []
jaguarmagenta has quit [Remote host closed the connection]
hammond has quit [Ping timeout: 268 seconds]
<ljarvis>
still, scala is probably the most fucked up language i've ever written.. it's like a hippy on drugs that's wearing a suit to an interview
be_______ has joined #ruby
hammond has joined #ruby
hammond has joined #ruby
hammond has quit [Changing host]
<ljarvis>
who says dude a lot
da3mon has joined #ruby
ziarkaen_ has joined #ruby
be_______ has quit [Remote host closed the connection]
be_______ has joined #ruby
karmatr0n has joined #ruby
ace05 has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
aswen has joined #ruby
hutch34 has joined #ruby
nikivi has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
ziarkaen_ has quit [Client Quit]
ekinmur has joined #ruby
ziarkaen_ has joined #ruby
hammond has quit [Ping timeout: 250 seconds]
ziarkaen has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 250 seconds]
craigp_ has joined #ruby
hammond has joined #ruby
hammond has quit [Changing host]
hammond has joined #ruby
hammond has joined #ruby
ziarkaen_ has quit [Client Quit]
ziarkaen has joined #ruby
Torrone has joined #ruby
craigp_ has quit [Client Quit]
DoubleMalt has joined #ruby
DLSteve has joined #ruby
Beams has joined #ruby
User458764 has joined #ruby
Yxhuvud has quit [Ping timeout: 260 seconds]
<sonOfRa>
Does Data_Get_Struct in native ruby extensions perform some form of type checking, or is passing something that isn't what is expected going to result in some form of segmentation fault?
coolboy has joined #ruby
<dminuoso_>
sonOfRa: I recommend you generate a call graph for the source code.
<dminuoso_>
sonOfRa: Such questions are best simply explored yourself.
<sonOfRa>
right
<dminuoso_>
(Or just try it out yourself)
blackmesa has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
coolboy has quit [Remote host closed the connection]
coolboy has joined #ruby
DoubleMalt has quit [Ping timeout: 258 seconds]
failshell has joined #ruby
Snowy has joined #ruby
ramortegui has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rippa has joined #ruby
ocbtec has quit [Quit: leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
AltLock has quit [Quit: Leaving.]
k200 has quit [Quit: leaving]
AltLock has joined #ruby
Scientz is now known as Scient
Scient is now known as Scient_
Scient_ is now known as Scient
kaspergrubbe has quit [Ping timeout: 260 seconds]
da3mon has quit [Quit: Zzzz...]
kaspergrubbe has joined #ruby
shinnya has joined #ruby
<hanmac>
sonOfRa: there is some newer stuff with TypedData, which is more safe
charliesome has joined #ruby
wldcordeiro has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
<sonOfRa>
Yup, found those after digging into ruby.h for a bit again :) Thanks
cjbischof_ has joined #ruby
DoubleMalt has joined #ruby
anaiden is now known as anaiden[away]
skweek has joined #ruby
<sonOfRa>
Concerning garbage collection: When I call rb_gc_mark(a), because object b has a reference to a, that means that b has to be garbage collected before a can be collected, correct?
Blueby has joined #ruby
camilasan has quit [Remote host closed the connection]
<hanmac>
sonOfRa: in my bindings i do double and triple checks if the type is right. so first check if it has the right class or module, and then use the typed check with the typedData type.
camilasan has joined #ruby
Blueby has quit [Client Quit]
flashpoint9 has joined #ruby
ctp__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gasher has quit [Ping timeout: 258 seconds]
nettoweb has quit [Ping timeout: 252 seconds]
<sonOfRa>
Yeah, this seems like a place where things can go really badly wrong
nettoweb has joined #ruby
harfangk has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
djellemah has quit [Ping timeout: 250 seconds]
sepp2k has joined #ruby
flashpoint9 has quit [Ping timeout: 260 seconds]
Alina-malina has joined #ruby
djellemah has joined #ruby
ace05 has joined #ruby
symm-_ has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
cdg_ has joined #ruby
ChiefAlexander has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
patarr has joined #ruby
failshell has quit []
cdg has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
_sfiguser has quit [Ping timeout: 258 seconds]
ace05 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
jaiks has joined #ruby
flashpoint9 has joined #ruby
ichkv has joined #ruby
rodferso1 has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
nikivi has quit [Quit: irc]
User458764 has joined #ruby
workmad3 has joined #ruby
<hanmac>
sonOfRa: i had some interesting problems because my library uses C++ objects. and there was some wrong castings. like if i have a Parent class X and a child class Y, and when i want to DataGetStruct the X part of a instance of Y, it can crash.
jaguarmagenta has joined #ruby
spectrum has joined #ruby
<sonOfRa>
Ouch. No such complexity here yet, I'm just using C and plain structs, but still, better safe than sorry. Not like I'm writing something performance-critical where the type-checks impede me
saneax is now known as saneax-_-|AFK
rodfersou has quit [Ping timeout: 268 seconds]
ramortegui has quit [Quit: Ex-Chat]
spectrum has quit [Client Quit]
jaguarmagenta has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
da3mon has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
charliesome has joined #ruby
maddmaxx has joined #ruby
_sfiguser has joined #ruby
nikivi has joined #ruby
conta has quit [Ping timeout: 268 seconds]
dminuoso_ has quit [Ping timeout: 248 seconds]
Filiphe has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
jaiks has quit [Ping timeout: 260 seconds]
dminuoso_ has joined #ruby
chouhoulis has joined #ruby
Filiphe has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
blackmesa has joined #ruby
jaiks has joined #ruby
da3mon has quit [Quit: Zzzz...]
kobain has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashpoint9 has quit []
jhack has joined #ruby
jcao219 has joined #ruby
ichkv has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
fnux has quit [Quit: Bye ~]
DrCode has quit [Read error: Connection reset by peer]
fnux has joined #ruby
terlar has joined #ruby
kies^ has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
slackbotgz has joined #ruby
rodferso1 is now known as rodfersou|lunch
Rodya_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DrCode has joined #ruby
TomyLobo has joined #ruby
tdy has joined #ruby
saslam has joined #ruby
da3mon has joined #ruby
dhk has quit [Quit: Leaving]
jzigmund has quit [Ping timeout: 260 seconds]
da3mon has quit [Client Quit]
jzigmund has joined #ruby
dhk has joined #ruby
dminuoso_ has quit [Remote host closed the connection]
ziyadb has quit [Quit: Connection closed for inactivity]
mark_66 has quit [Remote host closed the connection]
AndrewIsHere has quit [Ping timeout: 258 seconds]
da3mon has joined #ruby
da3mon has quit [Client Quit]
roger_rabbit has joined #ruby
TPug has joined #ruby
failshell has joined #ruby
Torrone has quit [Quit: Leaving]
Rodya_ has quit [Remote host closed the connection]
<midohow>
what think you liked in ruby, share it with us in one line of words .
eizua has joined #ruby
jhooker has quit [Ping timeout: 268 seconds]
<apeiros>
"us"? pluralis majestatis?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phredus has quit [Quit: No Ping reply in 180 seconds.]
<ljarvis>
heh
<ljarvis>
that's the part you pick out?
gizmore has quit [Ping timeout: 258 seconds]
<apeiros>
in one sentence - its conciseness and expressiveness while maintaining excellent readability.
AndrewIsHere has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ndrst has quit [Ping timeout: 258 seconds]
gizmore has joined #ruby
phredus has joined #ruby
<midohow>
us = Room
AndrewIsHere has quit [Client Quit]
<midohow>
apeiros
<midohow>
apeiros can you say ruby is better then C,C++, java ...?
jbeeze has joined #ruby
<apeiros>
?better midohow
<ruby[bot]>
midohow: "Best" and "better" are subjective. Try to use a different term.
Ishido has joined #ruby
<apeiros>
it makes no sense to me to declare one language to be "better" than another
<apeiros>
(except that there's some rather bad languages, but that's another story)
<apeiros>
midohow: what are you aiming at?
<apeiros>
or looking for?
ndrst has joined #ruby
ndrst is now known as Guest83401
<midohow>
ruby[bot] sorry eng is not my maternal language
patarr has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
patarr has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Quit: Leaving]
eizua has quit [Quit: Leaving]
<dyjakan>
programming languages are tools
andikr has quit [Remote host closed the connection]
davidt has joined #ruby
<dyjakan>
a hammer is not better than screwdriver
ichkv has joined #ruby
<dyjakan>
similarly you can have different hammers and picking up specific hammer is a matter of personal preference in such scenario
yardenbar has quit [Ping timeout: 258 seconds]
<dyjakan>
as long as a language is turing complete you can use it to do whatever computation you want
rbr has quit [Disconnected by services]
<Fetch>
I'm curious if anyone knows the backstory - why did the Erubis replacement for ERB become abandonware?
rbr has joined #ruby
Contigi has joined #ruby
<Kilo`byte>
with ruby cgi, is there a way to 1. get the get parameters without including the post parameters and 2. get the raw post body?
johnmilton has quit [Remote host closed the connection]
johnmilton has joined #ruby
johnmilton has quit [Client Quit]
da3mon has joined #ruby
da3mon has quit [Client Quit]
<Kilo`byte>
namely, i have a request body which is no valid form encoded data which utterly breaks the parsing of parameters
johnmilton has joined #ruby
<midohow>
dyjakan
<midohow>
@all im looking for programming lang which one you prefer for me from this ( C,C++,C#,JAVA EE,Python, Ruby)
<midohow>
dyjakan
<midohow>
dyjakan
jaiks has quit [Ping timeout: 260 seconds]
<Fetch>
midohow: what are some of your constraints, what do you want to do once you've learned how to program in a language?
aganov has quit [Remote host closed the connection]
Filiphe has quit [Remote host closed the connection]
<ljarvis>
midohow: do you have a specific question that's less subjective? everyone will have their own opinions, this channel isn't the place to discuss the pros and cons of every programming language vs Ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
<apeiros>
midohow: same as with "better". prefer for *what*?
<apeiros>
I prefer a hammer to drive in nails. I prefer a screwdriver for screws.
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
<hanmac>
a screwdriver is better than a hammer if its sonic powered XD
hiyosi has joined #ruby
<apeiros>
hanmac: only if you're the doctor
<apeiros>
I wouldn't want to memorize the hundreds of options that sonic powered screwdriver has…
symm-_ has quit [Ping timeout: 268 seconds]
<hanmac>
yeah its like programming the VHS recorder ;P
Silthias1 has joined #ruby
<apeiros>
I found that easier than using current tv's :(
[Butch] has joined #ruby
jaruga has quit [Quit: jaruga]
blaxter has quit [Quit: foo]
jazzonmym111nd has joined #ruby
jazzonmym11nd has quit [Read error: Connection reset by peer]
maddmaxx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
terlar has quit [Ping timeout: 260 seconds]
sebatbg has joined #ruby
TPug has joined #ruby
davidt has quit [Remote host closed the connection]
User458764 has joined #ruby
eprasad has quit [Ping timeout: 258 seconds]
amclain has joined #ruby
jaxxstorm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karmatr0n has quit [Ping timeout: 248 seconds]
Blueby has joined #ruby
jaiks has joined #ruby
davidt has joined #ruby
frmendes has joined #ruby
sebatbg has quit [Quit: Leaving]
aufi has quit [Remote host closed the connection]
<Blueby>
Hey! So yesterday I was running some requests with httparty / rest-client and they were going really slow. It seemed to be an issue with IPv6 which seems to have been resolved by updating to OS X Sierra. When I run the request with curl, they work fast now. However, when I try to do it with httparty or rest-client I get this errror: Errno::EHOSTUNREACH: No route to host - connect(2)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Blueby>
I know this has something to do with networking config and IP address. As a beginnner, I am not sure where to start looking to fix it. Any pointers would be appreciated
rbr has quit [Ping timeout: 248 seconds]
dviola has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
negev has joined #ruby
BlueDragons has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
twalla has joined #ruby
<negev>
hi, is there a way to forcibly deactivate previously set exception catches?
<Kilo`byte>
err, what do you mean by that
<bougyman>
is there a "more ruby" way to debug a running process than gdb?
<ljarvis>
bougyman: haha
<bougyman>
We're looking for a thread hang or contention.
<ljarvis>
:(
<Kilo`byte>
bougyman: byebug?
<Kilo`byte>
or sth like that
timmyBsd has quit [Quit: WeeChat 1.6]
<bougyman>
Kilo`byte: but for that you kinda have to know where to put the breakpoint, no?
bruce_lee has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
<Kilo`byte>
hmmm i think there are some debuggers which can interrupt a hanging process
claudiuinberlin has quit []
Xiti has joined #ruby
Blueby has quit [Quit: Blueby]
Blueby has joined #ruby
<ljarvis>
seriously there's nothing better than gdb, if you find something please let me know though
SCHAAP137 has joined #ruby
nettoweb has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
be_______ has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 1.6]
terlar has joined #ruby
<havenwood>
Blueby: Show the smallest snippet that reproduces the error? Gist the content of your /etc/hosts file?
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elenatanasoiu has quit [Ping timeout: 260 seconds]
<sonOfRa>
I'm reading this section on marking things for gc in native ruby extensions: https://silverhammermba.github.io/emberb/c/#marking . Does x (the value to be marked) already have to be initialized in the alloc function, or can I initialize it later on in an initialize function?
Echohn has quit [Remote host closed the connection]
Humdai has quit [Quit: Leaving]
moneylotion has joined #ruby
dionysus69 has joined #ruby
Echohn has joined #ruby
Echohn has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 260 seconds]
Echohn has joined #ruby
Blueby has left #ruby [#ruby]
leonardocabeza has joined #ruby
Echohn has quit [Remote host closed the connection]
anaiden[away] has left #ruby [#ruby]
Echohn has joined #ruby
Contigi has joined #ruby
moneylotion has quit [Ping timeout: 260 seconds]
renderfu_ has joined #ruby
jaequery has joined #ruby
b3atr has quit [Quit: Leaving]
dviola has quit [Quit: WeeChat 1.6]
rbr has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
leonardocabeza has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
leonardocabeza has joined #ruby
tyang has quit [Read error: Connection reset by peer]
moneylotion has joined #ruby
renderfu_ has quit [Ping timeout: 260 seconds]
tyang has joined #ruby
karmatr0n has joined #ruby
danostrowski has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 248 seconds]
firstdayonthejob has joined #ruby
bob_f has joined #ruby
tcrypt[away] is now known as tcrypt
jackjackdripper has quit [Client Quit]
tcrypt is now known as tcrypt[away]
Blueby has joined #ruby
<bob_f>
Hi. Is there a de facto framework that one would use for writing an async event-driven HTTP fetching server ? I need to build something that provides an API for receiving URLs to retrieve, then fetches them asynchronously and returns the response upon subsequent requests (if and when it becomes available).
<bob_f>
In Python I would write something in Twisted but I think Ruby would be a wiser choice for this as it is a bespoke item for an existing Rails app.
dionysus69 has quit [Ping timeout: 250 seconds]
hammond has quit [Ping timeout: 252 seconds]
jackjackdripper has joined #ruby
hammond has joined #ruby
hammond has quit [Changing host]
hammond has joined #ruby
hammond has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
whathappens has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
whathappens has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
conta has joined #ruby
jackjackdripper has quit [Client Quit]
<jhass>
In a rails context I would probably just use Sidekiq
ace05 has joined #ruby
tauebel has joined #ruby
be_______ has joined #ruby
nettoweb has joined #ruby
dviola has joined #ruby
mvxlr has joined #ruby
dionysus69 has joined #ruby
mjc_ has quit [Ping timeout: 258 seconds]
gizless has joined #ruby
whathappens has quit [Quit: Leaving...]
mjc_ has joined #ruby
hammond has quit [Ping timeout: 268 seconds]
karmatr0n has quit [Ping timeout: 268 seconds]
nikivi has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
Echohn has quit [Remote host closed the connection]
marxarelli has joined #ruby
Echohn has joined #ruby
djellemah has quit [Ping timeout: 260 seconds]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
Echohn has quit [Remote host closed the connection]
failshell has quit []
Echohn has joined #ruby
Guest84791 has joined #ruby
ziarkaen has quit [Ping timeout: 258 seconds]
tfitts has joined #ruby
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ace05 has quit [Ping timeout: 260 seconds]
marxarelli has joined #ruby
ace05 has joined #ruby
jaxxstorm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest84791 has quit [Remote host closed the connection]
hammond_ has quit [Remote host closed the connection]
hammond_ has joined #ruby
hammond_ has joined #ruby
_djbkd has joined #ruby
Yzguy has joined #ruby
Dimik has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
skweek has quit [Ping timeout: 258 seconds]
Rodya_ has quit [Client Quit]
ichkv has quit [Remote host closed the connection]
arashb has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
Guest18830 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
Livecodingtv_Ale has joined #ruby
troulouliou_div2 has joined #ruby
tcrypt[away] is now known as tcrypt
Guest4723 has joined #ruby
tcrypt is now known as tcrypt[away]
cyphase has joined #ruby
Phage has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest4723 is now known as bandu
<sonOfRa>
Is there a canonical "error message template" for throwing TypeError?
bandu has quit [Changing host]
bandu has joined #ruby
skweek has joined #ruby
<sonOfRa>
e.g. "Expected <classname>, got a <wrongclass"
djellemah has joined #ruby
claudiuinberlin has joined #ruby
blackmesa has joined #ruby
cyphase has quit [Ping timeout: 268 seconds]
dviola has quit [Quit: WeeChat 1.6]
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has joined #ruby
ta_ has joined #ruby
jaxxstorm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Phage has joined #ruby
AndyWojo is now known as suburban_killade
ramfjord has joined #ruby
ta__ has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
cyphase has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has joined #ruby
alaibe has joined #ruby
cdg_ has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 258 seconds]
ta__ has joined #ruby
ta_ has quit [Ping timeout: 258 seconds]
al2o3-cr has joined #ruby
bocaneri has quit [Remote host closed the connection]
c0mrad3 has quit [Quit: Connection closed for inactivity]
nikivi has quit [Quit: zzz]
Scient has quit [Ping timeout: 260 seconds]
Scient has joined #ruby
chg has quit [Ping timeout: 260 seconds]
mc_fail_ has quit [Ping timeout: 260 seconds]
mc_fail has joined #ruby
chg has joined #ruby
Meeh has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
jzigmund has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 260 seconds]
jzigmund has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
skweek has joined #ruby
Meeh has joined #ruby
zenspider has quit [Ping timeout: 260 seconds]
rbr has quit []
nikivi has joined #ruby
kaspergrubbe has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
arashb has quit [Ping timeout: 248 seconds]
jaguarmagenta has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
xall has joined #ruby
Phage has quit [Read error: Connection reset by peer]
balazs has joined #ruby
Derperperd has joined #ruby
postmodern has quit [Quit: Leaving]
<balazs>
Hello, I have a git repo that is a gem with bin, lib and a gemspec file. What is the command to install all the dependencies in the gemspec file ? Something like "npm install" in node.
frmendes has quit [Quit: Zzzz...]
ofkors has joined #ruby
benlieb has quit [Quit: benlieb]
claudiui_ has joined #ruby
jud^ has joined #ruby
djbkd_ has joined #ruby
jaequery_ has joined #ruby
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
KrzaQ has quit [Quit: :(]
jshjsh is now known as JoshS
jackjackdripper has joined #ruby
KrzaQ has joined #ruby
mrfooo_ has joined #ruby
lucasb_ has joined #ruby
DarkUnicorn_ has joined #ruby
jabreity_ has joined #ruby
imanc_ has joined #ruby
mrsolo_ has joined #ruby
jlyndon_ has joined #ruby
tristanp_ has joined #ruby
Tony-St4rk_ has joined #ruby
<Papierkorb>
balazs: Is that gem also available in the usual gem repository, or do you really want to install it from source?
mitsuhiko_ has joined #ruby
[diecast]_ has joined #ruby
<Papierkorb>
balazs: Or are you looking to install the dependencies so you can develop the gem itself?
<balazs>
from source. It's a git repo at our company
ijij_ has joined #ruby
discopatrick_ has joined #ruby
nowhere_man has joined #ruby
Some-body_ has joined #ruby
dmnd_ has joined #ruby
im0b_ has joined #ruby
MrBloo_ has joined #ruby
Antiarc_ has joined #ruby
<Papierkorb>
balazs: Do you want to install the gem (e.g., to use it in other scripts), or do you want to only satisfy dependencies?
ec_ has joined #ruby
deepak__ has joined #ruby
bmurt has joined #ruby
yo61_ has joined #ruby
Majost_ has joined #ruby
Iacobus_ has joined #ruby
scottalan has joined #ruby
darix- has joined #ruby
Jonah11_ has joined #ruby
jsaak_ has joined #ruby
Sebastia1Thorn has joined #ruby
lupine_ has joined #ruby
<balazs>
no need to install the gem. I only want to be able to run the bin scripts that it has. Other projects will not require that gem
Meeh_ has joined #ruby
volix_ has joined #ruby
Bish has joined #ruby
Mekkis_ has joined #ruby
Fetch_ has joined #ruby
wildleaf_ has joined #ruby
<Papierkorb>
balazs: Is there a file named `Gemfile`?
Expanse_ has joined #ruby
nankyokusei has joined #ruby
spastorino_ has joined #ruby
caw_ has joined #ruby
galeido_ has joined #ruby
<balazs>
there is, but it only contains "source 'https://rubygems.org'; gemspec"
kentnl has joined #ruby
<Papierkorb>
That's perfect balazs
boxrick1_ has joined #ruby
optiz0r_ has joined #ruby
camilasann has joined #ruby
<balazs>
but there is a $GEMNAME.gemspec file
<Papierkorb>
balazs: Use bundler: "bundle install --path vendor/bundle". If you don't have bundler yet, install it: "gem install bundler"
negev has joined #ruby
Liothen- has joined #ruby
Nilium_ has joined #ruby
<Papierkorb>
Run the above command(s) in the same directory the `gemfile` resides.
<balazs>
awesome, thanks !
jtdowney_ has joined #ruby
<Papierkorb>
Afterwards, you can run the scripts in bin/ through: bundle bin/the-script
agent_white has joined #ruby
<balazs>
thanks
Eiam_ has joined #ruby
russt has joined #ruby
fnux_ has joined #ruby
DenSchub_ has joined #ruby
Lildirt|SomeoneT has joined #ruby
tvsutton_ has joined #ruby
habitullence has quit [Ping timeout: 250 seconds]
arthurnn_ has joined #ruby
Seich_ has joined #ruby
twodayslate has quit [Ping timeout: 258 seconds]
thejoecarroll_ has joined #ruby
Eleeleth has quit [Read error: Connection reset by peer]
lele` has joined #ruby
tekku has joined #ruby
CustosLim3n has joined #ruby
mlehrer_ has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
kkirsche has joined #ruby
vifino- has joined #ruby
tcrypt[away] is now known as tcrypt
Koshian____ has joined #ruby
tcrypt is now known as tcrypt[away]
<Papierkorb>
balazs: If the projects later updates its dependencies, just run "bundle" (without arguments) to fetch updated dependencies
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexherb1 has joined #ruby
Lord_of_- has joined #ruby
kaspergrubbe has quit [*.net *.split]
Meeh has quit [*.net *.split]
Dimik has quit [*.net *.split]
_djbkd has quit [*.net *.split]
jenrzzz has quit [*.net *.split]
claudiuinberlin has quit [*.net *.split]
TPug has quit [*.net *.split]
AltLock has quit [*.net *.split]
jaequery has quit [*.net *.split]
lxsameer has quit [*.net *.split]
fnux has quit [*.net *.split]
kobain has quit [*.net *.split]
camilasan has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
nadir has quit [*.net *.split]
optiz0r has quit [*.net *.split]
sneakerhax has quit [*.net *.split]
nowhereman has quit [*.net *.split]
Diabolik has quit [*.net *.split]
lele has quit [*.net *.split]
im0b has quit [*.net *.split]
edorf has quit [*.net *.split]
yo61 has quit [*.net *.split]
Cork has quit [*.net *.split]
jsaak has quit [*.net *.split]
kspencer has quit [*.net *.split]
discopatrick has quit [*.net *.split]
lucast has quit [*.net *.split]
Tony-St4rk has quit [*.net *.split]
HashNuke has quit [*.net *.split]
olivierjanss has quit [*.net *.split]
boxrick1 has quit [*.net *.split]
caw has quit [*.net *.split]
CustosLimen has quit [*.net *.split]
Iacobus has quit [*.net *.split]
jlyndon has quit [*.net *.split]
Majost has quit [*.net *.split]
ec has quit [*.net *.split]
DenSchub has quit [*.net *.split]
[diecast] has quit [*.net *.split]
ijij has quit [*.net *.split]
dmnd has quit [*.net *.split]
DarkUnicorn has quit [*.net *.split]
jabreity has quit [*.net *.split]
imanc has quit [*.net *.split]
Lord_of_Life has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
MadWasp has quit [*.net *.split]
M-manveru has quit [*.net *.split]
blingrang has quit [*.net *.split]
spectra has quit [*.net *.split]
bascht has quit [*.net *.split]
tessi_zz has quit [*.net *.split]
teotwaki has quit [*.net *.split]
ij has quit [*.net *.split]
Seich has quit [*.net *.split]
epochwolf has quit [*.net *.split]
kent\n has quit [*.net *.split]
Expanse has quit [*.net *.split]
lupine has quit [*.net *.split]
drzel has quit [*.net *.split]
JesseH has quit [*.net *.split]
Fetch has quit [*.net *.split]
tristanp has quit [*.net *.split]
mrfooo has quit [*.net *.split]
Mekkis has quit [*.net *.split]
Antiarc has quit [*.net *.split]
epitron has quit [*.net *.split]
mitsuhiko has quit [*.net *.split]
Hobbyboy has quit [*.net *.split]
rumikk3 has quit [*.net *.split]
tjvc_ has quit [*.net *.split]
galeido has quit [*.net *.split]
Bish_ has quit [*.net *.split]
jtdowney has quit [*.net *.split]
tvsutton has quit [*.net *.split]
wildleaf has quit [*.net *.split]
Lildirt has quit [*.net *.split]
Eiam has quit [*.net *.split]
tekk has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
ruby[bot] has quit [*.net *.split]
jud has quit [*.net *.split]
yossarian has quit [*.net *.split]
Nilium has quit [*.net *.split]
inukshuk has quit [*.net *.split]
scottala1 has quit [*.net *.split]
arthurnn has quit [*.net *.split]
x0f has quit [*.net *.split]
jokester has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
volix has quit [*.net *.split]
MrBloo has quit [*.net *.split]
mrsolo has quit [*.net *.split]
spastorino has quit [*.net *.split]
deepak_ has quit [*.net *.split]
suburban_killade has quit [*.net *.split]
vifino has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
darix has quit [*.net *.split]
infernix has quit [*.net *.split]
r4z3r has quit [*.net *.split]
mlehrer has quit [*.net *.split]
Koshian___ has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
Liothen has quit [*.net *.split]
edwardly has quit [*.net *.split]
russt_ has quit [*.net *.split]
liam has quit [*.net *.split]
SebastianThorn has quit [*.net *.split]
code_ has quit [*.net *.split]
arthurnn_ is now known as arthurnn
Some-body_ is now known as DarthGandalf
ghostlight has quit [Ping timeout: 248 seconds]
Nilium_ is now known as Nilium
dupin has joined #ruby
kkirsche is now known as r4z3r
dupin is now known as Guest53601
Guest53601 is now known as inukshuk
tjvc has joined #ruby
tjvc has quit [Changing host]
tjvc has joined #ruby
suburban_killade has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
darix- is now known as darix
fnux_ is now known as fnux
suburban_killade has quit [Changing host]
suburban_killade has joined #ruby
kaspergrubbe has joined #ruby
mrfooo_ is now known as mrfooo
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
DarkUnicorn_ is now known as DarkUnicorn
Eleeleth has joined #ruby
code_ has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
x0f has joined #ruby
Fridtjof has joined #ruby
jokester has joined #ruby
Majost_ is now known as Majost
MrBloo_ is now known as MrBloo
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
sonOfRa has joined #ruby
Cork has joined #ruby
dmnd_ is now known as dmnd
mitsuhiko_ is now known as mitsuhiko
deepak__ is now known as deepak_
jabreity_ is now known as jabreity
im0b_ is now known as im0b
lucast has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
kingkong- has quit [Remote host closed the connection]
Diabolik has joined #ruby
spectra has joined #ruby
ta__ has quit [Remote host closed the connection]
spastorino_ is now known as spastorino
kireevco_ has quit [Ping timeout: 258 seconds]
zidane_g_ has quit [Ping timeout: 258 seconds]
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
ec_ has quit [Ping timeout: 261 seconds]
discopatrick_ has quit [Ping timeout: 261 seconds]
techntoke_ has quit [Ping timeout: 256 seconds]
claudiui_ has quit [Remote host closed the connection]
jhill_ has quit [Ping timeout: 258 seconds]
MadWasp has joined #ruby
claudiuinberlin has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
boxrick1_ has quit [Ping timeout: 268 seconds]
volix_ is now known as volix
Iacobus_ has quit [Ping timeout: 258 seconds]
volix has quit [Changing host]
volix has joined #ruby
imanc_ is now known as imanc
[diecast]_ is now known as [diecast]
yo61_ is now known as yo61
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
darix has quit [Quit: Reconnecting]
dagda1 has joined #ruby
darix has joined #ruby
twodayslate has joined #ruby
ta_ has joined #ruby
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has quit [Excess Flood]
liam has joined #ruby
caw_ is now known as caw
benlieb has joined #ruby
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
tcrypt[away] is now known as tcrypt
tessi_zz has joined #ruby
tcrypt is now known as tcrypt[away]
discopatrick_ has joined #ruby
rumikk3 has joined #ruby
Expanse_ is now known as Expanse
koenrh has joined #ruby
ec_ has joined #ruby
M-manveru has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
epochwolf has joined #ruby
igniting has joined #ruby
HashNuke has joined #ruby
nadir has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
JesseH has joined #ruby
blingrang has joined #ruby
teotwaki has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
lxsameer has joined #ruby
AltLock has joined #ruby
epitron has joined #ruby
ta__ has joined #ruby
AlexRussia has joined #ruby
kspencer has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
bascht has joined #ruby
zrl has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
Apocalypse has joined #ruby
jhill_ has joined #ruby
techntoke_ has joined #ruby
xall has quit [Ping timeout: 250 seconds]
ec_ has quit [Excess Flood]
woodruffw has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
woodruffw has quit [Excess Flood]
infernix has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
kireevco_ has joined #ruby
agent_white has quit [Quit: leaving]
yossarian has joined #ruby
yossarian has quit [Excess Flood]
agent_white has joined #ruby
Hobbyboy has joined #ruby
kingkong- has joined #ruby
edorf has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
<agent_white>
Afternoon folks
ec_ has joined #ruby
boxrick1_ has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
djbkd_ has quit [Remote host closed the connection]
zidane_g_ has joined #ruby
yossarian has joined #ruby
yossarian has quit [Excess Flood]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
woodruff- has joined #ruby
Iacobus_ has joined #ruby
kobain has joined #ruby
olivierjanss has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.5]
<SeepingN>
morning dogs
kobain is now known as Guest13554
johnmilton has quit [Remote host closed the connection]
frmendes has joined #ruby
xall has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
Yzguy has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
chris2 has quit [Ping timeout: 258 seconds]
electrostat has quit [Quit: uwotm8]
peteretep has quit [Ping timeout: 258 seconds]
twe4ked has quit [Ping timeout: 258 seconds]
electrostat has joined #ruby
peteretep has joined #ruby
ij has joined #ruby
jwheare has quit [Read error: Network is unreachable]
ace05 has quit [Remote host closed the connection]
Jonah11_ has joined #ruby
Yzguy has joined #ruby
chris2 has joined #ruby
jimeh has quit [Ping timeout: 258 seconds]
jwheare has joined #ruby
ewilliam_ has quit [Ping timeout: 258 seconds]
zipkid has quit [Ping timeout: 258 seconds]
dukedave has quit [Ping timeout: 258 seconds]
jhack has quit [Quit: jhack]
zipkid has joined #ruby
dukedave has joined #ruby
ewilliam_ has joined #ruby
ace05 has joined #ruby
jimeh has joined #ruby
codepete has quit [Ping timeout: 258 seconds]
zzak has quit [Ping timeout: 258 seconds]
DenSchub_ is now known as DenSchub
kingkong- has quit [Remote host closed the connection]
zel has joined #ruby
zel is now known as Guest24378
Guest13554 has quit [Ping timeout: 260 seconds]
codepete has joined #ruby
Tony-St4rk_ has quit []
aswen has joined #ruby
twe4ked has joined #ruby
Silthias1 has quit [Ping timeout: 258 seconds]
Silthias has joined #ruby
Tony-St4rk has joined #ruby
aswen has quit [Client Quit]
elifoster has quit [Ping timeout: 268 seconds]
kingkong- has joined #ruby
aswen has joined #ruby
_djbkd has joined #ruby
synthroi_ has quit [Remote host closed the connection]
dhk has quit [Ping timeout: 250 seconds]
elifoster has joined #ruby
alexherb1 is now known as alexherbo2
teotwaki has quit [Ping timeout: 258 seconds]
ghostlight has joined #ruby
aryaching has joined #ruby
Yzguy has quit [Quit: Zzz...]
jazzonmym111nd has quit [Read error: Connection reset by peer]
jazzonmym111nd has joined #ruby
zzak has joined #ruby
symm- has joined #ruby
nikivi has quit [Quit: irc]
_whitelogger has joined #ruby
Yonk has joined #ruby
harai has joined #ruby
arooni has joined #ruby
teotwaki has joined #ruby
imanc has joined #ruby
davidmichaelkarr has joined #ruby
the-eat-scout has joined #ruby
kingkong- has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
blackjid has joined #ruby
Fire-Dragon-DoL has joined #ruby
kingkong- has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: SteenJobs]
blackmesa has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
Silthias1 has joined #ruby
karmatr0n has quit []
aries_liuxueyang has quit [Ping timeout: 248 seconds]
skweek has joined #ruby
frmendes has quit [Quit: Zzzz...]
lucasb_ has quit [Quit: leaving]
dmtd has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 250 seconds]
TreyG has joined #ruby
jhack has joined #ruby
skweek has quit [Ping timeout: 258 seconds]
dhk has joined #ruby
SteenJobs has joined #ruby
Akuma has joined #ruby
xall has joined #ruby
skweek has joined #ruby
pokalyis has joined #ruby
lele` is now known as lele
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
conta has quit [Ping timeout: 258 seconds]
pokalyis has quit [Client Quit]
xall has quit [Ping timeout: 258 seconds]
Phage has joined #ruby
NTrash has joined #ruby
frmendes has joined #ruby
synthroid has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
liam has left #ruby ["Leaving"]
minimalism has quit [Ping timeout: 268 seconds]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us_ has joined #ruby
frmendes has quit [Client Quit]
hutch34 has quit [Ping timeout: 250 seconds]
_djbkd has quit [Ping timeout: 258 seconds]
negev has quit [Quit: Lost terminal]
TPug has joined #ruby
Gasher has quit [Quit: Leaving]
jazzonmym1nd has joined #ruby
jazzonmym111nd has quit [Read error: Connection reset by peer]
ur5us_ has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 250 seconds]
JoshS has quit [Quit: Leaving]
pokalyis has joined #ruby
Yzguy has joined #ruby
skweek has quit [Ping timeout: 258 seconds]
pokalyis has quit [Client Quit]
Jonah11_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
drzel has joined #ruby
djbkd has joined #ruby
Jonah11_ has joined #ruby
leonardocabeza has quit [Read error: Connection reset by peer]
leonardocabeza has joined #ruby
whiteline has quit [Ping timeout: 258 seconds]
Jonah11_ has quit [Client Quit]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has joined #ruby
claudiuinberlin has quit []
ghr has quit [Ping timeout: 256 seconds]
leonardocabeza has quit [Read error: Connection reset by peer]
brianpWins_ has quit [Ping timeout: 250 seconds]
brianpWins has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
antgel has joined #ruby
nankyokusei has joined #ruby
ghr has joined #ruby
nankyokusei has quit [Remote host closed the connection]
nettoweb has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
AndrewIsHere has joined #ruby
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
dviola has joined #ruby
dagda1_ has joined #ruby
Derperperd has quit [Quit: Derperperd]
blackgoat has joined #ruby
xall has joined #ruby
jcao219 has joined #ruby
tyang has quit [Read error: Connection reset by peer]
terlar has joined #ruby
Derperperd has joined #ruby
ichkv has quit [Ping timeout: 252 seconds]
Derperperd has quit [Client Quit]
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
pokalyis has joined #ruby
jaguarmagenta has joined #ruby
blackmesa has joined #ruby
jaguarmagenta has quit [Ping timeout: 268 seconds]
anisha has joined #ruby
jackjackdripper has joined #ruby
ichkv has joined #ruby
jcao219 has quit [Ping timeout: 268 seconds]
Yzguy has quit [Read error: Connection reset by peer]
<ocx>
but why is it 100 and not 101 , shouldnt the block change the x variable ?
Rodya_ has joined #ruby
nikivi has joined #ruby
pwnd_nsfw` has joined #ruby
null_ref has quit []
Yzguy has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
AlexRussia has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
<ocx>
a block has a different scope than the method?
maddmaxx has joined #ruby
agent_white is now known as agent_spooky
synthroid has quit []
jackjackdripper has quit [Quit: Leaving.]
ichkv1 has joined #ruby
<baweaver>
@x and x are different
ichkv has quit [Ping timeout: 258 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<baweaver>
also, pass by reference vs pass by value
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terlar has quit [Ping timeout: 258 seconds]
<ocx>
baweaver: a local variable x defined in a method, if passed to a block using yield x, if the block modifies it and returns , if i try to print x it keeps the original value and not the one modified by the block
<ocx>
is it because the method and the block are in different scopes?
cjbischof_ has joined #ruby
<ocx>
if i define @x instead of x which is an instance variable, the @x is modified after the block returns
kobain has joined #ruby
dagda1 has joined #ruby
djellemah has quit [Ping timeout: 252 seconds]
Blueby has quit [Quit: Blueby]
fmcgeough has quit [Quit: fmcgeough]
lel has joined #ruby
GinoManWorks has quit [Quit: Leaving]
moneylotion has quit [Ping timeout: 260 seconds]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
terlar has joined #ruby
flashpoint9 has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
twalla has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
moneylotion has joined #ruby
renderfu_ has joined #ruby
tomphp has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 252 seconds]
modin has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
skweek has joined #ruby
nikivi has quit [Quit: irc]
renderfu_ has quit [Ping timeout: 260 seconds]
elenatanasoiu has joined #ruby
JeanCarloMachado has quit [Ping timeout: 258 seconds]
ldnunes has quit [Quit: Leaving]
dnicole has joined #ruby
catphish has joined #ruby
Yzguy has quit [Quit: Zzz...]
dnicole has quit [Remote host closed the connection]
tcrypt[away] is now known as tcrypt
ramfjord has joined #ruby
jrafanie has quit [Remote host closed the connection]
dnicole has joined #ruby
rodfersou has quit [Quit: leaving]
davidt has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yzguy has joined #ruby
<ocx>
yield @x is passed by reference whereas yield x is passed by value???
modin has joined #ruby
davidt has joined #ruby
marxarelli is now known as marxarelli|afk
dnicole has quit [Ping timeout: 250 seconds]
<ocx>
anyone?
tomphp has joined #ruby
optiz0r_ is now known as optiz0r
SteenJobs has quit [Quit: SteenJobs]
benlieb has quit [Quit: benlieb]
JeanCarloMachado has joined #ruby
terlar has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
nankyokusei has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
nankyokusei has quit [Remote host closed the connection]
galeido_ is now known as galeido
ramfjord_ has joined #ruby
galeido has quit [Changing host]
galeido has joined #ruby
be_______ has quit [Remote host closed the connection]
davidt has quit [Remote host closed the connection]
<xall>
If you have a boolean given a default arg desired to falsey, what's better style? def initialize(height, length, weight, width, express=nil)
<xall>
or should express=false
ben_____ has joined #ruby
<Zarthus>
xall: can the value be something else than 'true' or 'false'?
ramfjord has quit [Ping timeout: 250 seconds]
lupine_ is now known as lupine
<Zarthus>
I tend to go with nil if it can be a different type as well, but false if I only intend to use booleans.
dviola has joined #ruby
<Zarthus>
I would also arrange the parameters to be height, width, length, weight -- personally.
<xall>
Zarthus: thanks
davidt has joined #ruby
nuclears1 has joined #ruby
ofkors has quit []
davidt_ has joined #ruby
<ocx>
yield @x is passed by reference whereas yield x is passed by value???
Dimik has joined #ruby
ben_____ has quit [Ping timeout: 260 seconds]
<ocx>
can i think of it like that?
nuclearsandwich has quit [Ping timeout: 248 seconds]
kingkong- has quit [Remote host closed the connection]
<ocx>
havenwood: when i pass an instance variable using yield, a copy of that instance variable is stored inside the block and manipulated, but how come the initial variable outside the block is affected?
elifoster has joined #ruby
koenrh has quit [Read error: Connection reset by peer]
Jackneill has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ocx>
havenwood: if i use x instead of @x and pass the value, the initial x in the method is not changed , which is what i expect since the var is passed by value. So the @x confuses me
kingkong- has joined #ruby
bkxd has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
<xall>
Zarthus: to follow up on that, is it better to use 'keyword arguments'? like: def initialize(height:, width:, length:, weight:, express: nil)
sepp2k has quit [Quit: Leaving.]
AltLock has quit [Quit: Leaving.]
Derperperd has joined #ruby
ocx has quit [Quit: Page closed]
Ishido has quit [Remote host closed the connection]
kingkong- has quit [Remote host closed the connection]
lorenalexm has joined #ruby
kingkong- has joined #ruby
lorenalexm has quit [Client Quit]
lorenalexm has joined #ruby
aibot____ has quit [Ping timeout: 268 seconds]
polishdub has quit [Quit: Leaving]
aibot____ has joined #ruby
Joufflu has joined #ruby
whiteline has joined #ruby
ekinmur has quit [Ping timeout: 260 seconds]
<havenwood>
oc, oops they left - i was distracted by a call
symm- has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nullfxn has quit [Quit: leaving]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
nettoweb has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
nuck is now known as nuckcable
aswen has quit [Quit: WeeChat 1.5]
gingray has joined #ruby
ec_ is now known as ec
Joufflu has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
Joufflu has joined #ruby
Lyubo1 has quit [Ping timeout: 250 seconds]
tcrypt has quit [Quit: tcrypt]
tcrypt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Liothen- has quit [Changing host]
Liothen- has joined #ruby
Liothen- is now known as Liothen
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lyubo1 has joined #ruby
_sfiguser has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
Lucky_ABA has joined #ruby
Silthias has joined #ruby
JeanCarloMachado has quit [Ping timeout: 248 seconds]
symm- has quit [Ping timeout: 258 seconds]
ichkv1 has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
JeanCarloMachado has joined #ruby
Silthias1 has quit [Ping timeout: 252 seconds]
harai_ has quit [Ping timeout: 258 seconds]
amclain_ has joined #ruby
cyphase has joined #ruby
harai has quit [Ping timeout: 258 seconds]
symm- has joined #ruby
jaguarmagenta has quit [Ping timeout: 248 seconds]
amclain has quit [Ping timeout: 260 seconds]
lacour has joined #ruby
nettoweb has joined #ruby
saslam has quit [Ping timeout: 248 seconds]
nullfxn has joined #ruby
nettoweb has quit [Client Quit]
_sfiguser has joined #ruby
nullfxn has quit [Client Quit]
minimalism has joined #ruby
Yzguy has quit [Read error: Connection reset by peer]
firstdayonthejob has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]