apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<platzhirsch> always I am in there creepy people start to send me weird private messages
tjbiddle has joined #ruby
thumpba has joined #ruby
thumpba has quit [Quit: thumpba]
shadoi has joined #ruby
beatboxchad has quit [Quit: Leaving.]
devoldmx has joined #ruby
peregrine81 has quit []
thumpba has joined #ruby
Snail has joined #ruby
Clooth has quit [Quit: Leaving...]
marius has joined #ruby
mercwith1mouth has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
Tricon has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Sail has joined #ruby
Sail is now known as Guest89238
kil0byte has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
T_T has joined #ruby
tjbiddle has joined #ruby
b00stfr3ak has quit [Ping timeout: 248 seconds]
brennanMKE has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
mklappstuhl has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 265 seconds]
benweint has quit [Quit: Computer has gone to sleep.]
Kneferilis has quit [Read error: Connection reset by peer]
ace_striker has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
ravster has joined #ruby
Guest89238 is now known as Sail-
banister`sleep has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
thumpba has quit [Quit: thumpba]
Lewix has joined #ruby
Spami has quit [Read error: Connection timed out]
tjbiddle has joined #ruby
Nogbit has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
travisjeffery has joined #ruby
jeffdb has joined #ruby
deens has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
unstable has joined #ruby
<unstable> How can I add all those id key/values? So I want to output the integer 248 (70+85+93)
kreeves has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
<volty> ... .keys.reduce(0, :+)
heidi has joined #ruby
geekjuice has joined #ruby
<unstable> jsonds2['menu']['items'].select { |hash| hash.has_key?('label') }.map { |hashes| hashes['id'] }.inject(:+)
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Log1x has quit [Ping timeout: 248 seconds]
<volty> jsonds2['menu']['items'].select { |hash| hash.has_key?('label') }.keys.reduce(:+)
geekjuice has quit [Client Quit]
<unstable> NoMethodError: undefined method `keys' for #<Array:0x007fcbcfcc6eb8>
<volty> sorry
<unstable> (What I pasted is working though)
<unstable> I'm wondering if there is a cleaner way to do it.
<volty> i didn't see the array's parens
<volty> yes
reset has joined #ruby
Vivekananda_ has quit [Read error: Connection reset by peer]
salt_ has joined #ruby
<unstable> yes what I pasted is the cleanest way?
nfk has quit [Client Quit]
<salt_> can anyone answer a capybara/rspec question for me?
Guest17567 has quit [Ping timeout: 240 seconds]
T_T has quit [Remote host closed the connection]
soba has joined #ruby
Nogbit has joined #ruby
carlosgaldino has joined #ruby
jsaak has quit [Ping timeout: 248 seconds]
<carlosgaldino> does anyone know the name of a gem that lets you add type signatures in your code?
hogeo has joined #ruby
kazuuu has joined #ruby
brennanMKE has joined #ruby
carlosgaldino has left #ruby ["Textual IRC Client: www.textualapp.com"]
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
<jrobeson> use a ruby lower than that version
Ox6abe has joined #ruby
<imthenachoman> jrobeson: ??
<imthenachoman> jrobeson: i need ruby 1.8
<jrobeson> does the program say it requires 1.9
<jrobeson> if so.. then you must use 1.9
cescalante is now known as ce_afk
<imthenachoman> jrobeson: no, i have 1.8, it works with 1.8 but i couldnt get it to work with 1.9 so im sticking with 1.8
Atrumx has quit [Quit: Quitting]
<jrobeson> itdoesn't seem like it's working to me..
<imthenachoman> holy crap. nevermind. i fixed it. WOOT WOOT WOOT
<imthenachoman> thank y'all
<imthenachoman> BRILLIANT! BRILLIANT!
io_syl has joined #ruby
fijimunkii has quit [Ping timeout: 248 seconds]
Guest53254 has quit [Remote host closed the connection]
Mars` has joined #ruby
mlpinit has joined #ruby
pragmatism has quit [Quit: pragmatism]
dhruvasagar has joined #ruby
<pontiki> salt: there's no @user variable, at least i don't see it...
<pontiki> also, salt: see that button at the bottom of the page on the left? that says "Additional Files" ????
<salt_> ahhhh got it
Ox6abe has quit [Ping timeout: 248 seconds]
<salt_> where would the @user be located
<salt_> would that be in the session_helper?
deens has quit [Ping timeout: 248 seconds]
<pontiki> i haven't done what you're doing, but i think it should be in user (defined by the let())
Mars` has quit [Ping timeout: 264 seconds]
NinjaPenguin has joined #ruby
jibi has quit [Quit: .]
NinjaPenguin_ has quit [Ping timeout: 248 seconds]
<salt_> hmmmm it definitely didn't like that
burlyscudd has joined #ruby
basmoura has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
<pontiki> then i think you need to set @user in the test
<pontiki> like @user = User.find(user.id)
<pontiki> idk
alx- has joined #ruby
saarinen has quit [Quit: saarinen]
<salt_> hmmm, i think @user comes from the user controller
kevinykchan has quit [Quit: Computer has gone to sleep.]
Eaven_ has quit [Remote host closed the connection]
peregrine81 has quit []
<salt_> which is there
Kar- has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
burlyscudd has quit [Ping timeout: 248 seconds]
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]
momomomomo has joined #ruby
Ox6abe has joined #ruby
ace_striker has joined #ruby
Kar- has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
Radar has joined #ruby
<Radar> So ghetto.
Radar has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
amacgregor_ has joined #ruby
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/
kreeves has quit [Ping timeout: 264 seconds]
<pontiki> whoa. 500 pages.
diegoviola has joined #ruby
skoovdebo has joined #ruby
T_T has quit [Remote host closed the connection]
<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> i get the following error: https://dpaste.de/eO3w
<diphtherial> (i've installed RubyInstaller as well as the devtools listed on the same site)
lyanchih has joined #ruby
schaerli has joined #ruby
<pontiki> no idea if it works on windows
<pontiki> it's not jekyll itself, but one of it's dependencies
<diphtherial> right, either "liquid" or "fast-stemmer", it seems
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
zz_michael_mbp is now known as michael_mbp
<pontiki> looks like fast-stemmer
<diphtherial> i read somewhere that it might have something to do with there being spaces in the path to either ruby itself or to the dev tools
<diphtherial> not really sure what to do about that aside from reinstalling both
<pontiki> what do those log files say?
Atrumx has joined #ruby
sergicles has quit [Quit: sergicles]
thecodethinker has joined #ruby
<thecodethinker> is there anyway to mixin a class to another class? or import the first classes methods?
<diphtherial> seems to be the same text it outputted to the console, i.e.: http://puu.sh/4N8DI.txt
<pontiki> i was afraid of that
<pontiki> really, no idea if it will work
deens has joined #ruby
Steve_1982 has quit []
wow000_ has quit [Quit: Page closed]
blaxter_ has joined #ruby
sergicles has joined #ruby
sergicles has quit [Client Quit]
haxrbyte has joined #ruby
<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]?
<hanmac> Fly80 yeah that what he requested
mrsolo__ has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
mrsolo_ has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
reset has quit [Quit: Linkinus - http://linkinus.com]
<Fly80> hanmac: so, no need to do an Array.new before? just "multi_arr = [a - b, a & b, b - a]"
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
mparramon_ has joined #ruby
<Veejay> Fly80: [] is basically an Array.new anyway
justsee has quit [Ping timeout: 248 seconds]
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.
abunashir has joined #ruby
Martinez has quit [Quit: ZNC - http://znc.in]
Intrepidd has joined #ruby
__Grabarz__ has joined #ruby
__Grabarz__ has left #ruby [#ruby]
Martinez has joined #ruby
Martinez has quit [Max SendQ exceeded]
lkba has joined #ruby
Martinez has joined #ruby
<dhamidi> Veejay: sounds like reference counting to me
Martinez has quit [Max SendQ exceeded]
wmoxam has joined #ruby
r0bgleeson has joined #ruby
Martinez has joined #ruby
himsin has quit [Ping timeout: 248 seconds]
Martinez has quit [Max SendQ exceeded]
abunashir has quit [Remote host closed the connection]
daveops_ has joined #ruby
Martinez has joined #ruby
abunashir has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
polymar has joined #ruby
polymar has quit [Remote host closed the connection]
<Veejay> dhamidi: Tags actually. Tags on articles.
polymar has joined #ruby
<Veejay> But that's reference counting yeah
Intrepidd has quit [Ping timeout: 252 seconds]
publicjohn has joined #ruby
abunashir has left #ruby [#ruby]
<shevy> Veejay call the method kill_when_nil
_adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
<olivier_bK> i dont understand why he tell me undefined method 'procesd' ?
lyanchih has quit [Quit: lyanchih]
Deele has quit [Quit: User excited]
<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 ?
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
Sail- has quit [Quit: Lost terminal]
Sail has joined #ruby
Sail is now known as Guest80880
seanodowd has quit [Quit: WeeChat 0.4.1]
workmad3 has quit [Quit: leaving]
<banisterfiend> arkiver /(.)\1+/
<banisterfiend> >> /(.)\1+/ =~ "ab"
<eval-in__> banisterfiend => nil (https://eval.in/53950)
<banisterfiend> >> /(.)\1+/ =~ "aa"
<eval-in__> banisterfiend => 0 (https://eval.in/53951)
workmad3 has joined #ruby
<banisterfiend> >> /(.)\1+/ =~ "ba"
<eval-in__> banisterfiend => nil (https://eval.in/53952)
<banisterfiend> >> /(.)\1+/ =~ "bb"
<eval-in__> banisterfiend => 0 (https://eval.in/53953)
polymar has quit [Remote host closed the connection]
Macaveli has joined #ruby
polymar has joined #ruby
jbpros has joined #ruby
blaxter_ is now known as blaxter
akemrir has joined #ruby
<krz> ive got a constant FOO_BAR = '....'. ive got a string 'foo_bar'. how can i convert the string foo_bar so it executes FOO_BAR?
<krz> eval?
<krz> or something else?
<arkiver> this is great. thanks banisterfiend
<arkiver> krz: def foo_bar FOO_BAR; end probably ?
Raboo has quit [Quit: leaving]
Tearan has joined #ruby
Tearan has quit [Client Quit]
mrsolo_ has quit [Quit: This computer has gone to sleep]
_JamieD_ has joined #ruby
justsee has quit [Ping timeout: 265 seconds]
Bry8Star{T2 has joined #ruby
kaldrenon has joined #ruby
nextdropping has quit [Ping timeout: 248 seconds]
mrsolo_ has joined #ruby
polymar has quit [Ping timeout: 264 seconds]
ChronocityLC has quit [Ping timeout: 248 seconds]
DrCode has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 252 seconds]
siwica has joined #ruby
Guest80880 has quit [Changing host]
Guest80880 has joined #ruby
Guest80880 is now known as pyc
workmad3 has quit [Quit: leaving]
nextdropping has joined #ruby
dzhulk has joined #ruby
kaldrenon has quit [Ping timeout: 272 seconds]
DrCode has joined #ruby
Kar- has joined #ruby
swordsmanz has joined #ruby
ldnunes has joined #ruby
mrsolo_ has quit [Quit: Leaving]
<Morrolan> >> class Foo; BAR = 123; end; Foo.const_get('bar'.upcase)
<eval-in__> Morrolan => 123 (https://eval.in/53954)
boxmein has joined #ruby
<Morrolan> krz: See above. But, err, usually there's better ways to solve whatever problem you might face. ;)
rjhunter has joined #ruby
<Morrolan> (Of course, it's hard to tell without knowing what you need it for)
pyc is now known as Sail_
jibi has quit [Quit: .]
sayan has quit [Ping timeout: 248 seconds]
allanm has quit [Read error: No route to host]
Macaveli has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
dbRenaud is now known as zz_dbRenaud
nari has quit [Ping timeout: 252 seconds]
dhamidi has joined #ruby
amritanshu_RnD has joined #ruby
colonolGron has quit [Quit: leaving]
Rollabunna has joined #ruby
xk_id has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
xk_id has quit [Client Quit]
hamakn has quit [Ping timeout: 248 seconds]
arkiver has quit [Remote host closed the connection]
jkamenik has joined #ruby
<b3hnam> Is any way to limit .each loop ?
<tobiasvl> b3hnam: limit how?
larissa has joined #ruby
Nss has joined #ruby
sayan has joined #ruby
<hanmac> b3hnam: "take" ?
S0da has joined #ruby
<b3hnam> tobiasvl: works like just for 10 items in my object like for i=0;i<10
<hanmac> >> ("a".."z").each.take(10)
<eval-in__> Hanmac => ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] (https://eval.in/53956)
zz_michael_mbp is now known as michael_mbp
cascalheira has quit [Quit: Leaving...]
<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?
<hoelzro> also, what process manager are you using?
<hoelzro> what OS?
<ZenGuy311> hoelzro: no.. i just went to http://sit/robots.txt .. sinatra doesn't know this ditty
<akemrir> hanmac: each_with_index
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hanmac> b3hnam: look at my code and then at yours again
<akemrir> b3hnam: each_with_index
<DefV> your code is now diamonds
<hanmac> akemrir: it depends some does not have each_with_index, like String for sample does have not
iamjarvo has joined #ruby
<DefV> I'm on a Matz
mlpinit has joined #ruby
<akemrir> hanmac: yes, thats right
<akemrir> b3hnam: @twitter is array?
mlpinit has quit [Remote host closed the connection]
vince_prignano has joined #ruby
iamjarvo has quit [Remote host closed the connection]
mlpinit has joined #ruby
iamjarvo has joined #ruby
<ZenGuy311> how do i add robots .txt file to .rb file using sinatra?
<akemrir> ZenGuy311: wrong channel?
<ZenGuy311> it's a ruby file akemrir
<b3hnam> tnx
<ZenGuy311> i'm not a programmer.. i just want to add one thing to a file
<tobiasvl> #sinatra
<ZenGuy311> oh ok
<ZenGuy311> thanks
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
nari has joined #ruby
cascalheira has joined #ruby
hjensas has joined #ruby
browndawg has joined #ruby
<akemrir> hanmac: On string you can use .split("") and then each_with_index
ics has joined #ruby
persand has quit [Quit: persand]
chuk_ is now known as chuk
smirn0v has joined #ruby
carraroj has joined #ruby
<Bofu2U> DefV: props for the "your code is now diamonds" - perfect way to start the day.
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<hanmac> akemrir: but .each_char.with_index is better
persand has joined #ruby
nextdropping has quit [Ping timeout: 248 seconds]
<hanmac> Bofu2U: does that mean "billion of years old" ? ;P
<Bofu2U> It means … I'm on a horse.
mikecmpbll has joined #ruby
cutmail has quit [Remote host closed the connection]
randomnick_ has joined #ruby
siwica has quit [Ping timeout: 264 seconds]
<akemrir> hanmac: yes, I agree
Weed37 has joined #ruby
mparramon has joined #ruby
breakingthings has joined #ruby
xk_id has joined #ruby
_bart has joined #ruby
nextdropping has joined #ruby
<_bart> Hi, I get Error sending notification with growl: undefined method `silent=' for #<Growl::Base:0x007fc7e0ce38a8>, when using Guard with Growl.
kil0byte_ has joined #ruby
<akemrir> _bart: You propably have somewher in settings call to this method, which maybe is undefined in yours version of Growl.
kil0byte has quit [Ping timeout: 252 seconds]
samuelkadolph has quit [Ping timeout: 240 seconds]
<akemrir> _bart: How you use growl?
samuelkadolph has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
<_bart> _bart: Installed newest Growl and GrowlNotify, added gem 'growl' and start guard.
gja has joined #ruby
<akemrir> _bart: I dont see any option silent in documentation. And this https://github.com/guard/guard/commit/d70bcf44e2d1ea97dfc5a0cc91d04f2f9b8ad618
<_bart> Ah that commit might be it
<_bart> someone messed up
justsee has joined #ruby
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]
<someish> In this code here: https://gist.github.com/saturday/34276dcca2a6d69a4b34 what is the "#<Api::V1::Task" part of the array? This is from a rails active record query?
relix has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
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]
|PiP| has quit [Ping timeout: 245 seconds]
|PiP|` has joined #ruby
schaerli has joined #ruby
sayan has joined #ruby
wallerdev has joined #ruby
diegoviola has joined #ruby
joast has quit [Quit: Leaving.]
browndawg has quit [Quit: Leaving.]
burlyscudd has quit [Quit: Leaving.]
coderhs has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
<hanmac> workmad3: beware of Halloween apples: https://i.chzbgr.com/maxW500/7844924928/h626477E2/
<sweeper> whooooo
<sweeper> totally doing that
schaerli has quit [Ping timeout: 248 seconds]
kofno has quit [Quit: leaving]
shaunbak_ has quit [Remote host closed the connection]
<workmad3> hanmac: if the onion was properly peeled, I think I'd prefer that :P
<sweeper> "just hold your noses kids, you won't be able to tell the difference"
michael_mbp is now known as zz_michael_mbp
* workmad3 doesn't like apples
kofno has joined #ruby
kofno has quit [Client Quit]
shaunbaker has joined #ruby
<workmad3> hanmac: especially if the 'toffee' was really a pickle or a chutney :)
T_T has quit [Remote host closed the connection]
kofno has joined #ruby
ephemerian has joined #ruby
baordog_ has joined #ruby
zz_michael_mbp is now known as michael_mbp
Kar- has joined #ruby
atSetKey has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
carraroj has quit [Ping timeout: 248 seconds]
shaunbaker has quit [Ping timeout: 245 seconds]
aedorn has joined #ruby
binaryplease has joined #ruby
cascalheira has quit [Ping timeout: 266 seconds]
jerius has joined #ruby
kazuuu has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.2]
<workmad3> hanmac: swords FTW!
<workmad3> just, please... not SWORD :(
prophile has quit [Ping timeout: 256 seconds]
kazuuu has joined #ruby
someish has quit [Quit: someish]
newbiehacker has joined #ruby
abunashir has joined #ruby
ce_afk is now known as cescalante
tomzx_mac has joined #ruby
<workmad3> hanmac: that would be worrying
shaunbaker has joined #ruby
<workmad3> hanmac: and I doubt my wife would approve :)
atSetKey has quit [Ping timeout: 245 seconds]
kay__ has joined #ruby
pen has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
devoldmx has quit [Ping timeout: 265 seconds]
alx- has joined #ruby
alx- has quit [Client Quit]
rubyracer has quit [Quit: Konversation terminated!]
prophile has joined #ruby
aknagi has joined #ruby
polaco_zZz is now known as polaco
cascalheira has joined #ruby
brennanMKE has joined #ruby
kpshek has joined #ruby
rahulkmr has joined #ruby
alx- has joined #ruby
rylev has quit [Remote host closed the connection]
drumsrgr8forn8 has joined #ruby
cescalante is now known as ce_afk
aspiers has quit [Ping timeout: 264 seconds]
rylev has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
kracekumar has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
rylev has quit [Read error: Connection reset by peer]
rylev_ has joined #ruby
joast has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
aspiers has joined #ruby
ffranz has joined #ruby
abunashir has quit [Remote host closed the connection]
ehc has joined #ruby
interactionjaxsn has joined #ruby
fuhgeddaboudit has joined #ruby
someish has joined #ruby
abunashir has joined #ruby
cody-- has quit [Quit: derp]
axl_ has joined #ruby
hogeo has quit [Ping timeout: 265 seconds]
AlSquire has joined #ruby
freezey has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
aryaching has joined #ruby
asobrasil has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abunashir has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
rubyracer has joined #ruby
abunashir has joined #ruby
anternat has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
<shevy> hanmac sounds as if an error made on purpose to get some rare coins out
freezey has quit [Ping timeout: 248 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
zarubin has quit [Ping timeout: 245 seconds]
zarubin has joined #ruby
hashpuppy has joined #ruby
Xeago has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 245 seconds]
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
kevind_ has joined #ruby
fntzr has joined #ruby
schaerli has joined #ruby
dross has joined #ruby
nessib has quit [Read error: Connection reset by peer]
polymar has quit [Remote host closed the connection]
persand has quit [Quit: persand]
polymar has joined #ruby
<hanmac> shevy: good that they didnt replace it with "judas" … i think that could be worse ; D
sambao21 has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
<shevy> hehe
rjhunter has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
<shevy> that would have been too difficult
polymar has quit [Remote host closed the connection]
atSetKey has joined #ruby
yacks has joined #ruby
polymar_ has joined #ruby
<shevy> they have to reason that it was a "mistake", judas would be two letters wrong
relix has joined #ruby
mary5030 has joined #ruby
funburn has joined #ruby
platzhirsch has joined #ruby
<shevy> Lesus is just one character incorrect
SeySayux_ is now known as SeySayux
hjensas has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
funburn has quit [Client Quit]
tjad has quit [Ping timeout: 272 seconds]
rubyred has joined #ruby
mary5030 has joined #ruby
blaxter has quit [Quit: foo]
rubyred is now known as red_guy
red_guy has left #ruby [#ruby]
ndrei has joined #ruby
iamjarvo has joined #ruby
Ox6abe has joined #ruby
camilasa_ has joined #ruby
abunashir has quit [Remote host closed the connection]
vince_prignano has quit []
io_syl has joined #ruby
nextdropping has quit [Ping timeout: 272 seconds]
larissa has quit [Quit: Leaving]
atSetKey has quit [Ping timeout: 245 seconds]
tvw has quit []
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
platzhirsch has left #ruby [#ruby]
tvw has joined #ruby
burlyscudd has joined #ruby
Stalkr^ has joined #ruby
banisterfiend has joined #ruby
camilasan has quit [Ping timeout: 248 seconds]
freezey has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
dangerousdave has quit [Quit: Leaving...]
larissa has joined #ruby
aknagi has quit [Quit: aknagi]
tomzx_mac has quit [Ping timeout: 245 seconds]
aknagi has joined #ruby
boxmein has joined #ruby
Bira_ has quit [Remote host closed the connection]
ALVAN has joined #ruby
tvw has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
momomomomo has joined #ruby
<ALVAN> hi can someone help me with this https://dpaste.de/MM2V/raw/
shevy has quit [Ping timeout: 240 seconds]
camilasa_ has quit [Remote host closed the connection]
xk_id has joined #ruby
momomomomo has quit [Client Quit]
DrShoggoth has joined #ruby
<ALVAN> i need to print each line from all files in a directory, if the line matches a string
fedalto has joined #ruby
kazuuu_ has joined #ruby
jprovazn has quit [Quit: Odcházím]
<hoelzro> why not just use grep in your shell?
boxmein has quit [Read error: Connection reset by peer]
jrhe has quit [Quit: jrhe]
lkba has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
haxrbyte_ has joined #ruby
Bira has joined #ruby
lyanchih has joined #ruby
iamjarvo has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<ALVAN> hoelzro: because i need it in ruby as i use chef to get the output not bash
kazuuu has quit [Ping timeout: 240 seconds]
<hanmac> ALVAN what about this? Dir.entries(conf_dir).select(&File.method(:directory?)).map {|path| File.foreach(path).grep(/cougar\.datasocue*URL/) }
iamjarvo has joined #ruby
mikecmpbll has joined #ruby
pen has quit [Remote host closed the connection]
Juan_br has joined #ruby
julian-delphiki has joined #ruby
jrhe has joined #ruby
wudofyr has quit [Ping timeout: 246 seconds]
camilasan has joined #ruby
<hanmac> hm or maybe flat_map
haxrbyte has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
v0n has joined #ruby
iamjarvo_ has joined #ruby
hugohagogo has quit [Ping timeout: 245 seconds]
siwica has joined #ruby
hugohagogo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
bean has quit [Ping timeout: 240 seconds]
<workmad3> ALVAN: why not shell out to grep?
iamjarvo has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Catie has quit [Ping timeout: 252 seconds]
jerrad has joined #ruby
jerrad has quit [Changing host]
jerrad has joined #ruby
tagrudev has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
larissa has quit [Quit: Leaving]
endash_ has joined #ruby
sambao21 has joined #ruby
freezey has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
kevind_ is now known as kevind
<workmad3> ALVAN: e.g. grep = Chef::ShellOut.new("grep", "cougar\.datasocue*URL", "#{conf_dir}/**/*"); grep.run_command; puts grep.stdout
dangerousdave has joined #ruby
mr_red1 has joined #ruby
shevy has joined #ruby
Catie has joined #ruby
johnnyfuchs has joined #ruby
freezey_ has joined #ruby
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
<ALVAN> hanmac: ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux]
burlyscudd has joined #ruby
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…]
tkuchiki has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
<ArchBeOS> apeiros: figured it out. data_from_db.select {|node| node[:label] == search_term }
pentameter has joined #ruby
<workmad3> ALVAN: you just said that you're using chef...
<ALVAN> workmad3: yes
<workmad3> ALVAN: and then said you can't use it to shell out...
<ALVAN> i am doing the shellout with grep right now as you said
<workmad3> ALVAN: so somewhat confusing :)
eval-in__ has quit [Remote host closed the connection]
<ALVAN> i might not have gem installed :P but i am checking it now
eval-in has joined #ruby
<ALVAN> that chef gem
<workmad3> ALVAN: if you're using chef, then you have the gem installed
<workmad3> ALVAN: that 'chef gem' as you call it... *is* chef
<ALVAN> ok running it now with chef-client -Vl debug
senayar has quit [Ping timeout: 252 seconds]
iamjarvo_ has quit [Remote host closed the connection]
<ALVAN> and with Chef::Shellout
<Morrolan> A 'gem' in Ruby terminology is just a packaged library or application. :)
VTLob has joined #ruby
<cout> mk
Dave-_ has joined #ruby
<ALVAN> workmad3: i have this error when running it in chef undefined method `grep' for Chef::Resource::RubyBlock
abunashir has quit [Ping timeout: 240 seconds]
rins has joined #ruby
dangerousdave has quit [Ping timeout: 248 seconds]
<ALVAN> workmad3: should i use the exact grep path ?
predator217 has quit [Ping timeout: 240 seconds]
araujo has quit [Read error: Connection reset by peer]
zarubin has quit [Ping timeout: 272 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
abunashir has joined #ruby
btanaka has joined #ruby
predator117 has joined #ruby
binaryplease has quit [Ping timeout: 272 seconds]
polymar_ has quit [Remote host closed the connection]
polymar has joined #ruby
publicjohn has quit []
ramblex has joined #ruby
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]
tbrock has quit [Quit: Textual IRC Client: www.textualapp.com]
smirn0v has quit [Client Quit]
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?
burlyscudd has joined #ruby
<MisutoWolf> Yeah. Sounds about right.
<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.
closer009 has quit [Quit: ZNC - http://znc.in]
<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
<thumpba> I'm getting a (Errno::EACCES) error
petey has joined #ruby
senayar has joined #ruby
Ox6abe__ has joined #ruby
<thumpba> when initializing foreman http://hastebin.com/gotenudili.vbs
<bean> it can't access that file
mklappstuhl has quit [Remote host closed the connection]
<bean> //usr/share/foreman-installer/config/foreman-installer.yaml
Ox6abe has quit [Ping timeout: 248 seconds]
jonathanwallace has joined #ruby
peterwalker78 has joined #ruby
petey has quit [Remote host closed the connection]
sailias has joined #ruby
marcdel has joined #ruby
<thumpba> bean: I'm looking at the file...is it a its set at root
S0da has joined #ruby
<peterwalker78> party time!!! Friday night out in London!
<thumpba> bean: its set at root
<bean> "is it a its set at root"
<bean> wat
Jetchisel has quit [Ping timeout: 260 seconds]
<bean> yep, and you're running as the puppet user.
<thumpba> instead of root, got it
ssvo has joined #ruby
polymar has quit [Remote host closed the connection]
Ox6abe_ has quit [Ping timeout: 264 seconds]
marcdel_ has joined #ruby
petey has joined #ruby
<thumpba> I'm trying to install foreman on top of a working puppet master w/passenger, and its been nothing but error after error
polymar has joined #ruby
anderson has joined #ruby
poisonarms has quit [Quit: Computer has gone to sleep]
shaunbaker has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
<thumpba> thanks bean
persand has joined #ruby
<bean> also: puppet… gross.
user__ has joined #ruby
sambao21 has joined #ruby
persand has quit [Client Quit]
<shevy> we have mr. bean!
<thumpba> u rec something else
marcdel has quit [Ping timeout: 240 seconds]
daveops_ is now known as daveops
<bean> chef lol
Jdubs has joined #ruby
<thumpba> why do you like chef over puppet
<bean> because it's not inherently awful
saarinen has joined #ruby
<bean> and it feels like writing ruby
apeiros has quit [Remote host closed the connection]
S0da has quit [Ping timeout: 272 seconds]
polymar has quit [Ping timeout: 240 seconds]
kazuuu has quit [Remote host closed the connection]
<sweeper> you wanna know what's gross?
<sweeper> unicode elipses, that's what!
kazuuu has joined #ruby
<thumpba> point made
<shevy> just because something is big does not have to mean it is wrong!
zeade has joined #ruby
fdf has joined #ruby
Kar- has quit [Ping timeout: 264 seconds]
mupkoo has quit [Remote host closed the connection]
<fdf> How i can set read timeout for uri = URI.parse($SiteURL) ?
<bean> chef feels far more like a DSL
<bean> where as puppet is like a ghetto hash
b00stfr3ak has joined #ruby
<sweeper> unicode elipses are actually /smaller/
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Ox6abe__ has quit [Remote host closed the connection]
* terrellt shrugs.
<terrellt> Puppet feels more declarative.
<terrellt> Which seems good to me.
<shevy> fdf is there any way to set a timeout? I believe not with URI.parse alone or?
Ox6abe has joined #ruby
tdk2fe has joined #ruby
<shevy> does not seem to have a way to set a timeout
mengu has quit [Ping timeout: 252 seconds]
polymar has joined #ruby
Fly80 has quit [Quit: Konversation terminated!]
dzhulk has quit [Quit: Leaving.]
<bean> URI.parse just turns a string into a URI,
arturaz has quit [Ping timeout: 245 seconds]
kazuuu has quit [Ping timeout: 272 seconds]
user258467 has quit [Quit: Quitte]
<bean> no?
burlyscudd has quit [Quit: Leaving.]
siwica has joined #ruby
polymar has quit [Remote host closed the connection]
<thumpba> bean: puppet vs chef aside this is another ruby error i get when trying to install foreman http://hastebin.com/girobaxaku.vbs
Ox6abe has quit [Ping timeout: 240 seconds]
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]
Jdubs has joined #ruby
<fixnum> Fuuck you guys, capybara DOESN'T work with Sinatra, look here is the proof https://github.com/fixnum/jet_fuel
schaerli has quit [Remote host closed the connection]
<breakingthings> woah fixnum
fdf has quit [Quit: Leaving]
<breakingthings> fixnum.to_calm
mary5030_ has joined #ruby
mary5030 has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
<fixnum> breakingthings.to_calm
<breakingthings> return self
<fixnum> breakingthings, could you please help me run my tests?
Jdubs has quit [Read error: Connection reset by peer]
Uranio has joined #ruby
jcromart_ has joined #ruby
<breakingthings> no sorry i actually have no idea about either of those things
mansi has joined #ruby
Jdubs has joined #ruby
<thumpba> calmyournerves: here is my file in question, i added the #utf and no dice http://hastebin.com/danipoluka.rb
schaerli has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
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."
angusiguess has joined #ruby
burlyscudd has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dhruvasagar has joined #ruby
aknagi has quit [Quit: aknagi]
Elhu has joined #ruby
kaldrenon has joined #ruby
thumpba has quit [Quit: thumpba]
tjad has joined #ruby
io_syl has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
fixnum has left #ruby ["Leaving"]
Jdubs has quit [Read error: Connection reset by peer]
BigBlueBacon has quit [Ping timeout: 272 seconds]
browndawg has quit [Quit: Leaving.]
i_s has joined #ruby
Jdubs has joined #ruby
kaspergrubbe has joined #ruby
starfox21 has quit [Quit: starfox21]
troessner has quit [Quit: Leaving]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Mars` has joined #ruby
Weed37 has quit [Quit: Leaving]
brennanM_ has quit [Remote host closed the connection]
mando has joined #ruby
brennanMKE has joined #ruby
Advocation has quit [Quit: Advocation]
thumpba has joined #ruby
peterhu has joined #ruby
Ziarkaen has quit [Read error: Connection reset by peer]
burlyscudd has quit [Ping timeout: 264 seconds]
AndChat| has quit [Ping timeout: 246 seconds]
troessner has joined #ruby
io_syl has joined #ruby
troessner has quit [Client Quit]
jeffdb has quit [Quit: jeffdb]
gcds has joined #ruby
Banistergalaxy has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
rylev has quit [Remote host closed the connection]
MisutoWolf has quit [Quit: Leaving]
brennanMKE has quit [Ping timeout: 272 seconds]
rylev has joined #ruby
Jdubs has joined #ruby
headius has joined #ruby
Advocation has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
einarj has quit [Remote host closed the connection]
Uranio has quit [Quit: while you reading this, a kitty dies]
zcreative has joined #ruby
starfox21 has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
pel_daniel has quit [Ping timeout: 252 seconds]
rezzack has joined #ruby
rylev has quit [Ping timeout: 264 seconds]
coderhs has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
xk_id has quit [Quit:
lucazi has quit [Ping timeout: 248 seconds]
Jdubs has joined #ruby
w3pm has joined #ruby
mercwithamouth has joined #ruby
platzhirsch1 has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
<platzhirsch1> Does anyone understand this Fibonacci generator? http://stackoverflow.com/a/15186657/658718 I don't even know to to use it ^^
rdark has quit [Quit: leaving]
kirun has joined #ruby
Jdubs has joined #ruby
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…]
<platzhirsch1> waxjar: where is it?
T_T has quit [Remote host closed the connection]
zarubin has joined #ruby
<havenwood> heh, my ruby solution ain't so fancy: https://gist.github.com/havenwood/50c92ba98bad71cdf983
reset has joined #ruby
Guest22783 has quit [Read error: Connection reset by peer]
kirun has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
<havenwood> a different type of lazy :P
<platzhirsch1> looks pretty readable to me
brianpWins has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<hanmac> waxjar i warn again, if you need to have them Marshalable, maybe for samegame files, you cant use default-proc or you need an way around that
browndawg has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
lyanchih has joined #ruby
T_T has joined #ruby
Jdubs has joined #ruby
atSetKey has joined #ruby
_HolyCow1 is now known as _HolyCow
blackmesa has joined #ruby
<platzhirsch1> MRI is faster than JRuby, what the heck
Macaveli has joined #ruby
kenneth has quit [Quit: kenneth]
andikr has quit [Remote host closed the connection]
mr_red1 is now known as mr_red
aapzak has quit [Read error: Operation timed out]
someish has quit [Quit: someish]
b3hnam has left #ruby [#ruby]
carraroj has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
endash_ has quit [Quit: endash_]
jrhe has left #ruby [#ruby]
Jdubs has joined #ruby
bradhe has joined #ruby
atSetKey has quit [Ping timeout: 264 seconds]
tjad has joined #ruby
icemancast has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
aapzak has joined #ruby
_JamieD_ has joined #ruby
<hanmac> yeah! MRI rules ! ;D
<platzhirsch1> I mean, the JVM startup does not take so much time, but seriously? https://gist.github.com/platzhirsch/0d392a1a0af792d2ac65
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
Jdubs has joined #ruby
<havenwood> platzhirsch1: Try this abomination i wrote for speed?: https://gist.github.com/havenwood/500e07e9f62ae784cf1d
obs has quit [Quit: Konversation terminated!]
newbiehacker has quit [Ping timeout: 245 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
<platzhirsch1> havenwood: that's for the Euler solution, I was running a Fibbonaci printer
Jdubs has quit [Read error: Connection reset by peer]
<havenwood> ah
<platzhirsch1> havenwood: this should execute instantly, shouldn't it?
<havenwood> yeah
Jdubs has joined #ruby
<havenwood> just memoizing
<havenwood> it will stack level too deep if you go too high
<havenwood> which i would be curious to try working around
dallasm_ has quit [Remote host closed the connection]
<platzhirsch1> maybe I should generate the Hash beforehand
mansi has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
glaksmono has quit [Quit: This computer has gone to sleep]
kaspergrubbe has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
dallasm_ has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
cha1tanya_ has joined #ruby
jrhe has joined #ruby
tjbarber has joined #ruby
<platzhirsch1> all the time is consumed by the printing
<platzhirsch1> now Ruby took 13s, maybe it's faster if the console is minimized :P
Mon_Ouie has joined #ruby
browndawg has quit [Quit: Leaving.]
glaksmono has joined #ruby
Al___ has quit [Quit: Al___]
kaspergrubbe has quit [Ping timeout: 246 seconds]
<havenwood> platzhirsch1: what are you benching? generating x-many fibs?
Jdubs has quit [Read error: Connection reset by peer]
<platzhirsch1> havenwood: yes, 20_000.times { |i| puts fib[i] }
funburn has joined #ruby
<havenwood> without a #puts, but with memoizing, Elapsed time: 0.153058 ms
funburn has quit [Client Quit]
ldnunes has quit [Ping timeout: 265 seconds]
<havenwood> 10th of a ms ain't bad
Jdubs has joined #ruby
<platzhirsch1> Does not make much sense to measure the printing aye?
ItSANgo has quit [Quit: Leaving...]
<bean> output to the screen is always going to be substantially slower than doing it without
<havenwood> yeah, no point
Dave-_ has quit [Quit: Leaving...]
krawchyk has quit [Remote host closed the connection]
icemancast has joined #ruby
<havenwood> 15th**
Voodoofish430 has quit [Ping timeout: 272 seconds]
Jdubs has quit [Read error: Connection reset by peer]
<havenwood> and since you're iterating no SystemStackError since cache is populated as you go
dangerousdave has joined #ruby
<platzhirsch1> Every language interpreter/compiler might implement print differently right? So it would depend how efficienctly they do the printing
ndrei has quit [Ping timeout: 245 seconds]
starfox21 has quit [Quit: starfox21]
Jdubs has joined #ruby
Voodoofish430 has joined #ruby
cascalheira has quit [Quit: Leaving...]
zz_dbRenaud is now known as dbRenaud
razi has quit [Quit: Leaving.]
burlyscudd has joined #ruby
ndrei has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
<bean> platzhirsch1: not necessarily. In general writing to the screen is slow.
ItSANgo has joined #ruby
<platzhirsch1> bean: different slow
araujo has quit [Read error: Connection reset by peer]
<platzhirsch1> just look at the implementation of Java's System.out.println() there's a lot going on
<bean> yep.
araujo has joined #ruby
<platzhirsch1> yeah, now JRuby is faster again
mac___ has joined #ruby
<platzhirsch1> Sanity restored. Back to thesis hacking ^^
heidi has quit [Quit: Leaving.]
ics has quit [Quit: Textual IRC Client: www.textualapp.com]
hakunin_ has joined #ruby
Bira has joined #ruby
soheil has quit [Ping timeout: 245 seconds]
Bira has quit [Remote host closed the connection]
soheil has joined #ruby
BraddBitt is now known as BraddPitt
hakunin has quit [Ping timeout: 245 seconds]
rylev has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
Bira has joined #ruby
tsykoduk is now known as zz_tsykoduk
razi has joined #ruby
theRoUS has quit [Ping timeout: 246 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch1 has left #ruby [#ruby]
iamjarvo has quit [Remote host closed the connection]
aapzak has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
lucazi has joined #ruby
zz_tsykoduk is now known as tsykoduk
einarj has joined #ruby
aapzak has joined #ruby
kindjal has joined #ruby
momomomomo has joined #ruby
rylev has quit [Ping timeout: 265 seconds]
pkrnj has joined #ruby
zachrab has joined #ruby
heidi has joined #ruby
Monie has joined #ruby
iamjarvo has quit [Ping timeout: 252 seconds]
einarj has quit [Ping timeout: 245 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arietis has quit [Quit: Computer has gone to sleep.]
jrhe has quit [Quit: jrhe]
brennanMKE has joined #ruby
pel_daniel has joined #ruby
Jdubs has quit [Remote host closed the connection]
marcdel has joined #ruby
Jdubs has joined #ruby
mansi has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
Xeago has joined #ruby
theRoUS has joined #ruby
peterhu has quit [Ping timeout: 246 seconds]
mansi has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
peterhu has joined #ruby
kenneth has joined #ruby
theRoUS has quit [Client Quit]
petey has quit [Remote host closed the connection]
theRoUS has joined #ruby
MrZYX is now known as MrZYX|off
petey has joined #ruby
alvaro_o has joined #ruby
harrymoreno has joined #ruby
gja has joined #ruby
heidi has quit [Quit: Leaving.]
Jdubs has quit [Ping timeout: 272 seconds]
heidi has joined #ruby
soheil_ has joined #ruby
colonolGron has quit [Read error: Connection reset by peer]
petey has quit [Ping timeout: 245 seconds]
MrZYX|off is now known as MrZYX
Macaveli has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
elektronaut has quit [Ping timeout: 245 seconds]
smirn0v has joined #ruby
soheil has quit [Ping timeout: 264 seconds]
btanaka has quit [Remote host closed the connection]
aknagi has joined #ruby
zz_michael_mbp is now known as michael_mbp
<hanmac> yeah the allmighty cycle! ;D
tsykoduk is now known as zz_tsykoduk
i_s has quit [Remote host closed the connection]
Jdubs has joined #ruby
pel_daniel has quit [Read error: Operation timed out]
i_s has joined #ruby
atSetKey has joined #ruby
sambao21 has joined #ruby
elektronaut has joined #ruby
dbRenaud is now known as zz_dbRenaud
MrZYX is now known as MrZYX|off
someish has joined #ruby
mlpinit has quit [Remote host closed the connection]
petey has joined #ruby
luckyruby has quit [Remote host closed the connection]
mlpinit has joined #ruby
petey_ has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
Guest63036 has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
michael_mbp is now known as zz_michael_mbp
peterhu has quit [Ping timeout: 246 seconds]
luckyrub_ has joined #ruby
blackmesa has joined #ruby
atSetKey has quit [Ping timeout: 252 seconds]
i_s has quit [Ping timeout: 252 seconds]
Bira_ has joined #ruby
<hanmac> Enumerator#size is one of the funniest methods ever ;D
ravster has joined #ruby
petey has quit [Ping timeout: 264 seconds]
<Banistergalaxy> Hanmac hans.
kracekumar has joined #ruby
neo_ has quit [Quit: Leaving]
kracekumar has quit [Max SendQ exceeded]
Bira has quit [Ping timeout: 246 seconds]
* hanmac : the person you have call'd is temporally not available
kracekumar has joined #ruby
tvw has quit []
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<Banistergalaxy> Hanmac und.
cody-- has quit [Quit: derp]
Ren^ has quit [Ping timeout: 248 seconds]
Zai00 has joined #ruby
bradhe has joined #ruby
volty has quit [Ping timeout: 246 seconds]
volty has joined #ruby
mayorga has joined #ruby
burlyscudd has quit [Quit: Leaving.]
MrZYX|off is now known as MrZYX
mocfive has joined #ruby
basmoura has quit [Ping timeout: 272 seconds]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gemmy has quit [Quit: Lost terminal]
kalesage has joined #ruby
claymore has quit [Quit: Leaving]
_JamieD_ has quit [Quit: _JamieD_]
bradhe has quit [Ping timeout: 245 seconds]
lnormous has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
kalesage has quit [Client Quit]
robbyoconnor has joined #ruby
Jdubs has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
i_s has joined #ruby
Jdubs has joined #ruby
boxmein_ has joined #ruby
boxmein has quit [Read error: Connection reset by peer]
boxmein_ has quit [Client Quit]
poisonarms has quit [Quit: Computer has gone to sleep]
<Rylee> hanmac | Enumerator#size is one of the funniest methods ever ;D
<Rylee> I DON'T GET IT
kazuuu has joined #ruby
cha1tanya_ has quit [Ping timeout: 240 seconds]
xkickflip has quit [Quit: h..hi]
<hanmac> >> [3,4,5].cycle.size
<eval-in> hanmac => Infinity (https://eval.in/54003)
<hanmac> >> [3,4,5].cycle.lazy.take(10).size
<eval-in> hanmac => 10 (https://eval.in/54004)
T_T has quit [Remote host closed the connection]
carlyle has joined #ruby
pel_daniel has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
Jdubs has quit [Ping timeout: 240 seconds]
<Rylee> hanmac, lolz
reset has quit [Quit: Leaving...]
<Rylee> i didn't know Ruby had a cycle function
Zai00 has joined #ruby
icemancast has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
starfox21 has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
c0rn has joined #ruby
<hanmac> >> [1,2,3,nil].cycle(4)
<eval-in> hanmac => #<Enumerator: [1, 2, 3, nil]:cycle(4)> (https://eval.in/54006)
lele has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
<hanmac> >> [1,2,3,nil].cycle(4).to_a
<eval-in> hanmac => [1, 2, 3, nil, 1, 2, 3, nil, 1, 2, 3, nil, 1, 2, 3, nil] (https://eval.in/54007)
decoponio has quit [Quit: Leaving...]
carraroj has joined #ruby
<volty> >> [[]].cycle.to_a
gcds has quit [Read error: Connection reset by peer]
<eval-in> volty => failed to allocate memory (NoMemoryError) ... (https://eval.in/54008)
vpretzel has quit [Remote host closed the connection]
Nss has quit [Remote host closed the connection]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
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 ...
starfox21 has joined #ruby
razi has joined #ruby
Jetchisel has joined #ruby
reset has joined #ruby
starfox21 has quit [Client Quit]
<TMM> pasting
kmckelvin has joined #ruby
<TMM> gisting actually
<TMM> on an train, internets are slow
<TMM> the find_all code works whereas the select code does not
basmoura has joined #ruby
<hanmac> "gisting on a train" newest fun sport?
gdoteof has quit [Ping timeout: 265 seconds]
momomomomo has quit [Quit: momomomomo]
<MrZYX> since we can't run that, can you provide expected verses actual output?
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TMM> sorry, it's Hash#find_all vs Hash#select
rubyracer has joined #ruby
elaptics is now known as elaptics`away
<hanmac> AH ok that makes more sense!
<hanmac> yeah Hash#select returns an hash and not an Array
dallasm_ has quit [Remote host closed the connection]
maz-dev has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
<MrZYX> yup, you're calling Enumerable#find_all which is aliased to Enumerable#select vs Hash#select
<TMM> not Array
lucazi has quit [Quit: Textual IRC Client: www.textualapp.com]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
jprovazn has quit [Quit: Odcházím]
<MrZYX> also Hash#select yields |key, val|
gja has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby
zz_tsykoduk is now known as tsykoduk
mercwithamouth has joined #ruby
<hanmac> MrZYX hm but i can do this too: hash.find_all do |key,val|
T_T has joined #ruby
marcdel has joined #ruby
xk_id has quit [Quit:
<MrZYX> hanmac: autosplat
<hanmac> yeah autosplat is fun!
starfox21 has joined #ruby
<MrZYX> #each yields [key, val]
zz_michael_mbp has quit [Ping timeout: 245 seconds]
pen has quit [Remote host closed the connection]
atSetKey has joined #ruby
<MrZYX> so if you give it a block with |item| #find_all is [key, val] while #select is key
<MrZYX> (item is in ...)
atSetKey has quit [Remote host closed the connection]
kevinykchan has joined #ruby
pen has joined #ruby
<TMM> I've updated the gist
skaflem has quit [Quit: Leaving]
RichardBaker has quit [Quit: RichardBaker]
glaksmono has quit [Quit: This computer has gone to sleep]
_maes_ has joined #ruby
<MrZYX> TMM: did you read and understand what I explained?
reset has quit [Ping timeout: 240 seconds]
<TMM> MrZYX, I think so, but I have a huge lag :)
<MrZYX> okay :)
atSetKey_ has joined #ruby
ryandeussing has joined #ruby
ryandeussing has quit [Remote host closed the connection]
relix has joined #ruby
petey has joined #ruby
<MrZYX> so to fix your issue just do .select |key, value| and key.include? query instead of item[0]
havenwood has joined #ruby
aspires has quit [Quit: aspires]
<hanmac> MrZYX: did you know what is more fun than autosplat?
<MrZYX> TMM: and that'll actually work with both versions
kmckelvin has quit [Remote host closed the connection]
<hanmac> MrZYX: look at this fun: https://eval.in/private/c0f52f54515413
<MrZYX> hanmac: doing stuff like class Fixnum; def -(o); self+o; end; end;?
kmckelvin has joined #ruby
<MrZYX> oh, you can extract hash keys in 2.1 now?
<MrZYX> does that only work for block params or method definitions too?
<TMM> this is not properly explained in the docs though
<TMM> or at all explained
vasilakisFiL has joined #ruby
<hanmac> >> [{ x: 6},{ x: 4 },{ x: 7}].each {|x:| p x}
<eval-in> hanmac => /tmp/execpad-4a4d22ba141b/source-4a4d22ba141b:2: syntax error, unexpected '|' ... (https://eval.in/54020)
maz-dev has joined #ruby
<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]
claymore has joined #ruby
<hanmac> 21>> RUBY_VERSION
<hanmac> hm :(
<hanmac> >> [{ x: 6 , y: 6},{ x: 4 , y: 5 },{ x: 7, y: 3}].each {|x: nil,y: nil| p x + y}
<eval-in> hanmac => 12 ... (https://eval.in/54021)
glaksmono has joined #ruby
aknagi has quit [Quit: aknagi]
bradhe has joined #ruby
<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…]
<workmad3> e.g. hsh.inject({}) {|h, (k, v)| ...}
burlyscudd has joined #ruby
<workmad3> >> {:a => "b"}.inject([]) {|h, k, v| puts "#{h.inspect} #{k.inspect} #{v.inspect}"}
<eval-in> workmad3 => [] [:a, "b"] nil ... (https://eval.in/54026)
<workmad3> >> {:a => "b"}.inject([]) {|h, (k, v)| puts "#{h.inspect} #{k.inspect} #{v.inspect}"}
<eval-in> workmad3 => [] :a "b" ... (https://eval.in/54027)
bradhe has quit [Ping timeout: 272 seconds]
threesome has quit [Ping timeout: 272 seconds]
jkamenik has quit [Quit: Leaving.]
<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?
<eval-in> workmad3 => undefined method `compact?' for [nil, nil, nil, nil, nil, 16, 17, 18, 19, 20]:Array (NoMethodError) ... (https://eval.in/54028)
<workmad3> >> (1..10).to_a.map { |i| i + 10 if i > 5 }.compact
<eval-in> workmad3 => [16, 17, 18, 19, 20] (https://eval.in/54029)
<TMM> a 'map' that doesn't push a nil into the resulting array if the block doesn't return
<workmad3> no
<workmad3> map is 1-1 relationship... it maps one collection to another
<|PiP|`> is there a CSV->HTML converter gem for ruby? i'm generating CSV's inside Ruby and I'd like to present them as HTML tables easily.
fedalto has quit [Quit: Leaving]
<TMM> what is the mosty rubyist way of writing that code?
<workmad3> you could filter the collection before mapping with a select... or you could write your own method that builds a new collection
<workmad3> TMM: I'd probably go for blah.select{|i| i > 5}.map{|i| i+10}
<TMM> what if the i > 5 is long?
asobrasil has left #ruby [#ruby]
<workmad3> then I'd store the result in a tmp variable or wrap the entire thing up in a method
<TMM> ok
mary5030 has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
ehc has joined #ruby
<workmad3> if I was dealing with something that could have millions of records, I'd probably reduce it to a single pass with an each_with_object...
<workmad3> >> (1..10).to_a.each_with_object([]) {|i, a| a << i + 10 if i > 5}
<eval-in> workmad3 => [16, 17, 18, 19, 20] (https://eval.in/54030)
<workmad3> but I find that is less clear than a .select{}.map
<TMM> hmm, I like the each_with_object even though it's a bit ugly
<TMM> the syntax of it
<volty> don't need to _a with numerators
tjbarber has joined #ruby
Kar- has joined #ruby
kpshek has quit []
mlpinit_ has joined #ruby
<workmad3> TMM: it's definitely nicer than the inject hacks people used to do to get similar results :)
xkickflip has joined #ruby
<workmad3> volty: meh :) I was just playing it safe
aknagi has quit [Quit: aknagi]
ukd1 has joined #ruby
<TMM> thanks a lot for all your guys' help
peterhu has quit [Ping timeout: 240 seconds]
cascalheira has joined #ruby
ldnunes has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
<volty> >> (1..10).reduce([]) { |t, o| t.push(*o > 5 ? [o] : []) }
<eval-in> volty => [6, 7, 8, 9, 10] (https://eval.in/54034)
mlpinit has quit [Ping timeout: 272 seconds]
geekbri has quit [Remote host closed the connection]
tjbarber has quit [Quit: Textual IRC Client: www.textualapp.com]
peterhu has joined #ruby
xkickflip has quit [Ping timeout: 245 seconds]
<volty> i like this construct when the alternatives are between something and nothing
* hanmac still wishs there would be some kind of select_map … :(
mac___ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjbarber has joined #ruby
JonTheNiceGuy has joined #ruby
jalcine_ has quit [Excess Flood]
JonTheNiceGuy has quit [Changing host]
JonTheNiceGuy has joined #ruby
JonTheNiceGuy has left #ruby [#ruby]
<volty> hanmac: difficult to achieve since you could have a collection that holds false and nil
marcdel has joined #ruby
<jericon> Is anyone aware of a gem that would help me build an ASCII flow chart?
kil0byte_ has quit [Remote host closed the connection]
kazuuu has quit [Remote host closed the connection]
kpshek has joined #ruby
<hanmac> volty i thought about something like that. .. but only more lazy:
<hanmac> >> pr = proc {|r| r > 10 ? r + 10: nil }; (1..10).select(&pr).map(&pr)
<eval-in> hanmac => [] (https://eval.in/54035)
kazuuu has joined #ruby
<hanmac> >> pr = proc {|r| r > 5 ? r + 10: nil }; (1..10).select(&pr).map(&pr)
<eval-in> hanmac => [16, 17, 18, 19, 20] (https://eval.in/54036)
someish has quit [Quit: someish]
zachrab has quit [Remote host closed the connection]
mr_red has quit [Quit: Leaving.]
funburn has joined #ruby
reset has joined #ruby
funburn has quit [Client Quit]
<volty> hanmac, then better with Enumerator
zachrab has joined #ruby
<volty> ?
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
<volty> no no, wait, have to catch all the logic behind
* hanmac throws a pokeball … logic escaped
<volty> def select_map(&b); select(&b); map(&b); end; ?
Macaveli has quit [Quit: Computer has gone to sleep.]
<Banistergalaxy> Hamac hans.
DecidedlyAverage has joined #ruby
DrShoggoth has quit [Quit: Leaving]
kazuuu has quit [Ping timeout: 245 seconds]
<volty> s/;/./
<volty> never mind, getting tired, going to take a rest and then fight against old code
aknagi has joined #ruby
Spami has quit [Quit: Leaving]
zachrab has quit [Ping timeout: 272 seconds]
carraroj has quit [Quit: Konversation terminated!]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jkline has joined #ruby
<hanmac> >> (1..10).map.lazy.select {|i| i > 5}.force { |i| i + 10 }
<eval-in> hanmac => [6, 7, 8, 9, 10] (https://eval.in/54037)
c0rn has quit [Quit: Computer has gone to sleep.]
<hanmac> hm but i still cant get it working with only one block … :/
<hanmac> hm ok it still wrong
notjohn has quit [Quit: notjohn]
rjhunter has joined #ruby
<apeiros> what the heck is force?
<hanmac> >> (1..10).each.lazy.select {|i| i > 5}.map{ |i| i + 10 }.force
<eval-in> hanmac => [16, 17, 18, 19, 20] (https://eval.in/54038)
<apeiros> >> (1..10).map.lazy.select {|i| i > 5}.method(:force).owner
<eval-in> apeiros => Enumerator::Lazy (https://eval.in/54039)
<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]
jlast has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<icmpv6> hancmac
carlyle has joined #ruby
notjohn has quit [Ping timeout: 240 seconds]
Xaitec has joined #ruby
jlast has quit [Read error: No route to host]
jlast has joined #ruby
Optimus9 has joined #ruby
S0da has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 264 seconds]
<_bart_> hi
_bart_ is now known as _bart
<_bart> when someone does: class Object; include ::SomeModule::SecondModule; end
<icmpv6> _bart_
<icmpv6> _bart_
<_bart> What does it do, it looks quite ugly to me, but what does the :: do?
RORgasm has quit [Remote host closed the connection]
<icmpv6> _bart
<_bart> (the very first ::)
<_bart> yes?
<icmpv6> _bart
<_bart> icmpv6
<hanmac> _Bart ignore him he is a spammer
<icmpv6> fucker
icmpv6 was kicked from #ruby by apeiros [piss off]
<hanmac> yeah!
<_bart> Yeah, friday eve vibes
notjohn has joined #ruby
<_bart> So back to the question, why would someone do: class Object; include ::SomeModule::SecondModule; end
<hanmac> _bart: :: is the constant accesor … while ::Constant access the global namespace, A::B means constant B inside module/class A
thehodapp1 has left #ruby [#ruby]
<shevy> _bart top scope
<_bart> Okay makes sense.
<_bart> And why include some modules into class Object?
thehodapp has joined #ruby
<shevy> the author of that code should have to answer that ... :P
sparq_ has joined #ruby
<_bart> Okay, I'm rewriting it :p
sparq_ has quit [Max SendQ exceeded]
carlyle has quit [Ping timeout: 245 seconds]
Xaitec has quit [Remote host closed the connection]
Senjai has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
Bira_ has quit [Remote host closed the connection]
zachrab has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
closer has joined #ruby
sparq_ has joined #ruby
claymore has quit [Quit: Leaving]
sparq_ has quit [Read error: Connection reset by peer]
terrellt has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
ndrei has joined #ruby
basmoura has quit [Quit: Computer has gone to sleep.]
brennanMKE has joined #ruby
dash_ has joined #ruby
rjhunter has joined #ruby
nomenkun has quit [Remote host closed the connection]
peterhu has quit [Ping timeout: 272 seconds]
enebo has quit [Quit: enebo]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
|PiP|` has quit [Ping timeout: 245 seconds]
sparq_ has joined #ruby
<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]
kindjal has joined #ruby
kaspergrubbe has joined #ruby
kindjal has quit [Client Quit]
zz_tsykoduk is now known as tsykoduk
<thumpba> here's a cleaner debug http://hastebin.com/qigosofuvu.vhdl
pyx has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
pyx has quit [Client Quit]
<_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]
<_bart> Xaitec: I think Sidekiq is pretty good: https://github.com/mperham/sidekiq
rahult has quit [Client Quit]
pel_daniel has quit [Ping timeout: 265 seconds]
kaspergrubbe has quit [Ping timeout: 245 seconds]
T_T has quit [Ping timeout: 245 seconds]
c0rn has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
<Xaitec> _bart: i'm creating a gem project. I want sinthing that can give me a good dir structure
marcdel has joined #ruby
<Xaitec> _bart: But i will remember your recomendation
zastern_ has quit [Remote host closed the connection]
G has quit [Quit: leaving]
G has joined #ruby
zastern has joined #ruby
Optimus9 has quit [Quit: Leaving]
peregrine81 has quit [Ping timeout: 240 seconds]
ner0x has joined #ruby
kaspergrubbe has joined #ruby
tsykoduk is now known as zz_tsykoduk
notjohn has quit [Quit: notjohn]
sepp2k1 has joined #ruby
notjohn has joined #ruby
<hanmac> _bart use require_relative
<_bart> hanmac: but also inside my gem? I never see that in a production gem
Zai00 has quit [Quit: Zai00]
jetblack has quit [Ping timeout: 272 seconds]
sepp2k has quit [Ping timeout: 252 seconds]
|PiP|` has quit [Read error: Operation timed out]
|PiP|` has joined #ruby
<hanmac> yeah it works also inside, the others are only to scared to use it because they still have the gems 1.8 compatible
banisterfiend has joined #ruby
burlyscudd has joined #ruby
<_bart> it also looks prettier (without _relative)
atmosx has joined #ruby
rjhunter has quit [Remote host closed the connection]
razi has quit [Ping timeout: 240 seconds]
kleesc has joined #ruby
thehodapp has left #ruby [#ruby]
kleesc has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
Bira has joined #ruby
aspires has joined #ruby
Nogbit has joined #ruby
jlast has joined #ruby
jalcine_ has quit [Excess Flood]
kirun has quit [Quit: Client exiting]
burlyscudd has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Ping timeout: 240 seconds]
BraddPitt has quit [Quit: Leaving]
johnnyfuchs has quit [Quit: Leaving.]
terrellt has joined #ruby
peterhu has joined #ruby
|PiP|` has quit []
v0n has quit [Ping timeout: 272 seconds]
kenneth has quit [Ping timeout: 265 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
peregrine81 has joined #ruby
cogen_ has quit [Ping timeout: 250 seconds]
jlast has quit [Ping timeout: 272 seconds]
Jdubs has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
mando has quit [Remote host closed the connection]
BraddPitt has joined #ruby
mando has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
HasMan has joined #ruby
reset has joined #ruby
jetblack has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
jonathanwallace has joined #ruby
jalcine has joined #ruby
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
taternuts has joined #ruby
superscott[8] has quit [Read error: Connection reset by peer]
tjbarber has joined #ruby
Ahti333 has joined #ruby
jalcine is now known as jalcine_
Monie has joined #ruby
mansi has quit [Remote host closed the connection]
BraddPitt has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
BraddPitt has joined #ruby
pragmatism has quit [Quit: pragmatism]
fdf has quit [Quit: Leaving]
danman has quit [Quit: danman]
jonathanwallace has quit [Ping timeout: 245 seconds]
predator117 has quit [Ping timeout: 246 seconds]
T_T has joined #ruby
headius has quit [Quit: headius]
m8 has quit [Quit: Sto andando via]
pragmatism has joined #ruby
ner0x has quit [Quit: Leaving]
bradhe has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
cogen has joined #ruby
Monie has quit [Client Quit]
predator117 has joined #ruby
xk_id has quit [Quit:
mrsolo_ has quit [Quit: Leaving]
jrhe has quit [Quit: jrhe]
bradhe has quit [Ping timeout: 252 seconds]
Xaitec has quit [Remote host closed the connection]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrPoT4tO has quit [Read error: Connection reset by peer]
notjohn has quit [Ping timeout: 265 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
pentameter has quit [Read error: Connection reset by peer]
jlast has joined #ruby
zeade has quit [Quit: Leaving.]
postmodern has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
Kar- has quit [Ping timeout: 252 seconds]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
tkuchiki has joined #ruby
cephalopod has joined #ruby
cephalopod has joined #ruby
cephalopod has quit [Changing host]
Jdubs has joined #ruby
kenneth has quit [Quit: kenneth]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit []
tylersmith has quit [Remote host closed the connection]
gja has quit [Ping timeout: 245 seconds]
Hganavak has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
lnormous has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Ping timeout: 272 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
jlast has quit [Ping timeout: 240 seconds]
camio has joined #ruby
HasMan has quit [Read error: Connection reset by peer]
soheil_ has quit [Read error: Connection reset by peer]
beilabs has quit [Ping timeout: 248 seconds]
Jdubs has quit [Remote host closed the connection]
soheil has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
notjohn has joined #ruby
notjohn has quit [Client Quit]
tjad has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
HasMan has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
thumpba has quit [Quit: thumpba]
hogeo has quit [Remote host closed the connection]
IceyEC has joined #ruby
hogeo has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
btanaka has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
xk_id has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
twoism has joined #ruby
ukd1 has quit [Remote host closed the connection]
IceyEC has quit [Quit: IceyEC]
ukd1 has joined #ruby
twoism has quit [Remote host closed the connection]
pragmatism has quit [Quit: pragmatism]
Lewix has quit [Remote host closed the connection]
ehc has quit [Ping timeout: 265 seconds]
twoism has joined #ruby
pragmatism has joined #ruby
senayar has joined #ruby
lukec has quit [Quit: lukec]
blackmes1 has quit [Quit: WeeChat 0.4.1]
kurt21 has joined #ruby
burlyscudd has joined #ruby
ukd1 has quit [Ping timeout: 240 seconds]