apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
unreal has joined #ruby
cj has joined #ruby
Vivekananda has joined #ruby
wldcordeiro has joined #ruby
Lucky_ABA has joined #ruby
marxarelli|afk is now known as marxarelli
jordanm has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
Azure has quit [Max SendQ exceeded]
Vivekananda has quit [Read error: Connection reset by peer]
Vivekananda has joined #ruby
nettoweb has joined #ruby
koooge has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
nettoweb has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
whathappens has quit [Remote host closed the connection]
Azure has joined #ruby
zukin has quit [Ping timeout: 248 seconds]
whathappens has joined #ruby
jenrzzz has joined #ruby
nettoweb has joined #ruby
Salve has quit []
Contigi has joined #ruby
Contigi has quit [Remote host closed the connection]
Derperperd has joined #ruby
Contigi has joined #ruby
danst_ is now known as danst
whathappens has quit [Ping timeout: 268 seconds]
dmtd has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
rakm has left #ruby ["Textual IRC Client: www.textualapp.com"]
ramfjord has quit [Ping timeout: 248 seconds]
yqt has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 260 seconds]
_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]
ElderFain has quit [Quit: ZNC - http://znc.in]
tectonic has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
tectonic has joined #ruby
zacstewart has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
JeanCarloMachado has quit [Ping timeout: 250 seconds]
tmtwd has joined #ruby
tectonic has quit []
nankyokusei has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
CuriousMind has quit [Quit: Page closed]
Felipe__ has joined #ruby
symm-_ has quit [Ping timeout: 258 seconds]
finisherr has joined #ruby
finisherr has quit [Client Quit]
Rodya_ has joined #ruby
TPug has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
johnmccabe has joined #ruby
chg has joined #ruby
al2o3-cr has quit [Ping timeout: 258 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ace05 has joined #ruby
Chagel has quit [Ping timeout: 258 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
<Blueby> Its not a lot of data
<baweaver> require 'benchmark'; Benchmark.measure { your_call }.real
<baweaver> then try it on the command line: time curl your_call
<baweaver> see if there's a discrepancy there.
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Blueby> Yea, the command line is also taking 2 minutes to return the data
<baweaver> (poking some things over here)
<baweaver> then there's something else going on.
<Blueby> Thanks!
<baweaver> let me test one thing
twalla has quit [Ping timeout: 248 seconds]
<Blueby> Im sort of a begginer in all of this, but I have a feeling there is an issue with the webserve or a proxy
<baweaver> require 'benchmark';require 'typhoeus';Benchmark.measure{Typhoeus.get('http://swapi.co/api/people/1/')}.real
<baweaver> => 0.25957291293889284
<baweaver> yeah, no time at all on my end
tcrypt[away] is now known as tcrypt
ekinmur has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tcrypt is now known as tcrypt[away]
<baweaver> Benchmark.measure{Net::HTTP.get(URI('http://swapi.co/api/people/1/'))}.real
<baweaver> => 0.26252443599514663
charliesome has joined #ruby
<baweaver> yeah, something borked that's not ruby
<Blueby> This is my command line
<Blueby> real1m16.257s
<Blueby> user0m0.029s
<Blueby> sys0m0.015s
johnmccabe has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has joined #ruby
<Blueby> Any thoughts where I can start to look?
<baweaver> 0.00s user 0.01s system 3% cpu 0.273 total
<Blueby> Im using Rails 5
<baweaver> It's not Rails or Ruby
<baweaver> what OS / version?
<Blueby> OX Yosemite
zukin has joined #ruby
<Blueby> 10.10.4
<baweaver> and you're requesting against that URL specifically
<baweaver> not localhost?
<baweaver> not against a container or something?
<Blueby> This was literally the command I put into cmnd line : “time curl httparty 'https://rxnav.nlm.nih.gov/REST/RxTerms/rxcui/750244/allinfo'”
flashpoint9 has joined #ruby
<Blueby> I think that means I am requesting agains the URL, not local host. Right?
<baweaver> yeah
<baweaver> testing that URL, one sec.
<baweaver> 0.02s user 0.01s system 3% cpu 0.720 total - same deal here
<Blueby> Yea
<baweaver> the response length is so low that this should not be an issue
craigp_ has quit [Ping timeout: 268 seconds]
<baweaver> try tracerouting to that url
Rodya_ has quit [Remote host closed the connection]
<Blueby> Sorry, Im not sure what that means
<baweaver> it basically sees what hops it needs to go through to get to a host.
blackmesa has quit [Ping timeout: 260 seconds]
<baweaver> so it'll show you what's being slow.
<Blueby> ok. Thanks.
<baweaver> traceroute rxnav.nlm.nih.gov
<baweaver> you might also try going to speedtest.net and seeing if your internet is being slow.
<Blueby> Its doing its thing
tcrypt[away] is now known as tcrypt
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tcrypt is now known as tcrypt[away]
<Blueby> I’ll try that but I don’t think that is ti, becuase when I put that URL on the browser, its immediate
<baweaver> I'd have to dig a bit to find a way to troubleshoot this honestly.
tcrypt[away] is now known as tcrypt
<baweaver> currently searching: curl slow osx
tcrypt is now known as tcrypt[away]
<Blueby> I appreciate it a ton! really
<Blueby> btw, the traceroute thing is still going
<baweaver> If I had to bet, the browser has some type of cache
<baweaver> because my traceroute is taking forever as well.
terlar has joined #ruby
<baweaver> contrast with a traceroute of google.com
<baweaver> eam: dtruss in simple terms? (looking at man pages)
wmoxam has joined #ruby
<eam> it's strace for osx
<eam> it'll print system calls as they occur
<eam> you'll probably see it pausing on some network related call
Chagel has quit [Ping timeout: 260 seconds]
<baweaver> ah
<baweaver> low level is not quite my forte.
<eam> also, reasonable odds this is an ipv6 problem
<baweaver> I was starting to see things on that.
flashpoint9 has quit [Remote host closed the connection]
<baweaver> http://marc.info/?t=107182885800002&r=1&w=1 - namely things like that
<eam> yeah try with explicit ipv4
<eam> dual stack is the devil
<eam> ipv4 is fine, ipv6 is fine. running both on one system is a recipe for madness
<baweaver> Ruby uses libcurl for most of its http libs right?
<baweaver> I know Typhoeus does for a fact.
<eam> I don't recall
<eam> brb!
User458764 has joined #ruby
arescorpio has quit [Quit: Leaving.]
<baweaver> Blueby: How did you install curl?
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Blueby> mmm.. Not sure honestly
<baweaver> is it possible this is a result of that stupidity with GlobalCert borking a ton of top levels?
<baweaver> You have brew?
<Blueby> yes
<baweaver> try brew install curl
<Radar> *cough* Occams Razor
<baweaver> might get a newer (and saner) version than what's default
<baweaver> Radar: After all the idiocy with Rubygems SSL certs I somewhat doubt the validity of that one :P
<Radar> baweaver: ;)
<baweaver> That took a few hours of my life I won't get back...
<havenwood> baweaver: i think typhoeus, curb and patron are the notable libcurl clients
<Blueby> So I just ran brew install curl and now running time curl httparty 'https://rxnav.nlm.nih.gov/REST/RxTerms/rxcui/750244/allinfo' again
<baweaver> Typhoeus and Curb definitely are.
<Blueby> Its taking its time
<havenwood> yeah, those are the heavy hitters
<baweaver> why not just curl
wmoxam has left #ruby ["WeeChat 0.3.7"]
<baweaver> so just literally: time curl https://rxnav.nlm.nih.gov/REST/RxTerms/rxcui/750244/allinfo
<Blueby> btw, this request did work really fast:
<havenwood> httpclient, excon, http and em-http-request are other notable ones that don't use libcurl and aren't net/http wrappers
<Blueby> RestClient::Request.execute(method: :get, url: 'http://www.thomas-bayer.com/sqlrest/CUSTOMER/')
User458764 has quit [Ping timeout: 260 seconds]
<Blueby> as did the same request with httparty
<havenwood> Blueby: those are both net/http wrappers
<Blueby> Right
<Blueby> The point being that the thomas-bayer url for some reason does run fast
<Blueby> maybe it has something to do with https vs http?
<Blueby> take that back
<Blueby> the starwars api was a http
<gizless> how is php syntax for <<<EOTEXT
<Blueby> eam, how do I make explicit ipv4?
teclator has quit [Ping timeout: 260 seconds]
<gizless> Blueby: By avoiding dns or force an A record
gizless is now known as gizmore
<baweaver> gizless: This is the ruby channel. Do you mean how to do that in ruby?
<baweaver> If so they're HEREDOCs in Ruby
<gizmore> baweaver: i don't wanna disturb php channel for that amateur question
<gizmore> ahhh thanks
aupadhye has joined #ruby
<gizmore> heredoc php, thanks
bocaneri has joined #ruby
<gizmore> i might look into bonsaiERP soon
<gizmore> ruby erp system
<gizmore> installing since a couple of months (kiddings after 3 beer)
<gizmore> i blame debian for being slow
<gizmore> and rbenv is tedious with mpm-itk
<havenwood> Blueby: I haven't been following what we're talking about, but you might like looking at the request with httpstat, like: https://gist.github.com/havenwood/44e0c9dc36958c6ec4bb8be573646fb7
harai_ has quit [Ping timeout: 260 seconds]
sepp2k has quit [Read error: Connection reset by peer]
<Blueby> Thanks
<Blueby> The weird thing is that Ive used rest-client before with that same url (the starwars, and it is not nearly as slow)
elvin_ has joined #ruby
elvin has quit [Ping timeout: 260 seconds]
astrobunny has joined #ruby
Felipe__ has quit [Quit: Leaving]
<eam> Blueby: curl -4
frankiee_ has joined #ruby
<Blueby> Thanks
<Blueby> and got same results
<Blueby> real1m16.440s
<Blueby> user0m0.027s
<Blueby> sys0m0.014s
vitd has quit [Quit: Lost terminal]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
sneakerhax has joined #ruby
<eam> dtruss will concretely show you what's taking time
<Blueby> havenwood, I did the httpstat thing
<Blueby> Here are the resutls
<Blueby> DNS Lookup TCP Connection SSL Handshake Server Processing Content Transfer
<Blueby> [ 66ms | 235ms | 134ms | 35ms | 0ms ]
<Blueby> | | | | |
<Blueby> namelookup:66ms | | | |
<Blueby> connect:301ms | | |
<Blueby> pretransfer:435ms | |
<Blueby> starttransfer:470ms |
<Blueby> total:470ms
<Blueby> Not sure what to do with that
<havenwood> Blueby: Please Gist more than three lines instead of pasting.
_djbkd has joined #ruby
the_drow has joined #ruby
nankyokusei has joined #ruby
Madplatypus has joined #ruby
Chagel has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
the_drow has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 258 seconds]
igniting has quit [Ping timeout: 268 seconds]
lacour has joined #ruby
Blueby has left #ruby [#ruby]
blackmesa has joined #ruby
Blueby has joined #ruby
elvin_ has quit [Ping timeout: 258 seconds]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
tcrypt[away] is now known as tcrypt
the_drow has joined #ruby
tcrypt is now known as tcrypt[away]
zukin has quit [Ping timeout: 260 seconds]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
ICantCook has quit [Quit: bye]
tcrypt[away] is now known as tcrypt
hutch34 has joined #ruby
Blueby has left #ruby [#ruby]
ICantCook has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us_ has joined #ruby
craigp_ has joined #ruby
User458764 has joined #ruby
optiz0r has joined #ruby
dminuoso_ has joined #ruby
tcrypt is now known as tcrypt[away]
pwnd_nsfw has joined #ruby
thomas has quit [Quit: leaving]
thomas has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
frankiee_ has quit [Ping timeout: 268 seconds]
Blueby has joined #ruby
tcrypt[away] is now known as tcrypt
ur5us_ has quit [Ping timeout: 258 seconds]
ur5us has quit [Ping timeout: 258 seconds]
tcrypt is now known as tcrypt[away]
hutch34 has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
shakes has joined #ruby
renderful has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
the_drow has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 258 seconds]
tdy has joined #ruby
<Blueby> @eam I think you are onto something
<Blueby> and now the requests are going much faster
renderful has quit [Ping timeout: 260 seconds]
<Blueby> when I do time curl it still takes 1 min 16 seconds (consistently)
<Blueby> But without that, it takes less than a second, which is fast enought for now
<dminuoso_> Blueby: Without looking at SO and having just jumped into the discussion, it sounds like IPv6.
<dminuoso_> (i.e. DNS returns an IPv6 address to which Net::HTTP cant connect)
<Blueby> Yes, that seems to be the problem.
<dminuoso_> Heh.
<dminuoso_> Had the same problem recently.
<Blueby> I wonder though, why 3 months ago I was playing around with this, and did not have that issue
<dminuoso_> I mean you could also fix your network so that you can use IPv6.
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
the_drow has joined #ruby
<dminuoso_> Blueby: Maybe there was no record for the IPv6 address back then?
<Blueby> could be
<dminuoso_> Blueby: Just checked SO. Disabling IPv6 seems like a bad idea.
<Blueby> Will having disabled IPv6 get me into trouble with other issues?
<Blueby> Hahah… I guess the answer is yes
<dminuoso_> Blueby: IPv4 address space is exhausted. Just think on that for a minute.
Derperperd has joined #ruby
<Blueby> mm yea. So any other thoughts on how to deal with this?
<dminuoso_> Blueby: Fix your network?
hakunin_ has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
<dminuoso_> Blueby: I mean you can do it as a real hotfix, but not being IPv6 capable seems like a far greater issue.
<Blueby> I hear you
<dminuoso_> It's only a matter of time when services become available only through IPv6.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
craigp_ has quit [Quit: WeeChat 1.5]
craigp has joined #ruby
jaxxstorm has joined #ruby
craigp has quit [Client Quit]
hakunin__ has joined #ruby
hakunin has quit [Ping timeout: 260 seconds]
<Blueby> Do you have any thoughts on how I can fix my network?
Blueby has left #ruby [#ruby]
y2mq37 has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
the_drow has quit [Read error: Connection reset by peer]
Blueby has joined #ruby
Blueby has quit [Quit: Blueby]
Blueby has joined #ruby
the_drow has joined #ruby
blackgoat has quit [Ping timeout: 250 seconds]
tfitts has joined #ruby
vuoto has joined #ruby
<Blueby> For anyone having issues with ipv6, there is a great resource here: http://test-ipv6.com/broken.html
dminuoso_ has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 258 seconds]
Mia has quit [Read error: Connection reset by peer]
govg has quit [Quit: leaving]
terlar has quit [Ping timeout: 268 seconds]
ur5us_ has joined #ruby
ur5us 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
xall has joined #ruby
igniting has joined #ruby
dagda1_ has joined #ruby
User458764 has joined #ruby
tmtwd has joined #ruby
ruby-lang047 has joined #ruby
ace05 has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 260 seconds]
ur5us_ has quit [Ping timeout: 260 seconds]
vuoto has quit [Quit: Lost terminal]
ruby-lang047 has quit [Client Quit]
ace05 has joined #ruby
lacour has quit [Quit: Leaving]
xall has quit [Ping timeout: 260 seconds]
ace05 has quit [Remote host closed the connection]
Blueby has quit [Quit: Blueby]
Wizznt has joined #ruby
Wizznt has quit [Client Quit]
twalla has joined #ruby
quazimodo has joined #ruby
_djbkd has quit [Quit: My people need me...]
zukin has joined #ruby
twalla has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
djbkd_ has joined #ruby
djbkd_ has quit [Remote host closed the connection]
djbkd_ has joined #ruby
blackmesa has joined #ruby
ruby-lang876 has joined #ruby
Hard-Dev has quit []
ruby-lang876 has quit [Client Quit]
pawnbox has joined #ruby
pwnd_nsfw` has joined #ruby
andikr has joined #ruby
pwnd_nsfw has quit [Ping timeout: 258 seconds]
djellemah has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
dminuoso_ has joined #ruby
terlar has joined #ruby
shakes has quit [Quit: Leaving]
antgel has quit [Ping timeout: 260 seconds]
ekinmur has joined #ruby
ARCADIVS has quit [Ping timeout: 260 seconds]
AndrewIsHere has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
ekinmur has quit [Ping timeout: 260 seconds]
y2mq37 has quit [Ping timeout: 258 seconds]
aufi has joined #ruby
Dimik has joined #ruby
ddffg has joined #ruby
mim1k|wo1k has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mim1k|work has quit [Ping timeout: 258 seconds]
ace05 has joined #ruby
ace05 has quit [Remote host closed the connection]
_sfiguser has quit [Ping timeout: 268 seconds]
jaiks1 has quit [Ping timeout: 258 seconds]
davout has left #ruby [#ruby]
gingray has joined #ruby
tmtwd has quit [Ping timeout: 252 seconds]
_sfiguser has joined #ruby
firstdayonthejob has joined #ruby
achamian has joined #ruby
jaiks1 has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
the_drow has quit [Read error: Connection reset by peer]
achamian has quit []
eizua has joined #ruby
the_drow has joined #ruby
tvw has joined #ruby
jaguarmagenta has joined #ruby
nankyokusei has joined #ruby
djbkd_ has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 258 seconds]
Dimik has quit [Ping timeout: 248 seconds]
beatdown has quit [Quit: ZNC 1.6.1 - http://znc.in]
quazimodo has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 258 seconds]
harai_ has joined #ruby
saneax-_-|AFK is now known as saneax
blackmesa has joined #ruby
conta has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby
the_drow has joined #ruby
yardenbar has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
beatdown has joined #ruby
Chagel has quit [Quit: Lost terminal]
rajdesai has joined #ruby
bruce_lee has joined #ruby
vondruch has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
AndrewIsHere has joined #ruby
consti has joined #ruby
zukin has quit [Quit: leaving]
quazimodo has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
pokalyis has joined #ruby
ekinmur has joined #ruby
User458764 has joined #ruby
zukin has joined #ruby
terlar has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
rajdesai has quit [Remote host closed the connection]
AndrewIsHere has quit [Ping timeout: 258 seconds]
rajdesai has joined #ruby
jenrzzz has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
biberu has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
quazimodo has joined #ruby
ekinmur has quit [Ping timeout: 258 seconds]
CloCkWeRX has quit [Quit: Leaving.]
Madplatypus has quit [Quit: Connection closed for inactivity]
rajdesai has quit [Ping timeout: 250 seconds]
flying has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
teclator has joined #ruby
coyo has joined #ruby
Rowtag-Firetail has joined #ruby
ace05 has joined #ruby
xall has joined #ruby
ccmcdee-sfc has quit [Quit: WeeChat 1.6]
Rowtag-Firetail has quit [Client Quit]
ace05 has quit [Ping timeout: 248 seconds]
agent_white has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
<zukin> self.scan(/aeiou/i) # what does the second i indicate?
SCHAAP137 has joined #ruby
<zukin> oops
the_drow has quit [Quit: This computer has gone to sleep]
<zukin> self.scan(/[aeiou]/i) # what does the second i indicate?
<agent_white> zukin: case insensitive
<agent_white> >>"Bob" =~ /bob/
<ruby[bot]> agent_white: # => nil (https://eval.in/660506)
jaxxstorm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<agent_white> >>"Bob" =~ /bob/i
<ruby[bot]> agent_white: # => 0 (https://eval.in/660507)
<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]
ur5us has joined #ruby
ur5us_ has joined #ruby
Immune has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
ur5us_ has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
mrkn has quit [Quit: WeeChat 1.5]
User458764 has joined #ruby
jcao219 has joined #ruby
ben_____1 has quit [Ping timeout: 250 seconds]
gregf_ has joined #ruby
ben_____1 has joined #ruby
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_> (If you can)
Immune has joined #ruby
<canton7> definity, https://eval.in/660595
<dminuoso_> definity: https://eval.in/660596
<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_> >> def method(&a); end
* dminuoso_ kicks ruby[bot]
<ruby[bot]> dminuoso_: # => :method (https://eval.in/660612)
<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.
<dminuoso_> >> def foo(&a); end; foo()
<ruby[bot]> dminuoso_: # => nil (https://eval.in/660618)
<dminuoso_> Or not.. uh.
claudiuinberlin has joined #ruby
<dminuoso_> Not sure what things I got confused.
djellemah has joined #ruby
<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.
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<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
<ljarvis> >> MyClassNameHere = Class.new; MyClassNameHere.new
<jokke> heh
<ljarvis> >> MyClassNameHere = Class.new; MyClassNameHere.new
<ruby[bot]> ljarvis: # => #<MyClassNameHere:0x40e3dbb4> (https://eval.in/660689)
<apeiros> jokke: you can define ::inspect
<ljarvis> that too
<ljarvis> also class names are just constants
<jokke> i see
<dminuoso_> jokke: I have a trick....
<apeiros> well, the name attribute is set to the first constant it's assigned to
<ljarvis> >> a = Class.new; Foo = a; Foo.new
<ruby[bot]> ljarvis: # => #<Foo:0x4105db38> (https://eval.in/660693)
<apeiros> >> [Class.new.name, (Foo = Class.new).name]
<ruby[bot]> apeiros: # => [nil, "Foo"] (https://eval.in/660694)
JeanCarloMachado has quit [Ping timeout: 250 seconds]
<dminuoso_> jokke: https://eval.in/635609
<ljarvis> :|
GodFather has quit [Ping timeout: 258 seconds]
<dminuoso_> (:
<ljarvis> *whyyyy*
<jokke> haha
Rodya_ has joined #ruby
<apeiros> ljarvis: as always - because he can
JeanCarloMachado has joined #ruby
<jokke> hmm
<jokke> i can't use the Constant assignment thing because the class is created dynamically
<jokke> (in a method)
Wayne_Shephard has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 258 seconds]
<jokke> i don't understand, why it doesn't just use name...
<jokke> >> Class.new { define_singleton_method(:name) { 'Foo' } }.name
<ruby[bot]> jokke: # => "Foo" (https://eval.in/660711)
<jokke> ...
<jokke> >> Class.new { define_singleton_method(:name) { 'Foo' } }.inspect
<ruby[bot]> jokke: # => "#<Class:0x414819d0>" (https://eval.in/660712)
<jokke> wat
jaguarmagenta has joined #ruby
da3mon has joined #ruby
johnmilton has joined #ruby
johnmilton has quit [Remote host closed the connection]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
Burgestrand has joined #ruby
synthroid has joined #ruby
johnmilton has joined #ruby
<jokke> ah
<jokke> my bad
<jokke> >> Class.new { define_singleton_method(:name) { 'Foo' } }.new.inspect
<ruby[bot]> jokke: # => "#<#<Class:0x406b99c4>:0x406b98fc>" (https://eval.in/660716)
ctp__ has joined #ruby
<jokke> still..
<dminuoso_> jokke: Was my solution not to your satisfaction? I'm sure I can _Fiddle_ a more adequate one for you. :-)
<jokke> i can't assign to a constant in a method
jaguarmagenta has quit [Ping timeout: 260 seconds]
<apeiros> yeah, the default inspect uses something internal :-/
<jokke> seems so
<apeiros> that's why I suggested to change ::inspect, not ::name ;-)
<jokke> yup
<dminuoso_> apeiros: It just uses #inspect
<apeiros> o0
<apeiros> no?
<jokke> i still have to put together the whole string with object id etc
<elomatreb> Maybe you should also indicate that it's a dynamically created class in the inspect?
<apeiros> dminuoso_: Module#inspect is aliased to Module#to_s and that's a native method
<apeiros> and Class inherits those
<dminuoso_> apeiros: Oh, I was looking at Object#inspect
<apeiros> elomatreb: preferably with a nice emoji :D
<elomatreb> I vote for 🐟 because it's obviously the best
<apeiros> >> Class.new { def self.inspect; "🕐Foo" end }.new
<ruby[bot]> apeiros: # => #<#<Class:0x40b75a58>:0x40b759e0> (https://eval.in/660719)
<apeiros> whaaat?
<jokke> yupp
<apeiros> sucker, doesn't use self.class.inspect in #inspect
<elomatreb> Isn't it #inspect?
<apeiros> >> Class.new { def inspect; "#<🕐Foo:%08x>" % (object_id<<1) end }.new
<ruby[bot]> apeiros: # => #<🕐Foo:4103d9dc> (https://eval.in/660720)
<apeiros> elomatreb: #inspect is for the object. I didn't want to override that. means you have to also do the ivar showing part yourself :->
<apeiros> :-S
<apeiros> i.e. more effort
claudiuinberlin has joined #ruby
<elomatreb> Alias the old one and gsub the class name?
<elomatreb> Hire me for more terrible ideas like this
<apeiros> for those without proper unicode fonts: 🕐 is a clock :)
<apeiros> elomatreb: where are you located?
<elomatreb> Northern Germany ^^
ij has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
<ij> Regex.quote('foo').sub('', 'regexcahars') and regexchars still are quoted. Why?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
symm- has joined #ruby
<apeiros> ij: assuming by "quoted" you mean "escaped". because you did not replace the escape character.
<apeiros> >> Regexp.quote(" ")
<ruby[bot]> apeiros: # => "\\ " (https://eval.in/660721)
<apeiros> you get a string consisting of backslash + space, and you replace the space. so naturally the backslash remains.
<ij> huh? Also, Regexp.quote = Regexp.escape.
ta__ has joined #ruby
<apeiros> yes. both escape characters in a string.
GinoManWorks has joined #ruby
<ij> Aah! Of course. I'm so dumb.
<ij> It really got me.
<dminuoso_> >> Regexp.quote = Regexp.escape
<ruby[bot]> dminuoso_: # => wrong number of arguments (given 0, expected 1) (ArgumentError) ...check link for more (https://eval.in/660723)
<dminuoso_> ij: Ruby says no.
<dminuoso_> :o
sczizzo has joined #ruby
<dminuoso_> actually there is a thought..
<dminuoso_> >> o.m = o.m
<ruby[bot]> dminuoso_: # => undefined local variable or method `o' for main:Object (NameError) ...check link for more (https://eval.in/660724)
<apeiros> what for?
ta_ has quit [Ping timeout: 252 seconds]
<apeiros> we know they're synonymous. dminuoso_ is just fooling around.
<dminuoso_> Yeah he's just being silly and all.
workmad3 has quit [Ping timeout: 248 seconds]
<apeiros> btw., anybody know why C-ruby doesn't use alias? would make it so much easier to spot in docs…
<ij> I could've sworn you wrote == and it said "false", lol.
<apeiros> it'd still raise
<apeiros> since Regexp.escape requires an argument :)
gnufied has joined #ruby
<ij> yup
<ij> but that's what my mind told me I saw
<apeiros> and even Regexp.method(:escape) == Regexp.method(:quote) would not work.
tk__ has joined #ruby
<dminuoso_> apeiros: well alias_method is a runtime feature - Ruby needs to bootstrap somehow.
<apeiros> I don't see a problem doing the bootstrap first and loading the aliases at the end
<dminuoso_> mmm
<apeiros> it's not like you have to rely on the aliases during the bootstrap
<apeiros> hahaaa, uuuugly but this works: Mappers = {foo1: standard_foo=proc { … }, foo2: standard_foo}
<apeiros> whoda thunked. ruby's literals are expressive too.
sdothum has joined #ruby
quazimodo has joined #ruby
gnufied has quit [Quit: Leaving]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
da3mon has quit [Quit: Zzzz...]
gnufied has joined #ruby
definity has quit [Ping timeout: 260 seconds]
consti has quit [Quit: Textual IRC Client: www.textualapp.com]
johnmilton has quit [Ping timeout: 260 seconds]
johnmilton has joined #ruby
johnmilton has quit [Remote host closed the connection]
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
johnmilton has joined #ruby
SCHAAP137 has quit [Ping timeout: 250 seconds]
jazzonmym11nd has quit [Read error: Connection reset by peer]
jazzonmym11nd has joined #ruby
Snowy has quit [Remote host closed the connection]
ziarkaen has joined #ruby
Snowy has joined #ruby
tyang has joined #ruby
Hyuk has joined #ruby
be_______ has joined #ruby
nankyokusei has joined #ruby
<dminuoso_> apeiros: you can even do these shenanigens in a methods parameter list.
<dminuoso_> >> def foo(a: b=1, c: b); end
<ruby[bot]> dminuoso_: # => :foo (https://eval.in/660739)
Snowy has quit [Ping timeout: 258 seconds]
AlexRussia has quit [Ping timeout: 258 seconds]
b________ has quit [Ping timeout: 258 seconds]
be_______ has quit [Ping timeout: 260 seconds]
synthroid has quit [Ping timeout: 258 seconds]
synthroi_ has joined #ruby
SCHAAP137 has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
AlexRussia has joined #ruby
Pumukel has quit []
Rodya_ has joined #ruby
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
<apeiros> >> def foo(a=1,b=a+1); [a,b]; end; foo(3)
<ruby[bot]> apeiros: # => [3, 4] (https://eval.in/660746)
jazzonmym11nd has joined #ruby
<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
<apeiros> eh, you can
<apeiros> via closures
<ljarvis> that's sneaky
<apeiros> but it's rather effed up to do that :D
AndrewIsHere has quit [Ping timeout: 258 seconds]
AltLock has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<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 :)
<dminuoso_> template<typename ...Ts, int... N> void g(Ts (&...arr)[N]) {}
jaguarmagenta has joined #ruby
<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]
yardenbar has joined #ruby
<ljarvis> yes, but dont.. https://eval.in/660790
<ljarvis> eh, wrong window
habitullence has joined #ruby
jaxxstorm has joined #ruby
Couch has quit [Ping timeout: 244 seconds]
midohow has joined #ruby
<midohow> hey devs
AndrewIsHere has joined #ruby
lxsameer has joined #ruby
elifoster has joined #ruby
urtokk has quit [Quit: WeeChat 1.4]
<apeiros> hey midohow
jcao219 has quit [Ping timeout: 268 seconds]
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]
eprasad has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
<midohow> tnks all
midohow has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
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…]
danostrowski has joined #ruby
<havenwood> Blueby: PS - Give HTTP.rb a try: https://github.com/httprb/http#readme
<Blueby> This produces the errror: httparty 'http://swapi.co/api/people/1'
jsrn has quit [Read error: Connection reset by peer]
mim1k|work has quit [Ping timeout: 260 seconds]
<Blueby> Those are the contents of the hosts file
AltLock has quit [Quit: Leaving.]
nikivi has quit [Quit: zzz]
Echohn has joined #ruby
skweek has joined #ruby
nitric has joined #ruby
nettoweb1 has joined #ruby
SeepingN has joined #ruby
jarray52 has left #ruby [#ruby]
ARCADIVS has joined #ruby
tvw has quit [Remote host closed the connection]
igniting has quit [Ping timeout: 268 seconds]
nettoweb has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
Mia has joined #ruby
neminis has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
jackjackdripper has joined #ruby
moneylotion has quit [Ping timeout: 260 seconds]
AltLock has joined #ruby
polishdub has joined #ruby
tk__ has quit [Quit: ばいばい]
<neminis> Hello! Let be two objects, one is not nil, the other is nil. How do I select the one which is not nil to call a method on it?
<havenwood> neminis: (a or b).method_here
quazimodo has quit [Ping timeout: 260 seconds]
<neminis> havenwood: very elegant, thanks!
<havenwood> Blueby: Your hosts file looks fine.
whathappens has joined #ruby
<Blueby> thats good.
jaguarmagenta has quit [Ping timeout: 260 seconds]
<Blueby> I tried the gem you suggested, getting the same error
<Blueby> Errno::EHOSTUNREACH: No route to host - connect(2) for "swapi.co" port 80
<Blueby> from /Users/Gabriel/.rvm/gems/ruby-2.2.3/gems/http-0.9.9/lib/http/timeout/null.rb:18:in `initialize'
<havenwood> Blueby: "the destination host cannot be reached (probably because the host is down or a remote router cannot reach it)"
rodferso1|lunch has joined #ruby
negev has quit [Ping timeout: 248 seconds]
<havenwood> multi-homed ipv6?
Gasher has joined #ruby
rodfersou|lunch has quit [Ping timeout: 268 seconds]
rodferso1|lunch is now known as rodfersou
gingray has quit [Ping timeout: 258 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
terlar has quit [Ping timeout: 250 seconds]
Echohn has quit [Remote host closed the connection]
Guest83401 is now known as ndrst
Echohn has joined #ruby
dviola has joined #ruby
<Blueby> havenwood, Im not sure what the answer to that question is. How do I check?
Rodya_ has joined #ruby
moneylotion has joined #ruby
magellanicloud has joined #ruby
jcao219 has joined #ruby
<Blueby> I just ran ifconfig | grep "inet " | grep -v 127.0.0.1 on terminal
alaibe has quit [Ping timeout: 252 seconds]
<Blueby> I noticed that the inet ip address that came up is not in the etc/hosts files
<Blueby> Is that normal?
nankyokusei has joined #ruby
Lucky_ABA has joined #ruby
cyphase has quit [Read error: Connection reset by peer]
nettoweb1 has quit [Read error: Connection reset by peer]
Beams has quit [Quit: .]
nankyokusei has quit [Ping timeout: 250 seconds]
Pupeno has quit [Remote host closed the connection]
neminis has quit [Quit: Lost terminal]
blackmesa has quit [Ping timeout: 258 seconds]
aswen has quit [Quit: WeeChat 1.5]
moneylotion has quit [Ping timeout: 260 seconds]
Pupeno has joined #ruby
Snowy has quit [Quit: ragequit]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
Contigi has quit [Quit: Leaving]
Pupeno has quit [Read error: Connection reset by peer]
BlueDragons has quit [Quit: Leaving]
<havenwood> Blueby: Yeah, that's normal.
Phage has joined #ruby
yqt has joined #ruby
cjbischof_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jaxxstorm has joined #ruby
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]
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
hammond_ has joined #ruby
hammond_ has quit [Changing host]
hammond_ has joined #ruby
hammond_ has quit [Changing host]
hammond_ has joined #ruby
hinbody has quit [Ping timeout: 268 seconds]
tauebel has quit [Quit: Textual IRC Client: www.textualapp.com]
cyphase has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
postmodern has joined #ruby
hammond_ has quit [Ping timeout: 260 seconds]
Blueby has left #ruby [#ruby]
Blueby has joined #ruby
hammond_ has joined #ruby
harai_ has joined #ruby
sneakers has joined #ruby
flashpoint9 has joined #ruby
jgnagy has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
terlar has joined #ruby
Echohn has quit []
jenrzzz has joined #ruby
Guest44669 has quit [Changing host]
Guest44669 has joined #ruby
Guest44669 is now known as nuck
dviola has quit [Quit: WeeChat 1.6]
blackmesa has joined #ruby
karmatr0n has joined #ruby
al2o3-cr has quit [Ping timeout: 250 seconds]
dviola has joined #ruby
jaxxstorm has joined #ruby
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]
blackmesa has quit [Ping timeout: 252 seconds]
tcrypt[away] is now known as tcrypt
ocx has joined #ruby
<ocx> hello, http://pastie.org/10943243 why x is not 101?
tcrypt is now known as tcrypt[away]
<ocx> typoe line 3 @x
<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]
jenrzzz has quit [Ping timeout: 258 seconds]
symm- has quit [Ping timeout: 268 seconds]
davidt has quit [Ping timeout: 258 seconds]
marxarelli|afk is now known as marxarelli
Phage has quit [Quit: Textual IRC Client: www.textualapp.com]
skweek has quit [Ping timeout: 258 seconds]
tdy has quit [Ping timeout: 258 seconds]
duncannz has joined #ruby
elifoster has quit [Ping timeout: 268 seconds]
<havenwood> ocx: nope!
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!]
lorenalexm has quit [Quit: Textual IRC Client: www.textualapp.com]
coolboy has quit [Ping timeout: 250 seconds]
dmtd has quit [Quit: Connection closed for inactivity]
daffy_duck_3 has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
jcao219 has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
daffy_duck_2 has quit [Ping timeout: 260 seconds]
rcvalle has quit [Quit: rcvalle]
nullfxn has joined #ruby
nullfxn has quit [Client Quit]
nullfxn has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
Lucky_ABA has quit [Ping timeout: 260 seconds]
firstdayonthejob has joined #ruby
bkxd has joined #ruby
brianpWins has quit [Ping timeout: 258 seconds]
finisherr has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tdy1 has joined #ruby
gingray has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
elastix has joined #ruby
Madplatypus has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
elastix has quit [Client Quit]
jaxxstorm has joined #ruby
tristanp_ has quit [Remote host closed the connection]
jaxxstorm has quit [Client Quit]
bkxd has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Quit: Leaving]
biberu has quit []
SCHAAP137 has joined #ruby
ruby[bot] has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
dviola has joined #ruby
SteenJobs has joined #ruby
ruby_ has joined #ruby
pokalyis has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
bqscott is now known as scott4000
marxarelli is now known as marxarelli|afk
jhack has quit [Quit: jhack]
balazs has quit [Ping timeout: 258 seconds]
elifoster has quit [Ping timeout: 258 seconds]
jbeeze has quit [Remote host closed the connection]
pragmaticus has quit [Ping timeout: 260 seconds]
Blueby has joined #ruby
nankyokusei has joined #ruby
Blueby has quit [Client Quit]
SteenJobs has quit [Quit: peaceee]
elifoster has joined #ruby
twalla has joined #ruby
magellanicloud has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
twalla has quit [Ping timeout: 258 seconds]
DLSteve has joined #ruby
saneax-_-|AFK is now known as saneax
tdy1 has quit [Ping timeout: 260 seconds]
gnufied has quit [Ping timeout: 250 seconds]
ddffg has quit [Ping timeout: 268 seconds]
alaibe has quit [Ping timeout: 260 seconds]
jaxxstorm has joined #ruby
mikecmpbll has joined #ruby
elenatanasoiu has quit [Quit: WeeChat 1.5]
charliesome has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
nitric has quit [Ping timeout: 252 seconds]
minimalism has quit [Quit: minimalism]
harfangk has joined #ruby
flashpoi_ has joined #ruby
Bellthoven has joined #ruby
Bilge has joined #ruby
sirecote has joined #ruby
flashpoint9 has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
tristanp has joined #ruby
minimalism has joined #ruby
tcrypt has quit [Quit: _ノ乙(、ン、)_]
bkxd has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]