djbkd has quit [Remote host closed the connection]
<tkbrigham>
i'm using rspec. when i puts Station.count, it says 0
<tkbrigham>
when i go into console and puts Station.count, it says 4
<tkbrigham>
what am i missing?
djbkd has joined #ruby-lang
DefV has quit [Ping timeout: 276 seconds]
DefV has joined #ruby-lang
fujimura has joined #ruby-lang
<womble>
Using different databases for test vs dev, most likely.
<tkbrigham>
sounds about right
<tkbrigham>
i'm new, and just familiarizing myself with db/seeds.rb
<tkbrigham>
any way to seed both dev and test db at the same time?
symm- has quit [Read error: Connection reset by peer]
<zenspider>
tkbrigham: they're different databases, so no. it's just 2 rake cmds tho
fujimura has quit [Ping timeout: 256 seconds]
symm- has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tkbrigham>
ok
<tkbrigham>
going to customize rake task
GaryOak_ has quit [Remote host closed the connection]
<tkbrigham>
thanks all
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
<havox>
Looking for some help with a scraper. I'm not getting any errors, so I'm thinking maybe there is an issue with my for loop and next unless statement. http://pastebin.com/1ynYD4fp
<darix>
havox: binding.pry
<darix>
as a keyword to look up
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ubermonkey has joined #ruby-lang
skyrocker has quit [Read error: Connection reset by peer]
<havox>
darix: thanks i'm looking into
MXfive has joined #ruby-lang
guillaume-rb_ has joined #ruby-lang
guillaume-rb has quit [Read error: Connection reset by peer]
guillaume-rb_ is now known as guillaume-rb
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
MXfive has quit [Read error: Connection reset by peer]
faces has quit [Read error: Connection reset by peer]
kfpratt has quit [Read error: Connection reset by peer]
faces has joined #ruby-lang
djbkd_ has quit [Read error: Connection reset by peer]
MXfive has joined #ruby-lang
kfpratt has joined #ruby-lang
djbkd_ has joined #ruby-lang
hinbody has quit [Ping timeout: 245 seconds]
hinbody has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
tkuchiki has quit [Read error: Connection reset by peer]
nathanstitt has quit [Quit: I growing sleepy]
tkuchiki has joined #ruby-lang
centrx has joined #ruby-lang
davispuh is now known as [
[ is now known as Guest13585
tkbrigham has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
existensil has quit [Ping timeout: 255 seconds]
Guest13585 is now known as davispuh
caseypat_ has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
gwendall has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: zzz]
shinnya_ has quit [Ping timeout: 246 seconds]
havox has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby-lang
existensil has joined #ruby-lang
baweaver has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 1.1.1]
|jemc| has joined #ruby-lang
charliesome has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
pepperbreath has quit [Read error: Connection reset by peer]
pepperbreath has joined #ruby-lang
bruno- has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
baweaver has joined #ruby-lang
djbkd_ has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
danzilio has quit [Quit: Baiii!]
baweaver has quit [Remote host closed the connection]
_djbkd has joined #ruby-lang
sankaber has joined #ruby-lang
haraoka has joined #ruby-lang
djbkd has quit [Ping timeout: 255 seconds]
fedexo has joined #ruby-lang
lytol has quit [Remote host closed the connection]
weaksauce has quit [Ping timeout: 245 seconds]
guillaume-rb has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby-lang
guillaume-rb_ has joined #ruby-lang
guillaume-rb_ has quit [Client Quit]
fujimura has joined #ruby-lang
nathanstitt has joined #ruby-lang
fujimura has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
brixen has quit [Ping timeout: 264 seconds]
sindork_ has quit [Ping timeout: 245 seconds]
jtoy_ has quit [Ping timeout: 264 seconds]
xybre has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
b_hoffman has quit [Quit: b_hoffman]
headius has left #ruby-lang [#ruby-lang]
davispuh has quit [Remote host closed the connection]
b_hoffman has joined #ruby-lang
crdpink has quit [Ping timeout: 245 seconds]
crdpink2 has joined #ruby-lang
fujimura has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
b_hoffman has quit [Quit: b_hoffman]
godzillaenlacasa has quit [Quit: ZZZZZ....]
lytol has joined #ruby-lang
cntrx has joined #ruby-lang
centrx has quit [Ping timeout: 276 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lytol has quit [Ping timeout: 246 seconds]
slumos has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
matsutomo has joined #ruby-lang
xybre has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
bb010g has joined #ruby-lang
cntrx has quit [Quit: Shutting down, Please wait...]
sindork has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
jtoy has joined #ruby-lang
brixen has joined #ruby-lang
symm- has quit [Ping timeout: 250 seconds]
brushbox has joined #ruby-lang
pwnz0r has joined #ruby-lang
LMity has joined #ruby-lang
bruno- has joined #ruby-lang
gix has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 255 seconds]
gix has joined #ruby-lang
njny has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
matsutomo has quit [Quit: matsutomo]
dorei has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
matsutomo has joined #ruby-lang
Kero has quit [Ping timeout: 272 seconds]
matsutomo has quit [Client Quit]
Kero has joined #ruby-lang
matsutomo has joined #ruby-lang
matsutomo has quit [Client Quit]
charliesome has joined #ruby-lang
matsutomo has joined #ruby-lang
brixen has quit [Ping timeout: 245 seconds]
b_hoffman has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
LMity has quit [Ping timeout: 250 seconds]
jtoy has quit [Ping timeout: 250 seconds]
pwnz0r has joined #ruby-lang
RobertBirnie has joined #ruby-lang
havox has joined #ruby-lang
pwnz0r has quit [Ping timeout: 245 seconds]
RobertBirnie has quit [Client Quit]
jtoy has joined #ruby-lang
havox has quit [Ping timeout: 250 seconds]
haraoka has quit [Ping timeout: 245 seconds]
b_hoffman has quit [Quit: b_hoffman]
lytol has joined #ruby-lang
lytol has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
brixen has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby-lang
fujimura has quit [Read error: Connection reset by peer]
fujimura_ has joined #ruby-lang
sindork has quit [Ping timeout: 264 seconds]
araujo has joined #ruby-lang
sindork has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
ubermonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brushbox has joined #ruby-lang
matsutomo has quit [Quit: matsutomo]
NoNMaDDeN has joined #ruby-lang
matsutomo has joined #ruby-lang
NoNMaDDeN has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
houhoulis has joined #ruby-lang
b_hoffman has joined #ruby-lang
skade has joined #ruby-lang
hahuang65 has joined #ruby-lang
vondruch has joined #ruby-lang
fedexo has quit [Read error: Connection reset by peer]
njny has quit [Ping timeout: 244 seconds]
fedexo has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
brushbox has joined #ruby-lang
dhjondoh has joined #ruby-lang
nertzy has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
b_hoffman has quit [Quit: b_hoffman]
futilegames has joined #ruby-lang
RobertBirnie has joined #ruby-lang
RobertBirnie has quit [Client Quit]
skade has joined #ruby-lang
Iskarlar has joined #ruby-lang
lytol has joined #ruby-lang
futilegames has quit [Quit: futilegames]
fsvehla has quit [Quit: fsvehla]
lytol has quit [Ping timeout: 246 seconds]
matsutomo has quit [Quit: matsutomo]
matsutomo has joined #ruby-lang
dik_dak has joined #ruby-lang
fujimura_ has quit [Remote host closed the connection]
skade has quit [Remote host closed the connection]
NoNMaDDeN has quit [Ping timeout: 264 seconds]
tomaz_b has joined #ruby-lang
havenwood has quit [Ping timeout: 272 seconds]
fedexo has quit [Ping timeout: 245 seconds]
futilegames has joined #ruby-lang
gwendall has joined #ruby-lang
skade has joined #ruby-lang
bruno- has joined #ruby-lang
|jemc| has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby-lang
kerunaru has joined #ruby-lang
bruno- has quit [Ping timeout: 245 seconds]
skade has quit [Remote host closed the connection]
skade has joined #ruby-lang
pwnz0r has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
HayesHimself has joined #ruby-lang
doppler has joined #ruby-lang
<doppler>
has anyone here calculated modular addition in ruby and can help me out how to go about writing the script
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
<doppler>
i dont want to write a whole set of cases, but i dont know if i even have to
universa1 is now known as universal
universal is now known as universa1
<chris2>
c=(a+b)%m
araujo has quit [Ping timeout: 245 seconds]
fsvehla has joined #ruby-lang
araujo has joined #ruby-lang
b_hoffman has joined #ruby-lang
<womble>
Whoa whoa whoa... let's not get too technical here...
lytol has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
xcesariox has joined #ruby-lang
<doppler>
chris2: oh, okay. it wasnt as hard as i thought then...
<doppler>
womble: :P
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby-lang
ur5us has joined #ruby-lang
hahuang65 has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby-lang
matsutomo has quit [Quit: matsutomo]
pwnz0r has quit [Ping timeout: 250 seconds]
forgottenleaf has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
dik_dak has quit [Remote host closed the connection]
b_hoffman has quit [Quit: b_hoffman]
solars has quit [Ping timeout: 240 seconds]
ta has joined #ruby-lang
<chris2>
doppler: you can also add more at once and only % at the end
<chris2>
(if you need to multiply too, this works only when m is a prime)
<doppler>
chris2: alright thanks dude
<chris2>
np
forgottenleaf has joined #ruby-lang
charliesome has quit [Quit: zzz]
Forgetful_Lion has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
forgottenleaf has quit [Read error: No route to host]
solars has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
jdeen has joined #ruby-lang
NoNMaDDeN has quit [Ping timeout: 246 seconds]
<jdeen>
hi there. Is it possible to write a method such as `board.wishes << product` that will be passing the product to the method `wishes` ?
<maloik>
board.wishes(product) ?
brushbox has quit [Quit: Leaving.]
<maloik>
I have a feeling you mean something else :P
skade has quit [Remote host closed the connection]
<jdeen>
I am doing it like that... but in arrays we do some thing like `a << 1` I was like if its possible to use in normal methods as well.
NoNMaDDeN has joined #ruby-lang
<maloik>
<< itself is basically a method and 1 is the argument
<maloik>
why do you want to do that?
<jdeen>
just curiosity, learning Ruby and quite interested in the `?` `!` endings in methods.
<maloik>
it's mostly used to display intent... you can expect foo? type methods to return a boolean, and foo! methods often break hard if something fails
nertzy has quit [Quit: This computer has gone to sleep]
fujimura has joined #ruby-lang
<maloik>
a good example is rails' create! method, if you were to pass invalid attributes for your model it would raise an error
mikecmpbll has joined #ruby-lang
<womble>
jdeen: ! and ? suffixes aren't methods; they're legal characters to have in a Ruby method name.
matsutomo has joined #ruby-lang
fujimura has quit [Read error: Connection reset by peer]
<jdeen>
it can only be used once at the end i guess
elia has joined #ruby-lang
<Mon_Ouie>
Well, you can define a method that uses it anywhere in its name --- but you wouldn't be able to call or define such a method using the usual syntax
houhoulis has quit [Remote host closed the connection]
Bertg has joined #ruby-lang
froots has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
matsutomo has quit [Quit: matsutomo]
matsutomo has joined #ruby-lang
michael_mbp has quit [Excess Flood]
matsutomo has quit [Client Quit]
xcesariox has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
iamninja_ has quit [Read error: Connection reset by peer]
fujimura has quit [Remote host closed the connection]
<doppler>
im just playing around with ruby. also im interested in cryptography. so i wanted to try some modular addition on the bits and stuff like that
<doppler>
so anything goes really. im just fooling around ^
iamninja_ has quit [Ping timeout: 276 seconds]
womble has quit [Ping timeout: 272 seconds]
stan has joined #ruby-lang
brianpWins has joined #ruby-lang
<rob_>
doing the matasano crypto challenge is a good way to learn new languages: cryptopals.com
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
mistym has quit [Read error: Connection reset by peer]
MXfive has joined #ruby-lang
<doppler>
that looks really interesting
womble has joined #ruby-lang
<doppler>
i guess you have done some of the challanges already?
<ljarvis>
so when i have time, which is in my sleep
<maloik>
:D
<ljarvis>
and im buying a house at the moment.. the paperwork makes me angry
<maloik>
I bought one as well a few weeks ago
<ljarvis>
nice!
<maloik>
pretty straightforward in my case luckily
<ljarvis>
ow
<ljarvis>
yeah mine is not proving so much
<ljarvis>
we bought off plan so the house isn't built yet either
<rob_>
housing too expensive round here: robsvan.com :>
<maloik>
read through the agreement with the realestate agent, signed everything in 3 copies, went to bank, signed their stuff, done!
<ljarvis>
rob_: that's awesome
<ljarvis>
maloik: :/
jas02 has joined #ruby-lang
<maloik>
awesome indeed!
<maloik>
I'd love to do that one day, make something to go skiing and climbing with
<ljarvis>
rob_: where in the uk?
<doppler>
oh, another climber?
forgottenleaf has quit [Ping timeout: 250 seconds]
<maloik>
boulderer, yep
<rob_>
ljarvis: yeah
<doppler>
sweeet. me 2
<ljarvis>
maloik: have you ever met jon? (my boss)
<rob_>
<- climber
<maloik>
nope
<ljarvis>
rob_: yeah, i meant 'where abouts in the uk', i noticed from the plates
<rob_>
ljarvis: brighton
matsutomo has joined #ruby-lang
<ljarvis>
maloik: he's ex rails-core and mad for climbing, might find this interesting http://thesendtrain.com/
<ljarvis>
rob_: nice
<maloik>
sweet, saving that tab for later :D
<rob_>
ljarvis: how about you?
<doppler>
i want to climb so badly. broke my foot in a fall though. so now im recovering. =<
<maloik>
also lol "send train"
<maloik>
likes his trains :-)
<maloik>
I'm going back to fontainebleau at the end of next week \o/
<maloik>
wait no the week after that
<doppler>
.../ignore
<ljarvis>
rob_: i live in hampshire
<maloik>
sorry (not sorry) :D
<ljarvis>
maloik: nice one!
<ljarvis>
and yes we all like our trains
<rob_>
ljarvis: are you a footballers wife? :)
<ljarvis>
rob_: heh i wish
<ljarvis>
no footballers wives around here though, it's not that part of hampshire
<maloik>
you should all come to arrrrcamp in october and we can go climbing on saturday
<maloik>
:D
<maloik>
or the day before, or both
<ljarvis>
i may come haven't decided yet
<maloik>
things are finally picking up, im going to free time tomorrow to prepare the CFP
<doppler>
where do you guys boulder anyway?
<doppler>
except font. lol
<maloik>
indoors
<doppler>
oh, what about outdoors?
<maloik>
I've only been climbing for like 18 months so I'm not very good, I go indoors 2-3 times per week
<maloik>
outdoors Ive only done 3 weekends in font so far, but we intend to go more this year... each weekend where we have a day off before or after
<doppler>
dont you have any where do go in your area? unless you live in paris ofc.
<maloik>
its a 4 hour drive or so, not too bad... but no, no boulders around here that I'm aware of
<maloik>
that reminds me, there's a rockface in a park nearby... need to go check that out
<doppler>
thats awesome. =>
<doppler>
i lived in font for a week. in my van. which was nice.
<maloik>
I bet, camping is awesome
<maloik>
and font is gorgeous
<doppler>
also norway got some good stuff
<doppler>
yepp, too bad its not anywhere near me
<doppler>
<--- finland
<maloik>
last summer we drove from font to spain, roadtrip, decided to go bouldering near girona which I'd read about... didn't find anything, so we drove straight back to font lol
<doppler>
hahaha
<doppler>
totally worth it
<maloik>
in all honesty, the one day we spend in spain was amazing
<maloik>
spent the morning snorkling and then an entire afternoon sipping gin&tonic and having the best seafood in ages right at the beach :D
<doppler>
yeah i bet. where exactly is girona? south coast?
<doppler>
niice.... :>
<maloik>
not too far from the french border near the mediterranean
ArchRogem has joined #ruby-lang
<doppler>
never heard of it...
<doppler>
do you also rock climb?
<maloik>
as in sportclimbing?
<doppler>
well sure
<doppler>
sport / trad
<maloik>
nope, I went toproping a couple times in the past but that's it
<maloik>
indoors that is
<doppler>
daamn. then you missed all the good stuff
allomov has joined #ruby-lang
<doppler>
toproping outside is ten times more fun
<doppler>
and then when you trad climb its toproping outside ^1000000
<doppler>
=>
<doppler>
until you break your foot. then its just straight up hell
tkuchiki has quit [Remote host closed the connection]
jdeen has quit [Ping timeout: 245 seconds]
<doppler>
but bouldering is awesome too. theres so much to do.
LMity has joined #ruby-lang
iamninja_ has quit [Ping timeout: 244 seconds]
iamninja_ has joined #ruby-lang
lytol has joined #ruby-lang
lytol has quit [Ping timeout: 252 seconds]
brushbox1 has joined #ruby-lang
brushbox has quit [Read error: Connection reset by peer]
fujimura has joined #ruby-lang
jas02 has quit [Quit: jas02]
bruno- has joined #ruby-lang
<doppler>
i guess it isnt possible to unpack a string to binary, edit it, and then pack it?
<rob_>
doppler: unpack isn't an array method, it's a string method
<rob_>
you need to unpack each value in the array, rather than the array itself
<rob_>
you can also unpack multiple bytes at a time, e.g: "foo".unpack('B*')
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
<rob_>
doppler: refresh the paste, i made a comment
<doppler>
rob_ oh okay. i guess i could have figured out that one myself... haha... =<
havox has joined #ruby-lang
<doppler>
rob_ a started to read Learn Ruby The Hard Way a couple of days ago, then suddenly i stopped and thought I was going to explore it myself. i should have finnished all the lessons first :P
<rob_>
doppler: it's good to do both!
leat has joined #ruby-lang
havox has quit [Ping timeout: 240 seconds]
robmiller has joined #ruby-lang
robmiller has quit [Client Quit]
solars has quit [Ping timeout: 256 seconds]
Nimf has joined #ruby-lang
bruno- has joined #ruby-lang
postmodern has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Ping timeout: 245 seconds]
<maloik>
awesome pics rob_ :)
<maloik>
as for toproping vs bouldering, dunno I like the fact that you can discuss moves together, you don't really need a partner, and it's a little easier to get into
<maloik>
I don't know the first thing about belaying or leadclimbing so yea that limits my options :)
solars has joined #ruby-lang
symm- has joined #ruby-lang
zenspider has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby-lang
zenspider has joined #ruby-lang
crdpink has joined #ruby-lang
crdpink2 has quit [Ping timeout: 245 seconds]
<doppler>
maloik yeah it ofc depends on who you are with. but it may well be that bouldering is more of a group thing.
aj07 has joined #ruby-lang
<rob_>
it takes about 5 minutes to learn to top rope
<rob_>
need to learn 1 knot and how to belay which is all as simple as possible so people dont die easily :)
<aj07>
do gsoc slot has been anounced?
dhjondoh has quit [Remote host closed the connection]
lytol has quit [Remote host closed the connection]
<maloik>
rob_: yea but to toprope you need a reliable anchor and I presume a lot of the crags don't have that
<maloik>
so you end up having to lead or trad climb, which is a lot harder to do safely
<rob_>
ah, a lot do here
gwendall has quit [Remote host closed the connection]
<rob_>
leading bolted routes is pretty easy
<rob_>
the real jump is to trad though, i agree :)
aj07 has quit [Ping timeout: 246 seconds]
dhjondoh has joined #ruby-lang
sgambino has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Fooster has joined #ruby-lang
b_hoffman has joined #ruby-lang
Caius has quit [Ping timeout: 276 seconds]
caseypatrickdris has joined #ruby-lang
Caius has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
gwendall has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
jas02 has quit [Quit: jas02]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
dzejrou has joined #ruby-lang
Bertg has joined #ruby-lang
Bertg has quit [Client Quit]
fujimura_ has joined #ruby-lang
Bertg has joined #ruby-lang
fujimura has quit [Ping timeout: 276 seconds]
Bertg has quit [Client Quit]
Bertg has joined #ruby-lang
ascarter has joined #ruby-lang
sgambino has quit [Remote host closed the connection]
Bertg has quit [Client Quit]
Nimf has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby-lang
Tungki has joined #ruby-lang
bruno- has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby-lang
konr has joined #ruby-lang
Tungki has quit [Ping timeout: 265 seconds]
Fooster has quit [Ping timeout: 245 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sgambino has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nathanstitt has joined #ruby-lang
symm- has quit [Quit: Leaving...]
Bertg has joined #ruby-lang
lytol has joined #ruby-lang
brushbox1 has quit [Quit: Leaving.]
vondruch has quit [Quit: Ex-Chat]
lytol has quit [Ping timeout: 264 seconds]
sankaber has joined #ruby-lang
fujimura_ has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
setanta_ has joined #ruby-lang
goodcodeguy has joined #ruby-lang
kstuart has quit [Ping timeout: 256 seconds]
<doppler>
maloik have you ever tried apline climbing?
<maloik>
not really... we've done hikes when we go skiing offpiste, but that's not really climbing
enebo has joined #ruby-lang
<maloik>
we've never used ice axes or anything, or crossed icy parts
MXfive has joined #ruby-lang
<doppler>
you should really try it. especially since you got chamonix and everything not to far away
<maloik>
yea we're slowly doing harder and harder stuff, but I'm not sure we'll do that really quickly
<maloik>
we want to start skinning up mountains and improving our technique before we do anything even crazier
<maloik>
next year we're going to hike for a few hours to a remote hut and stay there for a couple days, that should be amazing
<maloik>
the jamtalhutte near Ischgl if you've ever heard of that... one of the more famous huts in the backcountry
<maloik>
apparently it even has a climbing wall :D
<doppler>
fast is slow, slow is fast :P
<doppler>
idk it sounds like something i might have heard of
<doppler>
i have just been to france once
<doppler>
i usually go to the norway or those parts of scandinavia
<doppler>
go to*
workmad3 has joined #ruby-lang
FastJack has quit [Ping timeout: 264 seconds]
JEG2 has joined #ruby-lang
leat has quit [Ping timeout: 246 seconds]
<maloik>
how are the mountains and the snow over there?
ta has quit [Remote host closed the connection]
leat has joined #ruby-lang
tsujp has joined #ruby-lang
<karma_>
Generally not as high as the Swiss/French alps and thus not the same amount of snow.
<karma_>
Good slopes though
<doppler>
maloik some parts are really cool actually. ive been climbing in eidfjord and jutenheim. as far as bouldering goes i spended a week at a place called Kvaloya which is a super cool place. thousands and thousands of undeveloped routes.
<karma_>
Never been climbing around though :)
<maloik>
awesome... bit of a dream to go there at one point
<maloik>
though I think my next destination will be iceland once I can afford it
<karma_>
Austria is generally good value when it comes to skiing
<maloik>
yea we pretty much only go to austria
<doppler>
maloik you ever heard of the site 27crags?
<maloik>
I think I have yes
<doppler>
pretty much every (famous) crag is listed there, along with pretty much all the routes (and boulder problems).
FastJack has joined #ruby-lang
<maloik>
interesting, it even has boulder spots in belgium
nwhirschfeld has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 245 seconds]
havox has joined #ruby-lang
lytol has joined #ruby-lang
lytol has quit [Ping timeout: 264 seconds]
CamonZ has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
centrx has joined #ruby-lang
araujo has quit [Ping timeout: 276 seconds]
araujo has joined #ruby-lang
havox has quit [Ping timeout: 264 seconds]
|jemc| has joined #ruby-lang
riotjones has joined #ruby-lang
gwendall has joined #ruby-lang
riotjones has quit [Ping timeout: 240 seconds]
<maloik>
doppler: I live in Belgium :)
<yorickpeterse>
"Getting started guide" ah sweet
<yorickpeterse>
"How to get Gulp" ah fuck me not another build system
dhjondoh has joined #ruby-lang
<doppler>
maloik i thought you lived in france!
agarie has joined #ruby-lang
<yorickpeterse>
No, he lives in almost-France
<yorickpeterse>
almost-France-almost-Netherlands to be exact
<yorickpeterse>
:<>
<yorickpeterse>
* :>
konr has quit [Quit: Connection closed for inactivity]
<doppler>
yorickpeterse also the place where tintin is from. which makes it cool \o/
tsujp has quit [Quit: tsujp is snoozing]
<DefV>
I've got a Rails-related Q
<DefV>
but I'm not gonna ask on #rails because
guillaume-rb has joined #ruby-lang
<DefV>
you know
<DefV>
morrons
<DefV>
hmm, due to the FB outage here in europe, our app just went offline as well
<DefV>
we have some specific calls that do requests to Facebook, but Facebook timed out. I hadn't had my timeout set in the code, so it defaulted to smth like 30 which meant my passenger queue filled up fairly quickly with those requests
Nimf has joined #ruby-lang
<DefV>
I've now changed the timeout but I'm wondering is there any setup where external timeouts aren't an issue?
<DefV>
I'm thinking that execution of that specific request is paused and a new one is taken while the external request happens?
agarie has quit [Remote host closed the connection]
<maloik>
I believe heroku has a rack plugin that closes requests that take too long, but that's probably not what you're after here
<maloik>
not sure what oyu mean though with external timeouts arent an issue
<maloik>
if they don't happen async, they'll slow the entire request down
<maloik>
unrelated: I checked fb 2-3 times since I saw tweets about it being down, no issues here
<DefV>
was DNS + specific routing issue
<maloik>
aha
rcvalle has joined #ruby-lang
<DefV>
answer to my question is run on Puma or Thin
<DefV>
which allow execution to continue while blocking network IO happens
<maloik>
hmm, what about passenger enterprise?
wallerdev has quit [Quit: wallerdev]
shinnya has quit [Ping timeout: 276 seconds]
sgambino_ has joined #ruby-lang
banister has joined #ruby-lang
sgambino has quit [Quit: Leaving...]
banister has quit [Max SendQ exceeded]
<DefV>
hm, good call, I should just enable threading
<maloik>
Multithreading support not only drastically reduces the amount of memory required to run applications, but is also essential for applications that often block on I/O, such as real-time applications or applications that perform many HTTP API calls.
<DefV>
jup
<DefV>
so I should enable multithreading in RaiLS
HayesHimself has quit [Ping timeout: 276 seconds]
<DefV>
that always make me shiver a bit though
<maloik>
had no idea a webserver would be able to do something like that
<maloik>
pretty nifty
<maloik>
(ignore external requests if theyre blocking, I mean)
[H]unt3r has joined #ruby-lang
slawrence00 has joined #ruby-lang
<maloik>
time to go climb, take care
<doppler>
=>
<DefV>
well, it's not the webserver, it's MRI which is threading
<DefV>
and I bet I'll still run into issues when 1000 threads are blocked on the same connection
<DefV>
but I'll fail less fast
<doppler>
you could also check out a polling server or fork server.
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bb010g has quit [Quit: Connection closed for inactivity]
cornerman has quit [Ping timeout: 248 seconds]
tcopeland has joined #ruby-lang
cornerman has joined #ruby-lang
sgambino has joined #ruby-lang
<toretore>
DefV: there's nothing you really can do if your entire infrastructure is based on synchronous execution and has to wait for that call to finish
chadrien has joined #ruby-lang
tcopeland has quit [Quit: Leaving.]
<darix>
toretore: well you can set short connnect timeouts, which would help his case already
dorei has joined #ruby-lang
dorei has quit [Read error: Connection reset by peer]
arBmind1 has quit [Quit: Leaving.]
dorei has joined #ruby-lang
charliesome has joined #ruby-lang
dorei has quit [Read error: Connection reset by peer]
dorei has joined #ruby-lang
dorei has quit [Read error: Connection reset by peer]
dorei has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
Senjai has quit [Ping timeout: 240 seconds]
skade has joined #ruby-lang
sarkyniin has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
marr has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 252 seconds]
Senjai has joined #ruby-lang
MXfive has joined #ruby-lang
datanoise has joined #ruby-lang
lapide_viridi has joined #ruby-lang
michaeldeol has joined #ruby-lang
momomomomo has joined #ruby-lang
djbkd has quit [Ping timeout: 250 seconds]
elia has quit [Quit: Computer has gone to sleep.]
b_hoffman has joined #ruby-lang
allomov has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
lytol has joined #ruby-lang
momomomomo_ has joined #ruby-lang
agarie has joined #ruby-lang
ta has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
NoNMaDDeN has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
mikecmpbll has joined #ruby-lang
lytol has quit [Ping timeout: 256 seconds]
agarie has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
agarie has joined #ruby-lang
chinmay_dd has joined #ruby-lang
riotjones has quit [Ping timeout: 256 seconds]
caseypatrickdris has joined #ruby-lang
symm- has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
banister has joined #ruby-lang
rikkipitt has quit [Remote host closed the connection]
stan has quit [Ping timeout: 265 seconds]
banister has quit [Client Quit]
wallerdev has joined #ruby-lang
charliesome has quit [Quit: zzz]
workmad3 has quit [Ping timeout: 265 seconds]
juanfgs has joined #ruby-lang
agarie_ has joined #ruby-lang
agarie has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
kfpratt has joined #ruby-lang
wallerdev has quit [Ping timeout: 264 seconds]
brianpWins has joined #ruby-lang
lytol has quit [Ping timeout: 245 seconds]
momomomomo_ has joined #ruby-lang
momomomomo_ has quit [Client Quit]
[H]unt3r has quit [Quit: Leaving]
momomomomo has quit [Ping timeout: 252 seconds]
lytol has joined #ruby-lang
tosbourn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
sarkyniin has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 245 seconds]
b_hoffman has quit [Quit: b_hoffman]
tenderlo_ has joined #ruby-lang
agarie_ has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
gwendall has joined #ruby-lang
tenderlove has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
atomical has joined #ruby-lang
tosbourn has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
datanoise has quit [Quit: leaving]
tosbourn has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgpawletko has quit [Quit: jgpawletko]
rikkipitt has quit [Quit: Leaving...]
hahuang65 has joined #ruby-lang
sgambino has joined #ruby-lang
allomov has quit [Remote host closed the connection]
apt-get__ has quit [Remote host closed the connection]
sgambino has quit [Client Quit]
caseypatrickdris has joined #ruby-lang
gabhart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
Guest25 has joined #ruby-lang
dhjondoh has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby-lang
allomov has joined #ruby-lang
JEG2 has quit [Quit: Connection closed for inactivity]
elia has quit [Quit: Computer has gone to sleep.]
brownbathrobe has joined #ruby-lang
riotjones has joined #ruby-lang
elia has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b_hoffman has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 248 seconds]
elia has quit [Client Quit]
Nimf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bantic has joined #ruby-lang
tenderlove has quit [Quit: Leaving...]
elia has joined #ruby-lang
RobertBirnie has joined #ruby-lang
tosbourn has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
tosbourn has quit [Remote host closed the connection]
arBmind has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby-lang
arBmind has joined #ruby-lang
gwendall has joined #ruby-lang
kjoshi has joined #ruby-lang
postmodern has joined #ruby-lang
AKASkip has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
gwendall has quit [Ping timeout: 272 seconds]
<kjoshi>
Hello, could someone kindly explain the difference between iseq vs iseq_encoded in rb_iseq_struct.
goandseek has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
imperator has joined #ruby-lang
allomov has quit [Remote host closed the connection]
<goandseek>
I'm trying to print the length of a string unless it's less than 4 characters. I'm only about a week into Ruby.
<goandseek>
I tried making a method like def count() and then doing if .length < 4 puts else
<goandseek>
but that didn't work (obviously)
<goandseek>
so, if anyone is feeling helpful, I would appreciate your input
victortyau has quit [Quit: Leaving]
<goandseek>
I'm trying to do something like this
<goandseek>
if word1.length == ('a') * 3
<goandseek>
print 'so and so' else 'yikes'
enebo has quit [Quit: enebo]
<goandseek>
anyone....anyone out of the 300 people laughing at me
<goandseek>
:)
loincloth has quit [Remote host closed the connection]
brownbathrobe has quit [Remote host closed the connection]
b_hoffman has joined #ruby-lang
<goandseek>
hoffman, help me out
kwd has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
<jhass>
goandseek: calling out people won't help, have some patience ;)
<goandseek>
I'm a week into Ruby and have a string question
<jhass>
so what's your else action? do nothing?
<goandseek>
I've tried learning how to code 900 times in my life and this time I'm finally beginning to get it...a little...so I'm excited and impatient - I apologize
<weaksauce>
goandseek word1.length is not going to ever be a string
<goandseek>
So here's what I want to do
<goandseek>
grab $stdin.gets.chomp data and then print it back to the user unless they types a word less than 4 characters
<weaksauce>
if word1.length < 4
arBmind1 has joined #ruby-lang
<weaksauce>
'a' * 3 gives you 'aaa' btw
<goandseek>
I think the main issue is I must not be dinfing this method right
<goandseek>
defining*
<jhass>
puts word unless word.size < 4
<goandseek>
Ah!
<goandseek>
.size
<jhass>
.size and .length is the same
ferz_ has joined #ruby-lang
<jhass>
two names for the same thing
<jhass>
I use size because it's easier to type for me ;P
<goandseek>
so before I try it out this should in theory be valid:
<goandseek>
puts word1.size < 4
<goandseek>
I'm confusing myself
<jhass>
it's valid, whether it does what you want... just try it ;)
<goandseek>
if word.size <4 print "no" else print "yes"
<jhass>
try first ask second
<goandseek>
fair enough
arBmind has quit [Ping timeout: 250 seconds]
<jhass>
do you have irb or pry?
<goandseek>
I'm actually using notepad ++ and just running it from powershell
<goandseek>
I'm doing this LRTHW tutorial and I'm on example 16 but I'm not good at it yet
<goandseek>
this question is for my own little tinkering script. I challenged myself to make it display the lengths of words you type in unless someone types a short word, in which case the script says yikes instead of the number
<goandseek>
i mean instead of the string
<goandseek>
the only issue I'm having is making it count the length of the string and make sure it's more than 4 characters or else it will show "yikes"
<jhass>
sounds like you're on a good path
<jhass>
try running irb in powershell
<jhass>
should give you an interactive ruby shell
<goandseek>
puts "Type three words: "
<goandseek>
print "Word 1:"
<goandseek>
word1 = $stdin.gets.chomp
<jhass>
where you can quickly try out things
<goandseek>
if word1.length < 4 print word1 else print "yikes"
<goandseek>
is not working :-\
<goandseek>
I will, thank you
<jhass>
"not working" ?
<goandseek>
Excuse me, I wrote an invalid program
jeffreyio has joined #ruby-lang
<jhass>
try some newlines and properly indenting it
kjoshi has left #ruby-lang [#ruby-lang]
lytol has quit [Remote host closed the connection]
<jhass>
if valid?
<jhass>
print "ok"
<jhass>
else
<jhass>
print "nope"
<jhass>
end
<jhass>
eh, missed a space in the else branch, but you get it
<weaksauce>
also prefer puts over print
caseypatrickdris has quit [Remote host closed the connection]
<goandseek>
Ok, I'm going to try that - thank you
<goandseek>
I didn't realize valid? was a thing
<goandseek>
method, i mean
<goandseek>
boolean even
<weaksauce>
it's not goandseek you have to write it
<goandseek>
Ok
<weaksauce>
some things have a valid? method on them that you can call but that's way beyond this scope
<jhass>
goandseek: I'm giving you examples, not solutions ;)
b_hoffman has quit [Quit: b_hoffman]
<jhass>
this one tried to illustrate proper formatting
<goandseek>
so methodcheck = word1.length < 4
<goandseek>
methodcheck.valid?
<goandseek>
would return true or false
<jhass>
valid? is just something I made up
<jhass>
forget it
<goandseek>
oh
<jhass>
it's not relevant to the example
<goandseek>
Understood
<goandseek>
I thought valid? was like empty? or blank?
elia has quit [Quit: Computer has gone to sleep.]
<goandseek>
I started this trying to learn Rails last week with Mhartl's tutorial but I actually like learning Ruby itself more which is funny because I'm the least analytical person ever
<goandseek>
I did manage to solve all of the excercises in the LRTHW tutorial so far without cheating, although the last solution I came up with was ugly (it worked)...for some reason I'm having a difficult time trying to get this darn self challenge to work correctly. I'm going to work on it more though, with your suggestions