apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Kricir has joined #ruby
bitZero__ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
petey has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 276 seconds]
<volty> extremely ugly :)
BillCriswell has joined #ruby
einarj has quit [Ping timeout: 248 seconds]
Popple has quit [Quit: Computer has gone to sleep.]
<bnagy> well the logic seems a bit backwards, but I dunno the whole app and I suspect it's webby so I don't want to :)
Lewix has quit [Remote host closed the connection]
jbrechtel has quit [Ping timeout: 264 seconds]
<endash> that #each option seems identical to #find
<volty> map is wrong with this example
<bnagy> endash: no, cause each lets you break with the object you construct
<endash> ah good point
<bnagy> find would return the klass, which imho is still fine, but it would be duplicated work
mary5030 has joined #ruby
* endash nods
<bnagy> cause you'd have to find the class then recreate the object outside the block
maletor has joined #ruby
<lunks> The problem is that each doesn't return the object.
petey has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
<bnagy> you need to explicitly break with it, like I have there
SeySayux has joined #ruby
<bnagy> otherwise each will return the whole collection once it's done
Kamijou_Touma has quit [Quit: yawn]
<lunks> oh
<lunks> Yeah, it works
<lunks> Still not pretty, but ok
agjacome has quit [Quit: leaving]
eka has joined #ruby
<bnagy> right lunchtime
<volty> strange way of testing the one where you have to initialize the object (with just the 'user') to see if it matches
|jemc| has quit [Ping timeout: 245 seconds]
amacgregor_ has quit [Read error: Connection reset by peer]
randomautomator has joined #ruby
Stygia has quit [Quit: Leaving]
Davey has joined #ruby
paulodiniz has quit [Quit: paulodiniz]
lunks has quit [Ping timeout: 245 seconds]
randomautomator has quit [*.net *.split]
larissa has quit [*.net *.split]
v0n has quit [*.net *.split]
workmad3 has quit [*.net *.split]
randomnick_ has quit [*.net *.split]
mephux has quit [*.net *.split]
endash has quit [*.net *.split]
pygospa has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
Deele has quit [*.net *.split]
sarkis has quit [*.net *.split]
osvico has quit [*.net *.split]
JohnBat26 has quit [*.net *.split]
roadt has quit [*.net *.split]
lectrick has quit [*.net *.split]
s0ber has quit [*.net *.split]
awkisopen has quit [*.net *.split]
soulcake has quit [*.net *.split]
icco has quit [*.net *.split]
Kelet has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
jaynewst_ has quit [*.net *.split]
JoeTheGuest has quit [*.net *.split]
thelamest has quit [*.net *.split]
timmow has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
Caius has quit [*.net *.split]
kreisys has quit [*.net *.split]
cads has quit [*.net *.split]
hiyosi has quit [*.net *.split]
AndChat| has quit [*.net *.split]
i8igmac has quit [*.net *.split]
Cork has quit [*.net *.split]
Fuzai has quit [*.net *.split]
[0x1a]_ has quit [*.net *.split]
jmccune has quit [*.net *.split]
existensil has quit [*.net *.split]
adnils has quit [*.net *.split]
Jdubs has quit [*.net *.split]
SeySayux has quit [*.net *.split]
Kricir has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
rcs has quit [*.net *.split]
yacks has quit [*.net *.split]
Desert_eagle has quit [*.net *.split]
anekos has quit [*.net *.split]
moshee has quit [*.net *.split]
greenrose1 has quit [*.net *.split]
karlfreeman has quit [*.net *.split]
maroloccio has quit [*.net *.split]
hakunin has quit [*.net *.split]
nomadic has quit [*.net *.split]
notbrent_ has quit [*.net *.split]
Xuerian has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
jacobat has quit [*.net *.split]
Tricon has quit [*.net *.split]
Kneferilis has quit [*.net *.split]
DaZ has quit [*.net *.split]
marcgg_ has quit [*.net *.split]
Nilium has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
braincra- has quit [*.net *.split]
epta has quit [*.net *.split]
madhatter has quit [*.net *.split]
FDj has quit [*.net *.split]
spacemud has quit [*.net *.split]
ping-pong has quit [*.net *.split]
wlanboy has quit [*.net *.split]
SJr has quit [*.net *.split]
eoinkelly has quit [*.net *.split]
KobraKao has quit [*.net *.split]
Muz has quit [*.net *.split]
defrag has quit [*.net *.split]
beilabs_ has quit [*.net *.split]
preller has quit [*.net *.split]
marsLantern has quit [*.net *.split]
labrat__ has quit [*.net *.split]
keyvan_ has quit [*.net *.split]
justinweiss has quit [*.net *.split]
scottstamp has quit [*.net *.split]
guiguidoc has quit [*.net *.split]
moted has quit [*.net *.split]
user258467 has quit [*.net *.split]
ged has quit [*.net *.split]
deavid has quit [*.net *.split]
Coolhand has quit [*.net *.split]
wchun has quit [*.net *.split]
sumark has quit [*.net *.split]
zz_dbRenaud has quit [*.net *.split]
didlix has quit [*.net *.split]
lewellyn has quit [*.net *.split]
zeroXten has quit [*.net *.split]
lancepantz has quit [*.net *.split]
mpereira_ has quit [*.net *.split]
zerun0 has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
TheHodge has quit [*.net *.split]
rotor has quit [*.net *.split]
riginding has quit [*.net *.split]
zzak has quit [*.net *.split]
klaas has quit [*.net *.split]
Bry8Star{T2 has quit [*.net *.split]
blackmesa has quit [*.net *.split]
atmosx has quit [*.net *.split]
Boohbah has quit [*.net *.split]
Kabaka has quit [*.net *.split]
linduxed has quit [*.net *.split]
quoin has quit [*.net *.split]
volty has quit [*.net *.split]
zero7 has quit [*.net *.split]
nignaztic has quit [*.net *.split]
atno has quit [*.net *.split]
Columcille has quit [*.net *.split]
babinho has quit [*.net *.split]
Targen has quit [*.net *.split]
brisbin has quit [*.net *.split]
vadviktor has quit [*.net *.split]
vadviktor_ has quit [*.net *.split]
kevinykchan has quit [*.net *.split]
cpruitt has quit [*.net *.split]
Guest60186 has quit [*.net *.split]
jrobeson has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
freakazoid0223 has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
brugidou has quit [*.net *.split]
kstephens has quit [*.net *.split]
maloik has quit [*.net *.split]
matchaw has quit [*.net *.split]
dekz has quit [*.net *.split]
TwinkleHood has quit [*.net *.split]
utkarsh has quit [*.net *.split]
Fraeon has quit [*.net *.split]
eregon has quit [*.net *.split]
ozzloy has quit [*.net *.split]
sixteneighty has quit [*.net *.split]
thomasvs has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
yannickoo has quit [*.net *.split]
brandon has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
xpirator has quit [*.net *.split]
[Neurotic] has quit [*.net *.split]
Rylee has quit [*.net *.split]
eval-in has quit [*.net *.split]
pdtpatrick has quit [*.net *.split]
jgrevich has quit [*.net *.split]
rondale_sc has quit [*.net *.split]
GeissT has quit [*.net *.split]
zorg24 has quit [*.net *.split]
apeiros has quit [*.net *.split]
alx- has quit [*.net *.split]
The-Mad-Pirate has quit [*.net *.split]
Spami has quit [*.net *.split]
lkba has quit [*.net *.split]
davidcelis has quit [*.net *.split]
r0bglees0n has quit [*.net *.split]
mattp_ has quit [*.net *.split]
mmm has quit [*.net *.split]
zodiak has quit [*.net *.split]
banister`sleep has quit [*.net *.split]
Beoran__ has quit [*.net *.split]
`MArceLL` has quit [*.net *.split]
mlue has quit [*.net *.split]
s00pcan has quit [*.net *.split]
g0bl1n has quit [*.net *.split]
Suit_Of_Sables has quit [*.net *.split]
pontiki has quit [*.net *.split]
flori has quit [*.net *.split]
undert- has quit [*.net *.split]
emdub_ has quit [*.net *.split]
geggam has quit [*.net *.split]
eka has quit [*.net *.split]
mary5030 has quit [*.net *.split]
Hanmac1 has quit [*.net *.split]
raphaelivan has quit [*.net *.split]
banghous_ has quit [*.net *.split]
crazymykl has quit [*.net *.split]
dnyy has quit [*.net *.split]
erichmenge has quit [*.net *.split]
radpanda has quit [*.net *.split]
fourq has quit [*.net *.split]
mrapple has quit [*.net *.split]
TomRone has quit [*.net *.split]
davidboy has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
Domon_ has quit [*.net *.split]
karnowski has quit [*.net *.split]
awarner has quit [*.net *.split]
araujo has quit [*.net *.split]
MJBrune has quit [*.net *.split]
Gate has quit [*.net *.split]
wmoxam has quit [*.net *.split]
matrixise has quit [*.net *.split]
katherinem13 has quit [*.net *.split]
joast has quit [*.net *.split]
classix has quit [*.net *.split]
Todd has quit [*.net *.split]
xybre has quit [*.net *.split]
polaco has quit [*.net *.split]
DrForr has quit [*.net *.split]
__main__ has quit [*.net *.split]
drago777 has quit [*.net *.split]
darkc0met has quit [*.net *.split]
lsmola has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
kpwz has quit [*.net *.split]
cout has quit [*.net *.split]
TheSpectre has quit [*.net *.split]
ccooke has quit [*.net *.split]
obiwahn has quit [*.net *.split]
soukihei has quit [*.net *.split]
tonini has quit [*.net *.split]
Elfix_113 has quit [*.net *.split]
epsylon has quit [*.net *.split]
xefi_ has quit [*.net *.split]
indigo has quit [*.net *.split]
juo has quit [*.net *.split]
maZtah has quit [*.net *.split]
drizz has quit [*.net *.split]
kennyvb_ has quit [*.net *.split]
tonni has quit [*.net *.split]
ThePicard has quit [*.net *.split]
canton7 has quit [*.net *.split]
Guest96486 has quit [*.net *.split]
C0deMaver1ck has quit [*.net *.split]
LBRapid has quit [*.net *.split]
jeekl has quit [*.net *.split]
mdst has quit [*.net *.split]
m_3 has quit [*.net *.split]
mumblerit has quit [*.net *.split]
shtirlic_ has quit [*.net *.split]
BeanDip__ has quit [*.net *.split]
casheew_ has quit [*.net *.split]
jalcine has quit [*.net *.split]
ereslibre has quit [*.net *.split]
aalmenar has quit [*.net *.split]
derf- has quit [*.net *.split]
justinmcp has quit [*.net *.split]
slash_nick has quit [*.net *.split]
Brando753 has quit [*.net *.split]
klip has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
priyam_ has quit [*.net *.split]
kennym has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
germanstudent has quit [*.net *.split]
gsvolt has quit [*.net *.split]
gregj has quit [*.net *.split]
parus has quit [*.net *.split]
telling has quit [*.net *.split]
brjannc has quit [*.net *.split]
go|dfish has quit [*.net *.split]
lupine has quit [*.net *.split]
Lorn has quit [*.net *.split]
sirecote has quit [*.net *.split]
matti has quit [*.net *.split]
hellome has quit [*.net *.split]
crazysim has quit [*.net *.split]
ixx has quit [*.net *.split]
petey has quit [*.net *.split]
maletor has quit [*.net *.split]
xk_id has quit [*.net *.split]
Liothen has quit [*.net *.split]
agent_white has quit [*.net *.split]
robert__ has quit [*.net *.split]
xiphias has quit [*.net *.split]
k0rupted has quit [*.net *.split]
XenoWolf has quit [*.net *.split]
framling has quit [*.net *.split]
autumn has quit [*.net *.split]
jericon has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
Guest35381 has quit [*.net *.split]
daveops has quit [*.net *.split]
dominikh has quit [*.net *.split]
Scient has quit [*.net *.split]
ahuman_ has quit [*.net *.split]
bmn has quit [*.net *.split]
elektronaut has quit [*.net *.split]
vaicine has quit [*.net *.split]
sindork has quit [*.net *.split]
mroth has quit [*.net *.split]
sweeper has quit [*.net *.split]
binw has quit [*.net *.split]
jayne has quit [*.net *.split]
jcarouth has quit [*.net *.split]
epic has quit [*.net *.split]
iaj has quit [*.net *.split]
mburns has quit [*.net *.split]
setient has quit [*.net *.split]
rien has quit [*.net *.split]
shaileshg has quit [*.net *.split]
jaredrhine has quit [*.net *.split]
homelinen has quit [*.net *.split]
Bourbon has quit [*.net *.split]
Alasdairrr has quit [*.net *.split]
bier has quit [*.net *.split]
enriclluelles has quit [*.net *.split]
havenwood has quit [*.net *.split]
ehaliewicz has quit [*.net *.split]
idoru has quit [*.net *.split]
shanlar has quit [*.net *.split]
Niamkik_ has quit [*.net *.split]
x0nic has quit [*.net *.split]
trinode_away has quit [*.net *.split]
_nate has quit [*.net *.split]
fuleo has quit [*.net *.split]
ninegrid has quit [*.net *.split]
dziga has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
miah has quit [*.net *.split]
Blue_Ice_ has quit [*.net *.split]
QKO_ has quit [*.net *.split]
rackburn has quit [*.net *.split]
contradictioned_ has quit [*.net *.split]
tov_ has quit [*.net *.split]
three18ti has quit [*.net *.split]
pikapp has quit [*.net *.split]
lepht_afk has quit [*.net *.split]
gstamp has quit [*.net *.split]
tommyblu` has quit [*.net *.split]
karupa64 has quit [*.net *.split]
eshy has quit [*.net *.split]
cibs has quit [*.net *.split]
Davey has quit [*.net *.split]
jduan1981 has quit [*.net *.split]
lsoa has quit [*.net *.split]
sniffingcats has quit [*.net *.split]
fuhgeddaboudit has quit [*.net *.split]
Sel has quit [*.net *.split]
floridities87 has quit [*.net *.split]
tomzx_mac has quit [*.net *.split]
radic has quit [*.net *.split]
wesside_ has quit [*.net *.split]
CalvinnHobbes has quit [*.net *.split]
devyn has quit [*.net *.split]
JZTech101 has quit [*.net *.split]
martxel has quit [*.net *.split]
guyz has quit [*.net *.split]
Bosox20051 has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
Scorchin has quit [*.net *.split]
ericwood has quit [*.net *.split]
hamakn has quit [*.net *.split]
wudofyr has quit [*.net *.split]
Galgorth has quit [*.net *.split]
ndngvr` has quit [*.net *.split]
allanm has quit [*.net *.split]
Xanderby has quit [*.net *.split]
gallon|w has quit [*.net *.split]
chihhsin has quit [*.net *.split]
JesseH has quit [*.net *.split]
ce_afk has quit [*.net *.split]
keee has quit [*.net *.split]
rtl_ has quit [*.net *.split]
dayepa has quit [*.net *.split]
Asher has quit [*.net *.split]
chinkung has quit [*.net *.split]
froy has quit [*.net *.split]
sethetter has quit [*.net *.split]
micah` has quit [*.net *.split]
Guest19968 has quit [*.net *.split]
tewmten has quit [*.net *.split]
TheNumb has quit [*.net *.split]
ejnahc has quit [*.net *.split]
epochwolf has quit [*.net *.split]
mist has quit [*.net *.split]
Schuy13r has quit [*.net *.split]
denken has quit [*.net *.split]
Koshian has quit [*.net *.split]
zastern has quit [*.net *.split]
wallerdev has quit [*.net *.split]
forced_request has quit [*.net *.split]
devoldmx has quit [*.net *.split]
niftylettuce has quit [*.net *.split]
ix007 has quit [*.net *.split]
JumpMast3r has quit [*.net *.split]
zarul has quit [*.net *.split]
qhartman has quit [*.net *.split]
strax has quit [*.net *.split]
nhhagen has quit [*.net *.split]
jsaak has quit [*.net *.split]
Anarch has quit [*.net *.split]
wyan has quit [*.net *.split]
JoeHazzers has quit [*.net *.split]
ggherdov has quit [*.net *.split]
mikemar10 has quit [*.net *.split]
Skelz0r_ has quit [*.net *.split]
moeSeth__ has quit [*.net *.split]
Nex7 has quit [*.net *.split]
chuck_ has quit [*.net *.split]
rblackwe_ has quit [*.net *.split]
redgetan has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
the_mentat has quit [*.net *.split]
dross has quit [*.net *.split]
DefV has quit [*.net *.split]
eliasp has quit [*.net *.split]
DanielRb has quit [*.net *.split]
jachymko has quit [*.net *.split]
wang has quit [*.net *.split]
cson has quit [*.net *.split]
Kudos has quit [*.net *.split]
mahlon has quit [*.net *.split]
wuest has quit [*.net *.split]
Jb____ has quit [*.net *.split]
bakedb has quit [*.net *.split]
ReinH has quit [*.net *.split]
Mattias has quit [*.net *.split]
Kovensky has quit [*.net *.split]
adamholt has quit [*.net *.split]
jglauche has quit [*.net *.split]
neektza1 has quit [*.net *.split]
Sourceless has quit [*.net *.split]
crazed has quit [*.net *.split]
Nuck has quit [*.net *.split]
xargoon has quit [*.net *.split]
Rydekull has quit [*.net *.split]
jbc22 has quit [*.net *.split]
fearoffish has quit [*.net *.split]
patronus has quit [*.net *.split]
johnjay1 has quit [*.net *.split]
destructure has quit [*.net *.split]
shaman42 has quit [*.net *.split]
fbernier has quit [*.net *.split]
phantomcircuit has quit [*.net *.split]
oz has quit [*.net *.split]
Morrolan has quit [*.net *.split]
blkcrwn has quit [*.net *.split]
aboudreault has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
skinny_much has quit [*.net *.split]
musl has quit [*.net *.split]
dv_ has quit [*.net *.split]
julian-delphiki has quit [*.net *.split]
flowerhack has quit [*.net *.split]
ned has quit [*.net *.split]
paul__k has quit [*.net *.split]
bartj3 has quit [*.net *.split]
airtonix has quit [*.net *.split]
tr4656 has quit [*.net *.split]
jso has quit [*.net *.split]
spacebug has quit [*.net *.split]
ckrailo has quit [*.net *.split]
stnly has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
darrik has quit [*.net *.split]
Nahra has quit [*.net *.split]
reactormonk has quit [*.net *.split]
DylanJ has quit [*.net *.split]
marienz has quit [*.net *.split]
octarine has quit [*.net *.split]
jeremyb has quit [*.net *.split]
duke_nukem has quit [*.net *.split]
asuka has quit [*.net *.split]
Aloysius1 has quit [*.net *.split]
blz37 has quit [*.net *.split]
zeusmns has quit [*.net *.split]
kitak has quit [*.net *.split]
closer has quit [*.net *.split]
BillCriswell has quit [*.net *.split]
get9 has quit [*.net *.split]
thepumpkin has quit [*.net *.split]
baroquebobcat has quit [*.net *.split]
Kruppe has quit [*.net *.split]
sophomorical has quit [*.net *.split]
Anderson has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
jpinnix has quit [*.net *.split]
UForgotten has quit [*.net *.split]
taion809 has quit [*.net *.split]
yasu has quit [*.net *.split]
alo1 has quit [*.net *.split]
swistak35 has quit [*.net *.split]
kenichi has quit [*.net *.split]
graft has quit [*.net *.split]
robwilliamsukio has quit [*.net *.split]
sebastianb has quit [*.net *.split]
oddraisin has quit [*.net *.split]
hanoi has quit [*.net *.split]
yonahw_ has quit [*.net *.split]
awpti has quit [*.net *.split]
arusso has quit [*.net *.split]
Dwarf has quit [*.net *.split]
zaltekk has quit [*.net *.split]
jmaister has quit [*.net *.split]
ryanf has quit [*.net *.split]
voodoofish has quit [*.net *.split]
creature has quit [*.net *.split]
chxane has quit [*.net *.split]
psyprus has quit [*.net *.split]
audibleblink has quit [*.net *.split]
farn has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
wormwood has quit [*.net *.split]
dlind has quit [*.net *.split]
conceal_rs_____0 has quit [*.net *.split]
bugsinlights has quit [*.net *.split]
robustus has quit [*.net *.split]
jan1337z has quit [*.net *.split]
seoNinjaWarrior has quit [*.net *.split]
Akuma has quit [*.net *.split]
Catie has quit [*.net *.split]
aspiers has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
blooberr_ has quit [*.net *.split]
aliljet has quit [*.net *.split]
Davedo has quit [*.net *.split]
fryguy has quit [*.net *.split]
matled has quit [*.net *.split]
lewiz has quit [*.net *.split]
Bish has quit [*.net *.split]
oddalot has quit [*.net *.split]
MrZYX|off has quit [*.net *.split]
cucumbrman has quit [*.net *.split]
aef_ has quit [*.net *.split]
gf3 has quit [*.net *.split]
mfilipe has quit [*.net *.split]
willb1 has quit [*.net *.split]
Zespre has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
falten has quit [*.net *.split]
krnflake has quit [*.net *.split]
mjmac has quit [*.net *.split]
edwardly has quit [*.net *.split]
calmyournerves has quit [*.net *.split]
KillerFox has quit [*.net *.split]
Rix has quit [*.net *.split]
qz has quit [*.net *.split]
phreax has quit [*.net *.split]
orionstein_away has quit [*.net *.split]
Rennex has quit [*.net *.split]
robaman has quit [*.net *.split]
BombStrike has quit [*.net *.split]
jtperreault has quit [*.net *.split]
felipe has quit [*.net *.split]
tomaw has quit [*.net *.split]
ayonix has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
Azure has quit [*.net *.split]
james_woods has quit [*.net *.split]
metallisto has quit [*.net *.split]
BrianJ has quit [*.net *.split]
fridim__ has quit [*.net *.split]
Quashie has quit [*.net *.split]
felixjet__ has quit [*.net *.split]
Cyrus has quit [*.net *.split]
chuk_ has quit [*.net *.split]
snath has quit [*.net *.split]
joshu has quit [*.net *.split]
swordsmanz has quit [*.net *.split]
brian` has quit [*.net *.split]
aggregatebot has quit [*.net *.split]
plotter has quit [*.net *.split]
angelixd has quit [*.net *.split]
gtc has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
Mnemon has quit [*.net *.split]
pinage404 has quit [*.net *.split]
awc737_ has quit [*.net *.split]
ainame has quit [*.net *.split]
DanKnox_away has quit [*.net *.split]
faulkner has quit [*.net *.split]
RDash[AW] has quit [*.net *.split]
lessless has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
duracrisis has quit [*.net *.split]
yano has quit [*.net *.split]
kloeri has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
DandyPandy has quit [*.net *.split]
supki has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
tafryn has quit [*.net *.split]
jellow has quit [*.net *.split]
fred has quit [*.net *.split]
Snow- has quit [*.net *.split]
monomyth has quit [*.net *.split]
terlar has quit [*.net *.split]
regedarek has quit [*.net *.split]
yellow5 has quit [*.net *.split]
finges has quit [*.net *.split]
daaaan_ has quit [*.net *.split]
huoxito has quit [*.net *.split]
nerdy has quit [*.net *.split]
sirupsen has quit [*.net *.split]
dmiller has quit [*.net *.split]
Xeago has quit [*.net *.split]
clov3r has quit [*.net *.split]
tehKitten has quit [*.net *.split]
nbouscal has quit [*.net *.split]
crodas has quit [*.net *.split]
fivethre1o has quit [*.net *.split]
hmsimha has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
caveat- has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
Roa has quit [*.net *.split]
phrog has quit [*.net *.split]
cam`_ has quit [*.net *.split]
bw_ has quit [*.net *.split]
RTG` has quit [*.net *.split]
speakingcode-wor has quit [*.net *.split]
Lindrian has quit [*.net *.split]
joschi has quit [*.net *.split]
zmansiv has quit [*.net *.split]
aaroncm_ has quit [*.net *.split]
wereHamster has quit [*.net *.split]
JStoker has quit [*.net *.split]
dubios has quit [*.net *.split]
tchebb has quit [*.net *.split]
TTilus has quit [*.net *.split]
Tarential has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
gregorg has quit [*.net *.split]
z has quit [*.net *.split]
cub1c has quit [*.net *.split]
xsdg has quit [*.net *.split]
nw_ has quit [*.net *.split]
Veejay has quit [*.net *.split]
mostlybadfly has quit [*.net *.split]
sam113101 has quit [*.net *.split]
peterhellberg has quit [*.net *.split]
mosez has quit [*.net *.split]
ichilton has quit [*.net *.split]
replay has quit [*.net *.split]
s2r2 has quit [*.net *.split]
djd has quit [*.net *.split]
diegok has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
fumduq has quit [*.net *.split]
thomas` has quit [*.net *.split]
jabular has quit [*.net *.split]
Patteh has quit [*.net *.split]
leehambley has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
BadQuanta has quit [*.net *.split]
riku- has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
ajaxJK has quit [*.net *.split]
TDJACR has quit [*.net *.split]
Guest85414__ has quit [*.net *.split]
VTLob has quit [*.net *.split]
SirFunk has quit [*.net *.split]
bobdobbs has quit [*.net *.split]
average has quit [*.net *.split]
predator217 has quit [*.net *.split]
bluehavana has quit [*.net *.split]
heftig has quit [*.net *.split]
sailias has quit [*.net *.split]
jaimef has quit [*.net *.split]
rndstr has quit [*.net *.split]
mattyohe has quit [*.net *.split]
kapowaz has quit [*.net *.split]
denysonique has quit [*.net *.split]
ziyadb has quit [*.net *.split]
knigitz has quit [*.net *.split]
mark- has quit [*.net *.split]
jp- has quit [*.net *.split]
robonerd has quit [*.net *.split]
geoffw8__ has quit [*.net *.split]
cool has quit [*.net *.split]
shevy has quit [*.net *.split]
jimeh has quit [*.net *.split]
waxjar has quit [*.net *.split]
bricker`work has quit [*.net *.split]
Eiam has quit [*.net *.split]
seich- has quit [*.net *.split]
ghr has quit [*.net *.split]
nanoxd has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
jokke has quit [*.net *.split]
akhkharu has quit [*.net *.split]
Drakevr has quit [*.net *.split]
jinie has quit [*.net *.split]
blo has quit [*.net *.split]
tris has quit [*.net *.split]
Olipro has quit [*.net *.split]
AlSquire has quit [*.net *.split]
malcolmva has quit [*.net *.split]
abstractj has quit [*.net *.split]
drPoggs has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
phutchins has quit [*.net *.split]
rgoodwin has quit [*.net *.split]
tessi has quit [*.net *.split]
m4rcu5 has quit [*.net *.split]
FMJaggy has quit [*.net *.split]
PhilK has quit [*.net *.split]
chiel has quit [*.net *.split]
stopbit has quit [*.net *.split]
cschneid has quit [*.net *.split]
dobry-den has quit [*.net *.split]
banzounet has quit [*.net *.split]
Martinez has quit [*.net *.split]
andredieb has quit [*.net *.split]
uxp has quit [*.net *.split]
Jelco___ has quit [*.net *.split]
dorei has quit [*.net *.split]
sepp2k1 has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
vim_shim has quit [*.net *.split]
aetaric has quit [*.net *.split]
tj`_ has quit [*.net *.split]
flagg0204_ has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
mgorbach has quit [*.net *.split]
Xiti has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
Paradox has quit [*.net *.split]
_br_ has quit [*.net *.split]
virtualize has quit [*.net *.split]
crus` has quit [*.net *.split]
mvangala has quit [*.net *.split]
Nanuq has quit [*.net *.split]
naquad has quit [*.net *.split]
bubbajones has quit [*.net *.split]
DonovanYoung has quit [*.net *.split]
gilesw_ has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
raar has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
randym_ has quit [*.net *.split]
machuga has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
rubyguy has quit [*.net *.split]
heidar has quit [*.net *.split]
Norrin has quit [*.net *.split]
hackeron_ has quit [*.net *.split]
RealMarc has quit [*.net *.split]
foobArrr has quit [*.net *.split]
Mekkis has quit [*.net *.split]
fcoury has quit [*.net *.split]
tethra has quit [*.net *.split]
fasta has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
Nightmare has quit [*.net *.split]
newton has quit [*.net *.split]
nuba has quit [*.net *.split]
peteyg_ has quit [*.net *.split]
Wasp has quit [*.net *.split]
prophile has quit [*.net *.split]
triptec has quit [*.net *.split]
sweet_kid has quit [Excess Flood]
kke has quit [Ping timeout: 351 seconds]
Schmidt has quit [Ping timeout: 351 seconds]
Amnesia has quit [Ping timeout: 372 seconds]
Tobarja has quit [Ping timeout: 414 seconds]
philtr has quit [Ping timeout: 372 seconds]
mick_laptop has quit [Ping timeout: 372 seconds]
maddog_ has quit [Ping timeout: 351 seconds]
ekarlso has quit [Ping timeout: 246 seconds]
bnagy has quit [Ping timeout: 246 seconds]
JMcAfreak has quit [Ping timeout: 246 seconds]
_whitelogger has joined #ruby
rehat has joined #ruby
jduan1981 has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 252 seconds]
jduan1981 has joined #ruby
nisstyre has joined #ruby
petey has quit [Remote host closed the connection]
enriclluelles has quit [Remote host closed the connection]
i_s has joined #ruby
robert_ has quit [Ping timeout: 252 seconds]
robert___ has joined #ruby
randomnick_ has quit [Quit: Leaving]
Cyrus has quit [Ping timeout: 248 seconds]
dagnachew has joined #ruby
Quashie_ has joined #ruby
kazuuu has joined #ruby
Quashie has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
i_s has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 240 seconds]
tomzx_mac has quit [Quit: return 0;]
Quashie_ has quit [Ping timeout: 256 seconds]
BillCriswell has quit [Remote host closed the connection]
ehaliewicz has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
Beoran__ has quit [Read error: Connection reset by peer]
BillCriswell has joined #ruby
Beoran__ has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
BillCriswell has quit [Remote host closed the connection]
Quashie has joined #ruby
vim_shim has quit [Ping timeout: 245 seconds]
Quashie has quit [Ping timeout: 245 seconds]
Quashie has joined #ruby
marsLantern has quit [Quit: marsLantern]
jbrechtel has joined #ruby
Stalkr^ has joined #ruby
kaldrenon has joined #ruby
|jemc| has joined #ruby
cpruitt has quit [Quit: cpruitt]
robert___ is now known as robert_
awkisopen has quit [Ping timeout: 260 seconds]
xk_id has quit [Quit:
awkisopen has joined #ruby
Stalkr^ has quit [Ping timeout: 245 seconds]
wesside_ has quit [Ping timeout: 245 seconds]
kazuuu has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
kaldrenon has quit [Ping timeout: 256 seconds]
justsee has joined #ruby
marsLantern has joined #ruby
sailias has joined #ruby
Popple has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has joined #ruby
wesside has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
kazuuu has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
jbrechtel has quit [Remote host closed the connection]
randomautomator has joined #ruby
sevenseacat has joined #ruby
andredieb has quit [Ping timeout: 260 seconds]
nisstyre has quit [Ping timeout: 260 seconds]
randomautomator has quit [Ping timeout: 264 seconds]
DanKnox_away is now known as DanKnox
v0n has quit [Quit: WeeChat 0.4.2-dev]
mrsolo has joined #ruby
v0n has joined #ruby
cpruitt has joined #ruby
_dv_ has joined #ruby
polaco is now known as polaco_zZz
dv_ has quit [Ping timeout: 260 seconds]
nisstyre has joined #ruby
Domon has joined #ruby
cj3kim_ has joined #ruby
gwb3 has joined #ruby
starship has joined #ruby
awkisopen_ has joined #ruby
awkisopen_ has quit [Changing host]
awkisopen_ has joined #ruby
fmcgeough has joined #ruby
maletor has joined #ruby
vim_shim has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
paulodiniz has quit [Quit: paulodiniz]
awkisopen has quit [Disconnected by services]
awkisopen_ is now known as awkisopen
cpruitt has quit [Quit: cpruitt]
mrsolo has quit [Quit: This computer has gone to sleep]
zastern has quit [Read error: Connection reset by peer]
zastern has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
sevenseacat1 has joined #ruby
threesome has joined #ruby
cmarques has joined #ruby
robbyoconnor has joined #ruby
cpruitt has joined #ruby
|jemc| has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 248 seconds]
dagnachew has quit [Quit: WeeChat 0.4.1]
paulodiniz has joined #ruby
sevenseacat has quit [Ping timeout: 276 seconds]
vxxr has joined #ruby
i_s has joined #ruby
havenwood has joined #ruby
<xybre> What about Enumerable#with_object?
Loaft has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 256 seconds]
dorei has quit []
DanKnox is now known as DanKnox_away
dmiller has quit [Remote host closed the connection]
snovak has joined #ruby
sniffingcats has quit [Quit: Til rivido Idisti!]
Stalkr^ has joined #ruby
get9 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
eka has quit [Quit: Computer has gone to sleep.]
i_s has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 240 seconds]
leehambley has quit [Ping timeout: 260 seconds]
Stalkr^ has quit [Ping timeout: 264 seconds]
leehambley has joined #ruby
cody-- has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
paulodiniz has quit [Quit: paulodiniz]
Aryasam has joined #ruby
Amnesia has joined #ruby
kalleth has joined #ruby
SegFaultAX has joined #ruby
Taranis has joined #ruby
artmann has joined #ruby
Buuyo has joined #ruby
tommyvyo has joined #ruby
ShapeShifter499 has joined #ruby
JaTochNietDan has joined #ruby
jpun has joined #ruby
xerxas has joined #ruby
ohcibi has joined #ruby
guilleiguaran_ has joined #ruby
18WAEEUBU has joined #ruby
jnix has joined #ruby
hoelzro has joined #ruby
tekacs has joined #ruby
Spitfire has joined #ruby
Hien has joined #ruby
tobiasvl has joined #ruby
G has joined #ruby
Sammael has joined #ruby
antulik-afk has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
cpruitt has quit [Quit: cpruitt]
Aryasam has joined #ruby
Amnesia is now known as Guest96313
Fuzai has quit [Ping timeout: 252 seconds]
wesside has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
kitak has quit [Remote host closed the connection]
Fuzai has joined #ruby
bricker`LA has joined #ruby
tov_ is now known as tov
cody-- has quit [Quit: derp]
thepumpkin has quit [Remote host closed the connection]
radic_ has joined #ruby
radic has quit [Disconnected by services]
cmarques has quit [Read error: Connection reset by peer]
larissa has quit [Quit: Leaving]
quazimodo has joined #ruby
Aryasam has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dmiller has joined #ruby
petey has joined #ruby
okinomo has joined #ruby
thomasxie has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
kazuuu has quit [Remote host closed the connection]
NealJ has quit [Quit: :c]
dmiller has quit [Ping timeout: 256 seconds]
machuga is now known as machuga|away
sevenseacat1 is now known as sevenseacat
rjhunter has joined #ruby
thepumpkin has joined #ruby
Spami has joined #ruby
gwb3 has quit [Remote host closed the connection]
Aryasam has joined #ruby
thomasxie has quit [Remote host closed the connection]
Stalkr^ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
Stalkr^ has quit [Ping timeout: 256 seconds]
MrHacks has joined #ruby
snovak has joined #ruby
<MrHacks> Hey rubyist. This may sound like a foolish question but where do I include the Math module generally for my ruby scripts? My class isn't trying to derive from, nor include within itself the entire module, just a few trig functions for a single method that uses them.
ner0x has joined #ruby
<bnagy> >> Math.sin(4)
<eval-in> bnagy => -0.7568024953079282 (https://eval.in/49805)
<bnagy> looks like no need
<bnagy> you seeing different results?
<havenwood> you get additional methods with `require 'mathn'` but some of Math is available without the require
<MrHacks> Oh...OK. I was just wondering. I started programming in ruby about a couple of weeks ago and felt like rewriting a program in it.
<MrHacks> Thanks.
snovak has quit [Ping timeout: 264 seconds]
gwb3 has joined #ruby
Aryasam_ has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
bricker`LA has quit [Ping timeout: 264 seconds]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
baroquebobcat has quit [Quit: baroquebobcat]
<havenwood> >> original = Math.methods.size; require 'mathn'; Math.methods.size - original
<eval-in> havenwood => 21 (https://eval.in/49806)
kizzx2 has joined #ruby
<havenwood> >> original = Math.methods; require 'mathn'; Math.methods - original
<eval-in> havenwood => [:exp!, :log!, :log2!, :log10!, :sqrt!, :cbrt!, :sin!, :cos!, :tan!, :sinh!, :cosh!, :tanh!, :asin!, :acos!, :atan!, :atan2!, :asinh!, :acosh!, :atanh!, :handle_no_method_error, :rsqrt] (https://eval.in/49807)
<bnagy> weird
<bnagy> so it only adds the hang methods.. what do they even do? Ohh, if you mix it in to a Numeric or something?
<bnagy> *bang
flagg0204_ has quit [Quit: Laters...]
<havenwood> >> Math.sqrt(4/9)
<eval-in> havenwood => 0.0 (https://eval.in/49808)
<havenwood> >> require 'mathn'; Math.sqrt(4/9)
<eval-in> havenwood => (2/3) (https://eval.in/49809)
flagg0204_ has joined #ruby
flagg0204_ has quit [Remote host closed the connection]
<havenwood> bnagy: dunno what the bang methods do
The-Mad-Pirate has quit []
flagg0204_ has joined #ruby
<bnagy> requiring mathn gives you Rational, by the looks
<havenwood> aye
<r0bglees0n> i dont think anything Numeric can be mutated?
<havenwood> r0bglees0n: yeah, the standard bang indicator of 'modifying the receiver' doesn't make sense
kazuuu has joined #ruby
Jdubs has joined #ruby
<r0bglees0n> doesn't indicate that tho
<r0bglees0n> suppose to indicate "be careful"
<MrHacks> I can used self.something to describe @something that is a variable in a class, correct?
<r0bglees0n> MrHacks: with attr_reader :something, sure
DanKnox_away is now known as DanKnox
<MrHacks> Got that. But it's down towards the bottom, r0bglees0n
<r0bglees0n> im not 100% sure what that means. it doesn't matter when you call it, usually.
chinkung has quit [Read error: Connection reset by peer]
<r0bglees0n> is the method a class or instance method?
Aryasam_ has quit [Ping timeout: 264 seconds]
* MrHacks programs in C++ sometimes so private variables get declared last. Old habit
petey has quit [Remote host closed the connection]
BizarreCake has joined #ruby
<havenwood> yeah, Matz from 2009: The bang (!) does not mean "destructive" nor lack of it mean non destructive either. The bang sign means "the bang version is more dangerous than its non bang counterpart; handle with care".
<havenwood> math... in the DANGER ZONE!
<r0bglees0n> lol
<r0bglees0n> where's the retweet button
<bnagy> BRO I AM TOTALL BANG ACOS UP IN THAT SHIT
mary5030 has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
<havenwood> Lana... Lana... Lana... LLAANNAA!
<MrHacks> calculus... in the Evil Kinevil part of the danger zone. Woooooooohooo!
* MrHacks jumps the grand canyon
flagg0204_ has quit [Remote host closed the connection]
flagg020- has joined #ruby
gwb3 has quit [Remote host closed the connection]
girija has joined #ruby
CalvinnHobbes has quit [Ping timeout: 245 seconds]
T_T has joined #ruby
<zastern> Man I gotta say
<zastern> I have learned more from Lynda.com's ruby vids
<zastern> than from completing codecademy's ruby track
<zastern> reading books
<zastern> koans
<zastern> I feel like I might actually get something done
bobdobbs has quit [Remote host closed the connection]
bobdobbs has joined #ruby
v0n has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 256 seconds]
flagg020- has quit [Remote host closed the connection]
flagg0204_ has joined #ruby
snovak has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
<scottstamp> Anyone know any examples of using Sequel with associated tables?
snovak has quit [Ping timeout: 245 seconds]
<scottstamp> Like I know they have the docs I just have no idea how to actually setup everything, my classes and such.
lessless has quit [Remote host closed the connection]
bricker`LA has joined #ruby
flagg0233 has joined #ruby
nari has joined #ruby
gwb3 has joined #ruby
flagg0204 has quit [Remote host closed the connection]
flagg0204_ is now known as flagg0204
flagg0233 has quit [Client Quit]
Hanmac has quit [Quit: Leaving.]
okinomo has quit [Ping timeout: 252 seconds]
petey has joined #ruby
quazimodo has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
girija has quit [Ping timeout: 264 seconds]
nerdy has quit [Quit: Computer has gone to sleep.]
jefflyne has joined #ruby
browndawg has joined #ruby
Stalkr^ has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
vxxr has quit [Quit: leaving]
quazimodo has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
havenwood has joined #ruby
mary5030_ has joined #ruby
justsee has joined #ruby
Stalkr^ has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 264 seconds]
m00nlight has joined #ruby
mary5030_ has quit [Remote host closed the connection]
kung has joined #ruby
wallerdev has quit [Quit: wallerdev]
toah has joined #ruby
ner0x has quit [Quit: Leaving]
okinomo has joined #ruby
wallerdev has joined #ruby
wallerdev has joined #ruby
Deele has joined #ruby
wallerdev has quit [Remote host closed the connection]
alx- has quit [Quit: Leaving...]
nari has quit [Ping timeout: 252 seconds]
Jdubs_ has joined #ruby
jellow has quit [Quit: leaving]
mrsolo has joined #ruby
Jdubs_ has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
Jdubs_ has joined #ruby
Jdubs has quit [Ping timeout: 245 seconds]
toastynerd has left #ruby ["Leaving"]
toastynerd has joined #ruby
toah has quit [Remote host closed the connection]
gwb3 has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Jdubs has joined #ruby
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
threesome has quit [Ping timeout: 245 seconds]
wchun has quit [Read error: Connection reset by peer]
jerius has joined #ruby
Jdubs_ has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
wchun has joined #ruby
browndawg has quit [Read error: Connection timed out]
xjiujiu has joined #ruby
AdmiraI has joined #ruby
AdmiraI has joined #ruby
mary5030 has quit [Remote host closed the connection]
hackingoff has joined #ruby
browndawg has joined #ruby
Jdubs has quit [Remote host closed the connection]
DrCode has joined #ruby
axeman- has joined #ruby
toah has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
labrat__ has quit [Ping timeout: 264 seconds]
fmcgeough has quit [Read error: Connection reset by peer]
fmcgeough has joined #ruby
jerius has quit []
tabolario has joined #ruby
toah has quit [Remote host closed the connection]
zorg24 has quit [Ping timeout: 248 seconds]
okinomo has joined #ruby
raphaelivan has quit [Quit: Leaving.]
RxDx has joined #ruby
snovak has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
penzur has joined #ruby
pwh has quit [Quit: pwh]
slippyd has joined #ruby
slippyd has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
kizzx2 has quit [Quit: Leaving.]
browndawg has quit [Read error: Connection timed out]
okinomo has quit [Ping timeout: 252 seconds]
Domon has quit [Remote host closed the connection]
browndawg has joined #ruby
Guest60186 has quit [Remote host closed the connection]
Domon has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
Stalkr^ has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
Domon has quit [Ping timeout: 240 seconds]
m00nlight has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
MrHacks has quit [Quit: leaving]
havenwood has joined #ruby
|jemc| has joined #ruby
m00nlight has joined #ruby
Stalkr^ has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
sirupsen has quit []
apeiros has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
mrsolo has joined #ruby
fridim__ has quit [Ping timeout: 248 seconds]
coderhs has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
coderhs has quit [Client Quit]
Krajsnick has joined #ruby
parzo has quit [Ping timeout: 245 seconds]
Xanderby has quit [Quit: Xanderby]
codecop has joined #ruby
swordsmanz has quit [Ping timeout: 248 seconds]
m00nlight has quit [Remote host closed the connection]
Xanderby has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
nerdy has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
aagdbl has joined #ruby
girija has joined #ruby
justsee has joined #ruby
DanKnox is now known as DanKnox_away
bg_ has joined #ruby
Krajsnick has quit [Remote host closed the connection]
m00nlight has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
ewnd9 has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 245 seconds]
nerdy has quit [Quit: Computer has gone to sleep.]
ewnd9 has joined #ruby
nerdy has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
browndawg has quit [Read error: Connection timed out]
clov3r has quit [Remote host closed the connection]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
iliketurtles has joined #ruby
browndawg has joined #ruby
xjiujiu has joined #ruby
browndawg has quit [Client Quit]
rjhunter has quit [Ping timeout: 240 seconds]
gwb3 has joined #ruby
girija has joined #ruby
intuxicated has joined #ruby
eoinkelly has quit [Quit: eoinkelly]
redgetan has left #ruby [#ruby]
gwb3 has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chairabanta has joined #ruby
braoru has joined #ruby
timonv has joined #ruby
Domon has joined #ruby
braoru has quit [Remote host closed the connection]
tagrudev has joined #ruby
RxDx has quit [Ping timeout: 264 seconds]
petey has quit [Remote host closed the connection]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
bg_ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
xjiujiu has joined #ruby
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
intuxicated has quit [Ping timeout: 264 seconds]
graydot has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
scrapcode has joined #ruby
kizzx2 has joined #ruby
<scrapcode> Is there an alternate to wxRuby or something? I can't find much on it, and the website is all jacked up.
<scottstamp> The website seems fine to me?
<scottstamp> LOL WHAT.
<scottstamp> Haha it's open to public editing.
girija has quit [Remote host closed the connection]
<scottstamp> that's fantastic.
banghous_ has quit [Remote host closed the connection]
<scrapcode> ...random gibberish
snovak has joined #ruby
<scottstamp> problem solved
girija has joined #ruby
<scrapcode> ah. didn'
Stalkr^ has joined #ruby
apeiros has joined #ruby
<scrapcode> notice that.. I was thinking maybe a bad DB merge or some shit on shared hosting
mmozuras has joined #ruby
<scottstamp> I'm having a weird problem with Sequel, https://github.com/scottstamp/historian/blob/master/cache.rb my model specifies that Mix has a many_to_many relationship with tracks, but mix.tracks isn't defined.
<scottstamp> scrapcode: I didn't at first until I saw the first sentence about bowling and figured something was up.
atno has quit [Remote host closed the connection]
<scottstamp> Way Back Machine might be able to help you.
<scrapcode> thanks
snovak has quit [Ping timeout: 256 seconds]
scrapcode has quit [Quit: Lost terminal]
parzo has joined #ruby
Stalkr^ has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
wchun has quit [Quit: Leaving]
AlHafoudh has joined #ruby
AlHafoudh has quit [Max SendQ exceeded]
tabolario has quit [Quit: Textual IRC Client: www.textualapp.com]
Monie has joined #ruby
badquanta has quit [Quit: Leaving]
Xeago has quit [Ping timeout: 256 seconds]
zastern has quit [Remote host closed the connection]
robonerd has left #ruby ["..."]
intuxicated has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
kiri has joined #ruby
dangerousdave has joined #ruby
noop has joined #ruby
chairabanta has quit [Quit: Leaving...]
toastynerd has quit [Remote host closed the connection]
zoee has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
gr33n7007h has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
justsee has joined #ruby
justsee has joined #ruby
m00nlight has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
lurch_ has joined #ruby
yacks has joined #ruby
vim_shim has quit [Ping timeout: 264 seconds]
lurch_ has left #ruby [#ruby]
justsee has quit [Ping timeout: 240 seconds]
marcgg has joined #ruby
adambeynon has joined #ruby
marcgg_ has quit [Ping timeout: 240 seconds]
St_Marx has joined #ruby
Domon has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
schaerli has joined #ruby
Domon has joined #ruby
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby
quoin has quit [Remote host closed the connection]
quoin has joined #ruby
kaspergrubbe has joined #ruby
clov3r has joined #ruby
ayaz has joined #ruby
average has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
riku- is now known as riku
michael_mbp is now known as zz_michael_mbp
quoin has quit [Ping timeout: 245 seconds]
clov3r has quit [Read error: Connection reset by peer]
Loaft has quit [Read error: Connection reset by peer]
riku is now known as Guest71488
icco has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Ping timeout: 260 seconds]
sarkis has quit [Ping timeout: 260 seconds]
quoin has joined #ruby
icco has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
zz_michael_mbp is now known as michael_mbp
marcgg_ has joined #ruby
Stalkr^ has joined #ruby
T_T has quit [Remote host closed the connection]
marcgg has quit [Ping timeout: 245 seconds]
quazimodo has joined #ruby
penzur has quit [Quit: uliing]
snovak has joined #ruby
jimeh has quit [Ping timeout: 260 seconds]
Stalkr^ has quit [Ping timeout: 245 seconds]
braoru has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
jimeh has joined #ruby
jprovazn has joined #ruby
andikr has joined #ruby
Macaveli has joined #ruby
vlad_starkov has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
aganov has joined #ruby
icco has quit [Ping timeout: 256 seconds]
justsee has joined #ruby
justsee has joined #ruby
icco has joined #ruby
|jemc| has quit [Ping timeout: 245 seconds]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
psyprus has quit [Ping timeout: 240 seconds]
filipe has joined #ruby
cj3kim_ has joined #ruby
avril14th has joined #ruby
m00nlight has joined #ruby
icco has quit [Ping timeout: 240 seconds]
Macaveli has quit [Ping timeout: 240 seconds]
ahawkins has joined #ruby
icco has joined #ruby
fryguy has quit [Ping timeout: 264 seconds]
h_kon has joined #ruby
kreisys has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
alup has joined #ruby
agent_white has quit [Quit: leaving]
cj3kim_ has quit [Remote host closed the connection]
leonidlm has joined #ruby
psyprus has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
noop has quit [Ping timeout: 245 seconds]
bricker`1A has joined #ruby
bricker`LA has quit [Ping timeout: 264 seconds]
parzo has quit [Ping timeout: 245 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
eoinkelly has joined #ruby
zeropx has joined #ruby
ayaz has joined #ruby
tesuji has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Xeago has joined #ruby
kaspergrubbe has joined #ruby
blaxter_ has joined #ruby
cj3kim has joined #ruby
intuxicated has quit [Ping timeout: 245 seconds]
Xeago has quit [Read error: Connection reset by peer]
quoin has quit [Remote host closed the connection]
Xeago has joined #ruby
Anderson has quit [Ping timeout: 240 seconds]
zarubin has joined #ruby
dash_ has joined #ruby
sayan has joined #ruby
kyllesdk has joined #ruby
|jemc| has joined #ruby
h_kon has quit [Remote host closed the connection]
<Xeago> Anyone mind elaborating about the changes in 2.1.0rc1?
kyllesdk has quit [Read error: Connection reset by peer]
kyllesdk has joined #ruby
h_kon has joined #ruby
filipe has quit [Read error: Connection reset by peer]
tobago has joined #ruby
filipe has joined #ruby
xcfox has joined #ruby
tvw has joined #ruby
Guest4840 has joined #ruby
clov3r has joined #ruby
okinomo has joined #ruby
cj3kim has quit [Remote host closed the connection]
jibi has joined #ruby
Stalkr^ has joined #ruby
Jdubs has joined #ruby
tatsuya_o has joined #ruby
Guest4840 has left #ruby [#ruby]
claymore has joined #ruby
bricker`1A has quit [Ping timeout: 256 seconds]
clov3r has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
schaerli has quit [Remote host closed the connection]
Macaveli has joined #ruby
badquanta has joined #ruby
Stalkr^ has quit [Ping timeout: 245 seconds]
tatsuya__ has joined #ruby
pranny has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
m00nlight has quit [Remote host closed the connection]
sel has quit [Quit: Leaving.]
* hoelzro was thinking the same thing
<hoelzro> the changelog isn't very well organized.
<hoelzro> it looks like someone just dumped git-log to a file
filipe has quit [Read error: Connection reset by peer]
filipe has joined #ruby
m00nlight has joined #ruby
msuszczy has joined #ruby
Jdubs has quit [Remote host closed the connection]
intuxicated has joined #ruby
Jdubs has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
cj3kim has quit [Ping timeout: 240 seconds]
Jdubs has quit [Remote host closed the connection]
leehambley has joined #ruby
atno has joined #ruby
snovak has joined #ruby
troessner has joined #ruby
coderhs has joined #ruby
|jemc| has quit [Quit: WeeChat 0.4.1]
|jemc| has joined #ruby
wallerdev has quit [Quit: wallerdev]
<|jemc|> did I miss an illuminating explanation of 2.1.0rc1 in the past five minutes?
<avril14th> not at all, take a seat
<hoelzro> nope =(
<avril14th> grab some popcorn
<avril14th> and let's wait for somebody to tell us :)
atno has quit [Remote host closed the connection]
<havenwood> so `def` now returns a symbol corresponding to the method name instead of `nil`
<|jemc|> fun
<havenwood> def hi; end #=> :hi
camilasan has joined #ruby
<|jemc|> is generational garbage collection now in place, then?
<havenwood> yup
<|jemc|> I'm looking for the changelog now...
snovak has quit [Ping timeout: 240 seconds]
<hoelzro> it's in the source distribution
<hoelzro> but it's useless
<hoelzro> it's pretty much a commit log
browndawg has joined #ruby
Coffers has joined #ruby
<havenwood> the frozen string literal is "i'm a frozen string"f
<havenwood> (trailing f)
<havenwood> the decimal literal is: 4/3r
<havenwood> #=> (4/3)
bradhe has quit [Remote host closed the connection]
marcgg has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
<havenwood> Rubygems is just 2.1 (get it now with `gem update --system`)
zodiak has quit [Ping timeout: 248 seconds]
relix has joined #ruby
<havenwood> i dunno Socket.getifaddrs
<|jemc|> hoelszro: are you talking about NEWS?
joonty has joined #ruby
<|jemc|> because that actually seems pretty helpful
<havenwood> one thing i wish with refinements is that they'd re-enable `using` in global main scope
marcgg_ has quit [Read error: Connection reset by peer]
clocKwize has joined #ruby
<hoelzro> |jemc|: I was talking about Changelog
<hoelzro> oh, NEWS is much handier.
marcgg_ has joined #ruby
<hoelzro> thanks for the tip!
<|jemc|> yeah, some fun features
wmoxam has joined #ruby
timonv has joined #ruby
<havenwood> nice, thx for news tip :)
zodiak has joined #ruby
<havenwood> oh... main.using...
<|jemc|> ah, Module#using
<|jemc|> was wondering about that lack yesterday
RxDx has joined #ruby
Rix has quit [Ping timeout: 264 seconds]
marcgg has quit [Ping timeout: 252 seconds]
<hoelzro> that's cool
<|jemc|> I was playing with refinements and thought it would be useful to be able to use 'using' for an entire class/module
<havenwood> oh, and RubyGems to 2.2 not 2.1 >.>
haxrbyte has joined #ruby
<|jemc|> modified default rdoc template?
<|jemc|> about time...
quoin has joined #ruby
<|jemc|> I've had enough of vomit green and gray on white out-of-the-box
<|jemc|> hopefully it's a step up from that
senayar has joined #ruby
<havenwood> hrm, so how do you activate a refinement in 2.1 from main?
justsee has joined #ruby
justsee has joined #ruby
greengriminal has joined #ruby
<|jemc|> just 'using MyRefinementModule', I would assume
dodosan has quit [Remote host closed the connection]
<|jemc|> in the toplevel code
<havenwood> |jemc|: it did in 2.0 but not so in 2.1
thebastl has joined #ruby
xk_id has joined #ruby
<|jemc|> hm
<havenwood> kyrylo has open pull request to enable prepend on top level: https://github.com/ruby/ruby/pull/395
<havenwood> refinements on top level would be real nice
fryguy has joined #ruby
clov3r has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
Veejay has quit [Quit: WeeChat 0.3.0]
clov3r has quit [Read error: Connection reset by peer]
sevenseacat has left #ruby [#ruby]
allsystemsarego has joined #ruby
kunday has joined #ruby
<havenwood> maybe i'm just missing how?
jlebrech has joined #ruby
<|jemc|> not sure, I'd have to build 2.1 and play with it a bit
<|jemc|> which of course is fun and worth doing in and of itself anyway
<|jemc|> also, if I'm understanding how it works, Binding#local_variable_set could be really nifty for DSLs. I was wanting something like that a while ago.
floridities87 has quit [Quit: floridities87]
<havenwood> good slides on RGenGC but scant mention of refinements: http://euruko2013.org/speakers/presentations/toward_more_efficient_ruby_2_1-koichi.pdf
browndawg has quit [Read error: Connection timed out]
Macaveli has quit [Quit: Computer has gone to sleep.]
<|jemc|> havenwood: have you already read here: http://ruby-doc.org/core-trunk/doc/syntax/refinements_rdoc.html ?
ewnd9 has quit [Ping timeout: 252 seconds]
jefflyne has quit [Ping timeout: 264 seconds]
<havenwood> yeah, haven't found documentation that shows how one'd do it yet
atno has joined #ruby
<havenwood> ^ that appears to refer to 2.0 behavior
sr78ger has joined #ruby
<|jemc|> also, bummer; Binding#local_variable_set can't create a new local in the binding's 'reference' scope just as eval cannot
fasciate47 has joined #ruby
emergion has joined #ruby
Macaveli has joined #ruby
<|jemc|> havenwood: what happens if you make a module that is 'using MyRefinementModule' and then you 'include' that module in main?
LMolr has joined #ruby
RxDx has quit [Read error: Connection timed out]
<havenwood> |jemc|: doesn't work
<|jemc|> well, I'm building now so I'll definitely have a look when it's done
bricker`LA has joined #ruby
joonty has quit [Quit: WeeChat 0.4.1]
<havenwood> hrm, here is some discussion: https://www.ruby-forum.com/topic/4414455
<|jemc|> I'm excited to fit refinements into my repertoire
joonty has joined #ruby
pyx has joined #ruby
wildroman has joined #ruby
pyx has quit [Client Quit]
<|jemc|> thanks for the link
parzo has joined #ruby
browndawg has joined #ruby
<|jemc|> refinements actually still seem a little strange
threesome has joined #ruby
snath has quit [Ping timeout: 248 seconds]
okinomo has quit [Ping timeout: 245 seconds]
Stalkr^ has joined #ruby
snath has joined #ruby
|jemc| has quit [Ping timeout: 256 seconds]
shaunbaker has joined #ruby
h_kon has quit [Remote host closed the connection]
einarj has joined #ruby
h_kon has joined #ruby
nouitfvf has joined #ruby
dmiller has joined #ruby
Stalkr^ has quit [Ping timeout: 276 seconds]
zarubin has quit [Ping timeout: 276 seconds]
narcan has joined #ruby
rdark has joined #ruby
oddalot has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 245 seconds]
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
dodosan has joined #ruby
colonolGron has joined #ruby
haxrbyte_ has joined #ruby
r0bglees0n has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
Zai00 has joined #ruby
okinomo has joined #ruby
moshee has quit [Read error: Operation timed out]
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Domon has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 256 seconds]
taion809 has quit [Quit: No Ping reply in 180 seconds.]
ephemerian has joined #ruby
Domon has joined #ruby
wchun has joined #ruby
havenwood has quit [Remote host closed the connection]
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby
havenwood has joined #ruby
taion809 has joined #ruby
noname001 has joined #ruby
riginding has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
riginding has joined #ruby
haxrbyte has joined #ruby
Xeago_ has joined #ruby
senayar has joined #ruby
noop has joined #ruby
oddalot has joined #ruby
browndawg has quit [Quit: Leaving.]
Xeago has quit [Ping timeout: 248 seconds]
haxrbyte_ has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
snovak has joined #ruby
havenwood has quit [Ping timeout: 276 seconds]
cj3kim has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
predator117 has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
senayar has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
end_guy has joined #ruby
visof has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
St_Marx has quit [Ping timeout: 240 seconds]
jbpros has quit [Quit: jbpros]
predator217 has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby
vlad_starkov has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
<johnnode> what does this mean in a rake file: system(%Q{mkdir -p "Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes" && cp Tests/Schemes/*.xcscheme "Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/"})
<canton7> means someone doesn't like FileUtils, for some reason
<johnnode> i don't know the system(%Q{}) mean
row248 has joined #ruby
johnnode has joined #ruby
<canton7> system is a method which executes its argument in a subshell
<johnnode> I know the things in { } but don't know the "system(%Q{})" mean
<canton7> %Q{...} is a double-quoted string
yacks has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
<johnnode> so it mean that just execute the things in { } like a bash shell, right?
emergion has quit [Quit: Computer has gone to sleep.]
<canton7> system("echo foo") and system(%Q{echo foo}) are equivalent
jbpros has joined #ruby
<johnnode> canton7: thanks you very much.
<johnnode> it's great.
<canton7> except in the latter, you don't need to escape double quotes
aryaching has quit [Ping timeout: 260 seconds]
<canton7> but... use FileUtils.mkdir_p and FileUtils.cp :P
timonv has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
<johnnode> canton7: because the are " " for the parameters of mkdir and cp therefore it needs to be used by system(%Q{}) instead of system("echo ….") right?
<canton7> johnnode, yeah. The alternative would be system("mkdir -p \"Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes\" && cp Tests/Schemes/*.xcscheme \"Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/\"")
leonidlm has quit [Ping timeout: 260 seconds]
<johnnode> canton7: yeah. thanks a lot.
lemonsparrow has joined #ruby
elaptics`away is now known as elaptics
bradhe has joined #ruby
Hanmac has joined #ruby
clov3r has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
atno has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
<Hanmac> hihihi i found an bug in irb does someone else wants to test it? ;P
fasciate47 has quit [Quit: fasciate47]
Stalkr^ has joined #ruby
pisces71 has joined #ruby
m00nlight has quit [Remote host closed the connection]
Xeago_ has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<avril14th> >> (73.55 - 73.54).abs
<avril14th> >> (73.55 - 73.54).abs < 0.01
quoin has quit [Remote host closed the connection]
<eval-in> avril14th => true (https://eval.in/49967)
quoin has joined #ruby
<Hanmac> apeiros: try "äöü".encode("UTF-32") inside irb ,P
<avril14th> any hint on how I could compare two floats without worring about that side effect
m00nlight has joined #ruby
eoinkelly has quit [Quit: eoinkelly]
axeman- has quit [Remote host closed the connection]
<eval-in> avril14th => 0.009999999999990905 (https://eval.in/49968)
r0bglees0n has joined #ruby
<sevenseacat> dont do math with floats?
<sevenseacat> use decimals instead
<Xeago> avril14th: don't compare floats, use precision arithmetic types instead
nari has joined #ruby
<LMolr> hanmac, it yields "\uFEFF\u00E4\u00F6\u00FC"
* avril14th googles
* avril14th thanks sevenseacat && Xeago
leonidlm has joined #ruby
<Hanmac> LMolr for me irb crashs with a segfault
<sevenseacat> np :)
<sevenseacat> hanmac: what version?
quoin has quit [Ping timeout: 256 seconds]
<Hanmac> sevenseacat: ruby-head
<sevenseacat> oh
<avril14th> also, is there an equality comparison operator that one can override / define safely without having mongoid / AR turn nuts?
<Hanmac> i think String#inspect is broken
<gr33n7007h> Whats the difference between s.puts/s.send and s.gets/s.recv in a TCPSocket?
<LMolr> hanmac, i am 2.0.0-pre .. but rubinius gives "\x00\x00\xFE\xFF\x00\x00\x00\xE4\x00\x00\x00\xF6\x00\x00\x00\xFC"
<Hanmac> LMolr: interesting: puts returns "????" but p crashs
<LMolr> :O
<Hanmac> ok its not a bug in irb, its a bug in ruby itself
ewnd9 has joined #ruby
<Hanmac> but it seems it recently
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emergion has joined #ruby
nomenkun has joined #ruby
vlad_starkov has joined #ruby
_maes_ has joined #ruby
buibex has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
<Hanmac> hihihi i make a bug ticket and marked it as "urgent" ;P
jokke has quit [Ping timeout: 260 seconds]
bricker`work has quit [Ping timeout: 260 seconds]
quoin has joined #ruby
blaze has joined #ruby
<gr33n7007h> Whats the difference between s.puts/s.send and s.gets/s.recv in a TCPSocket?
blaze is now known as Guest40037
Guest40037 has quit [Client Quit]
emergion has quit [Quit: Computer has gone to sleep.]
Blaze_Boy has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
Stalkr^ has quit [Read error: Connection reset by peer]
bricker`work has joined #ruby
leonidlm has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Quit: Leaving.]
wildroman has quit [Remote host closed the connection]
<LMolr> gr33n7007h, TCPSocket#gets() _gets_ a line, while recv gets a number of bytes
dmiller has joined #ruby
wildroman has joined #ruby
<LMolr> gr33n7007h, gets() is just the gets() from the IO module that is mixed in, afaik
<xybre> hanmac: Interesting, it works fine here on 2.0.0p247
axeman- has joined #ruby
blkcrwn has quit [Ping timeout: 260 seconds]
<Hanmac> xybre: yeah i said it seems to be happens in some new addions
<Hanmac> but i dont know excaclty when
nari has quit [Ping timeout: 240 seconds]
<xybre> Hmm.
dmiller has quit [Ping timeout: 264 seconds]
aaronmcadam has joined #ruby
sayan has quit [Quit: Leaving]
<gr33n7007h> LMolr, Ah, right I see recv gets the number of bytes from the response
ZadYree has joined #ruby
sayan has joined #ruby
zmike123 has joined #ruby
wchun has quit [Quit: Leaving]
quazimodo has quit [Ping timeout: 245 seconds]
mmozuras_ has joined #ruby
schaerli has joined #ruby
LMolr has quit [Remote host closed the connection]
wchun has joined #ruby
cj3kim has joined #ruby
mmozuras has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
leonidlm has joined #ruby
workmad3 has joined #ruby
kay has joined #ruby
kay is now known as Guest595
colonolGron has quit [Read error: Connection reset by peer]
cj3kim has quit [Ping timeout: 260 seconds]
LMolr has joined #ruby
pushpak has joined #ruby
einarj has quit [Remote host closed the connection]
colonolGron has joined #ruby
wildroman has quit [Remote host closed the connection]
<LMolr> gr33n7007h, sometimes you need readpartial() over recv(), for example if you need to read a welcome banner without '\n' from a socket
snovak has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Ping timeout: 264 seconds]
FND has joined #ruby
nari has joined #ruby
axeman- has quit [Remote host closed the connection]
kunday has quit [Quit: Textual IRC Client: www.textualapp.com]
clocKwize has quit [Quit: Cya]
vlad_starkov has joined #ruby
snovak has quit [Ping timeout: 276 seconds]
Xeago has quit [Read error: Connection reset by peer]
haxrbyte has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
haxrbyte has joined #ruby
einarj has joined #ruby
haxrbyte_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Rix has joined #ruby
okinomo has quit [Ping timeout: 256 seconds]
robertjpayne has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
Apocalypse has quit [Ping timeout: 260 seconds]
taion809 has quit [Quit: No Ping reply in 180 seconds.]
taion809 has joined #ruby
lkba has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pushpak has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
Apocalypse has joined #ruby
leonidlm has joined #ruby
clov3r has joined #ruby
beilabs_ has quit [Ping timeout: 264 seconds]
clov3r has quit [Read error: Connection reset by peer]
h_kon has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 256 seconds]
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
jefflyne has joined #ruby
<r0bglees0n> LMolr: I think readpartial() is typically used to stream a response from a socket.
<r0bglees0n> or read chunks at a time
_whitelogger has joined #ruby
MrZYX|off is now known as MrZYX
ewnd9 has quit [Remote host closed the connection]
axeman- has joined #ruby
beilabs_ has joined #ruby
chairabanta has joined #ruby
snovak has joined #ruby
m00nlight has quit [Remote host closed the connection]
kizzx2 has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
hogeo has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Clooth has joined #ruby
YaNakilon has joined #ruby
snovak has quit [Ping timeout: 252 seconds]
Targen_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
Targen has quit [Read error: Operation timed out]
clocKwize has joined #ruby
ismlages has joined #ruby
mklappstuhl has joined #ruby
dmiller has joined #ruby
dodosan has quit [Remote host closed the connection]
chairabanta has quit [Quit: Leaving...]
predator117 has quit [Ping timeout: 256 seconds]
julweber has joined #ruby
julweber has quit [Client Quit]
julweber has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 276 seconds]
camilasan has quit [Remote host closed the connection]
predator117 has joined #ruby
quoin has quit [Remote host closed the connection]
leehambley has quit [Ping timeout: 260 seconds]
quoin has joined #ruby
leehambley has joined #ruby
justsee has joined #ruby
Jdubs has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
<Hanmac1> apeiros: https://bugs.ruby-lang.org/projects/ruby-trunk/issues is currently trolled again by a rails user that wants to replace Hash with HashWithIndifferentAccess and still does not notice that its maybe a bad idea …
quoin has quit [Ping timeout: 240 seconds]
Hanmac1 is now known as Hanmac
vlad_starkov has quit [Remote host closed the connection]
quoin has joined #ruby
kaspergrubbe has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
justsee has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
siwica has joined #ruby
<Hanmac> damm i hate rails-trolls
mikecmpbll has joined #ruby
predator117 has quit [Ping timeout: 276 seconds]
wildroman has joined #ruby
siwica has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
siwica has joined #ruby
Domon has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Domon has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
pwh has joined #ruby
bluebie has joined #ruby
<YaNakilon> rails are such a piece of
pwh has quit [Client Quit]
Domon has quit [Ping timeout: 252 seconds]
Anderson has joined #ruby
<shevy> hehe
Clooth has quit [Read error: Connection reset by peer]
Cheos has joined #ruby
<shevy> well
<bluebie> I want to give users a hint as to the correct spelling of a string when they mistype, so I want to search an array for strings which are similar to the one I have, and return the most similar string and preferably also, a number indicating how close it is.. is there any straight forward way to do something like this with ruby? anything in stdlib? any good rubygems?
<shevy> there is one point - users must understand the difference between symbols and strings, so they have to make a choice all the time
<shevy> bluebie depends. via Readline module from commandline there is, you can designate a proc to use for commandline completion
<bluebie> I'm not doing a CLI interface
<shevy> in stdlib there is no library that gives you numbers indicating how close it is, no idea about gems, it sounds rather specialized
<bluebie> it's a parser
<bluebie> distance between two strings is rather specialised? but lots of software does this sort of thing :/
Domon has joined #ruby
browndawg has joined #ruby
sevenseacat has joined #ruby
emergion has joined #ruby
Popple has joined #ruby
<shevy> it is more specialized than " abc".strip
<bluebie> but commonly useful in any human interface - command line, on the web
<shevy> what you refer to is this http://en.wikipedia.org/wiki/Hamming_distance
<bluebie> for instance, when wikipedia says I don't know about Blar. Maybe you mean _Blah_?
<bluebie> or google
<bluebie> or git cli utility
sniffingcats has joined #ruby
Xeago has joined #ruby
<bluebie> good find!
<bluebie> <3
julweber has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
Xeago has quit [Read error: Connection reset by peer]
clov3r has joined #ruby
Hanmac has quit [Quit: Leaving.]
clov3r has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
crunch-choco has joined #ruby
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
barratt has joined #ruby
<crunch-choco> guys, i have downloaded a font called caslon, but idk what name should i use to call him. how should i know if i should call him "caslon", "caslon.ttf", "adobe caslon" etc. is there i place to look at to know this?
<LMolr> bluebie, you can also take a look at 'soundex'
wildroman has quit [Remote host closed the connection]
jefflyne has quit [Ping timeout: 245 seconds]
<LMolr> dunno if there's some gem about it
FND has left #ruby [#ruby]
<bluebie> amatch seems nice, but I'll keep soundx in mind :)
dash_ has quit [Ping timeout: 264 seconds]
dash_ has joined #ruby
Domon has quit [Ping timeout: 248 seconds]
julweber has joined #ruby
johnnode has quit [Quit: johnnode]
Xeago has quit [Read error: Connection reset by peer]
<shevy> crunch-choco I would name a file always with an extension. more information is usually best, so perhaps adobe_caslon.ttf for the file name itself
spacemud has quit [Read error: Operation timed out]
<shevy> well, actually... almost always. I do use files like "README" too ... or "TODO"
Xeago has joined #ruby
<shevy> rather than README.txt or TODO.txt
eka has joined #ruby
eka has quit [Max SendQ exceeded]
eka has joined #ruby
<crunch-choco> ah yes i will do that too, thanks a lot shevy!
<bluebie> I do .txt on those, because I see no compelling reason not to, and many people benefit from .txt being added
vlad_starkov has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
tatsuya__ has quit [Read error: Connection reset by peer]
wildroman has joined #ruby
tatsuya__ has joined #ruby
haxrbyte_ has joined #ruby
jokke has joined #ruby
<shevy> bluebie I am not sure how this got started, but if you look at most github projects, the content, for instance - https://github.com/rack/rack rack has a file called COPYING
<shevy> matz mruby https://github.com/mruby/mruby has a file called INSTALL
<shevy> curiously enough, it also has a file called README.md :\ :/
Xeago has quit [Remote host closed the connection]
<shevy> rack has a README.rdoc
tatsuya_o has quit [Ping timeout: 245 seconds]
<bluebie> just because something is popular doesn't mean it's the best
<bluebie> you should aim to do things because you think they are right, not just to conform
<shevy> I know! all those java hackers out there...
haxrbyte has quit [Ping timeout: 264 seconds]
Liothen has quit [Quit: System of a down……]
DrCode has quit [Remote host closed the connection]
_whitelogger has joined #ruby
nfk has joined #ruby
reactormonk has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
Hanmac has left #ruby [#ruby]
Hanmac has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
raphaelivan has joined #ruby
chairabanta has joined #ruby
DrCode has joined #ruby
graydot has quit [Quit: graydot]
sailias has joined #ruby
mlpinit has joined #ruby
leehambley has quit [Ping timeout: 261 seconds]
forced_request has quit [Ping timeout: 268 seconds]
reactormonk has joined #ruby
leehambley has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
rgbdev has joined #ruby
dodosan has joined #ruby
raphaelivan has quit [Quit: Leaving.]
gwb3 has joined #ruby
ldnunes has joined #ruby
wildroman has quit [Remote host closed the connection]
jibi has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
_whitelogger_ has joined #ruby
Xeago has joined #ruby
_whitelogger has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 248 seconds]
h_kon has joined #ruby
<ujjain> http://pastebin.visilang.com/view/raw/07613a74 - How can I make this false if both directories do not exist?
pisces71 has quit [Quit: pisces71]
mklappstuhl has quit [Remote host closed the connection]
wildroman has joined #ruby
zmike123 has quit [Ping timeout: 256 seconds]
<canton7> no idea what Facter is, but !File.exists?('/opt/hdps') && !File.exists?('/opt/hds')
<ujjain> ah let me try canton7 ! :)
chairabanta has quit [Quit: Leaving...]
<canton7> oops, that's inverted
<canton7> File.exists?('/opt/hdps') || File.exists?('/opt/hds')
<canton7> there we go
i42n has joined #ruby
callenb has joined #ruby
<canton7> ujjain, ^
Popple has quit [Quit: Computer has gone to sleep.]
<i42n> Hey, can this cause a problem? (Time.now - @last_mod_time) < 10.minutes
<i42n> last_mod_time is an older time
<shevy> from where does #minutes come
<bluebie> 10.minutes is a rails feature
subpreceptor61 has joined #ruby
<bluebie> ActiveSupports has it I think
mklappstuhl has joined #ruby
<bluebie> IIRC 10.minutes => (self * 60)
<bluebie> but maybe it's more complex nowdays
<MrZYX> ActiveSupport::Duration.new(self * 60, [[:seconds, self * 60]]) a bit ;D
<shevy> I swear, rails will become its own language one day
buibex has quit [Remote host closed the connection]
<ujjain> canton7: Yes, the || worked! :)
<bluebie> I think the #minutes thing is cool, personally
diegoviola has joined #ruby
<bluebie> I'd like to see that in mri ^_^
<diegoviola> see what?
<shevy> #minutes
<bluebie> that syntax be in core ruby language
<bluebie> #minutes, #hours, etc..
<shevy> rails is like the BORG
<shevy> resistance is futile
<tobiasvl> that's not syntax bluebie
<tobiasvl> nothing stops you from implementing it :)
<bluebie> well duh
<bluebie> I think it'd be cool to not have to implement it
<bluebie> or require it
<bluebie> it's really useful any time you're dealing with time
<shevy> I think pp should be auto-required
i42n has left #ruby [#ruby]
<bluebie> but it seems not useful enough to justify installing activerecord or loading all it's other crap in to memory
<bluebie> yeah, that'd be great. I always get tripped up by no pp
clocKwize has quit [Quit: Computer is sleeping]
<bluebie> even if it was just set to autoload the first time you use it, that'd be fine with me
<shevy> I see it when I compare examples
<shevy> people who do: p object, when I do pp object, they can omit one line: require 'pp'
<tobiasvl> bluebie: i see, but it's still useful to know the difference between syntax and semantics ;)
<shevy> so now I must use p too :(
petey has joined #ruby
siwica has quit [Quit: siwica]
<bluebie> is it? why?
_whitelogger_ has joined #ruby
zmike123 has joined #ruby
siwica has joined #ruby
tkuchiki has joined #ruby
buibex has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
siwica has quit [Client Quit]
sniffingcats has quit [Quit: Til rivido Idisti!]
<Hanmac> shevy: "rails will make his own ruby, with blackjack and hookers" ;P
clov3r has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
wchun has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
badquanta has quit [Ping timeout: 260 seconds]
_maes_ has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
justsee has quit [Ping timeout: 248 seconds]
_dv_ is now known as dv_
leehambley has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
osvico has joined #ruby
jbpros has joined #ruby
leehambley has joined #ruby
krawchyk has joined #ruby
_whitelogger_ has joined #ruby
<shevy> you people are all idling again!
snovak has joined #ruby
tacos1de has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<wuest> bluebie: responding to your question to tobiasvl above, you can have syntactically correct ruby with incorrect semantics.
<wuest> Fencepost errors are an obvious example.
<shevy> fencepost? what is that?
mikee has joined #ruby
sumark has joined #ruby
<bluebie> yeah but the difference between Numeric#minutes being syntax and semantics is not a fencepost error..
<wuest> shevy: off-by-one conditions. Simple example off the top of my uncaffeinated head: (1..3).reduce("") { |c,e| c + "#{e}," }
<shevy> cool
<bluebie> the..range operator makes me crazy. I can never remember which..is...which
<bluebie> so many fencepost errors :/
<shevy> the shorter one is the more useful one, that is how I remember the range operator
<wuest> The extra dot pushes the final element out of the group.
Quashie_ has joined #ruby
<wuest> That's my mnemonic.
<shevy> hehe
m00nlight has quit [Ping timeout: 248 seconds]
<tobiasvl> the poignant guide had one like that, yeah
<Hanmac> wuest isnt join better? (i mean yours has a "," at the end is this wanted? )
<bluebie> wuest: that's cute
Quashie has quit [Ping timeout: 252 seconds]
<wuest> hanmac: ergo, fencepost.
<tobiasvl> it's a hole in the flute from which the final element escapes
<wuest> But yes, dozens of better ways to do it. :p
<shevy> hanmac didn't understand it yet :D
shaunbaker has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 260 seconds]
<wuest> But yeah, depending on how I'm feeling that day I'd probably either do [*(1..3)].join(",") or (1..3).reduce { |c,e| "#{c},#{e}" } :p
shaunbaker has joined #ruby
<Hanmac> wuest if you wanted that result, my line is shorter: (1..3).map(&"%d,".method(:%)).join
mikee has quit [Ping timeout: 246 seconds]
<wuest> I find the latter more readable; exploding things inside an array declaration is a bit annoying to read.
wildroman has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
<wuest> hanmac: again, I only wanted the result to demonstrate a trivially obvious fencepost error.
* Hanmac says: "Lets explode all arrays!" ;P
<wuest> Haha
breakingthings has joined #ruby
sayan has joined #ruby
siwica has joined #ruby
crazed has quit [Ping timeout: 268 seconds]
<bluebie> the hell is going on there
colonolGron has quit [Ping timeout: 264 seconds]
<Hanmac> "What did you use to destroy the building? Dynamite? - No, RubyArrays."
<bluebie> passing in a method O_O
<wuest> tobiasvl: yeah, I love _why's way of presenting mnemonics. This might suggest that I am lacking some grasp on reality.
dmiller has joined #ruby
<bluebie> I didn't know you could map with a bound method!
<wuest> bluebie: yup!
<Hanmac> bluebie: now you know it (you gain Exp)
* wuest shudders. "rails :<"
petey has joined #ruby
<shevy> I am gonna level up soon
<shevy> hanmac I'll become a railser soon
* wuest hopes bluebie assigns skillpoints in functional paradigms
<shevy> I assign skillpoints in RAILS GURU
* bluebie assigns skillpoints
<bluebie> :<
gwb3 has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
gwb3 has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
* bluebie assigns the skillpoints in excentricity, netting bonus stats in unemployability and kooky rubygems
Xeago has quit [Remote host closed the connection]
<wuest> bluebie: I've been doing that since '03!
<wuest> Hence, no rails experience to date.
<bluebie> I learnt ruby initially for rails
<bluebie> took me about 6 months of casually playing with rails to see good from bad <_<
<wuest> I learnt it to help several clients migrate away from perl, who didn't quite fancy using lisp
<bluebie> ah lisp!
schaerli has quit [Remote host closed the connection]
<bluebie> my current kooky project is this terrible contraption https://github.com/Bluebie/oozby
<shevy> hmm who was this guy here who had like 10 millions line of code in perl
<bluebie> it's pretty much markaby for 3d printing
<bluebie> I know right? horrible idea
devoldmx3 has joined #ruby
<wuest> Including pod?
RealMarc has quit [Quit: ZNC - http://znc.in]
<bluebie> pod? print on demand?
<wuest> Good devs whove extensively used perl should have a million lines in POD alone :P
RealMarc has joined #ruby
<wuest> bluebie: plain old doc, the ruby doc format (know the =begin =end thing in ruby? That's adopted from perl's POD)
subpreceptor61 has quit [Ping timeout: 246 seconds]
<bluebie> ooh
<wuest> s/ruby doc/perl doc/
<bluebie> it's barely graduated from duct tape prototype
<bluebie> what comments are in there are mostly signs to remind me what the heck any of it does
<wuest> See? Uncaffeinated. I'm actively fixing that problem as we speak, though.
<bluebie> I'm starting to think about and add documentation now
wildroman has quit [Remote host closed the connection]
<wuest> If you're just beginning to build out your doc, let me recommend: TomDoc.
<wuest> Easily my favorite format for doc in ruby
subpreceptor61 has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
<bluebie> is it so much better than rubydoc to be woth maintaining ideas of how each work in my head at once? I have to maintain other projects which are rdoc currently
zarubin has joined #ruby
pkrzywicki has joined #ruby
pkrzywicki has quit [Remote host closed the connection]
filipe has quit [Read error: Connection reset by peer]
kaldrenon has joined #ruby
<wuest> bluebie: doc is super-subjective. I can't answer that for you. I can say: I've found it to be so
cody-- has joined #ruby
<bluebie> hmmmmmmmm
cj3kim has joined #ruby
<bluebie> The thing is, oozby is kind of more of a command line tool than it is a library
<bluebie> I mean, it is a library
<bluebie> but I don't imagine many people would ever use it as one
quoin has quit [Remote host closed the connection]
<bluebie> I think the docs are mainly for people hacking on it to add new features
<bluebie> the api isn't particularly important
machuga|away is now known as machuga
quoin has joined #ruby
<wuest> bluebie: that mindset guarantees it never will be ;)
<bluebie> so my docs thinking are mostly centered around how to document a language / DSL
chrisja has joined #ruby
<bluebie> you see the way I use it is kinda like coffeescript - a little compiler that runs in the background making files for me
Xeago has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
filipe has joined #ruby
badquanta has joined #ruby
tatsuya__ has quit [Ping timeout: 248 seconds]
cj3kim has quit [Ping timeout: 264 seconds]
quoin has quit [Ping timeout: 264 seconds]
Anticom has joined #ruby
wildroman has joined #ruby
DrCode has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
julweber has quit [Remote host closed the connection]
r0bglees0n has quit [Read error: Connection reset by peer]
Macaveli has quit [Ping timeout: 245 seconds]
r0bglees0n has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
okinomo has joined #ruby
sloucher has joined #ruby
devoldmx3 has quit [Ping timeout: 245 seconds]
siwica has quit [Quit: siwica]
julweber has joined #ruby
row248 has quit [Read error: Connection reset by peer]
Anticom has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
Anticom has quit [Read error: Connection reset by peer]
heftig has joined #ruby
Macaveli has joined #ruby
ehc has joined #ruby
badquanta has quit [Ping timeout: 260 seconds]
Anticom has joined #ruby
tatsuya_o has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
LMolr has quit [Ping timeout: 264 seconds]
jonathanwallace has joined #ruby
callenb has quit [Quit: Leaving.]
Monie has joined #ruby
Galgorth has quit [Ping timeout: 245 seconds]
sr78ger has quit [Ping timeout: 240 seconds]
Anticom has joined #ruby
banisterfiend has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
raphaelivan1 has joined #ruby
jaynewst_ has quit [Remote host closed the connection]
callenb has joined #ruby
siwica has joined #ruby
DrCode has joined #ruby
siwica has quit [Client Quit]
clov3r has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
jaynewstrom has joined #ruby
Galgorth has joined #ruby
shaunbaker has quit [Remote host closed the connection]
raphaelivan has quit [Ping timeout: 260 seconds]
anonymuse has joined #ruby
poikon has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
Davey has joined #ruby
jefflyne has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
ereslibre has quit [Ping timeout: 264 seconds]
aalmenar has quit [Ping timeout: 264 seconds]
anonymuse has quit [Remote host closed the connection]
predator117 has joined #ruby
Anticom has joined #ruby
jdenen has joined #ruby
shaunbaker has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
jim_r0x has joined #ruby
timonv has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
phantasm66 has joined #ruby
haxrbyte has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
phantasm66 has joined #ruby
cody-- has quit [Quit: derp]
hogeo has quit [Remote host closed the connection]
Anticom has joined #ruby
girija has quit [Ping timeout: 240 seconds]
alx- has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
colonolGron has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
Anticom has quit [Read error: Connection reset by peer]
leehambley has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
aalmenar has joined #ruby
aalmenar has joined #ruby
raphaelivan1 has quit [Quit: Leaving.]
Hanmac has joined #ruby
timonv has joined #ruby
duggiefresh has joined #ruby
rehat has quit [Remote host closed the connection]
<Hanmac> yeah!!!! the great Nobu fixed my bug after 4h :D
Anticom has joined #ruby
rickmasta has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
snovak has joined #ruby
cmarques has joined #ruby
<banisterfiend> hanmac which bug, hans?
krz has quit [Quit: krz]
momomomomo has joined #ruby
<Hanmac> banisterfiend: https://bugs.ruby-lang.org/issues/8940 there was a problem with "dummy" encodings
anonymus_ has joined #ruby
<Hanmac> banisterfiend: did you see the AT-Episode "The Vault" ?
sailias has joined #ruby
<banisterfiend> hanmac did u like it?
<banisterfiend> hanmac yes
Anticom has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
snovak has quit [Ping timeout: 252 seconds]
mark- has quit [Ping timeout: 260 seconds]
mark- has joined #ruby
huoxito has joined #ruby
<Hanmac> it was interesting … it shows that PB is "a bazzilion years old" ;P
colonolGron has quit [Ping timeout: 248 seconds]
<Hanmac> banisterfiend: did you like FP as new FlameKing? (imo she is awesome!)
Anticom has joined #ruby
<banisterfiend> hanmac in general though I'm starting to lose interesting in A.T, what about u?
<banisterfiend> interest*
Anticom has quit [Read error: Connection reset by peer]
<Hanmac> hm it depends on what they will show next or in next season … (like a sandwich with lobster soul ;D )
tesuji has quit [Ping timeout: 260 seconds]
Coolhand has quit [Ping timeout: 264 seconds]
<Hanmac> (other series i recommended to you did you drop earlier … )
<joonty> lobster soul? I think I have their latest album
emergion has quit [Quit: Computer has gone to sleep.]
Anticom has joined #ruby
juarlex has joined #ruby
ehc has quit [Quit: ehc]
tesuji has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
jbrechtel has joined #ruby
lfox has joined #ruby
burlyscudd has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
ehc has joined #ruby
Soda has joined #ruby
leehambley has joined #ruby
colonolGron has joined #ruby
Anticom has joined #ruby
platzhirsch has joined #ruby
<platzhirsch> I don't get it. I write through a StreamWrite to the file system, and yet the memory seems to keep increasing
zarubin has quit [Ping timeout: 264 seconds]
Anticom has quit [Read error: Connection reset by peer]
* Hanmac says: "and the memory usage will raise!"
<platzhirsch> Are there any useful memory leak finder?
jlast has joined #ruby
<Hanmac> platzhirsch: did you use rails?
<platzhirsch> ruby-prof needs a patched Ruby interpreter, hmof
<platzhirsch> hanmac: no, only Ruby so far
jibi has quit [Ping timeout: 248 seconds]
<Hanmac> ohh … you broke my joke ;P
sloucher has quit [Quit: sloucher]
ehc has quit [Client Quit]
fourqq has joined #ruby
wchun has joined #ruby
<platzhirsch> ok
Blaze_Boy has quit [Ping timeout: 245 seconds]
subpreceptor61 has quit [Ping timeout: 264 seconds]
<platzhirsch> yes, I am using a Rails app and my memory is going up
jibi has joined #ruby
kyllesdk has quit [Quit: Leaving.]
<Hanmac> then you have found the leak (*that was my joke*)
Anticom has joined #ruby
snovak has joined #ruby
alekst has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
quoin has joined #ruby
devdazed has joined #ruby
<Todd> monday.. monday...
h_kon has quit [Remote host closed the connection]
Targen_ has quit [Ping timeout: 245 seconds]
shaunbak_ has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
<platzhirsch> hahaha
angusiguess has joined #ruby
swordsmanz has joined #ruby
<platzhirsch> Not funny! But ruby-prof works with 2.0.0 so I will profile my app, awesome, super fun time incoming
v0n has joined #ruby
subpreceptor61 has joined #ruby
polaco_zZz is now known as polaco
Anticom has joined #ruby
fourqq is now known as lowcard
Anticom has quit [Read error: Connection reset by peer]
yacks has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
devoldmx has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
tobago has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Xeago_ has joined #ruby
codecop has quit [Remote host closed the connection]
endash has joined #ruby
evenix has joined #ruby
fuhgeddaboudit has joined #ruby
Xeago__ has joined #ruby
colonolGron has quit [Ping timeout: 245 seconds]
Anticom has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
Anticom has quit [Read error: Connection reset by peer]
Xeago__ has quit [Remote host closed the connection]
user258467 has quit [Remote host closed the connection]
sectionme has joined #ruby
coderhs has quit [Quit: Leaving]
Xeago_ has quit [Ping timeout: 260 seconds]
camilasan has quit [Remote host closed the connection]
mmitchell has joined #ruby
julweber has quit [Remote host closed the connection]
Macaveli has joined #ruby
baroquebobcat has joined #ruby
camilasan has joined #ruby
Anticom has joined #ruby
polaco is now known as polaco_zZz
quoin has quit [Ping timeout: 253 seconds]
Anticom has quit [Read error: Connection reset by peer]
mikee has joined #ruby
kazuuu has quit [Remote host closed the connection]
T_T has joined #ruby
baroquebobcat has quit [Client Quit]
Loaft has joined #ruby
AlHafoudh has joined #ruby
AlHafoudh has quit [Max SendQ exceeded]
buibex has quit [Remote host closed the connection]
polaco_zZz is now known as polaco
ehc has joined #ruby
abstrusenick has joined #ruby
Anticom has joined #ruby
kofno has quit [Quit: Lost terminal]
aagdbl has quit [Quit: Leaving.]
shaunbaker has quit [Ping timeout: 264 seconds]
Anticom has quit [Read error: Connection reset by peer]
wildroman has quit [Remote host closed the connection]
NealJ has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
julweber has joined #ruby
vim_shim_ has joined #ruby
buibex has joined #ruby
Es0teric has joined #ruby
leehambley has joined #ruby
vlad_starkov has joined #ruby
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lukec has joined #ruby
mikee has quit [Ping timeout: 246 seconds]
Davey has joined #ruby
Anticom has joined #ruby
clov3r has joined #ruby
wildroman has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
clov3r has quit [Read error: Connection reset by peer]
johnjohnson has joined #ruby
browndawg has quit [Ping timeout: 260 seconds]
Coolhand has joined #ruby
allsystemsarego has quit [Quit: Leaving]
creature has quit [Ping timeout: 240 seconds]
huoxito has quit [Quit: Leaving]
BillCriswell has joined #ruby
robbyoconnor has quit [Read error: Operation timed out]
kaspergrubbe has quit [Remote host closed the connection]
<avril14th> looks like ruby is the first programming language where smileys make sense
Anticom has joined #ruby
<avril14th> >> 1.0.send :-@
<eval-in> avril14th => -1.0 (https://eval.in/50110)
<shevy> avril14th yeah
creature has joined #ruby
creature has quit [Changing host]
creature has joined #ruby
<avril14th> soon we'll write with emoticons
Anticom has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
<shevy> it's a valid symbol
<shevy> how could we use :<<
<avril14th> well array.send :<< shevy
ananthakumaran has quit [Quit: Leaving.]
AdmiraI has joined #ruby
<shevy> no that does not seem to work at all
AdmiraI has quit [Client Quit]
<Hanmac> avril14th: like that? {}.any?&?:%?a
<shevy> where is the smiley here hanmac
cj3kim has joined #ruby
<avril14th> good question
<apeiros> avril14th: you can even use emoticons
ananthakumaran has joined #ruby
<Hanmac> :% could be one
<shevy> hanmac can you think of a smiley with the -> operator?
<apeiros> def
ananthakumaran1 has joined #ruby
jefflyne has quit [Ping timeout: 245 seconds]
shaunbak_ has joined #ruby
headius has joined #ruby
ananthakumaran1 has quit [Client Quit]
Anticom has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
claymore has joined #ruby
jefflyne has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
xjiujiu has quit [Read error: Connection reset by peer]
autumn has quit [Ping timeout: 276 seconds]
ananthakumaran has quit [Ping timeout: 245 seconds]
KobraKao has quit [Ping timeout: 264 seconds]
cj3kim has quit [Ping timeout: 260 seconds]
apfelbox has joined #ruby
Es0teric has joined #ruby
sambao21 has joined #ruby
clocKwize has quit [Quit: Cya]
rgbdev has quit [Quit: rgbdev]
julweber_ has joined #ruby
jim_r0x has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Anticom has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
julweber_ has quit [Read error: Connection reset by peer]
Anticom has quit [Read error: Connection reset by peer]
<avril14th> well [].send :<< , shevy does work
senayar has joined #ruby
<platzhirsch> Stop the madness, back into the mine!
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has joined #ruby
rgbdev has joined #ruby
rehat has joined #ruby
julweber has quit [Ping timeout: 264 seconds]
quoin has joined #ruby
<shevy> cool
<shevy> that works indeed
Coolhand has quit [Ping timeout: 260 seconds]
<shevy> >> [].send :<< , "shevy"
<eval-in> shevy => ["shevy"] (https://eval.in/50116)
<shevy> >> [].send :<< , 0/0
<eval-in> shevy => divided by 0 (ZeroDivisionError) ... (https://eval.in/50117)
drPoggs has joined #ruby
Anticom has joined #ruby
huoxito has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
claymore has quit [Read error: Operation timed out]
mikee has joined #ruby
jbpros has quit [Quit: jbpros]
buibex has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<joonty> hanmac: a very belated lol
julweber has joined #ruby
asym has joined #ruby
Guest40428 has joined #ruby
<asym> what's the canonical REST client lib to use?
kofno has joined #ruby
sterNiX has joined #ruby
tagrudev has quit [Remote host closed the connection]
Anticom has joined #ruby
rhys has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
braoru has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
pushpak has joined #ruby
claymore has joined #ruby
mikee has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
bluebie has left #ruby [#ruby]
burlyscudd has quit [Quit: Leaving.]
graydot has joined #ruby
Anticom has joined #ruby
kirun has joined #ruby
girija has joined #ruby
Coolhand has joined #ruby
cody-- has joined #ruby
rickmasta has quit [Quit: Leaving...]
Anticom has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
AlHafoudh has joined #ruby
AlHafoudh has quit [Max SendQ exceeded]
niceguyjames has joined #ruby
mikecmpbll has joined #ruby
wallerdev has quit [Quit: wallerdev]
Coolhand has quit [Read error: Connection reset by peer]
Targen has joined #ruby
AlHafoudh has joined #ruby
julweber has quit [Read error: No route to host]
Coolhand has joined #ruby
AlHafoudh has quit [Max SendQ exceeded]
julweber has joined #ruby
<_br_> use faraday and switch adapters as you need
AlHafoudh has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
AlHafoudh has quit [Max SendQ exceeded]
kaspergrubbe has quit [Remote host closed the connection]
Anticom has joined #ruby
fmcgeough has joined #ruby
buibex has joined #ruby
RORgasm has joined #ruby
petey has joined #ruby
mary5030 has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
zoee has quit [Quit: zoee]
wildroman has joined #ruby
phutchins has quit [Remote host closed the connection]
mary5030 has joined #ruby
julweber has quit [Remote host closed the connection]
rjhunter has joined #ruby
platzhirsch has left #ruby [#ruby]
MrThePlague has joined #ruby
codecop has joined #ruby
MrThePlague has joined #ruby
Anticom has joined #ruby
mmozuras_ has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
carlyle has joined #ruby
jibi has quit [Ping timeout: 246 seconds]
Anticom has quit [Read error: Connection reset by peer]
Krajsnick has joined #ruby
alex__c2022 has joined #ruby
baroquebobcat has joined #ruby
freerobby has joined #ruby
ahawkins has quit [Quit: leaving]
interactionjaxsn has joined #ruby
jibi has joined #ruby
julweber has joined #ruby
rickmasta has joined #ruby
Anticom has joined #ruby
petey has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
Anticom has quit [Read error: Connection reset by peer]
jefflyne has quit [Ping timeout: 252 seconds]
julweber has joined #ruby
schaerli has joined #ruby
julweber has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
dash_ has quit [Quit: dash_]
admin0 has joined #ruby
Anticom has joined #ruby
admin0 has left #ruby [#ruby]
petey has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
jbrechtel has quit [Remote host closed the connection]
KobraKao has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<shevy> hmm
Quashie_ is now known as Quashie
Anticom has joined #ruby
JMcAfreak has joined #ruby
jbrechtel has joined #ruby
<shevy> mruby vs. lua ...
Anticom has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: Computer has gone to sleep.]
<Hanmac> mruby + because of … ruby ;D
asym has quit [Quit: Lost terminal]
<Hanmac> mruby can run as EFI -Shell … does it works for lua too?
anonymuse has joined #ruby
anonymus_ has quit [Read error: Connection reset by peer]
cody-- has quit [Quit: derp]
kaspergrubbe has joined #ruby
TheMoonMaster has quit [Excess Flood]
visof has quit [Quit: Leaving]
rins has joined #ruby
<waxjar> i think lua takes the cake right now, simply because it's, you know, stable :P
timonv has quit [Remote host closed the connection]
kazuuu has joined #ruby
wallerdev has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
bobinator60_ has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
Krajsnick has quit [Remote host closed the connection]
TheMoonMaster has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
sevenseacat has quit [Quit: Leaving.]
colonolGron has joined #ruby
Anticom has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
jprovazn has quit [Quit: Leaving]
carlyle has quit [Ping timeout: 245 seconds]
threesome has quit [Ping timeout: 245 seconds]
Anticom has quit [Read error: Connection reset by peer]
kazuuu_ has joined #ruby
iamjarvo has joined #ruby
Krajsnick has joined #ruby
rjhunter has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
kazuuu has quit [Ping timeout: 245 seconds]
Anticom has joined #ruby
petey has quit [Remote host closed the connection]
carlyle has joined #ruby
colonolGron has quit [Ping timeout: 260 seconds]
Anticom has quit [Read error: Connection reset by peer]
Gabri has joined #ruby
julweber has joined #ruby
devoldmx has joined #ruby
axeman- has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
rgbdev has quit [Quit: rgbdev]
wildroman has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
Squarepy has joined #ruby
mansi has joined #ruby
ehc has quit [Quit: ehc]
mercwithamouth has quit [Ping timeout: 248 seconds]
tesuji has quit [Ping timeout: 245 seconds]
leonidlm has quit [Read error: Operation timed out]
mmozuras has joined #ruby
LMolr has joined #ruby
ehc has joined #ruby
dweeb has joined #ruby
simon__ has joined #ruby
<simon__> Hello!
Hanmac has quit [Quit: Leaving.]
<simon__> I have uplaoded a gem I created to a local webserver, and I want to put something like gem "blabla", :source "www.blasdfsadf.com/path/to/gem" in my Gemfile.
ineb has joined #ruby
bobinator60_ has quit [Quit: bobinator60_]
<simon__> I dont want to run a gem server, is this possible?
<simon__> (Sorry, Im new to ruby :))
senayar has quit [Remote host closed the connection]
godd2 has joined #ruby
mmozuras has quit [Read error: Connection reset by peer]
clocKwize has joined #ruby
senayar has joined #ruby
acrussell has joined #ruby
burlyscudd has joined #ruby
kapowaz has quit [Ping timeout: 260 seconds]
<fryguy> (first google result for "gem server" btw)
aganov has quit [Remote host closed the connection]
Hanmac has joined #ruby
petey has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
senayar has quit [Read error: No route to host]
|jemc| has joined #ruby
axeman- has joined #ruby
senayar has joined #ruby
rippa has joined #ruby
Davey has joined #ruby
baroquebobcat has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
clov3r has joined #ruby
<simon__> fryguy: yeah, I saw that aswell.
<simon__> "I dont want to run a gem server, is this possible?
<simon__> "
<simon__> Though.
jefflyne has joined #ruby
Kricir has joined #ruby
timonv has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 260 seconds]
zeel has joined #ruby
mklappstuhl has joined #ruby
kazuuu_ has quit [Remote host closed the connection]
aalmenar has quit []
pranny has joined #ruby
zarubin has joined #ruby
lowcard has quit [Ping timeout: 260 seconds]
elux has joined #ruby
axeman- has quit [Remote host closed the connection]
kevind has joined #ruby
RDash[AW] is now known as RDash
leonidlm has joined #ruby
jaynewstrom has quit [Read error: Connection reset by peer]
robert_ has quit [Ping timeout: 245 seconds]
jaynewstrom has joined #ruby
failshell has joined #ruby
terrellt has joined #ruby
npras has joined #ruby
Bira has joined #ruby
robert_ has joined #ruby
wildroman has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<terrellt> Alright guys, metaprogramming question. How can I define a singleton method in a module that then calls that method on the class like it -didn't- have that module? My problem is that a library defines a method_missing setter OR a dynamic method, so I can't count on one or the other. So I need to be able to create a method that defines that setter and then calls that same setter without hitting itself again.
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
alup has quit [Quit: Leaving]
iamjarvo has quit [Ping timeout: 264 seconds]
dash_ has joined #ruby
<ineb> hello, what am i missing here? https://paste.xinu.at/S6Pp/
<Hanmac> terrellt you need to use this: def self.single(obj); obj.func; end but imo there isnt any singleton method needed… an instance method inside the module should work too
<|jemc|> terrellt: sadly, if I'm understanding your need correctly, alias or alias_method is the only way to do it
peregrine81 has joined #ruby
thebastl has quit [Remote host closed the connection]
<momomomomo> ineb: What are you trying to do, exactly?
<ineb> i want to print the hash
geggam_ has joined #ruby
<MrZYX> ineb: def changes the scope, @a_hash in the class scope and @a_hash in the method scope a different variables
jaynewstrom has quit [Read error: Connection reset by peer]
jaynewst_ has joined #ruby
<Hanmac> ineb: line2: its an instance variable inside the class, line5: its an instance variable inside an instance of that class
<MrZYX> use def initialize to initialize your variables
jprovazn has joined #ruby
tvw has quit []
<momomomomo> ineb: puts @obj
<terrellt> hanmac: The method needs to be dynamically defined, and I can't just call super (I don't think) - the parent implementation can either be used via dynamic method definition -or- a method missing implementation.
<ineb> ah, allright
quoin has joined #ruby
<terrellt> |jemc|: That's not possible - that was my first thought too. Unfortunately the parent implementation is sometimes done via method_missing, so there's nothing to alias
browndawg has joined #ruby
rehat has quit [Remote host closed the connection]
<Hanmac> terrellt: you still can use super when you use "respond_to_missing?"
intuxicated has quit [Remote host closed the connection]
<terrellt> hamac: Okay, I'll have to try that. In that case, is there a way to dynamically define a module method which -can- call super?
vlad_starkov has joined #ruby
wildroman has joined #ruby
<Hanmac> hm ok defined?(super) does not work, it does not check "respond_to_missing?"
Gabri has quit []
bricker`LA has quit [Ping timeout: 240 seconds]
leonidlm has quit [Ping timeout: 248 seconds]
ahmed_elgabri has joined #ruby
<Hanmac> shevy do you know what "def abc;end" returns in newer ruby?
rrichardsr3 has quit [Quit: -- I'm out --]
amacleod has joined #ruby
Drewch has joined #ruby
bricker`LA has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
shaunbak_ has quit [Remote host closed the connection]
OneMT has joined #ruby
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
robertjpayne has quit [Remote host closed the connection]
<|jemc|> I'll give you a hint
<|jemc|> it's not nil
cody-- has joined #ruby
<Hanmac> you meany! you are spoilering ;P
<MrZYX> I love the entries in the preview release notes
<MrZYX> "syntax"
Krajsnick has quit [Remote host closed the connection]
ereslibre has quit [Ping timeout: 245 seconds]
gwb3 has quit [Remote host closed the connection]
jezen has joined #ruby
clocKwize has quit [Read error: Operation timed out]
blaxter_ is now known as blaxter
<Hanmac> MrZYX: did you have links to this "release nodes"?
ssvo has joined #ruby
<OneMT> When I hit the rescue the begin never seems to happen again. But if I inspect on the rescue it does seem to be only catching errors. Is my rescue only moving errors and then beginning removing and storing files in JSON that aren't errors?
<|jemc|> the NEWS file in the nightly source package is also very helpful for learning about the new features
mklappstuhl has quit [Remote host closed the connection]
sectionme has quit [Ping timeout: 276 seconds]
<MrZYX> ;)
jduan1981 has quit [Quit: jduan1981]
<Hanmac> MrZYX: yeah it didnt say, which syntax … i think this is a secret ;P
clocKwize has joined #ruby
St_Marx has joined #ruby
quoin has quit [Ping timeout: 256 seconds]
schaerli has quit [Remote host closed the connection]
GeissT has quit [Quit: MillBroChat AdIRC User]
<Hanmac> like "find all hidden syntax changes and win a secret price" ;D
<OneMT> I would assume the inspect is correct. But I wondered if somehow my rescue was setup to start moving all files after the first error.
mlpinit has quit [Remote host closed the connection]
atno has joined #ruby
mlpinit has joined #ruby
<waxjar> cool, def gets a return value?
<|jemc|> yup
<banisterfiend> waxjar for real, method decorators coming soon
<Hanmac> and there are other funny addions too like "frozen"f
<waxjar> do you happen to know what |jemc|?
<|jemc|> yeah, I suppose that is the natural outcome of that, banisterfiend
<waxjar> hoping it's a Symbol :D
blackmesa has joined #ruby
<Hanmac> waxjar: it is
<|jemc|> "def-expr now returns the symbol of its name instead of nil."
burlyscudd has joined #ruby
<waxjar> sweet
<|jemc|> --from the NEWS file
pranny has quit [Quit: Leaving.]
ereslibre has joined #ruby
<OneMT> Could my very repetitive block statements somehow ruin my rescue? Is inspect on the rescue error the only way to make sure it is doing proper rescues?
dash_ has quit [Quit: dash_]
jimeh has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
greengriminal has quit [Quit: Leaving]
mlpinit_ has joined #ruby
<|jemc|> yeah, so a decorator would look like a method call wrapped around the def
<|jemc|> and take the return value to get access to the method object and act on that in some way
<Hanmac> yeah … private def abc; end is possible now :D
mlpinit_ has quit [Remote host closed the connection]
g0bl1n has left #ruby [#ruby]
cody-- has quit [Quit: derp]
ahmed_elgabri has quit [Remote host closed the connection]
mlpinit has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
* |jemc| opens up a ruby-2.1 REPL
<banisterfiend> |jemc| i'm excited about: auto_curry def my_method(x, y, z); …; end
burlyscudd1 has joined #ruby
<|jemc|> yeah, very exciting
awarner_ has joined #ruby
mklappstuhl has joined #ruby
jimeh has joined #ruby
schaerli has joined #ruby
mlpinit_ has joined #ruby
<breakingthings> what an autocurry
MrLawrence has joined #ruby
<|jemc|> and they could be chainable as well... hm
sloucher has joined #ruby
supergiantrobot has joined #ruby
<|jemc|> or even take other arguments besides the method def
bradhe has joined #ruby
clocKwize has quit [Quit: Computer is sleeping]
burlyscudd has quit [Ping timeout: 245 seconds]
AndChat| has quit [Ping timeout: 252 seconds]
Boohbah has quit [Remote host closed the connection]
dodosan has joined #ruby
MrLawrence has left #ruby [#ruby]
<waxjar> i wonder if it could somehow be abused to implement pattern matching
awarner has quit [Ping timeout: 245 seconds]
<|jemc|> pattern matching?
ereslibre has quit [Ping timeout: 264 seconds]
<banisterfiend> waxjar i've abused it already to implement multiple dispatch
nomenkun has joined #ruby
<banisterfiend> waxjar general pattern matching is much more complicated
mlpinit has quit [Ping timeout: 260 seconds]
Boohbah has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<pontiki> how did the term "curry" for functional programming come to be?
<MrZYX> ah, so they just screwed up the nested list
<banisterfiend> pontiki haskell curry
<pontiki> banisterfiend: i'm pretty sure scala had it before haskell
<banisterfiend> pontiki haskell curry is a guy ;)
<pontiki> oh!
<pontiki> but..
g0bl1n has joined #ruby
<pontiki> where did scala get it?
nari has quit [Ping timeout: 264 seconds]
<banisterfiend> pontiki haskell curry was a mathematician who invented the idea many, many years ago
<|jemc|> yay decorators work with other arguments without wrapping the whole mess in parentheses
dodosan has quit [Ping timeout: 245 seconds]
gwb3 has joined #ruby
<banisterfiend> pontiki way before either haskell or scala was even a twinkle in anyone's eye, these guys were working around the same time as turing or a little bit after i think
<pontiki> that's neat
<|jemc|> [8] pry(main)> foo 'cow', def bar *args; end
<|jemc|> => :foo
<pontiki> or the action
<|jemc|> ["cow", #<Method: Object#bar>]
<pontiki> that makes a *whole* lot more sense trying to make sense of the definitions of curry
<|jemc|> [7] pry(main)> def foo arg1, meth; p [arg1, method(meth)]; meth end
<pontiki> thanks, banisterfiend
<pontiki> oh, i see -- just found the wiki page now
<banisterfiend> yeah, nothing to do with the food ;)
<|jemc|> => :bar
filipe has quit [Read error: Connection reset by peer]
ahmed_elgabri has joined #ruby
jezen has quit [Ping timeout: 246 seconds]
Boohbah has quit [Remote host closed the connection]
<|jemc|> thanks for the tip-off about decorators, banisterfiend; this is really very cool
siwica has joined #ruby
Boohbah has joined #ruby
segfalt has joined #ruby
<banisterfiend> np
<Hanmac> what about that: def xyz meth; m=method(meth);define_method(meth) {|*args| p "before"; m.call(*args); p "after" }; end
ananthakumaran has joined #ruby
<banisterfiend> hanmac nice work, hands
<banisterfiend> hanmac is it hans or hands?
siwica has quit [Client Quit]
segfalt has left #ruby [#ruby]
jbrechtel has quit [Remote host closed the connection]
<Hanmac> its the first, but i have two from the second
Drewch has quit [Quit: Computer has gone to sleep.]
ahmed_elgabri has quit [Remote host closed the connection]
segfalt has joined #ruby
pel_daniel has joined #ruby
randomautomator has joined #ruby
<|jemc|> hanmac: works as you think it does
jbrechtel has joined #ruby
<|jemc|> xyz def foo; p 'whup' end
mihirrege has joined #ruby
<|jemc|> [13] pry(main)> foo
segfalt has left #ruby [#ruby]
jbrechtel has quit [Read error: Connection reset by peer]
<|jemc|> "before"
<|jemc|> "whup"
<|jemc|> "after"
<|jemc|> hm. I wonder how this pans out for instance methods...
St_Marx has quit [Remote host closed the connection]
<|jemc|> maybe the decorator has to be an instance method of the same object for the receiver to be correct?
St_Marx has joined #ruby
<banisterfiend> |jemc| the decorator has to be a class method
<banisterfiend> otherwise u can't call it in the class body bb
<|jemc|> but if it's an instance method, it can't be called in the class definition body
lethjakm1 has joined #ruby
<Hanmac> |jemc|: hm no, the old method does not need to be in an instance variable … the block keeps it alive
v0n has quit [Read error: Operation timed out]
<|jemc|> ah yes, the method object itself knows how to find the correct receiver
coderhs has joined #ruby
michael_mbp is now known as zz_michael_mbp
Xeago has quit [Remote host closed the connection]
danshultz has joined #ruby
AdmiraI has joined #ruby
Teddy2steper has joined #ruby
Trudko has joined #ruby
sarlalian has joined #ruby
zz_michael_mbp is now known as michael_mbp
* Hanmac says: its magic! ;D
nachtwandler has joined #ruby
<Trudko> Guys i have variable where i concatenate multiple strings separated by white space -> player_points_hash[player_one.id] += ' ' + mp.player_one_points.to_s + ' ' + mp.player_one_points_2.to_s + ' ' + mp.player_one_points_3.to_s . Things is player_one_points_2 and player_one_points_3 can be nil in which case i dont want to add empty space. How should I write it?
maletor has joined #ruby
<Trudko> I am used to use if or ternary operations but ruby should have something nicer.
schaerli has quit [Remote host closed the connection]
<Hanmac> Trudko why does player_one_points is stored in different variables?
clocKwize has joined #ruby
<Trudko> hanmac: well I am doing one sports league and player can have multiple points
<Trudko> so yeah they have to be separated. points in this case aren't total points
<Hanmac> use something like that (player_one_points returns an array) mp.player_one_points.compact.join(" ")
timonv has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
m00nlight has joined #ruby
danshultz has joined #ruby
<OneMT> Is the require for iconv just 'iconv' ?
bamdad has joined #ruby
<Trudko> hanmac: I see thx
gwb3 has quit [Remote host closed the connection]
<newton> is it possible with minitest/testunit to define some special method that triggers in a test file when one of the tests inside it fails?
<Hanmac> OneMT "iconv" died a painful death … but no one cares about
siwica has joined #ruby
dash_ has joined #ruby
<OneMT> hanmac, Is there a new replacement?
ryannielson has joined #ruby
<Hanmac> OneMT "new" in a relative way … look for String#encode
m00nlight has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tatsuya_o has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
cody-- has joined #ruby
siwica has quit [Client Quit]
avril14th has quit [Remote host closed the connection]
d45h has joined #ruby
dash_ has quit [Ping timeout: 248 seconds]
Guest40428 has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Apocalypse has quit [Ping timeout: 260 seconds]
parzo_ has joined #ruby
tkuchiki has joined #ruby
lukec has quit [Quit: lukec]
nachtwandler has quit [Ping timeout: 248 seconds]
Apocalypse has joined #ruby
parzo has quit [Ping timeout: 276 seconds]
sarkis has joined #ruby
jduan1981 has joined #ruby
nachtwandler has joined #ruby
barratt has quit [Ping timeout: 246 seconds]
thebastl has joined #ruby
mrsolo has joined #ruby
petey has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 248 seconds]
petey has joined #ruby
v0n has joined #ruby
shadoi has joined #ruby
sniffingcats has joined #ruby
thebastl_ has joined #ruby
Upi has left #ruby [#ruby]
Upi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
chairabanta has joined #ruby
mansi has joined #ruby
ereslibre has joined #ruby
thebastl has quit [Read error: Connection reset by peer]
mansi has quit [Read error: Connection reset by peer]
clocKwize has quit [Read error: Connection reset by peer]
duggiefresh has quit [Remote host closed the connection]
thebastl_ has quit [Remote host closed the connection]
sectionme has joined #ruby
Krajsnick has joined #ruby
mansi has joined #ruby
diegoviola has joined #ruby
<OneMT> Has anyone had experience with force_encoding and the mail gem?
kaldrenon has quit [Remote host closed the connection]
pairup has joined #ruby
ereslibre has quit [Ping timeout: 264 seconds]
thebastl has joined #ruby
raphaelivan has joined #ruby
quoin has joined #ruby
Guest8910 has joined #ruby
haxrbyte has quit [Remote host closed the connection]
clocKwize has joined #ruby
spider-mario has joined #ruby
haxrbyte has joined #ruby
sectionme has quit [Ping timeout: 264 seconds]
Uranio has joined #ruby
noname001 has quit [Ping timeout: 264 seconds]
thebastl has quit [Remote host closed the connection]
zeel has quit [Remote host closed the connection]
peregrine81 has quit []
Nogbit has joined #ruby
ajaxJK has quit [Ping timeout: 260 seconds]
nomenkun has quit [Ping timeout: 252 seconds]
chairabanta has quit [Quit: Leaving...]
rins has quit [Read error: Connection reset by peer]
headius has quit [Quit: headius]
Spami has joined #ruby
NinjaPenguin has joined #ruby
Guest8910 has quit [Remote host closed the connection]
Nenor has joined #ruby
kazuuu has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
JohnBat26 has quit [Ping timeout: 252 seconds]
<NinjaPenguin> I don't really get what the ? is supposed to stand for. I've found a pattern with it appearing in conditions. Anyone mind awaring me?
<|jemc|> ternary operator
<|jemc|> (condition) ? (do_if_true) : (do_if_false)
<NinjaPenguin> I don't mean that, I mean module.method?
lukec has joined #ruby
hippyphysicist has joined #ruby
<banisterfiend> NinjaPenguin predicate methods
<|jemc|> a loose convention indicating that the method usually returns a boolean
Blaze_Boy has joined #ruby
<|jemc|> but you can define a method with a question mark that does not follow this convention
clocKwize has quit [Ping timeout: 246 seconds]
hippyphysicist has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
<|jemc|> or rather, returns a value that is to be interpreted as a boolean
<NinjaPenguin> Ah. It's the same thing with !?
<|jemc|> yeah, just a part of the method name
<NinjaPenguin> Ah alright, thanks!
Stalkr_ has joined #ruby
alx- has quit [Quit: Leaving...]
<|jemc|> ! usually indicates that something 'dangerous' is happening
<|jemc|> as compared to the method version that does not have the bang
kaldrenon has joined #ruby
tkuchiki has quit [Remote host closed the connection]
BraddPitt has joined #ruby
pushpak has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby
danshultz has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 252 seconds]
alx- has joined #ruby
sayan has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ereslibre has joined #ruby
duggiefresh has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
<|jemc|> usually means it is modifying the original object with many core object methods, but it can also mean other 'dangerous' things
npras has left #ruby [#ruby]
kidoz has joined #ruby
burlyscudd1 has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
sambao21 has joined #ruby
rrichardsr3 has joined #ruby
apeiros has quit [Remote host closed the connection]
threesome has joined #ruby
ehaliewicz has joined #ruby
tylersmith has joined #ruby
burlyscudd has quit [Client Quit]
<BraddPitt> if i need to include a password in my program, should i use command line args or a config file?
zmike123 has quit [Read error: Operation timed out]
jbrechtel has joined #ruby
sayan has quit [Max SendQ exceeded]
ereslibre has quit [Ping timeout: 245 seconds]
bamdad has quit [Quit: bamdad]
momomomomo has joined #ruby
julweber has quit [Remote host closed the connection]
MrThePlague has quit [Remote host closed the connection]
jduan1981 has quit [Quit: jduan1981]
vlad_starkov has quit [Remote host closed the connection]
<Stalkr_> Mac developers: what's your prefered text editor? I see TextMate mentioned often, but I can't get used to it after Sublime Text
<Stalkr_> Should I keep using ST or is there a killer function in TM I am unaware of? TextWrangler/BBEdit maybe?
headius has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
alx- has quit [Quit: Leaving...]
bamdad has joined #ruby
leehambley has joined #ruby
banghouse2 has joined #ruby
obs has joined #ruby
LMolr has quit [Ping timeout: 260 seconds]
<BraddPitt> ST2 > *
einarj has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
Monie has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
bamdad has quit [Client Quit]
<waxjar> sublime is basically a really improved Textmate anyway
KobraKao has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
timonv has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
dangerousdave has quit [Read error: Connection reset by peer]
alx- has joined #ruby
<|jemc|> BraddPitt: ST2 < ST3
kapowaz has joined #ruby
dangerousdave has joined #ruby
yxhuvud has joined #ruby
simon__ has quit [Read error: Operation timed out]
jonahR has joined #ruby
cj3kim_ has joined #ruby
stkowski has joined #ruby
zmike123 has joined #ruby
saarinen has joined #ruby
alx- has quit [Client Quit]
apfelbox has quit [Remote host closed the connection]
dankest has joined #ruby
apfelbox has joined #ruby
Zai00 has quit [Quit: Zai00]
toah has joined #ruby
graydot has quit [Quit: graydot]
jduan1981 has joined #ruby
chrisja has quit [Read error: Connection reset by peer]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
momomomomo has quit [Quit: momomomomo]
cj3kim_ has quit [Ping timeout: 240 seconds]
chrisja has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
carraroj has joined #ruby
carraroj has quit [Client Quit]
v0n has joined #ruby
apfelbox has quit [Ping timeout: 260 seconds]
burlyscudd has joined #ruby
pranny has joined #ruby
pranny has left #ruby [#ruby]
carlyle has quit [Remote host closed the connection]
troessner has quit [Quit: Leaving]
beilabs_ has quit [Ping timeout: 256 seconds]
c0rn has joined #ruby
forellentorte has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
buibex_ has joined #ruby
ryannielson has quit [Quit: ryannielson]
rickmasta has quit [Quit: Leaving...]
rrichardsr3 has quit [Quit: -- I'm out --]
Xeago has joined #ruby
iamjarvo has joined #ruby
buibex has quit [Ping timeout: 264 seconds]
leehambley has joined #ruby
buibex_ has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
cdelo has joined #ruby
iamjarvo has joined #ruby
mrsolo has joined #ruby
nachtwandler has quit [Remote host closed the connection]
stkowski has quit [Ping timeout: 260 seconds]
callenb has left #ruby [#ruby]
<Eiam> Stalkr_: sublime text 3
Xeago has quit [Ping timeout: 241 seconds]
pairup has quit [Quit: I'm asleep.]
<Eiam> I use text mate still because it seems to parse invalid json
<Eiam> whereas my plugin in ST3 just barfs and refuses to parse anything
AndChat| has joined #ruby
dmille___ has joined #ruby
<Eiam> (I literally open text mate just to parse invalid json, copy/paste it formatted back into ST3)
VTLob has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
gwb3 has joined #ruby
apeiros has joined #ruby
DanKnox_away is now known as DanKnox
jezen has joined #ruby
AFKGeek has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
ereslibre has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danman has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
rwjblue has joined #ruby
gwb3 has quit [Ping timeout: 245 seconds]
beilabs_ has joined #ruby
inimit has joined #ruby
obs has quit [Quit: Konversation terminated!]
rgbdev has joined #ruby
theRoUS has joined #ruby
rwjblue has left #ruby [#ruby]
DanKnox is now known as DanKnox_away
Cheos has quit [Quit: Leaving...]
blaxter has quit [Quit: foo]
iliketurtles has quit [Quit: zzzzz…..]
sambao21 has quit [Quit: Computer has gone to sleep.]
AFKGeek has quit [Quit: Leaving]
sayan has joined #ruby
mmozuras has joined #ruby
snovak has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
snovak has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
sepp2k has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
Jdubs has quit [Read error: Connection reset by peer]
mikee has joined #ruby
iliketurtles has joined #ruby
beilabs_ has quit [Ping timeout: 248 seconds]
headius has quit [Ping timeout: 264 seconds]
shadoi has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
sambao21 has joined #ruby
SHyx0rmZ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Jdubs has joined #ruby
Krajsnick has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
julweber has joined #ruby
snovak has quit [Remote host closed the connection]
toah has quit [Ping timeout: 248 seconds]
petey has quit [Remote host closed the connection]
Quashie has quit [Ping timeout: 264 seconds]
obs has joined #ruby
loss has joined #ruby
Jdubs has quit [Remote host closed the connection]
ziyadb has quit [Ping timeout: 242 seconds]
dodosan has joined #ruby
Voodoofish430 has joined #ruby
iamjarvo has quit [Remote host closed the connection]
c0rn has joined #ruby
Jdubs has joined #ruby
iamjarvo has joined #ruby
quoin has joined #ruby
arietis has joined #ruby
moted has quit [Quit: moted]
moted has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
whunt has joined #ruby
interactionjaxsn has joined #ruby
iamjarvo_ has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
JimmyNeutron has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
whunt has quit [Quit: Textual IRC Client: www.textualapp.com]
quoin has quit [Ping timeout: 246 seconds]
whunt has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
beilabs_ has joined #ruby
Nogbit1 has joined #ruby
petey has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 259 seconds]
kristiandelay has joined #ruby
Macaveli_ has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
Monie has joined #ruby
jbpros has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
Macaveli has quit [Ping timeout: 246 seconds]
schaerli has joined #ruby
Nogbit has quit [Ping timeout: 248 seconds]
Blaze_Boy has quit [Quit: Leaving]
DanKnox_away is now known as DanKnox
f0ster has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<f0ster> Hello, I am trying a simple custom string sort, but I get an error ie "test.rb:18:in `sort': comparison of String with String failed (ArgumentError)", can anyone see why this is ?http://pastebin.com/AE4FCMBH
julweber has quit [Remote host closed the connection]
NealJ has quit [Ping timeout: 256 seconds]
snovak has joined #ruby
cschneid has joined #ruby
interactionjaxsn has joined #ruby
<OneMT> Is there a resource or gem for converting text ?
<Hanmac> f0ster: you need a 0 or +1 at line 26
beilabs_ has quit [Ping timeout: 252 seconds]
<OneMT> converting text encoding*?
<f0ster> hanmac: ah
postmodern has joined #ruby
mklappstuhl has joined #ruby
<f0ster> hanmac: so regardless of my order being defined by the if statements, the sort function has to return a 0/1
<Hanmac> -1/0/1 specialy
narcan has quit [Ping timeout: 245 seconds]
peregrine81 has joined #ruby
vlad_starkov has joined #ruby
girija has quit [Ping timeout: 246 seconds]
rezzack has joined #ruby
Dan_ has joined #ruby
cj3kim_ has joined #ruby
banisterfiend has joined #ruby
dankest has quit [Read error: Connection reset by peer]
Dan_ is now known as Guest60626
Guest60626 has quit [Client Quit]
akhkharu has quit [Ping timeout: 260 seconds]
<f0ster> hanmac: yeah this isnt going to work like i planned, i thought i could have a kind of transitive ordering, but i have to define all of the relationships explicitly
vlad_starkov has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
vlad_starkov has joined #ruby
<Hanmac> f0ster: you may want to look for sort_by
<f0ster> hanmac: okay thank you
TheRealPygo has joined #ruby
CalvinnHobbes has joined #ruby
pygospa has quit [Disconnected by services]
banisterfiend has quit [Client Quit]
Stalkr_ has quit [Read error: Connection reset by peer]
tomsthumb has joined #ruby
jcromartie has joined #ruby
Clooth has joined #ruby
<jcromartie> I just found out that a coworker literally had their laptop taken away for a month while they were under investigation for Googling a Ruby gem name at work.
<jcromartie> Seriously, Ruby community. Come on.
<jcromartie> but overreaction from employers is at fault too
shadoi has quit [Quit: Leaving.]
Kricir_ has joined #ruby
wildroman has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
mephux has quit [Ping timeout: 260 seconds]
<|jemc|> what is his work?
beilabs_ has joined #ruby
iamjarvo_ has quit [Ping timeout: 245 seconds]
apfelbox has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 252 seconds]
<apeiros> jcromartie: um, seriously, your employer, come on.
<apeiros> a) they supervise your googling? wtf?!
osvico has quit [Ping timeout: 240 seconds]
<whunt> what was the ruby gem?
<apeiros> b) they distrust you so much that it took over a month to resolve it? wtf?!
Tricon has quit [Ping timeout: 240 seconds]
mephux has joined #ruby
<whunt> also, what did they do for a month without their computer?
headius has joined #ruby
jkamenik has quit [Quit: Leaving.]
<apeiros> jcromartie: seriously, if what you just said wasn't just utter BS, then that's a place to insta-leave.
<jcromartie> apeiros: it's not BS, and yeah it's kinda scary
<jcromartie> it was approx. 2 years ago
einarj has joined #ruby
<apeiros> I think in our country you could even sue the employer for unjustified spying on the worker.
shadoi has joined #ruby
NealJ has joined #ruby
<jcromartie> apeiros: well I live in America so I can only assume everybody is spying on me at all times :)
Nogbit1 has quit [Quit: Leaving.]
banisterfiend has joined #ruby
<Eiam> yah what was the ruby gem name
<Eiam> i wanna google it
pyoor has joined #ruby
<Eiam> I'll use it as a litmus test, maybe I should leave my employer!
<pyoor> Hi all. Is there a way to slice a string from pos n to the end? Like in python foo[10:] ?
banisterfiend has quit [Client Quit]
Macaveli has joined #ruby
apfelbox has quit [Ping timeout: 260 seconds]
browndawg has quit [Read error: Connection timed out]
<Hanmac> pyoor: str"[n..-1]
<Hanmac> - the "
<jcromartie> the gem is defunct or something, a precursor to homebrew
kobain has joined #ruby
<jcromartie> I'm not going to go googling references to it at work, but it was "bdsm"
LMolr has joined #ruby
<pyoor> hanmac: thanks
<Eiam> Steve and Wynn caught up with Wayne Seguin to talk about his Ruby enVironment Manager and BDSM shell scripting framework projects.
Macaveli_ has quit [Ping timeout: 240 seconds]
<Eiam> oh Wayne, you getting people fired! so mean!
<Eiam> =p
browndawg has joined #ruby
lkba has joined #ruby
<apeiros> jcromartie: actually it's wayne's other project besides rvm
<apeiros> unrelated to homebrew
<Eiam> google hits for "bdsm ruby gem" or "bdsm gem" seem relevant to my interests
Nisstyre-laptop has quit [Quit: Leaving]
<jcromartie> ok, I wasn't about to go looking into it
<Eiam> (in ruby, not bdsm) =)
einarj has quit [Ping timeout: 260 seconds]
wildroman has joined #ruby
soberano has joined #ruby
<Eiam> YOU HEAR THAT SECURITY? leave me alone!
jbpros has quit [Quit: jbpros]
wildroman has quit [Remote host closed the connection]
ahuman_ is now known as ahuman
cdelo has quit [Remote host closed the connection]
wildroman has joined #ruby
<|jemc|> jcromartie: what type of work is it?
T_T has quit [Remote host closed the connection]
rgbdev has quit [Quit: rgbdev]
Kabaka has joined #ruby
jbrechte_ has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
peregrine81 has quit []
shadoi has joined #ruby
jb41 has joined #ruby
Advocation has joined #ruby
<graft> okay, so in perl or some such i can easily do something like: x.each do |n| next if seen[n]++; puts n; end - this becomes super awkward in ruby because there's no ++ and 0 is true, so what's the pithy ruby way to do this?
jbrechtel has quit [Ping timeout: 240 seconds]
lowcard has joined #ruby
Tricon has joined #ruby
peregrine81 has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
<apeiros> graft: you want to increment all non-zero values by 1?
tylersmith has joined #ruby
<apeiros> errr, and print all zeros in the same run?
<OneMT> Is there a reliable way to find the encoding of an email and convert it to utf-8? I'm using the mail gem to get the charset, and then converting the email.to_s from it's charset to utf-8 using iconv. But with no successful conversion.
Xeago has joined #ruby
Kabaka has quit [Remote host closed the connection]
<apeiros> OneMT: huh? I thought the mail gem already sets the encoding of the string, so all you have to do is utf_8_body = mail_body.encode('utf-8')
Guest36090 has joined #ruby
<apeiros> haven't used it for receiving mail other than experimentally, though
camilasan has quit [Remote host closed the connection]
<OneMT> I'm reading a set of existing emails.
<waxjar> graft: something like x.select { |n| seen[n] + 1 > 0 }.each &:puts ? though the coupling between x and seen is a bit weird
carlyle has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peregrine81 has quit [Client Quit]
schaerli has quit [Remote host closed the connection]
<Hanmac> &:puts does not work, but he can try &:display
<havenwood> #succ would be an alternative to +1
<waxjar> ah, true
maroloccio has quit [Ping timeout: 240 seconds]
<havenwood> silly #puts being private, grr
<apeiros> that's not the issue
<apeiros> that it isn't 5.puts is :)
St_Marx has quit [Remote host closed the connection]
<Hanmac> but you can so &method(:puts)
<waxjar> it even looks p nice
St_Marx has joined #ruby
iamjarvo has joined #ruby
rickmasta has joined #ruby
alekst has quit [Quit: Leaving...]
browndawg has left #ruby [#ruby]
<f0ster> hmm so I wrote this basic function to pass to sort for custom string comparison, but my results always appear backwards, http://pastebin.com/NFQmGNqT
fcahoon has joined #ruby
ner0x has joined #ruby
<Hanmac> f0ster: when its reverse, try to negate (switch 1, and -1)
mklappst_ has joined #ruby
randomnick_ has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
fcahoon has quit [Client Quit]
splittingred has joined #ruby
bean has joined #ruby
<apeiros> f0ster: test = ['', 'FB', 'FF', '', 'FB', 'FF', first, second, third] # slightly easier to write than a thousand pushes :)
bamdad has joined #ruby
<f0ster> hanmac: I Did.. and it returns the same exact thing which is strange
<Hanmac> oO
<f0ster> apeiros: thats true
<apeiros> f0ster: also, please use gist.github.com or any other none-ad-ridden paste service. thank you.
* Hanmac doesnt see ads since years ...
<cout> there were ads? I thought those were coupons..
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mklappstuhl has quit [Ping timeout: 245 seconds]
<f0ster> Strange that it returns the same array even if i switch 1/-1
bamdad has quit [Client Quit]
wildroman has quit [Remote host closed the connection]
akhkharu has joined #ruby
<apeiros> oh, lol
ananthakumaran has quit [Quit: Leaving.]
<apeiros> f0ster: precedence issue
<apeiros> puts expr do … end
<f0ster> apeiros: waht do you mean
<apeiros> that do/end belongs to puts
<apeiros> not to sort
<f0ster> ohh
<apeiros> use {} if you care about the return value
mark_locklear has quit [Ping timeout: 248 seconds]
mansi has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
<f0ster> i just want the sorted array
duggiefresh has quit [Read error: Connection reset by peer]
<apeiros> yes, use {}.
Macaveli has quit [Remote host closed the connection]
mklappst_ has quit [Read error: Connection reset by peer]
<apeiros> foo bar do … end # <-- do/end belongs to foo
mklappstuhl has joined #ruby
<apeiros> foo(bar do … end) # <-- do/end belongs to bar
duggiefresh has joined #ruby
petey has joined #ruby
<apeiros> foo bar { … } # <-- { … } belongs to bar
* Hanmac always mistrust do … end
<apeiros> foo(bar) { … } # <-- { … } belongs to foo
burlyscudd has joined #ruby
Ox6abe has joined #ruby
<f0ster> apeiros: so {} can replace do/end
<apeiros> yes
<f0ster> okay
<apeiros> the only difference between the two is precedence
<cout> f0ster: a = [ 'FF', 'FB', '' ]; p test.sort { |l,r| a.index(l) <=> a.index(r) }
Teddy2steper has quit [Remote host closed the connection]
<apeiros> cout: could have showed him sort_by too ;-)
Ox6abe has quit [Remote host closed the connection]
<f0ster> hanmac mentioned it
<f0ster> I didnt finish reading about it to see the advantage ?
* Hanmac did it first … even before the simsons
fomatin has joined #ruby
<cout> apeiros: oh, I didn't think about that
<apeiros> f0ster: combine it with cout's code
<f0ster> yeah that's much more elegant
<waxjar> the hanmaacs, the haaanmaaacs *cue tune*
<apeiros> order = ['FF', 'FB', '']; puts test.sort_by { |item| order.index(item) }
<apeiros> your code is now down to 3 lines
<apeiros> readable lines even :)
subpreceptor61 has quit [Ping timeout: 245 seconds]
<waxjar> psh, that's two :D
havenwood has quit [Remote host closed the connection]
<apeiros> waxjar: you forget `test = …`
<waxjar> fair enough :p
<Hanmac> test.sort_by(&:order.method(:index))
havenwood has joined #ruby
<Hanmac> test.sort_by(&order.method(:index))
<Hanmac> first one has a ":" tomuch
jb41 has quit [Quit: leaving]
burlyscudd has quit [Ping timeout: 240 seconds]
<apeiros> hanmac loves the method method
<AndChat|> Apeiros is "hans" a common name in Switzerland?
<cout> I like method = method(:method)
<apeiros> AndChat|: I think so. not that popular anymore, though.
axeman- has joined #ruby
<Hanmac> oO since when i am in Switzerland? i think i need to look outside
<apeiros> telsearch lists >90k entries for "Hans"
<cout> hans == "head and neck support"
quoin has joined #ruby
<cout> I need to buy one
<OneMT> apeiros, Is iconv not able to convert encoding ?
<apeiros> OneMT: it is. but it is deprecated.
zmike123 has quit [Quit: ~]
headius has quit [Ping timeout: 276 seconds]
<Hanmac> OneMT: like i says before: iconv died
<OneMT> aperios, hanmac, I tried using String#encode but it doesn't seem to convert.
havenn has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
<apeiros> OneMT: that's a rather badly asked question.
<apeiros> pastes best go to gist.github.com (you can separate in-/output/code/expectation in separate files there)
kazuuu has quit [Remote host closed the connection]
<apeiros> in a reproduceable fashion
kazuuu has joined #ruby
flanged43 has joined #ruby
Advocation has quit [Quit: Advocation]
<apeiros> OneMT: if you want help, provide example input, example output, what you did, what you expected
havenn has quit [Remote host closed the connection]
mpereira_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
kazuuu has joined #ruby
gazarsgo has joined #ruby
quoin has quit [Ping timeout: 248 seconds]
<AndChat|> Cout what's up me bru
mrsolo has quit [Quit: This computer has gone to sleep]
Ox6abe has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
mklappstuhl has joined #ruby
<cout> AndChat|: I don't know I can't see that far
dankest has joined #ruby
kazuuu has quit [Remote host closed the connection]
<AndChat|> Haha
havenwood has quit [Ping timeout: 245 seconds]
gazarsgo has quit [Quit: gazarsgo]
maroloccio has joined #ruby
czhang_temp has joined #ruby
gazarsgo has joined #ruby
burlyscudd has joined #ruby
ineb has quit [Quit: leaving]
NealJ has quit [Quit: :c]
jbrechte_ has quit [Remote host closed the connection]
forellentorte has quit [Quit: Verlassend]
fmcgeough has quit [Quit: fmcgeough]
alvaro_o has joined #ruby
NealJ has joined #ruby
BizarreCake has quit [Ping timeout: 260 seconds]
BraddPitt has quit [Ping timeout: 256 seconds]
ukd1 has joined #ruby
snovak has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
Xeago has joined #ruby
julweber has joined #ruby
acrussell has quit [Quit: Leaving.]
Ox6abe has quit [Remote host closed the connection]
BraddPitt has joined #ruby
LMolr has quit [Remote host closed the connection]
platzhirsch has joined #ruby
jprovazn has quit [Quit: Odcházím]
BraddBitt has joined #ruby
Kricir_ has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
zachrab has joined #ruby
julweber has quit [Ping timeout: 276 seconds]
iamjarvo has quit [Ping timeout: 248 seconds]
<platzhirsch> Has anyone worked with ruby-prof a bit?
blackmesa has quit [Ping timeout: 240 seconds]
<zachrab> how can i make a first of the month with ActiveSupport::TimeWithZone?
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
apfelbox has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
BraddPitt has quit [Ping timeout: 260 seconds]
tabolario has joined #ruby
apfelbox has quit [Read error: Operation timed out]
mnemon has quit []
apfelbox has joined #ruby
Kricir has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
jbpros has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
leehambley has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
NinjaPenguin has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
<apeiros> zachrab: better fit in #rubyonrails
<apeiros> and I think it has something like beginning_of_month
danshultz has joined #ruby
bigkevmcd has joined #ruby
soheil has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
snovak has joined #ruby
iamjarvo has joined #ruby
<Eiam> platzhirsch: I had it open to investigate using it but didn't end up getting around to it =/
<apeiros> oh, cross-poster
<Eiam> I imagine this will be much like pry, put it off for years then finally do it and wonder why I didn't bother.
<platzhirsch> ok, well let's see if I am lucky
zachrab was kicked from #ruby by apeiros [if you cross-post, you're required to tell that in all channels where you cross-post. thanks.]
burlyscudd has quit [Quit: Leaving.]
godd2 has quit [Quit: Page closed]
<apeiros> of course he didn't bother to tell that he got help in another channel.
pellenation has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
apfelbox has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Read error: Operation timed out]
pranny has joined #ruby
pranny has quit [Client Quit]
soheil has quit [Ping timeout: 246 seconds]
MrHacks has joined #ruby
workmad3 has joined #ruby
burlyscudd1 has joined #ruby
<MrHacks> Are self.colors? and colors the same method if I define them in the same class?
Anderson is now known as anderSon
<apeiros> MrHacks: where you define them doesn't even matter
<apeiros> self.colors() is the same as colors() in all cases.
<Eiam> colors? and colors are not the same...
<MrHacks> Just wonder, I just keep getting this "getlsrlsx.2.1.rb:291:in `ecf': undefined method `colors?' for #<WXReport:0x0000000117f4e8> (NoMethodError)" message every time I try to run.
<apeiros> oh, missed the ?
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> yes, colors and colors? are not the same :)
<MrHacks> Oops. I should have said 'self.colors?' and 'colors?"
blackmesa has joined #ruby
justsee has joined #ruby
<Eiam> apeiros: it wasn't clear if he messed up either way
<apeiros> `def self.colors` and `def colors` however are NOT the same methods
<Eiam> ^
decoponio has quit [Quit: Leaving...]
<|jemc|> MrHacks: is it an instance method or a class method?
<MrHacks> They can do the same thing, though?
<Eiam> that'd be weird imo.
<MrHacks> If I define them to do such
luckyruby has joined #ruby
<apeiros> MrHacks: not if they have any reference to self
Apocalypse has quit [Ping timeout: 260 seconds]
anderSon has quit [Quit: Leaving]
<|jemc|> def self.colors? defines a class method from within a class definition
obs has quit [Quit: Konversation terminated!]
<Eiam> MrHacks: it depends on what they need to be defined to do
<|jemc|> def colors? defines an instance method from within a class definition
<Hanmac> ah WX .. i should work on my own wx binding again
<MrHacks> Well, I have a global class variable called "color" that will set the color for all records
Squarepy has quit [Quit: Leaving]
<|jemc|> however, self.colors? when called from within an instance method refers to the instance method, not the class method
<MrHacks> hanmac: my WXReports has nothing to do with WX. WX = WEATHER
Apocalypse has joined #ruby
<Eiam> MrHacks: can you provide some example code?
<Eiam> I'm thinking "class Colors @@colors def self.colors @@colors end def colors @@colors end end
KobraKao has joined #ruby
<MrHacks> @@color is where the setting to show output with color or no color
<Hanmac> Oh : D
colonolGron has joined #ruby
<Eiam> code please
<Eiam> !example
<Eiam> !gist
<Eiam> bleh
<|jemc|> heh
<Eiam> LadyByte tell MrHacks about gist
<Eiam> ;p I miss that channel.
iamjarvo has joined #ruby
alx- has joined #ruby
Kricir has quit [Remote host closed the connection]
<MrHacks> never mind, I fixed it. I just needed to write a more local version of the function that does the same thing.
fomatin has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> o0
<apeiros> solution by duplicating code - doesn't sound sensible.
Kricir has joined #ruby
jcromartie has quit [Quit: Page closed]
<platzhirsch> Eiam: I have to patch the interpreter to get memory profiling capabilities,... :(
sailias has joined #ruby
KobraKao has quit [Ping timeout: 246 seconds]
<Eiam> platzhirsch: MRI??
<platzhirsch> aye
<Eiam> you maybe missing smoething?
leehambley has quit [Ping timeout: 260 seconds]
<Eiam> I've seen implementations in MRI to get memory information about your own objects..
robustus has quit [Ping timeout: 264 seconds]
leehambley has joined #ruby
joofsh has joined #ruby
<gazarsgo> why not shell out and read /proc/self/status ? :)
<gazarsgo> well, shell out is a harsh term
thepumpkin has joined #ruby
thepumpkin has quit [Ping timeout: 260 seconds]
<platzhirsch> smoething, uhm
<gazarsgo> platzhirsch: File.readlines('/proc/self/status').select {|l| l =~ /VmRSS/}.first.split[1].to_i
<gazarsgo> OS-specific call :-/
<platzhirsch> I am on Linux
<gazarsgo> then you should have /proc/self/status available
<Hanmac> gazarsgo use #find
<platzhirsch> okay, this gives me the allocated memory?
<Eiam> =0
<platzhirsch> I have a memory leak, in my small application and it rises and I want to find out where it stakcs up
Xeago_ has joined #ruby
robustus has joined #ruby
framling has quit [Remote host closed the connection]
<Eiam> memory_usage = `ps -o rss= -p #{Process.pid}`.to_i
<Eiam> ?
havenwood has joined #ruby
gwb3 has joined #ruby
<platzhirsch> that works, too :)
<platzhirsch> but the number is a bit too few information, I mean I know through htop that the allocated memory is rising ..
mrsolo has joined #ruby
<Eiam> I'm still in shock that ruby-prof cannot track this leak down for you
<platzhirsch> it can, but I need to patch the interpreter
mihirrege has quit [Ping timeout: 240 seconds]
<platzhirsch> it adds stats to GC
<|jemc|> platzhirsch: out of my personal curiosity, is this pure ruby code or do you have c extensions?
Boohbah has quit [Ping timeout: 240 seconds]
<platzhirsch> |jemc|: pure ruby code
OneMT has quit [Quit: OneMT]
<platzhirsch> Eiam: ah I came over this, too. It looks nice, but needs to patch Ruby, too. This is inevitable
timonv has joined #ruby
danshultz has quit [Remote host closed the connection]
Boohbah has joined #ruby
ziyadb has joined #ruby
<platzhirsch> It's really a shame this patch ticket is from 2007, come on Matz
<|jemc|> well, it's good to know I should be watching for memory leaks in my pure ruby code
mihirrege has joined #ruby
gwb3 has quit [Remote host closed the connection]
<platzhirsch> It's only a problem because I run mine on 1 GB RAM machine, I am writing a lot of data gzipped compressed to a file, but only stream based and I don't know why it stacks up
<|jemc|> well, I run ruby code on arm boards, so memory is a concern there too
banisterfiend has joined #ruby
<platzhirsch> cool!
radpanda has quit [Changing host]
radpanda has joined #ruby
quoin has joined #ruby
<platzhirsch> or I run my code on JRuby, I am fond of JVM profiling :P
T_T has joined #ruby
DandyPandy has left #ruby ["Bye"]
peregrine81 has joined #ruby
ahawkins has joined #ruby
<platzhirsch> there is also ObjectSpace.count_objects, that's a nice start until I find a "Patch your Ruby interpreter" for sillies
awkisopen has quit [Quit: ZNC - http://znc.in]
mihirrege has quit [Ping timeout: 240 seconds]
<|jemc|> might also try it on 2.1 preview to see if the issue was resolved when garbage collection got overhauled
bobdobbs` has joined #ruby
<|jemc|> s/might/you might
<platzhirsch> mh
awkisopen has joined #ruby
<MrHacks> `to_coord': undefined method `[]' for 0.0:Float (NoMethodError)
<platzhirsch> It would be horribel if this is not my fault
mrsolo has quit [Quit: This computer has gone to sleep]
quoin has quit [Ping timeout: 264 seconds]
<|jemc|> yeah
Jdubs_ has joined #ruby
<MrHacks> def self.to_coord(str) return (( str[-1] =~ /[SW]/ ) ? -1 : 1 ) * str.chop.to_f end
<|jemc|> but it might save you time
bobdobbs has quit [Remote host closed the connection]
<MrHacks> It works fine everywhere else
gwb3 has joined #ruby
cody-- has quit [Quit: derp]
obs has joined #ruby
einarj has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
<|jemc|> MrHacks: obviously you're passing a float object into that method somewhere
<|jemc|> by mistake
pontiki has left #ruby [""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson"]
<|jemc|> so the problem is in the calling code and not the method itself
Jdubs has quit [Ping timeout: 248 seconds]
havenwood has quit [Read error: Connection reset by peer]
<gf3> lol rubby
<breakingthings> r00by
kvirani has joined #ruby
havenwood has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
<banisterfiend> MrHacks you might like pry-rescue (& pry-stack_explorer) for this, it drops you into the exception context and you can 'up' through stack frames and locate the bug and fix it in place
raphaelivan has quit [Quit: Leaving.]
biomass has joined #ruby
<platzhirsch> Oh, maybe it's simply because I am opening the stream, then I write 350 MB compressed data to it, and do not close before everything is there, I guess it just all gets buffered up in the RAM
<platzhirsch> a little flush here and then, or... ALWAYS jesus christ
<|jemc|> ha
<|jemc|> well I hope that does it for you
burlyscudd1 has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
Kricir has quit [Remote host closed the connection]
<platzhirsch> RVM is really sweet, you can apply a --patch parameter to rvm install which points to a .patch file or GitHub URL
dodosan has quit [Remote host closed the connection]
flagg0204 has quit [Ping timeout: 260 seconds]
<|jemc|> for patching the MRI?
<|jemc|> or patching gems?
flagg0204 has joined #ruby
<banisterfiend> MRI
<platzhirsch> yes, the MRI
<banisterfiend> |jemc| i don't like you inserting the definite article there!!
<banisterfiend> :)
<|jemc|> haha
<|jemc|> my bad
<platzhirsch> Is there an alternative to MRI?
<banisterfiend> platzhirsch lots
krawchyk has quit [Remote host closed the connection]
* platzhirsch hides
ephemerian has joined #ruby
<banisterfiend> platzhirsch jruby is the main one
<banisterfiend> but there's rubinius, topaz, and a few others
<platzhirsch> I don't want to give my Ruby code the power of the JVM,
<biomass> should casecmp match é with É as true ?
chrstphrhrt has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
chrstphrhrt has left #ruby [#ruby]
evenix has quit [Remote host closed the connection]
Zai00 has joined #ruby
Stalkr_ has joined #ruby
timonv has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
jezen has quit [Remote host closed the connection]
<apeiros> biomass: sadly no
sectionme has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
<apeiros> ruby has no proper collations and casemaps
<banisterfiend> platzhirsch also, RubyMotion (but that's not really an alternative)
tjbiddle has joined #ruby
BraddBitt has quit [Read error: Connection reset by peer]
<biomass> apeiros: ok =/ then I would need to set up my own translation to do "safe" matching ?
BraddBitt has joined #ruby
<platzhirsch> after looking at the alternatives I think JRuby and JVM profiling is the best choice if you run into serious problems
Zai00 has quit [Client Quit]
<apeiros> biomass: or use a gem
vlad_starkov has joined #ruby
sectionme has quit [Read error: Operation timed out]
<apeiros> activesupport's mb_char can do it I think, also some unicode gems
timonv has quit [Remote host closed the connection]
endash has quit [Quit: endash]
<banisterfiend> platzhirsch yeah a lot of people i know use jruby, it's just a pain when doing certain things (like shelling out)
AdmiraI has quit [Remote host closed the connection]
bluehavana has quit [Ping timeout: 260 seconds]
<platzhirsch> Okay, what is shelling out? I heard this now the second time. Communicating to the system? Like OS calls? exec..
<biomass> apeiros: right, I'll start serching =)
AdmiraI has joined #ruby
<apeiros> platzhirsch: invoke a subshell and execute commands there
AdmiraI has left #ruby [#ruby]
rtl_ is now known as rtl
<platzhirsch> why should that be a problem with JRuby?
<apeiros> files = `ls -la` # poor man's Dir
<scottstamp> Anyone here familiar with Sequel? I'm having an issue getting the related rows of one of my Models when doing ModelName.filter. https://github.com/scottstamp/historian/blob/master/cache.rb
<scottstamp> mix.tracks is never defined.
vlad_sta_ has joined #ruby
emptymag00 has joined #ruby
<scottstamp> But if you look at https://github.com/scottstamp/historian/blob/master/models.rb you can see they're many_to_many related.
vlad_sta_ has quit [Remote host closed the connection]
iliketurtles has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
iamjarvo has joined #ruby
nouitfvf has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
BraddBitt has quit [Read error: Connection reset by peer]
apfelbox has joined #ruby
BraddBitt has joined #ruby
threesome has joined #ruby
codecop has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 260 seconds]
<platzhirsch> |jemc|: It looks good, the Linux OOM Score does not go much over 320, so it seems the memory consumption has levelled off :D
pushpak has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 264 seconds]
aryaching has quit [Ping timeout: 248 seconds]
nemesit|znc has quit [Ping timeout: 245 seconds]
DrCode has joined #ruby
apfelbox has quit [Ping timeout: 260 seconds]
<|jemc|> nice
alx- has quit [Quit: Leaving...]
axeman- has quit [Remote host closed the connection]
<biomass> apeiros: thanks, found the unicode gem which seems to do the trick. I found this amuzing however https://gist.github.com/javian/6676521 =)
nemesit|znc has joined #ruby
Boohbah has quit [Ping timeout: 240 seconds]
atno has quit [Remote host closed the connection]
Boohbah has joined #ruby
apeiros has joined #ruby
Suit_Of_Sables has quit [Quit: WeeChat 0.4.0]
coderhs has joined #ruby
beilabs_ has quit [Ping timeout: 276 seconds]
diegoviola has quit [Ping timeout: 248 seconds]
cody-- has joined #ruby
leehambley has quit [Ping timeout: 256 seconds]
mark_locklear has joined #ruby
inimit has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
<|jemc|> platzhirsch: so, you're just flushing more often now?
tatsuya_o has joined #ruby
<soberano> hello
<platzhirsch> |jemc|: :P
leehambley has joined #ruby
<platzhirsch> after every write, that's maybe too much, but I was too lazy to make this depend on other variables
<soberano> if i want obtain last id of media recent search of instagram
<soberano> how can i obtain it?
endash has joined #ruby
<platzhirsch> I mean it still increases somehow, which I don't quite get, but not very extensively
blandflakes has joined #ruby
Kricir has joined #ruby
inimit has joined #ruby
<platzhirsch> Just seems it does not deallocate allocated memory, greedy MRI
kazuuu has joined #ruby
Seich has joined #ruby
pellenation has quit [Quit: Leaving.]
alex__c2022 has quit [Quit: alex__c2022]
leehambley has quit [Ping timeout: 260 seconds]
RDash is now known as RDash[AW]
johnjohnson has joined #ruby
nyuszika7h has joined #ruby
leehambley has joined #ruby
<nyuszika7h> hi, any idea why RubyMine is telling me "No such file to load" on `require 'socket'`?
clov3r has quit [Ping timeout: 248 seconds]
phantasm66 has quit [Quit: *sleeeep….]
<nyuszika7h> I've installed Ruby 2.0.0 via RubyInstaller for Windows
BraddBitt has quit [Read error: Connection reset by peer]
beilabs_ has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
endash has quit [Quit: endash]
geekbri has quit [Remote host closed the connection]
BraddBitt has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rgbdev has joined #ruby
clov3r has joined #ruby
ner0x has quit [Quit: Leaving]
siwica has joined #ruby
KobraKao has joined #ruby
<biomass> Why does this if statement fail ? https://gist.github.com/javian/bc84e423342d0d6ea3f0
<bnagy> yawn.
pkrnj has joined #ruby
<bnagy> nyuszika7h: try it in a command prompt from irb
<bnagy> rubymine may just be retarded
sambao21 has joined #ruby
<nyuszika7h> oh, it seems my Ruby installation has magically vanished
<canton7> biomass, check what it returns
roadt has quit [Ping timeout: 260 seconds]
<canton7> remember that only nil and false are falsy
<bnagy> looking at the source I bet it returns a numeric
* nyuszika7h does cinst ruby
<bnagy> which is pretty lame, so try checking for -1, as canton7 said
KobraKao has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
havenwood has joined #ruby
burlyscudd has joined #ruby
<bnagy> I guess you probably want nonzero, depending on your libc.. that's what my (osx) one says anyways
quoin has joined #ruby
<bnagy> as in zero matches, nothing else does
AndChat| has quit [Ping timeout: 264 seconds]
chee has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
<chee> what it is
<chee> so i have a weird thing
dankest has quit [Quit: Peace]
phantasm66 has joined #ruby
headius has joined #ruby
<chee> if i have a Rakefile that does nothing but print $0
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
<chee> task :default do\n\tp $0\nend
<biomass> canton7: hmm nil and false ok that would not be what I want =)
<chee> when i run it i see
<chee> "ruby /Users/chee/.rvm/gems/ruby-1.9.3-p448@global/bin/rake"
Bira has quit [Remote host closed the connection]
<chee> why is it being prefixed with ruby like that? it's causing me some bugz
<chee> it doesn't happen if i do it on my other machine
<MrHacks> exit
MrHacks has quit [Quit: leaving]
sailias has quit [Quit: Leaving.]
nemesit|znc has quit [Ping timeout: 245 seconds]
fridim__ has joined #ruby
shaunbaker has joined #ruby
tylersmith has joined #ruby
a1ph4g33k has joined #ruby
phantasm66 has quit [Client Quit]
quoin has quit [Ping timeout: 264 seconds]
kaldrenon has quit [Remote host closed the connection]
<chee> if i have a task called :rake that prints $0, i get "ruby /Users/chee/.rvm/gems/ruby-1.9.3-p448@global/bin/rake rake" when i run it
<chee> any ideas?
<biomass> so it returns 49
Guest96313 is now known as Amnesia
<nyuszika7h> what is this warning?
<nyuszika7h> PS C:\Users\nyuszika7h> irb
<nyuszika7h> DL is deprecated, please use Fiddle
<nyuszika7h> irb(main):001:0>
kaldrenon has joined #ruby
Evixion has joined #ruby
Amnesia is now known as Guest52560
alex__c2022 has joined #ruby
nemesit|znc has joined #ruby
<a1ph4g33k> nyuszika7h, I expect you have an .irbrc file that is using a library called DL.
<bnagy> nyuszika7h: DL is an old and crap way of wrapping libraries
Advocation has joined #ruby
<bnagy> fiddle is a new and shit way
<biomass> canton7: I think that was the piece missing in my head, still new to this =) I'll work around it thanks!
<nyuszika7h> can't see an .irbrc in C:\Users\nyuszika7h
Bira has joined #ruby
tgf46 has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
lethjakm1 is now known as lethjakman
<a1ph4g33k> I dont remember the file naming convention under Windows.
<tgf46> anyone have issues installing couchbase gem. I have libcouchbase installed on Centos, but ruby just can't manage to find it
<bnagy> tgf46: probably just path insanity of some kind
lowcard has quit [Ping timeout: 276 seconds]
<bnagy> centos is a fricking abortion
<a1ph4g33k> file name should still be .irbrc
biomass has quit []
<tgf46> Don't knock ole cents, its nice and stable
<bnagy> you should be able to look at the gem and find how it's trying to load the lib, and just compare paths from there
OneMT has joined #ruby
<bnagy> I will absolutely knock it, it is a clone of a pile of crap
mrsolo has joined #ruby
tylersmi_ has joined #ruby
amacgregor has joined #ruby
mikee_ has joined #ruby
kaldrenon has quit [Ping timeout: 264 seconds]
<tgf46> yawn
dodosan has joined #ruby
<bnagy> how did you install ruby?
<tgf46> rvm
tylersmith has quit [Read error: Connection reset by peer]
apeiros has quit [Read error: Connection reset by peer]
<bnagy> hm. :/ that _should_ have worked out lib paths
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<bnagy> can you check ENV['PATH'] in irb and make sure the location of the actual lib is present?
mrsolo has quit [Client Quit]
<tgf46> yeah, being a pain
breakingthings has quit []
mikee_ has quit [Ping timeout: 246 seconds]
ldnunes has quit [Quit: Leaving]
Banistergalaxy has joined #ruby
<a1ph4g33k> nyuszika7h, try starting irb with -d
mark_locklear has quit [Ping timeout: 264 seconds]
shaunbaker has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
Uranio has quit [Quit: while you reading this, a kitty dies]
elux has quit [Quit: Bye!]
shaunbaker has joined #ruby
einarj has joined #ruby
<a1ph4g33k> or more easily ... you can ensure no .irbrc processing through irb -f
<nyuszika7h> still getting the error
<a1ph4g33k> yeah ... what is your ruby version & your irb version ?
kaspergrubbe has joined #ruby
a1ph4g33k has left #ruby ["Leaving"]
a1ph4g33k has joined #ruby
<a1ph4g33k> ... and how did you install ruby ?
staafl has joined #ruby
diegoviola has joined #ruby
<shevy> use the source folks
<shevy> wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0-preview1.tar.bz2
Evixion has quit []
workmad3 has joined #ruby
einarj has quit [Ping timeout: 248 seconds]
alx- has joined #ruby
danman has quit [Quit: danman]
mrsolo has joined #ruby
Advocation has quit [Quit: Advocation]
smirn0v has joined #ruby
<smirn0v> Greetings! I have quite simple gem with pair of classes and one runner in "bin" folder. Should I place all classes in module ? Are there any guidelines/best practices about that ?
mrsolo has quit [Client Quit]
<|jemc|> smirn0v: yes, please do
<|jemc|> put it in a module with the name of your gem
mengu has joined #ruby
<shevy> smirn0v there are not guidelines, but putting something into a module gives you some advantages, and only few disadvantages
Atrophius has joined #ruby
Atrophius has quit [Client Quit]
<shevy> if you have: def foo; end, and lateron def foo; end again, you will overwrite the earlier defined foo(), unless you have them reside in separate module
freerobby has quit [Quit: Leaving.]
<shevy> module X; def foo; end; end; module Y; def foo; end; end
<platzhirsch> You can still run GC.start explicitly with Ruby 2.0? I thought they turned that off
<smirn0v> |jemc|: one question. The name of the gem is 'autotarget', name of one of the classes the same… and… wouldn't that be strange to have Autotarget::Autotarget ? ) Or should I think about names again ? )
claymore has quit [Quit: Leaving]
<|jemc|> smirn0v: if a user wants your classes accessible from the toplevel for convenience, they can always do 'include MyLibrary' after 'require 'mylibrary''
interactionjaxsn has quit [Remote host closed the connection]
<|jemc|> oh
<smirn0v> |jemc|: understood, I will definitely place it into module.
<|jemc|> in that case
<shevy> hehe
<shevy> imagine if ruby would have
<shevy> Array::Array.new
<shevy> Hash::Hash.new
<|jemc|> you could define your other class 'inside' of the first
<smirn0v> shevy: yep… weird...
<|jemc|> so someone can use AutoTarget or AutoTarget::Helper
<bnagy> |jemc|: I never include foreign code
<|jemc|> this is all subjective based on what your gem actually does, but in general it is courteous to your end user to take steps to avoid name collisions
<shevy> |jemc| is a wise man
<bnagy> so you can assume that I'm going to be typing YourModuleName::YourClass every darn time :P
<shevy> include Bnagy
mrsolo has joined #ruby
flanged43 has quit [Ping timeout: 240 seconds]
<shevy> hmmm
apeiros has quit [Remote host closed the connection]
<|jemc|> bnagy: you could also do: ConvenientName = YourModuleName::YourClass
cody-- has quit [Quit: derp]
<shevy> exclude Bnagy
<smirn0v> |jemc|: I think the second class can be named just 'DSL', so no name duplication will be presented ) Ok, guys, thank you very much. Got the general idea )
<shevy> why don't we have an exclude functionality? aka revert an earlier include event
apfelbox has joined #ruby
<shevy> hanmac tell me
<|jemc|> sounds sort of like refinements
<|jemc|> but not quite
<shevy> hehe
<shevy> refinements are like an extension to "monkey" patching?
<bnagy> |jemc|: if the namespace is that simple it doesn't really need to be put in a module, does it :)
paulodiniz has joined #ruby
<shevy> oh no!
<shevy> a module it must be!
<bnagy> anyways my 0.02 is for two classes I wouldn't bother, unless there is a chance your classnames might collide
flanged43 has joined #ruby
<shevy> I used to have a file called "custom_methods.rb"
<shevy> it grew to +3000 lines... I eventually put it into its own module namespace
<bnagy> but I do not have a strong opinion about my view being objectively correct
<bnagy> (in this instance ;)
<shevy> well actually
<shevy> if it's a small file... then yeah... probably not needed to be in a module
<shevy> so strangely enough, I find myself in agreement with bnagy after at first disagreeing.... hmmmm
i_s has joined #ruby
Stalkr^ has joined #ruby
tyoc213 has joined #ruby
Atrophius has joined #ruby
apfelbox has quit [Ping timeout: 264 seconds]
carlyle has quit [Remote host closed the connection]
<Hanmac> shevy i think the problem is when you have module included in module included into class, its not so easy possible to remove it again from the chain
<shevy> hmm
mlpinit_ has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
beilabs_ has quit [Ping timeout: 245 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
devoldmx has joined #ruby
pwh has joined #ruby
mmitchell has quit [Read error: Operation timed out]
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
<tyoc213> Is there, Im using if thing.instance_of? SomeClass but running my test after this, I notice they run a little slower than if I dont do it
yfeldblum has quit [Ping timeout: 260 seconds]
<tyoc213> Im only trying to see if it is another thing than a Fixnum
kvirani has quit [Read error: Connection reset by peer]
pwh has quit [Client Quit]
<bnagy> in general, we frown on this and prefer duck typing
kvirani has joined #ruby
loss has quit [Quit: Leaving]
<bnagy> as in you should react to how the target object behaves ( respond_to? ) not to what class it is
<bnagy> cause people subclass etc all the time
Banistergalaxy has quit [Ping timeout: 240 seconds]
Nenor has quit [Quit: Nenor]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
luckyruby has quit [Read error: Connection reset by peer]
luckyruby has joined #ruby
yfeldblum has joined #ruby
headius has quit [Quit: headius]
AFKGeek has joined #ruby
aspiers has quit [Ping timeout: 264 seconds]
splittingred has quit [Ping timeout: 264 seconds]
AFKGeek has quit [Client Quit]
AFKGeek has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
failshell has quit [Remote host closed the connection]
paulodiniz has quit [Ping timeout: 264 seconds]
Bira has quit [Remote host closed the connection]
<|jemc|> other thing you can do is just try to do what you want to do with it and catch the exception (begin/rescue)
headius has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
headius has quit [Client Quit]
Trudko_ has joined #ruby
<tyoc213> perhaps I will end just writing another set of functions...
<tyoc213> and rewrite some paths (I think not much work)
h4mz1d has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
cody-- has joined #ruby
Atrophius has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Trudko has quit [Ping timeout: 276 seconds]
banghouse2 has quit [Remote host closed the connection]
aspiers has joined #ruby
Trudko has joined #ruby
yfeldblum has joined #ruby
snovak has quit [Remote host closed the connection]
Trudko has quit [Client Quit]
bugsinlights has quit [Ping timeout: 264 seconds]
vlad_sta_ has quit [Ping timeout: 264 seconds]
sailias has joined #ruby
Trudko_ has quit [Ping timeout: 245 seconds]
jlast has quit [Remote host closed the connection]
lukec has joined #ruby
BillCriswell has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
quoin has joined #ruby
vlad_starkov has joined #ruby
cj3kim_ has joined #ruby
KobraKao has joined #ruby
blandflakes has quit [Quit: Page closed]
rhys has quit [Quit: Leaving]
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaynewst_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 245 seconds]
peregrine81 has quit []
vim_shim_ has quit [Ping timeout: 240 seconds]
<shevy> oh
apeiros has joined #ruby
<shevy> .is_a? won't work on subclasses?
devoldmx has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
jibi has quit [Quit: .]
sniffingcats has quit [Quit: Til rivido Idisti!]
mklappstuhl has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
<bnagy> kind_of? will, but it's still wrong because of mixins
cody-- has quit [Quit: derp]
bean has quit [Quit: Computer has gone to sleep.]
<shevy> ah... is_a? will also honour family relation
<bnagy> guess is_a? is the same
petey has quit [Remote host closed the connection]
sloucher has quit [Quit: sloucher]
<bnagy> hm.. actually that works with mixins as well :)
<bnagy> guess it just searches ancestors?
<bnagy> but it's still WRONG :)
axl_ has quit [Quit: axl_]
<shevy> hmm
<shevy> someone shocked me when he wrote that one can define initialize in a module and have @ivars inside there
forced_request has joined #ruby
Kricir has joined #ruby
jdenen has quit [Read error: Connection reset by peer]
<shevy> a module is almost like a full class!
<shevy> hanmac, shall I open an issue on the bugtracker and ask for .new to be added for modules? :)
icco has left #ruby ["Textual IRC Client: www.textualapp.com"]
sailias has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
ohcibi has quit [Ping timeout: 246 seconds]
<bnagy> shevy: doesn't that just override initialize in the class you include it into?
ehaliewicz has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
tylersmi_ has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beilabs has joined #ruby
AFKGeek has quit [Quit: Leaving]
jsaak has quit [Ping timeout: 268 seconds]
<a1ph4g33k> you can make instances of a class that don't adhere to the type ... so you should rely on type.
<workmad3> bnagy: no
<a1ph4g33k> ... respond_to? is more idiomatic to ruby.
<workmad3> bnagy: other way around... if you include that module into a class that defines its own initialize method, then the class's initialize takes precedence (standard method lookup)
ehaliewicz has quit [Remote host closed the connection]
tgf46 has quit [Quit: tgf46]
<bnagy> ok.. so when would a module initialize ever be invoked?
<workmad3> when you include it into a class that doesn't have its own initialize
<bnagy> (too lazy to irb)
danman has joined #ruby
<a1ph4g33k> doesn't include inject the module into the lookup BEFORE the original type ?
ohcibi has joined #ruby
ehaliewicz has joined #ruby
<workmad3> at which point it'll be invoked on behalf of the class, not of the module
m8 has quit [Quit: Sto andando via]
<workmad3> or if you call 'super' inside the initialize of your class's initialize method
evenix has joined #ruby
<shevy> bnagy I am still not sure how it works, I was just very surprised that one could define @ivars in a module, and then use them in a class
anoNxeRo has joined #ruby
<shevy> it felt like subclassing in a way
<workmad3> shevy: the mechanics are pretty much the same
<a1ph4g33k> nope, I was wrong.
<workmad3> shevy: it's just the conceptual model that's different
<a1ph4g33k> >> module Foo ; end ; class Bar ; include Foo ; end ; Foo.ancestors
<eval-in> a1ph4g33k => [Foo] (https://eval.in/50234)
<workmad3> shevy: next you'll be expressing amazment that when you subclass, ivars that you define in the superclass end up defined in the instance of the subclass ;)
bluehavana has joined #ruby
<a1ph4g33k> >> module Foo ; end ; class Bar ; include Foo ; end ; a = Foo.new ; a.class.ancestors
<eval-in> a1ph4g33k => undefined method `new' for Foo:Module (NoMethodError) ... (https://eval.in/50235)
cj3kim_ has quit [Remote host closed the connection]
kazuuu has quit [Remote host closed the connection]
<czhang_temp> and after that, you can express amazement that if you mutate a class var in a subclass, it modifies the class var in your superclass :V
<workmad3> a1ph4g33k: I think you want to do Bar.new and Bar.ancestors ;)
agent_white has joined #ruby
<a1ph4g33k> >> module Foo ; end ; class Bar ; include Foo ; def initialize ; end ; end ; a = Foo.new ; a.class.ancestors
<eval-in> a1ph4g33k => undefined method `new' for Foo:Module (NoMethodError) ... (https://eval.in/50236)
<a1ph4g33k> >> module Foo ; end ; class Bar ; include Foo ; def initialize ; end ; end ; a = Bar.new ; a.class.ancestors
<eval-in> a1ph4g33k => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/50237)
ehaliewicz has quit [Remote host closed the connection]
<a1ph4g33k> there ... that's what I wanted.
<a1ph4g33k> class ... module ... boilerplate.
cj3kim_ has joined #ruby
<shevy> workmad3 nah, that makes perfect sense, I just dont understand why modules can be used like a class
<workmad3> shevy: they can't be 'used like a class'
<shevy> I mean, can't be
<shevy> yeah
<workmad3> shevy: because they aren't classes
<shevy> !!!
danman has quit [Client Quit]
sterNiX has quit [Ping timeout: 264 seconds]
evenix has quit [Ping timeout: 260 seconds]
<bnagy> >> Module.class
<eval-in> bnagy => Class (https://eval.in/50240)
Seich has quit [Ping timeout: 245 seconds]
obs has quit [Quit: Konversation terminated!]
<workmad3> bnagy: modules are instances of that class though
<bnagy> I'm just bein a dick :)
<terrellt> ^ This is when ruby starts to screw with your head.
<workmad3> :)
<bnagy> actually Classes are really Modules
<a1ph4g33k> workmad3, module constants are instances of Class ... but can't be instantiated.
<bnagy> with special stuff that lets them be instantiated
<workmad3> a1ph4g33k: no, module constants are instances of Module
<a1ph4g33k> ... that's what I meant ... my bad.
<a1ph4g33k> modules can't be instantiated.
<shevy> hehe
wmoxam has quit [Ping timeout: 260 seconds]
<a1ph4g33k> but ... the can be added to the method lookup hierarchy ...
ehaliewicz has joined #ruby
<workmad3> >> module Foo; end; Foo.is_a? Class
<eval-in> workmad3 => false (https://eval.in/50241)
<a1ph4g33k> that doesn't change the target of a given method invocation ... it's still the object way back at the bottom ( start ) of the lookup tree.
m00nlight has joined #ruby
<a1ph4g33k> >> module Foo ; end ; Foo.class
<eval-in> a1ph4g33k => Module (https://eval.in/50242)
<a1ph4g33k> >> module Foo ; end ; Foo.class ; Module.class
<eval-in> a1ph4g33k => Class (https://eval.in/50243)
Seich has joined #ruby
<workmad3> yes, a module can be thrown into the method lookup, that's kinda the point of them... some small 'module' of functionality that doesn't make sense on its own, it only makes sense in a larger context
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> you don't go around creating instances of Comparable... you go around making instances of Foo, which happens to be Comparable
blitz has joined #ruby
<workmad3> and by making it Comparable, you're stating certain characteristics and behaviours that it conforms to
<blitz> is #rails the preferred rails channel?
<bnagy> anyway out of all of this TIL the super in initialize looks up modules as well
<workmad3> blitz: no, #rubyonrails
<blitz> thanks
<bnagy> which I guess I kind of already knew, but never thought of a pattern for
cj3kim_ has quit [Remote host closed the connection]
<bnagy> I suspect it's bad and wrong though
m00nlight has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
<workmad3> bnagy: it's not too bad, as long as you do 'super if defined?(super)' within that initialize
<a1ph4g33k> workmad3, "and by making it Comparable" ... no you aren't ... you are asking for the given class to "by default" include a specific set of functionality. But, because Ruby allows objects to be re-opened and methods added, replaced, & removed ... you really haven't stated anything of the kind.
bugsinlights has joined #ruby
<a1ph4g33k> ... just stating ... as given in a gist just a few minutes ago ... you can easily define an instance of a class that doesn't support the expected interface any more.
<workmad3> bnagy: as it gives you a place to set up stuff you need for a module's functionality on instanciation
apfelbox has joined #ruby
AFKGeek has joined #ruby
<a1ph4g33k> it will still say "I am Foo ( or Comparable )" ... but not be.
flanged43 has quit [Quit: flanged43]
<workmad3> a1ph4g33k: you can... you shouldn't, but you can :)
rgbdev has quit [Quit: rgbdev]
ehaliewicz has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
<a1ph4g33k> It's because of the "can" that people tend to use respond_to? ... it doesn't matter what the object is an instance of ... if you can find the methods you expect ... you are close enough.
<workmad3> a1ph4g33k: tbh, I personally do the 'leap, don't look' style rather than respond_to?
<a1ph4g33k> plus you find all sorts of interesting uses by allowing this freedom that you never expected when you wrote function libraries.
<a1ph4g33k> appending to strings via << ... also works for files, or arrays ...
pantaloon has joined #ruby
<a1ph4g33k> and as long as it does something with it, it isn't your place to care what that is.
<workmad3> a1ph4g33k: the use of modules is more of a statement to the coder that you're making this thing Comparable explicitly, because you want those things that Comparable means
<pantaloon> hi
anonymuse has quit [Remote host closed the connection]
<a1ph4g33k> but notice that the code that uses the Comparable interface doesn't check for it ...
<a1ph4g33k> as long as you provide the appropriate methods ... it doesn't care.
<workmad3> no
<workmad3> it doesn't care
ssvo has quit [Ping timeout: 248 seconds]
<workmad3> code rarely cares about that sort of trivia
anthracocide61 has joined #ruby
mary5030 has quit [Remote host closed the connection]
apfelbox has quit [Ping timeout: 264 seconds]
Jdubs has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
<workmad3> but if I'm looking at a library or inspecting a class in IRB, and *I* notice 'Comparable' or the <=> operator, I'll make certain assumptions about possible uses
<workmad3> such as being able to .sort an array of these things
ehaliewicz has quit [Remote host closed the connection]
<a1ph4g33k> =) I understand, I'm just saying that I do that with <=> ... I don't do that with "Comparable".
ehaliewicz has joined #ruby
<a1ph4g33k> <=> is comparison, that's all I care about.
AFKGeek has quit [Quit: Leaving]
mercwithamouth has joined #ruby
crus` has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
<workmad3> a1ph4g33k: if Comparable is there in the docs, I'll also know that I can do <, <=, >, >=, etc on it (as that's what Comparable pulls in with it)
baroquebobcat has quit [Quit: baroquebobcat]
<workmad3> a1ph4g33k: and if I want to provide those, chances are I'll start by providing a <=> and including Comparable, rather than implementing them all by hand (I might replace them later because there are better implementations for them in a specific case)
baroquebobcat has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
lowcard has joined #ruby
<a1ph4g33k> workmad3, ok ... I'm simply saying, that not only things that have Comparable are. And you limit yourself ( and people that use your code ) when you think that you have to tie yourself to an interface like that.
Jdubs has joined #ruby
<workmad3> a1ph4g33k: I don't think I *have* to tie myself to an interface
ghost2060 has joined #ruby
<workmad3> a1ph4g33k: but when I *do* have that interface, I find it useful to document it as such
blitz has left #ruby ["Leaving"]
<a1ph4g33k> we are talking about different things ... I'm not talking about documentation, I'm talking about usage.
<workmad3> a1ph4g33k: you're thinking I do this pre-facto as a "I want this thing, and it will be Comparable, and it will be Enumerable, and it will only be usable as an X'
<a1ph4g33k> having stuff in your code that checks to see if the thing passed in is an object with Comparable in its ancestry ... is all that I'm rallying against.
SloggerKhan has joined #ruby
yfeldblum has joined #ruby
RORgasm has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
<workmad3> a1ph4g33k: whereas I do it more post-facto, I'll write something, and then go 'oh, this looks similar to that, they both seem to have a similar interface... lets pull that out'
<pantaloon> hmm $stdin.read(18) whait if 18 bytes have reached when -icanon -echo
<workmad3> a1ph4g33k: I already said I don't check ancestry
RORgasm has joined #ruby
<workmad3> a1ph4g33k: I don't even check respond_to? most of the time... I leap before I look :)
<pantaloon> need a break after any key has pressed
petey has joined #ruby
andredieb has joined #ruby
<a1ph4g33k> workmad3, then I may have mixed you up with another individual that was in the channel wanting to do kind_of? checks
pkrnj has quit [Quit: Computer has gone to sleep.]
<workmad3> a1ph4g33k: indeed
<a1ph4g33k> workmad3, ... sorry for the noise if I did.
<workmad3> a1ph4g33k: I got that out of my system when I first tried python ;)
<a1ph4g33k> workmad3, ah, that was shevy.
lowcard is now known as fourqq
<workmad3> a1ph4g33k: I was the one explaining what (I think) modules are there for :)
<a1ph4g33k> workmad3, yep, ... feeling foolish.
pwh has joined #ruby
<workmad3> a1ph4g33k: nah, it was a good counter-point argument that made me express my thoughts slightly differently to usual :)
<SloggerKhan> Stupid question - I have a class containing an array... is there a way to set it up so that I can use += to add to the array in chunks rather than just + ?
<SloggerKhan> I tried doing:
<SloggerKhan> @set.push(*thing)
<SloggerKhan> def + (thing)
<SloggerKhan> end
<SloggerKhan> Which works fine for + thing, but not += thing...
<SloggerKhan> Obv. behavior of just + is fine, but it doesn't really represent what's happening as nicely as += would.
<workmad3> SloggerKhan: gist.github.com
thinkclay has joined #ruby
<workmad3> SloggerKhan: don't paste code in-chan
siwica has quit [Ping timeout: 246 seconds]
<havenwood> pantaloon: require 'io/console'; char = STDIN.getch
ewnd9 has joined #ruby
colonolGron has quit [Ping timeout: 248 seconds]
cody-- has joined #ruby
emergion has joined #ruby
<pantaloon> havenwood: can i get more than 1 byte?
mlpinit has joined #ruby
<pantaloon> havenwood: need to get escapesequences
<SloggerKhan> Stupid question - I have a class containing an array... is there a way to set it up so that I can use += to add to the array in chunks rather than just + ?
<havenwood> pantaloon: that sounds beyond getch, doesn't take params for chars or anything
workmad3 is now known as wm3|zzz
<zaltekk> SloggerKhan: define "add to the array in chunks"
<zaltekk> does #<< not meet your needs?
<pantaloon> havenwood: k i see, STDIN.getch is not equal to getch() ncurses ansi c
<SloggerKhan> += [1,2,3], for example.
gazarsgo has quit [Ping timeout: 245 seconds]
<SloggerKhan> Where I'm working with a class rather than an array
<a1ph4g33k> SloggerKhan, you can define your own def +=( *values ) method ... and delegate the input to your inner array.
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vim_shim has joined #ruby
<pantaloon> havenwood: thx i play a bit with it
<SloggerKhan> I tried that but it seems to want to only define the + and not the +=.
<zaltekk> SloggerKhan: not sure what you expect, but << will add the array as an element, and + will add the array's content as individual elements
<zaltekk> platzhirsch: you define +, not +=
<zaltekk> err, SloggerKhan*
<zaltekk> += is implemented in terms of +
<a1ph4g33k> >> class Foo ; def initialize ; @inner_array = [] ; end ; def method_missing( name, *args, &block ) ; @inner_array.send( name, *args, &block ) ; end ; end ; a = Foo.new ; a += [ 1. 2. 3 ] ;
<eval-in> a1ph4g33k => /tmp/execpad-100d69d05d82/source-100d69d05d82:2: syntax error, unexpected tINTEGER, expecting '(' ... (https://eval.in/50244)
<a1ph4g33k> >> class Foo ; def initialize ; @inner_array = [] ; end ; def method_missing( name, *args, &block ) ; @inner_array.send( name, *args, &block ) ; end ; end ; a = Foo.new ; a += [ 1, 2, 3 ] ;
<eval-in> a1ph4g33k => [1, 2, 3] (https://eval.in/50245)
danman has joined #ruby
mlpinit has quit [Ping timeout: 264 seconds]
<a1ph4g33k> >> class Foo ; def initialize ; @inner_array = [] ; end ; def method_missing( name, *args, &block ) ; @inner_array.send( name, *args, &block ) ; end ; end ; a = Foo.new ; a += [ 1, 2, 3 ] ; a += [ 4, 5, 6 ]
<eval-in> a1ph4g33k => [1, 2, 3, 4, 5, 6] (https://eval.in/50246)
<a1ph4g33k> ( if you like the method_missing to catch everything you can ... or you can just define the few you want ... like += or << ( which are the same method ) )
<bnagy> just expose the array from the class
thinkclay1 has joined #ruby
thinkclay has quit [Read error: Connection reset by peer]
sepp2k1 has joined #ruby
<bnagy> or, if you don't want to, use += in your API
<a1ph4g33k> >> class Foo ; def initialize ; @inner_array = [] ; end ; def +=( *values ) ; @inner_array += *values ; end alias :+= :<< ; end ; a = Foo.new ; a += [ 1, 2, 3 ] ; a += [ 4, 5, 6 ]
<eval-in> a1ph4g33k => /tmp/execpad-c64da395eae7/source-c64da395eae7:2: syntax error, unexpected '=', expecting ';' or '\n' ... (https://eval.in/50247)
tatsuya_o has quit [Remote host closed the connection]
<a1ph4g33k> >> class Foo ; def initialize ; @inner_array = [] ; end ; def +=( *values ) ; @inner_array += *values ; end ; alias :+= :<< ; end ; a = Foo.new ; a += [ 1, 2, 3 ] ; a += [ 4, 5, 6 ]
<eval-in> a1ph4g33k => /tmp/execpad-4df8430b2def/source-4df8430b2def:2: syntax error, unexpected '=', expecting ';' or '\n' ... (https://eval.in/50248)
<bnagy> those method_missing tricks are vile, you should just use delegation
<a1ph4g33k> sorry folks ... I got to stop trying to edit from within my IRC client.
snovak has joined #ruby
<bnagy> even subclassing is better, and I don't like subclassing core classes like Array
<a1ph4g33k> s/I/I've/
devoldmx has quit [Ping timeout: 264 seconds]
<zaltekk> a1ph4g33k: you can't define +=
Jdubs has quit [Remote host closed the connection]
anthracocide61 has quit [Ping timeout: 245 seconds]
<zaltekk> you define +
<pantaloon> havenwood: hmm i see that i don't need set term attrib -icanon -echo when i use $stdin.getch
sepp2k has quit [Ping timeout: 264 seconds]
vim_shim has quit [Ping timeout: 246 seconds]
carlyle has joined #ruby
RichardBaker has joined #ruby
alx- has quit [Quit: Leaving...]
lsoa has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 248 seconds]
<SloggerKhan> I see, use method_missing. That makes sense. I thought maybe I was missing something about how it went from + to +=.
<SloggerKhan> @bnagy: I hadn't thought about just exposing the array because I wanted to return self.
h4mz1d has quit [Ping timeout: 264 seconds]
<SloggerKhan> It seems clear I have some options I hadn't thought about, though.
anthracocide61 has joined #ruby
nitish has joined #ruby
nitish has joined #ruby
staafl has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has quit [Ping timeout: 276 seconds]
devoldmx has joined #ruby
<zaltekk> >> class Foo; def initialize; @inner_array = []; end; def +(rvalue); @inner_array + rvalue; end; end; a = Foo.new; a += [1,2,3]; a += [4,5,6]
<bnagy> if you want something that's basically a very thin wrapper around Array with a fex extra methods then imho DelegateClass is much cleaner
<eval-in> zaltekk => [1, 2, 3, 4, 5, 6] (https://eval.in/50249)
<zaltekk> SloggerKhan: is that what you want?
threesome has quit [Ping timeout: 245 seconds]
anderSon has joined #ruby
alx- has joined #ruby
staafl has joined #ruby
<bnagy> zaltekk: that's not right
end_guy has quit [Remote host closed the connection]
einarj has joined #ruby
<bnagy> a is an Array now not a Foo
<zaltekk> lol, oops :P
jefflyne has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
<SloggerKhan> I don't want an array wrapper, I have a class that does some accumulates stuff with a non-reorderable stack, I just wanted to make it easy to add to the stack. Array is overkill and could actually cause problems. Obviously I could just make an add( method or something, but didn't expect to not be able to use +=. So asked about it.
petey has quit [Remote host closed the connection]
cody-- has quit [Quit: derp]
<zaltekk> SloggerKhan: if you implment +, you can use +=
quoin has joined #ruby
mrsolo has joined #ruby
<bnagy> ok then zaltekk's code works, just change it to @inner_array +=
pantaloon is now known as prismate
ssvo has joined #ruby
<SloggerKhan> I think using .push(*thing) might have been the problem. I'll test again with the variation.
pyoor has left #ruby [#ruby]
snovak has quit [Ping timeout: 245 seconds]
<bnagy> if you have stack semantics I would prefer an API that uses push *thing, gotta admit
Hanmac has quit [Quit: Leaving.]
<zaltekk> +/- for a stack seems misleading
robbyoconnor has quit [Ping timeout: 240 seconds]
<bnagy> >> a=[1,2,3]; [].push(*a)
<eval-in> bnagy => [1, 2, 3] (https://eval.in/50250)
alx- has quit [Quit: Linkinus - http://linkinus.com]
geggam_ has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 260 seconds]
<bnagy> you can do tricks like [*a], that will give you a flat array
<SloggerKhan> I don't exactly disagree, however for this particular class the users are more likely to be thinking in terms of set semantics like add/remove even if it has to use a stack to correctly order changes. (I'm working with an insane sftp batch command api)
mrsolo has quit [Quit: This computer has gone to sleep]
<bnagy> >> a=3; b=[1,2]; [ [*a], [*b] ]
<eval-in> bnagy => [[3], [1, 2]] (https://eval.in/50251)
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<bnagy> handy for if you want a method to be able to take a value or an array
carlyle has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 245 seconds]
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
crus has joined #ruby
vim_shim has joined #ruby
ghostjangles has joined #ruby
ahawkins has quit [Quit: leaving]
headius has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
nari has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
<a1ph4g33k> bnagy, you mean the splat operator ? not quite flattening.
pel_daniel has left #ruby [#ruby]
<bnagy> I just mean what I said, with the example I showed
<a1ph4g33k> bnagy: when used during a method invocation it expands the given array into individual parameters ... when used during declaration it takes any number of arguments and turns them into an array ...
<bnagy> thanks for the tips, keep em coming
<a1ph4g33k> >> def a( *values ) ; puts "#{ a.class } : #{ a }" ; end ; a() ; a( nil ) ; a( 1, 2, 3 ) ; a( [ 1, 2, 3 ] ) ; a( *[ 1, 2, 3 ] )
<eval-in> a1ph4g33k => stack level too deep (SystemStackError) ... (https://eval.in/50252)
<a1ph4g33k> >> def a( *values ) ; puts "#{ values.class } : #{ values }" ; end ; a() ; a( nil ) ; a( 1, 2, 3 ) ; a( [ 1, 2, 3 ] ) ; a( *[ 1, 2, 3 ] )
<eval-in> a1ph4g33k => Array : [] ... (https://eval.in/50253)
volty has joined #ruby
<SloggerKhan> For my stupid question it looks like the key is returning self. in +(rvalue)
<bnagy> oh, yeah my bad I should have mentioned that
<SloggerKhan> Otherwise the class replaces itself with an array
lethjakman has quit [Ping timeout: 245 seconds]
<SloggerKhan> Or the instance I should say
<SloggerKhan> Now that seems obvious in retrospect
<bnagy> most things are
danman has quit [Quit: danman]
nitish has quit [Remote host closed the connection]
crunch-choco has quit [Quit: leaving]
emergion has quit [Quit: Computer has gone to sleep.]
phantomcircuit has quit [Disconnected by services]
phantomcircuit has joined #ruby
SloggerKhan has quit [Quit: Leaving.]
bugsinlights has quit [Ping timeout: 264 seconds]
jefflyne has joined #ruby
gwb3 has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 248 seconds]
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
thinkclay1 has quit [Quit: Leaving.]
OneMT has joined #ruby
OneMT has quit [Quit: OneMT]
cj3kim_ has joined #ruby
fourq_ has joined #ruby
fourqq has quit [Ping timeout: 245 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 252 seconds]
zarubin has joined #ruby
apfelbox has joined #ruby
fourq__ has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
cads has quit [Ping timeout: 252 seconds]
gwb3 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> so we can do Math.sqrt 16
<shevy> but how do we pull the third squareroot of a number?
narcan has joined #ruby
<shevy> oh... the english name seems to be "cube root"
Aryasam has joined #ruby
fourq_ has quit [Ping timeout: 246 seconds]
fourq__ is now known as fourq_
mrsolo has joined #ruby
KobraKao has quit [Ping timeout: 240 seconds]
apfelbox has quit [Ping timeout: 260 seconds]
mrsolo has quit [Client Quit]
tylersmith has quit [Remote host closed the connection]
sailias has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
julweber has joined #ruby
tylersmith has joined #ruby
carlyle has joined #ruby
ner0x has joined #ruby
<zaltekk> shevy: 16**(1/3)
zarubin has joined #ruby
bugsinlights has joined #ruby
<shevy> hmm
|jemc| has quit [Ping timeout: 245 seconds]
lfox has quit [Quit: ZZZzzz…]
<shevy> thanks zaltekk
gwb3 has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 248 seconds]
Bry8Star{T2 has quit [Remote host closed the connection]
emergion has joined #ruby
s00pcan has quit [Quit: Lost terminal]
Bry8Star{T2 has joined #ruby
pkrnj has joined #ruby
clov3r has joined #ruby
s00pcan has joined #ruby
rezzack1 has joined #ruby
clov3r has quit [Remote host closed the connection]
larissa has joined #ruby
ner0x has quit [Quit: Leaving]
cj3kim_ has quit [Ping timeout: 260 seconds]
carlyle has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 252 seconds]
zarubin has quit [Ping timeout: 246 seconds]
danman has joined #ruby
Catie has quit [Ping timeout: 264 seconds]
sarkis has quit [Ping timeout: 248 seconds]
clov3r has quit [Ping timeout: 264 seconds]
JesseH has quit [Ping timeout: 245 seconds]
Catie has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
a1ph4g33k has left #ruby ["Leaving"]
JesseH has joined #ruby
tyoc213 has left #ruby [#ruby]
Aryasam_ has joined #ruby
snovak has joined #ruby
Seich has quit [Ping timeout: 252 seconds]
Kricir has quit [Remote host closed the connection]
mrsolo has joined #ruby
cads has joined #ruby
mrsolo has quit [Client Quit]
sectionme has joined #ruby
sailias has joined #ruby
robert__ has joined #ruby
MrZYX is now known as MrZYX|off
robert_ has quit [Read error: Connection reset by peer]
Seich has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
Catie has quit [Ping timeout: 245 seconds]
b00stfr3ak has joined #ruby
snovak has quit [Ping timeout: 245 seconds]