apeiros changed the topic of #ruby-lang to: Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste code on https://gist.github.com
tkbrigham has joined #ruby-lang
<tkbrigham> problem with testing
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]
forgottenleaf has joined #ruby-lang
riotjones has joined #ruby-lang
havenwood has joined #ruby-lang
matsutomo has quit [Quit: matsutomo]
wet88 has quit [Quit: Quiting the chat]
matsutomo has joined #ruby-lang
dik_dak has quit [Quit: Textual IRC Client: www.textualapp.com]
dik_dak has joined #ruby-lang
solars has joined #ruby-lang
fujimura has joined #ruby-lang
fujimura has quit [Ping timeout: 252 seconds]
NoNMaDDeN has joined #ruby-lang
fujimura has joined #ruby-lang
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]
<womble> >> def o!m!f!g!; "OMFG"; end; o!m!f!g!
<eval-in> womble => /tmp/execpad-9f30c5b33fa7/source-9f30c5b33fa7:2: syntax error, unexpected tFID, expecting ';' or '\n' ... (https://eval.in/314369)
<womble> Fie on thee
fujimura has joined #ruby-lang
<maloik> :D
<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]
brushbox has joined #ruby-lang
iamninja_ has joined #ruby-lang
michael_mbp has joined #ruby-lang
matsutomo has joined #ruby-lang
skade has joined #ruby-lang
<womble> >> def o!m!f!g!; "OMFG"; end; send(:"o!m!f!g!")
<eval-in> womble => /tmp/execpad-9e533a538af4/source-9e533a538af4:2: syntax error, unexpected tFID, expecting ';' or '\n' ... (https://eval.in/314372)
<womble> >> define_method(:o!m!f!g!) { "OMFG" }; send(:"o!m!f!g!")
<eval-in> womble => /tmp/execpad-cbf1d5ec8c4d/source-cbf1d5ec8c4d:2: syntax error, unexpected tFID, expecting ')' ... (https://eval.in/314373)
* womble gives up for the night
<womble> Live coding is not my strong suit
<womble> >> define_method(:"o!m!f!g!") { "OMFG" }; send(:"o!m!f!g!")
<eval-in> womble => "OMFG" (https://eval.in/314374)
<womble> AHA
lytol has quit [Remote host closed the connection]
kith has quit [Ping timeout: 246 seconds]
skade has quit [Remote host closed the connection]
<yorickpeterse> morning
<tbuehlmann> moin
<ljarvis> hi
x44x45x41x4E has joined #ruby-lang
skade has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
Guest20 has joined #ruby-lang
xcesariox has joined #ruby-lang
djbkd has joined #ruby-lang
weaksauce has quit [Read error: Connection reset by peer]
allomov_ has quit [Remote host closed the connection]
vulix has quit [Ping timeout: 246 seconds]
lloyd is now known as Lloyd
yfeldblum has joined #ruby-lang
<maloik> ohello
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<doppler> say i want to convert an integer to binary. 9.to_s(2)... now how do I return a fixed number of bits?
<workmad3> doppler: .rjust(bits, "0")
<ljarvis> >> "%08b" % 9
<eval-in> ljarvis => "00001001" (https://eval.in/314382)
<workmad3> ^^ that too (I can never remember format strings quickly though :) )
<doppler> uuh ok, lemme try that=)
<doppler> oh it wooorks!
<doppler> how do i do the same except with letters?
<doppler> i mean, convert "a" to binary?
<apeiros> meet encodings, get confused? :)
<doppler> aperios: very.
<doppler> lol
<apeiros> doppler: depends on what precisely you want to do
<apeiros> doppler: also use tab-completion for nicks.
<apeiros> >> "%08b" % "a".ord
<eval-in> apeiros => "01100001" (https://eval.in/314384)
<ljarvis> aperios: agreed
<doppler> ive tried a.to_s(2). but that doesnt work the way i want to. i want a fixed number.
jdeen has quit [Ping timeout: 250 seconds]
<apeiros> but really, what precisely do you want to do?
<apeiros> do you just want to know how some string is encoded in bits, regardless of encoding?
<apeiros> >> "hello".unpack("B*")
<eval-in> apeiros => ["0110100001100101011011000110110001101111"] (https://eval.in/314385)
<doppler> yes.
<apeiros> then use that ^
jdeen has joined #ruby-lang
robbyoconnor has joined #ruby-lang
arBmind has joined #ruby-lang
marr has joined #ruby-lang
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?
Guest20 has quit [Ping timeout: 248 seconds]
<rob_> yeah
<rob_> started learning golang doing them: https://github.com/roobert/matasano_crypto_challenge_golang
tkuchiki has quit [Remote host closed the connection]
<doppler> thats neat, which challanges have you done so far+
<doppler> challenges*
<doppler> what*
<rob_> got up to 11 in ruby
forgottenleaf has joined #ruby-lang
matsutomo has quit [Quit: matsutomo]
tkuchiki has joined #ruby-lang
matsutomo has joined #ruby-lang
<doppler> do you still got the source for challenge 5? not for cheating. ;) i just want to look how it works =)
workmad3 has quit [Ping timeout: 256 seconds]
<maloik> rob_: did you find any repos containing the ruby tests (without solutions) ?
<rob_> maloik: the tests are the same for any langauge
<rob_> the questions, i mean
<maloik> yea I mean actual tests, as in spec files
<maloik> so that I can just clone the repo, run the tests, fix those that failed, move on
<rob_> oh, i wrote mine
<rob_> write your own :)
<maloik> that's what I feared :(
iamninja_ has joined #ruby-lang
<rob_> it is a challenge, after all :>
<doppler> =(
<doppler> how does XOR work anyway?
<rob_> doppler: wikipedia is your friend when doing these challenges
<doppler> haha=)
<maloik> rob_: did you know Go already before doing these?
<rob_> nope
<maloik> (cryptopals says these challenges are a good way to learn another language)
<ljarvis> maloik: you interested in learning go?
<maloik> yea
<maloik> just for practice and out of interest... I still have no clue what I'd use it for
<ljarvis> the tour is awesome. Then stuff like this is also great
<ljarvis> Go is very very simple, which is my favourite thing about it
<maloik> yea I've done some of the tour but then gave up
<rob_> personally i found it useful to do the challenges in a language i know first, then i just had to try to replicate the results in Go
<maloik> do you use it for anything "real"?
<ljarvis> I do yes
<ljarvis> I've built 3 apis in it
<maloik> like what, if you can share?
<maloik> oh
<ljarvis> well, my github has basic stuff
matsutomo has left #ruby-lang [#ruby-lang]
<ljarvis> just messing around, like https://github.com/leejarvis/swapi and https://github.com/leejarvis/csvmap -- small utilities. The APIs I've built have been for companies I've worked with
<maloik> cool
<maloik> you freelance on the side?
<ljarvis> I do, once i've done with the 2 jobs
<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?
bruno- has quit [Ping timeout: 252 seconds]
matsutomo has left #ruby-lang [#ruby-lang]
<rob_> maloik: doppler: http://dust.cx/climb/
<rob_> doppler: you can unpack and pack, sure
LMity has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
leat has quit [Ping timeout: 252 seconds]
<doppler> oh okay. nice pics btw. where is it? rob_
<rob_> it's portland on the southcoast of england
<rob_> a little island off the coast but joined by road
<doppler> i didnt realise i had to press space than tab to do tab-completion. =/
<doppler> nice place. i bet the rock was wet?
<rob_> nah it was ok actually, very hot
<doppler> i see. looks cool though with the water in the background :P
kith has joined #ruby-lang
x44x45x41x4E has quit [Quit: Textual IRC Client: www.textualapp.com]
jas02 has joined #ruby-lang
<doppler> rob_ im really struggling with unpack and pack. i dont just get it. why cant i unpack the values inside an array?
<rob_> doppler: can you paste your example code somewhere?
cornerma1 has joined #ruby-lang
<rob_> gist.github.com or something
<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 joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
futilegames has joined #ruby-lang
ascarter has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
arBmind1 has joined #ruby-lang
rikkipitt has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
b_hoffman has joined #ruby-lang
b_hoffman has quit [Client Quit]
kstuart_ has joined #ruby-lang
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
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
<maloik> i wasnt even aware there were any
<doppler> theres so much info on that site
<maloik> ooooh and there's a spot in belgium close to the place I will be at for two weeks this summer
<maloik> awesome
<doppler> theres usually pictes along with the routes/problems as well.
<doppler> pictures*
<doppler> contributed by users ofc. so you wont find pictures of everything. but its pretty well documented overall
<doppler> what spot are you talking about btw?
malconis has joined #ruby-lang
ta has joined #ruby-lang
godzillaenlacasa has joined #ruby-lang
tomaz_b has quit [Ping timeout: 250 seconds]
<maloik> holy shit what are the odds, it's a 4 min walk from the village we'll be staying near
<doppler> \o/
dhjondoh has quit [Quit: dhjondoh]
lytol has joined #ruby-lang
bb010g has joined #ruby-lang
tenderlove has joined #ruby-lang
<maloik> so stoked
lytol has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has quit [Remote host closed the connection]
caseypatrickdris has quit [Remote host closed the connection]
Bertg has joined #ruby-lang
headius has joined #ruby-lang
nertzy has joined #ruby-lang
malconis has quit [Ping timeout: 248 seconds]
malconis has joined #ruby-lang
skade has joined #ruby-lang
fujimura_ has joined #ruby-lang
skade has quit [Client Quit]
havox has joined #ruby-lang
hal_9000_ has joined #ruby-lang
sgambino has joined #ruby-lang
fujimura_ has quit [Ping timeout: 256 seconds]
havox has quit [Ping timeout: 256 seconds]
chadrien_ has quit [Quit: leaving]
godzillaenlacasa has quit [Quit: ZZZZZ....]
chadrien has joined #ruby-lang
riotjones has quit [Remote host closed the connection]
chadrien has quit [Client Quit]
nertzy has quit [Quit: This computer has gone to sleep]
chadrien has joined #ruby-lang
timanema has joined #ruby-lang
skade has joined #ruby-lang
chadrien has quit [Client Quit]
skade has quit [Client Quit]
chadrien has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
victortyau has joined #ruby-lang
skade has joined #ruby-lang
chadrien has quit [Client Quit]
whippythellama has joined #ruby-lang
chadrien has joined #ruby-lang
bruno- has joined #ruby-lang
chadrien has quit [Client Quit]
jgpawletko has joined #ruby-lang
chadrien has joined #ruby-lang
malconis has quit [Ping timeout: 276 seconds]
godzillaenlacasa has joined #ruby-lang
chadrien has quit [Client Quit]
malconis has joined #ruby-lang
mistym has joined #ruby-lang
chadrien has joined #ruby-lang
<doppler> maloik sweet! are you flying to belgium or travelling by car? its always a struggle to travel with crashpads...
s7ry93r has joined #ruby-lang
shinnya has joined #ruby-lang
tosbourn has joined #ruby-lang
wallerdev has joined #ruby-lang
godzillaenlacasa has quit [Quit: ZZZZZ....]
skade has quit [Quit: Computer has gone to sleep.]
sgambino has quit [Remote host closed the connection]
sgambino has joined #ruby-lang
s7ry93r has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nwhirschfeld_ has joined #ruby-lang
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
<DefV> nop
<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.
<DefV> doppler?
<DefV> can you elaborate?
agarie has joined #ruby-lang
chadrien has quit [Ping timeout: 244 seconds]
<DefV> not sure how that would fix my issue
Nimf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<doppler> oh, i probably missread what you said. multithreading is the way to go anyways
kfpratt has joined #ruby-lang
havox has joined #ruby-lang
havox has quit [Client Quit]
havenwood has joined #ruby-lang
agarie has quit [Remote host closed the connection]
sgambino_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nimf has joined #ruby-lang
dzejrou has quit [Read error: Connection reset by peer]
<darix> DefV: do you need to do the call syncronous in your app?
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
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]
Steve_Jobs has quit [Ping timeout: 256 seconds]
sarkyniin has joined #ruby-lang
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
agarie has joined #ruby-lang
wallerdev has joined #ruby-lang
agarie has quit []
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
|jemc| has quit [Ping timeout: 240 seconds]
Steve_Jobs has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Ping timeout: 245 seconds]
michael_mbp has quit [Excess Flood]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brownbathrobe has joined #ruby-lang
michael_mbp has joined #ruby-lang
tomaz_b has joined #ruby-lang
ta has joined #ruby-lang
solars has joined #ruby-lang
ruby-lang225 has joined #ruby-lang
sandelius has joined #ruby-lang
michaeldeol has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
RobertBirnie has joined #ruby-lang
leat has quit [Ping timeout: 245 seconds]
timanema has quit [Quit: leaving]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wwwbukolaycom has joined #ruby-lang
nertzy has joined #ruby-lang
sgambino has joined #ruby-lang
ruby-lang225 has quit [Quit: Page closed]
stan has joined #ruby-lang
Guest25 has joined #ruby-lang
Guest25 is now known as gabhart
DivineEntity has quit [Read error: No route to host]
lapide_viridi has quit [Quit: Leaving]
gabhart has quit [Client Quit]
fsvehla has quit [Quit: fsvehla]
DivineEntity has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
weaksauce has joined #ruby-lang
djbkd has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
skade has quit [Read error: No route to host]
tenderlo_ has quit [Remote host closed the connection]
skade has joined #ruby-lang
tosbourn has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
tosbourn has quit [Ping timeout: 246 seconds]
thelastinuit has joined #ruby-lang
thelastinuit has quit [Client Quit]
fsvehla has joined #ruby-lang
bb010g has joined #ruby-lang
fsvehla has quit [Client Quit]
fsvehla has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
Guest25 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Guest25 is now known as gabhart
shinnya has joined #ruby-lang
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
yfeldblum has joined #ruby-lang
sandelius has joined #ruby-lang
leat has joined #ruby-lang
wallerdev has joined #ruby-lang
[spoiler] has quit [Quit: WeeChat 1.1]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
gabhart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brownbathrobe has quit [Remote host closed the connection]
brownbathrobe has joined #ruby-lang
Lloyd is now known as lloyd
ttilley has quit [Quit: Leaving...]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benanne has joined #ruby-lang
rikkipitt has joined #ruby-lang
sgambino has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
djbkd has quit [Remote host closed the connection]
caseypatrickdris has quit [Remote host closed the connection]
malconis has quit [Ping timeout: 255 seconds]
malconis has joined #ruby-lang
brownbathrobe has quit [Remote host closed the connection]
leat has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solars has quit [Ping timeout: 256 seconds]
malconis has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Ping timeout: 272 seconds]
rcvalle has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby-lang
rcvalle has joined #ruby-lang
tomaz_b has quit [Quit: Leaving]
apt-get_ has joined #ruby-lang
banister has joined #ruby-lang
allomov has joined #ruby-lang
tenderlove has joined #ruby-lang
djbkd has joined #ruby-lang
sarkyniin has quit [Ping timeout: 256 seconds]
elia has joined #ruby-lang
fsvehla has joined #ruby-lang
wallerdev has joined #ruby-lang
doppler has quit [Quit: Page closed]
|jemc| has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
|jemc|_ has joined #ruby-lang
allomov has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 250 seconds]
marr has joined #ruby-lang
apt-get__ has joined #ruby-lang
tosbourn has joined #ruby-lang
apt-get_ has quit [Ping timeout: 276 seconds]
dm78 has quit []
allomov has joined #ruby-lang
cytoskeletor has joined #ruby-lang
tosbourn has quit [Ping timeout: 272 seconds]
fsvehla has quit [Quit: fsvehla]
futilegames has quit [Quit: futilegames]
dm78 has joined #ruby-lang
tenderlove has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
whippythellama has quit [Quit: whippythellama]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
kadoppe has quit [Ping timeout: 255 seconds]
kadoppe has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
ur5us has joined #ruby-lang
malconis has joined #ruby-lang
lytol has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoul_ has joined #ruby-lang
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldnunes has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brownbathrobe has joined #ruby-lang
zillabags has joined #ruby-lang
atomical has quit [Ping timeout: 245 seconds]
Guest25 has joined #ruby-lang
Guest25 is now known as gabhart
ta has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
allomov has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
benanne has quit [Quit: kbai]
mcclurmc has quit [Ping timeout: 245 seconds]
b_hoffman has joined #ruby-lang
michaeldeol has joined #ruby-lang
loincloth has quit []
RobertBirnie has quit [Ping timeout: 245 seconds]
gwendall has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
lytol has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> ^ uses websockets to refresh the page effectively, pretty neat
brownbathrobe has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
<yorickpeterse> although having websockets inside http is a bit confusing at first
loincloth has joined #ruby-lang
EricTheAwful has quit [Quit: Textual IRC Client: www.textualapp.com]
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
djbkd has joined #ruby-lang
RickHull has joined #ruby-lang
kwd has joined #ruby-lang
b_hoffman has joined #ruby-lang
<RickHull> anyone use net-ssh Process? opened this issue, but not expecting a response as the maintainer is inactive: https://github.com/net-ssh/net-ssh/issues/237
<RickHull> am I misunderstanding how to use it? per http://net-ssh.github.io/ssh/v1/chapter-4.html
djbkd has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
brownbathrobe has joined #ruby-lang
havenn has quit [Ping timeout: 264 seconds]
gwendall has joined #ruby-lang
loincloth has joined #ruby-lang
djbkd has joined #ruby-lang
jeffreyio has quit [Remote host closed the connection]
brownbathrobe has quit [Remote host closed the connection]
loincloth has quit [Read error: Connection reset by peer]
tosbourn has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
<goandseek> Jhass
<goandseek> Thanks for the help
b_hoffman has quit [Quit: b_hoffman]
<goandseek> got it working but I'm positive there must be a better way to do it
michaeldeol has joined #ruby-lang
<goandseek> I'll get there
<jhass> goandseek: put the condition on the same line as the if
<jhass> if foo, not if [newline] foo
<goandseek> Ok
wallerdev has joined #ruby-lang
<jhass> and unindent the else, put it at the same level as the if
gwendall_ has joined #ruby-lang
brushbox has joined #ruby-lang
<goandseek> Will do
tosbourn has quit [Ping timeout: 250 seconds]
<jhass> and yeah, you would put the words into an array and iterate over it normally, but it's okay to not bother for now if that's way over your head
bruno- has quit [Ping timeout: 245 seconds]
<goandseek> something like newvariable =[word1, word2, word3].each do something or another?
<goandseek> each do puts
lytol has joined #ruby-lang
<goandseek> I tried doing it as an array early on but it kept printing the array with the brackets
<jhass> yeah pretty much like that, you just don't need the assignment at all
<jhass> [word1, word2, word3, word4].each do |word|
<jhass> if word.size < 4
<jhass> and so on
<goandseek> excellent to know
<goandseek> I'll experiment with that
gwendall has quit [Ping timeout: 272 seconds]
<goandseek> I came to newvar = [word1, word2, word3] 1.times.each do puts earlier and it ept spitting the literal array at me which threw me off
Guest25 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<goandseek> kept*
b_hoffman has joined #ruby-lang
lytol has quit [Remote host closed the connection]
zillabags_ has joined #ruby-lang
<goandseek> How does ruby know what 'word' is if my variables have numbers after them
<goandseek> ?
<goandseek> [word1, word2, word3].each do |word|
<goandseek> if word.size > 4
<goandseek> else puts "Yikes, '#{word}' was less than 4 letters..."
rcvalle has quit [Quit: rcvalle]
gwendall has joined #ruby-lang
<jhass> you tell it
atomical has joined #ruby-lang
Guest25 has joined #ruby-lang
<jhass> do |word| that's telling ruby to put each value of the array into word
<goandseek> OOHHHH
<goandseek> Ooohhhhhhh
<goandseek> that answers so many questions
bantic has quit [Quit: bantic]
zillabags has quit [Ping timeout: 244 seconds]
<goandseek> I'll quit harrassing you but you've been a lot of help
<goandseek> thanks a lot
<jhass> yw
<goandseek> one last question as I've never used IRC before 20 minutes ago
cytoskeletor has quit [Ping timeout: 245 seconds]
<goandseek> how do I save this channel
<RickHull> depends on your client
<RickHull> what program are you using?
<goandseek> HexChat
<goandseek> I'll googz it
<goandseek> thanks everyone
<wallerdev> probably right click the channel
<jhass> goandseek: you might also like #ruby, three times the people ;)
cornerma1 has joined #ruby-lang
<goandseek> I read that they hate noobs in the big channels like Ruby and Rails
<jhass> you read wrong
gwendall_ has quit [Ping timeout: 272 seconds]
<jhass> we only hate people who don't (show that) make effort on their own, clearly you don't fall into that category ;)
Guest25 has quit [Client Quit]
<goandseek> thanks!
<goandseek> I bet this autosaves the channel
<goandseek> like if I close it and reopen
<goandseek> only one way to find out
<goandseek> poof
goandseek has quit [Quit: Leaving]
cornerman has quit [Ping timeout: 256 seconds]
cornerma1 is now known as cornerman
<wallerdev> gone forever
goseek has joined #ruby-lang
goseek has left #ruby-lang [#ruby-lang]
jwaldrip has joined #ruby-lang
gwendall has quit [Read error: Connection reset by peer]
gwendall has joined #ruby-lang
ledestin has joined #ruby-lang
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
juanfgs has quit [Quit: WeeChat 1.1.1]
riotjones has joined #ruby-lang
mcclurmc has joined #ruby-lang
zillabags_ has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
imperator has quit [Ping timeout: 246 seconds]
ttilley has joined #ruby-lang
ttilley has quit [Changing host]
ttilley has joined #ruby-lang