j4cknewt has quit [Remote host closed the connection]
yusuf_403 has joined #ruby-lang
yusuf_403 has quit [Max SendQ exceeded]
j4cknewt has joined #ruby-lang
yusuf_403 has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
yusuf_403 has quit [Client Quit]
mattyohe has joined #ruby-lang
yusuf_403 has joined #ruby-lang
yusuf_403 has quit [Max SendQ exceeded]
AlexAltea has quit [Ping timeout: 244 seconds]
jo__ has joined #ruby-lang
yusuf_403 has joined #ruby-lang
yusuf_403 has quit [Max SendQ exceeded]
auzty has joined #ruby-lang
tkuchiki has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
Aova has joined #ruby-lang
imperator has quit [Ping timeout: 245 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
fclausen_ has joined #ruby-lang
hendranata_ has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
fujimura has joined #ruby-lang
fclausen has joined #ruby-lang
fclausen_ has quit [Ping timeout: 272 seconds]
j4cknewt_ has joined #ruby-lang
Musashi007 has joined #ruby-lang
j4cknew__ has joined #ruby-lang
j4cknewt has quit [Ping timeout: 264 seconds]
avdi has quit [Ping timeout: 250 seconds]
bb010g has quit [Ping timeout: 250 seconds]
j4cknewt_ has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby-lang
marr has quit [Ping timeout: 265 seconds]
poikon has quit [Ping timeout: 250 seconds]
manveru has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
j4cknew__ has quit [Ping timeout: 256 seconds]
j4cknewt_ has joined #ruby-lang
chrisseaton has quit [Ping timeout: 265 seconds]
adambeynon has quit [Ping timeout: 265 seconds]
bryancp has quit [Read error: Connection reset by peer]
j4cknewt has quit [Ping timeout: 256 seconds]
bb010g has joined #ruby-lang
ritek has quit [Ping timeout: 265 seconds]
avdi has joined #ruby-lang
poikon has joined #ruby-lang
j4cknewt_ has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
lytol has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
manveru has joined #ruby-lang
momomomomo has quit [Ping timeout: 250 seconds]
Bwild has quit [Remote host closed the connection]
bryancp has joined #ruby-lang
j4cknewt has joined #ruby-lang
adambeynon has joined #ruby-lang
chrisseaton has joined #ruby-lang
fclausen_ has joined #ruby-lang
Bwild has joined #ruby-lang
ritek has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
fclausen has quit [Ping timeout: 272 seconds]
io_syl has joined #ruby-lang
io_syl has quit [Client Quit]
j4cknewt has joined #ruby-lang
wallerdev has joined #ruby-lang
Musashi007 has joined #ruby-lang
ap4y has quit [Ping timeout: 245 seconds]
bzalasky has joined #ruby-lang
Bwild has quit [Ping timeout: 252 seconds]
nathanstitt has joined #ruby-lang
wallerdev has quit [Ping timeout: 246 seconds]
red_menace has quit [Quit: leaving...]
rahul_j has joined #ruby-lang
iliketur_ has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
iliketurtles has quit [Ping timeout: 255 seconds]
ap4y has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
btiefert2 has joined #ruby-lang
Aova has joined #ruby-lang
btiefert has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Ping timeout: 256 seconds]
btiefert2 is now known as btiefert
chadwtaylor has joined #ruby-lang
ap4y1 has joined #ruby-lang
Bwild has joined #ruby-lang
ap4y has quit [Ping timeout: 245 seconds]
p3ery has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
cytomich has left #ruby-lang [#ruby-lang]
tunaCanBruh has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
j4cknewt has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
duderonomy has quit [Ping timeout: 264 seconds]
bzalasky has quit [Ping timeout: 246 seconds]
tunaCanBruh has quit [Ping timeout: 245 seconds]
j4cknewt_ has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
mcclurmc has quit [Ping timeout: 265 seconds]
mcclurmc has joined #ruby-lang
Musashi007 has joined #ruby-lang
Bwild has quit [Ping timeout: 265 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Thecrazylumberja has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
j4cknewt_ has quit [Read error: Connection reset by peer]
Aova has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
Aova has joined #ruby-lang
symm- has quit [Ping timeout: 250 seconds]
brooks has quit [Quit: brooks]
imperator has joined #ruby-lang
simi has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby-lang
jdecuirm has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby-lang
guest000014 has joined #ruby-lang
jdecuirm has joined #ruby-lang
miqui has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
yfeldblum has quit [Ping timeout: 246 seconds]
kapil__ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
Musashi007 has joined #ruby-lang
Bwild has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
Bwild has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
imperator has quit [Quit: Leaving]
<guest000014>
Good day! What portable simple interpreter for ruby could you recommend for windows? E.g. this distribution is not portable, isn't it? https://www.ruby-lang.org/en/downloads/ Thank you!
chadwtaylor has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 245 seconds]
ap4y1 has quit [Read error: Connection reset by peer]
riotjones has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
pepperbreath has quit [Quit: Leaving.]
pepperbreath has joined #ruby-lang
deol has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
riotjones has quit [Ping timeout: 245 seconds]
nathanstitt has joined #ruby-lang
Viv has quit [Ping timeout: 244 seconds]
Aova has quit [Read error: Connection reset by peer]
Viv has joined #ruby-lang
Musashi007 has joined #ruby-lang
Viv2 has joined #ruby-lang
Aova has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
Viv has quit [Ping timeout: 255 seconds]
yfeldblu_ has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
Miphix has joined #ruby-lang
lytol has joined #ruby-lang
j4cknewt has quit [Ping timeout: 252 seconds]
bb010g has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
j4cknewt has joined #ruby-lang
lytol has quit [Ping timeout: 264 seconds]
rahul_j has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
guest000014 has quit [Quit: Page closed]
gix has quit [Ping timeout: 264 seconds]
j4cknewt has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
gix has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
j4cknewt has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
j4cknewt has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 240 seconds]
p3ery has quit [Quit: (null)]
p3ery has joined #ruby-lang
wallerdev has joined #ruby-lang
Vivex_ has joined #ruby-lang
Kejento has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby-lang
j4cknewt has quit [Ping timeout: 265 seconds]
wallerdev has quit [Ping timeout: 255 seconds]
Kejento has joined #ruby-lang
amystephen has quit [Quit: amystephen]
Vivex_ has quit [Ping timeout: 244 seconds]
Aova has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
yatish27 has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
rbowlby has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
Aova has joined #ruby-lang
maso has joined #ruby-lang
face has quit [Ping timeout: 240 seconds]
djellemah has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
lytol has joined #ruby-lang
Musashi007 has joined #ruby-lang
jefus_ has joined #ruby-lang
Viv has joined #ruby-lang
lytol has quit [Ping timeout: 256 seconds]
piotrj has joined #ruby-lang
j4cknewt has quit [Ping timeout: 240 seconds]
Viv2 has quit [Ping timeout: 250 seconds]
jefus has quit [Ping timeout: 265 seconds]
mcclurmc_ has joined #ruby-lang
chadwtaylor has joined #ruby-lang
mcclurmc has quit [Read error: Connection reset by peer]
mcclurmc_ has quit [Remote host closed the connection]
chadwtaylor has quit [Ping timeout: 245 seconds]
bffff_ has quit [Quit: Connection closed for inactivity]
djellemah_ has joined #ruby-lang
djellemah_ has quit [Client Quit]
mattyohe has quit [Quit: Connection closed for inactivity]
j4cknewt has joined #ruby-lang
wallerdev has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
wallerdev has quit [Ping timeout: 245 seconds]
Aova has quit [Read error: Connection reset by peer]
tunaCanBruh has quit [Ping timeout: 256 seconds]
btiefert has quit [Read error: Connection reset by peer]
Aova has joined #ruby-lang
fclausen_ has quit [Quit: leaving]
jefus_ is now known as jefus
j4cknewt has quit [Read error: Connection reset by peer]
dellavg_ has joined #ruby-lang
ur5us has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
maso has quit [Remote host closed the connection]
fujimura has quit [Remote host closed the connection]
lytol has joined #ruby-lang
duderonomy has joined #ruby-lang
piotrj has joined #ruby-lang
lytol has quit [Ping timeout: 245 seconds]
rahul_j has joined #ruby-lang
mostlybadfly has quit [Quit: Connection closed for inactivity]
Bwild has joined #ruby-lang
lytol has joined #ruby-lang
j4cknewt has joined #ruby-lang
ruby-lang515 has joined #ruby-lang
amystephen has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
Averna has quit [Quit: Leaving.]
<ruby-lang515>
Hola, newbie question if anybodys got a moment. Attempting to use FileUtils.mkdir_p("Desired_Location", :verbose => true) . Output looks good, shows mkdir -p Desired_Location...but the directory is not created.
<ruby-lang515>
Anybody experienced similar / can spot an idiot error?
ruby-lang515 is now known as RandomSeed
apeiros_ has quit [Ping timeout: 246 seconds]
<RandomSeed>
I got nothing and it's driving me crazy :(
fujimura has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby-lang
amystephen has quit [Quit: amystephen]
Aova has quit [Read error: Connection reset by peer]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Client Quit]
fusillicode has joined #ruby-lang
fusillicode1 has joined #ruby-lang
j4cknewt has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Ping timeout: 245 seconds]
RandomSeed has quit [Quit: Page closed]
Aova has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
fusillicode has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby-lang
iliketur_ has quit [Quit: zzzzz…..]
piotrj has joined #ruby-lang
marcdel has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
j4cknewt has joined #ruby-lang
riotjones has joined #ruby-lang
charliesome has quit [Quit: zzz]
apeiros_ has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
strsep has joined #ruby-lang
marcdel has joined #ruby-lang
iliketurtles has joined #ruby-lang
<[spoiler]>
morning
<strsep>
Don't spoiler my Vampire Diaries.
<apeiros_>
[spoiler] should just say "warning"
<[spoiler]>
Rofl
<[spoiler]>
:D
<[spoiler]>
Hello guys
j4cknewt has quit [Ping timeout: 264 seconds]
oleo is now known as Guest3301
oleo__ has joined #ruby-lang
<apeiros_>
hi [spoiler]
chadwtaylor has joined #ruby-lang
j4cknewt has joined #ruby-lang
auzty has quit [Ping timeout: 252 seconds]
Guest3301 has quit [Ping timeout: 256 seconds]
chadwtaylor has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Read error: Connection reset by peer]
j4cknewt has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby-lang
piotrj has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby-lang
AKASkip has joined #ruby-lang
j4cknewt has joined #ruby-lang
amclain has quit [Quit: Leaving]
marcdel has quit []
rbowlby has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
auzty has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
piotrj has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 1.0.1]
xcesariox has joined #ruby-lang
piotrj has quit [Client Quit]
rbowlby has quit [Ping timeout: 252 seconds]
tunaCanBruh has quit [Ping timeout: 246 seconds]
piotrj has joined #ruby-lang
haraoka_ has joined #ruby-lang
wallerdev has joined #ruby-lang
simi has joined #ruby-lang
tmi1 has quit [Read error: Connection reset by peer]
Bwild has quit [Ping timeout: 252 seconds]
strsep has quit [Ping timeout: 252 seconds]
wallerdev has quit [Ping timeout: 252 seconds]
wnd has quit [Excess Flood]
akkad has quit [Ping timeout: 252 seconds]
Aova has quit [Read error: Connection reset by peer]
wnd has joined #ruby-lang
cornerman has quit [Ping timeout: 252 seconds]
cornerman has joined #ruby-lang
rahul_j has quit [Ping timeout: 252 seconds]
Thylacin1lol has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
Thylacin1lol has quit [Client Quit]
Thylacin1lol has joined #ruby-lang
piotrj_ has joined #ruby-lang
Thylacin1lol has quit [Client Quit]
strsep has joined #ruby-lang
Thylacin1lol has joined #ruby-lang
lytol has quit [Remote host closed the connection]
j4cknewt_ has quit [Read error: Connection reset by peer]
xcesariox has joined #ruby-lang
ur5us has joined #ruby-lang
AlexAltea has joined #ruby-lang
AlexAltea has quit [Client Quit]
Thylacin1lol has quit [Quit: leaving]
piotrj_ has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
Thylacinelol has joined #ruby-lang
marr has quit []
marr has joined #ruby-lang
piotrj has quit [Read error: No route to host]
skade has joined #ruby-lang
mikecmpbll has joined #ruby-lang
ghostpl has joined #ruby-lang
Thylacinelol has quit [Quit: leaving]
Aova has quit [Read error: Connection reset by peer]
j4cknew__ has quit [Read error: Connection reset by peer]
Thylacinelol has joined #ruby-lang
kyb3r_ has quit [Quit: Leaving]
p3ery has quit [Quit: (null)]
kadwill has joined #ruby-lang
Thecrazylumberja has quit [Quit: Leaving]
mistym has quit [Ping timeout: 245 seconds]
Aova has joined #ruby-lang
kadwill has quit [Remote host closed the connection]
<ledestin>
any idea how to debug sprockets in Rails console? a JS dir isn’t being recognized as an asset.
j4cknewt has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
<apeiros_>
ledestin: #rubyonrails
<yorickpeterse>
morning
<ledestin>
apeiros_: know that, but that channel sucks
<maloik>
true story, sadly
intinig has joined #ruby-lang
mistym has joined #ruby-lang
ocdmw has quit [Remote host closed the connection]
ocdmw has joined #ruby-lang
chadwtaylor has joined #ruby-lang
ocdmw has quit [Ping timeout: 244 seconds]
chadwtaylor has quit [Ping timeout: 245 seconds]
rahul_j has quit [Ping timeout: 246 seconds]
benlovell has joined #ruby-lang
benlovell has quit [Client Quit]
j4cknewt has quit [Ping timeout: 245 seconds]
<ledestin>
binding.pry to the rescue!
rahul_j has joined #ruby-lang
j4cknewt has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 250 seconds]
arBmind1 has quit [Quit: Leaving.]
workmad3 has joined #ruby-lang
hendranata_ has quit [Ping timeout: 264 seconds]
Aova has quit [Read error: Connection reset by peer]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
arBmind has joined #ruby-lang
Aova has joined #ruby-lang
piotrj has joined #ruby-lang
ocdmw has joined #ruby-lang
oleo__ is now known as oleo
Xzyx987X has quit [Quit: Leaving]
rikkipitt has joined #ruby-lang
ocdmw has quit [Ping timeout: 246 seconds]
rikkipitt has quit [Client Quit]
ldnunes has joined #ruby-lang
Xzyx987X has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
dagda1_ has joined #ruby-lang
piotrj has joined #ruby-lang
rbowlby has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
rbowlby has quit [Ping timeout: 255 seconds]
cornerma1 has joined #ruby-lang
Xzyx987X has quit [Quit: Leaving]
fujimura has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 245 seconds]
TTilus has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
hanjin has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
djinni` has quit [Ping timeout: 245 seconds]
stamina has joined #ruby-lang
Xzyx987X has joined #ruby-lang
j4cknewt has joined #ruby-lang
skarn has quit [Ping timeout: 245 seconds]
matti has quit [Ping timeout: 245 seconds]
djinni` has joined #ruby-lang
skarn has joined #ruby-lang
ruskie has quit [Ping timeout: 245 seconds]
epitron has quit [Ping timeout: 245 seconds]
matti has joined #ruby-lang
matti has joined #ruby-lang
Xzyx987X has quit [Read error: Connection reset by peer]
Xzyx987X has joined #ruby-lang
TTilus has joined #ruby-lang
epitron has joined #ruby-lang
tkuchiki has quit [Ping timeout: 252 seconds]
j4cknewt has quit [Remote host closed the connection]
mostlybadfly has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Aova has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
donove has joined #ruby-lang
donove has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
piotrj_ has joined #ruby-lang
charliesome has quit [Quit: zzz]
wallerdev has quit [Ping timeout: 255 seconds]
chadwtaylor has joined #ruby-lang
Aova has joined #ruby-lang
postmodern has quit [Quit: Leaving]
chadwtaylor has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
auzty has quit [Quit: Leaving]
j4cknewt has joined #ruby-lang
piotrj_ has quit [Remote host closed the connection]
skade has quit [Ping timeout: 265 seconds]
ocdmw has joined #ruby-lang
skade has joined #ruby-lang
ruskie has joined #ruby-lang
skade has quit [Client Quit]
skade has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
skade has quit [Client Quit]
ocdmw has quit [Remote host closed the connection]
marr has quit [Ping timeout: 250 seconds]
stef204 has joined #ruby-lang
Musashi007 has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 252 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
piotrj has joined #ruby-lang
leandrosnunes has joined #ruby-lang
<ljarvis>
hmmm, does anyone know if there's something better than errors[:base].include?(I18n.t("devise.failure.invalid")) for checking if the current login failed on the login page?
benlovell has joined #ruby-lang
jds has joined #ruby-lang
<workmad3>
ljarvis: could you not check for 'user_signed_in?'
<workmad3>
ljarvis: or maybe just 'user.errors.empty?'
<workmad3>
(might work with user.errors.present? too, to avoid a negation in 'if !user.errors.empty?'
rahul_j has quit [Ping timeout: 245 seconds]
rahul_j_ has joined #ruby-lang
skade has joined #ruby-lang
j4cknewt has joined #ruby-lang
Bwild has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spuk has quit [Ping timeout: 250 seconds]
xcesariox has joined #ruby-lang
spuk has joined #ruby-lang
<ljarvis>
workmad3: if we're signed in, we dont see this page so it's moot. user.errors might contain other errors
<ljarvis>
that said, I just noticed that devise doesn't even add the message to errors.base, it's a flash alert
tkuchiki has joined #ruby-lang
piotrj has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
piotrj has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
piotrj_ has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
ottlikg has joined #ruby-lang
ottlikg has left #ruby-lang [#ruby-lang]
piotrj has quit [Ping timeout: 256 seconds]
<workmad3>
ljarvis: true... it removes the validation errors to prevent leaking information about which aspect of the sign-in failed
* apeiros_
also loves how rails does not provide a way to get at the error codes, only the translated error…
Aova has quit [Read error: Connection reset by peer]
<yorickpeterse>
BUT THAT'S NOT THE RAILS WAY
Bwild has quit [Ping timeout: 256 seconds]
<yorickpeterse>
SHUN THE NONBELIEVER
<yorickpeterse>
TO THE PYRE
<yorickpeterse>
But yeah it's pretty annoying
<apeiros_>
welcome on the pyre, yorickpeterse
Bwild has joined #ruby-lang
<yorickpeterse>
Joke's on you, I'm already in hell
<apeiros_>
haha
<apeiros_>
want to trade places with me?
<apeiros_>
I'm looking forward to debug a threading bug in rails 4.1+' connection pool.
<apeiros_>
which mysteriously we seem to be the only ones experiencing…
<yorickpeterse>
hell no
<workmad3>
apeiros_: ah, so hell would be an improvement...
<apeiros_>
workmad3: precisely my thought.
<apeiros_>
my work motivation is at a new all time low.
<apeiros_>
also damit, anybody seen drbrain?
Aova has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
rahul_j_ has quit [Ping timeout: 240 seconds]
j4cknewt has joined #ruby-lang
piotrj_ is now known as piotrj
piotrj has quit []
piotrj has joined #ruby-lang
rahul_j has joined #ruby-lang
kadwill has joined #ruby-lang
kadwill has quit [Ping timeout: 256 seconds]
Bwild has quit [Remote host closed the connection]
piotrj_ has joined #ruby-lang
piotrj_ has quit [Client Quit]
<ljarvis>
not in this time zone
<yorickpeterse>
drbrain only exists in certain timezones
piotrj has quit [Ping timeout: 252 seconds]
<workmad3>
that's kinda true of most people, assuming you give a timezone a geographic boundary
<yorickpeterse>
Technically one would exist in all timezones
hramrach_ has joined #ruby-lang
<yorickpeterse>
Since your existence is not restricted to time
<yorickpeterse>
(shit just turned real)
* yorickpeterse
puts on a labcoat
<yorickpeterse>
Considering I discussed string theory and the multiverse during lunch this topic isn't surprising me
* ljarvis
puts on wizard hat
<workmad3>
yorickpeterse: I guess it depends on whether you're taking 'existence' to mean 'place your matter currently occupies in this thing known as 'the present' ', which generally restricts you to a single geographic location, or if you mean 'all points along your worldline', which would allow for a definition that does indeed cross geographic boundaries within our 3-dimensional manifold :)
<yorickpeterse>
Wasn't there some theory that stated that matter exists everywhere at the same time?
<workmad3>
yorickpeterse: what sort of string theory discussion did you have, btw? :)
<yorickpeterse>
time travel related stuff, e.g. travelling back in time as an observer and how that would affect the future
setanta has quit [Quit: Leaving]
<workmad3>
did anyone bring up barbour and timeless physics?
ocdmw has joined #ruby-lang
setanta has joined #ruby-lang
tdy has quit [Ping timeout: 256 seconds]
<yorickpeterse>
Nope
<yorickpeterse>
I did talk about how, IIRC, there's this idea that if you go back in time you basically create a copy of your universe, then move back into this copy
<yorickpeterse>
Thus changes in the past wouldn't affect your original universe
<yorickpeterse>
For otherwise you could rm -rf yourself
<[spoiler]>
Depends on the time-travel model
<[spoiler]>
:D
fujimura has joined #ruby-lang
<[spoiler]>
Being at work sucks elephant dicks today
<apeiros_>
good. at least I'm not alone in that.
<yorickpeterse>
my day is fine so far
<yorickpeterse>
barely wrote any good, I guess that helps
<yorickpeterse>
Instead I'm scribbling DB designs on paper
<yorickpeterse>
and trying to design stuff that works with this craptastic old REE 1.8 app
<yorickpeterse>
while still making sense for newer stuff
<yorickpeterse>
also still need to think how I'm going to deal with leap seconds
<yorickpeterse>
(e.g. it's pretty nice if you don't get the same reports 2 times once every few years)
ghostpl has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 264 seconds]
mkosaki has quit [Ping timeout: 246 seconds]
intinig has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
piotrj has joined #ruby-lang
intinig has joined #ruby-lang
tdy has joined #ruby-lang
leandrosnunes has quit [Quit: WeeChat 1.0]
symm- has joined #ruby-lang
arooni-mobile has joined #ruby-lang
kadwill has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 256 seconds]
<[spoiler]>
90 minutes and then I can go eat and sleep. aw'yiss
<[spoiler]>
89 minutes, actually.
<[spoiler]>
Well I could leave now technically, but that's such a dickhat thing to do
<dagda1_>
I am having trouble incoding a string from ASCII-8BIT to utf-8, I try string.encode('UTF-8') but I get this error Encoding::UndefinedConversionError: "\xE1" from ASCII-8BIT to UTF-8.
piotrj has quit [Ping timeout: 252 seconds]
<[spoiler]>
dagda1_: try String#force_encoding
piotrj has joined #ruby-lang
Musashi007 has joined #ruby-lang
intinig has quit [Ping timeout: 265 seconds]
chadwtaylor has joined #ruby-lang
donove has quit [Quit: Quitte]
j4cknewt has joined #ruby-lang
<yorickpeterse>
lol force_encoding
<yorickpeterse>
that doesn't actually encode it, it just sets the encoding flag
<[spoiler]>
yorickpeterse: I know
ocdmw has quit [Remote host closed the connection]
<[spoiler]>
I'm assuming that's what he wants
<yorickpeterse>
dagda1_: force_encoding is an option, but it's best to make sure the input is actually UTF8 compatible
<apeiros_>
force_encoding is one of the worse named methods in ruby
intinig has joined #ruby-lang
ocdmw has joined #ruby-lang
<yorickpeterse>
lie_about_encoding would've been better
<dagda1_>
yorickpeterse: it is not utf-8 compatible in all cases, I'm improting emails from imap
<[spoiler]>
it just treats the char array as utf-8 string, it doesn't transcode it into utf-8
<yorickpeterse>
dagda1_: then you need to sanitize it
<yorickpeterse>
e.g.
<yorickpeterse>
>> "\xE1".encode('UTF8') # so this will fail
<eval-in__>
yorickpeterse => code converter not found (UTF-8 to UTF8) (Encoding::ConverterNotFoundError) ... (https://eval.in/281599)
<apeiros_>
email has content encoding meta information
<yorickpeterse>
errr
<yorickpeterse>
>> "\xE1".encode('ASCII').encode('UTF8') # so this will fail
<eval-in__>
yorickpeterse => incomplete "\xE1" on UTF-8 (Encoding::InvalidByteSequenceError) ... (https://eval.in/281600)
Musashi007 has quit [Quit: Musashi007]
<yorickpeterse>
>> "\xE1".encode('ASCII').encode('UTF8', :invalid => :replace) # so this will fail
ocdmw has quit [Remote host closed the connection]
<eval-in__>
yorickpeterse => incomplete "\xE1" on UTF-8 (Encoding::InvalidByteSequenceError) ... (https://eval.in/281601)
<yorickpeterse>
err wtf
<yorickpeterse>
wasn't that supposed to work
<[spoiler]>
it's UTF-8
<yorickpeterse>
oh, heh
<[spoiler]>
oh nvm
<apeiros_>
ascii is 7 bit
<dagda1_>
yorickpeterse: it is coming in as ASCII-8BIT
<yorickpeterse>
Ah, binary
tkuchiki has joined #ruby-lang
<apeiros_>
ascii != ascii-8bit
jo__ has joined #ruby-lang
chadwtaylor has quit [Ping timeout: 245 seconds]
<dagda1_>
apeiros_: I tried this string.force_encoding('ISO-8859-1').encode('UTF-8') but the acutes and accents where not encoded correctly
<apeiros_>
ascii-8bit is "ascii plus all bytes with the highest bit set"
<yorickpeterse>
what the fuck Ruby, I can't encode "\x81" as BINARY?
<apeiros_>
dagda1_: don't "try". read the what encoding is used from the mail.
<[spoiler]>
What's is ascii-8bit exactly? Just uint8_ts?
symm- has quit [Quit: Leaving...]
<apeiros_>
yorickpeterse: no, because "\xe1" does not exist in utf-8
<yorickpeterse>
hmpf
<apeiros_>
[spoiler]: ascii-8bit == binary
<dagda1_>
apeiros_: I honeslty do not know what to do. I thought I should be storing it as UTF-8. It is going into a postgres db set to UTF-8
<yorickpeterse>
[spoiler]: 8bit == binary == basically no encoding
<apeiros_>
dagda1_: each email could have a different encoding
<[spoiler]>
so uint8, then
<apeiros_>
dagda1_: so no, you can't
<dagda1_>
apeiros_: it does
<yorickpeterse>
dagda1_: welcome to encoding hell
<[spoiler]>
Lmao
<dagda1_>
yorickpeterse: abandon hope al ye who enter here
<apeiros_>
you have to read it in binary mode, detect the encoding, then use .encode to translate
<yorickpeterse>
dagda1_: probably you have no other option than force_encoding('UTF-8').scrub or something like that
<yorickpeterse>
(given you don't know the original encoding)
<[spoiler]>
If you want to treat the 8bit stream as UTF8, then force_encoding should do the magic
<workmad3>
dagda1: or you could run your content through https://github.com/brianmario/charlock_holmes to try and heuristically detect the encoding, then force_encoding to that and re-encode to UTF8
<workmad3>
obviously, that won't work 100% of the time
setanta has quit [Ping timeout: 245 seconds]
<dagda1>
yorickpeterse: that just replaces unknown characters with �
<yorickpeterse>
Correct
<yorickpeterse>
You can control that
<dagda1>
yorickpeterse: I'd have to know every unkown character
<yorickpeterse>
add :replace => '' to remove them IIRC
<yorickpeterse>
force_encoding works if you _know_ the input is UTF8 (compatible) but Ruby thinks otherwise
<yorickpeterse>
In that case you can use it to slap it in the face with a trout and tell Ruby to just deal with it
<apeiros_>
"\x81".encode('UTF-8', :invalid => :replace, :undef => :replace, :replace => '') is effectively .gsub(/[\x80-\xff]/, '') if source is binary.
<apeiros_>
because no byte in \x80-\xff range is mapped to a character. and because it's not mapped to a character, it can't be translated to a unicode character.
momomomomo has quit [Quit: momomomomo]
<apeiros_>
arf, /…/n
<dagda1>
apeiros_: but then I lose the accents and accutes that way
nathanstitt has joined #ruby-lang
<apeiros_>
that's why I said it.
ocdmw has joined #ruby-lang
yfeldblum has joined #ruby-lang
<apeiros_>
I don't get why you're still at this - as said, part of an email is its encoding.
<apeiros_>
and I wouldn't wonder if e.g. the Mail gem transparently handled this anyway.
mcclurmc has joined #ruby-lang
enebo has joined #ruby-lang
ocdmw has quit [Remote host closed the connection]
ocdmw has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
simi has joined #ruby-lang
rippa has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
Thylacinelol has quit [Quit: Lost terminal]
intinig has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
davispuh has joined #ruby-lang
riotjones has quit [Remote host closed the connection]
skade has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
rbowlby has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
apeiros_ has quit [Ping timeout: 250 seconds]
skade has quit [Ping timeout: 252 seconds]
<darix>
mail gem rocks
<darix>
imho
Aova has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby-lang
momomomomo has joined #ruby-lang
<canton7>
pony's nice
Aova has joined #ruby-lang
wallerdev has joined #ruby-lang
fujimura has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 264 seconds]
the_real_intinig has joined #ruby-lang
wallerdev has quit [Ping timeout: 252 seconds]
fujimura has quit [Ping timeout: 252 seconds]
intinig has quit [Ping timeout: 252 seconds]
|jemc| has joined #ruby-lang
arooni-mobile has joined #ruby-lang
j4cknewt has joined #ruby-lang
j4cknewt has quit [Ping timeout: 264 seconds]
roamingdog has quit [Remote host closed the connection]
arBmind1 has joined #ruby-lang
riotjones has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
bantic has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
apeiros_ has joined #ruby-lang
b_hoffman has joined #ruby-lang
nathanstitt has joined #ruby-lang
__butch__ has joined #ruby-lang
kadwill has joined #ruby-lang
shazaum has joined #ruby-lang
shazaum has quit [Changing host]
shazaum has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
rahul_j has quit [Quit: rahul_j]
donove has joined #ruby-lang
donove has joined #ruby-lang
whippythellama has joined #ruby-lang
arBmind1 has quit [Ping timeout: 244 seconds]
Aova has quit [Read error: Connection reset by peer]
amsi has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
matp_ has joined #ruby-lang
solars has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
workmad3 has quit [Ping timeout: 250 seconds]
matp has quit [Ping timeout: 240 seconds]
<darix>
canton7: that's just a wrapper around "mail"