ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
choke has joined #ruby
bkxd has joined #ruby
gsilva has quit [Remote host closed the connection]
Derperperd has quit [Ping timeout: 260 seconds]
volty has joined #ruby
tau has quit [Remote host closed the connection]
Derperperd has joined #ruby
ColeHub has quit [Quit: Bye.]
drzel has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 260 seconds]
planigan has joined #ruby
Derperperd has quit [Max SendQ exceeded]
snowball has joined #ruby
Derperperd has joined #ruby
CloCkWeRX has joined #ruby
bmurt has joined #ruby
last_staff has quit [Quit: last_staff]
planigan has quit [Remote host closed the connection]
<snowball>
how do scopes work in this thing. i'm trying to have an instance method create rake tasks, but it's unable to find the "task", "file" and "rule" functions
<snowball>
if i place them outside the class in the same file it works
planigan has joined #ruby
<marchelzo>
snowball: how are you doing today?
roamingdog has joined #ruby
<snowball>
oki doki
[ohjn] has joined #ruby
<marchelzo>
oh good
haraoka has joined #ruby
<marchelzo>
snowball: what is this thing
hooper has quit [Quit: Leaving.]
<snowball>
"this thing" refers to ruby
<marchelzo>
oh haha
<marchelzo>
can i see your program
blackmes1 has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
maloik44 has quit [Remote host closed the connection]
maloik has joined #ruby
arescorpio has quit [Ping timeout: 246 seconds]
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
pilne has quit [Quit: Quitting!]
cschneid_ has joined #ruby
tmtwd has joined #ruby
bkxd has joined #ruby
tau has quit [Quit: finding someone who wants your love is harder than finding someone who wants to give you love.]
thoolihan has joined #ruby
Phytyca has joined #ruby
browndawg has quit [Quit: *Mic Drop*]
<Phytyca>
Hey all -- just curious about a language feature I found today if someone has a minute
zacts has joined #ruby
<Phytyca>
found an implementation of quicksort and in the recursive return part, they're putting *'s before the fucntion calls, what does that mean in ruby?
dlitvak has quit [Quit: Connection closed for inactivity]
myk267 has quit [Ping timeout: 246 seconds]
myk267 has joined #ruby
zacts has quit [Quit: WeeChat 1.5]
KicStart has quit [Quit: Leaving.]
hutch34 has joined #ruby
myk267 has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Quit: Quitting]
jenrzzz has quit [Ping timeout: 246 seconds]
enterprisey has quit [Read error: Connection reset by peer]
hutch34 has quit [Ping timeout: 246 seconds]
Channel6 has quit [Quit: Leaving]
nanoz has joined #ruby
username_ has joined #ruby
zacts has joined #ruby
myk267 has joined #ruby
__Yiota has joined #ruby
cxr has quit [Ping timeout: 240 seconds]
modlin has quit [Quit: Konversation terminated!]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeyraof^mbpr has joined #ruby
roamingdog has joined #ruby
cxr has joined #ruby
Oldn0rse has joined #ruby
igniting has quit [Ping timeout: 258 seconds]
unmanbearpig has joined #ruby
jeyraof^mbpr has quit [Client Quit]
tau has joined #ruby
roamingdog has quit [Ping timeout: 268 seconds]
Oldn0rse has quit [Ping timeout: 240 seconds]
Irishluck83 has joined #ruby
unmanbearpig has quit [Ping timeout: 264 seconds]
Irishluck83 has quit [Client Quit]
jeyraof^mbpr has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
reverberations has joined #ruby
BabyMario has joined #ruby
BabyMario has quit [Client Quit]
squ has joined #ruby
Anonymoose2 has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
brent__ has joined #ruby
lightheaded has joined #ruby
ianmethyst has joined #ruby
lightheaded has quit [Client Quit]
hotpancakes has quit [Remote host closed the connection]
username_ has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
minimalism has quit [Quit: minimalism]
renchan has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
igniting has joined #ruby
akkad has quit [Excess Flood]
hotpanca_ has joined #ruby
montanonic has joined #ruby
brent__ has quit [Remote host closed the connection]
akkad has joined #ruby
djbkd has joined #ruby
anisha has joined #ruby
yfeldblum has quit [Remote host closed the connection]
brent__ has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
cxr has quit [Ping timeout: 268 seconds]
Oldn0rse has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
aupadhye has joined #ruby
Oldn0rse has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
unmanbearpig has joined #ruby
nofxxx has joined #ruby
Guest18290 has quit [Remote host closed the connection]
whathappens has joined #ruby
whathappens is now known as Guest83065
Xiti has quit [Quit: Xiti]
skweek has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
brent__ has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 240 seconds]
unmanbearpig has quit [Ping timeout: 268 seconds]
haraoka has quit [Ping timeout: 268 seconds]
Guest83065 has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
GGMethos has quit [Quit: WeeChat 1.4]
skweek has quit [Read error: Connection reset by peer]
montanonic has joined #ruby
GGMethos has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman has joined #ruby
skolman has quit [Ping timeout: 240 seconds]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
nanoz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
amclain has quit [Quit: Leaving]
skweek has joined #ruby
montanonic has quit [Ping timeout: 246 seconds]
last_staff1 has joined #ruby
ResidentBiscuit has joined #ruby
last_staff1 is now known as last_staff
n1ce_ is now known as n1ce
n1ce has quit [Changing host]
n1ce has joined #ruby
Derperperd has quit [Ping timeout: 268 seconds]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
hutch34 has joined #ruby
pawnbox has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
Oldn0rse has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
interki has joined #ruby
kristofferR has joined #ruby
Oldn0rse has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 240 seconds]
fclausen has quit [Quit: leaving]
interki has quit [Client Quit]
unmanbearpig has joined #ruby
dionysus69 has joined #ruby
unmanbearpig has quit [Ping timeout: 260 seconds]
tau has quit [Quit: kk]
hanetzer has joined #ruby
<hanetzer>
anoldhacker: yep, apparently it wasn't my pebcak, upstream fixed it :D
CloCkWeRX has quit [Quit: Leaving.]
<hanetzer>
So rubyists, apparently something changed between 2.2.3->2.4.0 in the build process, in that the old steps I took are no longer giving me a static library.
certainty has joined #ruby
<dminuoso>
hanetzer: What do you mean by build process? Are you building a native extension?
<hanetzer>
dminuoso: no, I mean building ruby itself. I'm a sometimes maintainer for mingw-w64-ruby on the archlinux user repo.
minimalism has joined #ruby
<dminuoso>
hanetzer: What library in particular are you referring to?
<hanetzer>
libruby-static.a; it has a different name under mingw, something like libmsvcrt-ruby-static.a
<dminuoso>
hanetzer: Can you tell me how you invoke the build process? I'd like some testcase so I can reproduce it and look at the build process myself.
<dminuoso>
2.2.3 was the last known good version right?
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Derperperd has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Cohedrin has joined #ruby
jeyraof^mbpr has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 264 seconds]
rikkipitt has joined #ruby
govg has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 264 seconds]
ponga has quit [Quit: Connection closed for inactivity]
frostbit has joined #ruby
<frostbit>
hey
<hanetzer>
sup frosty
<frostbit>
ok, this might start a war or something
<frostbit>
but anyways
<frostbit>
rspec vs minitest
<frostbit>
which should i use in which scenario
Pumukel has joined #ruby
* hanetzer
ducks and covers
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
sleetdrop has joined #ruby
blackmes1 has joined #ruby
TomyWork has joined #ruby
jakebriggs[m] has quit [Remote host closed the connection]
aviraldg has quit [Read error: Connection reset by peer]
M107262[m] has quit [Write error: Connection reset by peer]
dman[m] has quit [Read error: Connection reset by peer]
bascht1 has quit [Read error: Connection reset by peer]
daveyboi[m] has quit [Remote host closed the connection]
M-manveru has quit [Read error: Connection reset by peer]
travisr has quit [Read error: Connection reset by peer]
Giphy[m] has quit [Read error: Connection reset by peer]
velu_aon[m] has quit [Read error: Connection reset by peer]
el_ocho[m] has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
pawnbox has joined #ruby
dionysus69 has joined #ruby
emin has joined #ruby
xall has joined #ruby
frostbit has quit [Quit: WeeChat 1.6]
hotpancakes has joined #ruby
rikkipitt has quit [Ping timeout: 258 seconds]
haennar has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
dyjakan has quit [Quit: leaving]
bascht1 has joined #ruby
certainty has joined #ruby
rikkipitt has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
sleetdrop has joined #ruby
hotpancakes has quit []
Burgestrand has joined #ruby
benlieb has quit [Quit: benlieb]
<dminuoso>
hanetzer: If Im not responding it's because I'm currently busy doing something for my salary. But I have not forgotten, so if you'll stick around Ill get to it if nobody else does.
haennar has quit [Ping timeout: 256 seconds]
<dminuoso>
09:09 < frostbit> which should i use in which scenario
<dminuoso>
^- the better one.
skolman_ has joined #ruby
<hanetzer>
dminuoso: actually I figured it out. --disable-install-static-library=no was wrong (didn't originally have it, but found and tried it); --enable-install-static-library is the correct option to add :)
djbkd has quit [Quit: Leaving...]
akkad has quit [Excess Flood]
xen0fon has quit [Quit: xen0fon]
Burgestrand has quit [Read error: Connection reset by peer]
Burgestr_ has joined #ruby
akkad has joined #ruby
skolman_ has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
ledestin has joined #ruby
<dminuoso>
hanetzer: Great. :)
akkad has quit [Excess Flood]
ResidentBiscuit has joined #ruby
<hanetzer>
dminuoso: don't suppose you know the proper way to transition from rb_data_typed_object_alloc to rb_data_typed_object_wrap?
ramfjord has joined #ruby
Burgestr_ has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
<dminuoso>
hanetzer: You shouldn't use the raw functions. There are macros for this.
<hanetzer>
dminuoso: I'm not the one doing it
cfec0b8d has quit [Ping timeout: 260 seconds]
<dminuoso>
hanetzer: It's deprecated and you should be deprecation warnings or errors.
<dminuoso>
Oh
<dminuoso>
Haha.
<dminuoso>
You are getting this warning, and are wondering how to do this.
<dminuoso>
:-)
<dminuoso>
Sorry.
<hanetzer>
'zactly
ResidentBiscuit has quit [Ping timeout: 246 seconds]
roamingdog has joined #ruby
<dminuoso>
hanetzer: Just replace the function, the signature is the same.
hutch34 has joined #ruby
<hanetzer>
ah, cool.
troulouliou_div2 has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
akkad has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 256 seconds]
zenspider has quit [Changing host]
zenspider has joined #ruby
flying has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
<zenspider>
frostbit: rspec
<zenspider>
obvs
<hanetzer>
zenspider: minitest or riot
<dminuoso>
hanetzer: I use riot for testing.
<zenspider>
I like the idea of riot... but it gets its speed by being dirty... and that can lead to invalid tests
<hanetzer>
TIL riot is a ruby thing
<dminuoso>
Or rather I want to.
<zenspider>
dminuoso: I'd be careful if I were you
<dminuoso>
How's that?
<zenspider>
minitest (and everything else that I'm aware of) instantiates a new object on each test, runs setup in that, runs the test, and throws it away (if passed). riot doesn't... so state from one test can and will infect another
<zenspider>
leading to false positives, at the very least
<zenspider>
probably false negatives too, if you run a subset
<zenspider>
(not sure if you can)
rikkipitt has quit [Remote host closed the connection]
<zenspider>
minitest does a much better job of ensuring safe testing environment... with only a slight degradation in speed (still the fastest of the "proper" test frameworks)
<zenspider>
(still -> forever)
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
zenspider: Mmm, well Im currently an rspec user.. so..
<zenspider>
so you want your tests to be slow... gotcha
<mikecmpbll>
denies? 😲
Giphy[m] has joined #ruby
daveyboi[m] has joined #ruby
M107262[m] has joined #ruby
M-manveru has joined #ruby
travisr has joined #ruby
jakebriggs[m] has joined #ruby
aviraldg has joined #ruby
dman[m] has joined #ruby
velu_aon[m] has joined #ruby
el_ocho[m] has joined #ruby
<zenspider>
mmmm split
<zenspider>
it's too bad that riot is basically dead
<dminuoso>
zenspider: Well, speed is definitely an issue.
<mikecmpbll>
i'd never even heard of it before.
<dminuoso>
But I just like the expressivity and richness of rspec.
jenrzzz has quit [Ping timeout: 246 seconds]
j416 has quit [Quit: o/]
jsrn_ has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.7]
patarr has joined #ruby
postmodern has quit [Quit: Leaving]
roamingdog has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 268 seconds]
colegatron has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ddffg has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
Mr_Pancake has quit [Quit: Yes, I'm flour]
xall has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 246 seconds]
xall has joined #ruby
cibs has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Quit: WeeChat 1.7]
nadir has quit [Quit: Connection closed for inactivity]
Revya has joined #ruby
tomphp has joined #ruby
skolman has joined #ruby
Pumukel has quit []
skweek has quit [Ping timeout: 240 seconds]
ddffg has joined #ruby
emin has quit [Read error: Connection reset by peer]
Beams has joined #ruby
al2o3-cr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramfjord has joined #ruby
EV3RYDAYPR0GRESS has quit [Read error: Connection reset by peer]
EV3RYDAYPR0GRESS has joined #ruby
skolman has quit [Ping timeout: 246 seconds]
mercerist has joined #ruby
ta_ has joined #ruby
mercerist has quit [Client Quit]
Revya has quit [Remote host closed the connection]
mercerist has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
xall has quit [Ping timeout: 260 seconds]
jeyraof^mbpr has quit [Quit: Leaving]
sleetdrop has joined #ruby
demin has joined #ruby
Derperperd has joined #ruby
elifoster has quit [Quit: sleep]
Violentr has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
demin has quit [Remote host closed the connection]
blackmes1 has joined #ruby
xall has joined #ruby
Derperperd has quit [Ping timeout: 260 seconds]
Violentr has quit [Ping timeout: 260 seconds]
xen0fon has joined #ruby
certainty has joined #ruby
ta_ has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 260 seconds]
ponga has joined #ruby
blackmes1 has joined #ruby
ta_ has joined #ruby
rikkipitt has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
roamingdog has joined #ruby
ferr1 has joined #ruby
last_staff has quit [Quit: last_staff]
skweek has joined #ruby
marr has joined #ruby
CloCkWeRX has joined #ruby
pandaant has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haennar has joined #ruby
biberu has joined #ruby
Mon_Ouie has joined #ruby
workmad3 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 260 seconds]
lel has quit [Ping timeout: 260 seconds]
aryaching has quit [Ping timeout: 264 seconds]
jdm_ has joined #ruby
xen0fon has quit [Remote host closed the connection]
xen0fon has joined #ruby
tlaxkit has joined #ruby
lel has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
ftlava has joined #ruby
Mon_Ouie has quit [Ping timeout: 258 seconds]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
cyphase has joined #ruby
prestorium has joined #ruby
squ has quit [Remote host closed the connection]
jdm has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
roamingdog has joined #ruby
mikecmpb_ has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
certainty has joined #ruby
dyjakan has joined #ruby
ramfjord has joined #ruby
OTORelic has quit [Ping timeout: 256 seconds]
dyjakan has quit [Client Quit]
hutch34 has joined #ruby
dyjakan has joined #ruby
roamingdog has quit [Remote host closed the connection]
dyjakan has quit [Client Quit]
xen0fon has quit [Quit: xen0fon]
ta_ has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
rikkipitt has quit [Remote host closed the connection]
j416 has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
rikkipitt has joined #ruby
zack6849 has quit [Ping timeout: 252 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
dyjakan has joined #ruby
jaruga________ has joined #ruby
dyjakan has quit [Client Quit]
rikkipitt has quit [Ping timeout: 256 seconds]
dyjakan has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
blackmes1 has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
milardovich has joined #ruby
utd_1997_ has joined #ruby
<utd_1997_>
hey
<utd_1997_>
anybody online....I have a question
t-recx has joined #ruby
<utd_1997_>
Is there any lib or gem in ruby to output the integration of a linear equation
<utd_1997_>
leandroalemao : I think that lib only return the value of a single var , but not the equation.
<utd_1997_>
Is there one for the linear equation and other advanced integrations
mercerist has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
JeanCarloMachado has joined #ruby
patarr has joined #ruby
maattdd_ has quit [Ping timeout: 260 seconds]
vicks has quit [Quit: Page closed]
last_staff has joined #ruby
ldnunes has joined #ruby
zack6849 has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
Burgestrand has quit [Read error: Connection timed out]
Burgestrand has joined #ruby
ramfjord has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
mekeor has quit [Ping timeout: 246 seconds]
vondruch_ has joined #ruby
psychicist__ has joined #ruby
rikkipitt has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
dlitvak has joined #ruby
Derperperd has joined #ruby
allisio has quit [Quit: WeeChat 1.8-dev]
psychicist__ has quit [Remote host closed the connection]
hutch34 has joined #ruby
dyjakan has quit [Quit: Lost terminal]
Burgestrand has quit [Quit: Closing time!]
fergal has joined #ruby
Burgestrand has joined #ruby
dyjakan has joined #ruby
Derperperd has quit [Ping timeout: 268 seconds]
<fergal>
hi guys, if i have a module like: `module Test @@myvar = “dummy” end`, how can i can i access myvar? in my current implementation, i have a method lik `self.myvar do @@myvar end` but is that unneccesary?
Reihar-_- has joined #ruby
<fergal>
i can’t figure out how else to access it…Test::myvar doesn’t work
ramfjord has quit [Remote host closed the connection]
ta_ has joined #ruby
<dminuoso>
fergal: First, avoid class variable unless you really need them. Generally class instance variables have less suprising moments.
<dminuoso>
fergal: Second, let me tell you what went wrong.
<dminuoso>
fergal: module Foo; def self.bar; end; end -> defines a method on the singleton class of Foo.
<dminuoso>
So inside @@myvar would be a class variable of Foo's singleton class.
mercerist has quit [Remote host closed the connection]
catphish has joined #ruby
<fergal>
Mon_Ouie: yeah that’s what i have currently, and it works, i’m just curious if that’s the only way to access the var?
<Mon_Ouie>
The class in which class variables are looked up depends on scoping, not on what self is. Everything inside the class block accesses the same class variables.
<catphish>
what's the best way to resolve a hostname to an ip address in ruby? ie just a standard lookup as something like TCPSocket.new would perform?
<dminuoso>
Mon_Ouie: What the heck.
<Mon_Ouie>
fergal: Class variables, like instance variables, require you to define reader methods to access them from outside the class
<catphish>
dminuoso: i want to resolve a hostname to an ip address, the normal way to do this is not to write a DNS client, but to simply ask the OS to do it
<dminuoso>
catphish: And that's what Resolv does by default.
<dminuoso>
On some systems.
<catphish>
dminuoso: oh, is it? i thought resolv was a DNS client
<dminuoso>
catphish: No. Only if you use resolv-replace.rb
<dminuoso>
catphish: Otherwise it uses the standard libc resolved by your system.
<dminuoso>
resolver.
haennar has quit [Ping timeout: 240 seconds]
<al2o3-cr>
catphish: why not use IPSocket.getaddress
<catphish>
interesting, wonder why resolv only uses DNS
* catphish
looks up al2o3-cr's suggestion
<dminuoso>
catphish: The whole Resolv module is a bit messy for some reasons. al2o3-cr's solution is sound
vondruch__ has joined #ruby
mercerist has joined #ruby
<dminuoso>
it uses rsock_getaddress under the hood
<dminuoso>
Which does things
vondruch_ has quit [Ping timeout: 240 seconds]
<catphish>
i like the look of IPSocket.getaddress
<dminuoso>
>> def foo; .foo; end
<ruby[bot]>
dminuoso: # => /tmp/execpad-5700686d2020/source-5700686d2020:2: syntax error, unexpected '.' ...check link for more (https://eval.in/747061)
<catphish>
thanks both!
<catphish>
interesting, IPSocket.getaddress appears to call getaddrinfo which is probably exactly what i want
<catphish>
SocketError: getaddrinfo: Name or service not known
<al2o3-cr>
catphish: i was gonna say if you need all addresses use getaddrinfo directly
<catphish>
well i really just want one address, but theres a caveat that if ipv6 fails, i probably want to try ipv4
mekeor has joined #ruby
<catphish>
Socket.getaddrinfo is perhaps what i really want
<al2o3-cr>
yep, i agree
<catphish>
i suddenly realise my initial question was stupid, there's no "best" way :)
blackmes1 has quit [Ping timeout: 258 seconds]
<catphish>
just a way that meets my requirements
Burgestrand has quit [Quit: Closing time!]
<catphish>
al2o3-cr: Socket.getaddrinfo looks perfect, i can pick the first ipv6 and ipv4 address, or loop through all of them if i want failover
<catphish>
thanks
utd_1997_ has quit [Quit: Page closed]
ta_ has quit [Remote host closed the connection]
Burgestrand has joined #ruby
<al2o3-cr>
catphish: np, there is also Addrinfo.getaddrinfo is you need a address info obj
<catphish>
i actually want a string, so thats fine
troulouliou_div2 has joined #ruby
<al2o3-cr>
okay dokay
<catphish>
i want to connect to a destination host via a proxy that doesn't itself support hostname resolution, so i just need to look up an address, then send the address as a string to the proxy
<catphish>
so this is ideal :)
<al2o3-cr>
catphish: cool :)
<al2o3-cr>
btw use #gethostbyname #gethostbyaddr with #getnameinfo #getaddrinfo resp as the former are deprecated
<sai>
what's the best way to test your gems (other than using spec tests) and using bundler?
sai is now known as tchme_sensei815
KicStart has quit [Quit: Leaving.]
KicStart has joined #ruby
Reihar-_- has quit [Ping timeout: 264 seconds]
dyjakan has quit [Quit: Lost terminal]
troulouliou_div2 has quit [Quit: Leaving]
cibs has quit [Ping timeout: 260 seconds]
<mikecmpbll>
[offtopic] is there a place to seek consultants/specialists in certain tech areas?
dyjakan has joined #ruby
rikkipitt has quit [Quit: Leaving...]
cibs has joined #ruby
<mikecmpbll>
not that familiar with using consultants so don't know how people typically find them and make sure they're good :'d
<marchelzo>
mikecmpbll: i can consult for u
<mikecmpbll>
marchelzo : i didn't say what it was yet ? :D
<marchelzo>
what area are u looking for a specialist in?
<mikecmpbll>
lol, that doesn't fill me with confidence.
<marchelzo>
mikecmpbll: well yeah but i'm a specialist in every area so it doesn't matter
<mikecmpbll>
space exploration.
<marchelzo>
oh can't help u there
ddffg has joined #ruby
newrubycoder has joined #ruby
<tchme_sensei815>
can someone guide me on testing out gems using bundler?
<marchelzo>
newrubycoder: hi
<newrubycoder>
hey marchelzo :)
<mikecmpbll>
it's mysql really. but meh. i'm fairly experienced with it but this issue is fucking me up.
<marchelzo>
newrubycoder: how have you been?
<marchelzo>
mikecmpbll: ok i can help u there. you will have to fly me in, and i charge $200 usd / hour.
<mikecmpbll>
:]
<newrubycoder>
good, im learning every day, i need more discipline tho, hope i can get more than 2 hours of work done per day eventually, how about you?
tchme_se_ has joined #ruby
blackmes1 has joined #ruby
iwmrby has joined #ruby
<newrubycoder>
i've made a connect 4 game, everything is working except the win conditions, which is hard to do without brute force
resin has joined #ruby
<canton7>
it's not exactly brute force over a large area - it's not the end of the world
<marchelzo>
newrubycoder: you inspire me
tchme_sensei815 has quit [Read error: Connection reset by peer]
mercerist has quit [Quit: Computer has gone to sleep.]
yusrideb has joined #ruby
<newrubycoder>
well i can either write down like 160 arrays or i can make logic to check it
skolman has joined #ruby
<newrubycoder>
thanks marchelzo lol
<marchelzo>
lol the 160 arrays approach is a definite no-go
<newrubycoder>
is it possible to incorporate `if`into `each` commands? like the each method will only iterate if a condition is met?
mercerist has joined #ruby
<marchelzo>
just put the condition inside the block you pass to each
resin has left #ruby [#ruby]
<newrubycoder>
ah okay
mercerist has quit [Remote host closed the connection]
skolman has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
resin has joined #ruby
nowhere_man has joined #ruby
ferr1 has quit [Read error: Connection reset by peer]
<herwin>
or .select{ ..condition here }.each{ ... }
blackmes1 has quit [Read error: Connection reset by peer]
ferr1 has joined #ruby
nobitanobi has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
jameser has joined #ruby
slackbotgz has joined #ruby
d0nn1e has quit [Ping timeout: 256 seconds]
haennar has joined #ruby
d0nn1e has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haennar has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
jameser has joined #ruby
millerti has joined #ruby
jameser has quit [Client Quit]
gnufied has quit [Quit: Leaving]
haennar has joined #ruby
Violentr has joined #ruby
brent__ has joined #ruby
rippa has joined #ruby
tchme_se_ has quit []
nowhere_man has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
Derperperd has joined #ruby
tyang has joined #ruby
gnufied has joined #ruby
rwb has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
nowhere_man has joined #ruby
vinumq has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
xen0fon has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
aspiers has quit [Ping timeout: 255 seconds]
slackbotgz has quit [Remote host closed the connection]
jameser has joined #ruby
Xentil has joined #ruby
jose_leeto has joined #ruby
maattdd_ has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
jameser has quit [Client Quit]
__Yiota has joined #ruby
shelling___ has quit [Quit: Connection closed for inactivity]
maattdd has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
jschoolcraft has quit [Quit: peace]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
vondruch__ is now known as vondruch
kent\n has joined #ruby
vinumq has quit [Remote host closed the connection]
ruid has joined #ruby
ResidentBiscuit has joined #ruby
GodFather has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
xen0fon has left #ruby [#ruby]
last_staff has quit [Quit: last_staff]
OMGtechy has joined #ruby
Suresh has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
Derperperd has joined #ruby
ramortegui has joined #ruby
<mekeor>
(how) can i make this ruby-snippet print "Hello world"? -> http://sprunge.us/iNAZ
<mekeor>
i need to find the right alternative to "self" in "(arg = self.to_s)" on line 3
<mekeor>
oh, i'm sorry. the code is incomplete because Log is my own class. gimme a sec
<catphish>
i have an openssl socket, epoll says it's writeable, but a non-blocking write to it raises OpenSSL::SSL::SSLErrorWaitWritable, and trying to write to it again raises "OpenSSL::SSL::SSLError: SSL_write: bad write retry", i don't know how to deal with this, does anyone have any suggestions?
planteater has quit [Quit: WeeChat 1.6]
blackmes1 has quit [Quit: WeeChat 1.6]
certainty has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
igniting has quit [Ping timeout: 240 seconds]
fergal has quit [Quit: fergal]
planteater has joined #ruby
renchan has quit [Quit: Leaving...]
Violentr has quit [Ping timeout: 260 seconds]
u0_a61 has quit [Quit: leaving]
brent__ has joined #ruby
<catphish>
"IO::WaitWritable means SSL needs to write internally so #write_nonblock should be called again after underlying IO is writable"
<baweaver>
newrubycoder: I'm going to let you spend some more time working that out for yourself. I will give you a hint though, you switched x and y in the array accessors and that'll be annoying later.
roamingdog has joined #ruby
<newrubycoder>
im trying but each is so hard, i might try a loop instead
<baweaver>
Visualize this:
<baweaver>
_ | _ | _
<baweaver>
_ | _ | _
<baweaver>
_ | _ | _
<newrubycoder>
yeah
<baweaver>
If you put those in arrays, each row would be a collection of 3 empty cells
<baweaver>
How is each hard?
<agent_white>
"each is so hard, i might try a loop instead" "loops is hard, I might try a loop instead"
<pgm>
baweaver: There really isnt much to show except that when in Ruby mine I try to run a feature, it gives me this error:Error running tests.feature: Cucumber Gem isn't installed for ruby-2.0.0-p648 SDK
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
rikai_ is now known as rikai
armin_ is now known as armin
unmanbearpig has quit [Remote host closed the connection]
unmanbearpig has joined #ruby
GodFather has quit [Read error: No route to host]
kies^ has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
aaaaaaaabbbbbbb has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
jdm has quit [Remote host closed the connection]
jdm has joined #ruby
tau has quit [Remote host closed the connection]
kies^ has joined #ruby
pilne has joined #ruby
Burgestrand has quit [Quit: Closing time!]
sylario has joined #ruby
Fernando-Basso has joined #ruby
tfitts has joined #ruby
montanonic has joined #ruby
Klumben has joined #ruby
snapcase has joined #ruby
klaas has joined #ruby
klaas has quit [Max SendQ exceeded]
tildes has joined #ruby
klaas has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
pawnbox_ has quit [Read error: Connection reset by peer]
Silthias1 has quit [Ping timeout: 240 seconds]
oblique- is now known as oblique
oblique has quit [Changing host]
oblique has joined #ruby
xen0fon has joined #ruby
djbkd has joined #ruby
Silthias has joined #ruby
xall has quit [Ping timeout: 258 seconds]
pawnbox_ has joined #ruby
swills_ has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 260 seconds]
swills_ has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
Lucky_ABA has joined #ruby
ericx2x has joined #ruby
SuperLag_ is now known as SuperLag
cibs has quit [Ping timeout: 258 seconds]
SuperLag has quit [Changing host]
SuperLag has joined #ruby
aaaaaaaabbbbbbb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jgnagy>
it is a crazy long shot and a really weird question, but has anyone heard of an issue with ruby 2.1.7 reading from /proc (specifically /proc/pid#/io) on Ubuntu 12.04 amd64 running kernel 3.2?
<jgnagy>
specifically resulting in `Psych::SyntaxError: (<unknown>): could not find expected ':' while scanning a simple key at line 8 column 1`
cibs has joined #ruby
<jgnagy>
which is mysterious, as there should be no line 8
<jgnagy>
and it seems it only intermittently happens
wrkrcoop has joined #ruby
<jgnagy>
I am struggling to reproduce this problem, but I'm just covering all my bases trying to find an answer
<wrkrcoop>
does this look wrong? res = Net::HTTP.post_form(uri, 'username' => autodesk_email, 'password' => password, 'host' => host, 'isEnabled' => true, 'name' => name, 'port' => port)
<wrkrcoop>
getting `post_form': undefined method `user' for #<String:0x007fae0db0d1d8> (NoMethodError)
<jgnagy>
I've looked over the psych gem's github issues (closed ones, even), I've looked at libyaml source for around 2012, I've looked at fs/proc/base.c in the linux kernel source
<jgnagy>
and I can't find anything in the ubuntu release notes for 12.10 or after that indicates it being a problem that was fixed
boshhead_ is now known as boshhead
Guest67133 has quit [Quit: Leaving...]
pgm has quit [Ping timeout: 260 seconds]
<jgnagy>
wrkcoop, looks like your uri isn't a URI object
preyalone has quit [Quit: Connection closed for inactivity]
gusrub has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
jenrzzz has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
gsilva has joined #ruby
dionysus69 has joined #ruby
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
hotpancakes has joined #ruby
postmodern has joined #ruby
haylon has joined #ruby
<haylon>
Hey everyone. If I want to compare to hashes using MiniTest, would assert_equal be what I want to use?
JeanCarloMachado has quit [Ping timeout: 268 seconds]
geekb4ck_ has quit [Quit: Page closed]
ramortegui has quit [Quit: Ex-Chat]
chouhoul_ has joined #ruby
Silthias1 has joined #ruby
Derperperd has quit [Ping timeout: 260 seconds]
Silthias has quit [Ping timeout: 260 seconds]
<OMGtechy>
depends why you want to compare hashes :)
chouhoulis has quit [Ping timeout: 240 seconds]
wilbert has joined #ruby
<haylon>
I'm having my function return a Hash rather than a formatted JSON. I think I might have figured out my issue. Reading the docs, it says that it compares the diffs as though they're being printed to STDOUT. Since its just outputting it as a single line, but the expectation is pretty formatted, there's an option I had to use called make_my_diff_pretty!
antoniobeyah has joined #ruby
wrkrcoop has joined #ruby
hotpancakes has quit [Remote host closed the connection]
gusrub_ has joined #ruby
hotpancakes has joined #ruby
nobitanobi has joined #ruby
gusrub has quit [Ping timeout: 260 seconds]
gsilva has quit [Ping timeout: 260 seconds]
gusrub_ has quit [Remote host closed the connection]
gusrub has joined #ruby
Jayson_V_ has joined #ruby
Jayson_Virissimo has quit [Read error: Connection reset by peer]
GinoManWorks has quit [Quit: Leaving]
montanonic has quit [Ping timeout: 240 seconds]
username1 has quit [Ping timeout: 260 seconds]
davezd has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
roamingdog has joined #ruby
nobitanobi has quit [Remote host closed the connection]
workmad3 has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
whathappens is now known as Guest45208
[Butch]_ has joined #ruby
roamingd_ has joined #ruby
roamingdog has quit [Ping timeout: 258 seconds]
Guest45208 has quit [Remote host closed the connection]
xzhao has joined #ruby
xzhao has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 268 seconds]
[Butch] has quit [Ping timeout: 260 seconds]
[Butch]_ is now known as [Butch]
haylon has quit [Quit: Leaving]
byte512 has quit [Ping timeout: 264 seconds]
GinoManWorks has joined #ruby
hotpancakes has quit [Remote host closed the connection]
jdm has joined #ruby
gusrub_ has joined #ruby
hotpancakes has joined #ruby
griffindy has joined #ruby
nobitanobi has joined #ruby
raatiniemi has joined #ruby
lacour has joined #ruby
gusrub_ has quit [Client Quit]
Derperperd has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
montanonic has joined #ruby
mtkd has quit [Ping timeout: 246 seconds]
chouhoul_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mtkd has joined #ruby
gusrub has joined #ruby
boombox_ has joined #ruby
aaaaaaaabbbbbbb has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
tfitts has quit [Quit: Connection closed for inactivity]
boombox_ has quit [Remote host closed the connection]
SeepingN has joined #ruby
ElDoggo has joined #ruby
hotpancakes has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<wrkrcoop>
i need to make an xml post request, and send over my username and password, does anyone know if i just send this: <username>myname</username><password>mypassword</password><data>mydata</data>
<ElDoggo>
Anyone know why this regex matches in Rubular, but '123-23-1234'.scan(the_regex) returns an empty array?
<Guest21174>
i thought perl5 and python2 will stop being supported. How can they have a future and the new versions not?
<eam>
who said perl5 will stop being supported?
<bhaak>
look how we programmed 50 years ago
<DLSteve_>
Because so much legacy code is written in them.
<bhaak>
I hope we will programm differently than today in 50 years
* baweaver
looks at Lisp and Haskell
<bhaak>
well, hopefully. it's possible that computers will program themselves in 50 years :)
* baweaver
chuckles
hotpancakes has quit [Remote host closed the connection]
<DLSteve_>
Hopefully on my quantum computer.
tildes has quit [Ping timeout: 240 seconds]
<Guest21174>
so would you advise beginners to learn python2 and perl5?
<baweaver>
fine fine....
yusrideb has quit [Quit: yusrideb]
<baweaver>
Why are we asking about Perl and Python in the Ruby channel?
hotpancakes has joined #ruby
<elomatreb>
WHAT ABOUT JAVASCRIPT
<jhass>
depending on the needs of the beginner probably neither
<DLSteve_>
python2 is not too bad as it's very similar to 3, Not sure about Perl.
<bhaak>
elomatreb: I hope it dies a painful death
<elomatreb>
(Why do I even have a capslock key?)
<jhass>
elomatreb: it's old, the future is wasm. Directly.
<Guest21174>
it's my fault
montanonic has quit [Ping timeout: 240 seconds]
<DLSteve_>
elomatreb, Which version? ES5, ES6, ES2048, FaceookScript?
jose_leeto has joined #ruby
<Guest21174>
I was comparing the claim of Perl6 being for a 100 years to Ruby's future viability
blackmesa has quit [Ping timeout: 260 seconds]
<baweaver>
That's rather asinine. No one has that type of foresight.
<DLSteve_>
No one knows, any one who says they do is lying.
<elomatreb>
"Ruby is for the next 500 years" -- There, now you have a similar claim for Ruby
<Guest21174>
I'm a Rubyist but I'm interested in lots of languages
<baweaver>
Program for now and let the doomsayers on Hackernews blow themselves dry.
<Guest21174>
I know what you mean. But I got the feeling the claim was for a reason
montanonic has joined #ruby
<baweaver>
Yeah, zealotry
<Guest21174>
maybe because everything was adaptable in the language
<Guest21174>
so it could be constantly adapted and not go obsolete .... just what I thought they meant
<eam>
it's a good idea to learn perl if you want to know why ruby is the way it is
<Guest21174>
I've tearned a few others and I always end up thinking, "Holy crap I'm glad I have Ruby"
<bhaak>
it's not a good idea that every programmer can be a language designer
<c-c>
dsl's are bad?
<bhaak>
most dsls are poorly done
<bhaak>
error handling is often bad
<c-c>
bhaak: many eons ago, ancient propheciers gathered the wisdom from many a haxorer, and wrote the mythos: "any sufficiently complicated program will be a half-assed implementation of lisp"
<baweaver>
....including Common Lisp
<baweaver>
Greenspun's Law and Corollary.
<c-c>
Some guy called Greenspun made a law of it since
<baweaver>
"Any sufficiently complicated C or Fortran program contains an ad-hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp."
rwb has joined #ruby
<bhaak>
yeah, it's much better of having the half-assed implementation of lisp in your language. and I mean that seriously
Guest21174 has quit [Quit: Page closed]
<baweaver>
Morris's Corollary, that's what it was.
<c-c>
bhaak: its much better of than was is?
djbkd has quit [Remote host closed the connection]
<bhaak>
c-c: I mean having some of the lisp features directly incorportated in the programming language is better than the ad-hoc implementation in your program
wrkrcoop has quit [Quit: wrkrcoop]
Oldn0rse has quit []
<c-c>
hm, ok, which ones do you like, bhaak
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
szulak has joined #ruby
<bhaak>
that depends on the problem I want to solve :-)
stomar has quit [Ping timeout: 240 seconds]
AlexRussia_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
nobitanobi has joined #ruby
ElDoggo has quit [Remote host closed the connection]
jottr_ has joined #ruby
lxsameer has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
ElDoggo has joined #ruby
cibs has quit [Ping timeout: 258 seconds]
ElDoggo_ has joined #ruby
enterprisey has quit [Remote host closed the connection]
`0x00` has joined #ruby
jottr has joined #ruby
ElDoggo has quit [Remote host closed the connection]
cibs has joined #ruby
roamingdog has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
last_staff has quit [Quit: last_staff]
AlexRussia_ has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
raspado has joined #ruby
bastelfreak1 is now known as bastelfreak
safetypin has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]