petey has quit [Read error: Connection reset by peer]
ru has quit [Quit: leaving]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
vxxr has quit [Quit: leaving]
nomenkun has joined #ruby
matheuscaceres has joined #ruby
skofo has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 245 seconds]
rjhunter has quit [Ping timeout: 272 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
drag00n has joined #ruby
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SoFLy has joined #ruby
stevenha_ has joined #ruby
stevenha_ has quit [Client Quit]
SoFLy has left #ruby [#ruby]
smathieu has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
lyanchih has joined #ruby
iliketur_ has joined #ruby
maletor has joined #ruby
smathieu has quit [Ping timeout: 264 seconds]
mjs2600 has quit [Remote host closed the connection]
burlyscudd has joined #ruby
lukec has quit [Quit: lukec]
sayan has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
fbernier has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
shevy has quit [Quit: ""]
fixl has joined #ruby
bradhe has quit [Remote host closed the connection]
Hanmac has joined #ruby
shevy has joined #ruby
Kricir has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
lyanchih has quit [Quit: lyanchih]
aspires has quit []
fgo has quit [Remote host closed the connection]
eeriegeek has quit [Read error: Connection reset by peer]
Davey has joined #ruby
livingood has quit [Remote host closed the connection]
eeriegeek has joined #ruby
pureluck has joined #ruby
<pureluck>
hey
<pureluck>
any idea how to reuse EventMachine::Connections ?
lyanchih has joined #ruby
yip has joined #ruby
bradhe has joined #ruby
<bnagy>
there used to be an eventmachine channel, not sure if it's still active
maletor has quit [Quit: Computer has gone to sleep.]
<bnagy>
EM stuff can be pretty weird and EM specific
Hanmac1 has joined #ruby
<pureluck>
tru dat
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pureluck>
i'll see if i can find those guys then
Hanmac has quit [Ping timeout: 252 seconds]
quarters has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
reset has joined #ruby
zxq9 has quit [Quit: Konversation terminated!]
IceDragon has quit [Quit: Space~~~]
nobitanobi has joined #ruby
nateberkopec has joined #ruby
reset has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
machi has joined #ruby
freakazoid0223 has quit [Remote host closed the connection]
rickruby has joined #ruby
<nobitanobi>
hihi
tommyvyo has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
rickruby has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 272 seconds]
rickruby has joined #ruby
machi has quit [Ping timeout: 245 seconds]
sweetvenom has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
fgo has joined #ruby
rickruby has quit [Ping timeout: 265 seconds]
rjhunter has joined #ruby
dwgill has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dwgill has joined #ruby
nomenkun has joined #ruby
Mars` has joined #ruby
jacobsmith has quit [Ping timeout: 265 seconds]
rjhunter has quit [Ping timeout: 265 seconds]
nari_ has joined #ruby
freakazoid0223 has joined #ruby
sweetvenom has quit []
Dreamer3 has joined #ruby
apeiros has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 272 seconds]
falood has joined #ruby
apeiros has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
mark_locklear has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
havenwood has joined #ruby
phinfone_ has quit [Quit: exitiing]
DonRichie has quit [Quit: Verlassend]
matheuscaceres has quit [Quit: matheuscaceres]
Hanmac has joined #ruby
amacgregor has joined #ruby
maletor has joined #ruby
jamesaanderson has joined #ruby
Patotaterer has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
adkron has joined #ruby
smathieu has joined #ruby
joshwines_ has quit [Ping timeout: 272 seconds]
estebistec has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
bean__ has joined #ruby
havenwood has joined #ruby
jacobsmith has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
smathieu has quit [Ping timeout: 246 seconds]
joshwines_ has joined #ruby
s2013_ has joined #ruby
s2013_ has left #ruby [#ruby]
rismoney has quit []
burlyscudd has joined #ruby
iliketur_ has joined #ruby
iliketur_ has quit [Max SendQ exceeded]
capicue has joined #ruby
iliketur_ has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
iliketur_ has quit [Max SendQ exceeded]
jeffdb has joined #ruby
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
burlyscudd has quit [Ping timeout: 265 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 246 seconds]
ace_striker has quit [Ping timeout: 250 seconds]
mojjojo has quit [Quit: mojjojo]
noyb has joined #ruby
pwh has quit []
sayan has joined #ruby
nobitanobi has quit [Remote host closed the connection]
thelorax123 has quit [Remote host closed the connection]
iliketur_ has joined #ruby
thelorax123 has joined #ruby
godzirra has joined #ruby
tommyvyo has quit [Read error: No route to host]
<godzirra>
Hi guys. Can anyone take a look at http://pastie.org/8504430 and tell me what I'm doing wrong? It keeps telling me "uninitialized constant FashionController::Collection", even though I've got a Collections.rb model that is "class Collections < ActiveRecord::Base"
tommyvyo has joined #ruby
rjhunter has joined #ruby
ner0x has quit [Quit: Leaving]
clint_s has joined #ruby
ewnd9 has joined #ruby
joshwines_ has quit [Ping timeout: 248 seconds]
reset has joined #ruby
<shevy>
usually when you have such an error, you did not require a file
brian___ has quit [Quit: brian___]
<shevy>
the best way to trace back such errors is to find out where FashionController is defined
Spami has quit [Quit: This computer has gone to sleep]
maletor has quit [Quit: Computer has gone to sleep.]
styped has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
R33C3 has quit [Remote host closed the connection]
machi has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Ping timeout: 246 seconds]
<godzirra>
shevy: This is inside FashionController.rb
<godzirra>
shevy: I didn't realize I needed to require my model files?
<shevy>
no idea, this seems like a rails question
<shevy>
if you ask a ruby question, sure - you must have required the .rb file in question before you can make use of its content
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
nomenkun has joined #ruby
<godzirra>
It is a rails question. Is that not allowed in #ruby?
freerobby has joined #ruby
<shevy>
you could ask it but you guys have your own channel, with lots of friendly experts who know rails very well
stevenha_ has joined #ruby
<godzirra>
Oh. Okay. Sorry 'bout that, and thanks for the info!
Hanmac has quit [Ping timeout: 272 seconds]
<DanBoy>
#rubyonrails bro
<shevy>
it's a framework requiring very specific knowledge, many people here do not use rails and could not answer specific questions about rails. if the question is about ruby though then people will try to help. in this example it is clear that some file does not require FashionController.rb properly, otherwise the namespace you use there would be known
<shevy>
btw class Foo < Bar alone is never enough in pure ruby
wald0 has quit [Quit: Lost terminal]
<shevy>
unless you defined it in the same file
<shevy>
if Bar resides in another file, you would have had to require it first... usually require 'bar.rb'
Hanmac has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
CaptainJet has quit []
petey has joined #ruby
thelorax123 has quit [Remote host closed the connection]
<godzirra>
Makes sense.
sergicles has quit [Quit: sergicles]
thelorax123 has joined #ruby
petey_ has quit [Ping timeout: 272 seconds]
estebistec has quit [Remote host closed the connection]
petey has quit [Ping timeout: 272 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
<jacobsmith>
Anybody know of any good ways to figure out Rspec errors? like a gem to view where problems actually are? (I think it's just block scope errors, it's just hard to see easily)
<Lewix>
jacobsmith: gist
sergicles has joined #ruby
smathieu has joined #ruby
macmarti_ has joined #ruby
sergicles has quit [Client Quit]
agent_white has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
Drewch has joined #ruby
macmartine has quit [Ping timeout: 272 seconds]
<jacobsmith>
Lewix: anything to catch scope errors?
smathieu has quit [Ping timeout: 248 seconds]
kobain_ has joined #ruby
kobain has quit [Ping timeout: 265 seconds]
harrymoreno has quit [Quit: harrymoreno]
pierre1 has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ewnd9 has joined #ruby
Hanmac has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xp_prg has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
Davey has joined #ruby
jeffdb has quit [Quit: jeffdb]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
bradhe has quit [Remote host closed the connection]
lmickh has quit [Quit: lmickh]
bradhe has joined #ruby
kobain_ has quit [Ping timeout: 248 seconds]
nisstyre has joined #ruby
<DanBoy>
jacobsmith, paste what you got on gist
amacgregor_ has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
R33C3 has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 246 seconds]
ace_striker has joined #ruby
tharindu has joined #ruby
superscott[8] has joined #ruby
hamakn has joined #ruby
macmarti_ has quit [Remote host closed the connection]
evenix has joined #ruby
R33C3 has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
R33C3 has joined #ruby
Kricir has quit [Remote host closed the connection]
iliketur_ has joined #ruby
divi has joined #ruby
iliketur_ has quit [Max SendQ exceeded]
reset has joined #ruby
hamakn has quit [Ping timeout: 246 seconds]
iliketur_ has joined #ruby
orionstein_away is now known as orionstein
nateberkopec has joined #ruby
Patotaterer has quit [Quit: Lost terminal]
Nilium has quit [Ping timeout: 246 seconds]
evenix has quit [Remote host closed the connection]
divi has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
reset has quit [Ping timeout: 272 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
jbrechtel has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 246 seconds]
sam113101 has joined #ruby
mary5030 has quit [Remote host closed the connection]
petey has joined #ruby
mary5030 has joined #ruby
vlad_starkov has joined #ruby
styped has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saltnvinegar has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DropsOfSerenity has joined #ruby
weeems has joined #ruby
rippa has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
weems has quit [Ping timeout: 246 seconds]
mary5030 has quit [Ping timeout: 272 seconds]
reset has joined #ruby
nateberkopec has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
nomenkun has joined #ruby
reset has quit [Ping timeout: 252 seconds]
Ox6abe_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
Ox6abe__ has joined #ruby
iliketur_ has quit [Ping timeout: 245 seconds]
nomenkun has quit [Ping timeout: 245 seconds]
Ox6abe has quit [Ping timeout: 272 seconds]
saltnvinegar has quit [Quit: saltnvinegar]
Ox6abe_ has quit [Ping timeout: 245 seconds]
Alina-malina has quit [Quit: Leaving]
Lewix has joined #ruby
machi has joined #ruby
Ox6abe__ has quit [Ping timeout: 264 seconds]
vlad_sta_ has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
echevemaster has quit [Remote host closed the connection]
nomenkun has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
machi has quit [Ping timeout: 248 seconds]
iliketur_ has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
nomenkun has quit [Ping timeout: 248 seconds]
jbrechtel has joined #ruby
dwgill has quit [Ping timeout: 252 seconds]
razieliyo has quit [Read error: Operation timed out]
jbrechtel has quit [Ping timeout: 248 seconds]
bradhe has quit [Remote host closed the connection]
Alina-malina has joined #ruby
phansch has joined #ruby
weeems has quit [Read error: Connection reset by peer]
weeems has joined #ruby
smathieu has joined #ruby
nebula has joined #ruby
xue has quit [Ping timeout: 248 seconds]
Alina-malina has quit [Quit: Leaving]
smathieu has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
xk_id has quit [Quit:
larissa has quit [Quit: Leaving]
browndawg has joined #ruby
fgo has quit []
banghouse2 has quit [Remote host closed the connection]
tharindu has joined #ruby
Hanmac has joined #ruby
weeems is now known as weems
weems has quit [Changing host]
weems has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
weems has quit [Quit: #python-unregistered]
weems has joined #ruby
lukec has joined #ruby
bluOxigen has joined #ruby
jacobsmith has quit [Quit: leaving]
tharindu has quit [Ping timeout: 245 seconds]
falood has joined #ruby
Lewix has quit [Remote host closed the connection]
<browndawg>
yo, need some quick rails on heroku help, #rubyonrails is silent
tharindu has joined #ruby
<browndawg>
I usually gitignore config/database.yml to avoid confilcts with other people's local postgres config. The rails 4 doc for heroku says it needs a database.yml. How do you handle that?
fridim_ has quit [Read error: Operation timed out]
nateberkopec has joined #ruby
reset has joined #ruby
petey has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 245 seconds]
petey has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
Tearan has joined #ruby
Tearan has quit [Client Quit]
nateberkopec has quit [Ping timeout: 240 seconds]
Tearan has joined #ruby
reset has quit [Ping timeout: 252 seconds]
Tearan has quit [Client Quit]
iliketur_ has quit [Quit: zzzzz…..]
petey has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
Ox6abe has joined #ruby
xk_id has joined #ruby
sjuxax has joined #ruby
iliketur_ has joined #ruby
charliesome has joined #ruby
<sjuxax>
Hey all. I'm trying to take a Date object that only knows the date, and convert it into a time object that understands the time too. I need to do things this way because I start out knowing only the date, and need to find available times. I want to create an object that will take the date from the Date object and interpret something like "7:30 PM" to 19:30:00. Suggestions for best way to do this?
<sjuxax>
I could run it all through Time.strptime and use string interpolation to insert the Date's values
Tearan has joined #ruby
<sjuxax>
but I want to avoid that if possible
Tearan has quit [Client Quit]
<pontiki>
Date.parse(string).to_time ?
machi has joined #ruby
<pontiki>
or, time_obj = date_obj.to_time ?
<pontiki>
depends on what your starting from, i guess
<pontiki>
there's also .to_datetime
aspires has quit []
nomenkun has joined #ruby
<sjuxax>
I'm starting from a date object that represents just a whole day. I want to convert it to a Time object that represents both date and time, after interpreting "7:30 PM" to mean a time, and adding that to the date
freerobby has quit [Quit: Leaving.]
<sjuxax>
I think string interpolation will be the most concise way. Thanks for your input.
<pontiki>
nw
tkuchiki has joined #ruby
<pontiki>
also, btw, take a look at Chronic
machi has quit [Ping timeout: 248 seconds]
zz_tsykoduk is now known as tsykoduk
Monie has joined #ruby
petey has joined #ruby
Monie has quit [Client Quit]
Davey has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
jbrechtel has joined #ruby
Davey has joined #ruby
Davey has quit [Client Quit]
mr`spock has joined #ruby
jbrechtel has quit [Read error: No route to host]
jbrechtel has joined #ruby
<sjuxax>
Thanks pontiki, ended up using Chronic.
jbrechtel has quit [Ping timeout: 245 seconds]
smathieu has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
iliketur_ has joined #ruby
Tearan has joined #ruby
drag00n has quit [Ping timeout: 264 seconds]
Tearan has quit [Client Quit]
Tearan has joined #ruby
Tearan has quit [Client Quit]
Tearan has joined #ruby
Tearan has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
zz_tsykoduk is now known as tsykoduk
Tearan has joined #ruby
Tearan has quit [Client Quit]
sayan has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
diegoviola has quit [Read error: Operation timed out]
smathieu has quit [Ping timeout: 272 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
tharindu has joined #ruby
Ox6abe has quit [Ping timeout: 265 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
zerign has joined #ruby
noyb has quit [Ping timeout: 272 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
freerobby has joined #ruby
falood has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
coca_rails has joined #ruby
devitto has quit [Remote host closed the connection]
nebula has quit [Quit: Konversation terminated!]
nebula has joined #ruby
drumusician has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
mammenga has joined #ruby
lukec has quit [Quit: lukec]
Tearan has joined #ruby
Tearan has quit [Client Quit]
falood has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
Davey has joined #ruby
deanrock has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
gr33n7007h has joined #ruby
mammenga has quit [Remote host closed the connection]
lenters has joined #ruby
nateberkopec has joined #ruby
Ox6abe has joined #ruby
reset has joined #ruby
deanrock has joined #ruby
charliesome has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
Apane has quit [Ping timeout: 248 seconds]
nateberkopec has quit [Ping timeout: 248 seconds]
Ox6abe has quit [Ping timeout: 272 seconds]
bradhe has quit [Remote host closed the connection]
reset has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
freerobby has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
Lewix has joined #ruby
rjhunter has joined #ruby
freerobby1 has quit [Ping timeout: 246 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
Tearan has joined #ruby
Tearan has quit [Client Quit]
jbrechtel has joined #ruby
jbrechtel has quit [Ping timeout: 245 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
banghouse2 has joined #ruby
smathieu has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
anderson has joined #ruby
rjhunter has quit [Remote host closed the connection]
banghouse2 has quit [Ping timeout: 246 seconds]
smathieu has quit [Ping timeout: 272 seconds]
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
nebula_ has joined #ruby
nebula has quit [Ping timeout: 246 seconds]
carraroj has joined #ruby
claymore has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
capicue has quit [Quit: Leaving...]
jeffdb has joined #ruby
skaflem has joined #ruby
nomenkun has joined #ruby
phansch has quit [Remote host closed the connection]
phansch has joined #ruby
phansch has quit [Remote host closed the connection]
phansch has joined #ruby
petey has quit [Ping timeout: 272 seconds]
ehaliewicz has quit [Ping timeout: 265 seconds]
tharindu has quit [Quit: Leaving...]
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
saltnvinegar has joined #ruby
xk_id has quit [Quit:
coca_rails has quit [Remote host closed the connection]
nateberkopec has joined #ruby
Ox6abe has joined #ruby
reset has joined #ruby
relix has joined #ruby
nateberkopec has quit [Ping timeout: 245 seconds]
carraroj has quit [Ping timeout: 248 seconds]
reset has quit [Ping timeout: 264 seconds]
coca_rails has joined #ruby
Tuxist has joined #ruby
freerobby has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
capicue has joined #ruby
zerign_ has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
zerign has quit [Ping timeout: 246 seconds]
falood has quit [Remote host closed the connection]
saltnvinegar has quit [Quit: saltnvinegar]
Gonzih has quit [Ping timeout: 272 seconds]
jbrechtel has joined #ruby
sparrovv has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
jbrechtel has quit [Ping timeout: 246 seconds]
smathieu has joined #ruby
axilla has joined #ruby
Ox6abe has quit [Ping timeout: 265 seconds]
Gonzih has joined #ruby
smathieu has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 272 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
VTLob has joined #ruby
jeffdb has quit [Quit: jeffdb]
reset has joined #ruby
rjhunter has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
zerign_ is now known as zerign
Spami has joined #ruby
zipper has joined #ruby
mjs2600 has joined #ruby
drumusician has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
nomenkun has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
mjs2600 has joined #ruby
zipper has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
zipper has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
orionstein_away is now known as orionstein
vlad_starkov has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
zipper has quit [Read error: Connection reset by peer]
anderson has quit [Quit: Leaving]
zipper has joined #ruby
nateberkopec has quit [Ping timeout: 246 seconds]
yacks has quit [Remote host closed the connection]
avril14th has joined #ruby
drumusician has quit [Ping timeout: 252 seconds]
matematikaadit has joined #ruby
MrZYX|off is now known as MrZYX
coca_rails has joined #ruby
zipper has quit [Ping timeout: 240 seconds]
orionstein is now known as orionstein_away
zipper has joined #ruby
freerobby has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
nebula_ has quit [Ping timeout: 246 seconds]
nfk has joined #ruby
yfeldblum has joined #ruby
Hanmac has joined #ruby
zkc has joined #ruby
anderson has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 245 seconds]
eka has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
amacgregor_ has quit [Ping timeout: 245 seconds]
zipper has quit [Ping timeout: 265 seconds]
zipper has joined #ruby
jbrechtel has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
mjs2600 has quit [Remote host closed the connection]
Ox6abe has joined #ruby
Hanmac1 has joined #ruby
jbrechtel has quit [Ping timeout: 264 seconds]
jkhwan has joined #ruby
banghouse2 has joined #ruby
smathieu has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
Hanmac1 is now known as Hanmac
Ox6abe has quit [Ping timeout: 265 seconds]
ph8 has quit [Ping timeout: 245 seconds]
banghouse2 has quit [Ping timeout: 272 seconds]
mj12albe_ has joined #ruby
mj12albe_ has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
smathieu has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
coca_rails has quit [Ping timeout: 245 seconds]
ph8 has joined #ruby
yfeldblum has joined #ruby
reset has quit [Quit: Leaving...]
coca_rails has joined #ruby
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #ruby
zerign has quit [Ping timeout: 272 seconds]
ded has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
prahal has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
Tearan has joined #ruby
ded has quit [Quit: Gone]
Tearan has quit [Client Quit]
yfeldblum has quit [Ping timeout: 265 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
pen has joined #ruby
pen has quit [Read error: No route to host]
Tearan has joined #ruby
Tearan has quit [Client Quit]
nateberkopec has joined #ruby
perlsyntax has joined #ruby
pen has joined #ruby
perlsyntax has quit [Client Quit]
ziprar has joined #ruby
zoee has joined #ruby
nateberkopec has quit [Ping timeout: 245 seconds]
DonRichie has joined #ruby
zipace has quit [Ping timeout: 264 seconds]
ziprar is now known as zipace
jbpros has joined #ruby
liamkeily has joined #ruby
mojjojo has joined #ruby
freerobby has joined #ruby
moli has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
moli is now known as Guest14072
kiri has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
ravster has joined #ruby
kiri has joined #ruby
hamakn has joined #ruby
reset has joined #ruby
jragon has joined #ruby
freerobby1 has quit [Ping timeout: 265 seconds]
hamakn has quit [Remote host closed the connection]
_reset has joined #ruby
reset has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
matematikaadit has quit [Ping timeout: 272 seconds]
Simone_ has joined #ruby
Simone_ has quit [Client Quit]
vlad_starkov has joined #ruby
jacobw has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
sergicles has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
_reset has quit [Read error: Connection reset by peer]
reset has joined #ruby
timonv has joined #ruby
falood has joined #ruby
mikecmpbll has joined #ruby
nebula_ has joined #ruby
jbrechtel has joined #ruby
hamakn has joined #ruby
reset has quit [Ping timeout: 272 seconds]
Ox6abe has joined #ruby
jbrechtel has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
zipper has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
zipper is now known as Guest7582
jibi has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
liamkeily has quit [Ping timeout: 264 seconds]
nebula_ has quit [Quit: Konversation terminated!]
nebula_ has joined #ruby
Linux_Extremist has joined #ruby
liamkeily has joined #ruby
skofo has joined #ruby
Lewix has quit [Remote host closed the connection]
<shevy>
hmmm
<shevy>
any idea how to manage a large project in ruby?
coca_rails has joined #ruby
bergelmir has joined #ruby
reset has joined #ruby
<bergelmir>
i want to install a gem with a specific version but another gem requires another version of the gem, how to find out what gem requires another version?
yfeldblum has joined #ruby
Czupa has joined #ruby
mjs2600 has joined #ruby
reset has quit [Ping timeout: 248 seconds]
Czupa has quit [Client Quit]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
jbpros has quit [Quit: jbpros]
Clooth has joined #ruby
bergelmir has quit [Quit: leaving]
charliesome has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
acoyfellow has joined #ruby
jragon has quit [Changing host]
jragon has joined #ruby
nateberkopec has joined #ruby
<jrobeson>
shevy, what do you mean? are you finding it harder than some other language?
<shevy>
jrobeson dunno, I dont really use any other language other than ruby much at all
<jrobeson>
so what specifically do you want to know about in managing it?
<jrobeson>
it's a pretty broad question
jrhe has joined #ruby
<shevy>
ok, how do you manage a large project in ruby jrobeson?
jrhe has quit [Client Quit]
jrhe has joined #ruby
<jrobeson>
well depends on the defintion of large, but i'm guessing that my projects have not been in fact very large :)
<jrobeson>
but manage how still?
<jrobeson>
infrastructure? code? with team members? without?
<jrobeson>
looking at spree or rails might give you an idea
<jrobeson>
or perhaps refinery cms
<shevy>
jrobeson let's say projects starting at about +20 files
<shevy>
(large)
<jrobeson>
that's not large :)
jhaals has joined #ruby
<jrobeson>
even a basic rails app would be that large out of the box
nateberkopec has quit [Ping timeout: 248 seconds]
jhaals has quit [Client Quit]
Beoran__ has joined #ruby
<jrobeson>
well i use travis for ci.. write tests , try to keep my code decoupled.
amacgregor has joined #ruby
<jrobeson>
i don't have any fancy git commit hooks since it's just me
Ox6abe has quit [Ping timeout: 272 seconds]
<jrobeson>
if i was in a team.. i might have stuff to disallow commits that fail project wide coding standards
<jrobeson>
i'd probably be more likely to use something like reek/roodi (if that's still modern) to keep up with code quality
<jrobeson>
or just codeclimate these days maybe
<apeiros>
shevy: what aspect of your project needs management?
orioca was kicked from #ruby by apeiros [using #ruby as pick-up place for spam is not acceptable]
orioca has joined #ruby
<shevy>
apeiros I have like an old project with, I don't know, 50 old files or something like that. I am slowly trying to port it to a new infrastructure and it feels cumbersome somehow
amacgregor has quit [Client Quit]
orioca was kicked from #ruby by apeiros [using #ruby as pick-up place for spam is not acceptable]
Beoran_ has quit [Ping timeout: 264 seconds]
liamkeily has quit [Ping timeout: 264 seconds]
<shevy>
jrobeson what editor do you use?
<jrobeson>
vim
mjs2600 has quit [Remote host closed the connection]
realDAB has joined #ruby
<avril14th>
shevy: opinion from my experience is that managing ruby projects is indeed very tricky. The key to that is tests.
<jrobeson>
avril14th, tricker than what?
liamkeily has joined #ruby
<avril14th>
I have about a ~100 files project here
<avril14th>
tricker than say C#
p4d4w4n has joined #ruby
<avril14th>
but that applies to all script project I think
nateberkopec has joined #ruby
freerobby has joined #ruby
<avril14th>
this is a wide debate though. It's just my experience
<jrobeson>
because ruby is so flexible? or what?
hrzhu has joined #ruby
<avril14th>
yes
<jrobeson>
or just better tooling?
<avril14th>
just gem dependencies management is tricky
mojjojo has quit [Quit: mojjojo]
<jrobeson>
if you were using visual studio.. seems like it would make a lot of things super easy out of the box
<apeiros>
IMO organizing well gets you a long way already
<avril14th>
my gemfile is like 80 lines
realDAB has quit [Client Quit]
amacgregor has joined #ruby
<avril14th>
just this morning my project won't run cause one of them changed something in their code
<jrobeson>
well.. that's what tests are for.. (you hope)
<avril14th>
yep, just as I wrote: tests are your friends
<jrobeson>
soo many tests..
<avril14th>
I have a factor of like x4-5 lines on tests
<avril14th>
1line of code is about 4-5 lines of test
<avril14th>
or things get whack in no time
<avril14th>
:p
charliesome has joined #ruby
<jrobeson>
that is a lot of test code.
<jrobeson>
hopefully you have some shared example to cut that down a bit
cads has quit [Ping timeout: 248 seconds]
mjs2600 has joined #ruby
<avril14th>
well it's already cut a lot. I use a lot of loops over there
mjs2600 has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 248 seconds]
<avril14th>
my tests are much trickier to read than my code
<avril14th>
in the end
nateberkopec has quit [Ping timeout: 272 seconds]
<avril14th>
that's the whole point with scripting languages, specially ruby. You can do so much with so little code that you end up writing tricky uses more than writing code
<jrobeson>
so are you sure you're not over testing?
<avril14th>
no I KNOW I'm undertesting
<jrobeson>
such paranoia is why i think i'm a java lover who's never used java
<avril14th>
I hate tests
<avril14th>
just
Clooth has quit [Quit: Leaving...]
<avril14th>
if you know 100% how things will be used you don't need that much
<avril14th>
as soon as you have an API
<shevy>
with tests I have even more files to manage!
<avril14th>
or code that is triggered from your own code
<avril14th>
then starts the mess
<avril14th>
code triggered from your own code is like: run this in 10 days
<avril14th>
shevy: true. but just for your organization, use rubymine
coca_rails has quit [Ping timeout: 245 seconds]
sparrovv has quit [Quit: sparrovv]
<avril14th>
the whole "start ruby and have websites in minutes" thing is true for simple stuffs
pushpak has joined #ruby
<jrobeson>
of course
<avril14th>
it's really not for ruby backends with random API
sparrovv has joined #ruby
Guest7582 has quit [Ping timeout: 272 seconds]
<jrobeson>
have you seen a ruby project that you think is tested well enough ?
zipper has joined #ruby
<avril14th>
some people are doing it right yes
<jrobeson>
like who?
<jrobeson>
perhaps shevy would like to see such an example
<avril14th>
for instance mongoid is, even buggy, on the proper path
<avril14th>
mongoid is ~9000 tests
<shevy>
jrobeson how do you manage like 100 .rb files in vim?
<jrobeson>
shevy, well i'm rarely touching them all at one time
<jrobeson>
usually i only have like 5 at max that i'm dealing with
<avril14th>
sidekiq is I trust also well tested
<shevy>
avril14th a lot of mess I have in old .rb files
<jrobeson>
things are pretty well in their own unit as much as possible
<jrobeson>
so i don't have to touch a whole bunch of files across the code base except for copyright changes and whatnot
<shevy>
my newer code tends to be a lot simpler, shorter and more easily structured... but I dont want to just throw away things that were useful years ago :(
<jrobeson>
well don't.. slowly refactor it
noop has joined #ruby
psyl0n has joined #ruby
<jrobeson>
ruby is so flexibe that you could start designing the way you want it to work .. and then just delegate it out to the right place while you fix t up
<avril14th>
shevy: you can draft tests with a lot of pendings. So you write all the pending tests real quick and then you're free to do whatever you want and ad real test code step by step
rakun has joined #ruby
<shevy>
avril14th what do you use for tests in ruby?
<avril14th>
rspec
<jrobeson>
rspec here too
<shevy>
jrobeson yeah but a lot of flexibility means a lot of decision making too, I struggle with that sometimes, a lot of decision branching that one can make
<jrobeson>
shevy, the life of a programmer!
<shevy>
like, how many different ways you could make to write a (text) MUD in ruby, or a game (with gosu)
<gr33n7007h>
Is "A".unpack("*C") same as "A".ord ?
<xaores>
need a reliable way to execute ruby script with nginx
<xaores>
as for now Im using nginx+mini_httpd+ruby via cgi
<xaores>
any better alternatives?
gyre007 has joined #ruby
<apeiros>
xaores: the most common way with nginx is probably through passenger + rack
<xaores>
is passenger really reliable?
<xaores>
I guess its writing on ruby
<apeiros>
yes
<xaores>
daemons on ruby its quite suspicious
<apeiros>
are you a troll?
<xaores>
no)
<apeiros>
or just cluelessly talking?
<xaores>
but I have expirience with daemons on python
<apeiros>
and python daemons are unreliable, or what?
<xaores>
uptime about 1 mounth is the maximum I get from it
raphaelivan has joined #ruby
<apeiros>
it's the same with ruby daemons as with daemons in almost any other programming language - if you write shit code, it won't work well.
<xaores>
i mean daemons on interptetated languages its not too stable thing
<apeiros>
I'm not a python user, but I have troubles imagining that this is the fault of python…
<xaores>
ok
<apeiros>
yeah, ok. clueless.
<apeiros>
interpreted or not has nothing to do with stability.
<xaores>
lets say i cant write stable enough code at this time)
<xaores>
so im ok with scheme very stable C daemon + my sctipts running by this daemon and dying after execution
<xaores>
php-like model
<xaores>
Im qiute happy with it
<apeiros>
so your question really is "how can I run my unreliable code reliably"?
<apeiros>
stick with CGI I'd say.
<xaores>
mey be)
<xaores>
ok
<apeiros>
it's a sucky solution, but if you don't trust your scripts…
<xaores>
you mean passenger not so good variant for this?
mojjojo has quit [Quit: mojjojo]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
smathieu has joined #ruby
Apane has joined #ruby
<apeiros>
passenger works great for us. but we don't write unreliable code. you could investigate its configuration, whether it allows for frequent restarts. I know it will restart a hung up process.
mojjojo has joined #ruby
<apeiros>
f.ex. we have medium sized rails app running without intervention for 3 months now (been busy with a high priority project - otherwise they usually get about one update per week)
joshwines_ has quit [Ping timeout: 252 seconds]
<apeiros>
(medium sized: something between 10k and 100k of code)
<apeiros>
not counting 3rd party code like rails itself or gems
lyanchih has joined #ruby
noop has quit [Ping timeout: 245 seconds]
noop has joined #ruby
smathieu has quit [Ping timeout: 246 seconds]
SHyx0rmZ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
intuxicated has quit [Read error: No route to host]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
joshwines_ has joined #ruby
Clooth has joined #ruby
phansch has quit [Quit: Leaving]
mjs2600 has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 272 seconds]
lenters has quit [Remote host closed the connection]
Hanmac has joined #ruby
reset has joined #ruby
gtsiftsis has joined #ruby
joshwines_ has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
prukop has joined #ruby
Czupa has joined #ruby
<avril14th>
c u guys
avril14th has quit [Quit: Tennis time]
anderson has quit [Read error: Connection reset by peer]
realDAB has joined #ruby
Hanmac1 has joined #ruby
anderson has joined #ruby
timonv has quit [Remote host closed the connection]
reset has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
zkc has quit [Read error: Connection reset by peer]
zkc has joined #ruby
ambushsabre has joined #ruby
joshwines_ has joined #ruby
Clooth has quit [Quit: Leaving...]
machi has joined #ruby
osvico has joined #ruby
matheuscaceres has joined #ruby
skofo has joined #ruby
nateberkopec has joined #ruby
machi has quit [Ping timeout: 245 seconds]
allsystemsarego has joined #ruby
Ox6abe has joined #ruby
mojjojo has quit [Quit: mojjojo]
sputnik13 has joined #ruby
realDAB has quit [Quit: realDAB]
mojjojo has joined #ruby
nateberkopec has quit [Ping timeout: 248 seconds]
Hanmac has joined #ruby
shterrett has quit [Quit: shterrett]
kirun has joined #ruby
banister has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
Hanmac1 has joined #ruby
jbpros has joined #ruby
pskosinski has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 252 seconds]
Hoozt has joined #ruby
Gooder has quit [Ping timeout: 246 seconds]
<Hoozt>
Hello everyone
Hanmac1 is now known as Hanmac
mjs2600 has joined #ruby
<Hoozt>
I have an issue on my debian server, I wonder if anyone knows how to solve it.
<Hoozt>
After a shitload of time spent trying to deploy a rails app with Passenger and Apache, I finally gave up and I'm now trying to install Unicorn instead.
<Hoozt>
First problem: Can't install the gem
freerobby has quit [Ping timeout: 245 seconds]
<Hoozt>
getting "Error: Failed to build gem native extension."
mojjojo has quit [Quit: mojjojo]
<Hoozt>
running ruby 2.0.0p247
sparrovv has joined #ruby
<jkbbwr>
Hoozt: do you have ruby-dev installed?
<apeiros>
"Error: Failed to build gem native extension" usually means you're missing a native library. the message tells you which.
SeySayux has quit [Ping timeout: 246 seconds]
<Hoozt>
hmm
capicue has quit [Ping timeout: 252 seconds]
coca_rails has joined #ruby
<apeiros>
oh, yes, and on debian indeed ruby-dev as jkbbwr (since debian thinks it knows better what a complete ruby installation is…)
<Hoozt>
I don't think I have dev installed. I removed the default ruby and then installed 2.0 with rbenv
<Hoozt>
So which dev should I install? I can't seem to get that information from the message.
threesome has joined #ruby
<apeiros>
anyway - incomplete message = riddling. paste the full on a pastebin.
mojjojo has joined #ruby
<Hoozt>
ok one sec
SeySayux has joined #ruby
DrShoggoth has joined #ruby
<Hoozt>
You mean the terminal message, right? Not the log files?
americus has quit [Read error: Operation timed out]
<pskosinski>
on root? :<
<Hoozt>
on root, yes
<Hoozt>
but permission denied
<Hoozt>
Very strange. Actually, I can' run sudo commands either :s
rakun_ has quit [Quit: Saliendo]
<DanBoy>
try sudo -s
matheuscaceres has quit [Quit: matheuscaceres]
<Hoozt>
command does not exist
<apeiros>
?
<apeiros>
you can't read the file?
<DanBoy>
literally sudo doesn't exist?
Ox6abe has quit [Ping timeout: 240 seconds]
<Hoozt>
Well my output is in swedish here, but yes, it says it can't recognize the command
<Hoozt>
sudo: command does not exist
timonv has joined #ruby
<Hoozt>
so sudo exist I guess
<Hoozt>
But I can't seem to give it any command
<Hoozt>
not even a gem install
<DanBoy>
wait
<DanBoy>
why do you need sudo anyway
blueOxigen has quit [Ping timeout: 248 seconds]
<DanBoy>
using rvm/rbenv you can set it up as a user
<apeiros>
you seem to have problems beyond ruby
<Hoozt>
I don't know. I just need to install unicorn, that's all. But it can't build native extension or something.
<DanBoy>
dude sudo is default
<DanBoy>
type this
<DanBoy>
which sudo
<DanBoy>
and paste it back
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Hoozt>
no result what so ever
<DanBoy>
apt-cache search sudo
osvico has joined #ruby
nebula has quit [Quit: Konversation terminated!]
nebula_ has joined #ruby
<Hoozt>
sudo - Provide limited super user privileges to specific users
<shevy>
sudo - for boys without courage
nebula_ has quit [Client Quit]
<shevy>
and the use of debian
<pskosinski>
What user are you logged in… if root then you don't need sudo. And sudo is not installed by default in Debian. And you should not run web server on root anyway…
<Hoozt>
Trying to deploy a rails application has seriously hurt my self confidence.
nebula_ has joined #ruby
<Hoozt>
Root
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
<apeiros>
pskosinski: um, you usually *have* to run webservers as root, since port 80 is privileged
<pskosinski>
:<
nebula__ has joined #ruby
<shevy>
\o/
<DanBoy>
yes
<DanBoy>
you don't want to install it as root first off
<DanBoy>
second off if you want to just use su
<DanBoy>
if you don't have 'su' something is wrong
<apeiros>
so su me
binaryplease has joined #ruby
<ravster>
hey all, I'm trying to read excel files, and am getting outofmemory errors when using the "spreadsheet" gem. is anyone familiar with working alternatives?
jbpros has quit [Quit: jbpros]
nebula_ has quit [Ping timeout: 272 seconds]
<Hoozt>
... I understand your concern, and I do have problems beyond Ruby here, but I just really need to get an application running with unicorn. So that dev installation someone mentioned. Which version should I install, the most recent?
banghouse2 has joined #ruby
jhaals has joined #ruby
<pskosinski>
can't you paste what apeiros was asking for? /root/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kgio-2.8.1/ext/kgio/gem_make.out
<DanBoy>
you could just apt-get apache and be done here
smathieu has joined #ruby
<shevy>
Hoozt the problem is that you use debian, which changes defaults. they should tell you how to uncripple stuff precisely in order to get the -dev component of a package
<pskosinski>
Hoozt: So you aren't on root… su[Enter]enter password[Enter] and then open file
banghouse2 has quit [Ping timeout: 246 seconds]
<pskosinski>
Can someone get permission denied while being root :<
<Hoozt>
when I enter su[enter] there's no asking for password. It just doesn't give a shit. New line. Boom. Nothing.
<DanBoy>
...
<Hoozt>
I don't know what the hell is going on.
<DanBoy>
ok
<DanBoy>
show us the gist of that
<Hoozt>
Im root, but have no permission.
<Hoozt>
the gist of what? New line?
<DanBoy>
show us the gist of that su failing
<DanBoy>
yep
<Hoozt>
There's nothing to fucking gist.
<DanBoy>
also a which su
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DanBoy>
i dunno i find it hard to believe 'su' is just giving you a new line sorry
<Hoozt>
"/bin/su"
<DanBoy>
if you're already root and your running it
<DanBoy>
then yes
<shevy>
Hoozt if you are the superuser then the error should not be a permission denied
smathieu has quit [Ping timeout: 272 seconds]
xue has joined #ruby
<DanBoy>
ok run 'id'
<Hoozt>
Yea, that's the strange part.
<DanBoy>
if your already root and your running su it'll just keep spawning shells
<shevy>
DanBoy he already said he is the superuser
<gr33n7007h>
Hoozt, su -
<DanBoy>
so wtf you using so for lol
nebula has joined #ruby
<Hoozt>
nothing.
<gr33n7007h>
Hoozt, whoami
<Hoozt>
root
mojjojo has quit [Quit: mojjojo]
<shevy>
pskosinski it depends on the error handling. I know of gnu configure scripts telling you some error X happened, when in reality some other program caused a fault, which cascaded down
adkron has joined #ruby
nebula has quit [Client Quit]
<shevy>
Hoozt go to the directory of unicorn
<shevy>
where that gem build tries to build something, then do it manually
nebula_ has joined #ruby
<shevy>
if you are the superuser, it will tell you the specific error
enebo has joined #ruby
<Hoozt>
A couple of days ago, when I first start trying this impossibel mission of deploying a rails applicaiton on this Gos forgotten machine, I removed the default ruby installation. I don't know if that has anything to do with it, but that happend.
nebula has joined #ruby
lyanchih has quit [Quit: lyanchih]
<shevy>
it's not impossible at all
capicue has joined #ruby
<shevy>
but you use debian :>
<shevy>
AND rbenv on top of that!
xue has quit [Client Quit]
<DanBoy>
dude i use debian now lol
nebula__ has quit [Ping timeout: 272 seconds]
<DanBoy>
as a desktop
mikemac has quit [Remote host closed the connection]
<DanBoy>
apt-get apache and setup your vhosts
<shevy>
removing the default debian ruby is a good thing, I don't agree using rbenv or rvm though when you can just use the source
mikemac has joined #ruby
<Hoozt>
I did that. Apache is running fine already.
<shevy>
Hoozt but these are the decisions you have to make. you already decided for rbenv and against debian, so now you are in a middle-way
<Hoozt>
with virtual host.
<Hoozt>
Yep.
<pskosinski>
I used lighttpd with mod_proxy + rbenv + ruby 2.0 + thin on Debian Squeeze and had no problems :<
<DanBoy>
so whats the problem
nebula has quit [Client Quit]
TaxmanBD has joined #ruby
<shevy>
k so you must uncripple the part of debian that disallows you from compiling whatever unicorn needs to see compiled ("native extension" part)
<Hoozt>
Exacto mundo!
<shevy>
pskosinski you are on a higher level than Hoozt right now ;P
<DanBoy>
apt-get source unicorn
<shevy>
pskosinski though you have not included unicorn in your line there
nebula_ has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
reset has joined #ruby
lyanchih has joined #ruby
<shevy>
I just realized something with LPC language
mjs2600 has quit [Remote host closed the connection]
<shevy>
they tend to do write integer functions that return either 0 or 1, 1 indicating success
<shevy>
and I think, the function does not have to exist at runtime... so you could do
<shevy>
if (banana->is_yellow())
<shevy>
in ruby this would fail right? if the method is_yellow() does not exist
nari_ has quit [Ping timeout: 272 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
<shevy>
in ruby, one could only make use of method_missing to achieve the same, right?
reset has quit [Ping timeout: 272 seconds]
xue has joined #ruby
<Morrolan>
Sure. But what would you have an undefined function return?
<Morrolan>
(There's a few nice examples of method_missing being used, often to create DSLs à la RSpec.)
<shevy>
hmmm
<shevy>
have not thought about that yet
timonv_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
machi has joined #ruby
mojjojo has joined #ruby
Linux_Extremist has left #ruby ["Leaving"]
<shevy>
I remember from my past misuse of method_missing that it can be scary
<shevy>
I delegated from object to object until I no longer had an idea what was going on
coca_rails has joined #ruby
<Morrolan>
Heh.
Hanmac has quit [Ping timeout: 265 seconds]
Metal-01 has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
timonv_ has quit [Read error: Connection reset by peer]
nebula has joined #ruby
timonv has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xue has quit [Ping timeout: 248 seconds]
falood has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
timonv has joined #ruby
<shevy>
Morrolan RSpec has a good example for using method_missing?
Hanmac has joined #ruby
Metal-01 has left #ruby [#ruby]
vlad_starkov has joined #ruby
machi has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
<Morrolan>
Yea. Assume a class called 'shop', with an instance variable (some sort of collection) called 'items'. Now instead of writing `expect(shop.items.count).to eq 10` you can also write `expect(shop).to have(10).items`
marr has joined #ruby
zipper has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
<Morrolan>
Whatever object have(10) returns will use method_missing to check if the called method can be mapped to a function call on the tested object.
nebula has quit [Ping timeout: 246 seconds]
forcefsck has joined #ruby
nebula_ has joined #ruby
ValicekB has quit [Read error: Operation timed out]
<phansch>
I would love a wiki, though. as most of the blog posts and guides are not kept up-to-date except for the official ones.
larissa has joined #ruby
<phansch>
but it seems there's nothing out there
<defendguin>
i'm just getting back into ruby after over a year absence. I want to start a new little command line app that will do some web scraping. I have a decent version of rubymine how do i create a new project with it's own rvm
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gyre007 has quit [Remote host closed the connection]
<stevenha_>
defendguin: I don't even bother with new rvm's anymore. Bundler is good enough I just use one rvm across projects and let my Gemfile handle which gems I need then exec with `$ bundle exec <cmd>`
atmosx has joined #ruby
machi has quit [Ping timeout: 264 seconds]
<defendguin>
stevenha_: i'm trying to make things as complicated as possible so i won
<defendguin>
so i wont be able to understand whats is going on when i open this up a year later
gr33n7007h has quit [Ping timeout: 272 seconds]
preller has joined #ruby
freerobby has joined #ruby
halfie has joined #ruby
banister has joined #ruby
halfie has quit [Excess Flood]
halfie has joined #ruby
lukec has quit [Quit: lukec]
petey has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
dwgill has quit [Ping timeout: 252 seconds]
awpti_ has quit [Ping timeout: 248 seconds]
<defendguin>
i love programming in ruby but all this environment crap sucks
awpti_ has joined #ruby
kilophoton has joined #ruby
<Morrolan>
Well, if system ruby is good enough for you, then use system ruby. ;)
halfie has quit [Ping timeout: 272 seconds]
halfie has joined #ruby
<defendguin>
for some reason installing sqlite3 gem fails
awpti_ has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
banghouse2 has quit [Remote host closed the connection]
<stevenha_>
defendguin: I can't imagine living without it… But I compiled python side-by-side for years before I came to Ruby. Once rvm came out I was extremely relieved to let something else handle those headaches for me ;)
saltnvinegar has quit [Quit: saltnvinegar]
Soda has joined #ruby
tapo_er_mayur has joined #ruby
kilophoton has quit [Ping timeout: 252 seconds]
<mr`spock>
rvm is nice :)
<mr`spock>
I had to compile ruby 2 for prod environment though... wasn't TOO bad
halfie has quit [Ping timeout: 245 seconds]
reset has quit [Quit: Leaving...]
kiri has quit [Ping timeout: 246 seconds]
kiri has joined #ruby
halfie has joined #ruby
moneydouble has joined #ruby
Briareos1 has quit [Remote host closed the connection]
<defendguin>
depends on what you mean by nice
petey has joined #ruby
Jetchisel has joined #ruby
danshultz has joined #ruby
Tuxist has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
vt101 has joined #ruby
iliketur_ has joined #ruby
<vt101>
I am splitting a string, but want to accumulate an unknown number of elements; e.g., (foo, bar, baz) = line.split(/\s+/), where baz gets the remainder of the split elements. Is that possible if baz is defined as an array, or do I need to do this another way?
iamjarvo has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
gtsiftsis has quit [Quit: Leaving]
atmosx has quit [Quit: Lost in trance]
<Hanmac>
vt101 *
<Hanmac>
foo, bar, *baz = line.split(/\s+/)
<vt101>
(foo, bar, *baz)...okay, yeah, like method args
<vt101>
Great, thanks!!
skofo has quit [Ping timeout: 246 seconds]
quarters has joined #ruby
pixelgremlins has joined #ruby
phansch has quit [Quit: Leaving]
<defendguin>
does the yaml gem not exist anymore?
<Hanmac>
defendguin: why do you need the yaml gem?
<atmosx>
can I eliminate the first line that apperas on rspec output?
<atmosx>
it's annoying
<atmosx>
and my terminal real estate is precious
kaspergrubbe has joined #ruby
Mr_Wharfsnort has joined #ruby
<Hanmac>
smells like an bug in rspec ... good that i do not use it :P
smathieu has joined #ruby
<atmosx>
Hanmac: haha no it's not!
jbpros has joined #ruby
banghouse2 has joined #ruby
preller has quit [Ping timeout: 272 seconds]
mikeg has joined #ruby
preller has joined #ruby
<Hanmac>
atmosx: its possible to "reopen" the STDOUT and STDERR so that you can hide the first line ... but thats evil monkey sacreficing voodoo black/dark magic ;P
<atmosx>
exactly, there must be a better way
newbiehacker has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
iliketur_ has quit [Quit: zzzzz…..]
banister has quit [Ping timeout: 272 seconds]
kilophoton has joined #ruby
smathieu has quit [Ping timeout: 252 seconds]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<MrZYX>
4..-1
<Barrin6>
oh yea
<Barrin6>
thanks!
wrseward has joined #ruby
<Barrin6>
awesome
sparrovv has joined #ruby
shterrett has quit [Quit: shterrett]
aryaching has joined #ruby
banister has joined #ruby
<rjhunter>
Barrin6: if you prefer words over punctuation, this is also available: 'this is how you do it'.slice(4..-1)
<TaxmanBD>
hey guys, anyone here uses gedit?
shterrett has joined #ruby
swingha has joined #ruby
<rjhunter>
TaxmanBD: I only use gedit for *very* quick editing tasks (sometimes I'll use a machine where gedit is the default editor)
Mars` has joined #ruby
brian___ has joined #ruby
matchaw has quit [Read error: Operation timed out]
<TaxmanBD>
rjhunter, do you use plugins on it or really just text editing?
matchaw has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Barrin6>
thanks rjhunter
orionstein is now known as orionstein_away
smathieu has quit [Remote host closed the connection]
<rjhunter>
TaxmanBD: I didn't know it had a plugin system. I use gedit as much as I use nano, which is to say if it pops up on someone's machine I'll and the edit I need to make is small enough, I won't quit and use a different editor
smathieu has joined #ruby
<rjhunter>
what I'm trying to say is I'm probably going to be much help :-)
<TaxmanBD>
because I almost finished configuring it, I have all the plugins I need, but there's just this thing that's driving me nuts
newbiehacker has quit [Ping timeout: 246 seconds]
mklappstuhl has quit [Remote host closed the connection]
<TaxmanBD>
rjhunter, yeah I like gedit for the moment because it's light and enough for me with the plugins, It's just one thing missing, a hotkey to switch between embedded terminal and the text editor. It's driving me nuts I've been searching for hours.
smathieu_ has joined #ruby
smathieu_ has quit [Read error: Connection reset by peer]
smathieu_ has joined #ruby
<rjhunter>
TaxmanBD: I would imagine that someone who knew gedit well add a hotkey pretty easily. Maybe without a plugin? Just configuration?
smathieu has quit [Read error: Connection reset by peer]
<TaxmanBD>
That's what I've been telling myself for the last hour searching :))
preller has quit [Ping timeout: 246 seconds]
halfie has quit [Ping timeout: 245 seconds]
petey has joined #ruby
Naoe-Kanno has joined #ruby
Linux_Extremist has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mars` has quit [Remote host closed the connection]
<rjhunter>
since there doesn't seem to be anyone in the #gedit channel (at least at this time of day), it might be worth finding the gedit mailing list and posting there
<mzdravkov>
is there anyone who have used the google-api-client library?
SHyx0rmZ has quit [Ping timeout: 265 seconds]
<rjhunter>
mzdravkov: i hadn't heard of it before but it looks like it might be useful in the near future, so thanks :-)
coderhs has quit [Quit: Leaving]
mojjojo has quit [Quit: mojjojo]
sambao21 has quit [Quit: Computer has gone to sleep.]
mojjojo has joined #ruby
phinfone_ has joined #ruby
havenwood has quit [Remote host closed the connection]
<mzdravkov>
rjhunter: Its very cool idea, but Im fighting with it first in scala and java, and now ruby. But I can't manage to do something beside authentication with oauth :D
Mars` has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
kofno_ has quit [Ping timeout: 246 seconds]
phinfonet has quit [Ping timeout: 272 seconds]
noyb has quit [Ping timeout: 246 seconds]
<TaxmanBD>
rjhunter, yes I might have to mail someone
sergicles has quit [Quit: sergicles]
<rjhunter>
TaxmanBD: did you see the forum link I mentioned?
Mars` has joined #ruby
<TaxmanBD>
rjhunter, as for the askubuntu thread I already saw it, didn't work
sergicles has joined #ruby
<rjhunter>
TaxmanBD: once you do get it to work, it might be worth posting on that askubuntu thread for the next person in your position :-)
preller has joined #ruby
<TaxmanBD>
rjhunter, you're right I should
zimt_dev has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
dgfdgf has joined #ruby
kaspergrubbe has joined #ruby
Mars` has quit [Remote host closed the connection]
`MArceLL` has quit [Ping timeout: 246 seconds]
halfie has joined #ruby
danshultz has quit [Remote host closed the connection]
reset has joined #ruby
danshultz has joined #ruby
preller has quit [Ping timeout: 272 seconds]
preller has joined #ruby
einarj has quit [Remote host closed the connection]
liamkeily has joined #ruby
einarj has joined #ruby
danshult_ has joined #ruby
moneydouble1 has joined #ruby
petey has quit [Remote host closed the connection]
danshultz has quit [Read error: Connection reset by peer]
ehaliewicz has quit [Remote host closed the connection]
TaxmanBD has quit [Ping timeout: 272 seconds]
<havenwood>
but that would be if you wanted a programmer's text editor :P
volty has joined #ruby
zz_tsykoduk is now known as tsykoduk
IceColdMax has joined #ruby
mojjojo has quit [Quit: mojjojo]
<havenwood>
brian___: I don't know, i've never actually embedded a rich text editor.
<DouweM>
wysihtml5 works well
<DouweM>
very easily extendable as well
mojjojo has joined #ruby
<havenwood>
5,479 stars on the Githubs, popular..
kirun has quit [Quit: Client exiting]
<DouweM>
only downside is that it's pretty much been abandoned by its maintainer, so you'll have to look through the 225 open pull requests for bugfixes and new features
<havenwood>
mm, seems around January that @tiff stopped committing, maybe XING AG stopped paying him to work on it
kofno_ has joined #ruby
<brian___>
thanks guys that was helpful!
Shidash has quit [Ping timeout: 248 seconds]
DonRichie has quit [Quit: Verlassend]
Jetchisel has joined #ruby
<SJr>
I have a java program that invokes another program via the exec functionality that is written in ruby. This ruby program invokes another process. I have something that is very difficult to reproduce where the ruby call to system fails. It returns nil and I don't know why.
mklappstuhl has joined #ruby
<SJr>
It's also incredibly hard to reproduce happening only about 1 in 20 times currently
TaxmanBD has joined #ruby
aryaching has quit []
mojjojo has quit [Quit: mojjojo]
N00D is now known as zz_N00D
mojjojo has joined #ruby
<SJr>
Here is some example code: http://www.pastebin.ca/2478908. Essentially the system call on line 67 seems to occasionally return nil.
tonni has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Ping timeout: 252 seconds]
kofno_ has quit [Ping timeout: 272 seconds]
tonni has joined #ruby
preller has joined #ruby
Aryasam has joined #ruby
shterrett has joined #ruby
<volty>
result = system("#{exec_cmdfile} 2>&1"); result=$?.success? # and inspect $? etc etc // make sure that your prog does not change the cwd (if execfile there) etc etc