<bjb>
gems and bundles ... I need help. I want to profile my rails app. I have ruby-prof on my Debian system at /var/lib/gems/1.8/gems but it is not in the output of gem list or bundle exec gem list. How can I install it were an app run with bundle exec will see it?
saramic has quit [Read error: Connection reset by peer]
saramic has joined #ruby-lang
saramic has quit [Read error: Connection reset by peer]
saramic has joined #ruby-lang
jgpawletko has joined #ruby-lang
kurko__ has quit [Ping timeout: 240 seconds]
sent1nel has quit []
yfeldblum has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 255 seconds]
kurko__ has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 265 seconds]
ahmetkapikiran has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
ahmetkapikiran has quit [Ping timeout: 244 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
womble has quit [Excess Flood]
womble has joined #ruby-lang
SuMo_D has joined #ruby-lang
charliesome has joined #ruby-lang
duderonomy has joined #ruby-lang
Sunlorhic has joined #ruby-lang
saramic has quit [Remote host closed the connection]
kurko__ has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
Musashi007 has joined #ruby-lang
David_H__ has joined #ruby-lang
ahmetkapikiran has joined #ruby-lang
David_H_Smith has quit [Ping timeout: 245 seconds]
Asher1 has joined #ruby-lang
yfeldblum has joined #ruby-lang
Asher has quit [Ping timeout: 272 seconds]
Asher1 is now known as Asher
loincloth has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
David_H__ has quit [Remote host closed the connection]
kurko__ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 240 seconds]
David_H_Smith has quit [Read error: Connection reset by peer]
David_H__ has joined #ruby-lang
hahuang61 has joined #ruby-lang
David_H__ has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
jimbach has joined #ruby-lang
David_H_Smith has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
hahuang61 has quit [Ping timeout: 265 seconds]
oleo__ has joined #ruby-lang
oleo is now known as Guest78399
saramic has joined #ruby-lang
Guest78399 has quit [Ping timeout: 244 seconds]
sepp2k has quit [Read error: Connection reset by peer]
jonathanmarvens has joined #ruby-lang
jdecuirm has quit [Ping timeout: 245 seconds]
emmesswhy has joined #ruby-lang
womble has quit [Excess Flood]
womble has joined #ruby-lang
mistym has joined #ruby-lang
jdecuirm has joined #ruby-lang
lsegal has joined #ruby-lang
snovity has quit [Ping timeout: 245 seconds]
saramic has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
kurko__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind1 has quit [Ping timeout: 265 seconds]
arBmind has joined #ruby-lang
saramic has joined #ruby-lang
hahuang61 has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
lcdhoffman has joined #ruby-lang
oak has joined #ruby-lang
gix has quit [Ping timeout: 265 seconds]
ur5us has quit [Remote host closed the connection]
gix has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
jimbach has quit [Remote host closed the connection]
oak has quit [Ping timeout: 244 seconds]
mdarby has joined #ruby-lang
kyb3r_ has joined #ruby-lang
oak has joined #ruby-lang
djbkd has joined #ruby-lang
djbkd_ has quit [Ping timeout: 264 seconds]
jdecuirm has quit [Ping timeout: 240 seconds]
oak has quit [Ping timeout: 244 seconds]
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
epitron has quit [Ping timeout: 250 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
epitron has joined #ruby-lang
ahmetkapikiran has joined #ruby-lang
ahmetkapikiran has quit [Client Quit]
AKASkip has joined #ruby-lang
brianpWins has joined #ruby-lang
epitron has quit [Remote host closed the connection]
epitron has joined #ruby-lang
epitron has quit [Changing host]
epitron has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
diegoviola has quit [Read error: Connection reset by peer]
AKASkip has quit [Ping timeout: 244 seconds]
gianlucadv has joined #ruby-lang
jg has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
JoshuaPaling has quit [Client Quit]
Sunlorhic has quit [Ping timeout: 256 seconds]
epitron has quit [Ping timeout: 250 seconds]
JohnBat26 has joined #ruby-lang
epitron has joined #ruby-lang
epitron has quit [Changing host]
epitron has joined #ruby-lang
symm- has joined #ruby-lang
skade has joined #ruby-lang
rahul_j has joined #ruby-lang
symm- has quit [Client Quit]
Musashi007 has joined #ruby-lang
jonathanmarvens has quit [Remote host closed the connection]
symm- has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
SuMo_D has quit [Ping timeout: 260 seconds]
arooni-mobile has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
danijoo_ has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
duper has quit [Ping timeout: 255 seconds]
AKASkip has joined #ruby-lang
duper has joined #ruby-lang
saramic_ has joined #ruby-lang
symm- has quit [Ping timeout: 250 seconds]
saramic has quit [Ping timeout: 244 seconds]
saramic_ has quit [Ping timeout: 265 seconds]
SuMo_D has joined #ruby-lang
Miphix has quit [Quit: Leaving]
houhoulis has quit [Remote host closed the connection]
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 264 seconds]
rahul_j_ is now known as rahul_j
SuMo_D has quit [Ping timeout: 245 seconds]
fusillicode has joined #ruby-lang
fusillicode1 has joined #ruby-lang
Miphix has joined #ruby-lang
havenwood has quit []
fusillicode has quit [Ping timeout: 264 seconds]
ta has quit [Remote host closed the connection]
allomov has joined #ruby-lang
q_leonetti has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
q_leonetti has quit [Client Quit]
cornerma1 has joined #ruby-lang
godd2 has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
[spoiler] has joined #ruby-lang
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 265 seconds]
rahul_j_ is now known as rahul_j
yfeldblum has quit [Ping timeout: 244 seconds]
jxie has quit [Ping timeout: 240 seconds]
jxie has joined #ruby-lang
tenderlove has joined #ruby-lang
tbuehlmann has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby-lang
francisfish has joined #ruby-lang
marcdel has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ta has joined #ruby-lang
|jemc| has quit [Ping timeout: 255 seconds]
|jemc| has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
marcdel has quit []
allomov has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
marcdel has joined #ruby-lang
solars has joined #ruby-lang
francisfish has joined #ruby-lang
solars has quit [Client Quit]
solars has joined #ruby-lang
existensil has quit [Ping timeout: 245 seconds]
existensil has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
RitterJack has joined #ruby-lang
saramic has joined #ruby-lang
rahul_j has joined #ruby-lang
saramic has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
saramic has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
momomomomo has joined #ruby-lang
hramrach_ has quit [Ping timeout: 250 seconds]
Lingos has joined #ruby-lang
Lingos has quit [Client Quit]
futilegames has joined #ruby-lang
ta has quit [Quit: Leaving...]
hramrach_ has joined #ruby-lang
allomov has joined #ruby-lang
ta has joined #ruby-lang
saramic has quit [Remote host closed the connection]
futilegames_ has joined #ruby-lang
futilegames has quit [Ping timeout: 250 seconds]
futilegames_ is now known as futilegames
michael_mbp has quit [Excess Flood]
allomov has quit []
michael_mbp has joined #ruby-lang
saramic has joined #ruby-lang
allomov has joined #ruby-lang
SuMo_D has joined #ruby-lang
skarn has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
yfeldblum has joined #ruby-lang
arBmind has joined #ruby-lang
ironhide_604 has joined #ruby-lang
SuMo_D has quit [Ping timeout: 264 seconds]
saramic has quit [Remote host closed the connection]
arBmind has quit [Ping timeout: 265 seconds]
marcdel has quit []
<yorickpeterse>
morning
<tbuehlmann>
moin
<ljarvis>
moin
Lingos has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
q_leonetti has joined #ruby-lang
michd is now known as MichD
skarn has joined #ruby-lang
jmrepetti has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
|jemc| has quit [Ping timeout: 250 seconds]
francisfish has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 244 seconds]
GBrawl has joined #ruby-lang
dangerousdave has joined #ruby-lang
rahul_j_ has joined #ruby-lang
migbar has joined #ruby-lang
rahul_j has quit [Ping timeout: 255 seconds]
rahul_j_ is now known as rahul_j
<yorickpeterse>
Copying users in mysql: still hard
<yorickpeterse>
already fucked up permissions somehow
<yorickpeterse>
and RDS can't restore snapshots to existing but different instances
<yorickpeterse>
so production -> staging doesn't work
momomomomo has quit [Quit: momomomomo]
ironhide_604 has quit [Ping timeout: 255 seconds]
<yorickpeterse>
something something we should've set up Route53 for this before
<yorickpeterse>
now I get to change staging hostnames in 25 apps
kyb3r_ has quit [Quit: Leaving]
ironhide_604 has joined #ruby-lang
arBmind has joined #ruby-lang
migbar has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
workmad3 has quit [Read error: Connection reset by peer]
Stephanyan has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<darix>
is there any public information about the coverage of the MRI testsuite?
Lingos has quit [Quit: Be back later ...]
<yorickpeterse>
darix: not that I know of
yfeldblum has quit [Ping timeout: 245 seconds]
RitterJack has quit [Remote host closed the connection]
<ljarvis>
yorickpeterse: this is not a troll, but can't you seriously considering moving away from mysql?
<yorickpeterse>
ljarvis: we are
<yorickpeterse>
it's planned, but not trivial
<ljarvis>
ah
<yorickpeterse>
Due to Pg being more strict we'll have to modify a bunch of apps first
<yorickpeterse>
e.g. we have a lot of code doing shit like where('numeric_column != ""')
<yorickpeterse>
which won't work on Pg
<maloik>
Anyone here happen to work with IPAddr objects a lot? I'm trying to figure out the best way to save them to the database and be able to query on ranges rather than exact matches without having to turn them all back into IPAddr objects
<darix>
yorickpeterse: those funny casting rules in mysql ...
<ljarvis>
wow
<yorickpeterse>
darix: INSERT INTO foo (some_date_column) VALUES ('lol')
<maloik>
So far my only guess is saving the #to_i value, and saving a second #to_i value if the object represents a range
<ljarvis>
maloik: what db do you use?
<maloik>
mysql
<maloik>
(:D)
<ljarvis>
maloik: use int and use the inet functions?
skade has joined #ruby-lang
<maloik>
that would work for singular ip addresses, but I'll also want to query on ranges
stamina has joined #ruby-lang
<darix>
yorickpeterse: my last fun was: define table and all columns as case sensitive. have a unique constraint on the primary key column. insert some case sensitive data. connect with client that defines case insensitive collate for its connection -> errors out with "duplicate key found"
<maloik>
there's no query you can do to see if an integer is part of a range, because said range is represented as an integer
<maloik>
afaik anyway
<yorickpeterse>
maloik: You can probably save whatever IPAddr#hton returns
<darix>
maloik: if you are on pg: ip4r
<yorickpeterse>
darix: ha
<ljarvis>
if baffles me why people use mysql
<darix>
we use that extensively with mirrorbrain
<yorickpeterse>
ljarvis: but it's soooo much faster bro
<maloik>
ljarvis: not sure yet... I think they'll want arbitrary ranges as well
<ljarvis>
cool, it should be easy to run some queries to see what fits your needs best
<darix>
maloik: see the last link
q_leonetti has quit [Quit: q_leonetti]
<darix>
anyway
<darix>
lots of options just pick one
Lingos has quit [Quit: Be back later ...]
Lingos has joined #ruby-lang
<yorickpeterse>
MRI GC tuning: a full time job on its own
<yorickpeterse>
out of the box GC is still shit memory usage, so back to tweaking it is
<maloik>
pretty sure ip4r is what I'll want, but gonna read a bit more about it
<ljarvis>
maloik: just tried "select inet ip << any (array[ip, list]::inet[]);" which works, but you probably want to use gin (which leads back to ip4r anyway)
marr has joined #ruby-lang
<maloik>
gin? I like gin, but I have the idea I'm thinking of something else
ironhide_604 has quit [Quit: ironhide_604]
ldnunes has joined #ruby-lang
<ljarvis>
:D
araujo has joined #ruby-lang
araujo has quit [Changing host]
araujo has joined #ruby-lang
q_leonetti has joined #ruby-lang
<ljarvis>
it's an index type
<ljarvis>
iirc ip4r uses it
<ljarvis>
they're stupid fast
<ljarvis>
(lookups, anyway)
<maloik>
oh I see
<maloik>
gonna toy around with it, see if I get stuck somehow
<ljarvis>
enjoy
<maloik>
there's this new thing called TDD which should help me figure out if this will work for us or not
workmad3 has joined #ruby-lang
<yorickpeterse>
don't forget the kanbans and standups
<ljarvis>
i practice TSS
<maloik>
I have a standing desk so the whole day is a standup
workmad3 has quit [Read error: Connection reset by peer]
<yorickpeterse>
it's not a proper standup if you're getting things done
<maloik>
I'm just pretending to get things done so I think I'm in the clear?
<maloik>
as for kanbans, I'm not really into martial arts
<yorickpeterse>
if only it involved punching people it would be useful
<darix>
yorickpeterse: do you blog about all your changes/tuning somewhere?
<ljarvis>
yorickrants.com
<whitequark>
how is that not registered?
<darix>
ljarvis: i still get some errors when using gin with "iprange" type. but works with ip4r/ip6r
<darix>
had no time for checking why yet because of the release.
workmad3 has joined #ruby-lang
<yorickpeterse>
darix: not yet
<yorickpeterse>
whitequark: yorickpeterse.com
<whitequark>
o
<whitequark>
change your last name to "ranting"
<yorickpeterse>
I probably should though, though the results were still pretty basic
<darix>
so peterse is another word for rant?
<whitequark>
"yorickranting.com"
<yorickpeterse>
whitequark: if you pay me the few thousand euros it costs to do that,s ure
<yorickpeterse>
* sure
<ljarvis>
yorantpeterse
<whitequark>
it really does?
<yorickpeterse>
Yeah, changing names doesn't come cheap
<ljarvis>
come to the uk
<whitequark>
oh, right, reissuing all kinds of licenses
<ljarvis>
it's basically free
<yorickpeterse>
Yes, you're basically a completely new person
workmad3 has quit [Read error: Connection reset by peer]
<whitequark>
but
<whitequark>
"Yorick Ranting"
<whitequark>
it's tempting
<whitequark>
let's make a kickstarter
<ljarvis>
i'd contribute to the kickstarter
<whitequark>
ditto
<maloik>
im in
<yorickpeterse>
haha
caseypatrickdris has joined #ruby-lang
workmad3 has joined #ruby-lang
workmad3 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
workmad3 has quit [Read error: Connection reset by peer]
Lingos has quit [Quit: Be back later ...]
workmad3 has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
jonathan_alban has joined #ruby-lang
rahul_j has joined #ruby-lang
workmad3 has quit [Read error: Connection reset by peer]
Lingos has joined #ruby-lang
workmad3 has joined #ruby-lang
snovity has joined #ruby-lang
workmad3 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
<darix>
so what is the link?
workmad3 has quit [Read error: Connection reset by peer]
<yorickpeterse>
:<
skade has quit [Quit: Computer has gone to sleep.]
mkaesz has quit [Ping timeout: 250 seconds]
GBrawl has quit [Quit: (null)]
sarkyniin has joined #ruby-lang
Lingos has quit [Quit: Be back later ...]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
mkaesz has joined #ruby-lang
tkuchiki has quit [Ping timeout: 258 seconds]
migbar has quit [Remote host closed the connection]
rahul_j has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
Lingos has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
rolfb has joined #ruby-lang
kith has quit [Quit: kith]
Lingos has quit [Remote host closed the connection]
kith has joined #ruby-lang
x0f has joined #ruby-lang
JaReAx has quit [Read error: Connection reset by peer]
migbar has joined #ruby-lang
huug has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
huug has quit [Client Quit]
kurko__ has joined #ruby-lang
spastorino has joined #ruby-lang
skade has joined #ruby-lang
toretore has joined #ruby-lang
imperator has joined #ruby-lang
jimbach has joined #ruby-lang
q_leonetti has quit [Quit: q_leonetti]
jonathanmarvens has quit []
ikrima has joined #ruby-lang
workmad3 has joined #ruby-lang
yfeldblum has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
GBrawl has joined #ruby-lang
hinbody has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
jmrepetti has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
banister_ has joined #ruby-lang
dabradley has joined #ruby-lang
banister has quit [Ping timeout: 245 seconds]
arBmind has quit [Quit: Leaving.]
imperator has quit [Quit: Valete!]
q_leonetti has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
kirin` has joined #ruby-lang
arBmind has joined #ruby-lang
kirin` has quit [Remote host closed the connection]
q_leonetti has quit [Quit: q_leonetti]
dagda1 has joined #ruby-lang
malconis has joined #ruby-lang
dwknoxy has joined #ruby-lang
yfeldblum has joined #ruby-lang
allomov has quit [Remote host closed the connection]
jgpawletko has joined #ruby-lang
allomov has joined #ruby-lang
joast has quit [Quit: Leaving.]
allomov_ has joined #ruby-lang
allomov has quit [Read error: Connection reset by peer]
nelsonsar has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
nelsonsar has joined #ruby-lang
kirin` has joined #ruby-lang
allomov_ has quit []
workmad3 is now known as wm3|away
<maloik>
uhh, do I somehow need to load this ip4r extension in rails or in my adapter or so?
<maloik>
I've been trying to add a field, didn't immediatly find it, added it through the commandline and ran migrations to check how it turned up in db/schema and getting an error
<maloik>
unrecognized type, treating as string
<maloik>
does that ring a bell ljarvis ?
kirin` has quit [Ping timeout: 245 seconds]
nelsonsar has quit [Remote host closed the connection]
<yorickpeterse>
10 more invalidations left to remove, if possible
Rubennn has quit [Read error: Connection reset by peer]
<ljarvis>
maloik: we had a chef cookbook that handled setting up the extension, and it's declared in the schema, I can take a look at that code a bit later if you're still having issues
<darix>
maloik: you have to add it to your DB
Rubennn has joined #ruby-lang
<darix>
maloik: sudo -u postgres psql
<darix>
maloik: sudo -u postgres psql yourdb
<darix>
then
<darix>
create extension ip4r;
<darix>
and try again
jmrepetti has joined #ruby-lang
<ljarvis>
yorickpeterse: props
Miphix has quit [Quit: Leaving]
shinnya has joined #ruby-lang
claytonzaugg has joined #ruby-lang
doosy has joined #ruby-lang
migbar has quit [Ping timeout: 264 seconds]
<claytonzaugg>
Would someone be able to help me understand some questions from Rubykoans?
<ljarvis>
claytonzaugg: shoot
<claytonzaugg>
It's number 7 I believe, about_nil.rb:16:in `rescue in test_you_dont_get_null_pointer_errors_when_calling_methods_on_nil'
<doosy>
You just have to enter the error that is being thrown
<claytonzaugg>
...in quotes? I swear I thought I was doing that
<doosy>
nope
<claytonzaugg>
The answers you seek...
<claytonzaugg>
Expected "FILL ME IN" to equal NoMethodError
<doosy>
not in quotes
<claytonzaugg>
and it says to ask for help, but how do i ask for help?
<doosy>
look online, try irb in terminal
<doosy>
ask you ruby friends
<claytonzaugg>
doosy, IRC Ruby-Lang is my ruby friends
<doosy>
lol
<claytonzaugg>
ljarvis, any advice or guidance?
<maloik>
darix: yep just found that... so far so good, but still can't set the type to ip4r
<claytonzaugg>
doosy, what's the error message?
<jhass>
claytonzaugg: what do you expect what the value of ex.class is?
<claytonzaugg>
I honestly have no idea, in the pastebin I put, http://pastebin.com/T1VfcVGj, line 9 where I put help, it is originally __
<claytonzaugg>
jhass, I honestly have no idea, in the pastebin I put, http://pastebin.com/T1VfcVGj, line 9 where I put help, it is originally __
<oddmunds>
does anyone really call it "null pointer" in ruby? looks like a java thing
<jhass>
claytonzaugg: so help in this case returns "FILL ME IN"
<jhass>
carefully read the error message now
<claytonzaugg>
so on line 9 I replace __ (which I changed to the word help) to "FILL ME IN"?
<jhass>
try it
<claytonzaugg>
do single or double quotes matter in Ruby?
<jhass>
they do but not in this case
<doosy>
yes
<jhass>
the koans will teach you how they matter later
<claytonzaugg>
The Master says:
<claytonzaugg>
You have not yet reached enlightenment.
<claytonzaugg>
I sense frustration. Do not be afraid to ask for help.
<claytonzaugg>
The answers you seek...
<claytonzaugg>
Expected "FILL ME IN" to equal NoMethodError
<claytonzaugg>
Please meditate on the following code:
<claytonzaugg>
/home/clayton/Copy/quarter10/MTM470/koans/about_nil.rb:16:in `rescue in test_you_dont_get_null_pointer_errors_when_calling_methods_on_nil'
<doosy>
you shouldn't have to compare a string with a class
memesys has joined #ruby-lang
<claytonzaugg>
jhass, I apologize, is the message in green? If so, it's /home/clayton/Copy/quarter10/MTM470/koans/about_nil.rb:12:in `test_you_dont_get_null_pointer_errors_when_calling_methods_on_nil'
GBrawl has joined #ruby-lang
<jhass>
claytonzaugg: I said you should read it, not that you should paste it
<jhass>
and no, that's not the important par
<jhass>
t
nelsonsar has joined #ruby-lang
<claytonzaugg>
*takes a deep breath* okay, let me start over. On this particular part of Koans, ultimately what am I trying to learn at this junction?
<claytonzaugg>
I am utterly confused and lost
<yorickpeterse>
ljarvis: fun trivia
<jhass>
you should learn what happens if you call a method that doesn't exist on nil
<yorickpeterse>
ljarvis: said problem in httpclient was something me and dbussink found almost a year ago
<yorickpeterse>
but I never got to actually fixing it
<claytonzaugg>
jhass, I think I may have discovered where the error message reads out, is it DIRECTLY after where I run ruby path_to_enlightenment.rb?
nelsonsar has quit [Remote host closed the connection]
<jhass>
claytonzaugg: you already pasted the important part, now read it
<claytonzaugg>
okay, I will read it
<claytonzaugg>
Okay, from what I just read, it seems to me that I need to replace the __ with NoMethodError
<claytonzaugg>
jhass, Okay, from what I just read, it seems to me that I need to replace the __ with NoMethodError
<jhass>
try it
<claytonzaugg>
jhass, Okay I tried it
<claytonzaugg>
It gave me a new message
<jhass>
that's progress, no? ;)
<claytonzaugg>
yes and no :) I have seen this before, but that's when i didn't fullyu grasp what to do so I came on here
<claytonzaugg>
The answers you seek...
<claytonzaugg>
Expected "undefined method `some_method_nil_doesnt_know_about' for nil:NilClass" to match /__/
<claytonzaugg>
oh hell, wait a second!
<claytonzaugg>
Damnit, it's directing me a few lines lower on 20! Ef, *way to read the thing!*
ta has quit [Remote host closed the connection]
<claytonzaugg>
okay jhass, I see what it's trying to have me do, but I don't completely understand. May I ask you about the next step or perhaps teach me to understand what it's trying to have me do?
<jhass>
that nil does have some methods defined obviously
<jhass>
do you read the methdo names?
<claytonzaugg>
I have not...
ConstantineXVI has joined #ruby-lang
<claytonzaugg>
I just did
seank_ has quit [Read error: No route to host]
<claytonzaugg>
YAY!
seank_ has joined #ruby-lang
<claytonzaugg>
PASSED IT!
<claytonzaugg>
some_method_nil_doesnt_know_about
<claytonzaugg>
Thank you!
arBmind has quit [Quit: Leaving.]
miqui has joined #ruby-lang
<claytonzaugg>
It took me quite awhile to get it, but thank you so much jhass!
<jhass>
you're welcome ;)
<jhass>
it's worth reading every single line of the koans top down, don't just skim through them
<claytonzaugg>
Expected "FILL ME IN" to equal true
<claytonzaugg>
I tried the true, "true" nil, nil.nil
<claytonzaugg>
oh wait...
<jhass>
you didn't try true
<claytonzaugg>
damn, jhass I though putting false would be true, meaning nil.nil isn't nil
<claytonzaugg>
I did
<claytonzaugg>
I'll do it again since you said that...
<claytonzaugg>
when I use true, no quotes, it gives me this
<claytonzaugg>
The answers you seek...
<claytonzaugg>
Expected "FILL ME IN" to equal ""
<claytonzaugg>
then I tried ""
robbyoconnor has quit [Ping timeout: 265 seconds]
<jhass>
pay attention to the line number
<claytonzaugg>
damnit! It changed on me again! I thought it's the same until I see the progression go up from 7
<claytonzaugg>
did it
<doosy>
what's the official rubyonrails irc channel?
<ljarvis>
#ror
<doosy>
thanks
<yorickpeterse>
oh you little Rubies
<claytonzaugg>
jhass, that was my problem, I kept changing line 25 based on the new criteria when I should have been changing the next line like you correctly pointed out, changes
<yorickpeterse>
still connecting to my old staging DB even though the configs are updated
<claytonzaugg>
thank you again
<claytonzaugg>
let's see if I can get through the next one CHECKING NEW LINE CALLS
<claytonzaugg>
lol damn, yup, line change again on that one. Thank you again jhass, hopefully I won't need to spam the channel again! Next time should I do a private message so I don't fill up the channel?
kirin` has joined #ruby-lang
<jhass>
no, full up the channel please ;)
<jhass>
*fill
<claytonzaugg>
okay I just feel bad with all my talking
<yorickpeterse>
claytonzaugg: don't feel bad, you should see me on the average day
<claytonzaugg>
lol thanks yorickpeterse
SuMo_D has joined #ruby-lang
enebo has joined #ruby-lang
GBrawl has quit [Quit: (null)]
charliesome has quit [Quit: zzz]
oleo has joined #ruby-lang
doosy has quit [Remote host closed the connection]
sarkyniin has quit [Remote host closed the connection]
doosy has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
AKASkip has quit [Ping timeout: 272 seconds]
<maloik>
fuck this, I'll stick with what I/we know and go the mysql route... apparently INET_ATON() is builtin so it shouldnt prove much of a problem at all
<ljarvis>
:D
sarkyniin has joined #ruby-lang
kirin` has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
doosy has quit [Ping timeout: 264 seconds]
claytonzaugg has quit [Ping timeout: 245 seconds]
mattyohe has joined #ruby-lang
sarkyniin has quit [Remote host closed the connection]
<ljarvis>
yorickpeterse: dat quick merge
<yorickpeterse>
yah
<yorickpeterse>
"I'll give a shout when it's do*MERGE*"
<karamazov>
Ah ok - what did you mean by client instance though?
<ljarvis>
Net::HTTP.new
<karamazov>
Cool - apologies, I'm a bit naive when it comes to HTTP
<ljarvis>
karamazov: understandable, the docs are quite clear and helpful on net/http
<ljarvis>
worth having a look over them
<karamazov>
ljarvis: Honestly, I'm still at the stage where I don't quite understand those type of docs.
arBmind has joined #ruby-lang
<ljarvis>
karamazov: ok, what's made you try to use Net::HTTP to do this?
doosy has joined #ruby-lang
seank_ has quit [Ping timeout: 265 seconds]
<karamazov>
Trying not to add anymore gems to a Rails project
doosy has quit [Remote host closed the connection]
<karamazov>
The service I'm using provided a way to make the request via JS but I'd rather serve the data from my controller.
<ljarvis>
that will make your request hang
<karamazov>
Making an API call from the a controller?
<ljarvis>
yeah, whoever is requesting the page will have to wait for your controller to make the blocking api call and then respond, seems like a bad idea, no?
caseypatrickdris has quit [Quit: Leaving...]
<karamazov>
Currently, the JS implementation takes a good 2-3 seconds to retrieve the data and then update the text. Seems faster to make a quick API call and then pass the text into the view.
<karamazov>
I'll willingly admit I'm most likely thinking about this incorrectly.
kurko__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
<ljarvis>
karamazov: yeah, the request won't necessarily be any faster if you make it in the controller as opposed to the client making it, and at least if the client makes it it's non-blocking so the page will "feel" quick, and you can display some kind of loading message
<ljarvis>
if you do it in the controller, it'll feel like your website is slower, and if the api doesn't respond or errors, it'll look like your problem
arooni-mobile has joined #ruby-lang
claytonzaugg has joined #ruby-lang
sarkyniin has quit [Remote host closed the connection]
kurko__ has joined #ruby-lang
hinbody has quit [Ping timeout: 244 seconds]
sarkyniin has joined #ruby-lang
<karamazov>
That's a valid point.
banister_ has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
Miphix has joined #ruby-lang
doosy has joined #ruby-lang
banister is now known as banisterfiend
shinnya has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby-lang
mdarby has joined #ruby-lang
<claytonzaugg>
jhass or anyone, I have a question about the array part of kroans
<jhass>
you see three forms of Array#[] documented there
<jhass>
which one is your example using?
<claytonzaugg>
Oh, okay so based on that... well the method says slicing arrays
<claytonzaugg>
but
whippythellama has joined #ruby-lang
<jhass>
yes, Array#[] and Array#slice are actually two names for the same method
j4cknewt has joined #ruby-lang
<claytonzaugg>
Okay I see the difference from the method test above it, assert_equal :peanut, array[0] vs assert_equal [:peanut], array[0,1]
<jhass>
right, so 0 and 1 are its parameters here
ducklobster has quit [Ping timeout: 246 seconds]
<jhass>
what names does the documentation give to them?
<claytonzaugg>
one sec
<jhass>
take your time
<claytonzaugg>
in the document 0,1 would assign a
<claytonzaugg>
or the link you sent me
<jhass>
mmh? I don't think that's my question
<claytonzaugg>
Okay, that's why assert_equal [:peanut, :butter], array[0,2] is peanut and butter, because it starts and index 0 and gives you two the value of two indexes starting at 0
<jhass>
right
<claytonzaugg>
and why assert_equal [:and, :jelly], array [2, 20] is just "and" and "jelly" because it starts and index 2 (and) and compares all content of that index plus 19 more (totalling 20)
<claytonzaugg>
Okay cool, I got it now, thank you sir (or ma'am)
<ljarvis>
mm jelly
<claytonzaugg>
lol ljarvis
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
avdi has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby-lang
jg has quit [Quit: Leaving]
nathanstitt has joined #ruby-lang
kirin` has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
gnufied has quit [Ping timeout: 256 seconds]
manveru has quit [Ping timeout: 256 seconds]
manveru_ has joined #ruby-lang
kalleth has quit [Ping timeout: 256 seconds]
lele has quit [Ping timeout: 256 seconds]
lele|w has quit [Ping timeout: 256 seconds]
kalleth has joined #ruby-lang
kirin` has quit [Remote host closed the connection]
rolfb has quit [Ping timeout: 245 seconds]
SuMo_D has quit [Ping timeout: 255 seconds]
tenderlove has joined #ruby-lang
heftig_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
gnufied has joined #ruby-lang
lele|w has joined #ruby-lang
Constant_ has joined #ruby-lang
avdi has joined #ruby-lang
kirin` has joined #ruby-lang
wm3|away is now known as workmad3
<claytonzaugg>
I'm guessing there's a difference between array[0...2] and array[0..2] (... vs ..)
heftig has quit [Ping timeout: 256 seconds]
GaelanAintAround has quit [Ping timeout: 256 seconds]
doosy has quit []
doosy has joined #ruby-lang
mdarby has quit [Ping timeout: 256 seconds]
ConstantineXVI has quit [Ping timeout: 256 seconds]
crankharder has quit [Ping timeout: 256 seconds]
hinbody has joined #ruby-lang
crankharder has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
<jhass>
claytonzaugg: yes, the difference is not tied to Array#[] though
<claytonzaugg>
Exception FillMeInError expected, but #<KeyError: key not found: :doesnt_exist> was raised
oleo__ has joined #ruby-lang
Guest97114 has quit [Ping timeout: 255 seconds]
jmrepetti has quit [Remote host closed the connection]
lele has joined #ruby-lang
<jhass>
well, that's basically the same question than with the first one you posted
<jhass>
it wants to teach you what type of error is raised in that case
<claytonzaugg>
Okay, I just put in the error, KeyError, and it worked
<claytonzaugg>
ty
orabin has joined #ruby-lang
<orabin>
does anyone know why "^abc".match(/^[a-zA-Z].*/) returns a match? I tried it with rubular and it was fine but I put it in my code and got a match.