apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
xcv_ has joined #ruby
mpajor_o15 has quit [Read error: Operation timed out]
Z_Mass has joined #ruby
decentrality has quit [Quit: decentrality]
bradhe has quit [Ping timeout: 256 seconds]
icco has quit [Ping timeout: 252 seconds]
druonysuse has quit [Read error: Connection reset by peer]
arya_ has quit []
hydrozen_ has quit [Quit: Textual IRC Client: www.textualapp.com]
yshh has quit [Remote host closed the connection]
icco has joined #ruby
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
xcv has quit [Ping timeout: 252 seconds]
<ryan_turner> Anyone here use ruby GTK2?
<ryan_turner> Im confused about how to get a slider to do anything heh
arthurstomp has joined #ruby
<RubyPanther> I haven't used a slider in a long, long time
<ryan_turner> RubyPanther, I cant even get it to let me move the darn thing
frem has joined #ruby
<ryan_turner> Im using glade, the slider is stuck to the far left
frem has quit [Max SendQ exceeded]
arya has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
<ryan_turner> I'd imagine that somehow I need to define the range for it
<RubyPanther> ryan_turner: do you have a gist?
<ryan_turner> but I dont understand how to do that :/ I've got some handlers added for it
jamesfung14 has quit [Ping timeout: 256 seconds]
<ryan_turner> gist?
decentrality has joined #ruby
<havenwood> ryan_turner: https://gist.github.com/
<ryan_turner> aha
<ryan_turner> Here's the ruby file
<ryan_turner> (Im totally new to ruby)
eka has joined #ruby
<ryan_turner> Talking about the defs that are for "rf_gain_"
<ryan_turner> I've got one tied to adjust-bounds, format-value, change-value, value-changed, move-slider
<ryan_turner> only one that gets called when I click on the slider is adjust-bounds
<ryan_turner> and the slider just is stuck on the left
RiftyMcF3arless has quit [Remote host closed the connection]
arthurstomp has quit [Quit: Computer has gone to sleep.]
DanKnox is now known as DanKnox_away
<ryan_turner> I feel like it could be as simple as me needing to define a range or something for the GtkHScale widget
<ryan_turner> but I dont know how to do that.
arthurstomp has joined #ruby
<RubyPanther> ryan_turner: sorry, I don't even see where you're creating one, and I don't have any glade experience
ipalaus has joined #ruby
ipalaus has quit [Changing host]
ipalaus has joined #ruby
<ryan_turner> RubyPanther, it's being created within glade. I can define signals for GtkScale, GtkRange, GtkWidget, GtkObject, and GObject
<ryan_turner> any ideas as to how this behavior may take place?
browndawg has quit [Quit: Leaving.]
<ryan_turner> I dont like using glade, but I got tired of wanting to add a top row and having to renumber everything.
<RubyPanther> I've heard it works, but I doubt you're going to find many examples out there that use glade
kofno has quit [Remote host closed the connection]
Kricir has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.1]
<RubyPanther> you should probably just consult the glade source
<ryan_turner> Whats the right way to make a desktop ruby app? Im not particularly in love with GTK, and if ruby is more of a Qt thing, whatever.
browndawg has joined #ruby
<RubyPanther> if it is anything like the rest of Gtk the source should be clean and clear and well layered
Kricir has quit [Remote host closed the connection]
<RubyPanther> I just create all the widgets from Ruby
<RubyPanther> (or C)
<ryan_turner> So GTK is most popular?
<Spooner> wxruby-ruby19 works OK (Used it recently).
<ryan_turner> I read something about Bowline, but it seems inactive
gyre007 has joined #ruby
gyre007 has quit [Remote host closed the connection]
kofno has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
Z_Mass has quit [Ping timeout: 276 seconds]
cherrypeel has joined #ruby
GeissT has joined #ruby
<Spooner> ryan_turner, Odd to see __FILE__ = $0 inside a class. I'd also recommend: def write(text); @sp.write "#{text};\r\n" end
Spami has quit [Quit: This computer has gone to sleep]
<ryan_turner> Spooner, im just going to start from scratch I guess
<Spooner> No idea about your gtk issue though.
<ryan_turner> so Im going to first go through these docs associated with the serial comm
<ryan_turner> make a class that handles functions to do everything
Xeago has quit [Remote host closed the connection]
<ryan_turner> so I guess I'd instantiate the serialport in the intiailize definition of the class, right?
kofno has quit [Ping timeout: 256 seconds]
kline has left #ruby ["*.back *.flip"]
arya has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
<RubyPanther> probably
Vivekananda has quit [Quit: Ex-Chat]
slainer68 has quit [Remote host closed the connection]
[[mandrix]] has joined #ruby
Myconix has joined #ruby
nari has quit [Ping timeout: 256 seconds]
skasio has quit [Quit: leaving]
skasio has joined #ruby
bricker_ has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
LennyLinux has quit [Remote host closed the connection]
t_p has joined #ruby
sting_auer has joined #ruby
sting_auer has left #ruby [#ruby]
<Myconix> anyone know the progress of gtk3 on ruby?
jlast has quit [Ping timeout: 276 seconds]
<Myconix> I mean, I know a gem exists, but how functional is it
pskosinski has quit [Quit: pskosinski]
hnsz has joined #ruby
Michael__ has quit [Remote host closed the connection]
Inoperable has joined #ruby
Inoperable has quit [Excess Flood]
<havenwood> Myconix: Played with it recently, seemed to work with gtk2 tutorials with a bunch of deprecation notices. I don't know how complete.
falood has joined #ruby
locriani has joined #ruby
Inoperable has joined #ruby
nof13 has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
cherrypeel has quit [Quit: Leaving]
Michael__ has joined #ruby
splittingred has quit [Quit: splittingred]
_maes_ has joined #ruby
bigkm has joined #ruby
hogeo has joined #ruby
skattyadz has quit [Quit: skattyadz]
Inoperable is now known as Inoperabled
huoxito has joined #ruby
tylersmith has joined #ruby
ravster has left #ruby [#ruby]
snearch has quit [Quit: Verlassend]
tylersmith has quit [Ping timeout: 256 seconds]
DanKnox_away is now known as DanKnox
locriani has quit [Remote host closed the connection]
yshh has joined #ruby
callmeivan has quit [Quit: callmeivan]
wargasm has quit [Read error: Connection reset by peer]
DanKnox is now known as DanKnox_away
locriani has joined #ruby
bradhe has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
Eaven has joined #ruby
obs has quit [Quit: Konversation terminated!]
rubarlion has quit [Remote host closed the connection]
wu_lmao has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
arthurstomp has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
t_p has quit [Quit: Computer has gone to sleep.]
kf8a has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
marr has quit [Ping timeout: 252 seconds]
kf8a has quit [Ping timeout: 246 seconds]
cj3kim has quit [Remote host closed the connection]
dps has joined #ruby
ravster has joined #ruby
<dps> HI, is anybody around? I have a *really* dumb question; can somebody tell me a version of Ruby, capistrano (implementing multistage), and net-ssh that actually work together? I have tried probably 20-30 permutations of these software packages and I can't get this to work for the life of me.
<dps> I'd prefer if the version of ruby is in RVM.
<dps> :-)
nari has joined #ruby
crazymykl has joined #ruby
krz has joined #ruby
Yakko has quit [Remote host closed the connection]
ClientAlive has joined #ruby
hamakn has quit [Remote host closed the connection]
<ClientAlive> I'm getting all kinds of wierd errors while trying to install deps (ruby) for redmine. Some I have made to dissapear but I'm not sure I did so in the right way. Currently, when I run buntle install, I get: "Failed to load /home/<user>/.gemrc because it doesn't contain valid YAML hash
<ClientAlive> I'm a little out of my depth here. Does anyone know what that's talking about?
Asher2 has joined #ruby
cantonic has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
DanKnox_away is now known as DanKnox
Asher has quit [Ping timeout: 264 seconds]
freakazoid0223 has joined #ruby
mercwithamouth has joined #ruby
slainer68 has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
Michael__ has quit [Remote host closed the connection]
Z_Mass has joined #ruby
BeegPeeg_ has quit [Remote host closed the connection]
jlast has joined #ruby
Michael__ has joined #ruby
mpereira has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 256 seconds]
BeegPeeg00 has joined #ruby
rubarlion has joined #ruby
mixel has quit [Quit: mixel]
JZTech101 has quit [Quit: Hmm... What to do now?]
xcv_ has quit [Remote host closed the connection]
ogr has joined #ruby
karupanerura has quit [Ping timeout: 256 seconds]
niklasb has quit [Read error: Operation timed out]
GeissT_ has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 246 seconds]
darthdeus has joined #ruby
mwnaylor has joined #ruby
tommyvyo has quit [Quit:]
<Spooner> ClientAlive, It expects .gemrc to contain a Hash. Presumably, it doesn't. Can you gist it?
tjbiddle has joined #ruby
<ClientAlive> Spooner: what do you mean by gist it?
<ClientAlive> you mean paste the file?
GeissT has quit [Ping timeout: 276 seconds]
<ClientAlive> yes
<ClientAlive> one sec
niklasb has joined #ruby
<ogr> Hi, when i do "sudo gem install rails" it installs everything to /root/.gem/... although it says the default for --install-dir is /usr/lib/ruby/gems/... should i just explicitly specify the flag?
<ClientAlive> Spooner: it's here but is not .gemrc but is gemrc (not a hidden file on my system)
Corey has joined #ruby
<Spooner> Odd, it is gemrc on both Windows and Ubuntu that I've used it on.
<Spooner> Oops, I mean .gemrc
<Spooner> The problem there is that it is all comments.
<Spooner> You need to at least put something into the file if it exists.
mercwithamouth has quit [Ping timeout: 256 seconds]
<ClientAlive> Spooner: this is Arch btw
<Spooner> gem: '' # Is an example that does nothing.
darthdeus has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
enriclluelles has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
hamakn has joined #ruby
Karpuragauram has joined #ruby
Karpuragauram has quit [Read error: Connection reset by peer]
seitensei has quit [Ping timeout: 256 seconds]
Vivekananda has joined #ruby
<Spooner> Or just uncomment the last line ...or remove the file entirely.
<ClientAlive> ok, I was getting the "WARNING: You don't have ${HOME}/.gem/ruby/2.0.0/bin in your PATH gem exetables will not run." error and commented out that last line by what is instructed here: https://github.com/sstephenson/ruby-build/wiki
saarinen has joined #ruby
<ClientAlive> I'll rename it so it's like removing it then see what happens
<Spooner> Yeah, that explains what the issue is, of course. You won't have access to CLI commands that are installed via gem --local-install
<Spooner> Oops: --user-install
tylersmith has joined #ruby
freerobby has joined #ruby
<Corey> In a ruby file, can I specify an absolute path as a part of an include statement?
<Quadlex> Yes
MJ94 has left #ruby ["Leaving"]
<Spooner> Corey: Prepend a :: thusly ::MyModule::MyOtherModule::MyClass
<Corey> Spooner: Sorry, I mean a disk path. :-)
<Quadlex> ...sorry for the unclear answer, thought you said "require " not "include"
ttt has joined #ruby
<Spooner> Corey, No, include includes modules, not files.
<Corey> Hmm.
<Corey> Trying to overcome the limitations of a packaging system.
<Spooner> Hmm?
<Corey> Okay, looking into it more closely, it's a require statement.
<ClientAlive> Spooner: well I think that is the issue. I'm trying to install gems bc they are a dependencies for redmine. So they have me run "bundler install" and, well I've been getting errors of all sorts all night starting from before trying to run bundle install
<Spooner> Yeah, require != include
<Corey> My apologies, let me restate. :-)
<ClientAlive> been chasing errors like a dog chasing his tail
<Spooner> And yes, you can use an absolute file path there.
<Corey> Can I issue a require statement that includes an absolute file path.
<Corey> Spooner: Ah, thank you.
<Quadlex> Corey: Yup, you should be able too
<Spooner> And you should use require_relative for relative paths, require for gems (and, really, you really shouldn't be needing to use absolute require paths).
tylersmith has quit [Ping timeout: 246 seconds]
DanKnox is now known as DanKnox_away
<ClientAlive> I wish there was a way to just clean this mess up and have a 'do-over' :,)
robottinosino has quit [Quit: WeeChat 0.4.0]
bradhe has joined #ruby
<Spooner> Yeah, install Windows ;)
<Spooner> Anyway, you use Arch. You clearly wanted life to "live in interesting times" ;)
<ClientAlive> "bundler::GemfileNotFound"
<ClientAlive> what!
<ClientAlive> ??
Takehiro has joined #ruby
<Spooner> Are you not running bundler in a folder with a Gemfile?
Hanmac has joined #ruby
<ogr> I just tried 'sudo gem install rails --install-dir /usr/lib/ruby/gems/2.0.0' and it gives me 'ERROR: Use --install-dir or --user-install but not both' 'type gem' tells me that it's not aliased or anything. What's going wrong here?
<ClientAlive> I don't even know what that is you're talking about - I'm following wiki(s), trying, desparately, to install redmine
ravster has quit [Quit: Leaving.]
<ClientAlive> the only think I would know to do is what I'm explicitly told to do. If the wiki omits something (or I just missed it) I'm screwed
<Spooner> ogr, You can override the options in a gemrc or ~/.gemrc file
bradhe has quit [Ping timeout: 245 seconds]
<ClientAlive> I don't even have a ~/.gemrc btw
bricker_ has quit [Quit: leaving]
<ClientAlive> doesn't exist
<Spooner> Well, you can only run 'bundle install' in a folder that has a Gemfile in it. This would normally be the the root directory for the application.
mwnaylor has left #ruby ["Leaving"]
<Spooner> Yeah, you said. Arch is funny and puts one in a crazy place ;)
GeissT_ has quit [Ping timeout: 245 seconds]
<ClientAlive> yes, for redmine it's something like /usr/lib/webapps/redmine <- or something like that
<ClientAlive> I was in that dir when I ran bundle install
Hanmac1 has quit [Ping timeout: 256 seconds]
<ogr> Spooner: Ah, thanks that was it, well i think i'll just go with a --user-install after all though.
<ClientAlive> ahh, I know what happend - I'm such an idiot!
agjacome has joined #ruby
<ogr> (i don't have a gemrc either, but extra/ruby includes /etc/gemrc on Arch apparently)
<ogr> s/gemrc/.gemrc/
bigkm has quit [Quit: Computer has gone to sleep.]
sayan has quit [Ping timeout: 276 seconds]
Takehiro_ has joined #ruby
osvico has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
jdunck has joined #ruby
neurosaurus has joined #ruby
cyong has joined #ruby
kofno has joined #ruby
neurosaurus has quit [Quit: neurosaurus]
saarinen has quit [Quit: saarinen]
brennanMKE has joined #ruby
akam-it has quit [Ping timeout: 256 seconds]
jgrevich has quit [Remote host closed the connection]
icole has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
brennanMKE has quit [Ping timeout: 240 seconds]
jgrevich has joined #ruby
agjacome has quit [Quit: leaving]
Takehiro_ has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
Z_Mass has quit [Ping timeout: 256 seconds]
bigkm has joined #ruby
bionhart has joined #ruby
djwonk has quit [Quit: djwonk]
djwonk has joined #ruby
Takehiro has joined #ruby
darthdeus has quit [Quit: Leaving...]
Spooner has quit [Remote host closed the connection]
akam-it has joined #ruby
icole has quit [Remote host closed the connection]
icole has joined #ruby
akam-it has quit [Read error: Connection reset by peer]
akam-it has joined #ruby
cherrypeel has joined #ruby
Michael__ has quit [Remote host closed the connection]
jlast has joined #ruby
BeegPeeg00 has quit [Remote host closed the connection]
sleetdrop has joined #ruby
hnsz_ has joined #ruby
Michael__ has joined #ruby
MrZYX is now known as MrZYX|off
hnsz has quit [Disconnected by services]
falood has quit [Remote host closed the connection]
hnsz_ has left #ruby [#ruby]
execat has joined #ruby
<execat> This is my output for testrb: https://gist.github.com/execat/7533df6a3d84d35fc91d
djwonk has quit [Quit: djwonk]
Soliah has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
Takehiro has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
n_blownapart has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
corehook has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
tylersmith has joined #ruby
dambler has joined #ruby
<n_blownapart> hi would someone explain how $1 and $2 work in this example? thanks: http://pastie.org/5140870
arya has joined #ruby
Guedes0 has quit [Ping timeout: 264 seconds]
tylersmith has quit [Ping timeout: 252 seconds]
_baba_ has joined #ruby
baba has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
n_blownapart has quit [Remote host closed the connection]
lyanchih has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
_baba_ is now known as baba
cherrypeel_ has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
jbueza has joined #ruby
cherrypeel has quit [Ping timeout: 246 seconds]
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
brianherman has joined #ruby
akam-it has quit [Read error: Connection reset by peer]
akam-it has joined #ruby
cj3kim has joined #ruby
arya has quit [Ping timeout: 248 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
bionhart has quit [Remote host closed the connection]
chandankumar has joined #ruby
BeegPeeg00 has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
dambler has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
osvico has quit [Ping timeout: 264 seconds]
arya has joined #ruby
cj3kim has quit [Remote host closed the connection]
splittingred has joined #ruby
dmiller has joined #ruby
arubin has joined #ruby
rubarlion has quit [Remote host closed the connection]
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
sleetdrop has joined #ruby
machuga is now known as machuga|away
jamesfung14 has joined #ruby
Hanmac1 has joined #ruby
kofno has quit [Remote host closed the connection]
Nikki_L has quit [Ping timeout: 250 seconds]
mzarella has quit [Quit: leaving]
Hanmac has quit [Ping timeout: 252 seconds]
chipotle_ has quit [Quit: cya]
IceDragon has quit [Quit: Space~~~]
rickmasta has quit [Quit: Leaving...]
ioNull has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
krombr has quit [Remote host closed the connection]
kofno has joined #ruby
stewart_ has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
marienz has quit [Read error: Connection reset by peer]
icecandy has joined #ruby
Norrin has quit [Quit: ""]
Beoran__ has joined #ruby
gwb3 has joined #ruby
<gwb3> Hello, I am receiving an error: w1c1_how_old_years_and_months.rb:12:in `<main>': undefined local variable or method `years' for main:Object (NameError)
<gwb3> I thought I had defined 'years' in the method, no?
gtuckerkellogg has joined #ruby
Beoran_ has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
<Nom-> gwb3: I believe, in that example, the 'years' and 'months' variables will be scoped to that if block
<Nom-> gwb3: You can confirm this by doing something like 'years = nil; months=nil' above the if block and see if it works
<Nom-> gwb3: The other thing is, you're not even calling the method in the example you pasted
dmiller has quit [Remote host closed the connection]
devoldmx has joined #ruby
browndawg has quit [Quit: Leaving.]
falood has joined #ruby
jamesfung14 has quit [Quit: Leaving]
jlast has quit [Ping timeout: 246 seconds]
nariyal has joined #ruby
rubarlion has joined #ruby
tylersmith has joined #ruby
dmiller has joined #ruby
<gwb3> Nom-: Thanks for pointing that out.
ARCADIVS has joined #ruby
nbjahan has joined #ruby
Cultofmetatron has joined #ruby
devnull_ has quit [Remote host closed the connection]
jurbat has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
aces1up has joined #ruby
<aces1up> hey all i'm trying to get this regex working
<aces1up> i'm trying to capture the text between the boundaries
<aces1up> into match groups.
nariyal has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
gaahrdner has joined #ruby
locriani has quit [Remote host closed the connection]
yacks has joined #ruby
<stewart_> aces1up: why don't you match up against the count of - and make your regex more concise?
bradhe has quit [Ping timeout: 256 seconds]
lyanchih has quit [Quit: lyanchih]
ariedler has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
browndawg has joined #ruby
locriani has joined #ruby
corehook has quit [Remote host closed the connection]
<aces1up> stewart_ dunno what you mean, the - could be variable
mjburgess has joined #ruby
dmiller has quit [Remote host closed the connection]
<stewart_> seems like they are all -{29} to me
cofin has joined #ruby
r0f0 has joined #ruby
<aces1up> stewart_ well for that example yes, but i would be loading with variable lengths.
tomzx_mac has quit [Ping timeout: 276 seconds]
akells` has joined #ruby
Eaven has quit [Remote host closed the connection]
eldariof has joined #ruby
nbjahan has quit [Quit: nbjahan]
nariyal has joined #ruby
allure has joined #ruby
<aces1up> have that so far not quite perfect, still catching boundaries.
cofin has quit [Ping timeout: 245 seconds]
gaahrdner has quit [Remote host closed the connection]
leonidlm has joined #ruby
bionhart has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
dmiller has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
nbjahan has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
yacks has quit [Quit: Leaving]
kofno has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
mogsy has joined #ruby
druonysuse has quit [Quit: Konversation terminated!]
nbjahan has quit [Remote host closed the connection]
slash_nick has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
stewart_1 has joined #ruby
stewart_ has quit [Ping timeout: 276 seconds]
leonidlm has quit [Ping timeout: 252 seconds]
arya has joined #ruby
allure has quit [Quit: Saindo]
r0f0 has quit [Ping timeout: 245 seconds]
nbjahan has joined #ruby
<aces1up> what would i use to find all indexes in an array of elements matching some evaluation?
lyanchih has joined #ruby
arya has quit [Ping timeout: 248 seconds]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
nanothief has quit [Read error: Connection reset by peer]
sailias has quit [Client Quit]
lyanchih has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
sailias has quit [Client Quit]
Michael__ has quit [Remote host closed the connection]
arya has joined #ruby
dmiller has quit [Remote host closed the connection]
sailias has joined #ruby
sailias has quit [Client Quit]
fridim_ has quit [Ping timeout: 264 seconds]
bigkm has joined #ruby
sailias has joined #ruby
nanothief has joined #ruby
sailias has quit [Read error: Connection reset by peer]
sailias1 has joined #ruby
sailias1 is now known as sailias
sailias has quit [Client Quit]
nariyal has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
freeayu has joined #ruby
sailias has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
nanothief has quit [Client Quit]
Cultofmetatron has joined #ruby
Hanmac has joined #ruby
jlast has joined #ruby
nbjahan has quit [Ping timeout: 245 seconds]
akam-it has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 256 seconds]
akells` has quit [Remote host closed the connection]
rubarlion has quit [Remote host closed the connection]
netherwolfe has joined #ruby
ParanoidSP has quit [Ping timeout: 264 seconds]
JesseH has joined #ruby
<JesseH> What are some good Ruby json libs
<stewart_1> JesseH: MultiJson is a good place to start. Allows you to change your libraries with out reimplementing them
locriani has quit [Remote host closed the connection]
<stewart_1> * your program
tylersmith has joined #ruby
locriani has joined #ruby
<JesseH> Oh okay Ill look at it thanks.
jlast has quit [Ping timeout: 246 seconds]
<r0bgleeson> JesseH: I think oj + yajl are the fastest two
nbjahan has joined #ruby
<JesseH> thanks r0bgleeson
<r0bgleeson> sure
machuga|away is now known as machuga
tylersmith has quit [Ping timeout: 256 seconds]
rubarlion has joined #ruby
bradhe has joined #ruby
DonRichie has joined #ruby
brianherman has quit [Quit: Leaving]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
skattyadz has joined #ruby
freerobby has quit [Quit: Leaving.]
dmiller has joined #ruby
slainer68 has joined #ruby
momomomomo has joined #ruby
codecop has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
momomomomo has left #ruby [#ruby]
splittingred has quit [Quit: splittingred]
BeegPeeg00 has quit [Remote host closed the connection]
nbjahan has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 256 seconds]
nbjahan has joined #ruby
browndawg has quit [Quit: Leaving.]
b0oh has joined #ruby
shinobi_one_ has joined #ruby
lyanchih has joined #ruby
mahmoudimus has joined #ruby
BeegPeeg00 has joined #ruby
joshcheek has joined #ruby
eldariof has quit [Read error: Operation timed out]
joshcheek has quit [Read error: Connection reset by peer]
akells` has joined #ruby
shinobi_one_ has quit [Quit: shinobi_one_]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
chandankumar has joined #ruby
b0oh has quit [Quit: Leaving.]
sayan has joined #ruby
prk has joined #ruby
cj3kim has joined #ruby
browndawg has joined #ruby
chandankumar has quit [Max SendQ exceeded]
chandankumar has joined #ruby
gtuckerkellogg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
akells` has quit [Ping timeout: 256 seconds]
nbjahan has quit [Quit: nbjahan]
Davey has joined #ruby
cantonic has quit [Quit: cantonic]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
b0oh has joined #ruby
tommyvyo has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
DonRichie has quit [Quit: Verlassend]
timonv has joined #ruby
arya has quit [Ping timeout: 248 seconds]
rubarlion has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
gwb3 has quit [Remote host closed the connection]
icecandy has quit [Read error: Connection reset by peer]
arya has joined #ruby
monkegjinni has joined #ruby
banjara has joined #ruby
icecandy has joined #ruby
b0oh has quit [Quit: Leaving.]
larissa has quit [Quit: Leaving]
asuka_ has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
asuka has joined #ruby
dmiller has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
skattyadz has quit [Quit: skattyadz]
jlast has joined #ruby
arya has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
tylersmith has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
dmiller_ has joined #ruby
krombr has joined #ruby
Cyrus has joined #ruby
slainer68 has joined #ruby
apeiros has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 245 seconds]
rakl has joined #ruby
bradhe has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
krombr has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 252 seconds]
Gooder has joined #ruby
andikr has joined #ruby
tagrudev has joined #ruby
_Amaan has quit [Quit: _Amaan]
bradhe has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
tonini has joined #ruby
monkegjinni has quit [Read error: Operation timed out]
noop has joined #ruby
mneorr has joined #ruby
hotrine has joined #ruby
Gooder` has joined #ruby
cherrypeel_ has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
raddazon1 has quit [Changing host]
raddazon1 has joined #ruby
raddazon1 is now known as madhatter
icole has quit [Remote host closed the connection]
leonidlm has joined #ruby
krainboltgreene has joined #ruby
Maoko has joined #ruby
dmiller_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 276 seconds]
Gooder has quit [Ping timeout: 256 seconds]
ayaz has joined #ruby
<Maoko> May I have some magic early in the morning? I'm getting "Encoding::CompatibilityError: inspected result must be ASCII only or use the same encoding with default external" while trying to get files list from postfix directory with "files = Dir.entries(@dir).select! { |file| File.file?(@dir + '/'+ file) }"
<Maoko> Tried putting #encoding:utf-8 at the beggining of this ruby file and checked the file encoding (utf-8 as well).
netherwolfe has quit [Quit: Leaving]
cj3kim has quit [Remote host closed the connection]
icole has joined #ruby
aganov has joined #ruby
stewart_1 has quit [Quit: Leaving.]
pduin has joined #ruby
tonini has quit [Quit: Lost terminal]
tonini has joined #ruby
saarinen has quit [Quit: saarinen]
tommyvyo has quit [Quit:]
slash_nick has quit [Ping timeout: 276 seconds]
monkegjinni has joined #ruby
apeiros has joined #ruby
generalissimo has joined #ruby
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
ybart has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Nahra has quit [Quit: leaving]
codecop has quit [Ping timeout: 252 seconds]
jprovazn has joined #ruby
ctp has quit [Quit: Leaving...]
Norrin has joined #ruby
monkegjinni has quit [Ping timeout: 246 seconds]
Nahra has joined #ruby
Nahra has quit [Changing host]
Nahra has joined #ruby
ybart has quit [Quit: ybart]
Astral_ has joined #ruby
nbjahan has joined #ruby
mafolz has joined #ruby
dayepa has quit [Quit: dayepa]
dmiller has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
echevemaster has joined #ruby
dayepa has joined #ruby
swex_ has joined #ruby
nbjahan has quit [Read error: Connection reset by peer]
swex has quit [Ping timeout: 246 seconds]
Astralum has quit [Ping timeout: 240 seconds]
Takehiro has joined #ruby
AgentWillyWonka has joined #ruby
lurch_ has joined #ruby
ARCADIVS has joined #ruby
rubarlion has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
dayepa has quit [Client Quit]
benlieb has joined #ruby
tethra has quit [Ping timeout: 260 seconds]
falood has quit [Remote host closed the connection]
generalissimo has quit [Read error: Connection reset by peer]
generalissimo has joined #ruby
thebastl has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
yacks has joined #ruby
rubarlion has quit [Ping timeout: 276 seconds]
tylersmith has joined #ruby
generalissimo has quit [Remote host closed the connection]
filipe has joined #ruby
zigomir has joined #ruby
nbjahan has joined #ruby
jlast has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
yumingzhe has left #ruby ["Leaving"]
rubarlion has joined #ruby
myu has joined #ruby
bradhe has joined #ruby
ntus1017 has joined #ruby
Takehiro has quit [Remote host closed the connection]
Kabaka has quit [Quit: s/Kabaka//]
freeayu has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
Kabaka has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
brennanMKE has joined #ruby
ayaz has quit [Remote host closed the connection]
ayaz has joined #ruby
ayaz has quit [Client Quit]
ayaz has joined #ruby
codecop has joined #ruby
chandankumar has joined #ruby
icole has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 276 seconds]
bradhe has quit [Ping timeout: 256 seconds]
echevemaster has quit [Remote host closed the connection]
arya has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
horsey has joined #ruby
Takehiro has quit [Remote host closed the connection]
bigkm has joined #ruby
obs has joined #ruby
Kar- has joined #ruby
<henn1nk> Does someone know a tool that generates shorter hashes than sha2?
teclator has quit [Read error: Operation timed out]
tethra has joined #ruby
persand has joined #ruby
fuleo has joined #ruby
arya has quit [Ping timeout: 248 seconds]
lurch_ has quit [Quit: lurch_]
lurch_ has joined #ruby
sayan_ has joined #ruby
brennanMKE has quit [Remote host closed the connection]
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sayan has quit [Ping timeout: 240 seconds]
rickruby has quit [Remote host closed the connection]
sideshowcoder has quit [Read error: Operation timed out]
<otters> take(16)
Shirakawasuna has joined #ruby
browndawg has quit [Quit: Leaving.]
cj3kim has joined #ruby
charliesome has joined #ruby
kil0byte has quit [Remote host closed the connection]
blandflakes has quit [Ping timeout: 276 seconds]
<henn1nk> otters: ?
<otters> sha2(str).take(16)
<otters> or [0..16]
greenarrow|2 has joined #ruby
altamic has joined #ruby
altamic has left #ruby [#ruby]
afd__ has joined #ruby
blandflakes has joined #ruby
greenarrow has quit [Ping timeout: 245 seconds]
mrmist has quit [Quit: leaving]
troessner has joined #ruby
robbyoconnor has joined #ruby
lurch_ has quit [Quit: lurch_]
sideshowcoder has joined #ruby
yannis has joined #ruby
<henn1nk> otters: but with [0..16] i cut out the rest? isn't that wrong?
<otters> yeah
bionhart has quit [Remote host closed the connection]
mrmist has joined #ruby
zeeraw has joined #ruby
haxrbyte has joined #ruby
backjlack has quit [Remote host closed the connection]
enriclluelles has joined #ruby
brtdv has joined #ruby
enriclluelles has quit [Remote host closed the connection]
Vivekananda has quit [Quit: Ex-Chat]
freeayu has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
<TTilus> henn1nk: define "wrong"?
<henn1nk> is ok this solution works for me
<TTilus> s/subsetting/cutting/
ctp has joined #ruby
icole has joined #ruby
nbjahan has quit [Read error: Connection reset by peer]
blandflakes has quit [Ping timeout: 256 seconds]
gstamp has quit [Quit: Computer has gone to sleep.]
Gooder`` has joined #ruby
<henn1nk> ok thanks
danslo has quit [Quit: danslo]
icole has quit [Ping timeout: 264 seconds]
Gooder` has quit [Ping timeout: 256 seconds]
tonini has quit [Ping timeout: 248 seconds]
alup has joined #ruby
teclator has joined #ruby
slash_nick has joined #ruby
<apeiros> henn1nk, otters: you guys are aware that [0..16] is 17 chars, yes?
<otters> whoops
<apeiros> if you want 16 chars, use [0,16]
<otters> 0...16
<apeiros> bleh
emergion has joined #ruby
<apeiros> ranges are for offset..offset. here you clearly want offset, length
<otters> ok
<otters> 0,16 it is
<apeiros> :)
<bnagy> plus you can do like [0,16] and [16,16] etc
* apeiros is a happy pony now
<bnagy> which just makes everything way more readable
<otters> meh, I never remember pos-length vs pos-pos
slash_nick has quit [Ping timeout: 256 seconds]
ayaz has quit [Quit: Bye!]
Neomex has joined #ruby
<bnagy> why would you use sha2?
sayan_ is now known as sayan
nbjahan has joined #ruby
Neomex has quit [Client Quit]
sayan has quit [Changing host]
sayan has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
<bnagy> never mind, I should have learned by now never to ask people about their crypto code on here
tonini has joined #ruby
<apeiros> because sha1 is insecure
* apeiros hides
suporte85 has joined #ruby
swex_ has quit [Quit: No Ping reply in 180 seconds.]
<bnagy> ...
darthdeus has joined #ruby
haxrbyte_ has joined #ruby
<bnagy> hey apeiros there's this guy trolling, can you op yourself and ban him?
<apeiros> sure thing!
apeiros was kicked from #ruby by apeiros [dude! monday is horrible enough! stop trolling bnagy!]
apeiros has joined #ruby
<apeiros> :(
<bnagy> XD
<apeiros> why? I didn't do anything!
<apeiros> you power tripper!
yannis has quit [Quit: Bye!]
<apeiros> clear abuse of power! I'll report you to the powers that be!
camilasan has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
Takehiro has joined #ruby
icecandy has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 264 seconds]
mneorr has quit [Remote host closed the connection]
krombr has joined #ruby
iaj has quit [Ping timeout: 245 seconds]
tmi has joined #ruby
nbjahan has quit [Remote host closed the connection]
blaxter_ has joined #ruby
Eaven has joined #ruby
<bnagy> today is just not meant to be a work day
<bnagy> I am supposed to be playing with celerity and a new jruby DB wrapper for kyotocabinet
bradhe has joined #ruby
tonini has quit [Quit: Lost terminal]
jlast has joined #ruby
<bnagy> I've been drinking way too much java koolaid lately :(
nomenkun has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
obs has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
prk has quit [Ping timeout: 240 seconds]
krombr has quit [Remote host closed the connection]
obs has joined #ruby
vlad_starkov has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
dr_bob has joined #ruby
lushious has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
fivetwentysix has joined #ruby
hotrine has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
Shirakawasuna has quit [Quit: Leaving]
tonini has joined #ruby
slash_nick has joined #ruby
monkegjinni has joined #ruby
mattbl has joined #ruby
lurch_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
BeegPeeg00 has quit [Remote host closed the connection]
nbjahan has joined #ruby
GeissT has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
nbjahan has quit [Remote host closed the connection]
arya has joined #ruby
dfdf has joined #ruby
monkegjinni has joined #ruby
b0oh has joined #ruby
rakl has quit [Quit: sleeping]
nbjahan has joined #ruby
vlad_sta_ has joined #ruby
rickruby has joined #ruby
arya has quit [Client Quit]
slainer68 has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
blaxter_ has quit [Ping timeout: 264 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
slash_nick has quit [Ping timeout: 245 seconds]
swex has joined #ruby
slash_nick has joined #ruby
threesome has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
rickruby has quit [Ping timeout: 256 seconds]
sayan has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
noop has quit [Ping timeout: 240 seconds]
chandankumar has quit [Quit: Leaving]
slainer6_ has joined #ruby
enriclluelles has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ferdev has joined #ruby
Criztian has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
blaxter_ has joined #ruby
pieterza has joined #ruby
noname001 has joined #ruby
timonv has joined #ruby
rakl has joined #ruby
ntus1017 has quit [Remote host closed the connection]
nof13 has joined #ruby
slainer68 has joined #ruby
dayepa1 has joined #ruby
berkes has joined #ruby
slainer6_ has quit [Ping timeout: 256 seconds]
backjlack has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
noop has joined #ruby
io_syl has joined #ruby
MrZYX|off is now known as MrZYX
zigomir has quit [Quit: zigomir]
tylersmith has joined #ruby
dayepa1 has quit [Quit: dayepa1]
arquebus has joined #ruby
nerdman has joined #ruby
Framedragger has joined #ruby
nbjahan has quit [Quit: nbjahan]
felipec has joined #ruby
<felipec> why is this not aligned properly? http://pastie.org/7967342#1
sayan has joined #ruby
<tobiasvl> because if it was the leading spaces would be part of the heredoc?
dayepa1 has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
dayepa1 has quit [Client Quit]
monkegjinni has quit [Read error: Connection reset by peer]
chandankumar has joined #ruby
<felipec> tobiasvl: they are part of the heredoc
monkegjinni has joined #ruby
skattyadz has joined #ruby
ntus1017 has joined #ruby
<tobiasvl> so you want the string to be
<tobiasvl> this is a test
<tobiasvl> ?
<tobiasvl> my point still stands: it's not auto-indented because most likely that's not what you want
<tobiasvl> just add the spaces
nof13 has quit [Ping timeout: 245 seconds]
<felipec> tobiasvl: no, I want it to be "this is a test\n"
dayepa1 has joined #ruby
bradhe has joined #ruby
<felipec> tobiasvl: I do *not* want the spaces
<tobiasvl> ah okay
zigomir has joined #ruby
<tobiasvl> sorry, thought you were wondering why it wasn't indented an extra level (as a "block")
skaflem has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
atno has quit [Remote host closed the connection]
iaj has joined #ruby
dayepa1 has quit [Quit: dayepa1]
arya has joined #ruby
dfdf has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
dfdf has joined #ruby
ctp_ has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
Neomex has joined #ruby
monkegjinni has quit [Remote host closed the connection]
senayar has joined #ruby
dayepa1 has joined #ruby
ntus1017 has quit [Remote host closed the connection]
nbjahan has joined #ruby
arya has joined #ruby
ctp has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
marr has joined #ruby
Nisstyre has quit [Quit: Leaving]
dayepa1 has quit [Quit: dayepa1]
ttt has quit [Read error: Connection reset by peer]
ttt_ has joined #ruby
mjburgess has quit [Ping timeout: 240 seconds]
braoru has joined #ruby
whowantstolivefo has joined #ruby
atno has joined #ruby
dayepa1 has joined #ruby
skaflem has left #ruby ["Leaving"]
nbjahan has quit [Quit: nbjahan]
epta has quit [Ping timeout: 252 seconds]
epta has joined #ruby
robscomputer_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
LennyLinux has joined #ruby
fixl has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
mikewintermute has joined #ruby
Neomex has quit [Quit: Neomex]
mikewintermute has quit [Client Quit]
epta has quit [Ping timeout: 276 seconds]
Takehiro has quit [Remote host closed the connection]
mikewintermute has joined #ruby
<mikewintermute> What's the difference between ruby-debug and ruby-debug19?
mjburgess has joined #ruby
Johbe has quit [Read error: Connection reset by peer]
BizarreCake has joined #ruby
<Maoko> Why am I getting unreadable string while trying to use Mail.body? Encoding appears to be correct.
havenwood has joined #ruby
ctp has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
<nightfly> mikewintermute: possibly nothing, run ruby-debug --version
hamakn has joined #ruby
<mikewintermute> ruby-debug --version
<mikewintermute> -bash: ruby-debug: command not found
<mikewintermute> wanting to install ruby-debug but not sure what the difference was.
<nightfly> heh, sorry
yacks has quit [Quit: Leaving]
arquebus has quit [Quit: Konversation terminated!]
<nightfly> ruby-debug is probably a meta-package that depends on some specific version
tomsthumb has quit [Quit: Leaving.]
ctp_ has quit [Ping timeout: 276 seconds]
jurbat has quit [Quit: Computer has gone to sleep.]
epta has joined #ruby
Xeago has joined #ruby
mjburgess has quit [Ping timeout: 276 seconds]
<Quadlex> Has anyone here got any experience at using Thor to run taks from within ruby
tonini has quit [Ping timeout: 248 seconds]
arya has quit [Ping timeout: 248 seconds]
<linduxed> so do people here generally use inject or reduce?
persand has quit [Quit: persand]
tylersmith has joined #ruby
sleetdrop has joined #ruby
nari has quit [Ping timeout: 240 seconds]
grzywacz has joined #ruby
blaxter_ is now known as blaxter
<charliesome> linduxed: i use reduce personally
<linduxed> hmmm, rails has 25 instances of reduce, 140 inject
<linduxed> guess that answers it
banister`shop has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
arya has joined #ruby
bradhe has joined #ruby
machuga is now known as machuga|away
xcv has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 248 seconds]
aef has quit [Ping timeout: 245 seconds]
slainer68 has quit [Ping timeout: 256 seconds]
<Muz>
browndawg has joined #ruby
gtuckerkellogg has joined #ruby
aef has joined #ruby
slainer68 has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
xcv has quit [Ping timeout: 256 seconds]
bhaak has quit [Ping timeout: 252 seconds]
bhaak has joined #ruby
arya has joined #ruby
dfdf has quit [Remote host closed the connection]
jlast has joined #ruby
lkba has joined #ruby
buscon has joined #ruby
swex_ has joined #ruby
stonevil has quit [Remote host closed the connection]
stonevil has joined #ruby
swex has quit [Ping timeout: 256 seconds]
[[mandrix]] has quit [Ping timeout: 256 seconds]
noop has quit [Ping timeout: 240 seconds]
banjara has quit [Max SendQ exceeded]
grzywacz has quit [Ping timeout: 256 seconds]
jgrevich has quit [Remote host closed the connection]
banjara has joined #ruby
dfdf has joined #ruby
stonevil has quit [Ping timeout: 256 seconds]
aspiers_ has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
monkegjinni has joined #ruby
arya_ has joined #ruby
enriclluelles has quit [Remote host closed the connection]
arya has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
b0oh has quit [Quit: Leaving.]
enriclluelles has joined #ruby
xcv has joined #ruby
monkegjinni has joined #ruby
chipotle_ has joined #ruby
ledil has joined #ruby
<ledil> Hi, Ive got a model "foo" that has_many "bar" ... how to find entries that has a "bar" entry ? foo.find(:all, ...) ?
<apeiros> ledil: you want #rubyonrails
monkegjinni has quit [Read error: Connection reset by peer]
threesome has quit [Ping timeout: 256 seconds]
tomzx_mac has joined #ruby
darkapex has quit [Ping timeout: 240 seconds]
<ledil> apeiros: thanks
ledil has left #ruby [#ruby]
monkegjinni has joined #ruby
ayaz has joined #ruby
waxjar has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
marienz has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
dfdf has quit [Remote host closed the connection]
pkrzywicki has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
browndawg1 has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
ybart has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
thomasfedb_ has quit [Remote host closed the connection]
waxjar has joined #ruby
camilasan has quit [Remote host closed the connection]
darkapex has joined #ruby
dhruvasagar has joined #ruby
monkegjinni has joined #ruby
thomasfedb has joined #ruby
mercwithamouth has joined #ruby
JZTech101 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
grzywacz has joined #ruby
enriclluelles has quit [Remote host closed the connection]
noop has joined #ruby
monkegjinni has joined #ruby
gtuckerkellogg has quit [Ping timeout: 245 seconds]
Eaven has quit [Read error: Connection reset by peer]
justsee has quit [Ping timeout: 240 seconds]
buscon has quit [Ping timeout: 276 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
Eaven has joined #ruby
monkegjinni has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
darkapex has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
JZTech101 has quit [Read error: Operation timed out]
darkapex has joined #ruby
waxjar has joined #ruby
Bry8Star{T2 has joined #ruby
jiriki has joined #ruby
monkegjinni has joined #ruby
Bry8Star has left #ruby [" "]
JZTech101 has joined #ruby
thomasfedb has quit [Ping timeout: 246 seconds]
darkapex has quit [Ping timeout: 245 seconds]
waxjar has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
enriclluelles has joined #ruby
Signum has left #ruby [#ruby]
thomasfedb has joined #ruby
monkegjinni has joined #ruby
waxjar has joined #ruby
JZTech101 has quit [Read error: Operation timed out]
jurbat has joined #ruby
buscon has joined #ruby
darkapex has joined #ruby
Takehiro has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Framedragger has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
gyre007 has joined #ruby
xcv has joined #ruby
waxjar has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
b0oh has joined #ruby
waxjar has joined #ruby
monkegjinni has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
monkegji_ has joined #ruby
tylersmith has joined #ruby
pcarrier_ has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
grzywacz has quit [Quit: :wq]
gregorg has joined #ruby
_baba_ has joined #ruby
Sirupsen has joined #ruby
Sirupsen_ has joined #ruby
Sirupsen_ has quit [Client Quit]
darkapex has quit [Ping timeout: 264 seconds]
baba has quit [Ping timeout: 256 seconds]
lemonsparrow has joined #ruby
waxjar has quit [Ping timeout: 264 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
monkegjinni has quit [Ping timeout: 276 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
waxjar has joined #ruby
devoldmx3 has joined #ruby
bluOxigen has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
camilasa_ has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
persand has joined #ruby
monkegji_ has joined #ruby
bradhe has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
sleetdrop has quit [Ping timeout: 256 seconds]
devoldmx27 has joined #ruby
gregorg has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
darkapex has joined #ruby
arya has joined #ruby
charliesome has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Asher2 has quit [Quit: Leaving.]
Asher has joined #ruby
maligree has joined #ruby
devoldmx3 has quit [Ping timeout: 245 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 256 seconds]
skattyadz has quit [Quit: skattyadz]
Bry8Star{T2 has quit [Quit:]
Neomex has joined #ruby
chandankumar has quit [Quit: Leaving]
arya_ has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
workmad3 has joined #ruby
jezi22 has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
slash_nick has quit [Ping timeout: 252 seconds]
<jezi22> what is the use of ||= operator in ruby?
monkegjinni has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
darkapex has quit [Ping timeout: 245 seconds]
Bry8Star{T2 has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<MrZYX> >> a = nil; b = :bar; a ||= :foo; b ||= :foo; [a, b]
<eval-in> MrZYX => [:foo, :bar] (http://eval.in/31604)
<r0bgleeson> jezi22: @foo ||= 5 equates to @foo || @foo = 5
F1skr has joined #ruby
waxjar has joined #ruby
darkapex has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
browndawg1 has quit [Quit: Leaving.]
<r0bgleeson> tagrudev: yeah, great article
monkegji_ has joined #ruby
<joshu> hi guys I have a case statement where I match against @subject which should contain "Fax Sent", "Fax Received" or "Fax Failed" it can be anywhere within the @subject string. At the moment I've written each when statement with the following regex /Fax Sent/, /Fax Received/, /Fax Failed/ it works, but just want to know if this is an acceptable way?
osvico has joined #ruby
jlast has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
lurch_ has quit [Quit: lurch_]
monkegjinni has quit [Ping timeout: 276 seconds]
monkegji_ has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
<apeiros> without more context - yes
<apeiros> @ joshu
<apeiros> depending on the specific code, there might be nicer ways
stonevil has joined #ruby
<apeiros> e.g. condensing it to a single regex and use an if: /Fax (?:Sent|Received|Failed)/
waxjar has quit [Ping timeout: 240 seconds]
<joshu> apeiros ok I'll gist my complete code a little later just working through it to clean it up before I ask for overall feedback ;)
monkegji_ has quit [Read error: Connection reset by peer]
waxjar has joined #ruby
persand has quit [Quit: persand]
persand has joined #ruby
camilasa_ has quit [Remote host closed the connection]
ybart has quit [Quit: ybart]
darkapex has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
snearch has joined #ruby
monkegjinni has joined #ruby
ybart has joined #ruby
robustus has joined #ruby
<apeiros> is it just me or is rubygems slow today? installing a gem takes ages…
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
waxjar has quit [Ping timeout: 240 seconds]
fivetwentysix has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
darkapex has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 256 seconds]
pothibo has joined #ruby
waxjar has joined #ruby
monkegjinni has joined #ruby
darkapex has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
nbjahan has joined #ruby
tonini has joined #ruby
camilasa_ has joined #ruby
niklasb has joined #ruby
arunagw has joined #ruby
arya has joined #ruby
altamic has joined #ruby
decentrality has quit [Quit: decentrality]
nari has joined #ruby
altamic has left #ruby [#ruby]
waxjar has quit [Ping timeout: 240 seconds]
darkapex has quit [Ping timeout: 246 seconds]
gasbakid has joined #ruby
gasbakid has quit [Max SendQ exceeded]
enriclluelles has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
waxjar has joined #ruby
sailias has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
darkapex has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arunagw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arya has joined #ruby
chandankumar has joined #ruby
viszu has joined #ruby
arunagw has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
yshh has quit [Remote host closed the connection]
johnmilton has joined #ruby
darkapex has quit [Ping timeout: 240 seconds]
lele has quit [Quit: Coyote finally caught me]
ldnunes has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
t_p has joined #ruby
virth has quit [Remote host closed the connection]
darkapex has joined #ruby
darkapex has quit [Changing host]
darkapex has joined #ruby
lurch_ has joined #ruby
andynu has quit [Ping timeout: 246 seconds]
milestone has joined #ruby
<milestone> hi folks
gasbakid_ has joined #ruby
<milestone> i am seeing this https://gist.github.com/juhoffma/5656623 when I try to manage my config file
ARCADIVS has quit [Quit: WeeChat 0.3.8]
Spooner has joined #ruby
pduin has quit [Remote host closed the connection]
Vert has joined #ruby
krz has quit [Quit: krz]
kofno has joined #ruby
ephemerian has joined #ruby
pduin has joined #ruby
gasbakid_ has quit [Max SendQ exceeded]
darkapex has quit [Ping timeout: 245 seconds]
mixel has joined #ruby
gasbakid_ has joined #ruby
waxjar has joined #ruby
monkegji_ has joined #ruby
felipec has quit [Quit: Leaving]
browndawg has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
darkapex has joined #ruby
robottinosino has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
execat has quit [Read error: Connection reset by peer]
execat has joined #ruby
execat has joined #ruby
execat has quit [Changing host]
waxjar has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
beilabs has quit [Ping timeout: 256 seconds]
darkapex has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
monkegji_ has joined #ruby
waxjar has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
devoldmx27 has quit [Ping timeout: 256 seconds]
xcv has quit [Remote host closed the connection]
tylersmith has joined #ruby
ttt_ has quit [Remote host closed the connection]
Mattx has joined #ruby
timonv has quit [Remote host closed the connection]
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
ybart has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
waxjar has quit [Ping timeout: 264 seconds]
workmad3 has quit [Read error: Operation timed out]
execat has quit [Quit: Leaving]
Matip has quit [Ping timeout: 256 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
darkapex has joined #ruby
monkegjinni has joined #ruby
lurch_ has quit [Quit: lurch_]
ybart has joined #ruby
nbjahan has quit [Quit: nbjahan]
waxjar has joined #ruby
bradhe has joined #ruby
eka has joined #ruby
jokke1 has joined #ruby
senayar has quit [Remote host closed the connection]
yshh has joined #ruby
monkegji_ has quit [Ping timeout: 245 seconds]
<gyre007> guys I'm a newbie and im struggling with one thing...is there an easy way to avhieve something like this ? https://gist.github.com/milosgajdos83/5656731
darkapex has quit [Ping timeout: 246 seconds]
beilabs has joined #ruby
hamakn_ has joined #ruby
pcarrier_ has quit [Ping timeout: 256 seconds]
<gyre007> basically i need to map an array of hashes to just hash...with some different values,,,
waxjar has quit [Ping timeout: 240 seconds]
wu_lmao has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
jezi22 has quit [Ping timeout: 264 seconds]
<MrZYX> you don't care about what value gets picked?
<gyre007> taht was an exampl what i want to achieve
<gyre007> take basically array of hashes and map val1 to be the key and val2 to be the value in new hash
<MrZYX> oh, didn't look carefully enough
pcarrier_ has joined #ruby
Neomex has quit [Quit: Neomex]
bradhe has quit [Ping timeout: 256 seconds]
<gyre007> I tried something with injects but I'm missing somethin i thnk
pskosinski has joined #ruby
<MrZYX> new_hash = hash.map(&:values).inject({}) {|hsh, pair| key, value = pair; hsh[key] = value; hsh }
<gyre007> mm
<gyre007> sec :)
<MrZYX> only works if your source hashes ever only contain two values
<MrZYX> also kind of assumes order though you shouldn't really do that on a hash
<banister`shop> gyre007: Hash[something.map { |h| [ h[:one], h[:two] ] }]
gasbakid_ has quit [Quit: Quitte]
<gyre007> ok sec
<MrZYX> hmm, of course. I should just skip it today...
devoldmx has quit [Ping timeout: 264 seconds]
Asher has quit [Ping timeout: 264 seconds]
<gyre007> banister`shop: great stuf...that worked like a charm!
<gyre007> thanks MrZYX too
jokke1 has quit [Quit: WeeChat 0.4.1]
jokke1 has joined #ruby
waxjar has joined #ruby
darkapex has joined #ruby
troessner has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
troessner has joined #ruby
jokke1 has quit [Client Quit]
monkegjinni has joined #ruby
jokke1 has joined #ruby
pskosinski_ has joined #ruby
monkegj__ has joined #ruby
pskosinski has quit [Ping timeout: 246 seconds]
pskosinski_ is now known as pskosinski
monkegji_ has quit [Read error: Connection reset by peer]
matchaw has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
darkapex has quit [Ping timeout: 256 seconds]
Asher has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
nbjahan has joined #ruby
monkegj__ has quit [Read error: Operation timed out]
workmad3 has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<joshu> can someone please explain why the commented code works, but the uncommented code specifically retrieving the @mail instance variable doesn't work in the Mail.new block?
<joshu> Is it a ruby thing or a Mail gem thing?
darkapex has joined #ruby
darkapex has quit [Changing host]
darkapex has joined #ruby
waxjar has joined #ruby
jezi22 has joined #ruby
jlast has joined #ruby
kirun has joined #ruby
yshh has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
waxjar has quit [Ping timeout: 240 seconds]
monkegji_ has joined #ruby
monkegji_ has quit [Remote host closed the connection]
mtlatif__ has quit [Read error: Operation timed out]
_rgn has quit [Read error: Operation timed out]
_rgn has joined #ruby
<tobiasvl> ruby thing
mtlatif__ has joined #ruby
skroon has joined #ruby
<tobiasvl> joshu: what is @mail? it's never defined
boxmein has joined #ruby
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
aspiers_ has joined #ruby
<tobiasvl> if you're trying to use the mail variable inside the block that defines it, that doesn't work either for obvious reasons
<joshu> tobiasvl I have only provided part of the code. @mail is an email instance variable
skroon has quit [Client Quit]
<joshu> @mail is defined outside of this block
<tobiasvl> well then it'd help if you provided ALL of the code
skroon has joined #ruby
<tobiasvl> and if you also tell us what "doesn't work" mean
monkegjinni has joined #ruby
skroon has left #ruby [#ruby]
<tobiasvl> do you get an error? is it set to the wrong value?
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<joshu> tobiasvl no error. @mail is defined like this in my initialise method @mail = Mail.new(message.read)
senayar has joined #ruby
<tobiasvl> if you don't get an error, what's wrong?
<joshu> as I said in my commented code it works as expected. It's when I rewrite the code using a block that it doesn't and I'm just curious as to why
JZTech101 has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<tobiasvl> what's the expected behavior, and what is the actual behavior?
<joshu> tobiasvl expected behaviour is that @mail is attached as a file. Actual behaviour nothing is attached.
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<joshu> To make things simpler if I had used @from for the from email address. it would have been empty in the block. but displayed in the commented code.
jlast has quit [Ping timeout: 256 seconds]
workmad3 has quit [Read error: Operation timed out]
krainbol_ has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
rubarlion has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
<tobiasvl> if you'd be kind enough to paste all relevant code i can actually test it
lurch_ has joined #ruby
<tobiasvl> instead of guess
<tobiasvl> so
ioNull has quit [Ping timeout: 264 seconds]
caveat- has quit [Remote host closed the connection]
caveat- has joined #ruby
<joshu> tobiasvl Ok to make it really clear https://gist.github.com/anonymous/b2edb809d5d725f5f201
wolcanus has joined #ruby
ioNull has joined #ruby
<joshu> the Date and below stuff is the output
waxjar has joined #ruby
nbjahan has quit [Quit: nbjahan]
pcarrier_ has quit [Quit: Computer has gone to sleep.]
<apeiros> joshu: the block is instance_eval'ed
<joshu> apeiros not sure what that means
<apeiros> otherwise it would not be able to resolve the `subject` method
<apeiros> see Object#instance_eval
<r0bgleeson> that's a mail gem thing.
<r0bgleeson> it's really annoying as well.
<apeiros> self in line 13 is not the same as self in line 15
darkapex has joined #ruby
<r0bgleeson> it doesn't give you the option of yielding the 'self' of instance_eval to the block you pass, like a sane API.
<apeiros> and thus the ivars (which are associated with an object, and hence with self) are different too.
<apeiros> r0bgleeson: it gives you the object of using the non-block form
senayar_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
Hanmac has joined #ruby
<apeiros> IMO that's quite sane. but you have to be aware.
<apeiros> and ruby is nasty in that regard as that you can't know in what context a block will eventually be evaluated.
carloslopes has joined #ruby
<joshu> r0bgleeson right as I thought. Really enjoying indeed!
<apeiros> r0bgleeson: e.g. you can do: mail = Mail.new.tap do |m| m.subject @subject end
<r0bgleeson> brb
slainer6_ has joined #ruby
kobain has joined #ruby
senayar_ has quit [Remote host closed the connection]
<joshu> Means I have to use the first bit of code as I have several methods which create new Mail and use several instance variables
senayar_ has joined #ruby
<apeiros> I don't know what "the first bit of code" is
waxjar has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
tonini has joined #ruby
JZTech101 has quit [Ping timeout: 246 seconds]
<joshu> in my example ttps://gist.github.com/anonymous/c186b47807ab9ae09029 I'll have to use the commented code
senayar has quit [Ping timeout: 256 seconds]
darkapex has quit [Ping timeout: 245 seconds]
<apeiros> joshu: well, you can also assign to a local variable first
slainer68 has quit [Ping timeout: 245 seconds]
waxjar has joined #ruby
aspiers_ has quit [Ping timeout: 248 seconds]
<apeiros> attachment = @mail; mail = Mail.new do … add_file :filename => 'aborted_mail.eml', :content => attachment; end
darkapex has joined #ruby
<apeiros> (whyever you call it @mail if it is an attachment, and whyever you do "#{@mail}", assuming @mail already is a string…)
arya has quit [Ping timeout: 276 seconds]
monkegji_ has joined #ruby
rakl has quit [Quit: gone]
waxjar has quit [Ping timeout: 245 seconds]
darkapex has quit [Ping timeout: 256 seconds]
itsdavem has joined #ruby
<joshu> apeiros yeah I understand difficult for you to see the context right now. It's called @mail because it's an actual email which I'm attaching. Is it better practice to create a local variable rather than use @mail directly?
rakl has joined #ruby
<apeiros> can't say that this generally
<apeiros> using an ivar is good practice
<apeiros> but when you have a DSL which uses instance_eval, it becomes impossible
monkegjinni has quit [Ping timeout: 245 seconds]
<joshu> apeiros also regarding the "#{@mail}" I guess it is my misuse of #{}. @mail is a Mail object, but if I do @mail.encoded then I can use it directly without #{}
<apeiros> and since you seem to not know instance_eval, I'd *strongly* suggest you learn about it quickly. instance_eval is rather pervasively used in ruby.
waxjar has joined #ruby
darkapex has joined #ruby
<apeiros> joshu: "#{@mail}" is the same as @mail.to_s
<apeiros> and IMO the latter is to be preferred
monkegji_ has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 264 seconds]
<apeiros> (#{} invokes to_s on non-string values)
monkegjinni has joined #ruby
<joshu> apeiros ok noted I will go over my use of #{}
wu_lmao has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<joshu> apeiros according to the Mail gem README encoded and to_s are the same in my context of @mail being a Mail object. would you be explicit and call encoded or to_s which be default will call encoded?
tylersmith has joined #ruby
maligree has quit [Quit: I've had it with you.]
monkegjinni has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
includex has joined #ruby
JZTech101 has joined #ruby
waxjar has joined #ruby
darkapex has joined #ruby
Michael_ has joined #ruby
tylersmith has quit [Ping timeout: 276 seconds]
lukeholder has joined #ruby
threesome has quit [Excess Flood]
nerdman has quit [Quit: leaving]
sayan has joined #ruby
daniel_- has quit [Ping timeout: 248 seconds]
<lukeholder> Could someone take a look at this regex… it is getting everything between the 2 image urls but i want it to return each image url individually: http://rubular.com/r/ylds6Vnj75
sayan has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
daniel_- has joined #ruby
threesome has joined #ruby
<apeiros> joshu: not sure. probably I'd use .encoded.
waxjar has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
<tobiasvl> lukeholder: the matching is greedy. it matches the beginning http in the first match and the ending .jpg in the last match
slainer6_ has quit [Ping timeout: 248 seconds]
rubarlion has joined #ruby
<apeiros> lukeholder: (https?:\/\/.*?\.(?:png|jpg))
<tobiasvl> s/match/url
sayan has joined #ruby
pcarrier_ has joined #ruby
<apeiros> reason being what tobiasvl just said
<apeiros> also, you don't need no () around the toplevel of your regex, that makes no sense.
tomzx_mac has quit [Ping timeout: 256 seconds]
<apeiros> anyway, your regex is still bad
darkapex has quit [Ping timeout: 264 seconds]
<lukeholder> apeiros: ahh didnt see that!
<lukeholder> apeiros: thanks
<apeiros> unless all links in your file are guaranteed to end with .png or .jpg
Michael_ has quit [Remote host closed the connection]
<lukeholder> i am only trying to get all image urls out of the text
waxjar has joined #ruby
<apeiros> lukeholder: consider http://rubular.com/r/vpi7mB5xM3
darkapex has joined #ruby
<joshu> apeiros I've refactored the bit of code we've been discussing. https://gist.github.com/anonymous/14bdd78641d104041054
<apeiros> yeah, use an html parser. e.g. nokogiri.
ttt has joined #ruby
threesome has quit [Max SendQ exceeded]
<joshu> apeiros which version would you suggest that I go with?
<lukeholder> apeiros: dealing with crappy html mixed with wordpress shortcodes… just needing the image urls
mjburgess has joined #ruby
backjlack has quit [Remote host closed the connection]
<apeiros> lukeholder: *shrug* your pain. have fun.
pcarrier_ has quit [Client Quit]
threesome has joined #ruby
<lukeholder> apeiros: tell me about it… moving a client off wordpress
bradhe has quit [Ping timeout: 246 seconds]
<lukeholder> apeiros: thanks again mate
<apeiros> joshu: doesn't really matter. I'd probably go with the second variant. but I have no strong preference here.
<joshu> apeiros ok seems cleaner not having to specify the mail object each time.
<Spooner> lukeholder, (https?:\/\/[^"]*?\.(?:png|jpg) fixes that issue apeiros brought up, but I'm sure there may be more bad situations. Nokogiri is just he best option.
<apeiros> Spooner: yeah, single quotes f.ex. :-p
atno has quit [Quit: Leaving]
waxjar has quit [Ping timeout: 240 seconds]
<lukeholder> Spooner: you would use nokogiri over that example content to get the urls?
andynu has joined #ruby
Spami has quit [Quit: Leaving]
darkapex has quit [Ping timeout: 256 seconds]
<Spooner> apeiros, Since it is just for a specific site, it is less likely to have to deal with mixed quotes ;) But yeah.
crankycoder has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
buscon has quit [Quit: Leaving]
<Spooner> Yeah. It is simple to use. Nokogiri.parse(html).xpath("//img").select {|img| img =~ /\.png||\.jpg/ }
<apeiros> well, for one-offs, you can go and get a minimal regex, using try & err
waxjar has joined #ruby
<Spooner> Sorry,img[:href] I think, not img directly.
pcarrier_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
darkapex has joined #ruby
<apeiros> or .css('a[href]').map { |a| a[:href] }.grep(/\.(?:png|jpg)\z/)
chandankumar has quit [Quit: Leaving]
cortes has joined #ruby
cantonic has joined #ruby
threesome has quit [Max SendQ exceeded]
<lukeholder> Spooner: givign it a try
monkegjinni has joined #ruby
backjlack has joined #ruby
skattyadz has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<apeiros> (since he wants some links from a tags, as it seems)
backjlack has quit [Remote host closed the connection]
<Spooner> Mine was dumb and off the top of my head. Sorry...
<apeiros> hm? it's almost what I'd have done… then again, mine was off the top of my head too
threesome has joined #ruby
<apeiros> you do have a superfluous | in that regex, though :)
waxjar has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
<Spooner> Yeah :$
skattyadz has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
<lukeholder> apeiros yes from the links
<lukeholder> to get the full res
timonv_ has joined #ruby
monkegjinni has joined #ruby
kf8a has joined #ruby
enriclluelles has joined #ruby
<Spooner> Actually tested: Nokogiri.parse(html).xpath("//a").map {|img| img[:href] }.grep /\.(?:png|jpg)\z/ (Which is mostly Apeiros; css or xpath matters not much)
waxjar has joined #ruby
darkapex has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
<apeiros> yupp. I tend to use css because I can't be arsed to finally learn xpath correctly and (halfway) completely…
kofno has quit [Remote host closed the connection]
<Spooner> I generally use xpath since Chrome gives that to me and I'm too lazy to work either format out ;)
threesome has quit [Max SendQ exceeded]
backjlack has joined #ruby
<Spooner> lukeholder, Hopefully that was a lot simpler than you expected it to be...
hogeo has quit [Remote host closed the connection]
threesome has joined #ruby
<apeiros> I did use [href] to ensure the attribute was present, but I think nokogiri just returns nil for nonexisting attributes and grep probably doesn't care about nil either
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
fuzzyhorns has joined #ruby
<Spooner> Yes, it ignores anchors without hrefs (with or without the [href] thingie). In other cases it would make sense though.
waxjar has quit [Ping timeout: 240 seconds]
sayan has quit [Read error: Connection reset by peer]
darkapex has quit [Ping timeout: 245 seconds]
threesome has quit [Max SendQ exceeded]
backjlack has left #ruby [#ruby]
breakingthings has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
threesome has joined #ruby
waxjar has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<Spooner> Or rather, Nokogiri returns nil and then grep fails to match.
<lukeholder> Spooner apeiros so this images = Nokogiri.parse(body).css('a[href]').map { |a| a[:href] }.grep(/\.(?:png|jpg)\z/i)
tk_ has joined #ruby
monkegjinni has joined #ruby
postmodern has quit [Quit: Leaving]
<lukeholder> gives me the anchor hrefs
darkapex has joined #ruby
<Spooner> Yep.
<lukeholder> but looks like some posts in wordpress do not always give a link
<lukeholder> dealing with crappy data here
<lukeholder> need to get both
<lukeholder> so really just all images urls
<Spooner> You mean it doesn't catch all the links?
pcarrier_ has joined #ruby
<lukeholder> it does but not the img tags obviously
<lukeholder> so i need to do both
wmoxam has joined #ruby
alexwh has left #ruby [#ruby]
<lukeholder> images = Nokogiri.parse(body).css('img[src]').map { |a| img[:src] }.grep(/\.(?:png|jpg)\z/i)
<Spooner> Yeah.
alexwh has joined #ruby
jlast has joined #ruby
<lukeholder> but worth writing in one query
<lukeholder> ?
itsdavem has quit [Remote host closed the connection]
threesome has quit [Max SendQ exceeded]
pcarrier_ has quit [Client Quit]
krainbol_ has quit [Ping timeout: 248 seconds]
Neomex has joined #ruby
waxjar has quit [Ping timeout: 264 seconds]
<Spooner> Not especially, but I'm sure it could be done that way.
Neomex has quit [Client Quit]
threesome has joined #ruby
waxjar has joined #ruby
beilabs has quit [Ping timeout: 248 seconds]
<lukeholder> ok so just doing this: https://gist.github.com/5657070
<Spooner> lukeholder, Ah: Nokogiri.parse(html).xpath("//img|//a").map {|img| img[:src] || img[:href] }.grep...
<lukeholder> pipe |
threesome has quit [Max SendQ exceeded]
<Spooner> lukeholder, That code won't work, since you are pushing an array into an array (so the last element will be an array). You wanted #concat to join the two arrays.
yshh has joined #ruby
<Spooner> But I just gave you the single query version, so no need to worry ;)
darkapex has quit [Ping timeout: 246 seconds]
aspiers_ has joined #ruby
djwonk has joined #ruby
danslo has joined #ruby
threesome has joined #ruby
<lukeholder> ok so going with all_images = Nokogiri.parse(body).xpath("//img|//a").map {|img| img[:src] || img[:href] }.grep(/\.(?:png|jpg)\z/i).uniq
arunagw has quit [Quit: Quit]
<lukeholder> added uniq ;(
<lukeholder> :) oops
<Spooner> Yes, though it looks like the img are different images (thumbs and full images?).
waxjar has quit [Ping timeout: 240 seconds]
Petein has joined #ruby
Alina-malina has quit [Quit: Leaving]
<lukeholder> yes thats right, but I can tell by the 242x324 which is easy to parse
tmi has quit [Quit: tmi]
ariedler has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
maz-dev has quit [Remote host closed the connection]
darkapex has joined #ruby
darkapex has quit [Changing host]
darkapex has joined #ruby
Alina-malina has joined #ruby
viszu has quit [Quit: Leaving.]
Petein has left #ruby [#ruby]
waxjar has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
<lukeholder> are commas in urls allowed?
Alina-malina has joined #ruby
yshh has quit [Ping timeout: 248 seconds]
<tobiasvl> yes sure
<tobiasvl> require 'uri'; url =~ URI::regexp
<tobiasvl> better: url =~ /^#{URI::regexp}$/
pieterza has quit [Remote host closed the connection]
cmarques has joined #ruby
Myconix has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
Myconix has joined #ruby
waxjar has quit [Ping timeout: 264 seconds]
darkapex has quit [Ping timeout: 264 seconds]
<ariedler> lukeholder: lots of things are :)
aspiers_ has quit [Ping timeout: 248 seconds]
failshell has joined #ruby
waxjar has joined #ruby
monkegjinni has quit [Ping timeout: 256 seconds]
darkapex has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
beilabs has joined #ruby
Michael_ has joined #ruby
pcarrier_ has joined #ruby
virth has joined #ruby
sayan has joined #ruby
waxjar has quit [Ping timeout: 245 seconds]
darkapex has quit [Ping timeout: 245 seconds]
pcarrier_ has quit [Client Quit]
arya_ has quit [Ping timeout: 248 seconds]
waxjar has joined #ruby
jokke1 has quit [Ping timeout: 264 seconds]
darkapex has joined #ruby
browndawg has joined #ruby
apod has joined #ruby
krainboltgreene has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
jmartin has joined #ruby
arya has joined #ruby
slash_nick has joined #ruby
darkapex has quit [Ping timeout: 240 seconds]
waxjar has quit [Ping timeout: 264 seconds]
waxjar has joined #ruby
tylersmith has joined #ruby
bhaak has quit [Ping timeout: 252 seconds]
darkapex has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mixel has quit [Quit: mixel]
fuzzyhorns has quit [Remote host closed the connection]
ravster has joined #ruby
yshh has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
notVert has joined #ruby
darkapex has quit [Ping timeout: 245 seconds]
Vert has quit [Ping timeout: 252 seconds]
beilabs has quit [Ping timeout: 248 seconds]
machuga|away is now known as machuga
krainboltgreene has quit [Quit: krainboltgreene]
waxjar has quit [Ping timeout: 264 seconds]
waxjar has joined #ruby
bhaak has joined #ruby
bradhe has joined #ruby
darkapex has joined #ruby
monkegjinni has joined #ruby
sectionme has joined #ruby
nbjahan has joined #ruby
Z_Mass has joined #ruby
horsey has quit [Ping timeout: 264 seconds]
shend has joined #ruby
gasbakid has joined #ruby
pcarrier_ has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
gasbakid has quit [Max SendQ exceeded]
Eaven has quit [Read error: Connection reset by peer]
gasbakid has joined #ruby
waxjar has quit [Ping timeout: 245 seconds]
waxjar has joined #ruby
workmad3 has joined #ruby
Eaven has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
darkapex has quit [Ping timeout: 240 seconds]
darkapex has joined #ruby
wallerdev has quit [Quit: wallerdev]
splittingred has joined #ruby
Vivekananda has joined #ruby
tommyvyo has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
waxjar has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
atno has joined #ruby
kobain has quit [Remote host closed the connection]
kobain has joined #ruby
beilabs has joined #ruby
darkapex has quit [Ping timeout: 240 seconds]
threesome has quit [Ping timeout: 248 seconds]
drfreeze has quit [Remote host closed the connection]
drfreeze has joined #ruby
darkapex has joined #ruby
waxjar has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
freeayu has quit [Remote host closed the connection]
Zolo has joined #ruby
beilabs has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
monkegjinni has quit [Read error: Connection timed out]
threesome has joined #ruby
Quadlex is now known as SleepLex
vlad_starkov has quit [Ping timeout: 248 seconds]
lkba has joined #ruby
monkegjinni has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
darkapex has quit [Ping timeout: 264 seconds]
djwonk has quit [Quit: djwonk]
kofno has quit [Ping timeout: 248 seconds]
_Amaan has joined #ruby
shend has quit [Quit: Page closed]
slash_nick has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
waxjar has joined #ruby
tagrudev has quit [Remote host closed the connection]
gyre007 has joined #ruby
Cluber has joined #ruby
darkapex has joined #ruby
darkapex has quit [Changing host]
darkapex has joined #ruby
jezi22 has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 246 seconds]
waxjar has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
gyre007 has quit [Ping timeout: 276 seconds]
kofno has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
lyanchih has joined #ruby
tobiasvl has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
darkapex has joined #ruby
waxjar has joined #ruby
braoru has quit [Quit: Leaving]
northelks has joined #ruby
sambao21 has joined #ruby
tvl has joined #ruby
tvl is now known as Spug
darkapex has quit [Ping timeout: 246 seconds]
Maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
waxjar has quit [Ping timeout: 240 seconds]
northelks has quit [Client Quit]
northelks has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
homelinen has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
darkapex has joined #ruby
lurch_ has quit [Quit: lurch_]
adkron has joined #ruby
Proshot has quit [Quit: Leaving]
banjara has quit [Max SendQ exceeded]
boxmein_ has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
homelinen has joined #ruby
banjara has joined #ruby
cantonic has joined #ruby
rickruby has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
senayar_ has quit [Ping timeout: 248 seconds]
boxmein` has joined #ruby
ClientAlive has quit [Quit: Konversation terminated!]
wallerdev has joined #ruby
nbjahan has quit [Quit: nbjahan]
boxmein has quit [Ping timeout: 246 seconds]
yshh has quit [Remote host closed the connection]
miclen has joined #ruby
skattyadz has quit [Quit: skattyadz]
darkapex has quit [Ping timeout: 256 seconds]
boxmein_ has quit [Disconnected by services]
boxmein` is now known as boxmein
yashshah has quit [Read error: Connection reset by peer]
ioNull has quit [Quit: Computer has gone to sleep.]
nbjahan has joined #ruby
senayar has quit [Remote host closed the connection]
monkegjinni has joined #ruby
darkapex has joined #ruby
carloslopes has quit [Remote host closed the connection]
senayar has joined #ruby
pduin has quit [Remote host closed the connection]
Takehiro has joined #ruby
Z_Mass has quit [Ping timeout: 245 seconds]
aganov has quit [Remote host closed the connection]
browndawg1 has joined #ruby
yashshah has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
threesome has quit [Ping timeout: 248 seconds]
browndawg has quit [Ping timeout: 248 seconds]
nomenkun has quit [Remote host closed the connection]
v0n has joined #ruby
huoxito has joined #ruby
nomenkun has joined #ruby
teclator has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Takehiro has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
tylersmith has joined #ruby
tomkad has joined #ruby
brennanMKE has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
tomkad has quit [Client Quit]
robscomputer has joined #ruby
tomkad has joined #ruby
krombr has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
apeiros has quit [Remote host closed the connection]
ayaz has quit [Quit: Bye!]
yshh has joined #ruby
marr has quit [Ping timeout: 256 seconds]
AgentWillyWonka has quit [Quit: Linkinus - http://linkinus.com]
darkapex has joined #ruby
Spami has quit [Ping timeout: 248 seconds]
skattyadz has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
persand has quit [Quit: persand]
johnkary has joined #ruby
ananthakumaran has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
bradhe has joined #ruby
browndawg1 has quit [Ping timeout: 248 seconds]
djwonk has joined #ruby
zigomir has quit [Quit: zigomir]
persand has joined #ruby
skasio has quit [Ping timeout: 252 seconds]
nari has joined #ruby
nbjahan has quit [Quit: nbjahan]
skasio has joined #ruby
thebastl has quit [Read error: Operation timed out]
ioNull has joined #ruby
nbjahan has joined #ruby
northelks has left #ruby [".."]
bradhe has quit [Ping timeout: 276 seconds]
brennanMKE has quit [Remote host closed the connection]
rblackwe has joined #ruby
northelks has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
ClientAlive has joined #ruby
yshh has quit [Remote host closed the connection]
slash_nick has joined #ruby
yshh has joined #ruby
Uranio has joined #ruby
threesome has joined #ruby
darkapex has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
yeban_ is now known as yeban
monkegji_ has joined #ruby
Uranio has quit [Client Quit]
jprovazn has quit [Quit: Leaving]
darkapex has quit [Ping timeout: 264 seconds]
carloslopes has joined #ruby
Xeago has joined #ruby
<ClientAlive> I know this is the ruby chanel but the more appropriate chanel #readmine is deader than dead. I'm hoping someone help with what I need since it is with ruby that I'm currently experiencing problems. Here's the thing... Two nights ago I kinda jumped the gun thinking I could simply follow the arch wiki for redmine and realize success. Now, I'm two days and nights into this and kinda got stuck in the mud. I don't know anything really about ruby
<ClientAlive> and never used mariaDB before last night. I'm kinda in a mess w/ regard to ruby and getting the prerequisites for redmine installed. Now I have a few tabs open in my browser with various sources of information on installing redmine on Arch (not all in the Arch url domain). I would like to just have a chat with someone here about the basics of acheivinng this taks; and, hopefully, come to some rudimentary understanding of what needs to take
<ClientAlive> place for me to accomplish this install successfully.
darkapex has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
Ortuna has joined #ruby
<bnagy> what's a redmine?
tk_ has quit [Quit: ばいばい]
persand has quit [Quit: persand]
<ClientAlive> bnagy: project management (sort of)
ntus1017 has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<bnagy> ok.. it's a rails app
dmiller has joined #ruby
<ClientAlive> bnagy: the thing is, it depends on ruby stuff (I say ruby stuff bc I'm so unfamiliar w/ ruby) and that's where I ran into probnlems - getting the ruby stuff installed
senayar_ has joined #ruby
<Hanmac> ClientAlive: you could try #rubyonrails
<ClientAlive> Hanmac: is that what I need?
<Hanmac> maybe
skasio has quit [Ping timeout: 248 seconds]
<bnagy> what's the basic package mgmt in arch?
senayar has quit [Read error: Operation timed out]
darkapex has quit [Ping timeout: 256 seconds]
fschuindt has joined #ruby
senayar_ has quit [Remote host closed the connection]
<ClientAlive> redmine's root directory contains some kind of Gem file where, supposedly, I can issue the command bundle install. bundle install get's part way throught then pukes up errors, I try gem install for the package in the error message and gem install pukes up an error too
<bnagy> oh pacman
<ClientAlive> the arch package manager is pacman
ffranz has joined #ruby
Cluber has left #ruby [#ruby]
senayar has joined #ruby
io_syl has joined #ruby
skasio has joined #ruby
pcarrier_ has joined #ruby
darkapex has joined #ruby
darkapex has quit [Changing host]
darkapex has joined #ruby
_baba_ has quit [Ping timeout: 252 seconds]
carloslopes has quit [Ping timeout: 248 seconds]
<ClientAlive> pointedly speaking, I think what I'd like is to get an idea how to (1) fix whatever is broken and prevening me from installing the ruby stuff I need - and (2) clean up whatever mess there may be because of my floundering around trying to fix stuff
vlad_starkov has joined #ruby
pcboy_ has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
blandflakes has joined #ruby
<bnagy> so.. is ruby installed?
zigomir has joined #ruby
pcboy_ has joined #ruby
darkapex has quit [Ping timeout: 264 seconds]
Cultofmetatron has joined #ruby
baba has joined #ruby
<ClientAlive> bnagy: based on info from the arch wiki and advice from this chanel, I began by opting for jruby. Later, when trying to install gems, I thing ruby got pulled in (ruby 2.0.0). I have done very little configuration since I'm not sure what config is even needed.
<ClientAlive> I think*
<ClientAlive> typo
<bnagy> uh
vlad_starkov has quit [Ping timeout: 248 seconds]
<bnagy> so what does ruby -v give you?
<ClientAlive> one moment
darkapex has joined #ruby
chandankumar has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
<ClientAlive> bnagy: ruby -v gives "ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
tchebb_ has joined #ruby
<bnagy> and what about from a root shell? like sudo bash and then the same command?
<ClientAlive> one moment
chandankumar has quit [Max SendQ exceeded]
chandankumar has joined #ruby
darkapex has quit [Ping timeout: 245 seconds]
<ClientAlive> bnagy: sudo ruby -v gives the same output
sectionme has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<bnagy> ok that's not what I asked, but probably close enough
s_e has quit [Quit: Rebooting]
vlad_starkov has joined #ruby
tchebb has quit [Ping timeout: 276 seconds]
tchebb_ is now known as tchebb
jlast has joined #ruby
pcarrier_ has quit [Ping timeout: 245 seconds]
<bnagy> so where are you up to, following the wiki thing/
darkapex has joined #ruby
chandankumar has quit [Client Quit]
chandankumar has joined #ruby
jokke1 has joined #ruby
djwonk has quit [Quit: djwonk]
workmad3 has quit [Ping timeout: 264 seconds]
johnkary has quit [Quit: @johnkary]
cmarques has quit [Ping timeout: 246 seconds]
<ClientAlive> bnagy: https://wiki.archlinux.org/index.php/Redmine#Ruby_gems <- is about where things started to go south. However, when I began having problems, I felt I needed to find other documentation to help me get out of the hole I was digging and ultimately skipped around a little (what I mean is I've tried to fix some errors last night but whether it made my situation worse or not I don't know)
<bnagy> dude
chandankumar has quit [Max SendQ exceeded]
<ClientAlive> yes
<bnagy> waiting 3 minutes for you to type an essay after every simple question is annoying
<ClientAlive> :)
chandankumar has joined #ruby
slash_nick has quit [Ping timeout: 276 seconds]
pcarrier_ has joined #ruby
<ClientAlive> oh, sorry - I'll change that then
djwonk has joined #ruby
<ClientAlive> thanks for pointing that out btw
darkapex has quit [Ping timeout: 264 seconds]
leonidlm has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
apeiros has quit [Remote host closed the connection]
<bnagy> so you installed redmine
<ClientAlive> yes
joast has quit [Quit: Leaving.]
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<wmoxam> ugh
<wmoxam> Redmine
<ClientAlive> wmoxam: that bad eh?
<wmoxam> some should make a vagrant + Chef config for it
<wmoxam> ClientAlive: SO many people have problems installing it
<wmoxam> SO MANY
cantonic has quit [Ping timeout: 256 seconds]
<ClientAlive> this is the most challenging thing I've ever dealt with (even installing arch was a peice of cake compared to this)
<ClientAlive> hell, installing gentoo was a peice of cake (2 yrs ago)
<joshu> can this be written better or not to = "#{fax_number}@" + ENV['FAX_SAAS_PROVIDER_DOMAIN']
DrCode has quit [Ping timeout: 240 seconds]
<wmoxam> ClientAlive: Trac could also be difficult to install
jlast has quit [Ping timeout: 248 seconds]
<ClientAlive> hmm
<wmoxam> ClientAlive: funny thing is, Redmine's UI looks just like Trac ;)
DrCode has joined #ruby
<bnagy> man a lot of crap on the interwebs is old
s_e has joined #ruby
tjbiddle has joined #ruby
whitemage has joined #ruby
pcarrie__ has joined #ruby
pcarrier_ has quit [Ping timeout: 276 seconds]
fschuindt has quit [Quit: Computer has gone to sleep.]
<ClientAlive> bnagy: I was confused about the meaninng of that section in the arch wiki I pasted here. I assumed it meant the bulleted list is prereqs for redmine but reading other stuff makes me question that now
<xibalba> bnagy, maybe you're too youn
<xibalba> young*
thebastl has joined #ruby
zirpu has joined #ruby
cantonic has joined #ruby
<bnagy> ClientAlive: so, http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/ seems reasonable, do all the xxxx -v commands complete ok?
<bnagy> ruby -v, gem -v, rails -v ...
thebastl has quit [Remote host closed the connection]
<bnagy> xibalba: dunno, I was on the Internet before they had web browsers, is that old enough>
<ClientAlive> bnagy: ok, I will read that. I think I want to study it before punching in commands tho :)
<ClientAlive> bnagy: thx man
<xibalba> oh boy...someone from the gopher era?
<bnagy> those are just version check commands
arya has quit [Ping timeout: 252 seconds]
<bnagy> gopher was awesome
<xibalba> i recant my previous statement then
dmiller has quit [Remote host closed the connection]
<joshu> wmoxam ClientAlive what about this https://github.com/bkeepers/gaskit I haven't followed your discussion just seen Redmine mentioned.
<bnagy> tbh I was just referring to redmine setup docs from like 09.. unlikely to be helpful, but spamming the first page
<bnagy> ClientAlive: basically, until you've got rails and gem and probably bundler I don't think we're getting anywhere
yshh has quit [Remote host closed the connection]
darkapex has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
Bish_ is now known as Bish
Yarou has quit [Quit: Leaving]
browndawg has joined #ruby
mercwithamouth has joined #ruby
<ClientAlive> bnagy: well, in general, when I try to install I get error message then I try to fix it and I get a different error message. I think that I missed something (either bc it's on arch or otherwise).
arya has joined #ruby
tylersmith has joined #ruby
nari has quit [Ping timeout: 240 seconds]
joast has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
blandflakes has quit [Ping timeout: 248 seconds]
yacks has joined #ruby
<bnagy> ...
<bnagy> 'an error' is seldom useful
jbueza has quit [Quit: Leaving.]
darkapex has quit [Ping timeout: 256 seconds]
Dummies_freelanc has left #ruby [#ruby]
<bnagy> ruby -v, gem -v, rails -v
<bnagy> what's the output from them?
blandflakes has joined #ruby
<bnagy> you can use gist or pastie or whatever
apalmblad has quit [Quit: apalmblad]
epta has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
Michael_ has quit [Remote host closed the connection]
apeiros has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
Nimsical has joined #ruby
Michael_ has joined #ruby
arya has quit [Ping timeout: 276 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
<bnagy> joshu: btw any time you are using + for strings you are doing it wrong
pkrzywicki has quit [Ping timeout: 256 seconds]
mafolz has quit [Ping timeout: 256 seconds]
epta has joined #ruby
<bnagy> 95% of the time you should just be using "#{interpolation}", the rest you should be "concatting" << "that modifies the receiver"
krombr has quit [Remote host closed the connection]
<joshu> bnagy so like this to = "#{fax_number}@#{ENV['FAX_SAAS_PROVIDER_DOMAIN']}"
jcromartie has joined #ruby
pcarrie__ has quit [Quit: Computer has gone to sleep.]
lyanchih has quit [Quit: lyanchih]
<bnagy> yeah, that's what I would probably write, except with some spaces for readability
<bnagy> spaces inside the #{} are not going to appear in the output
rolph has joined #ruby
rolph has left #ruby [#ruby]
<joshu> ok thanks bnagy!
bradhe has joined #ruby
eldariof has joined #ruby
arunagw has joined #ruby
carloslopes has joined #ruby
<joshu> acceptable to use one white space after and before { }
<joshu> like so to = "#{ fax_number }@#{ ENV['FAX_SAAS_PROVIDER_DOMAIN'] }"
dmiller has joined #ruby
b0oh has quit [Quit: Leaving.]
timonv_ has quit [Remote host closed the connection]
myu has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
nbjahan has quit [Quit: nbjahan]
berkes has quit [Ping timeout: 256 seconds]
sayan has quit [Read error: Connection reset by peer]
<Hanmac> joshu what about this ;D "#{ fax_number }" "@" "#{ ENV['FAX_SAAS_PROVIDER_DOMAIN'] }"
<joshu> Hanmac hehe ok
<ClientAlive> guys - this is output from the last things I tried to do (shows what I've tried and the errors I'm getting): http://bpaste.net/show/102297/
bradhe has quit [Ping timeout: 246 seconds]
robottinosino has quit [Quit: WeeChat 0.4.0]
ixti has joined #ruby
<Hanmac> ClientAlive: install libmagick-devel or something similar
<ClientAlive> ahh
<ClientAlive> ok
jbueza has joined #ruby
<bnagy> I hate imagemagick :/
lukeholder has quit [Quit: ["I love programming"]]
<apeiros> common feeling
dr_bob has left #ruby [#ruby]
ravster has quit [Ping timeout: 241 seconds]
<ClientAlive> Hanmac: What does this mean? "WARNING: You don't have /root/.gem/ruby/2.0.0/bin in your PATH,"
wolcanus has quit [Remote host closed the connection]
darkapex has joined #ruby
<bnagy> what it says
<bnagy> how did you install ruby again?
<bnagy> cause that's kind of consistent with doing an rvm install as root, which has never worked, ever, for anyone
ia___ has joined #ruby
<ClientAlive> bnagy: It got pulled in wtih bundle install or gem install
<bnagy> no
<ClientAlive> I used rvm to install jruby first
<ClientAlive> stupid arch wiki tells you to install rvm but don't install gem
dmiller has quit [Remote host closed the connection]
<bnagy> eughhch
teddyp1cker has joined #ruby
darkapex has quit [Ping timeout: 240 seconds]
<ClientAlive> then, arch has this funny issue about the: you don't have * PATH thing and they tell you to comment out "gem: --user-install" in /etc/gemrc to fix that. Doing so and I would get a differnt error when tryintg install my gems
<ClientAlive> * in your PATH I mean
darkapex has joined #ruby
dmiller has joined #ruby
viszu has joined #ruby
Z_Mass has joined #ruby
<bnagy> set it all on fire
<bnagy> remove all the rvm shite
<bnagy> install from the tarball
<ClientAlive> install what from the tarball - gems?
<bnagy> well ruby in general but also gems
<bnagy> although arch seems to have 2.0.0-p0 as default unless I misunderstand their docs
<bnagy> so probably pacman install would also work
wolcanus has joined #ruby
<ClientAlive> seems I've read that some ruby stuff can be installed with pacman
apalmblad has joined #ruby
horsey has joined #ruby
<ClientAlive> what you said reminds me why I asked about a general understanding in the first place
<bnagy> there should be a package for ruby, which will give you gem, and ruby-bundler
<ClientAlive> (whild there may be multiple ways to do this - what is the better way?)
<apeiros> rvm?
<ClientAlive> apeiros: we just went over that
darkapex has quit [Ping timeout: 246 seconds]
<ClientAlive> bnagy: and yeah, I'll do that (strip er back down a try to do it right this time). thx for your help man.
nomenkun has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
<bnagy> rvm implode is good
darkapex has joined #ruby
<apeiros> dunno, never had an issue with rvm
<bnagy> but it doesn't rip out all the shell crap they ask you to insert
<ClientAlive> afk
cj3kim has quit [Read error: Connection reset by peer]
kofno has joined #ruby
Michael_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
mfridh has quit [Read error: Operation timed out]
pcarrier_ has joined #ruby
myu has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
nbjahan has joined #ruby
<ericwood> uh oh did I walk in on an rvm battle?
<ericwood> :(
monkegjinni has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
boxmein has quit [Quit: RESEARCH PAPER]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<apeiros> ericwood: I don't think so
<apeiros> bnagy doesn't like rvm, I like rvm. no battle :)
monkegji_ has joined #ruby
<ericwood> rvm bros unite!
* Hanmac is s bloody stupid nightly user
darkapex has quit [Ping timeout: 245 seconds]
mfridh has joined #ruby
johnkary has joined #ruby
djwonk has quit [Quit: djwonk]
agent_white has joined #ruby
huoxito has quit [Quit: Leaving]
ravster has joined #ruby
dmiller has quit [Remote host closed the connection]
Michael_ has joined #ruby
marr has joined #ruby
tvw has quit []
darkapex has joined #ruby
dr_bob has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
ybart has quit [Read error: Connection reset by peer]
tomkad has quit [Read error: Operation timed out]
whowantstolivef1 has joined #ruby
whowantstolivef1 has quit [Read error: Connection reset by peer]
miclen has quit [Read error: Operation timed out]
momomomomo has joined #ruby
Z_Mass has quit [Ping timeout: 240 seconds]
arunagw has quit [Quit: Quit]
whowantstolivef1 has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
tobiasvl has joined #ruby
darkapex has joined #ruby
arietis has joined #ruby
<bnagy> zz
myu is now known as myu_afk
<ericwood> Hanmac: I'm a nightly user
<ericwood> of heroin
<ericwood> :D
Nimsical has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
jgrevich has joined #ruby
teclator has joined #ruby
darkapex has quit [Ping timeout: 240 seconds]
chris has joined #ruby
chris is now known as Guest82963
dmiller has joined #ruby
gyre007 has joined #ruby
senayar has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 246 seconds]
darkapex has joined #ruby
Nimsical has joined #ruby
tommyvyo has quit [Quit:]
lele has joined #ruby
browndawg1 has joined #ruby
nbjahan has quit [Quit: nbjahan]
browndawg has quit [Ping timeout: 248 seconds]
darkapex has quit [Ping timeout: 240 seconds]
ferdev has quit [Quit: ferdev]
jlast has quit [Ping timeout: 256 seconds]
slainer68 has quit [Remote host closed the connection]
lunarjar has quit [Ping timeout: 240 seconds]
darkapex has joined #ruby
modicrumb has joined #ruby
<modicrumb> does rails have its own channel?
<modicrumb> or is this the conglomerate channel
Guest82963 has quit [Remote host closed the connection]
jgrevich has quit [Quit: jgrevich]
myu_afk is now known as myu
<ariedler> modicrumb: #rubyonrails
<modicrumb> thanks
apod has quit [Quit: apod]
maz-dev has joined #ruby
gasbakid has joined #ruby
darkapex has quit [Ping timeout: 245 seconds]
modicrumb has left #ruby [#ruby]
pinpin404 has joined #ruby
lunarjar has joined #ruby
tylersmith has joined #ruby
waxjar has joined #ruby
nezumi has quit [Ping timeout: 256 seconds]
kf8a has quit [Quit: Computer has gone to sleep.]
darkapex has joined #ruby
Spug has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
_numbers has joined #ruby
_numbers has left #ruby [#ruby]
nettoweb has joined #ruby
<nettoweb> hello folks, I'm using ruby 1.8.7 and rails 2.2.3. is there a way to minify and shrink the css's and js's file? I now that pipelina do it automatically
<ericwood> tl;dr you really need to update...
tomsthumb has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
<ericwood> also, #rubyonrails is the proper place for this question
waxjar has quit [Ping timeout: 240 seconds]
mattbl has joined #ruby
darkapex has quit [Ping timeout: 246 seconds]
Michael_ has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Michael__ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
vlad_starkov has joined #ruby
yshh has joined #ruby
io_syl has quit [Ping timeout: 264 seconds]
darkapex has joined #ruby
bradhe has joined #ruby
waxjar has joined #ruby
cmarques has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
includex has quit [Quit: Leaving...]
rads has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
jgrevich has joined #ruby
brennanMKE has joined #ruby
nomenkun has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
yshh has quit [Ping timeout: 248 seconds]
darkapex has quit [Ping timeout: 240 seconds]
machuga has quit [Excess Flood]
machuga has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
threesome has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 276 seconds]
jgrevich has quit [Client Quit]
nomenkun has joined #ruby
zeeraw has joined #ruby
braincrash has joined #ruby
nomenkun has quit [Remote host closed the connection]
darkapex has joined #ruby
jgrevich has joined #ruby
mityaz has joined #ruby
Inside has joined #ruby
waxjar has joined #ruby
cofin has joined #ruby
<Inside> hey #ruby
nomenkun has joined #ruby
<Inside> what's the simplest way to uhh get a canvas of some sort and draw some boxes on it?
workmad3 has joined #ruby
generalissimo has joined #ruby
Mattx has quit [Quit: Leaving]
Mattix has joined #ruby
mikepack has joined #ruby
<apeiros> Inside: walmart
<Inside> using ruby!
<Inside> ;p
<apeiros> look into rmagick
carloslopes has quit [Remote host closed the connection]
<Inside> kk
darkapex has quit [Ping timeout: 246 seconds]
<ericwood> hmmm
DanKnox_away is now known as DanKnox
kofno has joined #ruby
<ericwood> ah for generating images
<joshu> I need to call tiff2pdf input.tif from my ruby script and put the result in a variable. I found this gist https://gist.github.com/JosephPecoraro/4069
waxjar has quit [Ping timeout: 264 seconds]
yacks has quit [Quit: Leaving]
vlad_sta_ has joined #ruby
<joshu> I'm thinking of doing cmd = "tiff2pdf"
matchaw has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: leaving]
<joshu> then not sure whether to use result = `#{cmd}`
haxrbyte has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
<ericwood> do that
ctp_ has joined #ruby
enriclluelles has quit [Remote host closed the connection]
jurbat has quit [Quit: Computer has gone to sleep.]
DanKnox is now known as DanKnox_away
timkohrumel has joined #ruby
timkohrumel has quit [Read error: Connection reset by peer]
timkohrumel has joined #ruby
haxrbyte_ has joined #ruby
nazty has joined #ruby
camilasa_ has quit [Remote host closed the connection]
<joshu> ericwood how should I specify the input which is stored in a variable
momomomomo has quit [Quit: momomomomo]
<joshu> result = `#{cmd} #{input}` ?
ctp_ has quit [Ping timeout: 248 seconds]
ctp has quit [Ping timeout: 276 seconds]
haxrbyte has quit [Ping timeout: 256 seconds]
Michael__ has quit [Remote host closed the connection]
Michael_ has joined #ruby
alexwh has left #ruby [#ruby]
mattbl has quit [Quit: This computer has gone to sleep]
krombr has joined #ruby
alexwh has joined #ruby
monkegji_ has quit [Ping timeout: 246 seconds]
wargasm has joined #ruby
chiel has quit [Quit: leaving]
boxmein has joined #ruby
cj3kim has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
cj3kim has joined #ruby
nomenkun has quit [Remote host closed the connection]
carloslopes has joined #ruby
DanKnox_away is now known as DanKnox
huoxito has joined #ruby
haxrbyte_ has quit [Ping timeout: 264 seconds]
evenix_ has joined #ruby
Inside has quit [Quit: Page closed]
tommyvyo has joined #ruby
Inside has joined #ruby
teclator has quit [Ping timeout: 276 seconds]
cj3kim has quit [Remote host closed the connection]
waxjar has joined #ruby
darkapex has joined #ruby
chiel has joined #ruby
chiel has quit [Client Quit]
evenix has quit [Ping timeout: 245 seconds]
<ericwood> sure whynot
teddyp1cker has left #ruby ["Konversation terminated!"]
<ericwood> the idea is whatever is inside of the backticks is executed in the shell
<ericwood> so just build up the command however you want
<ericwood> also, be damn careful passing in user input to backticks...
<ericwood> as in, don't do it, ever
chiel has joined #ruby
cj3kim has joined #ruby
browndawg1 has quit [Quit: Leaving.]
cj3kim has quit [Remote host closed the connection]
darkapex has quit [Ping timeout: 240 seconds]
waxjar has quit [Ping timeout: 245 seconds]
shorty has joined #ruby
persand has joined #ruby
krombr has quit [Remote host closed the connection]
waxjar has joined #ruby
Michael_ has quit [Remote host closed the connection]
lemonsparrow has quit [Ping timeout: 250 seconds]
Michael_ has joined #ruby
darkapex has joined #ruby
cofin has quit [Quit: cofin]
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
chiel has quit [Quit: leaving]
chiel has joined #ruby
<apeiros> as in: use spawn, you lazy bastard
casheew has joined #ruby
slash_nick has joined #ruby
darkapex has quit [Ping timeout: 240 seconds]
waxjar has quit [Ping timeout: 264 seconds]
<ericwood> jeez
emmanuelux has joined #ruby
darkapex has joined #ruby
Davey has joined #ruby
waxjar has joined #ruby
jrajav has joined #ruby
jlast has joined #ruby
Cultofmetatron has joined #ruby
nof13 has joined #ruby
[[thufir]] has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
darkapex has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
nbjahan has joined #ruby
darkapex has joined #ruby
slash_nick has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
codesoda has joined #ruby
LanaDelRey has joined #ruby
waxjar has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby
arya_ has quit [Ping timeout: 252 seconds]
jlast has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
arya has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
ebobby has joined #ruby
rubarlion has quit [Ping timeout: 248 seconds]
darkapex has joined #ruby
darkapex has quit [Changing host]
darkapex has joined #ruby
nbjahan has quit [Quit: nbjahan]
bradhe has joined #ruby
brennanMKE has quit [Remote host closed the connection]
ctp has joined #ruby
cj3kim has joined #ruby
<joshu> ericwood apeiros the input is not "user input" it is a file not created by a user
Banistergalaxy has joined #ruby
waxjar has quit [Ping timeout: 264 seconds]
yashshah has quit [Quit: Konversation terminated!]
darkapex has quit [Ping timeout: 246 seconds]
AndChat| has quit [Ping timeout: 245 seconds]
ferdev has joined #ruby
dmiller has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
adambeynon has joined #ruby
darkapex has joined #ruby
DanKnox is now known as DanKnox_away
johnkary has quit [Quit: @johnkary]
BizarreCake has quit [Ping timeout: 246 seconds]
beilabs has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
darkapex has quit [Ping timeout: 240 seconds]
waxjar has joined #ruby
bashdy has joined #ruby
skattyadz_ has joined #ruby
nikeita has joined #ruby
skattyadz has quit [Ping timeout: 252 seconds]
skattyadz_ is now known as skattyadz
darkapex has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
pcarrier_ has quit [Quit: Computer has gone to sleep.]
mattbl has joined #ruby
jetblack_ has quit [Quit: leaving]
spcshpopr8r has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
darkapex has quit [Ping timeout: 264 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
waxjar has quit [Ping timeout: 240 seconds]
Z_Mass has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
tonini has joined #ruby
brianpWins has joined #ruby
sc0 has joined #ruby
Nimsical has quit [Quit: Computer has gone to sleep.]
Heero has joined #ruby
waxjar has joined #ruby
darkapex has joined #ruby
DanKnox_away is now known as DanKnox
Nimsical has joined #ruby
Michael_ has quit [Remote host closed the connection]
v0n has quit [Read error: Operation timed out]
Michael_ has joined #ruby
cyrus_mc_ has joined #ruby
beilabs has quit [Ping timeout: 248 seconds]
ClientAlive has quit [Ping timeout: 248 seconds]
<cyrus_mc_> if I have a string as such: /home/sargraph/.bashrc and want to parse out the username (ie: sargraph) how could I do that
rubarlion has joined #ruby
saarinen has joined #ruby
chandankumar has quit [Ping timeout: 246 seconds]
waxjar has quit [Ping timeout: 240 seconds]
darkapex has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
dmiller has joined #ruby
zeeraw has joined #ruby
carloslopes has quit [Remote host closed the connection]
waxjar has joined #ruby
darkapex has joined #ruby
tommyvyo has quit [Quit:]
nof13 has quit [Ping timeout: 256 seconds]
bashdy has quit [Quit: bashdy]
<cyrus_mc_> nvm..figured it out
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
Spami has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
Z_Mass has quit [Ping timeout: 256 seconds]
darkapex has quit [Ping timeout: 240 seconds]
xardas has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
waxjar has joined #ruby
darkapex has joined #ruby
Jork1 has joined #ruby
nof13 has joined #ruby
zigomir_ has joined #ruby
ogr has quit [Ping timeout: 248 seconds]
Dummies_freelanc has joined #ruby
beilabs has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
ogr has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
blaxter has quit [Ping timeout: 246 seconds]
waxjar has quit [Ping timeout: 240 seconds]
aef has quit [Remote host closed the connection]
darkapex has quit [Ping timeout: 246 seconds]
miclen has joined #ruby
mahmoudimus has joined #ruby
v0n has joined #ruby
viszu has quit [Quit: Leaving.]
ia___ has quit [Quit: ia___]
breakingthings has quit [Quit: breakingthings]
darkapex has joined #ruby
darkapex has quit [Changing host]
darkapex has joined #ruby
breakingthings has joined #ruby
shinobi_one_ has joined #ruby
monkegjinni has joined #ruby
monkegji_ has joined #ruby
Memolition has joined #ruby
DanKnox is now known as DanKnox_away
kobain has quit [Remote host closed the connection]
waxjar has joined #ruby
ybart has joined #ruby
monkegjinni has quit [Ping timeout: 246 seconds]
alup has quit [Quit: Leaving]
dmiller has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
horsey has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
arunagw has joined #ruby
vlad_starkov has joined #ruby
timkohrumel has quit [Remote host closed the connection]
waxjar has quit [Ping timeout: 240 seconds]
darkapex has quit [Ping timeout: 246 seconds]
beilabs has quit [Ping timeout: 248 seconds]
persand has quit [Quit: persand]
nof13 has quit [Quit: Lost terminal]
kobain has joined #ruby
chandankumar has joined #ruby
sumark has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
sumark has joined #ruby
shinobi_one_ has quit [Quit: shinobi_one_]
waxjar has joined #ruby
cortes has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 248 seconds]
gyre007 has quit [Remote host closed the connection]
LanaDelRey has quit [Quit: byebye stupidsmokers]
t-mart_ has joined #ruby
Evixion has quit []
yacks has joined #ruby
waxjar has quit [Ping timeout: 264 seconds]
sc0 has quit [Quit: ZNC - http://znc.in]
waxjar has joined #ruby
darkapex has joined #ruby
v0n has joined #ruby
tomsthumb has quit [Quit: Leaving.]
Evixion has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
kf8a has joined #ruby
beilabs has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
Mattix has quit [Quit: Leaving]
darkapex has quit [Ping timeout: 246 seconds]
pcarrier_ has joined #ruby
waxjar has joined #ruby
whowantstolivef1 has quit [Quit: quit]
nomenkun has quit [Remote host closed the connection]
darkapex has joined #ruby
rakl has quit [Quit: sleeping]
rakl has joined #ruby
akells` has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
slash_nick has joined #ruby
johnkary has joined #ruby
waxjar has joined #ruby
bean has joined #ruby
Memolition has quit [Read error: Connection reset by peer]
stonevil has quit [Remote host closed the connection]
darkapex has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
Memolition has joined #ruby
akells` has quit [Ping timeout: 264 seconds]
darkapex has joined #ruby
waxjar has joined #ruby
cj3kim has joined #ruby
akells` has joined #ruby
shinobi_one_ has joined #ruby
saarinen has quit [Quit: saarinen]
tylersmith has joined #ruby
<Inside> I'm surprised ruby has no is_integer(String) class
<Inside> huh
<MrZYX> match /d+/
<Inside> waugh, regex. *leex*
<Inside> *flees*
mattbl has joined #ruby
slainer68 has joined #ruby
<ericwood> there are worse things
<Inside> "23".match(/d+/)? or.. am I doing it wrng?
<Inside> (It doesn't work)
<MrZYX> eh, /\d+/, sorry
<Inside> hmm
<Inside> I see, I keep forgetting how regexes work
waxjar has quit [Ping timeout: 245 seconds]
<Inside> And this task of converting a BOM from a solidworks PDF is awful
<Inside> and thanks MrZYX, that does the trick
darkapex has quit [Ping timeout: 264 seconds]
io_syl has joined #ruby
darkapex has joined #ruby
waxjar has joined #ruby
supergiantrobot has quit [Quit: supergiantrobot]
tylersmith has quit [Ping timeout: 276 seconds]
Cultofmetatron has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 252 seconds]
t-mart_ has quit [Ping timeout: 256 seconds]
cj3kim has joined #ruby
Nimsical has quit [Quit: Computer has gone to sleep.]
MagiCrazy has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
waxjar has quit [Ping timeout: 240 seconds]
darkapex has quit [Ping timeout: 240 seconds]
shinobi_one_ has quit [Quit: shinobi_one_]
troessner has quit [Ping timeout: 248 seconds]
zigomir_ has quit [Quit: zigomir_]
dmiller has joined #ruby
brtdv has joined #ruby
DanKnox_away is now known as DanKnox
<milestone> hi folks
dash_ has joined #ruby
<milestone> i have a tough time to run system(command) on my windows environment
<milestone> is there a way to test if system did execute successfully
_bart has joined #ruby
<MrZYX> have a look at the $? variable
<milestone> $?
Criztian has quit [Remote host closed the connection]
<MrZYX> it's a Process::Status object
mikewintermute has joined #ruby
<milestone> MrZYX: thx
bionhart has joined #ruby
<_bart> So I was just looking into _why's Potion project: https://github.com/fogus/potion do you guys think it's possible to also create GUI's with that language?
<Beoran__> _bart, it would be if you make the neccesary bindings
lal00 has joined #ruby
Nimsical has joined #ruby
beilabs has quit [Ping timeout: 248 seconds]
lal00 has left #ruby [#ruby]
<Beoran__> but perhaps uing shoes or whatever in ruby is going to be a lot easier
<_bart> Beoran_: but would that result in like plain old C code or more like potion?
Jackneill has quit [Quit: Leaving]
<joshu> I need some help with executing a shell command with input https://gist.github.com/anonymous/9ef7ea2947c2c199bed7
<_bart> Beoran_: I really like the fact Potion compiles down to machine code
Nimsical has quit [Client Quit]
<milestone> MrZYX: I am getting exit code 127
Liothen has joined #ruby
Nimsical has joined #ruby
shinobi_one_ has joined #ruby
dmiller has quit [Remote host closed the connection]
<MrZYX> no windows experience over here
cherrypeel has joined #ruby
<milestone> MrZYX: is there a way to split a command into array?
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
chandankumar has quit [Quit: Leaving]
<milestone> command.split?
<milestone> yeah
chipotle_ has quit [Quit: cya]
<MrZYX> have a look at shellwords in stdlib
locriani has quit [Remote host closed the connection]
shorty has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The alternative IRC client]
havenwood has quit [Remote host closed the connection]
mahmoudimus has quit [Ping timeout: 245 seconds]
<joshu> I've tried to use concatting cmd << file_to_convert but that still gives me the same error. Not sure how to execute the shell command with my file within ruby
bitZero__ has quit [Ping timeout: 252 seconds]
sayan has quit [Quit: Leaving]
havenwood has joined #ruby
chatrjr has joined #ruby
<MrZYX> joshu: are you sure you want to pass the file contents as argument to that command?
<MrZYX> not as stdin or the filename as argument?
darkapex has joined #ruby
bluOxigen has joined #ruby
<joshu> MrZYX hmm I see what you're saying. in the tiff2pdf docs it shows a filename as input. Does that mean it has to read from a file on disk rather than just pass the contents directly?
Michael_ has quit [Remote host closed the connection]
<joshu> MrZYX I'd like to avoid saving the file first if possible
nettoweb has quit [Quit: nettoweb]
<MrZYX> you assume I have any knowledge about that program
benlieb has joined #ruby
ArchBeOS has quit [Remote host closed the connection]
bitZero__ has joined #ruby
<joshu> MrZYX No just asking in general.
jokke1 has quit [Ping timeout: 245 seconds]
rubarlion has quit [Remote host closed the connection]
<joshu> "
<joshu> tiff2pdf opens a TIFF image and writes a PDF document to standard output." I guess I have to let tiff2pdf open the file by itself and just pass a file path :(
robert_ has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
darkapex has quit [Ping timeout: 256 seconds]
<MrZYX> I assume the filename is userinput?
JZTech101 has quit [Ping timeout: 276 seconds]
shinobi_one_ has quit [Quit: shinobi_one_]
darkapex has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nomenkun has joined #ruby
jlast has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
<joshu> In the docs it shows "tiff2pdf input.tif" In my case it is all done within my script without user intervention, but yes running the command alone in a shell requires user input.
miclen has quit [Ping timeout: 248 seconds]
<joshu> What's the best way to save the tif temporarily for conversion? Should I use FileUtils.mkdir "/tmp/my_script" save the tif there convert it to pdf which I can read from stdout and then remove the tmp foler?
<MrZYX> okay, just in case it's an upload or something, interpolating user input into calls to the shell is a common vulnerability
<MrZYX> have a look at tempfile from stdlib
monkegjinni has joined #ruby
JZTech101 has joined #ruby
chatrjr has quit [Quit: Leaving]
rubarlion has joined #ruby
<joshu> MrZYX I understand no user upload or anything like that. The tif to convert is read from an email and is always the same type of file, same filename etc. It's from a notification system.
zigomir_ has joined #ruby
banjara has quit [Quit: Leaving.]
brtdv has joined #ruby
waxjar has joined #ruby
zigomir_ has quit [Client Quit]
jetblack has joined #ruby
brianpWins has quit [Quit: brianpWins]
Peej has quit [Remote host closed the connection]
monkegji_ has quit [Ping timeout: 248 seconds]
tomsthumb has joined #ruby
huoxito has quit [Quit: Leaving]
mityaz has quit [Quit: See ya!]
kofno has quit [Remote host closed the connection]
brianpWins has joined #ruby
Peej has joined #ruby
kofno has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
banister`shop has quit [Read error: Connection reset by peer]
waxjar has left #ruby ["Textual IRC Client: www.textualapp.com"]
ckrailo has joined #ruby
chatrjr has joined #ruby
tvw has joined #ruby
plotter has quit [Ping timeout: 246 seconds]
TomRone has quit [Ping timeout: 256 seconds]
kofno has quit [Remote host closed the connection]
Dummies_freelanc has quit [Read error: Connection reset by peer]
milestone has quit [Quit: milestone]
prk has joined #ruby
JustinAiken has joined #ruby
chatrjr has quit [Quit: Leaving]
jrajav has joined #ruby
DanKnox is now known as DanKnox_away
locriani has joined #ruby
Michael_ has joined #ruby
adambeynon has joined #ruby
Astralum has joined #ruby
TomRone has joined #ruby
pothibo has quit [Quit: pothibo]
mikewintermute has quit [Quit: mikewintermute]
stonevil has joined #ruby
markalanevans has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
milestone has joined #ruby
beilabs has quit [Ping timeout: 256 seconds]
Astral_ has quit [Ping timeout: 256 seconds]
zigomir_ has joined #ruby
Cultofmetatron has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
Nimsical has quit [Quit: Computer has gone to sleep.]
juarlex has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
dash_ has quit [Quit: Time to beer :)]
nettoweb has joined #ruby
persand has joined #ruby
juarlex has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
tylersmith has joined #ruby
rakl has quit [Quit: sleeping]
TomRone has quit [Ping timeout: 256 seconds]
Michael_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 245 seconds]
Nimsical has joined #ruby
tjbiddle has joined #ruby
bluOxigen has joined #ruby
timonv has quit [Remote host closed the connection]
brennanMKE has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
emanuel_ has joined #ruby
nikeita has quit [Quit: bye bye]
beilabs has joined #ruby
leonidlm has joined #ruby
<joshu> What tool(s) will allow me to change a pdf file's information, e.g. author, title, creator?
Guedes0 has joined #ruby
brtdv has quit [Ping timeout: 264 seconds]
brennanMKE has quit [Ping timeout: 252 seconds]
Michael_ has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
<joshu> maybe exiftool?
<MrZYX> that's exif data? I thought they only put that into images
mattbl has quit [Quit: This computer has gone to sleep]
boxmein has quit [Quit: - Not today.]
rburton- has joined #ruby
iamjarvo1 has joined #ruby
iamjarvo has quit [Ping timeout: 248 seconds]
brennanMKE has joined #ruby
devoldmx3 has joined #ruby
ogr has quit [Ping timeout: 248 seconds]
obs has quit [Quit: Konversation terminated!]
bluOxigen has quit [Ping timeout: 264 seconds]
nomenkun has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
Jork1 has quit [Ping timeout: 264 seconds]
teclator has joined #ruby
<MrZYX> hmm I guess exiftool grew beyond its name
bluOxigen has joined #ruby
<joshu> hehe yeah
evenix_ has quit [Remote host closed the connection]
ogr has joined #ruby
bambanx has joined #ruby
<bambanx> hello
brennanMKE has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
<JustinAiken> hello
huoxito has joined #ruby
brennanM_ has joined #ruby
grzywacz has joined #ruby
grzywacz has joined #ruby
arunagw has quit [Quit: Quit]
adkron has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
mjburgess has quit [Ping timeout: 240 seconds]
dr_bob has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
<_bart> Could somebody maybe summarise in one or two sentences why _why left? I just noticed the book CLOSURE, but it is largely confusing.
dmiller has joined #ruby
devoldmx27 has joined #ruby
rakl has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ruby
adkron has joined #ruby
tylersmith has joined #ruby
<nightfly> Wasn't it because he wanted to be anonymouse but people just wouldn't let that happen?
emanuel_ has quit [Quit: Leaving]
mattbl has joined #ruby
Jork1 has joined #ruby
<SirSkidmore> I'm working on a new gem, and in the bin/executable I have "$LOAD_PATH.unshift File.expand_path('../lib')" then I'm requiring the gem name. I do a bundle install, and it says that it's using the source at (.). but when I run the executable, it says it can't find the gem
eldariof has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 248 seconds]
devoldmx3 has quit [Ping timeout: 256 seconds]
persand has quit [Quit: persand]
dmiller has quit [Ping timeout: 276 seconds]
pcarrier_ has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 246 seconds]
brennanM_ has quit [Ping timeout: 248 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Zeeraw has joined #ruby
adkron_ has joined #ruby
pskosinski has quit [Quit: pskosinski]
cj3kim has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
timkohrumel has joined #ruby
Nimsical has quit [Quit: Textual IRC Client: www.textualapp.com]
Memolition has quit [Remote host closed the connection]
cj3kim has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
dwon has joined #ruby
stonevil_ has joined #ruby
brennanMKE has joined #ruby
rakl has quit [Quit: sleeping]
xibalba has quit [Changing host]
xibalba has joined #ruby
stonevil has quit [Ping timeout: 248 seconds]
Jork1 has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
A124 has quit [Read error: Operation timed out]
pcarrier_ has joined #ruby
sepp2k has joined #ruby
codecop has quit [Quit: Išeinu]
ldnunes has quit [Quit: Saindo]
brennanM_ has joined #ruby
<_bart> nightfly: I also noticed he said "programming is rather thankless. you see your works become replaced by superior works in a year. unable to run at all in a few more."
davetherat has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 241 seconds]
davetherat has joined #ruby
<_bart> nightfly: so I'm unsure it's the anonymity, maybe he was just done and didn't want to do it for the rest of his life.
threesome has joined #ruby
TomRone has joined #ruby
iamjarvo1 has quit [Quit: Leaving.]
<nettoweb> I'd like to know more when we use *_ids for exemple: company.products_ids to get all products id from thi company
johnkary has quit [Quit: @johnkary]
<joshu> can someone please explain how this code shell cmd is executed as the options are put in an array https://github.com/holman/gifme/blob/master/bin/gifme#L92
wesside has joined #ruby
Jork1 has joined #ruby
<nettoweb> is there a name for this functionality?
wesside has quit [Client Quit]
<MrZYX> nettoweb: -> #rubyonrails
<MrZYX> joshu: you mean the *cmd line?
dmiller has joined #ruby
chimmy has joined #ruby
JZTech101 has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
<joshu> MrZYX is that where it is executed? system(*cmd) returns true if sucessful
<MrZYX> yup
<joshu> hmm
<matti> sepp2k: --install-dir?
<joshu> but how is the array of options put together>
<matti> Ops.
<matti> I got severe lags.
<matti> sepp2k: Sorry ;d
<MrZYX> joshu: you mean what the << does or...?
<joshu> MrZYX << concatts
<Inside> what do you guys recommend for GUI stuff in ruby?
<matti> joshu: Do simple test.
<matti> joshu: Fire up irb.
<Inside> I've used QT with python since it seems to come with its own GUI maker and everything
<matti> joshu: And copy and paste line 92 to 97.
<joshu> hey matti I have and it fails. one sec I'll show you
<matti> joshu: And p cmd.
<Inside> but... QT for ruby doesn't seem to be very robust/developed
<Inside> or I may be mistaken
icole has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
milestone has quit [Quit: milestone]
<joshu> thanks canton7 for the link
adkron has joined #ruby
<MrZYX> #{} calls .to_s
<matti> joshu: `` != system()
<canton7> so you're running "[tiff2pdf, -p, A4" etc
<canton7> (as a string)
poga has joined #ruby
<matti> joshu: He is passing *cmd, which is a splay.
<canton7> system() takes an array of arguments to execute - it knows how to join the array
<joshu> oh
<joshu> that's the "magic"
<canton7> (ok, not an array, a list of arguments to take - but the cmd array is splatted out into those)
banjara has joined #ruby
<joshu> I didn't understand how the array was joined
<canton7> that's why I linked you to the doc page ;)
adkron_ has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Remote host closed the connection]
<joshu> right so using system isn't going to work for me as I want the result of stout whereas that code is writing to a file and using system to get true if it ran ok
Peej has quit [Remote host closed the connection]
<joshu> got it thanks matti MrZYX canton7
monkegjinni has joined #ruby
hydrozen has joined #ruby
<matti> :)
adkron_ has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
dmiller has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
banisterfiend has joined #ruby
whowantstolivef1 has joined #ruby
ntus1017 has quit [Remote host closed the connection]
Peej has joined #ruby
kofno has joined #ruby
prk has quit [Ping timeout: 264 seconds]
gasbakid has quit [Read error: Connection reset by peer]
MagiCrazy has quit [Quit: I'm an agent of chaos !]
A124 has joined #ruby
adkron has joined #ruby
adkron_ has quit [Ping timeout: 252 seconds]
kf8a has joined #ruby
tonini has joined #ruby
huoxito has quit [Quit: Leaving]
chimkan has joined #ruby
Michael_ has quit [Remote host closed the connection]
chimkan has quit [Client Quit]
failshell has quit [Remote host closed the connection]
chimkan has joined #ruby
DanKnox is now known as DanKnox_away
dmiller has joined #ruby
chimkan has quit [Client Quit]
Ortuna has joined #ruby
kf8a has quit [Client Quit]
adkron_ has joined #ruby
Michael_ has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
tonini has quit [Ping timeout: 248 seconds]
Jork1_ has joined #ruby
adkron has quit [Ping timeout: 276 seconds]
ravster has quit [Quit: Leaving.]
shinobi_one_ has joined #ruby
Jork1 has quit [Ping timeout: 264 seconds]
Jork1_ is now known as Jork1
Kar- has quit [Remote host closed the connection]
robustus has joined #ruby
robert_ has quit [Ping timeout: 248 seconds]
DanKnox_away is now known as DanKnox
gwb3 has joined #ruby
<gwb3> Hello, I am working on a script - https://gist.github.com/anonymous/c8d09d35fb424be6b372 - and am encountering an error.
adkron has joined #ruby
dambler has joined #ruby
adkron_ has quit [Ping timeout: 276 seconds]
<gwb3> Could someone please share a hint to help me get past this?
arya has quit [Ping timeout: 276 seconds]
<MrZYX> gets returns a string
<MrZYX> call to_i or .to_f on it
kf8a has joined #ruby
kf8a has quit [Client Quit]
arubin has joined #ruby
<gwb3> Ahh
<gwb3> Yes, I just did that. :)
<gwb3> Thanks MrZYX!
Jork1 has quit [Quit: Jork1]
A124 has quit [Ping timeout: 241 seconds]
marcgg has quit [Read error: Connection reset by peer]
miclen has joined #ruby
marcgg has joined #ruby
wmoxam has quit [Ping timeout: 248 seconds]
umren has joined #ruby
adkron_ has joined #ruby
chimmy has quit [Ping timeout: 256 seconds]
shinobi_one_ has quit [Quit: shinobi_one_]
arya has joined #ruby
adkron has quit [Ping timeout: 248 seconds]
Nimsical has joined #ruby
prk has joined #ruby
whowantstolivef1 has quit [Ping timeout: 256 seconds]
kf8a has joined #ruby
Michael_ has quit [Remote host closed the connection]
_Amaan has quit [Quit: _Amaan]
mattbl has quit [Quit: This computer has gone to sleep]
zigomir_ has quit [Quit: zigomir_]
nomenkun has joined #ruby
gwb3 has left #ruby ["adios"]
kirun has quit [Quit: Client exiting]
arya_ has joined #ruby
breakingthings has quit [Quit: breakingthings]
cmarques has quit [Ping timeout: 276 seconds]
hydrozen has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 252 seconds]
beilabs has quit [Ping timeout: 248 seconds]
cj3kim has quit [Remote host closed the connection]
mattbl has joined #ruby
rburton- has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 252 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
Michael_ has joined #ruby
wolcanus has quit [Ping timeout: 248 seconds]
ybart has quit [Quit: ybart]
<Inside> if I have an array of hashes.. what's a good way to find if one of the hashes has a certain value?
arya_ has quit [Ping timeout: 252 seconds]
pabloh has joined #ruby
<Inside> using index? hrm
<banisterfiend> Inside: you just awnt true/false ?
jarin has joined #ruby
saarinen has joined #ruby
<pabloh> anyone here with experience creating thor scripts?
greenarrow|3 has joined #ruby
ptico has joined #ruby
alexwh has left #ruby [#ruby]
bigrb has joined #ruby
cafk has joined #ruby
devoldmx has joined #ruby
beilabs has joined #ruby
greenarrow|2 has quit [Ping timeout: 276 seconds]
devoldmx27 has quit [Ping timeout: 248 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
Z_Mass has joined #ruby
robottinosino has joined #ruby
threesome has quit [Ping timeout: 256 seconds]
freeayu has joined #ruby
arthurstomp has joined #ruby
icole has quit [Remote host closed the connection]
Michael_ has quit [Remote host closed the connection]
icole has joined #ruby
Michael_ has joined #ruby
djwonk has joined #ruby
apeiros has joined #ruby
tvw has quit []
jarin has quit [Quit: WeeChat 0.4.0]
Z_Mass has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
<cherrypeel> Inside: I think you could use array.any? { |h| h.has_value?(targetValue) }
ggordan has joined #ruby
Davey has joined #ruby
rakl has joined #ruby
Nimsical has quit [Quit: Computer has gone to sleep.]
miclen has quit [Ping timeout: 256 seconds]
kofno has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
tjbiddle has quit [Quit: tjbiddle]
kf8a has quit [Quit: Computer has gone to sleep.]
brennanM_ has quit [Remote host closed the connection]
julian-delphiki has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
stonevil_ has quit [Remote host closed the connection]
F1skr has quit [Ping timeout: 276 seconds]
stonevil has joined #ruby
saarinen has quit [Quit: saarinen]
nezumi has joined #ruby
stonevil has quit [Read error: Connection reset by peer]
stonevil_ has joined #ruby
mahmoudimus has joined #ruby
bean has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
xardas has quit [Ping timeout: 252 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
monkegjinni has quit [Read error: Operation timed out]
ephemerian has left #ruby [#ruby]
dambler has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Michael_ has quit [Remote host closed the connection]
benlieb has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
Michael_ has joined #ruby
leonidlm has quit [Read error: Operation timed out]
nettoweb has quit [Quit: nettoweb]
kevinykchan has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
bradhe has joined #ruby
Animawish has joined #ruby
niceguyjames has joined #ruby
Animawish has quit [Client Quit]
Animawish has joined #ruby
freerobby has joined #ruby
tomzx_mac has joined #ruby
Xeago has quit [Remote host closed the connection]
brennanMKE has joined #ruby
bamdad has joined #ruby
iamjarvo has joined #ruby
djwonk has quit [Quit: djwonk]
danslo has quit [Quit: danslo]
<Spooner> Or #find instead of any, if you want to find the guilty hash ;)
<MrZYX> or #select if you want to find all of them, we just can't know what he wants ;P
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
beilabs has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
Michael_ has quit [Remote host closed the connection]
<Spooner> MrZYX, Yeah, asking about index, I was assuming they wanted a singular result out, but as you say, we can never know ;)
Michael_ has joined #ruby
gstamp has joined #ruby
Cache_Money has joined #ruby
Vivekananda has quit [Ping timeout: 246 seconds]
locriani has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 248 seconds]
prk has quit [Ping timeout: 256 seconds]
tomsthumb has quit [Quit: Leaving.]
mattbl has joined #ruby
mikepack has quit [Remote host closed the connection]
Michael_ has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 240 seconds]
Michael_ has joined #ruby
devoldmx has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
end_guy has joined #ruby
generalissimo has quit [Ping timeout: 276 seconds]
pinpin404 has quit [Quit: d&dTime kmp dormez bien et soyez heureux]
aapzak has joined #ruby
Kricir has joined #ruby
aapzak has left #ruby [#ruby]
beilabs has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
pcarrier_ has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
osvico has quit [Ping timeout: 276 seconds]
locriani has joined #ruby
zigomir has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
huoxito has joined #ruby
locriani has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
locriani has joined #ruby
davetherat has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
hydrozen has joined #ruby
brianpWins has quit [Quit: brianpWins]
brennanM_ has joined #ruby
havenwood has quit [Remote host closed the connection]
hydrozen has quit [Client Quit]
locriani has quit [Remote host closed the connection]
brennanMKE has quit [Read error: Connection reset by peer]
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
locriani has joined #ruby
Mattix has joined #ruby
tomsthumb has joined #ruby
whitemage has quit [Quit: Leaving...]
Inside has quit [Ping timeout: 256 seconds]
SirRamonGabriel has joined #ruby
locriani has quit [Remote host closed the connection]
kofno has joined #ruby
locriani has joined #ruby
arya has joined #ruby
brennanMKE has joined #ruby
kofno has quit [Remote host closed the connection]
rubarlion has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
IceDragon has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
grzywacz has quit [Read error: Operation timed out]
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
benlieb has quit [Quit: benlieb]
bamdad has quit [Quit: bamdad]
brennanM_ has quit [Ping timeout: 240 seconds]
whitemage has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
Spaceghost|work has joined #ruby
patteh has quit [Ping timeout: 264 seconds]
patteh has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
benlieb has joined #ruby
Nisstyre has joined #ruby
faen is now known as farn
beilabs has quit [Ping timeout: 256 seconds]
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
marr has quit [Ping timeout: 246 seconds]
devoldmx3 has joined #ruby
locriani has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 252 seconds]
zipace has joined #ruby
locriani has joined #ruby
Z_Mass has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
whitemage has quit [Quit: Leaving...]
jlast has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
JZTech101 has joined #ruby
locriani has quit [Remote host closed the connection]
arthurstomp is now known as astomp
locriani has joined #ruby
Z_Mass_ has joined #ruby
locriani has quit [Remote host closed the connection]
shinobi_one_ has joined #ruby
senayar has quit [Quit: Quitte]
sharpobj1ct has left #ruby [#ruby]
ariedler has quit [Remote host closed the connection]
locriani has joined #ruby
caveat- has quit [Quit: leaving]
predator217 has joined #ruby
mahmoudimus has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
pcarrier_ has quit [Ping timeout: 264 seconds]
mahmoudimus has joined #ruby
_baba_ has joined #ruby
ffranz has quit [Quit: Leaving]
baba has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
mahmoudimus has quit [Remote host closed the connection]
caveat- has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
slainer68 has quit [Remote host closed the connection]
pcarrier_ has joined #ruby
stewart_ has joined #ruby
djwonk has joined #ruby
DanKnox is now known as DanKnox_away
IceDragon has joined #ruby
mahmoudimus has joined #ruby
gyre007 has joined #ruby
nettoweb has joined #ruby
butblack has joined #ruby
beilabs has quit [Ping timeout: 256 seconds]
ptico has quit [Remote host closed the connection]
shinobi_one_ has quit [Quit: shinobi_one_]
kofno has joined #ruby
thomaslee has joined #ruby
MrZYX is now known as MrZYX|off
Davey has quit [Quit: Computer has gone to sleep.]
justsee has quit [Ping timeout: 248 seconds]
davetherat has quit [Remote host closed the connection]
skattyadz has quit [Quit: skattyadz]
davetherat has joined #ruby
bradhe has quit [Remote host closed the connection]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
IceDragon has quit [Ping timeout: 252 seconds]
beilabs has joined #ruby
butblack has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
arya has quit [Ping timeout: 276 seconds]
skattyadz has joined #ruby
arya has joined #ruby
zastern has joined #ruby
devoldmx has joined #ruby
devoldmx3 has quit [Ping timeout: 256 seconds]
Mattix has quit [Read error: Connection reset by peer]
Matip has joined #ruby