baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
case_ has quit [Quit: Leaving]
Disavowed has joined #ruby
tekniq has quit [Ping timeout: 256 seconds]
patarr_ has quit [Ping timeout: 246 seconds]
CloCkWeRX has joined #ruby
aglorei has joined #ruby
haennar has quit [Ping timeout: 256 seconds]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
kinduff has quit [Quit: Textual IRC Client: www.textualapp.com]
cfec0b8d has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
oliv_____ has joined #ruby
volix has quit [Ping timeout: 240 seconds]
lyda has quit [Ping timeout: 240 seconds]
lyda has joined #ruby
volix has joined #ruby
biberu has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
aglorei has quit [Remote host closed the connection]
aglorei has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
millerti has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
Xiti has joined #ruby
jdelreal has joined #ruby
cr3 has quit [Quit: leaving]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
montanonic has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 240 seconds]
tyang has joined #ruby
charliesome has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
mtkd has quit [Ping timeout: 246 seconds]
Gadgetoid has quit [Ping timeout: 240 seconds]
Gadgetoid has joined #ruby
mtkd has joined #ruby
montanonic has joined #ruby
Guest39556 is now known as CrazEd
CrazEd is now known as Guest26257
mim1k has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
tolerablyjake has quit [Ping timeout: 246 seconds]
cibs has joined #ruby
akkad has quit [Excess Flood]
mim1k has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
modlin has quit [Ping timeout: 258 seconds]
Channel6 has joined #ruby
modlin has joined #ruby
Axy has joined #ruby
choke has quit [Ping timeout: 240 seconds]
akkad has joined #ruby
hutch34_ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
Mia has quit [Ping timeout: 240 seconds]
aglorei has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
unreal_ is now known as unreal
<KrzaQ> http://www.rubydoc.info/github/mikel/mail/Mail#deliver-class_method How does this work? I assume to/from/subject/body are methods, but what object are they called on?
username_ has quit [Ping timeout: 260 seconds]
akkad has quit [Excess Flood]
aglorei has joined #ruby
oetjenj has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
<allisio> KrzaQ: They're called on a new instance of Message with #instance_eval.
cschneid_ has joined #ruby
<KrzaQ> What should I google for to get an example of doing that on my own class? I don't think I'll "get" it otherwise
akkad has joined #ruby
<KrzaQ> This is just magic to me :p
<SeepingN> indeed
raspado has quit [Quit: Leaving...]
mim1k has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
hutch34 has joined #ruby
<allisio> KrzaQ: https://eval.in/745764
<allisio> #instance_eval invokes the block with `self` implicitly set to the receiver.
<KrzaQ> thanks
<KrzaQ> okay
<KrzaQ> so it is safe for multithreaded-use, for example?
<allisio> That's pretty circumstantial.
<ElDoggo> exit
<ElDoggo> exit
<allisio> Once more.
ElDoggo has quit [Quit: Page closed]
<SeepingN> "do it again daddy"
benlieb has joined #ruby
<KrzaQ> well, I meant it in the way that there's no global singleton or something that would be used by those methods
montanonic has quit [Ping timeout: 246 seconds]
<KrzaQ> thanks allisio
<SeepingN> put a $ before every variable. Globalization!
<KrzaQ> :)
<allisio> I *think* the GIL would prevent disparate invocations of #instance_eval being interwoven, but take that with a grain of salt.
gloscombe_ has quit [Quit: gloscombe_]
A124 has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
malconis has quit [Read error: Connection reset by peer]
sepp2k has quit [Ping timeout: 260 seconds]
cxr has quit [Ping timeout: 264 seconds]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby
cxr has joined #ruby
bkxd has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
brent__ has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 268 seconds]
marxarelli is now known as marxarelli|afk
mim1k has joined #ruby
postmodern has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
brent__ has joined #ruby
<a1fa> ooo.. anyone know why mail gem is such a b? @html_body = Mail::Body.new(@body); and mail.body = @html_body and email is blank
A124 has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
ap4y has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
Guest26257 is now known as CrazEd
CrazEd is now known as Guest90708
cpruitt has quit [Quit: cpruitt]
skweek has joined #ruby
benlieb has quit [Quit: benlieb]
<a1fa> bueller bueller
pawnbox has joined #ruby
dlundgren has quit [Remote host closed the connection]
benlieb has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
tvw has quit [Ping timeout: 264 seconds]
jaequery has joined #ruby
xall has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lucky_ABA has joined #ruby
cyphase has joined #ruby
jaequery has quit [Client Quit]
antergos has joined #ruby
<a1fa> ;Z
antergos has left #ruby [#ruby]
PaulCapestany has quit [Quit: .]
mikecmpbll has quit [Quit: inabit. zz.]
PaulCapestany has joined #ruby
charliesome has joined #ruby
xall has quit [Ping timeout: 260 seconds]
cxr has quit [Ping timeout: 260 seconds]
modlin has quit [Ping timeout: 260 seconds]
oetjenj has joined #ruby
newrubycoder has joined #ruby
jameser has joined #ruby
tyang has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
Guest79896 has joined #ruby
chouhoulis has joined #ruby
t-recx has quit [Quit: t-recx]
choke has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
zacts has quit [Ping timeout: 258 seconds]
bkxd has quit [Ping timeout: 264 seconds]
Guest79896 has quit [Quit: Konversation terminated!]
choke has quit [Client Quit]
d^sh has quit [Ping timeout: 268 seconds]
d^sh has joined #ruby
herbmillerjr has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
charliesome has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
gusrub has quit [Ping timeout: 264 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beatdown has quit [Quit: Error 666: Connection terminated by the underworld.]
nadir has joined #ruby
CabbageMan69 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<a1fa> vortexx: got it figured out
MasterNayru has joined #ruby
nicolai86 has quit [Quit: ZNC - http://znc.in]
helpa-bot has joined #ruby
helpa has quit [Write error: Broken pipe]
noan_ has joined #ruby
noan has quit [Remote host closed the connection]
br0d1n has quit [Remote host closed the connection]
nicolai86 has joined #ruby
br0d1n has joined #ruby
enterprisey has joined #ruby
Silthias1 has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
oliv_____ has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 247 seconds]
izaac has quit [Ping timeout: 260 seconds]
izaac has joined #ruby
Irishluck83 has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
__Yiota has joined #ruby
cschneid_ has joined #ruby
oliv_____ has joined #ruby
djbkd has joined #ruby
cxr has joined #ruby
Guest90708 is now known as CrazEd
Tramy has joined #ruby
CrazEd is now known as Guest14192
sleetdrop has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
astrobunny has joined #ruby
DaniG2k has joined #ruby
sspreitz has quit [Ping timeout: 264 seconds]
libastral has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
sspreitz has joined #ruby
DaniG2k has quit [Read error: No route to host]
cdg has joined #ruby
ponzi has joined #ruby
libastral has joined #ruby
<ponzi> Just upgraded from OS X Yosemite to Sierra and Ruby 2.4.0 is running 80% slower. Same for Python 3.6 and PHP 7.1. Anyone else noticed this?
Irishluck83 has quit [Quit: WeeChat 1.4]
meinside has joined #ruby
<ponzi> That's with 6GB RAM free in Activity Monitor.
Irishluck83 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mim1k has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
Rodya_ has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 256 seconds]
maloik44 has joined #ruby
maloik has quit [Remote host closed the connection]
ponzi has quit [Quit: Connection reset by pheer]
amclain has quit [Quit: Leaving]
ResidentBiscuit has joined #ruby
PaulCapestany has quit [Quit: .]
marcdel has joined #ruby
pilne has quit [Quit: Quitting!]
antoniobeyah has quit [Quit: Connection closed for inactivity]
PaulCapestany has joined #ruby
bkxd has joined #ruby
PaulCapestany has quit [Client Quit]
br0d1n has quit [Quit: Leaving]
JoshS has joined #ruby
herbmillerjr has joined #ruby
PaulCapestany has joined #ruby
Tramy has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 268 seconds]
howdoi has joined #ruby
PaulCapestany has quit [Client Quit]
enterprisey has joined #ruby
benlieb has quit [Quit: benlieb]
PaulCapestany has joined #ruby
Xentil has quit [Ping timeout: 260 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PaulCapestany has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
rkazak has quit [Quit: Sleep.....ing....]
mim1k has joined #ruby
PaulCapestany has joined #ruby
PaulCapestany has quit [Remote host closed the connection]
haennar has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
dnewkerk has joined #ruby
hays has quit [Ping timeout: 260 seconds]
Irishluck83 has quit [Quit: WeeChat 1.4]
haennar has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Irishluck83 has joined #ruby
sleetdrop has joined #ruby
PaulCapestany has joined #ruby
xall has joined #ruby
Guest14192 is now known as CrazEd
PaulCapestany has quit [Client Quit]
CrazEd is now known as Guest19798
rkazak has joined #ruby
PaulCapestany has joined #ruby
ornerymoose has joined #ruby
braincrash has quit [Quit: bye bye]
oliv_____ has quit [Remote host closed the connection]
PaulCapestany has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: My people need me...]
PaulCapestany has joined #ruby
PaulCapestany has quit [Client Quit]
nowhereman has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
PaulCapestany has joined #ruby
Irishluck83 has quit [Quit: WeeChat 1.4]
EV3RYDAYPR0GRESS has quit [Read error: Connection reset by peer]
cyphase has quit [Ping timeout: 260 seconds]
PaulCape_ has joined #ruby
EV3RYDAYPR0GRESS has joined #ruby
gusrub has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
Irishluck83 has joined #ruby
PaulCape_ has quit [Remote host closed the connection]
cyphase has joined #ruby
PaulCapestany has joined #ruby
PaulCapestany has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
PaulCapestany has joined #ruby
duderonomy has joined #ruby
charliesome has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
jdelreal has quit [Quit: Connection closed for inactivity]
gnufied has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 260 seconds]
matp has quit [Remote host closed the connection]
jeyraof^mbpr has joined #ruby
hays has joined #ruby
matp has joined #ruby
gix has joined #ruby
CloCkWeRX has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has quit [Quit: Sleep.....ing....]
ahrs|AFK has quit [Remote host closed the connection]
ahrs has joined #ruby
Channel6 has joined #ruby
jtdoncas has quit [Ping timeout: 258 seconds]
gusrub has quit []
ramfjord has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Quit: WeeChat 1.7]
Guest19798 is now known as CrazEd
patarr has joined #ruby
CrazEd is now known as Guest83605
patarr has quit [Ping timeout: 258 seconds]
benlieb has joined #ruby
KicStart has quit [Quit: Leaving.]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Irishluck83 has quit [Quit: WeeChat 1.4]
aupadhye has joined #ruby
bkxd has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
reverberations has joined #ruby
nofxxx has joined #ruby
al2o3-cr has joined #ruby
Anonymoose2 has quit [Ping timeout: 268 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 268 seconds]
blackwind_123 has quit [Quit: A fine is a tax for doing wrong. A tax is a fine for doing well.]
SuperLag_ has joined #ruby
enterprisey has joined #ruby
PatrickPlus_ has joined #ruby
SuperLag has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
akkad has quit [Excess Flood]
naprimer has quit [Ping timeout: 255 seconds]
enterprisey has quit [Client Quit]
cschneid_ has quit [Ping timeout: 246 seconds]
akkad has joined #ruby
renchan has joined #ruby
squ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
Channel6 has quit [Quit: Leaving]
Pisuke has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
Pisuke has joined #ruby
pawnbox has joined #ruby
howdoi has joined #ruby
igniting has quit [Ping timeout: 240 seconds]
nanoz has joined #ruby
BadAtom_ is now known as BadAtom
benlieb has quit [Quit: benlieb]
BadAtom has quit [Changing host]
BadAtom has joined #ruby
anisha has joined #ruby
SuperLag_ is now known as SuperLag
SuperLag has quit [Changing host]
SuperLag has joined #ruby
Joufflu has quit [Quit: Leaving]
Guest83605 is now known as CrazEd
CrazEd is now known as Guest59264
anoldhacker has joined #ruby
<anoldhacker> I'm trying to figure out what the system requirements are for ruby. Do we require hw fpu? Do we require 32-bit registers? What else?
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
<baweaver> Was it built in the last 17 years?
<baweaver> if the answer is yes, chances are high it will
<Nilium> I kind of doubt if it'd _require_ a HW FPU, assuming a C compiler could emulate it.
djbkd has quit [Quit: My people need me...]
nanoz has quit [Read error: Connection reset by peer]
<anoldhacker> Well, when I'm looking to optimize some code that currently used the fpu, that becomes an issue.
<baweaver> Ruby probably isn't a good language for low-level. C or Rust would be better.
<anoldhacker> Some of the constant definitions relating to bignums would suggest 8-bit registers would work (I think)
<Nilium> If you're looking to run Ruby on something without an FPU but you still want floating point numbers, I'd have other questions
djbkd has joined #ruby
<Nilium> I can't think of scenarios that involve both Ruby and these questions, really.
zacts has joined #ruby
<anoldhacker> I'm talking about the c code that is ruby. :)
<Nilium> I'm still not sure I can come up with scenarios that involve CRuby and these questions.
pawnbox has quit [Remote host closed the connection]
<allisio> He wants to run Ruby on his toaster.
bkxd has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
GranG has joined #ruby
<Nilium> Well, if NetBSD can run Ruby
pawnbox has quit [Remote host closed the connection]
<allisio> mruby would probably be the better fit there, though.
<anoldhacker> I'm looking to optimize some of this code: https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/57705.
<anoldhacker> He's using the fpu to compute an integer square root. Exactly the right thing to do in many cases, but if the fpu is emulated, you're going to have a slow time compared to code I've got working.
GranG has left #ruby [#ruby]
haraoka has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<anoldhacker> I just double checked. I see several places with #if SIZEOF_INT < SIZEOF_LONG, which sure looks like 16-bit support.
Lucky_ABA has joined #ruby
<Nilium> I'm not sure that's the intended message
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
djbkd has quit [Quit: Leaving...]
<allisio> anoldhacker: Wat.
<allisio> That is, I'm genuinely interested in how you derive 16-bit support from that directive.
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
<anoldhacker> I'm assuming that SIZEOF_INT is the size of an integer register, while SIZEOF_LONG is the size of a long int, that is 32.
<anoldhacker> Well, 32 bits--probably 4.
Xiti has quit [Quit: Xiti]
cxr has quit [Ping timeout: 240 seconds]
<allisio> C's `sizeof` operator has next to nothing to do with registers, as I understand it.
saneax-_-|AFK is now known as saneax
<anoldhacker> I'm not talking about the operator. I'm talking about the #define's.
rakm has joined #ruby
bocaneri has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
igniting has joined #ruby
ResidentBiscuit has joined #ruby
tau has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
<anoldhacker> Yeah, configure has it. SIZE_OF_INT is the size of the int type. SIZE_OF_LONG is the size of the long type.
brent__ has joined #ruby
r3ndta1l has joined #ruby
<allisio> Color me unsurprised.
<r3ndta1l> hi gy , what you recomended books for learning ruby ? ty
brent__ has quit [Ping timeout: 258 seconds]
saneax is now known as saneax-_-|AFK
Qchmqs has joined #ruby
browndawg has joined #ruby
teclator has joined #ruby
patarr has joined #ruby
Guest59264 is now known as CrazEd
saneax-_-|AFK is now known as saneax
CrazEd is now known as Guest58889
oetjenj has joined #ruby
tildes has joined #ruby
bkxd has joined #ruby
certainty has joined #ruby
patarr has quit [Ping timeout: 264 seconds]
astrobunny has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
jgnagy has quit [Remote host closed the connection]
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
ledestin has joined #ruby
Volsus has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
last_staff has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
mtkd has quit [Read error: Connection reset by peer]
r3ndta1l has quit [Quit: BitchX-1.1-final -- just do it.]
mtkd has joined #ruby
qchmqs_ has joined #ruby
qchmqs_ has quit [Client Quit]
qchmqs_ has joined #ruby
qchmqs_ has quit [Client Quit]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
qchmqs_ has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
Qchmqs has quit [Ping timeout: 246 seconds]
oetjenj has joined #ruby
saneax is now known as saneax-_-|AFK
qchmqs_ has quit [Client Quit]
Qchmqs has joined #ruby
bigkevmcd has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes has quit [Ping timeout: 264 seconds]
saneax-_-|AFK is now known as saneax
d0nn1e has quit [Ping timeout: 264 seconds]
oetjenj has quit [Quit: Textual IRC Client: www.textualapp.com]
certainty has quit [Ping timeout: 240 seconds]
padi_ has quit [Remote host closed the connection]
harfangk has joined #ruby
padi_ has joined #ruby
d0nn1e has joined #ruby
montanonic has joined #ruby
conta has joined #ruby
padi_ has quit [Ping timeout: 256 seconds]
Burgestrand has joined #ruby
Pumukel has joined #ruby
hanetzer has joined #ruby
benlieb has joined #ruby
montanonic has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
<hanetzer> So. x-compiled ruby for i686-w64-mingw32. attempted to compile a program that makes use of it, got some failure. https://paste.pound-python.org/show/JQ7VVr4xudOU5jSeMqv5/
Pumukel has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
Snickers has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Pumukel has quit [Read error: Connection reset by peer]
Guest58889 is now known as CrazEd
Pumukel has joined #ruby
CrazEd is now known as Guest69954
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<anoldhacker> hanetzer: Report it as a bug.
leah2 has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 255 seconds]
browndawg has quit [Quit: *Mic Drop*]
<hanetzer> anoldhacker: is it a bug, and not my personal pebcak ?
axsuul has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 256 seconds]
Pumukel has joined #ruby
ta_ has quit [Remote host closed the connection]
Bish has joined #ruby
<anoldhacker> If you know pebcak, then odds are pretty good that you properly RTFM'ed & such. That's pretty clearly an internal ruby blowup, so yeah. Just make a proper report. They'll let you know if it looks like you missed something. It's a cool team.
ta_ has joined #ruby
Snickers has quit [Quit: Snickers]
BTRE has quit [Ping timeout: 240 seconds]
Pumukel has quit [Read error: Connection reset by peer]
<hanetzer> know the lingo eh?
Pumukel has joined #ruby
emin has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
emin has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
<anoldhacker> It's a sign that you're not gormless. :D
<hanetzer> I don't really grok this, though ;)
<anoldhacker> Heh. I'm trying to figure out from configure.in what size registers ruby requires....
toretore has joined #ruby
<hanetzer> honestly I'd love to see ruby's build system get redone. CMake or Kconfig ;)
<hanetzer> autotools is hellacious
mark_66 has joined #ruby
opus has joined #ruby
<anoldhacker> When you see m4, you know it's time to abandon hope...
<hanetzer> yep.
emin has joined #ruby
pawnbox has joined #ruby
teclator has quit [Remote host closed the connection]
maattdd_ has joined #ruby
Mortomes|Work has joined #ruby
antgel_ has joined #ruby
<hanetzer> got some build warnings I'd like to clean up, specifically rb_data_typed_object_alloc->rb_data_typed_object_wrap; can you point me at some information on what a proper port should look like?
maattdd has quit [Ping timeout: 260 seconds]
<anoldhacker> Sorry, no clue building anything but stock Linux.
tvl has joined #ruby
tvl is now known as tobiasvl
<anoldhacker> Anyone here know what size integers are required to build ruby? Can I assume at least 32 bits? What about floating point? Are there systems where it is emulated? (I'm looking to optimize some c-ruby.)
<anoldhacker> I am specifically wondering about the motivation for the #if SIZEOF_LONG > SIZEOF_INT checks sprinked in bignum.c, for instance.
certainty has joined #ruby
yeticry_ has joined #ruby
tau has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
alexherbo2 has joined #ruby
tlaxkit has joined #ruby
hutch34 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
bkxd has joined #ruby
teclator has joined #ruby
nbol has left #ruby [#ruby]
sleetdrop has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
<hanetzer> anoldhacker: yeah... compiling the same program, with the same libs, for linux, does not have a problem. definitely a windows issue.
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<anoldhacker> Cool.
aupadhye has joined #ruby
biberu has joined #ruby
jgnagy has joined #ruby
matp has quit [Remote host closed the connection]
ta_ has joined #ruby
matp has joined #ruby
patarr has joined #ruby
brent__ has joined #ruby
Guest69954 is now known as CrazEd
CrazEd is now known as Guest54796
aupadhye has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
flying has joined #ruby
marr has joined #ruby
mim1k has joined #ruby
mjuhl has quit [Ping timeout: 240 seconds]
jsrn_ has joined #ruby
bweston92_ has joined #ruby
bweston92_ has quit [Client Quit]
dionysus69 has quit [Ping timeout: 256 seconds]
bweston92 has joined #ruby
maattdd_ has quit [Quit: WeeChat 1.7]
maattdd has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
cfec0b8d has joined #ruby
teclator has joined #ruby
cxr has joined #ruby
tomphp has joined #ruby
johnny56 has joined #ruby
mim1k_ has joined #ruby
Volsus has quit [Ping timeout: 256 seconds]
jaruga______ has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
pandaant has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
Beams has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
haennar has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
maattdd_ has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
mim1k_ has quit [Ping timeout: 264 seconds]
doublemalt_ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
batlock666 has joined #ruby
<anoldhacker> Anyone here know what size integers are required to build ruby? Can I assume at least 32 bits? What about floating point? Are there systems where it is emulated? (I'm looking to optimize some c-ruby.) I am specifically wondering about the motivation for the #if SIZEOF_LONG > SIZEOF_INT checks sprinked in bignum.c, for instance.
batlock666 has left #ruby [#ruby]
xall has quit [Ping timeout: 260 seconds]
Aeyris has joined #ruby
jameser has quit [Ping timeout: 260 seconds]
<Aeyris> Hey uh, I just got autobanned by Chanserv from #ror
<Aeyris> given the autobans elsewhere for irccloud i'm assuming that's unintentional
<Aeyris> i don't suppose anyone has overlapping auth and can unban me?
Silex^^ has joined #ruby
Guest54796 is now known as CrazEd
Silex^^ has quit [Client Quit]
CrazEd is now known as Guest96534
segy has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
ferr1 has joined #ruby
aurelien has quit [Read error: Connection reset by peer]
toretore has quit [Ping timeout: 240 seconds]
jdm has joined #ruby
fclausen_ has joined #ruby
Beams has quit [Remote host closed the connection]
fclausen has quit [Ping timeout: 252 seconds]
xall has joined #ruby
Bish has quit [Ping timeout: 258 seconds]
last_staff has quit [Quit: last_staff]
Bish has joined #ruby
pulkit4tech has joined #ruby
Coldblackice has quit [Ping timeout: 268 seconds]
catphish has joined #ruby
doublemalt_ has joined #ruby
Beams has joined #ruby
bkxd has joined #ruby
jdm has quit [Remote host closed the connection]
aurelien has joined #ruby
hutch34 has joined #ruby
CloCkWeRX has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
jdm has joined #ruby
Xentil has joined #ruby
conta has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
opus has quit [Quit: Textual IRC Client: www.textualapp.com]
<catphish> is it possible to programatically decide an "bundle install" time which gems to install, specifically i have gems that only compile under linux and i don't want OSX developers to try to install them
<catphish> ping jhass as i suspect you know the answer
<catphish> *at* "bundle install" time
mekeor has joined #ruby
<Aeyris> catphish: ", platforms: []" on the gem declaration.
<catphish> Aeyris: is there a list of platforms somewhere?
nofxxx has quit [Ping timeout: 260 seconds]
<Aeyris> Check the tzinfo gem dec
<Aeyris> Probably. I don't know where though off the top of my head.
<catphish> thanks, i'll have a look
<catphish> i don't think there are OS specific platforms defined (except mswin)
patarr has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
xen0fon has quit [Quit: xen0fon]
jose_leeto has joined #ruby
Guest96534 is now known as CrazEd
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CrazEd is now known as Guest58877
oliv_____ has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 256 seconds]
<catphish> in my specific case i can solve it using :include => false as it does install ok
charliesome has joined #ruby
blackmesa has joined #ruby
cdg has joined #ruby
oliv_____ has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 258 seconds]
last_staff has joined #ruby
cschneid_ has joined #ruby
mekeor has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
ayonkhan has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
haennar has quit [Ping timeout: 268 seconds]
alexherbo2 has quit [Ping timeout: 268 seconds]
railswebdev has joined #ruby
pawnbox has joined #ruby
conta has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 246 seconds]
certainty has joined #ruby
alexherbo2 has joined #ruby
postmodern has quit [Quit: Leaving]
mekeor has joined #ruby
<mekeor> with Nokogiri, how do i get `<a b="c">` out of `<a b="c"><d>foo</d>bar</a>` ?
doublemalt_ has quit [Ping timeout: 256 seconds]
antgel_ has quit [Ping timeout: 240 seconds]
haraoka has quit [Ping timeout: 240 seconds]
Fernando-Basso has joined #ruby
segy has joined #ruby
haennar has joined #ruby
<Zarthus> .xpath('//a[@b="c"]') might work
<Zarthus> not to say there aren't better solutions, I just need something setup to have more than guesses :)
lupine has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lupine has joined #ruby
haennar has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ResidentBiscuit has joined #ruby
jenrzzz has joined #ruby
haennar has joined #ruby
watersoul has quit [Remote host closed the connection]
charliesome has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
haennar has quit [Ping timeout: 268 seconds]
watersoul has joined #ruby
Burgestrand has joined #ruby
cxr has quit [Ping timeout: 260 seconds]
fclausen_ has quit [Ping timeout: 252 seconds]
doublemalt_ has joined #ruby
antgel_ has joined #ruby
jdm has quit [Ping timeout: 264 seconds]
doublemalt_ has quit [Ping timeout: 264 seconds]
unmanbearpig has joined #ruby
jdm has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
pawnbox has quit [Remote host closed the connection]
rubyR has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<rubyR> trying to extract network bits from ip using IPAddr - basically need 192.168.21 from 192.168.21.101 - any advice?
jameser has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Guest58877 is now known as CrazEd
jameser has quit [Client Quit]
CrazEd is now known as Guest67802
tvw has quit []
certainty has quit [Ping timeout: 258 seconds]
doublemalt_ has joined #ruby
<soahccc_> rubyR: you can get the network address with use of a netmask but what you want is not a valid address. You could split/rejoin the string if you really want that
mim1k has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 268 seconds]
shinnya has joined #ruby
AlexRussia has joined #ruby
cdg has quit [Remote host closed the connection]
modlin has joined #ruby
<dminuoso> catphish: You can use user defined groups.
<dminuoso> And then have the checking done by a wrapper that calls bundle perhaps.
<dminuoso> Or just stuff some code checking at the top of your Gemfile (it is after all *just a ruby script*)
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
jameser has joined #ruby
aupadhye has joined #ruby
sepp2k has joined #ruby
jameser has quit [Client Quit]
Technaton has quit [Ping timeout: 255 seconds]
bkxd_ has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
mim1k has joined #ruby
haennar has joined #ruby
hutch34 has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
haennar has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Quit: Closing time!]
prestorium has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
doublemalt_ has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jaiks has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
pawnbox has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
FastJack has quit [Ping timeout: 260 seconds]
jameser has quit [Client Quit]
KicStart has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tyang has joined #ruby
CloCkWeRX has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
TvL2386 has joined #ruby
jameser has joined #ruby
marcoecc has quit [Remote host closed the connection]
jaiks has joined #ruby
jameser has quit [Client Quit]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
houhoulis has joined #ruby
johnny56 has quit [Read error: Connection reset by peer]
Bish has quit [Ping timeout: 258 seconds]
Guest67802 is now known as CrazEd
FastJack has joined #ruby
CrazEd is now known as Guest50472
Bish has joined #ruby
johnny56 has joined #ruby
rwb has quit [Ping timeout: 258 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
squ has quit [Remote host closed the connection]
haennar has joined #ruby
zacts has quit [Ping timeout: 258 seconds]
zacts has joined #ruby
ornerymoose has joined #ruby
ornerymoose has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
brent__ has joined #ruby
certainty has joined #ruby
Bob8989 has joined #ruby
funnel has quit [Quit: leaving]
funnel has joined #ruby
jose_leeto has quit [Quit: Leaving.]
roamingdog has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
brent__ has quit [Ping timeout: 260 seconds]
houhoulis has quit [Remote host closed the connection]
houhoulis has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
Bob8989 has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
Bob8989|2 has joined #ruby
oliv_____ has joined #ruby
houhoulis has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
modlin has quit [Ping timeout: 240 seconds]
funnel has quit [Remote host closed the connection]
funnel has joined #ruby
oliv_____ has quit [Ping timeout: 258 seconds]
igniting has quit [Ping timeout: 240 seconds]
marahin has joined #ruby
<marahin> Hello. There's a race condition in my Sidekiq worker that might trigger an exception. I'd like to rescue it & retry the worker in that rescue. Is it possible? How do I do that?
jose_leeto has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
oliv_____ has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
<catphish> rubyR: you need the netmask, then its easy, without it, its impossible
hutch34 has joined #ruby
gnufied has joined #ruby
n1ce_ has joined #ruby
cpruitt has joined #ruby
<catphish> rubyR: IPAddr.new('192.168.21.101').mask(24).to_range.first.to_s
<catphish> note that you need to know the mask
<catphish> soahccc_: slightly better than doing string operations ^
<catphish> in fact, you don't need to make the range: IPAddr.new('192.168.21.101').mask(24).to_s
n1ce has quit [Ping timeout: 246 seconds]
jameser has joined #ruby
saneax is now known as saneax-_-|AFK
tvw has quit []
<catphish> >> IPAddr.new('192.168.21.101').mask(24).to_s
<ruby[bot]> catphish: # => uninitialized constant IPAddr (NameError) ...check link for more (https://eval.in/746269)
jameser has quit [Read error: Connection reset by peer]
<catphish> >> require 'ipaddr'; IPAddr.new('192.168.21.101').mask(24).to_s
tvw has joined #ruby
<ruby[bot]> catphish: # => "192.168.21.0" (https://eval.in/746270)
doublemalt_ has joined #ruby
rwb has joined #ruby
chris2_ has joined #ruby
chris2_ is now known as leah2
__Yiota has joined #ruby
tomphp has joined #ruby
igniting has joined #ruby
hanetzer has quit [Ping timeout: 246 seconds]
roamingdog has quit [Remote host closed the connection]
harfangk has joined #ruby
roamingdog has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
Guest50472 is now known as CrazEd
CrazEd is now known as Guest31866
AlexRussia has quit [Ping timeout: 240 seconds]
tvw has quit [Ping timeout: 264 seconds]
bmurt has joined #ruby
cdg has joined #ruby
tvw has joined #ruby
xen0fon has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
malconis has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.7]
modlin has joined #ruby
millerti has joined #ruby
fclausen has joined #ruby
hanetzer has joined #ruby
malconis has quit [Ping timeout: 240 seconds]
funnel has quit [Quit: leaving]
jredville has joined #ruby
malconis has joined #ruby
funnel has joined #ruby
cdg has quit [Remote host closed the connection]
fclausen has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
blackmesa has joined #ruby
AlexRussia has joined #ruby
chouhoulis has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
Derperperd has joined #ruby
modlin has quit [Ping timeout: 246 seconds]
<rubyR> catphish what I need is just a network bits in this case 192.168.21 as a response
<catphish> rubyR: you need to know the network mask in order to do this
chouhoulis has quit [Remote host closed the connection]
baked__beans has joined #ruby
<catphish> rubyR: in my example the netmask was 24, but you need to know what it is
<catphish> rubyR: if you don't know it, what you're asking is impossible
chouhoulis has joined #ruby
<catphish> this code works, but it requires 2 pieces of input, the address, and the mask
<catphish> IPAddr.new('192.168.21.101').mask(24).to_s
yusrideb has quit [Ping timeout: 240 seconds]
<rubyR> catphish have a netmask but not in a cidr basically 255.255.255.0
pifon has joined #ruby
xangria has joined #ruby
<catphish> rubyR: IPAddr.new('192.168.21.101').mask('255.255.255.0').to_s
<catphish> this seems to work :)
<catphish> by the way, "192.168.21" is nonsense, the correct output is "192.168.21.0"
<herwin> which could be 192.168.21.0/41, 192.168.21.0/25, ...
DLSteve has joined #ruby
<rubyR> catphish in this case i'm using just a netbits
<catphish> rubyR: sure, but "192.168.21" is not the right way to express this
<rubyR> yeah it does not make sense per se but in this case that's exactly what i need
<catphish> rubyR: is your netmask guaranteed to always be /24?
skweek has quit [Ping timeout: 256 seconds]
<catphish> because that's the only way that would make sense
<rubyR> nope - but I will alwasys have a netmask matching a proper subnet
VladGh has quit [Read error: Connection reset by peer]
<catphish> rubyR: so what happens when you get this input data...
jschoolcraft has joined #ruby
<mekeor> >> arr = [1,2,3,4,5]; arr[0...-1].map! { |e| 9 }; arr
<ruby[bot]> mekeor: # => [1, 2, 3, 4, 5] (https://eval.in/746347)
<catphish> >> require 'ipaddr'; IPAddr.new('192.168.21.200').mask('255.255.255.128').to_s
<ruby[bot]> catphish: # => "192.168.21.128" (https://eval.in/746348)
tvw has joined #ruby
<catphish> you can't express this as 192.168.21
<mekeor> ruby[bot]: why not [9,9,9,9,9] ?
teclator has quit [Remote host closed the connection]
funnel has quit [Remote host closed the connection]
skweek has joined #ruby
VladGh has joined #ruby
<rubyR> yeah get your point
VladGh has quit [Remote host closed the connection]
<rubyR> does not make any sense to set this up properly
fuzzyhorns has joined #ruby
funnel has joined #ruby
<catphish> the output you're after is called "network address and netmask", the only way to accurately show this is "192.168.21.0/255.255.255.0"
<catphish> the address is meaningless without the mask
VladGh has joined #ruby
<catphish> just want to make sure you understand that the general case can be any length
* soahccc_ hates on google "With our new proto3 language version, you can also work with Go, JavaNano, Ruby, and C#, with more languages to come." and everything is there but Ruby :(
<catphish> rubyR: by the way, if you *really* just want the network bits, consider this: IPAddr.new('192.168.21.200').mask('255.255.255.128').to_i
<catphish> rubyR: that will literally give you the bits you need
ujjain has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 246 seconds]
anisha has quit [Quit: Leaving]
rippa has joined #ruby
arooni has quit [Quit: ZNC - http://znc.in]
Verity has joined #ruby
<Verity> Ruby or Python? Why?
<tobiasvl> Verity: ruby because you're in #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
doublemalt_ has quit [Ping timeout: 264 seconds]
arooni has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<canton7> Verity, why are you asking that in every programming channel I'm in?
AlexRussia has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
<Verity> canton7, it eats away at me every day not being able to answer these questions
VladGh has quit [Remote host closed the connection]
<Verity> I'm the type that feels like I need to fully explore and know all there is to know about something
<Verity> with programming, this is presenting a major issue
<Verity> and driving me mad
<fuzzyhorns> Verity: except insofar you research on your own lol
ramfjord has quit [Ping timeout: 246 seconds]
<Verity> (as it is impossible with such a vast field)
<fuzzyhorns> this comes up a lot
VladGh has joined #ruby
Technaton has joined #ruby
psychicist__ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 256 seconds]
<Verity> Would I choose ruby for console applications? or a gui?
<fuzzyhorns> and my answer is always the same: if you wanna do NLP or math, Python has better libraries. if you don't need those things, Ruby is a great language for getting working tasks done
Silthias1 has quit [Ping timeout: 268 seconds]
<Verity> or is it going to be more when I'm working with web
<fuzzyhorns> Verity: gui i doubt it, but i like using Ruby for clis
mtkd has joined #ruby
<fuzzyhorns> Verity: web, absolutely, very rich ecosystm
millerti has joined #ruby
leah2 has quit [Quit: WeeChat 1.7]
quiller has quit [Quit: I out! ::mic drop::]
leah2_ has joined #ruby
quiller has joined #ruby
mickey has joined #ruby
leah2_ is now known as leah2
cyphase has joined #ruby
<Verity> What ruby book should I start with? Coming from C++
cdg_ has joined #ruby
mickey is now known as `0x00
`0x00 is now known as false
Guest31866 is now known as CrazEd
oliv_____ has quit [Remote host closed the connection]
mim1k has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
CrazEd is now known as Guest68648
oliv_____ has joined #ruby
false is now known as `0x00`
<Verity> ty
Guest76598 has joined #ruby
GBrawl has joined #ruby
<z64> what i usually stress to people learning ruby: play with your food (code). if you have ruby, you can run "irb" at your command line and play with code interactively. try things out as you read them, etc.
skweek has quit [Ping timeout: 240 seconds]
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
pawnbox has joined #ruby
AlexRussia has joined #ruby
geekb4ck_ has joined #ruby
xangria has quit [Ping timeout: 256 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
bkxd has quit [Ping timeout: 260 seconds]
Axelay has quit [Ping timeout: 240 seconds]
Axy has quit [Ping timeout: 268 seconds]
GBrawl has quit [Quit: (null)]
CloCkWeRX has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
<geekb4ck_> Hello. Getting Errorno::EADDRINUSE when attempting to use a DGRAM socket. Line 2 is throwing the error and I cannot sort out why. The file exists, I can connect with socat. Can anyone have a peek and help me out? http://pastebin.ca/3774882
<catphish> what is the difference betwen TCPSocket.new and Socket.tcp?
<agent_white> Mornin' folks
ta_ has quit [Remote host closed the connection]
<geekb4ck_> Morning :)
Qchmqs has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
pulkit4tech has quit [Quit: pulkit4tech]
cschneid_ has joined #ruby
xangria has joined #ruby
koooge has joined #ruby
tau has joined #ruby
teclator has joined #ruby
Axelay has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
antgel_ has quit [Ping timeout: 260 seconds]
<Verity> I'll give that a shot
certainty has quit [Ping timeout: 264 seconds]
ResidentBiscuit has joined #ruby
<al2o3-cr> geekb4ck_: `rm /tmp/mysocket.sock` || `File.unlink('/tmp/mysocket.sock')` from ruby and try again. you can't bind to the same path twice (which is what it sounds like you've done:)
rubyR has quit [Quit: Page closed]
hanetzer has left #ruby ["WeeChat 1.7"]
blackmesa has joined #ruby
<geekb4ck_> al2o3-cr: the file is created by a different process. im just connecting to it.
<al2o3-cr> geekb4ck_: you paste shows you're binding to it
<geekb4ck_> al2o3-cr: ok. so how do i specify the path of the socket i want to read/write?
ResidentBiscuit has quit [Ping timeout: 246 seconds]
<geekb4ck_> (not being smart, just genuinely dumb)
nhhc has joined #ruby
Derperperd has quit [Ping timeout: 256 seconds]
xall has quit [Ping timeout: 256 seconds]
<al2o3-cr> UNIXSocket.new("/tmp/mysocket.sock")
<geekb4ck_> that opens a SOCK_STREAM socket. I need to open a SOCK_DGRAM socket.
Burgestrand has joined #ruby
<al2o3-cr> my bad it does
<geekb4ck_> this is why I'm pulling my hair out.
xen0fon has quit [Quit: xen0fon]
Asher1 has joined #ruby
Asher has quit [Ping timeout: 268 seconds]
<geekb4ck_> so that is why i have gone to using a 'Socket' object rather then UNIXSocket so I can specify the SOCK_DGRAM, but am unsure how to tell that socket what path to use.
Derperperd has joined #ruby
samdvr has joined #ruby
<al2o3-cr> geekb4ck_: would just be sock.connect
AlexRussia_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 268 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
samdvr has quit [Quit: samdvr]
Asher1 has quit [Quit: Leaving.]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
Axelay has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Jayson_Virissimo has joined #ruby
Asher has joined #ruby
roamingdog has joined #ruby
<catphish> geekb4ck_: a datagram socket doesn't necessarily have a remote destination, like UDP you can specify the destination each time you call sendto
<catphish> geekb4ck_: you can likely also call connect() to set a default destination, but i'm not sure
roamingdog has quit [Remote host closed the connection]
skweek has joined #ruby
<catphish> or so is my understanding of SOCK_DGRAM
<geekb4ck_> catphish: when i try to use the 'connect' i get "Protocol wrong type for socket"
TvL2386 has quit [Quit: Ex-Chat]
roamingdog has joined #ruby
<catphish> you may need to set up an address object
tdy has quit [Read error: Connection reset by peer]
<catphish> or you could just try setting the destination in the sendto
<geekb4ck_> addrinfo.unix("path")
<catphish> seems sensible
<al2o3-cr> geekb4ck_: that uses SOCK_STREAM
<catphish> i'm afraid i'm just guessing now, this is all i know
modlin has joined #ruby
mim1k has joined #ruby
<al2o3-cr> geekb4ck_: s = Socket.new Socket::AF_UNIX, Socket::SOCK_DGRAM; s.connect Socket.pack_sockaddr_un('/tmp/mysocket.sock')
<al2o3-cr> thats it
Burgestrand has quit [Quit: Closing time!]
<catphish> al2o3-cr: cool :)
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<catphish> i just discovered that there's Socket.tcp as well as TCPSocket.new, i have no idea why, it bothers me
pandaant has quit [Remote host closed the connection]
<catphish> one returns a TCPSocket, the other returns a Socket, i assume TCPSocket has more TCP specific functonality
<al2o3-cr> catphish: with Socket.tcp you can specify a timeout
<catphish> al2o3-cr: is that a new feature? i notice that wasn't in 2.9
<catphish> *1.9
<al2o3-cr> catphish: hmm... not sure
<catphish> i know this because i just overrode both (based on 1.9 docs), and i accidentally forget to accept the timeout, and it broke :)
roamingdog has quit [Ping timeout: 240 seconds]
<catphish> and yes, i wish i didn't have to override them, but life is cruel
<al2o3-cr> ^-^
<al2o3-cr> **
<catphish> i need everything in my app that uses TCP to be forced through a proxy
<catphish> so i got hacky :(
<catphish> i hope nothing opens TCP sockets in more imaginative ways
pawnbox has quit [Ping timeout: 240 seconds]
<al2o3-cr> hack all the things
Rodya_ has joined #ruby
tdy has joined #ruby
Muz_ is now known as Muz
Guest76598 has quit [Quit: Konversation terminated!]
hutch34 has quit [Ping timeout: 240 seconds]
<mekeor> how can i do something like "string".drop_while { |c| c != ' ' } which doesn't work because there's no String.drop_while but only Array.drop_while?
Guest68648 is now known as CrazEd
CrazEd is now known as Guest93539
<canton7> "string".chars.drop_while... ?
catphish has left #ruby ["Leaving"]
<mekeor> nice, thänks <3 (=
Volsus has joined #ruby
<mekeor> hm, and then, i have to make it a string again... mmmh
cschneid_ has joined #ruby
TomyWork has joined #ruby
<canton7> .join
Suslov has joined #ruby
Axelay has joined #ruby
<mekeor> neat
bkxd has joined #ruby
ironcame1 is now known as ironcamel
Suslov has quit [Read error: Connection reset by peer]
Volsus_ has joined #ruby
<mekeor> >> " foo ".strip # nice, too
<ruby[bot]> mekeor: # => "foo" (https://eval.in/746437)
`0x00` has quit [Ping timeout: 240 seconds]
Volsus has quit [Ping timeout: 260 seconds]
aufi has quit [Quit: Leaving]
patarr has joined #ruby
AlexRussia_ has quit [Ping timeout: 246 seconds]
hutch34 has joined #ruby
fclausen has joined #ruby
aganov has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
nowhere_man has joined #ruby
<TomyWork> in lua, setting a table element to nil removes it. is there something similar in ruby?
Beams has quit [Quit: .]
cr3 has joined #ruby
fclausen has quit [Ping timeout: 252 seconds]
<baweaver> TomyWork: Hash.delete
<baweaver> &ri Hash#delete
conta has quit [Ping timeout: 246 seconds]
<baweaver> Also you may want to read up on Enumerable if you're just getting into Ruby
<baweaver> &ri Enumerable
<TomyWork> baweaver i was contemplating adding language to that question to explicitly exclude Hash.delete, but i thought to myself "nah they'll know what i mean"
<baweaver> setting it to nil just sets it to nil, it'll still be there
<TomyWork> and there is no other value i can set it to to remove it?
<baweaver> Nope
mim1k has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tlaxkit has quit [Quit: ¡Adiós!]
<baweaver> Treat one language like another at your own peril. All languages have their ways of doing things, so asking if it can do something Lua does is a very odd question. Asking how to remove a key from a Hash, on the other hand, is straightforward.
pawnbox has joined #ruby
<cr3> when using double().as_null_object, in rspec-mocks, what can I expect the default value to equal as in: expect(double().as_null_object.foo).to eq(what_should_I_put_here?)
mark_66 has quit [Remote host closed the connection]
ptulskie has joined #ruby
* baweaver needs to look up as_null_object
omninonsense has joined #ruby
Volsus_ has quit [Remote host closed the connection]
Volsus has joined #ruby
<baweaver> That feels dirty to me
<baweaver> it'd literally return the double, but that seems pointless in your example
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> black holing anything sounds like a bad idea.
brent__ has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
<Jayson_Virissimo> TomyWork: What's your use case for wanting to set a hash key to something to remove it?
certainty has joined #ruby
mekeor has quit [Quit: luv]
brent__ has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
brent__ has joined #ruby
Beams has joined #ruby
Volsus has quit [Ping timeout: 246 seconds]
<Jayson_Virissimo> If you are just using the presence or absence of a key for something and don't care about the associated value, you might be better off using a set instead of a hash.
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
shinnya has quit [Ping timeout: 260 seconds]
koooge has quit [Quit: Leaving...]
blackmesa has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
Derperperd has quit [Max SendQ exceeded]
cxr has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
Volsus has joined #ruby
yoones has joined #ruby
<yoones> hi. is there a way to call a module's instance method *without* modifying the module itself nor writing a class that would extend?
<yoones> I guess there's some equivalent to #send
<yoones> but for module's instance methods
cxr has quit [Ping timeout: 264 seconds]
<anoldhacker> object.extend(ModuleName) ; object.send(:method)
<yoones> I would still need to do something like object = Object.new first
<yoones> isn't there any way to not need instanciation?
<anoldhacker> Yep. You must have an instance in order for instance methods to work.
<yoones> could you please help me understand why? since my method doesn't do anything with an instance context (no instance variables, no calls to other methods, etc.)
<anoldhacker> If there is an instance method of a module that does NOT require an object, then it's not really much of an instance method. Do you have an example?
username1 has joined #ruby
mim1k has joined #ruby
Volsus has quit [Ping timeout: 260 seconds]
<yoones> a method that's inside a module. this methods just calls puts
<anoldhacker> Actually, Rails does this a lot. There is this pattern of making class methods visible via instance methods that just call the class method. But that's really a hack.
ldnunes has joined #ruby
<yoones> you mean Class.new.extend(UsefulThings).get_file ?
<yoones> nice hack
<marahin> btw, is irclog.whitequark.org/ruby/ working for any of you (see topic)?
amclain has joined #ruby
<baweaver> nope
<baweaver> ah wait
<baweaver> yep
<baweaver> just taking a while to load.
<cr3> baweaver: you raise a good point, about blackholing everything. I think it's acceptable for things that don't matter in the test but, if that's really the case, then I shouldn't be expecting/asserting on those values. thanks for the advice!
<yoones> ok thanks anoldhacker
<anoldhacker> I see what's happening.
<baweaver> cr3: true, I just know I've introduced regressions before like that
<anoldhacker> The problem is that these instance methods aren't really what you want at all.
<havenwood> marahin: You could try: http://logs.ryanbigg.com/ruby
<baweaver> ohai havenwood, welcome back
<marahin> havenwood this one works. thank you
<havenwood> \o
<anoldhacker> In as much as they are _instance_ methods that don't really have anything to do with the instance.
<anoldhacker> They should be module methods, so that they can be called directly from anywhere.
roamingdog has joined #ruby
<yoones> anoldhacker, actually I want to write rspec tests for this module's methods that will later be included in a bunch of classes
<yoones> the classes themselves are tested, but I think it'd be best to test the module separatly
<baweaver> Then just make a sample class
<anoldhacker> ^^^
<anoldhacker> I do this a lot for testing modules and superclasses.
xen0fon has joined #ruby
[Butch] has joined #ruby
<Fetch> yoones: honestly, any trickery you can do to avoid creating/instantiating a class in your testing you should probably avoid. It'll be gross and not really better (such as calling module_exec or something)
roamingdog has quit [Ping timeout: 258 seconds]
millerti has joined #ruby
modlin has quit [Quit: Konversation terminated!]
jsrn_ has quit [Quit: Leaving]
<yoones> ok guys, thank you for the advice
<yoones> I'll go the clean way :)
mtkd has quit [Ping timeout: 240 seconds]
<anoldhacker> Anyone here know what size integers are required to build ruby? Can I assume at least 32 bits? What about floating point? Are there systems where it is emulated? (I'm looking to optimize some c-ruby.) I am specifically wondering about the motivation for the #if SIZEOF_LONG > SIZEOF_INT checks sprinkled in bignum.c, for instance.
mtkd has joined #ruby
dn` has quit [Quit: dn`]
Volsus has joined #ruby
Lucky_ABA has joined #ruby
certainty has quit [Ping timeout: 268 seconds]
Suslov has joined #ruby
[Butch] has quit [Ping timeout: 246 seconds]
dn` has joined #ruby
conta has joined #ruby
<anoldhacker> yoones: You still there?
[Butch] has joined #ruby
montanonic has joined #ruby
benlieb has joined #ruby
Guest93539 is now known as CrazEd
skweek has quit [Ping timeout: 240 seconds]
CrazEd is now known as Guest98519
conta has quit [Client Quit]
<yoones> anoldhacker, yes
Volsus has quit [Ping timeout: 260 seconds]
<yoones> anoldhacker, about your question, sizeof(long) depends on the system you're running. some 64bit systems have it 4bytes, others have it 8bytes
<yoones> so it's always a good idea to test for its size and not assume either option
<baweaver> There was also the unification of Bignum into Integer
<baweaver> then again I'm not a good person for the low level
<yoones> anoldhacker, can you be more specific about what you're trying to do?
troulouliou_div2 has quit [Quit: Leaving]
Reihar-_- has joined #ruby
blackwind_123 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
fuzzyhorns has quit [Quit: Leaving.]
jottr has joined #ruby
AlexRussia_ has joined #ruby
<anoldhacker> I'm looking to optimize some code for a recent commit. Specifically, https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/57705. I've got a couple of working algorithms, but which ones make sense (and when) depends heavily on these two questions.
gusrub has joined #ruby
<anoldhacker> Sorry for the afk, I needed to change mice...
Lord_of_Life has quit [Excess Flood]
xall has joined #ruby
jottr has quit [Client Quit]
<anoldhacker> Yoones, I read your question on SO. The real problem is the kitchen sink class. Your team will regret it--this is just one of many pains to come.
Anonymoose2 has joined #ruby
Lord_of_Life has joined #ruby
reverberations has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
jottr has quit [Client Quit]
<Reihar-_-> Hi
jottr has joined #ruby
<Reihar-_-> I'm looking to learn ruby. So far, I'm mostly finding tutorials aimed at people learning their first languages. There's a page on the ruby lang website about coming to ruby from other languages. Any other good ressources of the same kind?
<baweaver> Reihar-_-: see the channel topic, we have a books list
<yoones> anoldhacker, I'm sorry I didn't read the whole thing, but if you have two functions that depend on sizeof(long), why not put them both in your code and call the right one depending one the system that's running?
<centrx> Reihar-_-: Also Ruby Monk and Ruby Koans
centrx has quit []
<baweaver> Short version: Eloquent Ruby - Learn to Ruby like a Ruby person.
xall has quit [Ping timeout: 240 seconds]
jottr has quit [Client Quit]
<Reihar-_-> Thanks
xangria has quit [Ping timeout: 258 seconds]
xall has joined #ruby
<anoldhacker> No need for a 16-bit algorithm if ruby requires 32 bits. No need for an algorithm which is slower than fpu sqrt if fpu is never emulated.
<baweaver> havenwood: you know if any of the low level folks are about?
jottr has joined #ruby
Derperperd has joined #ruby
<anoldhacker> baweaver: Just ask your question...
<LambdaSix> Surely if you want any actual performance in Ruby, you write it as a c module >_>
<baweaver> I was asking for your sake
mikecmpbll has quit [Quit: inabit. zz.]
<anoldhacker> :D
BTRE has joined #ruby
<baweaver> I don't know much below the surface and some other people might
<anoldhacker> LambdaSix: It is.
mim1k has quit [Ping timeout: 268 seconds]
<LambdaSix> Ah
caironoleto has joined #ruby
yoones has quit [Quit: Leaving]
<anoldhacker> I couldn't find it documented anywhere, and the config code would seem to imply 32-bit minimum, but there is that conditional I mentioned...
<anoldhacker> Likewise, there is nothing about the fpu, but that doesn't mean that fpu emulation would actually work.
<baweaver> You might also ask the mailing lists, a lot of the JP core devs are on there frequently but tend to avoid IRC.
<LambdaSix> A) C doesn't define the size of long/int consistantly 2) There's no gaurantee of a FPU (Though it's /highly/ likely to be present on modern architectures)
<LambdaSix> So if you want to know the size of an int, you ask the compiler :)
<anoldhacker> I cannot ask your compiler from my machine. :) If Ruby requires 32-bit ints, then I don't need to worry about a 16-bit version of these algorithms.
<LambdaSix> I'm curious why you're picking such a small/specific optimisation
<LambdaSix> BUt whatever, I'm going hooooome
<anoldhacker> It's new, and the code's performance (relative to what it could be) is pretty bad.
jottr has quit [Quit: WeeChat 1.7]
troulouliou_div2 has joined #ruby
blackmesa has joined #ruby
<LambdaSix> If your algorithm is word size dependent, then you should assert the size of the word before trying to do anything with it.
<LambdaSix> calcSqrt32() calcSqrt16() -- switch (sizeof(int)) { case 4: ... case 8: ...}
<LambdaSix> etc etc
xall has quit [Ping timeout: 240 seconds]
<anoldhacker> And if ruby only works for 32-bit or more ints, then why have the calcSqrt16() at all?
<anoldhacker> And you generally do these things at compile time...
OTORelic has joined #ruby
bkxd has joined #ruby
Cohedrin has joined #ruby
<LambdaSix> Not when writing portable C, you either set a minimum required size (int32_t) or be flexible on it (int_least32_t) or don't care (int)
<LambdaSix> fwiw, ruby appears to require at least an i386, x86_64, PPC or PPC64 to build correctly
Terminal_Jack has joined #ruby
Terminal_Jack has left #ruby ["Session terminated!"]
<anoldhacker> Where do you see this?
<LambdaSix> configure.in
caironoleto has left #ruby [#ruby]
<LambdaSix> My gut feeling is that Ruby is effectively >=32bit because of it's compilation requirements and that.. well, no-one actually runs 16bit platforms anymore.
jottr has joined #ruby
jaruga_______ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jredville has quit [Ping timeout: 240 seconds]
doublemalt_ has joined #ruby
Rodya_ has joined #ruby
<LambdaSix> Even still, the naive implementation of intsqrt(n) gives a performance of 54,219 invocations per second
chouhoulis has quit [Remote host closed the connection]
jaruga________ has joined #ruby
jaruga_______ has quit [Read error: Connection reset by peer]
renchan has quit [Quit: Leaving...]
ferr1 has quit [Quit: WeeChat 1.6]
Immune has joined #ruby
jaruga______ has quit [Ping timeout: 256 seconds]
pilne has joined #ruby
tildes has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
<havenwood> baweaver: A couple appear to be on right now in #ruby-core, so that might be worth a shot.
Rodya_ has quit [Ping timeout: 246 seconds]
tolerablyjake has joined #ruby
<havenwood> LambdaSix: With a quick glance I don't see anything 16 tested against: http://rubyci.org/
Beams has quit [Quit: .]
dionysus69 has joined #ruby
<TomyWork> Jayson_Virissimo well there's this json api that i'm passing json-encoded ruby hashes to. there's one optional sub-object in that json object that i want to fill from the result of a method. I just needed something to return in case it's not supposed to be there.
<TomyWork> Jayson_Virissimo however, turns out the API tolerates an empty sub-object, so i'm just using that
omninonsense has quit [Quit: WeeChat 1.4]
nowhere_man has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby
certainty has joined #ruby
<anoldhacker> There are some references to target_cpu of "le32", but that might be one of the designations for ppc...
roamingdog has quit [Ping timeout: 240 seconds]
Violentr has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
<anoldhacker> Ahh.. alpha* sh4 ; sh4el, sh4eb...
<anoldhacker> sparc
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<anoldhacker> Oh boy.. m68*, hppa*
alibby1 has joined #ruby
digital-ghost has joined #ruby
digital-ghost has quit [Client Quit]
BAZkiller has joined #ruby
fuzzyhorns has joined #ruby
gusrub has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Pumukel has joined #ruby
Violentr has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
sungasu has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
sungasu has quit [Client Quit]
certainty has quit [Ping timeout: 260 seconds]
loechel has joined #ruby
ldnunes has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 268 seconds]
emin has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
Asher has quit [Quit: Leaving.]
oliv_____ has joined #ruby
Violentr has joined #ruby
loechel has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
kernelPaniq has joined #ruby
Asher has joined #ruby
fclausen has joined #ruby
Guest78872 is now known as c-c
kernelPaniq has quit [Remote host closed the connection]
pnus has joined #ruby
kernelPaniq has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
stomar has joined #ruby
Pumukel has joined #ruby
tomphp has quit [Client Quit]
renchan has joined #ruby
fclausen has quit [Ping timeout: 252 seconds]
pnus has quit [Quit: Page closed]
oliv_____ has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
anothertau has joined #ruby
samdvr has joined #ruby
samdvr has quit [Client Quit]
nowhere_man has joined #ruby
tomphp has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
cr3 has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 260 seconds]
jredville has joined #ruby
kirun has joined #ruby
Rodya_ has joined #ruby
raspado has joined #ruby
polishdub has quit [Remote host closed the connection]
Oldn0rse has joined #ruby
Oldn0rse has quit [Changing host]
Oldn0rse has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
t-recx has joined #ruby
cxr has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
tomphp has joined #ruby
oliv_____ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
rakm has joined #ruby
newrubycoder has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Violentr has quit [Ping timeout: 240 seconds]
newrubycoder has joined #ruby
cxr has quit [Ping timeout: 264 seconds]
tomphp has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
haennar has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
Pumukel has joined #ruby
ptulskie has quit [Quit: Linkinus - http://linkinus.com]
tomphp has joined #ruby
MrBusiness has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
flying has quit []
chouhoulis has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
mikeiniowa has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
banandana has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
bkxd has joined #ruby
__Yiota has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bob8989|2 has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
JoshS has quit [Ping timeout: 268 seconds]
jaruga________ has quit [Quit: jaruga________]
doublemalt__ has joined #ruby
__Yiota has quit [Ping timeout: 256 seconds]
oliv_____ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
oliv_____ has joined #ruby
jdm has quit [Quit: Leaving]
__Yiota has joined #ruby
doublemalt_ has quit [Ping timeout: 264 seconds]
newrubycoder has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
__Yiota has quit [Ping timeout: 264 seconds]
__Yiota has joined #ruby
polishdub has joined #ruby
polishdub has quit [Client Quit]
dionysus69 has joined #ruby
benlieb has quit [Quit: benlieb]
padi_ has joined #ruby
polishdub has joined #ruby
nanoz has joined #ruby
binaryplease has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
padi_ has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
cdg has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
cibs has joined #ruby
fuzzyhorns has joined #ruby
Hobbyboy has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 260 seconds]
p0p0pr37 has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 256 seconds]
p0p0pr37 has joined #ruby
cdg_ has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 246 seconds]
roamingdog has joined #ruby
dn`_ has joined #ruby
dn`_ has quit [Client Quit]
roamingdog has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
dn` has quit [Ping timeout: 260 seconds]
dn`_ has joined #ruby
gloscombe_ has joined #ruby
gloscombe_ has quit [Client Quit]
gloscombe_ has joined #ruby
prestorium has quit [Quit: Leaving]
rdark has joined #ruby
safetypin has joined #ruby
SeepingN has joined #ruby
nofxx has joined #ruby
jredville has quit [Ping timeout: 246 seconds]
OMGtechy has joined #ruby
s0l__ has quit [Ping timeout: 252 seconds]
s0l__ has joined #ruby
Hobbyboy has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
jredville has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
leandroalemao has joined #ruby
ta_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
<leandroalemao> Hi folks
jredville has quit [Ping timeout: 268 seconds]
mtkd has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Quit: Leaving...]
mtkd has joined #ruby
chouhou__ has joined #ruby
ta_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
nanoz has quit [Read error: Connection reset by peer]
haennar has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
cxr has joined #ruby
<havenwood> leandroalemao: hi
<leandroalemao> havenwood: hi.. are you alright?
nowhere_man has quit [Ping timeout: 268 seconds]
<havenwood> leandroalemao: Have anything Ruby-related to show us or get help with?
nowhere_man has joined #ruby
fclausen has joined #ruby
<leandroalemao> havenwood: I've got 3 years of experience now working with ruby and trying to get a new job.. but I'm failing on coding test interviews.. I don't know why.. the two interviews I failed I made all tests pass and completed the kata.. but I think It needs something else I'm missing
ta_ has quit [Remote host closed the connection]
cxr has quit [Ping timeout: 240 seconds]
<leandroalemao> havenwood: started to re-read some books again.. specially that sandi metz book and the rails antipatterns..
<Jayson_Virissimo> If you passed completed the coding challenges, then maybe work on other things besides code.
fclausen has quit [Ping timeout: 252 seconds]
Xentil has quit [Ping timeout: 260 seconds]
<Jayson_Virissimo> Attitude, grooming, etc...
<c-c> Perhaps reposition yourself on the field so that the competition isn't a problem
<OMGtechy> The company I worked for once interviewed someone with incredible technical ability, far better than anyone I'd met before, but he was such a dick to those around him he wasn't hired.
<OMGtechy> I'm not saying you're a dick, I'm saying that there are potentially other issues you're overlooking :)
<leandroalemao> Jayson_Virissimo: the feedback was good about those bits.. but I think the two companies were looking for senior level developers.. but the salary was like for a junior/upper junior levels dev..
<OMGtechy> Have you tried asking them why they didn't hire you?
pifon has quit [Quit: Connection closed for inactivity]
<Jayson_Virissimo> They likely won't say, because they take on risk with virtually no reward.
<Jayson_Virissimo> Still, two companies isn't very much.
npgm has joined #ruby
wrkrcoop has joined #ruby
<OMGtechy> That's not been my experience, but I get that some places won't. Asking is low risk and low effort for you too, so even if they don't answer you've not lost much :)
<Jayson_Virissimo> Can't infer much from two data points. Could just be noise: there were better candidates than you that time.
<wrkrcoop> hi am i doing something wrong? this isnt getting called when i pass in ‘yes’ https://gist.github.com/anonymous/59fca58014b169ec2451e25c9ce95856#file-a-rb-L11
<wrkrcoop> or y
username1 has quit [Ping timeout: 240 seconds]
<wrkrcoop> oh think im forgetting chomp?
<OMGtechy> quite possibly
<leandroalemao> OMGtechy: yes I got it the point.. the weirdest thing is.. the feedback was well good about all non-technical bits.. they said I failed because the dev skills itself.. but all tests passed in the coding test and with neat solutions..
<havenwood> wrkrcoop: create_another = gets chomp: true
<havenwood> wrkrcoop: (if it's Ruby 2.4)
<OMGtechy> you can use puts "\"#{create_another}\"" to debug it too
<havenwood> or better yet: p create_another
<wrkrcoop> thank you!
Jayson_Virissimo has quit []
<OMGtechy> leandroalemao, did you push them for any more than that? i.e. what about it in particular; approach, knowledge of the language, etc
binaryplease has quit [Ping timeout: 246 seconds]
<leandroalemao> OMGtechy : I don't know if this changes something I'm in the UK.. I don't know where you guys are from
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pifon has joined #ruby
<OMGtechy> I'm in the UK :)
millerti has joined #ruby
<OMGtechy> Jayson has a fair point too about the number of samples
<leandroalemao> OMGtechy: no I've forgotten to ask for details.. just read the feedback emails.. for example this one I received from one of the companies: "I'm writing to folks now to let them know we've filled our vacancy. In terms of feedback: you came over really well and we enjoyed chatting to you; you're friendly and clearly very enthusiastic. We also felt like you got the model and were excited about the
<leandroalemao> opportunity. In the end, though, we didn't feel like your coding skills quite matched what we're looking for right now."
<OMGtechy> well that's good ! you can learn programming skills, much harder to learn personal skills
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<OMGtechy> what was the role?
<OMGtechy> Principal Engineer? Graduate?
BAZkiller has quit [Ping timeout: 260 seconds]
<SeepingN> wow. no one ever took the time to write that the las ttime I was looking
<leandroalemao> OMGtechy defo agree.. but they want to pay £40k year.. for a senior developer.. I guess those salaries are more like for upper junior/mid level devs..
bkxd has joined #ruby
<OMGtechy> that's pretty normal
<OMGtechy> for a Senior
<OMGtechy> (depending on where you are in the country)
tdy has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
<leandroalemao> OMGtechy I'm Liverpool based but the company is in Manchester..
<OMGtechy> that's not so bad then
<OMGtechy> it's not the most expensive place to live
<leandroalemao> OMGtechy: the role title was 'Senior Ruby Developer'
<c-c> worrying about what people want to pay is like... futile
rdark has quit [Quit: leaving]
chouhou__ has quit [Remote host closed the connection]
<c-c> Small companies take great risk whenever hiring a new person
chouhoulis has joined #ruby
<OMGtechy> sounds like you just need to keep at it, keep fleshing out your skills, and not worry :)
<OMGtechy> best case, you're already at the level people are expecting, and you just haven't found the right place yet
<OMGtechy> worst case, you're not, and you'll get there
<OMGtechy> "Senior" varies a lot depending on company
<leandroalemao> OMGtechy Agree but this salary is just a little step higher than I'm already getting here at my current job..
zacts has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
<leandroalemao> OMGtechy I think they could pay more for the job.. one of the companies is big and the other just got £1M+ in investments for the new product they'll start to develop
<OMGtechy> well, if you do web dev, we're hiring and have an office in Manchester ;)
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
<OMGtechy> I'm not a web dev, but last I checked we had some web dev stuff going .. will take another look
<wrkrcoop> do i need to require ‘File’ to use this File.read(file_name) and if i use that do i just get a big array? or big string?
<leandroalemao> OMGtechy is this indeed job role at your company?
<OMGtechy> no, that's just a random one I found
<OMGtechy> am looking through our careers page atm
<mikecmpbll> in yorkshire here :)
nowhere_man has quit [Ping timeout: 240 seconds]
<mikecmpbll> we're looking for junior/mid-level if anyone's interested :P
<wrkrcoop> mikecmpbll: what company
Irishluc1 has joined #ruby
<leandroalemao> OMGtechy I've applied for this one already.. received basically the same feedback as before..
<mikecmpbll> just a smallish IT company in skipton.
mim1k has joined #ruby
Irishluc1 has quit [Client Quit]
<OMGtechy> leandroalemao, so are there any skills in the list you don't have?
cxr has joined #ruby
<leandroalemao> OMGtechy where is your office in Manchester? do you have a link from where I can apply to?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<OMGtechy> I can't find the role atm, but here's the link https://careers.peopleclick.com/careerscp/client_arm/external/search.do
millerti has joined #ruby
Irishluc1 has joined #ruby
<leandroalemao> OMGtechy I've got 3 years of experience with all techies from the job description.. they just don't think I'm a senior developer.. which I agree.. because I just have 3 years of experience.. but for the salary they pay.. I was thinking the roles were for a junior/upper junior dev..
Violentr has joined #ruby
<mikecmpbll> 3 years & senior dev? :/
<Papierkorb> OMGtechy: oh thanks, atm collecting possible future employers. Didn't think of ARM yet.
<OMGtechy> leandroalemao, 3 years is plenty for Senior at some places
mim1k has quit [Ping timeout: 240 seconds]
<leandroalemao> mikecmpbll: with 3 years of experience I consider myself a upper junior dev.. but as you see in the role description they want a senior developer with 3 years of experience
<OMGtechy> I can make a temporary email address for you to forward your CV to if you'd like? Will ask around the office RE the web dev role we had going recently ...
<Papierkorb> OMGtechy: Would you mind me PM'ing you with a quick question or two?
Pumukel has joined #ruby
<OMGtechy> go for it :)
cxr has quit [Ping timeout: 240 seconds]
<mikecmpbll> tbh i was senior dev with 0 years experience, cus i went to work for a small company :d
Jackneill_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
millerti has joined #ruby
jdm has joined #ruby
Jackneill_ has quit [Max SendQ exceeded]
fclausen has joined #ruby
binaryplease has joined #ruby
<leandroalemao> mikecmpbll: depends.. if your boss is a long term friend of you.. you can get hired as a CTO with 0 year of experience.. everything depends..
<mikecmpbll> well, that certainly wasn't the situation in my case
Jackneill_ has joined #ruby
<leandroalemao> OMGtechy was the temp email message to me? I'd be glad if so
Pumukel has quit [Ping timeout: 264 seconds]
binaryplease1 has joined #ruby
marahin has left #ruby ["Textual IRC Client: www.textualapp.com"]
pawnbox has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
binaryplease has quit [Ping timeout: 240 seconds]
<OMGtechy> will PM you my work one
<leandroalemao> mikecmpbll I'm not telling that I'm an EU immigrant here in the UK.. but I prefer not to quote this.. as I presume the people in general don't have problem with it when hiring people..
workmad3 has joined #ruby
<mikecmpbll> no one cares.
Violentr has quit [Ping timeout: 258 seconds]
<leandroalemao> mikecmpbll But I know.. if they are in doubt between my and a british guy.. they'll choose the british guy..
<leandroalemao> mikecmpbll: *between me
mim1k has joined #ruby
<mikecmpbll> the "if i'm on a par with someone else" imagined scenarios aren't really worth thinking about
zapata has quit [Quit: WeeChat 1.7]
<leandroalemao> mikecmpbll but this is normal.. I face this everyday here.. already got used after a good couple of years living here..
ta_ has quit [Remote host closed the connection]
<mikecmpbll> got used to what?
<OMGtechy> leandroalemao, sent
Violentr has joined #ruby
<leandroalemao> mikecmpbll to receive different treatment in restaurants... people looking different.. unknown people asking to speak english instead of my mother language.. etc..
<baweaver> I'm not Senior and I have ~6 years experience. If I went to a startup here I likely could be. It's so relative anymore I wouldn't worry about it.
<mikecmpbll> sounds a bit melodramatic, but who am i to say i've never lived in a foreign country :)
binaryplease1 is now known as binaryplease
<mikecmpbll> sorry if you feel unwelcome!
wilbert has joined #ruby
<wrkrcoop> hey im reading in files, and if they have #{some_variable} i want the value to be reflected in the stirng, but it doesnt seem to be interpolating
<baweaver> Also, at least on IRC, we don't mind much but we may ask you to clarify things if you word them oddly.
workmad3 has quit [Ping timeout: 258 seconds]
username1 has joined #ruby
<baweaver> wrkrcoop: Use ERB instead, easier.
<wrkrcoop> oh yeah i forgot about that
<leandroalemao> mikecmpbll I feel completely welcome here.. the greatest country I've ever lived with great people. etc etc all good.. I just don't care anymore about those things.. you know there's this kind of people everywhere..
<mikecmpbll> okay cool ;0
<mikecmpbll> :)*
<wrkrcoop> baweaver: so just edit the templates to use erb syntax, then when i puts File.read(Dir.pwd + file_name) it will work?
zapata has joined #ruby
<baweaver> Do you think it will?
<wrkrcoop> idk maybe
<baweaver> How does File#read know about ERB?
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
mim1k has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
<baweaver> (hint: it doesn't)
<wrkrcoop> idk i figured it would gie me a string, then since the data is in the scope it would magicallly work
<wrkrcoop> baweaver: hm ok how can i do what i want to do
<baweaver> There are two templating libraries that are common: Handlebars and ERB
<baweaver> Look them up and see what you can find on both.
<baweaver> Handlebars is lighterweight, so if you only need a few substitutions it may be better
<baweaver> ERB gives you a lot more power but is more verbose.
biberu has quit []
<wrkrcoop> thanks
ldnunes has quit [Quit: Leaving]
Rodya_ has quit [Remote host closed the connection]
Derperperd has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
enterprisey has quit [Ping timeout: 260 seconds]
polishdub has quit [Quit: Leaving]
Rodya_ has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
baked__beans has quit [Read error: Connection reset by peer]
Pumukel has quit [Remote host closed the connection]
Violentr has quit [Ping timeout: 260 seconds]
OTORelic has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
<dminuoso> I was thinking, is there a Ruby way of (brute force) finding the first number that satisfy some constraint?
Irishluc1 has quit [Quit: WeeChat 1.4]
rwb has quit [Ping timeout: 260 seconds]
Pumukel has quit [Read error: Connection reset by peer]
<baweaver> Enumerator
<dminuoso> >> enum = Enumerator.new do { n = 0; loop { n +=1; yield n } }; enum.first { |e| e == 3 }
<ruby[bot]> dminuoso: # => /tmp/execpad-46065b104dc0/source-46065b104dc0:2: syntax error, unexpected ';', expecting => ...check link for more (https://eval.in/746607)
Pumukel has joined #ruby
<dminuoso> baweaver: Interesting, I was just trying that out as you can see
<dminuoso> :)
baked__beans has joined #ruby
<dminuoso> >> enum = Enumerator.new { n = 0; loop { n +=1; yield n } }; enum.first { |e| e == 3 }
<ruby[bot]> dminuoso: # => no block given (yield) (LocalJumpError) ...check link for more (https://eval.in/746608)
<dminuoso> >> enum = Enumerator.new { |y| n = 0; loop { n +=1; y.yield(b) } }; enum.first { |e| e == 3 }
<ruby[bot]> dminuoso: # => undefined local variable or method `b' for main:Object (NameError) ...check link for more (https://eval.in/746609)
<dminuoso> >> enum = Enumerator.new { |y| n = 0; loop { n +=1; y.yield(n) } }; enum.first { |e| e == 3 }
<ruby[bot]> dminuoso: # => 1 (https://eval.in/746610)
oetjenj has joined #ruby
<dminuoso> >> enum = Enumerator.new { |y| n = 0; loop { n +=1; y.yield(n) } }; enum.find { |e| e % 7 == 0 }
<ruby[bot]> dminuoso: # => 7 (https://eval.in/746611)
* dminuoso hugs baweaver
loechel has joined #ruby
<baweaver> >> Prime.first(10)
<ruby[bot]> baweaver: # => uninitialized constant Prime (NameError) ...check link for more (https://eval.in/746612)
workmad3 has joined #ruby
<baweaver> >> require 'prime'; Prime.first(10)
<ruby[bot]> baweaver: # => [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] (https://eval.in/746613)
<baweaver> that one's fun too.
<wrkrcoop> so i want to append to a file, but what if it doesnt exist, how do i get it to create if it doesnt exist?
<dminuoso> wrkrcoop: "a" will do that already
<wrkrcoop> oh what about directories?
<dminuoso> Dont say you are trying to append to directories.
<dminuoso> Ill slap you if you do.
<baweaver> &ri File
<baweaver> file modes are in there.
<wrkrcoop> what no, but if the directory doesnt exist i want it to create it
<baweaver> &ri Dir
Pumukel_ has joined #ruby
tyang has quit [Ping timeout: 268 seconds]
bhaak has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
<baweaver> docs are your friend
<wrkrcoop> ya but u r my friend
Pumukel has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
binaryplease has quit [Ping timeout: 258 seconds]
gloscombe_ has quit [Remote host closed the connection]
binaryplease has joined #ruby
gloscombe_ has joined #ruby
loechel has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
dn`_ has quit [Quit: dn`_]
JoshS has joined #ruby
dn` has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
jose_leeto has quit [Quit: Leaving.]
<fuzzyhorns> how many of you use refinements regularly?
<fuzzyhorns> i really love them but i get the sense they havent caught on
cdg has joined #ruby
tau has quit [Remote host closed the connection]
loechel has quit [Ping timeout: 240 seconds]
<allisio> Why should that stop you using them?
tau has joined #ruby
montanonic has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
<fuzzyhorns> allisio: it doesnt :) but makes me worry ill pick up a habit that wont be supported in the future
<fuzzyhorns> & also means i have to spend some time educating coworkers
<allisio> fuzzyhorns: A worthwhile cause.
mim1k has joined #ruby
<allisio> Refinements are objectively a Good Idea, and therefore unlikely to be dropped in some future version of Ruby.
Pumukel has joined #ruby
<Papierkorb> fuzzyhorns: I use refinements, e.g. to add #to_cidr_s to IPAddr "cleanly"
pawnbox has joined #ruby
stomar has quit [Ping timeout: 268 seconds]
tdy has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
alibby1 has quit [Ping timeout: 246 seconds]
<OMGtechy> I just did the impossible; got Travis CI working first time.
wrkrcoop has joined #ruby
alibby has joined #ruby
roamingdog has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
Suslov has quit [Remote host closed the connection]
jottr_ has joined #ruby
suslovm has joined #ruby
<anothertau> OMGtechy: well done
pawnbox has quit [Ping timeout: 256 seconds]
<OMGtechy> Nobel Prize incoming
nicolai86 has quit [Remote host closed the connection]
TPug has joined #ruby
nicolai86 has joined #ruby
rideh- has quit [Ping timeout: 268 seconds]
[Butch] has quit [Quit: I'm out . . .]
renchan has quit [Remote host closed the connection]
OMGtechy has quit [Quit: Leaving]
roamingdog has quit [Ping timeout: 260 seconds]
arooni has quit [Ping timeout: 246 seconds]
suslovm has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
rikkipitt has joined #ruby
Lucky_ABA has joined #ruby
AustinMatherne has quit [Remote host closed the connection]
AustinMatherne has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cschneid has quit [Ping timeout: 240 seconds]
mim1k has quit [Quit: Lost terminal]
arooni has joined #ruby
rideh has joined #ruby
marcdel has quit [Ping timeout: 268 seconds]
suslovm has joined #ruby
gsilva has joined #ruby
Suslov has joined #ruby
blackwind_123 has quit [Read error: Connection reset by peer]
jottr_ has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
cschneid has joined #ruby
<anothertau> not min and max methods in Math
<allisio> Seems like Module#refinement? ought to be available out of the box. https://eval.in/746665
suslovm has quit [Ping timeout: 246 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
<allisio> Forgot to use Integer#[], but I secretly like that the precedence rules permit the elision of any parentheses on the end there.
padi_ has joined #ruby
<dminuoso> Module#refinement is used by 7 people in the Ruby community.
<dminuoso> I counted them myself.
<allisio> &ri Module#refinement
<`derpy> No results
<Aeyris> Hey what's the channel for people banned from #ror?
<Aeyris> I thought it was #ror-banned.
<dminuoso> Aeyris: #purgatory
<allisio> #tied-to-the-tracks
<Aeyris> :\
<__Yiota> #rekt
ta_ has joined #ruby
<fuzzyhorns> lol allisio
<dminuoso> allisio: Point of interesting, Im currently devising a Fiddle library that should make refinements obsolete.
marcdel has joined #ruby
<dminuoso> Ever wanted to temporarily Module#prepend? :-)
postmodern has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
<allisio> dminuoso: No, never. ;)
bmurt has joined #ruby
bhaak has joined #ruby
cagomez has joined #ruby
bmurt has quit [Client Quit]
alibby has quit [Ping timeout: 258 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t-recx has quit [Quit: t-recx]
Derperperd has joined #ruby
<cagomez> is there a better way to do this? `a = ar.order(:position).first; a.nil? ? someObj : a ; ` I want to use || but it gives me a syntax error
alibby has joined #ruby
t-recx has joined #ruby
<allisio> dminuoso: Fiddlerino sure looks like it'd be less hassle from C.
pawnbox has joined #ruby
<allisio> cagomez: `ar.order(:position).first || someObj` is not a syntax error.
rwb has joined #ruby
agent_white has quit [Quit: bbl]
mtkd has quit [Ping timeout: 240 seconds]
marcdel has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
<cagomez> I get ` syntax error, unexpected ||, expecting keyword_end`
<Eiam> missing a ) somewhere?
<anothertau> >> a = nil || true
Derperperd has quit [Ping timeout: 268 seconds]
alibby has quit [Ping timeout: 260 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<allisio> cagomez: You probably forgot to `end` an `if` or some such.
pawnbox has quit [Ping timeout: 240 seconds]
ColeHub has joined #ruby
JeanCarloMachado has joined #ruby
<Burgestrand> cagomez double-check so that you don't have an invisible special-kind-of-space around the `||`.
tildes has quit [Ping timeout: 260 seconds]
<cagomez> arr.order(:position).first || Foo::Bar.instance
alibby has joined #ruby
<cagomez> (As an aside, I'm learning Ruby. what is Foo and what is Bar in Foo::Bar? Is Foo the Superclass, and Bar the Subclass?)
wrkrcoop has joined #ruby
<c-c> Module, class
<Burgestrand> cagomez Bar is nested inside the module Foo
<cagomez> ah ok
<c-c> cagomez: do you have 'ri' installed?
<Burgestrand> cagomez Ruby doesn't have namespacing, so we typically use modules to avoid global name clashes
<Burgestrand> cagomez (classes are also modules, and thus also allows you to create this kind of nesting)
<cagomez> mhm, got it. I don't believe I have ri installed
<cagomez> actually I do have ri
<c-c> $ ri Module (or $ riN.N Module when N is version)
<c-c> also $ ri Class shows some real fun ascii graphics
ta_ has quit [Ping timeout: 258 seconds]
<cagomez> ok, so what should I do about arr.order(:position).first || Foo::Bar.instance ? I don't see anything wrong
<allisio> The problem isn't there.
alibby has quit [Ping timeout: 258 seconds]
JeanCarloMachado has quit [Quit: Lost terminal]
<allisio> You know how you have to say `end` after everything (`def`, `if`, `do`)? Well, you missed (at least) one.
marcdel has joined #ruby
<allisio> If your editor's automatic indentation feature isn't shit, executing it should make it much easier to spot the problem.
<cagomez> I just have `def foo; rr.order(:position).first || Foo::Bar.instance; end;`
<allisio> That's the whole file?
<cagomez> no, but the rest is ok
<allisio> Okay.
<allisio> Problem solved, then.
fuzzyhorns has quit [Quit: Leaving.]
skweek has joined #ruby
Suslov has quit [Remote host closed the connection]
suslovm has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
wrkrcoop has quit [Quit: wrkrcoop]
nowhere_man has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
suslovm has quit [Ping timeout: 240 seconds]
nhhc has quit [Quit: Leaving]
JeanCarloMachado has joined #ruby
bkxd has joined #ruby
suslovm has joined #ruby
`0x00` has joined #ruby
workmad3 has joined #ruby
wilbert has quit [Ping timeout: 256 seconds]
marchelzo has joined #ruby
cxr has joined #ruby
suslovm has quit [Ping timeout: 264 seconds]
<marchelzo> hello ruby family and friends
<marchelzo> i hope everybody is doing well
suslovm has joined #ruby
Suslov has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
JeanCarloMachado has quit [Quit: Lost terminal]
suslovm has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
baked__beans has quit [Ping timeout: 258 seconds]
Xiti has joined #ruby
workmad3 has joined #ruby
benlieb has quit [Quit: benlieb]
safetypin has quit [Ping timeout: 264 seconds]
Hobbyboy has quit [Ping timeout: 240 seconds]
suslovm has joined #ruby
benlieb has joined #ruby
cagomez has quit []
cdg has quit [Remote host closed the connection]
Suslov has quit [Ping timeout: 240 seconds]
AndrewIsHere has joined #ruby
Burgestrand has quit [Quit: Closing time!]
unmanbearpig has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
Evesy has quit [Ping timeout: 240 seconds]
rileyy has quit [Ping timeout: 264 seconds]
Hobbyboy has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
suslovm has quit [Quit: Leaving...]
vadviktor has quit [Ping timeout: 260 seconds]
Volsus has joined #ruby
Volsus has quit [Client Quit]
anothertau has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
bruce_lee has quit [Read error: Connection reset by peer]
jottr_ has quit [Quit: WeeChat 1.7]
saneax-_-|AFK is now known as saneax
Trynemjoel has joined #ruby
ozcanesen has joined #ruby
_aeris_ has joined #ruby
vadviktor has joined #ruby
spogghi has joined #ruby
safetypin has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
spogghi has quit [Quit: Mutter: www.mutterirc.com]
d0nn1e has quit [Ping timeout: 258 seconds]
haennar has quit [Ping timeout: 268 seconds]
npgm has quit [Quit: Connection closed for inactivity]
d0nn1e has joined #ruby
Evesy has joined #ruby
rileyy has joined #ruby
AndrewIsHere has quit []
BabyMario has joined #ruby
marxarelli is now known as marxarelli|afk
millerti has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
workmad3 has quit [Ping timeout: 264 seconds]
benlieb has quit [Quit: benlieb]
mikecmpbll has quit [Quit: inabit. zz.]
TomyLobo has quit [Ping timeout: 264 seconds]
patarr has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
rikkipitt has quit [Remote host closed the connection]
malconis has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Konversation terminated!]
rikkipitt has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
rikkipitt has quit [Ping timeout: 256 seconds]
Synthead has quit [Quit: Synthead]