<Radar>
hanmac: if zzak is a bot then it was the best animatronic bot that I have ever met.
kent\n has quit [Changing host]
kent\n has joined #ruby
mleung has joined #ruby
pawnbox has joined #ruby
<jphase>
hi, I'm new to ruby and am going through this tutorial: http://12devs.co.uk/articles/writing-a-web-application-with-ruby-on-rails/ at the part that says "The Bookmark model". After I ran "rails generate scaffold bookmark title:string url:string" and did a db migrate I get "Bookmark (call 'Bookmark.connection' to establish a connection)" in my rails console. Anyone see what I'm missing?
ensyde__ has quit [Ping timeout: 258 seconds]
<Radar>
jphase: What happens if you do Bookmark.all?
<jphase>
Radar: it looks more promising: Bookmark Load (1.2ms) SELECT "bookmarks".* FROM "bookmarks"
<jphase>
I also see: => #<ActiveRecord::Relation []>
<Radar>
jphase: Ok, so that might just be because nothing in the console has needed to establish a database connection yet. You can ignore that advice to call Bookmark.connection.
<jphase>
ahh right, so ruby likes to just let you know about stuff
<HeikkiG>
good day. Does anyone know how to use regex to match an ASCII text so that //.match(IO.read('/etc/services')) will not throw an exception? Force encoding does not help.
guardianJ has left #ruby [#ruby]
<apeiros>
HeikkiG: please paste the exception you get
<HeikkiG>
invalid byte sequence in UTF-8
nofxx has quit [Ping timeout: 244 seconds]
<apeiros>
the full exception
MrBusiness2 has quit [Ping timeout: 250 seconds]
<HeikkiG>
do you have a linux computer around?
<apeiros>
I don't think I need a linux computer to read your paste
darkxploit has joined #ruby
<HeikkiG>
in `match': invalid byte sequence in UTF-8 (ArgumentError)
<apeiros>
.b copies the string additionally to setting the encoding to binary
<hanmac>
hm yeah apeiros way would be better
codecop has quit [Ping timeout: 250 seconds]
nofxx has joined #ruby
Gasher has joined #ruby
<apeiros>
depending on what you do you'll also have to adapt your regex (depending on its content, its encoding will default to utf-8 too)
<HeikkiG>
ok, ty
<apeiros>
>> /ä/ =~ "ä".b
<ruby[bot]>
apeiros: # => incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) (Encoding::CompatibilityErr ...check link for more (https://eval.in/580967)
infra-red has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 244 seconds]
czerasz has joined #ruby
infra-red has joined #ruby
codecop has joined #ruby
HeikkiG has left #ruby [#ruby]
aupadhye has quit [Quit: Leaving]
aupadhye has joined #ruby
skade has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
skade has joined #ruby
aupadhye has quit [Client Quit]
LoneHermit has quit [Remote host closed the connection]
aupadhye has joined #ruby
aries_liuxueyang has quit [Ping timeout: 272 seconds]
brendan- has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
AlexRussia has joined #ruby
poguez_ has joined #ruby
ocbtec has joined #ruby
blackmesa has joined #ruby
aries_liuxueyang has joined #ruby
einarj has joined #ruby
nankyokusei has joined #ruby
idefine has joined #ruby
Vlat- has joined #ruby
maletor3 has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
senayar has joined #ruby
helpa has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 244 seconds]
helpa has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
scepticulous has joined #ruby
chipotle has quit [Quit: cheerio]
Vlat- has quit [Quit: Vlat-]
iooner has quit [Excess Flood]
maletor3 has quit [Ping timeout: 240 seconds]
iooner has joined #ruby
kgrz has quit [Ping timeout: 250 seconds]
sluukkonen has quit [Quit: WeeChat 1.0.1]
etehtsea has quit [Quit: Computer has gone to sleep.]
sluukkonen has joined #ruby
moeabdol2 has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
moeabdol1 has quit [Ping timeout: 260 seconds]
<adaedra>
Bonjour
lxsameer has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
weckl has joined #ruby
ur5us has joined #ruby
duoi has quit [Ping timeout: 272 seconds]
LoneHerm_ has quit [Remote host closed the connection]
duoi has joined #ruby
saneax is now known as saneax_AFK
skade has joined #ruby
madgen has joined #ruby
rafadc has joined #ruby
skade has quit [Client Quit]
skade has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
toretore has joined #ruby
n1x-nz has quit [Quit: Computer says no]
scepticulous has quit [Ping timeout: 272 seconds]
<flughafen>
bonjour adaedra
Dimik has quit [Ping timeout: 264 seconds]
madgen has quit [Ping timeout: 260 seconds]
kgrz has joined #ruby
platzhirsch has joined #ruby
scepticulous has joined #ruby
jaguarmagenta has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
dkam has joined #ruby
kgrz has quit [Ping timeout: 240 seconds]
xpt has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
depesz has left #ruby ["WeeChat 1.5-dev"]
Elysia is now known as bathtub_shark
karmatr0n has joined #ruby
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
karmatr0n has quit [Ping timeout: 244 seconds]
slackbotgz has joined #ruby
kvguay has joined #ruby
skade has joined #ruby
scepticulous has quit [Ping timeout: 244 seconds]
judofyr has joined #ruby
kvguay has quit [Remote host closed the connection]
lightt has quit [Remote host closed the connection]
qasaur has joined #ruby
sid_fules has joined #ruby
tgeeky has quit [Ping timeout: 260 seconds]
douglascorrea has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
judofyr has quit []
ferr has joined #ruby
jancel has joined #ruby
scepticulous has joined #ruby
iktbbj has joined #ruby
sid_fules has quit [Ping timeout: 264 seconds]
douglascorrea has quit [Ping timeout: 250 seconds]
xpt has joined #ruby
maletor3 has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
jancel has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
nhhc has quit [Ping timeout: 240 seconds]
maletor3 has quit [Ping timeout: 246 seconds]
bloxbloxbloxblox has joined #ruby
electrostat has quit [Remote host closed the connection]
blackmesa has joined #ruby
saneax_AFK is now known as saneax
kgrz has joined #ruby
terlar has joined #ruby
electrostat has joined #ruby
DoubleMalt has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
amincd has quit [Ping timeout: 250 seconds]
pavan__ has joined #ruby
sdothum has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
nhhc has joined #ruby
terlar has quit [Quit: WeeChat 1.5]
GodFather has quit [Ping timeout: 258 seconds]
slackbotgz has quit [Remote host closed the connection]
joonty has quit [Quit: This computer has gone to sleep]
lightt has joined #ruby
domgetter has joined #ruby
joonty has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qasaur has quit [Excess Flood]
qasaur has joined #ruby
blackgoat has joined #ruby
<pavan__>
hi guys
<pavan__>
i am facing the following error
ocbtec has quit [Quit: leaving]
<pavan__>
"ERROR: LoadError: cannot load such file -- roo"
<pavan__>
what might be the issue
Gasher has quit [Ping timeout: 260 seconds]
<pavan__>
i installed all the related gems
<pavan__>
dont know still y i amf acing
skade has joined #ruby
<norc>
pavan__: It means it cannot find the gem in its gempath
Macaveli has joined #ruby
<pavan__>
ohh
<pavan__>
do i need to set gems path
<pavan__>
@norc
<adaedra>
you shouldn't have to
<pavan__>
ohh
<pavan__>
so any other way to resolve this issue
<adaedra>
how did you install 1/ ruby 2/ the gem
<pavan__>
gem install roo
<pavan__>
in this way @adaedra
<adaedra>
and ruby?
<pavan__>
using rvm
ocbtec has joined #ruby
<pavan__>
rvm use 2.3.1 --default
skade has quit [Quit: Computer has gone to sleep.]
<adaedra>
do `gem list --local roo` shows your gem?
vdamewood has joined #ruby
<pavan__>
ya displaying
<pavan__>
ro 4.0.0
<pavan__>
sry roo 4.0.0
joonty has quit [Quit: This computer has gone to sleep]
simplyigor has joined #ruby
simplyigor has quit [Client Quit]
karmatr0n has joined #ruby
johnmilton has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 260 seconds]
joonty has joined #ruby
bluOxigen has joined #ruby
karmatr0n has quit [Ping timeout: 258 seconds]
auzty has quit [Quit: Leaving]
terlar has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
giz|work has joined #ruby
wazzat has joined #ruby
lightt has quit [Remote host closed the connection]
<apeiros>
imperator: or Time.at(t.to_i.quo(3600).round*3600)
Fernando-Basso has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
<apeiros>
oh, the former has an edge-case with >=23h30
<apeiros>
latter is probably easier, but wonder whether it's got its own edge-cases
cdg has joined #ruby
<imperator>
apeiros, thanks
fedexo has joined #ruby
<apeiros>
and if you've indeed an iso string, Time.iso8601 is the way to get it back into a Time object
moeabdol2 has joined #ruby
JesseH has joined #ruby
madgen has joined #ruby
<shevy>
now that is one epic API usage there
<apeiros>
but… it's an epoch API usage!
kareeoleez has quit [Remote host closed the connection]
<agent_white>
>> get-naked
<ruby[bot]>
agent_white: # => undefined local variable or method `get' for main:Object ...check link for more (https://eval.in/581411)
<agent_white>
booo
<agent_white>
Whoa new bot.
chip_ has quit [Ping timeout: 264 seconds]
tax has quit [Ping timeout: 252 seconds]
haylon has quit [Quit: Leaving]
ftj has joined #ruby
kareeoleez has joined #ruby
tk__ has quit [Quit: ばいばい]
moeabdol2 has quit [Ping timeout: 264 seconds]
kgrz has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
jrafanie_ has joined #ruby
mdw has joined #ruby
CausaMortis has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
pec has joined #ruby
dionysus70 has joined #ruby
CausaMortis has joined #ruby
tvw has quit [Read error: Connection reset by peer]
kgrz has quit [Ping timeout: 272 seconds]
jrafanie has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
dionysus70 is now known as dionysus69
bkxd has quit [Ping timeout: 260 seconds]
jerematic has joined #ruby
norc has quit [Ping timeout: 250 seconds]
pandaant has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
maletor3 has joined #ruby
kareeoleez has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
Gasher has quit [Quit: Leaving]
aganov has quit [Remote host closed the connection]
Fernando-Basso has quit [Ping timeout: 264 seconds]
Gasher has joined #ruby
pandaant has joined #ruby
maletor3 has quit [Ping timeout: 240 seconds]
eGGshke has quit [Quit: Leaving...]
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
blackmesa has joined #ruby
giz|work has quit [Ping timeout: 260 seconds]
deadnull_ has quit [Quit: Bye]
pandaant has quit [Remote host closed the connection]
DaniG2k has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
SilverKey has quit [Quit: Halted.]
lxsameer has joined #ruby
JJM has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
gtsai has joined #ruby
Fernando-Basso has joined #ruby
nobitanobi has joined #ruby
DanyC has quit []
RegulationD has joined #ruby
nobitanobi has quit [Remote host closed the connection]
gtsai has quit [Remote host closed the connection]
gtsai has joined #ruby
nobitanobi has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
Fernando-Basso has quit [Quit: Leaving]
SilverKey has joined #ruby
marr has joined #ruby
dopamean_ has joined #ruby
ta_ has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
tina has joined #ruby
rafadc_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
smathy has joined #ruby
jrafanie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
duckpuppy has quit [Quit: WeeChat 1.5]
joonty has quit [Quit: This computer has gone to sleep]
rafadc has quit [Ping timeout: 260 seconds]
last_staff has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
startupality has joined #ruby
ta_ has quit [Remote host closed the connection]
idefine has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby
ChiefAlexander has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
mark_66 has quit [Quit: Leaving.]
kies has joined #ruby
yfeldblum has joined #ruby
snebel has joined #ruby
dionysus69 has quit [Remote host closed the connection]
<snebel>
Hi all
<snebel>
Is it possible to "objectify" a hash with nested hash within?
DaniG2k has quit [Quit: leaving]
<snebel>
to then being able to access attributes something like this obj.attribute.nested_attribute
dionysus69 has joined #ruby
<snebel>
os this is no rubyist?
rodfersou is now known as rodfersou|lunch
<pontiki>
you might want to look at OpenStruct, snebel
<snebel>
I was looking at but wasn't clear for me... after this suggestion I'll definitively look fiurther to it
<pontiki>
you'd have to do the deep conversion, though
<snebel>
thanks!
startupality has quit [Quit: startupality]
<pontiki>
there's likely a gem to do a deep-objectify
<snebel>
mmm
<snebel>
very interesting
jhack has quit [Quit: jhack]
cpup has joined #ruby
jhack has joined #ruby
noahgibbs_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
CoderPuppy has quit [Ping timeout: 244 seconds]
noahgibbs has joined #ruby
synthroi_ has quit [Remote host closed the connection]
Couch has quit [Quit: Ex-Chat]
Couch has joined #ruby
<shevy>
this sounds exciting
<shevy>
deep-objects
<adaedra>
snebel: just so you know, OpenStruct does not really bring a lot (transforming ['xxx'] to .xxx), requires you to do the tranformation deeply, and is a performance it. It surely is not worth it.
[Butch] has joined #ruby
<adaedra>
hit*
roamingdog has joined #ruby
sneakerhax has quit [Ping timeout: 240 seconds]
[Butch]_ has joined #ruby
flughafen_ has joined #ruby
<snebel>
any suggestion?
p0p0pr37_ has joined #ruby
<snebel>
I'm googling for some gem
<snebel>
may be i should just stick with hash structures
<adaedra>
I suggest keeping it as a hash
<snebel>
yeah
p0p0pr37 has quit [Ping timeout: 240 seconds]
infra-red has quit [Remote host closed the connection]
p0p0pr37_ is now known as p0p0pr37
freerobby has quit [Ping timeout: 276 seconds]
CoderPuppy has joined #ruby
[Butch] has quit [Ping timeout: 250 seconds]
[Butch]_ is now known as [Butch]
kareeoleez has joined #ruby
<shevy>
but you can use those nifty method names!
noahgibbs_ has quit [Quit: Page closed]
jaruga____ has quit [Quit: jaruga____]
yqt has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
cpup has quit [Ping timeout: 260 seconds]
Akagi201 has quit [Remote host closed the connection]
maletor3 has joined #ruby
minot has joined #ruby
minot has quit [Max SendQ exceeded]
jaguarmagenta has joined #ruby
noahgibbs has quit [Quit: noahgibbs]
startupality has joined #ruby
malconis_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
ssiris has joined #ruby
deviation has joined #ruby
maletor3 has quit [Ping timeout: 260 seconds]
malconis has quit [Ping timeout: 260 seconds]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
tulak has quit [Ping timeout: 260 seconds]
Es0teric has joined #ruby
ducklobster has joined #ruby
jhack has quit [Quit: jhack]
jhack has joined #ruby
pawnbox has quit [Remote host closed the connection]
freerobby has joined #ruby
senayar has joined #ruby
ips|malc has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
pawnbox has joined #ruby
aufi has quit [Ping timeout: 272 seconds]
A124 has quit [Ping timeout: 272 seconds]
yfeldblu_ has joined #ruby
jhack has quit [Client Quit]
jhack has joined #ruby
RobertBirnie has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
A124 has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
norc has joined #ruby
idefine has quit [Read error: Connection reset by peer]
amclain has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
synthroid has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
tristanp has quit [Read error: Connection reset by peer]
mployee8 has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flughafen_ has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
Couch has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
mployee8 has quit [Client Quit]
RegulationD has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skolman_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
Cohedrin has joined #ruby
idefine has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
tulak has joined #ruby
skolman_ has joined #ruby
yfeldblu_ has quit [Ping timeout: 272 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
c0mrad3 has joined #ruby
tulak has quit [Client Quit]
kareeoleez has joined #ruby
joonty has quit [Client Quit]
MrBusiness2 has joined #ruby
nettoweb has joined #ruby
jackjackdripper has joined #ruby
Yiota has joined #ruby
pec has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
MrBusiness3 has quit [Ping timeout: 272 seconds]
malconis_ is now known as malconis
SCHAAP137 has joined #ruby
fedexo has quit [Ping timeout: 260 seconds]
giz|work has joined #ruby
minimalism has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
skolman_ has quit [Read error: Connection reset by peer]
skolman has joined #ruby
CJKinni has quit [Read error: Connection reset by peer]
Guest63 has joined #ruby
Guest63 is now known as dar123
cpup has joined #ruby
<dar123>
i am trying to write a scraper, unable to submit the password to login
senayar has quit []
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tgeeky has joined #ruby
moeabdol2 has joined #ruby
CoderPuppy has quit [Ping timeout: 240 seconds]
flughafen_ has joined #ruby
scepticulous has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
martee has joined #ruby
<martee>
im creating 2 threads, that makes get requests, then i join the threads before moving on.
symm- has quit [Ping timeout: 252 seconds]
<martee>
it seems like one of the threads is blocking the join from finishing because when i run the code it just never logs some code that comes after the join statement
pawnbox has quit [Remote host closed the connection]
<martee>
some of the output says ‘Connection: keep-alive Connection can be kept alive indefinitely’
douglascorrea has quit [Remote host closed the connection]
ChiefAlexander has quit [Remote host closed the connection]
RegulationD has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol2 has quit [Client Quit]
MrBusiness3 has joined #ruby
shinnya has joined #ruby
cdg has quit [Remote host closed the connection]
TomyLobo has joined #ruby
jancel has joined #ruby
RegulationD has quit [Remote host closed the connection]
MrBusiness2 has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
martee has quit [Quit: martee]
[Butch] has joined #ruby
Fernando-Basso has joined #ruby
polishdub has joined #ruby
nankyokusei has joined #ruby
snebel has quit [Quit: Leaving]
jancel has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
dfockler has joined #ruby
maletor3 has joined #ruby
ramfjord has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
mikecmpbll has quit [Ping timeout: 252 seconds]
danostrowski has joined #ruby
sid_fules has joined #ruby
rodfersou|lunch is now known as rodfersou
m_antis has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
solocshaw1 has joined #ruby
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor3 has quit [Ping timeout: 260 seconds]
sneakerhax has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
solocshaw has quit [Ping timeout: 272 seconds]
solocshaw1 is now known as solocshaw
dfockler has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
startupality has quit [Quit: startupality]
martee has joined #ruby
moeabdol has joined #ruby
giz|work has quit [Ping timeout: 252 seconds]
Devalo has quit [Ping timeout: 264 seconds]
jhack has quit [Quit: jhack]
jhack has joined #ruby
nettoweb has joined #ruby
domgetter has quit [Ping timeout: 252 seconds]
madgen has quit [Ping timeout: 252 seconds]
douglascorrea has joined #ruby
Seeq has quit [Ping timeout: 264 seconds]
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw1 is now known as solocshaw
ramfjord has joined #ruby
CJKinni has joined #ruby
flashpoint9 has joined #ruby
hahuang61 has joined #ruby
GodFather has joined #ruby
startupality has joined #ruby
kspencer has quit [Remote host closed the connection]
Ropeney has quit [Quit: Leaving]
kspencer has joined #ruby
evidex has quit [Ping timeout: 244 seconds]
jmignault has quit [Ping timeout: 276 seconds]
idefine has quit [Read error: Connection reset by peer]
einarj has quit [Remote host closed the connection]
Guest63 has joined #ruby
aegis3121 has joined #ruby
kspencer has quit [Remote host closed the connection]
ljames has joined #ruby
weckl has quit [Remote host closed the connection]
qasaur has joined #ruby
mleung has joined #ruby
gnufied has quit [Quit: Leaving]
jwarren_ has joined #ruby
rafadc_ has quit [Remote host closed the connection]
Seeq has joined #ruby
rafadc has joined #ruby
idefine has joined #ruby
mikecmpbll has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
deadnull_ has joined #ruby
ItSANgo__ has joined #ruby
roamingdog has quit [Remote host closed the connection]
aries_liuxueyang has joined #ruby
idefine has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
gnufied has joined #ruby
ItSANgo has quit [Ping timeout: 260 seconds]
darkxploit has quit [Remote host closed the connection]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<martee>
i need to make a soap request
<martee>
im looking @ a ‘sample request’ and it includes a request field …
startupality has quit [Quit: startupality]
<martee>
is that equivalent to headers?
Noxilex has joined #ruby
idefine has joined #ruby
beawesomeinstead has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
djbkd has joined #ruby
beawesomeinstead has joined #ruby
tinnvec has quit [Remote host closed the connection]
<martee>
it looks like i have to write some raw … stuff
<martee>
i was hoping i could just do something like {headers: {}}
firstdayonthejob has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
tenderlove has joined #ruby
<toretore>
martee: i don't see any "request field"
<martee>
toretore: oh yeah not in that case
<martee>
but is that how you format a SOAP request? it looks gross
<toretore>
what you're talking about makes little sense without the proper context
dgncn has quit [Ping timeout: 250 seconds]
<martee>
toretore: if i want to make soap requests do i do that by writing ugly stuff that you see in the link i sent you?
<toretore>
i don't know what that means
<martee>
ok
ruby-nooby has joined #ruby
<norc>
martee, you have to write things if you want to do things. Yes.
<toretore>
soap requests are http requests with xml in their body
czerasz has quit [Ping timeout: 260 seconds]
<toretore>
the xml format is according to some soap standard
<martee>
and are all soap requests posts?
<ruby-nooby>
soap is still being used?
tinnvec has joined #ruby
<martee>
ruby-nooby: unfortunately :\
<ruby-nooby>
Subscription has_many subscribers? or Subscription.subscribers = [Serialized array of subscribers]?
<norc>
martee, what is a request post?
<ruby-nooby>
using postgres on heroku
<martee>
the method
<norc>
?rubyonrails
<ruby[bot]>
norc: I don't know anything about rubyonrails
<norc>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<norc>
ruby-nooby,
<ruby-nooby>
thanks norc
<martee>
ruby-nooby: whats the dif?
<ruby-nooby>
the dif is one is activerecord relations
braincrash has quit [Ping timeout: 272 seconds]
<ruby-nooby>
the other is storing serialized data
<martee>
oh obviously activerecord i think, otherwise that would be like nosql stuff
<ruby-nooby>
nah its not nosql
<apeiros>
soap shares the same problem xml has: it's horribly abused by people without a clue.
<ruby-nooby>
soap should probably die
<martee>
i want soap to die
roamingdog has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 240 seconds]
<apeiros>
ruby-nooby: and be replaced by unspecced json apis? hurray.
<ruby-nooby>
fair
<ruby-nooby>
i just dont like xml
<martee>
from reading about soap it seems like its better than json
<ruby-nooby>
maybe im just brainwashed
<toretore>
you are just inexperienced
<martee>
‘waiting for someone to comment on ‘better’’
<apeiros>
?best
<ruby[bot]>
"better" and "best" depend entirely on your context. Try to describe what quality would make one thing better than the other.
startupality has joined #ruby
<martee>
haha
<apeiros>
there you go
flughafen_ has quit [Ping timeout: 244 seconds]
dgncn has joined #ruby
SilverKey has quit [Quit: Halted.]
<martee>
does anyone know if i can make soap requests with manticore? dont see anything explict on their github page
braincrash has joined #ruby
<apeiros>
I prefer json apis over soap mostly because people tend to build smaller calls. but I don't think the underlying technology is any better.
SilverKey has joined #ruby
<norc>
apeiros, someone in management said "we need a database to store all our heterogenous data". After the business man with the tie was thrown out for trying to sell them SAP (if you are insolvent already, SAP will do it for you), another business man stands up and gives them a big speech about "Policies, schemas, conformity", shortly after which everybody was rejoicing.
<norc>
apeiros, and suddenly they had XML.
saneax is now known as saneax_AFK
<toretore>
most people who don't like xml can't articulate exactly what it is they don't like other than "i had to write this horribly complex xml doc one time"
<ruby-nooby>
toretore that sounds right
<hxegon>
xml is a lot harder to read IMO than json
<norc>
hxegon, neither is meant to be read by you.
<hxegon>
less human-readable I mean
<apeiros>
hxegon: only if it's badly specced
<toretore>
because large, nested json docs are easy to read
<apeiros>
it's a lot easer to read a complex xml than a complex json
<norc>
apeiros, XML can do things that JSON cant do though.
<apeiros>
since with the large json, all you have is dicts
<norc>
And things like XSD can make XML pretty well suited for some tasks in fact.
<apeiros>
so the json alone doesn't tell you what you're looking at
millerti has joined #ruby
<apeiros>
norc: yupp. things like that being what I meant by "but I don't think the underlying tech is better"
<apeiros>
anyway, IME both, json and xml fail when people suck
<toretore>
the thing with soap, xml, static typing and the like is that they are good ideas and they work well for their intended purpose, but most people are too lazy to use it properly
codecop has joined #ruby
<norc>
apeiros, that applies to any programming related topic.
<apeiros>
norc: indeed :)
giz|work has joined #ruby
<norc>
toretore, Ive seen people get started with C++, being so happy that you now have const_cast, making calling functions so much easier..
skade has joined #ruby
<apeiros>
toretore: precisely
<norc>
That was some real sad stories.
<apeiros>
toretore: or even use them outside their intended purpose
<apeiros>
toretore: we have a partner company which provides us their database export as xml - ~1GB per delivery. in csv, it'd be ~1/10th the size and *tons* faster to import.
skade has quit [Client Quit]
<toretore>
apeiros: and then you get "simple" solutions that are simple and easy on the surface but have no allowance for complexity
sid_fules has quit [Read error: Connection reset by peer]
finisherr has joined #ruby
<toretore>
apeiros: though csv has its problems too, but if it were properly formatted i would agree
skade has joined #ruby
jenrzzz has joined #ruby
Guest63 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Client Quit]
sid_fules has joined #ruby
joonty has joined #ruby
joonty has quit [Client Quit]
hahuang61 has quit [Ping timeout: 272 seconds]
<ducklobster>
what is the proper way to test utility methods in my ruby app
floatingpoint has joined #ruby
<norc>
ducklobster, minitest, rspec or any other testing framework you like
<ducklobster>
norc: well specifically within rspec i am running into a problem where
<ducklobster>
i don't include the utility file for the main tests
<ducklobster>
but then the main tests fail (all raise nomethod exceptions)
<ducklobster>
for things like the logger
<norc>
ducklobster, stub them
biberu has joined #ruby
<ducklobster>
do i just redefine the methods in the before block?
ramfjord has joined #ruby
<norc>
No you stub them.
<toretore>
ducklobster: gist your code?
nobitanobi has quit []
<ducklobster>
toretore: sure, gimme a min
<ducklobster>
norc: i don't follow :(
binaryplease1 has joined #ruby
madgen has joined #ruby
<norc>
ducklobster, in essence allow(obj).to receive(:message).and_return(:foo)
<norc>
ducklobster, that will make the object to respond to message
<toretore>
ducklobster: the actual code i mean, not the tests
<norc>
martee, depends. Is this for anything where security is even remotely important?
<martee>
norc: mmmm no i dont think so
ramfjord has quit [Ping timeout: 260 seconds]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc>
martee, then why are you looking at Random?
Todd has quit [Ping timeout: 260 seconds]
<martee>
norc: so there aren’t duplicates
<norc>
Random does not guarantee that.
skade has joined #ruby
danostrowski has joined #ruby
<martee>
norc: true … but isn’t it highly unlikley?
<martee>
right?
<norc>
martee, that depends on your entropy source.
<martee>
huh?
jhack has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
<martee>
the amoutn of time something has to be a duplicate?? idk a day
<norc>
martee, any pseudonumber generation is only as "random" as the quality of its entropy source.
skade has quit [Client Quit]
<norc>
martee, just use a counter counting upwards if you want it to be unique.
imperator has left #ruby ["Leaving"]
<martee>
fine
elifoster has joined #ruby
<martee>
what about
<martee>
Time.now.to_i + Rand.new_seed
maletor3 has quit [Ping timeout: 272 seconds]
<martee>
good enough?
SilverKey has quit [Quit: Halted.]
<norc>
That is just setting a seed value.
<toretore>
ducklobster: probably what nord said, stub the logger to make it a noop
skade has joined #ruby
<martee>
but the time.now.to_i would guarantee the front would always be different
<norc>
martee, honestly. If you don't understand random things well enough, just stick to counters. Far easier to use, and less likely to make a huge mistake when you suddenly rely on it for security,
nadir has quit [Quit: Connection closed for inactivity]
<norc>
martee, nope it would not.
<norc>
martee, that statement alone is proof enough you should avoid Random. :)
hahuang61 has quit [Ping timeout: 244 seconds]
SilverKey has joined #ruby
<toretore>
ducklobster: maybe refactor further so that you're not calling methods directly on whatever `logger` returns, but calling methods like `log` or `info` which can then be either 1) implemented in such a way that they don't require a logger to be present or 2) stub them to do nothing
<ducklobster>
toretore: seems like the right move
<martee>
norc: what do u think the probability is of u getting a duplicate using Time.now.to_i + Random.new_seed
binaryplease1 is now known as binaryplease
GodFather has quit [Ping timeout: 244 seconds]
<toretore>
ducklobster: otherwise you will have to provide a stub Logger that implements Logger's interface
<ducklobster>
toretore: that is also an interesting idea, then i can be agnostic to the log format
<norc>
martee, do what you want I dont care.
m_antis has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
<toretore>
ducklobster: i personally always abstract away any specific logging implementation in my code
<norc>
a counter is the most trivial solution to get unique values.
<norc>
Generating UUIDs is the next best thing if you don't mind it being a bit expensive.
<martee>
norc: what if u have multiple servers
<toretore>
martee, norc just use uuid
<martee>
toretore: isnt there a chance a uuid could not be unique
<toretore>
it's a universally unique identifier
<toretore>
so no
<martee>
yeah but isn’t it random?
skweek has quit [Ping timeout: 246 seconds]
<martee>
there’s no central authority handing out the ids
<toretore>
(yes, but you would probably need more than one universe to get a collition)
<toretore>
s/t/s/
kies has quit [Ping timeout: 276 seconds]
<norc>
martee, if applied correctly you could generate millions of billions of UUIDs before you get a probability of a duplicate that is worth finding a notation for.
<martee>
to reiteratie norc, it depends on your entropy source.
<norc>
Precisely.
<norc>
And ultimately the best entropy source is a quantum number generator, as that is not pseudo random but truly random.
<martee>
im going to use Time.now.to_i.to_s + Random.new_seed.to_s
<martee>
is that too long for a session id?
<norc>
As I said, do what you want.
<norc>
martee, rails uses the full cookie size for a session ID I think.
<martee>
how big is that?
<norc>
Big.
<norc>
4kb
<ducklobster>
toretore: is it generally ok to just include custom exception classes?
mtkd has quit [Ping timeout: 240 seconds]
<toretore>
ducklobster: what do you mean?
<ducklobster>
toretore: or should i strictly speaking be stubbing that functionality out too
<norc>
martee, and that is just to make guessing a session ID for session fixation as hard as humanly possible.
RegulationD has quit [Ping timeout: 244 seconds]
Yiota has joined #ruby
<ducklobster>
toretore: oh wait, nevermind i just need to require my custom exceptions in the lib files themselves
iktbbj has quit [Remote host closed the connection]
Yiota has quit [Max SendQ exceeded]
<toretore>
ducklobster: if you're talking about raising exceptions in your code, then that is part of the contract and should be tested
arooni has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
<ducklobster>
toretore: i guess my real question is, should every file be self sufficient and have the necessary require statements in it?
mtkd has joined #ruby
<norc>
ducklobster, any public behaviour that code can observe that someone might rely upon should be tested.
joonty has joined #ruby
<norc>
ducklobster, makes testing a single spec much easier if you do :)
<ducklobster>
i mean, i do test that the exceptions are raised but
Yiota has joined #ruby
<toretore>
ducklobster: yes
<norc>
since you can just do rspec spec/foo/bar_spec.rb
<norc>
ducklobster, if you have defined behaviour - test for it.
sid_fules has joined #ruby
Fernando-Basso has quit [Ping timeout: 264 seconds]
polishdub has quit [Ping timeout: 246 seconds]
<ducklobster>
related to requiring all necessary files
<ducklobster>
i can see how it makes testing single specs much easier but
<toretore>
ducklobster: there are very few cases where i think expecting something to be required inside of a file is ok
ChiefAlexander has joined #ruby
<ducklobster>
if you require inside doesn't that mess up your coverage?
<toretore>
coverage?
<ducklobster>
since everything required after you do SimpleCov.start will be included in the test coverage
<toretore>
i don't know what that is, but if you require the same file twice, the second require doesn't do anything
<ducklobster>
i.e. if i have SimpleCov.start in my spec_helper, and i require core.rb which requires exceptions.rb, then the coverage will contain both
idefine has quit [Read error: Connection reset by peer]
sid_fules has quit [Read error: Connection reset by peer]
<toretore>
well, shouldn't those things be kept separate then?
<norc>
ducklobster, the less you require in your spec_helper the faster your tests will run.
sid_fules has joined #ruby
<norc>
If your library is small and you have only few tests, then its easier to just require it all once in your spec_helper though.
<ducklobster>
norc: i don't actually require anything in spec_helper, i require the lib files individually in each spec
<ducklobster>
the spec_helper just starts the SimpleCov thing
djbkd has quit [Remote host closed the connection]
<ducklobster>
toretore: yes thats what i thought but that goes against the whole each file should be self sufficient (require all it needs)
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deadnull_ has quit [Quit: AFK]
<ducklobster>
would it help if i put up all the code?
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<norc>
ducklobster, cant hurt :)
<norc>
ducklobster, each approach is fine. Yours is faster but more cumbersome to manage.
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
<norc>
But unless you have more than 500 tests, I do not think it is relevant unless you have absurdly high load times when requiring.
chouhoulis has joined #ruby
jphase has joined #ruby
<toretore>
ducklobster: what i mean is shouldn't the simplecov stuff be done separately?
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sid_fules has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
<ducklobster>
norc: i still don't have anything up anywhere so i might stop by later when the code is up and get you guys' opinions! thanks for the help tho
blackmesa has quit [Ping timeout: 240 seconds]
<ducklobster>
toretore: i'm not sure what you mean? my understanding was simplecov should be done with the tests so you can see if your tests are sufficient
zz_barkerd427 has joined #ruby
madgen has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
confounds has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
<toretore>
ducklobster: yeah, maybe you're right, i don't know anything about it - it probably hooks into the tests when they're being run to measure
<toretore>
tbh i find stuff like that pretty useless
<dar123>
I am writing a scraper, can't login to the page.
jackjackdripper has joined #ruby
confound_ has joined #ruby
djbkd has joined #ruby
kspencer has joined #ruby
spider-mario has quit [Remote host closed the connection]
<norc>
dar123, check line 16 of your class.
<norc>
You have a Heisenbug there.
spider-mario has joined #ruby
m_antis has joined #ruby
blackmesa has joined #ruby
<hxegon>
norc: wow, you're on point today.
infinitone has joined #ruby
m_antis has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
confounds has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
ramfjord has joined #ruby
polishdub has quit [Quit: Leaving]
_aeris_ has quit [Ping timeout: 276 seconds]
ishe_ua has quit [Remote host closed the connection]
pawnbox has joined #ruby
CJKinni has quit [Ping timeout: 244 seconds]
ishe_ua has joined #ruby
RegulationD has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
symm- has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
Yiota_ has joined #ruby
nando293921 has joined #ruby
Akagi201 has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
confound_ has quit []
confounds has joined #ruby
joenuts_ has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
clifford_ has joined #ruby
<norc>
hxegon, with that kind of a question (and he repeated it even!) he deserved it.
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yiota has quit [Ping timeout: 258 seconds]
sauvin has quit [Remote host closed the connection]
_aeris_ has joined #ruby
ChiefAlexander has joined #ruby
cloaked1 has joined #ruby
jhack has quit [Quit: jhack]
blackmesa has joined #ruby
isxek has quit [Quit: Leaving]
Dimik has joined #ruby
last_staff has joined #ruby
Akagi201 has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
CausaMortis has quit [Ping timeout: 272 seconds]
cloaked1 has quit [Client Quit]
sdothum has joined #ruby
thorgi has quit [Ping timeout: 240 seconds]
<hxegon>
norc: wasn't being sarcastic :D
anisha has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
skolman has quit [Remote host closed the connection]
thorgi has joined #ruby
nankyokusei has joined #ruby
qasaur has joined #ruby
kies has joined #ruby
diegoaguilar has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
multi_io has quit [Ping timeout: 264 seconds]
allcentury has joined #ruby
multi_io has joined #ruby
djcp has quit [Quit: WeeChat 1.0.1]
nadir has joined #ruby
Guest63 has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Ping timeout: 258 seconds]
maletor3 has joined #ruby
dopie has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
mikecmpbll has joined #ruby
k3rn31 has joined #ruby
ishe_ua has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 260 seconds]
Guest63 has quit [Ping timeout: 276 seconds]
anisha has quit [Quit: This computer has gone to sleep]
maletor3 has quit [Ping timeout: 252 seconds]
futilegames has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
dhollinger has joined #ruby
Madplatypus has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
gheegh has joined #ruby
qasaur has quit [Max SendQ exceeded]
sid_fules has joined #ruby
clifford_ has quit [Ping timeout: 240 seconds]
sid_fules has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 244 seconds]
qasaur has joined #ruby
dionysus69 has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
aegis3121 has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
startupality has quit [Quit: startupality]
nhhc has quit [Ping timeout: 246 seconds]
skolman has joined #ruby
renderful has joined #ruby
blackmesa has joined #ruby
davedev2_ has joined #ruby
whathappens has quit [Remote host closed the connection]
Devalo has joined #ruby
jenrzzz has joined #ruby
joonty has joined #ruby
sid_fules has joined #ruby
whathappens has joined #ruby
davedev24 has quit [Ping timeout: 272 seconds]
dopie has quit [Quit: Leaving]
I has joined #ruby
I has quit [Remote host closed the connection]
dopie has joined #ruby
iCHAIT has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
amargherio has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iCHAIT has left #ruby [#ruby]
whathappens has quit [Client Quit]
pawnbox has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
saneax_AFK is now known as saneax
whathappens has joined #ruby
bluOxigen has joined #ruby
elementaru has quit [Remote host closed the connection]
ChiefAlexander has quit [Remote host closed the connection]
jancel has joined #ruby
freerobby has joined #ruby
GBrawl has joined #ruby
ChiefAlexander has joined #ruby
Vingador_ has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.5]
futilegames has quit [Quit: futilegames]
jancel has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
Vingador has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
confound_ has joined #ruby
infra-red has joined #ruby
hahuang61 has joined #ruby
Devalo has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderfu_ has joined #ruby
renderful has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
confounds has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
confound_ has quit [Ping timeout: 244 seconds]
gtsai has quit [Ping timeout: 244 seconds]
Pupeno has joined #ruby
lightt has joined #ruby
lightt has quit [Max SendQ exceeded]
grvgr has joined #ruby
pepee has joined #ruby
djbkd has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
czerasz has joined #ruby
nettoweb has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
synthroid has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
nofxx has joined #ruby
lightt has joined #ruby
confounds has joined #ruby
jaguarmagenta has joined #ruby
vdamewood has quit [Ping timeout: 250 seconds]
lightt has quit [Remote host closed the connection]
maletor3 has joined #ruby
djbkd has joined #ruby
GBrawl has quit [Quit: (null)]
alfiemax has joined #ruby
Macaveli has joined #ruby
jaguarmagenta has quit [Ping timeout: 276 seconds]
Dimik has quit [Ping timeout: 264 seconds]
dfockler has joined #ruby
mattwashere has quit [Remote host closed the connection]
maletor3 has quit [Ping timeout: 246 seconds]
nat2610 has joined #ruby
confound_ has joined #ruby
<nat2610>
how would you guys go about debugging an error {"exception"=>#<NoMethodError: undefined method `empty?' for #<URI::HTTP:0x31134a24 URL:http://172.18.87.74:3000/deobfuscate>>, "backtrace"=>["/opt/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:1869:in `initialize'", "/opt/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:2102:in `initialize'", …
freerobby has quit [Quit: Leaving.]
<norc>
nat2610, byebug it.
karmatr0n has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
<norc>
nat2610, can you gist a full stack trace?
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
Synthead has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
mattwashere has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
confounds has quit [Ping timeout: 250 seconds]
jackjackdripper has joined #ruby
<nat2610>
norc
<nat2610>
sure
sid_fules has quit [Read error: Connection reset by peer]
<norc>
nat2610, ruby is calling a method (empty?) on path - so obviously a HTTPGenericRequest in that particular ruby version does not accept an URI there.
<norc>
nat2610, Would have to find out when - but that support wasn't added until later.
Devalo has quit [Ping timeout: 272 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
kies has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
smathy is now known as smathy_afk
blackgoat has joined #ruby
lxsameer has joined #ruby
tildes_ has joined #ruby
agent_white has quit [Quit: brb]
lxsameer has quit [Client Quit]
<nat2610>
norc: how can you tell ?
confound_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
<norc>
nat2610, some experience, quickly comparing current trunk against an implementation equivalent to the ruby version you are using
theunraveler has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
<nat2610>
I tried to change that to be a string and so far I'm getting a null object in res
kies has joined #ruby
<norc>
nat2610, a relative path
martee has quit [Quit: martee]
maletor3 has joined #ruby
<norc>
e.g. '/deobfuscate'
haxrbyte has quit [Remote host closed the connection]
<nat2610>
ok so uri.request_uri
<nat2610>
gotcha
haxrbyte_ has joined #ruby
skweek has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lightt has quit [Ping timeout: 260 seconds]
ruby-lang486 has joined #ruby
<ruby-lang486>
Hey guys, just a quick regex question. I'm parsing through a file line by line and I want to grab the content from the quotes in a line like this: value="content"
dar123 has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
maletor3 has quit [Ping timeout: 260 seconds]
<ruby-lang486>
I keep on getting value="content" when I just want content
<shevy>
ruby-lang486 a simple way would be via a regex
<shevy>
ruby-lang486 http://rubular.com/r/sU2ZRWup1s - it would be available in $1; or in the matchdata object if you use one
sid_fules has joined #ruby
danostrowski has joined #ruby
jancel has joined #ruby
rafadc_ has joined #ruby
<ruby-lang486>
@shevy thanks!
fmcgeough has quit [Quit: fmcgeough]
Pupeno has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
<havenwood>
ruby-lang486: or scan with a positive lookahead and lookbehind
lightt has joined #ruby
<ruby-lang486>
@shevy actually for somereasion it doesn't work, I still get value="content" instead of just conent
<ruby-lang486>
@shevy would it be just like /regex/.match(line)?
jancel has quit [Read error: Connection reset by peer]
deviation has quit [Ping timeout: 260 seconds]
<jwarren_>
Hey everyone. Anyone have a second to answer some questions about Ruby/Rack config.ru stuff? I'm new to Ruby and quite perplexed.
<havenwood>
jwarren_: What trouble are you running into?
<norc>
jwarren_, the answer is yes!
<norc>
Hope I could help you.
<norc>
(:
jancel has joined #ruby
synthroid has quit []
scepticulous has quit [Ping timeout: 260 seconds]
jaiks has quit [Ping timeout: 240 seconds]
<jwarren_>
I'm trying to figure out how to set up custom HTTP headers. Specifically, I'm trying to set X-Frame-Options to allow a certain domain. My config.ru file has `require "jekyll-auth"` and then `run JekyllAuth.site`, and I think between those I can do something like `Rack::Headers...`, right?
arlek has joined #ruby
idefine has quit [Read error: Connection reset by peer]
gnufied has quit [Ping timeout: 250 seconds]
[Butch] has quit [Quit: I'm out . . .]
<norc>
jwarren_, do you have some middleware that sets a default X_Frame-Options (like SAMEORIGIN) ?
giz|work has joined #ruby
ur5us has joined #ruby
gheegh has quit [Ping timeout: 264 seconds]
<norc>
jwarren_, because unless you have a middleware that already emits a DENY or SAMEORIGIN, the browser will not be limited in this regard from what I remember.
<jwarren_>
norc, I think Jekyll is setting it by default, but I'm not sure. I do know that when it's deployed, SAMEORIGIN is set as the value.
<norc>
Fair enough, that's what I wanted to know. :)
lightt has quit [Remote host closed the connection]
johnmilton has joined #ruby
Pupeno has joined #ruby
jhack has quit [Quit: jhack]
nadir has quit [Quit: Connection closed for inactivity]
<norc>
jwarren_, doesn't look like Jeckyll uses Rack out of the box. Are you using rack-jeckyll?
hutch34_ has joined #ruby
smathy_afk is now known as smathy
chip__ has joined #ruby
<jwarren_>
Well, it's a Jekyll/JekyllAuth site that's deployed on Heroku. The Jekyll-Auth docs walk through setting it up using Heroku defaults, which uses Rack.
<ruby-lang486>
@norc I can't use nokogiri, the place im working at uses an older version of ruby
<jwarren_>
Jekyll-auth essentially wraps Jekyll, I think.
<jwarren_>
As I'm looking at the docs more, it looks like I can do something like `use Rack::Response::Helpers.add_header('X-Frame-Options', 'ALLOW-FROM https://example.com/')`. But I'm probably reading the docs wrong... Does that seem reasonable?
<norc>
jwarren_, you could simply use an after filter
DynamicM` has joined #ruby
<norc>
jwarren_, after { headers('X-Frame-Options' => 'ALLOW-FROM example.com')}
hutch34 has quit [Ping timeout: 276 seconds]
bruce_lee has quit [Ping timeout: 250 seconds]
jenrzzz_ has joined #ruby
gtsai_ has quit [Ping timeout: 252 seconds]
<norc>
jwarren_, it probably is introdoced by Rack::Protection through Sinatra.
<norc>
(Which is a good thing, so no need to turn it off)
moeabdol has quit [Quit: WeeChat 1.4]
jenrzzz has quit [Ping timeout: 260 seconds]
sid_fules has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
DynamicMetaFlow has quit [Ping timeout: 276 seconds]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jwarren_>
norc, My Ruby is pretty crude. What's an after filter? Right now the line in my config.ru is `use Rack::Response::Helpers.add_header 'X-Frame-Options', 'ALLOWALL'`, where would the after piece go instead?
gtsai has joined #ruby
<jwarren_>
(Except ALLOWALL is just a placeholder at the moment)
<bougyman>
jwarren_: an after filter is a rails thing, not ruby
ruby-nooby has quit [Ping timeout: 250 seconds]
rafadc_ has quit [Remote host closed the connection]
<norc>
bougyman, jwarren_: It is a Sinatra thing in this context.
<ironcamel>
This method is similar to #system but it doesn’t wait for the command to finish.
jphase has quit [Ping timeout: 260 seconds]
<ironcamel>
I need the equivalent of Kernel.system on ruby 1.8.7
<ironcamel>
err, Kernel.spawn
whathapp_ has quit [Read error: Connection reset by peer]
whathapp_ has joined #ruby
<ironcamel>
i need to do system foo.sh; let it run for a few seconds, and then kill the foo.sh process
<ironcamel>
from ruby
<ironcamel>
what's the easiest way to do that?
<adaedra>
well Kernel.spawn should do it then, what's the problem?
<norc>
ironcamel, fork?
<norc>
adaedra, Kernel.spawn was not available in 1.8.7
<ironcamel>
adaedra: i only have ruby 1.8.7
CausaMortis has joined #ruby
<adaedra>
ah, you are on 1.8.7
<adaedra>
I misunderstood
dh64 has quit [Quit: Konversation terminated!]
nando293921 has quit [Remote host closed the connection]
<adaedra>
you can't update Ruby? 1.8.7 is a dinosaur.
<ironcamel>
i know i know
<ironcamel>
it's not up to me. this is for $work
<norc>
ironcamel, Id simply fork
<ironcamel>
i use v2.3 for all my personal stuff
<ironcamel>
norc: i tried forking and killing the pid
<ironcamel>
but the underlying system process keeps going
<norc>
ironcamel, that will leave zombies.
roamingdog has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 252 seconds]
<ironcamel>
i have a foo.sh that is:
<ironcamel>
for i in `seq 10`; do echo $i >> /tmp/xx; done
duckpuppy has quit [Ping timeout: 246 seconds]
roamingdog has joined #ruby
<smathy>
ironcamel, you'd need to handle the signal in your own code in the fork/subprocess and kill the system process there when you receive that signal.
<norc>
ironcamel, well if you execute a shell command with & you place it into the background, you could then return $! with your system command, then you have the pid of your child
<ironcamel>
on the ruby side i have:
<ironcamel>
pid = fork { system './xx.sh'; exit }
<ironcamel>
sleep 3
<ironcamel>
Process.kill('TERM', pid)
<ironcamel>
smathy: how do i get the pid of the foo.sh process?
<smathy>
ironcamel, no, in the fork you need to handle that signal so your parent process can signal your forked subprocess, and then IT will kill the system process.
<ironcamel>
smathy: how does IT get the pid of the system process?
<adaedra>
wat
<norc>
ironcamel, Oh. Dont use system. use exec.
snockerton has joined #ruby
<norc>
ironcamel, that should do the job for you.
* ironcamel
is looking up exec ...
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<smathy>
Oh true, that's better. I was missing a timeout step.
<smathy>
...forgetting myself there.
<ironcamel>
so i should do pid = fork { exec "foo.sh" } ?
<ironcamel>
then i kill that pid?
jenrzzz has joined #ruby
rafadc has joined #ruby
<ironcamel>
that seemed to work
<ironcamel>
should i put an exit in that fork block?
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
Nothing after an exec is executed; exec replaces current process.
Pupeno has quit [Remote host closed the connection]
<ironcamel>
pid = fork { exec "foo.sh"; exit }
<smathy>
Shouldn't need it.
<norc>
It is effectively dead code, it cannot be reached.
<ironcamel>
cool beans, thanks guys
<adaedra>
don't forget to wait your process after you TERM/KILL it, otherwise it will be a zombie.
<ironcamel>
i still need to Process.wait it?
<norc>
Yes.
<ironcamel>
even though i'm killing it
<adaedra>
Yes.
<adaedra>
Your process will be a zombie and stay as such until the parent waits it (to get the return value)
<adaedra>
That's how processes work.
<norc>
Somehow "wait" is a bad name for it.
<norc>
Something like "reap" would have been a bit clearer.
<adaedra>
well, it waits for it, in a sense.
workmad3 has joined #ruby
<norc>
mmm
<adaedra>
(if the process is not terminated yet, I agree)
hahuang61 has quit [Ping timeout: 272 seconds]
Pumukel has joined #ruby
rafadc has quit [Ping timeout: 246 seconds]
roamingdog has quit [Remote host closed the connection]
<norc>
adaedra, why can't this be the default behaviour of processes when they end?
<adaedra>
that's actually the basic usage of wait(2): no argument
<adaedra>
norc: what behaviour?
jaguarmagenta has joined #ruby
<norc>
adaedra, well there seems to be no point in not waiting if you have any child processes.
TomyLobo has quit [Ping timeout: 252 seconds]
<adaedra>
I don't understand, explain from the beginning?
DynamicM` has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
ruby-lang486 has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
<norc>
Ah well, Ill try to sort my thoughts first. Surely I don't know better than the people who implemented it in Ruby. :)
maletor3 has joined #ruby
ramfjord_ has joined #ruby
<adaedra>
If you mean "why can't processes just die and not leave zombies", you need to wait(2) a process to get its return value. A zombie is just that, a child waiting to tell its parent how it died. Once it did so, it's gone.
ramfjord has quit [Ping timeout: 244 seconds]
sid_fules has quit [Read error: Connection reset by peer]
<norc>
adaedra, but if a parent dies, Id expect all childs to get waited on.
<norc>
(Id rather be forced to kill off any left over childs)
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
<adaedra>
If a parent dies, its children are reattached to the parent's parent
<adaedra>
so they can continue to run
<norc>
mmm
<adaedra>
they can move up to be parented to init (PID 1) which will automatically wait for them.
SCHAAP137 has quit [Quit: Leaving]
<norc>
adaedra, ah. Well perhaps it sounds a bit naive, but I might actually prefer a child not to automatically reattach to a new parent, but to die unless explicitely reattached.
tina has quit [Quit: Page closed]
<norc>
But then again this whole discussion proves I dont know much about Process, so Im probably the worst judge.
<adaedra>
/sbin/init is normally something like `fork { exec '/bin/rc' }; loop { Process.wait }`
jaguarmagenta has quit [Ping timeout: 272 seconds]
<smathy>
norc, wait is really about waiting for the exit code of the subprocess, hence the name, and why you need to call it after your subprocess is given a PID by the system.
<adaedra>
norc: that's how processes work in your system, it's not really Ruby related here.
<norc>
adaedra, absolutely.
nullfxn_ has quit [Quit: leaving]
roamingdog has joined #ruby
nullfxn has joined #ruby
<adaedra>
You can however kill a whole process group if you want to kill parents and children.
<adaedra>
You montster.
<norc>
adaedra, today was the day when I learned how the operating system can actually schedule processes (and it really is not that easy) ...
<adaedra>
Processes are actually a very complex machinery
<norc>
So are processors (which is the topic Im diving into at the moment) :)
Yxhuvud has joined #ruby
bruce_lee has quit [Remote host closed the connection]
ry4nn_ is now known as ry4nn
lightt has joined #ruby
lightt has quit [Remote host closed the connection]
Pupeno has joined #ruby
infra-red has quit [Remote host closed the connection]
machinewar has joined #ruby
<machinewar>
so I have a class that is expected to respond to a method and I want to run the code in that method when its called (which sets instance variables) and then run method by same name in an included module with logic that depends on those instance variables being set
sid_fules has quit [Read error: Connection reset by peer]
Yiota_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc>
machinewar, technically yes.
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc>
machinewar, a method belongs to either a module or a class, an include does not change that.
Pupeno has quit [Ping timeout: 250 seconds]
<jwarren_>
@norc, to kick a dead horse a few more times, I looked at the after filters, but I don't think I can apply it. I only have a config.ru file and the gems I installed. Is there a way I can put it in the config.ru before/when `run app` is called? I'm sorry for the stupid questions, I'm still trying to figure out how this stuff works.
hk238 has quit [Ping timeout: 260 seconds]
<adaedra>
norc: but when including the module, the method in the module replaces the one in the class
eljimmy has joined #ruby
<norc>
adaedra, I do not think that is true.
<jhass>
it's not, in fact that's what prepend is for
tinnvec has quit [Remote host closed the connection]
MrBusiness3 has quit [Ping timeout: 272 seconds]
<machinewar>
I can still call super and it will call the included modules method
tinnvec has joined #ruby
<machinewar>
but I'm wondering if there's a *smarter* way to do this somehow from within the module
<norc>
jhass, can you come up with a way to show this with include?
<machinewar>
having it call something on the class (i.e. some way to open up a classes method and add to it)
<jhass>
norc: not sure what "this" is now :/
<jhass>
machinewar: I'd say super is the intended way to solve this
Pumukel has quit [Ping timeout: 260 seconds]
tinnvec has quit [Read error: Connection reset by peer]
tinnvec has joined #ruby
last_staff has quit [Quit: last_staff]
<jhass>
machinewar: if it should be transparent to the class though, use prepend instead of include and call super in the module as first thing
<jhass>
though that'll require the class to implement it
<machinewar>
jhass: thanks! am currently using prepend actually and was curious if another way
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<machinewar>
jhass: that's fine I actually want the class to implement the setup and then have it run the module method which assumes some instance vars were initialized
hxegon is now known as hxegon_afk
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<machinewar>
and prepend works since it hides the super from the class which is something I liked, just looks cleaner
CoderPuppy has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
cpup has quit [Ping timeout: 272 seconds]
kareeoleez has quit [Remote host closed the connection]
sid_fules has joined #ruby
cd83x has joined #ruby
toretore has quit [Ping timeout: 244 seconds]
hutch34 has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
arlek has quit [Ping timeout: 258 seconds]
kareeoleez has joined #ruby
aegis3121 has quit [Ping timeout: 272 seconds]
malcolmva has quit [Ping timeout: 240 seconds]
mattwashere has quit [Remote host closed the connection]
cfloare has quit [Ping timeout: 260 seconds]
machinewar has quit []
hutch34_ has quit [Ping timeout: 260 seconds]
theunraveler has quit []
dhollinger has quit [Quit: WeeChat 1.4]
bluOxigen has quit [Ping timeout: 260 seconds]
cgfbee has quit [Ping timeout: 276 seconds]
edwinvdg_ has quit [Remote host closed the connection]
y2mq37 has joined #ruby
terminalrecluse has joined #ruby
kies has quit [Ping timeout: 276 seconds]
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
postmodern has quit [Ping timeout: 272 seconds]
kareeoleez has quit [Remote host closed the connection]
ChiefAlexander has quit [Quit: Leaving...]
idefine has quit [Remote host closed the connection]
<shevy>
hanmac how usable are your wx-bindings? I am getting slightly tired of ruby-gnome and want to have a look for alternatives that aren't as ugly as ruby-tk
spider-mario has quit [Remote host closed the connection]
johnmilton has quit [Ping timeout: 260 seconds]
cpup has joined #ruby
roamingdog has quit [Remote host closed the connection]
y2mq37 has quit [Quit: Leaving]
idefine has joined #ruby
|2701 has quit [Quit: Connection closed for inactivity]
malcolmva has joined #ruby
Devalo has joined #ruby
chipotle has joined #ruby
CoderPuppy has quit [Ping timeout: 244 seconds]
sid_fules has joined #ruby
roamingdog has joined #ruby
m8 has quit [Quit: Sto andando via]
Devalo has quit [Ping timeout: 250 seconds]
madgen has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
ramfjord_ has quit [Ping timeout: 260 seconds]
SilverKey has quit [Quit: Halted.]
gtsai has quit [Ping timeout: 276 seconds]
sid_fules has quit [Remote host closed the connection]
jackjackdripper1 has joined #ruby
<jhass>
shevy: looked into gir-gtk yet?
nankyokusei has joined #ruby
<jhass>
gir_ffi-gtk I mean
startupality has joined #ruby
johnmilton has joined #ruby
kirun has quit [Quit: Client exiting]
jhack has joined #ruby
jackjackdripper has quit [Ping timeout: 246 seconds]
roamingdog has quit [Remote host closed the connection]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 240 seconds]
CoderPuppy has joined #ruby
biberu has quit [Read error: Connection reset by peer]
maletor3 has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
finisherr has quit [Quit: finisherr]
cpup has quit [Ping timeout: 264 seconds]
maletor3 has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
TheMoonMaster has quit [Ping timeout: 260 seconds]
sid_fules has joined #ruby
TheMoonMaster has joined #ruby
aegis3121 has joined #ruby
CausaMortis has quit [Ping timeout: 276 seconds]
gigetoo has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cheerio]
gigetoo has joined #ruby
roamingdog has quit [Remote host closed the connection]
gnufied has joined #ruby
<shevy>
jhass I think I only know it by name, I don't remember why I have not tried it, most likely inertia and laziness
roamingdog has joined #ruby
ramfjord has joined #ruby
Trieste has left #ruby ["Odcházím"]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JesseH has quit [Remote host closed the connection]
<shevy>
I see a similar namespace class RbVmomi::VIM::VirtualMachine
hutch34_ has joined #ruby
sid_fules has quit [Remote host closed the connection]
Yiota has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 240 seconds]
<Synthead>
how can the name never be referenced but is still accessible from within ruby
<Synthead>
?
roamingdog has joined #ruby
clifford_ has joined #ruby
clifford_ has quit [Remote host closed the connection]
banister has joined #ruby
banister is now known as banisterfiend
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
<shevy>
it could be compiled somewhere possibly, like in a C extension or something. I got a match in some database file
malcolmva has quit [Quit: Leaving]
<Synthead>
whoa, vmodl.db has it for sure
<Synthead>
that's bizarre
<Synthead>
is this common?
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
dfockler has quit [Quit: Leaving]
CoderPuppy has joined #ruby
Yiota has joined #ruby
marr has quit [Ping timeout: 276 seconds]
|2701 has joined #ruby
tw1sted has quit [Quit: No Ping reply in 180 seconds.]
<shevy>
I myself only saw this in a pickaxe example, the jukebox in C :) it may happen in some extensions that are natively compiled, but I also don't deal with these a lot... from perhaps the last 200 gems I installed, perhaps... 10 or 20 had to be compiled natively
<shevy>
probably github could try to search for namespaces within smallish binary files too
roamingdog has quit [Remote host closed the connection]
<al2o3-cr>
shevy: strange you don't interact in #ruby-offtopic
rafadc has quit [Ping timeout: 244 seconds]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jphase has joined #ruby
<al2o3-cr>
shevy: shit happens
tax has joined #ruby
roamingdog has quit [Remote host closed the connection]
JesseH has joined #ruby
Vile` has joined #ruby
<al2o3-cr>
shevy: very shrewd person
<jphase>
forgive the noob question (this is day 2 for me), but is it the standard convention to use 2 spaces in lieu of tabs with rails? From some light googling I've seen discussion on SO about 2 spaces being the "agreed-upon" norm, but wanted to check.
<shevy>
al2o3-cr these monsters play unicode hangman there! :(
x0f has quit [Ping timeout: 264 seconds]
<al2o3-cr>
shevy: why does that matter?
hutch34 has joined #ruby
maletor3 has joined #ruby
<al2o3-cr>
shevy: upgrade your shell :#
smathy is now known as smathy_afk
mattwashere has joined #ruby
idefine has quit [Remote host closed the connection]
czerasz has joined #ruby
allcentury has joined #ruby
nat2610 has quit [Quit: Leaving.]
RegulationD has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
<al2o3-cr>
shevy: what ruby you using?
x0f has joined #ruby
jwarren_ has left #ruby [#ruby]
maletor3 has quit [Ping timeout: 252 seconds]
hutch34 has quit [Ping timeout: 276 seconds]
jancel has joined #ruby
idefine has joined #ruby
Phaenix has joined #ruby
<al2o3-cr>
shevy: don't ignore me
skolman has quit [Remote host closed the connection]
finisherr has joined #ruby
roamingdog has joined #ruby
<al2o3-cr>
and don't come back an hour later with some smart arse comment
<al2o3-cr>
|2701: how the fuck you got in
idefine has quit [Remote host closed the connection]
<|2701>
dont associate my ELITE shitposting with your autism
<|2701>
go shitpost on your own
koooge has joined #ruby
idefine has joined #ruby
<al2o3-cr>
and i thought you had some meta about you
mattwashere has quit [Remote host closed the connection]
|2701 is now known as |meta
<|meta>
ya boi
cdg has quit [Remote host closed the connection]
<al2o3-cr>
lurker
mattwashere has joined #ruby
whathappens has joined #ruby
Vingador has joined #ruby
<|meta>
why are you harassing these poor rubyists anyways
<|meta>
what do you need
fclausen has joined #ruby
<elomatreb>
what is going on here? ._.
<havenwood>
jphase: yes, two-space soft tabs is the strong convention in Ruby
<Radar>
!ban |meta
cd83x has quit [Remote host closed the connection]