apeiros changed the topic of #ruby to: Ruby 2.1.4; 2.0.0-p594; 1.9.3-p550: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<brennanMKE> resolving deltas...
cantonic has quit [Quit: cantonic]
soulcake has joined #ruby
mib_mib has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby
iliketurtles has quit [Remote host closed the connection]
soulcake has quit [Client Quit]
iliketurtles has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
icarus has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
krz has joined #ruby
wallerdev has quit [Quit: wallerdev]
soulcake has joined #ruby
soulcake has left #ruby [#ruby]
kaspergrubbe has joined #ruby
paulfm has joined #ruby
paulfm has quit [Client Quit]
Dude007 has joined #ruby
govg has quit [Ping timeout: 250 seconds]
mikeg has quit [Remote host closed the connection]
paulfm has joined #ruby
paulfm has quit [Max SendQ exceeded]
IrishGringo has quit [Ping timeout: 245 seconds]
graydot has quit [Quit: graydot]
Dude007 has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgorbach has quit [Ping timeout: 264 seconds]
nobitanobi has joined #ruby
_maes_ has quit [Ping timeout: 245 seconds]
hightower4 has joined #ruby
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
VanillaGoat__ has joined #ruby
graydot has joined #ruby
keen____________ has quit [Read error: Connection reset by peer]
graydot has quit [Client Quit]
mgorbach has joined #ruby
keen____________ has joined #ruby
soulcake has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
VanillaGoat_ has quit [Ping timeout: 258 seconds]
jamto11 has joined #ruby
chrishough has joined #ruby
renderful has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
luminor has quit [Read error: Connection reset by peer]
luminor has joined #ruby
Hijiri has joined #ruby
pglombardo has quit [Quit: Leaving.]
mgorbach has quit [Ping timeout: 245 seconds]
machete has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Remote host closed the connection]
josephndenton has joined #ruby
ptrrr has quit [Quit: ptrrr]
mgorbach has joined #ruby
dkb20k has joined #ruby
nobitanobi has joined #ruby
machete has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has joined #ruby
mgorbach has quit [Excess Flood]
josephndenton has quit [Ping timeout: 260 seconds]
dkb20k has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
thagomizer has quit [Quit: Leaving.]
weemsledeux has joined #ruby
nkumari has quit [Remote host closed the connection]
jimms has joined #ruby
boombadaroomba has joined #ruby
takle has quit [Remote host closed the connection]
blackgoat has quit [Ping timeout: 244 seconds]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Freemason> Rubinia k diamantia
<Freemason> Iste masonoi mas psekazete
blackgoat has joined #ruby
kireevco has joined #ruby
x1337807x has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
sargas has quit [Quit: Leaving]
vyorkin has joined #ruby
AlSquire has joined #ruby
KALEGEK has joined #ruby
<KALEGEK> good day
kireevco has quit [Quit: Leaving.]
<KALEGEK> wouldn't it be cool, if ruby was android native like python :)
<KALEGEK> only in a perfect world
vyorkin has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
crazydiamond has quit [Ping timeout: 264 seconds]
<KALEGEK> right?
majjoha has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<pipework> KALEGEK: Jruby emits jvm bytecode.
<pipework> eventually
spyderman4g63 has joined #ruby
<headius> indeed
<pipework> KALEGEK: Go just got some cool new mobile stuff for the androids.
<KALEGEK> i tried ruboto
<KALEGEK> still early in it's stages
brennanMKE has quit [Remote host closed the connection]
<KALEGEK> but likewise, ruby can run on linux natively, why not natively on android
<pipework> headius: I haven't tried jruby on android directly without ruboto. Is ruboto required or just a nice thing to have?
<pipework> KALEGEK: JRuby runs natively on android.
Dude007 has quit [Remote host closed the connection]
<KALEGEK> Jruby is native ruby?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> there is no 'native ruby', there's ruby implementations. MRI is the ruby most people use.
<pipework> JRuby is Ruby on the JVM.
Wolland_ has joined #ruby
<KALEGEK> oww
patrickod has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<KALEGEK> didn't know that
josephndenton has joined #ruby
Brothmars has joined #ruby
<KALEGEK> i thought i would had to use java embedded somehow on Jruby
jamto11 has quit [Remote host closed the connection]
<Hijiri> "linux" on the desktop and on an android device is a bit different, so something that builds for a desktop doesn't necessarily have a counterpart on android
majjoha has quit [Ping timeout: 272 seconds]
<Hijiri> for one thing, they're different processor architectures
nkumari has joined #ruby
<KALEGEK> yep
<Hijiri> x86 or x86_64 versus ARM
<Hijiri> also different standard libraries
n_blownapart has joined #ruby
<Hijiri> and system utilities
<KALEGEK> about time they released a unified OS
nobitanobi has quit [Remote host closed the connection]
<pipework> However, maybe mruby has a chance.
spyderman4g63 has quit [Ping timeout: 264 seconds]
<KALEGEK> one kernel for all :P
<pipework> KALEGEK: Windows is trying that.
<zenspider> what does processor have to do with it if you're running on jvm?
<Hijiri> the only real thing they share in common, as rms would like to tell you, is the kernel
o0oo0o has joined #ruby
<pipework> zenspider: Perhaps they're talking about non-jvm ruby on android?
<Hijiri> and maybe the sort-of following posix
Wolland has quit [Ping timeout: 240 seconds]
rylev has quit [Remote host closed the connection]
n_blownapart has quit [Client Quit]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
<KALEGEK> i wish ruby would be faster tho
<KALEGEK> somehow
<pipework> KALEGEK: JRuby is fast.
<KALEGEK> i would love it to be aproaching c+
<KALEGEK> :D one can only dream
nkumari has quit [Remote host closed the connection]
<KALEGEK> like using it for building a game engine
<pipework> JRuby approaches Java native pretty quick.
<KALEGEK> have you tried barracuda?
<KALEGEK> ruby and CUDA
<pipework> Nope.
<KALEGEK> i tried a bit, but only could do calculations, nothing with strings :(
<pipework> Oh Loren wrote it.
sambao21 has quit [Quit: Computer has gone to sleep.]
<KALEGEK> Loren?
<pipework> lsegal
<KALEGEK> you know him?
aantix has quit [Ping timeout: 244 seconds]
<KALEGEK> sorry i didn't :)
ramfjord has quit [Ping timeout: 245 seconds]
luminor has quit []
nonks has joined #ruby
kirloo has joined #ruby
<shevy> pipework knows everyone
<KALEGEK> is one of the authors of YARD, so yeah a big guy i assume
prasselpikachu has quit [Ping timeout: 250 seconds]
luminor has joined #ruby
prasselpikachu has joined #ruby
bricker`work has quit [Quit: leaving]
bbloom has joined #ruby
klaut has quit [Remote host closed the connection]
<KALEGEK> anybody here used barracuda?
Xiti` has joined #ruby
shanlar- has joined #ruby
AlSquirrel has joined #ruby
wallerdev has joined #ruby
synergyz has joined #ruby
davidhq_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Xiti` has quit [Client Quit]
blenny_ has joined #ruby
Xiti` has joined #ruby
x1337807x has joined #ruby
Xuerian_ has joined #ruby
luk3thomas has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
binw_ has joined #ruby
Ulrike_Schultz has joined #ruby
Igneous_ has joined #ruby
jonathanwallace has quit [Ping timeout: 244 seconds]
az7ar_away has quit [Ping timeout: 244 seconds]
ehlovader has quit [Ping timeout: 244 seconds]
kyle___ has joined #ruby
blenny has quit [Ping timeout: 244 seconds]
minecoins has quit [Ping timeout: 244 seconds]
sarlalian has quit [Ping timeout: 244 seconds]
Jamo has quit [Ping timeout: 244 seconds]
Heartbroken has quit [Ping timeout: 244 seconds]
Xuerian has quit [Quit: No Ping reply in 180 seconds.]
kobain has quit [Ping timeout: 244 seconds]
chishiki has quit [Ping timeout: 244 seconds]
msx has quit [Ping timeout: 244 seconds]
Andriamanitra has quit [Ping timeout: 244 seconds]
DivineEntity has quit [Ping timeout: 244 seconds]
Sthebig has quit [Ping timeout: 244 seconds]
mnms_ has quit [Ping timeout: 244 seconds]
jalcine has quit [Ping timeout: 244 seconds]
jriese has quit [Ping timeout: 244 seconds]
emdub has quit [Ping timeout: 244 seconds]
shanlar has quit [Ping timeout: 244 seconds]
kyle__ has quit [Ping timeout: 244 seconds]
ArchBeOS has quit [Ping timeout: 244 seconds]
Gate has quit [Ping timeout: 244 seconds]
Igneous has quit [Ping timeout: 244 seconds]
AlSquire has quit [Ping timeout: 244 seconds]
echevemaster has quit [Ping timeout: 244 seconds]
Jake232 has quit [Ping timeout: 244 seconds]
Ulrike_Rayne has quit [Ping timeout: 244 seconds]
davidhq has quit [Ping timeout: 244 seconds]
Xiti has quit [Ping timeout: 244 seconds]
braincra- has quit [Ping timeout: 244 seconds]
tskogberg has quit [Ping timeout: 244 seconds]
synergyz_ has quit [Ping timeout: 244 seconds]
Cork has quit [Ping timeout: 244 seconds]
camt has quit [Ping timeout: 244 seconds]
ob has quit [Ping timeout: 244 seconds]
brandon_ has quit [Ping timeout: 244 seconds]
Maxdamantus has quit [Ping timeout: 244 seconds]
crome has quit [Ping timeout: 244 seconds]
shaman42_ has quit [Ping timeout: 244 seconds]
raldu has quit [Ping timeout: 244 seconds]
ereslibre has quit [Ping timeout: 244 seconds]
binw has quit [Ping timeout: 244 seconds]
DivineEn1ity has joined #ruby
emdub has joined #ruby
jriese has joined #ruby
Gate has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
minecoins has joined #ruby
camt has joined #ruby
sarlalia1 has joined #ruby
Jamo has joined #ruby
raldu has joined #ruby
chishiki has joined #ruby
jonathanwallace has joined #ruby
ArchBeOS has joined #ruby
mnms_ has joined #ruby
Andriamanitra has joined #ruby
ehlovader has joined #ruby
crome has joined #ruby
ArchBeOS is now known as Guest95036
brandon_ has joined #ruby
Maxdamantus has joined #ruby
jackyalcine has joined #ruby
braincrash has joined #ruby
iliketurtles has quit [Ping timeout: 244 seconds]
tskogberg has joined #ruby
shaman42 has joined #ruby
ob has joined #ruby
az7ar_away has joined #ruby
kobain has joined #ruby
Sthebig has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
msx has joined #ruby
echevemaster has joined #ruby
ereslibre has joined #ruby
phutchins has joined #ruby
luk3thomas has quit [Client Quit]
skolman has quit [Remote host closed the connection]
marr has quit [Ping timeout: 264 seconds]
kirloo has quit [Ping timeout: 272 seconds]
luk3thomas has joined #ruby
allcentury has joined #ruby
luminor has quit []
robustus|Off has quit [Ping timeout: 255 seconds]
Heartbroken has joined #ruby
Cork has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
FernandoKosh has quit [Quit: Leaving.]
pen has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
unmides has joined #ruby
jottr has joined #ruby
sinequanon has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
mdev has joined #ruby
mleung has quit [Quit: mleung]
luminor has joined #ruby
sinequanon has joined #ruby
mib_mib has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davidhq_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
sinequanon has quit [Ping timeout: 244 seconds]
Wolland has joined #ruby
Wolland_ has quit [Ping timeout: 264 seconds]
boombadaroomba has joined #ruby
charliesome has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
aspiers has joined #ruby
boombadaroomba has joined #ruby
Wolland has quit [Remote host closed the connection]
camt has quit [Ping timeout: 244 seconds]
Wolland has joined #ruby
ob has quit [Ping timeout: 244 seconds]
boombadaroomba has quit [Remote host closed the connection]
francisfish has joined #ruby
aspires has quit []
<Fire-Dragon-DoL> easiest way to remove X characters from a string? Doesn't matter where or what, I have a 70 characters string and need to remove 20 (test validating against string length)
elemenopy has joined #ruby
<elemenopy> sup sup m8's
<KALEGEK> .cut[0..-15] ?
drawingthesun has joined #ruby
<zenspider> wtf is cut?
mary5030 has quit [Remote host closed the connection]
<zenspider> god damnit... more PM spam
<KALEGEK> slice
<KALEGEK> sorry
Wolland has quit [Ping timeout: 250 seconds]
arescorpio has joined #ruby
nobitanobi has quit [Remote host closed the connection]
ob has joined #ruby
oetjenj has quit [Quit: ZNC - http://znc.in]
<zenspider> .slice _is_ a method. So is []
francisfish has quit [Ping timeout: 250 seconds]
ob has quit [Max SendQ exceeded]
<KALEGEK> yeah it was an answer to Fire-Dragon
<KALEGEK> to remove chars of a string
<zenspider> yeah. it isn't an answer
ob has joined #ruby
camt has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
davidhq has joined #ruby
nateberkopec has joined #ruby
chipotle has joined #ruby
<KALEGEK> string.slice 0..-20
nobitanobi has joined #ruby
majjoha has joined #ruby
<KALEGEK> that isn't an answer?
<KALEGEK> does exactly what he requested, simple way to remove chars of a string, giving a -20 char count from the end.
jimms has quit [Remote host closed the connection]
davidhq has quit [Client Quit]
asmodlol has quit [Read error: Connection reset by peer]
unmides has quit [Ping timeout: 245 seconds]
nobitanobi has quit [Remote host closed the connection]
<zenspider> KALEGEK: is that what you typed before?
<zenspider> is it ever CLOSE to what you typed before?
nateberkopec has quit [Quit: Leaving...]
majjoha has quit [Ping timeout: 244 seconds]
<KALEGEK> hey man take it easy
jamto11 has joined #ruby
<KALEGEK> take a breath, just relax
davidhq has joined #ruby
<zenspider> don't pull "that isn't an answer" when it wasn't your answer
<KALEGEK> are you a teacher?
davidhq has quit [Client Quit]
<KALEGEK> you somekind of big guy here or something?
<zenspider> jesus you're an ass
<KALEGEK> telling people what they shouldn't say or say
<KALEGEK> hahahha
<KALEGEK> i'm an ass??
<KALEGEK> xD
<zenspider> how about I stick to telling you when you're wrong, and you accept that instead of pretending you weren't
<KALEGEK> have it your way man, the slice method is all he needed to know for something simple
nobitanobi has joined #ruby
rylev has joined #ruby
<KALEGEK> that it wasn't 100 perfect by your standards (who are you anyway?) , i think he would have come to fix easely
beef-wellington has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby
jamto11 has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
cleopatra has joined #ruby
<KALEGEK> jesus
<KALEGEK> i hope you don't represent the ruby community boy
nobitanobi has quit [Remote host closed the connection]
<KALEGEK> and people ask why ruby isn't cool anymore
<KALEGEK> hahhahahha
rylev has quit [Ping timeout: 265 seconds]
iliketurtles has quit [Client Quit]
Channel6 has joined #ruby
cleopatra has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MattB2> zenspider: only one ass here.
ob has quit [Max SendQ exceeded]
ob has joined #ruby
<zenspider> MattB2: not true. there are plenty of asses in here.
<KALEGEK> no humor
<MattB2> zenspider: when you start talking to your other self, we'll know for sure
nobitanobi has joined #ruby
luckyruby has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<KALEGEK> i will come back in a hundred years, when i am a perfect ruby guru
<KALEGEK> if ruby would still exist.... maybe
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
<mostlybadfly> has anyone played around with Shoes?
<MattB2> KALEGEK: don't be put off, every community has the odd problem child, but as a whole, Matz is nice, so we are nice :)
arkansas12 has joined #ruby
<KALEGEK> mostly i use shoes
<KALEGEK> MattB2: ok :)
<arkansas12> how could we create a method that sorts arrays?
<arkansas12> def solution nums = [] end puts solution.sort(1,2,5,9,10,15,255)
<mostlybadfly> ah cool, it looks fun
maestrojed has joined #ruby
Brothmars has quit [Read error: Connection reset by peer]
<arkansas12> i'm having trouble with the last part
<KALEGEK> it has performance problems tho
Xiti` has quit [Read error: Connection reset by peer]
<KALEGEK> not made for large scale
<mostlybadfly> ah that is unfortunate
apeiros has quit [Ping timeout: 255 seconds]
<mostlybadfly> i thought it would be fun to do a music player with it, but maybe it would be too much
<KALEGEK> not stable enough for production
phutchins has quit [Ping timeout: 260 seconds]
<MattB2> KALEGEK is right, Shoes is meant more as a learning aid
Brothmars has joined #ruby
Xeago__ has quit [Remote host closed the connection]
<mostlybadfly> I can at least make a button that makes a ridiculous sound when pressed
<mostlybadfly> that in itself will be good to learn :D
<MattB2> mostlybadfly: LOL!
<mostlybadfly> i saw this product online called the "bruh button" that just says "bruh" when you press it haha
arkansas12 has quit [Client Quit]
<KALEGEK> Matt , you don't happen to be THE Matt of ruby right?
<mostlybadfly> so I'm at least going to make that
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MattB2> KALEGEK: God no, I wish!
rshetty has joined #ruby
<KALEGEK> Matsumoto
<KALEGEK> does he ever come here?
nonnatus has joined #ruby
arkansas12 has joined #ruby
<arkansas12> def solution(nums) solution = nums.to_a.sort end
<arkansas12> why is this a bad way to sort an array?
<MattB2> KALEGEK: not that I've seen
<arkansas12> i figured out a solution to the problem, but i'm not sure why nobody posted this answer :(
siwica has quit [Ping timeout: 250 seconds]
<KALEGEK> because frankly what i have noticed, the more ruby code resembles the english language
renderful has joined #ruby
<KALEGEK> the more beautifull it is recieved
<arkansas12> y'all think that my ruby code ain't good?
mib_mib has quit [Ping timeout: 264 seconds]
<KALEGEK> why is it not good?
<arkansas12> ruby is meant to be like english, but it's pretty darn hard to get used to it
<arkansas12> well i don't know, i'm just a beginner and i want to know how i can improve it... i came across the codewars site and it's a good tool i reckon you should use it too
<KALEGEK> have you tried it in IRB?
<elemenopy> can anyone direct me to an easy to follow guide for setting up my amazon console command ssh?
<KALEGEK> and checking the sort array on google
<arkansas12> yeah it works, but what about code efficiency and all that stuff?
<elemenopy> ec2
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arkansas12> or is that stuff all irrelevant and there is no right way to program?
<arkansas12> i hate being a beginner it sucks
<KALEGEK> there is no right way
<KALEGEK> the right way is the way that is the right way for you
<KALEGEK> get it
cpruitt has quit [Quit: cpruitt]
<KALEGEK> everybody has their own style
<MattB2> The thing with Ruby is that because it's expressive, there are many ways to do the same thing
<arkansas12> well yeah, but i want to be politically correct with people and computers
Xiti has joined #ruby
<MattB2> There are tradeoffs between readable code, fast code and compact code
<KALEGEK> you already know that do and end is the same as { } right?
<arkansas12> yeah\
<KALEGEK> {} is used as one liners, do and end for more lines
<arkansas12> i can make it into a single line like this right?
<MattB2> do end for multiline blocks is the general rule
chipotle has quit [Quit: cya]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
<arkansas12> { solution(nums) solution = nums.to_a.sort }
Fire-Dragon-DoL has quit [Quit: Leaving.]
<elemenopy> answered my own question this is from the EC2 amazon aws documentation : ssh -i my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com
<KALEGEK> likewise there are "rules" , rules as in, a commen way for ruby programmers to write code
<KALEGEK> as in, easier for other ruby programmers to understand
<KALEGEK> a common ground
<MattB2> arkansas12: also, you don't need solution = in there
renderful has quit [Ping timeout: 255 seconds]
<arkansas12> oh
<KALEGEK> but it is not a must
<arkansas12> this is confusing
<KALEGEK> it's simple
<MattB2> arkansas12: you're setting a variable that isn't used outside the def
<arkansas12> oh whoops i confused def with do
<KALEGEK> def i always like to think of it as define
<KALEGEK> define method
nobitanobi has quit [Remote host closed the connection]
amclain has joined #ruby
<arkansas12> do is for iterating stuff right?
<MattB2> do-end wrap a block
<MattB2> as does { }
<elemenopy> you can use it to iterate
<MattB2> but {} is also a hash
<elemenopy> like using object.each or object.each_with_index
<elemenopy> then use do
<KALEGEK> @do_this = lambda.new do puts "hey" end
<KALEGEK> 2.times do @do_this.call end
Brothmars has quit [Ping timeout: 264 seconds]
<MattB2> KALEGEK: on one liners, odiomatically you use {} to wrap the block, not do end
<KALEGEK> that does 2x puts "hey"
vyorkin has joined #ruby
<KALEGEK> yeah , it is for this chat a bit confusing because otherwise i have to press enter all the time
<arkansas12> what's a fun project in ruby for a beginner?
<MattB2> I know, but you can use ; to indicate new statements
<KALEGEK> @do_this = lambda.new { puts "hey" } ; 2.times { @do_this.call }
<KALEGEK> is the same thing arkansas12
<MattB2> >> @do_this = lambda.new { puts "hey" } ; 2.times { @do_this.call }
<eval-in__> MattB2 => tried to create Proc object without a block (ArgumentError) ... (https://eval.in/218941)
chipotle has joined #ruby
<KALEGEK> what happened?
tokik has joined #ruby
<arkansas12> i like the first one better
<arkansas12> KALEGEK:
Wolland has joined #ruby
jottr has joined #ruby
<KALEGEK> ahhh! remove the .new
<KALEGEK> @do_this = lambda { puts "hey" } ; 2.times { @do_this.call }
krz has quit [Ping timeout: 258 seconds]
<KALEGEK> (i removed the .new after lambda )
<KALEGEK> now it works
kyoshero has joined #ruby
arup_r has joined #ruby
vyorkin has quit [Ping timeout: 244 seconds]
<KALEGEK> do you understand it somewhat arkansas?
<KALEGEK> i'm still a novice myself
mib_mib has joined #ruby
<KALEGEK> but getting there bit by bit ( pun intended ) xD
kyoshero has quit [Max SendQ exceeded]
kyoshero has joined #ruby
rshetty has quit [Remote host closed the connection]
Jameser has joined #ruby
squar1sm has quit [Ping timeout: 264 seconds]
bigmac has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
<mr_rogerz_> arkansas12: i am just starting out in ruby too. I like to look at job interview questions.
arup_r has quit [Client Quit]
<arkansas12> oh wow
<arkansas12> i think i should do that!
<mr_rogerz_> they are pretty small in scope and provide a decent challenge for a beginner
wjimenez_ has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
<mr_rogerz_> although in a year i will look back and laugh and be able to solve them in 5 minutes
spyderman4g63 has joined #ruby
<mr_rogerz_> that's awesome
arup_r has joined #ruby
Wolland has joined #ruby
<mr_rogerz_> is that your newsletter?
<nonnatus> No, it was on the front page of HN a couple of days ago
<mr_rogerz_> you pulled that out pretty fast. only reason I ask
<mr_rogerz_> that's perfect for where I am at right now
stylus has quit [Ping timeout: 245 seconds]
stylus has joined #ruby
<mr_rogerz_> thanks for that
unmides has joined #ruby
<nonnatus> I signed up a little while ago, to shape up for interviews
<mr_rogerz_> I'm working on this one right now: http://www.yodlecareers.com/puzzles/triangle.html
<mr_rogerz_> yeah I am in the process of interviewing right now as well
Cache_Money has joined #ruby
optiz0r has quit [Ping timeout: 250 seconds]
<nonnatus> Hope that helps you out a bit, then.
<nonnatus> And good luck
kyle___ has quit [Disconnected by services]
<KALEGEK> do you have to be good ath math to program in ruby?
<mr_rogerz_> you too
chrishough has joined #ruby
chrishough has quit [Client Quit]
<KALEGEK> in the long run
Wolland has quit [Ping timeout: 265 seconds]
spyderman4g63 has quit [Ping timeout: 265 seconds]
parabolize has joined #ruby
optiz0r has joined #ruby
<mr_rogerz_> being good at math helps, but not a prerequisite. I say being logical and breaking things down into small manageable tasks is what I find admirable in some of the people I've had the pleasure of working with.
<KALEGEK> cool
dkb20k has joined #ruby
<KALEGEK> the more abstracted a language gets from the computer , the less calculation it will have
<KALEGEK> i think
claw__ has joined #ruby
maestrojed has quit [Ping timeout: 245 seconds]
claw_ has quit [Ping timeout: 265 seconds]
jimms has joined #ruby
<KALEGEK> because computer(calculator) <-> person(language)
<mr_rogerz_> what language were you coming from before?
<KALEGEK> html
ybit3 has quit [Ping timeout: 272 seconds]
<KALEGEK> xD
bmurt has joined #ruby
<KALEGEK> Like you don't see Tony Stark asking YARVIS for a calculation, it just does it
majjoha has joined #ruby
ybit3 has joined #ruby
majjoha has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
gsd has joined #ruby
it0a has joined #ruby
nateberkopec has joined #ruby
tyll_ has joined #ruby
nateberkopec has quit [Client Quit]
coderhs has quit [Ping timeout: 240 seconds]
Joufflu has joined #ruby
tyll has quit [Ping timeout: 244 seconds]
Xiti has quit [Quit: Leaving]
Xiti has joined #ruby
goshdarnyou has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
ikanobori_ has quit [Ping timeout: 265 seconds]
<mostlybadfly> lol
maestrojed has quit [Ping timeout: 256 seconds]
jrunning_ has quit [Ping timeout: 244 seconds]
neersighted has quit [Ping timeout: 265 seconds]
Lewix has quit [Remote host closed the connection]
ikanobori_ has joined #ruby
Xiti has quit [Quit: Leaving]
daxroc has quit [Ping timeout: 265 seconds]
ceej has quit [Ping timeout: 244 seconds]
Xiti has joined #ruby
skmp has quit [Ping timeout: 265 seconds]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has joined #ruby
bjeanes has quit [Ping timeout: 244 seconds]
luminor has quit []
Guest67531 has joined #ruby
skmp has joined #ruby
kapowaz has quit [Ping timeout: 265 seconds]
bluehavana has quit [Ping timeout: 265 seconds]
n1ftyn8 has quit [Ping timeout: 265 seconds]
luminor has joined #ruby
skolman_ has joined #ruby
kaplejon has quit [Ping timeout: 265 seconds]
bjeanes has joined #ruby
kapowaz_ has joined #ruby
beef-wellington has quit [Ping timeout: 260 seconds]
ckrailo has quit [Ping timeout: 244 seconds]
luminor has quit [Read error: Connection reset by peer]
luminor has joined #ruby
n1ftyn8 has joined #ruby
bluOxigen has joined #ruby
bluehavana has joined #ruby
im0b has quit [Ping timeout: 265 seconds]
ceej has joined #ruby
ckrailo has joined #ruby
maestrojed has joined #ruby
kaplejon_ has joined #ruby
xanderwebs has quit [Quit: Connection closed for inactivity]
daxroc_ has joined #ruby
jamto11 has joined #ruby
arrubin has quit [Ping timeout: 244 seconds]
dnyy has quit [Ping timeout: 265 seconds]
im0b_ has joined #ruby
casual has quit [Ping timeout: 244 seconds]
arrubin has joined #ruby
dnyy has joined #ruby
elemenopy has quit [Remote host closed the connection]
Spami has joined #ruby
casual has joined #ruby
eka has joined #ruby
cubb has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
jrunning_ has joined #ruby
cubb has left #ruby ["Textual IRC Client: www.textualapp.com"]
mr_rogerz_ has quit [Ping timeout: 255 seconds]
g_ has joined #ruby
Spami has quit [Client Quit]
g_ is now known as Guest49470
Wolland has joined #ruby
Wolland_ has joined #ruby
duncannz has quit [Remote host closed the connection]
<KALEGEK> I'll call me homey Azmat, we'll fix this code right here.
troyready has quit [Ping timeout: 256 seconds]
Channel6 has quit [Quit: Leaving]
rkalfane has joined #ruby
<KALEGEK> ok one question
<KALEGEK> is it possible for a user, when entering text
<KALEGEK> to escape out of string interpolation and exec system commands?
jamto11 has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
<KALEGEK> when parsing his input as a string, i don't think so right?
<KALEGEK> would be a major security flaw
duncannz has joined #ruby
Spami has joined #ruby
bmurt has quit []
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
takle has joined #ruby
atomical has joined #ruby
startupality has joined #ruby
takle has quit [Ping timeout: 264 seconds]
nonks has quit [Ping timeout: 250 seconds]
<nonnatus> There have been vulnerabilities.
ixti has quit [Ping timeout: 272 seconds]
<nonnatus> But they get patched, and so on.
<KALEGEK> that can't be!
<KALEGEK> majow error then
<KALEGEK> major
boombadaroomba has joined #ruby
francisfish has joined #ruby
pen has quit []
<KALEGEK> no way to turn things of in ruby , let's say system commands?
<KALEGEK> like system() and ``
Rapier- has joined #ruby
Rapier- has quit [Client Quit]
<nonnatus> Well, look at SQL injection; these things are always a possibility, and hard (or impossible) to get perfect.
<KALEGEK> like // EXCLUSE( system(), `` )
<nonnatus> I wouldn't really know, honestly.
Rapier- has joined #ruby
<KALEGEK> like a blacklist of methods or kernel methods?
albs22 has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
<KALEGEK> hmz
<nonnatus> There must be, or sites like Code School would be at a massive risk.
<KALEGEK> yep
rylev has joined #ruby
eka has joined #ruby
<KALEGEK> 10^100.times do system(kernel.reboot) end
boombadaroomba has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
<KALEGEK> reboot into oblivion
maestrojed has quit [Ping timeout: 258 seconds]
<KALEGEK> like the useless device
francisfish has quit [Ping timeout: 264 seconds]
coderhs has joined #ruby
Hobogrammer has quit [Ping timeout: 256 seconds]
<KALEGEK> giving your pc a proper rumble
<KALEGEK> what would a pc be without programming?
mleung has joined #ruby
flyhigh has joined #ruby
Jake232 has joined #ruby
rshetty has joined #ruby
lampd1 has joined #ruby
rylev has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
majjoha has joined #ruby
<KALEGEK> an abicus?
nahtnam has joined #ruby
davedev24_ has quit []
<nahtnam> Hey! Im using httparty to make some api calls. I keep getting an error saying: https://gist.github.com/nahtnam/9144c4bb6cedf4100f74 so I want to check if the URL is correct (it is dynamic). I have some code that looks like this: self.class.get("/orders", {amount: amount}.merge(options)) How can I see the url that its fetching from?
melik has quit [Quit: (null)]
<nahtnam> Any mods here? Looks like there is a bot PMing people.
majjoha has quit [Ping timeout: 258 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
luckyruby has quit [Quit: Leaving...]
xiq_ has quit [Read error: Connection reset by peer]
xiq_ has joined #ruby
mleung has quit [Quit: mleung]
KALEGEK has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chipotle has quit [Excess Flood]
maestrojed has joined #ruby
arkansas12 has quit [Ping timeout: 246 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
Ulrike_Schultz is now known as Ulrike_Rayne
chipotle has joined #ruby
hamakn has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
MrDoctor2 has quit [Remote host closed the connection]
MrDoctor2 has joined #ruby
echevemaster has quit [Quit: WeeChat 1.0.1]
Scotteh_ has joined #ruby
MattB2 has quit []
vyorkin has joined #ruby
Scotteh has quit [Ping timeout: 255 seconds]
nonks has joined #ruby
jottr has joined #ruby
vyorkin has quit [Ping timeout: 245 seconds]
Xuerian_ is now known as Xuerian
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Photism has quit [Quit: Leaving]
spyderman4g63 has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
spyderman4g63 has quit [Remote host closed the connection]
danijoo has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
spyderman4g63 has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
dseitz has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
luk3thomas has quit [Quit: luk3thomas]
melik has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
dorei has quit []
spyderman4g63 has joined #ruby
Cache_Money has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mtakkman has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
Wolland_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Wolland has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
takle has joined #ruby
jimms has quit []
patrick99e99 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
poweratom_ has quit [Quit: Be back later ...]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
takle has quit [Ping timeout: 256 seconds]
Linell has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
x1337807x has joined #ruby
spyderman4g63 has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! ( www.adiirc.com]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
ChoiKyuSang has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
skolman_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
spyderman4g63 has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
sinequanon has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
arup_r has joined #ruby
rshetty has joined #ruby
gaganjyot has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Darryl_ has joined #ruby
TeresaP has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<TeresaP> 'evening
Abhijit has joined #ruby
spyderman4g63 has joined #ruby
rylev has joined #ruby
mikepack has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<nahtnam> TeresaP: Evening
spyderman4g63 has joined #ruby
noop has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<TeresaP> This is the correct syntax for a recursive copy of a folder and its contents to a new location correct? FileUtils.cp_r(File.join("folder_name", '.'), dest)
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
kiki_lamb has quit [Quit: leaving]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
kiki_lamb has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
rylev has quit [Ping timeout: 256 seconds]
spyderman4g63 has quit [Remote host closed the connection]
majjoha has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
_maes_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
tlarevo has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
viet_power has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
majjoha has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Abhijit_ has joined #ruby
rshetty has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
dseitz has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<TeresaP> Everyone must be afk ;)
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
marcdel has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
nonks has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Abhijit has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Remote host closed the connection]
Gadgetoid has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mleung has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
dseitz has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Cache_Money has joined #ruby
marcdel has quit [Ping timeout: 258 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
marcdel has joined #ruby
spyderman4g63 has joined #ruby
byprdct has quit []
byprdct has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Dreamer3 has joined #ruby
Gadgetoid has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
mtakkman has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Spami_ has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
Spami has quit [Read error: Connection reset by peer]
Dreamer3__ has quit [Read error: Connection reset by peer]
spyderman4g63 has quit [Remote host closed the connection]
bbloom_ has joined #ruby
BadQuanta has quit [Ping timeout: 265 seconds]
spyderman4g63 has joined #ruby
beneggett has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
bbloom has quit [Ping timeout: 265 seconds]
mtakkman has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
BadQuanta has joined #ruby
spyderman4g63 has joined #ruby
mib_mib has quit [Ping timeout: 256 seconds]
spyderman4g63 has quit [Remote host closed the connection]
omosoj has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
razieliyo has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
arescorpio has quit [Excess Flood]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<rpag> TeresaP, i think so yeah, did you run into an error?
<TeresaP> No error, which makes it hard to debug :)
<TeresaP> rpag, just no files are copied
spyderman4g63 has quit [Remote host closed the connection]
<rpag> i think it is the same as 'cp -R'.
spyderman4g63 has joined #ruby
<nahtnam> Maybe it has to do with perms? IDK
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Linell has quit [Quit: Lost terminal]
<TeresaP> You'd think it would give me some sort of error
spyderman4g63 has quit [Remote host closed the connection]
omosoj has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
omosoj has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
kirloo has joined #ruby
<TeresaP> thanks rpag, going to try on the command line to simulate it
<rpag> seems to work here
spyderman4g63 has joined #ruby
<rpag> just returns nil on success
spyderman4g63 has quit [Remote host closed the connection]
rshetty has joined #ruby
coderhs has quit [Ping timeout: 260 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
spyderman4g63 has joined #ruby
jwang__ has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
unmides has quit [Ping timeout: 255 seconds]
jwang__ has joined #ruby
vyorkin has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
flyhigh has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<TeresaP> Alright I had the wrong dest location -_-
spyderman4g63 has joined #ruby
D9 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<TeresaP> But according to the documentation I shouldn't have to do dest/folder_name in order to keep the folder structure the same. I hope the Ruby version works correctly.
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
spyderman4g63 has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
spyderman4g63 has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
spyderman4g63 has joined #ruby
yfeldblu_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
vyorkin has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
spyderman4g63 has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
MrDoctor has joined #ruby
iwishiwerearobot has quit [Ping timeout: 260 seconds]
spyderman4g63 has joined #ruby
MrDoctor2 has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
rylev has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
rpag has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
rylev has quit [Ping timeout: 250 seconds]
spyderman4g63 has quit [Remote host closed the connection]
MrDoctor has quit [Ping timeout: 265 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Meeh has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
BTRE has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
Meeh has joined #ruby
spyderman4g63 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
josephndenton has joined #ruby
gaganjyot has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mdev has quit [Ping timeout: 255 seconds]
gaganjyot has joined #ruby
francisfish has joined #ruby
yfeldblu_ has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cya]
spyderman4g63 has quit [Ping timeout: 256 seconds]
<nahtnam> Quick ruby question:
<nahtnam> I have a variable data: data = {"status":0,"amount":1,"address":"1END8vE7vQcYCwh9DgRQFENRC65MiJmWBr","tid":null,"id":13}
josephndenton has quit [Ping timeout: 255 seconds]
Scotteh_ has quit [Ping timeout: 255 seconds]
<nahtnam> How can I puts just the ID?
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
francisfish has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
sevenseacat has joined #ruby
majjoha has joined #ruby
<programmerq> nahtnam: puts data['id']
<nahtnam> programmerq: I tried that, and it outputs `id`
<programmerq> nahtnam: I'm not sure what might be happening then
<programmerq> could you post a gist with more context?
<nahtnam> Sure
hamakn has joined #ruby
<nahtnam> One sec
<programmerq> :)
Abhijit_ is now known as Abhijit
<nahtnam> Im writing a gem
hamakn has quit [Remote host closed the connection]
<nahtnam> Its a wrapper for this: https://github.com/snitko/straight-server
majjoha has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
<programmerq> let me try running it locally and see what it does. one moment
<nahtnam> programmerq: Do you want me to push the whole gem to github? You have to have straight running in the background. It may take a while to setup
<programmerq> nahtnam: actually, another thing you could do
<programmerq> puts order
<programmerq> wait
<programmerq> that might work... I might be getting my languages mixed up.
<programmerq> see what the full context of order is
<nahtnam> programmerq: It returns: {"status":0,"amount":1,"address":"1AEVTPRf6ikNLC6vVkymJPgka84ybKt5Df","tid":null,"id":20}
coderhs has joined #ruby
<programmerq> straight.create isn't returning a normal hash?
govg has joined #ruby
<programmerq> sorry, it's late so I could be way off on anything I say. :)
Lucky__ has joined #ruby
chinaman_ has joined #ruby
farkdiber has joined #ruby
melik has quit [Quit: (null)]
<nahtnam> programmerq: Ehhh, what do you mean by "straight.create isn't returning a normal hash?"
<programmerq> what is: puts order.class
<nahtnam> programmerq: `HTTParty::Response`
<programmerq> aha
<programmerq> okay-- that looks like it is a json string
<nahtnam> I believe it is
<programmerq> so you'll probably want to require 'json'
kireevco has joined #ruby
<programmerq> JSON.parse(order)
<programmerq> and then you should be able to do [:id] on that result
<nahtnam> programmerq: Where? In the test or the lib?
<nahtnam> Test, right?
<programmerq> up to you. :)
<programmerq> I don't know the rest of the context of your project, so an argument could be had for either side.
<programmerq> if you want that data structure to be readily available to the rest of teh lib, then put it in the lib
<programmerq> if you only care that the lib passes on json strings, and you want to test that it does the right thing, then you can do it in the test.
tercenya has quit [Read error: Connection reset by peer]
<programmerq> honestly, I'd recommend mocking out your requests to the staright-server for testing
tercenya has joined #ruby
terlar has joined #ruby
<nahtnam> programmerq: Well basically im making a gem that provides an api wrapper for people. Kinda like https://github.com/coinbase/coinbase-ruby
<nahtnam> Im guessing its best in the lib
<nahtnam> not sure though
<programmerq> I'd say get it working in the test for now, at least for academic purposes
* programmerq shrugs
<programmerq> you can always refactor later
<nahtnam> Kk
<nahtnam> Thanks for your help!
<programmerq> happy to oblige!
jottr has joined #ruby
<nahtnam> programmerq: One more question. Would it be possible to make it `puts order.id` instead of `puts order['id']`?
<chinaman_> what would is bsd better than debian?
<chinaman_> i need an os that's similar to mac that i can use rails and rspec
<nahtnam> chinaman_: Ubuntu?
<nahtnam> Thats what I use
<programmerq> chinaman_: if you want similar to osx without osx, look into the darwin project. it is the same kernel.
<chinaman_> thank you so much!
<programmerq> nahtnam: there might be some lib that can do it. the name hashie mash comes to mind, but I could be misremembering.
<nahtnam> programmerq: Kk, ill look into hashie
<nahtnam> Thanks
<programmerq> chinaman_: I'd also recommend looking around for some pay-by-hour VPS provider that virtualizes OSX. I don't have any recommendations, but that would probably be valuable.
jottr has quit [Ping timeout: 272 seconds]
<chinaman_> i think it'd be cheaper to buy a computer lol, but that's a cool suggestion
<programmerq> even if you have your CI system fire it up and kill it nightly for a single run, it'd probably be better than not.
<chinaman_> what is the best distro of darwin?
<chinaman_> puredarwin? or something else
<programmerq> chinaman_: I've never really used any
<programmerq> I just know it is out there.
<chinaman_> !ops
n1ftyn8 has quit [Ping timeout: 244 seconds]
melik has joined #ruby
<programmerq> I am an ops guy, but we generally don't run darwin in prod, so that's why I haven't touched it. :)
<chinaman_> kir loo is pming me porn
ionelmc has quit [Ping timeout: 265 seconds]
ZucchiniZe has quit [Ping timeout: 244 seconds]
<programmerq> yeah, I got one of those too. :(
<Hanmac> shevy: !!! ;P
<Hanmac> banister: spambot kirloo
electrical has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
n1ftyn8 has joined #ruby
ZucchiniZe has joined #ruby
Guest67531 has quit [Ping timeout: 265 seconds]
crazydiamond has joined #ruby
electrical has joined #ruby
ionelmc has joined #ruby
nobitanobi has joined #ruby
Soda has quit [Remote host closed the connection]
im0b_ has quit [Ping timeout: 265 seconds]
sinequanon has quit [Remote host closed the connection]
neersighted has joined #ruby
sinequanon has joined #ruby
Rapier- has quit [Ping timeout: 265 seconds]
renderful has joined #ruby
interlude has joined #ruby
rshetty has quit [Remote host closed the connection]
Morkel has joined #ruby
im0b_ has joined #ruby
ionelmc has quit [Ping timeout: 260 seconds]
sinequanon has quit [Ping timeout: 265 seconds]
jamto11 has quit [Remote host closed the connection]
patrickod has left #ruby [#ruby]
renderful has quit [Ping timeout: 264 seconds]
Guest49470 has quit [Ping timeout: 265 seconds]
<chinaman_> puredarwin hasn't been updated since 2012
<chinaman_> ubuntu is the best bet for rails devs, right?
albs22 has quit [Ping timeout: 240 seconds]
oleo has quit [Read error: Connection reset by peer]
frankS2 has quit [Ping timeout: 265 seconds]
oleo has joined #ruby
ionelmc has joined #ruby
Guest92116 is now known as lnong
tarcwynne__ has quit [Ping timeout: 265 seconds]
frankS2 has joined #ruby
tarcwynne__ has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco1 has joined #ruby
vyorkin has joined #ruby
rshetty has joined #ruby
patrick99e99 has joined #ruby
_d has quit [Quit: ZNC - http://znc.in]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
it0a has quit [Ping timeout: 255 seconds]
ChoiKyuSang has quit [Quit: Going offline, see ya! ( www.adiirc.com]
<Hanmac> shevy: ping
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poweratom_ has joined #ruby
kirloo has quit [K-Lined]
_chs_ has quit [Ping timeout: 265 seconds]
<shevy> Hanmac just woke up
sinequanon has joined #ruby
frankS2 has quit [Ping timeout: 265 seconds]
vyorkin has quit [Ping timeout: 255 seconds]
goshdarnyou has quit [Ping timeout: 244 seconds]
<Hanmac> shevy: rwx 200+ commits last month ... beat that wxRuby ;P
<shevy> ack
<shevy> there is XML
swatts has joined #ruby
<chinaman_> have you guys installed a hackintosh before?
rshetty_ has joined #ruby
<Hanmac> shevy: only one sample file
patrick99e99 has quit [Ping timeout: 264 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
goshdarnyou has joined #ruby
_chs_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
_chs_ is now known as Guest12958
alvaro_o has quit [Ping timeout: 258 seconds]
parduse has quit [Ping timeout: 258 seconds]
frankS2 has joined #ruby
rylev has joined #ruby
govg has quit [Quit: leaving]
hamakn has quit [Read error: No route to host]
cbetta has quit [Ping timeout: 265 seconds]
hamakn has joined #ruby
nobitanobi has quit []
interlude has left #ruby ["Be back later ..."]
ballPointPenguin has quit [Ping timeout: 265 seconds]
incomprehensibly has quit [Ping timeout: 265 seconds]
cbetta has joined #ruby
melik has quit [Quit: (null)]
incomprehensibly has joined #ruby
ionelmc has quit [Ping timeout: 244 seconds]
chinaman_ has quit [Ping timeout: 246 seconds]
luminor has quit []
Lewix has quit [Remote host closed the connection]
electrical has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
rylev has quit [Ping timeout: 255 seconds]
ballPointPenguin has joined #ruby
gaganjyot has quit [Ping timeout: 250 seconds]
ionelmc has joined #ruby
callenb__ has quit [Ping timeout: 265 seconds]
Spami_ has quit [Read error: Connection reset by peer]
speaking1ode has joined #ruby
incomprehensibly has quit [Ping timeout: 260 seconds]
electrical has joined #ruby
Spami has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
callenb__ has joined #ruby
Lewix has quit [Ping timeout: 256 seconds]
josephndenton has joined #ruby
ChoiKyuSang has joined #ruby
majjoha has joined #ruby
luminor has joined #ruby
<epitron> whoa.. wx is crazy.. 18,000 lines for bindings??
kireevco1 has quit [Quit: Leaving.]
<shevy> THIS IS THE MOTHER OF ALL BINDINGS MAN
ionelmc has quit [Ping timeout: 260 seconds]
<epitron> DUN DUN DNNN
michael_mbp has quit [Excess Flood]
incomprehensibly has joined #ruby
callenb__ has quit [Ping timeout: 260 seconds]
<Hanmac> epitron: and its still not finish ;P
callenb__ has joined #ruby
<epitron> dear lord
majjoha has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
<shevy> not finnish?
luminor has quit []
<Hanmac> epitron: old wxRuby has 71.000+ lines of code: https://www.openhub.net/p/wxruby/analyses/latest/languages_summary
nonnatus has quit [Ping timeout: 240 seconds]
<Hanmac> huch, no 71.000 lines total, only ~40.000 lines of code
<shevy> who stole the 31k
<shevy> was it you epitron
abuzze has joined #ruby
<Hanmac> ;PP
gaganjyot has joined #ruby
klaut has joined #ruby
thesheff17 has quit [Ping timeout: 265 seconds]
dseitz has quit [Quit: night]
ionelmc has joined #ruby
thesheff17 has joined #ruby
* epitron crams all the whitespace under his bed
<epitron> i didn't take nuthin
abuzze has quit [Ping timeout: 265 seconds]
<epitron> do you guys have any idea why it takes 40,000 lines of bindings to connect to a GUI library?
<epitron> i guess you would, hanmac!
govg has joined #ruby
tlarevo_ has joined #ruby
electrical has quit [Ping timeout: 265 seconds]
tlarevo_ has quit [Remote host closed the connection]
farkdiber has quit [Quit: Leaving...]
melik has joined #ruby
<Hanmac> epitron: because wx is big and has many different widgets? also notice that he code lines are already reduced ... if i would explode all macros, it would be more than 3x-6x times that much lines
<epitron> so there's no patterns to the wx widgets?
electrical has joined #ruby
<Hanmac> epitron: hm what do you mean with "pattern" in that context?
tlarevo has quit [Ping timeout: 250 seconds]
thesheff17 has quit [Ping timeout: 265 seconds]
<shevy> epitron Hanmac likes to write lines in C++
<shevy> C++ is like XML in this context
<shevy> the more you write
<shevy> the better
melik has quit [Client Quit]
<epitron> dear sweet jesus.. ruby-gtk(2,3) are each 69,000 lines
<epitron> and ruby-gnome2... 115,000!
<shevy> YAY!
<epitron> i had no idea these things were so complex
thesheff17 has joined #ruby
<epitron> i thought the mapping was simpler
Spami has quit [Quit: This computer has gone to sleep]
<epitron> just gtk2 is 38kloc
<Hanmac> epitron: part of my code in the binding is about to prevent ruby from crashing ... like if you store a widget in a variable, then destroy the widget, and then call a function it does not cause a segfault
<epitron> ouch
<Hanmac> old wxRuby doesnt have a protection like that
amclain has quit [Quit: Leaving]
<epitron> lol.. pygtk is 2,000 lines of C, 10,000 lines of python, and 180,000 lines of XML!!!!
Morkel has quit [Quit: Morkel]
TeresaP has quit [Ping timeout: 246 seconds]
<epitron> does FFI tackle those weird problems, like ruby objects holding onto freed pointers?
jdj_dk has joined #ruby
drawingthesun has quit [Ping timeout: 256 seconds]
<shevy> wtf
<shevy> 180.000 lines of XML
<shevy> who comes up with such madness
<shevy> why has the world gone crazy
sinequanon has quit []
luminor has joined #ruby
vyorkin has joined #ruby
<Hanmac> epitron: i did a connection between the C++ object and the ruby object ... which cause that the ruby object is forced to stay alive and does not get freed from the GC as long as the c++ object lives ... thats what could cause a crash in wxRuby
<epitron> mmm... okay...
<epitron> so can FFI tell you if a C++ object still lives? :)
<epitron> or, i guess, can it tell the GC? :)
<Hanmac> hm i dont think so that it can be done that nicely ...
vyorkin has quit [Ping timeout: 265 seconds]
<Hanmac> epitron: i also added some nice auto "convert" stuff ... like WX::Color.new(255,0,0) == "red" #=> true
<epitron> that's handy!
nfk has joined #ruby
lemur has joined #ruby
Guest12958 is now known as _chs_
<shevy> I guess I can not do this:
<shevy> method 'some content' { kick_cat: true }
<shevy> right?
<shevy> I need ()
<shevy> if that is the case then that sux :(
<shevy> do/end is 3 chars longer
psy_ has quit [Remote host closed the connection]
melik has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
<shevy> oh I have a weird question coming up soon
blueOxigen has joined #ruby
psy_ has joined #ruby
<shevy> is there a way to modify the block of a method before calling yield?
Joufflu_ has joined #ruby
<Hanmac> shevy hm in which way do you want to modify a block?
<shevy> for instance if it is a Hash
<shevy> I may want to add new keys or remove some existing keys as the method proceeds
swatts has quit [Quit: Leaving...]
<shevy> it's no big deal because I can copy it at the start of the method anyway
<shevy> but it feels like a poor man's solution if there is no other way
hmsimha has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
boombadaroomba has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
Joufflu has quit [Ping timeout: 265 seconds]
francisfish has joined #ruby
arup_r has quit [Client Quit]
arup_r has joined #ruby
fandi has joined #ruby
boombadaroomba has quit [Ping timeout: 265 seconds]
majjoha has joined #ruby
fandi has quit [Max SendQ exceeded]
francisfish has quit [Ping timeout: 264 seconds]
fandi has joined #ruby
sevenseacat has quit [Ping timeout: 244 seconds]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
omosoj has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 258 seconds]
sevenseacat has joined #ruby
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
melik has quit [Read error: Connection reset by peer]
melik has joined #ruby
SouL has joined #ruby
fandi has quit [Max SendQ exceeded]
jottr has joined #ruby
fandi has joined #ruby
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
rshetty_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 244 seconds]
fandi has quit [Max SendQ exceeded]
Nathandim has joined #ruby
fandi has joined #ruby
jdj_dk has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
<shevy> read permission is 4?
hamakn has joined #ruby
ptrrr has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
hmsimha has joined #ruby
mtakkman has quit [Remote host closed the connection]
ferr has joined #ruby
govg has quit [Quit: leaving]
tokik has quit [Ping timeout: 244 seconds]
melik has quit [Quit: (null)]
mtakkman has joined #ruby
lkba has joined #ruby
fandi has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
vyorkin has joined #ruby
rshetty has quit [Remote host closed the connection]
mburns has quit [Excess Flood]
mburns has joined #ruby
vyorkin has quit [Ping timeout: 244 seconds]
Nathandim has quit [Quit: Leaving]
arup_r has quit [Quit: Leaving.]
francisfish has joined #ruby
rylev has joined #ruby
arup_r has joined #ruby
rohit has joined #ruby
moritzs has joined #ruby
anaeem1 has joined #ruby
rippa has joined #ruby
vyorkin has joined #ruby
rylev has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
mib_mib has joined #ruby
spider-mario has joined #ruby
spider-mario has quit [Remote host closed the connection]
spider-mario has joined #ruby
apeiros has joined #ruby
patrick99e99 has joined #ruby
rpag has joined #ruby
govg has joined #ruby
mib_mib has quit [Ping timeout: 250 seconds]
Mon_Ouie has joined #ruby
wildharvest has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
josephndenton has joined #ruby
melik has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
panini has joined #ruby
AFKGeek has joined #ruby
rylev has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
nonnatus has joined #ruby
luminor has quit []
despai has joined #ruby
francisfish has quit [Remote host closed the connection]
andrewlio has joined #ruby
klaut has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Spami has joined #ruby
yfeldblu_ has joined #ruby
luminor has joined #ruby
abuzze has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
fgo has joined #ruby
ta has quit [Ping timeout: 256 seconds]
fgo has quit [Client Quit]
elaptics`away is now known as elaptics
fgo has joined #ruby
arup_r has quit [Quit: Leaving.]
arup_r has joined #ruby
sn0wb1rd has joined #ruby
arup_r has quit [Client Quit]
arup_r has joined #ruby
luminor has quit []
spyderman4g63 has joined #ruby
tvw has joined #ruby
AFKGeek has quit [Quit: Bye]
ta has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
poweratom_ has quit [Quit: Be back later ...]
rbrs has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
decoponio has joined #ruby
cirn0 has joined #ruby
<cirn0> hi
Wolland has joined #ruby
abuzze has quit [Ping timeout: 250 seconds]
wildharvest has quit []
SethDusek5 has joined #ruby
bMalum has joined #ruby
<pontiki> hola
<epitron> shevy: also, the contents of your block aren't a valid expression
<epitron> or you're missing a comma
<shevy> a commie?
<epitron> we're missing a commie?!
<epitron> why didn't anyone tell me?
* epitron runs out of the room
francisfish has joined #ruby
* SethDusek5 runs after epitron
mib_mib has joined #ruby
<shevy> epitron where would you put the comma?
alvaro_o has joined #ruby
omosoj has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
timonv_ has joined #ruby
mib_mib has quit [Ping timeout: 250 seconds]
takle has joined #ruby
<pontiki> i <3 raisins
<SethDusek5> rmagick finally installed
<SethDusek5> :D
<SethDusek5> after days of bashing my head in
<SethDusek5> c;
timonv_ has quit [Remote host closed the connection]
<crome> I so agree with that one
shevy has quit [Ping timeout: 250 seconds]
az7ar_away is now known as az7ar
lkba has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<SethDusek5> guys
<epitron> shevy: method 'some content', { kick_cat: true }
<SethDusek5> rake db:migrate is giving this error
<SethDusek5> Nameerror: uninitialized constant redmine::application
<SethDusek5> halp me
<epitron> capitalization
graydot has joined #ruby
<SethDusek5> what you mean
rohit has quit [Quit: Leaving]
<epitron> wait, did you type that error message?
<SethDusek5> yash
<epitron> oic
<SethDusek5> help
<epitron> sleepy
<epitron> nite
<SethDusek5> help me first
<SethDusek5> :(
<rpag> try #rubyonrails
tkuchiki has joined #ruby
anaeem___ has joined #ruby
Cache_Money has joined #ruby
shevy has joined #ruby
anaeem1 has quit [Ping timeout: 256 seconds]
cantonic has joined #ruby
graydot has quit [Quit: graydot]
ptrrr has quit [Quit: ptrrr]
Maxdamantus has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ptrrr has joined #ruby
tkuchiki has joined #ruby
mtakkman has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
cantonic has quit [Ping timeout: 260 seconds]
dkb20k_ has joined #ruby
desp has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
Cache_Money has quit [Quit: Cache_Money]
dkb20k has quit [Ping timeout: 258 seconds]
max96at|off is now known as max96at
desp has quit [Client Quit]
tkuchiki has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
SethDusek5 has left #ruby [#ruby]
takle has quit [Remote host closed the connection]
jdj_dk has joined #ruby
jwang__ has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 265 seconds]
govg has quit [Quit: leaving]
timonv_ has quit [Ping timeout: 256 seconds]
shiru has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
pasties has quit [Ping timeout: 265 seconds]
ForeverRekt has joined #ruby
shiru has quit [Remote host closed the connection]
<mostlybadfly> Haaaaaaay
robbyoconnor has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
Alina-malina has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
warlock has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
pasties has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
warlock is now known as warlock_handler
josephndenton has joined #ruby
jwang__ has joined #ruby
jdj_dk has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<ForeverRekt> i recently got around learning the basics of ruby
elaptics is now known as elaptics`away
<ForeverRekt> but i still cant figure out what to use when solving problems... are there any good books that atleast give you an idea on how to do things
D9 has quit [Quit: Leaving]
zwer has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 272 seconds]
zwer has joined #ruby
<shevy> ForeverRekt one thing that works very well is to stay as simple as possible
rpag has quit [Quit: Leaving]
<shevy> ForeverRekt also try to write code that can be modularized, in other words - use many small methods
gccostabr has quit [Quit: ZZZzzz…]
kaspertidemann has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
<shevy> ForeverRekt it is difficult to detail how to proceed in order to solve common problems - it is much easier if you have specific problems and need to solve them; and then describe precisely what you need to do
<ForeverRekt> right
mib_mib has joined #ruby
mib_mib has quit [Ping timeout: 250 seconds]
takle has joined #ruby
desp has joined #ruby
desp has quit [Client Quit]
desp has joined #ruby
Wolland has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
Wolland has joined #ruby
jdj_dk has joined #ruby
jzinedine has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
iwishiwerearobot has quit [Ping timeout: 260 seconds]
jleishman has joined #ruby
melik has quit [Quit: (null)]
anaeem___ has quit [Remote host closed the connection]
leitz has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
moritzs has quit [Remote host closed the connection]
Dude007 has joined #ruby
mtakkman has joined #ruby
anaeem1_ has joined #ruby
m8 has joined #ruby
mib_mib has joined #ruby
cirn0 has quit [Remote host closed the connection]
jleishman has quit [Quit: Be back later ...]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
mib_mib has quit [Ping timeout: 250 seconds]
<warlock_handler> exit
spyderman4g63 has joined #ruby
warlock_handler has quit [Quit: Leaving]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
jzinedine has quit [Ping timeout: 255 seconds]
<pontiki> ForeverRekt: i recoomend this one by Spraul: https://www.goodreads.com/book/show/13590009-think-like-a-programmer
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<pontiki> Pine's "Learn to Program" is also good: https://www.goodreads.com/book/show/520.Learn_to_Program
spyderman4g63 has joined #ruby
az7ar is now known as az7ar_away
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<Hanmac> apeiros: spyderman4g63 is having "Remote host closed the connection" problems
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
Scotteh has joined #ruby
spyderman4g63 has joined #ruby
yfeldblu_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
hamakn has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
ctp has joined #ruby
spyderman4g63 has joined #ruby
clauswitt has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
minecoins has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
clauswitt has quit [Max SendQ exceeded]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
ndrei has joined #ruby
ForeverRekt has quit [Remote host closed the connection]
clauswitt has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
mikepack has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
jdj_dk has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Jackneill has joined #ruby
minecoins has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Remote host closed the connection]
ForeverRekt has joined #ruby
<ForeverRekt> thanks alot
spyderman4g63 has joined #ruby
Xeago has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
rodfersou has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Xeago_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
kirun has joined #ruby
spyderman4g63 has joined #ruby
lkba has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
gaganjyot has quit [Ping timeout: 255 seconds]
spyderman4g63 has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Remote host closed the connection]
clauswitt has joined #ruby
spyderman4g63 has joined #ruby
rkalfane has joined #ruby
mtakkman has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
spyderman4g63 has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 240 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
desp has quit [Quit: This computer has gone to sleep]
desp has joined #ruby
desp is now known as despai
Scotteh_ has joined #ruby
Scotteh has quit [Ping timeout: 255 seconds]
startupality has joined #ruby
olivier_bK has joined #ruby
timonv_ has joined #ruby
takle has quit [Remote host closed the connection]
BlackGear has joined #ruby
quimrstorres has joined #ruby
blueOxigen has quit [Ping timeout: 244 seconds]
rylev has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
Joufflu_ has quit [Ping timeout: 265 seconds]
Soda has joined #ruby
anu has joined #ruby
anu is now known as Guest53633
fgo has joined #ruby
quimrstorres has quit [Client Quit]
danijoo_ has joined #ruby
gaganjyot has joined #ruby
<leitz> Can a class have a method and an attribute with the same name?
boombadaroomba has quit [Ping timeout: 244 seconds]
<leitz> So far my program is working, but I'm not sure it's doing what I think it is.
<jhass> leitz: an "attribute" is a method that returns the instance variable of the same name
<jhass> att_reader :foo is merely a shortcut to writing def foo; @foo; end;
danijoo has quit [Ping timeout: 250 seconds]
<jhass> attr_writer :foo is merely a shortcut to writing def foo=(v); @foo = v; end;
fgo has quit [Ping timeout: 264 seconds]
<jhass> attr_accessor :foo is merely a shortcut to writing attr_reader :foo; attr_writer :foo;
<leitz> jhass, thanks. I'm a bit slow on this.
kireevco has joined #ruby
<leitz> I only need to actually write the def blocks if the method is more complex than "@foo = v",.
luk3thomas has joined #ruby
<jhass> yeah
dkb20k_ is now known as dkb20k
ndrei has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
ForeverRekt has quit []
timonv_ has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 258 seconds]
kireevco has quit [Ping timeout: 265 seconds]
gaganjyot has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 264 seconds]
neoxquick has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Guest53633 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has quit [Remote host closed the connection]
cantonic has joined #ruby
kaspertidemann has quit []
mib_mib has joined #ruby
rbrs has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
dumdedum has joined #ruby
mtakkman has joined #ruby
<shevy> leitz the attr* are just so that we can be lazy
luk3thomas has quit [Quit: luk3thomas]
cantonic has quit [Ping timeout: 256 seconds]
<zenspider> there is/was also performance optimizations for using them instead of rolling your own
mib_mib has quit [Ping timeout: 258 seconds]
Soda has quit [Remote host closed the connection]
<zenspider> leitz: the catch is that while @var -> var, @var = 42 -> self.var = 42
<zenspider> otherwise, you're assigning to a local variable, not calling the setter
alexherbo2 has joined #ruby
marr has joined #ruby
luk3thomas has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
fgo has joined #ruby
VanillaGoat_ has joined #ruby
Xeago has joined #ruby
<leitz> zenspider, the coffee must not have kicked in yet. I'm not understanding.
Xeago_ has joined #ruby
<leitz> If I use @var, that's using the local var (self.var?) but if I use var then it's using the getter/setter?
<leitz> I hit that a few minutes ago. Didn't understand why removing the @ fixed it.
yfeldblum has quit [Ping timeout: 245 seconds]
<apeiros> leitz: @var is not a local variable
<apeiros> @var is always an instance variable
<apeiros> var without @ can be either a method call (self.var()), or a local variable
<apeiros> but `var = …` is never a method call (it's never `self.var=(…)`), it is always assigning to the local variable `var`
VanillaGoat__ has quit [Ping timeout: 255 seconds]
panini has quit [Quit: Leaving]
josephndenton has joined #ruby
dumdedum has quit [Ping timeout: 244 seconds]
Xeago has quit [Ping timeout: 245 seconds]
<apeiros> re: "var is either local variable or method call" - local variable takes precedence. so if there's both a local variable `var` and a method `var`, writing `var` is always local variable. if you want to call the method instead, you must be explicit. either by using `self.var` or `var()`
fgo has quit [Ping timeout: 265 seconds]
poweratom_ has joined #ruby
<leitz> ewww...it may be more broken than I thought. https://github.com/LeamHall/CT_Character_Generator/blob/master/lib/character.rb
josephndenton has quit [Ping timeout: 255 seconds]
<leitz> Lines 5, 33-41, and 43-55.
moritzs has joined #ruby
renderful has joined #ruby
<leitz> The issue is "upp" is a string attribute and a method
Soda has joined #ruby
<leitz> The string upp is derived (lines 33-41) and called (43-55)
aspiers has quit [Ping timeout: 265 seconds]
Abhijit has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 256 seconds]
poweratom_ has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
MrDoctor has joined #ruby
<shevy> why do we not have a Bool-ean class?
<shevy> we have FalseClass and TrueClass
<apeiros> leitz: there is no "attribute and method"
<apeiros> attributes *are* methods
<apeiros> so if you use attr_* to define an `upp` method, and later define an `upp` method, same rules apply as to all other methods - last definition of the method wins.
mtakkman has quit [Read error: Connection reset by peer]
rylev has joined #ruby
iwishiwerearobot has joined #ruby
mtakkman has joined #ruby
krz has joined #ruby
patrick99e99 has joined #ruby
<leitz> Well, aperios, removing upp from the attr_accessor and initialize lets the tests run.
<apeiros> my name isn't aperios.
<shevy> lol
<shevy> it happens so often
<shevy> leitz learn to spell the name of apieros properly man
<apeiros> yes. I want script plugins back. to can this answer.
<apeiros> shevy: *aperiros
<shevy> hehe
<jhass> let's just call him ape
<apeiros> jhass: that's bannable offense :-p
<shevy> bananable offense?
<jhass> mmmh, bananas
iwishiwerearobot has quit [Ping timeout: 260 seconds]
<leitz> Quit monkeying around and code...
spastorino has joined #ruby
<apeiros> no
<shevy> leitz aside from zenspider pointing out that the attr* methods should be faster than manually using def, attr_accessor :foo is just a combined attr_writer :foo and attr_reader :foo; and the two are the same as if you would manually write: def foo; @foo; end; and def foo(i); @foo = i; end
<shevy> leitz in your example you define them twice
<apeiros> leitz: no idea what you're testing, but all removing upp from the attr_accessor list does is remove upp= method
<shevy> once as attr_accessor :upp, and then also as: def upp
<apeiros> leitz: so if your test runs after that change, you have weird tests…
<apeiros> or you did more than just that change.
patrick99e99 has quit [Ping timeout: 265 seconds]
IrishGringo has joined #ruby
<leitz> Trying to learn Ruby and RSpec.
<leitz> Most of the good bits from from others who have provided advice.
clauswitt has quit [Max SendQ exceeded]
<leitz> I'm still in the "monkey see, monkey do" level.
clauswitt has joined #ruby
<leitz> upp is derived, not set.
<apeiros> leitz: not sure whether you're complaining. I tell you how things work. you can accept it or ignore it.
psyprus has quit [Ping timeout: 258 seconds]
<leitz> apeiros, not complaining. Trying to understand and being clear that I'm not great at this yet. The ideas are still sinking in.
gaganjyot has joined #ruby
<zenspider> this that traveller thing?
Pupeno has joined #ruby
<leitz> zenspider, yes.
bmurt has joined #ruby
<leitz> Old game but lends itself well to programming.
gaganjyot has quit [Read error: Connection reset by peer]
<zenspider> *nod*
nateberkopec has joined #ruby
psyprus has joined #ruby
g_ has joined #ruby
<zenspider> apeiros: I still have no idea how to pronounce your name, let alone spell it. that's what tab completion is for
g_ is now known as Guest86808
<apeiros> zenspider: correct! :D
<apeiros> afaik there's two ways to pronounce it. ancient greek 'ah pay ross', and contemporary greek 'ah pee ros'
<apeiros> I learned of the latter only relatively recently
Xeago_ has quit [Remote host closed the connection]
<zenspider> hard or soft o ?
<apeiros> hm, can you give examples of hard/soft o?
<leitz> No.
<zenspider> haha
majjoha has joined #ruby
<zenspider> no = hard
<zenspider> soft = soft
<apeiros> ancient hard, contemporary soft, I'd say
<leitz> Yeha, I think the omega was hard.
<leitz> Isn't -os a standard ending for something?
<apeiros> btw., for that interception course thing, I derived an equation which returns the optimal course for the extrapolated course of the target
<apeiros> leitz: male
<apeiros> I derived it from apeiron + male suffix
<apeiros> -on is neutrum
<zenspider> ok. fuck. I need sleep.
* apeiros throws pillow @ zenspider
<leitz> And a- is without, like now apillowos; "a male without a pillow"
Pupeno_ has joined #ruby
majjoha has quit [Ping timeout: 255 seconds]
luk3thomas has quit [Quit: luk3thomas]
Pupeno has quit [Ping timeout: 265 seconds]
<apeiros> a- can be negation
luk3thomas has joined #ruby
<godd2> "no peiros for you!" - apeiros
mib_mib has joined #ruby
<zenspider> piers are sorta phallic...
luk3thomas has quit [Client Quit]
Photism has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
Axy has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<leitz> zenspider, where did I mention "that traveller thing" that you saw?
<zenspider> mailing list
Pupeno_ has quit [Ping timeout: 264 seconds]
mib_mib has quit [Ping timeout: 258 seconds]
amundj has joined #ruby
<leitz> zenspider, that's what I thought. Was there enough of a description for the question to make sense?
<leitz> I understood what was in my head but wasn't sure it came out clearly.
bodgix_wrk has joined #ruby
takle has joined #ruby
<zenspider> I only glanced over it and chuckled at the mention of traveller
<leitz> Ah. Played?
<zenspider> food for thought as I drift off to bed: why is roll2 implemented as 2 + rand(6) + rand(6) ?
<zenspider> you've implemented roll1 as 1 + rand(6)
timonv_ has quit [Remote host closed the connection]
<zenspider> couldn't roll2 simply be roll1 + roll1 ?
nateberkopec has quit [Quit: Leaving...]
fgo has joined #ruby
Axy has joined #ruby
ndrei has joined #ruby
<leitz> Organic growth, i think.. And newbie coder.
takle has quit [Ping timeout: 240 seconds]
<leitz> Enjoy sleep, I'm just getting going.
ybit3 has quit [Ping timeout: 260 seconds]
Axy has left #ruby [#ruby]
luminor has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
rylev has quit [Remote host closed the connection]
claymore has joined #ruby
rylev has joined #ruby
fgo has quit [Ping timeout: 258 seconds]
bodgix_wrk has quit [Quit: Leaving.]
arup_r has quit [Quit: Leaving.]
rylev has quit [Remote host closed the connection]
bodgix_wrk has joined #ruby
spyderman4g63 has joined #ruby
viet_power has quit [Ping timeout: 264 seconds]
ybit3 has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
Guest86808 has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
eindoofus has joined #ruby
siwica has joined #ruby
bodgix_wrk has quit [Quit: Leaving.]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> leitz a simple way for optimization is to avoid repetition whenever possible, and to simplify whenever possible
<eindoofus> in the python world many are still using 2.7 while others are using the 3.x version. With learning
<shevy> eindoofus that must suck
<shevy> if I were guido I would eliminate python2
<eindoofus> Ruby is there any benefit to learning 1.9.3 first or should i get a book on the newest version?
<shevy> can you use the latest version?
bodgix_wrk has joined #ruby
<shevy> wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.bz2
bodgix_wrk has left #ruby [#ruby]
lxsameer has quit [Ping timeout: 265 seconds]
<jhass> eindoofus: 2.0 and 2.1 are basically 1.9.3 with more stuff in
User458764 has quit [Ping timeout: 244 seconds]
<Mon_Ouie> Python 3 and Python 2 are very incompatibly, that's not the case with Ruby 1.9 and Ruby 2.x
sandelius has joined #ruby
<Mon_Ouie> (it's more like the difference between Ruby 1.8 and Ruby 1.9)
<jhass> eindoofus: if you ever need to go back to 1.9.3 you just write it in 2.1 and try if it still works in 1.9, in many cases it will
rodfersou has quit [Remote host closed the connection]
<eindoofus> cool. so i'm not loosing anything by reading a 1.9.3 and then later looking at 2.x]
<shevy> there are things available only in like 2.1.4 and not in 1.9.3
<eindoofus> is there anything taken away or altered?
<eindoofus> or is it just new stuff?
<godd2> shevy except for curses. that's available in 1.9.3 and NOT available in 2.1.4
<jhass> eindoofus: a few things are altered, although in subtle ways you'll rarely notice as a beginner
<godd2> but that's stdlib, not core, so you really have nothing to worry about eindoofus
vyorkin has joined #ruby
<leitz> Guido can't eleminate 2.x without eliminating Python. Too much actual work gets done with 2.x. Probably more than with 3.x
<eindoofus> good to hear. thanks
<leitz> eindoofus, I'm on 1.8, so don't feel bad. :)
<jhass> leitz: you shouldn't be
<jhass> it's EOL
az7ar_away is now known as az7ar
JohnBat26 has joined #ruby
<leitz> jhass, the RH servers I support have 1.8 installed. So RH owns the patching.
anaeem1_ has joined #ruby
<jhass> still, you shouldn't learn ruby now on 1.8
<jhass> because the changes between 1.8 and 1.9 are indeed quite big
luminor has quit []
<leitz> Is 1.8 code runable under 1.9?
<godd2> mostly
<jhass> the most basic one is
<jhass> but you quickly run into incompatibilities
ndrei has quit [Ping timeout: 244 seconds]
claymore has quit [Quit: Leaving]
ale4L3 has joined #ruby
fgo has joined #ruby
<shevy> godd2 good point
az7ar is now known as az7ar_away
robustus is now known as robustus|Off
<godd2> shevy lol it's the ONE thing I know that was removed :P
agrinb has joined #ruby
<shevy> leitz yes, code on 1.8 works perfectly well lateron. I know myself because I have used both 1.8 and 1.9 for years side by side without a problem
<shevy> godd2 yeah I remember it now too after you have mentioned it
jheg has joined #ruby
<shevy> leitz have you tried to use more than one ruby versions yet?
rpag has joined #ruby
<godd2> leitz versions are more apropos to features of gems and dependencies, not as much core ruby itself. But since a ton of what ruby is are those gems and features, you'd do well to be more up to date, especially at least to 1.9.3
<rpag> 1.9.3 is the new 1.8.7
timonv_ has quit [Remote host closed the connection]
Rahul_Roy_ has joined #ruby
<godd2> yea and I'm startin to feel the hurt. Can't use the gosu gem on windows with 2.0+ and cant use the hasu gem with <2.0. blegh
freerobby has joined #ruby
ale4L3 has quit [Quit: Leaving]
govg has joined #ruby
godd2 has quit [Remote host closed the connection]
codecop has joined #ruby
<rpag> :-(
<atmosx> hello
<rpag> yo
haroldwu has quit [Ping timeout: 245 seconds]
<leitz> Understood. We're using a Ruby based product, Puppet.
haroldwu has joined #ruby
<leitz> The OS has Ruby 1.8.5 or 1.8.7, depending on the OS version. Puppet seems to package 1.9.3, I think.
<atmosx> I need to pass a string which is incredibly long through an http post request, but I can't it's above 1024 which apparently it's some sort of hard-limit. What's the best way to deal with this? I wonder if it's somehow possible to store it in RAM and retrieve it later? (without Redis or anything)
<jhass> HTTP post requests with a body of > 1024 shouldn't be a problem at all
<leitz> So I use my installed 1.8 to learn. I'm really at the basic level still.
badhatter has joined #ruby
agrinb has quit [Remote host closed the connection]
yfeldblum has joined #ruby
takle has joined #ruby
<atmosx> jhass: really? I'm using sinatra, and comes up with an error.
<jhass> aha
<atmosx> k
<rpag> what's the error?
g_ has joined #ruby
g_ is now known as Guest12291
ctp has joined #ruby
<jhass> he has been here often enough, he obviously doesn't want to provide a proper problem description
yfeldblum has quit [Ping timeout: 264 seconds]
danijoo has joined #ruby
davedev24_ has joined #ruby
<rpag> ah, ok
majjoha has joined #ruby
jonr22 has joined #ruby
Guest12291 has quit [Ping timeout: 264 seconds]
danijoo_ has quit [Ping timeout: 250 seconds]
jheg has quit [Quit: jheg]
r0bby_ has joined #ruby
majjoha has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 265 seconds]
mib_mib has joined #ruby
cantonic has joined #ruby
<banister> rpag sup rob
r0bby_ has quit [Read error: Connection reset by peer]
Hightower666 has joined #ruby
r0bby_ has joined #ruby
Wolland has joined #ruby
<atmosx> jhass: "often enough" is kinda poor english, better use "long enough".
<atmosx> BTW the error is: HTTP element REQUEST_PATH is longer than the 1024 allowed length.
fgo has quit [Ping timeout: 264 seconds]
<jhass> that looks like you submit your long string as query parameters
<rpag> you're not posting the string in the body then, but as part of the URL
<atmosx> URLs over 2,000 characters will not work in the most popular web browsers <-- hm
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<atmosx> so that's that.
<rpag> the url isn't apart of the request body
<atmosx> rpag: I know
<rpag> the request body comes after HTTP headers
mib_mib has quit [Ping timeout: 258 seconds]
robbyoconnor has joined #ruby
cantonic has quit [Ping timeout: 258 seconds]
<rpag> i would refactor the code to use the body of a request then, if you need to send a large string
Wolland has quit [Ping timeout: 258 seconds]
apeiros has quit [Remote host closed the connection]
jonr2219 has joined #ruby
apeiros has joined #ruby
<atmosx> rpag: yeap, I'm looking into that right now.
r0bby_ has quit [Ping timeout: 256 seconds]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
ale4L3 has joined #ruby
eindoofus has quit [Quit: This computer has gone to sleep]
ale4L3 has quit [Read error: Connection reset by peer]
ale4L3 has joined #ruby
jonr22 has quit [Ping timeout: 260 seconds]
lolmaus has joined #ruby
apeiros has quit [Ping timeout: 244 seconds]
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
Psy-Q has joined #ruby
eindoofus_ has joined #ruby
<Psy-Q> is rubocop really serious with that 10 lines per method default limit? isn't that quite tight?
<jhass> many people disagree with rubocops default, but I'd say 10 lines per method is one of the better suggestions
<rpag> i think 10 lines is reasonable
ale4L3 has quit [Quit: Leaving]
IrishGringo has quit [Ping timeout: 260 seconds]
ale4L3 has joined #ruby
bmurt has quit []
bmurt has joined #ruby
cpruitt has joined #ruby
<banister> some ppl say 5 lines per method but that's a lil cray
<banister> and 100 lines max per class
ale4L3 has quit [Client Quit]
<banister> what do u think rpag
<rpag> yeah i think 5 lines is too little
ndrei has joined #ruby
<jhass> anyway, I think other properties like SRP and keeping same level of abstration are more important
bmurt has quit [Client Quit]
<Psy-Q> if you a slightly complex method, even just traversing a nested array, you're quickly at 15+ lines, no?
<jhass> no
<Psy-Q> so you split even at that level?
<jhass> if traversing a nested array takes you 15 lines you're not too good at ruby ;)
rylev has joined #ruby
Dude007_ has joined #ruby
<banister> jhass good advice, diaspora-boy
<banister> ;
<banister> )
<jhass> if the operation you do on the items takes you 10 lines, it's a good sign it wants to be its own method
Dude007 has quit [Read error: Connection reset by peer]
<jhass> banister: you know, I'm more the janitor slowly cleaning up the mess ;)
IrishGringo has joined #ruby
<rpag> i thought diaspora died and went to hell
<Psy-Q> i'll think about how i can do that
bmurt has joined #ruby
<jhass> rpag: nope
<jhass> we actually experience quite some user growth in the recent weeks
rdark has joined #ruby
<atmosx> thanks jhass rpag ... it works.
<Psy-Q> i'm building a very ugly parser/crawler for vinyl record stores. their html is often crappy and i have to traverse all manner of brokenness
<Psy-Q> that's where my 10+ lines per method come from
<atmosx> Psy-Q: so do vinyl record stores exist?!
<Psy-Q> as in, guessing which table cell might be the price (because sometimes it's here, sometimes it's there...)
<Psy-Q> atmosx: hell, yeah :D
<atmosx> Psy-Q: Is it true that their sound (vinyl vs digital) is still clearer?
<Psy-Q> it's fun to have a big ole physical copy of music with nice big artwork
<banister> rpag jhass is the only committer left on diaspora
<atmosx> my father has some collections, I might remove them from dust put them into some wall who knows.
<jhass> banister: told you it's wrong already
<Psy-Q> atmosx: i wouldn't know about that -- with my setup, FLAC and vinyl sound about the same. but i think the difference is in the mixing (many CDs are mixed with a lot of compression (the audio kind, not file size) so they sound loud on shitty speakers)
<rpag> banister, maybe you should send some senior engineers from GA to help him out
<Psy-Q> with vinyl, you can't put that much compression on, there are all sorts of physical constraints, so sometimes you get a much better mastering of the record
<atmosx> Psy-Q: I see
<rpag> banister, sorry couldn't resist :P
<atmosx> Psy-Q: Nice nice
<Psy-Q> but it turns philosophical and esoterical quickly with audio, especially with vinyl. so in the end it's probably up to people's taste
<banister> rpag lol
<atmosx> banister: where is GA?
rylev has quit [Ping timeout: 250 seconds]
<banister> atmosx all around u
<Psy-Q> i buy it for the huge-ass records and sleeves and artwork and the physicality of it all. and limited editions in many colors and effects :D
<rpag> i feel it in my fingers, i feel it in the air
<Psy-Q> </off-topic> then i'll go and please rubocop some more
<atmosx> rpag: that cover was so awesome
<rpag> phil collins? yeah
<atmosx> rpag: nah
<atmosx> that was lame
klaut has joined #ruby
<rpag> :(
<atmosx> the guy who was feeling it in his toes was way better
<rpag> wet wet wet
<atmosx> "Love is all around me" by wet wet wet
<atmosx> yeap
<rpag> weird band name
<atmosx> but the cover, from Love ACtually
<atmosx> rpag: why? They're from the UK. Shitty weather, shitty food, seas that you woudl not wanna step in either dead. UK...
eindoofus_ has quit [Quit: This computer has gone to sleep]
agjacome has joined #ruby
<rpag> if i had a band i'd call them sellafield
devdazed has joined #ruby
majjoha has joined #ruby
arrubin has quit [Ping timeout: 272 seconds]
LudicrousMango has joined #ruby
dziga has quit [Ping timeout: 272 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus|Off is now known as robustus
eindoofus_ has joined #ruby
tiagonobre_ has quit [Ping timeout: 272 seconds]
arrubin has joined #ruby
dziga has joined #ruby
<leitz> Okay jhass, I thought I had the attr stuff but I guess not. In the attr_accessor line I have ':name', and '@name' is in the initialize.
tiagonobre_ has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
patrick99e99 has joined #ruby
<leitz> But the test returns "undefined method 'name'"
<sevenseacat> code?
dc has quit [Remote host closed the connection]
Hightower666 has quit [Ping timeout: 256 seconds]
cpruitt has quit [Quit: cpruitt]
spastorino has quit [Ping timeout: 272 seconds]
skmp has quit [Ping timeout: 272 seconds]
mjc_ has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
vcoinminer______ has quit [Ping timeout: 272 seconds]
<jhass> leitz: sevenseacat is right, not much to say without code that reproduces your issue
skmp has joined #ruby
mjc_ has joined #ruby
spastorino has joined #ruby
vcoinminer______ has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
<leitz> sevenseacat: pushing up code and answering my wife's question about money. :)
yfeldblum has joined #ruby
agjacome has quit [Quit: leaving]
fgo has quit [Ping timeout: 245 seconds]
<Hanmac> leitz: character spec does not set the subject
robustus is now known as robustus|Off
<sevenseacat> indeed
<leitz> Commented out the test for blank name and the tests pass.
<jhass> leitz: https://github.com/LeamHall/CT_Character_Generator/blob/master/spec/lib/character_spec.rb#L28 this line is outside and it block and probably the reason it errors out there
<sevenseacat> you also cant just write a expectation (line 28) in the middle of nowhere
<jhass> *an it block
<leitz> So name is totally untestable if not set.
<jhass> leitz: fix the issue at #28 before even continue thinking about any causes
mtakkman has quit [Remote host closed the connection]
* leitz goes off to work on his spec.
yfeldblum has quit [Ping timeout: 260 seconds]
<Psy-Q> yeah, now i'm down to just the real proper tough robocop warnings
<Psy-Q> rubocop
<Psy-Q> flashback to the 80s there
IrishGringo has joined #ruby
Cort3z has joined #ruby
atmosx has quit [Remote host closed the connection]
atmosx has joined #ruby
beef-wellington has joined #ruby
ClarusCogitatio has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
<leitz> Okay, fixed the name test. The good news is that the RSpec book should arrive today. :)
ClarusCogitatio has joined #ruby
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
ferr has quit [Ping timeout: 244 seconds]
silkfox has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: zzz]
beef-wellington has quit [Ping timeout: 244 seconds]
soulcake has quit [Quit: Quack.]
elemenopy has joined #ruby
soulcake has joined #ruby
Kricir has joined #ruby
Nahra has joined #ruby
melik has joined #ruby
Cort3z has quit [Ping timeout: 250 seconds]
cantonic has joined #ruby
AlSquirrel has joined #ruby
Cort3z has joined #ruby
Kricir has quit [Remote host closed the connection]
mtakkman has joined #ruby
melik has quit [Ping timeout: 272 seconds]
cantonic has quit [Ping timeout: 265 seconds]
it0a has joined #ruby
spyderman4g63 has joined #ruby
KALEGEK has joined #ruby
elemenopy has quit [Remote host closed the connection]
centrx has joined #ruby
govg has quit [Quit: leaving]
mikeg has joined #ruby
Darryl_ has quit [Quit: Connection closed for inactivity]
spyderman4g63 has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
mdev has joined #ruby
IrishGringo has quit [Ping timeout: 264 seconds]
mib_mib has joined #ruby
elemenopy has joined #ruby
s00pcan has quit [Ping timeout: 264 seconds]
despai has quit [Quit: This computer has gone to sleep]
dh64 has joined #ruby
s00pcan has joined #ruby
klaut has quit [Remote host closed the connection]
havenwood has joined #ruby
ptrrr has quit [Quit: ptrrr]
desp has joined #ruby
n008f4g_ has joined #ruby
eindoofus_ has quit [Quit: This computer has gone to sleep]
diegoviola has joined #ruby
ferr has joined #ruby
clauswitt has quit [Read error: Connection reset by peer]
clauswitt has joined #ruby
mikeg has quit [Remote host closed the connection]
clauswitt has quit [Max SendQ exceeded]
clauswitt has joined #ruby
Wolland has joined #ruby
nobitanobi has joined #ruby
Dude007_ has quit [Remote host closed the connection]
clauswitt has quit [Max SendQ exceeded]
fgo has joined #ruby
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
clauswitt has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
Rapier- has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
fgo has quit [Ping timeout: 260 seconds]
dorei has joined #ruby
wex13r has joined #ruby
boombadaroomba has joined #ruby
rdark has quit [Quit: leaving]
mg^ has quit [Quit: Leaving]
g_ has joined #ruby
g_ is now known as Guest9155
IrishGringo has joined #ruby
mtakkman has quit [Remote host closed the connection]
<leitz> Okay, still getting the getters and setters. Here's a question. For most of the time the setter for increasing a skill will be to increment it by 1. Occasionally it will be set to 0 if it's not already set, and rarely it will be set to > 1.
sevenseacat has quit [Quit: Leaving.]
<leitz> Is it better to just have one setter that takes the increment value always or one that assumes 1 and one that takes a value.
<jhass> "rarely > 1" and "increment by 1" contradicts
boombadaroomba has quit [Ping timeout: 250 seconds]
<leitz> Does that make sense or has the coffee worn off.
timgauthier_away is now known as Timgauthier
it0a has quit [Quit: WeeChat 1.0.1]
it0a has joined #ruby
Timgauthier is now known as timgauthier_away
<leitz> jhass, almost always the logic is "If the skill is in the hash, raise its value by 1. If it is not in the hash, set it to 1"
<jhass> ignoring the contradiction there, I'd do def increase_skill(level=1) and def reset_skill
benzrf is now known as benzrf|offline
ndrei has joined #ruby
<leitz> Sometimes it will be set to 0 if it does not exist and sometimes incremented by more than 1.
<jhass> def skill=(value) should set the attribute directly, not increment by the passed value
BlackGear has joined #ruby
hamakn has joined #ruby
adriancb has joined #ruby
<leitz> so def increase_skill(value) would be best, I think, with a default value of 1. If the skill is already in the hash and has a value >1 then it is incremented by one. Otherwise it is set to 1.
Jackneill has quit [K-Lined]
Heartbroken has quit [K-Lined]
<jhass> try to choose specific names, value is not good there
<jhass> levels or even by_levels is much better
<leitz> jhass, will do. Thanks!
shtirlic has quit [K-Lined]
danoo has quit [K-Lined]
<jhass> leitz: also you might just want to initialize your hash with Hash.new(0)
<jhass> then you can unconditionally += 1
mib_mib has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
<leitz> jhass, some skills are effectively "less than 0".
shtirlic has joined #ruby
danoo has joined #ruby
<leitz> A "0" assumes you know enough not to blow things up too badly. If you have no skill you are usually at a minus.
hdrv has quit [Quit: ZNC - http://znc.in]
Nahra has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
<shevy> doesn't juggling with numbers make us all very happy :)
Jackneill has joined #ruby
benzrf|offline is now known as benzrf
<User458764> How do I test in a case statement the presence of a specific *options in options.key(:foo) ?
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Heartbroken has joined #ruby
{xenomorph} is now known as xenomorph
<User458764> I could reformulate my question how do I transform a if/else if like this one if options.key(:foo); ...; else if options.key(:bar); ...; end in a switch statement?
psyprus has quit [Ping timeout: 258 seconds]
<User458764> *case I would say
melik has joined #ruby
cantonic has joined #ruby
dkb20k has quit [Remote host closed the connection]
dc_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<jhass> User458764: you don't really
Cort3z has quit [Ping timeout: 264 seconds]
anaeem1 has joined #ruby
<jhass> one could imagine constructs like %i(foo bar).find {|key| options.has_key? key }
<jhass> though whether I'd do something like that depends on the actual case at hand
<User458764> jhass ok so if else if is a good solution thanks
melik has quit [Ping timeout: 260 seconds]
<jhass> if you're not satisfied with your code, feel free to share it and ask for opinions/improvements ;)
cantonic has quit [Ping timeout: 260 seconds]
<User458764> jhass thanks for the help :)
rylev has joined #ruby
vyorkin has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
cantonic has joined #ruby
elemenopy has quit [Remote host closed the connection]
Dude007 has joined #ruby
rylev has quit [Ping timeout: 255 seconds]
IrishGringo has quit [Ping timeout: 256 seconds]
hyperdrive has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
elemenopy has joined #ruby
omosoj has joined #ruby
ptrrr has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
MattB2 has joined #ruby
robustus|Off is now known as robustus
govg has joined #ruby
IrishGringo has joined #ruby
mib_mib has joined #ruby
amundj has joined #ruby
Nahra has quit [Ping timeout: 244 seconds]
naftilos76 has joined #ruby
<leitz> Tests run better when you remember to use () instead of []...
<benzrf> kek
Cort3z has joined #ruby
weemsledeux has joined #ruby
desp has quit [Quit: This computer has gone to sleep]
desp has joined #ruby
mib_mib has quit [Ping timeout: 256 seconds]
Darryl_ has joined #ruby
gaganjyot has joined #ruby
weemsledeux has quit [Client Quit]
<leitz> Seem to also work better when you use underscores instead of dashes in variable names...
troyready has joined #ruby
sar_s has joined #ruby
mib_mib has joined #ruby
<sar_s> hi
<sar_s> how do I convert a integer to a hex string. I mean for example I want to convert the integer 2 to '\x02'
ptrrr has quit [Quit: ptrrr]
govg has quit [Quit: leaving]
Freemason has quit [Ping timeout: 256 seconds]
<shevy> this is possible
<dorei> >> i = 21 ; "0x#{i.to_s(16)}"
<eval-in__> dorei => "0x15" (https://eval.in/219013)
Freemason has joined #ruby
Soda has quit [Remote host closed the connection]
<dorei> >> i = 21 ; "\x#{i.to_s(16)}"
<eval-in__> dorei => /tmp/execpad-0ae72425e82c/source-0ae72425e82c:2: invalid hex escape ... (https://eval.in/219015)
<dorei> >> i = 21 ; "\\x#{i.to_s(16)}"
<eval-in__> dorei => "\\x15" (https://eval.in/219016)
<sar_s> dorei: let me try it
patrick99e99 has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
<dorei> u can use to_s(a) to convert a number into a string in base a
<dorei> so to_s(16) to convert it into a "hex" string
nobitanobi has quit [Remote host closed the connection]
robustus is now known as robustus|Off
tyll_ has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
Guest9155 has quit [Ping timeout: 244 seconds]
patrick99e99 has quit [Ping timeout: 265 seconds]
tyll has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JohnBat26 has joined #ruby
nitquy_ has joined #ruby
<sar_s> dorei: thanks :))
Rapier- has quit [Ping timeout: 245 seconds]
lkba has quit [Quit: Bye]
<sar_s> just another question. what is the more efficient way to concatenate 2 strings because I wan to do somethin like "\x01" + "\x02\x03"
yfeldblum has quit [Ping timeout: 244 seconds]
ob has quit [Max SendQ exceeded]
ob has joined #ruby
leitz has quit [Quit: Nappy time]
lkba has joined #ruby
ob has quit [Max SendQ exceeded]
ob has joined #ruby
vectra has quit [Ping timeout: 244 seconds]
<shevy> sar_s if you can avoid the concat then it would be even faster!
diegoviola has quit [Quit: WeeChat 1.0.1]
<sar_s> but I need to
<shevy> I think given two strings, "#{a}#{b}" might be faster than a+b
<shevy> yes, this is Ruby not C man
michael_mbp has quit [Excess Flood]
kaspergrubbe has joined #ruby
<sar_s> ah ok thanks
<eam> >> "a""b"
<eval-in__> eam => "ab" (https://eval.in/219018)
<eam> ^^ fastest
<shevy> that's cheating!
michael_mbp has joined #ruby
<Hanmac> shevy: "THIS IS RUBY" ;D
<eam> cheaters always win
<shevy> eam how would you think the ruby parser notices that :>
joast has quit [Quit: Leaving.]
<eam> shevy: it's just like C!
<sar_s> :D thank you
michael_mbp has quit [Excess Flood]
<eam> Hanmac: *kicks developer into a well*
<shevy> tiobe
nkumari has joined #ruby
nitquy_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<shevy> ruby gains 2 ranks in one month!!!
josephndenton has joined #ruby
Wolland has joined #ruby
<shevy> soon dart is more popular than ruby according to TIOBE
* Hanmac does not care about tiobe
<eam> ruby will never pass perl at this rate
<shevy> perl gained +3 ranks in one year!!!!!!!
Wolland has quit [Remote host closed the connection]
michael_mbp has joined #ruby
<benzrf> tiobe more like niobe more like newbie
<eam> I hope perl becomes what cobol was around y2k
nkumari_ has joined #ruby
Wolland has joined #ruby
<benzrf> java is already that
<shevy> haha
nkumari has quit [Read error: Connection reset by peer]
<benzrf> and python is advancing toward what java was then
<shevy> tiobe loves java
<eam> benzrf: I mean with only ancient neckbeards knowing how to use it
<shevy> but not haskell benzrf
<benzrf> oh lol
<eam> and getting fat stacks for maintaining BS code
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
<eam> visual basic making some very large gains in this list
<eam> the most growth by far
mib_mib has quit [Ping timeout: 264 seconds]
<shevy> lol
<shevy> I think they just randomly pull in numbers
<shevy> though their trends actually say
<shevy> that perl gained successively from the beginning of 2014
josephndenton has quit [Ping timeout: 255 seconds]
<shevy> so perhaps that trend in itself is actually correct
<eam> perl6 is the software world's Great Leap Forward
hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
pandaant has joined #ruby
atomical has joined #ruby
spyderman4g63 has joined #ruby
Joufflu has joined #ruby
mtakkman has joined #ruby
rshetty has joined #ruby
<shevy> that has never happened
silkfox has quit [Ping timeout: 265 seconds]
<shevy> and it has a hallucinogenic mascot logo
omosoj has joined #ruby
Cort3z has quit [Ping timeout: 264 seconds]
spyderman4g63 has quit [Ping timeout: 245 seconds]
<atmosx> shevy: how's life?
fuhgeddaboudit has joined #ruby
* atmosx trying to setup his dev env to a debian VM in order to make a gem run
joast has joined #ruby
<atmosx> takes ~ 2 hours
<atmosx> I hate it
mgorbach has joined #ruby
<dorei> one day everyone working @ IT will be replaced with a perl script xD
<atmosx> dorei: hardly
<atmosx> but okay
<shevy> atmosx busy busy - I have "finished" a rewrite by sacrificing about 20% of the old features
<atmosx> I've seen worst, people with serotonin syndrome for example
omosoj has quit [Client Quit]
<atmosx> shevy: cool
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
dkb20k has joined #ruby
<atmosx> shevy: I'm writing my thesis, I need to finnish pharmacognosy + thesis until 19/11 and i'm like fucking crazy
<shevy> yay!
<shevy> it's the last exam?
<atmosx> studying from 4 to 12 hours per day + trying to write code by night
<shevy> hehe
<atmosx> yes, and teh idiot prof doesn't reply to my emails and now I have to lose time and go to the univ to talk in person
<shevy> oh we have a few of these as well
<atmosx> I have 1 exam + thesis
supersym has joined #ruby
<shevy> the coolest is one guy that is seeking a bioinformatician-student
<atmosx> my thesis presentation will be funny, my professor don't know jack shit about programming
<shevy> but - he does not respond to emails at all, ever
<dorei> shevy: maybe he doesn't know how to use email
<atmosx> wtf is he looking for a bio-informatician then? :-P
<shevy> haha yeah same here really save for perhaps 3 or 4 experts
jottr has quit [Ping timeout: 264 seconds]
psyprus has joined #ruby
<shevy> atmosx I have no idea, I forgot what he was studying... I guess similarity-searches, in particular BLAST was mentioned
<atmosx> shevy: my prof is really good at biology and molecular biology. But he doesn't know anything about computers.
<shevy> *teaching
<shevy> dorei given his age perhaps but I think he simply is not good at all with computers
jamto11 has joined #ruby
LudicrousMango has quit []
<atmosx> shevy: I'm trying to implement a fitting alignment gem now, to avoid writing my wn version in pure ruby
<shevy> hehe
<shevy> atmosx doesn't bioruby fit? ;P
<atmosx> this gem is a binding to seq-align c++ library from what I see. Then there's a sequenceserver.com (sinatra + boostrap_ which I'd also like to add in my app.
<atmosx> shevy: ah don't think so.
troyready has quit [Ping timeout: 255 seconds]
<shevy> hehehe
<dorei> btw, anyone ever used ruby for nlp? or python is a oneway road for nlp ?
psyprus has quit [Remote host closed the connection]
<shevy> dunno
<shevy> python is the big bulldozer
<atmosx> yeah, I should write this whole thing in python probably, but who cares? I don't think they'll continue my project anyway.
<shevy> atmosx do you know the "dynamic programming" algorithms?
<atmosx> You can do pretty much anything with the current libraries but you need to integrate them in a meaningful way that's not easy.
jottr has joined #ruby
<atmosx> shevy: nope
elemenopy has quit [Ping timeout: 260 seconds]
<shevy> there are lots of these out there
<dorei> dynamic programming? i think it's just a fancy name :p
arup_r has joined #ruby
fgo has joined #ruby
<shevy> for instance, the Nussinov Folding Alog... Algorithm to find RNA (most likely) pairing regions with other RNAs
<shevy> dorei I thought they meant ruby
<atmosx> shevy: I really don't care. I just wanna finnish with it and probably never mess with bio-info ever again. If I do would be professionally
mikepack has joined #ruby
<atmosx> shevy: sounds cool
<shevy> atmosx hehehe
<atmosx> I think turing was doing dynamic programming in his mind in the 30s
<atmosx> at princeton
<shevy> "Dynamic programming is widely used in bioinformatics for the tasks such as sequence alignment, protein folding, RNA structure prediction and protein-DNA binding."
<shevy> it is unfortunate that I sucked at higher math
<atmosx> shevy: I see, that's cool I could add something like this to my thesis
<atmosx> shevy: hehe
mgorbach has quit [Ping timeout: 250 seconds]
<dorei> shevy: i guess most recursive algorythms are "dynamic programming"
<shevy> dorei yeah
<atmosx> shevy: I've read a stunning article today, about life in Japan
<shevy> dorei the description was so much of the traveling salesman problem
<shevy> atmosx yeah? which part :-)
<atmosx> dynamic = changes based on pre-determined situations or it's written in a way to adapt
<shevy> I mean, Japan is kinda like a world in a world
<dorei> shevy: yeah, they still use analog photography :D
<atmosx> crazy things
<atmosx> finally ruby compiled!
fgo has quit [Ping timeout: 245 seconds]
desp has quit [Quit: This computer has gone to sleep]
<shevy> cool
<shevy> atmosx that seems to totally not hold true for matz
<shevy> hmm
<shevy> they seem to have taken the kaizen philosophy even for shitty jobs
<shevy> and still they get their butts kicked by china
gsd has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
corehook has joined #ruby
<shevy> but I think he totally exaggerates in the article
melik has joined #ruby
amundj has joined #ruby
<shevy> there are drop-outs just as well and unusual life styles
<atmosx> shevy: I don't think so, at least not from reading comments on the HN thread
mgorbach has joined #ruby
<atmosx> I'm sure there, but generally speaking their lifes are so tightly tied to the corporation they are working on which is insane (by my standards)
dkb20k has quit [Ping timeout: 255 seconds]
moritzs has quit [Remote host closed the connection]
<shevy> yeah
<shevy> bee workers in a bee hive
corehook has quit [Client Quit]
corehook has joined #ruby
amundj has quit [Read error: Connection reset by peer]
<atmosx> yeap kinda
<atmosx> looks like it
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
melik has quit [Ping timeout: 264 seconds]
<atmosx> I like the fact tha discussion over decrease of working is getting mre and more popular.
<atmosx> working hours
krz has quit [Quit: WeeChat 1.0.1]
<shevy> well
ob has quit [Max SendQ exceeded]
<shevy> you wanna do something else with your life aside from work work work as well
fandi has joined #ruby
ob has joined #ruby
<dorei> if you have life outside work :p
s00pcan has joined #ruby
max96at is now known as max96at|off
<shevy> dorei do you often work overtime?
earfin has joined #ruby
amundj has joined #ruby
fumk has quit [Remote host closed the connection]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
jamto11 has quit [Remote host closed the connection]
cashnguns has joined #ruby
fumk has joined #ruby
<dorei> shevy: when i was working behind an office desk, overtime was quite rare. now that i work from home, i dont keep track of how many hours i work
<dorei> but i'm lazy, i dont think my situation is quite typical of what's going on here
vyorkin has joined #ruby
almostworking has joined #ruby
<s00pcan> dorei: I mostly work from home and use emacs org-mode to log time
<s00pcan> I've got about 6 more hours to feel decent about myself this week :(
yfeldblum has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
max96at|off is now known as max96at
machete has quit [Ping timeout: 272 seconds]
<shevy> hehe
<shevy> tracking people
elemenopy has joined #ruby
<elemenopy> dangit i need rails help :( but nobody will haaaalp me
mdev has quit [Ping timeout: 255 seconds]
<shevy> hey
<shevy> rails are in #rubyonrails
<benzrf> thats cuz rails is ple
<benzrf> b
machete has joined #ruby
<shevy> but sometimes Hanmac1 helps :>
<jhass> elemenopy: I think I remember I explained you that a patience of less than an hour makes that claim invalid on IRC
johnzorn has joined #ruby
<jhass> you waited about 3 minutes!
<shevy> elemenopy try to model it into a ruby question
yfeldblum has quit [Ping timeout: 244 seconds]
<shevy> like "how to extract all odd entries from an Array"
almostworking has left #ruby ["Leaving"]
<elemenopy> i wish i could think of a way to model it that way. the ruby part of the engine is done. were on to the web part now. im using rails console to test some database connectivity stuff or i would
<jhass> elemenopy: you got a follow up question in the appropriate channel where you asked the question in under 10 minutes
<jhass> go answer it before wasting time here
lolmaus has quit [Read error: Connection reset by peer]
<johnzorn> Anyone develop on linux? If so how do you manage the different ruby versions? Do you avoid using the built in package manager and use a tool like rvm/rbenv for everything or do you install a global ruby and then go from there? I'd like to find a system where I'm not spending so much time debugging setup.
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Noldorin has joined #ruby
<wasamasa> nope, all of us develop on dos machines
<Noldorin> why does File.exist? return false on this file?
<Noldorin> -rw-r--r-- 1 alex access_bpf 54K 21 Jul 11:33 /usr/local/include/jack/jack.h
<havenwood> johnzorn: Some distros keep nice up to date Ruby packages, and if you need just one Ruby that works great.
<jhass> johnzorn: I use archlinux and have all ruby versions I need installed via the package manager pacman. I use chruby to switch between them. Though that's probably not exactly a common setup
<havenwood> johnzorn: Have you picked a distro yet or just asking in general?
lolmaus has joined #ruby
jonr22 has joined #ruby
<shevy> johnzorn I (usually) would compile into a versioned directory
<shevy> though I have to admit, I have been doing so less often in the last ~1 year or so; I only use a single ruby version nowadays, the latest
timonv_ has joined #ruby
<shevy> Noldorin that can not be
<shevy> Noldorin you can try to copy it into another location, also change the chmod settings, and try again to see if it makes a difference
<shevy> or perhaps it could be a symlink to a non existant file
<jhass> shevy: then it would be lrwxrwxrwx
<shevy> isn't the rxw part after the l lying?
<johnzorn> havenwood: Ya I'm already on funtoo
<Noldorin> shevy, sorry, you're right. I was doing something silly!
JohnBat26 has joined #ruby
<jhass> shevy: anybody can follow any symlink, the rights of the target matter. Though you're right, that did lead to some attack vector in the past, google symlink attacks
<shevy> I used to love symlinks
<shevy> I still think they are super useful but it is no longer a love relationship
<johnzorn> havenwood: they have a nice system to have different versions of the same software installed. But I'd like to simplify things so I'm not using 10 tools just to manage ruby.
<shevy> gobolinux was modeled around symlinks, with advantages and disadvantages - I wish it could have been a much more thorough design :(
cashnguns has quit [Read error: Connection reset by peer]
<shevy> shortly before it died effectively, they wanted to provide a /System/Index entry
<havenwood> johnzorn: i like chruby for switching between Rubies
nonks has joined #ruby
cashnguns has joined #ruby
rshetty has quit [Remote host closed the connection]
Noldorin has left #ruby ["–"]
nonks has quit [Ping timeout: 250 seconds]
<havenwood> johnzorn: Or RVM supports emerge. I'd suggest avoiding rbenv. We don't have ruby-install support for emerge yet but pull requests welcome! :)
Wolland has quit [Remote host closed the connection]
nkumari_ has quit [Remote host closed the connection]
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
noop has quit [Ping timeout: 260 seconds]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
mdev has joined #ruby
nkumari has joined #ruby
rylev has joined #ruby
kobain has joined #ruby
jimbach has joined #ruby
iwishiwerearobot has joined #ruby
agjacome has joined #ruby
mr_rogerz_ has joined #ruby
Cort3z has joined #ruby
Wolland has quit [Ping timeout: 265 seconds]
elemenopy has quit [Remote host closed the connection]
nonks has joined #ruby
<MattB2> havenwood: on what basis?
rylev has quit [Ping timeout: 264 seconds]
maestrojed has joined #ruby
iwishiwerearobot has quit [Ping timeout: 260 seconds]
rpag has quit [Ping timeout: 265 seconds]
<havenwood> MattB2: i think things like shipping openssl instead of using the package manager's and adding ./bin to PATH are bad ideas
charliesome has joined #ruby
mdarby has joined #ruby
jimbach has quit [Remote host closed the connection]
bmurt has quit []
<havenwood> MattB2: for a simple option i prefer the idea of setting env vars correctly to shims
leitz has joined #ruby
corehook has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
<leitz> Okay, back. In irb, how do you query built-in methods to see how to use them?
hanmac1 is now known as Hanmac
<leitz> I'm trying to figure out JSON.parse
fgo has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
psyprus has joined #ruby
<gregf> I have the follow test http://dpaste.com/15SATEC that tests this code http://dpaste.com/1D5J79K every time I call subject.run I get TypeError: no implicit conversion of String into Array. On line 33 I do sizes.each do |size| this is where the error is stemming from, but I don't understand why. The code runs as it should.
Alina-malina has quit [Quit: https://twitter.com/AleenaMaleena]
<MattB2> havenwood: you must be thinking of something else. rbenv is written in Ruby, and doesn't ship its own ssl library AFAIK, it uses shims, and it doesn't reqiure ./bin in the path
corehook has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
psyprus has quit [Ping timeout: 258 seconds]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
rpag has joined #ruby
IrishGringo has quit [Ping timeout: 256 seconds]
<havenwood> MattB2: well, it uses ruby-build which downloads a standalone openssl. so for example you might not know this, update to newest openssl and recompile ruby assuming all is well.
diegoviola has joined #ruby
<havenwood> MattB2: look at all the files with the `upgrade openssl...` commits: https://github.com/sstephenson/ruby-build/tree/master/share/ruby-build
vectra has joined #ruby
nobitanobi has joined #ruby
Alina-malina has joined #ruby
r0bby_ has joined #ruby
dkb20k has joined #ruby
<havenwood> i know a ton of people don't know they're doing this, which is problematic. and what the heck...?
_lexjm has joined #ruby
timonv_ has quit [Remote host closed the connection]
<havenwood> MattB2: Last i heard the rbenv maintainer was recommending adding ./bin to PATH, maybe i'm wrong that rbenv does that by default though
mgorbach has quit [Quit: ZNC - http://znc.in]
fumk has quit [Remote host closed the connection]
rshetty has joined #ruby
bMalum_ has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
robbyoconnor has quit [Ping timeout: 244 seconds]
mgorbach has joined #ruby
jonr22 has quit [Remote host closed the connection]
jheg has joined #ruby
dkb20k has quit [Ping timeout: 240 seconds]
<havenwood> MattB2: chruby and RVM are GPG signed, etc.
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
bMalum has quit [Ping timeout: 245 seconds]
bMalum_ is now known as bMalum
renderful has joined #ruby
<havenwood> MattB2: and all the rehash questions drive me nuts, at least they've finally made that automagical
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
rshetty has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
<havenwood> MattB2: Overall I just prefer chruby/ruby-install or RVM over rbenv/ruby-build, hence I don't recommend it.
claw___ has joined #ruby
luk3thomas has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
<MattB2> havenwood: some fair points, although until ruby gems are signed, we're always going to be exposed. ./bin sounds like a recommendation for Rails, as you do have to use bin/rails or bundle exec rails with rbenv
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
fumk has joined #ruby
claw__ has quit [Ping timeout: 260 seconds]
josephndenton has joined #ruby
<atmosx> hello
yfeldblum has joined #ruby
<atmosx> I'm getting a NoMemoryError ... on a Sinatra application. When I run the same method on pry works fine
renderful has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
<atmosx> it's a c++ binding, I'm running this on a VM with 1024 RAM is it possible that it needs more ram? can't believe it
<MattB2> atmosx: them you probably want to ask on #sinatra
mr_rogerz_ has quit [Ping timeout: 244 seconds]
<MattB2> *then
fgo has joined #ruby
arup_r has quit [Quit: Leaving.]
nateberkope has joined #ruby
adriancb has quit [Remote host closed the connection]
weemsledeux has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
Scotteh has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
workmad3 has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
viet_power has joined #ruby
Scotteh_ has quit [Ping timeout: 255 seconds]
cashnguns has quit [Read error: Connection reset by peer]
luk3thomas has quit [Quit: luk3thomas]
fgo has quit [Ping timeout: 265 seconds]
cashnguns has joined #ruby
<shevy> atmosx hehe you get deep into the problem-landscape :D
sandelius has joined #ruby
adriancb has quit [Ping timeout: 256 seconds]
bigmac has joined #ruby
tkuchiki has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
jheg has quit [Quit: jheg]
<atmosx> shevy: I've no idea what could cause this...
nonks has joined #ruby
<atmosx> shevy: my sequences are so small..
<shevy> lol
rkazak has joined #ruby
vyorkin has quit [Ping timeout: 265 seconds]
mr_rogerz_ has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
vectra has quit [Ping timeout: 244 seconds]
mfmfmfmfmfmf has joined #ruby
n3phos has joined #ruby
spyderman4g63 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
jheg has joined #ruby
weemsledeux has quit [Read error: Connection reset by peer]
max96at is now known as max96at|off
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
spyderman4g63 has quit [Ping timeout: 265 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
timonv_ has joined #ruby
workmad3 has quit [Quit: leaving]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
nonks has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby
jonr2219 has quit [Ping timeout: 265 seconds]
SCHAAP137 has joined #ruby
takle has quit [Remote host closed the connection]
yelluke has joined #ruby
jonr22 has joined #ruby
rylev has joined #ruby
mr_rogerz_ has quit [Ping timeout: 264 seconds]
yelluke has left #ruby [#ruby]
BadQuanta has quit [Ping timeout: 272 seconds]
nateberkope has quit [Quit: Leaving...]
rylev has quit [Ping timeout: 244 seconds]
timonv_ has quit [Remote host closed the connection]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
mikepack has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0.1]
mfmfmfmfmfmf has quit [Remote host closed the connection]
adriancb has joined #ruby
melik has joined #ruby
IrishGringo has joined #ruby
_lexjm has quit [Quit: zzz...]
arescorpio has joined #ruby
gregf has joined #ruby
Hijiri has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
n008f4g_ has joined #ruby
ping-pong has quit [Ping timeout: 244 seconds]
mtakkman has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
ctp has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
melik has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
twistedpixels is now known as zz_twistedpixels
terlar has quit [Quit: WeeChat 1.0.1]
psyprus has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
jonr2219 has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
moritzs has joined #ruby
Jake232 has joined #ruby
mdarby has quit [Quit: Textual IRC Client: www.textualapp.com]
_lexjm has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
Dude007_ has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
jheg has quit [Quit: jheg]
_lexjm has quit [Client Quit]
leitz has quit [Quit: Nappy time]
User458764 has quit [Ping timeout: 265 seconds]
IrishGringo has quit [Ping timeout: 250 seconds]
ping-pong has joined #ruby
lifenoodles has quit [Ping timeout: 240 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
clauswitt has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
r0bby_ has quit [Quit: Konversation terminated!]
jottr has joined #ruby
User458764 has joined #ruby
oleo__ has joined #ruby
r0bby_ has joined #ruby
bigmac has quit [Remote host closed the connection]
clauswitt has joined #ruby
r0bby_ has quit [Client Quit]
x1337807x has joined #ruby
oleo is now known as Guest78785
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
melik has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Guest78785 has quit [Ping timeout: 240 seconds]
Lingo has joined #ruby
earfin has quit [Quit: earfin]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
r0bby_ has joined #ruby
lifenoodles has joined #ruby
fschuindt has joined #ruby
mikepack has joined #ruby
nobitanobi has quit []
nobitanobi has joined #ruby
User4587_ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
jimms has joined #ruby
Hobogrammer has joined #ruby
robbyoconnor has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
User458764 has quit [Ping timeout: 264 seconds]
r0bby_ has quit [Ping timeout: 245 seconds]
Vile` has quit [Quit: reboot]
mikepack has quit [Ping timeout: 245 seconds]
s00pcan has quit [Remote host closed the connection]
thsig has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
Lingo has left #ruby ["Be back later ..."]
artm has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
byprdct has joined #ruby
theotherstupidgu has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
artm has quit [Client Quit]
mfmfmfmfmfmf has joined #ruby
r0bby_ has joined #ruby
<theotherstupidgu> hi
<theotherstupidgu> why would this give an error?
Vile` has joined #ruby
<jhass> what error does it give?
<jhass> ah
<theotherstupidgu> undefined local variable or method `hi' for C:Module
<jhass> including a module doesn't include it's singleton class
<jhass> extend is a include into an objects singleton class
Vile` has quit [Client Quit]
<theotherstupidgu> ok, so how should a method in A be passed to C through B?
<jhass> tbh. that looks like a flawed design
<theotherstupidgu> well, i guess sometimes metaprogramming looks like tht
User458764 has joined #ruby
<jhass> some define an included hook that does other includes
<theotherstupidgu> yeah
jonr22_ has joined #ruby
nobitanobi has quit []
boombadaroomba has joined #ruby
<theotherstupidgu> still this remains as unexpected behaviour from ruby i guess, because module A could be in a gem and module B could be in another gem
robbyoconnor has quit [Ping timeout: 264 seconds]
jonr22 has quit [Read error: Connection reset by peer]
User4587_ has quit [Ping timeout: 272 seconds]
shazaum has joined #ruby
<jhass> no, it totally is expected behavior
<theotherstupidgu> why so?
<jhass> I already explained
<jhass> do you know singleton classes?
shazaum has quit [Client Quit]
<theotherstupidgu> yes
mfmfmfmfmfmf has quit []
kyb3r_ has joined #ruby
jheg has joined #ruby
Soda has joined #ruby
<jhass> then "extend is an include into the singleton class" and "include doesn't include singleton classes" should be enough of an explanation
<theotherstupidgu> well thanks jhass, appreciate it
<theotherstupidgu> i see your point
<jhass> for a deeper explanation: https://www.youtube.com/watch?v=by5fFOBhtPQ
boombadaroomba has quit [Ping timeout: 264 seconds]
jheg has quit [Read error: Connection reset by peer]
DTSCOde has joined #ruby
<theotherstupidgu> i never watched this before, thanks will download
jimms has quit [Remote host closed the connection]
jottr_ has joined #ruby
jheg has joined #ruby
b3itz has joined #ruby
<b3itz> Hey guys... if i want to read in a .txt file, then print it out.. what would be the correct way?
<jhass> b3itz: Kernel#print and File::read
<b3itz> i tried file = File.new('input.txt', 'r') print file
atmosx has quit [Quit: WeeChat 0.4.4-dev]
<b3itz> i dont follow jhass im very new to ruby
<jhass> File.new just opens the file, it doesn't read it
jottr has quit [Ping timeout: 250 seconds]
<b3itz> oh ok, so i need to open, read, print, close?
<jhass> yes
atmosx has joined #ruby
nonks has joined #ruby
<b3itz> cool.. i'll try that
<theotherstupidgu> b3tiz type "ri File#read" in your console
<jhass> always use the block form of File.new and File.open or the helper methods like File.read and File.write
DTSCOde has quit [Quit: Leaving]
DTSCOde has joined #ruby
<jhass> b3itz: the block forms will take care to close the file in all events
KALEGEK has quit [Ping timeout: 255 seconds]
<jhass> so you don't have to
Cort3z has quit [Ping timeout: 255 seconds]
<jhass> the helpers File.read and File.write will not even give you the file handle, so you can't forget to close them either
User4587_ has joined #ruby
aspires has joined #ruby
<b3itz> can you pint me to a link for that? i'm going through lecture slides and don't see anything about the block form
<jhass> File.open('foo.txt') do |file| do_something_with file; end
<jhass> file_contents = File.read('foo.txt')
<jhass> File.write('foo.txt', new_contents)
<jhass> ruby-doc.org/core-2.1.4/File.html
timonv_ has quit [Remote host closed the connection]
MattB2 has quit [Remote host closed the connection]
<b3itz> thanks
User458764 has quit [Ping timeout: 265 seconds]
Vile` has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
rylev has joined #ruby
Hijiri has joined #ruby
thsig has quit [Remote host closed the connection]
ctp has joined #ruby
ctp has quit [Client Quit]
luk3thomas has joined #ruby
razieliyo has quit [Quit: Saliendo]
jleishman has joined #ruby
Cache_Money has joined #ruby
rylev has quit [Ping timeout: 258 seconds]
User458764 has joined #ruby
gaganjyot has quit [Ping timeout: 250 seconds]
dkb20k has joined #ruby
<b3itz> ok im stumped... I need to read in a txt file with several lines of numbers separated by spaces and loop through and store each line as an array..
<jhass> File.readlines
<jhass> and Array#map
pureart has joined #ruby
pureart has left #ruby [#ruby]
<jhass> and String#split
jonr2219 has quit [Remote host closed the connection]
<b3itz> while line file.gets
<b3itz> oops
jheg has quit [Quit: jheg]
<jhass> that's just verbose for File.readlines ;)
<b3itz> while line = file.gets
User4587_ has quit [Ping timeout: 265 seconds]
<jhass> or File.foreach
jheg has joined #ruby
<b3itz> im stuck.. ive been trying things for hours..
<shevy> man
dkb20k has quit [Ping timeout: 250 seconds]
<b3itz> i have this that prints out each line... file = File.new('input.txt', 'r') while line = file.gets print line end
<b3itz> i dont exactly know what to do from there
<jhass> do you know arrays?
<b3itz> slightly yes
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
nahtnam has quit [Quit: Page closed]
<jhass> File.readlines('input.txt') will give you an array of the files lines
<b3itz> and store them how?
<jhass> it returns an array
<shevy> b3itz type it
<b3itz> basically on each line, i have to take the average of the numbers
aspires has quit []
govg has joined #ruby
<jhass> File.readlines("input.txt") #=> ["1 2 3\n", "3 4 5\n", "5 6 7\n"]
<b3itz> does it store the array in a new variable?
Avahey has quit [Quit: Connection closed for inactivity]
jonr22 has joined #ruby
<jhass> it returns it
<b3itz> ah which is what i need since the average calculation is in another def right?
<jhass> which average calculation?!
<b3itz> so i have a def average that is supposed to calculate the average for each array from each line
<shevy> b3itz EXCELLT
<shevy> erm excellent
<shevy> so use what jhass told you above:
<b3itz> so i need to convert each line to an array, then pass it to the average def
<shevy> <jhass> or File.foreach
<shevy> write it out so it gets into your head
<jhass> You'll also need String#to_i
<b3itz> ok back to the readlines... i have this: file = File.new('input.txt', 'r') while line = file.gets line.readlines end
<b3itz> how can i just print out each array line?
<b3itz> testing small
<gr33n7007h> b3itz, listen to what people are saying
User4587_ has joined #ruby
<b3itz> im trying... im just not very far into learning ruby.. it's hard to wrap my head around
yfeldblum has joined #ruby
<gr33n7007h> File.readlines returns an array, no need for the File.new ...
<b3itz> hmm.. will i need to do a file.open?
<jhass> File.readlines('input.txt').map {|line| line.chomp } #=> ["1 2 3", "2 3 4", "4 5 6"]
User458764 has quit [Ping timeout: 244 seconds]
Dmr has joined #ruby
<shevy> b3itz the thing is you ignore what jhass writes to you man
<b3itz> sorry, im not trying to... i appreciate the help
<b3itz> im trying to make sense of this lol
<shevy> ok then look at what jhass wrote and forget your "while line" stuff for now
<shevy> actually he more or less already gave you the solution; all you have to do is add your average() method
<jhass> well, String#split, String#to_i, Array#inject, Array#size and Fixnum#fdiv are missing
<b3itz> ok lemme look at all this for a second
<jhass> but I wanted to start File.readlines and Array#map
<jhass> *start with
yfeldblum has quit [Ping timeout: 240 seconds]
vyorkin has joined #ruby
kaspergrubbe has joined #ruby
<atmosx> the level of complexity of these alignment tools is astonishing
Dmr has quit [Client Quit]
luk3thomas has quit [Quit: luk3thomas]
<shevy> atmosx I dunno
<b3itz> "Create the output file, as specified from the 2 nd command line argument. Loop through the input file until the end With each iteration do the following 1. Read in a row of data 2. Invoke the createArray method passing the row of data and store the result in another variable"
<atmosx> shevy: I'm using bioruby to interact with this now http://mafft.cbrc.jp/alignment/software/
<shevy> atmosx I think the algorithms are actually very similar; Hamming distance is almost the same as Levensthein distance and all those alignments that make use of scoring work in a very similar manner. not that I understand the math behind it hahaha
<b3itz> so....
<b3itz> inFile = File.open('input.txt', 'r') while line = inFile.gets inFile.readline end
<shevy> lol
<atmosx> shevy: yeah, i just want a basic fucking analysis, like exonerate does. I could use exonerate SOMEHOW but bioruby is SO FUCKING UNDOCUMENTED that it's scary.
<shevy> b3itz you are doing it again
<b3itz> >.<
<shevy> b3itz> inFile = File.open('input.txt', 'r') while line = inFile.gets <--- there!
<jhass> ugh, we usually don't do camelCase methods in ruby but underscore_case
<b3itz> i wish you could see my frustration lol
<shevy> you must do this on purpose b3itz
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> so not sure about the quality of whatever you're following
havenwood has quit [Remote host closed the connection]
<shevy> b3itz ok DELETE all the old code and REPLACE IT with what jhass gave you above for now
Jackneill has quit [Read error: Connection reset by peer]
<shevy> but I know what will be coming
<shevy> another round of while line =
<shevy> :)
<shevy> and btw who told you inFile.gets ... that is weird
<b3itz> shevy: which lines that he gave me?
<b3itz> my prof
<shevy> b3itz ok you understand inFile is a variable?
<jhass> sorry to inform you, but you prof is not good at ruby
<shevy> <jhass> File.readlines('input.txt').map {|line| line.chomp } #=> ["1 2 3", "2 3 4", "4 5 6"]
<b3itz> im really not trying to be stubborn lol im just frustrated
<b3itz> hes not
<shevy> so now here is what you do:
<b3itz> hes admitted it
<shevy> inFile = File.readlines('input.txt').map {|line| line.chomp } #=> ["1 2 3", "2 3 4", "4 5 6"]
<b3itz> yes shevy
<shevy> and one day replace inFile with something sensible
<jhass> shevy: now you're infected
luk3thomas has joined #ruby
<jhass> inFile
<shevy> he must learn in small parts
<shevy> he did not even pick up File.readlines yet jhass
<shevy> I swear lol
User458764 has joined #ruby
<b3itz> baby steps :P
thoolihan has joined #ruby
<shevy> b3itz you need to think in terms of ruby
_lexjm has joined #ruby
<shevy> b3itz step 1: get the file dataset into something you can work with (a variable; an Array actually)
<jhass> b3itz: make sure to ping when you leave so I can give you the one line of ruby that solves this problem for your prof
<shevy> when you have the dataset, you can model it in ways you want to have it
<b3itz> "inFile = File.readlines('input.txt')" will read each line of the .txt file and store as an array?
kostadinss has quit [Quit: Connection closed for inactivity]
<shevy> it will read ALL lines at once
<b3itz> jhass: makes sense
<shevy> File.foreach would be better but for now please please please stick to one thing
<shevy> use File.readlines
<b3itz> and store every line in one array
<b3itz> ?
<shevy> the whole content of the file is in that variable (Array) - yes
<b3itz> ok i got that
jamto11 has joined #ruby
<shevy> you can check
<b3itz> then the .map...?
<shevy> p inFile
havenwood has joined #ruby
<b3itz> oh
<shevy> yes, you can write a new line if you want to
<shevy> or put it on one line
<b3itz> ok so now if i were to print inFile, itll give me an array
<shevy> yes
hamakn has quit [Remote host closed the connection]
poweratom_ has joined #ruby
<b3itz> lemme try in a test file real quick
<shevy> though you'd normally print a string, so... array.join("\n")
<shevy> but store it in a variable first!
hamakn has joined #ruby
<shevy> and if you use "while line" again ...
luk3thomas has quit [Client Quit]
<b3itz> cool! thats one bigass array
<shevy> once you have it in your Array, jhass will tell you how you connect it with your super awesome average() method
<b3itz> shevy: whats the .map {|line..........
<shevy> well it is a method, ok?
<b3itz> yes
User4587_ has quit [Ping timeout: 264 seconds]
<shevy> the name of the method is called map
<shevy> good
<shevy> you use this map as in "apply this on each member"
<shevy> in other words - it modifies your array
luk3thomas has joined #ruby
<shevy> inside the {} you specify how it is modified
<shevy> >> [1,2,3].map {|entry| entry.to_s }
<eval-in__> shevy => ["1", "2", "3"] (https://eval.in/219034)
<b3itz> ok so its separating each line
<shevy> if you look carefully, the 1,2,3 is now "1","2","3" - can you see this ^^^
<b3itz> yes
aspires has joined #ruby
<b3itz> i see
<shevy> ok, jhass applied the .chomp method
<b3itz> so its basically separating each line so we can work with it
<shevy> <jhass> File.readlines('input.txt').map {|line| line.chomp } #=> ["1 2 3", "2 3 4", "4 5 6"]
<shevy> do you know what .chomp does?
<shevy> it is a method on String
<jhass> >> "foo\n".chomp
<eval-in__> jhass => "foo" (https://eval.in/219035)
<shevy> ruby is 85% knowing that those methods do b3itz
<b3itz> i /did/ but ive forgotten
<b3itz> i can go look'
<shevy> k but you should memorize the more important ones
<shevy> .chomp will get rid of trailing "\n" newline
<shevy> you can see it in jhass' example up there
bascht1 is now known as bascht
<b3itz> oh ok i noticed those were gone
jamto11 has quit [Ping timeout: 264 seconds]
<havenwood> >> 'popcorn'.chomp 'corn'
<eval-in__> havenwood => "pop" (https://eval.in/219036)
<shevy> good!
<shevy> b3itz havenwood showed you that you can pass arguments to .chomp() but please forget this for now
hamakn has quit [Ping timeout: 250 seconds]
<shevy> we must continue on your assignment
thsig has joined #ruby
<shevy> do you have a variable assigned to the Array that holds the file content?
<jhass> okay, next is separating the numbers from each other
jrvlima has joined #ruby
<b3itz> ok so just leave it as inFile = File.readlines(input.txt") only?
<shevy> ok now it is jhass' turn
<jhass> >> "1 2 3".split(' ')
<eval-in__> jhass => ["1", "2", "3"] (https://eval.in/219037)
<jhass> ^ do you understand this?
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
jrvlima has quit [Max SendQ exceeded]
spyderman4g63 has joined #ruby
<b3itz> so this split is splitting each number by the space?
thsig_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
aspires has quit [Client Quit]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> yes
s00pcan has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<jhass> now make me an array like [["1", "2", "3"], ["2", "3", "4"]] from your input.txt
<b3itz> i have a creatArray method i need to pass inFile to
<b3itz> ok
bigmac has joined #ruby
<shevy> jhass he won't abandon camelCasing ;)
<shevy> though I do wonder how create became creat ...
<b3itz> inFile = inFile.to_s inFile = lineString.split(" ")
thsig__ has joined #ruby
patrick99e99 has joined #ruby
<jhass> no
<shevy> b3itz you must look at why you use .to_s
<shevy> >> [1,2,3].to_s
<eval-in__> shevy => "[1, 2, 3]" (https://eval.in/219038)
<jhass> we already learned how to apply an operation to each entry to produce a new array: Array#map
<b3itz> i can split it without converting to a string then
User4587_ has joined #ruby
<shevy> slow down b3itz
<b3itz> ok
jamto11 has joined #ruby
thsig has quit [Ping timeout: 260 seconds]
<b3itz> inFile = lineString.split(" ")
<jhass> >> '["1 2 3\n", "2 3 4\n"]'.split(' ')
<atmosx> >> require 'bio'
<eval-in__> jhass => ["[\"1", "2", "3\\n\",", "\"2", "3", "4\\n\"]"] (https://eval.in/219039)
<eval-in__> atmosx => cannot load such file -- bio (LoadError) ... (https://eval.in/219040)
<atmosx> blah
<jhass> does that look like what I asked for?
<b3itz> ew no lol
jonr22 has quit [Remote host closed the connection]
existensil has joined #ruby
thsig_ has quit [Ping timeout: 260 seconds]
theotherstupidgu has quit [Ping timeout: 245 seconds]
User458764 has quit [Ping timeout: 258 seconds]
theotherstupidgu has joined #ruby
<b3itz> so i just tried this small case and failed
<b3itz> inFile = File.readlines('input.txt').map {|line| line.chomp } inFile.split(' ') print inFile
<jhass> did you run it? that should be a NoMethodError
<shevy> b3itz see
<b3itz> yep
<b3itz> exacly
patrick99e99 has quit [Ping timeout: 265 seconds]
<shevy> b3itz you need to decide what you want - do you want a String or an Array
<b3itz> i just removed the chomp. that was my bad
<b3itz> still didnt work
<shevy> b3itz if you wish to work on a String, and you have an Array, then you should use .join() method
<b3itz> i need it in an array
<jhass> jhass │ we already learned how to apply an operation to each entry to produce a new array: Array#map
dc_ has quit [Remote host closed the connection]
<jhass> let me introduce you to method chaining:
<shevy> at least he no longer uses while line
bluOxigen has quit [Ping timeout: 265 seconds]
<b3itz> :P
<jhass> >> "foo\n".chomp.upcase
<eval-in__> jhass => "FOO" (https://eval.in/219041)
<b3itz> ive seen that
kireevco has joined #ruby
<existensil> My garage door is currently controlled by a ruby app running on a raspberry pi. Simple sinatra interface right now, but since that's only accessible within my home network looking for a way to integrate with a publicly accessible app I have.
<jhass> existensil: dyndns?
<existensil> Anyone have any recommendations for connecting one ruby app as a client to another
_lexjm has quit [Quit: zzz...]
<jhass> uh, TCPSocket and reading from it I guess
<existensil> I was thinking more publish/subscribe scenario. I'd like to have one app I have to authenticate to that will push messages down to any "internet of things" devices I have connected
<existensil> yeah, I thought about raw sockets
alienaut has joined #ruby
<havenwood> existensil: maybe DRb?
<existensil> was just wondering if there was something a little more robust out-of-the-box with auto-reconnection, channels, and authentication
jleishman has quit [Quit: Be back later ...]
<jhass> well, in classic pubsub scenarios the publisher can initiate a connection to the subscriber
fuhgeddaboudit has joined #ruby
<existensil> I want the raspberry pi to connect on boot to this service and listen for messages.
<havenwood> >> require 'drb/ssl'
<eval-in__> havenwood => libssl.so.1.0.0: cannot open shared object file: No such file or directory - /execpad/interpreters/ruby-2.1.3/lib/ruby/2.1.0/i686-linux/openssl.so (LoadError) ... (https://eval.in/219042)
<existensil> Considered redis, but kind of falls down when it comes to authentication
<existensil> i might check out Drb over ssl
psyprus has quit [Read error: Connection reset by peer]
oleo__ is now known as oleo
<waxjar> cant you open a port on your router and just use http?
<havenwood> or dRuby with ssh port forwarding
jimms has joined #ruby
User458764 has joined #ruby
<existensil> waxjar: I could, but this is far from the last device I will make. I'd prefer all of these raspberry pi's connect to a server that has a bit more power and can manage authentication and other stuff
<waxjar> ah, i see
<existensil> and they just connect/subscribe
andrewlio has quit [Remote host closed the connection]
<existensil> I don't want to try running full rails with asset pipeline and omniauth on the pi
<jhass> IPv6, built for the internet of things :P
<existensil> jhass: that's just transport though. not sure how it helps
<existensil> oh, just saw :-P
<jhass> you don't need port forwarding to do the classic model
<existensil> ah, right
<waxjar> let the pis run a small irc client, and connect to your server
<existensil> IRC?! I don't know why I didn't think of that
<existensil> not a terrible idea really
<existensil> thought about XMPP
<havenwood> existensil: you can use ACL for whitelisting IPs with DRb too
<alienaut> Hey! This is my first blog post in English, and it is about ruby. I hope i did not any mistake. Can you take a look: http://fusuyz.blogspot.com.tr/2014/11/class-me-like-one-of-your-ruby-objects.html
naftilos76 has quit [Remote host closed the connection]
<havenwood> >> require 'drb/acl'
<eval-in__> havenwood => true (https://eval.in/219043)
<existensil> nice
aspires has joined #ruby
<existensil> i might also require an API key or something when establishing the drb connection
User4587_ has quit [Ping timeout: 255 seconds]
<existensil> that shouldn't be hard to implement
luk3thomas has quit [Quit: luk3thomas]
b3itz has quit [Ping timeout: 246 seconds]
jleishman has joined #ruby
cashnguns has quit [Read error: Connection reset by peer]
cashnguns has joined #ruby
dc_ has joined #ruby
cashnguns has quit [Client Quit]
Cort3z has joined #ruby
thsig__ has quit [Remote host closed the connection]
nonks has joined #ruby
User4587_ has joined #ruby
User458764 has quit [Ping timeout: 264 seconds]
braincrash has quit [Ping timeout: 258 seconds]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
Jake232 has joined #ruby
mib_mib has joined #ruby
graydot has joined #ruby
avelldiroll has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
braincrash has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
majjoha has quit [Ping timeout: 258 seconds]
majjoha has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
adriancb has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
atmosx has quit [Quit: Lost in trance]
jimms has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
mdev has quit [Read error: Connection reset by peer]
jleishman has quit [Quit: Be back later ...]
nonks has quit [Ping timeout: 250 seconds]
icedp has quit [Ping timeout: 258 seconds]
User4587_ has quit [Ping timeout: 250 seconds]
KC9YDN has quit [Quit: ☭ Karl Marx & Friedrich Engels, Vladimir Lenin, Josef Stalin, Mao Tse-Tung, Kim Il Sung, Ho Chi Minh, Fidel Castro & Ernesto Guevara ☭]
r0bby_ has quit [Ping timeout: 265 seconds]
canton7 has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
icedp has joined #ruby
Joufflu has quit [Quit: Leaving]
Soda has quit [Remote host closed the connection]
s2013 has joined #ruby
mib_mib has quit [Ping timeout: 255 seconds]
mib_mib has joined #ruby
freerobby has quit [Quit: Leaving.]
Kruppe has quit [Ping timeout: 258 seconds]
User4587_ has joined #ruby
n3phos has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
Wolland has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
Kruppe has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jackyalcine is now known as jalcine
Spami has joined #ruby
kireevco has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
elemenopy has joined #ruby
<elemenopy> just saying thank you to everyone who has helped us so far, you guys rock. that is all.
Wolland has quit [Ping timeout: 265 seconds]
<s2013> you welcome
devdazed has joined #ruby
Cache_Money has joined #ruby
rylev has joined #ruby
xanderwebs has joined #ruby
majjoha has quit [Ping timeout: 260 seconds]
fschuindt has quit [Ping timeout: 240 seconds]
Cat_1 has joined #ruby
ixti has joined #ruby
tuelz has joined #ruby
Spami has quit [Ping timeout: 265 seconds]
<tuelz> I'm working with a new ruby framework (pakyow) that's blowing up because I have vim .swp files in dirs it's autoloading or something. I wanna send a PR to fix it, how do other ruby frameworks handle vim .swp files on autoload?
cerberblue has joined #ruby
iwishiwerearobot has joined #ruby
nahtnam has joined #ruby
<nahtnam> Hey!
luk3thomas has joined #ruby
ctp has joined #ruby
AFKGeek has joined #ruby
<nahtnam> I need a little bit of ruby help. I have a variable called options = {:currecny=>"USD", :amount=>1} I need to wrap it in `query:` so I want it to look like this: {query: {:currecny=>"USD", :amount=>1}}. When I try doing options = {query: {options}}, I get an error saying `unexpected '}'`
AFKGeek has quit [Client Quit]
_ixti_ has joined #ruby
<jhass> remove the inner { }
mib_mib has quit [Ping timeout: 240 seconds]
spastorino has joined #ruby
iwishiwerearobot has quit [Ping timeout: 260 seconds]
jdj_dk has joined #ruby
<nahtnam> jhass: Thanks
ixti has quit [Ping timeout: 255 seconds]
Rapier- has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
AlexRussia has quit [Ping timeout: 256 seconds]
aspires has quit []
<tuelz> can ruby blacklist extentions for autoload?
sinequanon has joined #ruby
luk3thomas has quit [Quit: luk3thomas]
oleo has quit [Quit: Verlassend]
<jhass> tuelz: what do you mean by autoload?
luk3thomas has joined #ruby
vyorkin has quit [Quit: WeeChat 1.0.1]
oleo has joined #ruby
nahtnam has quit [Quit: Page closed]
rylev has quit []
anu has joined #ruby
anu is now known as Guest64992
dkb20k has joined #ruby
graydot has quit [Quit: graydot]
aaronrl has joined #ruby
<tuelz> jhass: I'm not really sure, not that keen on how frameworks load up files for processing/rendering
AlexRussia has joined #ruby
freezevee has joined #ruby
<jhass> tuelz: ruby is no framework
<jhass> it's a language
decoponio has quit [Read error: Connection reset by peer]
<tuelz> right, I'm wondering how ruby frameworks handle it
<jhass> maybe you confuse it with Ruby on Rails?
<tuelz> no, actually the framework is pakyow
freezevee has quit [Remote host closed the connection]
<jhass> then you should look up its docs about autoloading
<tuelz> the error is a rack error argument error invalid byte sequence in UTF-8
decoponio has joined #ruby
<tuelz> jhass: looking at the source right now, not sure when/how it's loading the view files
<tuelz> was hoping there was an idiomatic way to do stuff like that so I knew where to look
mrdevri has joined #ruby
<zenspider> uhhh... I'm confused. what does encoding have to do with autoload, or extensions?
luk3thomas has quit [Quit: luk3thomas]
aaronrl_ has quit [Ping timeout: 264 seconds]
<tuelz> I presume the correct way would be to blacklist vim extentions? Maybe there is a more elegant approach?
<zenspider> vim?
<tuelz> zenspider: possibly nothing :p
<tuelz> right, when you open up a vim buffer it creates a .swp file in the dir you're in
<zenspider> maybe you should describe your actual problem and ask for help in general?
adriancb has joined #ruby
dkb20k has quit [Ping timeout: 264 seconds]
<tuelz> when that .swp file exists it is making the server for this ruby framework (pakyow) blow up
fschuindt has joined #ruby
<zenspider> use a paste service and show your whole error, backtrace and all
x1337807x has joined #ruby
<tuelz> k
<tuelz> here's the backtrace
jdj_dk has quit [Remote host closed the connection]
jimms has joined #ruby
<zenspider> ok. so this really is pakyow being fucking stupid
<zenspider> file a bug on the project
<zenspider> add this backtrace
<zenspider> they shouldn't load EVERY file in a directory and if they do, they should be smarter about it on their own
jimms has quit [Remote host closed the connection]
<zenspider> the problem will be here:
<zenspider> /Users/tuelz/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/pakyow-d08c4348a282/pakyow-presenter/lib/presenter/view_store.rb:115:in `load_templates'
<zenspider> OK. I need foods...
<tuelz> zenspider: awesome thanks. Hoping to fix it myself and push. I work for the guy who is making this framework. I'm sure there is a lot of stuff a single person doens't think about in a frameowrk :)
<tuelz> zenspider: have a good one
fschuindt has quit [Ping timeout: 260 seconds]
mib_mib has joined #ruby
yfeldblum has joined #ruby
timonv_ has quit [Remote host closed the connection]
aspires has joined #ruby
kyb3r_ has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
Wolland has joined #ruby
Danishman has joined #ruby
Wolland_ has joined #ruby
luk3thomas has joined #ruby
spider-mario has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 245 seconds]
tyll has quit [Ping timeout: 245 seconds]
dc_ has quit [Remote host closed the connection]
x1337807x has quit [Read error: Connection reset by peer]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
tyll has joined #ruby
corehook has quit [Remote host closed the connection]
x1337807x has joined #ruby
ctp has joined #ruby
havenwood has quit []
DTSCode has quit [Ping timeout: 272 seconds]
D9 has joined #ruby
avelldiroll has joined #ruby
alexclark has joined #ruby
<alexclark> is there a map like method that won't return nil values?
luk3thomas has quit [Quit: luk3thomas]
Eiam_ has joined #ruby
KC9YDN has joined #ruby
<jhass> alexclark: no, most people chain to .compact, I prefer to do .select/.reject.map
<sweeper> what the hell
<sweeper> alexclark: my name is aleksclark
<alexclark> jhass: .compact will just kill the nils in the array?
<sweeper> are you my evil russian twin?
<jhass> alexclark: yes
<alexclark> jhass: sweet, thanks man!
<sweeper> .\/.
<alexclark> sweeper: no, you spell alex 'aleks'; youre the evil russian
<sweeper> latvian, although my mom didn't know it at the time
<sweeper> she was just being weird
ramfjord has joined #ruby
nonks has joined #ruby
cantonic has quit [Quit: cantonic]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
parus has quit [Ping timeout: 260 seconds]
sinequanon has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
parus has joined #ruby
spyderman4g63 has joined #ruby
sinequanon has joined #ruby
<alexclark> sweeper: haha its a sweet name though. hope it serves you as well as it does me!
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<sweeper> better I suspect ;) aleksclark.com and aleks.io are allll mine :D
kireevco has quit [Quit: Leaving.]
majjoha has joined #ruby
spyderman4g63 has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<alexclark> sweeper: yeah, but im immune to any stalking
spyderman4g63 has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
sinequanon has quit [Ping timeout: 244 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
MattB2 has joined #ruby
parus has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 256 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
parus has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
Xeago_ has joined #ruby
desp has joined #ruby
jleishman has joined #ruby
paulfm has joined #ruby
patrick99e99 has joined #ruby
poweratom_ has quit [Quit: Be back later ...]
poweratom_ has joined #ruby
Xeago has quit [Ping timeout: 258 seconds]
parus has quit [Ping timeout: 260 seconds]
parus has joined #ruby
<shevy> oh god you two nick lovers
shevy is now known as aleksclark
<aleksclark> hey alexclark
desp has quit [Quit: This computer has gone to sleep]
<alexclark> aleksclark: yo
patrick99e99 has quit [Ping timeout: 244 seconds]
sailias has joined #ruby
poweratom_ has quit [Ping timeout: 265 seconds]
<aleksclark> yeah
<aleksclark> we are doing some ruby brogramming here
<aleksclark> even sweeper will join
cantonic has joined #ruby
apeiros has joined #ruby
<mostlybadfly> got my first shoes app done, need to make it package properly :D
byprdct has quit []
<aleksclark> java shoes?
aspires has quit []
<mostlybadfly> i guess yeah, is that shoes4?
<mostlybadfly> i know they made a switch
Rapier- has quit [Ping timeout: 244 seconds]
atmosx has joined #ruby
charliesome has joined #ruby
<atmosx> hello
BTRE has quit [Ping timeout: 250 seconds]
<mostlybadfly> hi atmosx
zz_twistedpixels is now known as twistedpixels
tyll has quit [Ping timeout: 264 seconds]
theotherstupidgu has quit [Ping timeout: 265 seconds]
aleksclark is now known as shevy
<shevy> yeah should be shoes4
tyll has joined #ruby
<mostlybadfly> i see that 3.2 is still being maintained
Cort3z has quit [Ping timeout: 244 seconds]
theotherstupidgu has joined #ruby
<mostlybadfly> i basically just made a silly picture you click on and it makes a sound
Alives has joined #ruby
<Alives> how can i multiply every value in an array by a value, then output as a comma separated string in one line?
rkazak has quit [Quit: Sleep.....ing....]
BTRE has joined #ruby
<jhass> Alives: #map & #join
havenwood has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
yfeldblum has joined #ruby
jleishman has quit [Quit: Lingo: www.lingoirc.com]
byprdct has joined #ruby
fschuindt has joined #ruby
Dude007_ has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rkazak has joined #ruby
alexclark has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
melik has quit [Quit: (null)]
fschuindt has quit [Ping timeout: 272 seconds]
<mostlybadfly> wow i was actually able to get that right away, i am learning something :D
reinaldob has joined #ruby
<Alives> jhass: thanks!
luminor has joined #ruby
sinequanon has joined #ruby
mdarby has joined #ruby
<Alives> jhass: puts [1,2,3].map { |a| 2*a }.join(',') GOT IT! :) thanks
<jhass> you're welcome
paulfm has quit []
tyll has quit [Ping timeout: 240 seconds]
<jhass> Alives: note that if you're doing CSV you should check the csv stdlib
tyll has joined #ruby
mansonik has quit [Ping timeout: 245 seconds]
brandon_ has quit [Ping timeout: 240 seconds]
KC9YDN-2 has joined #ruby
KC9YDN-2 has quit [Client Quit]
brandon_ has joined #ruby
Guest50681 has quit [Ping timeout: 240 seconds]
mansonik has joined #ruby
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mdarby has quit [Quit: Textual IRC Client: www.textualapp.com]
redondos- has joined #ruby
jzigmund has quit [Remote host closed the connection]
jzigmund has joined #ruby
dc_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 272 seconds]
KC9YDN has quit [Ping timeout: 260 seconds]
<Alives> jhass: nah its for an nrpe template for puppet... which i guess doesnt like straight ruby as it wont deal with *
<Alives> gah
x1337807x has joined #ruby
psyprus has joined #ruby
<pontiki> puppet templates use ERB
<MattB2> Speaking of * (sort of), is there a rational explanation of the splat operator? I've used it, but dont really understand what it does.
<pontiki> which is as ruby as ruby is
<pontiki> i'm not sure it's a rational explanation, but i tend to think of it as "zero or more items"
<Alives> pontiki: is that something else?
<Alives> btw the issue was that i had to cast all variables to_f
s2013 has quit [Ping timeout: 264 seconds]
<pontiki> Alives: is what something else?
<Alives> erb != ruby?
<Alives> well i mean i know its not straight
<pontiki> ERB == Embedded Ruby
<Alives> but its ... right
<Alives> cool
<pontiki> the insides of the <% %> is all ruby
<jhass> MattB2: pretty much every place that accepts a comma separated list of things, accepts an array with the splat operator
<jhass> (actually any object that has a to_ary)
benzrf is now known as benzrf|offline
<MattB2> jhass: thanks that makes sense given the context I've seen it used in.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<existensil> MattB2: splats can even be somewhat useful in defining arrays themselves
<existensil> >> a = [1,2,3]; b = [4,5,6]; a + b == [*a, *b]
<eval-in__> existensil => true (https://eval.in/219087)
st1gma has joined #ruby
<jhass> defining a array literal does involve a comma separated list of values ;)
<existensil> indeed
<existensil> just an example most people don't think of
<jhass> I wonder if it would be faster
<jhass> someone(tm) should benchmark it :P
kaspergrubbe has quit [Remote host closed the connection]
luminor has quit []
<existensil> be sure to include various rubies... 1.9.3, 2.1.4, rbx, and jruby at a minimum
<existensil> :-)
<MattB2> existensil: clever, bot certainly not more concise, so why unless it's faster as jhass asked?
<MattB2> *but
<existensil> MattB2: its not more concise in that contrived example, but there are places where it can provide clarity
tvw has quit []
<pontiki> contrived examples rarely are
majjoha has joined #ruby
Guest64992 has quit [Ping timeout: 264 seconds]
<existensil> [:some_student_who_is_always_first, *all_the_other_students]
<MattB2> good point, it's more obvious tht the result is an array
<existensil> is actually a little more clear than [:some_student] + others
<jhass> unshift :P
aaronrl_ has joined #ruby
<MattB2> (for the previous example)
<existensil> [highest_priority_job, *high_priority_jobs, cleanup, *other_jobs]
<existensil> when you array literallys have like sections that expand like that
<existensil> it can make it clearer what is going on
poweratom_ has joined #ruby
<existensil> also, my favorite:
<existensil> >> [*1..10]
<eval-in__> existensil => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/219088)
<existensil> nicer than (1..10).to_a
<existensil> and more concise
<jhass> If find I very rarely need either
<jhass> *I
<existensil> yeah, usually you just iterate on the range itself, but there are times I've needed it
majjoha has quit [Ping timeout: 244 seconds]
aaronrl has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
<jhass> I actually also rarely iterate on ranges
<jhass> 1.upto(10
<jhass> )
charliesome has quit [Quit: zzz]
jamto11 has quit [Remote host closed the connection]
<jhass> 10.times do
<existensil> i use #times a lot
<havenwood> >> Array.new(10, &:next)
<eval-in__> havenwood => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/219089)
adriancb has quit [Remote host closed the connection]
newmanships has joined #ruby
fschuindt has joined #ruby
reinaldob has quit [Ping timeout: 258 seconds]
adriancb has joined #ruby
<existensil> ranges are still awesome for non-sequential interation
<existensil> >> [*(1..100).step(5)]
<eval-in__> existensil => [1, 6, 11, 16, 21, 26, 31, 36, 41, 46, 51, 56, 61, 66, 71, 76, 81, 86, 91, 96] (https://eval.in/219090)
<havenwood> i like #upto and #downto
<havenwood> >> 1.step(by: 5, to: 100).to_a
<eval-in__> havenwood => [1, 6, 11, 16, 21, 26, 31, 36, 41, 46, 51, 56, 61, 66, 71, 76, 81, 86, 91, 96] (https://eval.in/219091)
<havenwood> >> 1.step(by: 5).take 100
<eval-in__> havenwood => [1, 6, 11, 16, 21, 26, 31, 36, 41, 46, 51, 56, 61, 66, 71, 76, 81, 86, 91, 96, 101, 106, 111, 116, 121, 126, 131, 136, 141, 146, 151, 156, 161, 166, 171, 176, 181, 186, 191, 196, 201, 206, 211, 216, 22 ... (https://eval.in/219092)
m8 has quit [Quit: Sto andando via]
bluenemo has joined #ruby
bluenemo has joined #ruby
<MattB2> take(20) ?
<havenwood> hehe, off by 80 error
<jhass> he, 80 is constant so we simplify to 1, do you know nothing about big o notation?! :P
adriancb has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
st1gma1 has joined #ruby
Fezzler has joined #ruby
st1gma has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
dkb20k has joined #ruby
charliesome has joined #ruby
newmanships is now known as Jesse1234
xanderwebs has quit [Quit: Connection closed for inactivity]
Jesse1234 has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
sar_s has quit [Ping timeout: 245 seconds]
KALEGEK has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
newmansh_ has joined #ruby
charliesome has quit [Client Quit]
newmansh_ is now known as Jesse1234
dkb20k has quit [Ping timeout: 255 seconds]
sinequanon has quit []
Fezzler has quit [Quit: Leaving]
boombadaroomba has quit [Ping timeout: 244 seconds]
cephalostrum has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit []
<havenwood> Array.new 10, &:itself #=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
<havenwood> in 2.2.0
<mostlybadfly> i need to use step more often
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mostlybadfly> i end up just a series of arrays assigned to variables
<mostlybadfly> or some nonsense
kyusang13 has joined #ruby
yfeldblum has joined #ruby
DLSteve_ has joined #ruby
ehlovader has quit [Ping timeout: 265 seconds]
Davey has quit [Excess Flood]
tenseiten has joined #ruby
tenseiten has joined #ruby
Alives has quit [Ping timeout: 265 seconds]
uber has quit [Ping timeout: 265 seconds]
lemur_ has joined #ruby
BombStrike has quit [Remote host closed the connection]
Fraeon has quit [Ping timeout: 258 seconds]
lemur has quit [Ping timeout: 265 seconds]
ChoiKyuSang has quit [Ping timeout: 265 seconds]
papercode has quit [Ping timeout: 265 seconds]
ramfjord_ has joined #ruby
Davey has joined #ruby