apeiros_ changed the topic of #ruby to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
davidhq has joined #ruby
pengin has quit [Ping timeout: 245 seconds]
rbennacer has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
MrRobinhood5 has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjim has quit [Quit: (null)]
reinaldob has joined #ruby
kyrylo_ has joined #ruby
davidhq has quit [Ping timeout: 246 seconds]
reinaldob has quit [Remote host closed the connection]
n80 has joined #ruby
cybergem has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 246 seconds]
milesmatthias has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
ramfjord has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
juanpablo_ has joined #ruby
enebo has joined #ruby
freerobby has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
Jiyuhen has quit [Ping timeout: 252 seconds]
morenoh149 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Jiyuhen has joined #ruby
echevemaster has joined #ruby
morenoh151 is now known as morenoh149
SOLDIERz has quit [Quit: Be back later ...]
Hawkeye_ has joined #ruby
aiguu has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hawkeye_ has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 252 seconds]
davidhq has joined #ruby
millerti has joined #ruby
JDiPierro has joined #ruby
ajsdklfjalksdf has quit [Quit: ajsdklfjalksdf]
starless has joined #ruby
Jiyuhen has quit [Remote host closed the connection]
markholmes has joined #ruby
Rayford has joined #ruby
JDiPierro has quit [Ping timeout: 252 seconds]
CpuID has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 256 seconds]
xxneolithicxx has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Seich has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
Musashi007 has quit [Quit: Musashi007]
waxjar has joined #ruby
paradisaeidae has joined #ruby
izzol has joined #ruby
ghr has joined #ruby
Seich has joined #ruby
a1fa has left #ruby [#ruby]
lys has joined #ruby
kaleido has quit [Ping timeout: 244 seconds]
Jiyuhen has joined #ruby
purple1 has quit [Ping timeout: 256 seconds]
izzol has quit [Ping timeout: 252 seconds]
purple1 has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 252 seconds]
Xoro has joined #ruby
Xoro has quit [Max SendQ exceeded]
Xoro has joined #ruby
<purple1> Hello
sevvie has joined #ruby
<purple1> It looks quiet.
<purple1> I want to know why ruby is not usually included with linux as is perl or python.
dtordable has quit [Quit: • IRcap • 8.72 •]
juanpablo_ has joined #ruby
<havenwood> purple1: Ruby does ship with many distros. Perl has been around longer.
<xxneolithicxx> what core linux system tools/components that you know of are written in ruby compared to the other two?
Zai00 has quit [Ping timeout: 272 seconds]
<purple1> Ubuntu is mostly python.
<xxneolithicxx> that and its really a relative question because any distro could bundle it but they dont because its not really a dependency for any core thing in the system and you have to consider OS size and default packages from an installation perspective and media distribution perspective
<xxneolithicxx> I dont know if ruby is on the default ISOs but those are things that go into deciding whats included by default
<jhass> purple1: it's because most distros ship some tool that depends on either
<purple1> The core tools are usually compiled using gcc.
<jhass> an arch base install doesn't come with python for example
Zai00 has joined #ruby
juanpablo_ has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
dfinninger has joined #ruby
felixjet has joined #ruby
hpoydar has joined #ruby
alphaatom has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
baweaver has quit [Remote host closed the connection]
milesmatthias has joined #ruby
Zai00 has quit [Quit: Zai00]
baweaver has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
milesmatthias has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 250 seconds]
milesmatthias has joined #ruby
<Senjai> Theres usually a build essential
<Senjai> on every os
<Senjai> s/os/linux distro
mengu has quit [Ping timeout: 265 seconds]
baweaver has quit [Ping timeout: 256 seconds]
chrishou_ has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
willharrison has joined #ruby
deric_skibotn has joined #ruby
milesmatthias has quit [Ping timeout: 250 seconds]
marr has quit []
claptor has joined #ruby
<pipework> s/linux.*/distribution's package management system/
noname001 has quit [Ping timeout: 264 seconds]
<Senjai> pipework: Yes
lbwski has joined #ruby
superspring has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
amclain has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
superspring has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Rayford has quit [Quit: Rayford]
thinkswan has joined #ruby
nerium has joined #ruby
<nerium> Is there a way to log xhr requests without using the browser?
ValicekB has quit [Ping timeout: 250 seconds]
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
lkba has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
reinaldob has joined #ruby
<jhass> context
<jhass> why is this a #ruby question?
<jhass> sell it to us!
riotjone_ has joined #ruby
<nerium> b/c i'm using ruby
<nerium> I'm trying to, programmatically, find out what xhr requests a site makes
<nerium> I want to list them in some way
<nerium> Using Ruby
<jhass> mmh
djellemah_ has joined #ruby
<nerium> not really sure what to google for
<jhass> if you're very lucky phantomjs has an API for that and poltergeist exposes it or something
Limix has joined #ruby
duncannz has joined #ruby
thinkswan has quit [Ping timeout: 264 seconds]
Jiyuhen has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
vandemar has quit [Ping timeout: 245 seconds]
Jiyuhen has joined #ruby
<nerium> that might work
alphaatom has quit []
bruno- has quit [Ping timeout: 264 seconds]
reinaldob has quit [Ping timeout: 255 seconds]
martinbmadsen has joined #ruby
mistermocha has quit [Remote host closed the connection]
djellemah__ has quit [Ping timeout: 256 seconds]
riotjone_ has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
prasselpikachu has quit [Ping timeout: 244 seconds]
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
wallerdev has quit [Quit: wallerdev]
<nerium> jhass: Saw that one, not really sure how to instanciate the lib outside capybara
Crazy_Atheist has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
<jhass> I'd just run capybara
<nerium> hmm
freerobby has joined #ruby
prasselpikachu has joined #ruby
CatMartyn has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
Lingo_ has joined #ruby
Crazy_Atheist has joined #ruby
baweaver has joined #ruby
jblack has joined #ruby
<jblack> I have spent most of the day trying to figure out how to add tests to an already running test suite, without much success. any suggestions?
longfeet has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
<nerium> jhass: That worked really well thanks
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> nerium: haha, I'm good at guessing I guess :P
<jhass> jblack: not sure what you mean?
Channel6 has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
hardliner_ has joined #ruby
colorados has quit [Quit: Leaving]
hardliner_ has quit [Client Quit]
maximski has quit []
hardlin3r has quit [Quit: Leaving]
baweaver has joined #ruby
hardlin3r has joined #ruby
AlexRussia has joined #ruby
hardlin3r has quit [Remote host closed the connection]
bentanweihao has joined #ruby
mistermocha has quit [Remote host closed the connection]
oetjenj has joined #ruby
ghr has joined #ruby
pwh has joined #ruby
Sawbones has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
davidhq has joined #ruby
oetjenj has quit [Client Quit]
enebo has quit [Quit: enebo]
ghr has quit [Ping timeout: 255 seconds]
krisquigley has joined #ruby
Nieralyte has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
swgillespie has joined #ruby
purple1 has quit [Ping timeout: 256 seconds]
krisquigley has quit [Ping timeout: 250 seconds]
purple1 has joined #ruby
camilasan has quit [Ping timeout: 256 seconds]
jgt1 has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
sevvie has quit [Ping timeout: 256 seconds]
<Musashi007> Does anyone know what this line does: ActiveSupport.on_load(:active_record) do
jenrzzz has joined #ruby
<Musashi007> @havenwood i’m eading that but i’m not sure what i’m looking at
<havenwood> Musashi007: The grey stuff above the method has a bit of explanation.
milesmatthias has joined #ruby
<Musashi007> reading
purple1 has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
ajsdklfjalksdf has joined #ruby
wallerdev has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
milesmatthias has quit [Ping timeout: 244 seconds]
robustus has joined #ruby
icebourg has joined #ruby
deric_skibotn has quit [Ping timeout: 250 seconds]
Channel6 has joined #ruby
spiderbyte has joined #ruby
Lingo_ has quit [Quit: (null)]
lessless has joined #ruby
A205B064 has quit [Ping timeout: 246 seconds]
casadei has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
ajsdklfjalksdf has quit [Quit: ajsdklfjalksdf]
sevvie has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
casadei has quit [Ping timeout: 252 seconds]
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mozzarella has quit [Quit: WeeChat 1.1.1]
jonr22 has quit [Ping timeout: 246 seconds]
mozzarella has joined #ruby
kyrylo_ has quit [Ping timeout: 255 seconds]
bruno- has quit [Ping timeout: 256 seconds]
mozzarella has quit [Client Quit]
kblake has joined #ruby
mozzarella has joined #ruby
yfeldblum has quit [Remote host closed the connection]
bentanweihao has quit [Remote host closed the connection]
Spami_ has quit [Quit: This computer has gone to sleep]
bentanweihao has joined #ruby
Crazy_Atheist has quit [Ping timeout: 246 seconds]
kblake has quit [Ping timeout: 246 seconds]
arescorpio has quit [Ping timeout: 252 seconds]
Crazy_Atheist has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
Sawbones has quit [Remote host closed the connection]
Synthbread has joined #ruby
Sawbones has joined #ruby
jwinder has joined #ruby
juanpablo_ has joined #ruby
Sawbones has quit [Remote host closed the connection]
sevvie has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
nfk has quit [Quit: yawn]
markholmes has joined #ruby
ghr has joined #ruby
Guest13442 has joined #ruby
purple1 has joined #ruby
iamjarvo has joined #ruby
Guest13442 has quit [Client Quit]
lanemeyer has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
hpoydar has joined #ruby
arrubin has joined #ruby
rorra has joined #ruby
rorra has quit [Client Quit]
lbwski has quit [Ping timeout: 256 seconds]
lanemeyer has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
xxneolithicxx has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
hpoydar has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uptownhr has joined #ruby
camilasan has joined #ruby
Musashi007 has quit [Quit: Musashi007]
freerobby has joined #ruby
uptownhr has quit [Quit: uptownhr]
Crazy_Atheist has quit [Ping timeout: 255 seconds]
alvaro_o has quit [Quit: Ex-Chat]
bricker has quit [Ping timeout: 250 seconds]
hobodave has joined #ruby
rwz has joined #ruby
uptownhr has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frem has quit [Quit: Connection closed for inactivity]
zorak8 has quit [Read error: Connection reset by peer]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zorak8 has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
Crazy_Atheist has joined #ruby
riotjones has joined #ruby
uptownhr has quit [Quit: uptownhr]
martinbmadsen has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
porfa has quit [Quit: porfa]
martinbmadsen has joined #ruby
RegulationD has joined #ruby
riotjones has quit [Ping timeout: 265 seconds]
Apocalypse has quit [Ping timeout: 246 seconds]
AndyBotwin has joined #ruby
AndyBotwin has joined #ruby
Apocalypse has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
susmus has quit [Ping timeout: 245 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has quit [Remote host closed the connection]
milesmatthias has joined #ruby
jwinder has quit [Ping timeout: 246 seconds]
noname001 has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
milesmat_ has joined #ruby
freerobby has quit [Quit: Leaving.]
ghostpl_ has quit [Remote host closed the connection]
zorak8 has joined #ruby
purple1 has quit [Ping timeout: 256 seconds]
duncannz has quit [Quit: Leaving]
milesmatthias has quit [Ping timeout: 256 seconds]
lys has quit [Quit: lys]
AndyBotwin has quit [Quit: Leaving]
n008f4g_ has quit [Ping timeout: 246 seconds]
milesmat_ has quit [Ping timeout: 265 seconds]
apxm has joined #ruby
nerium has quit [Quit: nerium]
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
slackbotgz1 has quit [Remote host closed the connection]
slackbotgz has joined #ruby
davedev2_ has joined #ruby
sankaber has joined #ruby
j_mcnally has joined #ruby
justin_pdx has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
juanpablo_ has joined #ruby
icebourg has quit []
CatMartyn has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
bentanweihao has quit [Read error: Connection reset by peer]
bentanweihao has joined #ruby
sevvie has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
krisquigley has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
noname001 has quit [Quit: leaving]
bricker has joined #ruby
AnxiousGarlic has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
swgillespie has joined #ruby
apxm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apxm has joined #ruby
Jiyuhen has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
hpoydar has joined #ruby
AnxiousGarlic has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
dfinninger has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
camilasan has quit [Quit: No Ping reply in 180 seconds.]
purple1 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hpoydar has quit [Ping timeout: 264 seconds]
towski_ has quit [Remote host closed the connection]
AnxiousGarlic has quit [Ping timeout: 252 seconds]
aiguu has quit [Ping timeout: 246 seconds]
camilasan has joined #ruby
swgillespie has joined #ruby
tlarevo has joined #ruby
superspring has quit [Ping timeout: 272 seconds]
fdslh has joined #ruby
superspring has joined #ruby
jonr22 has joined #ruby
fdslh has quit [Ping timeout: 244 seconds]
xenokiller has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
purple1 has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 252 seconds]
tlarevo has quit []
gsgdfsgs has joined #ruby
purple1 has joined #ruby
agrinb has joined #ruby
RegulationD has joined #ruby
jenrzzz has joined #ruby
revoohc has joined #ruby
braincras has quit [Quit: bye bye]
gsgdfsgs has quit [Ping timeout: 244 seconds]
thinkswan has joined #ruby
revoohc has quit [Client Quit]
yekta has joined #ruby
cool has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
rajeshchawla has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
aiguu has joined #ruby
yekta has quit [Client Quit]
RegulationD has joined #ruby
maximski has joined #ruby
braincrash has joined #ruby
milesmatthias has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
milesmat_ has joined #ruby
purple1 has quit [Ping timeout: 256 seconds]
yekta has joined #ruby
Asher has quit [Quit: Leaving.]
zorak8 has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
yekta has quit [Client Quit]
Limix has quit [Quit: Limix]
milesmatthias has quit [Ping timeout: 255 seconds]
milesmat_ has quit [Ping timeout: 246 seconds]
platosha has joined #ruby
agrinb has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arrubin has quit []
Asher has joined #ruby
Channel6 has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 256 seconds]
purple1 has joined #ruby
purple1 has quit [Max SendQ exceeded]
claptor has quit [Quit: this channel is bakas]
Apocalypse has quit [Ping timeout: 265 seconds]
agrinb has quit [Ping timeout: 256 seconds]
xcesariox has joined #ruby
jenrzzz has joined #ruby
C1V0 has joined #ruby
Apocalypse has joined #ruby
Apocalypse has joined #ruby
zacts has quit [Ping timeout: 245 seconds]
purple1 has joined #ruby
reinaldob has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
<aiguu> where does the ruby community settle on strings, '' or "" ?
<havenwood> aiguu: yes
<aiguu> I use rubocop and it seems to get upset when you use "" instead of '' and are not interpolating
<aiguu> I find that a bit silly
<havenwood> aiguu: that's what i do personally, but there certainly isn't concensus.
<havenwood> consensus*
<aiguu> So you go with '' unless you interpolate?
<havenwood> aiguu: yup
<aiguu> I wonder how common it is
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
<BraddPitt> aiguu "" so you can use string interpolation with "${this}"
<BraddPitt> er
<BraddPitt> s/$/4
<BraddPitt> eh
<BraddPitt> #
<aiguu> '' comes with a lot of disadvantages though
<aiguu> 1) can't use ' in the string
reinaldob has quit [Ping timeout: 265 seconds]
<aiguu> 2) can't use interpolation
<aiguu> 3) if you want to add 1/2 you need to modify both beginning/end quotes
<aiguu> not too bad in vim (cs'")
<aiguu> but if someone isn't use vim #3 is very annoying
<weaksauce> I saw something that the speed of both is comparable
xcesariox has joined #ruby
<j75> I know symbols are much faster but are single quotes any faster than ""
Channel6 has joined #ruby
<aiguu> I've tested both and read they are comparable
<aiguu> some people think "" are faster
<aiguu> but it's negligble
ghr has quit [Ping timeout: 272 seconds]
<weaksauce> why would that be faster?
bricker has quit [Ping timeout: 255 seconds]
<aiguu> given the history of symbols and memory leaks I wouldn't use those unless you have to :p
<j75> heh
<aiguu> I am unsure the logic behind them being faster, but from the tests I have run it doesn't look like it's true
<weaksauce> aiguu I just don't follow the logic that "" would be faster. I know the tests say that they are both about the same but '' should in theory do less work
amclain_ has joined #ruby
xcesariox has quit [Client Quit]
<weaksauce> so I could see the conventional wisdom saying that '' is faster
<weaksauce> regardless of actual veracity
<aiguu> that's true from our perspective, but I think internally they make a change from '' to "" somewhere
<weaksauce> interesting
<BraddPitt> does anyone know the reasoning behind not being able to use string interpolation with single quote
<aiguu> plus github style guides go against the '' grain: "Use double-quoted strings. Interpolation and escaped characters will always work without a delimiter change, and ' is a lot more common than " in string literals."
amclain has quit [Ping timeout: 245 seconds]
claptor has joined #ruby
<aiguu> few comments on the debate on rubocop itself: https://github.com/bbatsov/ruby-style-guide/issues/96
Limix has joined #ruby
bricker has joined #ruby
riotjone_ has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Client Quit]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0.1/20150305021524]]
susmus has joined #ruby
<aiguu> I am just going to go with what rubocop suggest and try it out, see how I like it before I complain too much :p
riotjone_ has quit [Ping timeout: 245 seconds]
havenn has joined #ruby
<aiguu> I am more lazy and would rather roll with it than setup a special config in every project to ignore it
rwz has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby
hmsimha has joined #ruby
psy_ has quit [Remote host closed the connection]
kblake has joined #ruby
martinbmadsen has quit [Ping timeout: 246 seconds]
auraka has quit [Quit: WeeChat 0.4.2]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
Hirzu has joined #ruby
psy_ has joined #ruby
auraka has joined #ruby
kblake has quit [Ping timeout: 256 seconds]
sngeth has joined #ruby
pleiosaur has joined #ruby
amclain_ is now known as amclain
swgillespie has joined #ruby
asus88 has joined #ruby
juanpablo_ has joined #ruby
DerisiveLogic has quit [Ping timeout: 252 seconds]
jud has quit [Quit: Leaving]
Limix has quit [Quit: Limix]
agrinb has joined #ruby
yfeldblum has quit [Remote host closed the connection]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DEA7TH has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
sngeth has quit [Ping timeout: 264 seconds]
krisquigley has joined #ruby
Musashi007 has quit [Quit: Musashi007]
markholmes has quit [Quit: So it goes.]
Hirzu has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 256 seconds]
danielpclark has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 265 seconds]
agrinb has quit [Ping timeout: 256 seconds]
daveomcd has quit [Quit: Lost terminal]
krisquigley has quit [Ping timeout: 245 seconds]
asus88 has left #ruby [#ruby]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
mrj has joined #ruby
maximski has quit []
martinbmadsen has joined #ruby
jack_rabbit has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hvxgr has quit [Ping timeout: 246 seconds]
hpoydar has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
jerematic has quit [Remote host closed the connection]
jerematic has joined #ruby
jerematic has quit [Remote host closed the connection]
ghr has joined #ruby
davispuh has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 272 seconds]
n80 has quit [Quit: n80]
rwz has joined #ruby
FooBot has joined #ruby
Apocalypse has quit [Ping timeout: 245 seconds]
<gr33n7007h> !hangman
<FooBot> ________ [] [0/7]
psy_ has quit [Quit: Leaving]
<gr33n7007h> !g a
<FooBot> ___a____ [a] [0/7]
<DeBot> [a]: http://en.wikipedia.org/wiki/A - letter - A - Wikipedia, the free encyclopedia
<gr33n7007h> !g e
<FooBot> ___a_e__ [ae] [0/7]
<DeBot> [e]: http://www.eonline.com/ - Entertainment News, Celebrity News, Celebrity Gossip | E! Online
<gr33n7007h> hah
The_Phoenix has joined #ruby
FooBot has quit [Remote host closed the connection]
FooBot has joined #ruby
<gr33n7007h> !hangman
<FooBot> _________ [] [0/7]
<gr33n7007h> !guess a
<FooBot> __a______ [a] [0/7]
<gr33n7007h> !guess e
<FooBot> __a____e_ [ae] [0/7]
<gr33n7007h> !guess i
<FooBot> __a____e_ [aei] [1/7]
<gr33n7007h> !guess o
<FooBot> __a_oo_e_ [aeio] [1/7]
<gr33n7007h> !guess u
<Crazy_Atheist> with OptionParser, is there a way to make some commands need to be used with another command, like say --[no-]pid and --pidfile
<FooBot> __a_oo_e_ [aeiou] [2/7]
ghr has quit [Ping timeout: 245 seconds]
<havenn> Dragooner
<gr33n7007h> !guess d
<FooBot> d_a_oo_ed [aeioud] [2/7]
<gr33n7007h> !guess r
<FooBot> dra_oo_ed [aeioudr] [2/7]
<gr33n7007h> !guess g
<FooBot> dragoo_ed [aeioudrg] [2/7]
<gr33n7007h> !guess n
<FooBot> dragooned [aeioudrgn] [2/7]
<FooBot> dragooned You Won!
<gr33n7007h> lol
sevvie has joined #ruby
<gr33n7007h> !hangman
<FooBot> _____ [] [0/7]
<gr33n7007h> !guess a
<FooBot> __a__ [a] [0/7]
<gr33n7007h> !guess e
<FooBot> __a_e [ae] [0/7]
<gr33n7007h> !guess i
<ekem> !guess t
<FooBot> __a_e [aei] [1/7]
<FooBot> __a_e [aeit] [2/7]
<ekem> !guess r
<FooBot> __a_e [aeitr] [3/7]
<ekem> :|
<gr33n7007h> hah
<gr33n7007h> !guess p
<FooBot> __a_e [aeitrp] [4/7]
<ekem> !guess l
<FooBot> __a_e [aeitrpl] [5/7]
<ekem> !guess k
<FooBot> __a_e [aeitrplk] [6/7]
<ekem> :|
<gr33n7007h> ohh last chance
<ekem> s maybe?
<gr33n7007h> !guess s
<FooBot> __ase [aeitrplks] [6/7]
jonr22 has joined #ruby
<rwz> i guess we need to write another bot to solve handman in a quickest possible way
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gr33n7007h> !guess d
<FooBot> __ase [aeitrplksd] [7/7]
<FooBot> chase You Lost!
<ekem> ah just about to say it
<rwz> then it'll be a battle of two bots and channel become unusable
<ekem> d?A?!@#>!@
Musashi007 has joined #ruby
<ekem> !hangman
<FooBot> ________ [] [0/7]
<ekem> !guess e
<FooBot> ________ [e] [1/7]
<ekem> !guess i
<FooBot> _____i__ [ei] [1/7]
<ekem> !guess a
<FooBot> __a__i__ [eia] [1/7]
<ekem> !guess s
<FooBot> s_a__i__ [eias] [1/7]
<ekem> !guess n
<FooBot> s_a__in_ [eiasn] [1/7]
<ekem> !guess g
<FooBot> s_a__ing [eiasng] [1/7]
Musashi007 has quit [Client Quit]
<ekem> !guess o
<FooBot> s_a__ing [eiasngo] [2/7]
j75 has quit []
<ekem> !guess t
<FooBot> s_at_ing [eiasngot] [2/7]
<gr33n7007h> !guess k
<FooBot> s_at_ing [eiasngotk] [3/7]
<ekem> :|
hakunin has quit [Read error: Connection reset by peer]
<ekem> !guess c
<FooBot> s_at_ing [eiasngotkc] [4/7]
<ekem> !guess h
<FooBot> s_athing [eiasngotkch] [4/7]
hakunin has joined #ruby
<Crazy_Atheist> !guess c
<FooBot> s_athing [eiasngotkch] [5/7]
<Crazy_Atheist> r
<ekem> ah it coutns letters twice :(
<Crazy_Atheist> :<
<havenn> my hangman autosolver expects only banned letters in the []s
Armand has joined #ruby
Armand is now known as Guest63691
justin_pdx has quit [Quit: justin_pdx]
<ekem> !guess w
<FooBot> swathing [eiasngotkchw] [5/7]
P1RATEZ has joined #ruby
<FooBot> swathing You Won!
<ekem> !score
<ekem> !karma
<ekem> !gold
jonr22 has quit [Ping timeout: 264 seconds]
C1V0 has quit []
zorak8 has quit [Ping timeout: 246 seconds]
purple2 has joined #ruby
purple1 has quit [Ping timeout: 256 seconds]
Channel6 has quit [Quit: Leaving]
hvxgr has joined #ruby
RegulationD has joined #ruby
longfeet has quit [Ping timeout: 255 seconds]
blueOxigen has joined #ruby
JDiPierro has joined #ruby
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
milesmatthias has joined #ruby
vdamewood has joined #ruby
xenokiller has joined #ruby
anaeem1 has joined #ruby
sinkensabe has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
DerisiveLogic has joined #ruby
milesmatthias has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby
sinkensabe has quit [Remote host closed the connection]
A205B064 has joined #ruby
agrinb_ has joined #ruby
bluOxigen has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
blueOxigen has quit [Ping timeout: 255 seconds]
ghostpl_ has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
bricker has quit [Ping timeout: 265 seconds]
morenoh149 has quit [Ping timeout: 244 seconds]
muzik has joined #ruby
blueOxigen has joined #ruby
sinkensabe has joined #ruby
agrinb_ has quit [Ping timeout: 265 seconds]
lessless has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
ghostpl_ has quit [Ping timeout: 264 seconds]
nii236 has joined #ruby
strawHat has joined #ruby
Rollabunna has joined #ruby
<strawHat> can someone help me out a lil with rails?
<strawHat> I'm getting a few errors
sinkensabe has quit [Remote host closed the connection]
<havenn> strawHat: #RubyOnRails is the best channel for Rails.
yfeldblum has joined #ruby
chrishou_ has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has joined #ruby
meschi has quit [Ping timeout: 256 seconds]
karmatr0n has joined #ruby
Musashi007 has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Remote host closed the connection]
sinkensabe has joined #ruby
keen________ has joined #ruby
nii236 has quit [Ping timeout: 246 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
keen_______ has quit [Ping timeout: 245 seconds]
superspring has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Remote host closed the connection]
ghr has joined #ruby
jerematic has joined #ruby
strawHat has quit [Quit: Leaving]
it0a has joined #ruby
superspring has joined #ruby
purple2 has left #ruby [#ruby]
hakunin has quit []
<leyluj> Hello good people
jerematic has quit [Ping timeout: 246 seconds]
<leyluj> The fact that your language is simple it makes learning new Gems a huge curve..
ghr has quit [Ping timeout: 250 seconds]
hakunin has joined #ruby
hakunin has quit [Remote host closed the connection]
psy_ has joined #ruby
duncannz has joined #ruby
yfeldblum has joined #ruby
plashchynski has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has joined #ruby
plashchynski has quit [Client Quit]
echevemaster has quit [Quit: WeeChat 1.1.1]
bluOxigen has joined #ruby
jack_rabbit has quit [Ping timeout: 256 seconds]
blueOxigen has quit [Ping timeout: 264 seconds]
derjens has joined #ruby
karmatr0n has quit [Remote host closed the connection]
derjens has quit [Client Quit]
karmatr0n has joined #ruby
amclain has quit [Quit: Leaving]
lemur has joined #ruby
havenn has quit []
hakunin has joined #ruby
DerisiveLogic has quit [Ping timeout: 265 seconds]
karmatr0n has quit [Ping timeout: 264 seconds]
rajeshchawla has joined #ruby
juanpablo_ has joined #ruby
yfeldblu_ has joined #ruby
rajeshchawla has quit [Ping timeout: 264 seconds]
agrinb has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
juanpablo_ has quit [Ping timeout: 245 seconds]
rkgudboy has joined #ruby
jack_rabbit has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
MatthewsFace has joined #ruby
susmus has quit [Quit: leaving]
armyriad has quit [Ping timeout: 245 seconds]
morenoh149 has joined #ruby
Alayde has joined #ruby
<Alayde> Hey, anyone around at this wee hour?
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
armyriad has joined #ruby
hpoydar has joined #ruby
atomi has quit [Quit: :/]
grzywacz has joined #ruby
starless has quit [Quit: Leaving]
The_Phoenix has joined #ruby
atomi has joined #ruby
rkgudboy has quit [Ping timeout: 252 seconds]
Guest65 has joined #ruby
hpoydar has quit [Ping timeout: 244 seconds]
KramerC has quit [Ping timeout: 255 seconds]
KramerC has joined #ruby
Nieralyte has quit [Quit: Nieralyte]
<Musashi007> yes but i am ruby illiterate essentially
P1RATEZ has quit [Quit: bustin jieber roast]
<Alayde> lol, eh no worries
<Alayde> it's not an overly pressing issue
<Alayde> not even so much an issue, more of a 'how should I structure the relatively involved ruby script I'm about to write'
Guest63691 has quit [Ping timeout: 250 seconds]
Hirzu has joined #ruby
Hirzu has quit [Remote host closed the connection]
Hirzu has joined #ruby
Armand has joined #ruby
hiyosi has joined #ruby
Armand is now known as Guest48326
Wolland has joined #ruby
A205B064 has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
jonr22 has joined #ruby
izzol has joined #ruby
rubytor has quit [Remote host closed the connection]
justin_pdx has joined #ruby
bruno- has joined #ruby
Musashi007 has quit [Quit: Musashi007]
SOLDIERz has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 264 seconds]
jack_rabbit has quit [Ping timeout: 264 seconds]
izzol has quit [Ping timeout: 264 seconds]
<Crazy_Atheist> idk if anyone games on linux, but I'm making an xboxdrv wrapper, i think its coming along nicely
<helpa> Hi Crazy_Atheist. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
Nieralyte has joined #ruby
User458764 has joined #ruby
SOLDIERz has quit [Quit: Lingo: www.lingoirc.com]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjone_ has joined #ruby
milesmatthias has joined #ruby
Hirzu has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
Wolland has quit []
Morkel has joined #ruby
RegulationD has joined #ruby
Hirzu has joined #ruby
milesmatthias has quit [Ping timeout: 245 seconds]
martinbmadsen has quit [Ping timeout: 264 seconds]
wottam has joined #ruby
jack_rabbit has joined #ruby
riotjone_ has quit [Ping timeout: 256 seconds]
djellemah__ has joined #ruby
Darryl___ has joined #ruby
djellemah has joined #ruby
agrinb has joined #ruby
davedev2_ has quit [Remote host closed the connection]
rajeshchawla has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
djellemah_ has quit [Ping timeout: 250 seconds]
Hirzu has quit [Ping timeout: 264 seconds]
djellemah__ has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
djellemah_ has joined #ruby
crazydiamond has joined #ruby
djellemah has quit [Ping timeout: 245 seconds]
agrinb has quit [Ping timeout: 256 seconds]
relix has joined #ruby
bentanweihao has quit [Read error: Connection reset by peer]
rajeshchawla has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
green-big-frog has joined #ruby
Rarikon has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<green-big-frog> I'm trying to get my IRC bot running on my VPS: https://github.com/green-big-frog/bugb0t
<green-big-frog> I get this error with openssl https://gist.github.com/green-big-frog/73b7e5fde96625aa014f
<green-big-frog> How do I have to fix this? On my PC here it's working...
Xoro has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
grzywacz has quit [Ping timeout: 252 seconds]
sevenseacat has joined #ruby
djellemah_ has quit [Quit: Leaving]
xenokiller has quit [Ping timeout: 265 seconds]
Guest65 has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
jack_rabbit has quit [Ping timeout: 256 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
Spami has joined #ruby
grzywacz has joined #ruby
towski_ has joined #ruby
Alayde has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
_1_mahi has joined #ruby
<_1_mahi> hii
_1_mahi has quit [Client Quit]
jack_rabbit has joined #ruby
DLSteve has joined #ruby
anaeem1 has quit [Remote host closed the connection]
ghr has joined #ruby
anaeem1 has joined #ruby
Deele has joined #ruby
Wolland has quit []
alexherbo2 has quit [Quit: WeeChat 1.1.1]
anaeem1 has quit [Ping timeout: 244 seconds]
alexherbo2 has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
jgt1 has joined #ruby
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
sinkensabe has joined #ruby
astrobunny has joined #ruby
Zai00 has joined #ruby
The_Phoenix1 has joined #ruby
The_Phoenix has quit [Ping timeout: 246 seconds]
Morkel has quit [Quit: Morkel]
MatthewsFace has quit [Read error: Connection reset by peer]
CorySimmons has joined #ruby
jack_rabbit has quit [Ping timeout: 246 seconds]
MatthewsFace has joined #ruby
towski__ has joined #ruby
juanpablo_ has joined #ruby
Pharaoh2 has joined #ruby
<green-big-frog> I'm trying to get my IRC bot running on my VPS
<green-big-frog> I get this error with openssl https://gist.github.com/green-big-frog/73b7e5fde96625aa014f
<green-big-frog> How do I have to fix this? On my PC here everything is working...
towski_ has quit [Ping timeout: 246 seconds]
agrinb has joined #ruby
relix_ has joined #ruby
relix has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
jack_rabbit has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
klaas has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Remote host closed the connection]
it0a has quit [Quit: WeeChat 1.1.1]
rajeshchawla has joined #ruby
mech_V has joined #ruby
hpoydar has joined #ruby
apeiros_ has joined #ruby
rajeshchawla has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Client Quit]
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
Hirzu has joined #ruby
<green-big-frog> got it working...
jack_rabbit has quit [Ping timeout: 272 seconds]
<platosha> green-big-frog, ruby 2 required, right?
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<green-big-frog> don't know... it was (I don't know why) a unused gem... I din't need it..
astrobunny has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 255 seconds]
klaas has joined #ruby
The_Phoenix1 has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
elfuego has quit [Quit: elfuego]
Soda has joined #ruby
Nuck has quit [Ping timeout: 246 seconds]
wottam has joined #ruby
superspring has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
nii236 has joined #ruby
michael_mbp has quit [Excess Flood]
jerematic has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Soda has quit [Remote host closed the connection]
lkba has joined #ruby
michael_mbp has joined #ruby
Olipro_ has joined #ruby
Olipro_ is now known as Guest37462
joonty has joined #ruby
justinmcp_ has quit [Ping timeout: 244 seconds]
lkba_ has quit [Ping timeout: 264 seconds]
jonr22 has quit [Ping timeout: 265 seconds]
jerematic has quit [Ping timeout: 272 seconds]
superspring has joined #ruby
towski__ has quit [Remote host closed the connection]
Hirzu has quit [Remote host closed the connection]
lkba has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
nii236 has quit [Ping timeout: 256 seconds]
justinmcp has joined #ruby
epistrephein has joined #ruby
green-big-frog has quit [Quit: I love atom bombs... *woosh*]
Hirzu has joined #ruby
green-big-frog has joined #ruby
green-big-frog has left #ruby [#ruby]
crazydiamond has quit [Remote host closed the connection]
Pharaoh2_ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
blackmesa has joined #ruby
vmukhq has joined #ruby
Hirzu has quit [Ping timeout: 255 seconds]
Pharaoh2 has quit [Ping timeout: 256 seconds]
<shevy> hello people
reinaldob has joined #ruby
milesmatthias has joined #ruby
<vhlfd> go away.
<shevy> :D
<vhlfd> :D
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
reinaldob has quit [Ping timeout: 244 seconds]
astrobunny has joined #ruby
milesmatthias has quit [Ping timeout: 246 seconds]
lemur has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 256 seconds]
agrinb has joined #ruby
wallerdev has quit [Quit: wallerdev]
alec-c4 has joined #ruby
spider-mario has joined #ruby
joonty has quit [Quit: joonty]
sevenseacat has quit [Ping timeout: 250 seconds]
jmdade has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
duncannz has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
epistrephein has quit []
ndrei has quit [Ping timeout: 255 seconds]
rkgudboy has joined #ruby
CorySimmons has quit [Quit: Bye!]
ndrei has joined #ruby
RegulationD has joined #ruby
max96at|off is now known as max96at
alec-c4 has quit [Remote host closed the connection]
Jackneill has joined #ruby
nerium has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
davedev24_ has joined #ruby
avril14th has joined #ruby
kyrylo_ has joined #ruby
RegulationD has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rajeshchawla has joined #ruby
joonty has joined #ruby
ajsdklfjalksdf has joined #ruby
<Mia> i know it's completely unrelated but any mining engineers here? or any channels you know of?
sevenseacat has joined #ruby
<jhass> Mia: your best bet is /msg alis list -topic *mining*
<Mia> jhass, OH thanks!
AnxiousGarlic has joined #ruby
livathinos has joined #ruby
<jhass> er, extra * between list and -topic
brandly has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
rajeshchawla has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
ajsdklfjalksdf has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
brandly has quit [Ping timeout: 252 seconds]
rkgudboy has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
Jiyuhen has joined #ruby
<shevy> there can never be enough *
Musashi007 has quit [Quit: Musashi007]
sandelius has joined #ruby
User458764 has joined #ruby
<jhass> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<FooBot> ________ [] [0/7]
joonty has quit [Quit: joonty]
<jhass> wat
sdothum has joined #ruby
<jhass> Who's FooBot
<havenwood> ls
<havenwood> they're multiplying!
<shevy> lol
<shevy> BOT WARS
<gr33n7007h> mine
<gr33n7007h> !guess a
<FooBot> ________ [a] [1/7]
<gr33n7007h> !guess e
<FooBot> ____e_e_ [ae] [1/7]
ShevyBot has joined #ruby
<ShevyBot> yo guys
User458764 has quit [Ping timeout: 252 seconds]
<gr33n7007h> !guess u
<FooBot> ____e_e_ [aeu] [2/7]
<jhass> gr33n7007h: I think one is enough...
<gr33n7007h> !guess o
<FooBot> ____e_e_ [aeuo] [3/7]
<ShevyBot> more bots
<jhass> move it to ##hangman and try to make it not conflict
User458764 has joined #ruby
ShevyBot has quit [Remote host closed the connection]
<gr33n7007h> i'll kill it
FooBot has quit [Remote host closed the connection]
<shevy> HANG IT
<jhass> !gem slop
Darryl___ has quit [Quit: Connection closed for inactivity]
<shevy> gr33n7007h, FooBot is your bot?
<jhass> anyway
<jhass> DeBot: *
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [*] 1/12
<gr33n7007h> shevy: yep
<jhass> that was enough *
<shevy> DeBot: quit
<DeBot> ␣␣I␣␣Qu␣␣␣␣␣t␣␣␣i␣␣␣␣␣␣␣ [*] 1/12
<shevy> wat
<sevenseacat> lol
<sevenseacat> DeBot: erst
<DeBot> ␣␣I␣␣Quer␣E␣te␣si␣␣␣␣e␣s [*] 1/12
<jhass> DeBot: :#
<DeBot> ␣␣I::Quer␣E␣te␣si␣␣#␣e␣s [*] 1/12
<sevenseacat> DeBot: y
<DeBot> ␣␣I::QueryE␣te␣si␣␣#␣eys [*] 1/12
<sevenseacat> DeBot: k
<DeBot> ␣␣I::QueryE␣te␣si␣␣#keys [*] 1/12
<sevenseacat> DeBot: xnon
<DeBot> ␣␣I::QueryExtension#keys [*] 1/12
astrobunny has quit [Remote host closed the connection]
<jhass> DeBot: db
<DeBot> ␣␣I::QueryExtension#keys [*db] 3/12
<sandelius> You're still playing this? :)
<shevy> cats play with mice so why not with bots
FooBot has joined #ruby
<jhass> !gem rake
<FooBot> rake(10.4.2) - Rake is a Make-like program imp... by Eric Hodel - downloads (67941201) - http://www.rubydoc.info/gems/rake
<jhass> that's still conflicting too :/
<gr33n7007h> lemme change it
<shevy> we'll memorize the whole ruby stdlib API that way
<jhass> shevy: ah, you're our CGI hero
<jhass> why didn't you solve it
<shevy> I googled!!!
<jhass> lame
<shevy> do you think I read docu :D
<shevy> I google - and ask people here
<jhass> no, I think you know cgi by heart
FooBot has quit [Remote host closed the connection]
<shevy> isn't cgi semi obsoleted by rack?
<shevy> only the basics
<shevy> when things become boring I give up
reinaldob has joined #ruby
jcromartie has joined #ruby
<jhass> that didn't stop you in the past, why now?
FooBot has joined #ruby
<shevy> I've always been lazy
<gr33n7007h> --gem rake
<FooBot> rake(10.4.2) - Rake is a Make-like program imp... by Eric Hodel - downloads (67941242) - http://www.rubydoc.info/gems/rake
<shevy> cool
<shevy> --gem cinch
<FooBot> cinch(2.2.4) - A simple, friendly DSL for crea... by Dominik Honnef - downloads (117799) - http://www.rubydoc.info/gems/cinch
<shevy> gr33n7007h do you use open-uri for that?
Hirzu has joined #ruby
lordkryss has joined #ruby
<gr33n7007h> shevy: yep
jgabrielygalan has joined #ruby
FooBot has quit [Remote host closed the connection]
<wasamasa> too many bots in here
<shevy> they are just taking over because real people don't talk anymore
FooBot has joined #ruby
reinaldob has quit [Remote host closed the connection]
Hirzu has quit [Ping timeout: 256 seconds]
livathinos has quit []
<gr33n7007h> --gem rwx
<FooBot> rwx(0.0.1.1.dev) - newest Binding for wxWidgets 3.... by Hanmac - downloads (268) - http://www.rubydoc.info/gems/rwx
izzol has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mengu has quit [Read error: Connection reset by peer]
<gr33n7007h> --hangman
<FooBot> ___________ [] [0/7]
<gr33n7007h> --guess a
<FooBot> ________a__ [a] [0/7]
<gr33n7007h> --guess e
<FooBot> __e_____a__ [ae] [0/7]
<gr33n7007h> --guess i
<FooBot> __e_____a__ [aei] [1/7]
<gr33n7007h> --guess o
<FooBot> __e__o__a__ [aeio] [1/7]
<gr33n7007h> --guess u
<FooBot> __e__o__a__ [aeiou] [2/7]
juanpablo_ has joined #ruby
<gr33n7007h> --guess s
<FooBot> __e__os_a_s [aeious] [2/7]
<gr33n7007h> --guess t
<FooBot> t_e__ostats [aeioust] [2/7]
<gr33n7007h> --guess r
<FooBot> t_er_ostats [aeioustr] [2/7]
mengu has joined #ruby
<gr33n7007h> --guess h
<FooBot> ther_ostats [aeioustrh] [2/7]
<gr33n7007h> --guess m
<FooBot> thermostats [aeioustrhm] [2/7]
<FooBot> thermostats You Won!
izzol has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby
martinbmadsen has joined #ruby
jgabrielygalan has quit [Ping timeout: 252 seconds]
Pupeno has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
wottam has joined #ruby
martinbmadsen has quit [Ping timeout: 264 seconds]
<shevy> haha
<shevy> hey Hanmac
<shevy> what are you coding these days in your spare time?
basiclaser has joined #ruby
Pupeno_ has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
MatthewsFace has quit [Remote host closed the connection]
Pupeno_ has joined #ruby
Zai00 has quit [Quit: Zai00]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hpoydar has joined #ruby
Takle has quit [Remote host closed the connection]
serivich has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AnxiousGarlic has quit [Ping timeout: 244 seconds]
hpoydar has quit [Ping timeout: 272 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
ajsdklfjalksdf has joined #ruby
Takle has joined #ruby
davedev24_ has quit [Remote host closed the connection]
ajsdklfjalksdf has quit [Client Quit]
FooBot has quit [Remote host closed the connection]
Pupeno_ has quit [Remote host closed the connection]
naftilos76 has joined #ruby
Pupeno has joined #ruby
pushpak has joined #ruby
aninaki has joined #ruby
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
jonr22 has joined #ruby
jerematic has joined #ruby
DaniG2k has joined #ruby
bruno- has joined #ruby
Pupeno has quit [Ping timeout: 272 seconds]
grzywacz has quit [Quit: :wq]
jonr22 has quit [Ping timeout: 265 seconds]
jerematic has quit [Ping timeout: 255 seconds]
Jackneill has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 255 seconds]
Jackneill has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
hardlin3r has joined #ruby
lkba has joined #ruby
<hanmac> shevy currently i am no coding, currently i play magic with Forge (magic emulator) but recenty i did a commit again for rwx adding a new control that is in wx trunk
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
exadeci has joined #ruby
<apeiros> magic the gathering?
Takle has quit [Ping timeout: 252 seconds]
astrobunny has joined #ruby
milesmatthias has joined #ruby
riotjone_ has joined #ruby
Hirzu has joined #ruby
astrobunny has quit [Ping timeout: 252 seconds]
milesmat_ has joined #ruby
milesmatthias has quit [Ping timeout: 252 seconds]
cool has quit [Quit: Connection closed for inactivity]
Morkel has joined #ruby
Zai00 has joined #ruby
Hirzu has quit [Ping timeout: 246 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
riotjone_ has quit [Ping timeout: 264 seconds]
milesmat_ has quit [Ping timeout: 246 seconds]
nonks has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
DerisiveLogic has joined #ruby
bonhoeffer has joined #ruby
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Versality has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
nfk has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mark[oz] has joined #ruby
jimms has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
MatthewsFace has joined #ruby
anaeem1 has joined #ruby
mikecmpbll has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
Pharaoh2 has joined #ruby
Timgauthier has joined #ruby
relix has joined #ruby
freerobby has joined #ruby
RegulationD has joined #ruby
MatthewsFace has quit [Ping timeout: 246 seconds]
Timgauthier has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
anaeem1 has quit [Ping timeout: 272 seconds]
kies has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
sujde has joined #ruby
sujde has quit [Changing host]
sujde has joined #ruby
sujde has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
nonks has quit [Ping timeout: 265 seconds]
millerti has joined #ruby
rajeshchawla has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
izzol has joined #ruby
superspring has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
rajeshchawla has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
nonks has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblu_ has quit [Quit: Leaving...]
jerematic has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
superspring has joined #ruby
bruno- has joined #ruby
elfuego has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
jimms has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
jerematic has quit [Ping timeout: 264 seconds]
tlarevo has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
DEA7TH has joined #ruby
CatMartyn has joined #ruby
davedev24_ has joined #ruby
freerobby has quit [Quit: Leaving.]
AlexRussia has joined #ruby
mark[oz] has quit [Remote host closed the connection]
rkgudboy has joined #ruby
Takle has joined #ruby
DaniG2k has quit [Quit: leaving]
ponga has quit [Quit: Leaving...]
_64k has joined #ruby
hpoydar has joined #ruby
n008f4g_ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has quit [Ping timeout: 245 seconds]
astrobunny has joined #ruby
kobain has quit [Ping timeout: 265 seconds]
juanpablo_ has joined #ruby
maximski has joined #ruby
hpoydar has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
bruno- has joined #ruby
vmukhq has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 244 seconds]
astrobunny has quit [Ping timeout: 252 seconds]
sankaber has joined #ruby
sivsushruth has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
marr has joined #ruby
ghostpl_ has joined #ruby
jenrzzz has joined #ruby
naftilos76 has quit [Remote host closed the connection]
<shevy> Hanmac compare the % foreign nationalities between austria and germany
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
rkgudboy has quit [Remote host closed the connection]
Versality has quit [Quit: Lingo: www.lingoirc.com]
bonhoeffer has quit [Quit: bonhoeffer]
Versality has joined #ruby
jonr22 has joined #ruby
millerti has joined #ruby
sandelius has joined #ruby
jgt1 has quit [Ping timeout: 250 seconds]
unreal has quit [Ping timeout: 250 seconds]
jgt1 has joined #ruby
Versality has quit [Client Quit]
Rephiax has joined #ruby
CpuID has joined #ruby
unreal has joined #ruby
Notte has joined #ruby
millerti has quit [Ping timeout: 252 seconds]
stef204 has joined #ruby
Takle has joined #ruby
fenzil has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
agrinb has joined #ruby
davidhq has joined #ruby
robindunbarr has joined #ruby
Zai00 has quit [Quit: Zai00]
Takle has quit [Ping timeout: 255 seconds]
ismaelga has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
waxjar has quit [Ping timeout: 265 seconds]
porfa has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
Hirzu has joined #ruby
rajeshchawla has joined #ruby
anaeem1 has joined #ruby
havenwood has quit [Remote host closed the connection]
RegulationD has joined #ruby
anaeem1 has quit [Ping timeout: 252 seconds]
rajeshchawla has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
Takle has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ove_ has joined #ruby
<Ove_> with puma and such and the database connection pool. Is the pool size per worker or all of the workers/threads?
izzol has quit [Ping timeout: 256 seconds]
<jhass> I'd assume per process
jimms has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
CrappyBot has joined #ruby
sankaber has joined #ruby
milesmatthias has joined #ruby
sankaber has quit [Client Quit]
bonhoeffer has quit [Read error: Connection reset by peer]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
izzol has joined #ruby
bonhoeffer has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
bonhoeffer has quit [Client Quit]
milesmatthias has quit [Ping timeout: 244 seconds]
rkgudboy has joined #ruby
MatthewsFace has joined #ruby
agrinb has joined #ruby
it0a has joined #ruby
tier has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<apeiros> Ove_: pool sizes are always per worker
jimms has joined #ruby
<apeiros> Ove_: make sure your pool size is at least as as big as the number of threads
MatthewsFace has quit [Ping timeout: 252 seconds]
<Ove_> apeiros: Thank you
agrinb has quit [Ping timeout: 256 seconds]
SOLDIERz has joined #ruby
<apeiros> Ove_: btw., rails is #rubyonrails, not #ruby ;-)
<Ove_> Not a dev, didn't know where to ask. Will ask in #rubyonrails.
<Ove_> Thank you!
aiguu has quit [Ping timeout: 250 seconds]
hardlin3r has quit [Ping timeout: 246 seconds]
hgl has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
Hirzu has quit [Remote host closed the connection]
ismael has joined #ruby
ismael is now known as Guest4102
codecop has joined #ruby
hgl has joined #ruby
ismaelga has quit [Ping timeout: 272 seconds]
agrinb has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
<arup_r> Hi All
sivsushruth has quit [Ping timeout: 256 seconds]
jimms has quit [Remote host closed the connection]
rkgudboy has quit [Ping timeout: 245 seconds]
lolmaus has quit [Quit: Konversation terminated!]
lolmaus has joined #ruby
parduse has quit []
xcombelle has joined #ruby
AnxiousGarlic has joined #ruby
parduse has joined #ruby
yalue has quit [Quit: return 0;]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> All hi to arup_r
<hanmac> apeiros: yes, Forge is an emulator for that
juanpablo_ has joined #ruby
astrobunny has joined #ruby
<arup_r> shevy: all thanks to you...
AlphaTech has joined #ruby
User458764 has joined #ruby
<apeiros> hanmac: loved mtg
sivsushruth has joined #ruby
jerematic has joined #ruby
<hanmac> i like playing it with Forge so i dont need to buy the real stuff ;P
<arup_r> shevy: seems no body today use FTP.. any more.. that's why it is left there untouched -- http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/430078
<arup_r> :(
RegulationD has joined #ruby
Hirzu has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
jimms has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
rajeshchawla has joined #ruby
jerematic has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
elfuego has quit [Quit: elfuego]
RegulationD has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
Hirzu has quit [Ping timeout: 256 seconds]
ghostpl_ has joined #ruby
renier has joined #ruby
rajeshchawla has quit [Ping timeout: 264 seconds]
renier_ has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
Crazy_Atheist has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 252 seconds]
bentanweihao has joined #ruby
V_Ve has joined #ruby
hpoydar has joined #ruby
V_Ve has quit [Client Quit]
hanmac has quit [Remote host closed the connection]
<shevy> arup_r I use it! but there is not much you can do with it is there ... https://rubygems.org/gems/ftp_paradise one day I have to finish the ruby-gnome bindings for a graphical client
reinaldob has quit [Ping timeout: 252 seconds]
ChatStat has joined #ruby
<shevy> arup_r you can rescue those errors
<shevy> also try with different ftp hosts, some behave faulty
sankaber has joined #ruby
ChatStat is now known as ChanSert
_maes_ has joined #ruby
reinaldob has joined #ruby
xenokiller has joined #ruby
<ChanSert> I am ChanServ under dissicues made by: Maryoky
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 245 seconds]
thumpba has joined #ruby
Crazy_Atheist has joined #ruby
ChanSert has quit [Client Quit]
<jhass> what was that...
<arup_r> shevy: what should I do after rescuing it.. what will be the action... ? I even don't know what those number means ?
<shevy> depends on the error no? :)
hpoydar has quit [Ping timeout: 265 seconds]
<shevy> I am sure they are written down in some boring ftp protocol
<arup_r> jhass: someone probably trying to hijack ChanServ
tkuchiki has joined #ruby
<arup_r> shevy: no idea.. but you are right
<shevy> arup_r your code is not good, it is linear. it is simple and makes assumptions that will fail or break
<shevy> you need to include handling errors
<shevy> it might be best for you to write a wrapper over ruby ftp that you can then use
martinbmadsen has joined #ruby
<shevy> that's what I did with ftp_paradise, I got annoyed having to use the raw ruby ftp stuff
zotherstupidguy has joined #ruby
<shevy> I don't rescue all errors... one I do is Net::FTPPermError
<shevy> another one is Net::FTPConnectionError
<shevy> Net::ReadTimeout may also happen
<shevy> hahaha :D
<shevy> net connection errors kind of stink
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
<shevy> Net::ReadTimeout OpenURI::HTTPError Errno::ENETUNREACH Errno::ETIMEDOUT Errno::ECONNREFUSED
thumpba has quit [Client Quit]
milesmatthias has joined #ruby
<apeiros> Errno::ESHEVYCONFUSED :)
<shevy> there are literally like 20 different ways how a script can fail
<apeiros> only 20?
<shevy> I wrote a ruby script that runs in a loop, scanning a remote forum for login events
xenokiller has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
<shevy> my connection can break down; the remote website can be unavailable even when my connection is up; my filesystem may be corrupted or where my logfiles are stored may also not work. oddest error was a Zlib::Buffer error though
<shevy> Zlib::BufError
Pharaoh2 has joined #ruby
<zotherstupidguy> shevy what did u use?
milesmatthias has quit [Ping timeout: 246 seconds]
<apeiros> should have called that BuffError, for the intersect (BuffEr, Error)
nonks has quit [Ping timeout: 272 seconds]
<jhass> apeiros: nope, that's no exception. Errno::ESHEVYNOTCONFUSED is it
<shevy> use? ruby... and open-uri
riotjones has quit [Ping timeout: 255 seconds]
<apeiros> jhass: hmmm
MatthewsFace has joined #ruby
<zotherstupidguy> nokogiri?
<apeiros> jhass: maybe somebody abused exceptions for flow control
<shevy> nah, I am XML free since a decade
<jhass> probably
<jhass> don't we all do that sometimes
martinbmadsen has quit [Ping timeout: 264 seconds]
<zotherstupidguy> i once did a similar fun project for the german department of higher education, something about listing all their courses using webscraping patterns, as they didnt have an api
hanmac has joined #ruby
<shevy> how many different errors did you have to handle?
<zotherstupidguy> actually once i got the patterns right, none.
<zotherstupidguy> just figure out the paths and DOM, and iterate
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> zotherstupidguy: reliable government pages? did I end up in a parallel universe?
<zotherstupidguy> i think i had to do a sleep somehwhere in there as the server might think i am attacking it
palms has joined #ruby
<shevy> hehehe
MatthewsFace has quit [Ping timeout: 246 seconds]
rkgudboy has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy> i called it daadde exposed :)
jwinder has joined #ruby
User458764 has joined #ruby
bentanweihao has quit [Remote host closed the connection]
nii236 has joined #ruby
_mak has joined #ruby
bentanweihao has joined #ruby
SHyx0rmZ has quit [Remote host closed the connection]
<_mak> I'm trying to parse a CSV file, and on the first line I have something like 123,"abc'def". I get the error 'Illegal quoting in line 1. (CSV::MalformedCSVError)'. I tried a lot of things I found online, but somehow I can't figure how to solve this.
<_mak> I don't want to replace the ' char..
agrinb has joined #ruby
<_mak> any ideas on what I could try?
robindunbarr has quit [Ping timeout: 250 seconds]
Pharaoh2 has joined #ruby
<zotherstupidguy> _mak, gist?
<zotherstupidguy> _mak obviously you want to escape it
SHyx0rmZ has joined #ruby
scripore has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
<apeiros> _mak: that's not illegal and CSV parses it just fine
<apeiros> >> require 'csv'; CSV.parse %{123,"abc'def"}
<eval-in_> apeiros => [["123", "abc'def"]] (https://eval.in/302794)
<apeiros> _mak: make sure you present your problem accurately.
<apeiros> _mak: looking at your gist. your problem are the ="" fields
<apeiros> that's not legal csv
<zotherstupidguy> yup
<_mak> apeiros: ahhh, sorry about that then!
<_mak> I will try to replace them
enebo has joined #ruby
bentanweihao has quit [Remote host closed the connection]
dh64 has quit [Quit: Konversation terminated!]
jcromartie has joined #ruby
Rephiax__ has joined #ruby
bentanweihao has joined #ruby
Rephiax__ has quit [Client Quit]
Zai00 has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bentanweihao has quit [Remote host closed the connection]
Rephiax has quit [Ping timeout: 252 seconds]
Hirzu has joined #ruby
Rephiax__ has joined #ruby
jcromartie has quit [Client Quit]
izzol has quit [Ping timeout: 250 seconds]
bentanweihao has joined #ruby
fenzil has joined #ruby
anaeem1 has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
Hirzu has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
reinaldob has quit []
reinaldob has joined #ruby
bentanweihao has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 264 seconds]
robindunbarr has joined #ruby
nii236 has quit [Ping timeout: 272 seconds]
superspring has quit [Ping timeout: 256 seconds]
sujde has quit [Ping timeout: 246 seconds]
<_mak> apeiros: what am I missing now: https://eval.in/302799
mikepack has joined #ruby
<_mak> is ,, valid csv?
mikepack has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
<apeiros> _mak: you still have those ="" fields
<apeiros> ,="1891686003",="9781891686009",
<apeiros> not valid
<_mak> ahh I though you meant ""
<_mak> ok, I'll replace it, thanks again
<apeiros> a field must either start & end with a quote, or must not contain any quote at all
Sawbones has joined #ruby
<zotherstupidguy> ' instead of "
serivich has quit [Ping timeout: 272 seconds]
robindunbarr has quit [Quit: robindunbarr]
mikepack has joined #ruby
superspring has joined #ruby
<apeiros> well, ="123" in csv field would be "=""123"""
<apeiros> "" is the escape sequence for a quote
rajeshchawla has joined #ruby
<apeiros> >> require 'csv'; CSV.parse 'a,"=""123""",b'
<eval-in_> apeiros => [["a", "=\"123\"", "b"]] (https://eval.in/302801)
stef204 has joined #ruby
<zotherstupidguy> i c
<zotherstupidguy> good to know :)
<zotherstupidguy> thanks apeiros
zorak8 has joined #ruby
palms has quit [Ping timeout: 244 seconds]
<apeiros> yw
Nieralyte has quit [Quit: Nieralyte]
rajeshchawla has quit [Ping timeout: 252 seconds]
stef204 has quit [Client Quit]
Notte has quit [Remote host closed the connection]
robindunbarr has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
<bradland> ="9781891686009" smells like excel (or some kind of spreadsheet forumla)
<bradland> yuck
<apeiros> thought so too
<apeiros> but it's a bit an odd formula… given that there's not actually any calculation :)
<bradland> looks like a hack to store a number as a string
dseitz has joined #ruby
n80 has joined #ruby
<apeiros> that'd be "'123" in excel, though
<bradland> that's the blessed way to do it
astrobunny has joined #ruby
<bradland> but this is excel. that file probably came from the 7th bowel of workplace hell.
<apeiros> lol
<apeiros> yeah. who knows.
<apeiros> *sob*
* apeiros is having a "Damn it Jim, I'm a coder not a designer" moment
rkgudboy has quit [Ping timeout: 246 seconds]
<bradland> what do you mean the default font isn't good enough!? i can read it fine.
<atomi>
izzol has joined #ruby
caveat- has joined #ruby
astrobunny has quit [Ping timeout: 252 seconds]
robindunbarr has quit [Quit: robindunbarr]
Jiyuhen has quit [Remote host closed the connection]
Takle has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
nonks has joined #ruby
brandly has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerematic has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
hpoydar has joined #ruby
nonks has quit [Ping timeout: 252 seconds]
_blizzy_ has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
reinaldob has joined #ruby
thinkswan has quit [Remote host closed the connection]
User458764 has joined #ruby
jwinder has quit [Remote host closed the connection]
Sawbones has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
thinkswan has joined #ruby
Jiyuhen has joined #ruby
mesamoo has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
brandly has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
centrx has joined #ruby
DerisiveLogic has joined #ruby
epistrephein has joined #ruby
Jiyuhen has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
hpoydar has quit [Remote host closed the connection]
waxjar has joined #ruby
mikepack has quit [Remote host closed the connection]
havenwood has joined #ruby
bigmac has joined #ruby
thinkswan has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 264 seconds]
fenzil has quit [Quit: Leaving]
reinaldob has quit [Remote host closed the connection]
fenzil has joined #ruby
juanpablo_ has joined #ruby
n80 has quit [Quit: n80]
juanpablo_ has quit [Ping timeout: 255 seconds]
stef204 has joined #ruby
Guest48326 has quit [Ping timeout: 252 seconds]
Iniesta8 has joined #ruby
xpoqp has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
jonr22 has joined #ruby
Iniesta8 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
<Crazy_Atheist> hmm I want to be able to put a list of file names, but only their name, not their extensions, I know I need to be able to get them, which would be Dir.glob("*.extensioniwanttofind")
nii236 has joined #ruby
RegulationD has joined #ruby
kirun has joined #ruby
_KY_ has joined #ruby
Iniesta8 has quit [Client Quit]
<_KY_> the ruby interpreter enters level 1 and stops printing results... how do I get out of that?
Megtastique has joined #ruby
thinkswan has joined #ruby
scripore has quit [Quit: Leaving]
<apeiros> Crazy_Atheist:
<apeiros> >> File.basename("foo/bar.txt", ".*")
<eval-in_> apeiros => "bar" (https://eval.in/302807)
<apeiros> _KY_: what do you mean by "ruby interpreter enters level 1"?
<_KY_> irb(main):006:1>
<_KY_> I don't know what is that 006:1
<apeiros> _KY_: that's irb. and the :1 means you're in a nested expression
<_KY_> but it stops printing results
<_KY_> not even 1+1
<_KY_> oh
<_KY_> how do I get out of there?
<apeiros> and you get out of it by either closing it or aborting with ctrl-c
willharrison has joined #ruby
<_KY_> thanks
Sawbones has joined #ruby
Rollabunna has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
xcombelle has quit [Remote host closed the connection]
<apeiros> _KY_: closing it -> the expression, of course, not irb ;-)
RegulationD has joined #ruby
<_KY_> yes, that works, thanks
tier has quit [Remote host closed the connection]
nii236 has quit [Ping timeout: 264 seconds]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
izzol has quit [Quit: leaving]
reinaldob has joined #ruby
Sawbones has quit [Remote host closed the connection]
epistrephein has quit []
RegulationD has quit [Ping timeout: 244 seconds]
rajeshchawla has joined #ruby
pwh has quit []
blackmesa has joined #ruby
RegulationD has joined #ruby
Fluent has quit [Quit: 2 Fluent]
tkuchiki has quit [Ping timeout: 250 seconds]
Sawbones has joined #ruby
Fluent has joined #ruby
milesmatthias has joined #ruby
rajeshchawla has quit [Ping timeout: 244 seconds]
riotjones has joined #ruby
bigmac has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 252 seconds]
bigmac has joined #ruby
martinbmadsen has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
milesmatthias has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
<shevy> anyone has an example of where -> looks pretty?
reinaldob has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 264 seconds]
<apeiros> shevy: methods which accept multiple lambdas
<apeiros> e.g. I have an mbench method: mbench iterations, label: -> {code}, label2: -> {code2}, …
MatthewsFace has quit [Ping timeout: 265 seconds]
<shevy> hmm interesting
sevvie has joined #ruby
thinkswan has quit [Remote host closed the connection]
<jhass> shevy: do you have an example of where lambda looks pretty while -> doesn't?
danguita has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
<shevy> pretty much everywhere
<bradland> stab ALL the lambdas!
<jhass> see, it's pure preference
agrinb has joined #ruby
<shevy> lambda { "hello" }
<bradland> captain Ahab approves the stabby lambda
mengu has joined #ruby
mengu has joined #ruby
<shevy> damn
<shevy> I can not use + on procs :(
<shevy> lambda { "hello" } + lambda { " world" }
<shevy> -> { "hello" } + -> { " world" }
<shevy> look jhass
nonks has joined #ruby
<jhass> what result do you expect?
<apeiros> and preference is largely governed by accustomization
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> a merged lambda!
<jhass> so -> { a.call + b.call } ?
blackmesa has joined #ruby
<shevy> yeah!
amclain has joined #ruby
<bradland> that's not merged :P
<bradland> that's adding the return values
<jhass> yup but easy to do
agrinb_ has joined #ruby
<shevy> havenwood always has unusual code
<shevy> Proc.compose
<shevy> he uses ->
<havenwood> shevy: stabby stab stab
<apeiros> I'd expect Proc#+ to work like this: ->{ :a } + ->{ :b } == ->{ ->{ :a }; -> { :b } }
<shevy> that stabs my eyes
<apeiros> and Proc#* like this: ->(x){ :a } * ->{ :b } == ->{ ->(x){ :a }.(-> { :b }) }
<shevy> that's a stab in a stab
<shevy> ->{ ->{ :a }; -> { :b } }
<shevy> oh wait
<shevy> ->{ ->{ :a }; ->{ :b } }
<shevy> now it's consistent
<jhass> apeiros: plus .call in the first one, right?
<arup_r> shevy: what did you put inside those curly braces ?
<shevy> arup_r I just edited apeiros' code
<apeiros> jhass: oh, right
<arup_r> ok
<apeiros> jhass: second one too
<apeiros> fixing:
<apeiros> I'd expect Proc#+ to work like this: ->{ :a } + ->{ :b } == ->{ ->{ :a }.(); ->{ :b }.() }
agrinb has quit [Ping timeout: 256 seconds]
<apeiros> and Proc#* like this: ->(x){ :a } * ->{ :b } == ->{ ->(x){ :a }.(->{ :b }.()) }
<jhass> aah, a .()er
bigmac has quit [Ping timeout: 245 seconds]
<jhass> I like the explicit .call somehow better
<arup_r> yes
<apeiros> just because I'm lazy. in code I always use .call :)
<arup_r> I like []
nonks has quit [Ping timeout: 246 seconds]
<arup_r> >> Proc.new.method(:())
<eval-in_> arup_r => /tmp/execpad-a25430d07222/source-a25430d07222:2: syntax error, unexpected '(', expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END ... (https://eval.in/302814)
<arup_r> wut ?
<jhass> what about -> { [a.call, b.call] } ?
<arup_r> >> Proc.new.method(:[])
<eval-in_> arup_r => tried to create Proc object without a block (ArgumentError) ... (https://eval.in/302815)
Guest4102 has quit [Ping timeout: 246 seconds]
<arup_r> ok.. got it
agrinb_ has quit [Ping timeout: 265 seconds]
<jhass> arup_r: .() is a syntax rewrite to .call, like a.b = c is to a.b=(c)
Fluent has quit [Quit: 2 Fluent]
Soda has joined #ruby
<arup_r> Humm.. I think Proc#[] is same as .cal
<arup_r> .call
<apeiros> and Proc#| like this: ->(x){ :a } | ->{ :b } == ->(*args){ ->{ :b }.call(->(x){ :a }.call(*args))) }
<jhass> yes, just an aliased method in that case
<apeiros> proc pipes!
<arup_r> yes
<apeiros> proc.() == proc.call() == proc[], yes
<jhass> >> class MyProc; def call; :a; end; end; MyProc.new.()
<eval-in_> jhass => :a (https://eval.in/302822)
<jhass> >> class MyProc; def call; :a; end; end; MyProc.new[]
<eval-in_> jhass => undefined method `[]' for #<MyProc:0x411e3b88> (NoMethodError) ... (https://eval.in/302823)
<jhass> ^ diff between syntax rewrite and alias
<arup_r> That's not fare!
<apeiros> fair?
<arup_r> yes.. :p
bigmac has joined #ruby
serivich has joined #ruby
<arup_r> so.. why Ruby made such crazy alias then ?
<shevy> hmm
<arup_r> .() is alias of .call but not []
elfuego has joined #ruby
<shevy> when I have like 5000 files in a directory, I think Dir[] is a bit slow; is there a way to use C code to speed that up? "ls" in bash is so much faster than what I can come up with in ruby so far
<arup_r> shevy: what about ::glob ?
<jhass> Dir.entries would be closer to ls
ismaelga has joined #ruby
<jhass> Dir::[] is a glob
kyrylo_ is now known as kyrylo
<arup_r> oh.. I think they have differences
reinaldob has joined #ruby
<arup_r> jhass:
<jhass> and if you need the metadata there's an efficient syscall if you're lucky to have the right filesystem
Takle has quit [Remote host closed the connection]
<arup_r> what's the syscall ?
<apeiros> Dir[] is an alias of Dir.glob. the only difference is in syntax - [] methods can't take a block.
<havenwood> shevy: Not an answer to what you're asking, but see the fun stuff Ruby stdlib's Shell can do: https://gist.github.com/havenwood/742ed2d922622a7bc1f9
<shevy> huh
<shevy> I don't think I knew ruby had a require 'shell'
<shevy> shell(#<Th:0xb7f6199c>): warn: override definition of Shell::Filter#mkdir.
<shevy> shell(#<Th:0xb7f6199c>): warn: alias Shell#mkdir to Shell::Filter#mkdir_org.
<shevy> hmm
<shevy> fatal: No live threads left. Deadlock?
Channel6 has joined #ruby
<shevy> your code scares me havenwood
<arup_r> apeiros: with Dir::[] we can't pass flags .. right ?
<arup_r> but with ::glob we can
<apeiros> arup_r: try it
zorak8 has quit [Ping timeout: 244 seconds]
<havenwood> shevy: I want pancakes! (Also unrelated.) But for some fun try: Shell.install_system_commands
<arup_r> ok.. I was wrong
fuzzyhorns2 has joined #ruby
<apeiros> oh
<apeiros> no, you're actually right arup_r
<apeiros> I was wrong
<apeiros> Dir[] is not an alias of Dir.glob
<arup_r> :D
rubytor has joined #ruby
<apeiros> from the docs: Dir[ string [, string ...] ] -> array - Equivalent to calling Dir.glob([string,...],0).
* arup_r got confused by one Rubyist
<arup_r> what's the end `0` ?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
_64k has quit [Ping timeout: 272 seconds]
<apeiros> that's your "no flags"
<arup_r> ok.. yes yes..
<jhass> arup_r: readdir
<arup_r> why ?
enebo has quit [Quit: enebo]
bonhoeffer has joined #ruby
mikepack has joined #ruby
bonhoeffer has quit [Client Quit]
<arup_r> I got it....... :D jhass :
hpoydar has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
<jhass> it's a funny one
mikepack has quit [Remote host closed the connection]
<jhass> returns you that dandy struct
<jhass> of which you can use only one field reliably
mikepack has joined #ruby
<jhass> and the other fields are populated or not depending on what FS you happen to run
bonhoeffer has joined #ruby
bigmac has quit [Ping timeout: 256 seconds]
epistrephein has joined #ruby
Sawbones has quit [Remote host closed the connection]
DLSteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
hpoydar has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
bigmac has joined #ruby
juanpablo_ has joined #ruby
thinkswan has joined #ruby
sevenseacat has quit [Remote host closed the connection]
noobda has joined #ruby
brandly has joined #ruby
<noobda> hey all. So I come from C++. What should I select for my web app? Ruby or Python? Which would come more naturally to me?
brandly has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
<jhass> I think it makes no difference
Jiyuhen has joined #ruby
<jhass> pick what you find more interesting
Limix has joined #ruby
User458764 has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
enebo has joined #ruby
stef204 has joined #ruby
icebourg has joined #ruby
<noobda> jhass: Okay well which has a more thriving community as of now?
chipotle has joined #ruby
<jhass> python community seems a little bit bigger, though they're kinda divided between python 2 and 3 still
brandly has joined #ruby
<jhass> ruby community for web stuff seems bigger
<jhass> a lot more options here from what I can gather
<apeiros> was just going to say the same
<noobda> Well I only care about web stuff :)
bonhoeffer has quit [Quit: bonhoeffer]
<noobda> I hope it's not dying because of Node or something like that?
<apeiros> "it"? python and ruby? :)
<jhass> that's just brogrammers trying to be important
<apeiros> or does in that scenario only ruby die from node?
<jhass> ruby won't die in the next 10 years
<jhass> neither will python
<jhass> and neither will node
<noobda> I was told that Node mabe the future
<jhass> or java
<jhass> or anything
<noobda> ohhh...
<apeiros> I think cobol is the future
<noobda> so development in Ruby is still being done right? Not just legacy maintenance stuff?
<jhass> past, present, future. Cobol for life
<apeiros> noobda: ruby is thriving.
<apeiros> there's a healthy competition of web frameworks
<apeiros> and rails is still the largest
<apeiros> if you're after community size, you should go php, though
brandly has quit [Remote host closed the connection]
<apeiros> (mind you: I do NOT recommend using php - php is cancer)
bonhoeffer has joined #ruby
<noobda> yeah apeiros so I've been told
<jhass> I wonder if we or python have outnumbered perl by now though
<apeiros> I think that's the one thing ruby & python people mostly agree on
<rwz> is there really a competition?
<rwz> seems to me ruby web world is basically rails and some sinatra here and there
<rwz> what other web frameworks being used?
<apeiros> rwz: there's a good dozen well maintained web frameworks
<rwz> like?
<noobda> The thing is I live in a country like India. Where startups are not really encouraged. So I just want to make sure I have something to fall back on, a reliable job in the market, in case my idea burns out.
<havenwood> rwz: Roda: http://roda.jeremyevans.net/
<apeiros> d'oh, too slow
<apeiros> largest by far is certainly rails, with runner up being sinatra. but as said, that doesn't make the others unmaintained.
<jhass> or unusable
<apeiros> rwz: the ones I've heard of lately are http://voltframework.com and https://github.com/jeremyevans/roda
<havenwood> rwz: Examples of Hello World apps in various frameworks: https://github.com/luislavena/bench-micro#readme
<jhass> noobda: maybe learn both, what you will end up is being able to adapt to whatever is necessary in a given situation
bonhoeffer has quit [Read error: Connection reset by peer]
<jhass> apeiros: they said rails is too much magic. And then came volt
<rwz> I've been doing ruby rails development for about 7 years now and I almost never encounter anything besides rails/sinatra
<apeiros> jhass: hehe
<rwz> which meakes me kind of sad
<apeiros> jhass: I'm experiencing that myself now. it's difficult to decide between boilerplate and magic
<rwz> *makes
<nickjj> i'm a fan of reasonable magic, i don't want to write heaps of boilerplate
<jhass> apeiros: I just watched their demo video. Which was an entire climax of "wtf is happening there"
<apeiros> at the moment I veer towards magic. given that anything you don't understand is magic. but I try to keep the code discoverable, so you can quickly understand the magic.
_KY_ has quit [Ping timeout: 246 seconds]
Rephiax has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
rajeshchawla has joined #ruby
leyluj has quit [Quit: Connection closed for inactivity]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rephiax__ has quit [Ping timeout: 264 seconds]
xcombelle has joined #ruby
mahmoudmahfouz has joined #ruby
mahmoudmahfouz has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
<a5i> Where is the directory of ruby verions?
starless has joined #ruby
milesmatthias has joined #ruby
<a5i> versions*
rajeshchawla has quit [Ping timeout: 244 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
mikepack has joined #ruby
ronin has joined #ruby
<ronin> im creating a todo list tool, would it be better to have some sort of object to include all sorts of tasks or just make a list construct where to put all the task objects?
<jhass> a5i: what do you mean?
ndrei has joined #ruby
banister has joined #ruby
<jhass> ronin: a collection object has the nice benefit of having a good place for operations that act on all items, see composite pattern. Whether your app needs that is on you to decide
sevvie has joined #ruby
reinaldob has quit [Remote host closed the connection]
milesmatthias has quit [Ping timeout: 265 seconds]
<ronin> jhass, good point
tejasmanohar has joined #ruby
<a5i> jhass: I need to use a specific ruby version for passenger in nginx
<a5i> but Idk where exactly the directory for ruby 2.2.0 is
<a5i> I installed it vuia rvm
<tejasmanohar> i run `bundle install`. everytime, i restart my shell i lose my "bundle" of gems i guess, like i have to run it every time...
<jhass> a5i: rvm info
<apeiros> a5i: passenger tells you the precise path
reinaldob has joined #ruby
<apeiros> and you should use that path
<tejasmanohar> is this supposed to happen? on a new mac, not sure if im just not remembering how it worked before or what
<a5i> apeiros: where?
<a5i> does it tell
<apeiros> a5i: when you install it
<tejasmanohar> btw, ruby is installed via rvm at v2.2.1
<apeiros> you use something like passenger-install-nginx (installed by the passenger gem) to install passenger in nginx. at the end it tells you the config, including the precise path.
AlexRussia has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
<a5i> How can I find out again
<apeiros> don't know. run the installation again?
ndrei has quit [Remote host closed the connection]
<apeiros> tejasmanohar: doesn't sound like it should happen, no
mengu has quit [Ping timeout: 250 seconds]
kaspernj has joined #ruby
SouL has joined #ruby
eladmeidar has joined #ruby
<a5i> apeiros, jhass: Message from application: You've set the `PassengerRuby` (Apache) or `passenger_ruby` (Nginx) option to '/usr/local/rvm/rubies/ruby-2.2.0/bin/ruby'. However, because you are using RVM, this is not allowed: the option must point to an RVM wrapper script, not a raw Ruby binary. This is because RVM is implemented through various environment
<a5i> variables, which are set through the wrapper script.
<a5i> Need to find the wrapper
ndrei has joined #ruby
_ixti_ has joined #ruby
<apeiros> a5i: well, it's still like I told you.
Sawbones has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 252 seconds]
<a5i> hmm
agrinb has quit [Ping timeout: 256 seconds]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
fenzil has quit [Read error: Connection reset by peer]
<atmosx> a5i: havenwood's link
nonks has joined #ruby
ixti has quit [Ping timeout: 265 seconds]
<a5i> But I already have passenger and nginx set-up
<a5i> set up*
sevvie has joined #ruby
<atmosx> a5i: passenger is killing u
claptor has quit [Ping timeout: 255 seconds]
claptor has joined #ruby
<a5i> both are
<atmosx> nginx is fairly straight frward
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
<a5i> I cant run that command
<atmosx> I have no expirience with passenger though but should be making things easier
fenzil has joined #ruby
<a5i> I just wanna chnage ruby versions :(
AlexRussia has joined #ruby
sinkensabe has joined #ruby
Sawbones has joined #ruby
<apeiros> a5i: have you tried to run the install-passenger-nginx-module again?
<a5i> apeiros: I didnt set up my nginx + passenger that I have right now with it
<apeiros> what?
tejasmanohar has quit [Ping timeout: 246 seconds]
serivich has quit [Ping timeout: 272 seconds]
<a5i> I set up nginx and passenger without that command
mikepack has quit [Ping timeout: 244 seconds]
<atmosx> a5i: well you need to set it up using that command, any other way will lead to some ugly variables hacking
<a5i> passenger_ruby is what I need to use to switch ruby versions
<a5i> :SSS
<apeiros> a5i: *sob*, why do you make me pull the info out of your nose?
<havenwood> a5i: The link I gave you points to the Passenger docs where they tell you how to set it up with RVM.
<havenwood> a5i: passenger-config --ruby-command
<atmosx> a5i: are you the system administrator of the server?
<apeiros> a5i: then *how* did you install it?
nonks has quit [Ping timeout: 256 seconds]
<a5i> whoa...
<atmosx> lol
kaspernj has quit [Quit: Leaving]
kaspernj has joined #ruby
<a5i> from the top
<a5i> atmosx: yes
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<atmosx> a5i: then either install passenger correctly or don't use it all (which is better IMHO)
<atmosx> a5i: you run debian?
<a5i> Yes
MatthewsFace has joined #ruby
<a5i> and passenger is installed correctly
<atmosx> a5i: you can use 'thin' server to launch your apps at boot.
iamjarvo has joined #ruby
<atmosx> well if it doesn't work then something must be wrong right? :-)
<a5i> I liked Passenger better tbh
<apeiros> a5i: well, I suggest you replace that whole "Step Five — Install Passenger and Nginx" with passenger-install-nginx-module
<apeiros> no idea why they recommend the other
<a5i> sigh :(
<a5i> will it overwrite what I ahve now?
kobain has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
aiguu has joined #ruby
<a5i> have *
<havenwood> apeiros: I guess that's probably to avoid having to rebuild the module every time the gem version is bumped.
iamjarvo has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<havenwood> The manual aspect of rebuilding and updating a conf file, at least.
babykosh has joined #ruby
<a5i> I'm so damn confused now D:
<atmosx> a5i: deploying and programming are two different things
babykosh has quit [Client Quit]
<atmosx> you might excell at one of them and be happy abut it
Sawbones has quit [Remote host closed the connection]
basiclaser has quit [Quit: Connection closed for inactivity]
The_Phoenix has joined #ruby
<a5i> What does that have todo with anything right now?
MatthewsFace has quit [Ping timeout: 252 seconds]
hardlin3r has joined #ruby
icebourg has quit []
bigmac has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
jerematic has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
jerematic has joined #ruby
jerematic has quit [Remote host closed the connection]
epistrephein has quit []
<a5i> yeah this isnt going to work if I already have everything set-up
fenzil has quit [Quit: Leaving]
iamjarvo_ has joined #ruby
Sawbones has joined #ruby
dfinninger has joined #ruby
Rephiax has quit []
superspring has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Ping timeout: 256 seconds]
jasabella has joined #ruby
<jasabella> hi there :) is there a good website or book for people who have some experience with programming who want to get started with RoR?
jottr has joined #ruby
steve-la_ has joined #ruby
nii236 has joined #ruby
superspring has joined #ruby
gregf has joined #ruby
<jhass> jasabella: #RubyOnRails, rails 4 in action and railstutorial are generally recommended. if you have seen a web framework before, IMO guides.rubyonrails.org will get you up just fine too
nerium has quit [Quit: nerium]
sevvie has quit [Ping timeout: 272 seconds]
martinbmadsen has joined #ruby
sevvie has joined #ruby
<jasabella> thanks
nii236 has quit [Ping timeout: 272 seconds]
plashchynski has joined #ruby
j_mcnally has joined #ruby
Sawbones has quit [Remote host closed the connection]
Musashi007 has joined #ruby
martinbmadsen has quit [Ping timeout: 246 seconds]
lemur has joined #ruby
zorak8 has joined #ruby
RegulationD has joined #ruby
mjuszczak has joined #ruby
<mjuszczak> I have this which is working fine: blah = var.split('-').last
<mjuszczak> but if I wanted to prepend or append addiitonal text to the value of blah, what's the best way to do that? Perhaps I want it to be prefixed by "foo"
bigmac has joined #ruby
<jhass> you could do "foo#{var.split('-').last}", though I think I'd do two lines
jgabrielygalan has joined #ruby
karmatr0n has joined #ruby
<a5i> How can I install ruby2.2 on debian ?
<apeiros> rvm install ruby-2.2.1
RegulationD has quit [Ping timeout: 244 seconds]
<jhass> pacstrap -D ruby base ruby
<jhass> j/k
RegulationD has joined #ruby
bigmac has quit [Ping timeout: 245 seconds]
eladmeidar has quit [Read error: Connection reset by peer]
zzing has joined #ruby
<a5i> Where would the wrapper be for ruby 2.2.1 then?
justin_pdx has quit [Quit: justin_pdx]
palms has joined #ruby
bigmac has joined #ruby
Takle has joined #ruby
<apeiros> "the wrapper"
<jhass> find / -name ruby
<apeiros> there's no "the wrapper". you can generate any amount of wrappers
<apeiros> also #rvm might be more help for that
RegulationD has quit [Ping timeout: 255 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> a5i wget ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.1.tar.xz; tar xvfJ ruby*xz*; cd *ruby*; ./configure --prefix=/usr; make; make install \o/
<jhass> shevy: please!
<shevy> jhass look at your find / -name ruby stuff man!
RegulationD has joined #ruby
<_mak> why this is false: "a" == ("c" || "b" || "a")
<jhass> _mak: because "a" == "c" is false
<ronin> because eq is for campring strings
<apeiros> and because "c" || "b" -> "c"
<shevy> camping?
<apeiros> >> "c" || "b"
<eval-in_> apeiros => "c" (https://eval.in/302833)
jwinder has joined #ruby
palms has quit [Ping timeout: 252 seconds]
<a5i> rly shevy ?
<_mak> how can I check then if something is equal this or that?
<shevy> a5i sure
<a5i> mk
<apeiros> _mak: compare to both
<apeiros> a == b || a == c
<jhass> _mak: something == this || something == that
<apeiros> you can let a method do this: [b,c].include?(a) e.g.
<shevy> a5i on my system I use some more options to configure though: --enable-load-relative --enable-pthread --disable-shared --enable-install-doc --with-static-linked-ext
<jhass> [this, that].include? something # don't do me <= 3 elements
<shevy> though, --disable-shared is ignored I think
<a5i> i see
<shevy> I still want a static ruby though :(
<_mak> I have a list of 30 items, I want to exclude all items that are not "a" or "b"
<jhass> _mak: Array#-
<shevy> that's a lot of items
sinkensabe has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 252 seconds]
sinkensabe has joined #ruby
<jhass> er, wait #& no, that uniques
<jhass> plain .reject then
patrick99e99 has joined #ruby
<_mak> ok, I'll check it, thanks
<shevy> yeah sounds like a use case for a .reject filter
<shevy> sorting peas
sinkensabe has quit [Remote host closed the connection]
<shevy> take the green ones but not the yellow ones
_64k has joined #ruby
<shevy> or Matrix I ... take the blue pill... not the red pill
RegulationD has quit [Ping timeout: 256 seconds]
<_mak> I was trying to use delete_if but it is not working
<_mak> [1,2,3].delete_if {|v| v != (1 || 2)}
jottr_ has joined #ruby
agrinb has joined #ruby
<apeiros> _mak: because v != (1 || 2) doesn't work for the same reason as your code above
bigmac has quit [Ping timeout: 264 seconds]
<apeiros> _mak: tell me, what's the result of (1 || 2)?
<jhass> _mak: also why do you want that?
<shevy> >> [1,2,3].delete_if {|v| [1,2].include? v }
<eval-in_> shevy => [3] (https://eval.in/302835)
<jhass> you end up with [], [1], [2] or [1,2]?
<_mak> apeiros: 1 :/
<jhass> !goal
<apeiros> _mak: correct. and (1 || 2) being part of a larger expression does not change that fact.
<_mak> jhass: I want to end up with only 1 and 2
<apeiros> !xy
<shevy> >> [1,2,3].delete_if {|v| ! [1,2].include? v }
<eval-in_> shevy => [1, 2] (https://eval.in/302836)
<apeiros> though, them understanding why `a == (b || c)` does not work as they expect is valuable too IMO
<shevy> jhass: can you add a link to goal to the helpa bot?
jottr has quit [Ping timeout: 272 seconds]
<jhass> I have no link
<_mak> shevy: thanks!
<_mak> thanks all! :)
<jhass> my factoid would be "Describe your goal, not the solution you imagine."
<shevy> add that!
<shevy> I want to see how it works
<jhass> _mak: this still seems like an odd operation, what do you need it for?
<jhass> !add goal Describe your goal, not the solution you imagine.
<helpa> The !goal command is now available.
astrobunny has joined #ruby
<_mak> jhass: leave only some items on the result of an array
<jhass> _mak: because?
<_mak> jhass: because the array comes from a json with items I don't want
<_mak> and I can't filter them while fetching the json
<jhass> what do you do with the items you want?
agrinb has quit [Ping timeout: 256 seconds]
<_mak> I need to fetch everything and remove what does not match
<jhass> what do you do with the stuff that does match?
<shevy> cool
<shevy> !cats
<shevy> !add cats Cats are the rulers of planet earth.
zorak8 has quit [Ping timeout: 264 seconds]
<shevy> hey
<_mak> jhass: anything. does it matter?
<jhass> yes
adamski2600 has joined #ruby
<shevy> yeah
<shevy> counter it _mak
<shevy> go ask jhass why :)
patrick99e99 has quit [Ping timeout: 250 seconds]
juanpablo_ has joined #ruby
<_mak> jhass: I print them on stdout
jgt1 has quit [Ping timeout: 244 seconds]
<jhass> so why not puts "x" if items.include? "x"?
steve-la_ has quit [Quit: Lingo: www.lingoirc.com]
<_mak> jhass: ok, I do something more complicated that may take more than one line
patrick99e99 has joined #ruby
<jhass> kay
<jhass> just wanted to offer you something potentially more elegant
<jhass> but I see you're not interested
astrobunny has quit [Ping timeout: 255 seconds]
<_mak> jhass: I think shevy's solution is good enough, don't you?
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> from the examples you've chosen I have a strong suspicion that there's something better
zorak8 has joined #ruby
<shevy> tell him how!
<jhass> but I can't tell without knowing your actual goal
Joufflu has joined #ruby
<_mak> line 6¨0
<_mak> 60
<jhass> gist tip: use foo.rb as filename for syntax highlighting
juanpablo_ has quit [Ping timeout: 245 seconds]
<_mak> ah, tks :)
<jhass> minor aside: ruby community standar is snake_case for variable names
<jhass> now let me try to understand what you're doing :)
nonks has joined #ruby
apxm has quit [Quit: Textual IRC Client: www.textualapp.com]
maximski has quit []
<_mak> jhass: line 60 is missing e["Extension"]
noobda has quit [Quit: Page closed]
Apocalypse has joined #ruby
Apocalypse has joined #ruby
<jhass> kay, stick around, I'm bored, I think I'll gonna refactor it while coming up with something
mostlybadfly has joined #ruby
ftj has joined #ruby
<_mak> hahah
* _mak feels shy...
<_mak> I'm a terrible coder...
<apeiros> _mak: perfect opportunity to learn something then
<apeiros> jhass is quite good
<_mak> indeed :)
bricker has joined #ruby
tier has joined #ruby
<apeiros> and nobody is gonna scold you for not being the superduper perfect coder.
<ddv> i'm a genius developer
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ddv> </sarcasm>
nonks has quit [Ping timeout: 244 seconds]
Rephiax has joined #ruby
Limix has quit [Quit: Limix]
<ftj> Does .select always return an array? I'm playing around with it, and it looks like, when the matching set consists of only one object, it just returns the object
hpoydar has joined #ruby
<apeiros> ftj: no
_64k has quit [Ping timeout: 256 seconds]
<apeiros> as with all methods, it depends on the object you call it on
jottr_ has quit [Quit: WeeChat 1.1.1]
<apeiros> Array#select and Enumerable#select always return an Array.
<ftj> I'm calling it on an array
towski_ has joined #ruby
<apeiros> >> [1,3,5,6,7,9].select(&:even?)
<eval-in_> apeiros => [6] (https://eval.in/302841)
martinbmadsen has joined #ruby
<apeiros> one element selected - still an array returned
patrick99e99 has quit [Ping timeout: 245 seconds]
pandaant has quit [Remote host closed the connection]
SouL_ has joined #ruby
Sawbones has joined #ruby
patrick99e99 has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
<a5i> sigh..
zorak8 has joined #ruby
SouL has quit [Ping timeout: 272 seconds]
hpoydar has quit [Ping timeout: 252 seconds]
Zai00 has quit [Quit: Zai00]
SouL has joined #ruby
<jhass> _mak: why do you drop the first id from the query?
SouL__ has joined #ruby
<_mak> jhass: where?
SouL_ has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
<jhass> line 54
<jhass> oh, because we have that one already, gotcha
<jhass> then the default should be 0, not 1, right?
jerematic has joined #ruby
yfeldblum has joined #ruby
jud has joined #ruby
jud has joined #ruby
christiandsg has joined #ruby
<_mak> jhass: I missed a refactor, before idsQuery was starting with ',' :/
Limix has joined #ruby
karmatr0n has quit [Remote host closed the connection]
blackmesa has joined #ruby
<_mak> jhass: sorry, it is still starting with ,
<jhass> kk, not in my version :D
SOLDIERz has quit [Quit: Be back later ...]
karmatr0n has joined #ruby
<_mak> jhass: :)
SouL has quit [Ping timeout: 246 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
jgabrielygalan has quit [Ping timeout: 264 seconds]
Sawbones has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 246 seconds]
kblake has joined #ruby
<mjuszczak> jhass thanks!
nii236 has joined #ruby
karmatr0n has quit [Ping timeout: 245 seconds]
Sawbones has joined #ruby
nerium has joined #ruby
Apocalypse has quit [Ping timeout: 264 seconds]
noobda has joined #ruby
noobda has left #ruby [#ruby]
sevvie has quit [Ping timeout: 246 seconds]
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
twistedpixels is now known as zz_twistedpixels
jwinder has quit [Remote host closed the connection]
sivsushruth has quit [Ping timeout: 265 seconds]
nii236 has quit [Ping timeout: 272 seconds]
craigp has joined #ruby
<jhass> _mak: mh, is there a reason you don't just query all stuff you need in the first query but use one query to get the ids you want and then fetch the results for those ids again, just with more details?
<jhass> instead of just fetching with more details in the first place and filtering just those out you don't want
Alayde has joined #ruby
Alayde has quit [Client Quit]
DerisiveLogic has quit [Ping timeout: 265 seconds]
A205B064 has joined #ruby
<_mak> jhass: Since the quantity of mobi and epub books are little, I did this way to reduce the traffic of the first request.
mikepack has joined #ruby
<_mak> jhass: on the first query I'm forced to get 1000 books
SouL has joined #ruby
<_mak> jhass: on the second I get only the ones I want
sivsushruth has joined #ruby
<jhass> I have my doubts the overhead of another HTTP request and another DB query on the backend are low enough to justify the few saved bytes in transit, but mkay
Soda has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
yfeldblu_ has joined #ruby
SouL__ has quit [Ping timeout: 264 seconds]
kaiZen has joined #ruby
anaeem1 has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
milesmatthias has joined #ruby
<_mak> jhass: yeah, you are probably right... I will remove that
Alayde has joined #ruby
<_mak> jhass: I just wanted to spare libgen server... but it's probably irrelevant...
<jhass> yeah, I think you actually cause it more load that way
Guest94221 is now known as ELLIOTTCABLE
zzing has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
ELLIOTTCABLE is now known as Guest92206
sevvie has joined #ruby
Sawbones has quit [Remote host closed the connection]
art-solopov has joined #ruby
swgillespie has joined #ruby
milesmatthias has quit [Ping timeout: 252 seconds]
flip_digits has joined #ruby
Sawbones has joined #ruby
Alina-malina has quit [Ping timeout: 252 seconds]
mjuszczak has quit [Ping timeout: 255 seconds]
flughafe1 is now known as flughafen
agrinb has joined #ruby
Sawbones has quit [Remote host closed the connection]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
Guest92206 is now known as \ELLIOTTCABLE
Alina-malina has joined #ruby
twilling has joined #ruby
rajeshchawla has joined #ruby
<twilling> Is it appropriate to use .any? on an array to verify that it’s not empty? I’ve inherited a Ruby 1.9, Rails 3 app and there’s a heavy reliance on use the “any?” method
<apeiros> >> [false, nil].any?
<eval-in_> apeiros => false (https://eval.in/302850)
<apeiros> twilling: ^
<apeiros> any? does not test emptiness
<twilling> Good, I didn’t think it was a good idea based on the docs but I wanted human verification
<twilling> Thank you, apeiros
<apeiros> in rails, use .present?
<apeiros> in ruby, !.empty?
agrinb has quit [Ping timeout: 265 seconds]
maximski has joined #ruby
rajeshchawla has quit [Ping timeout: 250 seconds]
Sawbones has joined #ruby
<jhass> _mak: http://paste.mrzyx.de/pt17gjdtk Disclaimer: I never even saved that to a file, thus never ran it, it's meant to give you some ideas. There's still some opportunity to extract stuff into some methods or even to write a class or two
blizzy has joined #ruby
maximski has quit [Client Quit]
SouL has quit [Ping timeout: 252 seconds]
dtordable has joined #ruby
MatthewsFace has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jhass> _mak: performance wise, recent sqlite versions allow bulk inserts, so 1) constructing a single query to get the existing IDs in the DB and filtering them out of the result set and 2) constructing a bulk insert for the remaining ones should be much faster. I didn't look up how to do bulk inserts properly (read with bind vars) though, so I left it out
The_Phoenix has quit [Read error: Connection reset by peer]
christiandsg has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
<_mak> jhass: hey, cool! I'll check it!
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
elfuego has quit [Quit: elfuego]
plashchynski has quit [Quit: plashchynski]
Apocalypse has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
christiandsg has joined #ruby
MatthewsFace has quit [Ping timeout: 244 seconds]
jwinder has joined #ruby
_64k has joined #ruby
SouL_ has joined #ruby
craigp has quit [Remote host closed the connection]
sivsushruth has quit []
juanpablo_ has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
<_mak> jhass: next if book["Language"] == "English", will this skip english books?
wallerdev has quit [Quit: wallerdev]
<jhass> eh, right, unless too
<jhass> double negation always confuses me :P
nonks has joined #ruby
craigp has joined #ruby
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
christiandsg has quit [Ping timeout: 252 seconds]
stef204 has joined #ruby
<_mak> jhass: that code looks great!
<_mak> jhass: I will refactor the second part of this tool according to what you did :)
<_mak> jhass: thanks a lot!
<jhass> yw
plashchynski has joined #ruby
Pharaoh2 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL has joined #ruby
nonks has quit [Ping timeout: 264 seconds]
SouL_ has quit [Ping timeout: 265 seconds]
craigp has quit [Ping timeout: 272 seconds]
<_mak> jhass: if you don't mind, can you see any obvious improvement here: http://paste.mrzyx.de/pdo5iij4i
hpoydar has joined #ruby
martinbmadsen has quit [Ping timeout: 246 seconds]
<jhass> _mak: the performance improvements I mentioned could look like something like this http://paste.mrzyx.de/psoy42uf4 actually
<_mak> jhass: also, I'm not sure if this is working correctly: next unless %w(epub mobi).include?(book["Extension"])
<jhass> why not?
adamski2600 has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
<jhass> >> %w(epub mobi)
<eval-in_> jhass => ["epub", "mobi"] (https://eval.in/302851)
<jhass> just syntax
adamski2600 has joined #ruby
<_mak> jhass: I got results with pdf, djvu
<_mak> jhass: wow, the performance improvements are impressive code...
SouL has quit [Read error: Connection reset by peer]
j_mcnally has joined #ruby
SouL has joined #ruby
<jhass> eh, the query should probably use IN (?) instead of = ? or so
<jhass> as said, just ideas, didn't try anything
hpoydar has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
<waxjar> _mak: get a list of titles that are in the database with one query instead of a query per title, then download the torrent files concurrently?
craigp has joined #ruby
<_mak> waxjar: I will try better matches instead of only the exact title
adamski2600 has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
alec-c4 has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
<waxjar> either way, the bottleneck is gonna be the I/O you do while downloading
<jhass> _mak: for the second script: let CSV open the file, if you do it yourself always use the block form of File.open or helper methods such as File.read
<jhass> you probbaly noticed that I prefer unless over if not
jerematic has joined #ruby
DerisiveLogic has joined #ruby
SouL has quit [Ping timeout: 252 seconds]
cool has joined #ruby
<jhass> list the columns you need in the select, even if it's all of them, it makes it easier to correlate the indexes to the columns
Rephiax has quit [Ping timeout: 244 seconds]
SouL has joined #ruby
jottr has joined #ruby
<jhass> but I think you can also use the field names to access the results instead of indexes
<jhass> which would be again much clearer
<_mak> jhass: on the second refactor you did, is this 'relevant_books.each do' missing the || element?
blackmesa has joined #ruby
<jhass> uh, yes :D
<jhass> happens if you never run it :P
<_mak> jhass: :D
<_mak> jhass: what could I use?
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
<_mak> anything? (since I won't refer to it)
<jhass> huh? it must be do |book|
jerematic has quit [Ping timeout: 256 seconds]
sevvie has quit [Ping timeout: 252 seconds]
christiandsg has joined #ruby
<_mak> jhass: yeah... and the 'db.transaction do' also needs the ||?
Sawbones has joined #ruby
<jhass> no
<jhass> it yields nothing we're interested in
willharrison has joined #ruby
<_mak> jhass: I'm missing something... 'bind or column index out of range'
<jhass> where?
riotjones has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> get rid of the rescue so you know which statement it is
hmsimha has quit [Quit: Leaving]
<jhass> I just assumed it can take an array, that's probably failing
tvon has quit [Quit: Lost terminal]
drewvanstone has joined #ruby
<_mak> jhass: where?
SouL_ has joined #ruby
Sawbones has quit [Ping timeout: 246 seconds]
<jhass> 57/58
mjuszczak has joined #ruby
zorak8 has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
SouL has quit [Ping timeout: 264 seconds]
zorak8 has joined #ruby
SouL has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
<_mak> jhass: I can't get the problem :/
<jhass> yeah it doesn't handle arrays for bind parameters :/
mjuszczak has quit [Client Quit]
mjuszczak has joined #ruby
Morkel has quit [Quit: Morkel]
<jhass> already_known_books = db.query("SELECT LibgenID FROM Books WHERE LibgenID IN (#{all_books.map {|book| book["ID"].to_i }.join(",")}").map(&:first) so this way (*sigh*)
<jhass> eh
RegulationD has joined #ruby
<jhass> already_known_books = db.query("SELECT LibgenID FROM Books WHERE LibgenID IN (#{all_books.map {|book| book["ID"].to_i }.join(",")})").map(&:first) (missed a paren)
SouL_ has quit [Ping timeout: 244 seconds]
<_mak> jhass: that's cool. :) living and learning
<_mak> thanks a lot mate!
Hirzu has joined #ruby
GnuYawk has joined #ruby
jamo__ has joined #ruby
wallerdev has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
wallerdev has quit [Client Quit]
zorak8 has joined #ruby
kubunto has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
<kubunto> how similar is ruby on rails to straight ruby
agrinb has joined #ruby
hardlin3r has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
reset has joined #ruby
<shevy> kubunto rails is very domain specific
sankaber has joined #ruby
<shevy> in ruby itself, nothing stops you from writing code in rails
<centrx> kubunto, Rails is a framework/library which has a lot of features to do various things
<shevy> I mean, writing code *as rails does
<centrx> kubunto, but the language is the same. For additional language-type features in Rails, see ActiveSupport
<shevy> with those strange generator pattern thingies
<jhass> kubunto: rails runs on stock ruby interpreters, they don't patch it, they just add a whole bunch of methods to the core classes
<kubunto> so it is like jquery is to javascript?
Hirzu has quit [Ping timeout: 265 seconds]
<centrx> ActiveSupport is like jQuery is to JavaScript
sevvie has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
<centrx> kubunto, Learn about the model-view-controller pattern
plashchynski has quit [Quit: plashchynski]
<kubunto> centrx: i know that like the back of my hand
<shevy> is your hand's backside hairy
<centrx> it should be pretty straightforward if you already know Ruby
agrinb has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
AnxiousGarlic has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 255 seconds]
jgt1 has joined #ruby
<kubunto> why wouldnt gem be working, i have ruby installed on this machine
<kubunto> o nvm
patrick99e99 has quit [Ping timeout: 255 seconds]
RegulationD has joined #ruby
SouL_ has joined #ruby
SouL has quit [Ping timeout: 256 seconds]
tlarevo has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
bigmac has joined #ruby
<kubunto> ok, so gem problem
<kubunto> ,--8<-
<kubunto> |/usr/bin/ruby2.1 extconf.rb
<kubunto> |mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
<kubunto> `-->8-
<kubunto> extconf failed, exit code 1
rajeshchawla has joined #ruby
sleeper is now known as sleeper_
sevvie has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
christiandsg has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kubunto> nvm, dont have it installed apparently
swgillespie has joined #ruby
sngeth has joined #ruby
<centrx> kubunto, When installing gems, you typically need build tools and the ruby dev/header files installed
<centrx> for native gems that need compilation
<kubunto> did not have the gem thing set up already
rajeshchawla has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
<shevy> Dir.entries(Dir.pwd) is faster than Dir['*'] ?
it0a has quit [Ping timeout: 252 seconds]
swgillespie has quit [Client Quit]
nerium has quit [Quit: nerium]
maximski has joined #ruby
bonhoeffer has joined #ruby
<riceandbeans> how do I know what things are faster than others in order to optimize code
<shevy> hmm I'll have to find out; I'll make a benchmark, you can soon critique
sngeth has quit [Ping timeout: 244 seconds]
<kubunto> okm i have no idea why gems dont work now
palms has joined #ruby
coderhs has joined #ruby
<kubunto> _rubygems
coderhs has quit [Client Quit]
<kubunto> centrx: not a clue what is going wrong but still doesnt work
n00by has joined #ruby
<n00by> Hi
<n00by> How do I installed ruby 2.2.0 on Debian?
<shevy> oh wait I have a benchmark
<kubunto> n00by: sudo apt-get install ruby
<n00by> install*
<shevy> Dir.entries(Dir.pwd) 2.690000 2.000000 4.690000 ( 5.401553)
<shevy> Dir['*'] 3.440000 1.920000 5.360000 ( 6.046850)
<shevy> :(
<shevy> that's hardly worth much
Jiyuhen has quit [Ping timeout: 264 seconds]
Jiyuhen has joined #ruby
maximski has quit [Client Quit]
<riceandbeans> I don't know how to interpret that
<centrx> n00by, You could try the Brightbox packages - https://www.brightbox.com/docs/ruby/ubuntu/
patrick99e99 has quit [Ping timeout: 252 seconds]
<waxjar> benchmark/ips, ftw!
<jhass> shevy: you need many iterations due to caches
<jhass> the first one to run gets a penality
<jhass> if you don't
patrick99e99 has joined #ruby
<jhass> kubunto: install ruby-dev if you installed it that way
flughafen_ has joined #ruby
<kubunto> jhass: i think thats why i was failing to get rails installed
swgillespie has joined #ruby
mloveless has joined #ruby
<jhass> yes
mloveless has quit [Client Quit]
<jhass> all that splitting up the "unnecessary" software cripples it and is just set apart from reality
JusticeFries has joined #ruby
<jhass> one of the reasons I dislike debian
<riceandbeans> can I benchmark between ruby 1.8 1.9 2.0 and 2.1?
<shevy> yay!
<bonhoeffer> hey — i’m trying to take a picture of a webpage at a specfic time — i already get the html via open('http://www.crossfitadaptation.com/').read
<shevy> riceandbeans if you have these versions
<bonhoeffer> via 'open-uri' — but i want the pics and a jpeg to email to me
<riceandbeans> also, how can I iterate through a bunch of 1.8 code and figure out how it will break on 1.9 and fix it without just installing 1.9 and breaking it everywhere
<shevy> I have only one ruby version these days
<shevy> what do you mean
<bonhoeffer> showing that a specific update happends — i’m thinking phantomjs or similar
nonks has joined #ruby
<shevy> you can install all ruby versions
<riceandbeans> right, but I have to upgrade on production systems
<riceandbeans> and not break everything in the process
thinkswan has quit [Quit: ...]
<shevy> so ask debian how they solve it :D
<centrx> do it on development system first
<jhass> bonhoeffer: you'll need to launch a browser and screenshot it, or shell out to a webpage screenshot tool
<shevy> debian does not allow you to install as many versions as you want to?
flughafen has quit [Ping timeout: 256 seconds]
<bonhoeffer> jhass: i’m on a vps shell
<jhass> Xvfb might help, never tried
<Nilium> Should just use freebsd
<Nilium> Embrace the bsd
<riceandbeans> even if I did it on dev, if 1.9 just broke all code, then the entire dev environment would be broken until I fixed it, and I can't just shut off the entire dev environment for everyone
Zai00 has joined #ruby
<shevy> why not - you still have a working 1.8 just fine
<bonhoeffer> jhass: for me?
<bonhoeffer> Xvfb?
<jhass> yes
<shevy> jhass I tested with 400.000 iterations
n00by has quit [Quit: Page closed]
<bonhoeffer> ah — cool — how does that compare with selenium and phantomjs?
<shevy> Testing: Dir.entries(BASE_DIR_TO_TEST) 32.930000 35.840000 68.770000 ( 86.846862)
<shevy> Testing: Dir[BASE_DIR_TO_TEST+'*'] 88.800000 37.390000 126.190000 (150.694399)
<shevy> one day I should find out how to do proper padding :\
<shevy> ips did it right?
anaeem1 has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<apeiros> shevy: unless BASE_DIR_TO_TEST ends with "/", your test is wrong
anaeem1 has joined #ruby
<jhass> also unfair
<jhass> +'*' counts in an extra string allog
<jhass> alloc
jasabella has quit [Ping timeout: 250 seconds]
patrick99e99 has quit [Ping timeout: 246 seconds]
<shevy> aaaah true
nonks has quit [Ping timeout: 265 seconds]
patrick99e99 has joined #ruby
<shevy> well
<shevy> hmmm
superspring has quit [Ping timeout: 246 seconds]
<shevy> if I use foo("#{CONSTANT_HERE}"), that is still slower than foo(CONSTANT_HERE) or?
anaeem1 has quit [Remote host closed the connection]
<shevy> I mean
<shevy> foo("#{CONSTANT_HERE}*")
anaeem1 has joined #ruby
<jhass> yes
Takle has quit [Remote host closed the connection]
<shevy> :(
<jhass> actually not sure for constants, mmh
<shevy> well I change it anyway, I guess it will be a fairer comparison then
<jhass> yeah
JoshGlzBrk has joined #ruby
<waxjar> shevy: ips counts iterations per second, rather than the time it takes to execute one iteration. incidentally it pads its output well too
<apeiros> jhass: since constants can be replaced too, I'd say yes, it's slower with them too
<apeiros> ruby can't really optimize it away
it0a has joined #ruby
<shevy> waxjar yeah, I must change to benchmark/ips eventually
nii236 has joined #ruby
juanpablo_ has joined #ruby
<waxjar> it's easy, instead of Benchmark.bm you type Benchmark.ips and get rid off the weird n.times { "the actual test" } loop :p
<shevy> hmm
superspring has joined #ruby
bluOxigen has joined #ruby
plashchynski has joined #ruby
<shevy> Testing: Dir.entries() 28.900000 31.240000 60.140000 ( 73.272771)
<shevy> Testing: Dir[] 79.160000 32.640000 111.800000 (154.267878)
nonks has joined #ruby
<shevy> via Dir["#{BASE_DIR_TO_TEST}*"] ... and only 350_000 iterations
kubunto has left #ruby [#ruby]
<shevy> I guess Dir.entries is quite faster
nii236 has quit [Ping timeout: 246 seconds]
juanpablo_ has quit [Ping timeout: 252 seconds]
ftj has joined #ruby
ftj has quit [Client Quit]
Limix has quit [Quit: Limix]
patrick99e99 has quit [Ping timeout: 246 seconds]
patrick99e99 has joined #ruby
jamo__ has quit [Quit: leaving]
<shevy> are @instance variables expensive?
<shevy> like if I go crazy and use 1000 of them in a class
lolmaus has quit [Quit: Konversation terminated!]
kirun has quit [Quit: Client exiting]
<shevy> one could use one @hash ivar and store in keys instead perhaps
nonks has quit [Ping timeout: 252 seconds]
reinaldob has quit [Remote host closed the connection]
milesmatthias has joined #ruby
SouL has joined #ruby
wottam has joined #ruby
<undeadaedra> hi
<shevy> hey undeadbaguetteman
bigmac has quit [Ping timeout: 265 seconds]
SouL_ has quit [Ping timeout: 256 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<centrx> shevy, @instance_variables must be cheaper than accessing a hash
<shevy> really? hmm
drewvanstone has quit [Ping timeout: 244 seconds]
<undeadaedra> shevy: you’re showing too much interest for my baguette
<centrx> could be equivalent I guess
<shevy> undeadaedra I don't know many other french words
<centrx> making 1000 instance variables is bad code smell
<centrx> How do you say "bad code smell" in French
SouL_ has joined #ruby
<undeadaedra> code de merde.
<shevy> smell!
<shevy> stinking code undeadaedra
<undeadaedra> (roughly.)
<shevy> not shitty code
Limix has joined #ruby
<undeadaedra> code qui pue
<undeadaedra> but it’s less used.
<shevy> that sounds so noble :)
milesmatthias has quit [Ping timeout: 255 seconds]
kubunto has joined #ruby
<undeadaedra> that’s not noble.
<shevy> haha
davedev2_ has joined #ruby
_64k has quit [Ping timeout: 245 seconds]
<undeadaedra> so we’re doing this now? ”I’m french, AMA”?
SouL_ has quit [Read error: Connection reset by peer]
<centrx> Une frog
<undeadaedra> Un*
davedev24_ has quit [Ping timeout: 272 seconds]
SouL has quit [Ping timeout: 265 seconds]
SouL has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
<kubunto> i am super confused
<Nilium> Congratulations on being human and not a filthy robot
<undeadaedra> why?
<undeadaedra> just be careful and don’t hurt yoursel
<undeadaedra> yourself*
art-solopov has quit [Quit: Konversation terminated!]
agrinb has joined #ruby
<kubunto> so anyone explain why in this code bit that i cant just enter a file name and have it open? https://gist.github.com/sammarder/354873d9f497aec4212d
duncannz has joined #ruby
<jhass> kubunto: do ruby -e"p(gets)" enter something and press enter
<jhass> what do you see?
nonks has joined #ruby
<kubunto> i see a newline character trailing my input
<jhass> ;)
<jhass> Check String#chomp
Azure has joined #ruby
<undeadaedra> dat wink
<kubunto> i swear i am not an idiot
<kubunto> i just play one on IRC
<undeadaedra> nobody said you were one?
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<centrx> we all know you're acting
<kubunto> undeadaedra: i feel like it and i like being self depricating
<undeadaedra> ok
agrinb has quit [Ping timeout: 256 seconds]
hardlin3r has joined #ruby
<weaksauce> kubunto you may want to consider moving to soft tabs and using the ruby convention of 2 spaces for each tab. it's more readable
nonks has quit [Ping timeout: 245 seconds]
<kubunto> done
<undeadaedra> ”# I would say a day goes from 00:00 to 23:59:59 that day”
momomomomo has quit [Quit: momomomomo]
patrick99e99 has quit [Ping timeout: 255 seconds]
* kubunto facepalms
hpoydar has joined #ruby
patrick99e99 has joined #ruby
fenzil has joined #ruby
yqt has joined #ruby
<undeadaedra> :)
justin_pdx has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tier has quit [Remote host closed the connection]
<weaksauce> kubunto a hash might be more useful than a long case statement
<undeadaedra> I’m sure there are ways of parsing time which does not require that anyway
hpoydar has quit [Ping timeout: 255 seconds]
<kubunto> undeadaedra: the thing is that is the string i need
<kubunto> my client logs in 3 letter months
<kubunto> weaksauce: would that be a class variable with the little @ in front of it?
<undeadaedra> with a Time object, it’s simple to obtain
Limix has quit [Quit: Limix]
<undeadaedra> >> Time.now.strftime(%(%b))
<eval-in_> undeadaedra => "Mar" (https://eval.in/302916)
<weaksauce> kubunto it's not in a class though
<apeiros> /nick sisyphos
nonks has joined #ruby
rajeshchawla has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
<weaksauce> not sure if a constant would work in the global namespace but it might
Takle has joined #ruby
SouL_ has joined #ruby
<weaksauce> something along the lines of https://gist.github.com/anonymous/804a3020291fe4683729
kblake has quit [Remote host closed the connection]
<kubunto> i like
<weaksauce> you could change the other code to remove that method but if you wanted to do some other checks on things it would be good to have in a method like that
SouL has quit [Read error: Connection reset by peer]
rubytor_ has joined #ruby
enebo has quit [Quit: enebo]
rubytor has quit [Ping timeout: 246 seconds]
rajeshchawla has quit [Ping timeout: 244 seconds]
nonks has quit [Ping timeout: 244 seconds]
enebo has joined #ruby
jimms has quit [Remote host closed the connection]
Nahra has joined #ruby
<kubunto> weaksauce: tyvm for the pointers
jasabella has joined #ruby
Jackneill has quit [Remote host closed the connection]
enebo has quit [Ping timeout: 252 seconds]
nfk has quit [Quit: yawn]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
kblake has joined #ruby
kubunto has left #ruby [#ruby]
anaeem1 has joined #ruby
lxsameer has quit [Quit: Leaving]
it0a has quit [Ping timeout: 250 seconds]
anaeem1 has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jerematic has joined #ruby
it0a has joined #ruby
sankaber has joined #ruby
towski_ has quit [Remote host closed the connection]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
bonhoeffer has quit [Quit: bonhoeffer]
jerematic has quit [Ping timeout: 255 seconds]
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
drewvanstone has joined #ruby
Guest24 is now known as lele
MasterPiece has joined #ruby
milesmatthias has joined #ruby
mjuszczak has quit []
patrick99e99 has quit [Ping timeout: 264 seconds]
Notte has joined #ruby
wallerdev has joined #ruby
patrick99e99 has joined #ruby
_64k has joined #ruby
mjuszczak has joined #ruby
milesmatthias has quit [Ping timeout: 246 seconds]
reinaldob has joined #ruby
kblake has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
Spleeze has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
guardian has quit [Ping timeout: 246 seconds]
Nuck has joined #ruby
patrick99e99 has quit [Remote host closed the connection]
_honning_ has joined #ruby
patrick99e99 has joined #ruby
SouL__ has joined #ruby
mjuszczak has quit []
xcombelle has quit [Quit: Quitte]
reinaldob has quit [Ping timeout: 252 seconds]
Spleeze has joined #ruby
thiagovsk has joined #ruby
SouL_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
mjuszczak has joined #ruby
lemur has quit [Remote host closed the connection]
morenoh150 has joined #ruby
morenoh149 has quit [Ping timeout: 246 seconds]
longfeet has joined #ruby
Apocalypse has quit [Quit: Input/Output Error]
RegulationD has joined #ruby
guardian has joined #ruby
mjuszczak has quit [Client Quit]
ponga has joined #ruby
parduse has quit []
sngeth has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
Apocalypse has joined #ruby
Apocalypse has joined #ruby
sngeth has quit [Ping timeout: 264 seconds]
neanderslob has quit [Ping timeout: 255 seconds]
AlexRussia has quit [Ping timeout: 256 seconds]
centrx has quit [Remote host closed the connection]
neanderslob has joined #ruby
SouL_ has joined #ruby
milesmatthias has joined #ruby
centrx has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
decoponio has quit [Ping timeout: 246 seconds]
guardian has quit [Ping timeout: 265 seconds]
drewvanstone has quit [Ping timeout: 264 seconds]
rajeshchawla has joined #ruby
SaladTosser has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
tier has joined #ruby
SouL__ has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
juanpablo_ has joined #ruby
RegulationD has joined #ruby
nerium has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rajeshchawla has quit [Remote host closed the connection]
rajeshchawla has joined #ruby
SaladTosser has left #ruby [#ruby]
nonks has joined #ruby
sevvie has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
DLSteve has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
mark[oz] has joined #ruby
martinbmadsen has joined #ruby
nipp has joined #ruby
nonks has quit [Ping timeout: 252 seconds]
bashusr has quit [Ping timeout: 252 seconds]
JDiPierro has joined #ruby
bashusr has joined #ruby
JDiPierro has quit [Client Quit]
fumduq has quit [Ping timeout: 252 seconds]
fumduq has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
milesmatthias has quit [Remote host closed the connection]
<shevy> hmm in a class, can I include a module at run-time?
sinkensabe has joined #ruby
<shevy> class Foo; end; foo = Foo.new; foo.add_superman_module; foo.can_fly? # => true
danguita has left #ruby ["Ciao! (WeeChat 0.4.2)"]
Jiyuhen has quit [Read error: Connection reset by peer]
<apeiros> shevy: you do remember that there's nothing else than run.time in ruby?
<apeiros> s/./-/
<shevy> well I can add stuff live
milesmatthias has joined #ruby
decoponio has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
nii236 has joined #ruby
lemur has joined #ruby
<shevy> I'd wish there would be a simple way to un-include stuff :(
anaeem1_ has joined #ruby
Jiyuhen has joined #ruby
rajeshchawla has joined #ruby
<apeiros> yes, me too
maximski has joined #ruby
<apeiros> more unextend than uninclude, though
<apeiros> also I wonder whether extend still busts method cache
<shevy> well
<shevy> would it be possible to just "include" new modules, which just overload?
nii236 has quit [Ping timeout: 252 seconds]
<shevy> so like, you could have the "original" copy, then add functionality, then include a variant that is kind of like the original one - the new functionality hmm
martinbmadsen has quit [Ping timeout: 265 seconds]
<apeiros> you can clone a class
<apeiros> and include into the clone
<shevy> hmm
<shevy> ah, so like the alias-trick when patching Kernel#include where you keep an old reference
<shevy> keeping a clone is actually a great idea
anaeem1_ has quit [Ping timeout: 265 seconds]
zz_twistedpixels is now known as twistedpixels
patrick99e99 has quit [Ping timeout: 252 seconds]
Notte has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
davedev24_ has joined #ruby
havenwood has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
adamski2600 has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
DerisiveLogic has quit [Ping timeout: 256 seconds]
sankaber has joined #ruby
sinkensabe has joined #ruby
adamski2600 has quit [Ping timeout: 256 seconds]
_honning__ has joined #ruby
_honning__ has quit [Read error: Connection reset by peer]
civim has joined #ruby
<civim> Is anyone here? I have a question about the proper syntax for defining a method.
<undeadaedra> ”don’t ask to ask”
<civim> haha, ok.
<civim> What does it mean when you define a method and end it with an =.
<civim> I mean def foo=
<undeadaedra> that you can call it like an assignment on the object
agrinb has joined #ruby
<civim> can you explain a little further?
<havenwood> civim: that's syntactic sugar that allows a special way to call the method. so instead of `foo= this` you can `foo = this`.
patrick99e99 has quit [Ping timeout: 246 seconds]
elfuego has joined #ruby
<havenwood> civim: it's a special extra thing that allows a natural way of calling setter methods with what you're setting them to.
_honning_ has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
nonks has joined #ruby
<civim> so it simultaneously calls the method and sets the value/
<undeadaedra> no, it just calls the method
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<centrx> The method defines how the value is set
<undeadaedra> a.foo = b is the same as a.foo=(b)
<centrx> Naming the method like that makes it act syntactically like a regular variable assignment
<undeadaedra> it doesn’t set anything magically, you still have to assign in the method, but it allows for treatment
<flughafen_> i have a cucumber question, the docs say you can call mutiple steps like ... steps %[ \nstep1\nstep2 ]
<flughafen_> but it gives me a lexing error.
<flughafen_> if i do individual steps, it works
<civim> ah, ok thanks. I'll read more about setter methods.
<centrx> civim, If you have an instance variable named @foo, you can define public setter and getter methods for it with attr_reader, attr_writer, or attr_accessor
<centrx> without any extra logic
crazydiamond has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
nonks has quit [Ping timeout: 246 seconds]
<civim> aaaah, i see attr_reader, etc are shortcuts for def foo=(bar)
jwinder has quit [Ping timeout: 264 seconds]
<a5i> just updated it
kobain has quit [Ping timeout: 246 seconds]
hpoydar has joined #ruby
jasabella has quit [Ping timeout: 250 seconds]
rajeshchawla has quit [Remote host closed the connection]
segmond has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
tier has quit [Remote host closed the connection]
it0a has quit [Quit: WeeChat 1.1.1]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
hpoydar has quit [Ping timeout: 250 seconds]
tier has joined #ruby
SouL__ has joined #ruby
plashchynski has quit [Quit: plashchynski]
_honning_ has joined #ruby
SouL_ has quit [Ping timeout: 265 seconds]
rajeshchawla has joined #ruby
InFlight has joined #ruby
<weaksauce> a5i the tutorial there says to use 2.1.3 not downgrade
keen_________ has joined #ruby
SouL_ has joined #ruby
<a5i> weaksauce: ? http://prntscr.com/6jpck1
jenrzzz has quit [Ping timeout: 245 seconds]
rajeshchawla has quit [Remote host closed the connection]
keen________ has quit [Ping timeout: 246 seconds]
<shevy> civim not attr_reader but attr_writer :)
InFlight has quit [K-Lined]
<flughafen_> sup shevy
<shevy> flughafen_ ready to take off from Berlin?
<flughafen_> shevy: yes!
<shevy> flughafen_ YOU CAN'T!!! YOU ARE STILL BEING BUILT!!!!!
ghostpl_ has quit [Remote host closed the connection]
<flughafen_> shevy: you jerk!
<flughafen_> shevy: what are you up to
rajeshchawla has joined #ruby
SouL__ has quit [Ping timeout: 246 seconds]
<shevy> flughafen_ there is another funny story, or perhaps not so funny... not related to planes, but to rails. I mean reallife rails... through Austria too. From Italy to Germany. Recently they started to START to dig the tunnel... in 10 (!) years they are supposed to finish
<shevy> after like discussing it for 15 more years!
<civim> thanks, shevy
bonhoeffer has joined #ruby
<flughafen_> shevy: whats the status?
<shevy> well they started with dynamite hehe
<shevy> but it also depends on italy and germany
<shevy> the austrian part should be the shortest
<shevy> did you know that the italians also have a very fast rail thingy? cheaper than the german ICE or the french TGV too
sevvie has quit [Ping timeout: 246 seconds]
<flughafen_> i didn't
Sawbones has joined #ruby
<shevy> then I could drive to berlin in ... hmm...
kobain has joined #ruby
<flughafen_> shevy: do you know anything about cucumber?
<shevy> 8 hours? less than that?
<a5i> weaksauce: any luck? :(
<centrx> please guys this is off-topic, go to #rails
<shevy> nope no clue, it's web related right? I am .cgi
maletor has joined #ruby
<flughafen_> it's a BDD tool
maletor has quit [Changing host]
maletor has joined #ruby
kobain has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
<havenwood> a5i: So you're running `bundle install` form a different Ruby than you're using with Passenger?
sevvie has joined #ruby
naftilos76 has joined #ruby
aiguu has quit [Ping timeout: 245 seconds]
<a5i> havenwood: not sure
<a5i> havenwood: I said maybe thats the problem, as some other similar question was asked with rails but again im not sure
hardlin3r has quit [Ping timeout: 246 seconds]
willharrison has joined #ruby
plashchynski has joined #ruby
Sawbones has quit [Remote host closed the connection]
<weaksauce> that step says that it's reverting the downgrade a5i
<weaksauce> apt-get update whatever overwrites your ruby with some older version and then you want to reestablish the link
<havenwood> a5i: It looks like you've just installed Ruby 2.1.3 and with it installed the bundler gem and bundled. Then you're running Passenger with Ruby 1.9.3.
<a5i> OH !
<a5i> havenwood, weaksauce So I should follow the steps and remove the foler and create the symlink?
<havenwood> a5i: Do you need Ruby 1.9? Where'd it come from? An apt package?
<a5i> I need ruby 2.x.x.
jack_rabbit has joined #ruby
<havenwood> a5i: If you don't need more than one version of Ruby don't have more than one.
<havenwood> a5i: Ruby 1.9 is past end-of-life anyways.
<a5i> I see
<a5i> hmm
dtordable has quit [Ping timeout: 256 seconds]
<havenwood> a5i: Use Ruby 2.1.5 or better yet 2.2.1. ;)
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<a5i> lemme just get this one to work with 2.1.3
milesmatthias has quit [Remote host closed the connection]
<a5i> so should I so as that guy said?
<bradland> a5i: if you can avoid it at all, don't use a ruby version manager on servers
sankaber has joined #ruby
<havenwood> a5i: I haven't read the tutorial, let me look.
<a5i> I dont have rvm yet
<bradland> it adds significant complications to your server deployment
christiandsg has joined #ruby
<bradland> ok, so they recommend manually building ruby
<bradland> which isn't a bad idea
<a5i> so should I follow this step too? http://prntscr.com/6jpj3z
<bradland> there are tools that will build ruby and place it in a standard location (like /usr/local), but this guide looks fine
<bradland> wait wtf?
<bradland> not sure why they're having you install passenger through apt
<bradland> i don't do it that way
kaspernj has quit [Remote host closed the connection]
<havenwood> but they didn't have you --prefix=/usr/local and yeah, didn't do the recommended passenger install
<havenwood> bradland: ha, you beat me to it
<a5i> so should I follow that step or...
<bradland> yeah, this guide isn't optimal, IMO
Joufflu has quit [Read error: Connection reset by peer]
<a5i> so, should I follw that step?
<a5i> :/
<bradland> i would install passenger and let passenger build nginx
<bradland> but i run apache, so my tooling is different
<bradland> i use the apt installed apache, and let passenger handle the module build & install
<a5i> I tried but it didint wor
SouL__ has joined #ruby
<bradland> you tried what?
<a5i> havenwood? weaksauce ?
<a5i> I tried letting passenger install and build nginx
<a5i> gave me exit status 4
<bradland> you've probably got a bit of a mess right now
<a5i> Yup
<bradland> if you've run any of the install packages
pwnz0r has joined #ruby
<a5i> So I rebuilt my vps
<bradland> ok, cool
<a5i> and now im here
<bradland> any ruby installed at all?
patrick99e99 has quit [Ping timeout: 246 seconds]
<a5i> yes
<a5i> 2.1.3
astrobunny has joined #ruby
<bradland> install method?
<a5i> same as that tutoiral
<bradland> and location?
christiandsg has quit [Ping timeout: 252 seconds]
<a5i> from source
<bradland> ok, do which ruby
<a5i> /usr/local/bin/ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
ismaelga has quit [Remote host closed the connection]
<bradland> for passenger install, i'd follow Phusion's guide
patrick99e99 has joined #ruby
<bradland> so this is where the digital ocean guide got the apt repo
<bradland> see, i run apache, so i don't have to do it this way
jerematic has joined #ruby
SouL_ has quit [Ping timeout: 272 seconds]
<bradland> nginx is great, but you have to build in modules at compile time, and i ain't got time for that
duncannz has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
roolo has joined #ruby
<a5i> sigh
<a5i> got it to work
<bradland> w00t!
<shevy> t00w!
astrobun_ has joined #ruby
<shevy> RUBY TAKES OVER NOW
astrobunny has quit [Ping timeout: 245 seconds]
jerematic has quit [Ping timeout: 256 seconds]
nonks has joined #ruby
nonks has quit [Client Quit]
<shevy> hmmm
havenn has joined #ruby
<shevy> if I invoke a .rb script from bash
<flughafen_> shevy: noooooooooooooooooo
<shevy> there is probably some overhead right?
<shevy> whereas, if I in bash do "ls", there won't be much overhead
<shevy> yeah this seems to be the case
<shevy> in irb, the results I get almost instantly
<bradland> wut?
max96at is now known as max96at|off
nii236 has joined #ruby
<shevy> from the bash commandline, it takes a slight delay
AnxiousGarlic has joined #ruby
<bradland> ruby interpreter startup
<shevy> hmm
<shevy> I get a slight extra delay at the end
<bradland> what ruby command are you using as an equivalent of `ls`?
<shevy> something like 0.1 seconds or 0.2 or so
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> ah, I invoke a class
<shevy> via an alias
<bradland> i don't see where there is any kind of equivalency between "an .rb script" and "ls"
<bradland> pastie? fer real shevy?
<shevy> why not? ls has some options and lists stuff
havenwood has quit [Ping timeout: 255 seconds]
<shevy> sure, it has colours
<bradland> oh, there we go
AnxiousGarlic has quit [Read error: Connection reset by peer]
<bradland> sry, colors didn't work on first load
kaleido has joined #ruby
<shevy> well what confuses me is a behaviour I can not explain in bash
<shevy> in irb, there is no delay
<shevy> in bash, there is something like a 0.1 or 0.2 seconds hiccup
SouL_ has joined #ruby
<shevy> before the current prompt is displayed again
<shevy> that is so strange...
maximski has quit []
<shevy> does your prompt appear instantly after you invoke any script file?
riotjones has joined #ruby
<kaleido> bash is the devil
<bradland> i'm testing out now
<bradland> what the heck kind of shebang is this?
<shevy> gobolinux-appdirs!
nii236 has quit [Ping timeout: 244 seconds]
<shevy> it's equivalent to /usr/bin/
<a5i> love when you fix something but another error pops up :))))))))
<bradland> you using colours ?
SouL__ has quit [Ping timeout: 246 seconds]
<undeadaedra> shebang should be #!/usr/bin/env ruby
<shevy> bradland yeah though not right now... this is the beginning of a rewrite though, bash also colourizes stuff; the old code was suddenly behaving oddly and slowly
nipp has quit []
<shevy> undeadaedra that will only work if you have an env there
<undeadaedra> env is almost always in /usr/bin
Sawbones has joined #ruby
jottr has joined #ruby
<undeadaedra> I think I ever encountred one system where it’s not the case
<bradland> undeadaedra: you forgot to factor in that shevy is running weirdo linux
<undeadaedra> I understood that
<shevy> you guys are trapped in the FHS world
<bradland> shevy: i see what you mean about the little studder at the end
<shevy> ah?
<flughafen_> shevy: LINUX RULES
<shevy> but what is it? is this ruby related or something in general?
<undeadaedra> But for ”normal” people, above shebang is the one that will work at most places
morenoh150 is now known as morenoh149
crdpink has joined #ruby
<shevy> ohhhh wait
riotjones has quit [Ping timeout: 250 seconds]
<shevy> I am so dumb
<shevy> It was that call to .enable_colours I think
crdpink2 has quit [Ping timeout: 265 seconds]
<shevy> so that slows things down :(
SouL__ has joined #ruby
naftilos76 has quit [Remote host closed the connection]
<bradland> same here
<shevy> ah well... guess I'll have to change more than just one class then...
<bradland> i also get some rather alarming GC warning when that line is included
<bradland> RUBY_GC_MALLOC_LIMIT=79000000 (default value: 16777216)
<bradland> RUBY_GC_MALLOC_LIMIT=79000000 (default value: 16777216)
<shevy> ack
<shevy> ok
<bradland> why the heck that lib is messing with GC settings... i dunno
<shevy> I don't know either right now! But I will eventually find out
<bradland> but i'm purging it from my system, right NAO
<shevy> haha
SouL_ has quit [Ping timeout: 252 seconds]
<vhlfd> huhu
<shevy> I can break every system
<shevy> without even trying
<vhlfd> you should get a pwnie award.
SOLDIERz has joined #ruby
<shevy> bradland btw how do you get those things like RUBY_GC_MALLOC_LIMIT? Is this from MRI ruby?
<bradland> ya, my MRI spit them out
Lewix has joined #ruby
<bradland> noooo idea what setting i have on my system that might cause that, but not on yours
mitchellhenke has joined #ruby
willharrison has joined #ruby
<shevy> well, I noticed that the stutter is related to that library indeed, but actually, I noticed an even longer delay elsewhere
<shevy> in another colour-related library I wrote... kde_konsole_colours ...
<shevy> tomorrow I will pick everything apart
agrinb has joined #ruby
<havenn> a5i: To build Ruby to /usr/local with nginx passenger I'd do something like: git clone https://github.com/postmodern/ruby-install.git && cd ruby-install && sudo make install && sudo ruby-install ruby --system && sudo gem install passenger && sudo passenger-install-nginx-module
<havenn> a5i: Maybe give that ^ a try if you go the same route again.
Synthbread has quit [Read error: Connection reset by peer]
<a5i> Okay thanks
_64k has quit [Ping timeout: 245 seconds]
jonr22 has quit [Remote host closed the connection]
<a5i> but I;m dealing with a weird error on Passenger's side right now
ghostpl_ has joined #ruby
<bradland> so... i've been scraping autotrader for the last sixty days using a ruby mechanize script that is so ugly, i can't even show it to you guys
SouL_ has joined #ruby
<bradland> but i can share the results!
<havenn> hehe
<bradland> i have a scraper, plus an analyzer
<bradland> the google doc is pretty much a copy/paste of the output from the analyzer
SouL__ has quit [Read error: Connection reset by peer]
milesmatthias has joined #ruby
<bradland> i love the graph that shows the correlation between mileage and price
agrinb has quit [Ping timeout: 272 seconds]
SouL__ has joined #ruby
Takle has quit [Remote host closed the connection]
<bradland> i'm thrilled that i managed to get 60 days' worth of data without getting the boot too
<havenn> a5i: That version ^ has the advantage of automatically detecting and installing deps (so you don't run into missing them and have to rebuild) as well as fetching latest stable and verifying checksums.
gregf has quit [Quit: WeeChat 1.0.1]
<bradland> 2nd the recommendation to use ruby-install to build your ruby and place in /usr/local
SouL_ has quit [Ping timeout: 256 seconds]
emocakes has joined #ruby
milesmatthias has quit [Ping timeout: 256 seconds]
Sawbones has quit [Remote host closed the connection]
_64k has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
mikecmpbll has quit [Quit: ciao.]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
maximski has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
opes has joined #ruby
opes has quit [Client Quit]
juanpablo_ has joined #ruby
opes has joined #ruby
_cake has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
_cake has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lordkryss has quit [Quit: Connection closed for inactivity]
opes has quit [Client Quit]
sngeth has joined #ruby
platosha_ has joined #ruby
reinaldob has joined #ruby
willharrison has joined #ruby
maximski_ has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
patrick99e99 has quit [Ping timeout: 252 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platosha has quit [Quit: Leaving]
reinaldob has quit [Remote host closed the connection]
<bradland> a5i, if you don't have a specific need for nginx, i used to use a Rails install script from a provider called Rimuhosting.com