mercwith1mouth has quit [Ping timeout: 248 seconds]
mercwith1mouth has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
banisterfiend has joined #ruby
Spami has joined #ruby
cescalante is now known as ce_afk
julian-delphiki has joined #ruby
renanoronfle has quit [Quit: Leaving]
basmoura has joined #ruby
ldnunes has quit [Quit: Leaving]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nfk has quit [Client Quit]
senayar has joined #ruby
bean has quit [Ping timeout: 248 seconds]
Beoran__ has joined #ruby
cody-- has quit [Quit: derp]
mikeg has quit [Ping timeout: 264 seconds]
Beoran_ has quit [Read error: Operation timed out]
senayar has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
ce_afk is now known as cescalante
<salt_>
spec help anyone please!
<salt_>
*rspec
<pontiki>
ask a real question
<salt_>
ok, I'm running a test for a form
nari has quit [Ping timeout: 252 seconds]
<salt_>
fills in the information, pressed the button using capybara
<salt_>
then the test:
<salt_>
it { should redirect_to @user }
benweint has joined #ruby
<salt_>
Failure/Error: it { should redirect_to @user }
<salt_>
NoMethodError:
<salt_>
undefined method `response_code' for nil:NilClass
endash has quit [Quit: endash]
<salt_>
and then it points me to the line with the test
peregrine81 has joined #ruby
<pontiki>
that's not near enough code to figure it out
justsee has quit [Ping timeout: 264 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
gist the whole test, the whole controller, the whole view(s)
<salt_>
ok, where do you think i could start tracking this down
devoldmx has quit [Ping timeout: 252 seconds]
deens has joined #ruby
<salt_>
ok
<vasilakisFiL>
btw I am not an expert and I does not solve your problem but I think you should converse to the new form of capybara (expect instead os should)
<jrobeson>
pontiki :)
<pontiki>
jr o/
imthenachoman has joined #ruby
<jrobeson>
that's not capypara vasilakisFiL , that's rspec itself
<pontiki>
and it's not new
<vasilakisFiL>
oh ok
<imthenachoman>
hey guys. i dont know ruby. just trying to use a ruby prog i downloaded. anyone know how to fix this error without updating to 1.9? https://gist.github.com/anonymous/6928094
btanaka has quit [Remote host closed the connection]
devoldmx has joined #ruby
senayar has joined #ruby
lyanchih has joined #ruby
lyanchih has quit [Client Quit]
|PiP| has joined #ruby
Kar- has quit [Ping timeout: 248 seconds]
<|PiP|>
anyone know of a ruby library to manipulate .doc/.docx documents/
<bnagy>
docx is a zip of a bunch of different filetypes, you can read them with zip, but the ruby zip gems won't rezip a docx that word can read
Nogbit has left #ruby [#ruby]
lyanchih has joined #ruby
gmas has quit [Ping timeout: 240 seconds]
<bnagy>
ole-storage will let you read OLESS streams out of a .doc, but it's kind of old
<bnagy>
should still work though
senayar has quit [Read error: Operation timed out]
Vivekananda has joined #ruby
<bnagy>
but modifying a .doc is deeply nontrivial
nari has joined #ruby
<salt_>
ahhhh i swapped it { should redirect_to @user }
<bnagy>
another approach is using OLE Automation to just automate Word itself
<salt_>
to it { should have_title(user.name) }
<bnagy>
or converting to a more open format, modify and convert back
<salt_>
success
<|PiP|>
bnagy: i'm looking for something a little more high level. basically, i want to make a word document with placeholders as text and be able to replace the text inside
<|PiP|>
basically, something like mail-merge via ruby
<bnagy>
OLE automation or use a converter of some_other_format -> doc
<salt_>
Pontiki many thanks for your help!
devoldmx has quit [Ping timeout: 240 seconds]
<bnagy>
you can do a really simple automation trick to have Word open csv then SaveAs doc for example
Banistergalaxy has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
heidi has quit [Quit: Leaving.]
<|PiP|>
bnagy: i'll look at OLE automation. the thing is, i'm not trying to convert to doc. i'm trying to allow users to create their templates in word
<bnagy>
a lot depends how much formatting or 'native' Word features you want in the docs
c0rn has quit [Quit: Computer has gone to sleep.]
sevenseacat has joined #ruby
Banistergalaxy has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
aspires has quit [Quit: aspires]
saarinen has joined #ruby
urbanmonk has quit [Quit: Bye!]
danshultz has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
<bnagy>
thing with doc is that the raw, unformatted text is stored in one 'stream' ( think like a filesystem ) while all the formatting is stored in another stream as an ordered stream of operations
salt_ has left #ruby [#ruby]
<bnagy>
so you can't just search replace in the text stream, everything assplodes
fgo has joined #ruby
kizzx2 has joined #ruby
<volty>
I have this old code: @sock_s = UNIXServer.open(@sock_path)
<volty>
with uninitialized constant UNIXServer (NameError)
kizzx2 has quit [Client Quit]
<volty>
isn't that socket? of the interface changed?
<bnagy>
|PiP|: the Word OLE COM is very comprehensive, though, if you can stand using it. win32ole is your ruby gem, in that case
kizzx2 has joined #ruby
<bnagy>
and you can use the 'object explorer' inside word to get docs for all the interface objects / methods
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
saarinen has quit [Quit: saarinen]
amacgregor has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
tabolario has joined #ruby
Alina-malina has joined #ruby
echevemaster has quit [Quit: Leaving]
kizzx2 has quit [Client Quit]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
_reset has joined #ruby
baroquebobcat has joined #ruby
bradhe has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
justsee has joined #ruby
reset has quit [Ping timeout: 264 seconds]
echevemaster has joined #ruby
heidi has joined #ruby
ravster has quit [Quit: Leaving.]
_reset has quit [Ping timeout: 240 seconds]
imthenachoman has quit [Quit: Page closed]
marcdel has joined #ruby
benweint has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 248 seconds]
devoldmx3 has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
marcdel has quit [Ping timeout: 264 seconds]
devoldmx27 has joined #ruby
aspires has joined #ruby
<havenwood>
volty: require 'socket'
<havenwood>
volty: it's in stdlib not core
devoldmx3 has quit [Ping timeout: 240 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
headius has quit [Quit: headius]
momomomomo has joined #ruby
aspires has quit [Client Quit]
marcdel has joined #ruby
<volty>
thanks, resolved, sorry -- i had a damn conditional require :)
Domon has joined #ruby
<volty>
@ havenwood
devoldmx27 has quit [Ping timeout: 252 seconds]
platzhirsch has left #ruby [#ruby]
baroquebobcat has joined #ruby
pontiki has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
taternuts has joined #ruby
pontiki has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
harrymoreno has quit [Quit: harrymoreno]
rickmasta has quit [Quit: Leaving...]
mlpinit has quit [Ping timeout: 248 seconds]
Rick has joined #ruby
havenwood has joined #ruby
Rick is now known as Guest48528
narcan has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
pontiki has quit [Ping timeout: 264 seconds]
Bosox20051 has joined #ruby
Scient has quit [Ping timeout: 245 seconds]
pontiki has joined #ruby
fschuindt has joined #ruby
Scient has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
burlyscudd has joined #ruby
devoldmx3 has joined #ruby
devoldmx3 has quit [Client Quit]
devoldmx3 has joined #ruby
justsee has joined #ruby
fuhgeddaboudit has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
radic has quit [Disconnected by services]
radic_ has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
Mars` has joined #ruby
skoovdebo has joined #ruby
burlyscudd has quit [Ping timeout: 265 seconds]
momomomomo has quit [Quit: momomomomo]
Mars` has quit [Ping timeout: 264 seconds]
zz_michael_mbp is now known as michael_mbp
axl_ has joined #ruby
zeade has joined #ruby
Domon has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
gja has quit [Quit: This computer has gone to sleep]
alex__c2022 has joined #ruby
zeropx has quit [Quit: has left the room … Or did he?]
atomicwombat has joined #ruby
volty has quit [Quit: Konversation terminated!]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
jhn has joined #ruby
atomicwombat has quit [Quit: Konversation terminated!]
zeade has quit [Quit: Leaving.]
m00nlight has joined #ruby
pragmatism has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
fijimunkii has joined #ruby
mercwith1mouth has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
cutmail has joined #ruby
|PiP| has quit [Read error: Operation timed out]
alex__c2022 has joined #ruby
tonni has joined #ruby
axl_ has quit [Quit: axl_]
m00nlight has quit [*.net *.split]
tabolario has quit [*.net *.split]
narcan has quit [*.net *.split]
popl has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
ChronocityLC has quit [*.net *.split]
kmckelvin has quit [*.net *.split]
jnoob22 has quit [*.net *.split]
axsuul has quit [*.net *.split]
mhodgson has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
joonty has quit [*.net *.split]
choobie has quit [*.net *.split]
nhmood has quit [*.net *.split]
jtvhantise has quit [*.net *.split]
bricker`1A has quit [*.net *.split]
kke has quit [*.net *.split]
gregorg has quit [*.net *.split]
kung has quit [*.net *.split]
deanrock0 has quit [*.net *.split]
braincrash has quit [*.net *.split]
dziga has quit [*.net *.split]
pdtpatri1k has quit [*.net *.split]
denysonique has quit [*.net *.split]
Anarch has quit [*.net *.split]
karnowski has quit [*.net *.split]
jacktrick has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
davidboy has quit [*.net *.split]
chuck has quit [*.net *.split]
airtonix has quit [*.net *.split]
graft_ has quit [*.net *.split]
fflush has quit [*.net *.split]
bricker has quit [*.net *.split]
Guest85414___ has quit [*.net *.split]
randym_ has quit [*.net *.split]
zero7 has quit [*.net *.split]
jacobat has quit [*.net *.split]
robaman_ has quit [*.net *.split]
BradND has quit [*.net *.split]
Guest14456 has quit [*.net *.split]
dbRenaud has quit [*.net *.split]
zeroXten has quit [*.net *.split]
rotor has quit [*.net *.split]
zzak has quit [*.net *.split]
DrCode has quit [*.net *.split]
Kabaka has quit [*.net *.split]
Boohbah has quit [*.net *.split]
atmosx has quit [*.net *.split]
Bry8Star{T2 has quit [*.net *.split]
end_guy has quit [*.net *.split]
fflush has joined #ruby
graft has joined #ruby
kke has joined #ruby
chuck has joined #ruby
bricker`LA has joined #ruby
zzak has joined #ruby
nhmood has joined #ruby
Anarch has joined #ruby
robaman has joined #ruby
varfoo has joined #ruby
mhodgson has joined #ruby
zeroXten has joined #ruby
popl has joined #ruby
pdtpatrick has joined #ruby
rotor has joined #ruby
choobie has joined #ruby
AntelopeSalad has joined #ruby
avril14th has quit [Excess Flood]
bricker has joined #ruby
BradND has joined #ruby
mobileblue has quit [Read error: Operation timed out]
jacobat has joined #ruby
ChronocityLC has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
gregorg has joined #ruby
chuck has quit [Changing host]
chuck has joined #ruby
m00nlight has joined #ruby
kung has joined #ruby
tkuchiki has joined #ruby
randym_ has joined #ruby
karnowski has joined #ruby
raphaelivan has joined #ruby
jtvhantise has joined #ruby
kmckelvin has joined #ruby
jacktrick has joined #ruby
Guest85414___ has joined #ruby
jnoob22 has joined #ruby
joonty has joined #ruby
raphaelivan has quit [Client Quit]
choobie has quit [Changing host]
choobie has joined #ruby
zero7 has joined #ruby
TheMoonMaster has joined #ruby
dziga has joined #ruby
popl is now known as Guest26928
kung has quit [Changing host]
kung has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
braincrash has joined #ruby
Guest26928 has quit [Changing host]
Guest26928 has joined #ruby
deanrock0 has joined #ruby
davidboy has joined #ruby
dziga has quit [Changing host]
dziga has joined #ruby
Alina-malina has quit [Ping timeout: 248 seconds]
tonni has quit [Ping timeout: 252 seconds]
airtonix has joined #ruby
Ox6abe has joined #ruby
<Guest26928>
well that was fun
avril14th has joined #ruby
dbRenaud has joined #ruby
dbRenaud has joined #ruby
dbRenaud has quit [Changing host]
jgrevich_ has joined #ruby
denysonique has joined #ruby
funburn has joined #ruby
axl_ has joined #ruby
mobileblue has joined #ruby
Vivekananda has quit [Remote host closed the connection]
falood has joined #ruby
axsuul has joined #ruby
BSaboia has joined #ruby
Guest26928 has quit [Quit: We must make an idol of our fear, and call it God.]
Banistergalaxy has quit [Ping timeout: 245 seconds]
popl_ has joined #ruby
popl_ has quit [Changing host]
popl_ has joined #ruby
RealMarc has joined #ruby
axl_ has left #ruby [#ruby]
Bry8Star{T2 has joined #ruby
atmosx has joined #ruby
end_guy has joined #ruby
DrCode has joined #ruby
DrCode has quit [Max SendQ exceeded]
Boohbah has joined #ruby
Steve_1982 has joined #ruby
mercwith1mouth has joined #ruby
DrCode has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
jgrevich_ has quit [Quit: jgrevich_]
Kabaka has joined #ruby
|jemc| has joined #ruby
maroloccio has joined #ruby
deens has joined #ruby
randym_ has joined #ruby
randym_ has quit [Changing host]
karnowski has quit [Changing host]
karnowski has joined #ruby
Guest85414___ has joined #ruby
Guest85414___ has quit [Changing host]
zero7 has joined #ruby
zero7 has quit [Changing host]
jacktrick has joined #ruby
jacktrick has quit [Changing host]
denysonique has joined #ruby
davidboy has joined #ruby
davidboy has quit [Changing host]
denysonique has quit [Changing host]
dziga has quit [Changing host]
dziga has joined #ruby
Boohbah has quit [Changing host]
Boohbah has joined #ruby
jhn has quit [Ping timeout: 248 seconds]
osvico has quit [Ping timeout: 245 seconds]
qwertyqwer has joined #ruby
<qwertyqwer>
I'm having trouble deploying octopress, I got it working on linux then got home on my windows, pulled and changed everything to be served from / and not /blog and when I try to deploy I get this error: http://pastebin.com/7qHc57j4 I can't seem to figure it out, i tried pulling and pushing but I seem up to date
Lewix has quit [Remote host closed the connection]
sergicles has joined #ruby
soba has quit [Ping timeout: 248 seconds]
ChronocityLC has quit [Ping timeout: 252 seconds]
Soda has quit [Remote host closed the connection]
rjhunter has joined #ruby
Ox6abe has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
Optimus9 has joined #ruby
elfenars has joined #ruby
soba has joined #ruby
Ox6abe has quit [Ping timeout: 248 seconds]
rezzack has quit [Ping timeout: 245 seconds]
amacgregor has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
Kar- has quit [Ping timeout: 264 seconds]
brennanMKE has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
brennanMKE has joined #ruby
alex__c2022 has quit [Read error: Connection reset by peer]
mark06 has joined #ruby
alex__c2022 has joined #ruby
i_s has quit [Ping timeout: 265 seconds]
r0bgleeson has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
kaldrenon has joined #ruby
twoism has joined #ruby
skoovdebo has quit [Ping timeout: 248 seconds]
jezen has quit [Remote host closed the connection]
jezen has joined #ruby
Lewix has joined #ruby
BSaboia has quit [Ping timeout: 248 seconds]
platzhirsch has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
beilabs has quit [Ping timeout: 265 seconds]
AnimalSpirit has joined #ruby
beilabs has joined #ruby
twoism_ has joined #ruby
kaldrenon has quit [Ping timeout: 252 seconds]
twoism has quit [Ping timeout: 245 seconds]
kurt21 has quit [Ping timeout: 265 seconds]
Optimus9 has quit [Ping timeout: 240 seconds]
AnimalSpirit has quit [*.net *.split]
Lewix has quit [*.net *.split]
mercwith1mouth has quit [*.net *.split]
jnoob22 has quit [*.net *.split]
bricker has quit [*.net *.split]
m00nlight has quit [*.net *.split]
varfoo has quit [*.net *.split]
randym_ has quit [*.net *.split]
BradND has quit [*.net *.split]
robaman has quit [*.net *.split]
fgo has quit [*.net *.split]
lyanchih has quit [*.net *.split]
NinjaPenguin has quit [*.net *.split]
io_syl has quit [*.net *.split]
Beoran__ has quit [*.net *.split]
ehaliewicz has quit [*.net *.split]
jkline has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
atSetKey has quit [*.net *.split]
nouitfvf_ has quit [*.net *.split]
sarlalian has quit [*.net *.split]
virtualize has quit [*.net *.split]
three18ti has quit [*.net *.split]
gtc has quit [*.net *.split]
newton has quit [*.net *.split]
Inoperable has quit [*.net *.split]
JoeTheGuest has quit [*.net *.split]
Zespre has quit [*.net *.split]
shaileshg has quit [*.net *.split]
phantomcircuit has quit [*.net *.split]
bobthenameless has quit [*.net *.split]
adamholt has quit [*.net *.split]
vx9 has quit [*.net *.split]
hside has quit [*.net *.split]
allanm has quit [*.net *.split]
shanlar- has quit [*.net *.split]
Xuerian_ has quit [*.net *.split]
mva3212 has quit [*.net *.split]
coaster has quit [*.net *.split]
matchaw has quit [*.net *.split]
eka has quit [Quit: Computer has gone to sleep.]
phantomcircuit has joined #ruby
robaman has joined #ruby
elfenars has left #ruby [#ruby]
mercwithamouth has joined #ruby
ehaliewicz has joined #ruby
lyanchih has joined #ruby
gtc has joined #ruby
virtualize has joined #ruby
vx9 has joined #ruby
Beoran__ has joined #ruby
Inoperable has joined #ruby
nemesit|znc has joined #ruby
bricker has joined #ruby
matchaw has joined #ruby
varfoo has joined #ruby
BradND has joined #ruby
sarlalian has joined #ruby
AnimalSpirit has joined #ruby
mva3212 has joined #ruby
RealMarc is now known as Marc
NinjaPenguin has joined #ruby
shanlar has joined #ruby
gtc has joined #ruby
gtc has quit [Changing host]
allanm has joined #ruby
bobthenameless has joined #ruby
JoeTheGuest has joined #ruby
m00nlight has joined #ruby
three18ti has joined #ruby
atSetKey has joined #ruby
Zespre has joined #ruby
randym_ has joined #ruby
Lewix has joined #ruby
shaileshg_ has joined #ruby
jnoob22 has joined #ruby
newton has joined #ruby
phantomcircuit is now known as Guest94644
hside has joined #ruby
Marc is now known as Guest10547
Xuerian has joined #ruby
io_syl has joined #ruby
fgo has joined #ruby
adamholt has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
justsee has quit [Read error: Operation timed out]
mr_red has joined #ruby
duggiefresh has joined #ruby
smoothbutta has joined #ruby
justsee has joined #ruby
Guest94644 has quit [Quit: quit]
randomnick_ has quit [Remote host closed the connection]
tdk2fe has joined #ruby
phantomcircuit has joined #ruby
alx- has quit [Quit: Leaving...]
kurt21 has joined #ruby
fgo has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
JohnBat26 has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Ox6abe has joined #ruby
mark06 has left #ruby [#ruby]
agent_white has joined #ruby
momomomomo has quit [Quit: momomomomo]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenneth has quit [Quit: kenneth]
duggiefresh has quit [Ping timeout: 272 seconds]
_HolyCow1 has joined #ruby
ffranz has quit [Quit: Leaving]
_HolyCow has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
soba_ has joined #ruby
AnimalSpirit has left #ruby [#ruby]
fgo has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
soba has quit [Ping timeout: 264 seconds]
rahulkmr has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
lyanchih has quit [Quit: lyanchih]
i_s has joined #ruby
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
i_s has quit [Read error: Connection reset by peer]
i_s has joined #ruby
<pontiki>
a ruby ghetto
<pontiki>
we need more diversity
i_s has quit [Remote host closed the connection]
Deele has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
i_s has joined #ruby
pragmatism has quit [Quit: pragmatism]
m00nlight has quit [Remote host closed the connection]
polaco is now known as polaco_zZz
i_s has quit [Ping timeout: 240 seconds]
twoism_ has quit [Ping timeout: 264 seconds]
taternuts has quit [Ping timeout: 252 seconds]
tomzx_mac has quit [Read error: Operation timed out]
coderhs has joined #ruby
Senjai has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
Senjai has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
m00nlight has joined #ruby
fgo has quit [Remote host closed the connection]
luckyruby has joined #ruby
|PiP| has joined #ruby
Ox6abe has quit [Remote host closed the connection]
deens has quit [Remote host closed the connection]
Ox6abe has joined #ruby
amacgregor has joined #ruby
banisterfiend has joined #ruby
amacgregor__ has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
deens_ has joined #ruby
Ox6abe has quit [Ping timeout: 264 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
atSetKey has quit [Remote host closed the connection]
soba_ has quit [Ping timeout: 264 seconds]
qwertyqwer has quit [Quit: Page closed]
justsee has quit [Ping timeout: 272 seconds]
deens_ has quit [Remote host closed the connection]
twoism has joined #ruby
T_T has joined #ruby
bradhe has joined #ruby
pragmatism has joined #ruby
cutmail has quit [Remote host closed the connection]
gmas has joined #ruby
baroquebobcat has joined #ruby
atSetKey has joined #ruby
atSetKey has quit [Remote host closed the connection]
lyanchih has joined #ruby
bean has joined #ruby
marcdel has joined #ruby
hamakn has joined #ruby
julian-delphiki has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
soba has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
amacgregor has joined #ruby
momomomomo has joined #ruby
amacgregor__ has quit [Ping timeout: 252 seconds]
beilabs has quit [Ping timeout: 240 seconds]
lyanchih has quit [Quit: lyanchih]
fgo has quit [Remote host closed the connection]
beilabs has joined #ruby
bricker`LA has quit [Ping timeout: 252 seconds]
Flashmasterson has joined #ruby
larissa has quit [Quit: Leaving]
_maes_ has quit [Ping timeout: 252 seconds]
harrymoreno has joined #ruby
<Flashmasterson>
i am completely new to programming and just bought 'the well-grounded rubyist' but it only covers 1.9.1 - is this book too out-of-date?
tdk2fe has quit [Remote host closed the connection]
ewnd9 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<jrhorn424>
Flashmasterson: there's a preview edition for 2.0. i don't see anything wrong with learning 1.9 first. http://www.manning.com/black3/
<banisterfiend>
jrhorn424 the problem with 1.9.1 though is that it's a bit different in a few fundamental ways
peterhu has joined #ruby
<banisterfiend>
it's one of the strangest rubies :)
kazuuu has quit [Remote host closed the connection]
schaerli has joined #ruby
<Flashmasterson>
banisterfiend: great, how?
kazuuu has joined #ruby
<Flashmasterson>
banisterfiend: in ways that a total noob like me might inderstand
<banisterfiend>
Flashmasterson class_eval works differently, it looks up constants on the receiver rather than lexically
peterhu has quit [Client Quit]
twoism has quit [Remote host closed the connection]
peterhu has joined #ruby
<rjhunter>
I expect if you're just beginning programming, it'll take a while for any of the differences to matter for you.
amacgregor_ has joined #ruby
twoism has joined #ruby
justsee has joined #ruby
Tricon has quit [Quit: Bye!]
<rjhunter>
The `class_eval` and scope lookups is probably intermediate-level at the earliest :-)
kenneth has joined #ruby
|PiP| has quit [Ping timeout: 245 seconds]
amacgregor has quit [Ping timeout: 252 seconds]
wow000_ has joined #ruby
platzhirsch has quit [Read error: Operation timed out]
<Flashmasterson>
rjhunter: understood
kazuuu has quit [Ping timeout: 252 seconds]
<rjhunter>
One thing I would suggest is to consider installing multiple rubies -- follow along the book with a new Ruby, and when you notice something going weird, try running the version described in the book
<Flashmasterson>
ok, he seems hot on 8.7
SilverKey has quit [Quit: Zzzzzz.]
fgh has joined #ruby
amacgregor_ has quit [Ping timeout: 252 seconds]
asteros has joined #ruby
faoiseamh has quit []
SilverKey has joined #ruby
<rjhunter>
While you're learning the basics, the version probably won't make so much of a difference. It matters a lot more if you try to build something for real because the various "gems" (extensions and libraries) will have code that depends on particular versions
T_T has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
Ren^ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Ren^ has joined #ruby
<Flashmasterson>
rjhunter: ok so proper installation of correct gems is more important. is it possible to install too many gems?
C0deMaver1ck has quit [Disconnected by services]
justsee has joined #ruby
mary5030 has quit [Remote host closed the connection]
<rjhunter>
Flashmasterson: Installing too many gems will slow down certain operations. Depending on how you install them (or add them to your project), they may conflict with each other.
mary5030 has joined #ruby
lyanchih has joined #ruby
<Flashmasterson>
rjhunter: i see
<rjhunter>
Flashmasterson: Again, while you're starting out, that probably won't matter too much
<Flashmasterson>
rjhunter: would buying black's 'roby for rails' would be getting ahead of myself at this beginning stage?
<Flashmasterson>
rjhunter: sorry for bad english
<rjhunter>
I'm not familiar with that book either, so I couldn't really tell you.
burlyscudd has quit [Quit: Leaving.]
<banisterfiend>
Flashmasterson do the 'rails for zombies' course once u have the basics of ruby down IMO
<banisterfiend>
it's pretty great :)
<Flashmasterson>
ok thanks guys gotta go - much appreciated
Flashmasterson has quit [Quit: Leaving.]
mary5030 has quit [Ping timeout: 252 seconds]
i_s has joined #ruby
dhruvasagar has joined #ruby
jonahR has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
soba has quit [Ping timeout: 245 seconds]
dross has quit [Read error: Operation timed out]
momomomomo has quit [Quit: momomomomo]
sayan has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
lyanchih has quit [Ping timeout: 248 seconds]
schaerli has quit [Ping timeout: 252 seconds]
Monie has joined #ruby
glaksmono has quit [Quit: This computer has gone to sleep]
jhn has joined #ruby
nextdropping has joined #ruby
robbyoconnor has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
Monie has quit [Client Quit]
Monie has joined #ruby
krz has joined #ruby
justsee has joined #ruby
Monie has quit [Client Quit]
girija has joined #ruby
Monie has joined #ruby
girija has left #ruby [#ruby]
ehc has quit [Quit: ehc]
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby
i_s has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
i_s has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
soba has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
i_s has quit [Ping timeout: 265 seconds]
MrHacks has quit [Quit: Lost terminal]
poisonarms has joined #ruby
marcdel has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
mr_red has quit [Quit: Leaving.]
tagrudev has joined #ruby
dross has joined #ruby
mrsolo_ has joined #ruby
coderhs has quit [Ping timeout: 265 seconds]
bionoid has joined #ruby
bionoid has quit [Remote host closed the connection]
bionoid has joined #ruby
bricker`LA has joined #ruby
sayan has quit [Quit: Leaving]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jprovazn has joined #ruby
apeiros has joined #ruby
mengu has joined #ruby
nfk has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
adeponte has joined #ruby
bricker`LA has quit [Ping timeout: 264 seconds]
voidPirate has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
DonRichie has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
bricker`LA has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
twoism has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby
aryaching has joined #ruby
Mars` has joined #ruby
newbiehacker has joined #ruby
Lewix has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 248 seconds]
marcdel has joined #ruby
bionoid has quit [Read error: No route to host]
Mon_Ouie has quit [Ping timeout: 248 seconds]
dash_ has joined #ruby
ukd1 has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
Jetchisel has joined #ruby
nw_ has quit [Quit: leaving]
nw has joined #ruby
WillAmes has quit [Remote host closed the connection]
ace_striker has quit [Ping timeout: 250 seconds]
nw has quit [Client Quit]
nw has joined #ruby
WillAmes has joined #ruby
kevinykchan has joined #ruby
JohnBat26 has joined #ruby
Elhu has joined #ruby
wallerdev has quit [Quit: wallerdev]
cutmail has joined #ruby
mrsolo_ has quit [Quit: This computer has gone to sleep]
tonni has joined #ruby
nextdropping has quit [Ping timeout: 248 seconds]
asteros has quit [Quit: asteros]
havenwood has joined #ruby
popl_ has quit [Quit: We must make an idol of our fear, and call it God.]
banisterfiend has quit [Quit: Computer has gone to sleep.]
tjad has joined #ruby
DanKnox is now known as DanKnox_away
zarubin has joined #ruby
jonahR has quit [Quit: jonahR]
zigomir has joined #ruby
<i8igmac>
how can i just print files
<i8igmac>
exclude directories Dir.glob("/var/*")
oth has joined #ruby
sayan_ has joined #ruby
peterhu_ has joined #ruby
tnk1 has quit [Read error: Connection reset by peer]
peterhu has quit [Ping timeout: 245 seconds]
sayan_ is now known as sayan
peterhu_ is now known as peterhu
sayan has quit [Changing host]
sayan has joined #ruby
mrsolo_ has joined #ruby
mrsolo_ has quit [Client Quit]
marius has quit [Quit: x]
nfk has quit [Quit: yawn]
nfk has joined #ruby
asteros has joined #ruby
diphtherial has joined #ruby
axl_ has joined #ruby
<pontiki>
Dir.glob("/var/*").each {|f| puts f unless File.directory?(f)}
<diphtherial>
hello; i'm having some trouble installing jekyll on windows
<diphtherial>
(that is, reinstalling both ruby and moving the devtools someplace where there are no spaces in the path...)
lyanchih has quit [Quit: lyanchih]
aganov has joined #ruby
sergicles has joined #ruby
sergicles has quit [Client Quit]
coaster has joined #ruby
mike has joined #ruby
rahulkmr1 has joined #ruby
mike is now known as Guest51196
<pontiki>
i think i can see why that might fail
filipe has joined #ruby
filipe has quit [Read error: Connection reset by peer]
asteros has quit [Quit: asteros]
rahulkmr has quit [Ping timeout: 264 seconds]
justsee has quit [Ping timeout: 248 seconds]
zoee has joined #ruby
<diphtherial>
hooray, seems like that fixed it :)
<diphtherial>
oh windows, i'll never forgive you
blaxter_ has quit [Read error: Operation timed out]
amritanshu_RnD has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
Heero has quit [Ping timeout: 268 seconds]
andikr has joined #ruby
lyanchih has joined #ruby
voidPirate has quit [Remote host closed the connection]
<diphtherial>
thanks for the advice
diphtherial has quit []
kaspergrubbe has joined #ruby
hanmac has joined #ruby
Macaveli has joined #ruby
tjad has quit [Ping timeout: 265 seconds]
kitak_ has joined #ruby
peterhu has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
arctarus has joined #ruby
kitak has quit [Ping timeout: 246 seconds]
T_T has quit [Remote host closed the connection]
arctarus has left #ruby [#ruby]
lyanchih has quit [Ping timeout: 272 seconds]
Guest72160 has joined #ruby
T_T has joined #ruby
elaptics`away is now known as elaptics
persand has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lyanchih has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
blaxter_ has joined #ruby
Guest72160 is now known as diegoviola
threesome has joined #ruby
Kar- has joined #ruby
jhn has quit [Ping timeout: 248 seconds]
ndrei has joined #ruby
neektza has left #ruby ["WeeChat 0.3.8"]
T_T has quit [Ping timeout: 264 seconds]
ndrei has quit [Client Quit]
ndrei has joined #ruby
|jemc| has quit [Ping timeout: 272 seconds]
Senjai has quit [Ping timeout: 252 seconds]
diego1 has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
diego1 is now known as diegoviola
ndrei has quit [Client Quit]
Kar- has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
amacgregor has joined #ruby
ndrei has quit [Client Quit]
nextdropping has joined #ruby
ndrei has joined #ruby
krz has quit [Quit: krz]
tjbiddle has quit [Quit: tjbiddle]
alup has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
ahawkins has joined #ruby
franzf has joined #ruby
franzf is now known as telstar
telstar has left #ruby [#ruby]
himsin has joined #ruby
kaldrenon has joined #ruby
dangerousdave has joined #ruby
dhamidi has joined #ruby
carraroj has joined #ruby
tjad has joined #ruby
justsee has joined #ruby
axl_ has quit [Quit: axl_]
arturaz has joined #ruby
adeponte has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
telstar has joined #ruby
mrsolo_ has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
girija has joined #ruby
funburn has quit [Quit: funburn]
girija has left #ruby [#ruby]
adeponte has quit [Ping timeout: 248 seconds]
Gue______ has joined #ruby
thecodethinker has quit [Quit: leaving]
Macaveli has joined #ruby
Gue______ has quit [Client Quit]
troessner has joined #ruby
gmas has quit [Ping timeout: 264 seconds]
Evixion has joined #ruby
kmckelvin has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
kmckelvin has joined #ruby
telstar has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
claymore has joined #ruby
Macaveli has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 272 seconds]
pragmatism has quit [Quit: Peace]
io_syl has quit []
sergicles has joined #ruby
jbpros has joined #ruby
Snail has quit [Ping timeout: 252 seconds]
crank1988 has quit [Ping timeout: 252 seconds]
Sail- has quit [Ping timeout: 264 seconds]
nextdropping has quit [Ping timeout: 248 seconds]
T_T has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
nextdropping has joined #ruby
jeffdb has quit [Quit: jeffdb]
kmckelvin has quit [Ping timeout: 264 seconds]
kobain has quit []
bricker`LA has joined #ruby
Sail- has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
deens has quit [Remote host closed the connection]
Elhu has joined #ruby
crank1988 has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
mrsolo_ has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
Sail- has quit [Ping timeout: 272 seconds]
luckyruby has quit [Ping timeout: 265 seconds]
jsaak has joined #ruby
Kar- has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
luckyruby has joined #ruby
Domon has joined #ruby
mrsolo_ has joined #ruby
jezen has quit [Remote host closed the connection]
jezen has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
obs has joined #ruby
fuadsaud has joined #ruby
DanKnox is now known as DanKnox_away
havenwood has quit [Remote host closed the connection]
kevinykchan has quit [Quit: Computer has gone to sleep.]
olivier_bK has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
Kar- has quit [Ping timeout: 272 seconds]
axsuul has quit [Ping timeout: 252 seconds]
justsee has quit [Ping timeout: 265 seconds]
Log1x has joined #ruby
dhruvasagar has joined #ruby
smirn0v has joined #ruby
h_kon has joined #ruby
lucazi has joined #ruby
justsee has joined #ruby
peterhu has joined #ruby
kevinykchan has joined #ruby
T_T has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 240 seconds]
xk_id has quit [Quit:
h_kon has quit [Remote host closed the connection]
adambeynon has joined #ruby
rjhunter has quit [Remote host closed the connection]
peterhu has quit [Ping timeout: 265 seconds]
Kar- has joined #ruby
reset has joined #ruby
nessib has joined #ruby
sergicles has quit [Quit: sergicles]
dawkirst has joined #ruby
mrnugget has joined #ruby
rdark has joined #ruby
noname001__ has joined #ruby
kmckelvin has joined #ruby
tatsuya_o has joined #ruby
einarj has joined #ruby
virtualentity has quit []
senayar has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
justsee has quit [Ping timeout: 248 seconds]
nfk has quit [Ping timeout: 240 seconds]
skaflem has joined #ruby
dhamidi has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
jbpros has quit [Quit: jbpros]
vasilakisFiL has quit [Quit: Konversation terminated!]
sergicles has joined #ruby
sevenseacat has quit [Quit: Leaving.]
krz has quit [Quit: krz]
krz has joined #ruby
dhamidi has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
bricker`LA has joined #ruby
TMM has joined #ruby
Tearan has joined #ruby
Al___ has joined #ruby
mikecmpbll has joined #ruby
bean has quit [Read error: Connection reset by peer]
bean has joined #ruby
adeponte has joined #ruby
Mohan_ has joined #ruby
krz has quit [Quit: krz]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
JohnBat26 has joined #ruby
sergicles has quit [Quit: sergicles]
fuadsaud has quit [Remote host closed the connection]
lyanchih has quit [Ping timeout: 272 seconds]
Kneferilis has joined #ruby
Macaveli has joined #ruby
Raboo has joined #ruby
Tearan has quit [Ping timeout: 240 seconds]
_adeponte has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: Leaving...]
b3hnam has joined #ruby
Sail- has joined #ruby
<b3hnam>
I have a file that just have one line contains a constance and I require it in another file but I have not access the constant how can I make it accessable ?
seanodowd has joined #ruby
amacgregor_ has joined #ruby
G has quit [Quit: leaving]
shaunbaker has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
shaunbak_ has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
mrsolo_ has quit [Quit: This computer has gone to sleep]
camilasan has joined #ruby
Fly80 has joined #ruby
<Fly80>
hello :)
hjensas has joined #ruby
jlebrech has joined #ruby
mrsolo_ has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
<hjensas>
I am trying to build a PATH= from an array in erb. This is the code: <% last = @path.pop -%>
<hjensas>
<% @path.each do |path| -%>
<hjensas>
<% end -%>
<hjensas>
<%= @last %> <-- This last line does not printe anyhing. I assume the problem is on line 1. but what?
<hjensas>
<%= path -%>:<% -%>
shaunbaker has quit [Ping timeout: 252 seconds]
<hoelzro>
hjensas: you're assigning to last in the beginning
<hoelzro>
and you're printing @last in the end
<hoelzro>
last and @last are completely different
falood has quit [Remote host closed the connection]
<hjensas>
hoelzro: ah... my attempt learning by doing. I should shamefully go and read the manual now... Thank you! :)
<hoelzro>
well, now you won't make the same mistake again =)
lyanchih has joined #ruby
<Veejay>
Hello Ruby people. Is there a method that given two arrays returns three arrays where the first is the elements of A not in B, then the intersection, then the elements of B not in A?
Intrepidd has joined #ruby
<hanmac>
Veejay: [a - b, a & b, b - a]
justsee has joined #ruby
Nigel_ has joined #ruby
relix has joined #ruby
Nigel_ is now known as G
wow has joined #ruby
<Veejay>
hanmac: So nothing built-in in Enumerable or Array itself. I was asking cause sometimes I implement it only to discover that I get for free. Thanks anyway.
aep has joined #ruby
<aep>
anyone knows and of the box gem for a local key/value cache that can deal with concurrency?
dhilipsiva has joined #ruby
dhilipsiva has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Bosox20051 has quit [Ping timeout: 240 seconds]
wow has quit [Remote host closed the connection]
<Fly80>
hanmac: in that way you create an array of three arrays? [firstArray,second,third]?
senayar has quit [Remote host closed the connection]
klaut has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
nisstyre has quit [Quit: Leaving]
Intrepidd has quit [Remote host closed the connection]
<Veejay>
Fly80: Another nice variation is Array(something). The useful property being that Array(1) => [1] and Array([1,2]) => [1,2]. Comes in handy when a method call returns either an array or a single element and you don't want to have to test the result.
Bosox20051 has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
diegoviola has quit [Read error: Operation timed out]
nari has quit [Ping timeout: 245 seconds]
daveops has quit [Ping timeout: 245 seconds]
mobileblue has quit [Max SendQ exceeded]
mobileblue has joined #ruby
<Veejay>
Is there a name for the concept of "decrement that object's attribute, when it reaches zero, delete the object". I've called the method decrement_usage_or_delete, but it's kind of ugly.
<mparramon_>
olivier_bK you are missing an `end` it seems
<canton7>
you're missing a question mark
<mparramon_>
the `end` that closes the `def procesd?` method
<dhamidi>
the method is actually named 'procesd?', you try to call 'procesd'
<olivier_bK>
mparramon_, no i have my end at the end
Mars` has quit [Remote host closed the connection]
maz-dev has joined #ruby
<canton7>
the method's called 'procesd?'
Mars` has joined #ruby
<canton7>
you're calling 'procesd', which is not the same thing
<mparramon_>
then it is the question mark
Martinez has quit [Max SendQ exceeded]
<mparramon_>
call `procesd?`
<olivier_bK>
olivier_bK, i m stupid
<canton7>
also, random caps in the middle of a method name?
<olivier_bK>
mparramon_, thank
<mparramon_>
:)
<mparramon_>
but canton7 said it first, thank him
<canton7>
:)
hjensas has quit [Ping timeout: 272 seconds]
ferdev has joined #ruby
claymore has quit [Quit: Leaving]
hside has quit [Remote host closed the connection]
ics has quit [Ping timeout: 248 seconds]
mengu has quit [Remote host closed the connection]
abunashir has joined #ruby
adeponte has quit [Ping timeout: 252 seconds]
<shevy>
<olivier_bK> mparramon_, no i have my end at the end
<shevy>
^^^ best statement ever
Martinez has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
Sail- has quit [Ping timeout: 240 seconds]
seanodowd has quit [Ping timeout: 265 seconds]
jibi has joined #ruby
Ren^ has quit [Read error: Connection reset by peer]
cascalheira has joined #ruby
Ren^ has joined #ruby
dangerousdave has joined #ruby
kmckelvi_ has joined #ruby
abunashir has quit [Remote host closed the connection]
kmckelvi_ has quit [Read error: Connection reset by peer]
hside has joined #ruby
abunashir has joined #ruby
<jlebrech>
what are your opinions on the workflow gem?
kmckelvi_ has joined #ruby
m00nligh_ has joined #ruby
kmckelvin has quit [Read error: Connection reset by peer]
<shevy>
never even heard of it
JohnBat26 has joined #ruby
Aryasam has joined #ruby
m00nlight has quit [Ping timeout: 265 seconds]
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
coderhs has joined #ruby
diegoviola has joined #ruby
Aryasam_ has joined #ruby
Macaveli has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 245 seconds]
rjhunter has joined #ruby
Sail- has joined #ruby
rjhunter has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
barratt has joined #ruby
Aryasam_ has quit [Client Quit]
Zai00 has joined #ruby
einarj has joined #ruby
abunashir has quit [Remote host closed the connection]
abunashir has joined #ruby
jrhe has joined #ruby
Sail- has quit [Ping timeout: 272 seconds]
<kapowaz>
Hey. I'm looking to come up with a solution for hosting static assets generated with rake-pipeline-web-filters using S3/CloudFront. I've found the asset_sync gem, but it seems to be built around working with the rails asset-pipeline. Has anyone got experience of using it with rake-pipeline instead?
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
lyanchih has joined #ruby
ravster has joined #ruby
mparramon_ has quit [Ping timeout: 250 seconds]
end_guy has quit [Ping timeout: 240 seconds]
Macaveli has quit [Remote host closed the connection]
Tearan has joined #ruby
Tearan has quit [Client Quit]
end_guy has joined #ruby
m00nligh_ has quit [Remote host closed the connection]
filipe has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
shaunbaker has joined #ruby
filipe has quit [Client Quit]
harrymoreno has quit [Quit: harrymoreno]
dhamidi has quit [Ping timeout: 272 seconds]
nextdropping has quit [Ping timeout: 272 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
ehaliewicz has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
rahulkmr1 has quit [Ping timeout: 272 seconds]
mengu has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 245 seconds]
sergicles has joined #ruby
burgess has joined #ruby
shaunbaker has quit [Ping timeout: 264 seconds]
abunashir has quit [Remote host closed the connection]
abunashir has joined #ruby
harrymoreno has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
burgess has quit [Client Quit]
tvw has joined #ruby
rylev has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
sergicles has quit [Ping timeout: 248 seconds]
skoovdebo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nari has joined #ruby
nextdropping has joined #ruby
hside has quit []
beilabs has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
rylev has quit [Ping timeout: 272 seconds]
colonolGron has joined #ruby
aryaching_ has joined #ruby
beilabs has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
abunashi_ has joined #ruby
abunashir has quit [Read error: No route to host]
sergicles has joined #ruby
agent_white has quit [Quit: Lost terminal]
carraroj has quit [Read error: Operation timed out]
Tearan has joined #ruby
Tearan has quit [Client Quit]
mklappstuhl has joined #ruby
Guest51196 is now known as fntzr
carraroj has joined #ruby
Sail- has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
seanodowd has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kil0byte has joined #ruby
smirn0v has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
soba has quit [Ping timeout: 240 seconds]
hanmac has quit [Quit: Leaving.]
abunashir has joined #ruby
mrnugget has joined #ruby
sergicles has quit [Quit: sergicles]
colonolGron has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
abunashi_ has quit [Ping timeout: 272 seconds]
adeponte has joined #ruby
banisterfiend has joined #ruby
colonolGron has joined #ruby
nextdropping has quit [Ping timeout: 264 seconds]
camilasan has quit [Remote host closed the connection]
Mars` has joined #ruby
AndChat| has joined #ruby
rylev has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
adeponte has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
Mars` has quit [Ping timeout: 260 seconds]
AndChat| has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
lkba has joined #ruby
shaunbak_ has joined #ruby
aryaching_ has quit []
heftig has joined #ruby
TDJACR has quit [Ping timeout: 245 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
Guest22783 has joined #ruby
mrsolo__ has quit [Quit: This computer has gone to sleep]
heftig_ has joined #ruby
heftig has quit [Disconnected by services]
heftig_ is now known as heftig
Fly80 has quit [Ping timeout: 240 seconds]
lyanchih has quit [Quit: lyanchih]
Liothen has quit [Quit: System of a down……]
dhruvasagar has quit [Remote host closed the connection]
BigBlueBacon has joined #ruby
atmosx has quit [Remote host closed the connection]
rubyracer has joined #ruby
MrV_ has joined #ruby
sergicles has joined #ruby
Domon has quit [Remote host closed the connection]
hjensas has joined #ruby
swistak35 has quit [Ping timeout: 245 seconds]
mrsolo_ has joined #ruby
barratt has quit [Quit: Leaving...]
s00pcan has quit [Quit: Lost terminal]
s00pcan has joined #ruby
hanmac has joined #ruby
relix has joined #ruby
nextdropping has joined #ruby
camilasan has joined #ruby
noname001__ has quit [Remote host closed the connection]
Kar- has quit [Ping timeout: 248 seconds]
|PiP| has joined #ruby
BizarreCake has joined #ruby
michael_mbp is now known as zz_michael_mbp
justsee has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
dhruvasagar has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
osvico has joined #ruby
ChronocityLC has joined #ruby
Alina-malina has joined #ruby
hjensas has quit [Ping timeout: 272 seconds]
beilabs has quit [Ping timeout: 272 seconds]
beilabs has joined #ruby
eka has joined #ruby
arkiver has joined #ruby
rorra has joined #ruby
<arkiver>
How can I write a regex which will match all words made of single repeated character: eg aaaa , bbbb, 1111, yyyy, dd, mm ?
<b3hnam>
tobiasvl: hanmac: `MyObj.each |part| do ` work for first 10 item
newbiehacker has quit [Ping timeout: 248 seconds]
<hanmac>
b3hnam: do: each.with_index do |part, index| brreak unless index < 10
|PiP| has quit [Ping timeout: 252 seconds]
ewnd9 has quit [Ping timeout: 248 seconds]
Raboo has joined #ruby
geekbri has joined #ruby
krz has quit [Quit: krz]
ZenGuy311 has joined #ruby
<ZenGuy311>
hi , i require assistance
sailias has joined #ruby
<b3hnam>
hanmac: undefined method `<' for nil:NilClass
<ZenGuy311>
my friend is running sinatra on my vps and a whole lot of urls are indexed by google
<ZenGuy311>
i added robots .txt the way i knew how
<ZenGuy311>
didn't work
<ZenGuy311>
how do i add it in the .rb file ?
echevemaster has quit [Quit: Leaving]
<hanmac>
b3hnam: hm then you may did something wrong
jetblack has joined #ruby
<ZenGuy311>
also.. i'm trying to kill the ruby app by pid and ruby process that is run by user root.. it;s not working .. keeps restarting with another pid
<hoelzro>
ZenGuy311: did you try curl'ing down the robots.txt file to make sure it's getting served properly?
iamjarvo has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
cescalante is now known as ce_afk
Xeago has joined #ruby
<_bart>
akemrir: alright, updated bundle, silent error has changed to this: growlnotify[2188:707] Failed to register with (null)
mrsolo_ has joined #ruby
<akemrir>
_bart: You are working on git version?
<_bart>
akemrir: nope, they also bumped and pushed to rubygems.
<_bart>
Good idea, because that 'silent' error was pretty bad.
nouitfvf_ has joined #ruby
<_bart>
Growl does not seem to be running, but I have it installed
<akemrir>
_bart: Which OS?
angusiguess has joined #ruby
<_bart>
Ah nvm, I still had to setup Growl, thought it was a service just running at boot.
<akemrir>
_bart: this is offtopic, You could talk to me in private
<_bart>
OSX 10.8.5, but I think it's solved now.
taternuts has joined #ruby
aspiers has quit [Ping timeout: 264 seconds]
yalue has joined #ruby
ewnd9 has joined #ruby
<sergicles>
warning; new. Hi all, trying to start a Rails project… just installed ruby, rbenv, etc. gem install rails, that installed v4, fare enough, then tried "rails new helloworld" and keep getting this error: Installing atomic (1.1.14) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
<_bart>
Yes working now, rspec results pushed to growl, neat!
jbpros has quit [Quit: jbpros]
butblack has joined #ruby
<akemrir>
sergicles: #RubyOnRails
sailias has quit [Quit: Leaving.]
dhruvasagar has quit [Read error: Operation timed out]
sailias has joined #ruby
aspiers has joined #ruby
cody-- has joined #ruby
ndrei has joined #ruby
yacks has quit [Ping timeout: 272 seconds]
kmckelvin has joined #ruby
pedda has joined #ruby
jbpros has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
taternuts has quit [Ping timeout: 256 seconds]
kmckelvi_ has quit [Ping timeout: 245 seconds]
workmad3 has quit [Client Quit]
kmckelvin has quit [Read error: Connection reset by peer]
kmckelvin has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
boxmein has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
timonv has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
Heero has joined #ruby
mrsolo_ has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
atSetKey has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mupkoo has joined #ruby
kaldrenon has joined #ruby
Banistergalaxy has joined #ruby
DrCode has quit [Remote host closed the connection]
pushpak has joined #ruby
workmad3 has joined #ruby
flori has quit [Ping timeout: 248 seconds]
hamakn has joined #ruby
mlpinit_ has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
DrCode has joined #ruby
kracekumar has joined #ruby
kurt21 has quit [Ping timeout: 245 seconds]
flori has joined #ruby
<kracekumar>
I am using inf-ruby inside emacs. e.g class Hello is printed out back, how can I disable that ?
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
jcromart_ has joined #ruby
fmcgeough has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
jaynewstrom has joined #ruby
hamakn has quit [Ping timeout: 248 seconds]
TMM has quit [Quit: Ex-Chat]
kmckelvi_ has joined #ruby
kmckelvi_ has quit [Read error: Connection reset by peer]
kazuuu has joined #ruby
kmckelvi_ has joined #ruby
funburn has joined #ruby
someish has joined #ruby
kmckelvin has quit [Read error: Connection reset by peer]
krawchyk has joined #ruby
fntzr has quit [Quit: Leaving]
abunashir has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Fly80 has joined #ruby
<workmad3>
someish: it's just the inspect output of the object in the array
burlyscudd has joined #ruby
nextdropping has quit [Ping timeout: 265 seconds]
<someish>
workmad3: so when I see the angle bracket in ruby I'm looking at an object, and the initial namespace thing there is just descriptive and has else to do with the object?
<workmad3>
someish: no...
Bira_ has joined #ruby
browndawg has joined #ruby
Kar- has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Client Quit]
<workmad3>
someish: but when you're looking at output in IRB, you're looking at the results (usually) of IRB calling 'inspect' on something
xk_id has quit [Quit:
atSetKey has quit [Remote host closed the connection]
Ziarkaen has joined #ruby
<workmad3>
someish: and the string returned by 'inspect' defaults to <Class::Name some_var=val ...>
camilasan has quit [Remote host closed the connection]
IceyEC has joined #ruby
<someish>
workmad3: ahhh I see. thanks!
fijimunkii has joined #ruby
burlyscudd has joined #ruby
near89 has joined #ruby
funburn has quit [Ping timeout: 272 seconds]
<near89>
hi
<near89>
i need help with some rubying
mlpinit_ has quit [Remote host closed the connection]
taternuts has joined #ruby
<near89>
anyone?
mlpinit has joined #ruby
<sweeper>
near89: describe problem and pastebin
<near89>
thanks no pastebin
<near89>
more of a concept problem
<near89>
I have program quite a lot in ruby
<near89>
but now I need to do something like the following
<near89>
I have a file with two fields, ip,date and the file grows 1mb/s
funburn has joined #ruby
<near89>
I need to program something in ruby to get each line, and do things with it, like sending info to memcached
<near89>
I've never worked with streaming files before..
raphaelivan has joined #ruby
polymar has joined #ruby
raphaelivan has quit [Client Quit]
<near89>
like this tail -f file | ruby myprogram.rb
<near89>
how would that work? I have only sent arguments and grabbed them from the ARGV array before..
Tearan has joined #ruby
Tearan has quit [Client Quit]
nextdropping has joined #ruby
<sweeper>
well you're working with STDIO there, not a file
butblack has quit [Quit: butblack]
camilasan has joined #ruby
noname001__ has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
Clooth has joined #ruby
taternuts has quit [Ping timeout: 248 seconds]
<sweeper>
so I would try gets first
iamjarvo has quit [Remote host closed the connection]
<sweeper>
and if that doesn't work, IO.popen
<sweeper>
but tbh, that's a pretty terrible way to do things
iamjarvo has joined #ruby
<hanmac>
STDIN.each_line ?
dross has quit [Quit: Lost terminal]
devoldmx has joined #ruby
<near89>
how would you recommend?
<sweeper>
do you have any other way of getting the data?
raphaelivan has joined #ruby
sambao21 has joined #ruby
funburn has quit [Ping timeout: 248 seconds]
<sweeper>
also, you need to know what the behaviour is of that file. is it going to be truncated, or what, when it gets too big?
sayan has quit [Ping timeout: 272 seconds]
endash has joined #ruby
<sweeper>
that file is gonna be 1 tb big in 11 days
devoldmx3 has quit [Ping timeout: 240 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
nextdropping has quit [Ping timeout: 248 seconds]
Tearan has joined #ruby
rahulkmr has joined #ruby
S0da has quit [Read error: Connection reset by peer]
Tearan has quit [Client Quit]
<sweeper>
would be nicer if you could listen to the original data source over the network, instead of via a file
ewnd9_ has joined #ruby
enebo has joined #ruby
nextdropping has joined #ruby
iamjarvo has quit [Ping timeout: 248 seconds]
ewnd9 has quit [Ping timeout: 248 seconds]
raphaelivan has quit [Client Quit]
<sweeper>
even a pipe or socket would be better than tailing a file :/
<near89>
ok, so I change my mind
<near89>
Im going to then rotate the file
<near89>
and grab the .1 and read it then delete it
<near89>
thanks!
<sweeper>
:D
<sweeper>
if realtime isn't a requirement, that should work fine
Carlos has joined #ruby
Carlos has quit [Client Quit]
allanm has joined #ruby
<mikecmpbll>
near89: i'd use rb-fsevent to watch the file.
robbyoconnor has quit [Ping timeout: 264 seconds]
<sweeper>
ideally you'd have some sort of pub/sub or queue arrangement so you can parallelize
<mikecmpbll>
for osx
<mikecmpbll>
rb-inotify for linux
T_T has joined #ruby
kofno has joined #ruby
Nss has quit [Ping timeout: 264 seconds]
mparramon has left #ruby [#ruby]
Nss has joined #ruby
saysjonathan has quit [Quit: leaving]
wesside has quit [Quit: Computer has gone to sleep.]
|PiP| has joined #ruby
rahulkmr has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
schaerli has quit [Remote host closed the connection]
vpretzel has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 245 seconds]
mparramon has joined #ruby
<ALVAN>
hanmac: i have an error `foreach': Is a directory - .. (Errno::EISDIR)
<mparramon>
hanmac, can you paste some of the code surrounding that error?
ndrei has joined #ruby
<ALVAN>
workmad3: dont know if i have that Chef gem by default
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
freezey_ has quit [Remote host closed the connection]
ghr has quit [Quit: Computer has gone to sleep.]
Stalkr^ has quit [Ping timeout: 265 seconds]
Bira has quit [Remote host closed the connection]
freezey has joined #ruby
senayar_ has joined #ruby
<hanmac>
ALVAN: i did it wrong it should be .select(&File.method(:file?))
sambao21 has quit [Ping timeout: 272 seconds]
RORgasm has joined #ruby
<ArchBeOS>
what's the most efficient way to search through an array of hashes for a value?
dash_ has quit [Ping timeout: 264 seconds]
<ALVAN>
hanmac: now i have "no block given (LocalJumpError)"
TMM has joined #ruby
lyanchih has quit [Quit: lyanchih]
<apeiros>
ArchBeOS: linear search. if you want more efficient, use a more appropriate datastructure.
<apeiros>
(hashes are not built to search by value - they are to search by key)
<hanmac>
ALVAN: hm what is your ruby version?
Flashmasterson has joined #ruby
Catie has quit [Ping timeout: 248 seconds]
<ArchBeOS>
apeiros: it's a collection returned by Sequel.
<ArchBeOS>
I'll ask the dev of that lib
senayar has quit [Ping timeout: 264 seconds]
<banisterfiend>
hanmac Hans.
<apeiros>
ArchBeOS: i assume each hash represents a row in the db then
sambao21 has joined #ruby
<ArchBeOS>
yeah
<apeiros>
ArchBeOS: in that case, it'd make sense to provide you with a way to state a where-clause
<Flashmasterson>
i know nothing about programming or building web applications - will reading The Well_grounded Rubyist make learning rails easier and more fun?
<apeiros>
that way the db will search - which is what it's built for
jprovazn has joined #ruby
<apeiros>
if you get the data once and search many times, you could also ponder transforming the data after retrieval.
<ArchBeOS>
it's a bit tricky. if we do it based off of where clause we have the possibility of hitting the DB > 1000 times an hour. Maybe I should just dump it into a SQLITE memory table...
vpretzel has joined #ruby
<ArchBeOS>
this is for a QA/WATIR tool I am creating
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<hanmac>
ALVAN: you need to update … 1.8.6 died long ago and isnt even API compatible … 1.8.7 died this summer
abunashir has joined #ruby
<ALVAN>
hanmac: well is centos 5.7 cant update so easily
iamjarvo_ has joined #ruby
senayar has joined #ruby
Catie has joined #ruby
saysjonathan has joined #ruby
michael_mbp is now known as zz_michael_mbp
<hanmac>
even centos should have 1.8.7 as minimum
<Flashmasterson>
i know nothing about programming or building web applications - will reading The Well_grounded Rubyist make learning rails easier and more fun?
senayar__ has joined #ruby
julweber has joined #ruby
senayar_ has quit [Read error: Connection reset by peer]
zoee has quit [Quit: zoee]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Remote host closed the connection]
awarner_ has joined #ruby
julweber has quit [Remote host closed the connection]
crazymykl has joined #ruby
mikemac has quit [Ping timeout: 245 seconds]
publicjohn has joined #ruby
<hanmac>
for others: "the state security says that they cant show the infomation about a person to some of the politicans because this would be to much work"
Davey has joined #ruby
schaerli has quit [Remote host closed the connection]
cody-- has joined #ruby
schaerli has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
awarner has quit [Ping timeout: 264 seconds]
jonathanwallace has joined #ruby
publicjohn has quit [Client Quit]
shaunbaker has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
rylev_ has quit [Remote host closed the connection]
polymar has quit [Remote host closed the connection]
shaunbaker has joined #ruby
polymar has joined #ruby
rylev has joined #ruby
starfox21 has joined #ruby
MrV_ has quit [Quit: MrV_]
jlast has joined #ruby
schaerli has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
jonathanwallace has quit [Ping timeout: 272 seconds]
siwica has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
predator117 has joined #ruby
burlyscudd has joined #ruby
rylev has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
atSetKey has joined #ruby
_if has joined #ruby
mparramon has left #ruby [#ruby]
near89 has quit [Quit: Page closed]
burlyscudd has quit [Client Quit]
sambao21 has joined #ruby
neo_ has joined #ruby
zarubin has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has joined #ruby
iamjarvo has joined #ruby
siwica has quit [Ping timeout: 246 seconds]
smirn0v has joined #ruby
mansi has joined #ruby
atSetKey has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
dhamidi has quit [Ping timeout: 248 seconds]
Clooth has quit [Quit: Leaving...]
camilasan has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
theRoUS has joined #ruby
rylev has joined #ruby
petey has joined #ruby
_if has quit [Read error: Connection reset by peer]
rylev has quit [Read error: Connection reset by peer]
rylev_ has joined #ruby
zz_michael_mbp is now known as michael_mbp
jezen has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 246 seconds]
rylev_ has quit [Remote host closed the connection]
jezen has joined #ruby
rylev has joined #ruby
jezen has quit [Remote host closed the connection]
smirn0v has joined #ruby
kevinykchan has joined #ruby
brockf has quit [Ping timeout: 264 seconds]
smirn0v has quit [Client Quit]
zz_tsykoduk is now known as tsykoduk
rylev has quit [Ping timeout: 246 seconds]
endash_ has quit [Quit: endash_]
smirn0v has joined #ruby
sayan has quit [Quit: Leaving]
jbpros has quit [Quit: jbpros]
mando has joined #ruby
predator117 has joined #ruby
|PiP|` has quit [Ping timeout: 248 seconds]
kindjal has joined #ruby
Flashmasterson has quit [Quit: Leaving.]
alup has quit [Quit: Leaving]
endash_ has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
petey has quit [Remote host closed the connection]
tabolario has joined #ruby
senayar__ has quit [Remote host closed the connection]
senayar has joined #ruby
jnoob22 has quit [Remote host closed the connection]
sambao21 has joined #ruby
publicjohn has joined #ruby
publicjohn has left #ruby [#ruby]
ndrei has joined #ruby
kpshek has quit []
sambao21 has quit [Client Quit]
endash_ has quit [Quit: endash_]
iamjarvo_ has joined #ruby
elux has joined #ruby
sambao21 has joined #ruby
fijimunk1i has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Ping timeout: 272 seconds]
jrhe has quit [Quit: jrhe]
aganov has quit [Remote host closed the connection]
kazuuu_ has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
kazuuu has joined #ruby
fijimunkii has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
TMM has quit [Quit: Ex-Chat]
petey has joined #ruby
kpshek has joined #ruby
colonolGron has joined #ruby
|PiP| has joined #ruby
RichardBaker has joined #ruby
bean has joined #ruby
zcreative has joined #ruby
RichardBaker has quit [Client Quit]
xk_id has quit [Quit:
pel_daniel has joined #ruby
MisutoWolf has joined #ruby
pen has joined #ruby
<shevy>
hanmac is ein Schutzargument, die Behörde muss gewährleisten das diese Daten einsehbar sind, die Kostenfrage ist irrelevant. typische behördliche Verzögerungstaktik
claymore has quit [Remote host closed the connection]
<MisutoWolf>
Hello! I've got a bit of a question regarding rspec and UDP sockets. Essentially, I'm writing a library that's going to deal with the Source Engine protocol, and I'm (upon recommendation from a friend) using TDD.
<MisutoWolf>
I was told that I shouldn't rely on actual game servers for testing (makes sense), but I don't know enough about Mocking to understand how I should mock the existence of such a server.
xk_id has joined #ruby
<mikecmpbll>
how are you interacting with a game server
sambao21 has quit [Quit: Computer has gone to sleep.]
<mikecmpbll>
grabbing data?
<MisutoWolf>
sending various requests and getting responses via UDP packets, I suppose
<workmad3>
MisutoWolf: so you're basically writing a client wrapper around a protocol, yes?
<workmad3>
MisutoWolf: I wouldn't go with a standard TDD approach with that tbh
Senjai has joined #ruby
petey has quit [Remote host closed the connection]
<MisutoWolf>
I see.
rylev has joined #ruby
<workmad3>
MisutoWolf: you're dealing with a fixed, specified target... I'd start with a low-level wrapper that deals with the protocol directly
shaunbaker has joined #ruby
Ox6abe_ has joined #ruby
tjbarber has joined #ruby
<workmad3>
MisutoWolf: and write all the tests for that in advance based off the protocol docs
MrZYX|off is now known as MrZYX
<workmad3>
MisutoWolf: those would be in the form of 'this low level method should put a packet like X into the socket'
<MisutoWolf>
I guess I'm just sort of overwhelmed. I love the language so far, and I'm understanding the protocol fine. This is my first Ruby project, really.
<workmad3>
MisutoWolf: once you have your low level interface, you can provide a stub version of it for testing a higher-level protocol around it that is done with more TDD style dev :)
<MisutoWolf>
Cool.
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<workmad3>
MisutoWolf: but that first, low level wrapper... well, that's a one-one relationship that you already know... you don't need to drive your design out with tests, you just need to get it (or some subset of it that you're supporting) implemented and putting stuff on the wire
tdk2fe has quit [Remote host closed the connection]
<bean>
can't say I have any experience with things like that, thumpba
jrhe has joined #ruby
someish has quit [Quit: someish]
m8 has joined #ruby
<thumpba>
cool no prob bean, maybe someone else knows about getting rid of the invalid byte sequence in US-ASCII (ArgumentError)
nari has quit [Ping timeout: 252 seconds]
<bean>
could try setting our LANG / LC_ALL to en_US.UTF-8
<bean>
also depends on your ruby version i guess
kobain has joined #ruby
<thumpba>
ruby 1.9.3p194
atSetKey has joined #ruby
Ox6abe has joined #ruby
m8 has quit [Max SendQ exceeded]
bricker`1A has joined #ruby
RichardBaker has joined #ruby
<calmyournerves>
thumpba: add "# encoding: UTF-8" to the top of the file contaning special chars
<MisutoWolf>
Mmm, I really like this IDE I'm using. It's nice.
mklappstuhl has joined #ruby
m8 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
tewmten has quit [Ping timeout: 248 seconds]
boxmein has joined #ruby
michael_mbp is now known as zz_michael_mbp
bricker`LA has quit [Ping timeout: 272 seconds]
vince_prignano has joined #ruby
senayar has quit [Remote host closed the connection]
io_syl has quit []
senayar has joined #ruby
m8 has quit [Max SendQ exceeded]
<shevy>
bean yeah, and fdf is silent now too
Coolhand has quit [Ping timeout: 264 seconds]
brennanM_ has joined #ruby
<shevy>
MisutoWolf notepad
m8 has joined #ruby
jerrad has quit [Quit: Leaving...]
<thumpba>
calmyournerves: ill try that...i wasn't aware of any special char in that file until now
<fdf>
bean: thanks i`ll try set on Net::HTTP.get_response(uri)
atSetKey has quit [Ping timeout: 265 seconds]
glaksmono has joined #ruby
Coolhand has joined #ruby
siwica has quit [Ping timeout: 240 seconds]
awarner_ has quit [Remote host closed the connection]
burlyscudd has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
senayar has quit [Read error: Operation timed out]
jibi has joined #ruby
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awarner has joined #ruby
Deele has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
tjbiddle has joined #ruby
<calmyournerves>
thumpba: pretty much the first thing to check if you get that error :)
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
oth has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
Xeago has quit [Remote host closed the connection]
terrellt has left #ruby [#ruby]
freezey has quit [Remote host closed the connection]
tewmten has joined #ruby
Mohan_ has quit [Ping timeout: 250 seconds]
mrnugget has quit [Quit: mrnugget]
banisterfiend has quit [Quit: Computer has gone to sleep.]
rubyracer has quit [Quit: Konversation terminated!]
schaerli has joined #ruby
funburn has joined #ruby
theRoUS has quit [Quit: Leaving]
funburn has quit [Client Quit]
siwica has joined #ruby
saarinen has quit [Quit: saarinen]
zz_michael_mbp is now known as michael_mbp
rylev has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
T_T has joined #ruby
superscott[8] has joined #ruby
thumpba has quit [Quit: thumpba]
Voodoofish430 has joined #ruby
dawkirst has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
fixnum has joined #ruby
thumpba has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
dzhulk has joined #ruby
iamjarvo has joined #ruby
swordsmanz has quit [Quit: swordsmanz]
Lewix has joined #ruby
dhruvasagar has joined #ruby
mando has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
saarinen has joined #ruby
terrellt has joined #ruby
mando has joined #ruby
felipefdl has joined #ruby
felipefdl has left #ruby [#ruby]
kazuuu has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<tvw>
Is there a way in rake sh, to suppress echoing the command itself, put keep the output visible?
nomenkun has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
ahawkins has quit [Quit: leaving]
noname001__ has quit [Read error: Operation timed out]
ahawkins has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
sambao21 has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<fixnum>
I want to use turnip and rspec for my Sinatra app, but when I run tests, rspec can't find "visit" method. Here is the bare app https://github.com/fixnum/jet_fuel
<fixnum>
Please help
mando has quit [Ping timeout: 246 seconds]
ferdev has quit [Quit: ferdev]
Jdubs has quit [Read error: Connection reset by peer]
swordsmanz has joined #ruby
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abunashir has quit [Remote host closed the connection]
Jdubs has joined #ruby
JohnBat26 has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 272 seconds]
angusigu1ss has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
aknagi has quit [Quit: aknagi]
angusiguess has quit [Ping timeout: 245 seconds]
spike|spiegel has quit [Quit: WeeChat 0.4.1]
lkba has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Jdubs has quit [Read error: Connection reset by peer]
fntzr has quit [Quit: Leaving]
spike|spiegel has joined #ruby
Ox6abe has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
Jdubs has joined #ruby
marcdel has joined #ruby
jso_ is now known as jso
siwica has quit [Quit: siwica]
kaspergrubbe has quit [Ping timeout: 272 seconds]
c0rn has joined #ruby
BizarreCake has quit [Ping timeout: 272 seconds]
ahawkins has quit [Quit: leaving]
Jdubs has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
mlpinit_ has joined #ruby
<Morrolan>
Needs to be the first or second line, last I checked.
mlpinit_ has quit [Remote host closed the connection]
<Morrolan>
(Second only if the first one is the shebang line)
sambao21 has joined #ruby
<fixnum>
How to connect capybara to Sinatra
SilverKey has quit [Quit: Sleep now]
<fixnum>
Please help me, I can't move forward without it. I don't know, I am too newbie to understand the source of those things.
Jdubs has quit [Read error: Connection reset by peer]
<Morrolan>
Just stick around for an hour or two, on IRC it often takes a while until someone shows up who knows the answer.
Jdubs has joined #ruby
relix has joined #ruby
mary5030_ has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 264 seconds]
jlebrech has quit [Quit: Konversation terminated!]
mary5030 has joined #ruby
mansi has joined #ruby
codezomb has joined #ruby
ramblex has quit [Remote host closed the connection]
anternat has quit [Ping timeout: 252 seconds]
schaerli has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
fixnum: shouting "fuck you guys" is a sure recipe not to get any help whatsoever. learn some manners.
yairgo has joined #ruby
havenwood has joined #ruby
Jdubs has quit [Remote host closed the connection]
<fixnum>
apeiros, I'm sorry, I will be polite and won't offend anybody.
rahulkmr has quit [Ping timeout: 265 seconds]
maycon has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
Jdubs has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smirn0v has joined #ruby
yairgo has quit [Client Quit]
AndChat| has joined #ruby
Jdubs has quit [Read error: No route to host]
Bosox20051 has quit [Quit: Leaving]
burlyscudd has quit [Quit: Leaving.]
Jdubs has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
_bart has quit [Ping timeout: 264 seconds]
petey has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 272 seconds]
Jdubs has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
zodiak has joined #ruby
cogen_ has joined #ruby
anternat has joined #ruby
rahulkmr has joined #ruby
anternat is now known as Guest63036
Jdubs has joined #ruby
mlpinit has joined #ruby
araujo has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
Monie has joined #ruby
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RORgasm has quit [Remote host closed the connection]
Jdubs has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
Jdubs has joined #ruby
Nogbit has joined #ruby
Nogbit has left #ruby [#ruby]
SilverKey has joined #ruby
dallasm_ has joined #ruby
kmckelvi_ has quit [Remote host closed the connection]
twoism has joined #ruby
kmckelvin has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
avril14th has quit [Read error: Connection reset by peer]
Jdubs has quit [Read error: Connection reset by peer]
kaldrenon has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
aknagi has joined #ruby
atSetKey has joined #ruby
Jdubs has joined #ruby
proxie has joined #ruby
<shevy>
hehe
<shevy>
fixnum problem is, I dont know capybara nor sinatra so I cant help
larissa has joined #ruby
<shevy>
.cgi files FOREVER!
Zai00 has quit [Quit: Zai00]
<Morrolan>
Phew, that's a dangerous thing to say. :o
kmckelvin has quit [Ping timeout: 272 seconds]
michael_mbp is now known as zz_michael_mbp
Jdubs has quit [Read error: Connection reset by peer]
Jdubs has joined #ruby
atSetKey has quit [Ping timeout: 245 seconds]
jeffdb has joined #ruby
mzdravkov has joined #ruby
freezey has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
poisonarms has joined #ruby
rylev has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
_bart has joined #ruby
someish has joined #ruby
whunt has joined #ruby
kenneth has joined #ruby
Jdubs has joined #ruby
adeponte has joined #ruby
pragmatism has joined #ruby
<shevy>
yeah
<shevy>
but I am also secretly learning rails now
olivier_bK has quit [Ping timeout: 252 seconds]
dzhulk has quit [Quit: Leaving.]
|PiP| has quit [Ping timeout: 240 seconds]
basmoura has joined #ruby
petey has joined #ruby
io_syl has joined #ruby
alx- has quit [Quit: Leaving...]
<shevy>
hmmmmm
<shevy>
"You can think of the Ruby on Rails Tutorial as a video game where you are the main character, and where you level up as a Rails developer in each chapter."
rahulkmr has quit [Read error: Operation timed out]
Advocation has quit [Quit: Advocation]
volty has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
sguselnikov has joined #ruby
sguselnikov has quit [Client Quit]
kmckelvin has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
_bart has quit [Remote host closed the connection]
Jdubs has joined #ruby
tatsuya__ has joined #ruby
petey has quit [Remote host closed the connection]
tatsuya_o has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
aknagi has joined #ruby
dzhulk has joined #ruby
Heero has quit [Ping timeout: 265 seconds]
Jdubs has quit [Read error: Connection reset by peer]
icemancast has joined #ruby
Jdubs has joined #ruby
tjad has quit [Ping timeout: 272 seconds]
awc737 has quit [Excess Flood]
kazuuu has quit [Remote host closed the connection]
Jdubs has quit [Read error: Connection reset by peer]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
kmckelvin has quit [Remote host closed the connection]
amacgregor has joined #ruby
arietis has joined #ruby
kazuuu has joined #ruby
starfox21 has quit [Quit: starfox21]
kmckelvin has joined #ruby
peterhu has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
Jdubs has joined #ruby
peterhu has joined #ruby
marcdel has joined #ruby
awc737 has joined #ruby
<waxjar>
it looks like an infinite loop that just keeps replacing the first two elements of an array
tatsuya__ has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
tatsuya_o has joined #ruby
moted has quit [Quit: moted]
gemmy has joined #ruby
<volty>
h = { :k1 => 1, :k2 => 2 }; h.reduce(0) { |t, h} } // any idea about a simple construct so that I can receive the key:value pair in separate variables and write { |t, k, v| ... } ?
sayan has joined #ruby
kazuuu has quit [Ping timeout: 245 seconds]
kmckelvin has quit [Ping timeout: 240 seconds]
<platzhirsch1>
it prints the number 4613732, but I don't see, how to get all numbers from 1 to n
theRoUS has joined #ruby
<hanmac>
volty |t,(k.v)|
i_s has quit [Remote host closed the connection]
<hanmac>
no i mean |t,(k,v)|
zastern has joined #ruby
razi has joined #ruby
<volty>
thanks a lot hanmac, i would bet it's thee but didn't know about all this progress :
<volty>
:)
<platzhirsch1>
(1..Float::INFINITY).lazy.map{|n| (0..n).inject([1,0]) {|(a,b), _| [b, a+b]}[0] }.take_while{|n| n < 4000000}.to_a this works. I don't get why its selected based if it's even or odd and then sumed up
mary5030_ has joined #ruby
JZTech101 has joined #ruby
<waxjar>
platzhirsch1: that's the problem description
<waxjar>
"By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms."
tatsuya_o has quit [Ping timeout: 245 seconds]
<platzhirsch1>
waxjar: ouch
aknagi has quit [Quit: aknagi]
<platzhirsch1>
thanks, that was.. obvious
petey has joined #ruby
starfox21 has joined #ruby
<hanmac>
platzhirsch1: i would recoment to replace the Range with 1.upto(Float::INFINITY).lazy… imo it looks better and makes more sense
xk_id has joined #ruby
endash_ has joined #ruby
roychri has joined #ruby
<platzhirsch1>
yeah, but since I am not interested in this kind of solution, I can drop the beginning altogether
kirun has quit [Ping timeout: 252 seconds]
<hanmac>
yeah, lets drop it ! ;D
mary5030 has quit [Ping timeout: 272 seconds]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has joined #ruby
aspires has quit [Quit: aspires]
bradhe has quit [Ping timeout: 248 seconds]
Jdubs has quit [Read error: Connection reset by peer]
aspires has joined #ruby
zarubin has quit [Ping timeout: 264 seconds]
Jdubs has joined #ruby
maletor has joined #ruby
<waxjar>
i really like the Hash-with-default-proc solutions
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jdubs has quit [Read error: Connection reset by peer]
sayan has quit [Ping timeout: 272 seconds]
<mzdravkov>
does someone have an idea why in my project i specify ruby version of 1.9.3 in Gemfile but it installs 1.9.1 in vendor/bundle/ruby even if i dont have any 1.9.1 on my system (i use rvm)
Jdubs has joined #ruby
<hanmac>
mzdravkov: compare API and ABI version … 1.9.3 has still the same API version than 1.9.1
<platzhirsch1>
Well I guess the implementation does not translate very well into JRuby
<platzhirsch1>
Hash Auto-Memomization, I don't know..
claymore has joined #ruby
newbiehacker_ has joined #ruby
freezey has quit [Remote host closed the connection]
<platzhirsch1>
also I have huge variations, one time it executes in 18sec, the other in 1m20s
Monie has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
gmas has joined #ruby
bradhe has joined #ruby
<hanmac>
platzhirsch1: for mri, for jruby or for both?
larissa has quit [Quit: Leaving]
<platzhirsch1>
hanmac: MRI, JRuby seems more stable
pkrnj has quit [Quit: Computer has gone to sleep.]
aknagi has quit [Quit: aknagi]
<hanmac>
volty you need to give cycle an timer, or you need to call take on the cycle, to_a on an "untamed" cycle does never work ;D
<volty>
imho should be overriden to return something like [... INFINITY ... ] :)
mando has quit [Remote host closed the connection]
<volty>
ya, i know, I was arguing here with bnagy
<tjbarber>
hey guys, I have some columns in a database that contain mysql geospatial types and I need to convert them to a coordinate string. I'm using the Sequel database toolkit… any ideas?
gcds has joined #ruby
mando has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
razi has quit [Quit: Leaving.]
vince_prignano has quit []
<hanmac>
volty: hm i may made a request so that methods that return an full array like to_a will raise an ArgError if the enumerator is infinite ...
<volty>
or exception "Infinite array" or "Not applicable", you can of course thing that it is ok to leave it this way, but one thing you cannot do is saying to me that I'm ignorant because I have this opinion
braincrash has quit [Ping timeout: 245 seconds]
<volty>
hanmac: exactly, I did it here locally (just for testing purposes)
braincrash has joined #ruby
razi has joined #ruby
<Freeaqingme>
Hi. I'm trying to resolve a host using Resolv::DNS.open .getresources(hostname, type); But when I specify type as a string, I get an error that it's not a valid class/module. How could I use the method while specifying the desired type in a string? http://pastebin.com/Y2Gu8PZF
ewnd9_ has quit [Ping timeout: 248 seconds]
mando has quit [Ping timeout: 272 seconds]
theRoUS has quit [Ping timeout: 272 seconds]
<volty>
somebody (or the same man) was argiuing that it is about infinite structures but it is not so: we are about infinite memory // you can have an infinite array if it is a lazy one
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<MrZYX>
Freeaqingme: you could just use get_const
<MrZYX>
eh, const_get
momomomomo has joined #ruby
mansi has quit [Read error: Connection reset by peer]
* hanmac
is sometimes also lazy … that doesnt make me infinite … as far as i know ;P
marcdel has joined #ruby
axl_ has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
<Freeaqingme>
MrZYX, thanks.
mansi has joined #ruby
robustus has joined #ruby
peterhu has joined #ruby
peregrine81 has joined #ruby
<Freeaqingme>
MrZYX, when I use Object.const_get <string>, I get an error "Error: wrong constant name Resolv::DNS::Resource::IN::AAAA". Could you help me out there?
a1ph4g33k has joined #ruby
<MrZYX>
hint: Resolv::DNS::Resource::IN is an object too
|PiP|` has joined #ruby
starfox21 has quit [Quit: starfox21]
havenwood has quit [Remote host closed the connection]
axl_ has joined #ruby
<Freeaqingme>
MrZYX, oh right. I should look into how ruby handles constants. Works!
drumsrgr8forn8 has joined #ruby
ehc has quit [Quit: ehc]
i_s has quit [Remote host closed the connection]
petey_ has quit [Remote host closed the connection]
starfox21 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
starfox21 has quit [Client Quit]
i_s has joined #ruby
allsystemsarego has quit [Quit: Leaving]
starfox21 has joined #ruby
saarinen has quit [Quit: saarinen]
sambao21 has joined #ruby
jrhe has joined #ruby
aknagi has joined #ruby
mocfive has quit [Remote host closed the connection]
starfox21 has quit [Client Quit]
Al___ has joined #ruby
Al___ has quit [Client Quit]
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
btanaka has joined #ruby
starfox21 has joined #ruby
razi has quit [Quit: Leaving.]
user__ has quit [Remote host closed the connection]
<TMM>
hi all! I have a question, I'm seeing a difference in my code by only changing an Array#find_all call into an Array#select call leaving all code otherwise untouched
<TMM>
aren't those supposed to be aliases?
<MrZYX>
they, are. Do you have a code example?
vince_prignano has joined #ruby
<hanmac>
MrZYX: hm they are not … find_all is defined in Enumerable and select is overwritten in Array
vince_prignano has quit [Client Quit]
<MrZYX>
hmm
starfox21 has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
<hanmac>
but normaly they should react the same ...
<TMM>
I'm actually still not entirely sure I understand
ryandeussing has joined #ruby
<MrZYX>
do you know how Enumerable works?
<hanmac>
MrZYX: in method defs they are like required named parameters
<TMM>
"(item is in ...)" what does that mean?
<MrZYX>
hanmac: ah yeah, I remember now
<vasilakisFiL>
hi I have a module Helpers (and a method in it) in a lib dir and in the spec/ dir I try to write some tests..however when I hit rspec spec it says uninitialized constant Helpers (NameError) what am I doing wrong ?
<vasilakisFiL>
I have tried to require the helpers file without luck
kmckelvin has quit [Remote host closed the connection]
<hanmac>
MrZYX: in ruby 2.0 you need the nils because key args are needed optional, in ruby 2.1 you can have them requireing
nomenkun has joined #ruby
<TMM>
MrZYX, the two versions still return different results in the end
<TMM>
select returns { k => v } whereas find_all returns [[k, v]]
notjohn has joined #ruby
tvw has joined #ruby
<MrZYX>
TMM: let me rephrase: So you hit two different methods here, Enumerable#find_all and Hash#select. Hash#select does yield key, value; while Enumerable#find_all is based on Hash#each which does yield [key, value]; (an array). Ruby has a feature called autosplat where it decomposes an array if it is yielded to a block with more parameters. So what you get in item in #find_all is [key, value], however in #select you get only the key in item, your block doesn't process th
aknagi has joined #ruby
<MrZYX>
hm
<MrZYX>
was that over the limit?
boxmein has joined #ruby
<TMM>
yes
yalue has quit [Quit: Leaving]
ryandeussing has quit [Remote host closed the connection]
<MrZYX>
Ruby has a feature called autosplat where it decomposes an array if it is yielded to a block with more parameters. So what you get in item in #find_all is [key, value], however in #select you get only the key in item, your block doesn't process the second parameter yielded to it
<TMM>
MrZYX, ok, thanks, that does explain better what I'm seeing. I had never heard of 'autosplat'
<workmad3>
TMM: it's kinda a fun feature
<TMM>
I have a love/hate relationship with ruby's fun features
<workmad3>
TMM: you can also de-structure arrays directly in your block parameters
mando has joined #ruby
havenwood has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
<TMM>
usually hate when I first learn about them because it's always like this, when something seemingly random happens :P
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty>
what I don't find much useful is the |x; y| construct. But maybe I miss something, maybe the block cuold be executed in a different scope/binding that has that 'y' defined?
ssvo has quit [Ping timeout: 245 seconds]
<TMM>
on a completely different note: Is there an equivalent to something like blah.map { |i| i + 10 if i > 5 }.compact?
DrCode has joined #ruby
<workmad3>
TMM: equivalent in what way?
petey has quit [Remote host closed the connection]
xk_id has joined #ruby
<workmad3>
>> (1..10).to_a.map { |i| i + 10 if i > 5 }.compact?
<hanmac>
apeiros: force means to resolve the lazyness
jalcine_ has joined #ruby
<apeiros>
blerp, they omitted to document it…
Deele has quit [Ping timeout: 260 seconds]
intuxicated has quit [Ping timeout: 265 seconds]
burlyscudd has quit [Quit: Leaving.]
* hanmac
is now known as "Hanmac - Raider of the lost methods"
vasilakisFiL has left #ruby ["Konversation terminated!"]
<aknagi>
hanmac: lol
Banistergalaxy has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
ravster has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
newbiehacker_ has quit [Ping timeout: 264 seconds]
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jdubs has joined #ruby
Deele has joined #ruby
_JamieD_ has joined #ruby
Mozee has joined #ruby
Mozee has left #ruby [#ruby]
IceyEC has quit [Quit: IceyEC]
Mozee has joined #ruby
Mozee has left #ruby [#ruby]
mzdravkov has left #ruby [#ruby]
aspires has joined #ruby
aknagi has quit [Quit: aknagi]
<momomomomo>
Question - I'm thinking about creating a restful API / service that runs on sinatra. This service will need to constantly be running the same job (i.e.: parsing multiple streams of data, never-ending). Currently use Resque for my background-jobs, but this seems wrong in this case as it's a permanent job (which will be emitting and receiving messages). Thoughts?
kurt21 has joined #ruby
tsykoduk is now known as zz_tsykoduk
kpshek has quit []
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
fgo has joined #ruby
notjohn has joined #ruby
saarinen has joined #ruby
ravster has joined #ruby
<momomomomo>
:/ Maybe I'll ask on Monday haha
<_HolyCow>
momomomomo: Ruby Rogues 122 is all about daemons
interactionjaxsn has quit [Ping timeout: 240 seconds]
TMM has quit [Ping timeout: 264 seconds]
<momomomomo>
_HolyCow: Right on - do they discuss making daemons RESTful?
jonathanwallace has quit [Read error: Operation timed out]
sambao21 has joined #ruby
ldnunes has quit [Quit: Leaving]
cescalante is now known as ce_afk
DanKnox is now known as DanKnox_away
<momomomomo>
ie: I'd like my job to emit messages on events, and to receive messages _HolyCow
<aedorn>
daemons and REST aren't exactly compatible items
<aedorn>
You want two separate things here ...
<_HolyCow>
I don't know your use case but it does seem like two services
breakingthings has quit []
<aedorn>
Just as you kind of have now with Resque, in this case you wouldn't use Resque as your background process service, you would make a new one - which would just do the constant work and emit your messages back to whatever REST solution you do.
DanKnox_away is now known as DanKnox
<hanmac>
linux is a Pandemonium , Daemons everywhere! ;D
jrhe has quit [Quit: jrhe]
<momomomomo>
aedorn: How would it emit/receive the messages to/from other services (i.e.: a Sinatra app)
rins has quit [Ping timeout: 245 seconds]
Mars` has quit [Remote host closed the connection]
c0rn has joined #ruby
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
<_HolyCow>
write them to the same database or the background service can send them to the REST service using .... REST
Shidash has joined #ruby
gcds has quit [Quit: gcds]
reset has quit [Read error: Connection reset by peer]
<hanmac>
momomomomo: you need to use a magic keyword … i sugess "please", then the app will tell you the messages ;P …. or you could try to ask at #sinatra if you want serious answers ;P
carlyle has quit [Remote host closed the connection]
<aedorn>
momomomomo: Socket, file descriptor, database, key store, text file. Anything that allows reading and writing.
<_HolyCow>
or rather same "datastore" not necessarily a database
r0bby_ has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
RichardBaker has joined #ruby
adambeynon has joined #ruby
Elhu has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
<momomomomo>
aedorn: _HolyCow would it be a bad smell to open up a persistent connection with the REST service, and just send data down a socket?
Kar- has quit [Ping timeout: 264 seconds]
c0rn has quit [Ping timeout: 240 seconds]
<aedorn>
There's nothing from stopping you doing that, you just have to make sure it's non-blocking. Up to you to decide if you need some kind of persistent store or worry about data corruption if one piece fails.
r0bby_ has quit [Ping timeout: 272 seconds]
timonv has quit [Read error: Operation timed out]
<hanmac>
maybe add a caching layer so that it only calls the rest service if its nessesary
bean has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Client Quit]
sailias has quit [Quit: Leaving.]
roychri has left #ruby [#ruby]
<momomomomo>
hanmac: Not sure if I follow - wouldn't the service still need to contact the Sinatra app via socket even if there was a cache layer?
c0rn has joined #ruby
<hanmac>
hm i dont know, i never used sinatra before
<aedorn>
So that's like a red flag. Your persistently running background service worker is contacting a web application
<momomomomo>
aedorn: I'm reading in a stream of objects; when objects come down the pipeline in the stream, I need to notify the app to add it to a background job and do work with it
danman has joined #ruby
mengu has quit [Remote host closed the connection]
<momomomomo>
aedorn: the stream is never-ending, and doesn't belong on the web-app itself
mengu has joined #ruby
<momomomomo>
aedorn: hanmac Trying to wrap my head around a good solution
jerius has quit [Ping timeout: 272 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elux has quit [Quit: Bye!]
sambao21 has quit [Quit: Computer has gone to sleep.]
harrymoreno has quit [Remote host closed the connection]
<aedorn>
What does your web application do? I mean, not what it does right now. What is the end purpose of it? Is it just a web view to show objects in queue, finished objects, etc?
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d45h has joined #ruby
prezJFK has joined #ruby
mengu__ has joined #ruby
mengu has quit [Read error: Connection reset by peer]
thumpba has quit [Quit: thumpba]
<momomomomo>
Nah. It's pretty simple, conceptually - I'm taking down a stream of Facebook data for a varying number of pages. For each page, I'll get notified of when a new post is available. When that happens, I'll send that new post object from my daemon to my Sinatra app, OR simply to Redis or other datastore
kaldrenon has quit [Remote host closed the connection]
<momomomomo>
then, my Rails app has a BG job to periodically slurp up the pending objects; Background jobs on my Rails app handle things like small API calls to FB, measuring various metrics etc
kaldrenon has joined #ruby
<momomomomo>
In this way, I can reduce (exponentially) the number of calls I make to the FB api, while maintaining a constant connection, instead of doing periodic requests which will get me rate limited
zz_tsykoduk is now known as tsykoduk
<aedorn>
Then you have some sort of data scraper feeding data to your worker. That worker does whatever it needs to do and should push it to another data store for whatever processing or viewing you do after that.
mercwithamouth has quit [Ping timeout: 246 seconds]
<momomomomo>
That's the goal - but the stream is never ending, and I'm not sure if having a constantly running background worker on my Rails app is what I want
peregrine81 has quit []
<aedorn>
You shouldn't have that, or even think about having that to begin with, no.
Mars` has joined #ruby
jrhe has joined #ruby
MrPoT4tO has joined #ruby
Kar- has joined #ruby
lyanchih has quit [Quit: lyanchih]
<aedorn>
Is this all on the same machine? (Minus FB, obviously)
fijimunk1i has quit [Ping timeout: 240 seconds]
d45h has quit [Ping timeout: 265 seconds]
obs has joined #ruby
<momomomomo>
aedorn: Right - so at the moment I'm thinking of taking your suggestion and leaving the daemon without much outbound interaction, and just tossing all of the FB objects into Redis, and running a scheduled job on Rails to pull in the data every few minutes or so
twoism has quit [Remote host closed the connection]
<momomomomo>
aedorn: It will be for my prototype
<aedorn>
I'm not sure why you have Rails in this mix just for running something that sounds like background processing, though.
kaldrenon has quit [Ping timeout: 272 seconds]
<momomomomo>
Rails is in the mix for the web application
<momomomomo>
(interacting with users etc.)
<aedorn>
But you don't need to run a job within Rails in order to pull in data
<momomomomo>
the background jobs on the Rails app load data into the models (i.e.: FacebookPost model has data/logic for the web app)
<aedorn>
You can just write to the database directly at that point
Xeago has quit [Remote host closed the connection]
sambao21 has joined #ruby
<momomomomo>
aedorn: That's true, definitely, but I do like having my version history built via papertrail
Banistergalaxy has quit [Ping timeout: 240 seconds]
Jdubs has quit [Remote host closed the connection]
punktechnology has joined #ruby
Jdubs has joined #ruby
starfox21 has quit [Quit: starfox21]
Banistergalaxy has joined #ruby
punktechnology has quit [Client Quit]
kaspergrubbe has joined #ruby
thumpba has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
fijimunkii has joined #ruby
coderhs has quit [Ping timeout: 272 seconds]
bean has joined #ruby
<momomomomo>
aedorn: hanmac _HolyCow thanks for bouncing ideas - I'll check out that that Ruby Rogues post, and take a second look at where I put my background jobs / handle data versioning
<aedorn>
Hmm.. well, I'd make a single daemon that handled the queue - both in adding to it and working it, and at the end of the work just use a small API within the Rails app to post the final data object to it. Less messy that way
mrsolo_ has joined #ruby
v0n has joined #ruby
<aedorn>
Then you'd still have papertrail seeing the transactions/log/etc
peregrine81 has joined #ruby
Jdubs has quit [Ping timeout: 245 seconds]
SHyx0rmZ has joined #ruby
tsykoduk is now known as zz_tsykoduk
<momomomomo>
aedorn: Here's the thing though, the stream only sends partial data down (handled by Daemon 1), the background jobs on the Rails server handle API requests for up-to-date information outside of the stream. That too could be handled by a daemon, but I'd reckon a separate daemon from the stream consumer
destructure has quit [Quit: testing]
kazuuu has joined #ruby
kwatz has joined #ruby
kwatz is now known as destructure
luckyrub_ is now known as luckyruby
tatsuya_o has joined #ruby
<momomomomo>
aedorn: But I think I follow what you're saying. Have Daemon2 make its requests to the FB API / do work with it, then send a post request to the Rails app?
<momomomomo>
or put/patch
kazuuu has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
notjohn has quit [Ping timeout: 264 seconds]
bean has quit [Quit: Computer has gone to sleep.]
<aedorn>
Pretty much, yup.
chinkung has joined #ruby
nisstyre has joined #ruby
<momomomomo>
aedorn: Bueno, that sounds jiggly with me
Banistergalaxy has quit [Ping timeout: 240 seconds]
notjohn has joined #ruby
<momomomomo>
Thank you again - not many people to bounce ideas off of here, especially on a Friday night brain fart
jonathanwallace has joined #ruby
<momomomomo>
time to enjoy the last couple minutes of beer friday
momomomomo has quit [Quit: momomomomo]
Nahra has quit [Quit: leaving]
danshultz has joined #ruby
someish has joined #ruby
kung has quit [Ping timeout: 252 seconds]
zastern_ has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
rubyracer has quit [Read error: Connection reset by peer]
rubyracer has joined #ruby
a1ph4g33k has left #ruby ["Leaving"]
Rollabunna has quit [Remote host closed the connection]
bean has joined #ruby
jaynewstrom has quit [Remote host closed the connection]
zastern has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
thehodapp has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
bean has quit [Client Quit]
burlyscudd has quit [Ping timeout: 272 seconds]
cody-- has joined #ruby
T_T has quit [Remote host closed the connection]
thehodapp has quit [Read error: No route to host]
mrsolo_ has quit [Quit: This computer has gone to sleep]
SloggerKhan has left #ruby [#ruby]
T_T has joined #ruby
lukec has joined #ruby
thehodapp has joined #ruby
rubyracer has quit [Read error: Connection reset by peer]
_bart_ has joined #ruby
ndrei has quit [Read error: Operation timed out]
rubyracer has joined #ruby
MrZYX is now known as MrZYX|off
S0da has joined #ruby
icmpv6 has joined #ruby
<icmpv6>
ruby is shit.
<yxhuvud>
sure, but I dare you to find anything better.
<yxhuvud>
may be excempt.
<yxhuvud>
there was a beer missing there.
kevind has quit [Quit: kevind]
<hanmac>
blasphemy!!!
jonathanwallace has quit [Ping timeout: 272 seconds]
<icmpv6>
fuck ruby
Corey has joined #ruby
thehodapp has quit [Ping timeout: 246 seconds]
thehodapp1 has joined #ruby
baordog_ has quit [Remote host closed the connection]
<hanmac>
ping apeiros
fdf has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
<icmpv6>
fck
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fuadsaud has joined #ruby
tomzx_mac has joined #ruby
rgoodwin has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 248 seconds]
axl_ has quit [Quit: axl_]
rjhunter has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
<icmpv6>
hanmac
<pontiki>
easy ignore
Xeago has joined #ruby
seoNinjaWarrior has joined #ruby
<icmpv6>
wtf
<hanmac>
pontiki: like the doctor says: "running away is good, never coming back is better"
<pontiki>
yes :)
someish has quit [Quit: someish]
fuadsaud has quit [Remote host closed the connection]
cody-- has quit [Quit: derp]
blackmes1 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
DonRichie has quit [Quit: Verlassend]
aspires has quit [Quit: aspires]
Xeago has quit [Ping timeout: 272 seconds]
jlast has quit [Remote host closed the connection]
<thumpba>
i updated my ruby and am now using rvm, how do i get rid of these ruby errors and tell puppet to use the new version http://hastebin.com/nevipamuli.coffee
|PiP|` has joined #ruby
sparq_ has quit [Client Quit]
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
kurt21 has quit [Quit: Leaving.]
Jdubs has joined #ruby
mrsolo_ has joined #ruby
Xaitec has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<_bart>
From an examples folder in the root of a ruby gem, what's the best way to load the lib code? require './lib/maingemfilename' messes up the path for the require's in the lib ruby file itself and require 'maingemfilename' is resulting into LoadError.
rahult has joined #ruby
dash_ has quit [Ping timeout: 252 seconds]
<Xaitec>
What is one of the best gems to start a project in ruby to build a gem. Handles Gemfile well and all that goodness
tatsuya_o has quit [Read error: Operation timed out]