apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
ghr has quit [Ping timeout: 272 seconds]
fgo_zzZz has quit [Ping timeout: 276 seconds]
function90 has joined #ruby
deric_skibotn_ has joined #ruby
djbkd has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
EvanFreeman has joined #ruby
carlesso has quit [Quit: Leaving]
ferr has joined #ruby
baweaver has quit [Remote host closed the connection]
<weaksauce> anyone use rubymotion here and have an opinion on it? any success on converting existing projects using nibs?
shime_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
leonshalimov has quit [Ping timeout: 245 seconds]
deric_skibotn has quit [Ping timeout: 244 seconds]
deric_skibotn_ is now known as deric_skibotn
JDiPierro has joined #ruby
shime has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
zachrab has quit [Remote host closed the connection]
<spicymagpie> weaksauce: I've used it till few months ago
nanoyak has quit [Quit: Computer has gone to sleep.]
<weaksauce> great spicymagpie! why did you stop using it?
<spicymagpie> two things: it's putting Ruby syntax on top of the same, unmodified Objective C code
postmodern has quit [Quit: Leaving]
<spicymagpie> and I wrote a much faster version of the app using Phonegap (no, really!)
Beoran__ has joined #ruby
<weaksauce> ha! did you publish it in the app store?
Zai00 has quit [Quit: Zai00]
hmsimha has joined #ruby
<spicymagpie> not sure if they published it. I stopped working for that company.
zachrab has joined #ruby
baweaver has joined #ruby
<spicymagpie> my opinion on RubyMotion is that it's just a rubyfication of Objective C
<spicymagpie> if you don't know Objective-C, you'll end up knowing the libraries, so it's worthless
<weaksauce> yeah it definitely is.
<weaksauce> did you use any of the wrapper classes like bubblewrap?
<weaksauce> to make it more "ruby" like
<spicymagpie> yep. a few ones
<spicymagpie> it simply didn't feel right for me
<weaksauce> interesting. I know obj-c but would like to get away from it just because it's clunky and I like the ruby syntax quite a bit
Beoran_ has quit [Ping timeout: 264 seconds]
adriancb has joined #ruby
Sawbones has quit [Remote host closed the connection]
djbkd has joined #ruby
<spicymagpie> take a look at the examples. I found it worthless but that's opinionated.
Lexun has quit [Remote host closed the connection]
FooMunki has joined #ruby
<weaksauce> look at them to what end spicymagpie?
lmickh has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
roshanavand has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<spicymagpie> just to check if you'll feel comfortable writing RubyMotion apps
michael_mbp has quit [Excess Flood]
apeiros_ has joined #ruby
adamkittelson has quit [Remote host closed the connection]
michael_mbp has joined #ruby
zachrab has joined #ruby
adriancb has quit [Remote host closed the connection]
ec is now known as ELLIOTTCABLE
<weaksauce> ah. yeah I know ruby, rails, c, and obj-c. no surprises there. How long were you working with rubymotion before that?
Aova has joined #ruby
codeFiend has joined #ruby
jglover has joined #ruby
<jglover> has anybody here overcome BadURI error when using firebase-ruby
<jglover> i really need to ship this thing today
jglover has quit [Quit: leaving]
jglover has joined #ruby
Megtastique has joined #ruby
bklane has quit [Remote host closed the connection]
learner has joined #ruby
roshanavand has quit [Quit: roshanavand]
<learner> guys how can I declare the kind of error raised in an it clause?
jgt2 has quit [Ping timeout: 255 seconds]
postmodern has joined #ruby
tris has joined #ruby
roshanavand has joined #ruby
<learner> ie it "raises an error <something to declare error type>" do ...
it0a has joined #ruby
<bricker> learner: what?
<learner> bricker, I want to make the same it clause check for different errors, using a variable defining different error types
pdoherty has joined #ruby
<bricker> learner: oh. Loop through an array of errors
<learner> like ArgumentError, SyntaxError etc
<bricker> [SomeError, AnotherError, LastError].each { |e| it "raises an error #{e}" ... }
<learner> ok thanks
martinium has quit [Remote host closed the connection]
<weaksauce> jglover puts the uri out and see what's up there
longfeet has quit [Ping timeout: 252 seconds]
<spicymagpie> weaksauce: 8-9 months
<spicymagpie> (sorry, it's dinner time here)
<spicymagpie> what about you?
tcrypt has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
frek818 has quit [Quit: frek818]
bklane has joined #ruby
<weaksauce> a few days now.
apeiros_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
tyfighter has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
ELLIOTTCABLE is now known as ec
DadoCe has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
<jglover> fails every time
<jglover> so irritating
ta has joined #ruby
<jglover> ive tried URI encoding and parsing
<jglover> now I'm using Addressable
<jglover> still no luck
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<chipotle> anyone here us atom for ruby files? do you find it slow?
ta_ has joined #ruby
bronson has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
_1_misty has joined #ruby
_1_misty has quit [Excess Flood]
siggy has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<weaksauce> jglover can you gist the relevant code?
roshanavand has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
Megtastique has quit []
bklane has joined #ruby
<jglover> one line lo
<jglover> lol
<weaksauce> you missing the / at the end?
hiyosi has joined #ruby
joelteon has joined #ruby
bklane has quit [Remote host closed the connection]
<weaksauce> do you need to authenticate?
ta has quit [Ping timeout: 276 seconds]
bklane has joined #ruby
<jglover> weaksauce: not in this case
<jglover> works in angular without authentication
<jglover> is BADURI a catchall for just "this failed" ?
roshanavand has quit [Read error: Connection reset by peer]
<weaksauce> doubt it... but, that depends on how they wrote the gem
nobitanobi has joined #ruby
reinaldob has quit [Remote host closed the connection]
Flcn has quit [Quit: Be back later ...]
<joelteon> why does gem say "Could not find a valid gem" if I'm passing it a filepath?
<joelteon> can it not access the filepath?
cjim has quit [Quit: (null)]
fryguy9 has quit [Quit: Leaving.]
<joelteon> oh, it still checks the registry even if it's given a filepath
<joelteon> and passed --ignore-dependencies
<joelteon> ummmm, why
<weaksauce> jglover gist the full stack trace
bklane has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
jiiam has joined #ruby
roshanavand has joined #ruby
rbennacer has joined #ruby
quimrstorres has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
codeFiend has quit [Quit: codeFiend]
pietr0 has quit [Quit: pietr0]
tcrypt has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frek818 has joined #ruby
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
reset has quit [Remote host closed the connection]
cphrmky has quit [Quit: Textual IRC Client: www.textualapp.com]
reset has joined #ruby
codeFiend has joined #ruby
adriancb has joined #ruby
rbennacer has quit [Ping timeout: 245 seconds]
dfinninger has joined #ruby
ta has joined #ruby
uptownhr has quit [Quit: uptownhr]
jefus_ is now known as jefus
ghr has joined #ruby
roshanavand has quit [Client Quit]
fgo_zzZz has joined #ruby
roshanavand has joined #ruby
einarj has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 240 seconds]
<jglover> weaksauce: just used HTTParty
<jglover> will not be trying that firebase gem again
PaulCape_ has joined #ruby
nanoyak has joined #ruby
<weaksauce> ah glad you got it working
ghr has quit [Ping timeout: 246 seconds]
Channel6 has quit [Quit: Leaving]
DrCode has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
<pipework> jglover: lul
fgo_zzZz has quit [Ping timeout: 276 seconds]
Lexun has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
EvanFreeman has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 240 seconds]
<jglover> pipework: wasted way too much time on that. httparty done in about 5 minutes. firebase-ruby: all the minutes
fumk has joined #ruby
<pipework> jglover: I'm more a fan of faraday.
<pipework> But yeah, go jglover and httparty!
Lexun has quit [Remote host closed the connection]
blackmesa has joined #ruby
it0a has quit [Quit: WeeChat 1.1]
veduardo has quit [Quit: WeeChat 0.4.2]
nanoyak has quit [Ping timeout: 264 seconds]
marr has quit [Ping timeout: 264 seconds]
avahey91 has joined #ruby
MrBeardy has quit []
Lexun has joined #ruby
philwantsfish has quit []
patrick99e99 has quit [Ping timeout: 244 seconds]
nobitanobi has quit []
Channel6 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
ec is now known as ELLIOTTCABLE
djbkd has joined #ruby
Rayford has joined #ruby
DrCode has joined #ruby
crueber has quit [Quit: Leaving.]
longfeet has joined #ruby
philwantsfish has joined #ruby
commmmodo has quit [Quit: commmmodo]
jherbst has joined #ruby
PanzerModern has quit [Remote host closed the connection]
metadave has joined #ruby
jglover has quit [Quit: Lost terminal]
wallerdev has joined #ruby
ta has quit [Read error: Connection timed out]
<Rayford> whats the best way to similar SSL on localhost with sinatra?
mrmargolis has joined #ruby
leonshalimov has joined #ruby
kalusn has joined #ruby
<jhass> why do you need to?
phoo1234567 has quit [Quit: Leaving]
<jhass> I'd probably just setup a reverse proxy like on production
<Rayford> testing some callbacks that require HTTP url
Lexun has quit [Remote host closed the connection]
<Rayford> hTTPS
<jhass> who does enforce that?
Lexun has joined #ruby
<jhass> do you have control over request headers?
xivusr has quit [Ping timeout: 264 seconds]
<Rayford> no
<Rayford> from GitLab
joshbamboo2 has joined #ruby
jiiam has quit [Quit: leaving]
<Rayford> no control over it
<Rayford> know of any app or reference prox app that makes this simple?
tjohnson has joined #ruby
kyb3r_ has joined #ruby
ta has joined #ruby
kayloos has quit [Ping timeout: 245 seconds]
nuck has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Lexun has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 246 seconds]
joshbamboo1 has quit [Ping timeout: 256 seconds]
<jhass> boxcars makes it simple for http, but not for https I don't know
Lexun has joined #ruby
<spicymagpie> Rayford, use an HTTP proxy over your application. It's relatively simple with Apache, I think.
<jhass> might hit up github search on that
<jhass> but nginx/apache is simple enough
blizzy has quit [Ping timeout: 264 seconds]
<jhass> enough example configs online
lexun_ has joined #ruby
<jhass> (although many of the nginx ones are kinda bad)
<jhass> (but that doesn't matter much for a test setup)
<spicymagpie> (apache isn't doing any better, AFAIK)
eytanfb has quit [Ping timeout: 252 seconds]
nuck has quit [Client Quit]
fgo_zzZz has joined #ruby
dfinninger has joined #ruby
Aova has joined #ruby
bashusr has joined #ruby
PaulCapestany has joined #ruby
Megtastique has joined #ruby
Rayford has quit [Quit: Rayford]
Megtastique has quit [Max SendQ exceeded]
Lexun has quit [Ping timeout: 240 seconds]
Megtastique has joined #ruby
<spicymagpie> Rayford: check this
lexun_ has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 244 seconds]
hephaestus_rg has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
<jhass> they left
skj3gg has quit [Quit: ZZZzzz…]
skj3gg has joined #ruby
<spicymagpie> didn't see the quit message. too bad, it's hard to look into 10 Tb of HD to find an example :c
jamison_ has joined #ruby
nuck has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
deric_skibotn has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Quit: My people need me...]
siggy has quit [Quit: siggy]
ramfjord has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ellisTAA has left #ruby [#ruby]
icbm has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
pontiki has joined #ruby
spyderman4g63 has joined #ruby
fryguy9 has joined #ruby
fryguy9 has quit [Client Quit]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
ecksit has joined #ruby
ecksit has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
ecksit has joined #ruby
towski_ has quit [Quit: Leaving...]
fgo_zzZz has quit [Ping timeout: 276 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
tsnz has joined #ruby
baweaver has joined #ruby
iamninja has quit [Remote host closed the connection]
towski_ has joined #ruby
siggy has joined #ruby
iamninja has joined #ruby
eka has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1]
spyderman4g63 has quit [Ping timeout: 256 seconds]
copy0401 has joined #ruby
vdamewood has joined #ruby
checkit has quit [Ping timeout: 255 seconds]
dfinninger has joined #ruby
pengin has quit [Remote host closed the connection]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsnz has quit [Ping timeout: 245 seconds]
pengin has joined #ruby
jamison_ has quit [Ping timeout: 255 seconds]
uptownhr has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
amclain has joined #ruby
siggy has quit [Quit: siggy]
Joufflu has joined #ruby
siggy has joined #ruby
zachrab has quit [Remote host closed the connection]
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
pengin has quit [Ping timeout: 256 seconds]
shime_ has quit [Remote host closed the connection]
commmmodo has joined #ruby
mikepack has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
russt has quit [Quit: russt]
kenneth has joined #ruby
ghr has joined #ruby
zachrab has quit [Remote host closed the connection]
uptownhr has quit [Quit: uptownhr]
skj3gg has quit [Quit: welp, see you later.]
kenneth has quit [Client Quit]
tcrypt has quit [Remote host closed the connection]
cp41 has joined #ruby
mloveless has quit [Remote host closed the connection]
PaulCapestany has quit []
martinium has quit [Remote host closed the connection]
frek818 has quit [Quit: frek818]
ghr has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
DadoCe has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
_Andres has joined #ruby
PaulCapestany has joined #ruby
cookiegambit has joined #ruby
voodoofish430 has left #ruby [#ruby]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
siggy has quit [Quit: siggy]
deric_skibotn has quit [Ping timeout: 240 seconds]
hephaestus_rg has left #ruby [#ruby]
jonr22 has quit [Remote host closed the connection]
Musashi007 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Lingo_ has quit [Quit: (null)]
towski__ has joined #ruby
zwer_q is now known as zwer
quimrstorres has joined #ruby
towski_ has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
cp41 has quit [Remote host closed the connection]
krz has joined #ruby
pontiki has quit [Quit: bbl]
thatslifeson has joined #ruby
havenwood has quit [Remote host closed the connection]
towski__ is now known as towski_
xivusr has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jpstokes has joined #ruby
greenbagels has joined #ruby
xivusr has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
Megtastique has quit [Read error: No route to host]
Aova has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
odin22 has joined #ruby
athan has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
tyfighter has quit [Quit: tyfighter]
Aova has joined #ruby
towski_ has quit [Remote host closed the connection]
einarj has joined #ruby
postmodern has quit [Quit: Leaving]
bricker has quit [Quit: leaving]
fgo_zzZz has joined #ruby
reset has quit [Quit: Leaving...]
wallerdev has joined #ruby
odin22 has quit [Remote host closed the connection]
Channel6 has quit [Ping timeout: 252 seconds]
Musashi007 has quit [Quit: Musashi007]
supergiel has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
blackoperat has joined #ruby
fgo_zzZz has quit [Ping timeout: 245 seconds]
pdoherty has joined #ruby
agjacome has quit [Quit: leaving]
Fraeon has quit [Ping timeout: 246 seconds]
jamison_ has joined #ruby
danjordan has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
Megtastique has quit []
thumpba has quit [Ping timeout: 264 seconds]
cookiegambit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
x77686d has joined #ruby
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
psy_ has quit [Remote host closed the connection]
Channel6 has joined #ruby
<kl> I am le sad
<kl> not one single ORM gem in Ruby implementing the Data Mapper pattern.
<kl> (Except Perpetuity, which doesn't have as much development as I'd like)
thatslifeson has quit [Quit: Leaving]
cookiegambit has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
thatslifeson has joined #ruby
chinmay_dd has joined #ruby
quimrstorres has quit [Remote host closed the connection]
zwer has quit [Remote host closed the connection]
zwer has joined #ruby
ellisTAA has joined #ruby
ellisTAA has left #ruby [#ruby]
chipotle has quit [Quit: cheerio]
quimrstorres has joined #ruby
Musashi007 has joined #ruby
baweaver has quit [Remote host closed the connection]
techietrash has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jamison_ has quit [Ping timeout: 255 seconds]
athan has joined #ruby
ta has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
CrazyM4n has quit [Remote host closed the connection]
kapil__ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Pandorian has joined #ruby
nfk has quit [Quit: yawn]
chipotle has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
bronson has joined #ruby
Sawbones has joined #ruby
swgillespie has joined #ruby
leonshalimov has joined #ruby
mikepack has quit [Remote host closed the connection]
Manj-811-Xfce2 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
ta has joined #ruby
DadoCe has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 255 seconds]
echevemaster has joined #ruby
cookiegambit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
yeticry has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 276 seconds]
adriancb has quit [Remote host closed the connection]
yeticry has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
hamakn has joined #ruby
patrick99e99 has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
ta has joined #ruby
hamakn has joined #ruby
cashnguns has joined #ruby
Rayford has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
Manj-811-Xfce2 has quit [Remote host closed the connection]
supergiel has quit [Remote host closed the connection]
kenneth has joined #ruby
hamakn has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 246 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oleo is now known as Guest45850
oleo__ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
Aova has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Musashi007 has joined #ruby
avahey91 is now known as avahey_in_the_co
avahey_in_the_co is now known as avaheyInTheCorne
hamakn has quit [Read error: Connection reset by peer]
avaheyInTheCorne is now known as vaheyInTheCorner
jonesthedolphin has quit [Ping timeout: 265 seconds]
maximski has joined #ruby
hamakn has joined #ruby
cpt_yossarian has quit [Quit: And then he took off.]
cpt_yossarian has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Guest45850 has quit [Ping timeout: 276 seconds]
FooMunki has quit [Quit: FooMunki]
yfeldblum has joined #ruby
Aova has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has quit [Ping timeout: 245 seconds]
fgo_zzZz has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
_maes_ has joined #ruby
postmodern has joined #ruby
tsnz has joined #ruby
fgo_zzZz has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
tsnz has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
Channel6 has quit [Ping timeout: 264 seconds]
tus has quit []
ferr has quit [Quit: Lost terminal]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frek818 has joined #ruby
blackoperat has quit [Ping timeout: 255 seconds]
icbm has quit [Quit: Leaving]
maximski has quit []
sudog has quit [Ping timeout: 245 seconds]
sudog has joined #ruby
<jonmorehouse> within eventmachine, is there a way to queue up deferrables? IE: defer1 outputs to defer2
<jonmorehouse> so that they run in a waterfall like manner?
tjohnson has quit [Quit: Connection closed for inactivity]
bklane has joined #ruby
radic has quit [Ping timeout: 245 seconds]
learner has quit [Ping timeout: 252 seconds]
radic has joined #ruby
learner has joined #ruby
kenneth has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
sudog has quit [Remote host closed the connection]
poguez has quit [Quit: Connection closed for inactivity]
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
cashnguns has quit [Remote host closed the connection]
britt_ has joined #ruby
fgo_zzZz has joined #ruby
CedroK has joined #ruby
marcdel has joined #ruby
<CedroK> Is there a place where we could watch niggers chimp the fuck out???
kalusn has quit [Remote host closed the connection]
tyfighter has joined #ruby
CedroK has quit [K-Lined]
sudog has joined #ruby
ghr has joined #ruby
britt_ has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
lukeholder has joined #ruby
bklane has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
iamninja has quit [Remote host closed the connection]
iamninja has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lexun has joined #ruby
braincrash has quit [Quit: bye bye]
arup_r has joined #ruby
bufferloss has joined #ruby
kenneth has joined #ruby
skj3gg has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
softinio has joined #ruby
kenneth has quit [Client Quit]
<bufferloss> hi, so I've been googling a bit, but haven't been able to find a solution for this yet:
<bufferloss> "No source for ruby-2.0.0-p598 provided with debugger-ruby_core_source gem."
<bufferloss> I'm on windows 8.1
braincrash has joined #ruby
<bufferloss> I've seen this when using RVM on Mac OS X, but I solved it by just installing with --disable-binary
<bufferloss> however, I'm not sure how to go about solving this on windows, I installed devkit, followed the instructions ala ruby dk.rb init; ruby dk.rb install;
<bufferloss> is it possible to install the debugger on windows?
freerobby has quit [Quit: Leaving.]
psy_ has joined #ruby
softinio_ has joined #ruby
hamakn has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has joined #ruby
Sawbones has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
vaheyInTheCorner is now known as avahey
arescorpio has quit [Excess Flood]
tcrypt has joined #ruby
ta has quit [Ping timeout: 245 seconds]
Aova has quit [Read error: Connection reset by peer]
<chipotle> anyone here try jetbrain's IDEs, either rubymine or intellij?
<chipotle> what do you think, for someone new to programming and ruby?
<chipotle> i was using sublime text 3, but the dev has been mia for over a year
Lexun has quit [Remote host closed the connection]
<bufferloss> chipotle, sublime is just fine, a good majority of devs that I know use sublime (2 and 3)
<chipotle> bufferloss: yeah, well who knows how much longer it'll last with the dev being unresponsive
<chipotle> so i wanted to give rubymine or intellij was any good?
<bufferloss> try it and see
<bufferloss> I doubt sublime is going anywhere soon
<bufferloss> unlikely to be entirely abandoned
<chipotle> i don't think sublime is solely a text editor, since it has a full featured package manager. but i could be wrong
<bufferloss> and that means... what? not much... what's your point?
<bufferloss> sublime is fine, if you want to use something else out of fear, go ahead
ta has joined #ruby
agrinb has quit [Remote host closed the connection]
Rayford has quit [Quit: Rayford]
<chipotle> bufferloss: i'm just saying i don't really see a clear distinction between an IDE and text editor, jeeze
<chipotle> so hostile
swgillespie has joined #ruby
<bufferloss> you didn't say that, you said something else entirely
<bufferloss> that is more direct and to the point
Aova has joined #ruby
<bufferloss> an IDE typically provides "language understanding" types of features, as in the IDE will often read the source code and "process" it in a way that the compiler/interpreter would in order to give you "extra" features like completion
<bufferloss> it's not worth it in my opinion given the bloat you have to deal with by using an editor that's fundamentally built on top of an already bloated piece of Java software
<bufferloss> though really only you can answer whether you like it, by trying it
<bufferloss> so, go try it
russt has joined #ruby
<bufferloss> a text editor is typically seen to be lightweight and mostly language and build system agnostic - it provides facilities for editing text, any text, of any language, rather than focusing on language and compiler/interpreter/environment specific features
<bufferloss> most people who think they want an IDE just haven't ever used a good text editor, or haven't actually learned the advanced capabilities of the text editor they use
Sawbones has quit [Remote host closed the connection]
<chipotle> i see
jpstokes has quit [Remote host closed the connection]
<chipotle> well, it's a complicated decision, heh
ta has quit [Ping timeout: 256 seconds]
<bufferloss> not really
<bufferloss> just pick one, use it
<bufferloss> you won't be impacted as much as you think you will
<bufferloss> especially if you're new
Sawbones has joined #ruby
<chipotle> what text editor do you use?
<chipotle> i heard good things about atom, but it's slowww
<bufferloss> I have a co-worker who uses atom and loves it, but yes, even he acknowleges that it is slow
<bufferloss> chipotle, you don't want to use the editor I use, trust me
x77686d has quit [Quit: x77686d]
ta has joined #ruby
<chipotle> vim?
<bufferloss> chipotle, yup
<chipotle> heh
russt has quit [Quit: russt]
<bufferloss> chipotle, I use rubymine occasionally for the gui debugger, cuz it's nice, but even then I hardly use it much
nuck has quit [Quit: Computer has gone to sleep.]
<bufferloss> puts and binding.pry are good enough for most of my needs
gawd has quit [Quit: Leaving]
pdoherty has joined #ruby
<bufferloss> chipotle, seriously though, just use sublime and stop worrying - go program instead
<bufferloss> it doesn't really matter
hamakn has quit [Remote host closed the connection]
<bufferloss> you're not gonna get that much out of agonizing over which editor to use
<chipotle> true
<Senjai> bufferloss: What, vim is amazing
<bufferloss> Senjai, I never said it isn't
<Senjai> If you dont know how to code, go for easy editors, until you need better editors
<bufferloss> precisely
<Senjai> but new programmers dont need awesome editors, just ones that work and can be picked up instantly
dunpeal has joined #ruby
<bufferloss> yep
<bufferloss> is there an echo in here?
<Senjai> sidenote: Streaming linux desktop to twitch
<Senjai> was interesting
<dunpeal> Hi. I'm trying to `require "foo"`, but it requires a file from the gem library. can I force it to use the one from the CWD instead?
<Senjai> pulseaudio ftl
ta has quit [Ping timeout: 276 seconds]
<Senjai> dunpeal: In your gemfile: gem "foogem", path: '.'
vim-shim has joined #ruby
<dunpeal> Senjai: it's not my gem :) in fact, I'm trying to override a gem-installed library
<chipotle> have you read the well grounded rubyist, bufferloss ?
<Senjai> chipotle: Just do rubykoans.
<Senjai> chipotle: Read books after that if you're still interested
<chipotle> rubykoans?
<Senjai> We get our junior devs to do the koans
dopie has quit [Quit: Leaving]
<Senjai> chipotle: !g rubykoans
dopie has joined #ruby
<dunpeal> basically, I have /dir/bar.rb, from which I'm trying to `require "foo"`, but I want it to required /dir/foo.rb, NOT the gem library foo.rb
marcdel has quit []
pdoherty has quit [Ping timeout: 245 seconds]
<Senjai> dunpeal: I dont recommend require_relative, but require_relative
<Senjai> dunpeal: You should have a better autoload system setup. Your $LOAD_PATH should have your application at the top of it
<chipotle> do any of you guys use vagrant to develop, or do you do it the old fashion way: VM that you share after taking screenshots?
<Senjai> chipotle: !use
<helpa> chipotle: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
softinio_ has quit [Remote host closed the connection]
<Senjai> Also, no, no reason to use vagrant
<Senjai> only when developing on rails for rails
<dunpeal> Senjai: amazingly, `require_relative "foo"` doesn't work
<Senjai> dunpeal: You're probably not using it correctly
davedev24_ has quit []
<dunpeal> require_relative 'gettc'
<dunpeal> inside bar.rb
<Senjai> dunpeal: I suggest reading the documentation for it.
<dunpeal> OK, thanks
dunpeal has left #ruby [#ruby]
<chipotle> and is railscasts something a beginner should listen to?
<Senjai> chipotle: Do you know ruby?
iamninja has quit [Quit: ZZZzzz…]
<bufferloss> chipotle, I've found little need for VMs lately - it was a bigger deal a few years ago
<bufferloss> chipotle, only real reason to use a VM is if you're on a non-sane OS like windows
Sawbones has quit [Remote host closed the connection]
<Senjai> bufferloss: WE DONT TALK ABOUT HEATHENS HERE
<Senjai> :P
Xeago has joined #ruby
<chipotle> Senjai: i read learn to program by chris pine
<chipotle> now i'm on chapter one of the well grounded rubyist...
<Senjai> chipotle: Before thinking about rails, I'd get ruby down unless you're already seasoned in another language.
<Senjai> chipotle: I would suggest doing rubykoans before reading that book
<Senjai> I would also suggest programming ruby 2.0 from pragprog over the well grounded rubyist should you choose a book
<chipotle> why do you recommend rubykoans over that book? i thought it was highly regarded?
<chipotle> why?
Xeago_ has quit [Ping timeout: 245 seconds]
<chipotle> they came out with a new edition that supports ruby 2.x
<chipotle> rather than the first ed that was 1.9
<Senjai> chipotle: Because, rubykoans is interactive, you work through the examples, a book is a book. rubykoans will tell you if you want to continue with ruby or not
<Senjai> and gives you a working knowledge faster than a book
<Senjai> one you can go to rails with.
<bufferloss> books are overrated these days
<chipotle> ok
<chipotle> how long does it take to go through it?
josephndenton has quit [Ping timeout: 256 seconds]
<Senjai> If, at that time you want a deeper look, read programming ruby.
<bufferloss> there's so many good tutorials out there freely available on the internet
<chipotle> i'm looking at their site now
<Senjai> chipotle: Our juniors take about a day and a half
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
russt has joined #ruby
lkba has joined #ruby
<Senjai> bufferloss: Eh, I like books
ta has joined #ruby
<Senjai> bufferloss: Tutorials can teach you SO many bad habits
snath has quit [Ping timeout: 245 seconds]
<bufferloss> so can books
<Senjai> bufferloss: Unless you have someone you work with that can tell you the guy is an idiot
<bufferloss> indeed, same with books
<Senjai> bufferloss: Correct, but books are typically more peer reviewed and complete.
<bufferloss> hah, not in my experience
<chipotle> it says 1.9 and 2.0
<Senjai> chipotle: yes
<bufferloss> I've seen so many books suggesting horrible things and with half of the code examples broken or with typos
<Senjai> chipotle: From a beginners standpoint, there is like, no difference between 1.9 and 2.0
<Senjai> bufferloss: Ah, I only read well establshed books :P
<Senjai> chipotle: But get it from pragprog
<bufferloss> I'm talking about well established books
<Senjai> Any examples?
<chipotle> Senjai: wh pragprog over amazon?
Hijiri has joined #ruby
<vandemar> pragprog doesn't drm-cripple their books
<chipotle> *why not wh
<Senjai> Because you also get the pdf, + free updates, + in any format for any reader, + pragprog is an AWESOME company headed up by dave thomas
<Senjai> + drm free as mentioned
<chipotle> ah, okay
<Senjai> and amazon rapes publishers, which in turn have to rape authors
<chipotle> how long is it on average, that i'll be good enough with ruby to do some rails or sinatra and build a simple web app?
<chipotle> (i have a drupal dev background, trying to learn something nicer for the future)
<Senjai> chipotle: Avoid sinatra, really. It's good for specialized things, but you'll have to generate a lot of boilerplate
ta has quit [Ping timeout: 276 seconds]
<Senjai> chipotle: Iuno, depends on the definition of simple.
<Senjai> and your ability to learn
<Senjai> I wouldnt even ask the question
<Senjai> just do what you want to
diegoviola has quit [Quit: WeeChat 1.1]
<Senjai> if you dont want to learn it, dont :/
<chipotle> Senjai: oh, i thought the opposite; sinatra was well liked and rails was losing favor
<chipotle> ok, i'll stick to rails!
<Senjai> rails is certainly not losing favor.. Sinatra is well liked, but its lower level then I'd advise. It's pretty much just a wrapper for rack.
leonshalimov has joined #ruby
ta has joined #ruby
mikepack has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
<vim-shim> I teach at a web dev boot camp, and we get our students to make a command-line app, a sinatra app, and then finally do it in rails so they can appreciate all the magic they're getting in the background for free.
<chipotle> how do you recommend learning rails?
crueber has joined #ruby
<chipotle> what i mean by simple, basically a forward facing marketing website for a b2b company using twitter bootstrap
<chipotle> that's basically what i do now in drupal
<longfeet> aw fuk i want some chipotle but they closed 2 hours ago
<chipotle> longfeet: ilu2
<Senjai> vim-shim: Sinatra is totally not necessary imo
<Senjai> chipotle: write code. It's that simple.
<longfeet> also i ran of chipotle-away
<vim-shim> It's a nice way to make them pay attention to the request/reponse model and put their toes in the water without all of Rails.
j0n3 has quit [Read error: Connection reset by peer]
<chipotle> what's considered a good book for learning rails once i have ruby down?
<Senjai> vim-shim: I mean, I guess. But once you step into rails, a large amount of that is stuff you never need to think about for a very long time.
<Senjai> Until you need custom middleware and the like
<Senjai> chipotle: Not agile web development with rails
<chipotle> whats middleware?
<Senjai> chipotle: Rails in Action
<Senjai> chipotle: !g middleware
<chipotle> the koans site isn't working :( http://koans.herokuapp.com
<chipotle> http://rubykoans.com when i click rubykoans online i get that error message
ta has quit [Ping timeout: 255 seconds]
leonshalimov has quit [Ping timeout: 244 seconds]
<Senjai> chipotle: http://rubykoans.com/
<Senjai> download the koans
jschoolcraft has quit [Quit: zzzz]
<bufferloss> chipotle, although honestly the canonical documentation is really good http://guides.rubyonrails.org/getting_started.html
mikepack has quit [Ping timeout: 244 seconds]
<Senjai> chipotle: Rails in Action from manning is good
<chipotle> is rails 3 in action okay, or should i wait until they publish rails 4.x book in mid march?
<chipotle> Senjai: ^
<bufferloss> chipotle, you should stop agonizing over books and text editors and go write some code
<bufferloss> this is all quite counterproductive
<Senjai> chipotle: ^
ghr has joined #ruby
<chipotle> bufferloss: have to know how to write code first!
<Senjai> Your wasting your time asking about rather than doing :P
<bufferloss> chipotle, we've given you several places to learn that
<chipotle> Senjai: is rails 3 still something i should learn, or should i wait for rails 4?
* Senjai facepalms
<chipotle> bufferloss: yes, thank you. but i'm asking about rails, which is the next step after ruby
<bufferloss> chipotle, no it's not "the next step"
<bufferloss> it's only one of a zillion gems for ruby
<Senjai> There is no steps yo.
<vim-shim> Reading a book is like watching a Karate video. You have to pratice the thing to really get it.
tejas-manohar has quit [Quit: Page closed]
<bufferloss> chipotle, and I gave you a well established and high quality free online interactive rails tutorial
<bufferloss> as well as the canonical documentation for rails noobs
<Senjai> vim-shim: haha
<Senjai> vim-shim: Haven't heard that one before
<bufferloss> but apparently you've chosen to ignore both of those and pretend I didn't provide either of them
<bufferloss> chipotle, did you even try clicking this link? http://www.codecademy.com/en/learn/make-a-rails-app/topics/ruby/exercises/ruby-welcome or am I just talking to a brick wall?
<chipotle> bufferloss: yes! but i didn't sign up
<chipotle> i don't just sign up for various things without researching it first
<bufferloss> chipotle, no need to sign up for this http://guides.rubyonrails.org/getting_started.html
<vim-shim> Anyone that ever got halfways good at Ruby or Rails has read the docs until they can recite method families in their sleep. If you want to learn it, you have to make yourself like it.
<bufferloss> so I guess you didn't click that one then
britt_ has joined #ruby
<chipotle> well, there is a MEAP of rails 4 in action, so i bought that. thanks all
<bufferloss> zomg
<chipotle> bufferloss: yes i did!
<chipotle> if you go to that page, it asks you to sign in or sign up!!
<bufferloss> uhh, wtf are you talking about, rails guides doesn't require sign up
britt_ is now known as p3ery
lamasnik has quit [Ping timeout: 255 seconds]
<bufferloss> chipotle, you know what you are? you're an askhole... a person who asks questions but doesn't actually care about the answers and just does what he wants or was originally going to do anyway
bronson has joined #ruby
<bufferloss> "hey what's your opinion on foo? ok cool I don't care I did bar anyway"
<bufferloss> chipotle, go write some code, for serious
<vim-shim> wax on, wax off!
ghr has quit [Ping timeout: 245 seconds]
russt has quit [Quit: russt]
<chipotle> bufferloss: what the fuck are you talking about? i downloaded rubykoans and i bought the rails 4 book as a MEAP from manning. neither of which i heard of before coming here. before coming here i had the well grounded rubyist and planned to use that
<vim-shim> Even retyping source code is better that agonizing over which book to read first or next.
<chipotle> you could just chill out
<Senjai> chipotle: !gts
<helpa> chipotle: When you think we're not being helpful, or helpful enough.. See this: http://youtu.be/N9rJJSiUy0I
<chipotle> and then you call me a liar because when i go to a page you linked, it asks you to sign up
<bufferloss> chipotle, I'm talking about the fact that you obviously didn't take the 2 seconds require to go look at this page guides.rubyonrails.org/getting_started.html
<bufferloss> chipotle, NO guides.rubyonrails.org/getting_started.html does NOT fucking require sign up you fool
<bufferloss> fuck
<chipotle> bufferloss: but the other link you picked does, god are you autistic? "chipotle, did you even try clicking this link? http://www.codecademy.com/en/learn/make-a-rails-app/topics/ruby/exercises/ruby-welcome or am I just talking to a brick wall?"
<Senjai> bufferloss: chill :P
chipotle has left #ruby ["cheerio"]
crueber has quit [Quit: Leaving.]
dseitz has joined #ruby
<bufferloss> chipotle, yeah, let's talk about that whole "who's autistic" thing
<timanema> /me is enjoying #ruby tonight
<timanema> haha messed that up
<Senjai> timanema: !popcorn6
russt has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
LouisRoR has joined #ruby
Xeago has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
<vim-shim> still better than ##javacript
<timanema> vim-shim: I left that place because of bad questions but if there are lots of js fights maybe I will go back
<timanema> vim-shim: War of the Frameworks
<bufferloss> rails vs sinatra... discuss...
tyfighter has quit [Quit: tyfighter]
<timanema> bufferloss: each are a tool to be used in specific situtaions
<timanema> like all tools
<timanema> you dont use a hammer on a screw
LouisRoR has quit [Ping timeout: 245 seconds]
<bufferloss> C++ vs Zend Framework vs websockets... discuss...
<Senjai> bufferloss: Rails is just sinatra++, When you dont need rails, sinatra is fine
<vim-shim> When all you have is an omakase framework...
<Senjai> bufferloss: lolwhat
<bufferloss> :)
<bufferloss> WebGL vs MySQL... discuss
<vim-shim> If you make anything remotely complex you're going to wind up want most of the rails goodies anyways, that said, I like wrapping utilities in small Sinatra apps.
<Senjai> MySQL can run without a browser, therefore better
<vim-shim> Also, it's declarative.
<bufferloss> but webgl is 2.0 compatible!
<Senjai> bufferloss: But it's not webscale
<bufferloss> damn, you got me
<bufferloss> wait, you're wrong, it's not webscale, but it *is* webscales!
<Senjai> bufferloss: Fifty three, and five
<bufferloss> 42
<bufferloss> prime spiral crown
<bufferloss> I win
<Senjai> Numberwang!
<bufferloss> I think you mean Numberdong
snath has joined #ruby
<bufferloss> loool
Aova has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsnz has joined #ruby
kenneth has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aova has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kenneth has quit [Client Quit]
tsnz has quit [Ping timeout: 245 seconds]
keen__________39 has quit [Read error: Connection reset by peer]
keen__________39 has joined #ruby
Kruppe has quit [Ping timeout: 245 seconds]
symbol has joined #ruby
bufferloss has quit [Quit: Leaving]
ta has joined #ruby
kenneth has joined #ruby
Kruppe has joined #ruby
bluOxigen has joined #ruby
lamasnik has joined #ruby
jacks_spleen has joined #ruby
Spami has joined #ruby
AlexRussia has joined #ruby
Musashi007 has joined #ruby
tyfighter has joined #ruby
ta has quit [Ping timeout: 276 seconds]
josephndenton has joined #ruby
mrmargolis has quit [Remote host closed the connection]
bklane_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
echevemaster has quit [Remote host closed the connection]
mary5030 has joined #ruby
xivusr has joined #ruby
dfinninger has joined #ruby
ellisTAA has joined #ruby
jhass has quit [Quit: Bye]
hamakn has joined #ruby
mitchellhenke has joined #ruby
jhass has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
dfinninger has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 255 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
bklane_ has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
ta has joined #ruby
tcrypt has quit []
bklane has joined #ruby
bthesorceror has joined #ruby
jonr22 has joined #ruby
jerematic has quit [Remote host closed the connection]
ta has quit [Ping timeout: 276 seconds]
wmoxam_ has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EvanFreeman has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
kl__ has quit [Ping timeout: 245 seconds]
Loaft has quit []
learner has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
Loaft has joined #ruby
kl has quit [Ping timeout: 264 seconds]
learner has joined #ruby
kotk has quit [Quit: Leaving...]
nuck has joined #ruby
bronson has joined #ruby
Areessell has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 244 seconds]
troubadour has joined #ruby
chipotle has joined #ruby
ascarter has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
ta has joined #ruby
ascarter_ has quit [Ping timeout: 245 seconds]
cajone has quit [Read error: Connection reset by peer]
jeff__ has joined #ruby
jeff__ has left #ruby [#ruby]
cajone has joined #ruby
Sawbones has joined #ruby
ta has quit [Ping timeout: 276 seconds]
Sawbones has quit [Remote host closed the connection]
TripTastic has joined #ruby
ellisTAA has left #ruby [#ruby]
Eiam_ has joined #ruby
amclain has quit [Quit: Leaving]
kotk has joined #ruby
Aova has quit [Read error: Connection reset by peer]
mehp has joined #ruby
greenbagels_ has joined #ruby
skj3gg has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
frek818 has quit [Quit: frek818]
renier has joined #ruby
reinaldob has joined #ruby
ozialien has joined #ruby
Aova has joined #ruby
renier_ has quit [Ping timeout: 245 seconds]
greenbagels has quit [Ping timeout: 264 seconds]
Joufflu has quit [Read error: Connection reset by peer]
kotk has quit [Quit: Leaving...]
softinio_ has joined #ruby
St_Marx has quit [Remote host closed the connection]
cjim has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
St_Marx has joined #ruby
rebcabin has joined #ruby
troubadour has quit [Quit: troubadour]
sevenseacat has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TripTastic is now known as JBreit
vim-shim has quit [Quit: WeeChat 0.4.2]
majeure has quit [Quit: ZNC - http://znc.in]
Musashi007 has quit [Quit: Musashi007]
vikram_ has quit [Quit: Connection closed for inactivity]
ta has joined #ruby
zwer has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
zwer has joined #ruby
leonshalimov has joined #ruby
jonmorehouse has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 246 seconds]
JohnBat26 has quit [Client Quit]
krz has joined #ruby
Perceptes has joined #ruby
mehp has quit [Quit: Leaving]
hvxgr has quit [Ping timeout: 245 seconds]
dcarmich has joined #ruby
ta has quit [Ping timeout: 276 seconds]
leonshalimov has quit [Ping timeout: 255 seconds]
greenbagels_ has quit [Read error: Connection reset by peer]
cjim_ has joined #ruby
hiyosi has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
speaking1ode has joined #ruby
cjim has quit [Ping timeout: 245 seconds]
speakingcode has quit [Ping timeout: 276 seconds]
symbol has quit [Ping timeout: 255 seconds]
bthesorceror has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
jerematic has joined #ruby
jonmorehouse has joined #ruby
Meeh has quit [Ping timeout: 264 seconds]
Hijiri has quit [Ping timeout: 245 seconds]
Meeh has joined #ruby
ghr has joined #ruby
jerematic has quit [Ping timeout: 252 seconds]
softinio has quit [Quit: Connection closed for inactivity]
lampd1 has quit [Remote host closed the connection]
bronson has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
mikepack has joined #ruby
sinkensabe has joined #ruby
ShadySQL has joined #ruby
michael_mbp has quit [Excess Flood]
ShadySQL has quit [Client Quit]
tsnz has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
Hijiri has joined #ruby
lxsameer has joined #ruby
tsnz has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
Sawbones has joined #ruby
_matt has joined #ruby
hvxgr has joined #ruby
cjim_ has quit [Quit: (null)]
yfeldblum has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Sawbones has quit [Ping timeout: 265 seconds]
ozialien has quit [Ping timeout: 246 seconds]
lkba_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<Senjai> plop!
rippa has joined #ruby
Areessell has joined #ruby
Aova has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
fgo_zzZz has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
MasterPiece has joined #ruby
neoxquick has joined #ruby
ponga has joined #ruby
Vivex has joined #ruby
Dopagod has quit [Remote host closed the connection]
_5kg has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
tyfighter has quit [Quit: tyfighter]
<chipotle> hey Senjai !
<chipotle> how are you?
<chipotle> i've been coding :)
frek818 has joined #ruby
hirzu has joined #ruby
pwnz0r has joined #ruby
ponga has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
xivusr has quit [Ping timeout: 264 seconds]
claptor has joined #ruby
frek818 has quit [Quit: frek818]
einarj has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
ponga has quit [Ping timeout: 264 seconds]
p3ery has quit [Quit: (null)]
ptrrr has joined #ruby
fgo_zzZz has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
martinium has joined #ruby
martinium has quit [Remote host closed the connection]
martinium has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
j416 has quit [Quit: o/]
ghr has joined #ruby
fgo_zzZz has quit [Ping timeout: 255 seconds]
j416 has joined #ruby
<shevy> in php?
<vandemar> last line of about_symbols.rb "Why is it not a good idea to dynamically create a lot of symbols?" is that refering only to ruby pre-2.2?
<shevy> symbols will not be garbage collected vandemar
<vandemar> that's changed with 2.2 hasn't it?
<shevy> hmm
ph8 has joined #ruby
<vandemar> if that's the reason, koans must be updated!
jY has joined #ruby
bronson has joined #ruby
dc has quit [Read error: Connection reset by peer]
<jY> pretty new to ruby.. is there a one liner to do like if i have "/path/to/foo/bar" have it become "/path/to/foo" pretty much remove the last dir in a string
<shevy> vandemar are you sure that it has changed?
ghr has quit [Ping timeout: 265 seconds]
<shevy> >> File.dirname "/path/to/foo/bar"
<eval-in_> shevy => "/path/to/foo" (https://eval.in/253594)
<shevy> jY ^^^
ta has joined #ruby
<jY> thanks
<shevy> what are the Numbers in ruby... Integer ... Fixnum ... Float ... right?
jonmorehouse has quit [Ping timeout: 276 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
neoxquick has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 246 seconds]
<Perceptes> and Bignum
crdpink2 has joined #ruby
<Perceptes> and BigDecimal in the stdlib
crdpink has quit [Ping timeout: 245 seconds]
EvanFreeman has quit [Remote host closed the connection]
dc has joined #ruby
neoxquick has joined #ruby
Boohbah has quit []
banister has joined #ruby
banister has quit [Max SendQ exceeded]
j416 has quit [Ping timeout: 245 seconds]
<vandemar> shevy: the release notes for ruby 2.2 all seem to say symbols are now GCed
Jackneill has joined #ruby
ph8 has quit [Changing host]
ph8 has joined #ruby
<shevy> hmm
<Perceptes> there are still some cases where they are no GC'd: http://www.sitepoint.com/symbol-gc-ruby-2-2/
<Perceptes> *not
vieq has left #ruby [#ruby]
marcdel has joined #ruby
neoxquick has quit [Ping timeout: 255 seconds]
softinio has joined #ruby
<shevy> cool
<shevy> "Variables also use symbols behind the scenes."
j416 has joined #ruby
longfeet has quit [Ping timeout: 244 seconds]
Aova has quit [Read error: Connection reset by peer]
Fraeon has joined #ruby
hirzu has quit [Quit: This computer has gone to sleep]
jonmorehouse has joined #ruby
marcdel has quit [Ping timeout: 245 seconds]
softinio has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
ponga has joined #ruby
_5kg has joined #ruby
fandi has joined #ruby
Aova has joined #ruby
crdpink has joined #ruby
<shevy> it's interesting how ruby itself evolves
crdpink2 has quit [Ping timeout: 245 seconds]
<shevy> matz probably did not think that symbols could be considered a problem very early
sigurding has joined #ruby
Sawbones has joined #ruby
marcdel has joined #ruby
frek818 has joined #ruby
leonshalimov has joined #ruby
ta__ has joined #ruby
jY has left #ruby ["Linkinus - http://linkinus.com"]
claptor has quit [Quit: this channel is bakas]
crdpink2 has joined #ruby
ta___ has joined #ruby
crdpink has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 264 seconds]
bklane has quit [Remote host closed the connection]
hirzu has joined #ruby
Morkel has joined #ruby
leonshalimov has quit [Ping timeout: 276 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
Morkel has quit [Client Quit]
Areessell has quit [Quit: Hobbits n shit]
Morkel has joined #ruby
marcdel has quit []
apeiros_ has quit [Remote host closed the connection]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
apeiros_ has joined #ruby
josephndenton has joined #ruby
jerematic has joined #ruby
pontiki has joined #ruby
bklane_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerematic has quit [Ping timeout: 244 seconds]
ta__ has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 255 seconds]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
The_Phoenix has joined #ruby
aswen has joined #ruby
Morkel has quit [Quit: Morkel]
SparkMasterTape has joined #ruby
Sawbones has quit [Remote host closed the connection]
pwnz0r has quit [Remote host closed the connection]
fgo_zzZz has joined #ruby
tsnz has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
frek818 has quit [Quit: frek818]
fgo_zzZz has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
tsnz has quit [Ping timeout: 264 seconds]
nuck has quit [Quit: Textual IRC Client: www.textualapp.com]
jonmorehouse has quit [Ping timeout: 276 seconds]
pontiki has quit [Quit: brb]
pontiki has joined #ruby
ta has joined #ruby
patric100e99 has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
banister has joined #ruby
shashin has joined #ruby
shashin has joined #ruby
<porfa> so, blablab.at_css(‘.lol’) has some text elements.. how can i fetch only the first text element or the second?
ta has quit [Ping timeout: 276 seconds]
borromakot has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
<porfa> name="span" children=[#<Nokogiri::XML::Text:0x155a784 "69€">]> and name="span" children=[#<Nokogiri::XML::Text:0x155a004 "90€">] if i do balbalbal.text it outputs me both.. i only want to get the first,
<porfa> i tried .first.value but no lucky
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
thumpba has joined #ruby
<borromakot> Hey guys, say I have a hash who's keys are objects, is there a way to have them not be instantiated unless they are accessed? For instance hash = {"key1" => Thing1.new(), "key2" => Thing2.new()} I don't want :new sent to Thing1 until I say hash["key1"].
<porfa> !!! found it, ('.productPvp span[2]') for second and ('.productPvp span[1]’) for first!
Photism has quit [Quit: Leaving]
ta has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
russt has quit [Quit: russt]
sigurding has quit [Quit: sigurding]
krz has quit [Ping timeout: 265 seconds]
ponga has quit [Ping timeout: 246 seconds]
thumpba_ has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
j416 has quit [Ping timeout: 245 seconds]
avahey has quit [Quit: Connection closed for inactivity]
ta has quit [Ping timeout: 245 seconds]
jgt2 has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
Aova has quit [Read error: Connection reset by peer]
ponga has joined #ruby
Zai00 has joined #ruby
defrang has joined #ruby
<shevy> borromakot not from a direct hash I think; you could write a custom hash where you overrule the access-part
<shevy> borromakot and then use a proc and run .call on it
j416 has joined #ruby
Aova has joined #ruby
bklane_ has quit [Remote host closed the connection]
bklane has joined #ruby
kenneth has joined #ruby
wallerdev has quit [Quit: wallerdev]
borromakot has quit [Ping timeout: 246 seconds]
neoxquick has joined #ruby
decoponio has joined #ruby
martinium has quit [Remote host closed the connection]
lkba has joined #ruby
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
lkba_ has quit [Ping timeout: 255 seconds]
patric100e99 has joined #ruby
jonr22 has joined #ruby
Cache_Money has joined #ruby
Gmind has joined #ruby
ta has joined #ruby
jgt2 has quit [Ping timeout: 245 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Gmind has quit [Client Quit]
sigurding has joined #ruby
rbrs has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
ta has quit [Ping timeout: 276 seconds]
shime has joined #ruby
patric100e99 has quit [Ping timeout: 264 seconds]
shashin has quit [Quit: shashin]
einarj has joined #ruby
arietis has joined #ruby
<arietis> hey guys
doobi-sham-14807 has joined #ruby
<arietis> i'm writing simple script in which i want to take some params from terminal input
<arietis> how do i get input values?
<shevy> commandline arguments are available in the array ARGV
<shevy> it is better if you give the example how you invoke it
bklane has quit [Remote host closed the connection]
<arietis> i do not want arguments, i want the script to ask for values via prompt
<Perceptes> arietis: look into Kernel#gets
lkba has quit [Ping timeout: 255 seconds]
<shevy> ah you want user input
<arietis> yeah, thanks, gets works :)
einarj has quit [Ping timeout: 252 seconds]
jerematic has joined #ruby
RDash` has quit [Changing host]
RDash` has joined #ruby
RDash` is now known as RDash
ta has joined #ruby
vish has joined #ruby
robbyoconnor has quit [Write error: Connection reset by peer]
robbyoconnor has joined #ruby
doobi-sham-14807 has quit [K-Lined]
oleo__ has quit [Quit: Verlassend]
jerematic has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 276 seconds]
siggy has joined #ruby
vish has quit [Quit: vish]
kalusn has joined #ruby
fgo_zzZz has joined #ruby
ta has joined #ruby
oleo has joined #ruby
function_ has joined #ruby
LWade has quit [Ping timeout: 255 seconds]
neoxquick has quit [Ping timeout: 244 seconds]
connor_goodwolf has joined #ruby
_matt has quit [Ping timeout: 272 seconds]
jonesthedolphin has joined #ruby
function90 has quit [Ping timeout: 256 seconds]
ta has quit [Ping timeout: 276 seconds]
fgo_zzZz has quit [Ping timeout: 264 seconds]
maximski has joined #ruby
hgl has quit [Max SendQ exceeded]
ghr has joined #ruby
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
duncannz has quit [Remote host closed the connection]
hgl has joined #ruby
softinio has joined #ruby
hgl has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 245 seconds]
hgl has joined #ruby
nrsk has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
_matt has joined #ruby
frogsy has joined #ruby
softinio has quit [Ping timeout: 245 seconds]
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
apeiros_ has quit [Remote host closed the connection]
krz has joined #ruby
apeiros_ has joined #ruby
hamakn has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
bMalum has joined #ruby
LouisRoR has joined #ruby
hgl has quit [Max SendQ exceeded]
bonhoeffer has joined #ruby
hgl has joined #ruby
spider-mario has joined #ruby
Mia has joined #ruby
sinkensabe has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 245 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has quit [Ping timeout: 245 seconds]
leonshalimov has joined #ruby
Aova has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
blizzy has joined #ruby
roshanavand has joined #ruby
maximski has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
jeff-ooh has joined #ruby
j0n3 has joined #ruby
leonshalimov has quit [Ping timeout: 240 seconds]
oo_ has quit [Read error: Connection reset by peer]
Aova has joined #ruby
maximski has joined #ruby
oo_ has joined #ruby
banister has joined #ruby
maximski_ has joined #ruby
maximski has quit [Ping timeout: 256 seconds]
doobi-sham-69023 has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
dc has quit [Remote host closed the connection]
kl has joined #ruby
kl__ has joined #ruby
thumpba has joined #ruby
pontiki has quit [Quit: sleeping]
oo_ has quit [Remote host closed the connection]
thumpba__ has joined #ruby
pdoherty has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
SparkMasterTape has quit [Quit: Leaving]
thumpba_ has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
maximski_ has quit []
blizzy has quit [Ping timeout: 255 seconds]
bMalum has quit [Quit: bMalum]
thumpba has quit [Ping timeout: 252 seconds]
kl__ has quit [Ping timeout: 256 seconds]
kl has quit [Ping timeout: 256 seconds]
jefus_ has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
jefus has quit [Ping timeout: 245 seconds]
vvivv has joined #ruby
jeff__ has joined #ruby
tsnz has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
dc has joined #ruby
dc has quit [Remote host closed the connection]
tsnz has quit [Ping timeout: 245 seconds]
FooMunki has joined #ruby
vvivv has quit [Ping timeout: 245 seconds]
jusmyth1 has joined #ruby
bonhoeffer has joined #ruby
bronson has joined #ruby
roshanavand has quit [Remote host closed the connection]
fgo_zzZz has joined #ruby
Mon_Ouie has joined #ruby
ItSANgo has quit [Quit: Leaving...]
martinium has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
bronson has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
keen__________40 has joined #ruby
fgo_zzZz has quit [Ping timeout: 264 seconds]
FaresKAlaboud has quit [Quit: Quit~]
goshdarnyou has quit [Quit: Connection closed for inactivity]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
kaspertidemann has joined #ruby
hirzu has quit [Quit: This computer has gone to sleep]
FaresKAlaboud has joined #ruby
martinium has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
Winningsec has joined #ruby
<Winningsec> ciao
<jeff__> anyone available for help
keen__________39 has quit [Ping timeout: 256 seconds]
dc has joined #ruby
dc has quit [Remote host closed the connection]
siggy has quit [Quit: siggy]
_matt has quit [Ping timeout: 264 seconds]
thatslifeson has quit [Quit: Leaving]
yfeldblum has joined #ruby
ta has joined #ruby
Winningsec has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
jeff__ has left #ruby [#ruby]
dimaursu16 has quit [Ping timeout: 245 seconds]
<dopie> people do sleep
<dopie> :)
<sevenseacat> never!
jeff-ooh has quit [Remote host closed the connection]
<dopie> well sevenseacat she is a zombie
<sevenseacat> braaaaaains.
<dopie> but she eats cats over brains
<sevenseacat> :3
<dopie> ha!
SparkMasterTape has joined #ruby
SparkMasterTape has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 252 seconds]
roshanavand has quit [Remote host closed the connection]
ta has quit [Ping timeout: 276 seconds]
function_ has quit [Quit: Textual IRC Client: www.textualapp.com]
loveablelobster has joined #ruby
loveablelobster has quit [Remote host closed the connection]
loveablelobster has joined #ruby
loveablelobster has quit [Remote host closed the connection]
loveablelobster has joined #ruby
loveablelobster has quit [Remote host closed the connection]
loveablelobster has joined #ruby
loveablelobster has quit [Remote host closed the connection]
loveablelobster has joined #ruby
bhaak has joined #ruby
thatslifeson has joined #ruby
loveablelobster has quit [Remote host closed the connection]
loveablelobster has joined #ruby
Aova has quit [Read error: Connection reset by peer]
loveablelobster has quit [Client Quit]
porfa has quit [Quit: porfa]
loveablelobster has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
jonr22 has joined #ruby
rbrs has quit [Remote host closed the connection]
LWade has joined #ruby
kavehrs has joined #ruby
Aova has joined #ruby
patric100e99 has joined #ruby
ItSANgo has joined #ruby
dimaursu16 has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
LWade has quit [Ping timeout: 264 seconds]
loveablelobster has quit [Ping timeout: 252 seconds]
porfa has joined #ruby
porfa has quit [Client Quit]
alem0lars has joined #ruby
LouisRoR has quit [Ping timeout: 245 seconds]
patric100e99 has quit [Ping timeout: 276 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
alem0lars has quit [Client Quit]
hamakn has joined #ruby
einarj has joined #ruby
oo_ has quit [Remote host closed the connection]
kavehrs has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
roshanavand has joined #ruby
jerematic has joined #ruby
sinkensabe has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 272 seconds]
hamakn has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 245 seconds]
oo_ has quit [Ping timeout: 256 seconds]
dc has joined #ruby
dc has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 265 seconds]
thumpba__ has quit [Ping timeout: 244 seconds]
ptrrr has quit [Quit: ptrrr]
sinkensabe has quit [Remote host closed the connection]
pengin has joined #ruby
antgel has joined #ruby
zwer_e has joined #ruby
roshanavand has quit [Ping timeout: 276 seconds]
arup_r has joined #ruby
ekem has joined #ruby
<ekem> ok ladies and gentlemen, i come bearing questions
<ekem> id like to install the latest ruby (>2.0) version on to debian 7, does anyone have recommendations as to the process to do so? I am currently looking at https://www.ruby-lang.org/en/documentation/installation/
zwer has quit [Ping timeout: 250 seconds]
<wasamasa> build ruby, put it somewhere in $PATH
<wasamasa> that's it in a nutshell
<ekem> ok i like that, that would be my normal approach
<ekem> but i saw many options like chruby or rvm
<wasamasa> most people seem to prefer having that done per-user, yes
<ekem> and this is primarily for discourse, so i only need the one version
<wasamasa> where some shell script downloads the sources, builds ruby and somehow hacks $PATH to contain it
lukeholder has quit [Quit: Textual IRC Client: www.textualapp.com]
<ekem> yeah i get ya
kstuart has joined #ruby
<ekem> alright ill go with the tried and true method of make install
anaeem1_ has joined #ruby
mostlybadfly has joined #ruby
mostlybadfly has joined #ruby
mostlybadfly has quit [Changing host]
<sevenseacat> mmmm discourse.
<wasamasa> over time people came to realize that less magic is better :P
<ekem> im with ya
<ekem> and sevenseacat, i agree, im looking at this thing
<ekem> and saying its totally worth the ruby and postgres install
* sevenseacat has five versions of ruby installed on laptop and needs magic
shellox has quit [Ping timeout: 252 seconds]
<ekem> oh god
<ekem> xfzv
<ekem> xzfv
<ekem> wheres that xfcd comic when you need it
pengin has quit [Remote host closed the connection]
roshanavand has joined #ruby
<wasamasa> the tar bomb?
<ekem> hah yeah
<ekem> zxvf
<ekem> lol
* wasamasa only now realised the clever word play
pengin has joined #ruby
<ekem> im great with 4 letter acronyms obviously
<sevenseacat> heh
<ekem> and thanks a lot for the advice
<crome> wasamasa: haha
<ekem> i dont care what the #php channel says about you guys
nerdman has joined #ruby
<ekem> jk
<wasamasa> they are entitled to their own opinion?
<crome> ekem: probably they say something similar to what we say about them :)
ponga has quit [Remote host closed the connection]
<ekem> ;D
<sevenseacat> only thing i have against #php is when they hound people for asking questions about frameworks
<sevenseacat> NO WE ONLY DO PURE PHP HERE
<ekem> thats pretty common in a lot of channels
<ekem> c++ is like that
<tobiasvl> well we do that a bit too
ponga has joined #ruby
<crome> sevenseacat: you mean 'OMG THERE IS #RUBYONRAILS FOR THAT KIND OF CRAP'
<tobiasvl> rails questions for example
<sevenseacat> a little, but not like they do
<tobiasvl> yeah
<sevenseacat> and plus, a lot of us here will help with rails stuff anyway :P
<ekem> never met a programming language i didnt like
softinio has joined #ruby
<tobiasvl> I won't, I've never used rails :P
govg has quit [Quit: leaving]
<ekem> although perl wasnt a big fan of me i will say
<tobiasvl> I'll hound them
<crome> except when they can't join and they can't figure out how to register ;)
<sevenseacat> hah
* sevenseacat hounds tobiasvl to learn rails
<tobiasvl> never!
fgo_zzZz has joined #ruby
pengin has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
last_staff has joined #ruby
<ekem> i hope this isnt like building the python binary, where i had to rebuild it 5 times with the modules needed
<ekem> curse you bz2
<sevenseacat> depends, did you compile it with readline? >_>
<ekem> :\
ponga has quit [Ping timeout: 276 seconds]
<ekem> oh wow, cool module
softinio has quit [Ping timeout: 255 seconds]
<ekem> i dont know im just going to compile on a basic debian 7 install with build-essential
<ekem> and see what happens
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MasterPiece has quit [Ping timeout: 244 seconds]
fgo_zzZz has quit [Ping timeout: 246 seconds]
softinio has joined #ruby
<ekem> i dont even know what to say to this:
<ekem> linking shared-object fiddle.so
<ekem> ./libffi-3.2.1/.libs/libffi.a: could not read symbols: Bad value
Flcn has joined #ruby
fgo_zzZz has joined #ruby
Stoge88 has joined #ruby
ghr has joined #ruby
<ekem> libffi
<ekem> got it
roshanavand has quit [Remote host closed the connection]
<Morrolan> https://github.com/postmodern/chruby/wiki/Ruby has a list of deps for various distributions.
pandaant has joined #ruby
<atmosx> I'd go with RVM
sigurding has quit [Ping timeout: 264 seconds]
<atmosx> ekem: you risk getting 1.9 with deb
<atmosx> ekem: is it a server or a desktop?
gigetoo has quit [Ping timeout: 264 seconds]
<atmosx> anyway g2g
<atmosx> bbl
Pandorian has quit []
jpstokes has joined #ruby
yxhuvud has quit [Ping timeout: 264 seconds]
nfk has joined #ruby
leonshalimov has joined #ruby
kl has joined #ruby
gigetoo has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
vikram_ has joined #ruby
roshanavand has joined #ruby
<ekem> ack, its a server
<ekem> the make is not going well, libffi no bueno
<ekem> nor dev
<ekem> nice nice, bookmarking that dep
leonshalimov has quit [Ping timeout: 244 seconds]
kl__ has joined #ruby
shellox has joined #ruby
<ekem> huh, no love, i wonder what the issue is
roshanavand has quit [Remote host closed the connection]
yxhuvud has joined #ruby
* jhass punches the magic wizard's detection radar
ptrrr has joined #ruby
<jhass> nope, still just white noise, sorry
krz has joined #ruby
last_staff has quit [Quit: last_staff]
kalusn has quit [Remote host closed the connection]
* ekem collapses
alem0lars_ has joined #ruby
maximski has joined #ruby
agjacome has joined #ruby
Aova has quit [Read error: Connection reset by peer]
alem0lars has left #ruby ["Quit !"]
<ekem> this is a new and unique problem i am not equipped to handle
<jhass> what, running export CFLAGS="$CFLAGS -fPIC" ?
dc has joined #ruby
dc has quit [Remote host closed the connection]
<ekem> ah so i want to set an environment variable in this case?
<jhass> maybe
<jhass> can help
<ekem> worth a shot i guess
roshanavand has joined #ruby
bonhoeffer has joined #ruby
<ekem> nope, hmm guess this is going to be a research topic
livathinos has joined #ruby
ta has joined #ruby
livathinos has quit [Remote host closed the connection]
<Morrolan> Maaaybe it'd help if you were to post your actual console output, rather than some SO post which might be related.
<ekem> yeah wanted to make sure google couldnt solve it before i went full irc
<jhass> /libffi-3.2.1/.libs/libffi.a
<jhass> that thing
wow has joined #ruby
<jhass> you need to recompile it with that flag
<jhass> not the thing that throws the error
<wow> Hi guys! I want to learn how to program in Ruby. I have a basic understanding of C and Scheme. Is there some sort of de facto reference book or a tutorial?
<ekem> maybe this is a linux question not a ruby question at this point, not sure how to do that with a package manager
Aova has joined #ruby
<ekem> is it possible or just compile that sucker elsewhere
<ddv> Just do a simple Google search..... wow. The Ruby Progamming Language book is pretty good
<wow> Okay, thank you ;-)
<ekem> check stack overflow wow, there should be one question answering that
<wow> I usually refrain from going on stack overflow after seeing how people answer questions(in C at least)
<ddv> wow, You should try to use Google for everything in life
shock_one has joined #ruby
<ekem> well, dont ask a question just search
<wow> No, I mean other questions
<ekem> that will be a topic that gets closed real quick
<wow> The answers to them seem strange and lenghty
<wow> lengthy*
<ekem> hehe, be thankful :)
<wow> What about codecademy?
try has joined #ruby
jgt2 has joined #ruby
<ekem> all resources are good resources man
<ddv> pick a book, develop something all you need
ta has quit [Ping timeout: 245 seconds]
<wow> Alright, thanks.
<ekem> irc bots are a good place to start btw ;)
<wow> Cool! I have already made a little TCP server in Ruby
<wow> like a login
<ekem> wow++
<shock_one> Hi. I have 4 users. Now, I want to perform a hundred tasks each of which requires a user. However, it must not happen that two threads use the same user at the same time. A thread should take a user from a pool, perform its job, and return the (updated)user back. Only after that the user can be taken again. The closest thing I've found is Celluloid PoolManager, but it seems that PoolManager doesn't allow to obtain objects from the pool of fr
<shock_one> ee ones and then release them; instead it assumes that objects in the pool are stateless, and therefore equall. Can you point me to any solution?
<wow> shock_one: You are a fast typer?
<shock_one> I prepared my message in VIM, because it allows me to edit quickly.
<crome> shock_one: if you want something really simple just use a threadsafe queue, pop users from it and then put them back once a job is finished
tmtwd has quit [Remote host closed the connection]
<jhass> shock_one: I'd just use a Queue, pop and unshift it back when done
<jhass> ah, too slow
<crome> nice try ;)
<shock_one> crome: I would like the solution to incorporate handling of the situation when there is no free objects in the queue. Maybe to lock till it gets one.
<jhass> a queue does thatt
roshanavand has quit [Ping timeout: 245 seconds]
<shock_one> Thank you.
roshanavand has joined #ruby
jeff-ooh has joined #ruby
<wow> isn't queue like a stack or something?
<jhass> you can use it like one
hirzu has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
<jhass> but it's also commonly used as name for a thread safe datastructure
wow has left #ruby [#ruby]
<shock_one> Ideally, I'd like the data structure to provide random access, but FIFO is acceptable.
<jhass> that blocks on operations that obtain an element
jeff-ooh has quit [Remote host closed the connection]
<jhass> well, you could fairly easily code that with an array, a marker whether the user is given out and a condition variable
<jhass> a multi-lock so to say
Flcn has quit [Quit: Be back later ...]
<shock_one> That part is easy. But now I need to lock till an objects gets in manually, and raise after a timeout, and maybe something else unexpected. A big deal.
wow has joined #ruby
<wow> this may not be ruby related but where can i learn the .wav format so i can write to audio files using ruby
<jhass> raising after a timeout is inherently thread unsfafe
<jhass> don't do it
<crome> wow: on google
<wow> crome: i tried searching and i couldn't find anything relevant
tsnz has joined #ruby
<shock_one> You see, I'd have a problem already.
dc has joined #ruby
dc has quit [Remote host closed the connection]
hirzu has quit [Client Quit]
<jhass> wow: I think there's a gem or too, the format is called PCM iirc, so try rubygems.org with those terms and read the code (or just use one)
pdoherty has joined #ruby
<wow> jhass: Oh, I wanted to make one my self
<crome> wow: first hit on google to "wav format" http://en.wikipedia.org/wiki/WAV
<jhass> or *two, kind dizzy :/
<wow> as a library
<crome> external link on it: WAVE file format specifications - from McGill University
<crome> you officially fail at google
<wow> the text on this wikipedia page is immensely obscure
<sevenseacat> most really in-depth stuff is
<jhass> shock_one: you can set a flag after a timeout which your worker thread should regularly poll
wow has left #ruby [#ruby]
<jhass> now you scared them away :/
jschoolcraft has joined #ruby
Rollabunna has quit [Remote host closed the connection]
parduse has quit []
softinio has quit [Remote host closed the connection]
Rollabunna has joined #ruby
tsnz has quit [Ping timeout: 264 seconds]
softinio has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
softinio_ has joined #ruby
pdoherty has quit [Ping timeout: 245 seconds]
wow has joined #ruby
<wow> the reason i'm afraid to use #ruby is because my friend will make fun of me because i switched from C to ruby
<crome> what
kirun has joined #ruby
<wow> but I like both languages
<wow> what do i do
<jhass> make fun of your friend
<jhass> and use Crystal <3
<wow> sadly I can't make fun of him because he uses C
<wow> and i dont have any comebacks lol
<jhass> oh sure you can
<wow> how
<jhass> "haha, you just spent 30 minutes on that non-critical C thing that took me 1 line in Ruby"
<crome> why would you want to make fun of people because of a (non-php) programming language?
<jhass> because they use perl
<wow> perl is basically, use strict and use warnings or your code is awful
<jhass> s/or/,/
bronson has joined #ruby
hamakn has joined #ruby
<wow> okay
<wow> because I've been having difficulties learning C, i'm still stuck on chapter one
<jhass> then try Ruby -> Crystal -> C
softinio has quit [Ping timeout: 245 seconds]
softinio_ is now known as softinio
<jhass> get some programming experience with Ruby, get some low-level access with Crystal -> you arrived at C
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<wow> okay
<wow> are there things i should avoid?
FooMunki has quit [Quit: FooMunki]
MasterPiece has joined #ruby
<jhass> too much worrying is always bad
<jhass> avoid that
<wow> ok
ponga has joined #ruby
roshanavand has quit [Quit: roshanavand]
roshanavand has joined #ruby
<ddv> wow, 1. you call that a friend? 2. who cares what other people think 3. try go/rust
<wow> i'm not trying other languages
<wow> i feel like ruby is the language for me and that's what i will use
hamakn has quit [Remote host closed the connection]
<ddv> wow, focusing on just one language is stupid
kalusn has joined #ruby
<wow> yeah but think of it this way: if you start using other languages you will forget the other ones you learned
<jhass> ddv: I disagree, for learning programming focusing on one language is good
<wow> not forget them completely maybe but some parts
<jhass> if you're through that stage, expand your toolset, sure
bronson has quit [Ping timeout: 252 seconds]
crazydiamond has joined #ruby
<ddv> wow, also learning a language is pretty simple
<tobiasvl> just use all languages you know often
<tobiasvl> you don't need to switch
<wow> i'm not switching
<wow> i will be using C and Ruby both
adamski2600 has joined #ruby
<tobiasvl> ok then
dc has joined #ruby
yfeldblu_ has quit [Ping timeout: 276 seconds]
dc has quit [Remote host closed the connection]
krz has quit [Ping timeout: 256 seconds]
MasterPiece has quit [Quit: Leaving]
ta has joined #ruby
giuseppesolinas has joined #ruby
parduse has joined #ruby
kalusn has quit [Ping timeout: 240 seconds]
Azure has quit [Max SendQ exceeded]
Azure has joined #ruby
wow has quit [Quit: leaving]
dimaursu16 has quit [Quit: Leaving]
dimaursu16 has joined #ruby
apeiros_ has joined #ruby
kaspertidemann has quit []
martinium has joined #ruby
martinium has joined #ruby
ta has quit [Ping timeout: 276 seconds]
_matt has joined #ruby
softinio_ has joined #ruby
ghr has joined #ruby
ta has joined #ruby
_matt has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
C1V0 has quit []
patric100e99 has joined #ruby
kalusn has joined #ruby
FooMunki has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
patric100e99 has quit [Ping timeout: 252 seconds]
ta has quit [Ping timeout: 256 seconds]
monsieurp has quit [Quit: Lost terminal]
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has joined #ruby
Aova has quit [Read error: Connection reset by peer]
dc has joined #ruby
dc has quit [Remote host closed the connection]
YamakasY has quit [Excess Flood]
Aova has joined #ruby
kirun has quit [Ping timeout: 256 seconds]
sandelius has joined #ruby
russt has joined #ruby
lessless has joined #ruby
monsieurp has quit [Quit: Lost terminal]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hobogrammer has quit [Ping timeout: 245 seconds]
<arup_r> Hi this is giving error as "not valid retry" How to do 5 times `retry` ? https://gist.github.com/aruprakshit/5e5fd353d0f5ff32a6c3
arietis has joined #ruby
phoo1234567 has joined #ruby
<arup_r> without executing the lines between being.. rescue..
krz has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
Photism has joined #ruby
pierre1_ has joined #ruby
<arup_r> leave my question alone.. :)
YamakasY has joined #ruby
jonr22 has joined #ruby
<sevenseacat> okay
jamison_ has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
j0n3 has quit [Read error: Connection reset by peer]
JDiPierro has joined #ruby
aqabiz has joined #ruby
abdulqabiz has joined #ruby
DadoCe has joined #ruby
aqabiz has quit [Client Quit]
aqabiz has joined #ruby
davedev24_ has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
abdulqabiz has quit [Ping timeout: 245 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FooMunki has quit [Quit: FooMunki]
jerematic has joined #ruby
jgt2 has quit [Ping timeout: 272 seconds]
DadoCe has quit [Ping timeout: 246 seconds]
jeff-ooh has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
davidhq has joined #ruby
davidhq has quit [Read error: Connection reset by peer]
davidhq has joined #ruby
yfeldblum has joined #ruby
ghostlines has quit [Quit: Textual IRC Client: www.textualapp.com]
abdulqabiz has joined #ruby
abdulqabiz has quit [Max SendQ exceeded]
abdulqabiz has joined #ruby
abdulqabiz has quit [Max SendQ exceeded]
ta has joined #ruby
sevenseacat has quit [Read error: Connection reset by peer]
nicolastarzia has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
jamison_ has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
krz has quit [Ping timeout: 272 seconds]
martinium has quit [Remote host closed the connection]
leonshalimov has joined #ruby
ta has quit [Ping timeout: 255 seconds]
Loaft has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
jerematic has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
kstuart has quit [Ping timeout: 256 seconds]
Loaft has joined #ruby
kstuart has joined #ruby
FooMunki has joined #ruby
leonshalimov has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
bronson has joined #ruby
jusmyth1 has left #ruby [#ruby]
fgo_zzZz has quit [Ping timeout: 272 seconds]
commmmodo has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
pierre1_ has quit [Quit: Leaving]
mostlybadfly has quit [Quit: Connection closed for inactivity]
bonhoeffer has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
rubytor has joined #ruby
tus has joined #ruby
ghr has joined #ruby
bdamos has joined #ruby
Pisuke has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
kstuart has quit [Quit: WeeChat 1.1]
fandi has quit [Quit: Leaving]
MyMind has quit [Ping timeout: 245 seconds]
Pisuke has quit [Client Quit]
bonhoeffer has quit [Ping timeout: 240 seconds]
roshanavand1 has joined #ruby
aqabiz has quit [Quit: aqabiz]
roshanavand has quit [Ping timeout: 245 seconds]
Sembei has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
quimrstorres has joined #ruby
anaeem1_ has joined #ruby
jpstokes has quit [Remote host closed the connection]
aqabiz has joined #ruby
arup_r1 has joined #ruby
arup_r1 has quit [Client Quit]
arup_r has quit [Read error: Connection reset by peer]
digitalZombie has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
freerobby has joined #ruby
einarj has joined #ruby
Aova has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
DadoCe has joined #ruby
Hijiri has joined #ruby
oo_ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
dc has joined #ruby
dc has quit [Remote host closed the connection]
ta has joined #ruby
roshanavand1 has quit [Remote host closed the connection]
digitalZombie has quit [Quit: leaving]
roshanavand has joined #ruby
aqabiz has quit [Quit: aqabiz]
einarj has quit [Ping timeout: 246 seconds]
Aova has joined #ruby
tsnz has joined #ruby
jusmyth has joined #ruby
quimrstorres has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
fgo_zzZz has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
jamison_ has joined #ruby
aqabiz has joined #ruby
dangerousdave has joined #ruby
tsnz has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Client Quit]
fgo_zzZz has quit [Ping timeout: 240 seconds]
jonesthedolphin has quit [Ping timeout: 240 seconds]
hamakn_ has quit [Remote host closed the connection]
shock_one has quit [Remote host closed the connection]
vdamewood has joined #ruby
symbol has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 255 seconds]
pdoherty has joined #ruby
rubytor has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
ta has quit [Ping timeout: 276 seconds]
monsieurp has joined #ruby
chrishough has joined #ruby
<shevy> hmm
_matt has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
monsieurp has quit [Client Quit]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Client Quit]
GGMethos has quit [Quit: WeeChat 1.0.1]
monsieurp has joined #ruby
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has quit [Client Quit]
bMalum has joined #ruby
ta has joined #ruby
_matt has quit [Ping timeout: 264 seconds]
jeff-ooh has joined #ruby
hamakn has joined #ruby
ta has quit [Ping timeout: 276 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aqabiz has quit [Quit: aqabiz]
quimrstorres has quit [Remote host closed the connection]
monsieurp has joined #ruby
musicmatze has left #ruby ["WeeChat 0.4.3"]
fgo_zzZz has joined #ruby
rubytor has joined #ruby
softinio has quit [Quit: Connection closed for inactivity]
tomaw_ has joined #ruby
pontiki has joined #ruby
rebcabin has quit [Quit: Leaving.]
doodlehaus has joined #ruby
jonr22 has quit [Remote host closed the connection]
<pontiki> !gm
<helpa> good morning IRCers, I hope that this day finds you hale and hearty
dotix has joined #ruby
jerematic has joined #ruby
coinrookie has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
jusmyth has quit [Ping timeout: 264 seconds]
GGMethos has joined #ruby
tomaw_ has quit [Quit: Quitting]
Hijiri has joined #ruby
quimrstorres has joined #ruby
nine[array] is now known as ninedragon
davidhq has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
jerematic has quit [Ping timeout: 256 seconds]
Spami has quit [Quit: This computer has gone to sleep]
deryl has joined #ruby
ddd is now known as Guest68949
patric100e99 has joined #ruby
porfa has joined #ruby
quimrstorres has quit [Remote host closed the connection]
deryl is now known as ddd
kl has quit [Ping timeout: 246 seconds]
kl__ has quit [Ping timeout: 276 seconds]
Guest68949 has quit [Ping timeout: 276 seconds]
JDiPierro has joined #ruby
arup_r has joined #ruby
quimrstorres has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
gsd has joined #ruby
ta has joined #ruby
jusmyth has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
kirun has joined #ruby
mgorbach has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
chu_ has joined #ruby
jusmyth has left #ruby [#ruby]
mgorbach has joined #ruby
chu has quit [Ping timeout: 276 seconds]
patric100e99 has quit [Ping timeout: 255 seconds]
<arup_r> Why are we so quiet ?
jpstokes has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
lampd1 has joined #ruby
jonr22 has joined #ruby
banister has joined #ruby
mloveless has joined #ruby
Hijiri has joined #ruby
learner has quit [Ping timeout: 240 seconds]
sevenseacat has quit [Ping timeout: 245 seconds]
Aova has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: bMalum]
postmodern has quit [Quit: Leaving]
x77686d has joined #ruby
Flcn has joined #ruby
amitchellbullard has quit []
amitchellbullard has joined #ruby
einarj has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
dimaursu16 has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
Aova has joined #ruby
freerobby has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blizzy has joined #ruby
<shevy> arup_r nothing happens
<shevy> we are not producing enough high quality stuff
kl has joined #ruby
kl__ has joined #ruby
skj3gg has joined #ruby
ta has quit [Remote host closed the connection]
rebcabin has joined #ruby
mynameis has joined #ruby
ta has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jamison_ has quit [Ping timeout: 264 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
bMalum has joined #ruby
sinkensabe has joined #ruby
rkornmeyer has joined #ruby
zrl has quit []
zrl has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
PanzerModern has joined #ruby
doodlehaus has joined #ruby
sameerynho has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
dimaursu16 has joined #ruby
dfinninger has joined #ruby
shashin has joined #ruby
shashin has joined #ruby
skj3gg has joined #ruby
leonshalimov has joined #ruby
maximski has quit []
dimaursu16 has quit [Read error: Connection reset by peer]
dimaursu16 has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
kalusn has quit [Remote host closed the connection]
rakm has quit []
rakm has joined #ruby
hamakn has quit [Remote host closed the connection]
skj3gg has quit [Client Quit]
kl has quit [Ping timeout: 255 seconds]
chu_ has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kl__ has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
wow has joined #ruby
leonshalimov has quit [Ping timeout: 265 seconds]
fgo_zzZz has quit [Ping timeout: 240 seconds]
<wow> Hello, I'm having a problem with command line arguments
<wow> if I input irc.freenode.net as the first argument, it won't treat it like that and will give me the usage error
tus has quit []
bronson has joined #ruby
vikram_ has quit [Quit: Connection closed for inactivity]
cpt_yossarian has quit [Ping timeout: 240 seconds]
quimrstorres has quit [Remote host closed the connection]
dc has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dc has quit [Remote host closed the connection]
<wow> Can someone tell me how to fix this?
chu has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
skj3gg has joined #ruby
dfinninger has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 256 seconds]
<tobiasvl> wow: what's ARGV.length?
Photism has quit [Quit: Leaving]
<wow> sec
<tobiasvl> there's only one case in your code where usage is printed, and that's unless ARGV.length == 2
bMalum has quit [Quit: bMalum]
<tobiasvl> so it's pretty obvious what the problem is
oleo has quit [Read error: Connection reset by peer]
<wow> yeah but
<wow> if I put it without dots and then put another argument it will give me 2
<wow> currently it gives me 1
doodlehaus has quit [Remote host closed the connection]
<tobiasvl> put what without dots?
skj3gg has quit [Client Quit]
<wow> irc.freenode.net for example
quimrstorres has joined #ruby
<wow> if i put some invalid host like freenode and then a channel
<wow> it will work
einarj has joined #ruby
<tobiasvl> I don't follow. what do you mean invalid? there's no verification of validity in your code
<eam> wow: you don't get the error if you use two arguments? Well yes, that's what your code does
frek818 has joined #ruby
<wow> but
<wow> ruby irc.rb irc.freenode.net ##olc
<wow> it isn't one argument
<eam> yes it is
<wow> how?
Flcn has quit [Quit: Lingo: www.lingoirc.com]
<eam> wow: are you coming from C?
<wow> yes
<wow> I think I had this problem before
oleo has joined #ruby
<tobiasvl> why don't you just print out ARGV and see?
<eam> argv in C includes the zero parameter
<eam> in ruby it does not
kalusn has joined #ruby
<wow> oh
<eam> your first argument will be "irc.freenode.net"
frek818 has quit [Client Quit]
<eam> wow: also, ##olc is a shell comment
<eam> careful with that
<wow> how do I escape it?
<eam> ''
<wow> ok
<wow> so instead of ARGV[0] and ARGV[1] it's ARGV[1] and ARGV[2]?
<eam> ARGV in ruby represents argv[1] and onward in C
<eam> argv[0] in C is $0
frek818 has joined #ruby
jrunning_ has joined #ruby
johnzz has joined #ruby
mgorbach has quit [Ping timeout: 264 seconds]
<eam> and ruby will do some work to make it appear as if you ran your script via a #!, even if you did not
TheNumb has joined #ruby
<eam> so ruby script.rb arg1 arg2
frek818 has quit [Client Quit]
<eam> will result in $0 = script.rb and ARGV = [arg1, arg2]
frek818 has joined #ruby
<wow> Ok, thanks a lot, my bot seems to work now
mgorbach has joined #ruby
x77686d has quit [Quit: x77686d]
frek818 has quit [Client Quit]
sankaber has joined #ruby
nrsk has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
nicolastarzia has quit [Remote host closed the connection]
Channel6 has joined #ruby
rubytor has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
Agent604 has joined #ruby
ghr has joined #ruby
spicymagpie has quit [Quit: I'm rebooting this]
__chris has joined #ruby
<__chris> hello. Whats the best gem for watching a rb file for changes and then running it?
nateberkopec has joined #ruby
rubytor has joined #ruby
mloveless has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
speaking1ode has quit [Ping timeout: 255 seconds]
x77686d has quit [Client Quit]
<wow> One more question, how do I parse messages such as, PRIVMSG #{channel} :!8ball
<helpa> One more question, how do I parse messages such as, PRIVMSG #{channel} : Ask again later.
ghr has quit [Ping timeout: 252 seconds]
speakingcode has joined #ruby
<waxjar> wow, i've written a library to do just that: https://github.com/britishtea/irc-helpers
adamski2600 has quit [Remote host closed the connection]
<waxjar> haven't released it yet, but it's useable :)
tsnz has joined #ruby
<wow> Looks cool.
nateberkopec has quit [Client Quit]
Megtastique has joined #ruby
rebcabin has quit [Quit: Leaving.]
fgo_ has joined #ruby
ballPointPenguin has quit []
ballPointPenguin has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
rubytor has quit [Quit: No Ping reply in 180 seconds.]
tsnz has quit [Ping timeout: 246 seconds]
rubytor has joined #ruby
patric100e99 has joined #ruby
<waxjar> if you decide to use it, please let me know any trouble you run into
Aova has quit [Read error: Connection reset by peer]
Agent604 has quit []
adamski2600 has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
<wow> This seems to give me a type error
<wow> return msg.include? "PRIVMSG #{channel} : " ? msg[/#{channel}/ =~ msg + 3] : false
<wow> at +
<eam> wow: do you want to add the String msg to another string?
<eam> 3 is not a string
<wow> no, i wanted to get the index of a string
<tobiasvl> what the.
<wow> you see
<wow> ##channel :message
<wow> or whatever
Aova has joined #ruby
marcdel has joined #ruby
banister has quit [Read error: Connection reset by peer]
<eam> wow: use parens, + has higher precedence than =~
jeff-ooh has quit [Remote host closed the connection]
<eam> you should break your expressions up substantially more than you are
learner has joined #ruby
<wow> well this is how i usually programmed in C and it seems nice
<eam> then you weren't a good C programmer
rubytor has quit [Quit: No Ping reply in 180 seconds.]
<tobiasvl> what's this, #c
<wow> that's how i programmed in C
rubytor has joined #ruby
<tobiasvl> why are you showing us C code
<wow> as an example
echevemaster has joined #ruby
<tobiasvl> an example of what?
<wow> my programming experience in C
<tobiasvl> ?
<eam> wow: I'm not sure what point you're trying to make. In C, using regexec() takes like ten lines
<apeiros_> wow: do you know the order in which your `return msg.include? "PRIVMSG #{channel} : " ? msg[/#{channel}/ =~ msg + 3] : false` is executed?
<eam> it's correct to break up complex expressions in every language
<apeiros_> hint: if you have to think about it, then you've got a strong indicator that you should indeed break the expression up.
hamakn has joined #ruby
shashin has quit [Quit: shashin]
<wow> so, msg[/#{channel}/ =~ msg + (3)] or something?
<wow> im confused
<eam> wow: what's the result of 4 + 5 * 6
<apeiros_> "I'm confused" -> very strong indicator that you should break it up :-p
<wow> eam: 24
<eam> is it 34, or 54?
quimrstorres has quit [Remote host closed the connection]
<wow> oops
<wow> 34
<wow> yeah
<eam> because * has higher precedence, right?
<wow> pretty much pemdas
<eam> + has higher precedence than =~
<eam> so you need parens if you want to evaluate like (4 + 5) * 6
<eam> but you shouldn't, because it's hard to remember
<wow> so what do I do?
<eam> position = /#{channel}/ =~ msg
<eam> msg[position + 3]
TrOuBLeStArTeR has joined #ruby
<wow> oh great.
<wow> also, is there something like symbolic constants so I dont use magic numbers like 3?
<eam> ALLCAPS is a way to make a constant
<eam> you'll get a warning if you assign twice
<wow> great, thanks
<eam> well, StartsWithCaps at least, capital first leter
quimrstorres has joined #ruby
<eam> in general, try to do only one operation per line
<wow> okay.
<wow> but now im getting another error
dfinninger has joined #ruby
nateberkopec has joined #ruby
<wow> undefined method '+' for nil class
<eam> if // =~ str doesn't match it returns nil, not zero
<eam> you can handle that
<eam> another good reason to break up the expression!
<eam> nil in ruby isn't just an alias to numeric zero, it's a completely different type
lessless has joined #ruby
banister has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
<wow> okay
<wow> now im just using an if statement
<wow> should be easier to understand now
<eam> sounds reasonable
<wow> but it will still return nil class, wont it?
<eam> what's "it" in this context?
<wow> the method
defrang has quit [Quit: defrang]
pdoherty has joined #ruby
<eam> show me your code again?
ptrrr has quit [Quit: ptrrr]
<__chris> how can i assign variables the values of an array? for example: a, b, c = arr.SOMETHING (SOMETHING returns each value as a variable)
DadoCe has quit [Remote host closed the connection]
<Mon_Ouie> remove the '.SOMETHING' part
<eam> >> a,b,c = *[1,2,3]; a + b + c
porfa has quit [Ping timeout: 245 seconds]
<eval-in_> eam => 6 (https://eval.in/254673)
kalusn has quit [Remote host closed the connection]
shime has quit [Ping timeout: 264 seconds]
<__chris> Mon_Ouie, so do I need the * ?
anaeem1_ has quit [Remote host closed the connection]
<eam> __chris: try it and see
<Mon_Ouie> No, arrays are deconstructed implicitly
<__chris> eam, :D Mon_Ouie thank you
<wow> eam: so how do I fix my code so it won't break with NilClass or at least treat it in some way?
ponga has quit [Quit: Leaving...]
tiwillia has quit [Ping timeout: 272 seconds]
<eam> wow: if pos.nil? do_your_thing else ...
<eam> I'm not sure how you want to react to that case
pdoherty has quit [Ping timeout: 245 seconds]
tiwillia has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ponga has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xivusr has joined #ruby
LWade has joined #ruby
<wow> eam: My bot will connect without warnings or errors BUT
<wow> my program doesn't work as expected
<wow> if I type !8ball it won't react
lessless has joined #ruby
oleo has quit [Quit: Verlassend]
anaeem1 has joined #ruby
bklane has joined #ruby
<eam> wow: how familiar are you with so-called printf debugging?
Alina-malina has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
ponga has quit [Quit: Leaving...]
_5kg has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
axilla has joined #ruby
spider-mario has quit [Ping timeout: 264 seconds]
<axilla> morning all, i'm trying to retrieve some data from an API and display images that i get back.. if i search for a single album it works just fine, but if i search for just a band i get a [] nil:nilclass error https://gist.github.com/travisdmathis/8d9f19291d3fc0bc4fa5
bklane has quit [Ping timeout: 244 seconds]
<axilla> in the gist i put the output of the search to console and am getting the right data back
<axilla> so why when i go to display it in my view do i get an error.
<axilla> if i remove the image it displays the search data just fine.
spider-mario has joined #ruby
shashin has joined #ruby
bthesorceror has joined #ruby
DadoCe has joined #ruby
claptor has joined #ruby
<jhass> axilla: maybe take a look at the full trace on the rails error page
<jhass> it's hard to guess where exactly the error is happening from your gist
DadoCe has quit [Read error: Connection reset by peer]
speakingcode has quit [Ping timeout: 272 seconds]
oleo has joined #ruby
<axilla> i did, i'm not understanding why its throwing an error at all
<axilla> the data is all there
<jhass> what's the last line of the full trace?
shashin has quit [Ping timeout: 245 seconds]
xivusr has quit [Ping timeout: 245 seconds]
<axilla> i added the full trace to the gist
<axilla> refresh
mitchellhenke has joined #ruby
<__chris> does ruby support ?: ternary? for example: foo = some_nil_value ?: 10
<__chris> im aware of || but that will return the nil value as well
russt has quit [Ping timeout: 244 seconds]
mitchellhenke has quit [Client Quit]
bronson has joined #ruby
<axilla> ruby = child.folders.length > 0 ? true : false
quimrstorres has quit [Remote host closed the connection]
rbennacer has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
<jhass> axilla: try using p instead of puts for better output, I think your search simply returns no results and you need to handle that case
<axilla> i did jhass
<axilla> but my search doesn't return no results
<axilla> the results are in the console log
<jhass> not for the last entry
<jhass> Stale Phish
<jhass> Rock N Roll Revert
<jhass> that one
<jhass> puts nil probably just vanishes (hence use p)
<jhass> or puts [] that is
<jhass> so [].first -> nil, nil[:mbid] -> error
DadoCe has joined #ruby
ghr has joined #ruby
Darryl___ has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
vikram_ has joined #ruby
<wow> Can one do this in a hash? commands = ["disconnect" => @sock.close]
iamninja has joined #ruby
<wow> and then do commands["disconnect"]
xcesariox has joined #ruby
kalusn has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
leonshalimov has joined #ruby
fgo_ has quit [Quit: WeeChat 1.0]
skinux has joined #ruby
<skinux> I need a little help with this: https://gist.github.com/skinuxgeek/13415cf5b1a657cea7d7
TrOuBLeStArTeR has quit [Ping timeout: 245 seconds]
kalusn has quit [Ping timeout: 264 seconds]
<jhass> wow: no, that would define a hash literal inside an array literal, it's equivalent to [{"disconnect" => @sock.close}]
josephndenton has joined #ruby
JohnBat26 has joined #ruby
<jhass> wow: also note that @sock.close will be called at the point you define the literal, not when you access the value
<jhass> wow: you might want to assign a lambda or a proc there instead
<axilla> there is a nil value for the cover if it doesn't exist
<axilla> i check for cover.blank? and set cover to a image
<axilla> but still same issue
haroldwu has joined #ruby
kl__ has joined #ruby
kl has joined #ruby
leonshalimov has quit [Ping timeout: 255 seconds]
jonesthedolphin has joined #ruby
speakingcode has joined #ruby
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
Aova has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
<jhass> axilla: I still don't really know your real line numbers, but I guess that the error is happening on line 6 of your gist, before you even output the values
russt has joined #ruby
<jhass> axilla: my suspicion is that mbid.first is nil because mbid is an empty array
rubytor has quit [Ping timeout: 245 seconds]
<axilla> line 9 sorry is cover = coverart_archive
<jhass> yes, so as I said
<axilla> right..
<axilla> two people say that now
kalusn has joined #ruby
<axilla> interesting
<axilla> not sure how that is.
<jhass> oh fuck
<jhass> how rude
dc has joined #ruby
<jhass> axilla: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
dc has quit [Remote host closed the connection]
defrang has joined #ruby
Aova has joined #ruby
tyfighter has joined #ruby
n80 has quit [Quit: Leaving]
hamakn has quit [Remote host closed the connection]
quimrstorres has joined #ruby
ellisTAA has joined #ruby
bonhoeffer has joined #ruby
rbennacer has quit [Remote host closed the connection]
tyfighter has quit [Ping timeout: 256 seconds]
bmuk has joined #ruby
rubytor has joined #ruby
<bmuk> Hello all, trying to set up wagn, and wagn seed is complaining that it can't find jasmine. I have tried to export RUBYLIB=$(which jasmine) to no avial
<bmuk> avail*
jonr22 has quit [Remote host closed the connection]
_5kg has joined #ruby
kenneth has joined #ruby
bonhoeffer has quit [Ping timeout: 240 seconds]
<__chris> i dont understand the difference between arr.map and arr.collect.. could someone explain it to me?
rbennacer has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<jhass> __chris: collect is 4 chars more to type
<jhass> they're aliases ;)
<__chris> jhass, ah, ok. thanks.
<wow> This gives me an error
<wow> if user.eql? @logininfo[0] && password.eql? @logininfo[1]
<wow> unexpected tIVAR, expecting keyword_then or ';' or '\n'
<__chris> i must be blind or just confused by the docs. Under the "map" section it shows an example using collect. Its clear to me now. thanks
<jhass> wow: you need parens around the method calls in this case
<jhass> or use == instead of .eql?
<skinux> Would someone please help me a little with this? https://gist.github.com/skinuxgeek/13415cf5b1a657cea7d7
dc has joined #ruby
dc has quit [Remote host closed the connection]
<jhass> skinux: Message and Messages are two different constants
rebcabin has joined #ruby
rubytor has quit [Ping timeout: 255 seconds]
<skinux> Thanks
<skinux> Can't believe I was missing that
<jhass> it'll get better with time ;)
havenwood has joined #ruby
commmmodo has quit [Quit: commmmodo]
<wow> does casecmp need parentheses?
<wow> like command.casecmp "hello" == 0
<wow> would that work
bonhoeffer has joined #ruby
yfeldblum has joined #ruby
<jhass> yes, same game
<jhass> it's a method call, it parses the same way
nateberkopec has quit [Quit: Leaving...]
<jhass> leaving them off is equal to casecmp("hello"==0)
<wow> strange
<wow> my program doesn't seem to work
<wow> it inputs the user for some commands but when I input them I don't even get "invalid command" or anything (the way I parse it)
msgodf has quit [Remote host closed the connection]
commmmodo has joined #ruby
ta has quit [Ping timeout: 264 seconds]
<jhass> wow: Please share your code on https://gist.github.com
<axilla> jhass: thanks tracked down the issue, you were right, when trying to get the mbid for a release the release doesn't exist in the database i'm using
Alina-malina has quit [Ping timeout: 255 seconds]
commmmodo has quit [Client Quit]
try has quit [Ping timeout: 244 seconds]
argoneus has joined #ruby
<argoneus> hello
<argoneus> is there a small and simple framework? I need a page with login/logout and a page to add/delete items which will be added/removed from db too
<argoneus> rails seems too powerful for this
_5kg has quit [Ping timeout: 245 seconds]
<jhass> many, most popular is sinatra
<epitron> Sinatra with http basic authentication is was simpler, argoneus
<epitron> *way
<argoneus> thanks
<argoneus> http auth is the pop up window?
_5kg has joined #ruby
<epitron> Yep
<epitron> (Basic)
yfeldblum has quit [Ping timeout: 256 seconds]
<argoneus> I see
<argoneus> and can sinatra do regular forms too easily?
mozzarella has quit [Quit: WeeChat 1.0.1]
mozzarella has joined #ruby
<epitron> Yes, use haml for templates
<jhass> or slim ;P
<argoneus> oh
<epitron> All HTML things will be easy
<argoneus> so instead of the pythonic all in one frameworks
ta has joined #ruby
<epitron> Including forms
<argoneus> I use sinatra for the web, haml for the templates, etc?
<epitron> Kinda
<epitron> Sinatra supports it natively
<jhass> sinatra supports temple which supports about every templating language you know and don't know ;)
<epitron> But you can choose
<argoneus> oh nice
<wow> jhass: I have a question
<wow> I've created a TCP server
<wow> is it possible for the client that connects to it to download files?
<epitron> You just say, "haml :file" at the end of the method to render that file
<epitron> Or "erb :file"
<argoneus> and what about SQL / SQLite interfacing?
<epitron> Or sass, etc
<argoneus> does sinatra do that too or do I need something more
<jhass> wow: TCP sends bytes back in forth, the contents and structure of those bytes is up to your application
<epitron> No, that's not built in
Alina-malina has joined #ruby
<jhass> you can easily use something like Sequel with it for that though
<epitron> You need to use active record or sequel or something manually
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<epitron> What's that other one
<epitron> It's like ar, but with different migrations
<jhass> sequel has migrations too
<epitron> Datamapper
<epitron> That one makes more sense than AR or sequel I think
<epitron> Sequel is too simple, and AR is too complex
ta has quit [Ping timeout: 264 seconds]
<jhass> I don't find Sequel too simple
<jhass> you can do models too
<epitron> Oh wait
<epitron> Yes :)
<ellisTAA> i need to add two instance variables to a hash. i’m trying this name_of_hash [:@variable1] = @variable 2 …. but when i try that it just enters @variable1 & @variable 2
<epitron> DM has migrations though
<epitron> argoneus: what's your data model look like?
<jhass> ellisTAA: without the space before the [
<argoneus> epitron: nothing fancy, my site is basically something like
ta has joined #ruby
<argoneus> a database of usernames which a separate script grabs info for and saves it to the db, and a website frontend that shows this list and the info, and a simple admin interface to add/remove usernames from the db
anaeem1 has quit [Remote host closed the connection]
<ellisTAA> jhass: i acutally wrote it without the space…
<argoneus> I'm going to the first part with python because scraping with that is really easily
<argoneus> and I wanted to try using ruby for the website thing
tus has joined #ruby
<argoneus> but I've never really done this before and I'm not sure what would be a good idea to start with, I worked with Flask before
<jhass> ellisTAA: then maybe make a gist with actual code that illustrates your issue and your expected behavior
<wow> if an index, let's say at 9 in a string does not exist
<wow> does it return nil?
<ellisTAA> k
<jhass> >> ""[9]
anaeem1_ has joined #ruby
<eval-in_> jhass => nil (https://eval.in/254856)
<wow> okay, thanks.
<jhass> wow: you know irb or pry? ;)
<wow> yeah
arup_r has quit [Read error: Connection reset by peer]
<wow> im just having a strange problem
nicolastarzia has joined #ruby
<epitron> argoneus: that sounds almost exactly like the DNS server I wrote in Sinatra
trampi has quit [Remote host closed the connection]
<wow> sorry for terrible tabbing
<wow> the thing is tabbed in a class
<argoneus> epitron: what would you recommend then?
Zai00 has quit [Quit: Zai00]
<jhass> >> nil.isnil?
<eval-in_> jhass => undefined method `isnil?' for nil:NilClass (NoMethodError) ... (https://eval.in/254857)
<shevy> aaaah
<jhass> where did you get that one from?
<wow> no idea
<wow> it interprets though...
<wow> dunno
<jhass> that should crash your script
<epitron> argoneus: It's 6 years old, so some Sinatra things may have changed, but it should give you a good idea of how to do what you want
<wow> so jhass
_maes_ has joined #ruby
nrsk has joined #ruby
<wow> what does test if a script is nil
<wow> var*
<wow> variable*
<argoneus> oh
<argoneus> thanks epitron
trampi has joined #ruby
<jhass> ellisTAA: the key should be the value of @keyword, not the symbol :@keyword
arup_r has joined #ruby
<jhass> wow: just if foo to test if it's not nil or false and if foo.nil? to test whether its value is nil
bjornar has quit [Ping timeout: 240 seconds]
<wow> okay jhass
bthesorceror has quit [Quit: bthesorceror]
<wow> that seemed to fix it
<wow> but
<ellisTAA> jhass: thanks
<wow> Download attempt ... never gets executed
<wow> if it isn't nil
nicolastarzia has quit [Ping timeout: 244 seconds]
<epitron> argoneus: I mean, it still works out of the box, but there may be a couple new Sinatra things that make things look a tiny bit prettier
arup_r has quit [Client Quit]
<jhass> wow: how to you verify that assumption?
<argoneus> epitron: you used raw css?
<trampi> rubocop rates this method as too complex :-/ (Assignment Branch Condition size for create is too high. 17.15) https://gist.github.com/trampi/82048ddf6d87cf07c68a any ideas how to make it simpler?
<wow> jhass
<wow> if I type download it will work
bthesorceror has joined #ruby
<wow> com[9].nil? is executed because it is nil
arup_r has joined #ruby
<wow> but if I do something such as
<wow> download file
tyfighter has joined #ruby
<wow> it will give me the invalid command thing that is parsed
<epitron> argoneus: I just stole it from canonical's website :)
<epitron> Copy paste
<argoneus> oh
<argoneus> I'm still confused about all these things
bjornar has joined #ruby
quimrstorres has joined #ruby
<argoneus> like sass, coffeescript, rakefiles, sinatra
<argoneus> how to make them work together
tiwillia has quit [Ping timeout: 255 seconds]
<argoneus> I should probably figure that out first
<jhass> wow: that's because com.casecmp("download") isn't a partial comparision, it wants exactly that string
<epitron> Those are all templates
tiwillia has joined #ruby
<jhass> wow: you may want command.downcase.start_with? "download"
<epitron> Except rake and Sinatra
<epitron> :)
<argoneus> is rakefile like a makefile but for ruby?
<wow> Thank you jhass.
<argoneus> so I have all the source files etc
<argoneus> and the rakefile compiles them to proper things?
<epitron> No..
<argoneus> I mean
<argoneus> like I have a .sass
<epitron> Rake is just for running scripts
<argoneus> and I tell it "compile the sass and put it in this dir"
<argoneus> like that?
<epitron> It could compile your sass
<wow> One more question
<wow> How do I transfer raw bytes, such as maybe an mp3 file to a client?
<epitron> But people use rake to do any admin task
<argoneus> admin task such as..?
<epitron> Running tests, making gems...
<argoneus> ah
<argoneus> hmm
<epitron> Cleaning up databases
<argoneus> ruby seems interesting
<epitron> Running migrations
<argoneus> does Sinatra give me a clear folder structure?
<jhass> wow: bytes or buffers are in ruby represented through a string with the encoding ASCII-8bit (which is also aliased to binary)
<epitron> Yep
<argoneus> oki
<argoneus> thanks I'll check it out later
<epitron> Views, public, lib
<argoneus> these are things I can read in a tutorial probably
enebo has quit [Quit: enebo]
<epitron> Yep
<jhass> wow: so File.read('foo.mp3', encoding: 'ASCII-8bit') should give you a string that you can send over the socket
<wow> but doesn't the user require permission to send that?
<wow> receive it*
<epitron> Can't you just read it in binary mode?
Rayford has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
<jhass> wow: "the user"?
<wow> let's say someone connects to my server
<wow> they want to download something from it
ta has quit [Ping timeout: 276 seconds]
<wow> wouldn't they need elevated permissions for them to receive it?
<wow> they're receiving files from an otherwise unknown host
<jhass> again, tcp just shuffles bytes from one end to the other
<wow> okay.
<wow> but where is that file saved?
<jhass> it's up to the client & server implementations when to send bytes, when to receive bytes and what to do with them
nateberkopec has joined #ruby
<wow> D:
hamakn has joined #ruby
ARCADIVS has joined #ruby
<jhass> it sounds like you maybe want a higher level protocol like ftp or sftp
<wow> not really
<jhass> or even just http
<wow> I wanted to make my own protocol, for an ARG
tchebb has quit [Read error: Connection reset by peer]
britt_ has joined #ruby
<jhass> so, that question you asked is exactly what you need to answer in the protocol design
<shevy> jhass are you working on some project?
ta has joined #ruby
tchebb has joined #ruby
britt_ has quit [Client Quit]
<jhass> shevy: toying with writing an IRC bot in crystal
<jhass> it can already run crystal code in a sandbox :P
p3ery has joined #ruby
ghr has joined #ruby
<epitron> Crystal? :O
bmuk has quit [Ping timeout: 244 seconds]
<__chris> is %w() the convention or is %w{} ? In practice i usually see %w() but in the docs i see %w{}
<epitron> Is that like a generalization of ruby?
<jhass> epitron: no, own language we heavily ruby inspired syntax
<epitron> __chris: my convention is %w[]
<jhass> epitron: but statically typed and compiled to native code
<jhass> epitron: plus type interference
<epitron> Because it returns an array :)
<jhass> so it feels sort of like ruby except that it's 20-50x faster :D
<shevy> __chris I use %w() consistently
<wow> so jhass
<wow> how do I store the file in the current directory of the client?
<shevy> __chris I dislike %w{} because it is syntax for hash and blocks
<shevy> __chris %w also works :)
<__chris> epitron, shevy - thanks. so it seems like there is no "wrong" answer here..
<jhass> wow: you receive it into a string with encoding ASCII-8bit again, and then you can just write that string into a file with File.write
<shevy> the ruby parser accepts a lot
<shevy> it's a liberal thing
<wow> okay, thank you
<shevy> not like the python parser, this one is strict
<epitron> jhass: that sounds neat
<epitron> Link?
<jhass> epitron: crystal-lang.org
<wow> so jhass
<wow> the client will be able to get the download by telnet or netcat?
oo_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
<shevy> 50x faster
<shevy> then it will destroy ruby
<jhass> epitron: good state in case you wanted to contribute to a languages standard library btw ;)
ki0 has joined #ruby
<jhass> epitron: still lots of holes to fill out, but the language itself starts to be usable
quimrstorres has quit [Remote host closed the connection]
<jhass> epitron: did I mention that crystal is entirely written in crystal? ;)
<wow> jhass: will client be able to receive it with telnet?
<jhass> wow: that depends on how you define the protocol
<wow> the UNIX implementation of telnet to be specific
tiwillia has quit [Ping timeout: 264 seconds]
<jhass> not that telnet is kind of weird protocol
<epitron> jhass: neat!
<jhass> partially because it's very old
tiwillia has joined #ruby
arup_r has quit [Quit: Leaving.]
<jhass> *note
<wow> will it work regardless?
<jhass> you can make it work, it's your protocol
arup_r has joined #ruby
ta has quit [Read error: Connection reset by peer]
<trampi> crystal seems VERY interesting
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<trampi> a "low-weight" compiled language
<shevy> I used telnet to play MUDs in the old days
ta has joined #ruby
defrang has quit [Quit: defrang]
<shevy> we had a green font on a black background
<epitron> jhass: how long have you been making this?
<jhass> trampi: epitron probably most interesting PoC https://github.com/manastech/crystal_ruby
AlexRussia has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
<jhass> epitron: I'm not the author of crystal
<epitron> Oic
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> epitron: I think they started about 2-3 years ago, first with a compiler written in ruby from which they bootstrapped the compiler written in crystal
nobitanobi has joined #ruby
<jhass> they generate llvm bytecode and then just call llvm, so you can get tons of optimizations for free
<nobitanobi> morning folks
Aova has quit [Read error: Connection reset by peer]
<nobitanobi> given that I have an array A=[1,2,3] and a set of arrays B = [[3], [1,2], [1], [3,2,1]] - How could I order that second set so that the order is based on how many elements in each array appear in the array A?
<nobitanobi> So the final order of B would be [[3,2,1], [1,2], [3], [1]]
<jhass> you mean if in B there would be a 4, it would not count?
<wow> jhass
<nobitanobi> yep
<wow> I understand you write it in a file
<wow> but how do I write it in a file over a socket
quimrstorres has joined #ruby
_2_Alizay has joined #ruby
<nobitanobi> trying to find the most similar arrays given an array
ki0 has quit [Remote host closed the connection]
<nobitanobi> similarity being how many elements appear in the given array
<jhass> nobitanobi: how would duplicates in B count, like [1, 1, 2 3] vs [1, 2, 3]
<nobitanobi> no duplications allowed
ellisTAA has joined #ruby
<jhass> .sort_by {|b| (a & b).size }.reverse I think
<wow> jhass?
<jhass> wow: first you receive it into a string
<jhass> then you write the string
<nobitanobi> jhass: thanks
<nobitanobi> will try
jefus_ has quit [Ping timeout: 244 seconds]
<wow> file = File.read("mpfile.mp3", encoding: 'ASCII-8bit') is what im currently doing
<wow> i understand you write the string, but where?
<jhass> nobitanobi: maybe b & a actually
_2_Michelle1123 has joined #ruby
Azure has quit [Max SendQ exceeded]
<nobitanobi> thanks :)
<jhass> wow: just like you send regular string to the socket
<_2_Michelle1123> hi
snowpeas has joined #ruby
<nobitanobi> it works jhass
<nobitanobi> awesome
<jhass> wow: it's an IO iirc, so you got .write .puts etc
Aova has joined #ruby
symbol has joined #ruby
<_2_Michelle1123> ok
<wow> client.puts file
<wow> ?
_2_Alizay has quit [Remote host closed the connection]
<wow> where file is the File.read thing
ki0 has joined #ruby
Azure has joined #ruby
ta has quit [Ping timeout: 276 seconds]
<jhass> for example
<jhass> not that puts adds a newline
<jhass> *note
<jhass> can't type today :/
_2_Michelle1123 has quit [Remote host closed the connection]
tmtwd has joined #ruby
mloveless has joined #ruby
<wow> eh
<wow> i'll just do client.write then
<wow> shouldn't append a newline
<ellisTAA> can someone take a look at my gist and tell me if line 13 in spec.rb is a string or a hash? it looks like a hash bc it has => but the key isn’t using a symbol … https://gist.github.com/ellisTAA/af3ed9555ba32ed2c467
<wow> that will work, right?
<jhass> ellisTAA: it's a hash, any ruby object can be a hash key, not jsut symbols
<ellisTAA> jhass: thank you
<jhass> in this case the key is a string
ta has joined #ruby
<wow> jhass
<wow> client.write file
<wow> will that casue any problems
<wow> before i try it
<jhass> wow: I'm not your potential problem predictor, we all learned through trial and error ;)
quimrstorres has quit [Remote host closed the connection]
EvanFreeman has joined #ruby
freerobby1 has joined #ruby
<wow> will it wipe out my /dev/sr0
<wow> ?
<jhass> wut?
<jhass> what makes you think it could do that?
<wow> I was right
<wow> It wiped out my entire system
<jhass> right...
<wow> Luckily I was in a sandbox :)
adamski2600 has quit [Remote host closed the connection]
x77686d has joined #ruby
<jhass> /dev/sr0 is your cd drive, if you troll, do it right ;)
<wow> okay
freerobby1 has quit [Client Quit]
kostitas has joined #ruby
<wow> will .wav files work as well?
oo_ has joined #ruby
<jhass> are .wav files bytes?
<wow> well every file has bytes
freerobby has quit [Ping timeout: 255 seconds]
<jhass> and tcp does nothing but transporting a sequence of bytes from one end to the other ;)
<wow> the beauty of TCP
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<wow> ok so what happened was
RandyT has quit [Quit: ZNC - http://znc.in]
arup_r has quit [Ping timeout: 272 seconds]
arup_r1 has joined #ruby
ki0 has quit [Remote host closed the connection]
<jhass> yap, that's a bunch of bytes written to your pty
<wow> I meant for the user to download it
<wow> This is a download yes,
<wow> transfering bytes
<wow> but how do I write all this to a file on the users end?
Rayford has quit [Quit: Rayford]
ki0 has joined #ruby
<jhass> by writing a client that supports your protocol and does that, or by implementing a protocol on the server side the user already has a client for that does that
chipotle has quit [Quit: cheerio]
dc has joined #ruby
dc has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
thatslifeson has quit [Quit: Leaving]
patric100e99 has quit [Ping timeout: 240 seconds]
<jhass> you might get away with just redirecting stdout on the client side to some filee
oo_ has quit [Ping timeout: 264 seconds]
<jhass> makes it hard to display messages to the user though
giuseppesolinas has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<wow> so telnet can't write transferred byte to files?
thatslifeson has joined #ruby
randiman has joined #ruby
<jhass> I don't know
patric100e99 has joined #ruby
michael_mbp has joined #ruby
<jhass> it probably can, it's a weird protocol
<jhass> I never grasped it
TgMts has joined #ruby
<wow> okay
pdoherty has joined #ruby
giuseppesolinas has quit [Client Quit]
<wow> hmm
<wow> zmodem and xmodem
ki0 has quit [Remote host closed the connection]
jpstokes has quit [Remote host closed the connection]
mikepack has joined #ruby
x77686d has quit [Quit: x77686d]
pdoherty has quit [Ping timeout: 245 seconds]
leonshalimov has joined #ruby
giuseppesolinas has joined #ruby
ta has quit [Read error: Connection timed out]
<wow> is there also something in ruby that redirects IO
<wow> so that it doesn't interrupt me inputting while my server is outputting things that are happening
perturbation has joined #ruby
<jhass> I'm not sure I follow
<wow> let's say I'm inputting a command like: "send Hello everyone"
<wow> people are outputting something else and the output gets printed and my input is lost
__chris has quit [Ping timeout: 246 seconds]
jonr22 has joined #ruby
<jhass> I don't follow how "people" have control over your stdout/stderr
<jhass> you have
dfinninger has quit [Remote host closed the connection]
lampd1 has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
<jhass> doesn't make it any clearer for me
<wow> Client Connected(stdout) will interrupt my stdin
withnale_ has quit [Read error: Connection reset by peer]
<jhass> well, then print it while your reading from stdin
<jhass> if that's what you want
<wow> hm
<jhass> *then don't
ki0 has joined #ruby
<wow> well, you have an IRC client right?
symbol has quit [Ping timeout: 272 seconds]
<wow> it has this graphical interface
<jhass> right
<jhass> sort of
<wow> you write in one part and the other part you can see what everyone (including you) is saying or has said
withnale_ has joined #ruby
<jhass> yes, my client uses ncurses to do that
<wow> does ruby support that?
dc has joined #ruby
dc has quit [Remote host closed the connection]
bronson has joined #ruby
<jhass> ruby has an ncurses binding in the stdlib and there are probably some gems that abstract further
ta has joined #ruby
<jhass> and you can get some basic control with ANSI escape codes, google these
<wow> alright
<wow> anyways cya guys
<wow> i gtg
wow has left #ruby [#ruby]
Zai00 has joined #ruby
adamski2600 has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 240 seconds]
giuseppesolinas has left #ruby ["Leaving"]
ki0 has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
blueOxigen has joined #ruby
symbol has joined #ruby
kaspertidemann has quit []
dfinninger has joined #ruby
jgt2 has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
tjohnson has joined #ruby
arup_r1 has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
hamster88 has joined #ruby
dfinninger has quit [Remote host closed the connection]
<hamster88> hello :)
<hamster88> can anyone suggest me a good book to learn ruby? something for beginners?
<ellisTAA> can someone help me out. i’m working on a test, can you tell me if i’m approaching it in the right way https://gist.github.com/ellisTAA/af3ed9555ba32ed2c467
CrazyM4n has joined #ruby
rbennacer has quit [Remote host closed the connection]
dc has joined #ruby
dc has quit [Remote host closed the connection]
<ellisTAA> hamster88: i’m using beginning ruby by peter cooper. rubymonk.com also helped me
<hamster88> thank you ellisTAA , one more question, i don't like PHP much cos of its security flaws. So i can use the ruby on rails instead of it am i right?
<hamster88> i mean i can use it ruby on rails for web development things... right?
ta has quit [Read error: Connection timed out]
<ellisTAA> can u use RoR for web development? yeah i’m pretty sure. i’m new to all of this as well
ki0 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
chipotle has joined #ruby
<hamster88> I am developing a few new projects
ghr has joined #ruby
<hamster88> so I am thought why not to start with ruby and give php a break
ta has joined #ruby
<ellisTAA> good luck with it
<hamster88> thanks to you too :)
_5kg has quit [Ping timeout: 246 seconds]
ninjazach has joined #ruby
<hamster88> how did you find ruby as a language.. easy hard or normal?
rbennacer has joined #ruby
<jhass> ellisTAA: merge takes a hash, you pass it a string. Your input is a hash, you handle it as if it's a string
dfinninger has joined #ruby
<jhass> or it's a hash or a string rather
<jhass> >> "foo" + nil
<eval-in_> jhass => no implicit conversion of nil into String (TypeError) ... (https://eval.in/255053)
<jhass> and that's that
Zai00 has quit [Quit: Zai00]
<ellisTAA> jhass: i figured, hey this input could be a hash, if it is just merge it. why can’t i just write .merge(input) if input is a hash?
<jhass> you can
<jhass> your check whether it's a hash is flawed
<ellisTAA> oh
ghr has quit [Ping timeout: 245 seconds]
LWade_ has joined #ruby
<jhass> >> {'foo' => 'bar'}.include? '=>'
<eval-in_> jhass => false (https://eval.in/255054)
LWade has quit [Ping timeout: 264 seconds]
tmtwd has quit [Remote host closed the connection]
<jhass> use .is_a? Hash instead
<ellisTAA> jhass: oh man u r a genius
<shevy> is there something to keep in mind
<shevy> when I use a module with a def initialize method?
adamski2600 has quit [Remote host closed the connection]
<jhass> for the else branch: you can use variables as keys and values just fine, no need to construct a string that looks like a hash literal
<jhass> shevy: if the class you include it into defines an initialize, it probably needs to call super
rbennacer has quit [Ping timeout: 276 seconds]
<shevy> oh damn
russt has quit [Quit: russt]
it0a has joined #ruby
<shevy> my classes usually always have a def initialize method :(
hamster88 has left #ruby ["Leaving"]
<shevy> hmm
<waxjar> there is the self.included callback
<shevy> is there a reason why we can not do this:
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
xivusr has joined #ruby
<shevy> module Foo; def initialize; @foo = 5; end; end; class Bar < Foo; end
blueOxigen has quit [Ping timeout: 252 seconds]
<shevy> I guess this would technically be the same as include Foo
<ellisTAA> jhass: ty
Aova has quit [Read error: Connection reset by peer]
mitchellhenke has joined #ruby
<jhass> shevy: pretty much
<jhass> shevy: maybe you want Module#prepend?
<shevy> hmm
<shevy> prepend... that is doing something different or?
<jhass> then your modules initialize would need to call super
jerematic has joined #ruby
<shevy> huh
<jhass> yes, it puts the module in front of the class' ancestry chain
<jhass> >> module Foo; end; class Bar; include Foo; end; Bar.ancestors
<eval-in_> jhass => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/255082)
dc has joined #ruby
roshanavand has joined #ruby
dc has quit [Remote host closed the connection]
<jhass> >> module Foo; end; class Bar; prepend Foo; end; Bar.ancestors
<eval-in_> jhass => [Foo, Bar, Object, Kernel, BasicObject] (https://eval.in/255083)
<jhass> see the difference?
<shevy> hmm
kostitas has quit [Quit: Leaving]
<shevy> so we can modify the ancestor chain with prepend?
<jhass> both modify it
<jhass> just in different ways
rebcabin has quit [Quit: Leaving.]
xivusr has quit [Ping timeout: 276 seconds]
<jhass> method lookup _basically_ works like ancestors.each do |ancestor| ancestor.send(method) if ancestor.respond_to?(method); end
<jhass> more pseudo code than anything else, but yeah...
<jhass> + break on first call
rebcabin has joined #ruby
hirzu has joined #ruby
dfinninger has quit [Remote host closed the connection]
Aova has joined #ruby
Aova has joined #ruby
Aova has quit [Changing host]
<jhass> so ancestors.find {|ancestor| ancestor.respond_to?(method) }.send method would be the clearer version I guess
jerematic has quit [Remote host closed the connection]
wookiehangover has quit [Ping timeout: 245 seconds]
dfinninger has joined #ruby
frek818 has joined #ruby
<atmosx> Good evening
<atmosx> Can anyone help me with this: https://gist.github.com/atmosx/e4a5018dac8320e436fc
speakingcode has quit [Ping timeout: 240 seconds]
rebcabin has quit [Client Quit]
sent1nel has joined #ruby
spastorino_ has quit []
Jackneill has quit [Read error: Connection reset by peer]
spastorino_ has joined #ruby
ta has quit [Read error: Connection timed out]
swgillespie has joined #ruby
hirzu has quit [Client Quit]
dfinninger has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
vikram_ has quit [Quit: Connection closed for inactivity]
ta has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
wookiehangover has joined #ruby
jpstokes has joined #ruby
oo_ has joined #ruby
speakingcode has joined #ruby
ptrrr has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
Sirupsen has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
Zai00 has joined #ruby
oo_ has quit [Ping timeout: 276 seconds]
ellisTAA has quit [Quit: ellisTAA]
mikepack has quit [Remote host closed the connection]
jefus has joined #ruby
dotix has quit [Read error: Connection reset by peer]
pwh has quit []
JDiPierro has joined #ruby
rbennacer has joined #ruby
<weaksauce> atmosx why do you need something like this?
djbkd has joined #ruby
nobitanobi has quit [Remote host closed the connection]
quimrstorres has joined #ruby
LWade_ has quit [Ping timeout: 252 seconds]
LWade has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nicolastarzia has joined #ruby
<shevy> perhaps nucleotide sequence combinations
leonshalimov has joined #ruby
<jhass> >> def slicer(array); (n = array.size / 2) == 0 ? array : [slicer(array[0, n]), slicer(array[n, n+1])]; end; slicer (1..8).to_a
<eval-in_> jhass => [[[[1], [2]], [[3], [4]]], [[[5], [6]], [[7], [8]]]] (https://eval.in/255113)
<shevy> damn jhass is fast
<jhass> no, I'm not going to explain it :P
<shevy> damn jhass will explain it
<shevy> or shall I explain it
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> you know how this will end
<shevy> atmosx won't understand a thing when I try to explain
<jhass> mmh
<shevy> do you really want to put him through this jhass
<shevy> :-)
ta has quit [Ping timeout: 255 seconds]
* jhass checks if he has popcorn
AlexRussia has quit [Ping timeout: 264 seconds]
<jhass> I think so, yes
<shevy> atmosx ok so jhass keeps track of the iteration level through the variable n, which is half the size of the array; then he compares it to 0
<shevy> as input to slicer() he passes the Array [1, 2, 3, 4, 5, 6, 7, 8]
lessless has joined #ruby
<shevy> and inside after the : he invokes itself, with a different array range
dfinninger has joined #ruby
<shevy> atmosx wake up
Lucretia has left #ruby ["Leaving"]
<shevy> aaaatmoooooosx!
nicolastarzia has quit [Ping timeout: 245 seconds]
leonshalimov has quit [Ping timeout: 252 seconds]
Zai00 has quit [Quit: Zai00]
ta has joined #ruby
codecop has joined #ruby
<shevy> he is gone :(
<weaksauce> shevy the base case is a little more subtle and might be confusing for a newbie. it relies on integer division vs floating point division. so size/2 is 0 when size is 1... 1/2 == 0 but 1/2.0 == 0.5
Xiti has quit [Quit: Xiti]
dfinninger has quit [Ping timeout: 255 seconds]
davidhq has joined #ruby
<shevy> oh true
<shevy> >> 1/2
<eval-in_> shevy => 0 (https://eval.in/255143)
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<ddv> nice homework question
<jhass> guess why I've gone for the confsuing version and refrain from explaining it ;)
TgMts has joined #ruby
commmmodo has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Xiti has joined #ruby
_5kg has joined #ruby
try has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
<ddv> hehe
Eiam_ has joined #ruby
JohnBat26 has joined #ruby
LWade has quit [Ping timeout: 252 seconds]
LWade has joined #ruby
JohnBat26 has quit [Client Quit]
duncannz has joined #ruby
frek818 has quit [Quit: frek818]
mrmargolis has joined #ruby
quimrstorres has quit [Remote host closed the connection]
perturbation has quit [Quit: Leaving]
sent1nel has quit [Remote host closed the connection]
RandyT has joined #ruby
nobitanobi has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Client Quit]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
nobitanobi has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FooMunki has quit [Quit: FooMunki]
ramblinpeck_ has joined #ruby
ta has quit [Ping timeout: 276 seconds]
parduse has quit []
JDiPierro has quit [Remote host closed the connection]
sinkensabe has joined #ruby
dotix has joined #ruby
nobitanobi has quit [Remote host closed the connection]
ghr has joined #ruby
lampd1 has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
kalusn has quit [Remote host closed the connection]
ki0 has quit [Remote host closed the connection]
backhoe has joined #ruby
TgMts has joined #ruby
vikram_ has joined #ruby
ki0 has joined #ruby
LWade has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
LWade has joined #ruby
jgt2 has quit [Ping timeout: 246 seconds]
gsd has joined #ruby
sinkensabe has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Ping timeout: 240 seconds]
ta has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
<argoneus> hello
<argoneus> can you use Thin along Apache?
<argoneus> I use apache for some python stuff
<atmosx> weaksauce: for an algorithm implementation
<argoneus> and I read that Thin is good for ruby, but I don't want it to be too difficult, it's just a simple page
rbennacer has quit [Remote host closed the connection]
LWade_ has joined #ruby
arup_r has quit [Quit: Leaving.]
p3ery has quit [Quit: (null)]
LWade has quit [Ping timeout: 264 seconds]
<atmosx> jhass shevy thanks I'll work on it, sorry gf is here :-P
arup_r has joined #ruby
<atmosx> argoneus: you can.
<atmosx> argoneus: but you're better off with nginx
<jhass> argoneus: yes, and thin, unicorn, puma, shouldn't make a difference
Aova has quit [Read error: Connection reset by peer]
<argoneus> so wait
<argoneus> I have Apache running, serving some documentroots and virtual servers on port 80 etc
AlexRussia has joined #ruby
<mozzarella> what's better, thin or puma?
<argoneus> how do I get a simple ruby application running alongside that, then?
<argoneus> on example.com/myrubything
<argoneus> for example
<jhass> imo puma though thin does stuff puma doesn't support iirc
<argoneus> do I need to mess with apache?
skj3gg has joined #ruby
withnale_ has quit [Quit: Be back later ...]
<jhass> argoneus: a bit, easiest is you pick one of the above mentioned application servers, let it listen on a unix socket or port > 1024 and let apache reverse proxy requests to it
ptrrr has quit [Quit: ptrrr]
ta has quit [Ping timeout: 276 seconds]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
DonM has joined #ruby
ptrrr has joined #ruby
troter___ has quit []
troter___ has joined #ruby
<argoneus> jhass: won't that make the site public on the specified port too?
<Rylee> i was going to type a response, but jhass's kicked ass
<Rylee> argoneus: not if you make it listen on 127.0.0.1
<argoneus> ohhh
<argoneus> nice
<Rylee> and *only* 127.0.0.1
<argoneus> thanks!
<jhass> argoneus: or a unix socket
<Rylee> yes
<argoneus> that makes sense
<argoneus> so basically what will happen is
<jhass> argoneus: or be a good sysadmin and use a paketfilter
ptrrr has quit [Client Quit]
<jhass> that whitelists ports you want public
<argoneus> user requests example.com, it will ask wsgi to give it some python thing
nanoyak has quit [Quit: Computer has gone to sleep.]
<argoneus> and if it goes to example.com/rubything, apache will know that for this page it should ask localhost:1234 for response
<argoneus> and does that?
<Rylee> depends on your setup, but probably
<argoneus> I see
<argoneus> thanks!
<Rylee> Google will be of mcuh help here
bonhoeffer has quit [Quit: bonhoeffer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aova has joined #ruby
jerematic has joined #ruby
BLuEGoD has quit [Remote host closed the connection]
DadoCe has quit [Remote host closed the connection]
jonesthedolphin has quit [Ping timeout: 264 seconds]
<shevy> :D
BLuEGoD has joined #ruby
DadoCe has joined #ruby
<arup_r> shevy: I am now writing CSS..Jquery :(
<shevy> css is ok or?
<shevy> jquery is... $().call() bla ?
<shevy> arup_r you'll be a rich man with 10 kids
<arup_r> :p
ta has joined #ruby
<arup_r> why adding so many kids in my bucket ?
<arup_r> Jquery is OK.. css.. is wired for me
<arup_r> :(
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LWade_ has quit [Ping timeout: 264 seconds]
DadoCe_ has joined #ruby
DadoCe has quit [Read error: Connection reset by peer]
jerematic has quit [Ping timeout: 264 seconds]
commmmodo has quit [Quit: commmmodo]
mrmargolis has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 246 seconds]
sent1nel has joined #ruby
ta has quit [Ping timeout: 256 seconds]
<shevy> arup_r so you got some extra reasons to work!
<shevy> I found CSS rather simple
<shevy> it's all about padding, boxing, and margining
<shevy> :D
The_Phoenix has quit [Read error: Connection reset by peer]
CrazyM4n has quit [Remote host closed the connection]
<arup_r> Humm
<arup_r> What's the best tutorial to learn CSS, shevy: ? I am writing CSS without knowing A B C D of it.. :p
hirzu has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr22 has quit [Remote host closed the connection]
skj3gg has quit [Quit: ZZZzzz…]
bronson has joined #ruby
LWade has joined #ruby
bonhoeffer has joined #ruby
pdoherty has joined #ruby
blizzy has quit [Ping timeout: 255 seconds]
arup_r has quit [Ping timeout: 264 seconds]
ki0 has quit [Remote host closed the connection]
kalusn has joined #ruby
<shevy> dunno
<shevy> been so many years
<shevy> oh he is gone
Skelz0r has quit [Ping timeout: 245 seconds]
dfinninger has joined #ruby
ta has joined #ruby
Skelz0r has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
pdoherty has quit [Ping timeout: 245 seconds]
LWade_ has joined #ruby
LWade has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 252 seconds]
AdamMeghji_ has quit []
hirzu has quit [Quit: This computer has gone to sleep]
AdamMeghji_ has joined #ruby
kalusn has quit [Ping timeout: 244 seconds]
LWade_ has quit [Ping timeout: 252 seconds]
LWade has joined #ruby
longfeet has joined #ruby
speaking1ode has joined #ruby
j0n3 has joined #ruby
yvemath has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
hirzu has joined #ruby
ellisTAA has joined #ruby
DonM has left #ruby [#ruby]
<ellisTAA> do i always have to initialize an instance variable? or can i just create the instance variable in the class?
Hobogrammer has joined #ruby
__chris has joined #ruby
doobi-sham-70265 has joined #ruby
doobi-sham-70265 has quit [Remote host closed the connection]
Darryl___ has quit [Quit: Connection closed for inactivity]
hirzu has quit [Quit: This computer has gone to sleep]
<weaksauce> you need to initialize it to something before calling a method on it yeah.
<shevy> ellisTAA there is a difference between
<shevy> class Foo; @bar = 5
<shevy> and
<shevy> class Foo; def initialize; @bar = 5
<ellisTAA> weaksauce: is the only way to initialize it using def initialize?
yfeldblum has joined #ruby
<ellisTAA> shevy: what is the difference?
LWade has quit [Ping timeout: 244 seconds]
<shevy> ellisTAA the first one defines it the class instance of Foo itself; the second if you instantiate an object of class Foo via my_object = Foo.new
LWade has joined #ruby
chu_ has joined #ruby
chu has quit [Ping timeout: 255 seconds]
mrrob has joined #ruby
claw has joined #ruby
hirzu has joined #ruby
<weaksauce> no. you can do it in any method if you are careful but it's a good idea to do it in the initialize function while you are learning things.
commmmodo has joined #ruby
<ellisTAA> i see
<ellisTAA> thanks
<ellisTAA> what is this topic called? so i can read more about it
divi_ has joined #ruby
LWade_ has joined #ruby
LWade has quit [Ping timeout: 264 seconds]
david_ has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby
adamski2600 has joined #ruby
nobitanobi has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
divi_ has quit [Client Quit]
<__chris> what should I use to watch a rb file and then run it when it changes?
<weaksauce> __chris guard should do it
atmosx_ has joined #ruby
ta has quit [Ping timeout: 276 seconds]
<__chris> weaksauce, ok cool thanks
pwh has joined #ruby
atmosx_ has quit [Client Quit]
<weaksauce> ellisTAA instantiation of a class, and look at constructors
ta has joined #ruby
<ellisTAA> weaksauce: ty
adamski2600 has quit [Ping timeout: 255 seconds]
josephndenton has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
blizzy has joined #ruby
ghr has joined #ruby
uxp has quit [Quit: Lost terminal]
dfinninger has quit [Remote host closed the connection]
uxp has joined #ruby
uxp_ has joined #ruby
chipotle has quit [Quit: cheerio]
claw_ has joined #ruby
dfinninger has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
uxp has quit [Client Quit]
dfinninger has joined #ruby
leonshalimov has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
LWade has joined #ruby
sinkensabe has quit [Ping timeout: 245 seconds]
LWade_ has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 264 seconds]
claw has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
hirzu has quit [Quit: This computer has gone to sleep]
dotix has quit [Read error: Connection reset by peer]
Aova has quit [Read error: Connection reset by peer]
leonshalimov has quit [Ping timeout: 246 seconds]
xivusr has joined #ruby
withnale_ has joined #ruby
LWade has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Remote host closed the connection]
dotix has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 264 seconds]
quimrstorres has joined #ruby
davidhq has joined #ruby
keen__________41 has joined #ruby
hamakn has quit [Remote host closed the connection]
softinio_ has quit []
keen__________40 has quit [Ping timeout: 252 seconds]
Aova has joined #ruby
davidhq has quit [Client Quit]
<ellisTAA> is the only reason to initialize variables because those values are given when an instance of a class is created?
raducroitoru has joined #ruby
xivusr has quit [Ping timeout: 245 seconds]
withnale_ has quit [Ping timeout: 252 seconds]
dotix has quit [Ping timeout: 265 seconds]
bthesorceror has quit [Quit: bthesorceror]
jamison_ has joined #ruby
<atmosx> jhass: I have too many questions
davidhq has joined #ruby
<ellisTAA> what do pipes mean if they come before an equal sign, e.g. @@neo ||= Neography::Rest.new()
<atmosx> especially with regarding notation -> [slicer(array[0, n]), slicer(array[n, n+1])] ... From what I understand this is creating a new array at each iteration. What I don't get is how exactly the iteration happens
<atmosx> ellisTAA: if @@neo is not defined yet, assign Neography::Rest.new() to it
bricker has joined #ruby
<ellisTAA> thats what the pipes mean?
<atmosx> ellisTAA: when used like this yes
davidhq has quit [Client Quit]
<ellisTAA> ty ty ty
DadoCe_ has quit [Remote host closed the connection]
davidhq has joined #ruby
oo_ has joined #ruby
doobi-sham-69023 has quit [Remote host closed the connection]
doobi-sham-55042 has joined #ruby
nicolastarzia has joined #ruby
klmlfl has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
it0a has quit [Ping timeout: 265 seconds]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
oo_ has quit [Ping timeout: 252 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nicolastarzia has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
davidhq has joined #ruby
Sirupsen has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
ki0 has joined #ruby
TgMts has quit [Remote host closed the connection]
parduse has joined #ruby
Sgeo_ has joined #ruby
mrrob has quit [Read error: Connection reset by peer]
frek818 has joined #ruby
mrrob has joined #ruby
rbrs has joined #ruby
MrBeardy has joined #ruby
rbrs has quit [Client Quit]
ki0 has quit [Ping timeout: 264 seconds]
OrbitalKitten has joined #ruby
Sgeo has quit [Ping timeout: 244 seconds]
bhaak has quit [Ping timeout: 256 seconds]
gsd has joined #ruby
learner has quit [Ping timeout: 252 seconds]
bhaak has joined #ruby
axisys has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
bronson has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bonhoeffer has quit [Quit: bonhoeffer]
snowpeas has quit [Read error: Connection reset by peer]
snowpeas has joined #ruby
fedexo has joined #ruby
lampd1 has quit [Remote host closed the connection]
jamison_ has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
commmmodo has quit [Quit: commmmodo]
divi_ has joined #ruby
Megtastique has quit []
mrrob has quit [Quit: mrrob]
Channel6 has quit [Ping timeout: 264 seconds]
bonhoeffer has joined #ruby
Megtastique has joined #ruby
frek818 has quit [Quit: frek818]
frek818 has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
bonhoeffer has quit [Client Quit]
decoponio has joined #ruby
divi_ has quit [Ping timeout: 264 seconds]
divi_ has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shime has joined #ruby
frek818 has quit [Client Quit]
dfinninger has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
hamakn has joined #ruby
TinkerTyper has quit [Quit: ZNC restarting...]
hamakn has quit [Remote host closed the connection]
bthesorceror has joined #ruby
DadoCe has joined #ruby
bonhoeffer has quit [Client Quit]
mynameis has quit [Quit: Leaving]
nahtnam has joined #ruby
C1V0 has joined #ruby
maletor has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
<nahtnam> I want to create a bot that goes on the steam community. The problem is that I have to simulate mouse clicks. I was wondering if you guys knew how to simulate the clicks. (A gem would be great)
Sirupsen has joined #ruby
commmmodo has joined #ruby
DadoCe has quit [Ping timeout: 252 seconds]
sinkensabe has joined #ruby
ghr has joined #ruby
frek818 has joined #ruby
TinkerTyper has joined #ruby
<shevy> nahtnam on a webpage?
frek818 has quit [Client Quit]
<nahtnam> shevy: Yes
function90 has joined #ruby
<shevy> you can give mechanize a try
<nahtnam> shevy: Kk. Ill check it out. Thanks.
<shevy> hmm
<shevy> have a look at the examples/ directory
<shevy> # Go to the upload page
<shevy> page = page.link_with(:text => 'Upload').click
<nahtnam> Kk
ghr has quit [Ping timeout: 245 seconds]
<shevy> it probably is not technically a "mouse click" - you just set to the target, then invoke .click() on it :)
sinkensabe has quit [Ping timeout: 245 seconds]
frek818 has joined #ruby
bronson has quit [Remote host closed the connection]
Majmun has joined #ruby
Aova has quit [Read error: Connection reset by peer]
bronson has joined #ruby
mrmargolis has joined #ruby
<weaksauce> ellisTAA variable ||= "something" is shorthand for this: variable = variable || "something which means that if variable is nil it will be like this: variable = nil || "something
maletor has quit [Quit: Computer has gone to sleep.]
<weaksauce> "
vikram_ has quit [Quit: Connection closed for inactivity]
<weaksauce> || means logical or
<ellisTAA> weaksauce: ty ty
davedev24_ has joined #ruby
dfinninger has joined #ruby
user083 has joined #ruby
bklane has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
Majmun has left #ruby [#ruby]
<user083> I created an H-tree fractal using ruby, Any advice? http://kerseykyle.com/projects/H-tree.html
thatslifeson has quit [Quit: Leaving]
Aova has joined #ruby
<ellisTAA> what is a good source for intermediate ruby? i’m almost finished with Beginner Ruby by peter cooper and i’m looking for the next bok to get
thatslifeson has joined #ruby
longfeet has quit [Ping timeout: 245 seconds]
kl__ has quit [Ping timeout: 264 seconds]
kl has quit [Ping timeout: 264 seconds]
duncannz has quit [Ping timeout: 276 seconds]
jakesyl has quit [Ping timeout: 276 seconds]
dfinninger has quit [Ping timeout: 276 seconds]
nahtnam has quit [Ping timeout: 246 seconds]
spupuser1 has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce> user083 the code could be formatted better
bthesorceror has quit [Quit: bthesorceror]
<weaksauce> ruby tends to have spacing between operators and parameters and usually drops the () off of method calls if there is no ambiguity
sent1nel_ has joined #ruby
sinkensabe has joined #ruby
swgillespie has joined #ruby
dc_ has joined #ruby
<user083> weaksauce: what could i do to improve the formating? thanks.
<weaksauce> ^ explains it much better than I could
sent1nel has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
sent1nel_ is now known as sent1nel
Sawbones has quit [Remote host closed the connection]
ElderFain has joined #ruby
kalusn has joined #ruby
jeff-ooh has joined #ruby
<havenwood> user083: Nice, that's neat. Use snake_case instead of headlessCamelCase for methods, so `h_tree` instead of `hTree`. Put spaces after commas and between mathy stuffs. Drop the Hash rocket when the key is a Symbol, so `y2: y` instead of `:y2 => y` and `target: STDOUT` instead of `:target => STDOUT`, etc.
<havenwood> user083: That H-tree is neat looking.
bronson has quit [Remote host closed the connection]
<havenwood> user083: `level.even?` instead of `level % 2 == 0`
klmlfl has joined #ruby
<havenwood> user083: It'd be good to extract and DRY up the duplicate parts of the if statement.
<havenwood> user083: It's fine to divide by a Float like you are, but you could also use #fdiv like `length.fdiv(2)`.
ta has joined #ruby
pdoherty has joined #ruby
frek818 has quit [Quit: frek818]
<weaksauce> I'd probably make it a class and extract all the constant stuff into instance variables xml, and starting_length being the two main offenders
lkba has joined #ruby
<weaksauce> and I prefer guard statements at the top of the method. return if level == 0 reads more intentional
Afforess has left #ruby ["I would never lie - I participated in a willful campaign of misdirection"]
doobi-sham-55042 has quit [Remote host closed the connection]
<weaksauce> and keeps the indentation down
<havenwood> user083: I slightly prefer `length.pred` to `length - 1`.
codeFiend has quit [Quit: codeFiend]
<havenwood> weaksauce: agreed, but I vote `level.zero?` :P
doobi-sham-53143 has joined #ruby
codeFiend has joined #ruby
jakesyl has joined #ruby
<user083> Are thouse methods faster?
<weaksauce> ruby has a method for everything eh?
<user083> than using math?
Sawbones has joined #ruby
<weaksauce> user083 probably
<weaksauce> level.zero? is going to be a raw c call so that's likely pretty fast.
codeFiend has quit [Client Quit]
<weaksauce> and then it's going to be a symbol lookup
codeFiend has joined #ruby
<weaksauce> sorry id lookup for whatever 0 is
bricker has quit [Quit: Lost terminal]
bricker has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
<epitron> jhass: i like how easy it is to do C bindings in crystal
<weaksauce> turns out 0 has an object_id of 1, neat.
deric_skibotn has quit [Ping timeout: 255 seconds]
<user083> q
doobi-sham-64064 has joined #ruby
<jhass> epitron: yeah :)
d10n-work has joined #ruby
<jhass> there's a #crystal-lang that could use some more population btw :P
jeff-ooh has quit [Remote host closed the connection]
nopolitica has joined #ruby
randiman has quit [Quit: (null)]
doobi-sham-64064 has quit [Read error: Connection reset by peer]
<weaksauce> ellisTAA eloquent ruby is a really good book but I fear that it may fall into the advanced category
benlakey has joined #ruby
bklane has quit []
<ellisTAA> weaksauce: thanks … any ideas on a book about intermediate ruby?
<weaksauce> if you read and understand all of beginning ruby it should be a solid foundation by the looks of it.
chu_ has quit [Ping timeout: 245 seconds]
doobi-sham-93509 has joined #ruby
<weaksauce> ellisTAA the well grounded rubyist is pretty thorough
claw_ has quit [Quit: Konversation terminated!]
mrmargolis has quit [Remote host closed the connection]
doobi-sham-93509 has quit [Remote host closed the connection]
<ellisTAA> cool
<ellisTAA> should i read the well grounded rubyist before eloquent Ruby?
kl__ has joined #ruby
kl has joined #ruby
<havenwood> ellisTAA: The Ruby Programming Language and The Well-Grounded Rubyist, Second Edition are both good options.
timanema has quit [Ping timeout: 272 seconds]
chu has joined #ruby
ki0 has joined #ruby
ki0 has quit [Remote host closed the connection]
joelteon has left #ruby ["bye"]
<weaksauce> I hear good things about the pickaxe book as well.
<ellisTAA> cool thanks
asmodlol has joined #ruby
jeff-ooh has joined #ruby
nateberkopec has quit [Quit: Leaving...]
codeFiend has quit [Ping timeout: 252 seconds]
jeff-ooh has quit [Remote host closed the connection]
j416 has quit [Ping timeout: 245 seconds]
codecop has quit [Remote host closed the connection]
leonshalimov has joined #ruby
codeFiend has joined #ruby
jgt2 has joined #ruby
Rhainur1 has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
frek818 has joined #ruby
josephndenton has joined #ruby
DadoCe has joined #ruby
doobi-sham-83682 has joined #ruby
j416 has joined #ruby
__chris has quit [Read error: Connection reset by peer]
Rhainur has joined #ruby
neektza has quit []
neektza has joined #ruby
leonshalimov has quit [Ping timeout: 276 seconds]
withnale_ has joined #ruby
divi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheNet has joined #ruby
Sawbones has quit [Remote host closed the connection]
raducroitoru has quit [Quit: Leaving]
skj3gg has joined #ruby
DadoCe has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
tmtwd has joined #ruby
longfeet has joined #ruby
gmcintire has quit []
doobi-sham-53143 has quit [K-Lined]
gmcintire has joined #ruby
withnale_ has quit [Ping timeout: 245 seconds]
C1V0 has quit [Read error: Connection reset by peer]
C1V0 has joined #ruby
riotjone_ has joined #ruby
hamakn has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
pandaant has quit [Remote host closed the connection]
ecksit has joined #ruby
DadoCe has joined #ruby
doobi-sham-83682 has quit [K-Lined]
dfinninger has joined #ruby
Aova has quit [Read error: Connection reset by peer]
jschoolcraft has quit [Quit: zzzz]
riotjones has quit [Ping timeout: 265 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
nicolastarzia has joined #ruby
nateberkopec has joined #ruby
DadoCe has quit [Ping timeout: 244 seconds]
hamakn has quit [Ping timeout: 276 seconds]
<vandemar> does anyone use the beencode gem? It seems extremely slow. The same structure/object in yaml format takes a couple seconds to load, beencode takes over 20 minutes to load.
xivusr has joined #ruby
deric_skibotn has joined #ruby
<ellisTAA> can i ask a big programming question?
Aova has joined #ruby
chu has quit [Ping timeout: 246 seconds]
<user083> ellisTAA: yes
<ellisTAA> what is the purpose of classifying data as belonging to a specific class?
<ellisTAA> why create different classes for data like string num range etc
<ellisTAA> not range, i meant hash
nicolastarzia has quit [Ping timeout: 264 seconds]
chu has joined #ruby
xivusr has quit [Ping timeout: 264 seconds]
antgel has quit [Ping timeout: 255 seconds]
dfinninger has quit [Remote host closed the connection]
<ellisTAA> i guess one reason is that an operation can treat the data differently based on what kind of class it belongs to, but is there any other reason
ptrrr has joined #ruby
skj3gg_ has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
rcoulman has joined #ruby
<apeiros_> ellisTAA: because many things are different. how the data is stored. how it is accessed. what you can do with it.
<apeiros_> though, it's more often different how you do something with it, than what.
skj3gg has joined #ruby
hmsimha has joined #ruby
<ellisTAA> so should i learn about the differences between how different data is stored?
<ellisTAA> accessed etc
sambao21 has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
FooMunki has joined #ruby
<apeiros_> it's valuable knowledge. more important are the properties of the differences.
skj3gg_ has quit [Client Quit]
<apeiros_> e.g. that looking up a key in a hash is O(1) (constant time) whereas finding a key in an array of key/value arrays is O(n) (takes more time the larger the array)
phoo1234567 has quit [Quit: Leaving]
<ellisTAA> apeiros: what is this topic called?
<apeiros_> datastructures & algorithms? algorithmic complexity? depends what you're looking for specifically.
tjohnson has quit [Quit: Connection closed for inactivity]
<ellisTAA> if i want to learn about this stuff do i just read about datastructures or do i search for ruby datastructures
jgt2 has quit [Ping timeout: 245 seconds]
codeFiend has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
<apeiros_> datastructures alone is sufficient. this is valid across programming languages.
<ellisTAA> cool
<ellisTAA> ty for that info
<ellisTAA> do u know any must check out sources for datastructures / algorithms?
EvanFreeman has joined #ruby
<apeiros_> c2 & wp are generally quite good sources
<ellisTAA> c2 & wp?
bonhoeffer has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
<ellisTAA> thanks
AlexRussia has joined #ruby
<apeiros_> sorry, should have made myself clear
AlexRussia has quit [Client Quit]
bronson has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
<apeiros_> ellisTAA: ah, re c2, you want http://c2.com/cgi/wiki
postmodern has joined #ruby
thatslifeson_ has joined #ruby
<ellisTAA> i dont get what c2 is …
metadave has joined #ruby
Channel6 has joined #ruby
JBreit has quit [Ping timeout: 245 seconds]
TheNet has quit [Quit: Leaving...]
sent1nel has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
<apeiros_> it's a wiki with a lot of material re everything CS
<ellisTAA> oh thanks
skj3gg_ has joined #ruby
thatslifeson has quit [Ping timeout: 245 seconds]
thatslifeson_ is now known as thatslifeson
codeFiend has joined #ruby
<kl__> class MyClass < BaseClass; end
<kl__> Is there a short way to create an instance of a class that subclasses another?
Sawbones has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
spyderman4g63 has joined #ruby
<ellisTAA> that subclasses another?
jgt2 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<apeiros_> oh, lol, almost wrote an answer.
dfinninger has joined #ruby
<ellisTAA> newclass = MyClass.new
skj3gg_ has quit [Quit: ZZZzzz…]
function90 has quit [Quit: Textual IRC Client: www.textualapp.com]
<kl__> apeiros_: lol
nfk has quit [Quit: yawn]
<apeiros_> kl__: hm? I thought you had put me on ignore?
<kl__> apeiros_: restarted client,
skj3gg has quit [Quit: ZZZzzz…]
<kl__> ellisTAA: class A < B; end; A.method # method is defined in the superclass and does some metaprogramming that involves looking at the class name (i.e. A)
<kl__> ellisTAA: I'm essentially looking to reduce that into one statement; Class.new on the other hand *might* be useful
<ellisTAA> i see
ki0 has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
nfk has joined #ruby
rcoulman has quit [Quit: rcoulman]
Hijiri has joined #ruby
nfk has quit [Client Quit]
davidhq has joined #ruby
ta has quit [Remote host closed the connection]
ellisTAA has left #ruby [#ruby]
zenith_ has joined #ruby
jerematic has joined #ruby
<kl__> apeiros_: how do you do