<hays>
if i was going to randomly choose an alternative ruby interpreter what would be the best choice? im leaning towards jruby because it seems less experimental
ta_ has quit [Read error: Connection reset by peer]
<hays>
(than rubinious)
bob434 has quit [Quit: This computer has gone to sleep]
ta_ has joined #ruby
<smathy>
It'd depend on my reasons for choosing an alternative.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dorje has quit [Remote host closed the connection]
ChiefAlexander has quit [Ping timeout: 250 seconds]
<hays>
largely because i want threading to actually work
xcesariox has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
<Arcaire>
I'd suggest MRI then.
<Arcaire>
jruby is good with threads iirc
<hays>
MRI? that is the one that seems to have a gil limitation where threads stay on one core
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
hays: jruby is pretty good
bob434 has joined #ruby
<benzrf>
!troll benzrf
<benzrf>
looks like it needs perms, graft
<eam>
wow why'd benzrf just mute himself
<benzrf>
:>
<hays>
now i just have to get it to build on my mac. heh
symm- has joined #ruby
<eam>
hays: well, it's a jar
<eam>
you have java right
<hays>
yep
<hays>
i get quite the error out of macport
<hays>
macports.
`tim` has quit [Ping timeout: 252 seconds]
<Arcaire>
that's probably because you're using macports
frem has quit [Quit: Connection closed for inactivity]
rohit has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
pawnbox has joined #ruby
<masconejos>
hi all. I have a question about lazy enumerators. I was doing a project euler problem and created a lazy enumerator and then did a series of functional operations on it. However, I’m having issues witht he data type of the result. Sometimes it’s an array of numbers (which is what I expect), sometimes its an array of arrays, depending on how I use it. Anyone interested in offering some insight?
<smathy>
masconejos, a few of us were talking about precisely that the other day and we ended up punting.
rbennacer has joined #ruby
<Radar>
havenwood: and then I realised you already submitted a PR
<Radar>
havenwood: you are too cool
Cohedrin has quit [Read error: No route to host]
zacts has joined #ruby
<masconejos>
smathy, well, glad to know I’m not alone
SCHAAP137 has quit [Quit: Leaving]
Cohedrin has joined #ruby
<smathy>
That is, unfortunately, the only comfort I can offer.
<masconejos>
smathy, it’s really the dichotomy between .each and .each.with_index that throws me. From experimenting, it seems like .each perhaps convert the lazy array to a fully-realized array and .with_index doesnt, but it’s still rather baffling
<masconejos>
…except .each.class still returns a lazy array
danielpclark has quit [Quit: Leaving]
<masconejos>
also the need to do .with_object.take_while{} rather than take_while.with_object{} was a little odd
<masconejos>
it’s also handy that apparently the (with_object) object is cloned every iteration, rather than modified, but at the same take there is a LOT going on under the hood that isn’t at all obvious. I would have excpeted that there was only one object that was modified each pass (at least that was my intent)
Caerus has quit [Ping timeout: 250 seconds]
idefine_ has joined #ruby
bronson has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
Caerus has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
arescorpio has joined #ruby
shazaum_ has quit [Quit: Leaving]
bronson has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 268 seconds]
william3 has joined #ruby
Rickmasta has joined #ruby
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JBlazeCoder21 has quit [Remote host closed the connection]
ensyde has joined #ruby
bronson has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
william3 has quit [Ping timeout: 246 seconds]
idefine has joined #ruby
JBlazeCoder21 has joined #ruby
chipotle has joined #ruby
BSab has joined #ruby
JBlazeCoder21 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
BrunoSaboia has quit [Ping timeout: 252 seconds]
nanoz has joined #ruby
CoderPuppy has joined #ruby
x77686d has joined #ruby
LoneHermit has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 244 seconds]
masconejos has quit [Ping timeout: 246 seconds]
vircung has quit [Ping timeout: 276 seconds]
blackwell has quit [Quit: ZNC 1.6.3 - http://znc.in]
GodFather has quit [Ping timeout: 244 seconds]
masconejos has joined #ruby
Waqas has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
idefine has quit [Read error: Connection reset by peer]
vircung has joined #ruby
idefine has joined #ruby
idefine has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
idefine has joined #ruby
tsherman has joined #ruby
nanoz has quit [Changing host]
nanoz has joined #ruby
tsherman has quit [Remote host closed the connection]
tvon[laptop] is now known as tvon
_wwwBukoLaycom has quit [K-Lined]
jaguarmagenta has joined #ruby
masconejos has quit [Ping timeout: 276 seconds]
emilford has joined #ruby
Eiam_ has joined #ruby
CloCkWeRX has joined #ruby
statelesscode has joined #ruby
blackwell has joined #ruby
masconejos has joined #ruby
RegulationD has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
jaguarmagenta has quit [Ping timeout: 268 seconds]
idefine_ has joined #ruby
<zacts>
hi rubyists
RegulationD has quit [Ping timeout: 276 seconds]
zacts has quit [Quit: WeeChat 1.4]
idefine__ has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
idefine has joined #ruby
x77686d has quit [Quit: x77686d]
idefine_ has quit [Ping timeout: 240 seconds]
BtcBen has joined #ruby
william3 has joined #ruby
idefine__ has quit [Ping timeout: 240 seconds]
william3 has quit [Ping timeout: 276 seconds]
zacts has joined #ruby
p1k has joined #ruby
yfeldblum has quit [Remote host closed the connection]
william3 has joined #ruby
blackmesa has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
smathy is now known as smathy_afk
cdg has quit [Remote host closed the connection]
idefine_ has joined #ruby
cdg has joined #ruby
callen92 has quit [Quit: Leaving]
william3 has quit [Ping timeout: 252 seconds]
dezull has joined #ruby
devbug has quit [Quit: ZZZzzz…]
idefine has quit [Read error: Connection reset by peer]
tildes has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 260 seconds]
mlakewood has quit [Quit: mlakewood]
rohit has quit [Quit: Leaving]
berserk_ren has joined #ruby
tildes has quit [Ping timeout: 268 seconds]
<masconejos>
hi zacts
baweaver has quit [Ping timeout: 276 seconds]
akkad has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
moeabdol has joined #ruby
idefine_ has quit [Ping timeout: 240 seconds]
devbug has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
nando293921 has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
statelesscode has quit [Quit: statelesscode]
rbennacer has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 276 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
PedramT has joined #ruby
tref has quit [Quit: tref]
dezull has quit [Ping timeout: 276 seconds]
tref has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
dezull has joined #ruby
solocshaw has joined #ruby
noService has quit [Ping timeout: 260 seconds]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
tref has quit [Quit: tref]
aspiers_ has joined #ruby
d0lph1n98 has joined #ruby
elaptics`away is now known as elaptics
moeabdol has joined #ruby
blackmesa has joined #ruby
devbug has quit [Quit: ZZZzzz…]
bob434 has quit [Quit: This computer has gone to sleep]
moeabdol has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
devbug has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
IrishGringo has quit [Ping timeout: 250 seconds]
zast has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
bob434 has joined #ruby
navneet_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
d0lph1n98 has quit [Quit: leaving]
solocshaw has quit [Ping timeout: 268 seconds]
konsolebox has quit [Remote host closed the connection]
terlar has joined #ruby
p1k has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
ponga has quit []
jenrzzz has joined #ruby
mclong has quit [Quit: Leaving]
bronson has joined #ruby
aspiers_ has quit [Ping timeout: 244 seconds]
izaac has joined #ruby
LoneHerm_ has joined #ruby
bob434 has joined #ruby
baweaver has joined #ruby
blackgoat has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
Macaveli has joined #ruby
kareeoleez has quit [Remote host closed the connection]
sandelius has joined #ruby
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
billy1234 has joined #ruby
marcdel has joined #ruby
<billy1234>
I have a question. If I have a string that consists of nothing but numbers, and I attempt to assign it to a DB record column of type integer
<billy1234>
will that throw an error?
joonty has quit [Ping timeout: 260 seconds]
bobbycvi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moosashi has quit [Quit: Moosashi]
<Arcaire>
Anyone seen issues of DCell or ZeroMQ segfaulting before? I can only find half-decade-old bug reports on Github.
<Arcaire>
I'm not doing anything with it, just kind of starting a DCell (zeromq-backed celluloid actors, i guess) instance.
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
sadin has joined #ruby
bob434 has quit [Client Quit]
tref has joined #ruby
aufi has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
sauvin has joined #ruby
dionysus69 has joined #ruby
aupadhye has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
polysics has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
agent_white has quit [Quit: nig;ht]
<manveru>
billy1234: depends on the db...
karapetyan has joined #ruby
<manveru>
i know postgres won't allow stuff like that :)
<Arcaire>
Assuming ActiveRecord, you'll be fine.
<Arcaire>
AR automatically typecasts your input to the column type, so "12345" will be typecast to 12345 as an integer.
tildes has quit [Ping timeout: 244 seconds]
<manveru>
i wouldn't call that "fine"...
<Arcaire>
Make sure it's more or less a number in a string, though. "!~1234" isn't going to be typecast to 1234.
ta_ has quit [Remote host closed the connection]
<manveru>
more like irresponsible :P
<Arcaire>
manveru: Why bother explicitly casting a string to an integer if you know the input is going to translate correctly?
<Arcaire>
You should be validating your input, sure, but the casting happens anyway.
karapetyan has quit [Ping timeout: 244 seconds]
brianpWins has joined #ruby
<manveru>
so what happens with "1.0" or "1/2" or "0x12" or "012"
<manveru>
what method does it use to convert
blackmesa has quit [Ping timeout: 276 seconds]
<Arcaire>
Depends.
<Arcaire>
If your column type is an integer, it'll probably use some glorified form of to_i/.
<Arcaire>
So 1.0 is just going to become 1.
solars has joined #ruby
<Arcaire>
"1/2" isn't an integer, nor a float. It's a fraction which is just a whole different ball game. That won't be casted properly. Same with most others you listed.
<Arcaire>
012 will go to 12 as expected.
<Arcaire>
If you want it padded out to three you can do that within the DB because you need to ensure integrity at that level anyway.
<manveru>
anw, my point is that implicit conversion is not safe
dezull has quit [Ping timeout: 260 seconds]
<Arcaire>
That really depends on your input tbh.
<manveru>
you can argue that it's convenient, but that's the same reason people use mongodb or mysql...
tref has quit [Quit: tref]
kareeoleez has joined #ruby
SilverKey has quit [Quit: Halted.]
chouhoulis has quit [Remote host closed the connection]
<manveru>
AR doesn't even bother checking string lengths even though it has the schema information
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
<baweaver>
Bob had a problem, so Bob decided to use MongoDB
PedramT has joined #ruby
rahult has quit [Ping timeout: 268 seconds]
kareeoleez has quit [Remote host closed the connection]
<Arcaire>
Suddenly there's no problems anymore.
<Arcaire>
:D
sandelius has joined #ruby
<baweaver>
Now Bob has two problems
navneet__ has joined #ruby
elifoster has quit [Ping timeout: 276 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
kareeoleez has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
aupadhye has quit [Remote host closed the connection]
kriskropd has quit [Ping timeout: 250 seconds]
pLaToOn has joined #ruby
navneet_ has quit [Ping timeout: 246 seconds]
rahult has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
ta_ has joined #ruby
firstdayonthejob has joined #ruby
jaequery has joined #ruby
LoneHerm_ has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
anisha has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
kriskropd has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tref has joined #ruby
jaruga___ has joined #ruby
jaruga___ has quit [Client Quit]
jaruga___ has joined #ruby
PedramT has quit [Ping timeout: 268 seconds]
RegulationD has joined #ruby
Moosashi has quit [Quit: Moosashi]
CloCkWeRX has quit [Ping timeout: 276 seconds]
GriffinHeart has joined #ruby
djbkd has quit [Quit: My people need me...]
tildes has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
terlar has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
vdamewood has joined #ruby
Moosashi has joined #ruby
Moosashi has quit [Client Quit]
x77686d has quit [Quit: x77686d]
navneet__ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 250 seconds]
jaruga___ has quit [Quit: jaruga___]
vdamewood has quit [Max SendQ exceeded]
vdamewood has joined #ruby
saneax is now known as saneax_AFK
LoneHerm_ has joined #ruby
stardiviner has joined #ruby
pawnbox has joined #ruby
firstdayonthejob has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
astrobun_ has joined #ruby
GinoMan2440 has quit [Read error: Connection reset by peer]
codecop has joined #ruby
saneax_AFK is now known as saneax
GinoMan2440 has joined #ruby
ur5us has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 244 seconds]
mrsolo has quit [Ping timeout: 264 seconds]
dezull has joined #ruby
DoubleMalt has joined #ruby
noodle has quit [Quit: /quit]
mrsolo has joined #ruby
dezull has quit [Client Quit]
noodle has joined #ruby
konsolebox has joined #ruby
mustmodify has quit [Read error: Connection reset by peer]
mustmodify has joined #ruby
latemus has joined #ruby
alxndr has quit [Ping timeout: 264 seconds]
joaomdmoura__ has quit [Ping timeout: 264 seconds]
AckZ has quit [Ping timeout: 264 seconds]
ELCALOR has quit [Ping timeout: 264 seconds]
bedouin has quit [Ping timeout: 264 seconds]
vcoinminer has quit [Ping timeout: 264 seconds]
Expanse has quit [Ping timeout: 264 seconds]
boxrick1_ has quit [Ping timeout: 264 seconds]
angiebadillo has quit [Ping timeout: 264 seconds]
kireevco has quit [Ping timeout: 264 seconds]
jxf has quit [Ping timeout: 264 seconds]
mjc_ has quit [Ping timeout: 264 seconds]
HashNuke_ has quit [Ping timeout: 264 seconds]
jlyndon has quit [Ping timeout: 264 seconds]
danzilio has quit [Ping timeout: 264 seconds]
daemonwrangler has quit [Ping timeout: 264 seconds]
pfg has quit [Ping timeout: 264 seconds]
braderhart has quit [Ping timeout: 264 seconds]
machty has quit [Ping timeout: 264 seconds]
caw has quit [Ping timeout: 264 seconds]
deimos__ has quit [Ping timeout: 264 seconds]
bove has quit [Ping timeout: 264 seconds]
lipoqil has quit [Ping timeout: 264 seconds]
swgillespie has quit [Ping timeout: 264 seconds]
chrismytton has quit [Ping timeout: 264 seconds]
latemus has quit [Client Quit]
UglyVendetta has quit [Quit: Leaving]
audiodude_ has quit [Ping timeout: 264 seconds]
jmcc__________ has quit [Ping timeout: 264 seconds]
deeprave has quit [Ping timeout: 264 seconds]
acerna has quit [Ping timeout: 264 seconds]
dmnd has quit [Ping timeout: 264 seconds]
im0b has quit [Ping timeout: 264 seconds]
Meow-J has quit [Ping timeout: 264 seconds]
ramblinpeck has quit [Ping timeout: 264 seconds]
S01780 has quit [Ping timeout: 264 seconds]
Eleeleth has quit [Ping timeout: 264 seconds]
ggherdov has quit [Ping timeout: 264 seconds]
jcp has quit [Ping timeout: 264 seconds]
acalewin has quit [Ping timeout: 264 seconds]
jimeh has quit [Ping timeout: 264 seconds]
pmarreck has quit [Ping timeout: 264 seconds]
iamdevnul has quit [Ping timeout: 264 seconds]
colstrom has quit [Ping timeout: 264 seconds]
lancetw has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
biberu has joined #ruby
jimcroft has quit [Ping timeout: 264 seconds]
colstrom has joined #ruby
Eleeleth has joined #ruby
jmcc__________ has joined #ruby
<rubirc>
GOODBYE CLOUD
acerna has joined #ruby
audiodude_ has joined #ruby
<rubirc>
WELCOEM BACK CLOUD
<Arcaire>
u ok m8
braderhart has joined #ruby
thesheff17 has quit [Ping timeout: 276 seconds]
deimos__ has joined #ruby
pfg has joined #ruby
jlyndon has joined #ruby
vcoinminer has joined #ruby
boxrick1_ has joined #ruby
chrismytton has joined #ruby
iamdevnul has joined #ruby
caw has joined #ruby
lancetw has joined #ruby
im0b has joined #ruby
bedouin has joined #ruby
alxndr has joined #ruby
jcp has joined #ruby
S01780 has joined #ruby
daemonwrangler has joined #ruby
mjc_ has joined #ruby
M-Kodo has quit [Ping timeout: 276 seconds]
ELCALOR has joined #ruby
jxf has joined #ruby
jimeh has joined #ruby
Expanse has joined #ruby
HashNuke_ has joined #ruby
angiebadillo has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
acalewin has joined #ruby
danzilio has joined #ruby
dmnd has joined #ruby
lipoqil has joined #ruby
pmarreck has joined #ruby
deeprave has joined #ruby
blackmesa has joined #ruby
ramblinpeck has joined #ruby
thesheff17 has joined #ruby
swgillespie has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bove has joined #ruby
jimcroft has joined #ruby
machty has joined #ruby
AckZ has joined #ruby
joaomdmoura__ has joined #ruby
andikr has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
ferr has joined #ruby
lubekpl has joined #ruby
moeabdol has joined #ruby
M-Kodo has joined #ruby
ur5us has joined #ruby
futilegames has joined #ruby
kireevco has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
slackbotgz has joined #ruby
TomyWork has joined #ruby
william3 has joined #ruby
chouhoulis has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
nuck has quit [Ping timeout: 240 seconds]
ggherdov has joined #ruby
pawnbox has quit [Remote host closed the connection]
bluOxigen has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
elaptics is now known as elaptics`away
baweaver has quit [Remote host closed the connection]
Meow-J has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
Devalo has joined #ruby
karapetyan has joined #ruby
the_drow has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
konsolebox has quit [Quit: Leaving]
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
UserInNeed has quit [Changing host]
UserInNeed has joined #ruby
toretore has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
karapetyan has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
karapetyan has joined #ruby
bronson has joined #ruby
mark_66 has joined #ruby
CloCkWeRX has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 276 seconds]
tagaulap has joined #ruby
nuck has joined #ruby
nuck is now known as Guest57291
joast has joined #ruby
cdg has joined #ruby
norc has joined #ruby
tref has quit [Quit: tref]
tax has quit [Ping timeout: 268 seconds]
<norc>
>> A = Struct.new(:a) { include Comparable; def <=>(o) a.to_i <=> o; end; }; a, b = A.new(1), A.new(2); a < b
<ruby[bot]>
norc: # => comparison of A with A failed (ArgumentError) ...check link for more (https://eval.in/560367)
ta_ has joined #ruby
<norc>
This has got to be the most useless error message.
william3 has joined #ruby
<norc>
I mean the problem is obvious, but why is the error message this bad.
UglyVendetta has joined #ruby
vdamewood has quit [Ping timeout: 246 seconds]
<norc>
I would have an expected an "comparison of Fixnum with #<struct TelephoneNumber> failed"
navneet_ has joined #ruby
<norc>
or #<struct A> rather.
tref has joined #ruby
<norc>
Or just comparison of Fixnum with A failed.
william3 has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
diegoaguilar has joined #ruby
devbug has quit [Quit: ZZZzzz…]
nofxx has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
brianpWins_ has joined #ruby
devbug has joined #ruby
robbyoconnor has joined #ruby
slackbotgz has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 276 seconds]
brianpWins_ is now known as brianpWins
tref has quit [Quit: tref]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
igam has joined #ruby
william3 has joined #ruby
karapetyan has quit [Remote host closed the connection]
<adaedra>
Bonjour
william3 has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
blackgoat has quit [Ping timeout: 240 seconds]
galeido has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
navneet_ has quit [Ping timeout: 252 seconds]
<Caerus>
hello #ruby :)
tubuliferous has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
DaniG2k has joined #ruby
karapetyan has joined #ruby
DaniG2k_ has joined #ruby
navneet_ has joined #ruby
last_staff has joined #ruby
blackmesa has joined #ruby
DaniG2k has quit [Ping timeout: 260 seconds]
ChiefAlexander has quit [Quit: Leaving...]
htmldrum has joined #ruby
DaniG2k_ has quit [Quit: leaving]
DaniG2k has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
pandaant has joined #ruby
BtcBen has quit [Ping timeout: 260 seconds]
thorgi has quit [Ping timeout: 246 seconds]
vondruch has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
johnbat26 has joined #ruby
chouhoulis has joined #ruby
saneax is now known as saneax_AFK
thorgi has joined #ruby
william3 has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
duderono_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
marr has joined #ruby
DaniG2k has quit [Quit: leaving]
terlar has joined #ruby
Coldblackice_ has quit [Ping timeout: 250 seconds]
jaiks1 has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
roelof has joined #ruby
<roelof>
If I have a string let's say "abcdefghij
<roelof>
Can I divide it into pieces of 4 characters ?
karapetyan has quit [Remote host closed the connection]
william3 has quit [Ping timeout: 276 seconds]
baweaver has quit [Ping timeout: 268 seconds]
saneax_AFK is now known as saneax
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Snowy has joined #ruby
tomphp has joined #ruby
karapetyan has joined #ruby
<Caerus>
roelof, you could use split with regex
bronson has joined #ruby
william3 has joined #ruby
lkba_ has quit [Ping timeout: 260 seconds]
jaiks1 has joined #ruby
<roelof>
oke, I try to figure out how I can divide this : # ## ## ## ### ### ## # # ### ## # # # # # ### # ## # ## ## ### # # # # # # # # # # ### ### into parts of 5 characters for several days
<gregf_>
>> "abcdefghij".chars.inject("") { |str,c| str+=c; str.size == 4 ? begin;p str; "";end : str } # and another... there far too many. its Ruby!!
twistedbotYYY has quit [Remote host closed the connection]
twistedbotYYY has joined #ruby
harry111 has joined #ruby
<harry111>
hello
marr has quit [Ping timeout: 276 seconds]
victortyau has joined #ruby
antgel has quit [Ping timeout: 252 seconds]
fragtastic has quit [Remote host closed the connection]
kam270 has joined #ruby
cpup has quit [Ping timeout: 246 seconds]
EdwardIII has quit [Ping timeout: 268 seconds]
solocshaw has joined #ruby
saneax is now known as saneax_AFK
cpup has joined #ruby
EdwardIII has joined #ruby
sgambino has joined #ruby
Yiota has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
twistedbotYYY has quit [Remote host closed the connection]
<jackdaniel>
TheBrayn: swank is a protocol for working with the language process remotely
<jackdaniel>
for instance (for lisp), you may work through slime (emacs lisp program) with the Common Lisp implementation which "talks" swank
allcentury has joined #ruby
<TheBrayn>
ah ok
johnDoe111 has joined #ruby
<jackdaniel>
for ruby it may be a fancy interface ala irb, but accessible in a standarized way
<jackdaniel>
afaik swank isn't lisp specific, but not 100% sure
aspiers_ has joined #ruby
bweston92 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 250 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
ponga has joined #ruby
Xeago has joined #ruby
flashpoint9 has joined #ruby
Xeago has quit [Remote host closed the connection]
Guest38 has joined #ruby
bronson has joined #ruby
TheHodge has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
anisha has quit [Quit: Leaving]
Waqas has joined #ruby
andikr has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 260 seconds]
cpup has quit [Ping timeout: 250 seconds]
joast has quit [Quit: Leaving.]
allcentury has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
cpup has joined #ruby
freerobby has joined #ruby
Waqas has quit [Ping timeout: 250 seconds]
Waqas has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
* harry111
learning ruby
mjuszczak has joined #ruby
Es0teric has joined #ruby
pawnbox has joined #ruby
joonty has joined #ruby
* jackdaniel
too :)
flashpoint9 has quit [Read error: Connection reset by peer]
deadnull has joined #ruby
flashpoint9 has joined #ruby
kobain has joined #ruby
Pumukel has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpup has quit [Ping timeout: 268 seconds]
synthroid has joined #ruby
Sandman has quit [Read error: Connection reset by peer]
cpup has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
allcentury has joined #ruby
aspiers_ has quit [Ping timeout: 252 seconds]
minimalism has joined #ruby
Shashikant86 has joined #ruby
harry111 has quit [Quit: Leaving]
benlovell has quit [Ping timeout: 268 seconds]
zacts has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
idefine has joined #ruby
SuperLag has quit [Quit: Lost terminal]
Es0teric has quit [Quit: Computer has gone to sleep.]
<agent_white>
Mornin'
mustmodify has left #ruby [#ruby]
d0lph1n98 has joined #ruby
moeabdol has quit [Ping timeout: 268 seconds]
pLaToOn has quit [Read error: Connection reset by peer]
hxegon has joined #ruby
zacts has joined #ruby
SilverKey has joined #ruby
kam270 has quit [Quit: Leaving]
zacts has quit [Client Quit]
zacts has joined #ruby
idefine has quit [Remote host closed the connection]
rbennacer has joined #ruby
idefine has joined #ruby
idle_task has joined #ruby
idletask has quit [Disconnected by services]
idle_task is now known as idleatsk
idleatsk is now known as idletask
senayar has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
senayar has joined #ruby
SuperLag has joined #ruby
whippythellama has joined #ruby
prestorium has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
senayar has quit [Remote host closed the connection]
benlovell has joined #ruby
hxegon has quit [Max SendQ exceeded]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
p1k has quit [Ping timeout: 240 seconds]
St1gma has joined #ruby
Macaveli has joined #ruby
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ikonia has quit [Ping timeout: 260 seconds]
p1k has joined #ruby
t-richards has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
tref has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
idefine has joined #ruby
tinnvec has quit [Read error: Connection reset by peer]
<shevy>
agent_white we are on ruby 2.3.1 now!
tinnvec has joined #ruby
tref has quit [Client Quit]
tubuliferous has joined #ruby
PedramT has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
pwnd_nsfw has quit [Read error: Connection reset by peer]
moeabdol has quit [Ping timeout: 252 seconds]
idefine has quit [Remote host closed the connection]
t-richards has quit []
exm has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
Es0teric has joined #ruby
baweaver has joined #ruby
cpup has joined #ruby
<exm>
Hey, so I'm starting to teach myself ruby, and I've got myself a file where most lines contain useful stuff that's being matched by a regex but not all, so in order to grab the initial hex number on the matching lines I wrote this: `File.readlines("file.txt").grep(regex).map{|l| regex.match(l)[0].hex}`. Is there a way to do that which doesn't match the line against the regex twice?
deuterium has joined #ruby
cdg has joined #ruby
Spami has joined #ruby
marr has joined #ruby
navneet has quit [Read error: Connection reset by peer]
y2mq37 has quit [Read error: Connection reset by peer]
navneet_ has joined #ruby
<agent_white>
shevy: WOOOHOOO
tinnvec has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 250 seconds]
tinnvec has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Shashikant86 has joined #ruby
zacts has joined #ruby
hxegon has joined #ruby
<atmosx>
exm not sure what you're asking, but sounds like it could be solved with a more fine grained regex.
GodFather has joined #ruby
Shashikant86 has quit [Max SendQ exceeded]
statelesscode has quit [Quit: statelesscode]
<exm>
atmosx: Basically, I've got an array of lines like "95AB stuff" and some that don't start with a number. What I want is an array containing all of the numbers
<zacts>
hi rubyists
baweaver has joined #ruby
SilverKey has quit [Quit: Halted.]
<exm>
Right now, I'm first filtering for the lines that match, then on each line doing the match and pulling out the part I need. I'm trying to find a cleaner way to do that
Xeago has joined #ruby
navneet_ has quit [Remote host closed the connection]
<atmosx>
exm yeah it's a regex problem :-) - can you share a sample ?
solars has quit [Ping timeout: 276 seconds]
<exm>
Sure, so a line I want to turn into 3262 would look like "CBE *" and a line I want to completely skip would look like "# this is a comment"
aegis3121 has joined #ruby
<hanmac>
instead of readlines(path).grep(regexp) wouldn't read(path).scan(regexp) be better?
ferr has quit [Ping timeout: 250 seconds]
navneet has joined #ruby
norc has quit [Ping timeout: 250 seconds]
<exm>
hanmac: probably! Thanks, I didn't see that method
<atmosx>
exm there's rubular.com to try ruby regex
navneet_ has joined #ruby
<atmosx>
you could actually pick the lines you want and extract the items you need 1 one pass I guess.
zast has joined #ruby
<eam>
well, if he really does have line based input with only one number per line he probably does want to iterate lines
<exm>
Yeah, that's what I was trying to figure out how to do
RegulationD has joined #ruby
deadnull has quit [Quit: Bye]
smathy has joined #ruby
<exm>
and I would prefer avoiding reading the entire file into memory, though the machine I'm sitting at now can do it
benlovell has quit [Ping timeout: 276 seconds]
tsherman has joined #ruby
idefine_ has joined #ruby
crystal77 has joined #ruby
navneet_ has quit [Read error: Connection reset by peer]
flashpoint9 has quit [Remote host closed the connection]
navneet_ has joined #ruby
tsherman has quit [Max SendQ exceeded]
navneet has quit [Ping timeout: 260 seconds]
<hanmac>
exm: readlines already does read the entire file into memory ... if you might get that problem, checkout File::foreach
<eam>
exm: what you have originally seems fine, just remove the grep and conditionally do nothing if the regex doesn't match in the map {}
IrishGringo has quit [Ping timeout: 250 seconds]
<exm>
Okay, thanks
<eam>
(and switch to a per-line loop like hanmac suggests)
RegulationD has quit [Ping timeout: 246 seconds]
swills has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
synthroid has quit [Remote host closed the connection]
brendan- has quit [Ping timeout: 244 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
idefine_ has quit [Read error: Connection reset by peer]
idefine has joined #ruby
ramfjord has joined #ruby
Xeago has quit [Remote host closed the connection]
astrobun_ has joined #ruby
dhollinger has joined #ruby
terlar has quit [Ping timeout: 276 seconds]
IrishGringo has joined #ruby
mark_66 has left #ruby ["PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :leguin.freenode.net"]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
droptone has quit [Quit: leaving]
zacts_ has joined #ruby
idefine has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 276 seconds]
benlovell has joined #ruby
erict has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
zacts has quit [Ping timeout: 268 seconds]
senayar has quit []
d0lph1n98 has quit [Quit: leaving]
navneet_ has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
navneet has joined #ruby
d0lph1n98 has joined #ruby
stardiviner has quit [Ping timeout: 276 seconds]
d0lph1n98 has quit [Client Quit]
navneet has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
navneet has joined #ruby
d0lph1n98 has joined #ruby
The_Phoenix has joined #ruby
zacts_ has quit [Quit: WeeChat 1.4]
<shevy>
damn
<shevy>
I thought for a moment that eam was talking to himself here
zacts has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
SilverKey has joined #ruby
zacts is now known as Guest81719
solocshaw has joined #ruby
chipotle has joined #ruby
idefine has joined #ruby
sergey_makagon has joined #ruby
d0lph1n98 has quit [Client Quit]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
<baweaver>
eam always talks to himself
flashpoint9 has joined #ruby
d0lph1n98 has joined #ruby
<baweaver>
it's just consequentially interpretable as conversation to an outside party
<eam>
could you please not interrupt us
<eam>
haha
baweaver is now known as eam2
<eam2>
we like it better that way
ramfjord has quit [Ping timeout: 260 seconds]
<eam>
eam2: hello you amazing, beautiful person
<eam2>
eam: <3
Guest81719 has quit [Client Quit]
ule has left #ruby [#ruby]
zacts_ has joined #ruby
jaguarmagenta has joined #ruby
<eam2>
shevy is just jealous
pwnd_nsfw has joined #ruby
nton has joined #ruby
nton has quit [Client Quit]
exm has left #ruby [#ruby]
zacts_ is now known as zacts
n008f4g_ has joined #ruby
eam2 is now known as baweaver
<eam>
more jelly than a pectin factory
sergey_makagon has quit []
kareeoleez has quit [Remote host closed the connection]
lxsameer has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
symm- has joined #ruby
hxegon_ has quit [Client Quit]
hxegon has joined #ruby
aspiers_ has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
RegulationD has joined #ruby
phpwebdev has joined #ruby
Yiota has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
pandaant has quit [Remote host closed the connection]
speakingcode has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 276 seconds]
howdoico1 has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
inageru has joined #ruby
SilverKey has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
SilverKey has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
jackjackdripper1 has quit [Quit: Leaving.]
mwlang has joined #ruby
TomyLobo has joined #ruby
Macaveli has joined #ruby
Pumukel has quit [Ping timeout: 244 seconds]
xcesariox has joined #ruby
deadnull has quit [Quit: Bye]
SilverKey has quit [Client Quit]
Devalo has quit [Remote host closed the connection]
kfpratt has joined #ruby
astrobun_ has quit [Remote host closed the connection]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
tvon[laptop] has quit [Quit: System is sleeping...]
jackjackdripper has joined #ruby
tvon has joined #ruby
astrobu__ has joined #ruby
sneakerhax has quit [Ping timeout: 260 seconds]
joonty has quit [Ping timeout: 252 seconds]
mwlang has quit [Quit: mwlang]
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
Marsupermammal has joined #ruby
Marsupermammal has quit [Client Quit]
mikecmpbll has quit [Ping timeout: 268 seconds]
JBlazeCoder21 has joined #ruby
<inageru>
I ran into an oddity with ruby BigDecimal.new using precision >8 and float input: 0.03 becomes 0.029999999. This also happens with 0.06 (.059), 0.09 (.089) and 0.009(.0089). It's not a rounding issue with output, the value is stored this way: #<BigDecimal:7fce8113b710,'0.29999999E-1',9(27)> Can someone help me understand this?
IrishGringo has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
astrobu__ has quit [Remote host closed the connection]
mjuszczak has quit []
huyderman_ has quit [Read error: Connection reset by peer]
<lagweezle>
My guess is that floats are ... well, the way they are stored in binary causes a lot of interesting issues.
Snowy has quit [Remote host closed the connection]
<inageru>
Are there any docs on the binary implementation of bigDecimal? I understand there can be precision issues with floats but this seems somewhat inconsistent.
zacstewart has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 250 seconds]
<inageru>
For example, using a string instead of a float to instantiate: BigDecimal.new('0.03',8) == #<BigDecimal:7fce821b7508,'0.3E-1',9(18)>
<eam>
inageru: the float value of 0.03 is actually 0.02999999
<eam>
this is a problem with float, not bigdecimal
troulouliou_div2 has joined #ruby
<inageru>
ah, I see
moeabdol has quit [Ping timeout: 276 seconds]
<lagweezle>
>> BigDecimal.new(0.2,8)
<ruby[bot]>
lagweezle: # => uninitialized constant BigDecimal (NameError) ...check link for more (https://eval.in/560815)
hakunin has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
igam has quit [Ping timeout: 250 seconds]
tvon has quit [Quit: System is sleeping...]
billy1234 has quit [Ping timeout: 276 seconds]
hakunin has joined #ruby
last_staff has joined #ruby
godzillaenlacasa has joined #ruby
denny has joined #ruby
billy1234 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
frem_ has joined #ruby
zacstewart has joined #ruby
rbennace_ has joined #ruby
flashpoint9 has joined #ruby
deadnull has joined #ruby
idefine has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
hakunin has quit [Ping timeout: 268 seconds]
evidex has quit [Ping timeout: 240 seconds]
BtcBen has joined #ruby
evidex has joined #ruby
brendan- has joined #ruby
inageru has quit [Ping timeout: 250 seconds]
tvon has joined #ruby
navneet__ has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evidex has quit [Remote host closed the connection]
bricker has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
huyderman has quit [Read error: Connection reset by peer]
howdoico1 has joined #ruby
jaguarmagenta has joined #ruby
deadnull has quit [Read error: Connection reset by peer]
huyderman has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
borodin has joined #ruby
deadnull has joined #ruby
<borodin>
howdy folks
<borodin>
I'm using rbenv (via puppet) to install gems on a box. I'm having a permissions issue. How do I completely remove all gems on a box (as if no gems had ever been installed)?
<borodin>
so I can wipe out the environment and start over
bricker has quit [Quit: leaving]
jaguarmagenta has quit [Ping timeout: 252 seconds]
<al2o3-cr>
borodin: gem uninstall --all ?
<borodin>
thing is, gem uninstall doesn't seem to really work
bruce_lee has quit [Remote host closed the connection]
Prominent_ has joined #ruby
zast has quit [Remote host closed the connection]
malconis has joined #ruby
diegoviola has joined #ruby
tvon has quit [Quit: System is sleeping...]
d5sx43 has joined #ruby
aspiers_ has joined #ruby
d5sx43 has quit [Remote host closed the connection]
Prominent_ has quit [Client Quit]
GriffinHeart has quit [Remote host closed the connection]
tvon has joined #ruby
Prominent has quit [Client Quit]
babblebre has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.2/20160407164938]]
crdpink has joined #ruby
nando293921 has quit [Ping timeout: 240 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
ferr has joined #ruby
SilentEcho has quit [Quit: WeeChat 1.0.1]
emilford has joined #ruby
siaw has joined #ruby
SCHAAP137 has joined #ruby
isxek has quit [Quit: Leaving]
billy1234 has quit [Ping timeout: 268 seconds]
Limix has joined #ruby
aspiers_ has quit [Ping timeout: 250 seconds]
aspiers_ has joined #ruby
marr has quit [Remote host closed the connection]
dhollinger has joined #ruby
kristofferR has joined #ruby
sauvin has quit [Remote host closed the connection]
godzillaenlacasa has quit [Quit: ZZZZZ....]
idefine has joined #ruby
blaix has joined #ruby
deuterium has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
diegoaguilar has quit [Remote host closed the connection]
ramortegui has quit [Quit: Ex-Chat]
kobain has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
siaw has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
siaw has joined #ruby
joonty has joined #ruby
nemesit|znc has quit [Quit: quit]
lemur has quit [Remote host closed the connection]
jdelaney has joined #ruby
aspiers_ has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
jdelaney has quit [Client Quit]
mjuszczak has joined #ruby
jdelaney has joined #ruby
tvon has quit [Quit: Peace out, y'all!]
duderonomy has joined #ruby
poweratom__ has joined #ruby
nofacade has joined #ruby
berserk_ren has quit [Ping timeout: 250 seconds]
joonty has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aspiers_ has joined #ruby
<jdelaney>
Any recommendations for resources on learning Ruby (and Sinatra) that are written for people who already have experience in other languages? I wanna avoid tutorials that go over what an if statement is
mjuszczak has quit [Ping timeout: 260 seconds]
omegahm has joined #ruby
<havenwood>
jdelaney: The Well-Grounded Rubyist (the Second Edition is up-to-date) is a nice introduction that gets right into things.
mikecmpbll has joined #ruby
tagaulap has quit [Quit: Connection closed for inactivity]
<havenwood>
jdelaney: You might enjoy the Koans even though they start out very basic.
<jdelaney>
havenwood: Thanks! I'll check all of those out
<havenwood>
jdelaney: I'd suggest looking at Roda as well as Sinatra. It's a bit harder to find material on but the code and it's plugins are very worth a read: http://roda.jeremyevans.net/index.html
<havenwood>
its*
<jdelaney>
havenwood: I'll look at that as well
yasha_ has joined #ruby
gregf has joined #ruby
blackmesa has joined #ruby
billy1234 has joined #ruby
_blizzy_ has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
elifoster has joined #ruby
dmr8 has joined #ruby
_blizzy_ has quit [Client Quit]
aspiers_ has quit [Ping timeout: 250 seconds]
<smathy>
Roda is very nice.
JBlazeCoder21 has quit [Remote host closed the connection]
<roelof>
Can I somehow solve this deprecation error : DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead. when I do rake ?
poweratom__ has quit [Quit: (null)]
treehug88 has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
devbug has joined #ruby
EdwardIII has quit [Ping timeout: 240 seconds]
dhollinger has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
EdwardIII has joined #ruby
m8 has joined #ruby
PedramT has joined #ruby
idefine_ has joined #ruby
devbug has quit [Quit: ZZZzzz…]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dsimon>
roelof, are the calls to last_comment coming from your code?
devbug has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
<roelof>
is it not my code. Im doing exercises from a learn ruby github course
two_seven_zero_o has joined #ruby
two_seven_zero_o is now known as |2701
mdw_ has quit [Quit: Sleeping Zzzzz]
shinnya has joined #ruby
jottr has joined #ruby
elifoster has quit [Ping timeout: 276 seconds]
<dsimon>
hm, yeah, this rabbit hole is deeper than i expected :-)
|2701 has quit [Client Quit]
<dsimon>
are you using a Gemfile in your project?
|2701 has joined #ruby
benlovell has joined #ruby
<dsimon>
in the exercises, i mean
the_drow has quit [Quit: This computer has gone to sleep]
karapetyan has quit [Remote host closed the connection]
bob434 has joined #ruby
karapetyan has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
blaix has quit [Quit: Leaving.]
<roelof>
yep, a very little one
benlovell has quit [Ping timeout: 252 seconds]
<roelof>
dsimon: this is the whole gem file : gem "rake" gem "rspec", "~>2.0"
freerobby has quit [Quit: Leaving.]
idefine_ has quit [Remote host closed the connection]
tomaskul has joined #ruby
jackjackdripper has joined #ruby
nando293921 has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dsimon>
hm
<dsimon>
ok, it looks like this has been fixed in recent rspec
<dsimon>
however going from rspec 2 to rspec 3 may break some tests :-\
LastWhisper____ has joined #ruby
<roelof>
oke, I think I have to life with this message
dml337ira has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aegis3121 has joined #ruby
SilverKey has joined #ruby
synthroid has quit [Remote host closed the connection]
norc has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
djbkd has joined #ruby
paulgrmn3 has quit [Ping timeout: 252 seconds]
elifoster has joined #ruby
mg^ has joined #ruby
tildes has quit [Ping timeout: 276 seconds]
kirun has joined #ruby
djbkd has quit [Remote host closed the connection]
joonty has joined #ruby
s1kx has joined #ruby
djbkd has joined #ruby
cschneid has joined #ruby
z4phod has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
<cschneid>
Is there a way to build a rubygem that compiles a native extension if possible, but if anything goes wrong (no make installed, no C compiler, compiler fails), it continues installing and falls back to a ruby implementation of the functionality instead?
dionysus69 has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
Devalo has joined #ruby
kareeoleez has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 252 seconds]
howdoico1 has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
safe has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
Snowy has joined #ruby
deadnull has joined #ruby
kalz has quit [Ping timeout: 250 seconds]
Arielon has joined #ruby
Limix has quit [Quit: Limix]
n008f4g_ has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
Limix has joined #ruby
kalzz has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
<Papierkorb>
cschneid: the redis gem (which is ruby only) does this by testing if the hiredis gem (which is the C ext) is available
<Papierkorb>
So yeah, not a single-gem solution .. but atleast robust
aeron has joined #ruby
<cschneid>
yeah, releasing two gems is an approach. not-native and native, with approriate shared code between the two
last_staff1 has joined #ruby
<cschneid>
was hoping for a one-size-fits-all approach: "Install xyz gem, and you get bonus C code if it's possible"
last_staff1 has quit [Client Quit]
<cschneid>
which seems surprisingly difficult
<Papierkorb>
cschneid: also, what happens when the user wants to use the C ext, but is currently fighting with the compiler? How to even detect that it's "not possible"?
rumia has quit [Remote host closed the connection]
rattatmatt has quit []
devbug has quit [Quit: ZZZzzz…]
<Papierkorb>
Or the user later wants to use the C version or the ruby version instead due to changed requirements?
<cschneid>
yeah. "not possible" may mean: "attempt, then fail w/ a reasonable message: 'Couldn't install native extension, falling back to ruby. Log @ /tmp/log_file.loglog'
last_staff has quit [Ping timeout: 252 seconds]
Limix has quit [Client Quit]
marr has joined #ruby
JakFrist has joined #ruby
RickHull has left #ruby [#ruby]
polishdub has quit [Quit: Leaving]
nando293921 has quit [Ping timeout: 260 seconds]
idefine has quit [Remote host closed the connection]
kalzz has joined #ruby
alexherbo2 has joined #ruby
mhib has quit [Remote host closed the connection]
kalz has joined #ruby
cdg has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ss_much has joined #ruby
devbug has joined #ruby
norc_ has quit [Ping timeout: 244 seconds]
Caelum has quit [Ping timeout: 250 seconds]
aspiers_ has joined #ruby
aeron has quit [Ping timeout: 260 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
eljimmy has joined #ruby
flashpoint9 has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
Cohedrin_ has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
flashpoint9 has joined #ruby
rumia has joined #ruby
SilverKey has quit [Quit: Halted.]
al2o3-cr has quit [Ping timeout: 260 seconds]
skade has joined #ruby
dmr8 has quit [Quit: Leaving]
the_drow has quit [Quit: This computer has gone to sleep]
devbug has quit [Quit: ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bollullera has joined #ruby
FastJack has joined #ruby
devbug has joined #ruby
mlakewood has joined #ruby
SilverKey has joined #ruby
idefine has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
william3 has quit [Remote host closed the connection]
lemur is now known as baweaver
sleepee_ has joined #ruby
sleepee_ has quit [Max SendQ exceeded]
mdw has joined #ruby
aspiers_ has quit [Ping timeout: 244 seconds]
nofacade has quit [Ping timeout: 276 seconds]
idefine has quit [Ping timeout: 240 seconds]
dome22xl has joined #ruby
Lomex has quit [Remote host closed the connection]
william3 has joined #ruby
Caelum has joined #ruby
swills has quit [Ping timeout: 260 seconds]
jfutbol has joined #ruby
moei has quit [Quit: Leaving...]
perlgod has quit [Ping timeout: 244 seconds]
douglascorrea has quit []
Pumukel has joined #ruby
joonty has joined #ruby
ixti has joined #ruby
yasha_ has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
firstdayonthejob has quit [Quit: WeeChat 1.4]
joonty has quit [Ping timeout: 246 seconds]
fmcgeough has quit [Quit: fmcgeough]
rodfersou has joined #ruby
baweaver has quit [Remote host closed the connection]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
moei has joined #ruby
hakunin has joined #ruby
jenrzzz_ has joined #ruby
nofacade has joined #ruby
Weavel has quit [Quit: I was standing in the park wondering why frisbees got bigger as they get closer. Then it hit me.]
graft has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 252 seconds]
sepp2k has quit [Quit: Leaving.]
al2o3-cr has joined #ruby
hobodave has quit [Ping timeout: 276 seconds]
billy1234 has joined #ruby
jfutbol has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Ping timeout: 250 seconds]
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
aspiers_ has joined #ruby
ledestin has joined #ruby
billy1234 has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
jgrevich has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
billy1234 has joined #ruby
firstdayonthejob has joined #ruby
hakunin has quit [Remote host closed the connection]
jgrevich has joined #ruby
freerobby has joined #ruby
Xeago has joined #ruby
toretore has quit [Ping timeout: 246 seconds]
<borodin>
anybody know why a gem shows up in gem list, but when you require 'gem' it returns false?
<havenwood>
borodin: `false` means it's already been successfully required
johnmilton has quit [Remote host closed the connection]
<borodin>
oh really?
<borodin>
I wonder how I can check to see if it's working?
<borodin>
cool thanks that's helpful info!
<Papierkorb>
borodin: if it doesn't exist, it'll raise a LoadError
Xeago has quit [Ping timeout: 276 seconds]
skweek has joined #ruby
william3 has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 250 seconds]
idefine has quit [Remote host closed the connection]
firstdayonthejob has quit [Quit: WeeChat 1.4]
skade has joined #ruby
swills has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
aspiers_ has quit [Ping timeout: 260 seconds]
Coldblackice_ has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
<borodin>
it's healthy - thanks guys
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<borodin>
spent half the day trying to fix something that wasn't broken
bluOxigen has quit [Ping timeout: 276 seconds]
aegis3121 has quit [Ping timeout: 268 seconds]
idefine has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
aeron has joined #ruby
Coldblackice has joined #ruby
jgrevich has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
Moosashi has joined #ruby
Aswebb_ has joined #ruby
benlovell has joined #ruby
mikecmpbll has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
shwouchkster has quit [Quit: Connection closed for inactivity]
Moosashi has quit [Quit: Moosashi]
symm- has joined #ruby
al2o3-cr has joined #ruby
aegis3121 has joined #ruby
bronson has joined #ruby
idefine has joined #ruby
Aswebb_ has quit [Ping timeout: 260 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
GodFather has joined #ruby
Moosashi has joined #ruby
m8 has quit [Quit: Sto andando via]
idefine has quit [Remote host closed the connection]
x77686d has quit [Remote host closed the connection]
x77686d has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 246 seconds]
bobbycvi has joined #ruby
BtcBen has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 276 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
<highbass>
i am looking to output logs from my ruby app into json format (will use the output to forward to elasticsearch) ... anyone have any experience with this?
Madplatypus has joined #ruby
idefine has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
nofacade has quit [Ping timeout: 268 seconds]
Moosashi has quit [Quit: Moosashi]
bobbycvi has quit [Quit: ...]
djbkd has quit [Remote host closed the connection]
baweaver has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
n008f4g_ has joined #ruby
djbkd has joined #ruby
konr has joined #ruby
bobbycvi has joined #ruby
blackgoat has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<Papierkorb>
highbass: I use the logging gem which can output JSON data OOTB. works fine, but didn't try it yet with ELK
TomyLobo has quit [Ping timeout: 252 seconds]
goodroot has joined #ruby
Coldblackice has quit [Ping timeout: 244 seconds]
joonty has joined #ruby
<highbass>
ahh ok taking a look
baweaver has quit [Ping timeout: 276 seconds]
pawnbox has quit [Read error: Connection reset by peer]
<mlakewood>
Im using the Holidays gem, and Its giving me an UnknownRegion Error. It seems like I might have to instansiate it or something? But the documentation doesnt say anything about that. Anybody have any experience with this>
DoubleMalt has quit [Remote host closed the connection]
benlovell has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
idefine has quit [Ping timeout: 246 seconds]
rooby has joined #ruby
idefine has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
jhack has joined #ruby
RegulationD has joined #ruby
ceej has quit [Remote host closed the connection]
crystal77 has joined #ruby
baweaver has quit [Remote host closed the connection]
justinabrahms has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ceej has joined #ruby
idefine_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
<crystal77>
How feasible is it to learn Ruby, if we don't use it at work? Everything is in Python, and my interest is being a Rails dev.
s00pcan has quit [Ping timeout: 260 seconds]
<justinabrahms>
crystal77, it's easier if work helps, but do-able otherwise. Just means side projects.
<justinabrahms>
Anyone have thoughts on how I mock a free function with rspec's mocks? I have a function calling `daemon_msg "message", :object => a` I want to assert the message and arguments are what I think they are.
<crystal77>
A bit jealous of people who actually use ruby/rails on the job, as I'm sure that makes it much easier to learn.
bollullera has quit [Quit: Leaving.]
RegulationD has quit [Ping timeout: 246 seconds]
LastWhisper____ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
s00pcan has joined #ruby
ur5us has quit [Remote host closed the connection]
s1kx has quit [Quit: bai]
jokke has quit [Ping timeout: 250 seconds]
idefine_ has quit [Remote host closed the connection]
donske has joined #ruby
idefine has joined #ruby
sdothum has joined #ruby
jokke has joined #ruby
baweaver has joined #ruby
s00pcan has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
s00pcan has joined #ruby
Moosashi has joined #ruby
bob434 has joined #ruby
Vile` has joined #ruby
marr has quit [Ping timeout: 268 seconds]
rkazak has quit [Ping timeout: 268 seconds]
mic_e has quit [Ping timeout: 276 seconds]
skweek has joined #ruby
x77686d has quit [Quit: x77686d]
zacstewart has joined #ruby
ur5us has joined #ruby
saneax_AFK is now known as saneax
bob434 has quit [Client Quit]
idefine has quit [Remote host closed the connection]
tfitts has joined #ruby
<tfitts>
I'm trying to encode either 'FF' or 244 into a byte like "\xFF", is there a method you can call on a string or an integer to convert it to a byte?
<tfitts>
sorry, not 244, 255
ur5us_ has joined #ruby
Aswebb_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 246 seconds]
<tfitts>
pack, got it
_chris has joined #ruby
<eam>
tfitts: 255.chr
<eam>
but yeah pack/unpack are great for that
<tfitts>
or that, cool, thanks
<eam>
the "byte" will be a String
SilverKey has joined #ruby
flashpoint9 has joined #ruby
Aswebb_ has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
idefine has joined #ruby
bob434 has joined #ruby
ruby-lang064 has joined #ruby
hxegon is now known as hxegon_afk
bronson has quit [Ping timeout: 250 seconds]
julie_harshaw has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
julieeharshaw has quit [Ping timeout: 250 seconds]
joconcepts has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Nahra` has joined #ruby
Nahra has quit [Remote host closed the connection]
shadeslayer has quit [Read error: Connection reset by peer]
joconcepts has joined #ruby
shadeslayer has joined #ruby
Moosashi has quit [Quit: Moosashi]
amincd has joined #ruby
gregf has quit [Quit: gotta kick my modem in the face]
symm- has quit [Quit: Leaving...]
Noxilex has joined #ruby
justinabrahms has left #ruby ["Leaving"]
lemur has joined #ruby
jottr has quit [Quit: WeeChat 1.4]
GodFather has quit [Ping timeout: 246 seconds]
crystal77 has quit [Ping timeout: 276 seconds]
gregf has joined #ruby
<amincd>
Hi, why is it that when I create an IO object, with io = IO.new(IO.sysopen("filename", "a+"), "a+"), write to it with io.puts "new line", and read the file, with p IO.binread("filename"), it doesn't display the "new line" I added?