apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby
edgarjs is now known as edgarjs_afk
terrellt has quit [Quit: Leaving...]
Kricir has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
ari-_-e has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
<matti> bitcycle: You need either development package installed or rice compiled and installed.
<matti> bitcycle: As per what shevy said.
yfeldblum has quit [Ping timeout: 272 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
testcore has quit [Quit: [BX] Automatically bored away]
Kricir has quit [Ping timeout: 240 seconds]
dideler has joined #ruby
havenwood has joined #ruby
d34th4ck3r has joined #ruby
razrunelord has joined #ruby
fgo has joined #ruby
kevind has quit [Quit: kevind]
ephemerian has quit [Quit: Leaving.]
jmurray has joined #ruby
emptyflask has quit []
snath has quit [Ping timeout: 240 seconds]
julian-delphiki has quit [Ping timeout: 240 seconds]
j_mcnally has joined #ruby
SilverKey has quit [Quit: Halted.]
marr has quit [Ping timeout: 264 seconds]
snath has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
razrunelord has quit [Ping timeout: 255 seconds]
benzrf|offline is now known as benzrf
yfeldblum has joined #ruby
n_blownapart has joined #ruby
gr33n7007h has quit [Ping timeout: 244 seconds]
sunya7a has quit [Ping timeout: 245 seconds]
jottr has quit [Quit: WeeChat 0.4.3]
yokel has joined #ruby
bricker`work has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
johnmolina has quit [Remote host closed the connection]
bmurt has joined #ruby
hadees has quit [Quit: hadees]
ari-_-e has joined #ruby
pietr0 has quit [Quit: pietr0]
aniM has quit [Ping timeout: 245 seconds]
<n_blownapart> is it safe to say that keyword argument is a sort of misnomer? this is not a keyword such as def or return, but means key as in key / value pair?
johnmolina has joined #ruby
djbkd has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
Shidash has joined #ruby
GriffinHeart has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
tyfighter has quit [Quit: <3]
jmurray has quit [Quit: jmurray]
<shevy> I think the main part of the word is argument, not keyword
ddv has joined #ruby
glebm_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> methods accept arguments
<shevy> keyword argument refers to how one can specifically refer to specific/special arguments
MZAWeb has joined #ruby
<shevy> would it help you if we would write it keyword-arguments instead? :)
fixedzero has joined #ruby
jmurray has joined #ruby
mijicd has quit [Remote host closed the connection]
jmurray has quit [Client Quit]
<n_blownapart> but it is written with a sort of symbol k/v pair by necessity right shevy?
<shevy> no idea
<shevy> I don't use them
geggam has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
Takle has joined #ruby
<shevy> def foo(str: "foo", num: 424242)
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> foo(str: 'bar')
<shevy> I don't like that at all
<shevy> foo(13, str: 'bar')
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> def foo(str: "foo", num: 424242, **options)
<n_blownapart> shevy: it seems so convoluted
<shevy> yeah
<shevy> it looks like stinking ugly shit
<pontiki> it's not supposed to be a panacea
<shevy> good thing in ruby is you don't have to use it
<n_blownapart> shevy: well said
<pontiki> it is helpful in certain contexts, though
<n_blownapart> uh oh pontiki but could you explain to a layman in what context?
<shevy> n_blownapart hashes are already quite useful; if I don't need one, I can pass in symbols and act on the name of the symbol; and default arguments, including special classes
St_Marx has joined #ruby
<shevy> for instance my html generating code has something like: def table(content, css_style = Table.to_s) # or something like that, where Table holds the default css style to use
EasyCo has joined #ruby
mr_snowf1ake has joined #ruby
foooobear has joined #ruby
<n_blownapart> shevy: thanks I'm going to fiddle with it just a bit more. pontiki thanks
Deele has quit [Ping timeout: 255 seconds]
<pontiki> as a user of a library, calling a method in it, with*out* named parameters, you have to know explicitly what order to call the arguments in, even if you don't have explicit values for some of the arguments
<pontiki> thus it produces an inherent coupling between your code and the library you're calling
kaspergrubbe has quit []
kaspergrubbe has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
<n_blownapart> so later you can overwrite values using merge pontiki ?
<pontiki> inside the library, usually, yes
dc has quit [Remote host closed the connection]
nanoyak has joined #ruby
<n_blownapart> pontiki: ok that is helpful thanks.
<pontiki> sandi metz discusses it in some detail in POODR
foooobear has quit [Ping timeout: 255 seconds]
<n_blownapart> btw shevy pontiki I'm in Colombia. what a trip. oh yeah I have her book ... haven't cracked it yet..
<pontiki> i think avdi has a tapas on it as well
paf0 has quit [Remote host closed the connection]
hadees has joined #ruby
hadees has left #ruby [#ruby]
tylersmith has quit []
meinside has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
<n_blownapart> looks cool pontiki worth 9 bucks / month?
Zebroid has joined #ruby
naiyte has quit [Remote host closed the connection]
paf0 has joined #ruby
hermanmunster has quit [Remote host closed the connection]
dc has joined #ruby
hermanmunster has joined #ruby
dc has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
dc has joined #ruby
djbkd has joined #ruby
mercwithamouth has joined #ruby
Zebroid has quit [Ping timeout: 245 seconds]
Shidash1 has joined #ruby
zz_karupa is now known as karupa
aniM has joined #ruby
gondalier has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
<pontiki> omg, just for his voice *alone* it's worth $9/mo
Shidash has quit [Ping timeout: 240 seconds]
<pontiki> the info is awesome, the presentation is awesome, and his voice is awesome
gondalier has quit [Client Quit]
<pontiki> yeah, i'm a fangirl, i admit
thesheff17 has quit [Ping timeout: 240 seconds]
<n_blownapart> pontiki: yeah he sounds great. the screens flash annoyingly does that happen on your machine?
MZAWeb has quit [Ping timeout: 272 seconds]
<n_blownapart> he speaks very quickly its rough for me.
Kricir has joined #ruby
gondalier has joined #ruby
dideler has quit [Ping timeout: 272 seconds]
<pontiki> yes, at the very beginning
Zenigor has joined #ruby
<n_blownapart> yes its rough you mean pontiki?
<pontiki> no , the title flashes
<mozzarella> LOL
M-Technic has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
<n_blownapart> no the whole screen is flashing I'm on a slow connection I think.
Rinehart has joined #ruby
jmurray has joined #ruby
cory_ has quit [Quit: Connection closed for inactivity]
techmaverick has quit [Quit: Textual IRC Client: www.textualapp.com]
<pontiki> i've not experienced any difficulty listening to him
<Rinehart> Are Rails questions permitted here?
<pontiki> oh, can't say what's up with that, n_blownapart
<pontiki> they are preferred over in #rubyonrails, Rinehart
<Rinehart> Thanks!
MZAWeb has joined #ruby
Thermo has joined #ruby
sevenseacat has joined #ruby
cpruitt has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
gondalier has quit []
losvedir has joined #ruby
dideler has joined #ruby
diegoviola has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
Thermo has quit [Ping timeout: 240 seconds]
mosscollum has joined #ruby
wald0 has quit [Quit: Lost terminal]
lewix has joined #ruby
CaptainJet has quit [Read error: Connection reset by peer]
MZAWeb has quit [Ping timeout: 240 seconds]
mgberlin has joined #ruby
Thermo has joined #ruby
Zenigor has quit [Remote host closed the connection]
n_blownapart has quit [Remote host closed the connection]
Zenigor has joined #ruby
PanPan has joined #ruby
mgberlin_ has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
CaptainJet has joined #ruby
dik_dak has quit [Quit: Leaving]
thesheff17 has joined #ruby
dideler has quit [Ping timeout: 255 seconds]
jmurray has quit [Quit: jmurray]
mgberlin has quit [Ping timeout: 255 seconds]
tokik has joined #ruby
set_almighty has joined #ruby
<losvedir> When running a ruby script does the whole program get read from disk at the beginning and then operate out of memory from then on? I ask because I’m writing a script that does an Open3.capture(‘git checkout xyz’), and will end up changing its own file out from under it. Will that blow up…?
dc has quit [Remote host closed the connection]
<set_almighty> why I'm getting "TypeError can't convert Symbol into String" while trying to update AR object ?
<set_almighty> item.update_attributes params.require(:item).permit(:name, :price, :width, :height)
b00stfr3ak has quit [Ping timeout: 240 seconds]
jmurray has joined #ruby
freerobby has joined #ruby
<sevenseacat> magic.
mosscollum has left #ruby [#ruby]
paf0 has quit [Remote host closed the connection]
fgo has joined #ruby
aspires has quit []
Zenigor_ has joined #ruby
dideler has joined #ruby
Rinehart has quit [Remote host closed the connection]
<pontiki> losvedir: ruby reads in everything and interprets it. it doesn't keep the source files open. so overwriting the source file won't affect presently running code.
baroquebobcat has joined #ruby
<pontiki> if you subsequently load the file again, it will read it and interpret it.
<losvedir> pontiki: aha! thanks a bunch
brunops has quit [Ping timeout: 264 seconds]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
Zenigor has quit [Ping timeout: 245 seconds]
sunya7a has joined #ruby
lw has joined #ruby
brunops has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
Hanmac1 has quit [Ping timeout: 255 seconds]
agent_white has quit [Quit: brb]
Arkaniad has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Read error: No route to host]
baroquebobcat has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
jeremywrowe has joined #ruby
aspires has joined #ruby
Shidash1 has quit [Quit: Leaving.]
kilk__ has quit [Quit: Leaving]
aspires has quit [Client Quit]
jmurray has quit [Quit: jmurray]
kireevco has quit [Quit: Leaving.]
dc has joined #ruby
Wolland has joined #ruby
Wolland has quit [Client Quit]
tkuchiki has joined #ruby
aspires has joined #ruby
Wolland has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
aspires has quit [Client Quit]
brunops has quit [Changing host]
brunops has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
robustus has joined #ruby
obs has quit [Quit: Konversation terminated!]
alvaro_o has quit [Quit: Ex-Chat]
lbwski has joined #ruby
Cache_Money has joined #ruby
aspires has joined #ruby
dc has quit [Remote host closed the connection]
chrstphrhrt has joined #ruby
Arkaniad has joined #ruby
timgauthier has joined #ruby
codeurge has joined #ruby
xcv has joined #ruby
b1nd has joined #ruby
jmurray has joined #ruby
crudson has quit [Ping timeout: 240 seconds]
jmurray has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
fixedzero has left #ruby [#ruby]
losvedir has quit [Quit: losvedir]
andrewjanssen has joined #ruby
Channel6 has joined #ruby
xcv has quit [Ping timeout: 264 seconds]
d34th4ck3r has quit [Quit: zzz]
Zebroid has joined #ruby
coderhs has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Zebroid has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
djbkd has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
dorei has quit []
nmokru has quit [Quit: nmokru]
lethjakman has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
cpruitt has quit [Quit: cpruitt]
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
havenwood has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 244 seconds]
hermanmunster has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
m3d has joined #ruby
brunops has joined #ruby
jeremywrowe has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
therealGent has joined #ruby
therealGent has joined #ruby
therealGent has quit [Changing host]
Kricir has joined #ruby
postmodern has quit [Quit: Leaving]
brunops has quit [Client Quit]
jeremywrowe has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
aniM has quit [Ping timeout: 244 seconds]
yakko has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
end_guy has quit [Remote host closed the connection]
agent_white has joined #ruby
troyready has quit [Ping timeout: 244 seconds]
Hobogrammer has joined #ruby
tus has quit []
JasonG_ has quit [Ping timeout: 244 seconds]
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
freerobby has quit [Quit: Leaving.]
brunops has joined #ruby
d34th4ck3r has joined #ruby
DanielI has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
end_guy has joined #ruby
mosscollum has joined #ruby
mosscollum has left #ruby [#ruby]
goleldar has quit [Remote host closed the connection]
nickenchuggets has quit [Remote host closed the connection]
buub has quit [Read error: Connection reset by peer]
nickenchuggets has joined #ruby
buub has joined #ruby
ponga has joined #ruby
freezey has quit []
jeremywrowe has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
voodoofish has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
GriffinHeart has joined #ruby
voodoofish has joined #ruby
steeve has quit [Ping timeout: 264 seconds]
Atrumx has quit [Quit: Exit]
razrunelord has joined #ruby
kireevco has joined #ruby
yetanotherdave has quit [Ping timeout: 255 seconds]
GriffinHeart has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 240 seconds]
razrunelord has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
axl_ has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
fgo has joined #ruby
<ponga> i have an array of values for hash key , how do i access specific array of hash key? for example hash = { :animal =>["cat","dog","unicorn"] } and i want to access "dog" from :animal
diegoviola has joined #ruby
baroquebobcat has joined #ruby
<toretore> explain more better
<agent_white> hash[:animal][1]
ixti has quit [Ping timeout: 264 seconds]
<ponga> agent_white, thanks sir
<agent_white> \o
<ponga> i wonder what \o is
<agent_white> My giving you a high five.
<agent_white> s/my/me/
m3d has quit [Quit: Lost terminal]
carlyle has quit []
Arkaniad has quit [Remote host closed the connection]
krz has joined #ruby
sunya7a has quit [Ping timeout: 240 seconds]
foooobear has joined #ruby
ponga has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
alexju has joined #ruby
sunya7a has joined #ruby
aspires has quit []
foooobear has quit [Ping timeout: 240 seconds]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
Radcircle has joined #ruby
Zebroid has joined #ruby
lethjakman has quit [Ping timeout: 255 seconds]
<pontiki> or a wave
RubyPanther has quit [Ping timeout: 264 seconds]
<toretore> or a slap in the face
sunya7a has quit [Ping timeout: 244 seconds]
yakko has quit [Remote host closed the connection]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zebroid has quit [Ping timeout: 244 seconds]
MZAWeb has joined #ruby
Zenigor_ has quit [Remote host closed the connection]
sunya7a has joined #ruby
sunya7a has quit [Changing host]
sunya7a has joined #ruby
mercwithamouth has joined #ruby
Kricir has joined #ruby
yfeldblum has joined #ruby
rezzack has quit [Ping timeout: 255 seconds]
rmill has quit [Ping timeout: 252 seconds]
arrubin has quit [Quit: Textual IRC Client: www.textualapp.com]
RealMarc is now known as Marc
dc has joined #ruby
rotor has joined #ruby
Marc is now known as Guest77970
<EasyCo> Is `def self.method` the same as `def classname.method`?
rmill has joined #ruby
pu22l3r has joined #ruby
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
fgo has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Azure has quit [Quit: Blue Sky Fish]
Azure has joined #ruby
radic has quit [Ping timeout: 245 seconds]
radic has joined #ruby
yfeldblum has quit [Remote host closed the connection]
datafirm has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
datafirm has joined #ruby
mikepack has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
lethjakman has joined #ruby
Hanmac1 has joined #ruby
brunops has quit [Ping timeout: 244 seconds]
Ankhers has joined #ruby
axl_ has quit [Quit: axl_]
Radcircle has quit [Remote host closed the connection]
dukedave has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
Hanmac has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
amargherio has joined #ruby
xcv has joined #ruby
datafirm has quit [Ping timeout: 264 seconds]
xcv has quit [Remote host closed the connection]
MZAWeb has quit [Ping timeout: 240 seconds]
dc has quit [Remote host closed the connection]
braincrash has joined #ruby
havenwood has joined #ruby
yakko has joined #ruby
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
yetanotherdave has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
kyb3r_ has joined #ruby
hermanmu_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
hermanmunster has quit [Ping timeout: 255 seconds]
larissa has quit [Quit: Leaving]
danijoo has joined #ruby
djbkd has joined #ruby
yakko has quit []
b00stfr3ak has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
r0bby has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paf0 has joined #ruby
Beoran_ has joined #ruby
<ari-_-e> EasyCo: it depends what self is
r0bby is now known as robbyoconnor
GriffinHeart has joined #ruby
axl_ has joined #ruby
Takle has joined #ruby
MZAWeb has joined #ruby
Beoran__ has quit [Ping timeout: 272 seconds]
<EasyCo> ari-_-e: Can you elaborate?
freerobby has quit [Quit: Leaving.]
<ari-_-e> the value of self depends on the context
yfeldblum has joined #ruby
<pontiki> ari-_-e is now channeling the Dalai Llama
bmurt has quit []
MZAWeb has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 240 seconds]
Mooneye has joined #ruby
<ari-_-e> EasyCo: what I'm saying is that you can't know whether those are the same unless you know the context that they are written in
<ari-_-e> just those lines don't provide enough information
<EasyCo> class SomeClass; def SomeClass.some_method; end; end; vs class SomeClass; def self.some_method; end; end;
vpretzel has quit [Ping timeout: 240 seconds]
<EasyCo> Just different notation right?
codeurge has joined #ruby
zkay11 has quit [Quit: Leaving.]
sepp2k has quit [Read error: Connection reset by peer]
<ari-_-e> I believe those are the same, yes
CaptainJet has quit []
<ari-_-e> because self refers to SomeClass inside of the SomeClass block
Alina-malina has quit [Ping timeout: 240 seconds]
LexicalScope has quit [Read error: Connection reset by peer]
aniM has joined #ruby
lw has quit [Ping timeout: 244 seconds]
_maes_ has joined #ruby
b00stfr3ak has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
Zebroid has joined #ruby
yetanotherdave has quit [Quit: Lost terminal]
chrstphrhrt has quit [Quit: chrstphrhrt]
andrewjanssen has quit [Quit: Leaving...]
foooobear has joined #ruby
Guest7481 has joined #ruby
Guest7481 has quit [Client Quit]
Guest7481 has joined #ruby
Guest7481 has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 272 seconds]
andrewjanssen has joined #ruby
chrishough has quit [Quit: chrishough]
zhando has joined #ruby
oo_ has joined #ruby
<zhando> 2005/6 ruby was all the rage.. Where is she now?
Kricir has joined #ruby
Guest7481 has joined #ruby
<pontiki> taking care of her babies
<zhando> They have names?
<pontiki> you seem awfully familiar with her
<zhando> somewhat...
chrishough has joined #ruby
<ari-_-e> >> Babby.new
<eval-in> ari-_-e => uninitialized constant Babby (NameError) ... (https://eval.in/166547)
<sevenseacat> how is babby formed?
<ari-_-e> ruby doesn't know
andrewjanssen has quit [Quit: Leaving...]
Kricir has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
rmill is now known as rmill_
rmill_ is now known as rmill
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Arkaniad|Laptop has quit [Quit: Leaving]
brunops has quit [Quit: leaving]
<zhando> Just read this the other day: http://symbo1ics.com/blog/?p=1091. A rant about python in 2011. Could have said this about ruby in 2005 but to my recollection no was saying anything like it.
<pontiki> she took her love to town
Akiba_ has joined #ruby
lw has joined #ruby
<zhando> nobody
<Akiba_> hey guys
<Akiba_> can anyone help me make a script
Nameo0 has joined #ruby
<pontiki> blorp blorp
Wolland has quit [Read error: Connection reset by peer]
codeurge has joined #ruby
ghr has joined #ruby
<Nameo0> Hello, I was wondering if someone could help me with a failure of installing a gem on a Win7 machine?
<zhando> **silence**
Wolland has joined #ruby
<Nameo0> Here is the Gist with the filaure output.
codeurge has quit [Client Quit]
<jameyd> for a ruby gem that uses a database, what do people usually use for orm?
<sevenseacat> activerecord ;)
<Mon_Ouie> Nameo0: The problem is that the gem you're trying to install uses *nix shell syntax in its build script, it can't be built on Windows
<pontiki> Nameo0: tar is a GNU program that comes on unix/linux systems. I don't know whether you need to install something like cygwin or GNU Tools for win to get that to work
<jameyd> sevenseacat: i've had trouble finding how to use that outside of rails
<Nameo0> Okay, thank you very much for the help. =) I wish I was coding ruby on windows, but I can get my IDE to only work on Win since Wine fucks up on Ubuntu.
ghr has quit [Ping timeout: 240 seconds]
<pontiki> jameyd: there are also Sequel and DataMapper
<Akiba_> nameo0
<Akiba_> code it on windows
Guest7481 has quit [Ping timeout: 272 seconds]
<Akiba_> and then put it on a ubuntu server
<jameyd> also, i tried ohm, but the documentation is confusing in my opinion. i'm also not sure if redis is the right solution for this gem...
posixpascal has joined #ruby
<pontiki> Nameo0: what IDE are you using?
<jameyd> pontiki: i've seen DataMapper recommended. have you used it?
<Nameo0> RubyMine
<pontiki> jameyd: I have not
<Nameo0> pontiki: RubyMine
<pontiki> do i understand that you can't use RubyMine for linux for some reason, Nameo0 ?
<Nameo0> From what I have read, it should easily work on Linux, but minerefuses to work. =P
<pontiki> it doesn't use Wine...
diegoviola has quit [Read error: Connection reset by peer]
<Nameo0> Okay than, I am screwing up big time than. =/
<pontiki> are you trying to run the windows version on Wine?
<sevenseacat> indeed
<pontiki> or have you downloaded the linux version?
<Nameo0> I have the Linux version, or so I beleive.
kenneth has joined #ruby
<pontiki> odd, then, i have run the linux version on linux with no problems other than those caused by small memory
mmoretti has joined #ruby
<sevenseacat> so have i - it looks like shit, but it works
<Akiba_> so guys
<Akiba_> can you help me make a script
benzrf|offline is now known as benzrf
<Akiba_> that converts apache .htaccess to nginx.conf
<sevenseacat> o.O
<Nameo0> Akiba: puts "Hello"
<pontiki> no
<Nameo0> Is that want you needed help with?
<Akiba_> what it would have to do is strip some lines of code out of it
<Akiba_> then convert the syntax over
n_blownapart has joined #ruby
<sevenseacat> well off you go then
<zhando> puts "Hello World!"
axl_ has quit [Quit: axl_]
<pontiki> oh much better script, zhando !
<zhando> how do invoke that syntax checking bot again?
d34th4ck3r has quit [Quit: zzz]
<jameyd> is not using a database a common task for non web-development gems?
<jameyd> i just don't see a lot of info out there besides "here
<ari-_-e> >> puts "hi zhando"
<eval-in> ari-_-e => hi zhando ... (https://eval.in/166552)
<zhando> got it.
<jameyd> "here's a hack to use AR without rails, you must think i'm nuts!"
<Mon_Ouie> Well, many libraries and applications just don't need a database
razrunelord has joined #ruby
<Mon_Ouie> (and gems are mostly libraries)
amargherio has quit [Read error: Connection reset by peer]
<Akiba_> jameyd that wouldnt work for my case
<jameyd> Mon_Ouie: yeah, i get that impression... but i'm writing an NLP-related gem and i want to store data like source text and ngrams
<pontiki> so, like, i wrote a little thing that used AR with an in-memory sqlite database. was i nuts?
<Akiba_> that is only for the rewrite rules and i need the whole config
<Akiba_> i need a script to strip some lines of code convert the syntax and do a validity check
<Akiba_> and then put it in /etc/vhosts/*.conf
Arkaniad has quit [Ping timeout: 240 seconds]
<sevenseacat> Akiba_: how much are you paying?
<jameyd> Akiba_: that's a lot of work
mapimopi_ has joined #ruby
<Akiba_> how long would it take you to do?
baroquebobcat has joined #ruby
<jameyd> well to make it actually do it's job, at least as long as it would take to grok htaccess and nginx confs
<jameyd> and then the script on top of that
<pontiki> $120/hr to respond to an RFC, negotiate project price after acceptance.
<jameyd> that seems like something you'd find on github, with years of commits and releases...
mapimopi_ has left #ruby [#ruby]
<sevenseacat> yep
<pontiki> s/RFC/RFP/
fgo has quit [Remote host closed the connection]
<jameyd> why won't the existing tools work? none are perfect. it takes manual corrections most of the time
coderhs has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
<pontiki> also: nginx config and apache config are fundamentally different languages
<Akiba_> jameyd you can have it do its job pretty much perfectly
<Akiba_> if you were to take the time out and properly code it
razrunelord has quit [Ping timeout: 244 seconds]
<pontiki> then you show us how
<pontiki> seriously
<Akiba_> lol idk how
<Akiba_> but ik its possible
<pontiki> you are quite sure it's possible
<sevenseacat> like i said, how much are you paying?
<Akiba_> there are many similar things between both of them
Ankhers has joined #ruby
Ankhers has quit [Remote host closed the connection]
<Akiba_> and how much do you want for it?
mmoretti has quit [Quit: Leaving...]
<pontiki> i told you my price
<sevenseacat> i doubt anyone here will work for free, and thats what it is, work
mapi-mopi has joined #ruby
gondalier has joined #ruby
<sevenseacat> we'
<sevenseacat> rre not 'helping' you do anything
<sevenseacat> we're doing it for you
johnmolina has quit []
<mapi-mopi> console.log("fail");
johnmolina has joined #ruby
<jameyd> as far as DBs for gems go, you are all recommending either AR, Sequel, or just write it as a library that supposes the user will have data to feed it?
<zhando> >> 1.upto(3) {puts "Hello Rubyists!"}
<eval-in> zhando => Hello Rubyists! ... (https://eval.in/166556)
<zhando> hmm. fail?
<sevenseacat> no
<ari-_-e> zhando: no, look at the link
<pontiki> jameyd: i'm not sure what else you're looking for here...
<zhando> dang. I'm impressed!
<ari-_-e> impressed?
<zhando> yeah.. that's a sweet bot..
<jameyd> pontiki: i know it seems vague, i'm just having trouble engineering it at the point i'm at and wondering if i'm trying to stuff too much into the gem
sunya7a has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 240 seconds]
<jameyd> maybe i'm looking for a nudge toward idiomatic engineering for something like that
mapimopi_ has joined #ruby
zwer has quit [Ping timeout: 264 seconds]
kp666 has joined #ruby
sdouglas has joined #ruby
<jameyd> i eventually want to use the gem on a website, too, which might get real weird if it uses its own DB logic
mapimopi_ has left #ruby [#ruby]
mapimopi_ has joined #ruby
<pontiki> jameyd: if you're gem is going to depend on storing data, in a structured and easily retrievable way, external to the running program, perhaps persisted over time, i think depending on a database module is a thing you should do
n_blownapart has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<pontiki> that AR takes a bit of extra startup work outside of Rails isn't really all that big a consideration, if you're data models have relationships
mapimopi_ has left #ruby [#ruby]
mapimopi_ has joined #ruby
<jameyd> pontiki: it is going to depend on data, a lot of it, and hopefully persistent data. NLP-related stuff is far too data heavy to rely on storage in memory
<Akiba_> sevenseacat: how much money would you want
mapimopi_ has left #ruby [#ruby]
<sevenseacat> Akiba_: about the same as pontiki - initial money to start gathering requirements and then a proper quote after that.
<jameyd> yeah i'm not concerned with the work it'll take to set up but with the sentiment i've seen on the internet about "i know it's weird but check this out...."
sunya7a has joined #ruby
<pontiki> Akiba_: honestly, though, i wouldn't consider you a proper business risk at this point to even offer to do and RFP
<Akiba_> whats an rfp
<pontiki> request for proposal
<jameyd> Akiba_: it might help to describe your problem at least a little, because i'm positive you don't need a script for this
<jameyd> but i know next to nothing about your needs
<Akiba_> converting apache htaccess rules to nginx rules
<Akiba_> so that you dont have to use apache
<jameyd> right and like i said there are many tools out there that attempt to do this for you
<jameyd> and get you very close to where you need to be
sdouglas has quit [Remote host closed the connection]
<pontiki> jameyd: i don't think you should worry all that much about how weird someone might perceive it
Arkaniad has joined #ruby
<pontiki> pulling your gem under rails at some point in the future might require some tweaking, sure
<pontiki> but that's the future
<jameyd> pontiki: my experience with ruby so far has been one of convention, and i like it, and doing things idiomatically has saved me much heartache coming from python, php, etc. just my initial reaction to seeing that sentiment.
<pontiki> it's not that choosing AR now is going to preclude you from doing so in the future
<jameyd> thanks for the nudge
coderhs has joined #ruby
<pontiki> take a spin through ruby toolbox and see what other choices are out there as well
<jameyd> Akiba_: my advice to you would be to just learn nginx a bit and rewrite them yourself.
<jameyd> it will be much cheaper in terms of time and money, and you'll learn something
rmill has quit [Quit: peace out!]
<jameyd> unless you for some reason have 1 million vhosts that need to be switched at the same moment, and your apache confs are 100s of lines long
<jameyd> in which case i still suggest rethinking why the problem is so complex. simplify your setup, start fresh
mapi-mopi has quit [Quit: WeeChat 0.3.7]
<sevenseacat> probably good advice
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> very good advice. it's what i did going from apache to nginx
bitcycle_ has joined #ruby
<pontiki> so it must be good advice :D
<jameyd> haha
Cache_Money has quit [Quit: Cache_Money]
Alina-malina has joined #ruby
<jameyd> overly complicated apache configurations that make you feel like you need a script to convert them is a smell
Vivekananda has quit [Ping timeout: 272 seconds]
<pontiki> good lord, was it ever
<pontiki> from godaddy's rotten setups
<jameyd> "code reek"
<Akiba_> jameyd: learning nginx and doing it myself is not a solution
<Akiba_> that solution does not scale
<pontiki> learning... does not scale
<pontiki> interesting take
<sevenseacat> i guess its about time vs money
redlegion has quit [Ping timeout: 240 seconds]
n_blownapart has joined #ruby
oo_ has joined #ruby
<pontiki> perhaps
<Akiba_> lol i mean manually changing them does not scaler
lewix has quit [Remote host closed the connection]
<Akiba_> scale*
<jameyd> learning is the most scalable solution i can imagine
<pontiki> but irc is a rather odd place to come to hire someone
<bitcycle_> Hey all. I've installed ruby 1.9.3 to /opt/company/bin/ruby from source and now I'm trying to install rice, but I get this strange error: /opt/mcc/bin/ruby -I/home/bitcycle/git/rice/ruby/lib -C t1 extconf.rb --with-cppflags="-I/home/bitcycle/git/rice" --with-libpath="/home/bitcycle/git/rice/rice" \n checking for main() in -lrice... no // has anyone seen this before and resolved this issue?
unholycrab has quit [Ping timeout: 240 seconds]
lewix has joined #ruby
<pontiki> is this any different than before, bitcycle_ ?
oo_ has quit [Remote host closed the connection]
bubbajones has quit [Ping timeout: 244 seconds]
<bitcycle_> pontiki: sorry, I guess not. I realize that I'd mentioned it here before, but I wasn't sure that anyone took notice of my question. Did you happen to respond before?
<pontiki> no, but other people did
<bitcycle_> pontiki: shoot, is there an irc log?
<sevenseacat> check the channel topic
<pontiki> what looks odd to me, bitcycle_, is you say you installed ruby to /opt/company/bin/ruby, but that error indicates it's using /opt/mcc/bin/ruby
prathamesh has joined #ruby
<bitcycle_> sevenseacat: kk, I'll check.
<pontiki> is that what you intend?
n_blownapart has quit [Remote host closed the connection]
<sevenseacat> he probably tried to anonymize the name :P
<bitcycle_> pontiki: I'm dumb, I meant to not mention company-related acronyms on irc is all.
<bitcycle_> lol.
<pontiki> oh
<Akiba_> lol
<Akiba_> mcc is the company?
<pontiki> i really have to stop taking things at face value, don't i
lewix has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
mikepack has joined #ruby
<jameyd> man, redis would be nice for my project, but i feel like my data is a level too deep...
JohnBat26 has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
<jameyd> pontiki: ruby toolbox is neat, thanks for showing me
kp666 has quit [Ping timeout: 272 seconds]
<bitcycle_> pontiki: I just finished looking through shevy's response from the logs. He advised to find librice.so and update LD_LIBRARY_PATH, which is what I've attempted, but seems not to work. Funny thing is that installing rice 1.4.3 on RVM works just fine.
<shevy> barely
<shevy> I never mentioned LD_LIBRARY_PATH
<bitcycle_> shevy: I assumed that's what you meant by "find the librice.so file".
<shevy> did I write that?
aniM has quit [Ping timeout: 245 seconds]
<pontiki> jameyd: is your data fundamentally key-value pairs?
<bitcycle_> shevy: Does it really matter that much?
<shevy> here is my backlog bitcycle
<shevy> <shevy> I dont know rice
<shevy> <shevy> but it seems as if it tries to find librice.so
<shevy> bitcycle, yeah because I don't like being attributed to statements I never made, sorry
<pontiki> i don't know what you store for NLP related data
<bitcycle_> shevy: whatever.
bitcycle_ has quit [Quit: Page closed]
Doppp has joined #ruby
gondalier has quit []
<sevenseacat> rawr
Zebroid has joined #ruby
<jameyd> pontiki: the core of it is, ngrams as a key and list of potential following words as value. but i want to separate them by source text, requiring an extra level
<jameyd> so %w(the boat's bottom) could be in moby dick's corporus as well as... i dunno, some encyclopedia's
<shevy> lol
kp666 has joined #ruby
<jameyd> looking at couchdb now, which i've heard of but never read about
<shevy> >> %w(the boat's bottom)
<eval-in> shevy => ["the", "boat's", "bottom"] (https://eval.in/166557)
<pontiki> horatio hornblower, say
<pontiki> also look at mongodb and riak?
srnty has joined #ruby
<jameyd> yeah i fear mongo for is non-persistence
Eyes has quit [Quit: X probably crashed]
<jameyd> riak though, i'll read about
gondalier has joined #ruby
<pontiki> though, yes, what i think you're talking about is not just key-value, but relationships
fgo has joined #ruby
Eyes has joined #ruby
<jameyd> meaning.... just use pg
<jameyd> haha
Zebroid has quit [Ping timeout: 255 seconds]
kireevco has quit [Quit: Leaving.]
<pontiki> i don't know, honestly
<jameyd> yeah, i actually will need to query quite a bit, and use relationships. the more i tihnk about it the more i can envision the types of sql queries i'd need
<pontiki> that wasn't where i was going at all
<pontiki> that's helpful
goleldar has joined #ruby
ARCADIVS has joined #ruby
zorak has quit [Read error: Connection reset by peer]
rhyz has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
mgberlin_ has quit [Ping timeout: 255 seconds]
lethjakman has quit [Ping timeout: 264 seconds]
Cache_Money has joined #ruby
agent_white has quit [Quit: gnight]
Kricir has joined #ruby
lw has quit [Quit: s]
lw has joined #ruby
bjhaid has quit [Ping timeout: 255 seconds]
rmill has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
n_blownapart has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<jameyd> awesome, i think i'm going to wrassle with Sequell tomorrow and see what happens
kireevco has joined #ruby
<jameyd> thanks everybody, have a good night!
therealGent has quit [Quit: Leaving]
Kricir has quit [Ping timeout: 240 seconds]
n_blownapart has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
djbkd has quit [Remote host closed the connection]
stytown has joined #ruby
n_blownapart has quit [Remote host closed the connection]
prathamesh has quit [Remote host closed the connection]
Inside has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Channel6 has quit [Quit: Leaving]
ghr has joined #ruby
aganov has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
lewix has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
prathamesh has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
earthquake has quit [Quit: earthquake]
pu22l3r has joined #ruby
lewix has quit [Remote host closed the connection]
<Akiba_> anyone know how to anycast?
lewix has joined #ruby
MZAWeb has joined #ruby
DanielI has quit [Quit: Leaving]
willgorman has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
High-Q-Brah has quit [Ping timeout: 272 seconds]
cobakobodob has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
tobago has joined #ruby
mikepack has joined #ruby
lewix has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
V_ has joined #ruby
foooobear has quit [Quit: Computer has gone to sleep.]
JBreit has joined #ruby
Barrayar has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
dukedave has joined #ruby
ghr has joined #ruby
Xeago has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
RubyPanther has joined #ruby
bjhaid has joined #ruby
ariedler has joined #ruby
<ariedler> what seems like a stupid question; I want to print all class level variables... can't find how
spastorino has quit [Quit: Connection closed for inactivity]
northfurr has quit [Quit: northfurr]
Parker0 has joined #ruby
ndrei has joined #ruby
<Mon_Ouie> Module#class_variables
Xeago has quit [Read error: Connection reset by peer]
<ariedler> Mon_Ouie: thanks, wow what a derp
d34th4ck3r has joined #ruby
buub has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
Morkel has joined #ruby
paradisaeidae has joined #ruby
fgo has joined #ruby
unholycrab has joined #ruby
tkuchiki_ has joined #ruby
bubbajones has joined #ruby
redlegion has joined #ruby
gondalier has quit []
MZAWeb has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
MZAWeb has joined #ruby
Wolland has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
end_guy has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
Wolland has joined #ruby
cobakobodob has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
Zebroid has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
wallerdev has joined #ruby
techsethi has joined #ruby
<stian> morning :)
Zebroid has quit [Ping timeout: 245 seconds]
dreamchaser has joined #ruby
kate_r has joined #ruby
dreamchaser has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 240 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140623175014]]
heftig has quit [Quit: Quitting]
end_guy has joined #ruby
posixpascal has quit [Ping timeout: 252 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
V_ has quit [Quit: Ex-Chat]
wowXD has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
dangerousdave has joined #ruby
johnmolina has quit []
prathamesh has quit [Remote host closed the connection]
bal has joined #ruby
x1337807x has joined #ruby
pu22l3r has joined #ruby
kenneth has joined #ruby
IceDragon has quit [Quit: Space~~~]
dayepa has quit [Quit: dayepa]
anaeem1_ has joined #ruby
sigurding has joined #ruby
dayepa has joined #ruby
pu22l3r has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
tagrudev has joined #ruby
phinfonet has quit []
sunya7a has quit [Ping timeout: 272 seconds]
coderhs has joined #ruby
razrunelord has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
prathamesh has joined #ruby
dreamchaser has joined #ruby
kireevco has quit [Read error: No route to host]
mattmcclure has quit [Quit: Connection closed for inactivity]
srnty has quit [Quit: srnty]
razrunelord has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
kireevco has left #ruby [#ruby]
srnty has joined #ruby
vyorkin has joined #ruby
goleldar has quit [Remote host closed the connection]
kiri has joined #ruby
dreamchaser has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vyorkin has quit [Ping timeout: 240 seconds]
Akiba_ has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
wowXD has joined #ruby
posixpascal has joined #ruby
caveat- has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
kireevco has joined #ruby
wowXD_ has joined #ruby
kireevco has left #ruby [#ruby]
apeiros has joined #ruby
djbkd has quit [Remote host closed the connection]
oo_ has joined #ruby
CorpusCallosum has quit [Quit: Computer has gone to sleep.]
wowXD has quit [Ping timeout: 264 seconds]
kp666 has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 240 seconds]
wowXD_ has quit [Ping timeout: 255 seconds]
caveat- has joined #ruby
techsethi_ has joined #ruby
kwd has joined #ruby
Mooneye has quit [Quit: Leaving]
kireevco has joined #ruby
techsethi has quit [Ping timeout: 264 seconds]
techsethi_ is now known as techsethi
Deejay has joined #ruby
Deejay is now known as Guest11771
relix has joined #ruby
kireevco has quit [Quit: Leaving.]
ariedler has quit []
kilk_ has joined #ruby
kireevco has joined #ruby
kireevco has left #ruby [#ruby]
Zebroid has joined #ruby
sinkensabe has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
Symbiosisz has joined #ruby
terlar has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
Zebroid has quit [Ping timeout: 264 seconds]
<Symbiosisz> I'm having toruble getting data from my regular expression into my replacement string using gsub. http://pastie.org/pastes/9321800/text?key=30bwyr9kdqnj83oyq2rjw
Macaveli has joined #ruby
<Symbiosisz> I was under the impression that $1 should include my first match, and $2 should include the second. Am I missing something?
ponga has joined #ruby
<ponga> when i use 'private' for method, all other methods below become private too, how do i solve it other than putting private methods at the end?
<Hanmac1> Symbiosisz: read the doc about gsub: this is in the sample: "hello".gsub(/([aeiou])/, '<\1>') #=> "h<e>ll<o>"
Hanmac1 is now known as Hanmac
<Symbiosisz> Ah, great, thanks Hanmac
<Hanmac> ponga: private <methodname> only makes the given method private
<Hanmac> ponga: or in newer ruby: private def methodname; ...; end;
<ponga> ok im trying !
<ponga> let me see
<ponga> ...
Guest11771 has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
jprovazn has joined #ruby
Gadgetoid has joined #ruby
sk87 has joined #ruby
fabrice31 has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Remote host closed the connection]
MZAWeb has quit [Remote host closed the connection]
sdouglas has joined #ruby
pu22l3r has joined #ruby
mikepack has joined #ruby
GriffinHeart has joined #ruby
alexju has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 255 seconds]
olivier_bK has quit [Ping timeout: 240 seconds]
brain_shim has quit [Ping timeout: 244 seconds]
mikepack has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 244 seconds]
brain_shim has joined #ruby
Deejay_ has joined #ruby
pu22l3r has joined #ruby
fgo has joined #ruby
Eiam has quit [Ping timeout: 260 seconds]
francisfish has joined #ruby
alem0lars has joined #ruby
blackmesa has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
fgo has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
ynkbs has joined #ruby
alex88 has joined #ruby
ascarter has joined #ruby
razrunelord has quit [Ping timeout: 264 seconds]
mijicd has joined #ruby
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah has joined #ruby
caveat- has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 272 seconds]
vt102 has quit [Remote host closed the connection]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
ridget has joined #ruby
francisfish has quit [Ping timeout: 255 seconds]
ridget has quit [Client Quit]
caveat- has joined #ruby
charliesome has joined #ruby
wowXD has joined #ruby
prathamesh has quit [Remote host closed the connection]
lolmaus_ has joined #ruby
jprovazn has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 240 seconds]
wowXD has quit [Ping timeout: 240 seconds]
alem0lars has quit [Quit: Going AFK...]
lolmaus has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby
caveat- has quit [Ping timeout: 264 seconds]
dukedave has quit [Ping timeout: 240 seconds]
Deejay_ has quit [Ping timeout: 272 seconds]
dANOKELOFF has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
ta has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
danijoo has joined #ruby
kate_r has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
ARCADIVS has joined #ruby
Zebroid has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
kwd_ has joined #ruby
LekeFly has joined #ruby
caveat- has joined #ruby
Zebroid has quit [Ping timeout: 255 seconds]
obs has joined #ruby
kwd has quit [Ping timeout: 240 seconds]
kwd_ is now known as kwd
stytown has quit [Quit: stytown]
Royalb15 has joined #ruby
AlexRussia has joined #ruby
LiohAu has joined #ruby
TDJACR has joined #ruby
ndrei has joined #ruby
Kricir has joined #ruby
hermanmu_ has quit [Remote host closed the connection]
greenarrow has joined #ruby
hermanmunster has joined #ruby
hermanmunster has quit [Remote host closed the connection]
mus1cb0x has joined #ruby
hermanmunster has joined #ruby
apeiros has joined #ruby
<mus1cb0x> is radar the power abusing op of #rubyonrails an op in here too?
<mus1cb0x> if so i won't even bother asking my Q
hermanmunster has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<sevenseacat> lol
hermanmunster has joined #ruby
<sevenseacat> trollololol
<mus1cb0x> troll is incorrect
yacks has quit [Ping timeout: 255 seconds]
<mus1cb0x> it's a legitimate question, trigger happy
<havenwood> Question?
JasonG_ has joined #ruby
Joulse has joined #ruby
foooobear has joined #ruby
<Mon_Ouie> I don't think I've even seen him here in a very long time
<Mon_Ouie> Anyway if you want the answer to that you can just ask ChanServ…
Kricir has quit [Ping timeout: 255 seconds]
<mus1cb0x> anyone here a former/current py dev? i'm curious what someone who knows both thinks about them
* wasamasa raises a hand
<greenarrow> mus1cb0x: scum
<mus1cb0x> wasamasa: is its community friendlier?
ephemerian has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
<wasamasa> mus1cb0x: well, the irc channel definitely is :P
* havenwood mutters something about Tennent's correspondence principle
mikecmpbll has joined #ruby
<wasamasa> mus1cb0x: that one forum I found is infested with noobs
pu22l3r has quit [Ping timeout: 272 seconds]
<wasamasa> mus1cb0x: which is minimally better than just a german forum existing
<mus1cb0x> which lang do you like best, and why?
<wasamasa> only thing I find kind of weird is that the python camp seems to be more aware of sexism
caveat- has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
kwd has quit [Read error: Connection reset by peer]
kwd has joined #ruby
<wasamasa> mus1cb0x: from all I know?
JasonG_ has quit [Ping timeout: 240 seconds]
<mus1cb0x> well yea
<wasamasa> not sure yet
krz has quit [Ping timeout: 240 seconds]
<wasamasa> I know python best, so I'd still use it on the offchance
<wasamasa> the lisps are very fun, but hunting for libraries isn't
<wasamasa> just started learning ruby recently
<mus1cb0x> thoughts on ruby so far?
<havenwood> bees knees
dangerousdave has quit [Read error: Connection reset by peer]
<wasamasa> as they say there's no perfect language :P
<wasamasa> and I'm slowly starting to realize that
<havenwood> hem, is it the knees of the bees or a single bee's knees?
lolmaus has joined #ruby
<wasamasa> well, I like how it feels for writing scripts
<havenwood> snakes have no knees, sorry python
<wasamasa> because it comes with better regex support and lots of shorthand
dangerousdave has joined #ruby
<mus1cb0x> what do you think sux about py?
<wasamasa> what I don't like is that it feels too magic at times
<wasamasa> my co-worker is learning rails at the moment and the problems he's run into are scary
<havenwood> wasamasa: like what?
<wasamasa> havenwood: he found out it does some sort of automatic pluralization on routes and all
<wasamasa> havenwood: then did a minor mistake by taking it for granted and had to debug it for half a day to find out he used a pluralized form accidentally
<wasamasa> havenwood: he summed it up as "It would never have happened if it weren't a default"
<havenwood> opinionated framework is opinionated
<wasamasa> mus1cb0x: well, the language itself is rounded up pretty well, so what I dislike is mostly about the social effects
<wasamasa> mus1cb0x: like the py2/3 split
mikepack has quit [Ping timeout: 272 seconds]
<mus1cb0x> such as?
prateekp has joined #ruby
lolmaus_ has quit [Ping timeout: 245 seconds]
<havenwood> pip
<wasamasa> and what some people do when it comes to packaging
<wasamasa> look at calibre for instance
obs has quit [Quit: Konversation terminated!]
<wasamasa> they just decided to grab all libraries they needed and include them in the sources
<wasamasa> and thus became even slower and more complex to hack on
<wasamasa> srsly
qba73 has joined #ruby
timonv has joined #ruby
<wasamasa> see that?
<wasamasa> ok, it could have been worse and they could have used submodules :P
<wasamasa> but still
anarang_ has joined #ruby
Valesk has joined #ruby
fgo has joined #ruby
<prateekp> how to make regex of the string ""dq/osconcepts/Bootstrap (operating system)
caveat- has joined #ruby
pu22l3r has joined #ruby
<wasamasa> what I find nice is that it seems to be taking over the scientific sector
<wasamasa> so less fortran, r and matlab and mathematica
anarang_ has quit [Client Quit]
<mus1cb0x> ya?
<wasamasa> there are some minor language nitpicks I have
anarang_ has joined #ruby
<mus1cb0x> py you mean?
<wasamasa> like that I'm not able to name something file, else it would overwrite the file function
<wasamasa> yes
<wasamasa> I keep seeing articles about numpy, scikit-learn, pandas, ...
<wasamasa> and I don't think it's just some temporary trend
<mus1cb0x> ya?
<wasamasa> but we'll see how that plays out :P
timonv_ has joined #ruby
<wasamasa> I'll keep my python skills around in case I ever go for machine learning and all that jazz
einarj has joined #ruby
olivier_bK has joined #ruby
<mus1cb0x> think ruby is better at anything yet?
<wasamasa> yes, the lambdas for example
<wasamasa> python lambdas are intentionally limited
<wasamasa> and it's pretty cool lots of things use blocks
<wasamasa> and turn them into DSL-likes even
Xeago has quit [Remote host closed the connection]
<havenwood> Ruby libraries seem to fairly frequently break new ground then get copied widely.
<mus1cb0x> which would you pick for rapid web app dev?
<wasamasa> that, too
Valesk has quit [Client Quit]
pu22l3r has quit [Ping timeout: 240 seconds]
<wasamasa> I was quite surprised that flask was inspired by sinatra
<wasamasa> and django by rails
trepidaciousMBR has joined #ruby
trepidaciousMBR has quit [Client Quit]
nfk has joined #ruby
<havenwood> Ruby is quite nice. Nicer than Python in any case. Also we go to the new version when it comes out, so we wont die.
fgo has quit [Ping timeout: 272 seconds]
<havenwood> Ruby 2 \o/
<wasamasa> or stuff like unicorn that was copied and turned into gunicorn
<havenwood> Copy ALL THE THINGS
<wasamasa> the most popular python http server
razum2um has joined #ruby
<havenwood> and chef/puppet to salt, etc etc
qba73 has quit [Remote host closed the connection]
<wasamasa> well, I'm not convinced by them yet :P
Xeago has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
<havenwood> mus1cb0x: Ruby is a less conservative, quicker moving community.
<wasamasa> ansible's approach looks best to me for now
qba73 has joined #ruby
<wasamasa> just ssh
<havenwood> been having a bit of fun playing with docker
<mus1cb0x> wasamasa: which would you pick for rapid web app dev?
<wasamasa> mus1cb0x: I was previously using python with flask
gkra has quit [Ping timeout: 260 seconds]
<wasamasa> mus1cb0x: writing a blog with it which is still just 200 lines of python
<wasamasa> mus1cb0x: but I'll write some stuff in padrino, then rails to compare
Xeago has quit [Remote host closed the connection]
<mus1cb0x> not sinatra?
jackneill has joined #ruby
gkra has joined #ruby
<wasamasa> well, it's supposedly better according to a friend
<havenwood> the lotus code is looking quite nice: http://lotusrb.org
<havenwood> mus1cb0x: padrino is on top of sinatra
roolo has joined #ruby
mailo has joined #ruby
<wasamasa> lotus looks to me like the clojure web frameworks
<wasamasa> or rather, their parts
<havenwood> :)
<wasamasa> I haven't tested that approach either
<wasamasa> but it might work out, who knows
Photism has joined #ruby
<havenwood> hobbit is a nifty uber minimalist framework for a bit more than rack but a bit less than sinatra: https://github.com/patriciomacadden/hobbit#readme
<mus1cb0x> wasamasa: having only done some web app dev so far, py or ruby do you lean towards for being best for rapid web app dev for you?
<wasamasa> speaking of which
<wasamasa> what is the deal with rack?
Royalb15 has quit [Quit: Leaving]
<wasamasa> mus1cb0x: as I've said, I've only done a bit in flask and it's been nice
<wasamasa> mus1cb0x: however I hope sinatra/padrino are even better
himsin has joined #ruby
<havenwood> Rack Webserver (Unicorn Rainbows! Thin Puma Passenger Webrick Reel-Rack) -> Rack Middlewear -> Rack Framework (Rails Sinatra NYNY Hobbit Cuba Ramaze Camping Scorched Lotus)
<ddv> this keeps redirecting in Safari: Libraries » lotus-model (0.1.1)
<ddv> Processing lotus-model
<ddv> lotus-model (0.1.1) is being processed. You'll be redirected when the pages are built, it shouldn't take much longer.
pranny has joined #ruby
<wasamasa> mus1cb0x: I'll see whether they just offer shorter code or better design, too
<mus1cb0x> yea that's what i wanna know...
<havenwood> wasamasa: You can just use pure Rack if you don't want to use a framework, but something minimalist like NYNY or Hobbit tends to be a nicety.
<wasamasa> mus1cb0x: until then I'd say it comes down to what philosophy you agree more with
<csmrfx> is rack a good webserver?
<mus1cb0x> also, writing ruby for a web app, vs py
<csmrfx> I dont think so
<havenwood> wasamasa: Or there are some new non-Rack options coming up, like Lattice.
<wasamasa> mus1cb0x: what I can tell you is that using coffeescript to write a web app is something I'll never do again
<havenwood> csmrfx: webmachine ftw
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
<csmrfx> I dont think so
Takle has joined #ruby
<wasamasa> mus1cb0x: especially not in combination with ember
vyorkin has joined #ruby
<mus1cb0x> is webmachine slow? being a ruby based web server
<csmrfx> for devving any old webrick will do
<wasamasa> havenwood: no, I mean, why do web-related packages say they're compatible with rack
<havenwood> mus1cb0x: Rack is fast. Webmachine is fast.
<wasamasa> havenwood: that's what I've been wondering about
<havenwood> wasamasa: They're all Rack frameworks, just built on top of Rack.
<mus1cb0x> what does rack do?
<csmrfx> app-server
<mus1cb0x> what does that actually entail?
<csmrfx> that is your homework now
<wasamasa> havenwood: so it's just because they community decided it's the best fundament they've come up with?
<havenwood> mus1cb0x: There are a bunch of standardized options for Rack web servers that you can use with Rack. Most often you also use a Rack framework, like Rails or Sinatra as well.
<mus1cb0x> is rack async/event based?
caveat- has quit [Disconnected by services]
<mus1cb0x> i was thinking of using nginx
<csmrfx> for what?
<mus1cb0x> for web serving i mean
Takle has quit [Remote host closed the connection]
<havenwood> wasamasa: It was standardized around and a nice selection of options cropped up. There are some new options forming around webmachine but they aren't mature yet.
<csmrfx> sounds like a plan
caveat- has joined #ruby
<havenwood> mus1cb0x: nginx is a very popular option for a reverse proxy
Xeago has joined #ruby
<mus1cb0x> would i use rack as the app server backend behind nginx?
<havenwood> mus1cb0x: you'd put your rack webserver behind the nginx reverse proxy
<csmrfx> well, yes
<mus1cb0x> why use rack's web server too?
<csmrfx> if you expect low traffic?
<havenwood> mus1cb0x: nginx would simply handle load balancing and serving static files if you'd like
<mus1cb0x> i'm talking about production/serving
<wasamasa> havenwood: I see then
Xeago has quit [Remote host closed the connection]
<havenwood> mus1cb0x: you can do a pure Ruby option like Rainbows! and cut out nginx, but since it's so darned fast and good at what it does it it typical to put nginx in front of something like unicorn
einarj has quit [Ping timeout: 245 seconds]
qba73 has quit []
DouweM has joined #ruby
<havenwood> mus1cb0x: with little traffic no need
<mus1cb0x> what's unicorn
<ddv> just use phusionpassenger with nginx
<havenwood> mus1cb0x: one of many Rack webservers
<mus1cb0x> again i'm not talking low traffic. rather, high traffic
<mus1cb0x> ah
<havenwood> Unicorn Rainbows! Thin Puma Passenger Webrick Reel-Rack, etc
<havenwood> mus1cb0x: unicorn, thin, puma or passenger would all be solid options behind nginx
<havenwood> mus1cb0x: with various ups and downs
<mus1cb0x> the variety is overwhelming :)
<tobiasvl> railbows??
Xeago has joined #ruby
<havenwood> mus1cb0x: unicorn uses process preforking, thin is evented, puma is thread pools, etc
einarj has joined #ruby
chth0n has joined #ruby
<havenwood> tobiasvl: Rainbows! has many options, e.g., a good one is: http://rainbows.bogomips.org/Rainbows/XEpollThreadPool.html
<havenwood> tobiasvl: an evented thread-pool of unicorn processes
<havenwood> ^
<mus1cb0x> i like evented
<mus1cb0x> webmachine is evented too
<havenwood> mus1cb0x: thin is nice and simple
krz has joined #ruby
<havenwood> i tend to use unicorn, but puma is looking really good these days though
<havenwood> http://puma.io
noop has joined #ruby
wowXD has joined #ruby
<havenwood> but since we've standardized around Rack, you can swap out parts quite easily :)
caveat- has quit [Ping timeout: 264 seconds]
<havenwood> try same app with unicorn, puma, thin and see varying amounts of throughput and memory usage, etc.
<wasamasa> mhh, I see
elaptics`away is now known as elaptics
wowXD has quit [Read error: Connection reset by peer]
<havenwood> webrick is the one that ships with Ruby
<havenwood> isn't half bad really
wowXD_ has joined #ruby
<havenwood> though folk don't tend to use it outside heroku :P
<sevenseacat> works great in development
<havenwood> sevenseacat: agreed ;)
yoroy has joined #ruby
rhyz has quit []
<wasamasa> and what's the deal with heroku?
<sevenseacat> what about it?
yoroy has left #ruby [#ruby]
<wasamasa> dunno, people just mention it all the time
<canton7> hosting platform. supports ruby. git-based deployment. free tier.
<wasamasa> my theory on that is its free plan plus the deployment
<Mon_Ouie> Also Matz works there
<havenwood> wasamasa: one option to deploy a Rack app, there are many now - just you do see webrick apps deployed on it because if you don't specify otherwise it deploys with webrick
<canton7> the free tier makes it quite handy for testing stuff / personal projects
caveat- has joined #ruby
<havenwood> Mon_Ouie: that's right, they fund a few of the ruby-core huh
<havenwood> very nice
<shevy> guys
<shevy> it's time again
<shevy> down with the pants
kate_r has joined #ruby
andrewlio has joined #ruby
<apeiros> what pants?
chrishough has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vyorkin1 has joined #ruby
<wasamasa> well, time for me to test it then
kate_r has quit [Client Quit]
lkba has quit [Ping timeout: 240 seconds]
DouweM has quit [Ping timeout: 240 seconds]
<pontiki> testing your pants?
<apeiros> test dropping your pants?
spider-mario has joined #ruby
Blaze_Boy has joined #ruby
vyorkin has quit [Ping timeout: 272 seconds]
<havenwood> test passing, time to refactor
<shevy> refactor your pants?
* wasamasa is off to work
ARCADIVS has quit [Quit: WeeChat 0.4.3]
Zebroid has joined #ruby
terlar has joined #ruby
Arkaniad has quit [Ping timeout: 255 seconds]
<mus1cb0x> seems like there are more jobs for python wasamasa
<ponga> more jobs for python than ruby?
<havenwood> so many ruby jobs..
<shevy> waaaaa
<shevy> long live ruby!
<shevy> down with the pythons
dumdedum has joined #ruby
<ponga> i see shevy loves ruby
danijoo has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kaspergrubbe has joined #ruby
<sevenseacat> as much as he loves javascript
<havenwood> ha
danijoo has joined #ruby
sk87 has joined #ruby
<havenwood> opal!
moritzs has joined #ruby
<havenwood> :P
sk87 has quit [Client Quit]
duncannz has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
<ponga> i love js and ruby
<ponga> actually i love js, ruby and python but not java
Zebroid has quit [Ping timeout: 255 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
<shevy> ponga hmm
<shevy> ponga it depends
<shevy> what I like is the elegance
<ponga> depends what
<shevy> ponga well ruby has a few quirks here and there
<ponga> do you think java has elegance shevy
<shevy> not that I could see
<ponga> too
<shevy> years ago, I read from a guy who wrote a game in java
<shevy> he stopped after it reached 500k lines of code
<ponga> i never liked how you get user input in java (from the book i read)
pu22l3r has joined #ruby
<ponga> lol
<shevy> and one reason he said that he stopped was because he no longer wanted to maintain it and thought that the complexity can be a big problem if it leads to a proliferation of lines of code
<canton7> ruby and java are quite different beasts, and have different uses
anarang_ has quit [Quit: Leaving]
<ponga> what language would you write game in shevy
<shevy> though admittedly, I find making games actually extremely difficult in general
<ponga> it is
workmad3 has joined #ruby
<ponga> it is
<shevy> look at apeiros
<shevy> he already lost motivation like 10 times with his latest game ;-)
<canton7> *any* project that's big enough to reach 500k lines starts to become tricky to maintain :P
timonv_ has quit [Remote host closed the connection]
<shevy> canton7 I am quite happy with my ruby code so far in general
zarubin has joined #ruby
<ponga> but can you write game in shevy i think that's difficult
<shevy> I'd get eye cancer if the same amount of functionality would be in java code
<ponga> *in ruby
tessi_zz has quit [Ping timeout: 260 seconds]
<shevy> ponga I tried!
<shevy> but I never finished
<ponga> so you tried :)
rdark has joined #ruby
<shevy> yeah...
<ponga> how did you manage graphics part
<ponga> rendering images on the fly
<shevy> well, I finished things like minesweeper in ruby-gnome, though it had a few minor bugs
<shevy> ruby-gnome
<ponga> bugs in minesweeper
<shevy> because from what I can see, it was the most complete stuff
<ponga> like what
<shevy> ponga I don't quite recall...
<ponga> what kind of bug can you have..
<ponga> in minesweeper
<shevy> I stopped writing ruby-gnome things for some years, only since a year I am slowly digging through ancient code
<shevy> and turning things into .gem files too
tessi_zz has joined #ruby
<ponga> is ruby limited to command-line uses ?
sdouglas has quit [Ping timeout: 264 seconds]
<sevenseacat> ponga: a lot of bugs are possible
<shevy> ponga well you need to come up with an idea how to simulate minesweeper
jonasbjork has joined #ruby
<shevy> my idea was simply to make all fields on the game map Gtk::Button childs
<ponga> i was joking sirs
trepidaciousMBR has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
<shevy> but minesweeper is actually quite simple
<shevy> and ruby-gnome provided all GUI components anyway haha
klaut has joined #ruby
caveat- has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
<ponga> oh and shevy remember when i annoyed everyone about gui solution for ruby
trepidaciousMBR_ has joined #ruby
alem0lars has joined #ruby
<ponga> i actually settled with rails
<ponga> html was what i needed
prateekp has quit [Ping timeout: 246 seconds]
posixpascal has quit [Remote host closed the connection]
d34th4ck3r has quit [Quit: zzz]
oo_ has quit [Remote host closed the connection]
trepidaciousMBR has quit [Ping timeout: 264 seconds]
trepidaciousMBR_ is now known as trepidaciousMBR
Timmee has joined #ruby
oo_ has joined #ruby
caveat- has joined #ruby
<shevy> ack
<shevy> :(
<ponga> what ack shevy
<shevy> you entered the rails world
<ponga> why
<shevy> you are no longer one of us
<ponga> what!?
<shevy> I don't think we can be friends anymore :(
<ponga> but my chatterbot core is built in ruby!
<shevy> hmm
mijicd has quit [Remote host closed the connection]
vyorkin1 has quit [Ping timeout: 272 seconds]
<shevy> ponga, let's say you write a rails app
<ponga> i just needed rails for rendering html canvas function(for graphics)
<shevy> what if someone else wants to use it
<ponga> and to put my chatbot on web too
<ponga> what do you mean shevy
<shevy> well
<shevy> you run a chatbot on your web
mikepack has joined #ruby
<ponga> yeah
<shevy> what if someone else wants to run that chatbot?
<ponga> hm.. access the url?
<ponga> have i got this wrong?
<shevy> hehehe
<shevy> ok but then it is just a service anyway
<ponga> im trying build waifu chatbot shevy
<ponga> i speak japanese <- good reason to start one
<shevy> to compare, the ruby-gnome minesweeper game people would download and use
<ponga> i don't want people to just download their waifu...
AlSquire has joined #ruby
<shevy> (ok noone would because it's not cool, somewhat buggy... and I never made it into a standalone gem because I am so lazy...)
<shevy> what is waifu?
<ponga> well
<shevy> I only know sake, sashimi, suhi and nori
<shevy> and sumo
<shevy> *sushi
<ponga> you know those kinky drawings of girls by japanese people
<shevy> oh and miso soup
<ponga> and public who fap over them
<shevy> hentai!
<ponga> that's the 'waifu'
<shevy> lol
<shevy> waifu is a funny word
marr has joined #ruby
<shevy> almost like kung fu
<ponga> shevy its funny because japanese people never use 'wife' to refer to their picture-counterpart of girlfriend
coderhs has quit [Ping timeout: 264 seconds]
<ponga> they say 'yome'
<ponga> i believe it was invented by western weaboos
<shevy> hehe
<shevy> do you know the card game magic, the gathering?
<ponga> so what im trying to do here is this
Mon_Ouie has quit [Ping timeout: 245 seconds]
<ponga> build a chatbot core with ruby that speaks fluently enough to care and cheer weaboos
<shevy> I think years ago, I read a story... the japanese did not have all words in their language; i think the specific word they japanified was "to tap" a card (to draw mana into a mana pool, before one is eligible to cast a spell)
<ponga> use html5 functions to add graphics(IMPORTANT!) and sound
<ponga> and put it on web
mikepack has quit [Ping timeout: 240 seconds]
<mus1cb0x> wasamasa: i might actually lean towards py
caveat- has quit [Ping timeout: 252 seconds]
<ponga> shevy: that's not technically true, japaense language has a word for it, but they think its 'kwel' to use english anyway
greenarrow has quit [Quit: 500]
hamakn_ has quit [Remote host closed the connection]
xcv has joined #ruby
hamakn has joined #ruby
Takle has quit [Remote host closed the connection]
xcv_ has joined #ruby
<shevy> I'm gonna just picture me an idealized version of japan
einarj has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
blackmesa has joined #ruby
fgo has joined #ruby
<shevy> bboys and ninjas everywhere, some samurai to greet in shopping malls, cute gals, crazy programmers, AND a remake of takeshi's castle
<sevenseacat> cant go wrong with takeshi's castle.
<shevy> haha
<sevenseacat> add in ninja warrior and you got a deal.
<shevy> the best was when they were disguised as monsters
<shevy> like the indian totem pole guy that had to cross that bridge
<shevy> he couldn't keep his balance even without any balls shot at him
einarj has joined #ruby
<shevy> ninja warrior seemed so difficult
<ponga> takeshi's castle lol
xcv has quit [Ping timeout: 245 seconds]
sigurding has quit [Quit: sigurding]
<shevy> ponga the funniest thing is german translations
<ponga> takeshi's castle and a german translation now?!
<shevy> ponga there were kung fu movies where they just made up the dialogue in german
<ponga> what is going on here good sir
<shevy> yeah that too
<ponga> ah
fgo has quit [Ping timeout: 264 seconds]
<ponga> isn't rails good solution if wanted to put graphics to my chatbot share it on web shevy
<shevy> ponga are there many spoken dialects of the japanese language?
<ponga> yeah
<shevy> I can't really judge, I don't use rails
<ponga> 関西 関東 沖縄 東北 etc etc
sigurding has joined #ruby
<shevy> I guess the www is so dominating that it will crush all the other toolkits eventually
<ponga> west , east, okinawa(island province), north-east
<shevy> okinawa!
<shevy> karate kid!
<shevy> mr. miyagi
<ponga> are you sad that www will crush all other kids
<shevy> well
<shevy> it depends
<daxroc> Morning all
<shevy> I guess in the distant future it might be good
<shevy> all has been unified and stuff
razrunelord has joined #ruby
hamidreza_181 has joined #ruby
<shevy> but right now, all I see is the ruby-GUI bindings dying down and away
zarubin has quit []
<ponga> its evening here
<ponga> :P
<ponga> no sad shevy, i will rent you a waifu when my project's done
<ponga> so the bot could cheer you up
<ponga> 24/7/365
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Timmee has left #ruby [#ruby]
<shevy> I liked the style of ruby-qt the most
<shevy> but that one died down more or less
<shevy> shoes4 - omg, java ...
timonv has joined #ruby
<daxroc> I'm capturing a password entry from cli input using $stdin.gets.chomp and using it to login to a remote service. Tho it fails to login if I read the same password from a yml file it works fine. I've gone as far as to compare the input with a hard coded string of the password to verify they do match. Not sure where to go next ?
<ponga> you can use all the fancy html stuff with rails shevy
einarj_ has joined #ruby
<shevy> that's the reason why the GUI things die
<shevy> :(
<daxroc> Any library to capture input on cli ?
caveat- has joined #ruby
<ponga> i respect your philosophy shev.y
coderhs has joined #ruby
Arkaniad has joined #ruby
vyorkin1 has joined #ruby
techsethi has quit [Ping timeout: 244 seconds]
techsethi has joined #ruby
<shevy> daxroc highline gem
wendly has joined #ruby
razrunelord has quit [Ping timeout: 272 seconds]
<shevy> though I have no idea why it should fail when it would work from a yaml file
<shevy> you must be doing something wrong ;-)
Nahra has joined #ruby
<shevy> hmm I have to leave here for a while
einarj has quit [Ping timeout: 272 seconds]
<daxroc> Yeah, its strange. The comarison of input is a match so beats me
minver has joined #ruby
little_fu has joined #ruby
<minver> I II wanna start a Sidekiq process that processes 10 jobs and then quits. Any ideas how to accomplish that?
little_f_ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
vyorkin1 has quit [Ping timeout: 272 seconds]
krz has quit [Ping timeout: 240 seconds]
hamidreza_181 has quit [Quit: Leaving]
alem0lars has quit [Quit: Going AFK...]
little_fu has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
mailo_ has joined #ruby
mailo- has joined #ruby
vyorkin1 has joined #ruby
caveat- has quit [Ping timeout: 252 seconds]
havenwood has quit []
Olipro has quit [*.net *.split]
anarang has joined #ruby
mailo has quit [Ping timeout: 244 seconds]
kaspergrubbe has quit [Remote host closed the connection]
alem0lars has joined #ruby
roolo has quit [Ping timeout: 272 seconds]
yacks has joined #ruby
Nameo0 has quit [Read error: Connection reset by peer]
caveat- has joined #ruby
sigurding has joined #ruby
thomasfedb has joined #ruby
<daxroc> shevy, hah works with highline
pranny has quit [Quit: Leaving.]
sinkensabe has quit [Read error: Connection reset by peer]
jshjsh2 has quit [Ping timeout: 255 seconds]
francisfish has joined #ruby
little_f_ has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 260 seconds]
little_f_ has joined #ruby
coderhs has quit [Ping timeout: 272 seconds]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
ynkbs has quit [Changing host]
ynkbs has joined #ruby
vyorkin1 has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
maximski has joined #ruby
Barrayar has quit [Ping timeout: 255 seconds]
karupa is now known as zz_karupa
Zebroid has joined #ruby
francisfish has quit [Ping timeout: 255 seconds]
gypsydave5 is now known as gypsydave_5
pu22l3r has joined #ruby
oo_ has joined #ruby
sk87 has joined #ruby
caveat- has joined #ruby
Zebroid has quit [Ping timeout: 264 seconds]
Hanmac has quit [Remote host closed the connection]
dANOKELO_ has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
krz has joined #ruby
dANOKELOFF has quit [Ping timeout: 240 seconds]
Olipro has joined #ruby
Hanmac has joined #ruby
Takle has joined #ruby
<mus1cb0x> anyone made a web app using nodejs?
coderhs has joined #ruby
Lucky__ has quit [Ping timeout: 264 seconds]
pranny has joined #ruby
techsethi has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
techsethi has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
Rollabunna has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
francisfish has joined #ruby
kaspergr_ has joined #ruby
mailo- has quit [Quit: Leaving...]
mailo_ has quit [Quit: Leaving...]
kaspergrubbe has quit [Read error: Connection reset by peer]
caveat- has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
roolo has joined #ruby
mailo has joined #ruby
mailo has quit [Client Quit]
roolo has quit [Remote host closed the connection]
mikepack has joined #ruby
roolo has joined #ruby
little_fu has joined #ruby
little_fu has quit [Remote host closed the connection]
<set_almighty> mus1cb0x: yes
<mus1cb0x> what was that like for you?
mikepack has quit [Ping timeout: 240 seconds]
eka has joined #ruby
<mus1cb0x> set_almighty:
little_f_ has quit [Ping timeout: 255 seconds]
tokik has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
gypsydave_5 is now known as gypsydave5
francisfish has joined #ruby
pu22l3r has joined #ruby
fgo has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
little_fu has joined #ruby
anaeem1_ has quit [Quit: Leaving...]
anaeem1 has joined #ruby
einarj_ has quit [Read error: No route to host]
Deele has joined #ruby
einarj has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
<set_almighty> mus1cb0x: that was kind of strange )
Darkchaos has joined #ruby
<mus1cb0x> in what way?
alem0lars has quit [Quit: Going AFK...]
<mus1cb0x> i'm trying to decide between ruby/python/javascript for web app RAD
little_f_ has joined #ruby
caveat- has quit [Ping timeout: 252 seconds]
pu22l3r has quit [Ping timeout: 272 seconds]
<set_almighty> I made a server for something like chatroulette
<set_almighty> choose what you know best
fgo has quit [Ping timeout: 272 seconds]
<mus1cb0x> well i can learn anything
lolmaus has quit [Ping timeout: 240 seconds]
little_fu has quit [Ping timeout: 272 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
fabrice31 has quit [Remote host closed the connection]
<set_almighty> ruby fits traditional web apps
Fire-Dragon-DoL has joined #ruby
<set_almighty> i'd choose nodejs for special cases
<set_almighty> like when you need whole app to be demonized
<set_almighty> and I can't say anything about python
pranny has quit [Quit: Leaving.]
coderhs has quit [Ping timeout: 264 seconds]
<ari-_-e> what did the app do to deserve being demonized?
blackmesa has joined #ruby
<matson> probably not that different from ruby stuff, differences are probably more in philosophy and opinions how to do things
caveat- has joined #ruby
alem0lars has joined #ruby
<set_almighty> ari-_-e: in my case i have to store user connections and SDP offers and connect them randomly based on some conditions and I don't want to use files or database to store this information
blackmes1 has joined #ruby
relix has joined #ruby
blackmes2 has joined #ruby
xcv_ has quit [Remote host closed the connection]
gzl has quit [Ping timeout: 264 seconds]
gzl has joined #ruby
fgo has joined #ruby
<Killerkeksdose> Is a one armed unless expression better than a if else expression ? like "if file is writeable than write else raise error" or "unless file is writeable raise error"
blackmesa has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
ynkbs has quit [Ping timeout: 264 seconds]
lewix has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
<thomasfedb> Killerkeksdose, often doing "raise X unless Y; do_thing()" is more condense than "if Y; do_thing(); else: raise X; end".
lolmaus has joined #ruby
<thomasfedb> Killerkeksdose, also, it reduces indentation depth.
einarj has quit [Ping timeout: 240 seconds]
<thomasfedb> Killerkeksdose, also, I prefer it. But it's really up to you, if the result is equivalent.
Poky has joined #ruby
einarj has joined #ruby
<Killerkeksdose> thomasdefb, thanks alot.
jxf has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
tus has joined #ruby
tus has quit [Changing host]
tus has joined #ruby
alem0lars has quit [Quit: Going AFK...]
Shidash has joined #ruby
vyorkin1 has joined #ruby
tirengarfio has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0sixpscl has joined #ruby
<thomasfedb> Killerkeksdose, no worries mate.
yfeldblum has joined #ruby
minver has quit [Ping timeout: 246 seconds]
yfeldblu_ has joined #ruby
wowXD_ has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
yfeldblum has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Ping timeout: 240 seconds]
blackmes2 has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
vifino has joined #ruby
Zebroid has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
lotherk has joined #ruby
little_fu has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
mus1cb0x has left #ruby ["WeeChat 0.4.2"]
little_fu has quit [Remote host closed the connection]
blackmes2 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
little_f_ has quit [Ping timeout: 255 seconds]
lewix has quit [Remote host closed the connection]
Kricir has joined #ruby
kate_r has joined #ruby
Barrayar has joined #ruby
dc has joined #ruby
alem0lars has joined #ruby
<daxroc> I'm using the ruby vcloud sdk https://github.com/vchs/ruby_vcloud_sdk how would I stop the xml being output to stdout and selectivly parse it for progress / status ?
<daxroc> Any pointers would be appreciated
Kricir has quit [Ping timeout: 240 seconds]
dc has quit [Remote host closed the connection]
alem0lars has quit [Client Quit]
alem0lars has joined #ruby
little_fu has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
alem0lars has quit [Client Quit]
abdulsattar has joined #ruby
alem0lars has joined #ruby
roolo has joined #ruby
little_f_ has joined #ruby
mbwe has quit [Quit: WeeChat 0.4.2]
moritzs has joined #ruby
tus has quit []
kyb3r_ has quit [Read error: Connection reset by peer]
sopheny has joined #ruby
pu22l3r has joined #ruby
wowXD has joined #ruby
asuka has quit [Ping timeout: 264 seconds]
little_fu has quit [Ping timeout: 272 seconds]
tus has joined #ruby
mbwe has joined #ruby
sopheny has quit [Client Quit]
garndt has joined #ruby
mbwe has quit [Quit: WeeChat 0.4.2]
wowXD has quit [Ping timeout: 255 seconds]
pu22l3r has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
hermanmunster has joined #ruby
buub has joined #ruby
razrunelord has joined #ruby
dANOKELO_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
sigurding has joined #ruby
razrunelord has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
caveat- has quit [Ping timeout: 272 seconds]
mbwe has joined #ruby
tvw has joined #ruby
Fire-Dragon-DoL1 has joined #ruby
gigetoo has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Ping timeout: 255 seconds]
little_f_ has quit [Remote host closed the connection]
Fire-Dragon-DoL1 has quit [Client Quit]
gigetoo has joined #ruby
dreamchaser has joined #ruby
Fire-Dragon-DoL has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nectarys has joined #ruby
<wasamasa> I bet someone ported expect to ruby
<apeiros> wasamasa: spend a second in the docs and discover its in stdlib :-p
<apeiros> (and has been for over a decade)
nectarys has quit [Remote host closed the connection]
yfeldblum has joined #ruby
francisfish has joined #ruby
nectarys_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
caveat- has joined #ruby
Alina-malina has quit [Ping timeout: 245 seconds]
little_fu has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
GriffinH_ has joined #ruby
centrx has joined #ruby
Alina-malina has joined #ruby
fayimora has quit [Quit: Connection closed for inactivity]
buub has quit [Ping timeout: 240 seconds]
little_fu has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
spastorino has joined #ruby
oo__ has joined #ruby
ldnunes has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
dreamchaser has quit [Ping timeout: 264 seconds]
nectarys_ has quit [Ping timeout: 264 seconds]
<wasamasa> which is?
<wasamasa> open3?
oo_ has quit [Read error: Connection reset by peer]
oo__ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
wowXD has joined #ruby
klaut has quit [Remote host closed the connection]
dreamchaser has joined #ruby
Barrayar has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Zebroid has joined #ruby
<apeiros> wasamasa: require 'expect' and then IO#expect
dreamchaser has quit [Read error: Connection reset by peer]
einarj_ has joined #ruby
<wasamasa> ah, nice
dreamchaser has joined #ruby
<wasamasa> daxroc: yes, you
<wasamasa> daxroc: you should be using expect
moritzs has quit [Ping timeout: 240 seconds]
blackmes2 has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 264 seconds]
Zebroid has quit [Ping timeout: 255 seconds]
hermanmunster has quit [Remote host closed the connection]
moritzs has joined #ruby
hermanmunster has joined #ruby
klaut has joined #ruby
<daxroc> Huh expect to parse xml?
lw has quit [Quit: s]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<wasamasa> no, to find stuff in process stdout
<wasamasa> to parse xml I'd use nokogiri
buub has joined #ruby
Kricir has joined #ruby
<daxroc> Would it not be better to do a custom logger that doesnt post to stdout
fella6s has quit [Ping timeout: 264 seconds]
hermanmunster has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
tedstriker has joined #ruby
bmurt has joined #ruby
dreamchaser has quit [Read error: Connection reset by peer]
BinaryMcAwesome has joined #ruby
BinaryMcAwesome is now known as Guest82456
Kricir has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
fgo has quit [Remote host closed the connection]
bmurt has quit [Client Quit]
moritzs has quit [Ping timeout: 245 seconds]
ari-_-e has quit [Ping timeout: 264 seconds]
einarj_ has quit [Ping timeout: 245 seconds]
dandrade has quit [Ping timeout: 245 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mikepack has quit [Ping timeout: 245 seconds]
Roa has quit [Ping timeout: 276 seconds]
ndrei has joined #ruby
willgorman_ has joined #ruby
buub has quit [Ping timeout: 264 seconds]
ziyadb has joined #ruby
user12 has joined #ruby
pu22l3r has joined #ruby
dreamchaser has joined #ruby
<user12> result = RSpec::Core::Runner.run(existing_test_files) on pc1 executes all tesfiles once, on the other machines n times. what could be the reason?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
niko has left #ruby [#ruby]
einarj has joined #ruby
Takle has joined #ruby
Barrayar has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
<user12> no one?
<ponga> me
<ponga> but no help
<ponga> im n00b
dreamchaser has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dreamchaser has joined #ruby
uresu has quit [Quit: uresu]
chrstphrhrt has joined #ruby
klaut has quit [Remote host closed the connection]
dreamchaser has quit [Client Quit]
ari-_-e has joined #ruby
dreamchaser has joined #ruby
poporul has joined #ruby
yfeldblum has joined #ruby
<user12> to be more exact: only everything which is marked with describe, context and it is executed n times
poporul has left #ruby ["WeeChat 0.4.3"]
oo_ has quit [Remote host closed the connection]
phutchins has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
dreamchaser has quit [Client Quit]
lxsameer has quit [Quit: Leaving]
Timmee has joined #ruby
nectarys has joined #ruby
jespada has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
JBreit has left #ruby ["Leaving"]
vyorkin1 has quit [Quit: WeeChat 0.4.3]
vyorkin has joined #ruby
bmurt has joined #ruby
relix has joined #ruby
vyorkin has quit [Client Quit]
vyorkin has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
ncopa has joined #ruby
nectarys has quit [Quit: Ex-Chat]
coderhs has joined #ruby
<ncopa> hi! are there any blog post or documentation that tells how to package ruby applications in your distro without losing sanity?
Nahra has quit [Remote host closed the connection]
<ncopa> i have done the mistake to start let package manager deal with ruby-* packages (so end users only need to deal with one package manager)
<ncopa> now i have security bugs in actionpack that needs to be fixed
fgo has joined #ruby
<centrx> I just use the provided ruby and use gems for everything else
<ncopa> but upgrading ruby-actionpack-4.0.x to ruby-actionpack-4.0.x+1 seems to break anything ruby-*-4.0.4...
<ncopa> centrx: that is what seems to be the only sane way
xcv has joined #ruby
<ncopa> unfortunally, some users seems to struggle with the distro package manager and they dont have interest in learning a programming language (in their eyes... eg run gems) to run their application
dANOKELOFF has joined #ruby
<wasamasa> I'm currently using gems, too
danijoo has quit [Read error: Connection reset by peer]
<wasamasa> but I find it weird that heroku announced gems to be obsolete for their client
<wasamasa> and instead release a "pack" containing their client, foreman and git
<wasamasa> this might make sense for stuff like windows
<wasamasa> or maybe osx
danijoo has joined #ruby
pu22l3r has joined #ruby
<wasamasa> but just as an alternative to standalone installations
<ncopa> i dunno, but the general release engineering for gems seems a bit .. hmm dunno how to say it without offending anyone...
eka has joined #ruby
<ncopa> "different"
Takle has quit [Remote host closed the connection]
VinceThePrince has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
fella5s has joined #ruby
<ncopa> anyways
<ncopa> seems like users will have to either learn how to do gems or live with a vulnerable redmine install...
Macaveli has quit [Ping timeout: 252 seconds]
eka has quit [Client Quit]
<apeiros> woooow, first time crash type in 10y of irb for me
<apeiros> inputcompletor crashed :D
Zebroid has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
himsin has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
LekeFly has quit [Ping timeout: 272 seconds]
futuredale has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
jerius has joined #ruby
LekeFly has joined #ruby
jottr has joined #ruby
Zebroid has quit [Ping timeout: 255 seconds]
anaeem1 has quit [Remote host closed the connection]
sk87 has joined #ruby
Macaveli has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
Macaveli has quit [Client Quit]
VinceThePrince has quit [Ping timeout: 252 seconds]
jcromartie has joined #ruby
phinfonet has joined #ruby
alexju has joined #ruby
GeekOnCoffee has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
uresu has joined #ruby
JasonG_ has joined #ruby
dblessing has joined #ruby
tier has joined #ruby
prateekp has joined #ruby
fschuindt has joined #ruby
fschuindt has quit [Max SendQ exceeded]
<prateekp> best book for learning about creating modules classes in ruby
mikepack has joined #ruby
<prateekp> or any online resource
moritzs has joined #ruby
<user12> result = RSpec::Core::Runner.run(existing_test_files) - if testfiles is an array of 2 files then its tests run once on pc1, on pc2 twice. what could be the reason?
fschuindt has joined #ruby
hamakn has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
hamakn has joined #ruby
snath has quit [Remote host closed the connection]
xeqtr has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
<xeqtr> hi. im writing a cli app in ruby (im usually a php programmer so im quite new to ruby). is there a way that i can bind a key?
<xeqtr> I wanna walk through an array when pressing the up-key
<xeqtr> like walking through history in a terminal
lesilu has quit [Quit: HydraIRC -> http://www.hydrairc.com <- s0 d4Mn l33t |t'z 5c4rY!]
qwyeth has joined #ruby
fgo has joined #ruby
Barrayar has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
fgo has quit [Read error: No route to host]
fgo has joined #ruby
Macaveli has joined #ruby
hamakn has quit [Read error: No route to host]
nectarys has joined #ruby
klaut has joined #ruby
ringarin has joined #ruby
<wasamasa> sounds a bit more like ncurses
<wasamasa> or wait
<wasamasa> readline, sorry
<xeqtr> readline?
<wasamasa> yes
<wasamasa> the thing bash uses
<xeqtr> that wont capture the pressing of up-arrow?
<wasamasa> so that you can press the up key and it goes back in history
danijoo has quit [Read error: Connection reset by peer]
<xeqtr> yeah but i dont wanna go back through bash history
<wasamasa> it's just an example...
<xeqtr> ok
<wasamasa> anyways, what exactly are you building?
<wasamasa> cli means you just run an application with command line arguments
danijoo has joined #ruby
<wasamasa> no way to use keys in there :P
qwyeth has quit [Ping timeout: 264 seconds]
<xeqtr> ooh thats a nice gem
<xeqtr> or well, not gem but addon
northfurr has joined #ruby
<wasamasa> if you'd build a repl-like thingie, readline would work for that
<wasamasa> if it's supposed to fill out the full screen and update its contents like less or vim or nethack, then it's ncurses
Zenigor has joined #ruby
<wasamasa> and you've got more things to worry about than just binding keys
<xeqtr> yeah no its not an ncurses thingie i need (worked with ncurses before).
<xeqtr> im making some additions to our database revisioning systems
<xeqtr> which requires me to build a really simple terminal-emulating app first
<wasamasa> hah, simple and terminal-emulating
<xeqtr> so im really just throwing together a simple terminal
workmad3 has joined #ruby
<ponga> what was ::
<xeqtr> trust me this is simple
<ponga> can't remember
<wasamasa> ponga: namespace operator?
razrunelord has joined #ruby
aniM has joined #ruby
chris123456789 has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
pu22l3r has quit [Remote host closed the connection]
DouweM has joined #ruby
ponga has quit [Remote host closed the connection]
yfeldblum has joined #ruby
wowXD has quit [Remote host closed the connection]
abdulsattar has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
lucas__ has joined #ruby
user12 has quit [Quit: Page closed]
mikecmpbll has quit [Quit: ciao.]
Asher1 has joined #ruby
<pontiki> xeqtr: take a look at the highline gem, i think it does keyboard capture
yfeldblum has quit [Ping timeout: 240 seconds]
<pontiki> a whole lot of other stuff, too
Asher has quit [Ping timeout: 240 seconds]
Asher1 is now known as Asher
Tritania has quit [Ping timeout: 240 seconds]
lw has joined #ruby
mjsmith2 has joined #ruby
qwyeth has joined #ruby
techsethi_ has joined #ruby
lucas__ has quit [Quit: leaving]
ta has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
techsethi has quit [Ping timeout: 264 seconds]
techsethi_ is now known as techsethi
jeremywrowe has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
jeremywrowe has quit [Remote host closed the connection]
vt102 has joined #ruby
<xeqtr> pontiki: thanks but the readline works exactly as i need it to.
sigurding has quit [Quit: sigurding]
DeanH has joined #ruby
<pontiki> cool
rdark has quit [Ping timeout: 272 seconds]
dc has joined #ruby
anaeem1 has joined #ruby
dc has quit [Remote host closed the connection]
vifino has joined #ruby
rdark has joined #ruby
freerobby has joined #ruby
momomomomo has joined #ruby
jherbst has joined #ruby
<xeqtr> pontiki: isnt a terminal emulator im writing btw its a really simple shell
kotk has quit [Quit: Leaving...]
pacMakaveli has joined #ruby
Channel6 has joined #ruby
techsethi has quit [Quit: techsethi]
techsethi has joined #ruby
<pontiki> no worries, really
bluOxigen has quit [Ping timeout: 240 seconds]
eka has joined #ruby
zmack_ has joined #ruby
<pontiki> highline isn't a terminal emulator, either, it's a package for fancy IO within a cli app
<pontiki> if readline works, that's awesome
sigurding has joined #ruby
rdark has quit [Ping timeout: 255 seconds]
rdark has joined #ruby
cpruitt has joined #ruby
RaCx has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
wowXD has joined #ruby
SilverKey has joined #ruby
ari-_-e has quit [Ping timeout: 245 seconds]
ta has joined #ruby
Xeago has joined #ruby
oo_ has joined #ruby
lkba has quit [Quit: Bye]
xIzIv has joined #ruby
SteveBenner09 has joined #ruby
mercwithamouth has joined #ruby
moritzs has joined #ruby
freerobby has quit [Quit: Leaving.]
tokik has joined #ruby
ringarin has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
Zebroid has joined #ruby
coderhs has joined #ruby
francisfish has quit []
ari-_-e has joined #ruby
blackmes2 has joined #ruby
LekeFly has quit [Ping timeout: 255 seconds]
Timmee has quit [Remote host closed the connection]
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
Zebroid has quit [Ping timeout: 272 seconds]
jpoole has joined #ruby
enebo has joined #ruby
nectarys has quit [Quit: Ex-Chat]
cocotton has joined #ruby
northfurr has quit [Quit: northfurr]
<jpoole> Maybe not the right place, but I was wondering if in an .erb template if there was a way to produce a variable, only if it is defined. example produce foo="<%= @variable %>" in a template, only if @variable has a value.
<pontiki> so you would not want the foo= part if @variable.nil?
<jpoole> correct
<jpoole> not sure if that is possible.
<pontiki> foo= is in the html portion (assuming in some embedded script) ?
<workmad3> jpoole: it sounds almost like you're asking 'is it possible to have something output conditionally from an erb script'...
<pontiki> which you can
<pontiki> <%= "foo=#{@variable}" unless @variable.nil? %>
Kricir has joined #ruby
<jpoole> pantiki ahh awesome that's exactly what i wanted.
<jpoole> I wasn't sure of the syntax
<jpoole> thank you.
<jpoole> this is more of a configuration file in a chef recipe
<jpoole> but nonetheless it's pretty much the same.
<workmad3> jpoole: you could also do '<% unless @variable.nil? %>foo="<%= @variable %>"<% end %>
<pontiki> there's probably a better way, then, since chef recipes are just ruby
Alina-malina has quit [Read error: Connection reset by peer]
<workmad3> pontiki: I think he means it's a config file being generated from a chef template (which are usually erb processed :)
<workmad3> so either way...
<jpoole> workmad3 exactly.
cocotton has quit [Remote host closed the connection]
Alina-malina has joined #ruby
<jpoole> thanks again
<pontiki> oh, sure
paf0 has quit [Remote host closed the connection]
<workmad3> jpoole: if you don't care to distinguish between false and nil, you can also do '<% if @variable' instead of 'unless @variable.nil?'
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
ehc has joined #ruby
treehug88 has joined #ruby
cocotton has joined #ruby
paf0 has joined #ruby
techsethi has quit [Quit: techsethi]
cocotton has quit [Remote host closed the connection]
<jpoole> workmad gotcha, I guess I was more concerned of what logic a template can do. It looks like I can put alot more ruby inside the templates than I originally thought.
tkuchiki_ has joined #ruby
<jpoole> I should read up more on erubis ;)
Kricir has quit [Ping timeout: 245 seconds]
<pontiki> you can put all the logic in a template, it's just not a good idea to
ta has quit [Ping timeout: 264 seconds]
<workmad3> jpoole: you can write pretty much arbitrary ruby in <% %> blocks ;)
<jpoole> workmad3 apparently ;)
<workmad3> pontiki: annoyingly, chef doesn't provide a nice way to add helpers into template rendering :(
<jpoole> most of the heavy lifting is done in the recipe, there is just some cases where I need to do some functions
<pontiki> yeah, i've only done basic substitution recipes
<pontiki> / templates
jeregrine has joined #ruby
<jpoole> generally that's all I do as well.
tkuchiki has quit [Ping timeout: 240 seconds]
dc has joined #ruby
<workmad3> I tend to do substitution and conditional output, occasionally I'll do some looping over a set of information
<pacMakaveli> Does anyone have any experience on deploying with Capistrano from CircleCI? :)
kevind has joined #ruby
<workmad3> when things get complicated, I'll calculate it in the recipe or resource beforehand and pass the finished chunk of config into the template (or generate the entire file with a file resource)
<pontiki> i have yet to build a recipe that complicated
tkuchiki_ has quit [Ping timeout: 264 seconds]
Arkaniad has quit [Ping timeout: 260 seconds]
<workmad3> pontiki: by 'complicated' I pretty much mean 'a line with several optional bits in it'
<workmad3> pontiki: e.g. a syslog log line in nginx... 'syslog:server=<address>,facility=<facility>,tag=<tag>,severity=<severity> <log_format>' where facility, tag and severity could be optional
orionstein_away is now known as orionstein
ascarter has joined #ruby
paf0 has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
SteveBenner09 has quit []
SteveBenner09 has joined #ruby
<workmad3> pontiki: messy to do in the template because it has to be on one line, and several conditional bits :)
Xeago_ has joined #ruby
paf0 has joined #ruby
<pontiki> oh, huh, interpolation wouldn't work there?
pacMakaveli has quit []
codeurge has joined #ruby
<workmad3> pontiki: need to remove the facility=, tag= and severity= bits if they're not there
freerobby has joined #ruby
stytown has joined #ruby
<wasamasa> hmpf
<momomomomo> workmad3: you use circle CI?
<workmad3> pontiki: so interpolation starts to look messy :)
<workmad3> momomomomo: no
<wasamasa> that heroku thing is quite confusing
RaCx has joined #ruby
<wasamasa> no ssh access?
<momomomomo> i'm lost in this conversation
<momomomomo> ~:|
<seitensei> D:
<pontiki> momomomomo: it's about 10 conversations :) the beauty of IRC
Xeago_ has quit [Read error: Connection reset by peer]
<momomomomo> ah :p
cocotton has joined #ruby
bubbajones has quit [Ping timeout: 255 seconds]
cocotton has quit [Remote host closed the connection]
Xeago_ has joined #ruby
<workmad3> IRC - where you can engage in 10 conversations in 20 different channels at once... and not have a clue what any of them are about
<momomomomo> ha; I usually hold a few at once
GriffinH_ is now known as GriffinHeart
ffranz has joined #ruby
<momomomomo> I do really love that some channels are so niche that the convo gets interesting
cocotton has joined #ruby
<seitensei> I think I have 50 channels open D:
<momomomomo> ie: solr, spark, jruby
<momomomomo> also, reddit-gamedev is constant bafoonary, which is great sometimes :)
cmhobbs has joined #ruby
stytown has quit [Client Quit]
<pontiki> alternately, you can be in 40 windows and aboslutely no one is saying anything, for hours! #idleruby
Xeago has quit [Ping timeout: 264 seconds]
Xeago_ has quit [Remote host closed the connection]
<momomomomo> pontiki: ha; which is half of mine :(
<momomomomo> sucks when you want to discuss something and no one responds though in those channels
Channel6 has quit [Quit: Leaving]
Xeago has joined #ruby
bubbajones has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
ta has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
ari-_-e has quit [Ping timeout: 240 seconds]
trepidaciousMBR has joined #ruby
anaeem1 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ari-_-e has joined #ruby
doodlehaus has joined #ruby
Takle has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
<elaptics> wasamasa: the point of heroku is that you don't need ssh or anything - you are paying them to do the devops stuff :)
chrstphrhrt has quit [Quit: chrstphrhrt]
<wasamasa> but I don't pay them :<
cmhobbs has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Excess Flood]
Xeago has quit [Ping timeout: 245 seconds]
<pontiki> then you *really* shouldn't complain
tobago has quit [Remote host closed the connection]
<elaptics> wasamasa: you will if you need to step outside the free tier...
<wasamasa> it's just that I want to figure out how I can have interacting components there
jso has quit [Ping timeout: 272 seconds]
yano has quit [Read error: Connection reset by peer]
<elaptics> wasamasa: like what?
<wasamasa> it doesn't quite make sense to me yet
r0bby has joined #ruby
<wasamasa> a web application that relies on something different doing webscraping like every hour
<wasamasa> that web application needs to have access to the data gathered
Xuerian has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
Xuerian has joined #ruby
<momomomomo> you can use background jobs with heroku
<workmad3> wasamasa: either store it in the database, a cloud storage system (like s3) or don't use heroku
<pontiki> why isn't the scraping a component of your app? it can run as a worker every hour, share the models, etc
mary5030 has joined #ruby
<momomomomo> ^
jso has joined #ruby
SteveBenner09 has quit []
<momomomomo> or, if it's a separate service, manage that on its own service and update with an api on your app
yano has joined #ruby
mary5030 has quit [Remote host closed the connection]
<wasamasa> well, uh, I wanted to do it the easiest way
<workmad3> wasamasa: as in dump it in a temp file and have the webapp load it from there?
<wasamasa> will probably use a database at some point because that makes it a lot simpler to create an atom feed
mary5030 has joined #ruby
Guest82456 is now known as High-Q-Brah
High-Q-Brah has quit [Changing host]
High-Q-Brah has joined #ruby
<workmad3> wasamasa: the 'easiest way' isn't possible on heroku... that's all there is to it ;)
fschuindt has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
ta has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
<pontiki> whaaa???
<pontiki> i thought a background task in the app would be dead easy
<wasamasa> judging from their docs I can use rake with their scheduled jobs
<pontiki> what's the easiest way?
jottr has quit [Ping timeout: 245 seconds]
<pontiki> there
<wasamasa> so I guess using a Rakefile is the simplest way then
* jpoole is away: (automatically dead ) [BX-MsgLog Off]
* jpoole is idle, automatically dead [bX(l/on p/off)]
<wasamasa> and let it push stuff to a db
keystonelemur has joined #ruby
<workmad3> pontiki: I have a suspicion 'easy' was meaning 'dump stuff out on the file system'
<wasamasa> yes, that
<pontiki> huh
<wasamasa> that's how I'd do it usually
<pontiki> if you gone through the difficulty of parsing out data from a web scrape, why flatten it out again? why not just store it?
Xeago has joined #ruby
<workmad3> throw it all into mongo!
<pontiki> ooooo!
<pontiki> or, like, redis, mango
nectarys has joined #ruby
<pontiki> anyway, time for brekkie
apeiros has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 264 seconds]
Charliebr73 has joined #ruby
fschuindt has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
Ankhers has joined #ruby
amargherio has joined #ruby
Charliebr73 has quit [Client Quit]
ta has joined #ruby
DanielI has joined #ruby
DanielI has quit [Changing host]
DanielI has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 245 seconds]
lmickh has joined #ruby
yacks has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
sunya7a has joined #ruby
tagrudev has quit [Remote host closed the connection]
Takle has joined #ruby
treehug88 has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
cmhobbs has joined #ruby
cmhobbs has joined #ruby
bartdorsey has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
DaniG2k has joined #ruby
prateekp has quit [Ping timeout: 246 seconds]
aniM has quit [Ping timeout: 244 seconds]
mary5030_ has joined #ruby
aniM has joined #ruby
chris123456789 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinobi_one has joined #ruby
brasten has joined #ruby
coldmethod1 has joined #ruby
coldmethod1 has left #ruby [#ruby]
ponga has joined #ruby
Zenigor has quit [Ping timeout: 272 seconds]
ponga has quit []
anaeem1 has joined #ruby
aganov has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: Going AFK...]
anaeem1 has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 264 seconds]
sunya7a has quit [Ping timeout: 272 seconds]
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
RaCx has joined #ruby
sunya7a has joined #ruby
kwd has quit [Quit: kwd]
r0bby has quit [Quit: Konversation terminated!]
cmhobbs has quit [Remote host closed the connection]
casheew has left #ruby [#ruby]
thesheff17 has quit [Read error: Connection reset by peer]
vyorkin has quit [Ping timeout: 272 seconds]
thesheff17 has joined #ruby
Zebroid has joined #ruby
flowerhack has joined #ruby
anaeem1 has joined #ruby
aniM has quit [Ping timeout: 240 seconds]
dukedave has joined #ruby
ta has quit [Read error: Connection reset by peer]
kwd has joined #ruby
techsethi has joined #ruby
paf0 has quit [Remote host closed the connection]
paf0 has joined #ruby
kwd has quit [Client Quit]
maximski has quit []
Barrayar has joined #ruby
Zebroid has quit [Ping timeout: 255 seconds]
xcv_ has joined #ruby
vyorkin has joined #ruby
ascarter has joined #ruby
anarang has quit [Quit: Leaving]
Zenigor has joined #ruby
Blaze_Boy has quit [Remote host closed the connection]
dik_dak has joined #ruby
s2013 has joined #ruby
LadyRainicorn has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
xcv has quit [Ping timeout: 240 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
bal has quit [Quit: bal]
dangerousdave has quit [Read error: Connection reset by peer]
Macaveli has quit [Ping timeout: 252 seconds]
telling has joined #ruby
telling has joined #ruby
sk87_ has joined #ruby
dangerousdave has joined #ruby
Rainicorn has joined #ruby
apeiros has joined #ruby
Guest77970 has quit [Ping timeout: 245 seconds]
ta has joined #ruby
LadyRainicorn has quit [Ping timeout: 255 seconds]
Hanmac has quit [Remote host closed the connection]
RaCx has joined #ruby
telling has left #ruby [#ruby]
Kricir has quit [Ping timeout: 255 seconds]
cmhobbs has joined #ruby
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby
sk87 has quit [Ping timeout: 245 seconds]
Senjai has quit [Ping timeout: 245 seconds]
cHarNe2 has quit [Ping timeout: 245 seconds]
jonasbjork has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cHarNe2 has joined #ruby
treehug88 has joined #ruby
vyorkin has quit [Quit: WeeChat 0.4.3]
devdazed has joined #ruby
Senjai has joined #ruby
RealMarc has joined #ruby
seitensei has quit [Ping timeout: 264 seconds]
ta has quit [Remote host closed the connection]
fschuindt has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
alem0lars has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
<tus> when i write out @results i get 5 lines of text. is it possible to make it 1 line? this is the code:
<tus> @teamHash.each do |key, value|@results = key.to_s + ': ' + value + '
<tus> (i know "print" makes it one line but i am outputting it to irc channel, i was thiking of making @results contain it all on one line?)
yfeldblum has joined #ruby
fgo has quit [Remote host closed the connection]
snath has joined #ruby
s2013 has quit [Ping timeout: 244 seconds]
<slash_nick> tus: #map and #join instead of #each
Hanmac has joined #ruby
<tus> slash_nick, thanks :)
mistergibson has quit [Quit: Leaving]
cmhobbs has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 240 seconds]
lmickh has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
sk87_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<slash_nick> no problem, i'm sure there are plenty of other ways too.. that's one
stytown has joined #ruby
cmhobbs has joined #ruby
fabrice31 has quit [Remote host closed the connection]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
dandrade has joined #ruby
Roa has joined #ruby
razrunelord has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
bmurt has quit []
geggam has joined #ruby
geggam has quit [Remote host closed the connection]
bmurt has joined #ruby
geggam has joined #ruby
prathame_ has joined #ruby
buub has joined #ruby
nectarys_ has joined #ruby
s2013 has joined #ruby
echevemaster has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
brasten has quit [Ping timeout: 245 seconds]
anaeem1 has quit [Remote host closed the connection]
Xeago has joined #ruby
<s2013> if i wanna seed a database with lets say 50,000 random records. how would you approach that
<s2013> i assume some sort of batch write?
Arkaniad has joined #ruby
nectarys has quit [Ping timeout: 245 seconds]
<tus> slash_nick, shouldn't this work? myhash.map{|k,v| "#{k}: #{v}"}.join(' ')
zegerjan has joined #ruby
rayners has joined #ruby
dennus has joined #ruby
paf0 has quit [Remote host closed the connection]
Guest86178 has quit []
Joulse has quit [Quit: Joulse]
parduse has joined #ruby
Hanmac has quit [Remote host closed the connection]
terrellt has joined #ruby
<slash_nick> tus: yeah... print yohash.map ...
<slash_nick> ... .join(' ')
parduse has quit [Client Quit]
parduse has joined #ruby
etqqkoiflwhb has joined #ruby
ndrei has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
x0nic has left #ruby [#ruby]
bradleyprice has quit [Remote host closed the connection]
<ddv> s2013, there are plenty of gems with nice dsl's that will do that for you
bradleyprice has joined #ruby
banister has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has joined #ruby
<tus> slash_nick, haha nevermind sorry. i had commented out a crucial part of my code. seems to work now, thanks man!
bmurt has quit []
<balazs> can somebody tell me what I'm doing wrong here using Mixlib::Cli ? http://pastebin.com/A6pe8xBj
jhass|off is now known as jhass
ndrei has quit [Ping timeout: 264 seconds]
paf0 has joined #ruby
ndrei has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
datafirm has joined #ruby
<balazs> I always get the default value back, even if I have -f or --firstoption
djcp has joined #ruby
casheew has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
djcp has left #ruby [#ruby]
rippa has joined #ruby
ta has joined #ruby
geggam has quit [Ping timeout: 255 seconds]
Rainicorn is now known as LadyRainicorn
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
mikepack has joined #ruby
dreamchaser has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
Takle has quit [Remote host closed the connection]
alejandro has joined #ruby
geggam has joined #ruby
terrell_t has joined #ruby
dennus has joined #ruby
dennus has quit [Changing host]
mehlah has quit [Quit: Leaving...]
dreamchaser has quit [Read error: Connection reset by peer]
roolo has quit [Quit: Leaving...]
dreamchaser has joined #ruby
<slash_nick> s2013: I'd use psql copy
chrstphrhrt has joined #ruby
dukedave has quit [Ping timeout: 255 seconds]
terrellt has quit [Ping timeout: 244 seconds]
kiri has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
Zebroid has joined #ruby
jagwire has joined #ruby
mikesplain has joined #ruby
<jagwire> Is there a specific channel for ruby on rails?
jagwire has left #ruby [#ruby]
<slash_nick> jameyd: #rubyonrails oddly enough :)
cmhobbs has quit [Ping timeout: 245 seconds]
blackmes2 has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
prathame_ has quit [Remote host closed the connection]
chris123456789 has joined #ruby
prathame_ has joined #ruby
sunya7a has quit [Ping timeout: 264 seconds]
jfran has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dANOKELOFF has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
sunya7a has joined #ruby
Kricir has joined #ruby
bmurt has joined #ruby
Xeago has quit [Remote host closed the connection]
sailias has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
sdouglas has joined #ruby
prathame_ has quit [Ping timeout: 264 seconds]
cocotton has joined #ruby
DaniG2k has quit [Quit: leaving]
Morkel has quit [Read error: Connection reset by peer]
Takle has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 240 seconds]
Morkel has joined #ruby
yfeldblum has joined #ruby
p0sixpscl has quit [Quit: p0sixpscl]
MindfulMonk has joined #ruby
dANOKELOFF has joined #ruby
b00stfr3ak has joined #ruby
banister has joined #ruby
bricker`work has joined #ruby
nectarys_ has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby
_2_kryspao06 has joined #ruby
davispuh has joined #ruby
<_2_kryspao06> hola
CaptainJet has joined #ruby
_2_kryspao06 has left #ruby [#ruby]
<jameyd> hey slash_nick
LadyRainicorn has quit [Read error: Connection reset by peer]
<jameyd> haha
fgo has joined #ruby
LadyRainicorn has joined #ruby
maletor has joined #ruby
zmack_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar has quit [Ping timeout: 245 seconds]
icarus has joined #ruby
dreamchaser has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
roolo has joined #ruby
dreamchaser has joined #ruby
wowXD has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
fgo has joined #ruby
pietr0 has joined #ruby
Takle has quit [Remote host closed the connection]
eka has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
alex88 has quit [Quit: Leaving...]
eka has joined #ruby
xIzIv has left #ruby ["WeeChat 0.4.3"]
<xeqtr> so i have an array as this: types = ['directories', 'symlinks', 'files'] and i wanna do a for loop on that array but use each item as the name of an existing array. I have an array called directories for example so i wanna call that.
oo_ has quit [Remote host closed the connection]
<xeqtr> in php you can just do ${MyDynamicName}() to call a function in the same way for example
<jhass> sounds like you actually want a hash
<canton7> surely the PHP equivalent of your example is $$variableName?
<canton7> and yeah, this is really really horrid
dANOKELOFF has quit []
gattuso has quit [Ping timeout: 260 seconds]
<canton7> calling methods by name is often used in ruby (see #send), and grabbing instance variables by name is possible but rarer
<canton7> local vars though? ouch
<jhass> xeqtr: put your code into a gist and we can show you a proper version
<xeqtr> canton7: No, ${variablename} will work as well
<canton7> ${$variableName}, surely, since all vars start with a $?
jonasbjork has joined #ruby
anaeem1 has joined #ruby
troyready has joined #ruby
<xeqtr> canton7: yeah sorry ${functioname}() is for functions $$ is for variables
<xeqtr> jhass|off: http://pastie.org/9323383
alem0lars has quit [Quit: alem0lars]
pietr0 has quit [Quit: pietr0]
<canton7> yeah, you definitely want a hash in there
gattuso has joined #ruby
stytown has quit [Quit: stytown]
pietr0 has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjsmith2 has quit [Remote host closed the connection]
<xeqtr> got an example for a ruby-newbie?
<canton7> xeqtr, http://pastie.org/9323384
bitcycle has quit [Quit: Page closed]
mjsmith2 has joined #ruby
<xeqtr> oh thanks
ziyadb has quit [Quit: Connection closed for inactivity]
mattmcclure has joined #ruby
eka has quit [Ping timeout: 244 seconds]
<canton7> you were tying the string displayed to the user with the name of a variable you had in code
<canton7> that's horribly horribly fragile
<canton7> break that shit out
<shevy> haha
<shevy> bad xeqtr baaaad
<davidcelis> yes let's shame the newbie, always a great idea
eka has joined #ruby
<xeqtr> haha its alright, im used to the php community where a suggested solutions isnt even presented. you only get shame and disgrace :P
diegoviola has joined #ruby
eka has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
eka has joined #ruby
abdulsattar has joined #ruby
bradleyprice has joined #ruby
binaryhat has joined #ruby
razrunelord has joined #ruby
eka has quit [Read error: Connection reset by peer]
chth0n has quit [Ping timeout: 255 seconds]
eka has joined #ruby
<shevy> no
<shevy> php is shame and disgrace
timonv has quit [Remote host closed the connection]
<shevy> no more need to rub it in
jobewan has joined #ruby
<shevy> but you can leave your past behind xeq
<shevy> erm
<shevy> *xeqtr
<shevy> what a weird nick
phinfone_ has joined #ruby
phinfonet has quit [Ping timeout: 245 seconds]
moritzs has joined #ruby
dukedave has joined #ruby
stytown has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
chris123456789 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
foooobear has quit [Quit: Computer has gone to sleep.]
mikespla_ has joined #ruby
mikecmpbll has joined #ruby
moritzs has quit [Quit: Verlassend]
mikesplain has quit [Ping timeout: 264 seconds]
moritzs has joined #ruby
lmickh has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Quit: Leaving...]
anaeem1_ has joined #ruby
<xeqtr> shevy: heh thank you :P
Kricir has joined #ruby
yacks has joined #ruby
<davidcelis> it's not that weird
<davidcelis> it's just "executor"
sdouglas has quit [Remote host closed the connection]
<slash_nick> davidcelis: or is it sequitur
<slash_nick> i guess the q becomes the cu... you're right, you're right
<davidcelis> prolly not
<davidcelis> lol
<slash_nick> sequitur would be nonxeqtr
sputnik13 has joined #ruby
nmokru has joined #ruby
wowXD has joined #ruby
treehug88 has joined #ruby
havenwood has joined #ruby
prathame_ has joined #ruby
lmickh has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
sdouglas_ has joined #ruby
scarolan has joined #ruby
scarolan has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
exgf has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
Zebroid has joined #ruby
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
VeinMelter has joined #ruby
agjacome has joined #ruby
terrell_t has quit [Remote host closed the connection]
wowXD has quit [Ping timeout: 240 seconds]
terrellt has joined #ruby
eka has quit [Read error: Connection reset by peer]
gfunc has joined #ruby
eka has joined #ruby
edgarjs_afk is now known as edgarjs
kaspergrubbe has joined #ruby
treehug88 has quit [Ping timeout: 264 seconds]
gfunc has quit [Remote host closed the connection]
sdouglas_ has quit [Ping timeout: 245 seconds]
kidoz has joined #ruby
cocotton has joined #ruby
Zebroid has quit [Ping timeout: 245 seconds]
cocotton has quit [Remote host closed the connection]
VeinMelter has quit [Quit: Leaving.]
VeinMelted has joined #ruby
cocotton has joined #ruby
terrellt has quit [Ping timeout: 255 seconds]
Guest7481 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0sixpscl has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
jonasbjork has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eiam has joined #ruby
ascarter has joined #ruby
yfeldblum has joined #ruby
<shevy> I thought it was xeqque from turkiye
doev has joined #ruby
mikepack has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
mikepack has joined #ruby
ryanleesipes has joined #ruby
Guest7481 has quit [Ping timeout: 264 seconds]
dreamchaser has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
terrellt has joined #ruby
gattuso has quit [Ping timeout: 260 seconds]
binaryhat has quit [Quit: Leaving]
klaut has quit [Remote host closed the connection]
timonv has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
gattuso has joined #ruby
* wasamasa just ran >> doc = Nokogiri::HTML(open(url)) in irb
p0sixpscl has quit [Ping timeout: 252 seconds]
<wasamasa> damnit irb, why must you print out the return values
RaCx has joined #ruby
<jhass> use pry and append ; to suppress it ;)
Diranged has joined #ruby
<slash_nick> or use irb and append ;nil
<Diranged> How can I split up my rake spec tests into mulitple groups — so that they run under different processes sequentially (or ultimately, in parallel with the parallel_tests gem)?
sdouglas has joined #ruby
wendly has quit [Ping timeout: 264 seconds]
endash has joined #ruby
yfeldblu_ has quit [Ping timeout: 264 seconds]
ikaros has joined #ruby
saarinen has joined #ruby
Spami has joined #ruby
wendly has joined #ruby
Xeago has joined #ruby
xeqtr has quit [Quit: xeqtr]
Alina-malina has quit [Read error: Connection reset by peer]
Shidash has quit [Quit: Leaving.]
Alina-malina has joined #ruby
<balazs> what I'm doing wrong here using Mixlib::Cli ? http://pastebin.com/A6pe8xBj
<havenwood> Diranged: I don't know of a way within Rake, but there may be. To do it yourself you could do threads yourself or use celluloid, or if you're using a GVLed Ruby fork yourself.
mikepack_ has joined #ruby
eka has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
<havenwood> balazs: What's the error?
<rbennacer> >>1+1
<eval-in> rbennacer => 2 (https://eval.in/166778)
eka has joined #ruby
<rbennacer> >>require 'date'; Date.today -1.days
<eval-in> rbennacer => undefined method `days' for -1:Fixnum (NoMethodError) ... (https://eval.in/166779)
rdark has quit [Quit: leaving]
<Hanmac> haha you fall into the rails trap ;P
<rbennacer> i dont understand why i can't do 1.days
<havenwood> rbennacer: Rails.
Xeago has quit [Ping timeout: 245 seconds]
<rbennacer> oooo :(
<havenwood> rbennacer: ActiveSupport
<havenwood> rbennacer: You can cherry pick it from ActiveSupport outside Rails.
<balazs> havenwood: the command line options are not getting picked up
<rbennacer> i need to load all the ActiveSupport module?
djbkd has joined #ruby
<havenwood> rbennacer: Just he part you want.
Alina-malina has quit [Read error: Connection reset by peer]
<rbennacer> ok ok
Alina-malina has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<balazs> havenwood: I can have ruby test.rb -f 22
mikepack has quit [Ping timeout: 240 seconds]
zmack_ has joined #ruby
<balazs> but options{:firstoption} is still 42
trepidaciousMBR has quit [Ping timeout: 264 seconds]
<balazs> options[:firstoption]
<havenwood> rbennacer: require 'active_support/core_ext/numeric/time'
sunya7a_ has joined #ruby
<rbennacer> thanks
<rbennacer> may i ask how you found it so quickly?
<Hanmac> google ?
<shevy> lol
sunya7a has quit [Ping timeout: 244 seconds]
<rbennacer> mmm but what did you look for?
<havenwood> rbennacer: days
GriffinHeart has joined #ruby
<havenwood> rbennacer: or without google: cd rails/activesupport/lib; grep -r days .
ringarin has joined #ruby
<jhass> or api.rubyonrails.org and show source
Barrayar has quit [Ping timeout: 245 seconds]
<jhass> http://api.rubyonrails.org/classes/Numeric.html#method-i-days -> # File activesupport/lib/active_support/core_ext/numeric/time.rb
parduse has quit []
parduse has joined #ruby
ringaring has joined #ruby
<rbennacer> Date.today - 1.days
<rbennacer> TypeError: expected numeric
<rbennacer> from (irb):12:in `-'
<Hanmac> did you guys know wthere is a kilobytes method? as you can see it returns wrong values http://api.rubyonrails.org/v2.3.8/classes/ActiveSupport/CoreExtensions/Numeric/Bytes.html
<rbennacer> after loading the right lib
ringaroses2 has joined #ruby
<havenwood> rbennacer: maybe?: require 'active_support/core_ext/time/calculations'
thisirs has joined #ruby
<havenwood> oh, or I guess you showed a Date, so that might be?: active_support/core_ext/date/calculations
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Ping timeout: 264 seconds]
<havenwood> dunno, look at the api or code in the core_ext date, date_and_time, and time dirs
<rbennacer> it was require 'active_support/core_ext/date'
<rbennacer> thanks
<rbennacer> youa re the best
ringarin has quit [Ping timeout: 245 seconds]
ringaring has quit [Ping timeout: 245 seconds]
cocotton has quit [Remote host closed the connection]
LiquidInsect has joined #ruby
<havenwood> Hanmac: it should return lbs >.>
zegerjan has quit [Remote host closed the connection]
jpoole has left #ruby [#ruby]
<havenwood> Hanmac: KILOBYTE == 1024, no?
ringaroses2 has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
lolmaus has quit [Ping timeout: 255 seconds]
<havenwood> oh, decimal vs binary
Guest7481 has joined #ruby
Guest7481 has quit [Client Quit]
<Hanmac> havenwood: yeah that schould be Kibibyte or similar ... the standard is more than ten years old ... but maybe is to new for rails
<eam> I wish json handled octal
jcromartie has joined #ruby
gfunc has joined #ruby
lmickh has joined #ruby
lolmaus has joined #ruby
LekeFly has joined #ruby
Guest7481 has joined #ruby
Guest7481 has quit [Client Quit]
tier has quit [Remote host closed the connection]
alejandro has quit [Ping timeout: 244 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
Vpex has joined #ruby
dfinly has joined #ruby
cocotton has joined #ruby
dfinly has quit [Max SendQ exceeded]
mikesplain has joined #ruby
fgo has quit [Remote host closed the connection]
mikespla_ has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 264 seconds]
kevind has quit [Quit: kevind]
x1337807x has joined #ruby
IceDragon has joined #ruby
Vivekananda has joined #ruby
kevind has joined #ruby
eka has quit [Read error: Connection reset by peer]
kevind has quit [Read error: Connection reset by peer]
kidoz has quit [Quit: Ухожу я от вас]
Rainicorn has joined #ruby
kevind has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Client Quit]
prathame_ has quit [Remote host closed the connection]
eka has joined #ruby
gondalier has joined #ruby
prathame_ has joined #ruby
agent_white has joined #ruby
stytown has quit [Quit: stytown]
RaCx_ has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
RaCx has quit [Ping timeout: 244 seconds]
RaCx_ is now known as RaCx
icole has joined #ruby
<agent_white> Mornin folks
terrellt has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
zmack_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dideler|work has quit [Ping timeout: 240 seconds]
terrellt has joined #ruby
<havenwood> agent_white: good morning
tvw has quit [Remote host closed the connection]
terrellt has quit [Read error: Connection reset by peer]
pasties has quit [Ping timeout: 252 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has quit [Remote host closed the connection]
terrellt has joined #ruby
prathame_ has quit [Ping timeout: 240 seconds]
_maes_ has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
Valesk has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
dideler|work has joined #ruby
djbkd has joined #ruby
zmack_ has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
gattuso has quit [Ping timeout: 260 seconds]
<wasamasa> hum
<wasamasa> I don't get anything when doing doc.css('div[role="article"]') in nokogiri
<wasamasa> weird
yfeldblum has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
larissa has joined #ruby
<wasamasa> although such an element shows up in its serialization
lkba has joined #ruby
wowXD has joined #ruby
<jhass> can you gist it?
<wasamasa> not really
<wasamasa> when I try to do the same with python and lxml, I get xml entity errors
<wasamasa> so maybe there's the problem
DeanH has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has joined #ruby
gattuso has joined #ruby
testcore has joined #ruby
stytown has joined #ruby
wldcordeiro has joined #ruby
Zebroid has joined #ruby
<shevy> hey apeiros did you see the "XCOM: Enemy Unknown" trailer? http://www.linuxgames.com/
wowXD has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
eka has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 255 seconds]
Rainicorn has quit [Ping timeout: 264 seconds]
obs has joined #ruby
eka has joined #ruby
dorei has joined #ruby
momomomomo has joined #ruby
zz_jrhorn424 is now known as jrhorn424
Zebroid has quit [Ping timeout: 255 seconds]
shvelo has joined #ruby
brain_shim has quit [Ping timeout: 264 seconds]
techsethi has quit [Ping timeout: 244 seconds]
LekeFly has joined #ruby
Notte has joined #ruby
razrunelord has quit [Remote host closed the connection]
alem0lars has joined #ruby
razrunelord has joined #ruby
gondalier has quit []
gfunc has left #ruby [#ruby]
sailias has quit [Quit: Leaving.]
sdouglas has quit [Remote host closed the connection]
mijicd has joined #ruby
adantj has joined #ruby
kirun has joined #ruby
yetanotherdave has joined #ruby
stytown has quit [Quit: stytown]
Vpex has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
blackmes2 has joined #ruby
noop has joined #ruby
techsethi has joined #ruby
jespada has quit [Quit: Leaving]
gondalier has joined #ruby
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikesplain has quit [Ping timeout: 244 seconds]
lmickh has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 264 seconds]
RaCx has joined #ruby
icole has quit [Remote host closed the connection]
mikesplain has joined #ruby
momomomomo has quit [Quit: momomomomo]
Vpex has joined #ruby
stytown has joined #ruby
razrunelord has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
eka_ has joined #ruby
tier has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jheg has joined #ruby
dideler|work has quit [Ping timeout: 240 seconds]
eka has quit [Ping timeout: 264 seconds]
dideler|work has joined #ruby
Valesk has joined #ruby
tyfighter has joined #ruby
Xeago has joined #ruby
carraroj has joined #ruby
Diranged has left #ruby [#ruby]
blackmes2 has quit [Ping timeout: 240 seconds]
blackmes2 has joined #ruby
roolo has quit [Quit: Leaving...]
bmurt has quit []
bmurt has joined #ruby
mikesplain has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
brunops has joined #ruby
Fire-Dragon-DoL has joined #ruby
obs has quit [Quit: Konversation terminated!]
marr has joined #ruby
sunya7a_ has quit [Ping timeout: 240 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
andrewjanssen has joined #ruby
RaCx has joined #ruby
Fire-Dragon-DoL has quit [Client Quit]
RaCx has quit [Remote host closed the connection]
sunya7a has joined #ruby
elaptics is now known as elaptics`away
icole has joined #ruby
jonasbjork has joined #ruby
Fire-Dragon-DoL has joined #ruby
jonasbjork has quit [Max SendQ exceeded]
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
paf0 has quit []
timonv has joined #ruby
djbkd has quit [Remote host closed the connection]
gondalier has left #ruby [#ruby]
JasmeetQA has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
djbkd has joined #ruby
Zebroid has joined #ruby
volk_ has joined #ruby
search-db has joined #ruby
<volk_> hey guys is there such thing as a pre-built ruby version for rbenv?
momomomomo has joined #ruby
stytown has quit [Quit: stytown]
search-db has left #ruby [#ruby]
zartoosh has quit [Remote host closed the connection]
Aryasam has joined #ruby
jespada has joined #ruby
<shevy> volk_ you mean binary? I think no
<shevy> possibly some third party site
zartoosh has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<volk_> yeah i was hoping there might be.. im playing with docker, and when i change something, i have to re-build ruby every time
<volk_> thats a 12 min wait
<volk_> -__________-
mary5030 has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrPopinjay has joined #ruby
<pontiki> that does not seem right
rbennacer has left #ruby ["Leaving"]
Guest7481 has joined #ruby
<pontiki> if you 're using docker, shouldn't you be able to have the vesion you want already built?
<MrPopinjay> Is there a way that I can set the Rack ENV in a rake task?
Zebroid has quit [Ping timeout: 264 seconds]
<MrPopinjay> I can't work out how to get my sinatra app's tests to run in the right enviroment without setting the shell var each time
fgo has joined #ruby
<pontiki> can you set ENV ?
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
<shevy> if [ -f $file ]
<shevy> why is shell code so ugly
mikesplain has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
doev has quit [Ping timeout: 264 seconds]
mikesplain has quit [Max SendQ exceeded]
mikesplain has joined #ruby
jonasbjork has joined #ruby
jonasbjork has quit [Max SendQ exceeded]
fgo has quit [Ping timeout: 244 seconds]
foooobear has joined #ruby
unholycrab has quit [Changing host]
unholycrab has joined #ruby
datafirm has quit [Ping timeout: 240 seconds]
<jhass> MrPopinjay: ENV['RACK_ENV'] ||= 'test' is a common way
EminenceHC has joined #ruby
vt102 has quit [Remote host closed the connection]
<EminenceHC> In this conditional: params[:daily_time_card][:current] != '3' how can i also add '4', '5' etc. Would it be: params[:daily_time_card][:current] != ['3', '4', '5'] ?
gregf has quit [Quit: WeeChat 0.4.3]
jonasbjork has joined #ruby
jonasbjork has quit [Max SendQ exceeded]
ryanleesipes has quit [Quit: Leaving]
razrunelord has joined #ruby
RaCx has joined #ruby
<jhass> EminenceHC: a common idiom is ['3', '4', '5'].include? params[:daily_time_card][:current]
jonasbjork has joined #ruby
<EminenceHC> jhass: Oh I like that include. Thanks
<jhass> also use unless instead of if ! unless you got an elsif
carraroj has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
carraroj has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
Vpex has quit [Quit: Vpex]
foooobear has quit [Ping timeout: 245 seconds]
srnty has quit [Quit: srnty]
vt102 has joined #ruby
aspires has joined #ruby
<EminenceHC> jhass: I am chaining it in an if statement, can I do: if @daily_time_card.clock_in_1.present? && ['3', '4', '5'].include? params[:daily_time_card][:current] == false
wendly has quit [Remote host closed the connection]
<jhass> sure, use parens if you append an ==
<jhass> instead of doing == false you can also use ![...
cocotton has quit [Remote host closed the connection]
srnty has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 255 seconds]
codeurge has joined #ruby
cocotton has joined #ruby
wowXD has joined #ruby
aniM has joined #ruby
<apeiros> you shouldn't do `== false` after an include?. that's just pointless.
Guest7481 has quit [Ping timeout: 244 seconds]
<apeiros> I see jhass already said that in nicer terms :)
codabrin_ has joined #ruby
bluOxigen has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
razrunelord has quit [Remote host closed the connection]
<EminenceHC> I have this but ruby mine is telling me I am missing an argument: !['3','4','5'].include? params[:daily_time_card][:current] Maybe RM is just full of crap?
looofer has joined #ruby
aniM has quit [Ping timeout: 245 seconds]
wowXD has quit [Ping timeout: 244 seconds]
lmickh has joined #ruby
codabrink has quit [Ping timeout: 264 seconds]
stytown has joined #ruby
timonv has quit [Remote host closed the connection]
mikesplain has quit [Read error: Connection reset by peer]
<looofer> Hi all. I am trying to sort an array. The array is @movies that I am getting from my database. I want to sort it with the names. For achiving this I am doing @movies = @movies.order(@movies.title) if params[:title_header].present?
<looofer> Can anyone please tell me what am I doing wrong?
<jhass> looofer: Rails/ActiveRecord?
mikesplain has joined #ruby
<looofer> jhass: yeah
Asher has quit [Quit: Leaving.]
<jhass> it's .order(:title) iirc, #rubyonrails may help you better
Guest7481 has joined #ruby
mapimopi has joined #ruby
Asher has joined #ruby
mikespla_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<pontiki> ^
<looofer> jhass: that doesn't work either :(
AlSquire has joined #ruby
<looofer> if it was @movie.title
aspires has quit []
<looofer> that would have worked?
<apeiros> looofer: you have to call it on the model-class or a relation, not on an array
<looofer> Oh, I see
<looofer> you mean Movie.order(:title)
tesaf has joined #ruby
<jhass> for example
Aryasam has quit [Ping timeout: 240 seconds]
absolutezeroff has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikesplain has quit [Ping timeout: 240 seconds]
banister has joined #ruby
<looofer> Thank you jhass, apeiros
keystonelemur is now known as lemur
<looofer> trying to work it out
banister has quit [Client Quit]
<looofer> I am a complete newbie, sorry
alpha123 has joined #ruby
djbkd has quit [Remote host closed the connection]
sdouglas has joined #ruby
Hanmac has joined #ruby
timonv has joined #ruby
rebelshrug has joined #ruby
jonasbjork has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alejandro has joined #ruby
sdouglas has quit [Ping timeout: 264 seconds]
<wasamasa> ugh
pranny has joined #ruby
<wasamasa> apparently only curl is able to scrap the sources of facebook pages
<wasamasa> why
GriffinHeart has joined #ruby
<pontiki> not so
<pontiki> you can use watir as well
djbkd has joined #ruby
<wasamasa> to hell with selenium-like tools
mikepack_ has quit [Remote host closed the connection]
<pontiki> and curl will only do what mechanize does
<pontiki> no JS exec
<wasamasa> don't need js there
mikepack has joined #ruby
<pontiki> besides, scraping facebook is a violation of their TOS
mikepack has quit [Remote host closed the connection]
jonasbjork has joined #ruby
jonasbjork has quit [Max SendQ exceeded]
<wasamasa> I just can't understand why curb does exactly nothing for me and open-uri saves merely a login page, but passes half of a working page to nokogiri
rezzack has joined #ruby
mikespla_ has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
mikesplain has joined #ruby
<pontiki> ok
chrishough has quit [Quit: chrishough]
techsethi has quit [Ping timeout: 255 seconds]
GriffinHeart has quit [Ping timeout: 245 seconds]
ynkbs has joined #ruby
EminenceHC has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
terrell_t has joined #ruby
techsethi has joined #ruby
LekeFly has joined #ruby
LekeFly has quit [Client Quit]
Valesk_ has joined #ruby
Valesk_ has quit [Client Quit]
Valesk_ has joined #ruby
dukedave has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
terrellt has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
Olipro has quit [*.net *.split]
bwilson has joined #ruby
ari-_-e has quit [Ping timeout: 255 seconds]
St_Marx has joined #ruby
alem0lars has quit [Quit: alem0lars]
tesaf has quit [Quit: i <3 pork (http://dev.ojnk.net)]
bradhe has joined #ruby
buub has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
bradhe has quit [Client Quit]
bradhe has joined #ruby
<lxsameer> does any one know any rack middleware to restart server on changes ?
Dwarf has quit [Quit: Oops I quit]
funktor has joined #ruby
<MrPopinjay> So within a rake task I can call another task like this: "Rake::Task['db:drop'].invoke", is it possible for me to set the env for this?
<wasamasa> and why the heck does inf-ruby all of a sudden decide to not give me any results anymore
* wasamasa rages
ari-_-e has joined #ruby
endash has quit [Read error: Connection reset by peer]
datafirm has joined #ruby
datafirm has quit [Client Quit]
<jhass> MrPopinjay: you did try what I wrote?
Dwarf has joined #ruby
enebo has quit [Quit: enebo]
datafirm has joined #ruby
<MrPopinjay> Yes, very helpful, sorry I didn't reply!
<MrPopinjay> :)
endash has joined #ruby
buub has joined #ruby
mikepack has joined #ruby
Zebroid has joined #ruby
SBoolean has joined #ruby
srnty has quit [Quit: srnty]
djbkd has quit [Remote host closed the connection]
cmhobbs has joined #ruby
holmser has quit [Disconnected by services]
cmhobbs has quit [Client Quit]
ixti has joined #ruby
terrell_t has quit [Remote host closed the connection]
srnty has joined #ruby
terrellt has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Quit: Leaving...]
djbkd has joined #ruby
pranny has quit [Read error: Connection reset by peer]
Guest7481 has quit [Ping timeout: 244 seconds]
pranny1 has joined #ruby
pranny1 has quit [Client Quit]
ndrei has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
btw has joined #ruby
wc- has joined #ruby
fgo has joined #ruby
Hanmac has quit [Remote host closed the connection]
<wc-> hi all, i have a mongoid document / object with a field called completion_date on it. when i do doc.completion_date it is a date class, when i do doc[‘completion_date’] it is a time class
<wc-> any idea why those two different ways of accessing the field are changing the type?
btw is now known as tesaf
sdelmore has joined #ruby
<sdelmore> Can anyone point me to an example of how to define a += method on an object? I am finding it ungoogleable.
cocotton has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
frankle has joined #ruby
cmhobbs has joined #ruby
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
pietr0 has quit [Ping timeout: 245 seconds]
<sdelmore> Hmmm….I think it is actually just def +(other) and the += must be handled by Ruby.
Shidash has joined #ruby
andrewjanssen has joined #ruby
<jhass> yes, a += b is a = a+b
<jhass> this is true for all op= methods except for ||= and &&=
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
<frankle> i have andand in my Gemfile. I bundle install. I commit. I deploy. I get this error: /var/www/core/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:317:in `rescue i
<frankle> n depend_on': No such file to load -- andand
<sdelmore> Thanks for the confirmation jhass
Olipro has joined #ruby
pietr0 has joined #ruby
cmhobbs has quit [Remote host closed the connection]
postmodern has joined #ruby
fschuindt has joined #ruby
fschuindt has quit [Max SendQ exceeded]
<slash_nick> sdelmore: looks like playing with += and #send can help shed more light http://stackoverflow.com/questions/18183883/plus-equals-with-ruby-send-message
fschuindt has joined #ruby
bwilson has quit [Quit: +++CARRIER LOST+++]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
looofer has quit [Quit: Page closed]
cocotton has joined #ruby
ikaros has quit [Quit: Ex-Chat]
IceDragon has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
wowXD has joined #ruby
timonv has quit [Remote host closed the connection]
IceDragon has joined #ruby
SBoolean_ has joined #ruby
SBoolean has quit [Ping timeout: 244 seconds]
Valesk_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seanosaur has joined #ruby
seanosaur has quit [Remote host closed the connection]
seanosaur has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
<sdelmore> Great idea slash_nick. Also helps to realize I should have searched for plus equals instead of +=
wowXD has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
Zenigor has joined #ruby
srnty has quit [Quit: srnty]
MartynKeigher has joined #ruby
momomomomo has quit [Quit: momomomomo]
<MartynKeigher> Hey.... so i have this code.... http://pastebin.com/rQvyrs6W . what do i need to change so that wehn this code is invoked, it opens in a NEW browser tab and not the current one? thanks
<slash_nick> sdelmore: same with !(bang) #(splat), |(pipe), etc
srnty has joined #ruby
<slash_nick> MartynKeigher: target: "_blank"
ynkbs has quit [Ping timeout: 240 seconds]
rayners has quit [Remote host closed the connection]
<slash_nick> MartynKeigher: it's an attribute for a tags, target
wookiehangover has quit [Ping timeout: 264 seconds]
mapimopi has left #ruby [#ruby]
<MartynKeigher> so i can throw that below my existing code on line 6?
<MartynKeigher> or should i add it to the thr html url call?
<MartynKeigher> *the
cpruitt has quit [Quit: cpruitt]
x1337807x has joined #ruby
alvaro_o has joined #ruby
<slash_nick> MartynKeigher: instead of window.location('url') use window.open('url', '_blank')
<slash_nick> I thought you were html, but you're js
ericboehs has joined #ruby
<MartynKeigher> ya thats it!!! i'll give it a shot. one sec
momomomomo has joined #ruby
LiohAu has quit [Quit: LiohAu]
<MartynKeigher> hmmm... when i do that it just takes me to .../_url . not my intended url link (google.com for testing)
shinobi_one has quit [Quit: shinobi_one]
beneggett has joined #ruby
jonasbjork has joined #ruby
wookiehangover has joined #ruby
<slash_nick> use your url
pietr0 has quit [Quit: pietr0]
alejandro has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
<MartynKeigher> it has to be dynamic. url's could be different depending on what URL is linked ot the object on the page
kate_r has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
pietr0 has joined #ruby
icole has quit [Remote host closed the connection]
<slash_nick> i mean that 'url' was intended as just a placeholder... it could be a function that returns a string... aren't we in #ruby?
Kricir has quit [Remote host closed the connection]
<slash_nick> lol
bradhe has joined #ruby
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
kate_r has joined #ruby
<shevy> hey
<shevy> speaking of #ruby
<shevy> I have a question about shell functions
<shevy> if [ -f $file ]
<shevy> why is this so ugly?
<shevy> why do I have to terminate it with: fi
<shevy> which mad man came up with it
alpha123 has quit [Ping timeout: 245 seconds]
<RubyPanther> shevy: you have to do it that way because csh was too hard
sdouglas has quit [Ping timeout: 264 seconds]
mapimopi_ has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
<shevy> only good thing is that I don't handwrite the shell script, ruby generates them
sdelmore has left #ruby [#ruby]
<RubyPanther> shevy: in csh you can just say if ( -f $file ) echo "omg" or if (-f $file) then \necho "omg"\nendif
frank_____ has joined #ruby
<shevy> what is endif
nanoyak has joined #ruby
<RubyPanther> just keep asking the question until it answers itself ;)
<RubyPanther> Just because it is the C sh doesn't mean it supports hanging ifs
decoponio has quit [Quit: Leaving...]
<RubyPanther> everybody knows hanging ifs are harmful
Xeago has quit [Remote host closed the connection]
<Deele> I want my core application be able to launch child applications, like run other ruby scripts, like modules or something, and core application being able to use them seperately, like when it crashes or something happens, core app is able to relaunch it or etc. How is it called, what should I search for?
<dideler|work> Deele: maybe "ruby process manager"
<dideler|work> or "management"
<Deele> dideler|work, like http://godrb.com/ ?
<jhass> Deele: another common term is supervisor. and ^ check god
<dideler|work> Deele: i haven't used god myself, but it can probably do what you want
<Deele> and how do I communicate with those other processes?
<jhass> there are a myriad of ways and the best depends on your application
shvelo has joined #ruby
<jhass> plain old files, (named) pipes, drb, dbus, a common database,... to name just a few
<Deele> like, if I have process, that is literarly graphical console, I want to send messages that needs to be displayed, another is some sort of server, that listens to port, and when it receives request, core process receives trigger about that
jonasbjork has quit [Quit: ZNC - http://znc.in]
<jhass> google IPC and try to not get lost ;)
<eam> google ipc, so protobufs?
<eam> ;-)
<jhass> eam: exactly, just another way!
<jhass> ;P
ELLIOTTCABLE has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
<shevy> omg
<shevy> dbus
anekos has quit [Ping timeout: 272 seconds]
jmeeuwen_ has joined #ruby
<jhass> shevy: did you know they want to integrate it into the kernel?
<shevy> let met try to find the error I had yesterday
buub has quit [Quit: leaving]
<eam> dshortbus
axisys has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
<shevy> the kernel devs have lost their minds some years ago
ELLIOTTCABLE has joined #ruby
<shevy> what was the name of that thing that is used for automounts and assigns b789gs789gd789b-b789sdg789sdh789dh names to devices?
axisys has joined #ruby
<jhass> you mean udev?
<eam> shevy: labels?
Hanmac has quit [Ping timeout: 264 seconds]
<jhass> that's userspace
unek_ has joined #ruby
<shevy> oh yes udev
anekos has joined #ruby
unek_ has quit [Read error: Connection reset by peer]
<machty> can anyone help me understand the difference between Fiber#resume and Fiber#transfer? http://www.ruby-doc.org/core-2.1.2/Fiber.html
<shevy> I can't reproduce the bug right now... I had it yesterday when I used transmission-gtk, now it works after some recompiling :\
thomasfedb has quit [Ping timeout: 255 seconds]
jmeeuwen has quit [Ping timeout: 272 seconds]
<shevy> it was that "blablabla is not registered in domain dbus.org-gnome blablablablablabla"
<jhass> shevy: did you see how systemd names interface devices now?
MartynKeigher has left #ruby ["(Byrd IRC Client // haxed.net)"]
jmeeuwen_ is now known as jmeeuwen
Tricon has quit [Quit: Linkinus - http://linkinus.com]
<shevy> no real idea
RaCx has quit [Quit: Computer has gone to sleep.]
<shevy> I kinda started following ruby more than anything else
<jhass> one of mines is ens18 now for example
<shevy> as long as I have ruby I am happy
<shevy> but as for the underlying OS, I just want it to get out of the way
<shevy> and what does ens18 mean?
thomasfedb has joined #ruby
<shevy> is there a logic to it
<Deele> I'm fairly new to ruby, have finished couple tutorials, and I want to start with something solid, and this multi-process thingy I have in mind, I want to create it with ruby, but I don't know with what to start, I guess, I will start with "god"
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> Deele do you understand threads, mutex and fibers yet?
<Deele> no
dwayhs has joined #ruby
<shevy> I recommend the official documentation (it sucks but it is better than no documentation)
<jhass> machty: never used fibers yet but if I read the docs correctly transfer is basically yield and resume combined
icole has joined #ruby
linojon has quit [Ping timeout: 255 seconds]
mapi-mopi has joined #ruby
<machty> jhass: in what regard? not sure i get it
CorpusCallosum has joined #ruby
SilverKey has quit [Quit: Halted.]
linojon has joined #ruby
<Deele> there are so much information, I'm afraid I will dig too deep into specific field, that I will not be able to finish my idea in realistic timeframe
sunya7a has quit [Ping timeout: 240 seconds]
<jhass> machty: if you call resume you'll never return to where you are. Where as if you call transfer inside another fiber, it will be suspended and you can return to it, just as if you had called yield
endash has quit [Quit: endash]
<machty> jhass: but you do return to where you are with resume
geekluv has joined #ruby
<machty> Fiber.new { puts "hello" }.resume
Zebroid has joined #ruby
<machty> at the termination of that fiber you return to where you were, hence it behaves as if it were just `puts "hello"` in irb
<jhass> did you understand yield yet?
ascarter has joined #ruby
qwyeth has quit [Quit: Leaving]
<machty> yeah
sunya7a has joined #ruby
sunya7a has quit [Changing host]
sunya7a has joined #ruby
RaCx has joined #ruby
mapi-mopi has left #ruby [#ruby]
<jhass> so, with transfer you do not get back to the last resume call, instead you go to the last yield of the fiber you call transfer on
vifino_ has joined #ruby
<slash_nick> shevy: i don't like fi either.... but i love esac
mapi-mopi has joined #ruby
gregf has joined #ruby
djbkd has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
fschuindt has quit [Ping timeout: 255 seconds]
mapi-mopi has left #ruby [#ruby]
buub has joined #ruby
Takle has joined #ruby
<slash_nick> shevy: also, what magic is this where your ruby is writing shell scripts?
<machty> jhass: ah i get it now; ran their example side by side with one where resume is used instead of transfer
mapi-mop1 has joined #ruby
* slash_nick gives his ruby the look of a disappointed parent
shredding has joined #ruby
Zebroid has quit [Ping timeout: 255 seconds]
maroloccio has quit [Quit: WeeChat 0.4.3]
vifino has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
littledude has joined #ruby
rayners has joined #ruby
<hfp> Hey guys, considering the following: `foo = {name: 'bar', nick: 'baz'}`, how can I access foo[:name] with foo.name? I tried attr_reader but it doesn't seem to work on a hash
mapi-mop2 has joined #ruby
<hfp> I meant `foo.name`?
Hanmac1 has quit [Quit: Leaving.]
Hanmac has joined #ruby
<littledude> hi. I have this in a gemspec file :
<littledude> s.add_dependency("thin", "<2.0")
seaned has joined #ruby
cocotton has joined #ruby
<littledude> but doing gem install *always* install thin-2.0.0.pre
Zenigor has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
<littledude> I also tried
cocotton has joined #ruby
<littledude> s.add_dependency("thin", "1.6.2")
<littledude> same result
dwayhs has quit [Quit: Computer has gone to sleep.]
<littledude> could someone explain me what's happening here please ?
bluOxigen has quit [Ping timeout: 244 seconds]
foooobear has joined #ruby
mapi-mop1 has quit [Ping timeout: 244 seconds]
momomomomo has quit [Quit: momomomomo]
axisys has quit [Changing host]
axisys has joined #ruby
<slash_nick> littledude: what's your env? are you developing this gem? are you using this gem in a nother gem or library?
Timmee has joined #ruby
geekluv has quit [Quit: geekluv]
<slash_nick> hfp: you could use ostruct ... require 'ostruct'; foo = OpenStruct.new { name: 'bar' }; foo.name #=> bar
<littledude> slash_nick : I am not developping the gem (I have no ruby knowledge), just installing it.
dwayhs_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
noop has quit [Ping timeout: 255 seconds]
<littledude> I just noticed that the soft was not working properly with this version of thin
zorak has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
kyb3r_ has joined #ruby
Xeago has joined #ruby
foooobear has quit [Ping timeout: 240 seconds]
<littledude> So I am trying to change the gemspec to force the install of thin 1.6.2
<jhass> hfp: consider OpenStruct (ostruct stdlib)
<littledude> the worst is that "gem install thin" installs 1.6.2.
ItSANgo has quit [Quit: Leaving...]
<hfp> slash_nick, jhass: Thanks
zmack_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> littledude: my bet is that you have an old .gemspec / .gem cached somewhere
Tricon has joined #ruby
<jhass> but these things are almost impossible to debug without access to the system
pasties has joined #ruby
volk_ has quit [Quit: volk_]
Ankhers has quit [Ping timeout: 264 seconds]
andrewjanssen has quit [Quit: Leaving...]
<littledude> jhass thanks let's see if I can find it.
p4tux has quit [Read error: Connection timed out]
Morkel has quit [Quit: Morkel]
j_mcnally has joined #ruby
p4tux has joined #ruby
<littledude> just to make sure : gem install <mygem> first looks into the *current* directory if it can find a gemspec file, right ?
zmack_ has joined #ruby
<jhass> I never checked and my intuition says no
troulouliou_dev has joined #ruby
<jhass> I thought the process has to be gem build mygem.gemspec && gem install ./mygem.gem
seanosaur has quit []
mapi_mopi has joined #ruby
charliesome_ has joined #ruby
dukedave has joined #ruby
<littledude> argh. ok thank you.
<slash_nick> if you're using a Gemfile you can specify the path to the gem library and it'll use the current .gemspec
<slash_nick> (from that library)
charliesome has quit [Ping timeout: 240 seconds]
a13x212 has quit [Read error: Connection reset by peer]
bradhe has quit [Read error: Connection reset by peer]
jackneill has quit [Remote host closed the connection]
bradhe has joined #ruby
tier has quit [Quit: heading home.]
zmack_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
lw has quit [Quit: s]
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
Zebroid has joined #ruby
Zebroid has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
<shevy> slash_nick I want to be able to compile all programs that are registered even when ruby is unavailable on a target machine
tesaf has quit [Quit: Lost terminal]
GriffinHeart has joined #ruby
<littledude> jhass thank you that works with you commands :)
timonv has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
Hanmac1 has joined #ruby
<littledude> thanks slash_nick also.
datafirm has quit [Ping timeout: 240 seconds]
superscott[8] has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
datafirm has joined #ruby
kilk_ has quit [Ping timeout: 240 seconds]
ItSANgo has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
yfeldblum has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
RaCx has quit [Ping timeout: 255 seconds]
etqqkoiflwhb has quit [Ping timeout: 245 seconds]
kilk_ has joined #ruby
sdouglas has joined #ruby
RaCx has joined #ruby
Notte has quit [Remote host closed the connection]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
sdouglas has quit [Ping timeout: 252 seconds]
chrishough has quit [Quit: chrishough]
jeeves_moss has joined #ruby
<jeeves_moss> how do I fix this error? I have ZERO ruby exp
jheg_ has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
kate_r has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mapi_mopi has quit [Remote host closed the connection]
set_almighty has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
mapi_mopi has joined #ruby
atraylen has joined #ruby
<shevy> first problem is you use windows
ldnunes has quit [Quit: Leaving]
mapi_mopi has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
jheg has quit [Ping timeout: 240 seconds]
jheg_ is now known as jheg
<shevy> also what is this here? "ruby gl_tail gl_tail.yaml" that does not seem right; a ruby file should end in .rb
<jeeves_moss> shevy, I'm sure if I go to the car and get the linux device, it'll do the same thing
jhass is now known as jhass|off
Poky has quit [Ping timeout: 245 seconds]
srnty has quit [Quit: srnty]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> we all may have incorrect assumptions
<jeeves_moss> shevy, this cna't be this 'effin hard
lxsameer has quit [Quit: Leaving]
<shevy> on windows it often is; but I mean, really, if you try to run a .yaml file in ruby, I don't think anyone could have told you to do that
phinfone_ has quit [Ping timeout: 264 seconds]
<shevy> first thing is always to try and find official documentation of the gem in question
<shevy> http://rubydoc.info/gems/ruby-opengl/0.61.0/frames <-- this project has no documentation there
<shevy> http://ruby-opengl.rubyforge.org/ <-- this project also has no documentation here either
djbkd has quit [Remote host closed the connection]
<shevy> here would have been the last bet https://github.com/larskanis/ruby-opengl
<shevy> conclusion: the author(s) were lazy
<shevy> aha
<shevy> there is one link:
<shevy> so it might be you were using an outdated gem
<slash_nick> shevy: ruby-opengl has zero code
Arkaniad has quit [Ping timeout: 264 seconds]
<shevy> yeah don't tell me, tell jeeves_moss for some reason he tried to install it
rizzatti has joined #ruby
rizzatti has quit [Client Quit]
<slash_nick> it is literally just a gemspec with 'opengl' in it
mapimopi has joined #ruby
Guest7481 has joined #ruby
mapimopi has left #ruby [#ruby]
<shevy> so it is a pointer towards: gem install opengl
<shevy> jeeves_moss go try that
djbkd has joined #ruby
<jeeves_moss> done that already
mapi_mopi has joined #ruby
<shevy> not in your pastie
Hanmac has joined #ruby
Takle has quit [Remote host closed the connection]
<jeeves_moss> I did that earlier
shredding has quit [Quit: shredding]
<shevy> not in your pastie
pickle_ has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
<jeeves_moss> redoing now
<shevy> \o/
<jeeves_moss> unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/opengl/1.9/opengl.so,
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
jcromartie has joined #ruby
freerobby has quit [Quit: Leaving.]
<shevy> that is a docu error isn't it?
<shevy> I mean, you could really publish the whole thing on a pastie...
sailias has joined #ruby
yubrew has quit [Remote host closed the connection]
sailias has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
* slash_nick google image searches "pastie"
K3dare has quit [Ping timeout: 240 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
dennus has quit []
mikepack has joined #ruby
Kricir has joined #ruby
<shevy> yeah it says so in the output
<shevy> "Parsing documentation for opengl-0.9.0-x86-mingw32"
<shevy> those are errors related to the documentation, but if you run a ruby program, the documentation is not relevant
<shevy> so check via gem list what is installed
<hfp> Is there a way to use %w() and strings with spaces? ie `%w("foo bar" baz)` #=> ["Foo bar", "baz"]
<shevy> then you have the docu at: http://rubydoc.info/gems/opengl/0.9.0/frames
mikepack has quit [Remote host closed the connection]
<shevy> start irb
<shevy> try:
<shevy> require 'opengl'
djbkd has quit [Read error: Connection reset by peer]
<shevy> hfp hmm
MrJoshua has quit [Remote host closed the connection]
djbkd has joined #ruby
<jeeves_moss> opengl (0.9.0 ruby x86-mingw32, 0.8.0 x86-mingw32)
b00stfr3ak has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
<shevy> hfp I think that might not work; %w() would assume to split on each ' ' character
<jeeves_moss> shevy, and with the require, I get "true"
<shevy> good
<shevy> that means it is installed and working, at least up to that point
<apeiros> >> %w[foo\ bar baz]
<eval-in> apeiros => ["foo bar", "baz"] (https://eval.in/166846)
<hfp> shevy: Yes I saw a method to escape it liek %w(foo\ bar baz) but it looks pretty ugly
<apeiros> hfp: ^
<apeiros> hfp: but if you have many spaces, better use ordinary string literal.
<shevy> ohhhh \ escaping
<apeiros> err, ordinary array literal
<shevy> yeah that looks ugly
<hfp> apeiros, shevy: Thanks
joast has joined #ruby
stytown has quit [Quit: stytown]
<queequeg1> ./factorygirl
phinfonet has joined #ruby
<jeeves_moss> shevy, so it looks like it's all a opengl issue
jeeves_moss has quit [Read error: Connection reset by peer]
jerius has quit []
sinkensabe has quit [Remote host closed the connection]
jeeves_moss has joined #ruby
seaned has left #ruby [#ruby]
b00stfr3ak has joined #ruby
edgarjs is now known as edgarjs_afk
zmack_ has joined #ruby
<shevy> it would scare me very much to try opengl on windows
<jeeves_moss> lol
Arkaniad has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
mapi_mopi is now known as mapi__mopi
mapi__mopi is now known as mapi_mopi
little_fu has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
kilk_ has quit [Quit: Leaving]
emptyflask has joined #ruby
little_f_ has joined #ruby
Kricir has quit [Remote host closed the connection]
little_fu has quit [Ping timeout: 244 seconds]
<emptyflask> frustrating issue with minitest-rails / capybara / factory_girl: when trying to create an object in an integration test, the SQL is wrapped in a savepoint and is immediately released
brunops has quit [Ping timeout: 244 seconds]
<emptyflask> even tried installing database_cleaner and using that, but no luck. same behavior
cocotton_ has joined #ruby
<emptyflask> any suggestions?
x1337807x has joined #ruby
funktor has quit [Remote host closed the connection]
brunops has joined #ruby
mapi-mop2 has quit [Ping timeout: 244 seconds]
mapi-mop1 has joined #ruby
cocotton has quit [Ping timeout: 240 seconds]
<jeeves_moss> shevy, ok, I've got the little BeagleBone running now. want to help me fire through this?
edgarjs_afk is now known as edgarjs
cocotton_ has quit [Ping timeout: 240 seconds]
mosoj has joined #ruby
Lucky__ has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
wowXD has joined #ruby
IceDragon has joined #ruby
zmack_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
amargherio has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wowXD has quit [Ping timeout: 245 seconds]
eka_ has quit [Quit: My computer has gone to sleep. ZZZzzz…]
andrewjanssen has joined #ruby
orionstein is now known as orionstein_away
dwayhs_ has quit [Quit: Computer has gone to sleep.]
jheg has quit [Quit: jheg]
terrell_t has joined #ruby
zmack_ has joined #ruby
aniM has joined #ruby
momomomomo has joined #ruby
techsethi has quit [Quit: techsethi]
eka has joined #ruby
acknowledge has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
momomomomo has quit [Client Quit]
johnmolina has joined #ruby
VeinMelted has quit [Quit: Computer has gone to sleep.]
SBoolean_ has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 244 seconds]
mosoj has quit [Ping timeout: 245 seconds]
Pyrotecnix has quit [Quit: Leaving]
funktor has joined #ruby
bradhe has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
zmack_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
mikesplain has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> jeeves_moss hehe I don't even know what a BeagleBone is
<shevy> sounds kinky
bradleyp_ has joined #ruby
<shevy> jeeves_moss I don't really have any opengl-specific knowledge, only general ruby knowledge
edgarjs is now known as edgarjs_afk
ascarter has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
Guest7481 has quit [Ping timeout: 240 seconds]
dblessing has quit [Quit: dblessing]
anaeem1_ has quit [Remote host closed the connection]
fgo has joined #ruby
s2013 has quit [Ping timeout: 245 seconds]
johnmolina has quit [Remote host closed the connection]
jottr has joined #ruby
jeeves_moss has quit [Read error: No route to host]
jeeves_moss has joined #ruby
johnmolina has joined #ruby
bradhe has joined #ruby
relix has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 264 seconds]
lemur has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
Zebroid has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 255 seconds]
johnmolina has quit [Read error: Connection reset by peer]
johnmolina has joined #ruby
xcv_ has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
xcv has joined #ruby
Guest7481 has joined #ruby
SilverKey has joined #ruby
ixti has joined #ruby
riotjone_ has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
icole has quit [Remote host closed the connection]
Zebroid has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
thisirs has quit [Remote host closed the connection]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frankle has quit [Quit: Connection closed for inactivity]
dennus has joined #ruby
Guest7481 has quit [Ping timeout: 264 seconds]
Timmee has quit []
mjsmith2 has quit [Remote host closed the connection]
freerobby has joined #ruby
JohnBat26 has quit [Ping timeout: 272 seconds]
ctp has joined #ruby
jxf has quit [Ping timeout: 244 seconds]
mapimopi_ has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
mapi_mopi has quit [Ping timeout: 240 seconds]
mapi-mop1 has quit [Ping timeout: 255 seconds]
qwyeth has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
jobewan has quit [Ping timeout: 240 seconds]
dwayhs_ has joined #ruby
edgarjs_afk is now known as edgarjs
jxf has joined #ruby
geggam has quit [Quit: commute]
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
scarolan has joined #ruby
absolutezeroff has joined #ruby
northfurr has joined #ruby
scarolan has quit [Client Quit]
scarolan has joined #ruby
dwayhs_ has quit [Ping timeout: 244 seconds]
VeinMelted has joined #ruby
Takle has joined #ruby
mary5030 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
dennus has quit []
bradleyp_ has quit [Remote host closed the connection]
little_fu has joined #ruby
bradleyprice has joined #ruby
little___ has joined #ruby
freerobby has joined #ruby
VeinMelted has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
adantj has quit [Ping timeout: 244 seconds]
Takle has quit [Ping timeout: 240 seconds]
little_f_ has quit [Ping timeout: 244 seconds]
little_fu has quit [Ping timeout: 255 seconds]
bradleyprice has quit [Ping timeout: 255 seconds]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
foooobear has joined #ruby
little___ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
Thermo has joined #ruby
earthquake has joined #ruby
octarine has quit [Ping timeout: 240 seconds]
icole has joined #ruby
adambeynon has quit [Ping timeout: 264 seconds]
foooobear has quit [Ping timeout: 240 seconds]
bjeanes has quit [Ping timeout: 245 seconds]
bedouin has quit [Ping timeout: 252 seconds]
dmoe______ has quit [Ping timeout: 264 seconds]
ggherdov has quit [Ping timeout: 264 seconds]
pipework has quit [Ping timeout: 264 seconds]
jeregrine has quit [Ping timeout: 252 seconds]
natewalck has quit [Ping timeout: 252 seconds]
culturelabs has quit [Ping timeout: 264 seconds]
Darkchaos has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
glowcoil has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
flowerhack has quit [Ping timeout: 240 seconds]
CaptainJet has quit []
<icole> i think someone is trying to troll me with their FB status "As far as programming languages go, I've never seen a worse clusterfuck of dependencies and garbage than Ruby. What a worthless language. I feel bad for anyone who has to use it.. ever."
culturelabs has joined #ruby
pipework has joined #ruby
natewalck has joined #ruby
dmoe______ has joined #ruby
djbkd has joined #ruby
jeregrine has joined #ruby
octarine has joined #ruby
sunya7a has quit [Ping timeout: 244 seconds]
bjeanes has joined #ruby
adambeynon has joined #ruby
dorei has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<eam> icole: I've seen worse, but it's up there
little_f_ has joined #ruby
<icole> this is amazing "It has none of the power and speed of a real language, has super brittle dependencies enforced variably by the fifty different package managers and RVM and Bundler and Embedded nonsense with shit stacked on top of it.. nothing is abstracted, because when you're using something sitting on the pile of shit that is Ruby, you end up having to hack at Ruby itself to make the top of the stack work. Using Chef/Vagrant/TestKitchen I shou
<icole> ldn't have to be screwing with Bundles and GemFiles and other nonsense.."
flowerhack has joined #ruby
<icole> "And forget Windows, if you do anything on Windows you're just 100% fucked.. twice.."
glowcoil has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
atraylen has quit [Ping timeout: 264 seconds]
Thermo has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Ping timeout: 244 seconds]
bedouin has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
wowXD has joined #ruby
<apeiros> icole: well, that last part is true. but unrelated to ruby :D
wc- has quit [Ping timeout: 245 seconds]
Thermo has joined #ruby
ggherdov has joined #ruby
<icole> I have never met anyone hate a language this much
<icole> so much for programmer happiness
agjacome has quit [Ping timeout: 240 seconds]
<eam> icole: so reading between the lines, you're talking to a sysadmin
Zebroid has quit [Remote host closed the connection]
<eam> "Using Chef/Vagrant"
<icole> eam: QA engineer
<eam> same thing
<eam> expect disgruntled anger
dorei has joined #ruby
wowXD has quit [Ping timeout: 245 seconds]
qwyeth has quit [Ping timeout: 252 seconds]
danijoo has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
jorendorff has quit [Ping timeout: 244 seconds]
ramblinpeck has quit [Ping timeout: 244 seconds]
doodlehaus has quit [Client Quit]
danijoo has joined #ruby
cbetta has quit [Ping timeout: 252 seconds]
CJD14__ has quit [Ping timeout: 240 seconds]
mjc_ has quit [Ping timeout: 240 seconds]
sunya7a has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
antonishen has quit [Ping timeout: 240 seconds]
Thermo has quit [Ping timeout: 244 seconds]
rickruby has quit [Ping timeout: 255 seconds]
dik_dak has quit [Quit: Leaving]
amitchellbullard has quit [Ping timeout: 276 seconds]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SloggerKhan has quit [Ping timeout: 240 seconds]
<AntelopeSalad> is anyone an array+hash manipulating master? i have a problem that i'm not sure how to solve in a way that isn't ridiculous - https://gist.github.com/AntelopeSalad/e9b8c672a5febd4ac6dc
<AntelopeSalad> input and expected output + short description is included in the gist
SloggerKhan has joined #ruby
<ari-_-e> AntelopeSalad: I think you're gonna need a guru to answer this question
<ari-_-e> merely being a master is insufficient
jorendorff has joined #ruby
cbetta has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
<AntelopeSalad> ari-_-e: i feel like it's a common pattern, i just don't know how to do it
antonishen has joined #ruby
<AntelopeSalad> if anyone was looking, reload the gist too, forgot to encapsulate them in an array
ramblinpeck has joined #ruby
babykosh has joined #ruby
rickruby has joined #ruby
CJD14__ has joined #ruby
mjc_ has joined #ruby
amitchellbullard has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
adantj has joined #ruby
cmoneylulz has joined #ruby
sdouglas has joined #ruby
kirun has quit [Quit: Client exiting]
<ari-_-e> AntelopeSalad: can these arrays be reordered?
andrewjanssen has joined #ruby
<AntelopeSalad> ari-_-e: sure, i can always sort them by color later once i have the new array
johnmolina has quit []
<AntelopeSalad> the only order that matters is that all of the reds, yellows and greens are grouped together
jottr has joined #ruby
fgo has joined #ruby
tiagonobre has quit [Ping timeout: 240 seconds]
loadhigh has quit [Quit: Connection closed for inactivity]
benzrf is now known as benzrf|offline
Hanmac1 has quit [Ping timeout: 264 seconds]
DanielI has quit [Quit: Leaving]
djbkd has quit [Read error: Connection reset by peer]
<ari-_-e> then perhaps some combination of Array#sort and Array#uniq?
<ari-_-e> is red, yellow, green the order that they will be in?
djbkd has joined #ruby
sdouglas has quit [Ping timeout: 260 seconds]
<AntelopeSalad> ari-_-e: yes
northfurr has quit [Quit: northfurr]
<AntelopeSalad> but if there are green names that are duplicates of yellow names then the green versions should be removed
<AntelopeSalad> i just don't know how to do a uniqueness check on a specific hash key
pu22l3r has joined #ruby
tiagonobre has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<ari-_-e> AntelopeSalad: the doc for Array#uniq tells you how
fgo has quit [Ping timeout: 264 seconds]
<AntelopeSalad> wow wtf haha
andrewlio has quit [Ping timeout: 272 seconds]
<AntelopeSalad> arr.uniq { |item| item[:name] } , seems to be doing the trick but i'm not 100% sure
acknowledge has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
terrell_t is now known as terrellt
<ari-_-e> AntelopeSalad: well that will certainly remove hashes with duplicate names
<ari-_-e> AntelopeSalad: it doesn't say in the doc, but it looks like the first element that matches the block is the one that is left
<ari-_-e> so as long as your yellow hashes are before your green hashes, it'll do what you want
x1337807x has joined #ruby
<AntelopeSalad> does sort work the same way? i can just pass in a block with the hash key?
<ari-_-e> AntelopeSalad: check the doc for Array#sort and Enumerable#sort_by
jxf has quit [Ping timeout: 255 seconds]
<AntelopeSalad> sort doesn't seem to work in a way that i need it to
<ari-_-e> why not?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AntelopeSalad> at least not in the same way as uniq worked
Hanmac has joined #ruby
<ari-_-e> what are you trying and what do you get?
<AntelopeSalad> i get the new list back with the duplicates removed , but the color order is out of whack
<ari-_-e> AntelopeSalad: make a gist
lemur has joined #ruby
jeeves_moss has quit []
nighthwk1 has joined #ruby
kevind has quit [Quit: kevind]
<ari-_-e> showing what you started with, what you did, and what you got
gigetoo has joined #ruby
<AntelopeSalad> ari-_-e: hmm, it's in order with the sample data i gisted
vifino_ has quit [Quit: Ze Cat now leaves...]
hermanmunster has joined #ruby
<ari-_-e> how did you use sort?
<ari-_-e> what exactly did you do?
<AntelopeSalad> nothing, that was without any custom sorting
emptyflask has quit [Ping timeout: 245 seconds]
<ari-_-e> oh
<ari-_-e> so just .sort ?
apeiros has quit [Remote host closed the connection]
<AntelopeSalad> nope, just arr.uniq { |item| item[:name] }
apeiros has joined #ruby
<ari-_-e> AntelopeSalad: you said "sort doesn't seem to work in a way that i need it to"
lemur has quit [Ping timeout: 240 seconds]
<ari-_-e> what did you mean by that
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nighthwk1 has quit [Ping timeout: 244 seconds]
cmoneylulz has quit [Quit: Leaving]
<AntelopeSalad> oh i see, with my real data the colors aren't in order
<ari-_-e> right
<AntelopeSalad> so now the issue becomes sorting them by color
<ari-_-e> so what did you try?
spider-mario has quit [Remote host closed the connection]
<AntelopeSalad> arr.sort { |item| item[:name] } , that was a semi-expected syntax error
<AntelopeSalad> i've never really used sort in a non-default way
<ari-_-e> well it's not a syntax error per se - but that's now how sort works
hermanmunster has quit [Remote host closed the connection]
<ari-_-e> the doc should tell you what the block is supposed to return for sort :)
dwayhs_ has joined #ruby
ghr has joined #ruby
<ari-_-e> and you don't want to sort by name anyway, right?
hermanmunster has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AntelopeSalad> correct, that was just me being stupid
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
ffranz has quit [Quit: Leaving]
funktor has quit [Remote host closed the connection]
snath has quit [Ping timeout: 264 seconds]
hermanmu_ has joined #ruby
<AntelopeSalad> ari-_-e: seems like it works if i use sort_by instead of sort
<AntelopeSalad> but then it sorts in green, red, yellow order which is expected since that's the alphabetical order
hermanmunster has quit [Read error: Connection reset by peer]
<lagweezle> *{ foo: 1, bar: 2 }.to_a.flatten <--- what does the asterisk do?
pu22l3r has quit [Remote host closed the connection]
dwayhs_ has quit [Ping timeout: 244 seconds]
<ari-_-e> AntelopeSalad: right, it'd be alphabetical in that case
<ari-_-e> AntelopeSalad: which might not be what you want
ghr has quit [Ping timeout: 255 seconds]
<AntelopeSalad> it's not but maybe a reasonable solution would be to add a new key like "order" and give it 0, 1, 2
<AntelopeSalad> and then sort on that key?
lewix has joined #ruby
<ari-_-e> AntelopeSalad: seems reasonable :)
VeinMelted has joined #ruby
<AntelopeSalad> ok thanks, i'm so happy a nice solution existed
<ari-_-e> or you could define an ordering for the colors
<AntelopeSalad> i was ready to go full blown imperative madness which would have been like 100 lines of face palming
<ari-_-e> like { red: 0, yellow: 1, green: 2 }
<ari-_-e> so you'd order on { red: 0, yellow: 1, green: 2 }[hash[:color]]
<AntelopeSalad> hmm
<AntelopeSalad> which one do you think is more clear?
<ari-_-e> depends whether think changing the hash makes sense or not
<ari-_-e> your call
<ari-_-e> *whether you
little_f_ has quit [Remote host closed the connection]
ehc has quit [Quit: ehc]
qwyeth has joined #ruby
robbyoconnor has joined #ruby
<AntelopeSalad> ari-_-e: ok thanks, i'll keep both solutions in mind
pu22l3r has joined #ruby
VeinMelted has quit [Ping timeout: 240 seconds]
kerem_kerem has joined #ruby
nmokru has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
einarj has quit [Remote host closed the connection]
lw has joined #ruby
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
benzrf|offline is now known as benzrf
baroquebobcat has quit [Quit: baroquebobcat]
little_fu has joined #ruby
<shevy> I hate shell scripts so much
qwyeth has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
Royalb15 has joined #ruby
<shevy> I think before we could even want to critisize perl, we ought to focus on the awful state that allowed perl to become popular back then
cmoneylulz has joined #ruby
little_f_ has joined #ruby
cmoneylulz has quit [Client Quit]
little_fu has quit [Ping timeout: 264 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 255 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
ephemerian has quit [Quit: Leaving.]
enebo has joined #ruby
mercwithamouth has joined #ruby
eka has joined #ruby
eka has quit [Client Quit]
wowXD has joined #ruby
freerobby1 has quit [Quit: Leaving.]
St_Marx has quit [Ping timeout: 264 seconds]
kireevco has joined #ruby
Georg3 has joined #ruby
yubrew has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Remote host closed the connection]
adantj has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
Inside has joined #ruby
wowXD has quit [Ping timeout: 245 seconds]
hermanmu_ has quit [Remote host closed the connection]
hermanmunster has joined #ruby
hermanmunster has quit [Read error: Connection reset by peer]
hermanmunster has joined #ruby
phutchin1 has joined #ruby
pietr0 has quit [Quit: pietr0]
yubrew has quit [Ping timeout: 244 seconds]
terrellt has quit [Quit: Leaving...]