apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: 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
sarlalia1 has quit [Client Quit]
NinoScript has quit [Client Quit]
angusiguess has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
timfoo has joined #ruby
SCommette has quit [Quit: SCommette]
redondos has quit [Excess Flood]
redondos has joined #ruby
havenwood has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
Stalkr_ has quit [Quit: Leaving...]
pierre1_ has quit [Quit: Leaving]
lmickh has quit [Remote host closed the connection]
sarlalia1 has joined #ruby
Bira has quit [Remote host closed the connection]
sarlalia1 has quit [Client Quit]
Dalboz has joined #ruby
robbo__ has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
wallerdev has joined #ruby
jhulten has quit [Remote host closed the connection]
lw has quit [Quit: s]
sarlalia1 has joined #ruby
ddv has joined #ruby
nfk has quit [Quit: yawn]
sarlalian has quit [Quit: WeeChat 0.4.0]
Bira has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
geggam has quit [Quit: weekend()]
s2013 has joined #ruby
GriffinHeart has joined #ruby
kevind has quit [Quit: kevind]
JokesOnYou77 has quit [Quit: WeeChat 0.3.8]
timonv has quit [Ping timeout: 240 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nilium has joined #ruby
nanoyak has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
lethe has joined #ruby
brunops has joined #ruby
diegovio1 has joined #ruby
diegovio1 is now known as diegovio1a
maletor_ has quit [Quit: Computer has gone to sleep.]
brunops has quit [Changing host]
brunops has joined #ruby
dgarstang has quit [Quit: WeeChat 0.4.3]
GriffinHeart has quit [Ping timeout: 276 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzschaefer has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lethe has quit [Ping timeout: 240 seconds]
sarlalia1 has quit [Quit: WeeChat 0.4.2]
diegovio1a has quit [Read error: Connection reset by peer]
sarlalian has joined #ruby
diegovio1 has joined #ruby
diegovio1 is now known as diegovio1a
moritzs has quit [Ping timeout: 255 seconds]
robbo__ has joined #ruby
lagweezle has joined #ruby
<lagweezle> set :foo, "Yay some value!" <--- what /is/ that?
recurrence has joined #ruby
dingus_khan has quit [Remote host closed the connection]
sambao21 has joined #ruby
<benzrf> lagweezle: in sinatra?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lagweezle> Oh, and used a lot in deploy.rb for Capistrano, it seems.
eka has joined #ruby
frem_ has quit [Ping timeout: 240 seconds]
<benzrf> lagweezle: set is a method
<benzrf> what it does depends on what it does
kireevco has quit [Quit: Leaving.]
<benzrf> lagweezle: what object is it being called on?
s2013 has quit [Ping timeout: 276 seconds]
<benzrf> lagweezle: see if you can use pry to get into the context it's being used in and find out where that context's set method was defined
<lagweezle> This is going to take some digging, but yeah, excellent start so I at least know what to look for now.
<lagweezle> Thankee.
<lagweezle> Gaaaaah train is extra rough-ride today.
Jocko has joined #ruby
Jocko has left #ruby [#ruby]
<lagweezle> And apparently I read that later as my stop is up!
<lagweezle> Thankee benzrf !
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Spami has quit [Quit: This computer has gone to sleep]
<benzrf> lagweezle: :-)
sambao21 has quit [Quit: Computer has gone to sleep.]
mijicd has quit [Remote host closed the connection]
sambao21 has joined #ruby
leroylol has quit [Quit: Leaving]
aspires has joined #ruby
Lucky_ has joined #ruby
Lucky_ has quit [Client Quit]
TwinkleHood has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
combusean has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
lethe has joined #ruby
zkay11 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
gr33n7007h has joined #ruby
robbo__ has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
Azure has joined #ruby
NukePuppy has quit [Ping timeout: 255 seconds]
bricker`1A has quit [Ping timeout: 255 seconds]
Lucky_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
yubrew has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Remote host closed the connection]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
TwinkleHood has joined #ruby
maximski has joined #ruby
angusiguess has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
treehug88 has joined #ruby
treehug88 has quit [Max SendQ exceeded]
JensOfSweden has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 272 seconds]
treehug88 has joined #ruby
treehug88 has quit [Max SendQ exceeded]
amclain has joined #ruby
treehug88 has joined #ruby
RaptorJesus has quit [Remote host closed the connection]
dfinly has quit [Quit: Farewell]
angusiguess has quit [Ping timeout: 276 seconds]
RaptorJesus has joined #ruby
maximski has quit []
SevenWolf has quit [Quit: SevenWolf]
moted has quit [Quit: moted]
<wallerdev> happy friday
<wallerdev> ;)
<wallerdev> that wasnt meant to be a wink but ill go with it
goleldar has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
echevemaster has joined #ruby
cpruitt has joined #ruby
binaryhat has joined #ruby
crome has quit [Ping timeout: 258 seconds]
alexju has quit [Remote host closed the connection]
Wr3x has joined #ruby
crome has joined #ruby
yfeldblum has joined #ruby
<shevy> I HATE YOU ALL!!!
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<shevy> oops that was not what I meant honestly but let's stick to it
<Dalboz> ror
<shevy> #RubyOnRails
axl_ has quit [Quit: axl_]
deric_skibotn has quit [Ping timeout: 252 seconds]
binaryhat has quit [Quit: Leaving]
robustus has quit [Ping timeout: 252 seconds]
JaTochNietDan has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
robustus has joined #ruby
thomasxie has joined #ruby
moritzschaefer has quit [Ping timeout: 252 seconds]
combusean has joined #ruby
aspires has quit []
diegovio1a has quit [Quit: WeeChat 0.4.3]
JaTochNietDan has joined #ruby
Dalboz has quit [Quit: Leaving]
Sarco has quit [Ping timeout: 258 seconds]
gregf has joined #ruby
tkuchiki has joined #ruby
wallerdev has quit [Quit: wallerdev]
tkuchiki has quit [Ping timeout: 252 seconds]
dingus_khan has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
nowthatsamatt has joined #ruby
nowthatsamatt has quit [Client Quit]
dingus_khan has quit [Ping timeout: 252 seconds]
voodoofish340 has quit [Quit: Leaving.]
Retroid_ has quit [Read error: Connection reset by peer]
tacos1de has quit [Remote host closed the connection]
Retroid_ has joined #ruby
Hanmac1 has joined #ruby
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
cpruitt has quit [Quit: cpruitt]
hgl has joined #ruby
tacos1de has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
yubrew has joined #ruby
moted has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
yfeldblum has quit [Remote host closed the connection]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TwinkleHood has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 240 seconds]
cpruitt has quit [Client Quit]
rm_ has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
NinoScript has joined #ruby
cpruitt has joined #ruby
yfeldblum has joined #ruby
St_Marx has quit [Remote host closed the connection]
end_guy has quit [Write error: Broken pipe]
end_guy has joined #ruby
St_Marx has joined #ruby
toastynerd has joined #ruby
jayne has quit [Read error: Connection reset by peer]
jayne has joined #ruby
<shevy> hmm
<shevy> can we uninclude a module?
angusiguess has joined #ruby
<shevy> module Foo; TEST = '123'; end; class Bar; include Foo; end
<shevy> now uninclude event
<shevy> in this situation, TEST would be removed, and Foo would not show up in ancestors of class Bar
RaptorJesus has quit [Remote host closed the connection]
RaptorJesus has joined #ruby
kireevco has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
dawkirst has joined #ruby
wallerdev has joined #ruby
hello_world101 has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
<bmurt> hey all, is it posslbe to override a published gem's dependencies?
<bmurt> the 'mail' gem wants mime-type ~> '1.16', but i have a v2.x installed
<bmurt> i actually have both 1.16 and the v2.x installed and this is the error:
<bmurt> Unable to activate mail-2.5.4, because mime-types-2.3 conflicts with mime-types (~> 1.16)
dawkirst has quit [Ping timeout: 258 seconds]
k03ll has joined #ruby
<shevy> unsure
<shevy> a workaround is to modify the .gemspec and build the new gem
<shevy> via 'gem build *.gemspec'
<bmurt> my manual process has been to edit the Gem file
radic has quit [Ping timeout: 264 seconds]
<bmurt> hmm
<shevy> I don't know how Gemfile works, only .gemspec sorry; but I am sure bundler also has means to rebuild a changed gem
<bmurt> but then that new gem has to be hosted somewhere
<shevy> well
koell has quit [Ping timeout: 255 seconds]
radic has joined #ruby
<bmurt> i could fork then reference my github repo
<shevy> the problem exists because the mail gem has that hardcoded dependency in the first place, but perhaps there exists a way to tell gem to ignore a dependency, let's see
GriffinHeart has quit [Ping timeout: 276 seconds]
dingus_khan has joined #ruby
<shevy> ok here is one way:
<shevy> -f, --[no-]force Force gem to install, bypassing dependency checks
<shevy> another way perhaps:
<shevy> --ignore-dependencies Do not install any required dependent gems
<shevy> not sure if this works on a per-gem basis too
<shevy> but if not you could file an issue reguest at the rubygems site
<shevy> *request
dingus_k_ has joined #ruby
<bmurt> i know the gem, for my needs, works on 2.5.3 and 2.5.4
<bmurt> its just annoying have to edit the files when i test
phracker has quit [Quit: Textual IRC Client: www.textualapp.com]
<bmurt> mechanize installs the v2.x version for mime-type
Azure has quit [Quit: Blue Sky Fish]
<bmurt> which is why the conflict exists
phracker has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has quit [Quit: cpruitt]
Azure has joined #ruby
agjacome_ has joined #ruby
<shevy> yeah, the amount of control you have over gems is very low
<shevy> I have a project named configuration
<shevy> but there already exists another project called configuration
<shevy> so I am screwed if I wish to keep on using that name
cpruitt has joined #ruby
dingus_khan has quit [Ping timeout: 258 seconds]
toastynerd has quit [Remote host closed the connection]
feature_creep has joined #ruby
agjacome has quit [Ping timeout: 258 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
sptx00 has joined #ruby
<bmurt> that's annoying
speakingcode has joined #ruby
speaking1ode has joined #ruby
alxgnon has quit []
Bira has quit [Remote host closed the connection]
Azure has quit [Quit: Blue Sky Fish]
bluOxigen has joined #ruby
djbkd has joined #ruby
nemesit|znc has quit [Ping timeout: 276 seconds]
Bira has joined #ruby
Azure has joined #ruby
speaking2ode has joined #ruby
toastynerd has joined #ruby
speakingcode has quit [Disconnected by services]
speaking2ode is now known as speakingcode
meatherly has joined #ruby
LexicalScope has joined #ruby
lethjakman has quit [Ping timeout: 245 seconds]
meatherly has quit [Remote host closed the connection]
xcv_ has quit [Remote host closed the connection]
speaking1ode has quit [Ping timeout: 265 seconds]
<shevy> the problem starts with the assumptions by rubygems that there is only one repository
Bira has quit [Client Quit]
nemesit|znc has joined #ruby
<shevy> you can add other hosts such as via:
<shevy> gem sources -a http://gems.github.com
speaking1ode has joined #ruby
<shevy> but it still always feels like a second class citizen
tkuchiki has quit [Ping timeout: 264 seconds]
ixti has quit [Ping timeout: 252 seconds]
jackjackdrpr has joined #ruby
pwh has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
mesamoo has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
<bmurt> shevy: the problem now is, i used bundle install to install the gems, but since i forked and installed via git, gem list, etc. isn't aware of the gem
<bmurt> cannot load such file -- mail (LoadError)
centrx has joined #ruby
hello_world101 has quit [Remote host closed the connection]
yubrew has joined #ruby
northfurr has joined #ruby
hj2007 has joined #ruby
abstrakt has joined #ruby
toastynerd has quit [Remote host closed the connection]
<hj2007> I'm absolute beginner and trying to create a ROR app while following the tutorial on "http://guides.rubyonrails.org/getting_started.html". When I run "rails new blog", it says "This will create a Rails application called Blog in a blog directory". But in my case I see a directory named "new" is created instead of "blog". What am I doing wrong here?
<abstrakt> hj2007, try #rubyonrails
maestrojed has joined #ruby
<hj2007> ok, thanks
<abstrakt> hj2007, rails is generally off topic here as it includes lots of things that don't exist in regular ruby
yubrew has quit [Ping timeout: 255 seconds]
<hj2007> ok, I understand.
thomasxie has quit [Quit: Leaving.]
Azure has joined #ruby
northfurr has quit [Client Quit]
subbyyy has quit [Ping timeout: 258 seconds]
quillen has joined #ruby
quillen has left #ruby [#ruby]
<shevy> bmurt hehe no idea, I avoid bundler like the plague; I work solely on .gemspec files, I think it should be mandatory that every gem has these
jackjackdrpr has quit [Quit: Leaving.]
jackjackdrpr has joined #ruby
<RubyPanther> shevy: bundler agrees, and normally when you use it it generates a gemspec, then you load the gemspec from the Gemfile so that it works from both
BAMbanda has quit [Ping timeout: 258 seconds]
HashNuke has joined #ruby
oo_ has joined #ruby
<shevy> cool
<shevy> bmurt so there you go, according to RubyPanther you can get the .gemspec from bundler
<bmurt> i was able to use the Gemfile and set a git repo, but when i execute the script, the gem cannot be found because bundler installs the git repo'd gem outside of the gem path
GriffinHeart has joined #ruby
speaking1ode has quit [Quit: leaving]
robbo__ has joined #ruby
jackjackdrpr has quit [Ping timeout: 252 seconds]
hello_world101 has joined #ruby
hello_world101 has quit [Remote host closed the connection]
davedev2_ has quit []
davedev24_ has joined #ruby
angusiguess has joined #ruby
<shevy> hehehehe
endash has quit [Quit: endash]
<benzrf> \] \]
mehlah has quit [Quit: Leaving...]
hello_world101 has joined #ruby
braincrash has quit [Quit: bye bye]
angusiguess has quit [Ping timeout: 252 seconds]
freezey has joined #ruby
<shevy> benzrf will you work on a new gem
dingus_k_ has quit [Remote host closed the connection]
<benzrf> shevy perhaps, what should it be
<benzrf> i have been doing haskell tho
robbo__ has quit [Ping timeout: 245 seconds]
<shevy> hmm
sriehl has joined #ruby
sriehl has quit [Client Quit]
timgauthier has joined #ruby
<shevy> benzrf well considering that you do use sinatra
braincrash has joined #ruby
<shevy> and I started to dig deeper into sinatra only like ... 4 or 5 weeks ago in total
<shevy> something related to the web and ruby, something small but nifty and useful
freezey has quit [Ping timeout: 252 seconds]
subbyyy has joined #ruby
hello_world101 has quit [Remote host closed the connection]
dawkirst has joined #ruby
toastynerd has joined #ruby
eka has joined #ruby
kilk_ has joined #ruby
kireevco has quit [Quit: Leaving.]
kireevco has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
kireevco has quit [Client Quit]
kireevco has joined #ruby
rm_ has joined #ruby
kireevco has quit [Client Quit]
kireevco has joined #ruby
kireevco has quit [Client Quit]
kireevco has joined #ruby
einarj has joined #ruby
kireevco has quit [Client Quit]
yfeldblum has joined #ruby
rm_ has quit [Ping timeout: 245 seconds]
IceDragon has quit [Quit: Space~~~]
bricker`LA has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
Asher has quit [Quit: Leaving.]
cjs has joined #ruby
toastynerd has quit [Remote host closed the connection]
decoponio has joined #ruby
<timgauthier> wtf shevy...
<timgauthier> :P
St_Marx has quit [Remote host closed the connection]
RaptorJesus has quit [Remote host closed the connection]
sptx00 has quit [Remote host closed the connection]
end_guy has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Broken pipe]
Boohbah has quit [Write error: Broken pipe]
<timgauthier> I started a project today and the template used haml
<timgauthier> i fixed that though
<horrorvacui> I like haml :(
einarj has quit [Ping timeout: 265 seconds]
<benzrf> timgauthier: haml IS the fix, you heretic
<horrorvacui> at least use slim :P
<timgauthier> TAKE THAT EMPEROR
<timgauthier> neverrrrrr
<timgauthier> I just don't think in an organized enough manner that allows me to be effective with HAML
<horrorvacui> how is that possible? :P
Asher has joined #ruby
<horrorvacui> You don't indent right?
<horrorvacui> Or is it more higher level than that?
<timgauthier> I can't really easily write bulleted lists even
<horrorvacui> I know what you mean. It's just not a natural format for you. I myself can't outline stuff.
bluOxigen has quit [Ping timeout: 245 seconds]
<timgauthier> my thought processes lead to very messy outcomes, which i find are easier for me to turn into "modules" (html) that i can then move around my page and pull parts in and out of eachother. I mean i could probably rewrite the final parts into haml later but to actually start in haml isn't useful for me yet
<horrorvacui> Ahh, makes sense now.
<timgauthier> yes, so i use ERB
feature_creep has quit [Quit: feature_creep]
<timgauthier> Because I am writing templates it works out okay
<horrorvacui> I tend to just partial things up in haml and that gives me some of the benefits but I run into the same problems.
toastynerd has joined #ruby
<horrorvacui> I like haml because I can't stand writing end tags.
<shevy> timgauthier see man
<shevy> timgauthier your use of templates makes me sad
<shevy> this is why I put my faith in benzrf - he does not believe in templates either
<timgauthier> haha
robbo__ has joined #ruby
<horrorvacui> If I'm not mistaken though, slim is way faster than haml.
<shevy> timgauthier one idea I once had was to abstract the whole html-css stack at least
<timgauthier> why?
<shevy> I also once wanted to have one DSL for all GUIs in ruby
<shevy> so you would have:
<shevy> Button.new
toastynerd has quit [Remote host closed the connection]
<shevy> and it would not matter whether it would be a QtButton or a Gtk::Button
<timgauthier> you sound like one of those crappy people who use javascript to do stuff on a webpage instead of just using proper html or css
St_Marx has joined #ruby
<timgauthier> a <button> is just fine
<shevy> now I have to admit that there are some cool effects with jquery
<shevy> fade-in and fade-out I go for
<shevy> timgauthier right but I mean ruby code - you don't really want to write a GUI element all in XML do you?
<horrorvacui> SPA make me sad, I have to code more in Javascript.
<timgauthier> no, i want to write my gui element in html
<timgauthier> and use it as a partial
<timgauthier> and you don't need fade in and fade out, css3 does have those functions, just a few elements don't do it properly on some things.
Boohbah has joined #ruby
<timgauthier> i mean if you go from display none to display anything then it won't let you do a css transition (that is stupid)
sptx00 has joined #ruby
RaptorJesus has joined #ruby
<abstrakt> horrorvacui, you just don't want to learn/change/adapt
<abstrakt> SPA is amazing
<abstrakt> horrorvacui, use coffeescript or something maybe
<horrorvacui> I do
<horrorvacui> I'm just a backend guy and it means less backend so that kinda makes me sad.
sleepee has joined #ruby
<shevy> hehe
<abstrakt> horrorvacui, uhh, no it doesn't really mean "less backend"
s2013 has joined #ruby
<abstrakt> that type of thing making you sad just mean's you're lazy and you don't want to keep up with shit, which is a horrible trait in a programmer
<horrorvacui> It does in the context of what I'm working on.
<abstrakt> given that our industry in general moves so quickly towards new paradigms and technologies
<abstrakt> horrorvacui, this attitude is, I've found, unfortunately quite systemic in the ruby world
<abstrakt> don't know why
speakingcode has quit [Ping timeout: 252 seconds]
<horrorvacui> I'm surprised you feel you can make those observations on a simple statement.
<abstrakt> this is IRC, nothing should surprise you
Brando753 has quit [Read error: Connection reset by peer]
<horrorvacui> Except it did.
<abstrakt> I'm surprised you feel that backend is somehow superior to frontend, when in reality, it's probably the other way around
<abstrakt> users use the front end
<horrorvacui> I didn't say that...
<abstrakt> and without users, you don't get paid
tacos1de has joined #ruby
<abstrakt> except you obviously feel that way, otherwise why would you be "sad" about such a thing
<abstrakt> unless, again you're basically just a lazy jerk who's stuck in your ways
<horrorvacui> I only stated what I enjoy.
<shevy> I like horrorvacui
<shevy> he has a great nick
<shevy> imagine how it sounds:
<shevy> "bug fixed by HORROR MONSTER GUI"
<shevy> erm
<shevy> *guy
<horrorvacui> I'm a big fan of design, I'm not at all sure what you are angry about.
<horrorvacui> I love frontend. I just don't like javascript being the primary code I spend my time in.
<horrorvacui> I love ruby so I want to use it for everything thats all.
<n88> can any of you guys help me with a sidekiq issue ?
<n88> it's railsy but also ruby-y
end_guy has joined #ruby
moted has quit [Quit: moted]
pwh has quit []
bmurt has quit []
Nahra has quit [*.net *.split]
zkay11 has quit [*.net *.split]
ringarin has quit [*.net *.split]
decoponio has quit [*.net *.split]
b1205 has quit [*.net *.split]
shevy has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
chihhsin_wego has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
jiriki- has quit [*.net *.split]
ctp has quit [*.net *.split]
NivenHuH has quit [*.net *.split]
yokel has quit [*.net *.split]
devdazed has quit [*.net *.split]
thoolihan has quit [*.net *.split]
ninegrid has quit [*.net *.split]
RandyT has quit [*.net *.split]
iamayam has quit [*.net *.split]
hfp has quit [*.net *.split]
wiscas has quit [*.net *.split]
ra4king has quit [*.net *.split]
xm has quit [*.net *.split]
Kruppe has quit [*.net *.split]
camilasan has quit [*.net *.split]
larsam has quit [*.net *.split]
sumark has quit [*.net *.split]
Schmidt has quit [*.net *.split]
mgomezch has quit [*.net *.split]
Mongey has quit [*.net *.split]
willgorman has quit [*.net *.split]
WillAmes has quit [*.net *.split]
mahlon has quit [*.net *.split]
kman has quit [*.net *.split]
shalicke has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
Xuerian has quit [*.net *.split]
Riking has quit [*.net *.split]
everett has quit [*.net *.split]
xiphias has quit [*.net *.split]
xargoon has quit [*.net *.split]
drago777 has quit [*.net *.split]
chihhsin_wego has joined #ruby
jiriki has joined #ruby
shalicke has joined #ruby
Xuerian has joined #ruby
flagg0204 has joined #ruby
b1205 has joined #ruby
Riking has joined #ruby
xm has joined #ruby
iamayam has joined #ruby
ninegrid has joined #ruby
RandyT has joined #ruby
shevy has joined #ruby
ringarin has joined #ruby
xargoon has joined #ruby
jonathanwallace has joined #ruby
Schmidt has joined #ruby
wiscas has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
Mongey has joined #ruby
devdazed has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
everett has joined #ruby
Nahra has joined #ruby
sumark has joined #ruby
kman has joined #ruby
kireevco has joined #ruby
ra4king has joined #ruby
thoolihan has joined #ruby
zkay11 has joined #ruby
yokel has joined #ruby
jp123 has joined #ruby
hfp has joined #ruby
decoponio has joined #ruby
mahlon has joined #ruby
camilasan has joined #ruby
mgomezch has joined #ruby
x1337807x has joined #ruby
subbyyy has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
eval-in_ has joined #ruby
hairyhen1erson has joined #ruby
timonv has joined #ruby
oo_ has quit [Remote host closed the connection]
amargherio has quit [Read error: Connection reset by peer]
s2013 has quit [Remote host closed the connection]
moring has joined #ruby
pontiki has joined #ruby
pontiki has quit [Client Quit]
chihhsin1wego has joined #ruby
phinfonet has quit []
pontiki has joined #ruby
eval-in has quit [Write error: Broken pipe]
chihhsin_wego has quit [Write error: Broken pipe]
timfoo has quit [Write error: Broken pipe]
hairyhenderson has quit [Write error: Broken pipe]
<moring> hello
<horrorvacui> hi
butcher1 has quit [Excess Flood]
<pontiki> hi
thesheff17 has quit [Excess Flood]
timonv has quit [Ping timeout: 264 seconds]
thesheff17 has joined #ruby
chrisseaton has quit [Excess Flood]
netf has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
gr33n7007h has quit [Excess Flood]
timfoo has joined #ruby
unknown007 has joined #ruby
netf has joined #ruby
gr33n7007h has joined #ruby
mary5030 has joined #ruby
angusiguess has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
angusiguess has quit [Ping timeout: 240 seconds]
freezey has joined #ruby
tkuchiki has quit [Client Quit]
freerobby has joined #ruby
Shidash has joined #ruby
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
kireevco has quit [Quit: Leaving.]
timgauthier has joined #ruby
tkuchiki has joined #ruby
freezey has quit [Ping timeout: 260 seconds]
sleepee has quit [Ping timeout: 260 seconds]
s2013 has joined #ruby
timgauthier has quit [Client Quit]
TDJACR is now known as PennAppsBot
cpruitt has quit [Quit: cpruitt]
PennAppsBot is now known as TDJACR
SJr has quit [Ping timeout: 245 seconds]
mjsmith2 has quit [Remote host closed the connection]
<jle`> hi
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
sunya7a_ has quit [Ping timeout: 264 seconds]
sunya7a has joined #ruby
rm_ has joined #ruby
dingus_khan has joined #ruby
<abstrakt> n88, on a friday night? (at least a friday night in north/south america)
<abstrakt> n88, not the best time to get help, standard american business hours are much better
<abstrakt> or maybe wait a few hours til europe wakes up, but it's the weekend for them too
recurrence has joined #ruby
dingus_khan has quit [Ping timeout: 260 seconds]
rm_ has quit [Ping timeout: 240 seconds]
<moring> Friday night coding!
<moring> ftw!
<moring> on payday too!
RastaqWhere has joined #ruby
RastaqWhere has quit [Client Quit]
<moring> oh wait
<moring> out here is 12:25am already
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
gr33n7007h has quit [Quit: Leaving]
narendraj9__ has joined #ruby
narendraj9__ has quit [Client Quit]
yubrew has joined #ruby
haxx0r has joined #ruby
yfeldblum has joined #ruby
echevemaster has quit [Quit: Leaving]
Morkel has joined #ruby
alexju has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
osvimer has joined #ruby
willgorman has joined #ruby
drago777 has joined #ruby
Kruppe has joined #ruby
xiphias has joined #ruby
narojosh has joined #ruby
bluOxigen has joined #ruby
pdtpatrick has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 252 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
bricker`LA has joined #ruby
vpretzel has quit [Remote host closed the connection]
hermanmunster has joined #ruby
vpretzel has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
osvimer has quit [Quit: leaving]
robbo__ has quit [Ping timeout: 240 seconds]
abstrakt has quit [Quit: Leaving]
tesuji has joined #ruby
yacks has joined #ruby
sputnik13 has joined #ruby
cgcardona has joined #ruby
<cgcardona> hi everyone. I have a project and part of the desired design is that a UI component can GET/POST to an API component which can GET/POST to a final layer. Each layer can then reply back to the layer above it w/ JSON. It's been requested that each component can be either on the same machine or distributed across multiple boxes. I've got the case where each component is distributed working correctly. But when it all runs on the same box I'm running
<cgcardona> the issue of multiple web requests timing out on the single ruby process. I read that i could get it to work w/ passenger/nginx but I'm still running into the issue of the timeout. Barring performance concerns can anyone recommend how I might accomplish this? Thanks in advance.
<rcs> cgcardona: You're probably having Request A -> Request B -> Blocking since Request A hasn't returned, right?
<cgcardona> yes right that's what i think is happening rcs
<cgcardona> of course it works fine across multiple boxes but not on 1 (yet)
<rcs> So you need something that can handle more than one client at a time.
<cgcardona> yes I heard that passenger and nginx could handle it.
<rcs> Is there a reason not to run the same passenger/nginx stack on the local box to route requests through?
<cgcardona> you mean what exactly? Create multiple running apps on the single box for each component?
<rcs> Yep. Or just use something like unicorn that'll handle the preforking for you.
<rcs> You'll still have concurrency problems if every process is busy handling request A, though, so nothing can handle B.
frobrob has quit [Ping timeout: 276 seconds]
<cgcardona> hmmm. ok. perhaps I should rethink this architecture a bit. I really appreciate the help rcs
Zesty has joined #ruby
<rcs> cgcardona: The quick way to get around it is to keep the "component pools" separate, so cotention on A doesn't cause contention on B
<rcs> Whether that's through different ports, processes, whatever
<cgcardona> ok i'll consider that.
Wr3x has quit [Remote host closed the connection]
l3vel has joined #ruby
zkay11 has left #ruby [#ruby]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
b1205 has quit [Ping timeout: 252 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jamto11 has quit [Remote host closed the connection]
freezey has joined #ruby
freerobby has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
freezey has quit [Ping timeout: 240 seconds]
<n88> any with sidekiq experience ?
phansch has joined #ruby
lxsameer has joined #ruby
dawkirst has joined #ruby
<horrorvacui> n88 I've some why?
wqh has joined #ruby
KLVTZ has joined #ruby
<reactormonk> which tool would you use for drawing graph-like structures? dot is too spacey.
wqh has left #ruby ["Leaving"]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
fortunamajor is now known as weems
weems has quit [Changing host]
weems has joined #ruby
<n88> gisting something horrorvacui
<n88> one sec
<n88> so my controller.rb hits the import method on the site class
dawkirst has quit [Ping timeout: 240 seconds]
<n88> import reads the csv, creates a site record, and then tries to send off the site id to the worker
benzrf is now known as benzrf|offline
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subbyyy has joined #ruby
<n88> er... why is sidekiq trying to load a file from a previous go at this
einarj has joined #ruby
Shidash has quit [Quit: Leaving.]
yubrew has joined #ruby
narojosh is now known as narendraj
x1337807x has joined #ruby
b1205 has joined #ruby
<KLVTZ> So I'm trying to generate the docs for ruby, I'm using RVM, but unfortunately it reports Your ruby version 2.1.2 is not supported. What are my options to install the missing documentation
<KLVTZ> my goal is to run "ri Object#inspect"
<KLVTZ> in my terminal for reference.
einarj has quit [Ping timeout: 240 seconds]
<KLVTZ> the command i called was rvm generate docs
yubrew has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
<KLVTZ> Anybody have a clue?
vpretzel has quit [Remote host closed the connection]
luckyruby has joined #ruby
klaut has joined #ruby
tesuji has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
<jimbauds> someone on the ruby-talk mailing list spam really hard! I'm the only one receiving these?
<KLVTZ> jimbauds: damn. sorry to hear about that? I'm curious about what kind of spam was it?
<horrorvacui> n88, sorry about the long reply but perhaps redis has residual stuff left in it. Try redis-cli flushall and repeat the attempt.
Shidash has joined #ruby
<jimbauds> about an irc server and channel .. nothing about ruby! ;)
sputnik13 has joined #ruby
<n88> horrorvacui: it seems to be something else
<jimbauds> I don't know who is the admin for this mailling list but someone is playing with it!
<n88> it is complaining about an unitialized constant
b1205 has quit [Ping timeout: 255 seconds]
<n88> and namespacing my model
<n88> inside the worker
<n88> worker::model name unitialized constant
timonv has joined #ruby
moring has quit []
tesuji has joined #ruby
mary5030 has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
oo_ has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
jp123 has quit [Quit: Konversation terminated!]
coderhs has quit [Client Quit]
sepp2k has joined #ruby
Hanmac has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
Hanmac1 has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
kireevco has quit [*.net *.split]
xiphias has quit [*.net *.split]
Kruppe has quit [*.net *.split]
yacks has quit [*.net *.split]
drago777 has quit [*.net *.split]
willgorman has quit [*.net *.split]
oo__ has joined #ruby
kireevco has joined #ruby
yacks has joined #ruby
horrorvacui has quit [Quit: Leaving]
meatherly has joined #ruby
emptymag00 has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 245 seconds]
emptymag00 has joined #ruby
oo__ has quit [Remote host closed the connection]
l3vel has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 265 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
willgorman has joined #ruby
drago777 has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
ringarin has quit [Ping timeout: 276 seconds]
Kruppe has joined #ruby
amclain has quit [Quit: Leaving]
xiphias has joined #ruby
recurrence has quit [Quit: Textual IRC Client: www.textualapp.com]
Jakey_Cloud___ has quit [Quit: Connection closed for inactivity]
yubrew has joined #ruby
anaeem1_ has joined #ruby
KLVTZ has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
jimbow has joined #ruby
<jimbow> event_manager.rb:3:in `readlines': No such file or directory @ rb_sysopen - event_attendees.csv (Errno::ENOENT)
<jimbow> why is following a tutorial so frustrating?
yubrew has quit [Ping timeout: 264 seconds]
rm_ has quit [Ping timeout: 245 seconds]
skaflem has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
timonv has joined #ruby
kireevco has quit [Quit: Leaving.]
sigurding has joined #ruby
Wolland has joined #ruby
Wolland has quit [Client Quit]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jimbauds> learnoi
<jimbauds> learning is not easy
<jimbauds> sometimes
User458764 has joined #ruby
kenneth has joined #ruby
Wolland has joined #ruby
claymore has joined #ruby
rm_ has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
ndrei has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
<jimbow> jimbauds: yeah
rm_ has quit [Ping timeout: 240 seconds]
spicerack has joined #ruby
alem0lars has joined #ruby
ringarin has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
spicerack has quit [Remote host closed the connection]
spicerack has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
sptx00 has quit [Quit: Ex-Chat]
DrCode has joined #ruby
JBreit has joined #ruby
haxx0r has quit [Ping timeout: 264 seconds]
asdasdasdnnnn has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
<asdasdasdnnnn> n1=Random AU serverSERVER:irc.au.dal.net:6665-6668,7000GROUP:DALnet
asdasdasdnnnn has quit [Killed (idoru (Spam is off topic on freenode.))]
momomomomo has quit [Quit: momomomomo]
mary5030 has quit [Ping timeout: 245 seconds]
<Mon_Ouie> jimbauds: That IRC server? :p
combusean has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen has quit [Read error: Connection reset by peer]
<jimbauds> haha no not this one but this guy is .. something!
<jimbow> i'm getting errors
<jimbow> By default when you send the split message to the String without a parameter it will break the string apart along a space " " character.
<jimbow> it's the code after that sentence
<jimbow> it's right at the beginning
<jimbow> could someone please help?
banister has joined #ruby
rippa has joined #ruby
flak has joined #ruby
jamto11 has joined #ruby
<Wolland> what's the error?
<jimbow> event_manager.rb:3:in `readlines': No such file or directory @ rb_sysopen - event_attendees.csv (Errno::ENOENT)
<Wolland> do you have a csv file named event_attendees.csv ?
<jimbow> yes
<jimbow> let me double check
<jimbow> yes i do
<Wolland> try specifying full path to the file and make sure it has the right extention
jimbow has left #ruby [#ruby]
subbyyy has quit [Ping timeout: 240 seconds]
jimbow has joined #ruby
<jimbow> oh no… i am so sorry i closed the wrong window
thomasxie has joined #ruby
<jimbow> what did you say?
<Wolland> try specifying full path to the file and make sure it has the right extention
yubrew has joined #ruby
<Wolland> make sure it's in the root of event_manager directory
<jimbow> this is how it is
<jimbow> i didn't change anything because i don't think i need to
jamto11 has quit [Ping timeout: 245 seconds]
OffTheRails has joined #ruby
<Wolland> how are you running .rb file what's the command
<jimbow> ruby + filename
<Wolland> you running it out of the root of the same dir where csv is?
<jimbow> i think so
<Wolland> in their example, file rb file is inside of the lib folder
<Wolland> try moving it there, and run it using ruby lib/event_manager.rb
<jimbow> thanks
yubrew has quit [Ping timeout: 240 seconds]
<jimbow> i get the same error
<Wolland> make sure there are no spelling issues in your code
<jimbow> yeah the code is good
<jimbow> i'm trying to get into appacademy and the stuff they've sent me is super frustrationg :(
* jimbow cries
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
roelof has joined #ruby
doev has joined #ruby
<roelof> Can I somehow get in touch with someone of the ruby talk ML. It seems to me that ruby forum is hacked and sending a lot of spam by mis using email adresses of users
luckyruby has quit [Quit: Leaving...]
Prawnzy has joined #ruby
<Wolland> jimbow: try creating a file and see where it gets created
<Wolland> f = File.new("test.csv", "w")
<Wolland> f.write("test")
<Wolland> f.close
User458764 is now known as User458764_NotHe
<jimbauds> I second that! About the mailing list!
klaut has quit [Remote host closed the connection]
GC_2 has joined #ruby
<roelof> jimbauds: thanks, I think I saw some 300 - 400 spam mails
<jimbauds> wow 138 new mail .. someone is hacking that mailing list a
<jimbow> Wolland: a new .CSV file was created in the same directory
sinkensabe has joined #ruby
<roelof> I already send a mail to the mailing list owner and to the owner of ruby forum
treehug88 has quit [Ping timeout: 265 seconds]
<Wolland> list directory contents in the terminal with ls command
<roelof> I think ruby forum is hacked again :(
<jimbauds> ok thank you
<jimbauds> :(
sinkensabe has quit [Remote host closed the connection]
toastynerd has joined #ruby
<roelof> but I hope I can do more
<Wolland> jimbow: try creating file with the same name as the one it's not finding, if it creates another one, there is a name difference, spelling, wrong ext, hiden extention, something
yfeldblum has joined #ruby
<jimbow> interesting
DrCode has quit [Quit: ZNC - http://znc.in]
<jimbow> i learned a lot just now, thank you so much for your time and everything!
<Wolland> did you figure it out?
<jimbow> the code has been copied verbatim
<jimbow> no i didn't
Prawnzy has quit [Ping timeout: 255 seconds]
User458764_NotHe has quit [Ping timeout: 276 seconds]
<jimbow> but i'm going to see if there's a hidden extension
<Wolland> ls in terminal will show it
<jimbow> yans-imac:Event Manager admin$ ls
<jimbow> event_attendess.csvtest.csv
<jimbow> libtest.rb
<jimbow> yans-imac:Event Manager admin$
<Wolland> file name is bad
<Wolland> missing E and has extra S
<roelof> While Im still here , If I have a array with symbols and a default_value. How can I convert it into a hash ?
narendraj has quit [Quit: Connection closed for inactivity]
<jimbow> i'm so sorry
<jimbow> thank you so much
<jimbow> i feel silly
<Wolland> no prob, happens all the time
GC_2 has quit [Read error: Connection reset by peer]
GC_2 has joined #ruby
OffTheRails has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 245 seconds]
ayaz has joined #ruby
User458764 has joined #ruby
SOLID000 has quit [Quit: Leaving]
OffTheRails has joined #ruby
GC_2 has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
GC_2 has joined #ruby
oo_ has joined #ruby
obs has joined #ruby
<roelof> no one who can help me ?
<Hanmac> haha did someone notice that the ruby mailing list got spammed again? ;P
<jimbauds> yes
<jimbauds> don't know what to do ..
<roelof> yep you are the 3th person here
<jimbauds> roelof already send email to admins
jack_rabbit has joined #ruby
<jimbauds> ruby forum is hit too by the same thing
<roelof> Hanmac: I suspect ruby forum is hacked again
<jimbow> why would they hack the forum?
<jimbow> and the mailing list?
<Hanmac> roelof:
<Hanmac> >> Hash[[:key1,:key2,:key3].zip([0].cycle)]
<eval-in_> Hanmac => {:key1=>0, :key2=>0, :key3=>0} (https://eval.in/157287)
Sarco has joined #ruby
<roelof> beats me, but Im sure the person who do this is mis using email adresses of users
obs has quit [Remote host closed the connection]
obs has joined #ruby
<jimbow> all hacking is different
<roelof> Hanmac: I think I have to search for more info about zip and cycle. I only know .each and for and friends
<jimbow> i know how to use hack tools to get "hacking" done, but it's such a complicated area and i don't get why people would waste time going after ruby mailing lists
<roelof> I did the course on codeacademy and there is no mentioned about these things
<Hanmac> *gasp* #zip and #cycle are friends of #each too! ... #each has more friends than i on facebook ;P
<jimbow> i learned how to use burp suite and sql injection commands as well as xss attacks
GC_2 has quit [Read error: Connection reset by peer]
<Hanmac> roelof: http://www.ruby-doc.org/core-2.1.1/Enumerable.html << read about all friends of #each
RaptorJesus has quit [Remote host closed the connection]
GC_2 has joined #ruby
<jimbow> i can tell by the sheer amounts of people complaining these guys are malicious
<jimbauds> jimbow: bad boy you are :D
RaptorJesus has joined #ruby
<roelof> Hanmac: thanks
<jimbow> why learn something if you're going to make people miserable?
<jimbow> jimbauds: i am a really nice person and i like to help out where i can
hgl has quit [Ping timeout: 240 seconds]
<Hanmac> jimbow: hm if a site did not protect itself against simplest sql injection or xss ... then yeah i think its the site own fault ...
jack_rabbit has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Remote host closed the connection]
<jimbow> Hanmac: the only metaphor i can come up with to go against your statement is someone having a gun and shooting someone and then blaming the victim for not wearing body armor
scepticulous has joined #ruby
<jimbauds> jimbauds: like me!
<jimbauds> ;)
<jimbauds> jimbow: like me
<jimbow> i sure hope so :)
rm_ has joined #ruby
davedev24_ has joined #ruby
<Hanmac> jimbow: its more like wearing a "please shot me"-shirt
<jimbow> Hanmac: not everyone knows security… i think of security along the lines of learning how to use a weapon
<jimbow> and then you're deliberately killing people
brunops has quit [Ping timeout: 255 seconds]
<jimbow> by attacking web services to oblivion
GC_2 has quit [Read error: Connection reset by peer]
<Hanmac> i am 99% sure that the site developers did say that the site have holes there, but that would cost time and money to fix that and the small developers might not have the time for that
<jimbow> why not do the sensible thing and help out instead of destroy?
<jimbow> when i become proficient i will do just that
brunops has joined #ruby
Prawnzy has joined #ruby
<jimbow> i'm not happy with knowing how to use tools, i want to make my own tools
<roelof> jimbow: I think the right metafoor is not protecting your house and blame someone to take things out of your house
<jimbow> roelof: you shouldn't even lock your house, saying that someone deserved to be robbed is ignorant
<jimbow> we should all trust each other, but for whatever reason most people aren't like me and it makes me sad
<jimbow> i used to live in the nation's wealthiest area…. i always left my doors and windows unlocked
<jimbow> never got robbed
rm_ has quit [Ping timeout: 240 seconds]
<jimbow> or had anyone tresspass
davedev24_ has quit [Ping timeout: 252 seconds]
<roelof> I agree with you about the trust and sadly you true. We messed up the world very well
KanKava has joined #ruby
djbkd has quit [Remote host closed the connection]
<jimbow> coming to think of it, i would do bad stuff only if the people were already bad to begin with… like thieves and pedophiles for example
<jimbauds> wow you guys are great
<jimbauds> ;)
<roelof> but still I think that every webmaster schould take of that his/her site is protected against things like sql injections and friends
brunops has quit [Ping timeout: 240 seconds]
<jimbow> they should, but having a helping hand and a community where pepole look out for each other would make everything so much better and easier
<jimbow> we'll all become a lot more productive than we already are as the result
<jimbow> but you don't have to take my word for it
JPascal has joined #ruby
<jimbow> it would weed out 99% of the malicious users
<roelof> I agree with you
<roelof> but I also think that will always be a dream
<jimbauds> you guys are great
<jimbow> because it'll change from "everyone is trying to attack me" perspective to "not many people are attacking me, but if someone does i can easily find him because he's part of a small group"
<roelof> jimbauds: why am I great ?
<jimbauds> roelof: because of your thinking
OffTheRails has quit [Quit: Leaving]
scepticulous has left #ruby ["Gone"]
jack_rabbit has joined #ruby
<JPascal> spam maillist on ruby-talk?
marr has joined #ruby
<jimbauds> yes
Ishiro has joined #ruby
<JPascal> :-(
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<jimbauds> yes too
<JPascal> about 300 mails today
<jimbauds> yes me too
TwinkleHood has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
hgl has joined #ruby
<roelof> JPascal: you are the 4 person here :)
klaut has joined #ruby
yubrew has joined #ruby
<ponga> hey guys its very very simple inquiry , http://pastie.org/9241880
<JPascal> I think after some hours this number will be increased.
<ponga> i tihnk i knew this before but somehow i can't get this outside method
<jimbauds> JPascal: do you know someone who can do something about it?
k03ll has quit [Quit: So say we all!]
<JPascal> No. =(
koell has joined #ruby
subbyyy has joined #ruby
<jimbauds> ponga: why you test your variable and never call your method?
<jimbauds> haha sry!
ari-_-e has quit [Ping timeout: 252 seconds]
<jimbauds> didn't look st it right!
<jimbauds> I closed my mount! :S
ari-_-e has joined #ruby
<ponga> ah
<ponga> jimbauds: i get what you mean
<ponga> thanks
ikaros has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
<jimbauds> but in your method test, you should return this => x + "jar"
<ponga> yes
<jimbauds> you can omit the word return in ruby
zhando has joined #ruby
<ponga> really?
<ponga> so like , just putting x+ "jar"
<jimbauds> yes
<zhando> hi https://stackoverflow.com/questions/8710444/is-there-a-way-in-ruby-1-9-to-remove-invalid-byte-sequences-from-strings... I swear there's a gem that does this, maybe covers more use cases.. Any idea?
TwinkleHood has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andrewlio has joined #ruby
subbyyy has quit [Ping timeout: 276 seconds]
<jimbauds> ponga: and call your method with puts => puts test($greet).to_s
<ponga> ah hah
<ponga> amazing
zhando has quit [Client Quit]
doev has quit [Ping timeout: 264 seconds]
doev_ has joined #ruby
<jimbauds> you can omit the dollar sign for your variable too. this can be confusing with other language in my opinion .. but that's ok!
<ponga> thanks
<jimbauds> my pleasure ;)
OffTheRails has joined #ruby
JPascal has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zhando has joined #ruby
zhando has quit [Client Quit]
GC_2 has joined #ruby
Royalb15 has joined #ruby
zhando has joined #ruby
ponga has quit []
<zhando> forgot to tmux
<Hanmac> zhando:
<Hanmac> >> "€foo\xA0".scrub("")
<eval-in_> Hanmac => "€foo" (https://eval.in/157289)
<Hanmac> ok it shows € for me but thats irc's fault maybe
<zhando> one more time... https://stackoverflow.com/questions/8710444/is-there-a-way-in-ruby-1-9-to-remove-invalid-byte-sequences-from-strings Is there a gem that does this and does it best? I read about it one time and forgot... I'm going to bed and leaving this tmux session open.
jimbow has quit [Quit: jimbow]
<zhando> Hanmac: thanks... scrub is recent ruby behavior? 2.0+
Prawnzy has quit [Ping timeout: 264 seconds]
<zhando> ?
dseitz has joined #ruby
<Hanmac> yeah but you should update if possible
jack_rabbit has quit [Ping timeout: 240 seconds]
<zhando> Hanmac: will do. thx again. good night..
<banister> Hanmac do you speak dutch?
klaut has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Sarco has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 240 seconds]
<Hanmac> nope
matchaw has joined #ruby
einarj has joined #ruby
nfk has joined #ruby
<Hanmac> banister: i was once there for a week (trip with church kids for confi) but i dont speak dutch ... i only know the name for garlic "knoflock" or similar because i did it on my sandwiches
Eyes is now known as Eyess
<banister> Hanmac it's kind of a debased/simplified german though right?
<roelof> Hanmac: its knoflook
marr has quit [Ping timeout: 252 seconds]
<Hanmac> roelof: i never knew how it was written i only heard the name
carraroj has joined #ruby
ndrei has joined #ruby
narendraj has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<roelof> Hanmac: NP
<roelof> I live my whol life in the Netherlands
<banister> roelof which city?
einarj has quit [Ping timeout: 240 seconds]
<roelof> banister: Hengelo
<banister> roelof oh ok, i'm from leiden :)
Prawnzy has joined #ruby
<roelof> hmm, I thought I can use cycle for making all entries from a array capitalize but array.Capitalize.cycle do not work
<roelof> banister: that is the other side
atraylen has joined #ruby
<jimbauds> roelof: capitalize with a capitalize C?
<banister> roelof array.map(&:capitalize)
<banister> roelof cycle does something different
GC_2 has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
<roelof> banister: as a beginner I have a lot to learn . Like I said I did the codeacademy course but I think that this course did not teach me everything
<banister> roelof hoe gaat het
<roelof> I think I will look for a free book on the net which can teach me things like zip , map and so on
<roelof> banister: goed
codeurge has joined #ruby
<banister> roelof i tried to learn dutch but was disturbed by all the throaty, coughing sounds
codeurge has quit [Max SendQ exceeded]
<roelof> banister: als ik het goed begrijp &: is het huidig element
ndrei has quit [Remote host closed the connection]
JBreit has left #ruby ["Leaving"]
ikaros has quit [Quit: Ex-Chat]
<roelof> when do you use zip and cycle and when map ?
Morkel has quit [Quit: Morkel]
timonv has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
<Hanmac> roelof: use zip when you need to connect multible enumerable, use it with cycle if you want one of the arrays is shorter than the other
HashNuke has quit [Quit: Connection closed for inactivity]
<roelof> Hanmac: and map if something has to be done with all the items of a array ??
ecksit has joined #ruby
toastynerd has quit [Remote host closed the connection]
<banister> roelof a = (1..100); b = ["a", "b", "c"]; a.zip(b.cycle).take(10)
<banister> >> a = (1..100); b = ["a", "b", "c"]; a.zip(b.cycle).take(10)
<eval-in_> banister => [[1, "a"], [2, "b"], [3, "c"], [4, "a"], [5, "b"], [6, "c"], [7, "a"], [8, "b"], [9, "c"], [10, "a"]] (https://eval.in/157295)
* roelof hopes that the maintainers of the ML take action very soon, This is very annoying
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<roelof> Can one of you recommend a good book where I can learn things like that. Prefferly a free internet book
<kies> roelof, maybe try http://ruby.bastardsbook.com/
<banister> roelof "the ruby programming language" by o'reilly is the best IMO
Prawnzy has quit [Ping timeout: 264 seconds]
<banister> roelof if you can speak german though (and i hear dutch is very very close to german) you can join one of Hanmac's free ruby bootstrapping sessions, he presents them over google hangouts and often has between 30-50 students - you can typically ask him anything (except rails related stuff)
relix has joined #ruby
User458764 is now known as User458764_NotHe
<roelof> sorry: I only speak Dutch very well. German and English not so good
thomasxie has quit [Quit: Leaving.]
rm_ has joined #ruby
JPascal has joined #ruby
Prawnzy has joined #ruby
jimbauds has quit [Ping timeout: 255 seconds]
<banister> roelof dutch is a mixture between baby english and baby dutch spoken by a child with a bad cold and cough
<banister> and baby german*
dawkirst has joined #ruby
Guest77218 has joined #ruby
<roelof> banister: thanks for the compliment
<Hanmac> LIES! all LIES!
User458764_NotHe has quit [Ping timeout: 252 seconds]
rm_ has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
Balticman has joined #ruby
<roelof> Hanmac: my ears
<roelof> banister: I found a pdf of the book and I will look if it's a book suitable for me
klaut has joined #ruby
oo_ has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 264 seconds]
klaut has quit [Ping timeout: 260 seconds]
<Balticman> hi, all! Im beginner in Ruby, please tell me, where is my mistake in this code? http://pastebin.calculate-linux.org/en/show/9313
<Balticman> thanks, for advance
thomasxie has joined #ruby
mikecmpbll has joined #ruby
Takle has joined #ruby
jhass|off is now known as jhass
frobrob has joined #ruby
<roelof> Balticman: its very simple. You made a module named add_interest and in the loop you asked to run that module again
<roelof> it 0,05 a amount or a percentage ?
<Balticman> roelof: percentage
<roelof> oke, and accnt is a amount
<roelof> ?
<Balticman> yes
timonv has quit [Remote host closed the connection]
oo_ has joined #ruby
timonv has joined #ruby
jamto11 has joined #ruby
oo_ has quit [Remote host closed the connection]
LiohAu has quit [Quit: LiohAu]
<roelof> then change this (accnt.add_interest!(0.05) into this interest = accnt * 005 + accnt
<roelof> or banister or jimbauds must know a better answer
<banister> roelof Meneer.
nicar_ is now known as nicar
<roelof> Balticman: sorry , the right answer = accnt * 0,05 + accnt
tesuji has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
<roelof> banister: is there a better way to do what Balticman wants
jamto11 has quit [Ping timeout: 252 seconds]
schneier has joined #ruby
doev_ has quit [Quit: Verlassend]
Ishiro has quit [Quit: Computer has gone to sleep.]
<roelof> banister: hij/zij zei meneer tegen me :)
User458764 has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
<roelof> I am going to leave
frogssgy has joined #ruby
michael_lee has joined #ruby
<Balticman> roelof: thx, gl
Hanmac has quit [Quit: Leaving.]
moritzschaefer has joined #ruby
<schneier> whats up with ruby-talk?
yfeldblum has quit [Ping timeout: 240 seconds]
xcv has joined #ruby
frosgy has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
Hanmac has joined #ruby
roelof has quit [Quit: Page closed]
einarj has joined #ruby
sinkensabe has joined #ruby
oo_ has joined #ruby
matchaw has quit [Ping timeout: 240 seconds]
byteoverfl0w has joined #ruby
banister has quit [Ping timeout: 255 seconds]
SegFaultAX has quit [Excess Flood]
SHyx0rmZ has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
SegFaultAX has joined #ruby
JPascal has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba has joined #ruby
<adnauseam> ahoi - did anyone use ruby to work with a fax modem? any good libs out there for that ?
thomasxie has quit [Remote host closed the connection]
SHyx0rmZ has quit [Ping timeout: 252 seconds]
bluenemo has joined #ruby
Ishiro has joined #ruby
SHyx0rmZ has joined #ruby
bthesorc_ has joined #ruby
toertore has joined #ruby
ta_ has joined #ruby
robert___ has joined #ruby
sepp2k1 has joined #ruby
User4587_ has joined #ruby
ohcibi has joined #ruby
artmann_ has joined #ruby
ltd_ has joined #ruby
hermanmu_ has joined #ruby
frobrob_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
axisys has joined #ruby
TDJACR has quit [Ping timeout: 265 seconds]
Spleeze has quit [Ping timeout: 265 seconds]
canton7 has quit [Ping timeout: 265 seconds]
bubbajoness has joined #ruby
dmoe______ has joined #ruby
frobrob has quit [Ping timeout: 265 seconds]
hermanmunster has quit [Ping timeout: 265 seconds]
sarlalian has quit [Ping timeout: 265 seconds]
bthesorceror has quit [Ping timeout: 265 seconds]
axisys_ has quit [Ping timeout: 265 seconds]
ta has quit [Ping timeout: 265 seconds]
ltd has quit [Ping timeout: 265 seconds]
ohcibi_ has quit [Ping timeout: 265 seconds]
leslie has quit [Ping timeout: 265 seconds]
kilk_ has joined #ruby
kalleth has joined #ruby
bubbajones has quit [Ping timeout: 265 seconds]
jxport_ has quit [Ping timeout: 265 seconds]
sepp2k has quit [Ping timeout: 265 seconds]
yacks has quit [Ping timeout: 265 seconds]
User458764 has quit [Ping timeout: 265 seconds]
go|dfish has quit [Ping timeout: 265 seconds]
dopie has quit [Ping timeout: 265 seconds]
artmann has quit [Ping timeout: 265 seconds]
iaj has quit [Ping timeout: 265 seconds]
snath has quit [Ping timeout: 265 seconds]
preller has quit [Ping timeout: 265 seconds]
toretore has quit [Ping timeout: 265 seconds]
redondos has quit [Ping timeout: 265 seconds]
robert_ has quit [Ping timeout: 265 seconds]
redondo has quit [Ping timeout: 265 seconds]
Alina-malina has quit [Ping timeout: 265 seconds]
dmoe_____ has quit [Ping timeout: 265 seconds]
kalleth has quit [Ping timeout: 265 seconds]
kilk_ has quit [Ping timeout: 265 seconds]
lele has quit [Ping timeout: 265 seconds]
noocode has quit [Ping timeout: 265 seconds]
redondos- has joined #ruby
canton7 has joined #ruby
leslie has joined #ruby
sarlalian has joined #ruby
redondo has joined #ruby
TDJACR has joined #ruby
TDJACR has quit [Changing host]
TDJACR has joined #ruby
byteoverfl0w has quit [Changing host]
byteoverfl0w has joined #ruby
lele has joined #ruby
Alina-malina has joined #ruby
yacks has joined #ruby
dmoe______ is now known as dmoe_____
noocode has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
redondos- is now known as redondos
preller has joined #ruby
iaj has joined #ruby
go|dfish has joined #ruby
andrewlio has quit [Quit: Leaving.]
Spleeze has joined #ruby
djbkd has joined #ruby
jxport has joined #ruby
rm_ has joined #ruby
timonv has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
carraroj has quit [Ping timeout: 252 seconds]
dangerousdave has joined #ruby
dawkirst has joined #ruby
byteoverfl0w has quit [Quit: Leaving... have a good one...]
[BNC]pagioss has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
snath has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
donpepp has joined #ruby
byteoverfl0w has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
byteoverfl0w has quit [Client Quit]
Guest77218 has quit [Quit: Guest77218]
mikecmpbll has quit [Quit: i've nodded off.]
yubrew has quit [Ping timeout: 252 seconds]
byteoverfl0w has joined #ruby
mikecmpbll has joined #ruby
connor_goodwolf has quit [Ping timeout: 240 seconds]
bluenemo has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
apeiros has joined #ruby
doev has joined #ruby
xcv_ has joined #ruby
Eyess has quit [Quit: Leaving]
User4587_ is now known as User458764_NotHe
Eyes has joined #ruby
User458764_NotHe is now known as User4587_
Eyes is now known as Eyess
atraylen has quit [Quit: Nettalk6 - www.ntalk.de]
jackneill has joined #ruby
xcv has quit [Ping timeout: 240 seconds]
Balticman has quit [Quit: ask me why]
ringarin has quit [Ping timeout: 260 seconds]
<Hanmac> https://www.ruby-forum.com/topic/4937520#new << matz is spamming the mailing list? oO ;P
bboz has joined #ruby
yfeldblum has joined #ruby
WilfredTheGreat has joined #ruby
_JokerDoom has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
HashNuke has joined #ruby
alem0lars has quit [Quit: Going AFK...]
JokerDoom has quit [Ping timeout: 240 seconds]
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Royalb15 has quit [Ping timeout: 264 seconds]
bboz has quit [Remote host closed the connection]
Xeago has joined #ruby
timonv has quit [Remote host closed the connection]
AndChat| has joined #ruby
timonv has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
byteoverfl0w has quit [Quit: Leaving... have a good one...]
lkba has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
byteoverfl0w has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Prawnzy has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Prawnzy has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
byteoverfl0w has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
sski has joined #ruby
tesuji has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
<coderhs> Is the mailing list hacked?
<coderhs> I am getting tones.of spam
<Hanmac> coderhs: yeah or the server itself, because it also has spam from other registered users
<coderhs> Damn
yubrew has joined #ruby
sinkensabe has joined #ruby
einarj has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
coderhs has quit [Client Quit]
Wolland has quit []
coderhs has joined #ruby
<coderhs> Is there any way we.could help.fix.the.issue with the mailing list?
mikecmpbll has joined #ruby
rm_ has joined #ruby
<Hanmac> just ignore it and it will disappear itself ;P
yubrew has quit [Ping timeout: 240 seconds]
ecksit has quit [Ping timeout: 240 seconds]
coderhs has quit [Client Quit]
rm_ has quit [Ping timeout: 240 seconds]
atraylen has joined #ruby
alexju has joined #ruby
alexju has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
yfeldblum has joined #ruby
angusiguess has joined #ruby
jamto11 has joined #ruby
Xeago has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
AlSquire has joined #ruby
Quintus_q has joined #ruby
eka has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
<Quintus_q> What’s this excessive spamming on the Ruby-Talk mailinglist?
<Quintus_q> Any indications if countermeasures are taken?
Prawnzy has quit [Ping timeout: 264 seconds]
<Quintus_q> I’ve send a mail to ruby-talk-owner@ruby-lang.org about it, but looks as if the server has been hacked or so
<shevy> dunno
<shevy> it has been spammed since the ancient days by now
<shevy> Hanmac haha that's a creative hoax
Ishiro has quit [Quit: Computer has gone to sleep.]
<Hanmac> just wait until there is spam from you too on the ML
<shevy> lol
<Quintus_q> Brmpf. There is spam with MY email address on the ML
frobrob_ has quit [Ping timeout: 260 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
Quintus_qc has joined #ruby
jackneill has quit [Ping timeout: 252 seconds]
Quintus_q has quit [Quit: Valete!]
Quintus_qc is now known as Quintus_q
mikecmpbll has joined #ruby
jackneill has joined #ruby
AndChat|102836 has joined #ruby
<AndChat|102836> Tech book shop in amsterdam?
<AndChat|102836> Dutchies help me out
ascarter has joined #ruby
doev has quit [Quit: Verlassend]
Quintus_q has quit [Quit: WeeChat 0.4.3]
<shevy> only pot shops and pet shops, the latter being the cover for a pot shop
Quintus_q has joined #ruby
s2013 has joined #ruby
<Hanmac> hm it seems the spam has stopped
tharindu has joined #ruby
sleepee has joined #ruby
agjacome_ has quit [Quit: leaving]
dangerousdave has quit [Read error: Connection reset by peer]
<Quintus_q> Wait some time... Maybe it starts again
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
dangerousdave has joined #ruby
<Hanmac> i was once in Amsterdam ... on each street cross was 1) a BurgerKing 2) a McDonalds 3) a textile shop 4) a electronic shop ... the fun thing ... 500m at the next street cross, the same constellation again ;D
narendraj has quit [Quit: Connection closed for inactivity]
Ishiro has joined #ruby
cgcardona has quit [Quit: cgcardona]
<shevy> lol
GodPuppet has joined #ruby
<shevy> Hanmac no divers-shop?
GriffinHeart has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
sigurding has quit [Quit: sigurding]
connor_goodwolf has joined #ruby
<Hanmac> not last time i checked ;P but i think i saw more coffee shops than BurgerKing & McDonalds combined ;P
<shevy> perhaps you looked more for them
<shevy> :P
GodPuppet has quit [Remote host closed the connection]
Takle has joined #ruby
rm_ has joined #ruby
postmodern has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> last time i was in amsterdam was 1977
connor_goodwolf has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 245 seconds]
s2013 has quit [Ping timeout: 276 seconds]
rm_ has quit [Ping timeout: 240 seconds]
atraylen has quit [Ping timeout: 252 seconds]
User4587_ is now known as User458764_NotHe
<shevy> when you were born!
User458764_NotHe is now known as User4587_
maximski has joined #ruby
GriffinHeart has joined #ruby
yfeldblum has joined #ruby
ascarter has joined #ruby
connor_goodwolf has joined #ruby
carraroj has joined #ruby
einarj has quit []
einarj has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
tharindu_ has joined #ruby
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
angusiguess has joined #ruby
WilfredTheGreate has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tesuji has quit [Ping timeout: 276 seconds]
WilfredTheGreat has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
shemerey has joined #ruby
bmurt has joined #ruby
<bmurt> morning
<shevy> hey bmurt
<shevy> did you figure out your gem problem
User4587_ is now known as User458764_NotHe
sinkensabe has quit [Remote host closed the connection]
Xeago has joined #ruby
sinkensabe has joined #ruby
<bmurt> nah
<bmurt> was gonna re-ask about the gemfile and git
<bmurt> i mean, i made some progress and was able to grab my forked version, but the script wasn't able to find it
User458764 has joined #ruby
User458764 has quit [Client Quit]
Hanmac1 has joined #ruby
User458764_NotHe has quit [Ping timeout: 255 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
<bmurt> unless... i installed to vendor/bundle and did a require 'vendor/bundle/ but im stilllearning and may be talking out my ass
phansch has quit [Quit: WeeChat 0.4.3]
m8 has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
Xeago has quit [Ping timeout: 276 seconds]
Rollabunna has joined #ruby
timonv has joined #ruby
tvw has joined #ruby
thomasxie has joined #ruby
koell has quit [Ping timeout: 240 seconds]
<bmurt> shevy: it got to the point that i was attempting to use geminabox
<bmurt> :/
yeticry has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
tvw has quit []
Fire-Dragon-DoL has joined #ruby
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Quit: Leaving.]
qwyeth has joined #ruby
circ-user-ihA0J has joined #ruby
<bmurt> shevy: got it to work i think using bundle exec: bundle exec ruby -w aws_scrape.rb
yubrew has joined #ruby
circ-user-ihA0J has quit [Remote host closed the connection]
timonv has joined #ruby
<bmurt> that forced it to utilize the mechanize, nokogiri, and forked mail gem
Ishiro has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby
<jhass> bmurt: another possibility is adding require 'bundler/setup' to your script
ndrei has joined #ruby
<bmurt> ahhh interesting
<bmurt> ty jhass
yubrew has quit [Ping timeout: 240 seconds]
jemendja has joined #ruby
jemendja has quit [Client Quit]
angusiguess has quit [Ping timeout: 276 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
kirun has joined #ruby
Fire-Dragon-DoL has joined #ruby
djbkd has joined #ruby
rm_ has joined #ruby
tharindu_ has quit [Quit: Leaving...]
banister has joined #ruby
yfeldblum has joined #ruby
Quintus_q has quit [Quit: WeeChat 0.4.3]
moritzschaefer has quit [Ping timeout: 252 seconds]
SHyx0rmZ has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Remote host closed the connection]
cina has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
mijicd has joined #ruby
Fire-Dragon-DoL1 has joined #ruby
djcp has joined #ruby
djcp has quit [Client Quit]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 260 seconds]
badhatter has joined #ruby
timonv has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
badhatter has quit [Remote host closed the connection]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
timonv has joined #ruby
Atttwww has joined #ruby
ringarin has joined #ruby
Takle has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
naw has quit [Read error: Connection reset by peer]
naw has joined #ruby
Sarco has joined #ruby
Sarco has left #ruby [#ruby]
bluenemo has quit [Quit: Verlassend]
scepticulous has joined #ruby
newUser1234 has joined #ruby
shout_user has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 240 seconds]
pyreal has joined #ruby
pyreal has quit [Client Quit]
Ishiro has joined #ruby
sleepee has quit [Quit: Leaving]
mehlah has joined #ruby
xcv_ has quit [Remote host closed the connection]
Zesty has joined #ruby
superflat has joined #ruby
superflat has left #ruby [#ruby]
cashnguns has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<bmurt> the new battle shevy is throwing it into cron :/
ashp has left #ruby ["Textual IRC Client: www.textualapp.com"]
yubrew has joined #ruby
timonv has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
lxsameer has quit [Quit: Leaving]
treehug88 has joined #ruby
treehug88 has quit [Max SendQ exceeded]
yubrew has quit [Ping timeout: 264 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
randomnick_ has joined #ruby
retnuh has joined #ruby
retnuh has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
banister has joined #ruby
yfeldblum has joined #ruby
sski has quit [Remote host closed the connection]
s2013 has joined #ruby
sski has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
djbkd has joined #ruby
rm_ has joined #ruby
retnuh has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
pwh has joined #ruby
sski has quit [Ping timeout: 255 seconds]
phansch has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
dangerou_ has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Takle has joined #ruby
cina has quit [Ping timeout: 260 seconds]
_sambao21 has joined #ruby
mjsmith2 has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
freerobby has joined #ruby
freerobby has quit [Client Quit]
SHyx0rmZ has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
sptx00 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cashnguns has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
mehlah has quit [Quit: Leaving...]
freerobby has joined #ruby
soulcake has joined #ruby
sski has joined #ruby
DouweM has joined #ruby
happytux has quit [Ping timeout: 240 seconds]
Machine has joined #ruby
Jetchisel has joined #ruby
mijicd has quit [Quit: leaving]
Machine has quit [Quit: Leaving]
alexju has joined #ruby
Machine has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
fafa has joined #ruby
<fafa> test
<fafa> a wrapper gem for the Nexmo API
<fafa> please let me know if it can be improved
yubrew has joined #ruby
mehlah has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
newUser1234 has quit [Quit: Leaving...]
alirezataleghani has joined #ruby
<jhass> also the community standard is two space indent
<alirezataleghani> I have a problem on ruby in combination with mongoDB
<jhass> and newlines between method definitions
frosgy has joined #ruby
<alirezataleghani> how can I store a NumberLong via ruby on a mongoDB with the help of "bson" gem?
maximski has quit []
<jhass> fafa: you declare json as a development dependency, yet you require it in the library
mercwithamouth has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
<jhass> fafa: you also probably want to add a license, most commonly MIT
mehlah has quit [Ping timeout: 265 seconds]
kilk_ has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
<DouweM> fafa: use the naming guide jhass links to for the gem name, file names and class names. all are off
hfp has quit [Quit: bye]
qwyeth has quit [Remote host closed the connection]
<DouweM> fafa: require your libraries at the top of the file, not inside the NexmoTts module
frogssgy has quit [Ping timeout: 245 seconds]
<DouweM> fafa: use symbols for @mode and @response_method instead of strings
<DouweM> fafa: use spaces around ==
rm_ has joined #ruby
<DouweM> fafa: your current rescue block on line 31 does very little
<jhass> fafa: your mode and response_mode methods are a bit silly, I'd recommend something like raise ArgumentError, "invalid x: #{param}" unless ["a", "b"].include? param; @param = param
Quintus_q has joined #ruby
<DouweM> fafa: "response" is a very unclear method name
sputnik13 has joined #ruby
hfp has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
<DouweM> fafa: you set mode and response_method as accessors, but then override them with completely different functionality
JPascal has joined #ruby
<jhass> fafa: also you define attr_accessors for them and then later override the getters with methods that take an argument and are actually setters
<DouweM> ;)
<jhass> bah, too slow :P
<DouweM> fafa: in parameterize, use spaces around { for the block, and before }
<DouweM> fafa: put comments like the one in parameterize on a line of its own, and use a space after #
<jhass> I'd call the { / } one personal style
<jhass> I use {|param| code }
<DouweM> jhass: it's wide spread, but sure, there are defactors ;)
<DouweM> fafa: document the env vars used
<DouweM> fafa: splitting things up into methods is good, but the current mode and response_method env vars are quite useless as they're never used outside of #call
sputnik13 has quit [Ping timeout: 252 seconds]
<DouweM> (not env vars, instance vars)
<DouweM> fafa: use newlines to split methods up into logical parts
<DouweM> fafa: strive to list arguments and their respective ivar assignments in the same order, as you're not doing in #initialize
timfoo has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
<DouweM> fafa: if Nexmo returns an error message, raise the error instead of just returning the text
<DouweM> fafa: when would you want to use a response method other than json?
ponga has joined #ruby
timfoo has joined #ruby
<jhass> I wonder if he's even still following... :P
mehlah has joined #ruby
<DouweM> haha so do I, but once I get started critiquing it's hard to stop :P
<DouweM> fafa: your "require 'nexmo'" in the readme won't work because that's not what the file is named. related to the naming issues mentioned earlier
<DouweM> fafa: use a 1.9-style hash in the readme.
<fafa> aah
<DouweM> fafa: also, why does it exist at all when there's already a nexmo gem? :P
<fafa> thanks a ton for the suggestions
<fafa> there is a gem
<fafa> but it is only for message
<fafa> *messages
<fafa> but not for calls
<fafa> and tts
<fafa> so i thought i should make one
yfeldblum has quit [Ping timeout: 252 seconds]
<DouweM> fafa: then extend that gem. frankly, its API looks nicer than yours, and having one gem for everything is probably better
<fafa> (1st gem)
<fafa> right
<DouweM> instead of two different ones that do use the same namespace, which is a bad idea anyway
<fafa> good thought
<fafa> i just thought i should learn the best practises
<fafa> and then contribute
<DouweM> fafa: makes sense, start by reading their code to pick up how they expect the code ;)
<jhass> if the maintainer is nice, PRs are an excellent way to learn the best practices
<fafa> right
<DouweM> that too
<fafa> thank you for the advice guys
robbo__ has joined #ruby
freerobby has quit [Quit: Leaving.]
<schneier> Quintus_q: that's hardly info, just explains why it stopped
feature_creep has joined #ruby
<Quintus_q> schneier: Well, at least it’s an official response.
<schneier> true
Mongey has quit [Quit: ZNC - http://znc.in]
dangerou_ has joined #ruby
LadyRainicorn has joined #ruby
dangerousdave has quit [Ping timeout: 276 seconds]
jmurray has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
AndChat|102836 has quit [Ping timeout: 252 seconds]
hj2007 has quit [Quit: Leaving]
mjsmith2 has joined #ruby
robbo__ has quit [Read error: Connection timed out]
LadyRainicorn has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL has joined #ruby
lethe has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
shemerey has joined #ruby
Fire-Dragon-DoL1 has quit [Ping timeout: 260 seconds]
jamto11 has joined #ruby
_sambao21 has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Ping timeout: 252 seconds]
soulcake has quit [Quit: ZNC - http://znc.in]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
yubrew has joined #ruby
rm_ has quit [Remote host closed the connection]
vpretzel has joined #ruby
rm_ has joined #ruby
subbyyy has joined #ruby
finster has quit [Ping timeout: 245 seconds]
ponga has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 252 seconds]
maximski has joined #ruby
Takle has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 252 seconds]
maximski has quit [Max SendQ exceeded]
ponga has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
rm_ has joined #ruby
mijicd has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
mjsmith2 has quit [Remote host closed the connection]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
alirezataleghani has left #ruby [#ruby]
maximski has quit [Client Quit]
sheperson has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
Rollabunna has quit [Remote host closed the connection]
armyriad has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
hgl has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has quit [Quit: Leaving.]
GriffinH_ has joined #ruby
arrubin has joined #ruby
momomomomo has joined #ruby
GriffinHeart has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
banister has joined #ruby
Solnse has joined #ruby
tcl_max_dong has joined #ruby
<tcl_max_dong> yes hello
subbyyy has quit [Ping timeout: 255 seconds]
<tcl_max_dong> irc.gangnet.ru
yfeldblum has quit [Ping timeout: 240 seconds]
tcl_max_dong is now known as maxwell_dong
<maxwell_dong> kloeri,
<maxwell_dong> stop
<maxwell_dong> flooding
<maxwell_dong> the ruby
<maxwell_dong> mailing list
donpepp has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
<maxwell_dong> hi Takle
eka has joined #ruby
<maxwell_dong> are you and eka
donpepp has joined #ruby
<maxwell_dong> flooding the mailing list
<eka> ?
<eka> who is flooding what?
<maxwell_dong> stop flooding the mailing list
<eka> maxwell_dong: what are you talking about?
<eka> which mailing list?
<jhass> maxwell_dong: would you mind pressing enter less often?
<maxwell_dong> the ruby mailing list
<maxwell_dong> n
<maxwell_dong> o
<eka> maxwell_dong: WHICH one?
<jhass> apeiros: ^
<maxwell_dong> rip
<maxwell_dong> nehow
<eka> lol
<eka> maxwell_dong: and why on earth you say it's me?
beneggett has quit [Ping timeout: 245 seconds]
<Takle> What Eka said
beneggett has joined #ruby
<maxwell_dong> because you have a suspect nickname
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eka> maxwell_dong: because what?
<maxwell_dong> you are a terrorist
<ponga> is ruby pre-installed in Windows 7 like OSX?
* eka I smell troll
<eka> ponga: don't think so
<Takle> Okay seems legit for accusations :D
<Solnse> ponga: no
fafa has quit [Disconnected by services]
<Solnse> but I think there's a one click installer for windows.
<maxwell_dong> is it true that >75% of ruby on rails developers are homosexual?
<maxwell_dong> i am gay
<ari-_-e> does anybody have ops?
<Solnse> maxwell_dong: why? trolling for a date?
<maxwell_dong> jw
<jhass> ari-_-e: Mon_Ouie and apeiros are most active
<eka> maxwell_dong: I'm not on rails, why you presume ruby is rails?
<csmrfx> I don't use rails
<ari-_-e> jhass: ah, and you already pinged apeiros
<csmrfx> but even if bisexual, that has nothing to do with ruby or rails
<csmrfx> get him!
<maxwell_dong> the syntax of rails
koell has joined #ruby
<maxwell_dong> is designed to encourage
* csmrfx yells RAAA and charges
<maxwell_dong> homosexuals
<csmrfx> trollosexual
<eka> to encourage to what?
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<maxwell_dong> to be degenerate
rm_ has quit [Remote host closed the connection]
<eka> how many drinks did you have today?
<csmrfx> get a skout or account and leave #ruby to dev stuff, ok, you won't get any sex from here
* maxwell_dong vomits
rm_ has joined #ruby
<jhass> ari-_-e: general freenode tipp though: /msg ChanServ ACCESS #channel LIST
<maxwell_dong> you homosexuals make me sick
maxwell_dong has left #ruby [#ruby]
<jhass> wow he left on its own?
<DouweM> wow
<ari-_-e> jhass: ah, thanks
banister has joined #ruby
cashnguns has quit [Remote host closed the connection]
donpepp has quit [Ping timeout: 252 seconds]
banister_ has joined #ruby
Machine has quit [Disconnected by services]
Machine has joined #ruby
SilverKey has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
Atttwwww has joined #ruby
donpepp has joined #ruby
banister has quit [Ping timeout: 276 seconds]
Atttwww has quit [Ping timeout: 240 seconds]
Atttwww has joined #ruby
Machine has quit [Disconnected by services]
andreas__ has joined #ruby
Atttwwww has quit [Ping timeout: 264 seconds]
AndChat| has quit [Ping timeout: 276 seconds]
rm_ has joined #ruby
WilfredTheGreat has joined #ruby
WilfredTheGreate has quit [Ping timeout: 246 seconds]
pwh has quit []
michael_lee has quit [Ping timeout: 240 seconds]
endash has joined #ruby
b1205 has joined #ruby
mercwithamouth has joined #ruby
Fire-Dragon-DoL has joined #ruby
Lucky__ has joined #ruby
vpretzel has quit [Remote host closed the connection]
mikesplain has joined #ruby
Lucky__ has quit [Client Quit]
xcv has joined #ruby
xcesariox has joined #ruby
IceDragon has joined #ruby
xcesariox has quit [Max SendQ exceeded]
amargherio has joined #ruby
donpepp has quit [Ping timeout: 240 seconds]
sheperson has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby
jmurray has quit [Ping timeout: 240 seconds]
xcesario_ has joined #ruby
alexju has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 240 seconds]
sheperson has joined #ruby
Rainicorn has joined #ruby
donpepp has joined #ruby
sinkensabe has joined #ruby
WilfredTheGreat has quit [Ping timeout: 246 seconds]
WilfredTheGreat has joined #ruby
xcesariox has quit [Ping timeout: 255 seconds]
dangerou_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> sorry guys, was cooking /cc jhass
<jhass> no worries, thanks
kireevco has joined #ruby
timonv has joined #ruby
michael_lee has joined #ruby
wallerdev has joined #ruby
sinkensabe has quit [Remote host closed the connection]
dangerou_ has quit [Read error: Connection reset by peer]
Ishiro has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
closer has quit [Ping timeout: 252 seconds]
sunya7a has quit [Ping timeout: 252 seconds]
closer has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
lethjakman has joined #ruby
IceDragon has quit [Ping timeout: 276 seconds]
IceDragon has joined #ruby
LekeFly has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
sunya7a has joined #ruby
yfeldblum has joined #ruby
Arkaniad has joined #ruby
<shevy> wow
sski has quit [Remote host closed the connection]
<shevy> you two are cooking
sski has joined #ruby
mehlah has quit [Quit: Leaving...]
<eka> kind of "breaking bad" cooking?
rm_ has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
sski has quit [Ping timeout: 260 seconds]
<RoryHughes> What is the difference between "class Child < Parent;end" and "class Child;class Parent;end;end"
tacos1de has quit [Ping timeout: 272 seconds]
l3vel has joined #ruby
tacos1de has joined #ruby
<jhass> one makes Child a subclass of Parent, the later defines a new class Parent inside the namespace Child
phansch has quit [Ping timeout: 252 seconds]
<jhass> so they're not really comparable at all
Ishiro has joined #ruby
lethe has joined #ruby
<RoryHughes> For the latter, when would you ever namespace using a class or is what i wrote absurd anyway?
enebo has joined #ruby
aep_ is now known as aep
sunya7a has quit [Ping timeout: 240 seconds]
<jhass> some gems do that so you can do Gemname.new instead of Gemname::Client.new or something similar
coderhs has joined #ruby
<Mon_Ouie> For the same reason you'd namespace inside a module: because the so-called Child class is used within that class
<Mon_Ouie> e.g. if you have a Tree class, you would probably have a Tree::Node as well
byteoverfl0w has joined #ruby
<RoryHughes> Mon_Ouie: So writing a class inside another doesn't create any meaningful connection between them, it just makes the Child accessible as Parent::Child ?
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Mon_Ouie> Yes. Also the fact you're inside the Parent class body affects constant look up
<Mon_Ouie> (you can access Parent::Foo as just Foo)
lethe has quit [Ping timeout: 240 seconds]
<RubyPanther> I would argue that the namespace effects are "meaningful"
stonevil has joined #ruby
<RoryHughes> RubyPanther yeah they are but the class doesn't act any different other than the way its accessed differently
<RoryHughes> Mon_Ouie jhass thanks for clarifying
xcesario_ is now known as cesario
stonevil has quit [Client Quit]
IceDragon has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
<RubyPanther> In practice Foo gives you Parent::Foo instead of SomeOther::Foo, so the behavior will be different based on namespace
soulcake has joined #ruby
anaeem1_ has joined #ruby
moritzs has joined #ruby
mijicd has quit [Remote host closed the connection]
gorpon has joined #ruby
brunops has joined #ruby
Hobogrammer has joined #ruby
cesario has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
xcesariox has joined #ruby
Rainicorn is now known as LadyRainicorn
<Mon_Ouie> But that's not related to being namespaced inside Parent, it depends on the syntax you use to define Child
<Mon_Ouie> >> class Parent; Foo = 1; end; class Parent::Child; puts Foo; end
<eval-in_> Mon_Ouie => uninitialized constant Parent::Child::Foo (NameError) ... (https://eval.in/157384)
enebo has quit [Quit: enebo]
<shevy> hmm
brunops has quit [Ping timeout: 265 seconds]
<RoryHughes> That's cool, i didn't know you could execute here
lethjakman has quit [Ping timeout: 252 seconds]
<RoryHughes> >> [1,2,3].reduce(:+)
<eval-in_> RoryHughes => 6 (https://eval.in/157385)
<RoryHughes> Awesome!
finster has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
anaeem1_ has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
zorak has quit [Ping timeout: 260 seconds]
phansch has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
sheperson has quit [Read error: Connection reset by peer]
sheperson has joined #ruby
WilfredTheGreat has quit [Read error: Connection reset by peer]
j75 has joined #ruby
timonv has quit [Remote host closed the connection]
alxgnon has joined #ruby
LadyRainicorn has joined #ruby
timonv has joined #ruby
tesuji has joined #ruby
sheperson has quit [Client Quit]
yubrew has quit [Ping timeout: 276 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mr_snowf1ake has joined #ruby
jamto11 has joined #ruby
dawkirst has joined #ruby
dawkirst_ has joined #ruby
lkba has joined #ruby
dawkirst_ has quit [Client Quit]
dawkirst_ has joined #ruby
tesuji_ has joined #ruby
<mostlybadfly> oh yay finally figured out my first program :D
coderhs has joined #ruby
tesuji has quit [Ping timeout: 255 seconds]
l3vel has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
LekeFly has joined #ruby
allenchun has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
dawkirst has quit [Remote host closed the connection]
gorpon has quit [Ping timeout: 252 seconds]
zorak has joined #ruby
<j75> mostlybadfly: nice work!
jamto11 has quit [Ping timeout: 276 seconds]
<mostlybadfly> i was getting frustrated with not getting how to pass through variables to a class and set up methods but finally hehe. also got a simple db to store to and select from
<mostlybadfly> it's just asking for game title, year, and system, storing it then giving you a list of your saved game collection hehe, but it'll be a skeleton for a recipe building program i want to do
dangerou_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
jadedgnome has joined #ruby
agjacome has joined #ruby
LadyRainicorn has joined #ruby
moritzs has joined #ruby
Quintus_q has left #ruby ["Valete!"]
<shevy> mostlybadfly how did you solve passing variables to a class
<LadyRainicorn> passing variables to a class?
donpepp has quit [Ping timeout: 276 seconds]
dawkirst_ has quit [Remote host closed the connection]
<mostlybadfly> i don't know if it is the best description. i guess i just didnt GET how to instantiate from user input then all of a sudden it was like oh duh now i know
yfeldblum has joined #ruby
<mostlybadfly> you know the required variables i wanted to use, but I realized it was like nothing at all hehe
b1205 has quit [Ping timeout: 276 seconds]
Solnse has quit [Ping timeout: 260 seconds]
donpepp has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> LadyRainicorn that's what he wrote!
* LadyRainicorn does not understam
<mostlybadfly> yeah i'm not even using the write term properly
<LadyRainicorn> nd what that would entail
<LadyRainicorn> rofl
yfeldblum has quit [Ping timeout: 240 seconds]
IcyDragon has joined #ruby
yakko has joined #ruby
Rollabunna has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
Arkaniad has quit [Ping timeout: 252 seconds]
brunops has joined #ruby
IcyDragon is now known as IceDragon
lkba has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
jheg has joined #ruby
donpepp has quit [Ping timeout: 240 seconds]
rezzack has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
freerobby has joined #ruby
freerobby has quit [Client Quit]
donpepp has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
phansch has quit [Ping timeout: 245 seconds]
<Mon_Ouie> And yet That's a question that comes up very often
toastynerd has joined #ruby
donpepp has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
Kilo`byte has quit [Ping timeout: 252 seconds]
Solnse has joined #ruby
freerobby has joined #ruby
maximski has joined #ruby
amundj has joined #ruby
wallerdev has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
Kilo`byte has joined #ruby
Arkaniad has joined #ruby
donpepp has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ishiro has quit [Quit: Computer has gone to sleep.]
cashnguns has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 245 seconds]
Fire-Dragon-DoL1 has joined #ruby
rm_ has joined #ruby
allenchun has quit [Quit: Textual IRC Client: www.textualapp.com]
Fire-Dragon-DoL has quit [Ping timeout: 252 seconds]
dangerousdave has joined #ruby
Shidash has joined #ruby
toastyne_ has joined #ruby
Fire-Dragon-DoL1 has quit [Quit: Leaving.]
dangerou_ has quit [Ping timeout: 276 seconds]
toastyne_ has quit [Remote host closed the connection]
KLVTZ has joined #ruby
yubrew has joined #ruby
donpepp has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
bmurt has quit []
GriffinH_ has quit [Remote host closed the connection]
Arkaniad has quit [Ping timeout: 255 seconds]
maximski has quit []
thumpba has joined #ruby
bmurt has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
thumpba__ has quit [Ping timeout: 240 seconds]
andreas__ has quit [Quit: Leaving]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
xcv has quit [Ping timeout: 260 seconds]
locriani has joined #ruby
andreas has joined #ruby
Ishiro has joined #ruby
byteoverfl0w has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
shevy has joined #ruby
rm_ has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
alxgnon has quit []
dangerousdave has joined #ruby
alexju has joined #ruby
xcv has joined #ruby
dawkirst has joined #ruby
Learning2 has quit [Quit: Bye]
combusean has joined #ruby
Vivekananda has joined #ruby
KLVTZ has quit [Ping timeout: 245 seconds]
Lucky__ has joined #ruby
timonv has joined #ruby
alexju has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
yfeldblum has joined #ruby
byteoverfl0w has joined #ruby
timgauthier has joined #ruby
h_h has quit [Ping timeout: 245 seconds]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
amundj has joined #ruby
armyriad has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 276 seconds]
GriffinHeart has joined #ruby
Nahra has quit [Remote host closed the connection]
Rahul_Roy has joined #ruby
Nahra has joined #ruby
LadyRainicorn has joined #ruby
aspires has joined #ruby
Xeago has joined #ruby
timonv has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
timonv has joined #ruby
jheg has joined #ruby
cgcardona has joined #ruby
Rainicorn has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
brunops has quit [Ping timeout: 265 seconds]
eguim has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 240 seconds]
zhando has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
s2013 has quit [Ping timeout: 252 seconds]
pagioss has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
<shevy> test
<ponga> hi shevy
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> just wondered whether I was still connected
timgauthier has joined #ruby
Nahra has quit [Remote host closed the connection]
Hanmac has joined #ruby
Nahra has joined #ruby
<jhass> shevy: why don't you just do something like /msg ChanServ help ?
Rainicorn has quit [Read error: Connection reset by peer]
Hanmac1 has quit [Ping timeout: 264 seconds]
LadyRainicorn has joined #ruby
moritzs has quit [Ping timeout: 245 seconds]
<shevy> so 12 chars vs 4 chars
<shevy> yeah I know what I pick
brunops has joined #ruby
<timgauthier> 256234
brunops has quit [Changing host]
brunops has joined #ruby
bga_ has joined #ruby
<jhass> guaranteed response vs. generating noise for > 830 people
<schneier> oh no
<schneier> noise
<schneier> on irc
<schneier> unheard of
<bga_> hi. i guess that newbie problem http://ideone.com/MxJ6vI
<bga_> long time didnt use ruby
mengu has joined #ruby
<shevy> I get a guaranteed response here just as well
<bga_> forgot how to solve
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
d0lph1n98 has joined #ruby
<jhass> make allMask a parameter or a constant
<shevy> bga_ that URL loads very slowly
<jhass> we use snake_case for method and variable names
<jhass> SCREAMING_SNAKE_CASE for constants
<bga_> any other solution?
<bga_> i want proper closure
d0lph1n98 has quit [Quit: leaving]
aspires has quit []
LadyRainicorn has quit [Ping timeout: 240 seconds]
combusean has quit [Ping timeout: 265 seconds]
Ishiro has quit [Quit: Computer has gone to sleep.]
skaflem has quit [Quit: Leaving]
<jhass> and ret[0 ... ret.size - 1] is essentially ret.dup
Rollabunna has joined #ruby
yubrew has joined #ruby
sparrovv has joined #ruby
sparrovv has quit [Client Quit]
<bga_> its w/o last element
<jhass> no it's not
<jhass> that'd be -2
ponga has quit []
subbyyy has joined #ruby
maximski has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<jhass> you probably meant to do something like http://paste.mrzyx.de/p14ad2641/
saarinen has joined #ruby
LadyRainicorn has joined #ruby
kirun has quit [Remote host closed the connection]
<andreas> jhass: that's how you write ruby code ;)
<shevy> hmm is this common? I see it in gist-gem version.rb: VERSION = Version = '3.1.0'
yubrew has quit [Ping timeout: 255 seconds]
combusean has joined #ruby
andrewlio has joined #ruby
<jhass> looks like somebody couldn't decide for a camp
<jhass> CamlCase for all constants vs. CamlCase for module/class names and SCREAMING_SNAKE_CASE for other constants
<shevy> well I guess VERSION is more common, I Just wonder if people also would use: Foobar::Version
<shevy> seems a bit weird to support both
<bga_> jhass thanks. for code. in my code ret[0 ... ret.size - 1] - 3 dots
<jhass> yeah
<bga_> not 2
<jhass> bga_: gotcha. I always miss that and tend to avoid the three dot form
<shevy> I am seeing even more things I haven't seen before:
<shevy> __DIR__ = File.dirname(__FILE__)
<shevy> is that a common idiom?
feature_creep has quit [Quit: feature_creep]
<shevy> CACERT = "__CACERT__\n#{File.read(__DIR__ + '/cacert.pem')}"
<shevy> hmm
<jhass> no that seems confusing, especially since it's different to __dir__'s behavior
<shevy> ok
KLVTZ has joined #ruby
d0lph1n98 has joined #ruby
randomnick_ is now known as whereami
LadyRainicorn has quit [Ping timeout: 252 seconds]
saarinen has quit [Read error: Connection reset by peer]
amclain has joined #ruby
whereami is now known as whereami_
dawkirst has quit [Remote host closed the connection]
banister has joined #ruby
saarinen has joined #ruby
<jhass> I'd named that GEM_DIR or something like that
amclain has quit [Client Quit]
whereami_ is now known as isthisreallife
<jhass> though I also vaguely remember something about Gem.data_dir or something
eguim has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
pyon has joined #ruby
Nahra has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
benzrf|offline is now known as benzrf
Nahra has joined #ruby
isthisreallife has left #ruby ["Leaving"]
jheg has joined #ruby
stantona has joined #ruby
bmurt has quit []
Xeago has quit [Remote host closed the connection]
tylersmith has joined #ruby
d0lph1n98 has quit [Quit: leaving]
jamto11 has joined #ruby
tylersmith has quit [Remote host closed the connection]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Olipro has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
Takle has quit [Remote host closed the connection]
shemerey has joined #ruby
saarinen has quit [Quit: saarinen]
<bga_> ruby 1.9
b1205 has joined #ruby
<jhass> still horrible code
<bga_> so i just wrapped define_method
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bga_> why that work?
<jhass> probably because you convert the block to a proc
momomomomo has quit [Quit: momomomomo]
<jheg> I'm confused about what objects are in ruby
wm3|away has joined #ruby
<jhass> jheg: everything is an object in ruby
<benzrf> jheg: they are things that respond to messages
<jheg> I thought you'd say that
Ishiro has joined #ruby
<benzrf> aka methods
<jheg> so are variables objects?
<jhass> no, variables point to objects
<jheg> and if a variable has a method assigned that is an object too?
<benzrf> jheg: an object is something that responds to messages
<jhass> you can't assign a method to a variable
<benzrf> jheg: but to answer your question, anything that is a 'value' is an object
<benzrf> jheg: methods aren't values; they only exist syntactically
<jhass> you can assign the return value of a method call, which is an object, to a variable
<benzrf> therefore, they are not objects
<benzrf> jheg: are you here from js?
rm_ has quit [Remote host closed the connection]
<jhass> you can obtain an object that represents the method though
<jheg> nah I have no previous programming knowledge
xcv has quit [Remote host closed the connection]
<benzrf> jheg: OK
rm_ has joined #ruby
b1205 has quit [Ping timeout: 252 seconds]
<jheg> jhass: when you say you can't assign a method to a variable what would this be? variable_name = some_method(arg)
<jhass> what I said next
<jhass> you assign the return value of that method call, which is an object
<jheg> ah OK yes got you thanks
dangerou_ has joined #ruby
stantona has quit [Remote host closed the connection]
<shevy> >> "cat".method(:upcase)
<eval-in_> shevy => #<Method: String#upcase> (https://eval.in/157445)
anaeem___ has joined #ruby
stantona has joined #ruby
Takle has joined #ruby
dangerousdave has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
anaeem1 has quit [Ping timeout: 255 seconds]
Hanmac has quit [Ping timeout: 276 seconds]
skysploit has quit [Remote host closed the connection]
stantona has quit [Ping timeout: 276 seconds]
dawkirst has joined #ruby
<bga_> well
yakko_ has joined #ruby
<bga_> jhass i just dont see any bouded vars in class ... end
<jhass> you shouldn't need them
yakko has quit [Ping timeout: 265 seconds]
maximski has quit [Ping timeout: 252 seconds]
maximski has joined #ruby
<bga_> i agree. in big projects i shoild stay away from closures for class and put constants into class body as you (but allMask is unrelated to String). But i use ruby as bash mainly and want simple code.
Xeago has joined #ruby
kirun has joined #ruby
<jhass> like is path_parts
<jhass> that stuff belongs to File,Dir,Pathname and Sh
jimbow has joined #ruby
<jhass> and/or
<jhass> in particular have a look at the shell stdlib: http://ruby-doc.org/stdlib-2.1.1/libdoc/shell/rdoc/Shell.html
b1205 has joined #ruby
<jhass> and no matter if big project or not, using define_method when neither the method name nor the receiver is dynamic is just silly
<jimbow> how long does it take to master a new programming language if someone never programmed nor has any knowledge of programming concepts
jack_rabbit has joined #ruby
Nahra has quit [Remote host closed the connection]
<jhass> jimbow: that's very individual and "master" is very vague
<jhass> but expect a few years, which doesn't mean you can't be a productive programmer earlier
<jimbow> jhass: well, how long did it take you?
<jimbow> thanks, i'm trying my best in becoming a great programmer and designer
Nahra has joined #ruby
<jimbow> but it's really difficult
dawkirst has quit [Remote host closed the connection]
<jhass> 2-3 years for ruby but I knew a couple of languages before, though I haven't reached the same level of understanding for any other language yet
<jhass> the most important thing is to just pick projects and actually program
<jhass> everything else comes while doing that
yubrew has joined #ruby
gruz0[russia] has joined #ruby
<gruz0[russia]> ку
b1205 has quit [Ping timeout: 260 seconds]
SegFaultAX has quit [Excess Flood]
<andreas> jimbox: I've been working with ruby 40+ / week for 3 years
<andreas> and there's still a lot out there I'm learning
<andreas> sorry, jimbow :)
SegFaultAX has joined #ruby
<benzrf> jimbow: dont listen to them!!!
<andreas> lol
<benzrf> i know ruby so well im literally better at it than the creator and it only took me a year B)
<jimbow> benzrf: how do you know that?
<benzrf> jimbow: because im being sarcastic
<benzrf> or at least facetious
jack_rabbit has quit [Ping timeout: 240 seconds]
<benzrf> jimbow: look at it this way
<benzrf> jimbow: how long does it take to master writing?
<benzrf> that's a meaningless question
<shevy> 10 years
<benzrf> a better question is, how long does it take to become good at writing
<benzrf> but there is no such thing as mastering writing
Ishiro has quit [Quit: Computer has gone to sleep.]
<benzrf> same for programming
<jimbow> less, writing could take 1 year at the most
<benzrf> in any particular paradigm
<jhass> but neither for writing nor for programming "good" is very objectively measurable either
<jimbow> but writing and programming aren't entirely relatable
yubrew has quit [Ping timeout: 255 seconds]
<andreas> well, first you need to be good at programming
<andreas> and then you need to know the language enough
<andreas> to know how to leverage it's potential
<andreas> and express what you want it to do
<andreas> in a neat and performant way
<andreas> I do a lot of web programming
<andreas> so I know a lot about ruby in that area
freerobby has quit [Quit: Leaving.]
<andreas> but just the other day I had to do some forking / signaling
<andreas> and I felt like a newbie
rkazak_ has joined #ruby
<andreas> if you want to master ruby
jinie has joined #ruby
<andreas> you probably want to work on a bunch of projects
rm_ has joined #ruby
<andreas> that challenge different areas
<benzrf> master, v: to have a false sense of overknowledge
<rkazak_> :)
<andreas> like a scrum master ?
<andreas> :P
sepp2k has joined #ruby
<benzrf> *to attain, not to have
<benzrf> derp
sepp2k1 has quit [Ping timeout: 252 seconds]
dangerou_ has quit [Read error: Connection reset by peer]
<rkazak_> those agile rugby players....
dangerousdave has joined #ruby
bean_ has joined #ruby
stantona has joined #ruby
wm3|away has quit [Ping timeout: 240 seconds]
hello_world101 has joined #ruby
julian-delphiki has quit [Ping timeout: 276 seconds]
jack_rabbit has joined #ruby
Xeago has quit [Remote host closed the connection]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
Nahra has quit [Remote host closed the connection]
naw has quit []
Nahra has joined #ruby
diegoviola has joined #ruby
SBoolean has joined #ruby
dingus_khan has joined #ruby
n_blownapart has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
bluenemo has quit [Quit: Verlassend]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<j75> Andreas in your 3 plus years have you used the flipflop operator at all?
andreas__ has joined #ruby
magler has quit [Remote host closed the connection]
naw has joined #ruby
<benzrf> fl
<benzrf> flipflop op is for perlosers
bluenemo has quit [Remote host closed the connection]
<andreas__> no, I haven't
<shevy> what is flipflop ... is that "!"
<andreas__> google it
<shevy> google yourself
<andreas__> I did
<jhass> shevy: it's (condition)..(condition)
byteoverfl0w has quit [Remote host closed the connection]
<shevy> huh
GriffinHeart has quit [Ping timeout: 240 seconds]
alxgnon has joined #ruby
<andreas__> j75: I would say that such code is useful in perl, given the language characteristics
robbyoconnor has quit [Excess Flood]
Toxica has joined #ruby
<benzrf> >> gets; $_
<eval-in_> benzrf => nil (https://eval.in/157460)
<benzrf> ugh, ruby has $_ ?
robbyoconnor has joined #ruby
<andreas__> j75: but in ruby I would say you have more elegant ways of doing the same thing ;)
andreas has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
<rkazak_> me neither…
naw has quit [Read error: Connection reset by peer]
<benzrf> hmmm
<benzrf> so the flipflop works like
<benzrf> wait hnn
<benzrf> def flipflop(syntactic_spot, initial, final)
<jhass> benzrf: huh?
<benzrf> hold on...
<benzrf> let me experiment o3o
enebo has joined #ruby
obs has joined #ruby
<arrubin> The flip flop operator is useful in Perl for things like reading a file where there is a line that marks the beginning of something and then another line that marks the end.
<arrubin> The flip flop operator can return true starting when it sees the beginning marker and keep doing so until it sees the end marker.
atraylen has joined #ruby
gruz0[russia] has joined #ruby
<jhass> hm, def flipflop(a, b); @last ||= false; if !@last && a; @last = true; elsif @last && b; @last = false; end; @last; end; if I got that right
<rkazak_> arrubin: thanks for the explain.
GriffinHeart has joined #ruby
<benzrf> jhass: yo i was about to impl it o-o
<shevy> oh so like a container that has to be open to get input, and is closed to no longer receive input
<jhass> though multiple distinct ones in one context possible of course
<jhass> hm, the ||= is borked
byteoverfl0w has joined #ruby
Nahra has quit [Remote host closed the connection]
<j75> iset
<arrubin> Why are you trying to implement it? Ruby has the flip flop operator.
<jhass> just for fun
Ishiro has joined #ruby
<arrubin> That is the most straight-forward example.
Toxica has left #ruby [#ruby]
<Mon_Ouie> benzrf: $_ is the last line that has been read using gets, not the same as in Perl as far as I understand
Nahra has joined #ruby
<Mon_Ouie> (Mostly meant to be used in one-liners with ruby -pe)
<benzrf> hmmmmm
<benzrf> Mon_Ouie: that is pretty similar to perl...
<arrubin> Mon_Ouie: If you use <$file_handle> it will end up in $_ in Perl.
Ishiro has quit [Read error: Connection reset by peer]
<arrubin> while(<$file_handle>) { ...
JPascal has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> is there a way to find out who called me *and* distinguish between calls?
<benzrf> i.e.
<benzrf> def foo
<benzrf> my_meth
<benzrf> my_meth
<benzrf> end
Ishiro has joined #ruby
j75 has quit [Quit: WeeChat 0.4.1]
windowlicker has joined #ruby
jd has joined #ruby
<jhass> ew, I guess you know about caller. But whatcha doing there?
<benzrf> and calling foo would print 'in foo1 in foo1 in foo2 in foo2' or something
<benzrf> jhass: trying to implement the flipflop in pure ruby
<benzrf> BECAUSE I CAN
<jhass> class Flipflop; def initialize; @state = false; end; def check(a, b); @state = !@state && a; @state = @state && b; @state; end; end; ?
jd is now known as Guest49208
<benzrf> theres more
<benzrf> syntactic position and method call resets
<benzrf> :-o
bricker`LA has quit [Quit: leaving]
<benzrf> i want the stack frame that called me
<benzrf> well i guess theres a way to cheat
endash has quit [Quit: endash]
<rkazak_> cheat = be creative….
<RubyPanther> Creativity is the programmer's #1 enemy
Guest49208 is now known as j75
<rkazak_> sometimes....
<RubyPanther> "a programming language that has been engineered to promote good style and design can still be used to write terrible code if the coder is sufficiently creative." http://queue.acm.org/detail.cfm?id=1039535
maximski has quit [Ping timeout: 245 seconds]
<RubyPanther> That's why I had to give up Perl, it actually _encouraged_ me to be creative and even (horrors) expressive
GriffinHeart has quit [Remote host closed the connection]
<j75> Perl is way too messy
hello_world101 has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
<RubyPanther> Perl is a fine language, if you're boring enough not to be creative or expressive when given a chance
<shevy> hahaha
<RubyPanther> Ruby teaches me, just do it the freakin' normal way, mkay?! Saves me from myself, without the bondage of Java
<arrubin> RubyPanther: That is a matter of convention, not Ruby enforcing anything.
n_blownapart has quit []
<benzrf> RubyPanther: youd love python
Martxel has joined #ruby
maximski has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
<RubyPanther> Exactly! The convention of "any way is good" is more than subtly different than "you can do it any way, but please do it the right way if you can"
maximski has quit [Client Quit]
_808chris has joined #ruby
<arrubin> RubyPanther: Nothing in Ruby enforces such a convention.
<arrubin> There are such conventions in Perl too.
<shevy> like "write beautiful code" ?
akonny has joined #ruby
<RubyPanther> benzrf: I've used baby python, but I don't go any further in than I can figure out in the REPL
<arrubin> There is an entire book on a topic, and a tool that will point out deviations from the convention, and these conventions are widely used.
<arrubin> s/a topic/the topic/
<_808chris> howdy, I have a very weird issue. I'm getting "`require': cannot load such file -- spec_helper (LoadError)" even though spec_helper exists.. same thing with require_relative.. any ideas?
<benzrf> RubyPanther: the philosophy of python is practically 'do things the right way that everybody agrees on because it makes everything understandable'
<jhass> _808chris: fix your $LOAD_PATH
momomomomo has joined #ruby
dwts has quit [Ping timeout: 252 seconds]
<benzrf> RubyPanther: and the language design is full of 'this is possible to implement but it feels too clever'
<benzrf> i.e. in python, you cant put more positionals after a splat
<benzrf> because even though there are ways for it to work, it isnt OBVIOUS
jimbow has quit [Remote host closed the connection]
j75 has quit [Quit: WeeChat 0.4.1]
<benzrf> *in a param list
<benzrf> but also in a call apparently
<RubyPanther> Ruby is the same way, there is lots of stuff that the language "can" do that you should not do
<rkazak_> benzrf: yes.
<benzrf> yes, but in python it's enforced at a language level
Bish_ is now known as Bish
<benzrf> :-)
<benzrf> i.e. there's stuff that the language could do that it does ont
<benzrf> *not
dwts has joined #ruby
<benzrf> not just stuff the language can do that you shouldnt
lagweezle has quit [Quit: leaving]
<_808chris> jhass, thanks that works.. but how do configure this so I dont need to keep "$LOAD_PATH.unshift(File.dirname(__FILE__))" on every file?
<_808chris> is there something i can do globaly?
<andreas__> -I
<benzrf> RubyPanther: in ruby, there's stuff you CAN do but shouldnt
<andreas__> ruby -Ipath
<jhass> _808chris: that depends on what you're doing
<benzrf> RubyPanther: in python, there's stuff the LANGUAGE can do but doesnt
centrx has joined #ruby
<rkazak_> :)
yubrew has joined #ruby
<_808chris> jhass, just trying to test a simple Sinatra app :/
<RubyPanther> Yeah, Ruby knows if you have to protect yourself from yourself by force, you're just going to build something even more disgusting to get around it. You have to buy in to the convention of doing things the Right Way as the first choice, and the Other Way only when you have to. Also it is assumed that the Other Way is a kludge and would get fixed given time
<andreas__> _808chris: if you execute with ruby -Ipath/to/spec_helper
<_808chris> andreas__, using a rake task
<jhass> -spec_helper
<jhass> ruby -Ispec for example
<jhass> or in your Rakefile
<rkazak_> RubyPather: or maybe not… as it ends up as the de facto std…
Jetchisel has quit [Ping timeout: 245 seconds]
shevy has quit [Ping timeout: 252 seconds]
<RubyPanther> In Perl the Other Way is just a personal choice, therefor opinion, therefor it is personally offensive and oppressive to tell somebody there is a Right Way. It denies their individuality as a person.
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
jackneill has quit [Remote host closed the connection]
<RubyPanther> But I'm way too unique of an individual for it to be safe to map all my opinions to my code. Not even Future-Me will be able to understand Past-Me, the human condition doesn't allow for being understood at that level.
shevy has joined #ruby
Nahra has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 265 seconds]
<pontiki> RubyPanther: do you understand what you just said?
<_808chris> jhass, andreas__ thanks for the help, I can't seem to figure out how to add that flat the my rake task http://pastebin.com/HWeCL01x
SCommette has joined #ruby
rm_ has quit [Read error: No route to host]
mr_snowf1ake has quit [Ping timeout: 240 seconds]
<_808chris> *flag
rm_ has joined #ruby
Prawnzy has joined #ruby
<jhass> what's your testing framework?
<RubyPanther> pontiki: Yes, of course... I'm curious what you mean, it seems an odd question.
Nahra has joined #ruby
<_808chris> minitest
<_808chris> minitest-spec actually
<benzrf> sometimes i wonder if RubyPanther is a troll
<pontiki> you just said future-you can't understand past-you. seems like it works. :)))
DouweM has quit [Read error: Connection reset by peer]
<RubyPanther> benzrf: When you're considering if you should call people names, the standard convention is "no, don't do it."
<pontiki> seriously, though, you are right, for a significant passage of time, the thing you coded in the past can become gibberish in the intent to the future-you
<pontiki> happens alla time, in fact
<RubyPanther> pontiki: It is rooted in the experience of opening up a .pm file, saying, WTF, what idiot wrote this, what the heck is going on, what does this code even _do_... and the realizing *I* wrote it... 6 months earlier
<pontiki> the "What idiot wrote this crap?" "Oh, it's mine"
<jhass> :8
<pontiki> *exactly* :)
<jhass> _808chris: via the libs option
<jhass> that actually was a typo :P
j75 has joined #ruby
<RubyPanther> It is _exactly_ the same emotional feeling as if I read abstract poetry I wrote as a teenager. I can't still feel how I felt then. It feels familiar, but not like it is me, like I watched a close friend doing it.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
feature_creep has joined #ruby
akonny has quit [Quit: akonny]
<RubyPanther> I can read Ruby code I wrote 5 years ago, and it is only a mild, "WTF, oh, okay, I used to use ugly patterns"
<rkazak_> well it’s only to be expected as your experience grows…
<RubyPanther> if it is C it is even easier, because I never knew enough C to do anything clever or optimized
<rkazak_> :) - 2 c || ! 2 c
<RubyPanther> old SQL, I'd write it exactly the same way now, usually
<rkazak_> and then there’s ADA
<andreas__> yuck ADA
<rkazak_> :)
<pontiki> c'mon, Ada isn't an acronym
DouweM has joined #ruby
WillAmes has joined #ruby
<Mon_Ouie> ALL 3-letter sequences are acronyms
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<pontiki> except when they're just names
<rkazak_> ok...ok...
<j75> like my username for example
gorpon has joined #ruby
<shevy> joker75
<j75> lol
<RubyPanther> If I had to use a static imperative language other than C, Ada would be a fine choice
<rkazak_> OMG ! enough now.
<RubyPanther> I'd rather use Ada than PASCAL/Delphi
Rollabunna has joined #ruby
<RubyPanther> I guess Pascal probably isn't an acronym either
<rkazak_> Hmmm, COBOL - keeps on going!
dawkirst has joined #ruby
<RubyPanther> COBOL is so bad that it can be fun to write
<RubyPanther> pass-by-value is its own Special experience
<rkazak_> NCR NEAT3 assembler…
<_808chris> jhass, i dont understand why this is required. on all the tutorials i see there is never a mention of load_path
unknown007 has quit [Ping timeout: 260 seconds]
tessi has joined #ruby
<jhass> never used minitest, maybe the default is test instead of spec or something like that
feature_creep has quit [Quit: feature_creep]
<RubyPanther> Ada is like Java with less boilerplate and better concurrency
Rollabunna has quit [Ping timeout: 252 seconds]
<shevy> _808chris it is not required, just use gem-dir structures and install into ruby site dir path and you will never ever need require_relative
<shevy> nor have to modify $:
<shevy> or whatever load path was
<_808chris> jhass, shevy apparently minitest does need the lib flag http://stackoverflow.com/questions/15588318/how-do-i-extend-load-path-for-minitest
<shevy> I can't mnemo the $ vars
<shevy> looks awful
lagweezle has joined #ruby
r0ok has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
<_808chris> i've gotten it working .thanks jhass andreas__ shevy
<andreas__> yw
akonny has joined #ruby
_808chris has quit [Quit: Leaving]
andreas__ has quit [Quit: Leaving]
andreas__ has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
mijicd has joined #ruby
gruz0[russia] has joined #ruby
t0rc has joined #ruby
jamto11 has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
Xeago has joined #ruby
Fire-Dragon-DoL has joined #ruby
Burgestrand has joined #ruby
n_blownapart has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
gruz0[russia] has quit [Quit: Leaving]
<n_blownapart> hi I'm learning some math with the euler project. the last time I pasted one people here said it was poorly written. any comments on this one? ( ultimately I was able to see how euler #3 worked in ruby) thanks
jamto11 has quit [Ping timeout: 265 seconds]
GC_2 has joined #ruby
jack_rabbit has quit [Read error: Connection reset by peer]
rm_ has quit [Ping timeout: 252 seconds]
<n_blownapart> oh sorry I'll post the question ! ^^
Xeago has quit [Ping timeout: 245 seconds]
frogssgy has joined #ruby
<n_blownapart> https://gist.github.com/anonymous/f05a101421bf43d8e049 ^^ question to above (euler #50)
gigetoo has quit [Remote host closed the connection]
Prawnzy has quit [Ping timeout: 264 seconds]
<jhass> you never use p, you only use the index
<jhass> so do 0.upto(9) do |i| or 10.times do |i|
near77 has joined #ruby
frosgy has quit [Ping timeout: 245 seconds]
dingus_khan has quit [Remote host closed the connection]
gigetoo has joined #ruby
<jhass> you don't need to require 'mathn' to have to access to Prime, require 'prime' suffices
GC_2 has quit [Quit: Leaving]
<near77> hi
<near77> anyone did anything of machine learning in ruby?
<n_blownapart> jhass: ok if I could clarify. This was written by someone else who posted his answers on a website. I had another of his answers rewritten by a friend and was finally able to understand it. so youre saying that line 5 should be using upto instead of that range?
gregf has quit [Quit: WeeChat 0.4.3]
Nahra has quit [Remote host closed the connection]
<jhass> only i is used, never p, so yeah
anaeem___ has quit [Remote host closed the connection]
Nahra has joined #ruby
<n_blownapart> jhass: very sorry, but where are you referring to p?
<jhass> primes[0..10].each_with_index do |p, i| # <- there, p is never used
badhatter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
<n_blownapart> jhass: interesting. ok so the program does work and returns 997651. so one pipe variable is not being used at all and doesn't throw an error?
<andreas__> n_blownapart: of course it doesn't throw an error, why would it?
<jhass> and we call those block parameters or block variables
marr has joined #ruby
<rkazak_> Hmm, we are all learning here right?
charliesome has joined #ruby
mehlah has joined #ruby
ascarter has quit [Client Quit]
<n_blownapart> rkazak_ thanks . yeah I would have assumed a block variable unused (not referencing anything) would throw an error. jhass
Moeh has joined #ruby
<andreas__> n_blownapart: I didn't mean to offend you, I don't know any language that would do that...
rm__ has joined #ruby
<Moeh> Hey, I have ruby installed through RVM and would now like to execute a ruby script via a cronjob. Do I need to write a bash script as wrapper around it or can I execute the ruby script directly from the cron job?
<n_blownapart> andreas__: no worries not offended, just in the dark...
<jhass> Moeh: iirc there's something like rvm do, rvm do 2.1.1 ruby script.rb or something like that
Burgestrand has quit [Quit: Burgestrand]
feature_creep has joined #ruby
<jhass> Moeh: try rvm help do
<andreas__> Moeh: you could also do something like source "$HOME/.rvm/scripts/rvm" && source .rvmrc
<jhass> Moeh: or in that case you want rvm-exec apparently http://rvm.io/set/do
akonny has quit [Quit: akonny]
<Moeh> When I use rvm-exec I get /usr/bin/ruby: bad interpreter: No such file or directory
badhatter has joined #ruby
<pontiki> cron runs in a completely different and *very* stripped down environment than a login shell
feature_creep has quit [Client Quit]
<Moeh> andreas__ so you mean: ‘source "$HOME/.rvm/scripts/rvm" && source .rvmrc && ruby script.rb’ inside the cronjob?
HashNuke has quit [Quit: Connection closed for inactivity]
pwh has joined #ruby
<pontiki> Moeh: take a look at using the whenever gem to manage your crontab tasks
jheg has quit [Quit: jheg]
<andreas__> Moeh: yeah, append your command with && ruby something.rb
near77 has quit [Changing host]
near77 has joined #ruby
near77 has joined #ruby
near77 has quit [Changing host]
<andreas__> pontiki: I think the whenever gem is for rails?
<pontiki> not specifically
<near77> hi
<near77> i have an issue
<pontiki> i use it with non-rails crontasks all the time
<near77> in rails
<andreas__> oh, I see
<andreas__> you are right
<near77> but cant join rails channel
<jhass> near77: #rubyonrails
<near77> anyone can help?
<jhass> near77: /msg NickServ help
<pontiki> near77: you must be registered with nickserv to join #rubyonrails
<andreas__> well, I've used that gem, Moeh, you are better off with using it :)
feature_creep has joined #ruby
<Moeh> andreas__: I’ve also used it before, however only in combination with rails. Will try :)
Nahra has quit [Remote host closed the connection]
<n_blownapart> sorry again jhass precisely how would you write line 5 ? https://gist.github.com/anonymous/7dbdafb1b62accc2d2e6
<jhass> hm, 10.times do |i| I guess
andreas__ has quit [Quit: Leaving]
feature_creep has quit [Client Quit]
matchaw has joined #ruby
andreas has joined #ruby
timgauthier has joined #ruby
tyfighter has joined #ruby
<n_blownapart> jhass: ok very basic. does it know to do the operation on line 2 implicitly because line 3 is empty until the end of the block?
<jhass> no, it just does it 10 times
<jhass> just like the current version
alxgnon has quit [Remote host closed the connection]
__class__ has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
<n_blownapart> but the current version is explicitly operating on primes so i'm missing something. jhass
<jhass> okay, it does it 11 times
<jhass> (the current version)
Burgestrand has joined #ruby
<Moeh> pontiki: How would the command look inside of the schedule.rb? Is it a “runner” or a “command"?
dvabr has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
<jhass> >> is = []; [2, 3, 5, 7][0..2].each_with_index {|p, i| is << i }; is # n_blownapart
<eval-in_> jhass => [0, 1, 2] (https://eval.in/157465)
<jhass> >> is = []; 3.times {|i| is << i }; is # n_blownapart
<eval-in_> jhass => [0, 1, 2] (https://eval.in/157466)
<pontiki> Moeh: 'runner' is for rails code, like you'd use in `rails runner "Do.this"`
<pontiki> 'command' is for shell commands
<pontiki> and you can create your own job types as well
<pontiki> the whenever README is pretty clear on this
matchaw has quit [Ping timeout: 255 seconds]
andreas has quit [Quit: Leaving]
<n_blownapart> jhass: ok thanks very much. I need to sort that out. why name the reference 'is' ?
afast has joined #ruby
matchaw has joined #ruby
<jhass> n_blownapart: that was just for demo purposes, just an array to collect the i's ;)
<n_blownapart> jhass: got it thanks!
<jhass> could've written .each_with_index.to_a.map(&:last) and .times.to_a but that's less clear ;)
<Moeh> pontiki: It’s working, thanks!
centrx has joined #ruby
<Burgestrand> Does anybody know the name of a gem that allows you to spin up a background thread, schedule blocks to be run on that thread some time in the future, and wait for the result of said block in the originating thread? Similar to a threadpool of size 1, I suppose.
pwh has quit []
claymore has quit [Quit: Leaving]
<pontiki> nw, Moeh
<pontiki> glad i can help someone today
sambao21 has quit [Quit: Computer has gone to sleep.]
qwyeth has joined #ruby
kirun has quit [Quit: Client exiting]
t0rc has quit [Quit: WeeChat 0.4.3]
feature_creep has joined #ruby
<n_blownapart> jhass: many thanks.
decoponyo has joined #ruby
atmosx has joined #ruby
<afast> Burgestrand: Spawnling?
<KLVTZ> so Ruby Version Manager requires that the terminal starts in the login shell so i can open multiple bash tabs and still have ruby available. However, I am bother by the two second delay in the terminal having to login to the shell. Is there a way to combat this delay?
<afast> are you using rvmrc?
<Burgestrand> afast: thanks! Unfortunately looks like it's both a bit unmaintained, and for rails, but it is similar to what I need to do.
decoponio has quit [Ping timeout: 255 seconds]
<afast> unmaintained doesn't mean it doesn't work
<KLVTZ> afast: none
<KLVTZ> i just installed rvm normally
<KLVTZ> would i need to create .rvmrc?
<Burgestrand> afast: true! Actually, it looks like it's maintained, just haven't had a release in a while. Either way, it's for rails, and I'm not doing this for a web project.
<afast> Burgestrand: have you tried just using Thread.new do; ... end ?
Ishiro has quit [Quit: Computer has gone to sleep.]
<Burgestrand> afast: yeah, I've written my own implementation of what I need, but it's not yet finished and I need to find all edge cases, so I was going to scout for existing work before I reimplement something that already exist.:)
jezen has joined #ruby
feature_creep has quit [Quit: feature_creep]
<KLVTZ> Nevermind, I resovled it, I added [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" from .bash_profile to the .bashrc
<KLVTZ> i don't need to call login shell any longer
Takle has quit [Remote host closed the connection]
<afast> Burgestrand: it looks like you could use Spawnling anyway... have you tried it at least?
feature_creep has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
<Burgestrand> afast: looking through the source at the moment. Looks like it might not require rails, so it's a possibility. Thanks for the pointer.
<afast> Burgestrand: yw
SCommette has quit [Quit: SCommette]
dvabr has joined #ruby
cashnguns has quit [Remote host closed the connection]
angusiguess has joined #ruby
TorpedoSkyline has joined #ruby
<TorpedoSkyline> is the preferred place to get ruby gems still RubyGems.org? or do we have an alternative now?
olivier_bK has joined #ruby
<pontiki> that's still the place
<TorpedoSkyline> ok thanks
jezen has quit [Remote host closed the connection]
SCommette has joined #ruby
Takle has joined #ruby
hobo has joined #ruby
jhass is now known as jhass|off
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has joined #ruby
GriffinHeart has joined #ruby
enebo has quit [Client Quit]
angusiguess has quit [Ping timeout: 255 seconds]
cgcardona has quit [Quit: cgcardona]
ndrei has quit [Ping timeout: 276 seconds]
matchaw has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Ping timeout: 260 seconds]
SCommette has quit [Quit: SCommette]
klaut has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
mr_snowf1ake has joined #ruby
__class__ has joined #ruby
feature_creep has quit [Quit: feature_creep]
SCommette has joined #ruby
SCommette has quit [Client Quit]
shevy has joined #ruby
mengu__ has joined #ruby
<shevy> well
<shevy> I was down
andrewlio has quit [Quit: Leaving.]
mengu has quit [Ping timeout: 240 seconds]
<shevy> turned out the cable was not connected into the main computer
shemerey has quit [Quit: Textual IRC Client: www.textualapp.com]
gizmore has joined #ruby
KLVTZ has quit [Ping timeout: 240 seconds]
<gizmore> How do i implement foo! methods which are self assigning? http://cxg.de/_bf63ad.htm
oo_ has quit [Remote host closed the connection]
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
peret has joined #ruby
bfilip has joined #ruby
<ari-_-e> gizmore: you can't assign to self
combusean has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ari-_-e> that's not how you implement mutation
<ari-_-e> maybe String#replace would work?
lobstah has quit [Ping timeout: 264 seconds]
dingus_khan has joined #ruby
<ari-_-e> there's already a strip method though
<ari-_-e> gizmore: and even if you could assign to self, that wouldn't do what you want
bfilip has quit [Client Quit]
JoeGaudet has joined #ruby
Moeh has quit [Quit: Moeh]
<shevy> gizmore for class String you can use replace() http://www.ruby-doc.org/core-2.1.1/String.html#method-i-replace - for other classes you may be out of luck though
<gizmore> thank you both, but i was wondering in general how i could implement it the foo! way
<ari-_-e> gizmore: in general?
<ari-_-e> gizmore: give an example
<gizmore> my cxg paste should be a good example
<ari-_-e> ok, well in that case you can use replace
<gizmore> well, at least it shows the problem with patching string class
<gizmore> which is bad, admitted, so... the problem is that string has no value setter?
<ari-_-e> ... it does. replace.
<ari-_-e> shevy even linked to the doc
<gizmore> hmmm... thanks
dseitz has joined #ruby
<ari-_-e> assigning to self will never work though
<gizmore> yup! thank you very very much :) understood :)
hobo has left #ruby [#ruby]
<gizmore> and makes sense! ... just couldn´t find a setter :)
wu_ has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gizmore> so thank you shevy ... i thought i should use replace instead of trim, and did not imagine it could be the setter! appreciated
<shevy> setters in ruby can be weird
<shevy> when I first did something like: class Foo; def bla=(i) I was surprised that I can not use return inside bla=
dingus_khan has quit [Remote host closed the connection]
thepreacher has joined #ruby
QKO has quit [Remote host closed the connection]
<gizmore> shevy: i assume it returns self implicitly?
mengu has joined #ruby
<shevy> gizmore methods like that will return i
<shevy> I omitted that inside that method one of course would do: @bla = i
<shevy> just as in an attr_writer
freerobby has quit [Quit: Leaving.]
<gizmore> ah right
weems has quit [Read error: Connection reset by peer]
<gizmore> ah well... thanks
pwh has joined #ruby
<gizmore> i would assumed self instead of the arg :S
QKO has joined #ruby
<gizmore> funny how my "stupid" questions enlight me :]
mengu__ has quit [Ping timeout: 252 seconds]
<dseitz> It is a trade-off to maintain RHS
<gizmore> btw, i am admin of a hacking challenge website. I did a lot of php past the years, but now doing some ruby... i am wondering if there are some common known pitfalls in ruby that would make some good ruby starter challenges
<shevy> we all have our dark past gizmore
<gizmore> ;)
<shevy> the number one pitfall is being cleverer than your own code
<shevy> like combining method_missing with various ways to eval()s and meta-programming
<gizmore> method_missing is a bad idea mostly
<shevy> since I have a small and very lazy brain my golden rule is that I will write and use only code that is simple to understand instantly
<shevy> I won't write a NASA mars rover
<gizmore> good code is indeed gnu/linux style
<shevy> but my ruby code is more pleasant than shell scripts
<gizmore> one purpose very good
Atrumx has joined #ruby
<shevy> and I can use ruby-gnome - take that ncurses GUIs!
<gizmore> hehe
<shevy> though htop is awesome
<gizmore> i am working on an irc bot atm :)
Rollabunna has joined #ruby
<shevy> I always point out that the author of htop started gobolinux when he was still a student
<shevy> nowadays he is into lua
<shevy> gizmore haha that was my first project in ruby
<gizmore> neat :)
<shevy> though it was both a bot and a client
n_blownapart has quit []
tectonic has joined #ruby
<gizmore> wanna see a snippet of mine?
<shevy> the problem is, I was using select( [$stdin], nil, nil, 1.1 )
<shevy> and whenever I see that, I need to look at the docs because I cant remember what this is
<shevy> gizmore no I don't
<shevy> but show anyway
mesamoo has quit [Quit: Konversation terminated!]
<shevy> the two nils annoy me the most
<gizmore> the login plugin \o/
dingus_khan has joined #ruby
<gizmore> this is ricer bot v1 ... i am working on v2 already... because i suck
<gizmore> http://cxg.de/_c46c94.htm (login plugin v2 - to compare) :)
<shevy> I have no idea what that all is
<shevy> rails has its own ecosystem of strangenesses
dangerousdave has quit [Ping timeout: 240 seconds]
cephalostrum has quit [Ping timeout: 240 seconds]
<gizmore> i am using rails only for gemfile
<gizmore> and i plan to have plugins offer webstuff too
<shevy> gemfile which comes from bundler which was inspired by the rails ecosystem wishing more control than what rubygem offers
mengu__ has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
<shevy> I find the rails ecosystem very complex
<wu_> ya. i found Camping too metaprogramming-wizard to easily modify w/o breaking
<wu_> merb was good for a week, then bloated to rails size then merged with rails. sinatra is just a copy of rails
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> >sinatra is just a copy of rails
<benzrf> top lel
<wu_> generalizing
<gizmore> rails is a bloated beast, and if you need some cool stuff it gets complicated
<gizmore> but it´s not too bad
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
alxgnon has joined #ruby
<wu_> say, 1991 to 2000 perl webframewoorks, there was a lot of variet. now you always get your controllers your ORMs your routing-frameworks,
<gizmore> lately i wanted to create huge csv on the fly... it works, but i do not 100% understand why it works (the csv streaming)
mengu has quit [Ping timeout: 252 seconds]
<gizmore> the coolest ruby code i wrote lately for my bot was my first &codeblock param :D
<gizmore> http://cxg.de/_f6dbc9.htm (RicerThread < Thread)
<wu_> but controller should only be written once, ie a standard LD-PATCH handler that takes JSON-LD/Turtle. so the whole ACtionController abstraction can be tossed. routes can just be direct URI hierpart -> filesystem paths, so you can toss the synthetic URIs and regex routingv framework wizardry
combusean has joined #ruby
mengu__ has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Remote host closed the connection]
<benzrf> wu_: gross
<shevy> wu_ sinatra by default is really not doing much, it's more like sugar over rack; with plain sinatra well what can you do without any addons... you can call URL requests... use some erb views... well that's it more or less otu of the box
<benzrf> synthetic URIs are the only way to go for dynamic websites
<benzrf> look at php, it did filesystem code
<benzrf> and see how well it turned out :I
<shevy> it works well
<shevy> people move from php to other languages
<wu_> depth-first subtree ranges on filesystem paths with sortable values in the name segments. why do you even need SQLite or an ORM again for 98% of use-cases ?
<benzrf> :-)
<shevy> not from other languages to php
<shevy> :-)
pwh has quit []
<gizmore> php is nice for beginners
<wu_> if every resource isn't a file, and i have to use some wonky ruby code or write SQL to lok at it, meh
<benzrf> noocode:
<benzrf> *no
<benzrf> gizmore: php is not nice for beginners
<gizmore> you do mypage.php, and it works without knowing why and how
<shevy> yeah
<benzrf> php is nice for beginners the way crack is nice for beginners
<shevy> that is the single thing ruby failed to understand
<benzrf> it is pleasant the first time you use it, then it destroys your mind and body
<gizmore> that´s the good point about php, and that´s pretty much it
<centrx> PHP is an abomination and a scourge on the face of the earth.
<shevy> lol centrx
<centrx> Crack is more powerful than PHP
<benzrf> i am not so sure
<shevy> crack addicts have it harder to leave crack than php folks do leaving php behind in the stinking pile of s*** it deserves to remain
<shevy> but it also primes people for other languages
<shevy> "I want a better language"
<shevy> there you go!
<gizmore> my php framework in action: https://www.wechall.net
aneong has joined #ruby
<shevy> gizmore you wrote it from zero?
<centrx> I think I'll go smoke some crack instead
<gizmore> shevy: yup :)
<shevy> looks like quite a lot of work
<gizmore> shevy: i also have written something like ActiveRecord... but it sucks in comparison
<gizmore> mine sucks
<gizmore> i spent a lot of time inventing wheels in php :)
<gizmore> today it helps me to understand other software
<afast> lol, part of it are in spanish for me
<gizmore> you can switch language in topmenu
lobstah has joined #ruby
<afast> oh I know, it was just funny :)
<gizmore> :P
djbkd has joined #ruby
<gizmore> we are still looking for translators ...
<gizmore> at least my pileofpoo is open source :)
<gizmore> unlike many other php sites from scratch
SCommette has joined #ruby
SCommette has quit [Client Quit]
jamto11 has joined #ruby
<atmosx> hello, if anyone wnats a keybase.io invitation pm me
SCommette has joined #ruby
<shevy> hey atmosx
<atmosx> hey whats' up shevy
<atmosx> how's work?
byteoverfl0w has quit [Quit: Leaving... have a good one...]
predator217 has joined #ruby
Photism has quit [Quit: Leaving]
<shevy> atmosx I am no longer at that old company, currently just focusing on a few exams in june and then looking to find a lab focusing on virology, as I realized that virology is about a million times more interesting than cancerbiology
<shevy> atmosx did you get to finish your web thingy?
<atmosx> which one?
gorpon has quit [Quit: Konversation terminated!]
freerobby has joined #ruby
gorpon has joined #ruby
<shevy> that one you mentioned a while ago in regards to ... uhm... the thing you could use in a lab and it gives back useful results related to molecular biology?
<atmosx> oh yeah, the first version
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
predator117 has quit [Ping timeout: 252 seconds]
<atmosx> but now he wants to add more fuctionality, so I have work to do. Probably in the summer
<atmosx> he wants to do score-alignment
jamto11 has quit [Ping timeout: 240 seconds]
<atmosx> so I need to at what % there's a match... e.g. searching for protein substrate in bacterias that normally do not produce it
<Lemur> Oi benzrf
<Lemur> working around Pry remote as well?
<benzrf> Lemur: hmmm?
<benzrf> Lemur: have you been reading the logs
<Lemur> I've been working on things with it trying to fix a few bits
<Lemur> Noticed you had a PR on there.
<benzrf> Lemur: oic
<benzrf> yeah thats old
<benzrf> it doesnt do much :\
<benzrf> back from when i was trying to make Quick
<benzrf> before i finally got fed up with my own shitty brittle code
<Lemur> mainly fixing the docs and separating the module a bit
<Lemur> Ah, Mon_Ouie is on here too
<benzrf> i tried to think of something i could use besides FUSE
<benzrf> but it seems like anything else would defeat my whole goal of software agnosticism
<Lemur> Trying to think of a way to patch the editor through a remote session
<Lemur> I'm working through a conference talk on Pry among other things, and Pry Remote could save a ton of time with a bit of TLC
Xeago has joined #ruby
<shevy> atmosx I see, so you are now having to do statistical evaluations?
shalto has joined #ruby
<Lemur> few PRs out on that one
<shevy> and homology modeling / sequence similarities
<shevy> damn bioinformatics algorithms
<Lemur> I'll likely post the slides out at the end of this week along with a ton of fun things you can do in Pry
ringarin has quit [Ping timeout: 240 seconds]
<Lemur> beyond some of the more basic features that everyone always covers
<Lemur> Someone was being cheeky though and hid a nyan-cat in there.
shalto has left #ruby [#ruby]
yubrew has joined #ruby
<Lemur> _pry_.commands.commands['nyan-cat']
<atmosx> shevy: yes kinda. I will also add the ability to add custom start/end codons and a few other sthings
<Lemur> Curious: banister == banisterfiend?
<atmosx> shevy: I was planning to do a PoC. But now that he added some 'real requirements' I'll do a login scheme and everything
<atmosx> psql support instead of sqlite3 etc.
<Lemur> heh, there's a pry channel, even better
<atmosx> there's also the possibility to search/fetch .fasta files from blast automatically... that would be cool too.
aneong has quit [Remote host closed the connection]
<atmosx> anyway, I'll see in the summer. I have 4 exams for before the state exams
<atmosx> and the thesis
<shevy> sounds like a lot of work ahead
lethjakman has joined #ruby
<atmosx> yeah
<atmosx> unfortunately.
yubrew has quit [Ping timeout: 264 seconds]
jezen has joined #ruby
tyfighter has quit [Ping timeout: 260 seconds]
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
tyfighter has joined #ruby
keen______ has joined #ruby
shalto has joined #ruby
tesuji_ has quit [Ping timeout: 240 seconds]
keen_____ has quit [Ping timeout: 240 seconds]
shalto has quit [Quit: Leaving]
jezen has quit [Ping timeout: 264 seconds]
rm__ has quit [Ping timeout: 255 seconds]
aneong has joined #ruby
aneong has left #ruby [#ruby]
rm__ has joined #ruby
alxgnon has quit [Remote host closed the connection]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cephalostrum has joined #ruby
maroloccio has joined #ruby
subbyyy has joined #ruby
thepreacher has quit [Quit: Leaving]
feature_creep has joined #ruby
koell has quit [Read error: Connection reset by peer]
m8 has quit [Quit: Sto andando via]
tylersmith has joined #ruby
cgcardona has joined #ruby
<shevy> man
gorpon has quit [Ping timeout: 265 seconds]
<shevy> so many browser games demand flash AND on top of that often a download of some .exe
mengu_ has quit [Ping timeout: 255 seconds]
pyon has quit [Quit: Page closed]
tacos1de has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
gorpon has joined #ruby
lethe has joined #ruby
toastynerd has joined #ruby
chipotle has quit [Quit: cya]
lethe has quit [Ping timeout: 276 seconds]
stantona_ has joined #ruby