havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
ged_ has joined #ruby
iamjarvo is now known as 7F1AASOXA
xxx has joined #ruby
fulgore_ has joined #ruby
levifig has joined #ruby
Lucky__ has joined #ruby
Emmanuel_Chanel has joined #ruby
Sou|cutter has joined #ruby
forgot has joined #ruby
Quandl has joined #ruby
skweek has joined #ruby
Rollabunna has joined #ruby
Guest37717 has joined #ruby
avahey has joined #ruby
uxp has joined #ruby
Paradox has joined #ruby
kloeri has joined #ruby
Esya| has joined #ruby
Sthebig has joined #ruby
`tim` has joined #ruby
wldcordeiro has joined #ruby
fumk has joined #ruby
KervyN has joined #ruby
Guest42003 has joined #ruby
bkutil_ has joined #ruby
rismoney1 has joined #ruby
blue_deref has joined #ruby
M-Technic has joined #ruby
Xiti has joined #ruby
ElderFain has joined #ruby
mnemon has joined #ruby
Cork has joined #ruby
RealMarc has joined #ruby
soloone has joined #ruby
ytti has joined #ruby
jefus has joined #ruby
tokik_ has joined #ruby
programmerq has joined #ruby
jbw has joined #ruby
deavidsedice has joined #ruby
V1s1ble has joined #ruby
scpike has joined #ruby
Contigi has joined #ruby
musl has joined #ruby
avelldiroll has joined #ruby
cscheib has joined #ruby
Puffball has joined #ruby
hectortrope has joined #ruby
michaeldeol has joined #ruby
dfockler has joined #ruby
djcp has joined #ruby
stevednd has joined #ruby
Tristan-Speccy has joined #ruby
cgfbee has joined #ruby
sulky has joined #ruby
jzigmund has joined #ruby
canton7 has joined #ruby
Skelz0r has joined #ruby
law has joined #ruby
tercenya has joined #ruby
sysanthrope has joined #ruby
alol has joined #ruby
skullcrasher has joined #ruby
sjohnsen has joined #ruby
PDI has joined #ruby
astrobunny has joined #ruby
NightMonkey has joined #ruby
anekos has joined #ruby
greedo has joined #ruby
davidcelis has joined #ruby
Gnomethrower has joined #ruby
tabakhase has joined #ruby
Muz has joined #ruby
adeponte has joined #ruby
phutchins has joined #ruby
araujo has joined #ruby
Phil-Work has joined #ruby
mosez has joined #ruby
ruisantos has joined #ruby
kith has joined #ruby
smooth_penguin has joined #ruby
russt has joined #ruby
ramfjord has joined #ruby
Hamled has joined #ruby
htmldrum has joined #ruby
moredhel has joined #ruby
Someguy123 has joined #ruby
gix has joined #ruby
soosfarm has joined #ruby
joeyjones has joined #ruby
sirecote has joined #ruby
coffeejunk has joined #ruby
yeltzooo has joined #ruby
Omni_ has joined #ruby
absolutejam has joined #ruby
EdwardIII has joined #ruby
Ropeney has joined #ruby
mist has joined #ruby
leafybas_ has joined #ruby
face has joined #ruby
thejoecarroll_ has joined #ruby
Scient has joined #ruby
infernix has joined #ruby
Raboo has joined #ruby
tomaw has joined #ruby
_5moufl has joined #ruby
finisherr has joined #ruby
ta has joined #ruby
aep has joined #ruby
Rickmasta has joined #ruby
ebertx has joined #ruby
Ray` has joined #ruby
ValicekB has joined #ruby
hanmac has joined #ruby
romero has joined #ruby
frankS2 has joined #ruby
eikood has joined #ruby
benaiah has joined #ruby
peterhu has joined #ruby
craysiii has joined #ruby
arthurnn has joined #ruby
veloutin has joined #ruby
ujjain has joined #ruby
spastorino has joined #ruby
epochwolf has joined #ruby
preyalone has joined #ruby
jessemcgilallen has joined #ruby
moss has joined #ruby
amitchellbullard has joined #ruby
gsingh93 has joined #ruby
johnhamelink has joined #ruby
chihhsin has joined #ruby
kalz has joined #ruby
howdoi has joined #ruby
an0ma1y- has joined #ruby
bcavileer has joined #ruby
j416 has joined #ruby
twodayslate has joined #ruby
linc01n has joined #ruby
ricer2 has joined #ruby
Didac has joined #ruby
Derasi has joined #ruby
Ebok has joined #ruby
RazorX has joined #ruby
skarn has joined #ruby
David27 has joined #ruby
nullwarp has joined #ruby
DanKnox[away] has joined #ruby
UtkarshRay has joined #ruby
Guest67473 has joined #ruby
Senjai has joined #ruby
zzak has joined #ruby
MrDSmith has joined #ruby
jaxxstorm has joined #ruby
funnel has joined #ruby
[spoiler] has joined #ruby
jsrn has joined #ruby
iamvery has joined #ruby
sfr^ has joined #ruby
Nightmare has joined #ruby
cbetta has joined #ruby
ixti has joined #ruby
perrier has joined #ruby
ELCALOR has joined #ruby
Nilium has joined #ruby
rmrrn has joined #ruby
skmp has joined #ruby
mgorbach has joined #ruby
unclouded has joined #ruby
larissa has joined #ruby
lorn_ has joined #ruby
ghr has joined #ruby
marahin has joined #ruby
rfv has joined #ruby
Silex has joined #ruby
bluntman has joined #ruby
chopin_ has joined #ruby
CustosLim3n has joined #ruby
rtl has joined #ruby
Seich has joined #ruby
keyvan has joined #ruby
duoi has joined #ruby
haxrbyte_ has joined #ruby
DarthGandalf has joined #ruby
jwang has joined #ruby
wedgwood has joined #ruby
inukshuk has joined #ruby
WizJin has joined #ruby
kriskropd_ has joined #ruby
chridal has joined #ruby
torpig has joined #ruby
ksteck has joined #ruby
ekem has joined #ruby
dasher00 has joined #ruby
oddmunds has joined #ruby
slawrence00 has joined #ruby
cfloare has joined #ruby
ckrailo has joined #ruby
drew2_ has joined #ruby
pabs has joined #ruby
frode15243 has joined #ruby
mroth has joined #ruby
jmhmccr has joined #ruby
PaulePanter has joined #ruby
deimos_ has joined #ruby
djbender has joined #ruby
scroff has joined #ruby
G has joined #ruby
corpsicle has joined #ruby
JaTochNietDan has joined #ruby
borkdude has joined #ruby
jxf has joined #ruby
crankharder has joined #ruby
yxhuvud has joined #ruby
Guest37417 has joined #ruby
vondruch has joined #ruby
null__ has joined #ruby
async_prince has joined #ruby
sts_ has joined #ruby
jokester has joined #ruby
yie has joined #ruby
cookiez has joined #ruby
cout has joined #ruby
lacrosse has joined #ruby
holsee_ has joined #ruby
m4rCsi has joined #ruby
konopka has joined #ruby
GGMethos has joined #ruby
sugardrunk has joined #ruby
swgillespie has joined #ruby
Biohazard has joined #ruby
nyandoge has joined #ruby
Nanuq has joined #ruby
akitada has joined #ruby
psy has joined #ruby
im0b has joined #ruby
zenspider has joined #ruby
lipoqil has joined #ruby
Trieste has joined #ruby
lancetw has joined #ruby
ozzloy has joined #ruby
shadeslayer has joined #ruby
CooloutAC has joined #ruby
towler has joined #ruby
diego_k has joined #ruby
valeri_ufo has joined #ruby
zly has joined #ruby
danoo_ has joined #ruby
dukedave has joined #ruby
Drakevr has joined #ruby
colstrom has joined #ruby
zack6849 has joined #ruby
Caelum has joined #ruby
varesa has joined #ruby
jmcc has joined #ruby
Iacobus has joined #ruby
genpaku has joined #ruby
knowtheory has joined #ruby
demophoon has joined #ruby
unreal has joined #ruby
uber has joined #ruby
Vile` has joined #ruby
lkba_ has joined #ruby
verto has joined #ruby
kellabyte has joined #ruby
heyimwill has joined #ruby
ItSANgo has joined #ruby
ereslibre has joined #ruby
lele has joined #ruby
AlexRussia has joined #ruby
ausec has joined #ruby
spectra has joined #ruby
jamo__ has joined #ruby
jokke has joined #ruby
yorickpeterse has joined #ruby
havenwood has joined #ruby
papercode has joined #ruby
PhilK has joined #ruby
krasnus has joined #ruby
JJM has joined #ruby
enherit has joined #ruby
kent\n has joined #ruby
Sp4rKy has joined #ruby
xnr has joined #ruby
Rennex has joined #ruby
p8952 has joined #ruby
j0bk has joined #ruby
hackeron has joined #ruby
adambeynon has joined #ruby
drPoggs has joined #ruby
Morrolan has joined #ruby
AdamMeghji has joined #ruby
pmarreck has joined #ruby
VeryBewitching has joined #ruby
ramblinpeck has joined #ruby
sonne has joined #ruby
SilentEcho has joined #ruby
Guest69654 has joined #ruby
LoganG has joined #ruby
alexblom has joined #ruby
ajb has joined #ruby
tekk has joined #ruby
sindork_ has joined #ruby
bihi has joined #ruby
banister has joined #ruby
noethics has joined #ruby
GnuYawk has joined #ruby
petems has joined #ruby
twohlix has joined #ruby
scottymeuk has joined #ruby
Eleeleth has joined #ruby
JoshL has joined #ruby
michael_mbp has joined #ruby
bougyman has joined #ruby
abyss has joined #ruby
saltsa has joined #ruby
wharr has joined #ruby
MiracleBlue has joined #ruby
mduca_ has joined #ruby
fold1 has joined #ruby
akkad has joined #ruby
sonOfRa has joined #ruby
matp has joined #ruby
ljarvis has joined #ruby
Flipez has joined #ruby
Olipro has joined #ruby
okdas has joined #ruby
Guest987 has joined #ruby
aspiers has joined #ruby
ahuman has joined #ruby
madhatter has joined #ruby
ByronJohnson has joined #ruby
zapata has joined #ruby
KramerC has joined #ruby
DoYouKnow has joined #ruby
ggherdov has joined #ruby
pvac has joined #ruby
BackEndCoder has joined #ruby
Veejay has joined #ruby
pfg has joined #ruby
nuck has joined #ruby
stryek has joined #ruby
danzilio has joined #ruby
Guest3421 has joined #ruby
silverdust has joined #ruby
machty has joined #ruby
lianj has joined #ruby
EvilJStoker has joined #ruby
Eising has joined #ruby
PierreRambaud has joined #ruby
bradland has joined #ruby
cardoni has joined #ruby
sami has joined #ruby
A124 has joined #ruby
sivoais has joined #ruby
jevs has joined #ruby
gusrub has joined #ruby
Guest85414______ has joined #ruby
jabreity_ has joined #ruby
Steve_Jobs has joined #ruby
decoponio has joined #ruby
jeregrine has joined #ruby
greister has joined #ruby
segy has joined #ruby
mahlon_ has joined #ruby
cjk101010 has joined #ruby
workmad3 has joined #ruby
apeiros has joined #ruby
bove has joined #ruby
\13k has joined #ruby
bryancp has joined #ruby
Renich has joined #ruby
hoylemd_ has joined #ruby
lotherk has joined #ruby
kitallisii has joined #ruby
Diabolik has joined #ruby
go|dfish has joined #ruby
braincra- has joined #ruby
NeverDie has joined #ruby
devyn_ has joined #ruby
gyre007 has joined #ruby
gregoriokusowski has joined #ruby
Log1x has joined #ruby
badeball has joined #ruby
rideh has joined #ruby
dmolina has joined #ruby
max_Q_ has joined #ruby
tubuliferous has joined #ruby
yo61 has joined #ruby
twistedpixels has joined #ruby
halfdan has joined #ruby
janno has joined #ruby
jaredrhine has joined #ruby
yokel has joined #ruby
gregf__ has joined #ruby
glowcoil has joined #ruby
Zarthus has joined #ruby
reaVer has joined #ruby
miah has joined #ruby
neersighted has joined #ruby
Heero has joined #ruby
Nirgali43 has joined #ruby
hyperdrive has joined #ruby
adamholt has joined #ruby
shelling__ has joined #ruby
tekacs has joined #ruby
lagweezle has joined #ruby
calleerlandsson has joined #ruby
ghoti has joined #ruby
rvchangue has joined #ruby
parus has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
gusrub has quit []
tokik_ has joined #ruby
tokik_ has quit [Client Quit]
A124 has joined #ruby
A124 has quit [Quit: '']
fullofca_ has joined #ruby
MissionCritical has joined #ruby
podman has joined #ruby
crayfishx has joined #ruby
Pro| has joined #ruby
lukaszk has joined #ruby
claw has joined #ruby
spacemud has joined #ruby
Guest67071 has joined #ruby
bahar_ has joined #ruby
bodgix has joined #ruby
kadoppe has joined #ruby
tomchap__ has joined #ruby
jenrzzz has joined #ruby
klaas has joined #ruby
fumduq has joined #ruby
kobain has joined #ruby
bjmllr has joined #ruby
timmow has joined #ruby
csaunders has joined #ruby
mic_e_ has joined #ruby
ec\ has joined #ruby
theRoUS has joined #ruby
Couch has joined #ruby
ericwood has joined #ruby
t0code has joined #ruby
sluukkonen has joined #ruby
Shidash has joined #ruby
Prira has joined #ruby
GarethAdams has joined #ruby
jso has joined #ruby
inteq has joined #ruby
Lilian has joined #ruby
tokik has joined #ruby
woodruffw has joined #ruby
cajone has joined #ruby
ejnahc has joined #ruby
eam has joined #ruby
SegFaultAX has joined #ruby
iceden has joined #ruby
ELLIOTTCABLE has joined #ruby
riotjon__ has joined #ruby
err_ok has joined #ruby
blackmesa has joined #ruby
kaspergrubbe has joined #ruby
tsou has joined #ruby
mjc_ has joined #ruby
stacybird has joined #ruby
sts has joined #ruby
schaary|afk has joined #ruby
Junaos has joined #ruby
brixen has joined #ruby
ccooke has joined #ruby
akahn has joined #ruby
dravine has joined #ruby
humd1ng3r has joined #ruby
exceion_ has joined #ruby
bubuntu has joined #ruby
fluchtreflex has joined #ruby
dhruvasagar has joined #ruby
thang has joined #ruby
jidar has joined #ruby
qpls has joined #ruby
wjimenez5271 has joined #ruby
Lildirt has joined #ruby
sevin has joined #ruby
jud has joined #ruby
Kuukunen has joined #ruby
dostoyevsky has joined #ruby
zotherstupidguy has joined #ruby
bier_ has joined #ruby
angelixd has joined #ruby
Gadgetoid has joined #ruby
nofxx has joined #ruby
ss_ss has joined #ruby
Affix has joined #ruby
Silicium has joined #ruby
tommylommykins has joined #ruby
jamo_ has joined #ruby
rfi_ has joined #ruby
leat has joined #ruby
mburns has joined #ruby
jaygen has joined #ruby
Bish has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
Koshian has joined #ruby
tokik_ has joined #ruby
[BNC]BLuEGoD has joined #ruby
frankS2 has joined #ruby
frankS2 has quit [Changing host]
Mekkis has joined #ruby
erichmenge has joined #ruby
ajafo has joined #ruby
vifino has joined #ruby
nej has joined #ruby
tsunamie has joined #ruby
joast has joined #ruby
bcavileer has quit [Ping timeout: 240 seconds]
tokik has quit [Quit: leaving]
zenguy_pc has joined #ruby
t0code has quit []
fullofca_ has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
fullofcaffeine has joined #ruby
yfeldblum has joined #ruby
Klumben has joined #ruby
bryanray has joined #ruby
bmn has joined #ruby
prosodyVC has joined #ruby
devn has joined #ruby
joaomdmoura has joined #ruby
Guest44773 has joined #ruby
troter____ has joined #ruby
Archyme_ has joined #ruby
kramsee_ has joined #ruby
snapcase has joined #ruby
leslie has joined #ruby
rcs has joined #ruby
Billias has joined #ruby
andersh has joined #ruby
Gnubie_ has joined #ruby
n1ftyn8_ has joined #ruby
rflot has joined #ruby
DarkBushido has joined #ruby
pygospa has joined #ruby
z3uS has joined #ruby
ltd has joined #ruby
SHyx0rmZ has joined #ruby
terrellt has joined #ruby
ammar has joined #ruby
tinyhippo has joined #ruby
Killerkeksdose has joined #ruby
Guest84489 has joined #ruby
bartj3_ has joined #ruby
mistym has joined #ruby
ex0ns has joined #ruby
Liothen has joined #ruby
pipework has joined #ruby
Miron has joined #ruby
CpuID has joined #ruby
charles81 has joined #ruby
daxroc has joined #ruby
cball has joined #ruby
tobiasvl has joined #ruby
iooner has joined #ruby
bf4 has joined #ruby
Keltia has joined #ruby
drbrain has joined #ruby
BustyLoliChan has joined #ruby
skakri has joined #ruby
tskogberg has joined #ruby
cstrahan has joined #ruby
eregon has joined #ruby
Takumo has joined #ruby
ZYPP has joined #ruby
DoubleMalt has joined #ruby
catbusters has joined #ruby
hostess has joined #ruby
shtirlic has joined #ruby
worstcase has joined #ruby
Tempesta has joined #ruby
Bugboy1028 has joined #ruby
zipkid has joined #ruby
SenpaiSilver_ has joined #ruby
cek has joined #ruby
jhass has joined #ruby
mighty_gorilla has joined #ruby
bafbomb has joined #ruby
niko has joined #ruby
blackjid has joined #ruby
kiki_lamb has joined #ruby
manveru has joined #ruby
universa1 has joined #ruby
george2 has joined #ruby
jimeh has joined #ruby
tejasmanohar has joined #ruby
Cyther_ has joined #ruby
AnoHito has joined #ruby
jpinnix______ has joined #ruby
verdoc_ has joined #ruby
korolyov has joined #ruby
zemmihates has joined #ruby
cschneid has joined #ruby
voxxit has joined #ruby
crdpink has joined #ruby
M-Kodo has joined #ruby
`derpy has joined #ruby
znz_jp has joined #ruby
teotwaki has joined #ruby
benlakey has joined #ruby
fedexo has joined #ruby
sjums has joined #ruby
apipkin has joined #ruby
LBRapid_ has joined #ruby
harryk has joined #ruby
adaedra has joined #ruby
pwnd_nsfw has joined #ruby
boshhead has joined #ruby
bascht has joined #ruby
FastJack has joined #ruby
ZeeNoodleyGamer has joined #ruby
lokulin has joined #ruby
cwong_on_irc has joined #ruby
WizJin has quit [Changing host]
WizJin has joined #ruby
TDJACR has joined #ruby
machty has quit [Changing host]
machty has joined #ruby
[BNC]BLuEGoD has quit [Changing host]
[BNC]BLuEGoD has joined #ruby
inukshuk has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
inukshuk has joined #ruby
sivoais_ has joined #ruby
ElSif has joined #ruby
blackmesa has quit [Quit: WeeChat 1.3]
xybre has joined #ruby
XxionxX has joined #ruby
sgambino has joined #ruby
bcavileer has joined #ruby
Mission-Critical has joined #ruby
tmtwd has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 268 seconds]
tsou has quit [Remote host closed the connection]
first-time-stude has joined #ruby
<first-time-stude> Hi All, is this the right place to ask for advice/help on Ruby problems?
tmtwd has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
tmtwd has quit [Remote host closed the connection]
tmtwd has joined #ruby
<Aria> Yep!
<Aria> Welcome!
<first-time-stude> OKay! I am a new student and I have a query: My teacher would like me to find the longest word in a string. I figured out how to do this with Ruby's sort! method and a comparative operator, but my teacher has mandated that I must use a Loop in order to accomplish this task
arthurix_ has joined #ruby
uber has quit [Changing host]
uber has joined #ruby
kurzweil has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amoeba has joined #ruby
<first-time-stude> What is the best approach to solve this problem>
JStoker has quit [Changing host]
JStoker has joined #ruby
wedgwood has joined #ruby
wedgwood has quit [Changing host]
TDJACR has quit [Changing host]
TDJACR has joined #ruby
goldfish6744 has joined #ruby
scottstamp has joined #ruby
mrtomme has joined #ruby
PlasmaStar has joined #ruby
heinrich5991 has joined #ruby
armyriad has joined #ruby
A124 has quit [Changing host]
A124 has joined #ruby
Coldblackice has joined #ruby
joast is now known as Guest69039
Tristan-Speccy is now known as Guest51228
RobertBirnie has joined #ruby
ged_ is now known as Guest34193
EvilJStoker is now known as Guest93258
romero is now known as Guest69698
Vile` is now known as Guest47655
unreal is now known as Guest45706
PaulCapestany has joined #ruby
__chris has joined #ruby
oetjenj has joined #ruby
Brando753 has joined #ruby
Guest93258 has quit [Changing host]
Guest93258 has joined #ruby
Azure has joined #ruby
ruboto_ has joined #ruby
Guest93258 is now known as EvilJStoker
BraddPitt has joined #ruby
hanmac has quit [Ping timeout: 250 seconds]
finisherr has quit [Quit: finisherr]
prosodyVC is now known as prosodyvVC
<jhass> first-time-stude: probably grilling the teacher over an open fire. Best solution: split.max_by(&:size), desired solution: max = ""; words.each do |word| max = word if word.size > max.size; end;
mission712 has joined #ruby
<jhass> the latter is pretty much just reimplementing max_by of course
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmolina has quit [Quit: Leaving.]
__chris has quit [Client Quit]
[BNC]BLuEGoD is now known as BLuEGoD
tubuliferous has quit [Ping timeout: 268 seconds]
BLuEGoD is now known as Guest75924
chopin_ has quit [Remote host closed the connection]
baweaver has joined #ruby
Kharma has joined #ruby
clamstar has joined #ruby
<first-time-stude> jhass, thank you for your advice. I'm going to study this and get back if I have ny questions
<first-time-stude> Do the semicolons in your syntax mean new line?
stannard has joined #ruby
<baweaver> Avoid semicolons in ruby
dgynn has joined #ruby
<baweaver> chances are high you won't actually need them
<jhass> yes
<jhass> it's valid syntax but real code should replace them with newlines
<first-time-stude> right, but I mean in jhass's code, I think he is using the semicolons to indicate a new line
oetjenj has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
<first-time-stude> thanks lol, I just started learning code iterally 3 weeks ago, so yea
<havenwood> first-time-stude: yup, semicolons in examples means use real newlines in real life
<drbrain> >> out = []; out << 'unless'; out << 'you'; out << 'submit'; out << 'to'; out << 'ruboto'; out.join ' '
<ruboto_> drbrain # => "unless you submit to ruboto" (https://eval.in/451712)
cwong_on_irc has quit [Quit: Leaving.]
cemez has joined #ruby
hanmac has joined #ruby
keen__ has joined #ruby
stannard has quit [Ping timeout: 260 seconds]
oetjenj has joined #ruby
keen_ has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
bryanray has joined #ruby
weaksauce has joined #ruby
michaeldeol has quit [Ping timeout: 250 seconds]
tokik_ is now known as tokik
solocshaw has joined #ruby
Igorshp has joined #ruby
EllisTAA has joined #ruby
K1MOS has joined #ruby
K1MOS has quit [Max SendQ exceeded]
dopamean_ has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
gregoriokusowski has quit [Quit: gregoriokusowski]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
l_tonz has joined #ruby
Guest75924 has quit [Quit: oh cruel destiny]
fedexo has quit [Ping timeout: 246 seconds]
Igorshp has quit [Remote host closed the connection]
oetjenj has quit [Ping timeout: 260 seconds]
hanmac has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
oetjenj has joined #ruby
hanmac has joined #ruby
Bellthoven has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boxrick1 has quit [Ping timeout: 250 seconds]
ELLIOTTCABLE has quit [Ping timeout: 252 seconds]
lacrosse has quit [Ping timeout: 264 seconds]
im0b has quit [Ping timeout: 264 seconds]
keyvan has quit [Ping timeout: 240 seconds]
yo61 has quit [Read error: Connection reset by peer]
Guest85414______ has quit [Ping timeout: 268 seconds]
Heero has quit [Ping timeout: 268 seconds]
jmhmccr has quit [Ping timeout: 264 seconds]
preyalone has quit [Ping timeout: 240 seconds]
tomchap__ has quit [Quit: Textual IRC Client: www.textualapp.com]
7F1AASOXA has quit [Quit: Computer has gone to sleep.]
joaomdmoura has quit [Ping timeout: 246 seconds]
<first-time-stude> Hi all, I have a question regarding my earlier query: Finding longest word in a given string. Can someone walk me through this piece of code and explain how it works? http://rubyfiddle.com/riddles/3af73
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spuk has joined #ruby
CloCkWeRX has joined #ruby
dikaio has joined #ruby
<havenwood> first-time-stude: Line one begins to define a method #longest_word with a single `sentence` argument that's presumably a String.
Rickmasta has joined #ruby
tomchapin has joined #ruby
etrae has joined #ruby
<first-time-stude> Okay, I follow so far, Havenwoord
<havenwood> first-time-stude: Line two sets the `words` local variable to an Array of Strings created from splitting the `sentence` String on spaces.
<havenwood> >> 'hi there'.split ' '
<ruboto_> havenwood # => ["hi", "there"] (https://eval.in/451716)
sankaber has joined #ruby
<first-time-stude> okay
<first-time-stude> I understand you so far
mistermocha has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
tomchapin has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
<havenwood> first-time-stude: At this point the code strays from the idiomatic path.
Guest69039 has quit [Quit: Leaving.]
oetjenj has quit [Ping timeout: 260 seconds]
<first-time-stude> what does that mean? Does that mean That the code goes against best practice and opts for the more difficult path?
joast has joined #ruby
jordanm has joined #ruby
<havenwood> first-time-stude: Yeah, it's not the path of perfection. There are technically better ways.
tomchapin has joined #ruby
<havenwood> first-time-stude: On line four the local variable `longest_word` is initialized as `nil` (itself a sign things may be wonky) which is the same bareword as the `longest_word` method it's inside.
oetjenj has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
<havenwood> first-time-stude: In irb or pry try creating a method and instance variable with the same bareword. See which ends up getting called when you make one then the other, restart irb and try the other order.
djcp1 has joined #ruby
mary5030 has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
<first-time-stude> what do you mean by bareword?
xybre has quit [Quit: oh shit its the fbi]
xybre has joined #ruby
<havenwood> first-time-stude: Just letters with no sigil in front or anything like that. Both local variables and methods are "barewords."
<havenwood> first-time-stude: Like `words`, `sentence`, `word_idx` but not `1`, `:example`, `"hi"`, etc.
patdohere has joined #ruby
<havenwood> first-time-stude: See: http://devblog.avdi.org/2012/10/01/barewords/
tkuchiki has joined #ruby
oetjenj has quit [Ping timeout: 260 seconds]
patdohere has quit [Quit: Textual IRC Client: www.textualapp.com]
djcp1 has quit [Ping timeout: 268 seconds]
patdohere has joined #ruby
<first-time-stude> Ah, I think I understand, barewords have no inherent value within themselves, because they are created on the spot by the user - is this correct?
EllisTAA has quit [Quit: EllisTAA]
<havenwood> first-time-stude: They're either local variables or methods. Try playing with it in irb or pry.
mistermocha has joined #ruby
<havenwood> first-time-stude: Have you used irb or pry?
ruurd has joined #ruby
<first-time-stude> Nope :) My teacher has not set it up for the class
mrconfused has joined #ruby
<first-time-stude> But I understand what you mean by barewords now
devoldmx has joined #ruby
<first-time-stude> Atleast, I understand enough for the context of this lesson
<havenwood> first-time-stude: From your commandline type: irb
l_tonz has quit [Remote host closed the connection]
<havenwood> first-time-stude: For example a simpler version of that method might read: def longest_word(sentence); sentence.split.max_by(&:size) end
saddad has joined #ruby
sivoais_ is now known as sivoais
sivoais has quit [Changing host]
sivoais has joined #ruby
ruurd has quit [Client Quit]
<first-time-stude> I typed IRB in my mac's terminal
oetjenj has joined #ruby
<havenwood> first-time-stude: Try causing an error by just typing: word
mistermocha has quit [Ping timeout: 240 seconds]
parus has quit [Ping timeout: 268 seconds]
fullofcaffeine has quit [Remote host closed the connection]
<first-time-stude> yes, the error of undefined LocalVariable is my return
<havenwood> first-time-stude: It should be a NameError.
<havenwood> Ah, 1.8?
slushdot has joined #ruby
<first-time-stude> uh
<havenwood> nevermind
<first-time-stude> Havenword, I think it might be worth mentioning I dont have Ruby installed on my Mac, does this matter?
<havenwood> first-time-stude: Now try: def word; 'sekret' ; end
tkuchiki has quit [Ping timeout: 260 seconds]
<xybre> It comes pre-installed usually
<capin> yup
<havenwood> first-time-stude: (Hit return for a newline in place of the semicolons.)
<slushdot> Hello. FUCK ALL SPICS, NIGGERS, JEWS, CHRISTIANS, SAND NIGGERS, DUNE COONS, KIKES, CHINKS, WETBACKS, FAGS, DYKES, AND PEOPLE WHO LIKE PEACH ICE CREAM, JOIN #WEB FOR FREE OPS AND TELL THEM EMERSON SENT YOU. FREE GAY MIDGET PORN!!!!!!!!!!!!!!!!!!
<havenwood> !mute slushdot
<first-time-stude> returns nil
tkuchiki has joined #ruby
<havenwood> I'd have expected: "sekret"
fullofcaffeine has joined #ruby
<first-time-stude> I think I'm typing it wrong
<bnagy> >> def word; 'sekret' ; end
<ruboto_> bnagy # => :word (https://eval.in/451717)
<havenwood> bnagy: oooh
<havenwood> first-time-stude: No you did right. I forgot to tell you a step...
<bnagy> method defs return a symbol? o_0
nettoweb has joined #ruby
<bnagy> 19>> def word; 'sekret' ; end
<havenwood> first-time-stude: Now type: word
<ruboto_> bnagy # => nil (https://eval.in/451718)
<bnagy> huh, TIL
<first-time-stude> ahh, i see it now
<first-time-stude> returns "sekret"
<havenwood> bnagy: :D yup, and thanks for pointing out what was happening
<havenwood> first-time-stude: Now try: work = "a local variable"
<havenwood> first-time-stude: Now try: word = "a local variable"
speakingcode has joined #ruby
<havenwood> first-time-stude: ^ typo, meant word
<first-time-stude> returns "a local variable"
slushdot has quit [Quit: ZNC - http://znc.in]
blue_deref has quit [Quit: Taking myself out of hear.]
<havenwood> first-time-stude: So the local variable `word` stomped on the method `word`.
<havenwood> first-time-stude: Now again try: def word; 'trying'; end
tkuchiki_ has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> first-time-stude: And one more time check: word
<first-time-stude> a local variable
<first-time-stude> is the return^
<havenwood> first-time-stude: So if there's a local variable and a method of the same name, the local variable wins.
<first-time-stude> I see
oetjenj has quit [Ping timeout: 256 seconds]
<havenwood> first-time-stude: So it's confusing to have both local variables and methods with the same name.
bryanray has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 252 seconds]
<havenwood> first-time-stude: And if neither is defined but you try it it'll raise an error.
<first-time-stude> Havenwood, if I may interject - are you basically informing me to caution against using similar words in defining methods/variables?
cwong_on_irc has joined #ruby
<havenwood> first-time-stude: Yup, exactly.
djcp1 has joined #ruby
djcp1 has quit [Client Quit]
oetjenj has joined #ruby
<first-time-stude> I see, you must understand that my teacher is trying to Mr.Miyagi us and have us to Wax on Wax off in Ruby until we can write small scale code the hard/long way first before we learn better techniques
<first-time-stude> tldr; its a pain in the ass, but who am I to complain
tkuchiki_ has quit [Ping timeout: 260 seconds]
novtopro has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrconfused has left #ruby [#ruby]
<havenwood> first-time-stude: The last line of the method implicitly returns so you should drop the `return` and just have `longest_word` on the last line.
diegoaguilar has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
<havenwood> first-time-stude: The last evaluated statement of the method will be its return value if there isn't an early return.
Kara has joined #ruby
mistermocha has joined #ruby
<first-time-stude> I understand this part, yes, but this code was written by my teacher - so I must live with it lol
<havenwood> first-time-stude: Koans are good. Meditate on code to reach enlightenment!
moredhel has left #ruby ["undefined"]
fullofcaffeine has quit [Remote host closed the connection]
<havenwood> first-time-stude: aha
bruno- has joined #ruby
oetjenj has quit [Ping timeout: 246 seconds]
<first-time-stude> But Havenwood, I believe my problem of undertanding lies in specifically Lines 8-13 of my teacher's code
<havenwood> first-time-stude: You may enjoy going through the Ruby Koans to learn some Ruby while also learning testing: http://rubykoans.com
fullofcaffeine has joined #ruby
<first-time-stude> Do you think you can explain this to me?
<havenwood> first-time-stude: Strings have indexes starting at zero for the first character.
<first-time-stude> OK
<havenwood> >> 'a string'[0]
<ruboto_> havenwood # => "a" (https://eval.in/451719)
<first-time-stude> I uderstand this concept, yes
mistermocha has quit [Client Quit]
podman has quit [Quit: Connection closed for inactivity]
<havenwood> first-time-stude: `word` is a String so line eight sets the local variable `current_word` to the `word_idx` (Integer) index of `words` (String).
diegoaguilar has quit [Ping timeout: 264 seconds]
Kara has quit [Ping timeout: 244 seconds]
hacworld has joined #ruby
<havenwood> first-time-stude: Oh dear, that's wrong.
Guest85414______ has joined #ruby
<havenwood> first-time-stude: Sorry, multitasking. Concentrating now.
<havenwood> first-time-stude: The `words` Array.
<havenwood> >> words = 'into an array'.split(" ")
<ruboto_> havenwood # => ["into", "an", "array"] (https://eval.in/451720)
<havenwood> >> ["into", "an", "array"] [0]
<ruboto_> havenwood # => "into" (https://eval.in/451721)
jessemcgilallen has quit [Ping timeout: 240 seconds]
skcin7 has joined #ruby
skcin7 has quit [Client Quit]
<first-time-stude> Okay, I understand both of your concepts
yo61 has joined #ruby
oetjenj has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
<havenwood> first-time-stude: So the `word_idx` starts at `0` and sets `current_word` to the first element of the `words` Array.
<havenwood> first-time-stude: So the local variable `current_word` is the first word on the first iteration of the Array.
bryanray has joined #ruby
novtopro has quit [Quit: Leaving.]
<havenwood> first-time-stude: The `longest_word` starts out as `nil` as per line four.
ItSANgo has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
ItSANgo has joined #ruby
<havenwood> first-time-stude: So on the first iteration the `longest_word` will always be `nil` and the if statement will set `longest_word` to now be `current_word`.
GriffinHeart has joined #ruby
diegoaguilar has joined #ruby
<first-time-stude> Ok
<havenwood> first-time-stude: On subsequent iterations it wont be `nil` anymore so the `elsif` clause will check if it's longer than the current word.
<havenwood> first-time-stude: If so, it'll replace the old `longest_word` with the `current_word`.
jmhmccr has joined #ruby
<first-time-stude> Okay, I have understood what you have said so far
<havenwood> first-time-stude: Then line sixteen increments the index counter to manually move onto the next iteration.
lacrosse has joined #ruby
boxrick1 has joined #ruby
<first-time-stude> so how does this code compare the lengths of specific words against other words in the array?
<havenwood> first-time-stude: It'll go back to the `while word_idx < words.length` and if the newly +1ed `word_idx` is now >= `words.length` it'll break.
GriffinHeart has quit [Remote host closed the connection]
<havenwood> first-time-stude: It's an awkward way to manually start at index zero of the Array and iterate until the last element is reached.
<havenwood> first-time-stude: If it's the first iteration it sets longest_word to current_word. Otherwise it updates longest_word only if the current_word is longer than the previous longest_word.
GriffinHeart has joined #ruby
psy has quit [Ping timeout: 264 seconds]
fedexo has joined #ruby
psy has joined #ruby
zenguy_pc has quit [Ping timeout: 272 seconds]
l_tonz has joined #ruby
Guest86745 has joined #ruby
oetjenj has quit [Ping timeout: 260 seconds]
ELLIOTTCABLE has joined #ruby
preyalone has joined #ruby
mary5030 has quit [Remote host closed the connection]
krzkrz has joined #ruby
mary5030 has joined #ruby
oetjenj has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
<first-time-stude> wait a minute, I think I understand this now
l_tonz has quit [Remote host closed the connection]
l_tonz has joined #ruby
<first-time-stude> it loops through the array and compares the length of the current word against the longest word
tkuchiki has joined #ruby
Heero has joined #ruby
arup_r has joined #ruby
keyvan has joined #ruby
joaomdmoura has joined #ruby
im0b has joined #ruby
nateberkopec has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
pcfreak30 has joined #ruby
user083 has joined #ruby
<pcfreak30> Novice question. is there a reason to use a module over a class for static methods? I know a module inherits a class.
<havenwood> first-time-stude: Check the history of this Gist: https://gist.github.com/havenwood/0ea24f887cb98081819c
shoutsid has joined #ruby
<havenwood> first-time-stude: The Revisions I mean.
<first-time-stude> yesss, thank you Havenwood
<havenwood> first-time-stude: I could have done it more incrementally but I'm trying to show how you'd move it towards idiomatic code.
<havenwood> first-time-stude: you're welcome
failshell has joined #ruby
<nofxx> pcfreak30, it's more like: I'm a module with static methods, don't initialize me
<first-time-stude> I only have one last question
nateberkopec has quit [Client Quit]
<nofxx> pcfreak30, class always gives the impression you need an instance
<nofxx> so I would say best practice, use a module
Guest86745 has quit [Ping timeout: 250 seconds]
joufflu has joined #ruby
<first-time-stude> In your previous statements, you stated that the code loops through the array
<first-time-stude> but at what point in the code was the string morphed into an array? Was it done using the .split method?
<havenwood> pcfreak30: Always use the simplest thing, so like nofxx said if you don't need to instantiate anything use a Module.
zenguy_pc has joined #ruby
<havenwood> first-time-stude: Yup, String#split returns an Array.
<first-time-stude> ahhh
<BraddPitt> anyone ever used the Audite gem? I'm having playback problems (plays at double speed) but using mpg123 natively doesnt have that problem
<BraddPitt> niche question, I know
<bnagy> pcfreak30: also, I can't think of any way in which "a module inherits a class" is true
<bnagy> so you might want to un-know that
<havenwood> ;)
phutchins has quit [Ping timeout: 240 seconds]
shoutsid has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
<havenwood> pcfreak30: Module's class is Class, whose superclass is Module.
<pcfreak30> ok so got them inverted
<pcfreak30> my bad
<havenwood> pcfreak30: Some classes include modules (mixins) but not Class itself.
<drbrain> modules exist on a class' ancestor list, so they're involved in ruby's inheritance as mixins
<bnagy> to be honest the fact that Class is_a? Module is something best forgotten
<bnagy> it's an implementation detail, but doesn't "make sense" if you're trying to understand how to use them
failshell has quit [Ping timeout: 244 seconds]
GriffinHeart has quit [Read error: Connection reset by peer]
<bnagy> imho anyway :P
favadi has joined #ruby
WillAmes has joined #ruby
goldfish6744 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Po-ta-to, boil em, mash em, stick em in a stew.]
Zamyatin has joined #ruby
<bnagy> this reminds me of last week when shevy was grumpy that you can't mix-in Classes
<bnagy> cause, from a certain angle, that's just arbitrary o_0
swgillespie has joined #ruby
l_tonz has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
oetjenj has quit [Ping timeout: 240 seconds]
first-time-stude has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
swgillespie has quit [Max SendQ exceeded]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
jenrzzz has joined #ruby
l_tonz has joined #ruby
joufflu has quit [Quit: Leaving]
Azure has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
oetjenj has joined #ruby
<Porfa> why isn't coco in the report? why isn't the var being printed on the mail?… https://gist.github.com/anonymous/192d7e2007d71a584e5e
_blizzy_ has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
diegoaguilar has quit [Ping timeout: 246 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
beauby has joined #ruby
David27 has quit [Read error: Connection reset by peer]
David27 has joined #ruby
spacemud has quit [Quit: ZNC - http://znc.in]
devbug has joined #ruby
_blizzy_ has joined #ruby
l_tonz has quit [Ping timeout: 264 seconds]
p3ery has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
craysiii has quit [Quit: Leaving.]
p3ery has quit [Client Quit]
joufflu has joined #ruby
p3ery has joined #ruby
psy has quit [Ping timeout: 246 seconds]
<bnagy> >> foo = "blah"; [$foo, foo]
<ruboto_> bnagy # => [nil, "blah"] (https://eval.in/451741)
p3ery has quit [Client Quit]
p3ery has joined #ruby
p3ery has quit [Remote host closed the connection]
dfockler has quit [Quit: Leaving]
maletor has joined #ruby
baweaver has joined #ruby
diegoaguilar has joined #ruby
Asher has joined #ruby
hinbody has joined #ruby
Feyn has joined #ruby
finisherr has joined #ruby
wldcordeiro has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
oetjenj has quit [Ping timeout: 260 seconds]
oetjenj has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 244 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 264 seconds]
EllisTAA has joined #ruby
helpa has joined #ruby
l_tonz has joined #ruby
EvilJStoker has quit [Ping timeout: 268 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LMity has joined #ruby
ItSANgo has quit [Ping timeout: 255 seconds]
minimalism has joined #ruby
EvilJStoker has joined #ruby
tkuchiki has joined #ruby
dikaio has joined #ruby
krzkrz has quit [Quit: WeeChat 1.2]
RobertBirnie has joined #ruby
gener1c has joined #ruby
diegoviola has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
nekomimimaid has joined #ruby
tenderlo_ has joined #ruby
hacworld has quit [Ping timeout: 268 seconds]
GriffinHeart has quit [Remote host closed the connection]
braincra- has quit [Quit: bye bye]
gix has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
bigkevmcd has joined #ruby
braincrash has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has joined #ruby
dopie has joined #ruby
oetjenj has quit [Ping timeout: 260 seconds]
awrfas2 has joined #ruby
etrae has quit [Ping timeout: 256 seconds]
oetjenj has joined #ruby
Musashi007 has joined #ruby
swgillespie is now known as swgillespie[GT]
fullofcaffeine has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
fullofcaffeine has joined #ruby
bryanray has quit [Ping timeout: 240 seconds]
G has quit [Quit: BRB]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bellthoven has quit []
armyriad has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 246 seconds]
maletor has quit [Ping timeout: 264 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
jessemcgilallen has joined #ruby
krz has joined #ruby
tomchapin has joined #ruby
tenderlo_ has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
oetjenj has quit [Ping timeout: 260 seconds]
devbug_ has joined #ruby
devoldmx has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
Spami has joined #ruby
A124 has quit [Read error: No route to host]
devbug__ has joined #ruby
devbug has quit [Ping timeout: 256 seconds]
LMity has quit [Ping timeout: 260 seconds]
devbug_ has quit [Ping timeout: 268 seconds]
darkf has joined #ruby
darkf has quit [Changing host]
darkf has joined #ruby
oetjenj has joined #ruby
Soda has quit [Remote host closed the connection]
Renich has quit [Quit: Lost terminal]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mloy has joined #ruby
favadi has joined #ruby
nettoweb has joined #ruby
favadi has quit [Client Quit]
gsingh93 has quit [Ping timeout: 240 seconds]
cemez has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
G has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gsingh93 has joined #ruby
nettoweb has quit [Client Quit]
ramfjord has quit [Ping timeout: 240 seconds]
htmldrum has joined #ruby
davidcelis has quit [Ping timeout: 240 seconds]
lorn_ has quit [Ping timeout: 240 seconds]
oetjenj has quit [Ping timeout: 260 seconds]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
lorn has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
bruno- has joined #ruby
htmldrum has quit [Ping timeout: 256 seconds]
iateadonut has joined #ruby
oetjenj has joined #ruby
teotwaki has quit [Ping timeout: 246 seconds]
soloone has quit [Ping timeout: 240 seconds]
ammar has quit [Ping timeout: 246 seconds]
ammar has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Takumo has quit [Ping timeout: 246 seconds]
leslie has quit [Ping timeout: 246 seconds]
iooner has quit [Ping timeout: 246 seconds]
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
soloone has joined #ruby
iooner has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
teotwaki has joined #ruby
tflat has joined #ruby
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Client Quit]
djbkd has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
krz has quit [Read error: Connection reset by peer]
zenguy_pc has quit [Ping timeout: 272 seconds]
mloy has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 250 seconds]
oetjenj has quit [Ping timeout: 272 seconds]
finisherr has quit [Quit: finisherr]
gizmore has joined #ruby
maletor has joined #ruby
Zamyatin has joined #ruby
tkuchiki has quit [Remote host closed the connection]
joufflu has quit [Ping timeout: 252 seconds]
diegoaguilar has quit [Remote host closed the connection]
oetjenj has joined #ruby
<Nilium> I think I've spent too long doing PHP maintenance and not enough time writing stuff that goes really fast
arup_r has quit [Quit: Leaving]
htmldrum has joined #ruby
lkba has joined #ruby
Dopagod has joined #ruby
jun__ has joined #ruby
lkba_ has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
zenguy_pc has joined #ruby
rrichardsr3 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
oetjenj has quit [Ping timeout: 260 seconds]
duncannz has joined #ruby
GriffinHeart has joined #ruby
failshell has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
failshell has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
oetjenj has joined #ruby
tenderlove has joined #ruby
havenn has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
freerobby1 has joined #ruby
houhoulis has quit [Remote host closed the connection]
patdoher_ has joined #ruby
patdohere has quit [Read error: Connection reset by peer]
haraoka has joined #ruby
tkuchiki has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
krz has joined #ruby
WizJin has quit [Excess Flood]
ledestin has quit [Read error: Connection reset by peer]
WizJin has joined #ruby
ledestin has joined #ruby
l_tonz has quit [Read error: Connection reset by peer]
l_tonz has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
cmoneylu_ has joined #ruby
oetjenj has quit [Ping timeout: 272 seconds]
astrobun_ has joined #ruby
SylarRuby has joined #ruby
tkuchiki has quit [Remote host closed the connection]
oetjenj has joined #ruby
G has quit [Quit: leaving]
maletor has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
G has joined #ruby
speakingcode has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
GriffinHeart has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fullofcaffeine has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SylarRuby has quit []
bruno- has quit [Ping timeout: 260 seconds]
favadi has joined #ruby
iamjarvo_ has joined #ruby
cmoneylu_ has quit [Remote host closed the connection]
patdoher_ is now known as patdohere_afk
iamjarvo_ has quit [Client Quit]
speakingcode has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
patdohere_afk is now known as patdoher_
oetjenj has quit [Ping timeout: 260 seconds]
freerobby1 has quit [Quit: Leaving.]
speakingcode has quit [Ping timeout: 240 seconds]
patdoher_ has quit [Read error: Connection reset by peer]
oetjenj has joined #ruby
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
grekkos has joined #ruby
moonman has joined #ruby
<grekkos> not sure if this is the best place to ask btu I'm trying to troubleshoot my jekyll install, it's failing to load a plugin for some reason. It does a require with the full path to the file but I get a LoadError and I don't know why
tenderlove has quit [Read error: Connection reset by peer]
speakingcode has joined #ruby
patdohere has joined #ruby
krz has quit [Quit: WeeChat 1.2]
tenderlove has joined #ruby
<grekkos> if I output the file it's trying to require, it's pointing to the right path and everything
arescorpio has quit [Quit: Leaving.]
l_tonz has quit [Remote host closed the connection]
patdohere has quit [Read error: Connection reset by peer]
unreal has joined #ruby
bb010g has joined #ruby
peteykun has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
deg_ has joined #ruby
Guest45706 has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
psy_ has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
etrae has joined #ruby
dhjondoh has joined #ruby
Cyther_ has quit [Read error: Connection reset by peer]
awrfas2 has quit [Ping timeout: 250 seconds]
oetjenj has quit [Ping timeout: 260 seconds]
l_tonz has joined #ruby
jessemcgilallen has quit [Ping timeout: 256 seconds]
oetjenj has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<BraddPitt> can you paste the error and some relevant code, grekkos ?
last_staff has joined #ruby
stardiviner has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
patdohere has joined #ruby
fullofcaffeine has joined #ruby
devoldmx has joined #ruby
jenrzzz has joined #ruby
ruurd has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
hanmac has joined #ruby
ruurd has quit [Client Quit]
oetjenj has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
jackjackdripper has joined #ruby
RobertBirnie has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Client Quit]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duoi has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby
low-prof1 has joined #ruby
conrfrmn has joined #ruby
chussenot has joined #ruby
trautwein has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
oetjenj has joined #ruby
duncannz has quit [Remote host closed the connection]
tagrudev has joined #ruby
GriffinHeart has joined #ruby
duoi has joined #ruby
patdohere has quit [Ping timeout: 250 seconds]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
Renich has joined #ruby
User458764 has joined #ruby
moonman has quit [Quit: Page closed]
chussenot has quit [Quit: chussenot]
maletor has quit [Quit: Computer has gone to sleep.]
akkad has quit [Excess Flood]
khebbie has joined #ruby
Dopagod has quit [Ping timeout: 250 seconds]
sanjayu has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aganov has joined #ruby
oetjenj has quit [Ping timeout: 260 seconds]
akkad has joined #ruby
oetjenj has joined #ruby
khebbie has quit [Ping timeout: 264 seconds]
fullofcaffeine has joined #ruby
zenguy_pc has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
codecop has joined #ruby
Renich has quit [Quit: leaving]
jun__ has quit [Remote host closed the connection]
<certainty> moin
astrobun_ has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
meowz has joined #ruby
tesuji has joined #ruby
Pupp3tm4st3r has joined #ruby
bMalum has joined #ruby
<baweaver> Interesting problem I just remembered
<baweaver> Given multiple lines, turn their text into columns
magicalunicorn has joined #ruby
aibot has joined #ruby
<baweaver> make a variant for left, center, and right alignment
* baweaver is futzing with the idea in pry right now.
oetjenj has quit [Ping timeout: 260 seconds]
<baweaver> given the string: "abc de fg\nawef feawfwef fefew\nawf efwaf fewfwewfe \nfewafe fef efefaew\nfewafe fewaf aefwf\n"
shoutsid has joined #ruby
tubuliferous has joined #ruby
<baweaver> adjust the spacing to align the words
<baweaver> left alignment for now
* baweaver goes back to pry
spuk has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
shoutsid has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
Bloodshot has joined #ruby
oetjenj has joined #ruby
devbug__ has quit [Read error: Connection reset by peer]
Bloodshot has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
shoutsid has joined #ruby
shoutsid has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
oetjenj has quit [Ping timeout: 260 seconds]
Oog has joined #ruby
bruno- has joined #ruby
failshell has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
chipotle has joined #ruby
eGGsha has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
diegoaguilar has joined #ruby
favadi has quit [Ping timeout: 246 seconds]
swgillespie[GT] has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alina-malina has joined #ruby
<baweaver> ha, got it
<baweaver> >> s="abc de fg\nawef feawfwef fefew\nawf efwaf fewfwewfe";c=s.lines.reduce([]){|a,l|l.split.map.with_index{|w,i|a[i]?(w.size>a[i]?w.size: a[i]): w.size}};s.lines.map{|l|l.split.map.with_index{|w,i|w.ljust(c[i]+1)}.join}.join("\n")
<ruboto_> baweaver # => "abc de fg \nawef feawfwef fefew \nawf efwaf fewfwewfe " (https://eval.in/451786)
bruno- has quit [Ping timeout: 272 seconds]
<baweaver> probably a more efficient way to do that
michael_mbp has quit [Excess Flood]
<baweaver> what I'm doing is finding the max length of words in each "column" and saving that as an array c
<baweaver> then using ljust by the columns longest word plus one space for padding.
failshell has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
<baweaver> give an argument to the splits and it can be via other characters as well
<baweaver> I'll make a pretty version.
michael_mbp has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shoutsid has joined #ruby
dcarmich has joined #ruby
Oog has quit []
astrobun_ has joined #ruby
tubuliferous has quit [Ping timeout: 255 seconds]
Rollabunna has quit [Quit: Leaving...]
tvw has joined #ruby
tkuchiki has joined #ruby
SylarRuby has joined #ruby
Musashi007 has quit [Quit: Musashi007]
trautwein has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
fullofcaffeine has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
jas02 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
dionysus70 is now known as dionysus69
favadi has joined #ruby
Gnomethrower is now known as Wings
tubuliferous has joined #ruby
Wings is now known as Gnomethrower
ZeeNoodleyGamer has quit [Ping timeout: 246 seconds]
aibot has quit [Remote host closed the connection]
magicalunicorn has quit [Quit: Leaving]
aibot has joined #ruby
tubuliferous has quit [Ping timeout: 265 seconds]
stan has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
symm- has joined #ruby
adac has joined #ruby
beauby has quit [Ping timeout: 250 seconds]
dhjondoh has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
Ropeney has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
dhjondoh has quit [Client Quit]
solars has joined #ruby
lolmaus has joined #ruby
trautwein has joined #ruby
dhjondoh has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
lea has quit [Ping timeout: 250 seconds]
TomyWork has joined #ruby
<Guest84489> Hi guys, I'm doing this map = {'[' => '', ']' => '', '"(' => '(' , '\')"' => '\')', '/^nil$/' => 'NULL' }
<Guest84489> Then I have re = Regexp.new(map.keys.map { |x| Regexp.escape(x) }.join('|'))
<Guest84489> And then I call it here re = Regexp.new(map.keys.map { |x| Regexp.escape(x) }.join('|'))
JohnBat26 has joined #ruby
<Guest84489> the problem is, it's taking everything that is blablan*nil*blah and making it NULL... I want it just to take a line that only has nil not words before or after it
<TomyWork> you pasted the same line twice, Guest84489
Alina-malina has quit [Ping timeout: 250 seconds]
uber has quit [Ping timeout: 240 seconds]
<TomyWork> also you might want to pick a more memorable nickname :)
<Guest84489> TomyWork: sorry.. I call it here sqlFile.write (GenerateSQLInsert(csvFile,eachRow).gsub(re, map))
<Guest84489> oh, my session expired
mark2 has joined #ruby
peteykun has quit [Ping timeout: 250 seconds]
Guest84489 is now known as awk
fullofcaffeine has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
SylarRuby has quit []
<TomyWork> awk oh you're the guy who's doing sql the hard, injection-prone way
<TomyWork> just use a framework
<awk> TomyWork: give me a break , im a noob at ruby
<awk> im trrying and took your advice, I re-did all my code the way you advised
radgeRayden has joined #ruby
<awk> using CSV.parse, etc... and match key -> value with hashes
lamer14449036960 has joined #ruby
awrfas2 has joined #ruby
<TomyWork> awk http://zetcode.com/db/mysqlrubytutorial/ ctrl-f prepared statements
<TomyWork> this is for mysql
<TomyWork> might work similarly for other databases
etrae has quit [Ping timeout: 240 seconds]
<awk> got it working thanks
dhjondoh has quit [Quit: dhjondoh]
Alina-malina has joined #ruby
<awk> TomyWork: I'm going to go through that in my ruby book, because i see it's going to save me allot of time.. im using to much of a 'bash' mentality when using ruby and thats my downfall.. thats why I re-wrote it using the CSV gem and GoogleDrive gem
lea has joined #ruby
shoutsid has quit [Remote host closed the connection]
<TomyWork> think of prepared statements as the equivalent of the quote-every-expansion rule then :)
timonv has joined #ruby
grekkos has quit [Ping timeout: 260 seconds]
dhjondoh has joined #ruby
uber has joined #ruby
shoutsid has joined #ruby
lsmola_ has joined #ruby
jas02 has quit [Ping timeout: 252 seconds]
djbkd has quit [Quit: My people need me...]
bruno- has joined #ruby
firstdayonthejob has quit [Ping timeout: 252 seconds]
dhjondoh has quit [Client Quit]
jas02 has joined #ruby
shoutsid has quit [Ping timeout: 255 seconds]
GriffinHeart has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
lea has quit [Ping timeout: 272 seconds]
khebbie has joined #ruby
uber has quit [Ping timeout: 252 seconds]
shoutsid has joined #ruby
trautwein has quit [Quit: Textual IRC Client: www.textualapp.com]
trautwein has joined #ruby
patdohere has joined #ruby
ndrei has joined #ruby
GriffinHeart has joined #ruby
tkuchiki has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
Rutix has joined #ruby
Rutix has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
shoutsid has quit []
grn has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
fullofcaffeine has joined #ruby
khebbie has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
SCHAAP137 has joined #ruby
rushed has joined #ruby
patdohere has quit [Quit: Textual IRC Client: www.textualapp.com]
shoutsid has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pharaoh2 has joined #ruby
lenwood has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
lea has joined #ruby
uber has joined #ruby
subscope has joined #ruby
grekkos has joined #ruby
ZeeNoodleyGamer has joined #ruby
ZeeNoodleyGamer is now known as Guest40665
nekomimimaid has quit [Quit: Leaving]
michael_mbp has quit [Excess Flood]
waxjar has joined #ruby
dhjondoh has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
duncannz has joined #ruby
michael_mbp has joined #ruby
bigkevmcd has joined #ruby
pharaoh2 has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has joined #ruby
pharaoh2 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
fullofcaffeine has joined #ruby
krz has joined #ruby
zenguy_pc has quit [Ping timeout: 272 seconds]
Kara has joined #ruby
<waxjar> does anyone know a good way of sharing a folder of configuration files between different rack deployments? i'd like to deploy config changes separate from application code changes. config changes apply to multiple rack apps, so i'd like to be able to deploy them to all apps at once, but it should also be possible to deploy them to a subset them
dmolina has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Kara_ has joined #ruby
yeshacker has joined #ruby
<bougyman> waxjar: puppet or chef.
doddok has joined #ruby
krisquigley has joined #ruby
Sembei has joined #ruby
rushed has quit [Quit: rushed]
BSaboia has joined #ruby
astrobun_ has quit [Remote host closed the connection]
rushed has joined #ruby
grn has quit []
BSaboia has quit [Read error: Connection reset by peer]
joncol has joined #ruby
Voker57 has joined #ruby
<joncol> How would I test (using rspec) that a method m in module M calls a method n in the same module M? I want to mock the method n, and just test that the method m does what it should.
ifmy has joined #ruby
tkuchiki has joined #ruby
lenwood has quit [Remote host closed the connection]
pvac is now known as v
v is now known as pvac
atmosx has joined #ruby
ndrei has joined #ruby
astrobun_ has joined #ruby
acidrainfall has joined #ruby
zenguy_pc has joined #ruby
joonty has joined #ruby
<certainty> joncol: expect(M).to receive(:n).and_return(someting); M.m
havenn has quit [Ping timeout: 250 seconds]
mdih has joined #ruby
dostoyevsky has quit [Quit: leaving]
mdih has quit [Max SendQ exceeded]
karapetyan has joined #ruby
<certainty> alternatively: before { allow(M).to receive(:n) }; it "works" { M.m; expect(M).to have_received(:n) }
mdih has joined #ruby
kimegede has joined #ruby
chthon has joined #ruby
wpp has joined #ruby
Kendos-Kenlen has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
ChampS_ has joined #ruby
MrDSmith has left #ruby ["Leaving"]
<ChampS_> jhass: good morning, I imploded and removed my .rvm dir from Ben home directory and installed it in another users homedir. But when I wanna use this command "passenger-install-apache2-module" as that other user, it returns /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find passenger. As User Ben it will work, but I stopped it.
nofxx has quit [Read error: Connection reset by peer]
failshell has joined #ruby
awrfas2 has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Read error: Connection reset by peer]
etrae has joined #ruby
krz has quit [Ping timeout: 268 seconds]
RobertBirnie has joined #ruby
djbkd has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
failshell has quit [Ping timeout: 252 seconds]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
XxionxX has quit [Ping timeout: 240 seconds]
krz has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
miskatonic has joined #ruby
last_staff has quit [Quit: last_staff]
tkuchiki has quit [Remote host closed the connection]
DEA7TH has joined #ruby
<EdwardIII> hey if you wanted to say do 3 tasks at the same time (e.g. 3 slow http calls) then aggregate all the results to display them what would be the right tool for that? Background worker?
<EdwardIII> in python i'd probably use celery
blaxter has joined #ruby
marr has joined #ruby
<EdwardIII> also i use rails - not sure if that has anything builtin for this
User458764 has joined #ruby
baweaver has quit [Remote host closed the connection]
dikaio has quit [Quit: ........]
<miskatonic> is there a canonical way to implement stacked hashes in ruby?
<joncol> certainty: thanks. It didn't work in my case. I'm trying to test some EventMachine stuff. Specifically I want to test that send_datagram is called by my receive_data method when it gets certain data. But I get the error that "PingServer does not implement: send_datagram", where PingServer is my module m.
<EdwardIII> maybe EventMachine would be the right choice for me actually? although that mostly seems to be to do with async network stuff rather than just firing off things into an eventloop...
chipotle has joined #ruby
leafybas_ has quit [Remote host closed the connection]
lamer14449036960 has quit [Read error: Connection reset by peer]
lamer14449848587 has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
beast has quit [Quit: Leaving]
Kendos-Kenlen has joined #ruby
UtkarshRay has joined #ruby
<certainty> joncol: what kind of method is that in your module? Can you gist what you did?
tkuchiki has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alina-malina has quit [Ping timeout: 250 seconds]
Guest40665 has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
BSaboia has joined #ruby
shredding has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
psy_ has joined #ruby
lessless has joined #ruby
<certainty> joncol: if you want to test the methods like this you have to include the module into a class and run the expectations on the class. If the methods make sense on their own, you can make them module_functions and have your expectations as I showed
kalz has quit [Quit: exit]
bMalum has quit [Quit: bMalum]
<joncol> certainty: Cool, I have to read up on module_function. Long time since Ruby.
kalzz has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
peteykun has joined #ruby
Kara_ has quit [Ping timeout: 244 seconds]
Kara has quit [Ping timeout: 244 seconds]
<certainty> &ri Module#module_function
User458764 has joined #ruby
lokson has joined #ruby
<certainty> joncol: cool. Welcome back :)
<certainty> Oh haskell gists
<joncol> certainty: yes, experimented with Haskell for a while :)
<certainty> cool i like that
lolmaus has joined #ruby
mprelude_ has joined #ruby
atomical has joined #ruby
bMalum_ has joined #ruby
fullofcaffeine has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Peg-leg has joined #ruby
<yorickpeterse> ohai
leafybasil has joined #ruby
leafybas_ has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
subscope has joined #ruby
kalz has joined #ruby
leafybasil has quit [Ping timeout: 265 seconds]
cwong_on_irc has quit [Quit: Leaving.]
fullofcaffeine has quit [Ping timeout: 240 seconds]
Porfa has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
<Porfa> hello
<Porfa> why isn't coco in the report? why isn't the var being printed on the mail?… https://gist.github.com/anonymous/192d7e2007d71a584e5e
awrfas2 has joined #ruby
mprelude_ has quit [Quit: WeeChat 1.3]
tkuchiki has quit [Remote host closed the connection]
Kara has joined #ruby
<adaedra> ''-strings don't do interpolations, only ""-strings do
Kara_ has joined #ruby
etrae has quit [Ping timeout: 260 seconds]
<adaedra> >> a = :foo; [ 'a#{a}a', "a#{a}a" ]
<ruboto_> adaedra # => ["a\#{a}a", "afooa"] (https://eval.in/451842)
BSaboia has quit [Quit: Leaving]
AlexRussia has quit [Ping timeout: 240 seconds]
Kara__ has joined #ruby
Kara___ has joined #ruby
soc42 has joined #ruby
tkuchiki has joined #ruby
<Porfa> adaedra: it's still not passing in the damn mail, but thanks
Kara has quit [Ping timeout: 246 seconds]
Kara_ has quit [Ping timeout: 240 seconds]
<adaedra> remove the $
vigintas has joined #ruby
lokson has quit [Ping timeout: 265 seconds]
spacemud has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<Porfa> adaedra: didn't come :(
BustyLoli-Chan has joined #ruby
bruno- has joined #ruby
<ddv> coco...
Kara__ has quit [Read error: Connection reset by peer]
Kara___ has quit [Read error: Connection reset by peer]
<Porfa> damn coconuts!
Kara_ has joined #ruby
pharaoh2 has quit [Quit: Textual IRC Client: www.textualapp.com]
Kara has joined #ruby
Igorshp has joined #ruby
LMity has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
BustyLoliChan has quit [Ping timeout: 246 seconds]
vigintas has quit [Quit: vigintas]
vigintas has joined #ruby
<EdwardIII> but i want to be able to do multiple requests for sort of... anything, like i can in js or with celery
bruno- has quit [Ping timeout: 240 seconds]
<EdwardIII> not necessarily just http requests
duncannz has quit [Remote host closed the connection]
<joncol> certainty: still not sure about how to test the EventMachine stuff. The problem is that send_datagram is not a member of my module, it is part of EventMachine::Connection, which dynamically mixes in my module. So how could I set up mock expectations for send_datagram to be called?
astrobun_ has quit [Remote host closed the connection]
vigintas has quit [Client Quit]
vigintas has joined #ruby
Hounddog has joined #ruby
<Porfa> this never happened to me before.. i can't put the contents of a var, but the var name instead
fullofcaffeine has joined #ruby
vigintas has quit [Client Quit]
vigintas has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grekkos has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
platzhirsch has joined #ruby
_Archyme_ has joined #ruby
Archyme_ has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Remote host closed the connection]
haxrbyte has joined #ruby
nettoweb has joined #ruby
dawkirst has joined #ruby
RobertBirnie has joined #ruby
Kara_ has quit [Ping timeout: 240 seconds]
Kara has quit [Ping timeout: 240 seconds]
quazimodo has joined #ruby
dawkirst has quit [Client Quit]
Kara has joined #ruby
haxrbyte_ has quit [Ping timeout: 240 seconds]
Kara_ has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest75348
haxrbyte has quit [Read error: Connection reset by peer]
vondruch has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
RobertBirnie has quit [Client Quit]
LMity has quit [Ping timeout: 272 seconds]
joncol has quit [Ping timeout: 246 seconds]
fullofca_ has joined #ruby
<EdwardIII> sorry i'm really new to ruby but... i'm confused as hell as to why "uninitialized constant EventMachine::MultiRequest (NameError)":: https://gist.github.com/EdwardIII/8fba3c250a951a9ae8a0
fullofcaffeine has quit [Ping timeout: 260 seconds]
Guest75348 has quit [Ping timeout: 256 seconds]
chipotle has quit [Max SendQ exceeded]
GriffinHeart has joined #ruby
bruno-_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<EdwardIII> ah i think i have two versions installed: eventmachine (1.0.8, 1.0.4) heh how the hell did that happen
varunwachaspati has joined #ruby
<EdwardIII> hmm ok down to 1 version but still seeing the error
khebbie has joined #ruby
lessless has quit [Ping timeout: 260 seconds]
Kara_ has quit [Ping timeout: 246 seconds]
Kara has quit [Ping timeout: 246 seconds]
htmldrum has joined #ruby
chipotle has joined #ruby
User458764 has joined #ruby
zenguy_pc has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
Porfa has quit [Quit: Porfa]
GriffinHeart has quit [Remote host closed the connection]
<workmad3> EdwardIII: that would probably be because MultiRequest comes from the em-http-request gem, which you will need to install & require
GriffinHeart has joined #ruby
workmad3 has quit [Quit: Reconnecting]
Porfa has joined #ruby
workmad3 has joined #ruby
<ChampS_> I have a user Ben and a user Ruby, as the name describes, the ruby user is for my ruby installation. In my ruby users home dir now I have a .rvm and a .gem directory. So I installed rvm for this user. Now I tried this: passenger-install-apache2-module with my ruby user, but an error appears /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find passenger (>= 0). But I've
<ChampS_> installed ruby-passenger with apt-get. With my user Ben, I can execute this command without any problem
nettoweb has quit [Ping timeout: 244 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
Porfa has quit [Read error: Connection reset by peer]
Porfa has joined #ruby
Porfa has quit [Read error: Connection reset by peer]
Porfa has joined #ruby
Kara has joined #ruby
Kara_ has joined #ruby
rdark has joined #ruby
rdark has joined #ruby
bruno-_ has quit [Ping timeout: 244 seconds]
zenguy_pc has joined #ruby
nfk|laptop has quit [Quit: yawn]
User458764 has quit [Ping timeout: 244 seconds]
Kara__ has joined #ruby
Kara___ has joined #ruby
Alina-malina has joined #ruby
Kara__ has quit [Remote host closed the connection]
Kara_ has quit [Ping timeout: 246 seconds]
Kara has quit [Ping timeout: 246 seconds]
Kara___ has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
Rollabunna has joined #ruby
cdg has joined #ruby
Kara_ has joined #ruby
Kara has joined #ruby
joncol has joined #ruby
fullofca_ has quit [Ping timeout: 260 seconds]
adac has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
tubuliferous has joined #ruby
subscope has quit [Ping timeout: 244 seconds]
tmtwd has joined #ruby
fullofcaffeine has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
failshell has quit [Ping timeout: 268 seconds]
dEPy has joined #ruby
bkxd has joined #ruby
joonty has quit [Quit: joonty]
_Archyme_ has quit [Read error: Connection reset by peer]
<shevy> ChampS_ yeah you use more than one ruby version so problems appear
<EdwardIII> workmad3: damn
chipotle has quit [Quit: cheerio]
<darix> ChampS_: if i recall correctly you dont need to have passenger in your gemfile
<workmad3> EdwardIII: you don't want to install another gem? :)
<EdwardIII> workmad3: no, i love installing gems. more in reference to the fact i didn't realise that it was a separate module
<workmad3> hehe :)
User458764 has joined #ruby
phutchins has joined #ruby
<EdwardIII> back after playing a bit more i'm starting to think that something like Sidekiq might be better than just EventMachine if i want to execute anything async and get a result rather than just, saw, bare http requests
stardiviner has joined #ruby
<nofxx> EdwardIII, sidekiq is almost better than a toaster. Really can't tell which one I could live w/o.
Feyn has quit [Quit: Leaving]
<nofxx> toaster is the second greatest invetion of mankind, follow by sliced bread*
<EdwardIII> you're referring to the mechanical toaster rather than the ruby lib 'toaster' right?
<nofxx> yup
<EdwardIII> just looking with someone here about doing a little social network aggregator thing for giggles
<EdwardIII> and didn't want it to slow down with each new network it queries
<nofxx> that quote is nice, just wanted to say sidekiq rocks. Btw, I prefer italian bread, slice and toast... hmm. olive oil or cheese. hehe
<EdwardIII> heh sorry which quote?
<nofxx> EdwardIII, scale horizontally easily with sidekiq... you're db will be the bottleneck quickly
<nofxx> EdwardIII, toaster second great invention followed by sliced bread
<shevy> lol
<miskatonic> sliced arrays?
joonty has joined #ruby
<dEPy> Are there any examples of really good object oriented ruby code?
kristofferR has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
soc42 has quit [Read error: Connection reset by peer]
<dEPy> Something beyond a trivial app.
<shevy> everywhere
<EdwardIII> it's all on github you can look at rails eh?
<shevy> look at the source code of rack
<ChampS_> shevy: right, but for rvm this should be no problem I think
<miskatonic> is rexml really good object oriented code?
<EdwardIII> although as a non-ruby dev i found this pretty nice: http://sirupsen.com/what-I-wish-a-ruby-programmer-had-told-me-one-year-ago/
<dEPy> maybe something with 'a bit' less code than rails :D
<shevy> ChampS_ I would think so too but then why does it use /usr/lib/ruby/1.9.1 path when it resides in your $HOME dir
<ChampS_> mh that's the million dollar question
<shevy> you have two "gem" commands installed right?
<ChampS_> I think the ruby-passenger from apt-get will brings that second ruby
rushed has quit [Quit: rushed]
krz has quit [Quit: WeeChat 1.2]
<ChampS_> gem env returns: GEM PATHS: - /var/lib/gems/1.9.1 - /home/Ben/.gem/ruby/1.9.1 - /usr/share/rubygems-integration/1.9.1
grekkos has joined #ruby
<shevy> use the rvm gem too
<shevy> the above output looks like debian-gem output
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
<ChampS_> I try to uninstall the debian ruby package
<ChampS_> lets see whats happens
failshell has joined #ruby
rodfersou has joined #ruby
mikecmpbll has quit [Quit: ciao.]
fullofcaffeine has quit [Ping timeout: 260 seconds]
Igorshp has quit [Remote host closed the connection]
grekkos has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
cdg has quit [Remote host closed the connection]
Pupp3tm4st3r has quit [Remote host closed the connection]
rushed has joined #ruby
Kara_ has quit [Remote host closed the connection]
Kara_ has joined #ruby
bMalum_ has quit [Quit: bMalum_]
Igorshp has joined #ruby
adac has joined #ruby
bMalum has joined #ruby
dEPy has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dhjondoh has quit [Quit: dhjondoh]
tenderlove has quit [Ping timeout: 255 seconds]
dhjondoh has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 268 seconds]
paolochiodi has joined #ruby
lsmola_ has quit [Ping timeout: 246 seconds]
stamina has joined #ruby
subscope has joined #ruby
GriffinHeart has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
<paolochiodi> Hi, does already exist a gem that can concat Enumerables? So that when I dot concatenated.next it will return me elements from the first until it's empty then return from the second?
<paolochiodi> this could be useful for lazy enumerables
dhjondoh has quit [Client Quit]
shredding has quit [Ping timeout: 252 seconds]
GnuYawk has quit [Ping timeout: 240 seconds]
gregoriokusowski has joined #ruby
dhjondoh has joined #ruby
dhjondoh has quit [Client Quit]
Xzanron has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
miskatonic has quit [Quit: miskatonic]
Igorshp has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
deps has joined #ruby
karapetyan has joined #ruby
devoldmx has joined #ruby
Rickmasta has joined #ruby
etrae has joined #ruby
Igorshp has joined #ruby
Voker57 has quit [Remote host closed the connection]
awrfas2 has quit [Ping timeout: 240 seconds]
khebbie has joined #ruby
Pupp3tm4st3r has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 265 seconds]
karapetyan has joined #ruby
big|bad|wolf has joined #ruby
<jhass> ChampS_: you did gem install passenger inside your new RVM environment? again check rvm current to make sure it's active
dmolina has quit [Quit: Leaving.]
crdpink has quit [Quit: q term]
User458764 has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
WizJin has quit [Excess Flood]
freezevee has joined #ruby
fullofcaffeine has joined #ruby
User458764 has quit [Client Quit]
syath has joined #ruby
sdothum has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
khebbie has quit [Ping timeout: 268 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
JJM has joined #ruby
_el_fer_ has joined #ruby
p0wn3d_ has joined #ruby
failshell has quit [Remote host closed the connection]
patrick_star has joined #ruby
peteykun has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
gregf has joined #ruby
YaknotiS has joined #ruby
WizJin has joined #ruby
jenrzzz has joined #ruby
ifmy has quit [Quit: Page closed]
Kara_ has quit [Remote host closed the connection]
dionysus69 has joined #ruby
paolochiodi has quit [Quit: paolochiodi]
psy_ has quit [Ping timeout: 260 seconds]
fedexo has joined #ruby
teclator has joined #ruby
lxsameer has joined #ruby
prestorium_ has joined #ruby
Kara has quit [Ping timeout: 246 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atmosx has quit [Quit: Lost in trance]
n008f4g_ has joined #ruby
pvac has quit [Quit: Leaving]
Bellthoven has joined #ruby
karapetyan has quit [Remote host closed the connection]
V1s1ble has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
<EdwardIII> tbh as none of the languages i've used really support threading (other than a bit of C# back in the day) it's kind of a foreign concept to me
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<EdwardIII> i see stuff like "requires thread-safety of your code and all dependencies." and i'm like... how big an issue is that for me?
Icey has joined #ruby
beauby has joined #ruby
Kara has joined #ruby
riotjone_ has joined #ruby
Kara_ has joined #ruby
tomaz_b has joined #ruby
Guest67473 is now known as b3nt_pin
b3nt_pin is now known as beagles
krisquigley has quit [Remote host closed the connection]
riotjon__ has quit [Ping timeout: 272 seconds]
zenguy_pc has quit [Ping timeout: 268 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
Kara_ has quit [Remote host closed the connection]
supergeek has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kara__ has joined #ruby
Kara_ has joined #ruby
Kara has quit [Read error: No route to host]
Coldblackice has quit [Ping timeout: 260 seconds]
Kendos-Kenlen has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
GriffinHeart has joined #ruby
Kara__ has quit [Ping timeout: 260 seconds]
Kara_ has quit [Ping timeout: 260 seconds]
prestorium_ is now known as prestorium
paolochiodi has joined #ruby
big|bad|wolf has joined #ruby
flughafen_ has joined #ruby
beauby has quit [Ping timeout: 260 seconds]
gregf has quit [Quit: WeeChat 1.3]
Kara_ has joined #ruby
Kara has joined #ruby
haxrbyte_ has joined #ruby
zenguy_pc has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
gregf has joined #ruby
User458764 has joined #ruby
gregf has quit [Client Quit]
Igorshp has quit [Remote host closed the connection]
V1s1ble has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
naftilos76 has joined #ruby
tvw has joined #ruby
beauby has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kara has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 268 seconds]
fullofcaffeine has quit [Ping timeout: 260 seconds]
joncol has quit [Quit: leaving]
Igorshp has joined #ruby
htmldrum has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
big|bad|wolf has joined #ruby
sgambino has joined #ruby
Kara has joined #ruby
Zackio has joined #ruby
nateberkopec has quit [Client Quit]
big|bad|wolf has quit [Client Quit]
fullofcaffeine has joined #ruby
khebbie has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
<odigity> It's great that we have structured metadata formats like RDoc and gemspec that makes awesome tools like rubygems.org and rdoc.info possible. I'm surprised there's not yet one for Changelogs. Would love to make a dashboard that shows me changes across all my gems in the last week/month/etc
workmad3 has quit [Quit: Lost terminal]
Igorshp has quit [Remote host closed the connection]
paolochiodi has quit [Quit: paolochiodi]
<EdwardIII> hrm looks like you can't do this multi callback-type thing with sidekiq: https://gist.github.com/EdwardIII/0175e280bf39a2a3e2d9
<EdwardIII> unless you get their non-foss pro thing that includes 'batches'
<EdwardIII> and it kinda looks like you can't do that with resque either, seems more like a normal message queue
jessemcgilallen has joined #ruby
c0m0 has joined #ruby
nateberkopec has joined #ruby
Bellthoven has quit []
segfalt has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
ndrei has quit [Ping timeout: 250 seconds]
V1s1ble has quit [Ping timeout: 260 seconds]
`tim` has joined #ruby
karapetyan has quit [Remote host closed the connection]
Kendos-Kenlen has joined #ruby
subscope has joined #ruby
workmad3 has joined #ruby
Kara has quit [Remote host closed the connection]
segfalt_ has joined #ruby
Kendos-Kenlen has quit [Remote host closed the connection]
blackjid has quit [Max SendQ exceeded]
prefixed has joined #ruby
blackjid has joined #ruby
segfalt has quit [Ping timeout: 260 seconds]
segfalt_ is now known as segfalt
Kara has joined #ruby
solocshaw has joined #ruby
Kendos-Kenlen has joined #ruby
Encapsulation has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 255 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peteykun has joined #ruby
atomical has joined #ruby
JohnBat26 has joined #ruby
`tim` has joined #ruby
`tim` has quit [Client Quit]
Kara has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
Gnomethrower has quit [Ping timeout: 240 seconds]
Kara has joined #ruby
khebbie has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
Zamyatin has joined #ruby
tk__ has joined #ruby
naftilos76 has quit [Ping timeout: 246 seconds]
Porfa_ has joined #ruby
Porfa has quit [Read error: Connection reset by peer]
Porfa_ is now known as Porfa
grekkos has joined #ruby
Encapsulation has joined #ruby
Porfa has quit [Client Quit]
haylon has joined #ruby
Kendos-Kenlen has quit [Remote host closed the connection]
Zackio has quit [Remote host closed the connection]
mdih has quit [Remote host closed the connection]
sanjayu has quit [Ping timeout: 240 seconds]
Zamyatin has quit [Ping timeout: 268 seconds]
<EdwardIII> ah actually it looks like i might be able to use sidekiq along with this lib that turns the jobs (tasks? threads? workers?) into promises: https://github.com/jamesotron/sidekiq-promise
JohnBat26 has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 260 seconds]
tvw has quit []
grekkos has quit [Ping timeout: 272 seconds]
rwilcox has joined #ruby
Zackio has joined #ruby
fullofcaffeine has joined #ruby
Chaoborid has joined #ruby
hindenbu_ has joined #ruby
Kara has quit [Remote host closed the connection]
<odigity> I googled "ruby changelog standard", and this is the one relevant link I found: https://github.com/tech-angels/vandamme/
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
supergeek has quit [Quit: WeeChat 1.3]
trampi has joined #ruby
JDiPierro has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
failshell has joined #ruby
hindenbu_ has quit [Client Quit]
hindenbu_ has joined #ruby
dmolina has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
Kara_ has quit [Ping timeout: 240 seconds]
Guest50 has joined #ruby
__chris has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Chaoborid has left #ruby [#ruby]
Kendos-Kenlen has joined #ruby
gregf has joined #ruby
k3asd` has joined #ruby
devdazed has joined #ruby
Quandl has quit [Quit: Textual IRC Client: www.textualapp.com]
yeshacker has quit [Ping timeout: 265 seconds]
GriffinHeart has joined #ruby
big|bad|wolf has joined #ruby
hindenbu_ is now known as hindenbug
GriffinHeart has quit [Remote host closed the connection]
hindenbug has quit [Quit: Textual IRC Client: www.textualapp.com]
avahey has joined #ruby
AlexRussia has joined #ruby
hindenbug has joined #ruby
GriffinHeart has joined #ruby
iamjarvo_ has joined #ruby
blackmesa has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
Kara has joined #ruby
khebbie has joined #ruby
TheHodge has joined #ruby
Kara_ has joined #ruby
awrfas2 has joined #ruby
`tim` has joined #ruby
Chaoborid has joined #ruby
etrae has quit [Ping timeout: 252 seconds]
fedexo has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
cwong_on_irc has joined #ruby
cdg has joined #ruby
JJM has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
Chaoborid has quit []
Azulinho has joined #ruby
cwong_on_irc has quit [Client Quit]
sankaber has joined #ruby
sepp2k has joined #ruby
awrfas2 has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subscope has joined #ruby
bmurt has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
hindenbug has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs_ has joined #ruby
fullofcaffeine has joined #ruby
inteq has quit [Remote host closed the connection]
_el_fer_ has quit [Quit: Leaving]
prestorium has quit [Ping timeout: 250 seconds]
hindenbug has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigmac_ has joined #ruby
jenrzzz has joined #ruby
quazimodo has joined #ruby
big|bad|wolf has joined #ruby
houhoulis has joined #ruby
rippa has joined #ruby
lavros has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
JDiPierro has quit [Remote host closed the connection]
Voker57 has joined #ruby
victortyau has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
big|bad|wolf has quit [Client Quit]
Mon_Ouie has joined #ruby
big|bad|wolf has joined #ruby
fullofcaffeine has joined #ruby
cajone has quit [Ping timeout: 272 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bigmac_> im looking to do math with incredibly large numbers...
<bigmac_> i dont want to see this infinity" when trying to do this math
houhoulis has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
Cyther has joined #ruby
Guest50 has joined #ruby
davedev24 has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
hindenbug has left #ruby ["Textual IRC Client: www.textualapp.com"]
caliostro has joined #ruby
<caliostro> hi
<jhass> &ri BigNum BigDecimal BigMath @bigmac_
<jhass> ah, Bignum, not BigNum
<bigmac_> i see
<EdwardIII> om nom bignum
chussenot has joined #ruby
kimegede has quit [Quit: Linkinus - http://linkinus.com]
JDiPierro has joined #ruby
rewzn has joined #ruby
Azulinho has quit [Ping timeout: 268 seconds]
hindenbug has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
favadi has joined #ruby
<bigmac_> thank you, im trying bigdecimal now,
<bigmac_> also, when a calculator cant print out the data because its to large, you might see something like this
<bigmac_> 5.0505050555505e+245
<bigmac_> how can i salve this equation in ruby?
<jhass> >> 5.0505050555505e+245
<ruboto_> jhass # => 5.0505050555505e+245 (https://eval.in/452059)
<jhass> >> "%d" % 5.0505050555505e+245
<ruboto_> jhass # => "505050505555050027411682610093162639191707102445083998136999255337586664724449168995470686397553704 ...check link for more (https://eval.in/452060)
roshanavand has joined #ruby
<bigmac_> god you are amazing
<ChampS_> jhass: sry I didn't know that I can install passenger with gem itself. But now I have and this works fine except that apache can't start because it can't handle RailsEnv and several properties I defined in my sites-available apache config
<adaedra> jhass is a god? :o
<jhass> adaedra: only a pope, some people can't tell the difference
<adaedra> :')
<jhass> ChampS_: that doesn't sound like you have passenger loaded
momomomomo has joined #ruby
dopamean_ has quit [Ping timeout: 268 seconds]
<ChampS_> used gem install passenger and then passenger-install-apache2-module
<bigmac_> "%d" % 5.0505050555505e+245
<ChampS_> both was running successfully
<bigmac_> can this be explained with basic math terms?
favadi has quit [Client Quit]
<jhass> bigmac_: "explained"?
<bigmac_> "%d" => not sure what this is and why its in quote
<jhass> ennn means * 10 to the power of nnn
AnoHito_ has joined #ruby
<bigmac_> i see
<jhass> and that's basically just moving the . to the right by nnn places
AnoHito has quit [Ping timeout: 260 seconds]
<bigmac_> yes i see. read this last night
<deps> >> 10+1+30
<bigmac_> how accurate is this in ruby? exactly?
<ruboto_> deps # => 41 (https://eval.in/452061)
roshanavand has quit [Remote host closed the connection]
<deps> cool bot!
Rollabunna has quit [Quit: Leaving...]
<EdwardIII> jhass: think you can smash your popemobile into my async issues?
<jhass> >> 5.0505050555505e+245.class
<ruboto_> jhass # => Float (https://eval.in/452063)
roshanavand has joined #ruby
<jhass> bigmac_: ^ so it's just a Float, IEEEIcanneverrememberthenumber precision issues apply
<moss> I am thinking of switching my Rails server from Unicorn to Puma. Do I need to make any code changes to have this work properly or is it just a matter of deployment?
stannard has joined #ruby
k3asd` has quit [Remote host closed the connection]
<jhass> bigmac_: https://en.wikipedia.org/wiki/IEEE_floating_point discusses some iirc
tomaz_b has quit [Quit: Leaving]
davethecat has joined #ruby
<bigmac_> jhass: so, if im looking to perform this large math and want precise results, its best to use something like bigdecimal ?
tagrudev has quit [Remote host closed the connection]
<jhass> ?rails moss
<ruboto_> moss, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
zenguy_pc has quit [Ping timeout: 272 seconds]
s2013 has joined #ruby
<jhass> bigmac_: yeah
sankaber has quit [Remote host closed the connection]
AnoHito_ has quit [Read error: Connection reset by peer]
<davethecat> Can anyone please help? When i use .reverse_each method i have no problem, but when i change it to .each i get error "undefined method `source_key' for nil:NilClass"
freezevee has quit [Remote host closed the connection]
sankaber has joined #ruby
AnoHito_ has joined #ruby
aganov has quit [Quit: aganov]
<jhass> EdwardIII: I still don't know eventmachine
dopie has quit [Quit: This computer has gone to sleep]
<jhass> ?code davethecat
<ruboto_> davethecat, We can't help you without your code, please post it to https://gist.github.com
qba73 has joined #ruby
<davethecat> doh fixed it
<EdwardIII> jhass: hmm maybe a lot of people don't bump into these kind of issues
<EdwardIII> i'd think it's fairly common though
<EdwardIII> pretty much everything i do is very http-request-heavy
Igorshp has quit [Remote host closed the connection]
marr has quit [Ping timeout: 260 seconds]
<EdwardIII> doing that kind of stuff in php is an absolute, complete and utter nightmare
naftilos76 has joined #ruby
<EdwardIII> doing it in JS is pretty simple
lucas has joined #ruby
last_staff has joined #ruby
Xzanron has quit [Quit: Leaving]
<pcfreak30> What is the ruby feature called for this syntax ":controller => 'site', :action => 'login'"
<bigmac_> jhass: ok, one more thing lol how can i multiply X by 2(800.times)
<havenwood> pcfreak30: A Hash. Those `=>`s are called Hash rockets.
<bigmac_> with out using a loop?
<bigmac_> 800.times{|y| x*2}
davethecat has left #ruby ["Leaving"]
<pcfreak30> havenwood: do you need {} if passing multiple hashes
karapetyan has joined #ruby
Igorshp has joined #ruby
fullofca_ has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
momomomomo has quit [Quit: momomomomo]
stardiviner has quit [Ping timeout: 260 seconds]
favadi has joined #ruby
lucas has quit [Client Quit]
momomomomo has joined #ruby
teclator has quit [Quit: leaving]
stardiviner has joined #ruby
lucas has joined #ruby
last_staff has quit [Quit: last_staff]
karapetyan has quit [Ping timeout: 250 seconds]
peteykun has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
Zamyatin has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
parus has joined #ruby
varunwachaspati has quit [Quit: Connection closed for inactivity]
<caliostro> how can i add clean task to an array of prerequisities tasks?
zenguy_pc has joined #ruby
joneshf-laptop has joined #ruby
cball has quit [Quit: Leaving]
<caliostro> need something like this task :compile => clean + sources do |t,args|
<canton7> task :task1 => [:task2, :task3] do ...
sdothum has quit [Read error: Connection reset by peer]
<canton7> ^ that's the syntax. you can use all of ruby's array methods to make that array of dependent tasks
cajone has joined #ruby
Dopagod has joined #ruby
fullofca_ has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
sdothum has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
<caliostro> found! task :compile => ( sources.unshift(:clean) ) do |t,args|
fullofcaffeine has joined #ruby
cball has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
gregf has joined #ruby
<EdwardIII> beautiful
kies^ has joined #ruby
prestorium has joined #ruby
htmldrum has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> caliostro, task :compile => [*sources, :clean] do ... is another
<caliostro> i nees to prepend the clean task
ruurd has joined #ruby
<canton7> oops
<canton7> => [:clean, *sources]
<canton7> then :clean comes "before" *sources visually, as well
<caliostro> ah, ok! let me see the * operator
<canton7> it's called the "splat operator", for your googling
<caliostro> rake is not my preferred tool, i prefer mallet (big hammer)
tenderlove has joined #ruby
<canton7> that's very hard to google for, apparently
<canton7> given that mallets are often used in building stuff...
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
htmldrum has quit [Ping timeout: 256 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
treehug88 has joined #ruby
p0wn3d_ has quit [Ping timeout: 244 seconds]
subscope has joined #ruby
<EdwardIII> so in ruby, fat arrow doesn't just mean "value for this hash key?"
dopamean_ has joined #ruby
doddok has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 268 seconds]
<canton7> that's what it means here, as well
<jhass> it's also used in the rescue clause, but that's all I remember atm
pandaant has joined #ruby
<canton7> expanded, that's task({:compile => [stuff]) do ... end
DoubleMalt has quit [Remote host closed the connection]
<canton7> oops, task({:compile => [stuff]}) do .. end
qba73 has quit []
<EdwardIII> ah ok that makes it clearer heh
Rollabunna has joined #ruby
Dreamer3 has joined #ruby
jas02 has quit [Quit: jas02]
Kara_ has quit [Ping timeout: 244 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vigintas has joined #ruby
s2013 has joined #ruby
Kara has quit [Ping timeout: 264 seconds]
axl_ has joined #ruby
<EdwardIII> so in ruby, if it's all on one line, you can just plug away with key/value pairs and it's shorthand for a hash?
<canton7> when you're calling a method, you can skip the {} around hashes and ruby will insert them
<EdwardIII> right ok
Jardayn has joined #ruby
<EdwardIII> just a little more sugar then
ledestin has joined #ruby
<EdwardIII> kinda does away with the need for kwargs too then i guess
idefine has joined #ruby
<canton7> I think that was the intention - you can also use foo: 3 instead of :foo => 3
<EdwardIII> although it looks like you have that now too
<canton7> .. but it has downsides to kwargs, so that came later
<EdwardIII> does it?
<canton7> using standard parameters is easy. plucking the values you want out of a hash starts to get annoying
lolmaus has quit [Quit: Konversation terminated!]
jessemcgilallen has joined #ruby
ndrei has joined #ruby
dmolina1 has joined #ruby
dmolina has quit [Read error: Connection reset by peer]
matp has joined #ruby
polysics has joined #ruby
Alina-malina has joined #ruby
matp has quit [Max SendQ exceeded]
wpp has quit [Quit: ZZZzzz…]
User458764 has joined #ruby
matp has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
matp has quit [Max SendQ exceeded]
Igorshp has quit [Remote host closed the connection]
SamGerber has joined #ruby
Igorshp has joined #ruby
matp has joined #ruby
shredding has joined #ruby
matp has quit [Max SendQ exceeded]
ruurd has joined #ruby
matp has joined #ruby
nfk|laptop has quit [Read error: Connection reset by peer]
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
Peg-leg has quit [Quit: Leaving.]
skweek has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
p0wn3d_ has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fullofcaffeine has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 240 seconds]
Porfa has joined #ruby
platzhirsch has quit [Remote host closed the connection]
dorei has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
bigmac_ has quit [Ping timeout: 250 seconds]
Dopagod has quit [Ping timeout: 260 seconds]
roshanavand has quit [Remote host closed the connection]
khebbie has quit [Ping timeout: 244 seconds]
ruurd has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
momomomomo_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
polysics has quit []
deps has left #ruby [#ruby]
<prefixed> yo. what is the RDOC way of specifying the valid options of a method's options hash?
Channel6 has joined #ruby
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
`tim` has joined #ruby
inteq has joined #ruby
tk__ has quit [Quit: ばいばい]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
tubuliferous has joined #ruby
hindenbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
roshanavand has joined #ruby
hindenbug has joined #ruby
dmolina has joined #ruby
programmerq has quit [Changing host]
programmerq has joined #ruby
jobewan has joined #ruby
dmolina1 has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
ndrei has joined #ruby
mwlang has joined #ruby
eminencehc has joined #ruby
jenrzzz has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<mwlang> Does Ruby have a better way to grep file contents than backticks: `grep -lr pattern *` I found the grep for Strings, but wondering specifically about same for files.
symm- has joined #ruby
northfurr has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
devoldmx has joined #ruby
jobewan has quit [Ping timeout: 268 seconds]
<ChampS_> jhass: passenger is installed and in my apache config file I've included <IfModule mod_passenger.c>PassengerRoot /home/ruby/.rvm/gems/ruby-.2.1/gems/passenger-5.0.20 PassengerDefaultRuby /home/ruby/.rvm/gems/ruby-2.2.1/wrappers/ruby </IfModule>
fullofcaffeine has joined #ruby
<jhass> ChampS_: ruby-.2.1 looks weird
<ChampS_> oh u're right
<ChampS_> its 2.2.1
<ChampS_> so a bug in passenger output
<ChampS_> I copy pasted this line cause the output was telling me to do so
<ChampS_> mh nope in my file its 2.2.1
<ChampS_> just a copy paste failure of me from file to irc
jenrzzz has quit [Ping timeout: 272 seconds]
weihan has joined #ruby
idefine_ has joined #ruby
<treehug88> mwlang you might be interested in "ack". Though I'm not exactly clear what your question is
wldcordeiro has joined #ruby
idefine has quit [Read error: Connection reset by peer]
<prefixed> YO. what kind of exception would you throw if a shell command fails?
<prefixed> *raise
<jhass> what does it do?
<prefixed> rsync
<jhass> sounds like the whole purpose of the script is to call it
ruurd has quit [Quit: ZZZzzz…]
<jhass> are you going to rescue it?
<prefixed> it could fail a myriad number of ways, but i'd like to make it clear that the shell program failed
hindenbug has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has quit [Remote host closed the connection]
<prefixed> and no, i'm not going to rescue
<jhass> then I'd use Kernel#abort
chopin has joined #ruby
<prefixed> why
peteykun has joined #ruby
<mwlang> treehug88: well, essentially, Dir.glob(‘*’).select{|fn| File.read(fn) =~ /some_pattern/} but with recursion into the folders
<jhass> because you won't recover the error
<prefixed> hm. reasonable
unreal_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
ngscheurich has joined #ruby
kobain has joined #ruby
roshanavand has joined #ruby
umgrosscol has joined #ruby
shinnya has joined #ruby
northfurr has quit [Read error: Connection reset by peer]
unreal has quit [Ping timeout: 255 seconds]
northfurr has joined #ruby
fullofcaffeine has joined #ruby
jobewan has joined #ruby
ruurd has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rewzn has quit [Quit: WeeChat 1.1]
dfinninger has joined #ruby
cdg_ has joined #ruby
cdg has quit [Read error: Connection reset by peer]
shredding has quit [Ping timeout: 272 seconds]
_aeris_ has joined #ruby
unreal has joined #ruby
<ChampS_> woooooow
TomyWork has quit [Remote host closed the connection]
unreal_ has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
roshanavand has quit [Remote host closed the connection]
rfeyn has joined #ruby
dfockler has joined #ruby
<EdwardIII> hrm so if i install a gem like "gem 'sidekiq-promise'" i'd generally expect to be able to "require 'gem 'sidekiq-promise'" - reasonable? i'm seeing require': cannot load such file -- sidekiq-promise (LoadError)
<rfeyn> In the top level of a ruby program, self is an object of class Object. What's the default definee in the top level?
<havenwood> EdwardIII: See: http://guides.rubygems.org/name-your-gem/
<havenwood> EdwardIII: require 'sidekiq/promise'
<jhass> rfeyn: Object, default method visibility is private
<EdwardIII> havenwood: thanks!
inteq has quit [Quit: Leaving]
<rfeyn> jhass: Is the default definee the singleton class of self in the top level?
polishdub has joined #ruby
<jhass> no, Object
inteq has joined #ruby
blaxter has quit [Quit: foo]
<treehug88> mwlang: oh cool. Now you just need to add some sort of 'find' moral equivalent.
joncol has joined #ruby
roshanavand has joined #ruby
atmosx has joined #ruby
chriscarpenter12 has joined #ruby
<joncol> What's a good way of accessing a Logger in Ruby? I want to be able to switch out the file log, used in a normal run of the program, with some mocks when testing.
<ChampS_> jhass: strange, it only works when I do the rigth things xD
<ChampS_> now all is good, redmine works again
<atmosx> joncol: Logger.new ?
<mwlang> joncol: just use the Logger class to instantiate what you want. http://ruby-doc.org/stdlib-2.1.0/libdoc/logger/rdoc/Logger.html
hahuang61 has quit [Ping timeout: 268 seconds]
<atmosx> joncol: you can create env variables and have your initialize method read the 'RUBY_ENV' variable. Then use Logger.new('/path/to/production.log') or Logger.new '/path/to/dev.log'
beauby has quit [Ping timeout: 244 seconds]
fullofcaffeine has quit [Remote host closed the connection]
podman has joined #ruby
fullofcaffeine has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
<rfeyn> jhass: https://eval.in/452161
slawrence00 has joined #ruby
<jhass> rfeyn: https://eval.in/452166
ruurd has joined #ruby
<rfeyn> jhass: So the default definee is the Object class? And all methods become private methods?
maletor has joined #ruby
<jhass> yes
<chriscarpenter12> Whats the easiest way to convert this string to an array: "[[1, product1],[2, product2]]" I'm scraping a url and the array returned is a string
<jhass> chriscarpenter12: that's not defined to be in a particular format?
<chriscarpenter12> jhass: I don't follow?
<jhass> chriscarpenter12: looks like YAML parses your example
ReK2 has joined #ruby
ReK2 has joined #ruby
<EdwardIII> hmm not sure i can use sidekiq for this
<EdwardIII> damnit this is way harder than i anticipated
<treehug88> jhass : wow chriscarpenter12 is right; try pasting your data into http://yaml-online-parser.appspot.com/
<jhass> treehug88: ruby -ryaml -e 'p YAML.load ...'
<jhass> and you mixed up the nicks :P
<treehug88> true, thx
mark2 has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
<treehug88> i was just showing how it would be easy to confirm it looks like yaml without writing any code
<joncol> Is there a way to detect if you're currently running RSpec tests?
cdg has joined #ruby
<jhass> you shouldn't
roshanavand has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
blue_deref has joined #ruby
helpa has quit [Remote host closed the connection]
armyriad has joined #ruby
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
cdg_ has quit [Ping timeout: 260 seconds]
helpa has joined #ruby
roshanavand has joined #ruby
senayar has quit []
armyriad has quit [Max SendQ exceeded]
rfeyn has quit [Quit: Page closed]
The_Phoenix has quit [Quit: Leaving.]
jpfuentes2 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
armyriad has joined #ruby
Spami has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
Channel6 has quit [Ping timeout: 272 seconds]
rewzn has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
ruurd_ has joined #ruby
LMity has joined #ruby
[Butch] has joined #ruby
arthurix has joined #ruby
grekkos has joined #ruby
l_tonz has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 1.3]
lavros has quit [Quit: leaving]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
avahey has quit [Quit: Connection closed for inactivity]
p0wn3d__ has joined #ruby
arthurix_ has quit [Ping timeout: 256 seconds]
p0wn3d_ has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
rodfersou is now known as rodfersou|lunch
shoutsid has quit [Remote host closed the connection]
khebbie has joined #ruby
michaeldeol has joined #ruby
grekkos has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
beauby has joined #ruby
diegoaguilar has quit [Ping timeout: 250 seconds]
Channel6 has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SirCmpwn has joined #ruby
<SirCmpwn> h
<SirCmpwn> b high
<SirCmpwn> god dammit
<SirCmpwn> sorry
<jhass> hi ;)
<SirCmpwn> came here to ask what appeals to people about ruby
failshell has quit [Remote host closed the connection]
new_student has joined #ruby
V1s1ble has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
bryanray has joined #ruby
chussenot has quit [Quit: chussenot]
<SirCmpwn> my only exposure to it has been deploying a rails app and man, that sucked. What does it bring to the table that makes it super popular?
ndrei has quit [Ping timeout: 264 seconds]
fullofcaffeine has quit [Remote host closed the connection]
<jhass> I'd say a very open yet consistent type system, high introspection and metaprogramming abilities and a rich stdlib
<Coraline> Add to that readability and conciseness
<jhass> but judging Ruby from a Rails install is like judging Python from deploying Django
<ljarvis> development speed, metaprogramming capabilities, decent testing tools
krisquigley has quit [Remote host closed the connection]
<SirCmpwn> except that deploying django is super easy
<SirCmpwn> can you tell me more about ruby and metaprogramming?
<jhass> I always find it at least equally hard
<new_student> Hello All, I am a new student and have a question regarding my teacher's code. The code is checking Strings to see whether they are palindromes. Here is a link: http://www.pythontutor.com/visualize.html#code=def+FirstReverse(str%29%0D%0A++reverse_string+%3D+%22%22%09%0D%0A++i+%3D+0%0D%0A++while+i+%3C+str.length%0D%0A++++reverse_string+%3D+str%5Bi%5D+%2B+reverse_string(%29%0D%0A++++i+%2B%3D+1%0D%0A++end%0D%0A++return+reverse_string
<new_student> I understand everything except Line 5
<SirCmpwn> this is what I... experienced... rails with a while ago: https://github.com/r888888888/danbooru
arthurix_ has joined #ruby
<chriscarpenter12> Just for reference eval() converted "[["1", "product1"],["2", "product2"]]" to an array object
<new_student> Can someone explain what line 5 does in the code?
nemo_ has joined #ruby
towski_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
<ljarvis> new_student: that's Python, this is #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
haraoka has quit [Ping timeout: 246 seconds]
EmeraldExplorer has joined #ruby
<Coraline> new_student: it's building the string backwards
<new_student> No, its RUby
<new_student> Im just using the Python visualizer, but its includes RUby as a built in feature
joonty has quit [Quit: joonty]
chussenot has joined #ruby
<ljarvis> well, it's not valid ruby
<ljarvis> so :/
<Coraline> ^
amclain has joined #ruby
dionysus69 has joined #ruby
Igorshp has joined #ruby
momomomomo has joined #ruby
arthurix has quit [Ping timeout: 265 seconds]
<new_student> But why does he subtract one and then the index of i?
JJM has joined #ruby
<new_student> I dont quite understand how that checks for palindrome within a string
<ljarvis> there's no subtraction
mleung has joined #ruby
fullofcaffeine has joined #ruby
RobertBirnie has joined #ruby
eminencehc has quit [Remote host closed the connection]
<dfockler> SirCmpwn: If you expect setting up Rails to be like setting up a PHP site, you are probably going to be disappointed.
<jhass> chriscarpenter12: bad idea, very bad idea
<jhass> chriscarpenter12: also it changed from your last example, now it's also valid JSON
<SirCmpwn> lol
<SirCmpwn> who do you think I am, some kind of PHP twat
favadi has joined #ruby
<ljarvis> SirCmpwn: please watch your language
<new_student> ljarvis, my bad, I copied the wrong code
<new_student> Is there a better website to share small-scale code over the internet?
<jhass> ?gist new_student
<ruboto_> new_student, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
diegoaguilar has joined #ruby
joncol has quit [Ping timeout: 246 seconds]
<new_student> okay thank you
pandaant has quit [Remote host closed the connection]
<new_student> Thats the correct code^ I understand everything except line 4
<jhass> ?gist_usage new_student
<ruboto_> new_student, To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
MasterPiece has joined #ruby
<jhass> but got any specific question about it? It's not very idiomatic Ruby for sure
LMity has quit [Read error: Connection reset by peer]
devdazed has quit [Quit: Bye]
ruurd_ has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
dfinninger has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 250 seconds]
skade has joined #ruby
joncol has joined #ruby
ruurd has joined #ruby
gaboesquivel has joined #ruby
sdothum has joined #ruby
User458764 has joined #ruby
snockerton has joined #ruby
wpp has joined #ruby
arup_r has joined #ruby
maletor has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby
GriffinHeart has joined #ruby
northfurr has quit [Quit: northfurr]
GriffinHeart has quit [Remote host closed the connection]
ruurd has quit [Ping timeout: 272 seconds]
zotherstupidguy has quit [Ping timeout: 272 seconds]
jackjackdripper has joined #ruby
nemo_ has quit [Remote host closed the connection]
stan has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
NullVoxPopuli has joined #ruby
htmldrum has joined #ruby
shoutsid has joined #ruby
<NullVoxPopuli> anybody know why ruby rsa keys can't be imported by python?
dfinninger has quit [Remote host closed the connection]
<NullVoxPopuli> python expects the format of BEGIN RSA PUBLIC KEY, but ruby only exports BEGIN PUBLIC KEY
tubuliferous has quit [Ping timeout: 260 seconds]
roshanavand has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
armyriad has quit [Ping timeout: 272 seconds]
platzhirsch has joined #ruby
roshanavand has joined #ruby
htmldrum has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
nemo_ has joined #ruby
zotherstupidguy has joined #ruby
ruurd has joined #ruby
<NullVoxPopuli> figured it out, it was a difference between x.509 including information about what made the key, and python not doing that
new_student has quit [Ping timeout: 246 seconds]
armyriad has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
MasterPiece has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
Asher has joined #ruby
chussenot has quit [Quit: chussenot]
leafybas_ has quit [Ping timeout: 260 seconds]
Soda has joined #ruby
JDiPierro has quit [Remote host closed the connection]
tvw has joined #ruby
joncol has quit [Quit: leaving]
jenrzzz has joined #ruby
djbkd has joined #ruby
roshanav_ has joined #ruby
ruurd has quit [Ping timeout: 260 seconds]
roshanavand has quit [Read error: Connection reset by peer]
maletor has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
weihan has quit [Ping timeout: 264 seconds]
wpp has quit [Quit: ZZZzzz…]
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
northfurr has joined #ruby
fullofcaffeine has quit [Ping timeout: 265 seconds]
weihan has joined #ruby
nemo_ has quit [Ping timeout: 244 seconds]
fullofcaffeine has joined #ruby
ramfjord has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dmolina has quit [Quit: Leaving.]
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
northfurr has quit [Client Quit]
A124 has joined #ruby
arthurix_ has quit [Remote host closed the connection]
beauby has quit [Ping timeout: 240 seconds]
weihan has quit [Client Quit]
weihan has joined #ruby
DexterLB has joined #ruby
roshanav_ has quit []
nofxx has joined #ruby
beauby has joined #ruby
jenrzzz has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
ruurd has quit [Ping timeout: 255 seconds]
grekkos has joined #ruby
petricore has joined #ruby
tjohnson has joined #ruby
adac has quit [Ping timeout: 244 seconds]
MasterPiece has joined #ruby
Lucky__ has joined #ruby
bayed has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
platzhirsch has quit [Remote host closed the connection]
bigmac_ has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
ruurd has joined #ruby
DoubleMalt has joined #ruby
weihan has quit [Ping timeout: 240 seconds]
lamer14449848587 has quit [Ping timeout: 272 seconds]
shoutsid has quit [Remote host closed the connection]
queequeg1 has quit [Ping timeout: 250 seconds]
caliostro has quit [Quit: Exit-Chat]
shoutsid has joined #ruby
zotherstupidguy has joined #ruby
queequeg1 has joined #ruby
BTRE has quit [Ping timeout: 250 seconds]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
BTRE has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
Igorshp has quit [Remote host closed the connection]
krisquigley has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arthurix has joined #ruby
skweek has joined #ruby
pauly_oc has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shoutsid has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
momomomomo has quit [Quit: momomomomo]
vigintas has quit [Ping timeout: 255 seconds]
Guest50 has joined #ruby
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shoutsid has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
UtkarshRay has quit [Quit: Leaving]
rdark has quit [Quit: leaving]
fedexo has joined #ruby
Rodya_ has joined #ruby
riskish has joined #ruby
shoutsid has quit [Remote host closed the connection]
rodfersou|lunch is now known as rodfersou
eminencehc has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has joined #ruby
EmeraldExplorer has quit []
ruurd has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
idefine_ has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
Jackneill has joined #ruby
failshell has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
V1s1ble has quit [Ping timeout: 240 seconds]
jgt has joined #ruby
fullofca_ has joined #ruby
GriffinHeart has joined #ruby
karapetyan has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ruurd has joined #ruby
fullofcaffeine has quit [Ping timeout: 252 seconds]
JDiPierro has joined #ruby
zotherstupidguy has quit [Ping timeout: 255 seconds]
ruby-lang261 has joined #ruby
sp4rrow has joined #ruby
queequeg1 has quit [Ping timeout: 240 seconds]
c0m0 has quit [Ping timeout: 268 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
queequeg1 has joined #ruby
nemo_ has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
GriffinHeart has quit [Ping timeout: 256 seconds]
DoubleMalt has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
jessemcgilallen has joined #ruby
Spami has joined #ruby
shoutsid has joined #ruby
webopsx has joined #ruby
krisquigley has quit [Remote host closed the connection]
ramfjord has joined #ruby
CooloutAC has left #ruby ["Selakem Shalom, PEACE"]
idefine has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
<shevy> yo people
<shevy> make love not war
<shevy> write ruby not php
karapetyan has joined #ruby
<Zarthus> but PHP is already at version 7, so it must be better!
shoutsid has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 264 seconds]
nemo_ has quit [Remote host closed the connection]
shoutsid has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
HAL2328 has joined #ruby
adac has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
leafybasil has joined #ruby
doddok has joined #ruby
<shevy> hmm
<shevy> did they skip 6
<shevy> on second thought, I should probably not ask, my mind is a fragile thing
ChampS_ has quit []
dfinninger has joined #ruby
karapetyan has quit [Remote host closed the connection]
jgt has joined #ruby
<shevy> hah https://medium.com/@garywiz/five-things-old-programmers-need-to-remember-e78caf0b0973 - people learn philosophy from Star Trek Spock :)
bigmac_ has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Rodya_ has quit [Quit: Leaving...]
Rollabunna has quit [Remote host closed the connection]
leafybasil has quit [Ping timeout: 260 seconds]
chriscarpenter12 has left #ruby [#ruby]
karapetyan has joined #ruby
craysiii has joined #ruby
User458764 has joined #ruby
slawrence00 has quit [Read error: Connection reset by peer]
User458764 has quit [Client Quit]
HAL2328_ has joined #ruby
speakingcode has quit [Ping timeout: 252 seconds]
karapetyan has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
nemo_ has joined #ruby
michael_mbp has quit [Excess Flood]
mhib has joined #ruby
karapetyan has joined #ruby
michael_mbp has joined #ruby
ruby-lang261 has quit [Ping timeout: 246 seconds]
cwong_on_irc has joined #ruby
HAL2328 has quit [Ping timeout: 264 seconds]
shoutsid has quit [Remote host closed the connection]
baweaver has joined #ruby
mwlang has quit [Quit: mwlang]
shoutsid has joined #ruby
baroquebobcat has joined #ruby
karapetyan has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
jgt has quit [Ping timeout: 272 seconds]
karapetyan has joined #ruby
shoutsid has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 250 seconds]
SenpaiSilver_ has quit [Read error: Connection reset by peer]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
ruurd has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chthon has quit [Ping timeout: 244 seconds]
zenguy_pc has quit [Ping timeout: 265 seconds]
vigintas has joined #ruby
karapetyan has quit [Remote host closed the connection]
vigintas has quit [Read error: Connection reset by peer]
vigintas1 has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
shoutsid has joined #ruby
<prefixed> yo. what is the RDOC way of specifying the valid options of a method's options hash?
<pipework> prefixed: Enumerate the options.
<pipework> Prose, bruv!
peteykun has quit [Quit: Leaving]
karapetyan has joined #ruby
<pipework> It can get hard when different combinations of options cause different things though.
dionysus69 has quit [Ping timeout: 250 seconds]
SenpaiSilver has joined #ruby
vigintas1 has quit [Ping timeout: 268 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Sou|cutter> Is there a good way to convert RGBa to hex?
fullofca_ has quit [Ping timeout: 256 seconds]
Lucky__ has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
metlx has joined #ruby
karapetyan has quit [Remote host closed the connection]
<metlx> I never used rvm before. I just got it installed. When installing gems for the system ruby, do I have to use sudo?
karapetyan has joined #ruby
<Sou|cutter> I guess the A part is sucky since you'd have to know the background (hmm)
fullofcaffeine has joined #ruby
slawrence00 has joined #ruby
darkf has quit [Quit: Leaving]
<havenwood> metlx: You can select system Ruby with: rvm use system
<havenwood> metlx: Whether you need to use sudo with gems on system Ruby depends on how your package manager configured Ruby. What OS/distro?
<metlx> havenwood: I'm on Ubuntu.
phutchins has quit [Ping timeout: 265 seconds]
<havenwood> metlx: Then yes, the default system Ruby configuration requires sudo with gems since it's a system install.
ruurd has quit [Quit: ZZZzzz…]
<metlx> havenwood: And all the other rubies don't, correct?
<havenwood> metlx: The RVM-installed Rubies don't. If you use sudo you'll actually drop your env so RVM goes poof.
<nofxx> metlx, have in mind there's no need for rvm, just use latest ruby and have fun
fullofca_ has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
zotherstupidguy has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
<havenwood> metlx: If you need to use sudo with an RVM Ruby you can use rvmsudo to preserve your RVM environment.
zenguy_pc has joined #ruby
gizmore has joined #ruby
<metlx> havenwood: The system ruby is not part of RVM?
blue_deref has quit [Quit: Taking myself out of hear.]
fullofcaffeine has quit [Ping timeout: 260 seconds]
<havenwood> metlx: No, the system Ruby is from apt-get.
<havenwood> metlx: Since Ubuntu doesn't ship latest stable in a timely manner Brightbox maintains Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
shoutsid has quit [Remote host closed the connection]
shoutsid has joined #ruby
<metlx> havenwood: Is RVM beneficial in any way?
<havenwood> metlx: If you need more flexibility than those packages you can use an install/switcher like RVM to build your own Rubies. Or ruby-install is a simpler tool for installing Rubies and chruby for switching: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
diegoaguilar has quit [Remote host closed the connection]
<havenwood> metlx: It works on obscure system with old Rubies that require patches to install.
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
GarethAdams has quit [Ping timeout: 252 seconds]
metlx has quit [Quit: Page closed]
eminencehc has quit [Remote host closed the connection]
pandaant has joined #ruby
lorn has quit [Changing host]
lorn has joined #ruby
balazs_ has quit [Ping timeout: 265 seconds]
idefine has joined #ruby
ruurd has joined #ruby
treehug88 has quit [Read error: Connection reset by peer]
shoutsid has quit [Remote host closed the connection]
arthurnn has quit [Quit: bye...]
GarethAdams has joined #ruby
shoutsid has joined #ruby
baweaver has quit [Remote host closed the connection]
bl0ndie has joined #ruby
htmldrum has joined #ruby
terrellt is now known as tpendragon
ramfjord has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
khebbie has quit [Ping timeout: 268 seconds]
idefine has quit [Ping timeout: 256 seconds]
eminencehc has joined #ruby
oetjenj has joined #ruby
vigintas has joined #ruby
momomomomo has joined #ruby
User458764 has joined #ruby
vigintas has quit [Remote host closed the connection]
vigintas has joined #ruby
p0wn3d_ has joined #ruby
pandaant has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
mary5030 has joined #ruby
hakunin has joined #ruby
p0wn3d__ has quit [Ping timeout: 250 seconds]
A124 has quit [Quit: '']
dionysus69 has joined #ruby
idefine has joined #ruby
shoutsid has quit [Remote host closed the connection]
hanmac has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
shoutsid has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
timonv has joined #ruby
hakunin has quit [Ping timeout: 240 seconds]
vigintas has quit [Quit: vigintas]
vigintas has joined #ruby
balazs_ has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
varunwachaspati has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
symm- has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
JJM has joined #ruby
jenrzzz has joined #ruby
shoutsid has quit [Remote host closed the connection]
krisquigley has joined #ruby
p0wn3d__ has joined #ruby
shoutsid has joined #ruby
devoldmx has quit []
ruurd has joined #ruby
DoubleMalt has joined #ruby
iateadonut has quit [Quit: Leaving.]
p0wn3d_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
zotherstupidguy has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
Quandl has joined #ruby
MuffinPimp has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
eminencehc has quit [Remote host closed the connection]
A124 has joined #ruby
eminencehc has joined #ruby
treehug88 has joined #ruby
MasterPiece has quit [Quit: Leaving]
timonv has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
lokson has joined #ruby
craigs has joined #ruby
Lucky__ has joined #ruby
shoutsid has quit [Remote host closed the connection]
Jason____ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jerematic has joined #ruby
rdavila has joined #ruby
<Jason____> Hi all, I have a beginner question invovling morphing strings
davedev24 has joined #ruby
<momomomomo> Jason____: !ask
<momomomomo> ?ask
<ruboto_> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
s2013 has joined #ruby
<Jason____> What is the best approach to transform individual letters in a given string to the next letter of the alphabet? I want to write this as a function
shoutsid has joined #ruby
davedev2_ has quit [Ping timeout: 244 seconds]
<Jason____> "Jason" => "Kbtpo"
<pipework> Jason____: str.chars.map(&:succ).join
<pipework> >> "Jason".chars.map(&:succ).join
<ruboto_> pipework # => "Kbtpo" (https://eval.in/452258)
<Jason____> thank you pipework
<Jason____> In your code, I recognize all methods except .chars and the &:succ passed to .map
<Jason____> Of course, I will look up documentation
<Jason____> But I am a first time student, so perhaps you can Mr.Miyagi lecture me?
<pipework> Jason____: You'll find #chars in String's docs, &:any_method uses Symbol#to_proc, which you can read about in that documentation, and #succ is also in String's documentation.
<pipework> succ means successor.
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
nemo_ has quit [Remote host closed the connection]
<Jason____> Okay pipework, I will look this up
<rdavila> Hi, I have a question regarding Hash initialization: https://gist.github.com/rdavila/5212596735d5b370c492
ramfjord has joined #ruby
<rdavila> I know that Hash.new { |k, v| k[v] = [] } solves the problem but don't know exactly how it works
s00pcan_ has joined #ruby
craigs is now known as cas__
bl0ndie has quit [Ping timeout: 272 seconds]
dvarrui has joined #ruby
kirun has joined #ruby
idefine has quit [Remote host closed the connection]
cas__ is now known as cas26
<pipework> rdavila: You're modifying the array you're passing into the hash, not getting a new array for each new unknown key in the hash.
DoubleMalt has quit [Ping timeout: 244 seconds]
<momomomomo> rdavila: "If a block is specified, it will be called with the hash object and the key, and should return the default value. It is the block’s responsibility to store the value in the hash if required." http://ruby-doc.org/core-2.1.1/Hash.html#method-c-new
fullofcaffeine has joined #ruby
cas26 has quit []
iam3 has joined #ruby
s00pcan_ has quit [Ping timeout: 272 seconds]
NullVoxPopuli has quit [Remote host closed the connection]
<havenwood> rdavila: I think you're thinking: Hash.new { |h, k| h[k] = [] }
fullofca_ has quit [Ping timeout: 250 seconds]
Igorshp has joined #ruby
jenrzzz has joined #ruby
<havenwood> rdavila: The `h` is for Hash and the `k` for key.
<pipework> havenwood: They just used a poor variable name.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> pipework: I've seen a lot of local variables lately that have deceptive names.
<havenwood> pipework: Trickery!
iam3 has quit [Client Quit]
<pipework> havenwood: It is most insidious and devilish.
eminencehc has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<havenwood> Or skullduggery rather. Aye.
fullofca_ has joined #ruby
Jason____ has quit [Ping timeout: 246 seconds]
<havenwood> skulduggery*
<rdavila> pipework momomomomo thanks for the explanation
<rdavila> yeah, that variable name is ugly def
<rdavila> just used that doe the demo
<rdavila> def will not do that in prod code
fullofcaffeine has quit [Ping timeout: 240 seconds]
<havenwood> rdavila: Having a key named `v` would confuse me!
dikaio has joined #ruby
tvw has quit []
<momomomomo> >> my_hash = Hash.new { |h, k| h[k] = [] }; my_hash[:hello] << 'world'; puts my_hash;
<ruboto_> momomomomo # => {:hello=>["world"]} ...check link for more (https://eval.in/452279)
arup_r has quit [Quit: Leaving]
ruurd has quit [Quit: ZZZzzz…]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
dvarrui has quit [Quit: Leaving]
fullofcaffeine has joined #ruby
goldfish6744 has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
<rdavila> momomomomo: I know that works befause every time we pass a invalid key to the Hash it will return a new Array
<rdavila> but with the other version: “Hash.new([])”
<rdavila> I know that default value is shared for all the keys in the Hash
<momomomomo> rdavila: you didn't look at the docs I sent you
jenrzzz has quit [Ping timeout: 272 seconds]
fullofca_ has quit [Ping timeout: 246 seconds]
<havenwood> auto_vivification = Hash.new { |h, k| h[k] = Hash.new &h.default_proc }; auto_vivification[:o][:m][:g][:w][:t][:f][:b][:b][:q] = true; auto_vivification
<havenwood> #=> {:o=>{:m=>{:g=>{:w=>{:t=>{:f=>{:b=>{:b=>{:q=>true}}}}}}}}}
swgillespie has joined #ruby
<momomomomo> >> my_hash = Hash.new(["this", "is", "an", "array"]); my_hash[:hello] << 'new_item'; puts my_hash;
<ruboto_> momomomomo # => {} ...check link for more (https://eval.in/452280)
c355E3B has joined #ruby
<momomomomo> >> my_hash = Hash.new(["this", "is", "an", "array"]); puts my_hash[:hello];
<ruboto_> momomomomo # => this ...check link for more (https://eval.in/452281)
timonv has joined #ruby
<momomomomo> thus, unless you set the key, it has the default value
NullVoxPopuli has joined #ruby
NullVoxPopuli has joined #ruby
shoutsid has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<momomomomo> and they all point to the same default value
mattprelude has joined #ruby
fullofca_ has joined #ruby
shoutsid has joined #ruby
fullofcaffeine has quit [Ping timeout: 250 seconds]
<rdavila> momomomomo: I think I got it
idefine has joined #ruby
<rdavila> looks like “my_hash[:hello] << 'new_item'” is doing nothing to the Hash
karapetyan has quit [Remote host closed the connection]
<momomomomo> >> my_hash = Hash.new(["this", "is", "an", "array"]); my_hash[:hello].map! &:upcase; puts my_hash[:hello];
<ruboto_> momomomomo # => THIS ...check link for more (https://eval.in/452284)
<rdavila> because we are not setting the key
northfurr has joined #ruby
<rdavila> just modifying the default value
fullofca_ has quit [Read error: Connection reset by peer]
<pipework> Correct.
ndrei has joined #ruby
failshell has quit [Remote host closed the connection]
<momomomomo> >> my_hash = Hash.new(["this", "is", "an", "array"]); my_hash[:hello].map! &:upcase; puts my_hash[:world];
<ruboto_> momomomomo # => THIS ...check link for more (https://eval.in/452285)
karapetyan has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
<pipework> momomomomo: inspect the hash itself afterwards.
eminencehc has joined #ruby
<rdavila> yeah, it should be {}
<momomomomo> pipework: clearly it is empty
<rdavila> you’re just altering the default value
shoutsid has quit [Remote host closed the connection]
<momomomomo> yes
failshell has joined #ruby
jenrzzz has joined #ruby
craigs has joined #ruby
shoutsid has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
<pipework> >> Hash.new([]).tap{|h| h[:lol] |= %|wat miaow bro| }
<ruboto_> pipework # => no implicit conversion of String into Array (TypeError) ...check link for more (https://eval.in/452287)
<pipework> >> Hash.new([]).tap{|h| h[:lol] |= %w|wat miaow bro| }
<ruboto_> pipework # => {:lol=>["wat", "miaow", "bro"]} (https://eval.in/452288)
<momomomomo> pz
<pipework> If you do assignment as whale, you can store the value.
adac has quit [Ping timeout: 272 seconds]
idefine has quit [Ping timeout: 265 seconds]
<Zarthus> shevy: yes they did.
<pipework> But modifying the array destructively doesn't assign the key with the value's result, it just modifies the value. Any subsequent assignments that use the default value will use the array that you modified.
northfurr has quit [Quit: northfurr]
shoutsid has quit [Remote host closed the connection]
dsjethzs_ has joined #ruby
baweaver has joined #ruby
northfurr has joined #ruby
<rdavila> momomomomo pipework thanks a lot for the great examples
shoutsid has joined #ruby
craigs has quit [Client Quit]
<rdavila> it was a bit tricky to understand on my won
<rdavila> * own
craigs has joined #ruby
<pipework> rdavila: no worries. Glad we could help.
idefine has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
eminencehc has quit [Remote host closed the connection]
<momomomomo> pipework: your example didn't show much up there
weihan has joined #ruby
<momomomomo> >> Hash.new([]).tap{|h| h[:lol] |= %w|wat miaow bro| }
<ruboto_> momomomomo # => {:lol=>["wat", "miaow", "bro"]} (https://eval.in/452289)
<pipework> momomomomo: Sure it did. It showed that when you use the value returned from passing an unknown key into the hash and then assign a value to it, it uses the default value.
jenrzzz has quit [Quit: Lost terminal]
<momomomomo> >> Hash.new(["hello", "world"]).tap{|h| h[:lol] |= %w|wat miaow bro| }
<ruboto_> momomomomo # => {:lol=>["hello", "world", "wat", "miaow", "bro"]} (https://eval.in/452290)
baweaver has quit [Remote host closed the connection]
<pipework> Whereas, when you destructively modify the default value without doing assignment, it doesn't behave like one might expect.
baweaver has joined #ruby
BraddPit1 has joined #ruby
blackmesa has joined #ruby
craigs has quit [Client Quit]
<momomomomo> nah, your example just obfuscates
Guest50 has joined #ruby
p0wn3d__ has quit [Read error: Connection reset by peer]
craigs has joined #ruby
JJM has joined #ruby
p0wn3d__ has joined #ruby
<momomomomo> it is useful to show how to set something to the default value, though
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
xelkarin has joined #ruby
shoutsid has quit [Remote host closed the connection]
mary5030 has joined #ruby
baweaver has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 244 seconds]
jamesaxl has joined #ruby
Dopagod has joined #ruby
mhib has quit [Read error: Connection reset by peer]
solocshaw has quit [Ping timeout: 240 seconds]
fullofca_ has joined #ruby
speakingcode has joined #ruby
speakingcode has quit [Client Quit]
inascime has joined #ruby
radgeRayden has quit [Ping timeout: 244 seconds]
shoutsid has joined #ruby
jones_ has joined #ruby
etrae has joined #ruby
jones_ has quit [Client Quit]
djbkd has joined #ruby
<xelkarin> I'm trying to write a user management script using ruby-ldap, and I'm trying to figure out how to change passwords.
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
<xelkarin> I've done this once before with a standalone EXOP command under Java, and while ruby provides controls for extended operations it seems these are only used to extend basic LDAP commands.
adac has joined #ruby
fullofca_ has quit [Read error: Connection reset by peer]
davedev2_ has quit []
<pipework> xelkarin: Have you considered using jruby?
fullofcaffeine has joined #ruby
<momomomomo> jruby is dope, but you can't use apache spark with it :(
<xelkarin> Actually, I haven't. I may look into it now.
yfeldblum has joined #ruby
<xelkarin> I'm guessing there's no way to do it under standard ruby though?
blackmesa has quit [Ping timeout: 240 seconds]
awrfas2 has joined #ruby
shoutsid has quit [Remote host closed the connection]
etrae has quit [Ping timeout: 240 seconds]
<pipework> momomomomo: Why can't you?
<pipework> Spark is on the JVM, right?
prefixed has quit [Remote host closed the connection]
<momomomomo> pipework: serialization etc
djbkd has quit [Ping timeout: 264 seconds]
<pipework> momomomomo: I bet it can be done.
fullofcaffeine has quit [Ping timeout: 260 seconds]
<pipework> If Spark is on the JVM, and since spark is open source, the limitation is that no one has done it, not that it can't be done.
BraddPit1 has joined #ruby
BraddPit1 has quit [Client Quit]
Rollabunna has joined #ruby
<pipework> Dat jvm interop
baweaver has joined #ruby
agent_white has joined #ruby
<pipework> momomomomo: I think that it's actually possible, but I'd need to check with the jruby team to see if I'm being silly.
<momomomomo> doooo it
BraddPit1 has joined #ruby
<momomomomo> I'd love to have a spark/torquebox cluster
<momomomomo> rather than looking at scala/play framework
BraddPit2 has joined #ruby
<pipework> I think that they wouldn't have to update spark to support jruby objects, but that someone would need to write code to serialize the jruby objects to what spark expects.
BraddPit2 has quit [Client Quit]
<momomomomo> I haven't looked to deep into it, because using scala/play won't be that bad if needed
<momomomomo> or python/django or something
craigs has quit [Remote host closed the connection]
RobertBirnie has quit [Read error: Connection reset by peer]
RobertBi_ has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
BraddPitt has quit [Quit: leaving]
gaboesquivel has quit [Read error: Connection reset by peer]
gaboesquivel has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
kfpratt has joined #ruby
BraddPit1 has quit [Quit: leaving]
BraddPitt has joined #ruby
baweaver has quit []
rushed has quit [Quit: rushed]
northfurr has quit [Quit: northfurr]
karapetyan has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 260 seconds]
etrae has joined #ruby
karapetyan has joined #ruby
shoutsid has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
BraddPitt has quit [Quit: leaving]
awrfas2 has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
skweek has quit [Ping timeout: 264 seconds]
shoutsid has quit [Remote host closed the connection]
BraddPitt has joined #ruby
rushed has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
shoutsid has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
idefine has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
zenguy_pc has quit [Ping timeout: 250 seconds]
BraddPitt has quit [Client Quit]
codecop has quit [Remote host closed the connection]
BraddPitt has joined #ruby
bryanray has joined #ruby
BraddPitt has quit [Client Quit]
BraddPitt has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
p0wn3d__ has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: Leaving]
blue_deref has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bryanray has quit [Ping timeout: 250 seconds]
David27 has joined #ruby
craigs has joined #ruby
FernandoBasso has quit [Quit: Leaving]
<agent_white> Afternoon!
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
lokson has quit [Quit: WeeChat 1.0.1]
BraddPitt has quit [Quit: leaving]
BraddPitt has joined #ruby
BraddPitt has quit [Client Quit]
BraddPitt has joined #ruby
BraddPitt has quit [Client Quit]
dfockler has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
craigs has quit [Ping timeout: 272 seconds]
moredhel has joined #ruby
BraddPitt has joined #ruby
idefine has joined #ruby
zenguy_pc has joined #ruby
User458764 has joined #ruby
Coldblackice has joined #ruby
NullVoxPopuli has quit [Read error: Connection reset by peer]
doddok has quit [Quit: Leaving]
NullVoxPopuli has joined #ruby
verdoc_ is now known as verdoc
djbkd has joined #ruby
solars has quit [Ping timeout: 272 seconds]
agent_white has quit [Quit: brb]
dfinninger has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<BraddPitt> if I have a loop running in a thread, is it possible to have that thread update a variable /outside/ of the thread scope while in the loop? Without joining to the main thread?
Renich has joined #ruby
<shevy> BraddPitt isn't that what mutex is all about?
idefine has quit [Ping timeout: 255 seconds]
<shevy> hmm
<shevy> "Mutex implements a simple semaphore that can be used to coordinate access to shared data from multiple concurrent threads."
<shevy> doesn't say anything about changing shared data
NullVoxPopuli has quit [Ping timeout: 256 seconds]
<BraddPitt> ill try that shevy
htmldrum has joined #ruby
xelkarin has quit [Quit: WeeChat 1.1.1]
Igorshp has quit [Remote host closed the connection]
<haylon> Oh hey, BraddPitt. I was talking to you last night be people kept getting disconnected.
<haylon> This is the link to my question about making Thor long_desc respect \n's https://github.com/predatorian3/port_scanner
wpp has joined #ruby
shoutsid has quit [Remote host closed the connection]
oetjenj has quit [Ping timeout: 268 seconds]
stannard has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 240 seconds]
bryanray has joined #ruby
nettoweb has joined #ruby
oetjenj has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
rushed has quit [Quit: rushed]
p0wn3d__ has joined #ruby
Macaveli has joined #ruby
<BraddPitt> oh yeah I ran into the same thing using heredocs
<BraddPitt> does explicitly adding \n change anything?
<haylon> one sec, checking
<BraddPitt> if not, you might have to skip heredocs and use an ugly multi-line string
<ramfjord> Do you guys have any recommendations for writing unit tests against external API integrations?
pocketprotector- has joined #ruby
<haylon> I saw something about x%5 or something
<ramfjord> I don't want to make the actaul API calls in the tests, but it seems like those are a very large portion of the code
failshell has quit [Remote host closed the connection]
<jhass> webmock or vcr?
<haylon> BraddPitt: No, the \n didn't work
<ramfjord> jhass: thanks, I'll take a look at those
p0wn3d__ has quit [Ping timeout: 240 seconds]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
blackmesa has joined #ruby
maletor has joined #ruby
n_blownapart has joined #ruby
syath has quit [Quit: WeeChat 1.2]
shoutsid has joined #ruby
<haylon> BraddPitt: using the \x5 escape sequence worked
dzejrou has joined #ruby
kadoppe has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
jgt has joined #ruby
Azulinho has joined #ruby
krisquigley has joined #ruby
kadoppe has joined #ruby
dzejrou has quit [Client Quit]
dzejrou has joined #ruby
radgeRayden has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
bl0ndie has joined #ruby
<shevy> ooooh
<shevy> I had in one .gemspec a ruby gem version specified 2.4.9
timonv has joined #ruby
oetjenj has quit [Ping timeout: 246 seconds]
<shevy> that made me wonder whether it is always a good idea to specify a hardcoded dependency on a specific gem version
<BraddPitt> ah, weird that \n didnt work, but glad you figured it out haylon
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
krisquigley has quit [Ping timeout: 244 seconds]
craigs has joined #ruby
idefine has joined #ruby
__chris has quit [Quit: Textual IRC Client: www.textualapp.com]
bl0ndie has quit [Ping timeout: 255 seconds]
oetjenj has joined #ruby
ecksit has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor_ has joined #ruby
maletor_ has quit [Client Quit]
maletor has quit [Ping timeout: 246 seconds]
ecksit has quit [Read error: Connection reset by peer]
stannard has joined #ruby
balazs_ has quit [Ping timeout: 265 seconds]
imperator has joined #ruby
craigs has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
rodfersou has quit [Quit: leaving]
dzejrou_ has joined #ruby
umgrosscol has quit [Remote host closed the connection]
diegoviola has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
<shevy> what are you people hacking away at in ruby as of late?
rdavila has quit [Ping timeout: 250 seconds]
<BraddPitt> command line mp3 player with plugins
<BraddPitt> its fun!
<ramfjord> A bunch of database importers and monitoring scripts!
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
umgrosscol has joined #ruby
jenrzzz has joined #ruby
solocshaw has joined #ruby
n_blownapart has quit []
dzejrou has quit [Ping timeout: 268 seconds]
Voker57 has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
baweaver has joined #ruby
n_blownapart has quit [Client Quit]
spuk has joined #ruby
JDiPierro has quit [Remote host closed the connection]
rikkipitt has joined #ruby
symm-_ has joined #ruby
karapetyan has joined #ruby
victortyau has quit [Ping timeout: 250 seconds]
symm- has quit [Ping timeout: 272 seconds]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pauly_oc has quit [Ping timeout: 252 seconds]
bryanray has joined #ruby
maletor has joined #ruby
dotrb has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
blackmesa has joined #ruby
idefine has joined #ruby
shoutsid has quit [Remote host closed the connection]
balazs_ has joined #ruby
<dotrb> a want to convert adecimal range into hex bytecode, a la '\x3A' but (1..254).to_a.map &:chr isn't purely hex; it's escape sequences for the entire ascii encoding. whats the ideal way to do this?
symm-_ has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
gix has quit [Ping timeout: 246 seconds]
<darix> >> 125.to_s(16)
<ruboto_> darix # => "7d" (https://eval.in/452385)
rwilcox has quit [Quit: WeeChat 1.2-dev]
oetjenj has quit [Ping timeout: 246 seconds]
bryanray has quit [Ping timeout: 272 seconds]
umgrosscol has quit [Remote host closed the connection]
ngscheurich has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 244 seconds]
fullofcaffeine has joined #ruby
<darix> dotrb: does that help?
bl0ndie has joined #ruby
oetjenj has joined #ruby
ldnunes has quit [Quit: Leaving]
<darix> otherwise pack/unpack can be your friends
colstrom_ has joined #ruby
<dotrb> darix: it does, thank you. although it seems like i remember being able to generate the whole ascii range in hex including the escap chars, like "\x01"
baweaver has quit [Remote host closed the connection]
<jhass> dotrb: you're confusing representation and value
<dotrb> darix: yeah, it was pack i used last time.
karapetyan has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<dotrb> jhass: you're right, i see what yoou mean
<jhass> do you want a byte sequences with the byte values 0 - 255 or do you want a string with two characters that when interpreted as hexadecimal map to 0-255
sepp2k has quit [Quit: Leaving.]
dzejrou__ has joined #ruby
<jhass> *a two character sequence
shoutsid has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
<dotrb> jhass: i need a four character sequence, i just need the bytecode
cwong_on_irc has joined #ruby
<dotrb> sorry, byte-level representation
cwong_on_irc has quit [Max SendQ exceeded]
V1s1ble has joined #ruby
xet7 has joined #ruby
cwong_on_irc has joined #ruby
bl0ndie has quit [Ping timeout: 260 seconds]
<dotrb> just need to print it
<jhass> >> "a" == "\x61"
<ruboto_> jhass # => true (https://eval.in/452393)
<jhass> still not clear
<dotrb> jhass: sorry
shoutsid has quit [Remote host closed the connection]
eminencehc has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
dzejrou_ has quit [Ping timeout: 272 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest50 has joined #ruby
skade has joined #ruby
teclator has joined #ruby
NullVoxPopuli has joined #ruby
Jackneill has quit [Ping timeout: 272 seconds]
shoutsid has joined #ruby
fullofcaffeine has quit [Ping timeout: 240 seconds]
fullofca_ has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
shoutsid has quit [Remote host closed the connection]
dfockler has joined #ruby
VeryBewitching has joined #ruby
Azure has joined #ruby
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
shoutsid has joined #ruby
oetjenj has quit [Ping timeout: 240 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mg^ has joined #ruby
prestorium has quit [Quit: Leaving]
oetjenj has joined #ruby
decoponio has quit [Quit: Leaving...]
choke has joined #ruby
craigs has joined #ruby
kidoz has joined #ruby
blackmesa has quit [Quit: WeeChat 1.3]
inteq has quit [Quit: Leaving]
yfeldblum has joined #ruby
jackjackdripper1 has joined #ruby
Porfa has quit [Read error: Connection reset by peer]
Porfa_ has joined #ruby
shoutsid has quit [Ping timeout: 244 seconds]
tomchapin has joined #ruby
krisquigley has joined #ruby
jackjackdripper has quit [Ping timeout: 250 seconds]
rdavila has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Azure has quit [Remote host closed the connection]
Chaoborid has joined #ruby
dfinninger has quit [Remote host closed the connection]
craigs has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
ecksit has joined #ruby
failshell has joined #ruby
jenrzzz has joined #ruby
wldcordeiro has quit [Ping timeout: 264 seconds]
leafybasil has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
awrfas2 has joined #ruby
shoutsid has joined #ruby
etrae has quit [Ping timeout: 268 seconds]
adac has quit [Ping timeout: 272 seconds]
varunwachaspati has quit [Quit: Connection closed for inactivity]
failshell has quit [Ping timeout: 244 seconds]
haylon has quit [Quit: Leaving]
shoutsid has quit [Remote host closed the connection]
segfalt has quit [Quit: segfalt]
seydar has joined #ruby
<seydar> anyone going to rubykaigi?
shoutsid has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<baweaver> Matz
Chaoborid has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
Chaoborid has joined #ruby
Rollabunna has joined #ruby
shoutsid has quit [Remote host closed the connection]
seydar has quit [Client Quit]
<havenwood> seydar: Going to RubyConf but not going to make it to Japan.
<pipework> havenwood: I bet you'd have a kickass time in Nippon (I can be such a weabo)
idefine has joined #ruby
shoutsid has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
dzejrou_ has joined #ruby
Meeh has quit [Read error: Connection reset by peer]
Meeh has joined #ruby
oetjenj has quit [Ping timeout: 260 seconds]
<ecksit> hey everyone, i'm trying to build a reusable http client for my gem and i've hit a snag. i'd like to be able to create a single instance of a "client" and then reference that from within other parts of my gem. see code sample at https://gist.github.com/anonymous/bd162bfd3f18feff2044. could someone guide me in the right direction to get the second part working?
shoutsid has quit [Remote host closed the connection]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
kirun has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 255 seconds]
firstdayonthejob has joined #ruby
dzejrou__ has quit [Ping timeout: 260 seconds]
oetjenj has joined #ruby
craigs has joined #ruby
scripore has joined #ruby
stannard has quit [Remote host closed the connection]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
idefine has quit [Ping timeout: 244 seconds]
shoutsid has joined #ruby
<havenwood> ecksit: What does `client.user` return at the moment?
<havenwood> ecksit: What have you tried to get it working?
<ecksit> at the moment, just a string but i realise it needs to return an object to operate on
stannard has joined #ruby
craigs has quit [Ping timeout: 250 seconds]
<ecksit> i've tried putting it into modules and including them from the client but i think i'm having issues with inheritence and passing on the variables i need
bruno- has joined #ruby
Azure has joined #ruby
Testo has joined #ruby
<shevy> BraddPitt cool, I hope you'll upload it when it works
stannard has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
<BraddPitt> most certainly will
Meeh has quit [Read error: Connection reset by peer]
stannard has joined #ruby
<Testo> Hi all
<ecksit> havenwood, i've found an example of how i want it to look to the person using it https://github.com/zendesk/zendesk_api_client_rb#usage (`client.tickets.some_method`) but i don't need the modelling associated with it
Meeh has joined #ruby
shoutsid has quit [Remote host closed the connection]
mary5030_ has joined #ruby
shoutsid has joined #ruby
imperator has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 265 seconds]
kies^ has quit [Ping timeout: 264 seconds]
dzejrou__ has joined #ruby
<Testo> can someone explain to me why this code out put `\n` after `without`?
monq has joined #ruby
<Testo> require 'yaml'¬
<Testo> hasho = {:string => "Any changes you've made will be lost. Are you sure you want to continue without saving?"}¬
<Testo> p hasho.to_yaml¬
<Testo> "---\n:string: Any changes you've made will be lost. Are you sure you want to continue without\n saving?\n"
polishdub has quit [Quit: Leaving]
speakingcode has quit [Remote host closed the connection]
<ecksit> something in your editor Testo?
Macaveli has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<darix> Testo: because to_yaml wants to keep a certain width?
<darix> maybe proposed by the yaml standard
<shevy> Testo yeah you have some hidden newline
mary5030 has quit [Ping timeout: 265 seconds]
stannard has quit [Remote host closed the connection]
bryanray has joined #ruby
<ecksit> apparently not - i get the same results
Ox0dea has joined #ruby
<shevy> >> >> require 'yaml'; hasho = {:string => "Any changes you've made will be lost. Are you sure you want to continue without saving?"}; p hasho.to_yaml
<ruboto_> shevy # => /tmp/execpad-8222a2e27d81/source-8222a2e27d81:2: syntax error, unexpected >> ...check link for more (https://eval.in/452428)
<shevy> oops
<shevy> >> require 'yaml'; hasho = {:string => "Any changes you've made will be lost. Are you sure you want to continue without saving?"}; p hasho.to_yaml
<ruboto_> shevy # => "---\n:string: Any changes you've made will be lost. Are you sure you want to continue without\n sa ...check link for more (https://eval.in/452429)
<shevy> ohhh
baweaver has joined #ruby
<shevy> interesting
<shevy> I am using syck
<shevy> seems like a bug in psych then
<ecksit> use `p hasho.to_yaml({:line_width => -1})` instead
dzejrou_ has quit [Ping timeout: 250 seconds]
`tim` has joined #ruby
<ecksit> that removes the additional new lines i was seeing
shoutsid has quit [Remote host closed the connection]
<darix> see setting
<shevy> >> require 'yaml'; hasho = {:string => "Any changes you've made will be lost. Are you sure you want to continue without saving?"}; p hasho.to_yaml({:line_width => -1})
<ruboto_> shevy # => "---\n:string: Any changes you've made will be lost. Are you sure you want to continue without savin ...check link for more (https://eval.in/452430)
<Ox0dea> shevy: Why do you use Syck?
<darix> Ox0dea: probably he is still on 1.8 ;)
nb_bez___ has joined #ruby
<shevy> Ox0dea I have invalid yaml files and psych refuses to work with these
<Ox0dea> shevy: Have you considered fixing the YAML files?
oetjenj has quit [Ping timeout: 250 seconds]
<shevy> Ox0dea yeah it is not possible
<Ox0dea> Not with that attitude.
<shevy> I told you how it is
<darix> shevy: what did Aaron say when you reported the issue?
<shevy> what issue?
mary5030_ has quit [Remote host closed the connection]
<Ox0dea> The one causing your Stockholm syndrome.
freerobby has quit [Quit: Leaving.]
pathrocle has joined #ruby
<shevy> The one causing your annoyance syndrome.
mary5030 has joined #ruby
<Ox0dea> Calm down.
rdavila has quit [Read error: Connection reset by peer]
<shevy> Calm down.
oetjenj has joined #ruby
shoutsid has joined #ruby
podman has joined #ruby
orion has joined #ruby
Testo has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Quit: dionysus69]
<orion> Hi. What's the return type of File.read in this line of code?: File.read(DATABASE).include?(code)
Testo has joined #ruby
ecksit has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 240 seconds]
jessemcgilallen has joined #ruby
blackmesa has joined #ruby
ecksit has joined #ruby
stamina has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
eminencehc has joined #ruby
wldcordeiro has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<shevy> File.read() itself should return a String
<shevy> .include?() should return true or false
djbkd has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
craigs has joined #ruby
craysiii has quit [Remote host closed the connection]
shoutsid has quit [Remote host closed the connection]
riotjon__ has joined #ruby
Chaoborid has quit []
wldcordeiro has quit [Client Quit]
wldcordeiro has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjone_ has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
craigs has quit [Ping timeout: 265 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wpp has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
shoutsid has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dsjethzs_ has left #ruby ["Leaving"]
bryanray has quit [Ping timeout: 255 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
fullofca_ has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
dmolina has joined #ruby
northfurr has joined #ruby
<shevy> <Ulti> "/usr/share/dict/words".IO.words.classify(*.lc.comb.sort.join).sort(-*.value)[0].say this is why I like Perl 6
<shevy> ^^^ wheeeeee
tomchapin has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
shoutsid has quit [Remote host closed the connection]
maletor has joined #ruby
<shevy> do we have something like .classify in ruby?
<darix> shevy: what does it do?
<shevy> darix haha ... I am not sure yet... I'll find out in a moment
<darix> perl 6
eminencehc has quit [Remote host closed the connection]
dzejrou__ has quit [Quit: dzejrou__]
<Ox0dea> It converts strings to PascalCase, I'd imagine.
shoutsid has joined #ruby
<darix> the DNF over programming languages
<darix> s/over/of/
htmldrum has joined #ruby
<shevy> something like: input say ('hello', 1, 22/7, 42, 'world').classify: { .Str.chars }
axl_ has quit [Quit: axl_]
<shevy> output # -> 1 => 1, 2 => 42, 5 => hello world, 8 => 3.142857
<shevy> somehow it grouped the strings or something
baweaver has joined #ruby
<shevy> but the weirdest thing was that perl 6 can look similar to ruby
<Ox0dea> Well, we have #group_by.
YourKicks has joined #ruby
Testo has quit []
<baweaver> ohai
<baweaver> I just finished warning someone about you Ox0dea
<baweaver> :P
<shevy> they also have a class Mu http://doc.perl6.org/routine/Bool#class_Mu
<Ox0dea> Oh?
shoutsid has quit [Remote host closed the connection]
<Ox0dea> For whom does my reputation now precede me?
<baweaver> She's new to Ruby, told her to join IRC and be wary of anything you say lest you try and convert her to the cult of nonalphanumericisms
Azure has quit [Ping timeout: 250 seconds]
<Ox0dea> Ah, of course.
<baweaver> also, fun problem for you
<baweaver> columnize space delimited text lines
<baweaver> left justified
oetjenj has quit [Ping timeout: 256 seconds]
<baweaver> made it work last night though ugly.
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bryanray has joined #ruby
<Ox0dea> Erm... I know about the #sort and #max methods?
<Ox0dea> #transpose as well, I suppose.
<baweaver> darix: that's no fun though :D
ecksit has quit [Read error: Connection reset by peer]
EllisTAA has joined #ruby
<darix> baweaver: i had to package that :p
<darix> that's why i knew it exists
<baweaver> fair
Channel6 has quit [Ping timeout: 272 seconds]
htmldrum has quit [Ping timeout: 246 seconds]
<baweaver> >> s="abc de fg\nawef feawfwef fefew\nawf efwaf fewfwewfe";c=s.lines.reduce([]){|a,l|l.split.map.with_index{|w,i|a[i]?(w.size>a[i]?w.size: a[i]): w.size}};s.lines.map{|l|l.split.map.with_index{|w,i|w.ljust(c[i]+1)}.join}.join("\n")
<ruboto_> baweaver # => "abc de fg \nawef feawfwef fefew \nawf efwaf fewfwewfe " (https://eval.in/452437)
<baweaver> woo
ssomanchi has joined #ruby
hakunin has joined #ruby
Azure has joined #ruby
oetjenj has joined #ruby
DoubleMalt has joined #ruby
<baweaver> what it's doing is looping once and finding the max length of each word column
<baweaver> then looping again to ljust it by that + 1 for padding.
<baweaver> as I said, super hacky though.
<darix> couldnt you ljust and print at the same time?
ramfjord has quit [Ping timeout: 252 seconds]
<baweaver> yeah, this is just for console output
YourKicks has quit [Quit: Leaving]
<baweaver> well, irc console
moei has joined #ruby
<darix> you could count while splitting and pushing into the array and then just ljust while printing :p
<darix> so
craigs has joined #ruby
<baweaver> the two loops will be faster.
shoutsid has joined #ruby
<baweaver> thought about condensing it and found it'd end up a lot worse for it.
c355E3B has quit [Quit: Connection closed for inactivity]
<baweaver> that, and this is more able to handle variable column lengths.
scripore has quit [Quit: This computer has gone to sleep]
spider-mario has quit [Remote host closed the connection]
<Ox0dea> baweaver: https://eval.in/452438
<Ox0dea> So much "undoing", though. :<
bruno- has quit [Ping timeout: 265 seconds]
jgt has joined #ruby
<baweaver> Ox0dea: look what I found again
shoutsid has quit [Remote host closed the connection]
<baweaver> >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
<ruboto_> baweaver # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/452439)
<shevy> ack
<Ox0dea> What the hell is that?!
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleung has quit [Ping timeout: 265 seconds]
craigs has quit [Ping timeout: 268 seconds]
<Ox0dea> What sort of demented monster even...?
pauly_oc has joined #ruby
<Ox0dea> baweaver: Would you believe me if I told you I signed it?
ssomanchi has quit [Ping timeout: 246 seconds]
last_staff has quit [Quit: last_staff]
<baweaver> debating
ruby-lang045 has joined #ruby
shoutsid has joined #ruby
northfurr has quit [Quit: northfurr]
Soda has quit [Remote host closed the connection]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> I rather obviously signed this one: http://ideone.com/DReMaw
scripore has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
shoutsid has quit [Remote host closed the connection]
ramfjord has joined #ruby
<Ox0dea> I think I like Whitespace more than LOLCODE.
<baweaver> whitespace is beyond me.
<Ox0dea> It's secretly just (watered down) assembly programming.
HAL2328_ has quit [Ping timeout: 265 seconds]
bryanray has joined #ruby
shoutsid has joined #ruby
<Ox0dea> You've got stack and heap manipulation, labels, jumps, calls and return.
<baweaver> I barely skim into C, so...
karapetyan has quit [Remote host closed the connection]
oetjenj has quit [Ping timeout: 272 seconds]
rdavila has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
karapetyan has joined #ruby
<Ox0dea> I've never been able to completely pin the appeal, but it's the "fun" of assembly without bothering about the implementation details.
rikkipitt has quit [Quit: Leaving...]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
karapetyan has quit [Remote host closed the connection]
nettoweb has joined #ruby
karapetyan has joined #ruby
oetjenj has joined #ruby
blue_deref has quit [Quit: Taking myself out of hear.]
t0code has joined #ruby
fullofca_ has joined #ruby
FernandoBasso has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
chopin has quit [Ping timeout: 246 seconds]
d3sp0t_ has joined #ruby
<t0code> hey im having a noob problem. whats wrong with this code to where it wont call my other methods?
fullofcaffeine has joined #ruby
rdavila has quit [Read error: Connection reset by peer]
<Ox0dea> t0code: Your problem is in another castle.
patdohere has joined #ruby
<t0code> hmm
fullofca_ has quit [Ping timeout: 256 seconds]
<baweaver> how do you _know_ it's not?
<baweaver> without seeing the other methods I couldn't tell.
pocketprotector- has quit [Quit: Konversation terminated!]
firstdayonthejob has quit [Ping timeout: 272 seconds]
NullVoxPopuli has quit [Remote host closed the connection]
nateberkopec has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pocketprotector- has joined #ruby
jobewan has quit [Quit: Leaving]
<t0code> ill post full code for context but bare with my style
SCHAAP137 has joined #ruby
snockerton has quit [Quit: Leaving.]
EllisTAA has quit [Quit: EllisTAA]
rdavila has joined #ruby
cornerma1 has joined #ruby
choke has joined #ruby
shoutsid has quit [Remote host closed the connection]
gregoriokusowski has quit [Quit: gregoriokusowski]
DoubleMalt has quit [Ping timeout: 264 seconds]
Guest47655 has quit [Remote host closed the connection]
<shevy> t0code you need to improve your code little by little
<shevy> puts "#{game}", for instance, the "#{}" should be superfluous, you should be able to write just: puts game
cornerma1 is now known as cornerman
<shevy> which method is not called by the way?
Vile` has joined #ruby
<shevy> @new = new looks strange
acidrainfall has quit [Quit: Leaving.]
oetjenj has quit [Ping timeout: 255 seconds]
A124 has quit [Quit: '']
A124 has joined #ruby
ruby-lang045 has quit [Ping timeout: 246 seconds]
<t0code> ^heh. noticed and changed
<t0code> i got everything working now. just keep forgetting to make sure im converting my objects to the correct format?
oetjenj has joined #ruby
karapetyan has quit [Remote host closed the connection]
<t0code> .to_i etc
shoutsid has joined #ruby
d3sp0t_ has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
tomchapin has joined #ruby
Rollabunna has joined #ruby
<t0code> someone here yesterday recommended to me to try to finish a program with all methods and no classes to understand why we use classes. just got it lol
Rollabunna has quit [Remote host closed the connection]
<shevy> yeah
<Ox0dea> >> self.class # t0code
<shevy> once you have methods, it is easy to put them into a class
<ruboto_> Ox0dea # => Object (https://eval.in/452440)
<Ox0dea> It's all classes!
<shevy> t0code and then you can change $foo into @foo too
craigs has joined #ruby
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 250 seconds]
`tim` has joined #ruby
<t0code> ya. seems to me, correct me if im wrong, its siginiciantly more efficient to reference a class to pass information around more easily?
<shevy> the problem with $foo is that it will be global
<shevy> so if someone else uses the same name then it can clash, this can be annoying if you wish to distribute your ruby code one day
<baweaver> t0code: not really
<Ox0dea> t0code: No, classes slow things down.
<Ox0dea> But pretend you didn't read that.
<baweaver> sounds like you have someone cargo culting
<Ox0dea> This is #ruby.
<t0code> lol
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<t0code> cargo culting?
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Doing or believing somebody else told you to with no rational justification.
<Ox0dea> *something somebody
mary5030 has joined #ruby
<baweaver> ritualization of code practices that serve no real purpose.
jackjackdripper1 has quit [Quit: Leaving.]
shoutsid has quit [Remote host closed the connection]
<shevy> t0code if the code works, create a new .rb file, with the very same code, and try to just make it into a class instead; the $ variable can easily become a @ variable instead, initialize it in "def initialize" for example
DanKnox[away] is now known as DanKnox
<baweaver> worst offenders: OO, Design Patterns
<t0code> certainly am that
craigs has quit [Ping timeout: 250 seconds]
shoutsid has joined #ruby
<t0code> so whats the proper way to declare an object such as a game character with a variety of variables and method?
workmad3 has joined #ruby
<Ox0dea> t0code: A class.
<baweaver> Also, use spaces instead of tabs
<t0code> ok. thats where my efficienty conclusions came from.
<baweaver> ruby indentation tends to be 2 space
<baweaver> much easier to read.
<Ox0dea> t0code: "Efficiency" is a loaded word.
<shevy> it will be more efficient because it'll be easier to reuse as a class
<Ox0dea> You want "productivity" in this case.
<Ox0dea> baweaver: LLVM'
<Ox0dea> 3
<Ox0dea> 3
<Ox0dea> That wasn't me.
<Ox0dea> LLVM C is also two spaces, which caught me off guard.
<Ox0dea> *C(++), of course.
<baweaver> buy that, read it.
mary5030 has quit [Ping timeout: 250 seconds]
<Ox0dea> Clone that, read it.
GriffinHeart has joined #ruby
shoutsid has quit [Remote host closed the connection]
<baweaver> read all the things
<t0code> >
workmad3 has quit [Ping timeout: 240 seconds]
monq has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> <
<t0code> P
swgillespie has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
GriffinHeart has quit [Ping timeout: 240 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> write all the things! http://i.imgur.com/Wyzn1.jpg
oetjenj has quit [Ping timeout: 250 seconds]
blackmesa has quit [Quit: WeeChat 1.3]
<shevy> havenwood here is one variant for the -> stabby lambda http://img04.deviantart.net/bcb0/i/2011/203/a/8/stab_all_the_things_by_rayfe-d41c7a8.png
dotrb has quit [Quit: leaving]
baweaver has quit [Remote host closed the connection]
teclator has quit [Remote host closed the connection]
oetjenj has joined #ruby
<t0code> installing
Jardayn has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
mattprelude has quit [Ping timeout: 272 seconds]
shoutsid has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
<t0code> whats the dev kit have in it?
craigs has joined #ruby
colstrom_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofxx has joined #ruby
failshell has joined #ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
etrae has joined #ruby
Musashi007 has joined #ruby
awrfas2 has quit [Ping timeout: 240 seconds]
inascime has quit [Quit: Leaving]
shoutsid has quit [Remote host closed the connection]
quazimodo has joined #ruby
shoutsid has joined #ruby
shoutsid has quit [Client Quit]
arthurix_ has joined #ruby
craigs has quit [Ping timeout: 246 seconds]
idefine has joined #ruby
Bellthoven has joined #ruby
<atmosx> hello shevy
<atmosx> hello everyone
<shevy> yo atmosx
<shevy> did you finally get your degree
<atmosx> shevy: how are you?
<atmosx> shevy: no, I have to start studying for the state exams, 8/12
<atmosx> shevy: it's the last exam, if I pass this, it's over no more exams
<shevy> quite ok, I am about 20% done porting my last project from the ruby 1.8.x era
arthurix has quit [Ping timeout: 250 seconds]
<atmosx> shevy: degre ein June 16
failshell has quit [Ping timeout: 272 seconds]
<atmosx> wow
<shevy> and after I have finished I shall never never never ever again do any rewrite. ever
<atmosx> I'm rewriting argosnap and writing my first rails project too
<atmosx> haha
<shevy> atmosx if you pass the state exam you'll get the degree?
<atmosx> shevy: I could yes.
<shevy> what do you mean you "could" :D
HAL2328 has joined #ruby
<atmosx> shevy: my thesis is ready, the states exams are ok. I will wait another 6 months but it's just ... waiting (if I pass) nothing more
<shevy> hehe... those waiting times are so strange
<atmosx> shevy: after thesis submition, I have to take the state exams. Once I pass the state exams, I need to 'present' my thesis and THEN I get the degree.
<atmosx> shevy: it's a scheme I devised in order to make it 5 years
<atmosx> shevy: otherwise would be 3.5 years which is not acceptable for MDPharm
<atmosx> not in Greece
<atmosx> in the UK it's fine
slawrence00 has quit [Ping timeout: 256 seconds]
<shevy> so strange
<atmosx> nor Italy, Germany, Austria (IIRC), etc.
<shevy> yeah
dikaio has quit [Quit: ........]
<atmosx> shevy: the strange is that I managed to finnish earlier bascially...
<atmosx> They let me take more classes per year
oetjenj has quit [Ping timeout: 250 seconds]
<atmosx> I did medicinal chemistry and analytical chemistry the same sem. You normaly don't do that. You take first analytical and then medicinal
awrfas2 has joined #ruby
etrae has quit [Ping timeout: 260 seconds]
DanKnox is now known as DanKnox[away]
colstrom_ has joined #ruby
oetjenj has joined #ruby
idefine has quit [Remote host closed the connection]
JammyHammy has joined #ruby
baweaver has quit [Remote host closed the connection]
scripore has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
<t0code> when is it appropriate to use a module?
nxa has joined #ruby
<nxa> How does the coerce method work in ruby/
<Ox0dea> t0code: Are you familiar with the notion of namespaces?
<t0code> no, looking it up
V1s1ble has quit [Quit: Leaving]
<t0code> an idea of grouping related files/activities
<Ox0dea> Sort of, but not quite.
<Ox0dea> Really, it's right there on the tin; it's a space for names.
<t0code> ok
<Ox0dea> It's perfectly reasonable to exepct two different things to want, say, a Thing class, but they can't both have it, so they'd stick it in a module to disambiguate.
michaeldeol has quit [Ping timeout: 252 seconds]