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?
<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)
<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]
<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)
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]
<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]
<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>
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]
<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
<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
<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]
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.
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]
<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
<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
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]
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?
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]
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.]
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
<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