whippythellama has quit [Ping timeout: 240 seconds]
jhack has quit [Client Quit]
jhack has joined #ruby
lxsameer has joined #ruby
jhack has quit [Client Quit]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros__ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 265 seconds]
Guest56583 has quit [Remote host closed the connection]
tpendragon has quit [Remote host closed the connection]
bier has quit [Ping timeout: 248 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
whippythellama has joined #ruby
bier has joined #ruby
lxsameer has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
eckhardt_ has joined #ruby
giraffe has joined #ruby
giraffe is now known as Guest76646
tpendragon has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
jhack has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
apeiros has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
jasmith has joined #ruby
FernandoBasso has quit [Quit: Leaving]
whippythellama has quit [Quit: WeeChat 1.4]
salasrod has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noobineer has joined #ruby
lxsameer has joined #ruby
npgm has joined #ruby
noobineer has quit [Read error: Connection reset by peer]
sylario has quit [Quit: Connection closed for inactivity]
tdy has quit [Ping timeout: 264 seconds]
noobineer has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
noobineer has quit [Remote host closed the connection]
apeiros has joined #ruby
willthechill has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
noobineer has joined #ruby
zachk has quit [Quit: Leaving]
white_lilies has joined #ruby
pr0ton has quit [Quit: pr0ton]
tty has joined #ruby
focodev has joined #ruby
<focodev>
what's up you ruby hipsters.. I have a rails app with two models... artists and albums... I run rails g createjointable artists albums and I get Artists_Albums table.. I see it in my postgres database.
<focodev>
yet when I serve my app I get PG::UndefinedTable: ERROR: relation "albums_artists" does not exist
<focodev>
and yes I have run rails db:migrate
akkiguru has joined #ruby
<focodev>
nevermind... rails used capital letters for the join table and yet the SQL generated to grab my models out of the db was using lower case letters for the join table... why rails why.. I didn't do that shit, so why did you?
voiceftp has joined #ruby
bmurt has joined #ruby
apeiros has joined #ruby
tdy has joined #ruby
infernix has quit [Ping timeout: 276 seconds]
apeiros has quit [Ping timeout: 260 seconds]
lystra_ has quit [Remote host closed the connection]
MagePsycho has quit [Ping timeout: 244 seconds]
kryptoz has joined #ruby
nicht has quit [Ping timeout: 276 seconds]
kryptoz has quit [Remote host closed the connection]
postmodern has joined #ruby
alfiemax has joined #ruby
Xiti` has joined #ruby
focodev has quit [Quit: Page closed]
voice_ftp has joined #ruby
tenderlove has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenichi_ has joined #ruby
m27frogy_ has joined #ruby
Kilobyte22 has joined #ruby
caw_________ has joined #ruby
shinnya_ has joined #ruby
DTZUZU2 has joined #ruby
stairmast0r_ has joined #ruby
duderono_ has joined #ruby
foamz_ has joined #ruby
jhill_ has joined #ruby
postmodern_ has joined #ruby
akkiguru_ has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
MagePsycho has joined #ruby
nibbo_ has joined #ruby
tw1sted has joined #ruby
SirFunk_ has joined #ruby
pisculic1i has joined #ruby
connor_g1odwolf has joined #ruby
ule_ has joined #ruby
mrBen2k2k2k has joined #ruby
shaman42_ has joined #ruby
asio_ has joined #ruby
ptx0_ has joined #ruby
justinmcp has joined #ruby
kapil___ has joined #ruby
yosafbridge` has joined #ruby
ptx0_ has quit [Changing host]
ptx0_ has joined #ruby
Cthulu202 has joined #ruby
awx_ has joined #ruby
jraavis has joined #ruby
diego2 has joined #ruby
octomanc1 has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
ianmalcolm_ has joined #ruby
diego2 has quit [Client Quit]
Neptu_ has joined #ruby
KramerC_ has joined #ruby
ianmalcolm has quit [Ping timeout: 240 seconds]
SirFunk has quit [Ping timeout: 240 seconds]
caw________ has quit [Ping timeout: 240 seconds]
foamz has quit [Ping timeout: 240 seconds]
dviola has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 240 seconds]
harmaahylje has quit [Ping timeout: 240 seconds]
Neptu has quit [Ping timeout: 240 seconds]
shaman42 has quit [Ping timeout: 240 seconds]
olblak has joined #ruby
zumbi has joined #ruby
wkoszek_ has joined #ruby
mluts has quit [Ping timeout: 240 seconds]
pisculichi has quit [Ping timeout: 240 seconds]
octomancer has quit [Ping timeout: 240 seconds]
voiceftp has quit [Ping timeout: 240 seconds]
akkiguru has quit [Ping timeout: 240 seconds]
ule has quit [Ping timeout: 240 seconds]
Xiti has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
stairmast0r has quit [Ping timeout: 240 seconds]
Cthulu201 has quit [Ping timeout: 240 seconds]
leafyleong has quit [Ping timeout: 240 seconds]
tw1sted_ has quit [Ping timeout: 240 seconds]
Kilo`byte has quit [Ping timeout: 240 seconds]
justinmcp_ has quit [Ping timeout: 240 seconds]
mkaito_ has quit [Ping timeout: 240 seconds]
zumbi has quit [Ping timeout: 240 seconds]
jmcgnh has quit [Ping timeout: 240 seconds]
olblak has quit [Ping timeout: 240 seconds]
ptx0 has quit [Ping timeout: 240 seconds]
jhill has quit [Ping timeout: 240 seconds]
paraxial has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 260 seconds]
m27frogy has quit [Ping timeout: 260 seconds]
booboy has quit [Ping timeout: 260 seconds]
yosafbridge has quit [Ping timeout: 260 seconds]
coffeecupp__ has quit [Ping timeout: 260 seconds]
klaas has quit [Ping timeout: 260 seconds]
nibbo has quit [Ping timeout: 260 seconds]
miah has quit [Ping timeout: 260 seconds]
snapcase has quit [Ping timeout: 260 seconds]
kiki_lamb has quit [Ping timeout: 260 seconds]
olspookishmagus has joined #ruby
klaas has joined #ruby
mluts_ has joined #ruby
kapil___ has joined #ruby
coffeecupp__ has joined #ruby
jhill_ has joined #ruby
foamz_ has joined #ruby
nibbo_ has joined #ruby
caw_________ has joined #ruby
DTZUZU has quit [Ping timeout: 260 seconds]
asio has quit [Ping timeout: 260 seconds]
connor_goodwolf has quit [Ping timeout: 260 seconds]
aloy has quit [Ping timeout: 260 seconds]
BTRE has quit [Ping timeout: 260 seconds]
Tharbakim has quit [Ping timeout: 260 seconds]
ablackack has quit [Ping timeout: 260 seconds]
awx has quit [Ping timeout: 260 seconds]
zxq2 has quit [Ping timeout: 260 seconds]
avelldiroll has quit [Ping timeout: 260 seconds]
r3m has quit [Ping timeout: 260 seconds]
jp has quit [Ping timeout: 260 seconds]
volix has quit [Ping timeout: 260 seconds]
wkoszek has quit [Ping timeout: 260 seconds]
arahael has quit [Ping timeout: 260 seconds]
postmodern has quit [Ping timeout: 260 seconds]
RougeR has quit [Ping timeout: 260 seconds]
Guest96065 has quit [Ping timeout: 260 seconds]
cgfbee has quit [Ping timeout: 260 seconds]
KramerC has quit [Ping timeout: 260 seconds]
shadeslayer has quit [Ping timeout: 260 seconds]
thejoecarroll_ has quit [Ping timeout: 260 seconds]
_habnabit has quit [Ping timeout: 260 seconds]
KrzaQ has quit [Ping timeout: 260 seconds]
caw_________ has quit [Changing host]
jhill_ has quit [Changing host]
foamz_ has quit [Changing host]
nibbo_ has quit [Changing host]
kapil___ has quit [Changing host]
KramerC_ has joined #ruby
KramerC_ has quit [Changing host]
diego2 has joined #ruby
foamz_ is now known as foamz
thejoecarroll has joined #ruby
KramerC_ is now known as KramerC
RougeT430 has joined #ruby
olblak has quit [*.net *.split]
zumbi has quit [*.net *.split]
wkoszek_ has quit [*.net *.split]
leafyleong has joined #ruby
Tharbakim has joined #ruby
volix has joined #ruby
avelldiroll has joined #ruby
olspookishmagus is now known as Guest41435
camilasan has quit [Ping timeout: 256 seconds]
KrzaQ has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as dviola
cgfbee has joined #ruby
avelldiroll has quit [Changing host]
avelldiroll has joined #ruby
infernix has joined #ruby
mkaito_ has joined #ruby
volix has quit [Changing host]
volix has joined #ruby
zumbi has joined #ruby
snapcase has joined #ruby
kiki_lamb has joined #ruby
bier has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
alfiemax has joined #ruby
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
olblak has joined #ruby
wkoszek_ has joined #ruby
gell5 has joined #ruby
<zenspider>
ruby... hipsters...
<zenspider>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<zenspider>
!rails
lxsameer is now known as Guest84006
paraxial has joined #ruby
jmcgnh has joined #ruby
aloy has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
lytol has quit [Remote host closed the connection]
_habnabit has joined #ruby
aloy is now known as Guest52147
jp has joined #ruby
bier has joined #ruby
cthulchu has joined #ruby
ablackack has joined #ruby
bmurt has joined #ruby
camilasan has joined #ruby
shadeslayer has joined #ruby
booboy has joined #ruby
arahael has joined #ruby
miah has joined #ruby
harmaahylje has joined #ruby
cthulchu_ has joined #ruby
cthu| has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
cthulchu_ has quit [Ping timeout: 240 seconds]
gell5 has quit [Remote host closed the connection]
gell5 has joined #ruby
apeiros has joined #ruby
kryptoz has joined #ruby
gell5 has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
gell5 has joined #ruby
nicht has joined #ruby
<salasrod>
+
Guest84006 has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
gell5 has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 276 seconds]
braincrash has quit [Quit: bye bye]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has joined #ruby
Guest84006 has quit [Ping timeout: 244 seconds]
cthu| has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
r29v has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Guest84006 has joined #ruby
noobineer has quit [Ping timeout: 244 seconds]
jraavis has joined #ruby
kryptoz has quit [Remote host closed the connection]
r29v has quit [Quit: r29v]
apeiros has joined #ruby
ptx0_ is now known as ptx0
Guest84006 has quit [Ping timeout: 244 seconds]
alfiemax has joined #ruby
axsuul has joined #ruby
apeiros has quit [Ping timeout: 268 seconds]
kenichi_ is now known as kenichi
Guest84006 has joined #ruby
Guest80173 has quit [Read error: Connection reset by peer]
salasrod has quit [Remote host closed the connection]
Nicmavr has joined #ruby
Nicmavr is now known as Guest65812
gix has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
tenderlove has joined #ruby
chkhanch has joined #ruby
r29v has joined #ruby
white_lilies has quit [Ping timeout: 256 seconds]
jraavis has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
gell5 has joined #ruby
nicht has quit [Ping timeout: 256 seconds]
solocshaw has quit [Ping timeout: 264 seconds]
gell5 has quit [Ping timeout: 264 seconds]
Guest84006 has joined #ruby
solocshaw has joined #ruby
tenderlove has quit [Remote host closed the connection]
donofrio_ has quit [Remote host closed the connection]
Mrgoose2 has quit [Ping timeout: 240 seconds]
RougeT430 has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
SeepingN has joined #ruby
kryptoz has joined #ruby
dellavg has joined #ruby
kryptoz has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 260 seconds]
cthulchu_ has quit [Ping timeout: 240 seconds]
dellavg has quit [Client Quit]
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
dellavg has joined #ruby
paradisaeidae_ has quit [Client Quit]
paradisaeidae has quit [Client Quit]
starseed0000 has joined #ruby
Eiam has quit [Ping timeout: 276 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
alfiemax_ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
alfiemax has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
pisculic1i is now known as pisculichi
pisculichi has quit [Changing host]
pisculichi has joined #ruby
Guest84006 has quit [Ping timeout: 244 seconds]
solocshaw has joined #ruby
darkhanb has joined #ruby
Guest84006 has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
anisha has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
Guest84006 has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
akkiguru_ has quit [Ping timeout: 240 seconds]
Guest84006 has joined #ruby
Inline_ has quit [Quit: Leaving]
amar has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
amar has quit [Ping timeout: 244 seconds]
darkhanb has quit [Ping timeout: 244 seconds]
za1b1tsu has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
Guest84006 has quit [Ping timeout: 268 seconds]
cadillac_ has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
Guest84006 has joined #ruby
cadillac__ has joined #ruby
mynameis_ has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
cadillac__ is now known as cadillac_
SeepingN has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
starseed0000 has quit [Ping timeout: 240 seconds]
r3m has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
mtkd has joined #ruby
tenderlove has quit [Ping timeout: 265 seconds]
cadillac_ has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
tenderlove has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
cadillac_ has joined #ruby
mynameis_ has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
apeiros has joined #ruby
aupadhye has joined #ruby
tenderlove has quit [Remote host closed the connection]
reber has joined #ruby
tenderlove has joined #ruby
cadillac_ has quit [Ping timeout: 268 seconds]
cadillac_ has joined #ruby
gell5 has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
tenderlove has quit [Ping timeout: 240 seconds]
akkiguru_ has joined #ruby
cadillac_ has joined #ruby
gell5 has quit [Ping timeout: 240 seconds]
mynameisdebian has quit [Remote host closed the connection]
akkiguru_ has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
cadillac_ has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
cadillac_ has joined #ruby
Guest84006 has quit [Ping timeout: 244 seconds]
sidx64 has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
Mrgoose has joined #ruby
Technato1 has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
cadillac_ has joined #ruby
Guest84006 has joined #ruby
troys has quit [Quit: Bye]
nertzy has quit [Ping timeout: 276 seconds]
pabs has quit [Ping timeout: 255 seconds]
sauvin has joined #ruby
pabs has joined #ruby
akkiguru_ has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
postmodern__ has joined #ruby
postmodern_ has quit [Read error: Connection reset by peer]
za1b1tsu has quit [Ping timeout: 264 seconds]
za1b1tsu has joined #ruby
rippa has joined #ruby
cadillac_ has joined #ruby
tenderlove has joined #ruby
duderono_ has quit [Ping timeout: 248 seconds]
go|dfish has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
schleppel has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
Guest84006 has quit [Ping timeout: 244 seconds]
konsolebox has quit [Ping timeout: 244 seconds]
tenderlove has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
konsolebox has joined #ruby
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
go|dfish has joined #ruby
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
Guest84006 has joined #ruby
shinnya_ has quit [Ping timeout: 248 seconds]
Pupeno__ has joined #ruby
Pupeno_ has quit [Ping timeout: 244 seconds]
Bloob_ has joined #ruby
<Bloob_>
hi everyone ! im a total noob with ruby (I never studied it) and i did not get through a simple blocking thing
<Bloob_>
can anyone help me to convert a data: {"current":260,"value":260,"points":[{"x":1,"y":239.0},{"x":2,"y":249.0},{"x":3,"y":241.0},"id":"Icng2-testicinga-procs","updatedAt":1530796631030}
<Bloob_>
into data: {"current":260,"value":260,"points":[239,249,241], "id":"Icng2-testicinga-procs","updatedAt":1530796631030}
<Bloob_>
i just want the y value separated by comma in the points variable;.
za1b1tsu has quit [Ping timeout: 268 seconds]
<Bloob_>
i can provide code and help as long anyone answer me ^-^
<tbuehlmann>
so convert [{"x":1,"y":239.0},{"x":2,"y":249.0},{"x":3,"y":241.0}] into [239, 249, 241], right?
<Bloob_>
yes thats a way to do what i want
<Bloob_>
can i explain you my all process ? because i think there's a simpler way to do it if you know the context
<tbuehlmann>
not having too much time, but sure, go ahead. maybe there are more people reading
<Bloob_>
do you know dashing ?
dionysus69 has joined #ruby
<Bloob_>
i'm currently using a job (file that goes for information and return it in an "event") in ruby which is working great. It takes data from a Graphite (time series database)
<Bloob_>
the output of what it takes is {"current":260,"value":260,"points":[{"x":1,"y":239.0},{"x":2,"y":249.0},{"x":3,"y":241.0},"id":"Icng2-testicinga-procs","updatedAt":1530796631030}
<Bloob_>
but i need an other event to be sent, something like [239, 249, 241]
harmaahylje has quit [Ping timeout: 264 seconds]
<Bloob_>
so 1 - i change what the job is taking from graphite
<Bloob_>
2- i do what you said : i convert the output into a new one
<ruby[bot]>
Bloob_: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<Bloob_>
oh, sorry
andikr has joined #ruby
TomyWork has joined #ruby
yohji has joined #ruby
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has joined #ruby
aufi has joined #ruby
za1b1tsu has joined #ruby
sidx64 has joined #ruby
<tbuehlmann>
well, you can convert that array by calling .map { |element| element[:y] }
<Bloob_>
literally ? because i dont know a damn thing about perl
Tempesta has quit [Quit: See ya!]
<Bloob_>
i'm about to copy paste as the best place i can find
<Bloob_>
myArray.map{ |element| element[:y] }
<Bloob_>
??
<tbuehlmann>
try it in a console: my_array = [{x: 1, y: 239.0}, {x: 2,y: 249.0}, {x: 3, y: 241.0}]; my_array.map { |element| element[:y] } # => [239.0, 249.0, 241.0]
clemens3 has joined #ruby
Dbugger has joined #ruby
Technato1 has quit [Ping timeout: 260 seconds]
Guest52147 has quit [Quit: WeeChat 2.1]
aloy has joined #ruby
Technato1 has joined #ruby
DarthGandalf has joined #ruby
claudiuinberlin has joined #ruby
<baweaver>
graphite_rows.map(&Xf.trace('y').get)
<baweaver>
:D
ams__ has joined #ruby
Burgestrand has joined #ruby
ams__ has quit [Client Quit]
ams__ has joined #ruby
<Bloob_>
undefined local variable or method `point' for #<Graphite:0x000000024c7af0>
ByronJohnson has quit [Ping timeout: 264 seconds]
<Bloob_>
^^'
<Bloob_>
baweaver : it seems to be a good trick, where should i use it ?
ByronJohnson has joined #ruby
biberu has joined #ruby
DarthGandalf has quit [Ping timeout: 276 seconds]
<baweaver>
It's a gem called Xf. That said simpler is probably better for now.
<tbuehlmann>
^
<Bloob_>
ok, i know how to install a gem but i repeat, i dont know how to use any form of code in ruby. not even the simpliest
<Bloob_>
i'm using code i found on the internet and i'm currently trying to adapt it. What you send me seems to be a nice feature bu i dont feel like i will be able to use it
sphenxes has joined #ruby
alfiemax has joined #ruby
blackmesa has joined #ruby
Technato1 has quit [Ping timeout: 260 seconds]
<Bloob_>
i did it !!! thank you for help guys
<Bloob_>
it was a "simple" points.map!{|element| element[:y]}
<tbuehlmann>
\o/
chmurifree is now known as chmuri
DarthGandalf has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 268 seconds]
za1b1tsu has quit [Ping timeout: 260 seconds]
akkiguru_ has quit [Ping timeout: 264 seconds]
Some-body_ has joined #ruby
sticaz has quit [Quit: WeeChat 2.0.1]
sticaz has joined #ruby
DarthGandalf has quit [Ping timeout: 265 seconds]
Some-body_ is now known as DarthGandalf
amar has joined #ruby
Fridtjof has quit [Ping timeout: 240 seconds]
rupam123456 has quit [Ping timeout: 240 seconds]
amar_ has joined #ruby
amar has quit [Read error: Connection reset by peer]
Biohazard_ has quit [Ping timeout: 265 seconds]
Technato1 has joined #ruby
gell5 has joined #ruby
nicesignal has quit [Ping timeout: 264 seconds]
sticaz has quit [Quit: toodles.]
sticaz has joined #ruby
shinnya has joined #ruby
akkiguru_ has joined #ruby
qba73 has joined #ruby
ellcs has joined #ruby
gell5 has quit [Ping timeout: 240 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Some-body_ has joined #ruby
DarthGandalf has quit [Ping timeout: 264 seconds]
Some-body_ is now known as DarthGandalf
rupam123456 has joined #ruby
riton has left #ruby ["WeeChat 2.1"]
za1b1tsu has joined #ruby
rupam123456 has quit [Ping timeout: 264 seconds]
Beams has joined #ruby
Fridtjof has joined #ruby
Biohazard has joined #ruby
ciscam has quit [Ping timeout: 244 seconds]
ciscam has joined #ruby
Beams has quit [Quit: .]
alex`` has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
Beams has joined #ruby
kryptoz has joined #ruby
mikecmpbll has joined #ruby
za1b1tsu has joined #ruby
blackmesa has quit [Quit: WeeChat 2.1]
sidx64 has joined #ruby
sphenxes has quit [Quit: Leaving]
sphenxes has joined #ruby
sphenxes has quit [Max SendQ exceeded]
pauliesaint has quit [Ping timeout: 240 seconds]
Technato1 has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samosaphile>
lupine:
Technato1 has joined #ruby
nicesignal has joined #ruby
megamos has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
pauliesaint has joined #ruby
venmx has joined #ruby
za1b1tsu has quit [Ping timeout: 244 seconds]
za1b1tsu has joined #ruby
sylario has joined #ruby
DarthGandalf has quit [Ping timeout: 260 seconds]
megamos has quit [Remote host closed the connection]
<Bloob_>
i know nothing about what i gave you but hope it will help you
<arne>
well i just googled gems, and they all did weird stuff
<arne>
this one looks like what i want
NL3limin4t0r has joined #ruby
tenderlove has joined #ruby
<Bloob_>
i googled " ruby captcha generator "
<arne>
i guess i was missing the generator part :)
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
<arne>
why are we living in a world with bots
<arne>
so annoying
alfiemax has quit [Remote host closed the connection]
elomatreb has quit [Ping timeout: 256 seconds]
<Bloob_>
and why captcha are still asking me to select cars after 3 entire captcha (more than 45seconds wasted)
<arne>
well, are u behind a tor node? because that never happens to me
<Bloob_>
i'm not. but usually, the captchas i get let me click on a square then is turns white and it takes 4 secondes to load the next image. thats annoying as fck
<Bloob_>
when you have 4 images to wait to load and then, you click "verify captcha" and you have to do it one more time ?.
za1b1tsu has joined #ruby
<Bloob_>
there is better way to verify if someone is human, captchas are not as viable as before
<apeiros>
also yeah, .pack("C*") >>> .map(&:chr).join
<Bish>
well, doesn't sound right to have a broken string to tell it's it's whole again
<apeiros>
you have a misunderstanding there
<apeiros>
the string isn't broken
<Bish>
well, for a moment it is, it's just not used in that time :p
<apeiros>
no, not even for a moment.
<Bish>
well, if you take the bits of a float, and put it into an integer, put it back into a float, then the integer one would still be broken, wouldn't it
<Bish>
just thought there was a cleaner version
<apeiros>
that's not really a good comparison
<Bish>
because those are 2 types?
<apeiros>
no, because the mechanisms differ
<Bish>
how so
<apeiros>
you have a string with an encoding. you break it up into something which can't preserve the encoding, you put it back together, so the encoding is binary.
<apeiros>
and all you tell ruby is that you know that the encoding actually is utf-8, and not binary.
<apeiros>
it's knowledge which you have to provide. hence the force_encoding.
<Bish>
but force always sounds unclean
<apeiros>
that's your perception.
<Bish>
well, if you have to force something
sidx64 has joined #ruby
<apeiros>
yeah, I'm not going to argue about your perception. that's kinda your own problem.
<Bish>
there was something "wrong".. why would anyone "force" something.. if it wasn't supposed to be that way in the first place
<konsolebox>
Bish: in some way i agree. #forced
<apeiros>
what it does is inform ruby which encoding an array of bytes uses.
<Bish>
describing it what it does is not an argument
<apeiros>
if you want to hang yourself up about the naming of the method, well, d'uh. up to you.
<konsolebox>
Bish: but seriously there is eventually a default choice of configuration that has to be made, hence forced configuration is needed sometimes
<Bish>
i don't mind about the name.. the name is implied by what it does
nowhere_man has quit [Ping timeout: 265 seconds]
<Bish>
the unclean nature of it .. made it named "force"
alfiemax has quit [Remote host closed the connection]
<apeiros>
eh, yeah, that's bullshit.
Technato1 has quit [Ping timeout: 256 seconds]
Technato1 has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<zenspider>
forcing the encoding IS unclean. It might be wrong and you can wind up with an invalid string. Not sure why you're so hung up on the naming tho
<zenspider>
force seems fine to me
<Bish>
no the naming is perfect for what it does, because it is unclean :D
<zenspider>
I've used it before mostly when I don't actually know the encoding, so I try out the encodings in stastistically most likely order until I get one where #valid_encoding? is true
<Bish>
yeah... maybe that.s the reason why i hate it
<apeiros>
well, every single-byte encoding will always give you valid_encoding?
<Bish>
because whenever code includes force_encoding.. you fixed that piece of code multiple times..
<Bish>
zenspider: charlock_holmes and mojibake are good
<apeiros>
and there's plenty of cases where you have to read data to determine the encoding. most common case nowadays: http. you read. extract the encoding. set the encoding.
<zenspider>
I used charlock to figure out the statistics of it
<Bish>
... well, charlock also provides setting it
<apeiros>
of course you can also just stick to binary all the time with such data. however, that's far from the string being "broken".
elomatreb has joined #ruby
<zenspider>
yeah... but at least in that case, the http header encoding is previously defined.
<Bish>
with charlock_holmes/string
<Bish>
what zenspider said
<zenspider>
charlock is slow. I didn't want to deal with it
nima_m has quit [Ping timeout: 260 seconds]
<zenspider>
so I did the maths and figured out the most likely encodings. 95% of ruby files are still ASCII anyhow
<zenspider>
do some extra work on the other 5% but do it fast
<apeiros>
charlock reproducibly returned false charsets for where I wanted to use it. so, I guess, good luck with that?
<zenspider>
how/why?
<Bish>
apeiros: well, do you never work with broken input?
<zenspider>
were they actually invalid?
<apeiros>
no idea for the why.
<apeiros>
Bish: all the time.
<apeiros>
but encodings isn't one of my problems.
<Bish>
well, charlock worked for me, detected/transformed the weirdest things
<apeiros>
it's limited to utf-8, macroman and windows-1252 in my case. and I can detect those with a high probability without charlock too.
sticaz has quit [Quit: toodles.]
<zenspider>
I have a date with a jackhammer at 8:30am...
* zenspider
heads to bed
<apeiros>
sleep tight
<Bish>
gn
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sticaz has joined #ruby
rawste has joined #ruby
sticaz has quit [Client Quit]
dalpo has joined #ruby
<dalpo>
hi
cyberg has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
alfiemax has joined #ruby
nowhere_man has joined #ruby
amar_ has quit [Remote host closed the connection]
amar_ has joined #ruby
Cthulu202 has quit [Quit: Nowhere special. I always wanted to go there.]
FernandoBasso has joined #ruby
jottr has joined #ruby
akkiguru_ has quit [Ping timeout: 265 seconds]
Technato1 has quit [Ping timeout: 265 seconds]
Technato1 has joined #ruby
amar_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
Cthulu201 has joined #ruby
amar_ has joined #ruby
ur5us has joined #ruby
<Bish>
dalpo: hi
fernandobasso_ has joined #ruby
FernandoBasso has quit [Ping timeout: 252 seconds]
sticaz has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has quit [Quit: .]
Xiti` has quit [Quit: Xiti`]
ur5us has quit [Remote host closed the connection]
<havenwood>
mjacob: codepoints are the ordinal of each character
<havenwood>
mjacob: size counts characters
troys has joined #ruby
tenderlove has joined #ruby
<mjacob>
indeed, the size should be the same
<mjacob>
also, is `s.chars.map { |c| c.ord } == s.codepoints` always true? the code paths for this look a bit different
zleap has quit [Quit: WeeChat 2.1]
amar__ has joined #ruby
amar_ has quit [Ping timeout: 244 seconds]
ptx0 has quit [Quit: Changing server]
ptx0 has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
akaiiro has quit [Remote host closed the connection]
<dorian>
hey can anybody point to best practices for dealing with namespace collisions? specifically if you define module/class Foo::Bar and thus module Foo, but there is a class Foo hanging out somewhere else?
<havenwood>
mjacob: i can't think of a case where the ordinals of the characters would differ from the codepoints. i have to relocate at the moment, but i'll follow the code later to double check.
amar_ has joined #ruby
dviola has joined #ruby
jcarl43 has joined #ruby
<havenwood>
dorian: Matz has mentioned that namespace improvements are something he has in mind for the future.
<mjacob>
havenwood: thank you!
<havenwood>
dorian: There's no way to have a class and module of the same name though. You have to rename one of them.
jottr has quit [Ping timeout: 244 seconds]
<dorian>
yeah i don't really care whether Foo is a module or class,
<dorian>
i just did something like unless Module.const_defined? 'Foo'; module Foo; end; end
<dorian>
seems to work?
Beams has quit [Quit: .]
GodFather has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
bkxd has joined #ruby
yokel has joined #ruby
mtkd has quit []
r29v has quit [Quit: r29v]
venmx has quit [Ping timeout: 240 seconds]
salasrod has quit [Remote host closed the connection]
Inline has joined #ruby
andikr has quit [Remote host closed the connection]
daed has quit [Remote host closed the connection]
Mike11 has quit [Quit: Leaving.]
GodFather has joined #ruby
punnie has joined #ruby
tdy has joined #ruby
<Demos[m]>
if I have a class defined over multiple files can I tell yard which is the correct file to pull top-level docs from
punnie has left #ruby [#ruby]
<Demos[m]>
I can just not comment on the other files but that generates rubocop warnings
tcopeland has quit [Quit: tcopeland]
<Demos[m]>
also how can I suppress rubocop warnings where I have an attr_accessor then later a method overriding either the getter or setter
<Demos[m]>
if I just comment the getter and setter then yard will generate a new symbol in the docs, which isn't really what I want
shinnya has quit [Ping timeout: 260 seconds]
alem0lars_ has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
alem0lars has quit [Ping timeout: 264 seconds]
guille-moe has quit [Ping timeout: 264 seconds]
Mia has quit [Read error: Connection reset by peer]
Asher has quit [Quit: Leaving.]
mtkd has joined #ruby
sticaz has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Pupeno_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
alem0lars__ has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
MzrE has quit [Quit: Leaving]
jottr has joined #ruby
tdy has quit [Ping timeout: 264 seconds]
alem0lars_ has quit [Ping timeout: 240 seconds]
soniya29_ has joined #ruby
soniya29 has joined #ruby
apeiros has quit []
hakusaro has joined #ruby
graphene has joined #ruby
kryptoz has quit [Remote host closed the connection]
cheater has joined #ruby
kryptoz has joined #ruby
dbugger_ has joined #ruby
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
kryptoz has quit [Read error: Connection reset by peer]
yohji has quit [Remote host closed the connection]
rawste has quit [Quit: Sleep....]
<hakusaro>
If you have an Array of Arrays, like dr = Array.new(3, Array.new(3, "f")) and you set dr[0][0] = "z", why does every 0th item become "z" and not just the item at [0] of the [0]th array?
<zxq2>
when using inheritance if i want to simply add code to the constructor method of the superclass in the derived class without completely replacing it, can i do this?
<zxq2>
if that's not clear: i want the derived class to inherit the superclass's constructor and to modify in the derived class, instead of rewriting the whole thing
<samosaphile>
havenwood: i liked that spidr crawler gem you linked to yesterday .. the only problem i'm having with it is, it seems to do a breadth first search (meaning scan all folders in higher level directories) before moving to lower levels. Need to somehow make it depth first (i.e. crawl deep first then move on) but not too sure how
<samosaphile>
havenwood: not sure what the difference is or if i understand you question correctly .. basically that site, the directory goes like: Day folders -> Name folders -> Contents (.rep file, .txt file, .jpg files) .. but I only need to read .txt files (ignore everything else)
fluxAeon has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
Guest84006 has quit [Ping timeout: 244 seconds]
<samosaphile>
havenwood: right now, it tries to download (or print I mean) all like Day folders first, then all name folders first ... before getting to actual contents (.txt files)
<samosaphile>
maybe you're right not easy to add..
AndroidKitKat is now known as AppleiPhone
AppleiPhone is now known as AndroidKitKat
Guest84006 has joined #ruby
mikecmpbll has joined #ruby
mitescugd has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
rawste has quit [Quit: Sleep....]
pauliesaint has quit [Ping timeout: 244 seconds]
Guest84006 has quit [Ping timeout: 260 seconds]
pauliesaint has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
moei has quit [Quit: Leaving...]
Rapture has joined #ruby
tdy has joined #ruby
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 264 seconds]
sauvin has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
pr0ton has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ianmalcolm_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
ianmalcolm has joined #ruby
ianmalcolm has joined #ruby
ianmalcolm has quit [Changing host]
alem0lars has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 260 seconds]
solocshaw1 is now known as solocshaw
Guest84006 has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
Guest84006 has joined #ruby
starseed0000 has joined #ruby
mtkd has quit []
Guest84006 has quit [Ping timeout: 256 seconds]
za1b1tsu has joined #ruby
Guest84006 has joined #ruby
ellcs has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
<samosaphile>
lupine:
Guest84006 has joined #ruby
conta has quit [Quit: conta]
Guest84006 has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
ldnunes has quit [Ping timeout: 244 seconds]
tenderlove has quit [Remote host closed the connection]
Guest84006 has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
eckhardt_ has joined #ruby
Guest84006 has quit [Ping timeout: 260 seconds]
desperek has joined #ruby
Guest84006 has joined #ruby
ldnunes has joined #ruby
Guest84006 has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
biberu has quit []
fernandobasso_ has quit [Quit: Page closed]
Guest84006 has joined #ruby
dimino has joined #ruby
<dimino>
hey I'm not super familiar with ruby, but I want to run some tests for this project but I'm not sure how to get the dependencies working -- I've run "bundle" and then tried "rake test" but it's not finding the deps
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
havenwood: why do/did you recommend spidr? I'm checking it out out of curiosity and it seems slow as fuck to me. like REALLY slow.
<zenspider>
rough guess... proportional or worse to number of links on a page
ivanskie has joined #ruby
<zenspider>
it hits my sitemap page and literally sits there for ~8 seconds
Guest84006 has quit [Ping timeout: 260 seconds]
Mrgoose has quit [Ping timeout: 240 seconds]
<zenspider>
I'm wondering if I'm missing something here... I'm using a snippet from the readme to print broken links
<zenspider>
I think it is parsing an audio file now. :P
<havenwood>
zenspider: I point people to it when I get the impression they're trying to create a crawler rather than use one, since it's simpler than something fancy and multithreaded like anemone.
<havenwood>
Also, fewer tentacles.
rwb has joined #ruby
Guest84006 has joined #ruby
GodFather has joined #ruby
<zenspider>
I've been using a modified version of the spider that ships with mechanize... It's been drifting tho, so I need to bring it into my project properly and ship with it.
<zenspider>
but it was MUUUCH faster
alfiemax has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
Guest84006 has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
traumschule has joined #ruby
Guest84006 has joined #ruby
* traumschule
has issues to understand /var/lib/gems/2.5.0/gems/tilt-2.0.8/lib/tilt/haml.rb:77: warning: Haml::Engine#precompiled_method_return_value at
<traumschule>
/usr/lib/ruby/2.5.0/forwardable.rb:157 forwarding to private method Haml::Compiler#precompiled_method_return_val
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
dimino has quit [Quit: Leaving...]
ByronJohnson has quit [Ping timeout: 260 seconds]
<traumschule>
it's raised by amber server. does it mean that precompiled_method_return_val was privatized?
<zenspider>
IDGI... I switched back to the mechanize spider and it is SO fast in comparison
<zenspider>
they both use nokogiri tho... so I'm confused
ByronJohnson has joined #ruby
<zenspider>
traumschule: that's not raised. that's warned.
<traumschule>
true, but a bit too often.
<traumschule>
i'd like to submit a patch to tilt. what do you suggest?
Guest84006 has quit [Ping timeout: 264 seconds]
<zenspider>
looking at the code... this seems to be a straight call inside an instance eval but I'm not willing to chase this further. Should be straight forward to fix
<zenspider>
yeah. I'd patch it up and send them a PR
<zenspider>
maybe you're running with -w and they usually don't?
postmodern has joined #ruby
* traumschule
needs to check what amber does
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mike11 has quit [Quit: Leaving.]
knight33 has joined #ruby
Guest84006 has joined #ruby
salasrod has joined #ruby
Guest84006 has quit [Ping timeout: 264 seconds]
Dbugger has quit [Quit: Leaving]
c0ncealed2 has quit [Remote host closed the connection]
crankharder has quit [Remote host closed the connection]
c0ncealed2 has joined #ruby
Guest84006 has joined #ruby
sticaz has joined #ruby
ldnunes has quit [Quit: Leaving]
sticaz has quit [Client Quit]
<traumschule>
nice, updating haml did it (4.0.7->5.0.4)
sticaz has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
Guest84006 has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
DarthGandalf has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 240 seconds]
Guest84006 has quit [Ping timeout: 264 seconds]
wald0 has quit [Quit: Lost terminal]
za1b1tsu has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
ellcs has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
desperek has quit [Quit: xoxo]
Guest84006 has joined #ruby
DarthGandalf has joined #ruby
pr0ton has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
reber has quit [Remote host closed the connection]
<zenspider>
or that
bak1an has joined #ruby
Guest84006 has joined #ruby
DarthGandalf has quit [Ping timeout: 260 seconds]
Guest84006 has quit [Ping timeout: 244 seconds]
DarthGandalf has joined #ruby
Guest84006 has joined #ruby
mynameisdebian has joined #ruby
Guest84006 has quit [Ping timeout: 244 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
Guest84006 has joined #ruby
za1b1tsu has quit [Ping timeout: 268 seconds]
tdy has quit [Ping timeout: 268 seconds]
pen has joined #ruby
desperek has joined #ruby
AKPWD has quit [Ping timeout: 268 seconds]
Guest84006 has quit [Ping timeout: 240 seconds]
AKPWD has joined #ruby
mynameisdebian has quit [Remote host closed the connection]