havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
MtnGoat has joined #ruby
cdg has joined #ruby
madgen has joined #ruby
radic has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
oliv_____ has quit [Remote host closed the connection]
umaaji has joined #ruby
olivi____ has joined #ruby
MtnGoat has quit [Ping timeout: 246 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
olivi____ has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 260 seconds]
olivi____ has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
Moosashi has quit [Quit: Moosashi]
mikecmpbll has quit [Quit: inabit. zz.]
brent__ has quit [Remote host closed the connection]
spheric has joined #ruby
brent__ has joined #ruby
Moosashi has joined #ruby
guacamol_ has joined #ruby
rfoust has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
umaaji has quit [Quit: Leaving...]
brent__ has quit [Ping timeout: 276 seconds]
umaaji has joined #ruby
knight33 has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
someuser has quit [Ping timeout: 240 seconds]
QualityAddict has joined #ruby
Moosashi has quit [Quit: Moosashi]
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
t-recx has quit [Quit: t-recx]
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
mtkd has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
bronson has joined #ruby
oliv_____ has quit [Remote host closed the connection]
sarmiena_ has joined #ruby
Pacra has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 268 seconds]
Moosashi has joined #ruby
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
forgot has quit [Ping timeout: 258 seconds]
forgot has joined #ruby
raspado has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
sarmiena_ has quit [Quit: sarmiena_]
brent__ has joined #ruby
guacamol_ has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
oliv_____ has joined #ruby
Pacra has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamol_ has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 248 seconds]
oliv_____ has quit [Ping timeout: 248 seconds]
npgm has joined #ruby
ElFerna has joined #ruby
oliv_____ has joined #ruby
ecuanaso has joined #ruby
Moosashi has quit [Quit: Moosashi]
cdg has joined #ruby
raspado has joined #ruby
Puffball has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 255 seconds]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
Puffball has joined #ruby
nacsurte has quit [Ping timeout: 268 seconds]
MtnGoat has joined #ruby
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
shakes has joined #ruby
mim1k has joined #ruby
shakes has quit [Client Quit]
raspado has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d^sh has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
olivi____ has quit [Remote host closed the connection]
gizmore|2 has joined #ruby
olivi____ has joined #ruby
d^sh_ has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 268 seconds]
olivi____ has quit [Ping timeout: 268 seconds]
Dreamer3_ has joined #ruby
jameser has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
Moosashi has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
oliv_____ has joined #ruby
<Fire-Dragon-DoL> anyone aware of the encoding returned by Net::IMAP::FetchData.attr["BODY[]"] (returns the full email)? I see in console it's returning utf-8, but it seems weird since internal charset might contain non-utf8 codes. I would have expected ASCII-8BIT or something along those lines
jackjackdripper has quit [Quit: Leaving.]
milardovich has joined #ruby
uZiel has joined #ruby
kies has quit [Ping timeout: 248 seconds]
oliv_____ has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
tunaBee_ has joined #ruby
olivi____ has joined #ruby
milardovich has joined #ruby
<arahael> Fire-Dragon-DoL: Unless they specify it, I would assume it could be in any encoding.
AustinIncognito has joined #ruby
<arahael> Fire-Dragon-DoL: Do you have a Content-Type?
chrisarc1nd has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
Tralin has quit [Ping timeout: 260 seconds]
Didac has quit [Ping timeout: 260 seconds]
hurricanehrndz has quit [Ping timeout: 260 seconds]
tunaBee_2 has quit [Ping timeout: 260 seconds]
AustinMatherne has quit [Ping timeout: 260 seconds]
hkdsun has quit [Ping timeout: 260 seconds]
m27frogy has quit [Ping timeout: 260 seconds]
chrisarcand has quit [Remote host closed the connection]
genpaku has quit [Remote host closed the connection]
Bish has quit [Remote host closed the connection]
KrzaQ has quit [Excess Flood]
Tralin_ has joined #ruby
Guest55145 has quit [Remote host closed the connection]
<arahael> (And maybe, a Content-Transfer-Encoding?)
freeze has quit [Remote host closed the connection]
Bish has joined #ruby
m27frogy has joined #ruby
genpaku_ has joined #ruby
ule has quit [Remote host closed the connection]
<Fire-Dragon-DoL> arahael: I might be ignorant but when you use BODY[] you are fetching the whole mail, so I'm talking before even starting the parsing of it
freeze has joined #ruby
ozzloy has quit [Remote host closed the connection]
ule has joined #ruby
<Fire-Dragon-DoL> infact, I expected something like a raw stream of bytes :p
hkdsun has joined #ruby
genpaku_ is now known as genpaku
Didac has joined #ruby
Guest89848 has quit [Excess Flood]
jolamb has quit [Ping timeout: 260 seconds]
uZiel has quit [Ping timeout: 248 seconds]
<arahael> Fire-Dragon-DoL: In practice, I think you can at least assume ASCII to get to the headers, but then, you'll need to use the 'correct' encoding for the contents.
bruno- has joined #ruby
<Fire-Dragon-DoL> I thought that too, but I was wrong, looks like we found email messages with INVALID utf-8 characters
KrzaQ has joined #ruby
<arahael> Fire-Dragon-DoL: Absolutely.
giraffe has joined #ruby
hurricanehrndz has joined #ruby
konsolebox has joined #ruby
<Fire-Dragon-DoL> and net/imap was returning BODY[] as utf-8 with headers with invalid characters
giraffe is now known as Guest17892
jolamb has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
ansraliant has quit [Ping timeout: 240 seconds]
<Fire-Dragon-DoL> hence my question, what should I do in those cases? My idea so far is just encode in utf-8 and scrubbing/replacing any invalid character
<Fire-Dragon-DoL> because I can't really do anything else if the encoding is invalid
<Fire-Dragon-DoL> (in the headers)
<Fire-Dragon-DoL> mhhh
<arahael> Fire-Dragon-DoL: You could hope that Ruby didn't actually convert the encoding, and thus, try changing the underlying encoding.
<Fire-Dragon-DoL> arahael: acctually that's my fear, but I have no idea what would be the original...
<arahael> Fire-Dragon-DoL: I think force_encoding does that? (I'm not really a ruby dev - spending more time in other languages)
<Fire-Dragon-DoL> yes it does that
<arahael> Fire-Dragon-DoL: Another consideration, is that you will sometimes absolutely have mixed-encoding emails.
bokayio has joined #ruby
govg has joined #ruby
ansraliant has joined #ruby
sts has joined #ruby
mtkd has joined #ruby
ozzloy has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
sts is now known as Guest925
<Fire-Dragon-DoL> yes but that comes later
<Fire-Dragon-DoL> see my point
<Fire-Dragon-DoL> how could net/imap return a utf-8 string
<Fire-Dragon-DoL> if the email is mixed encoding?
<Fire-Dragon-DoL> it doesn't make any sense
milardovich has quit [Remote host closed the connection]
raul782 has quit []
olivi____ has quit [Remote host closed the connection]
<Fire-Dragon-DoL> time to try hard "\xEC\xEE\xF1\xE9\xF8\xE4: Could you help me out?\r\n\r\nbody\u3042\x81\x00\0"
<arahael> Fire-Dragon-DoL: Maybe it's the default external and internal Encoding?
oliv_____ has joined #ruby
<Fire-Dragon-DoL> that's true, so you are saying that it could be a raw stream of bytes, but Ruby is stupid and it's converting it
oliv_____ has quit [Remote host closed the connection]
<Fire-Dragon-DoL> and it's totally possible unfortunately. It should be Encoding::BINARY and that's what I really expected from net/imap
oliv_____ has joined #ruby
<arahael> Fire-Dragon-DoL: Could be. Incidentially, I've seen the same problem in some Haskell mbox parsers, and that group is keen on correctness.
<arahael> Fire-Dragon-DoL: utf-8 works well for "most" american devs, I think.
<Fire-Dragon-DoL> lol, ok thanks for suffering a little bit with me arahael, I have a few ideas on how to tackle this now
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
<arahael> Fire-Dragon-DoL: Keep in mind that I'm *not* a ruby dev.
<arahael> Fire-Dragon-DoL: So could be completely wrong w.r.t. ruby. ;)
<Fire-Dragon-DoL> yes, no problem. I don't know a lot of devs able to answer this. I think it's a matter of checking the source of net/imap
<Fire-Dragon-DoL> which is something I must do by myself :P
mikeiniowa has quit [Remote host closed the connection]
eljimbo has joined #ruby
<arahael> Enjoy.
mikeiniowa has joined #ruby
Moosashi has quit [Quit: Moosashi]
rundor has joined #ruby
jnollette has joined #ruby
astrobunny has joined #ruby
oliv_____ has quit [Remote host closed the connection]
rundor has quit [Client Quit]
oliv_____ has joined #ruby
rundor has joined #ruby
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
bronson has joined #ruby
oliv_____ has quit [Ping timeout: 258 seconds]
rundor has quit [Client Quit]
rundor has joined #ruby
rundor has quit [Client Quit]
Moosashi has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
Eiam_ has joined #ruby
__Yiota has joined #ruby
Moosashi has quit [Quit: Moosashi]
MtnGoat has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
HoierM has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
patr0clus has joined #ruby
duderonomy has joined #ruby
jinie_ has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 1.9]
duderonomy has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
jinie_ has joined #ruby
nacsurte has joined #ruby
gix has quit [Ping timeout: 240 seconds]
eljimbo has quit [Quit: This computer has gone to sleep]
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 246 seconds]
gix has joined #ruby
<Fire-Dragon-DoL> mhhh... this isreally painful
nacsurte has quit [Ping timeout: 260 seconds]
<Fire-Dragon-DoL> I've been digging through ruby net/imap source but it's hard to understand the encoding type of the string. It LOOKS like they overlooked entirely the encoded fact, but then there are some regexps whcih are for ascii-8bit. It feels like they work with ascii-8bit all time and then forgot to ensure it was encoded properly when sending it to the developer
tacoboy has quit [Remote host closed the connection]
kies has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
uZiel has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
madgen has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 248 seconds]
patr0clus has quit [Quit: tempusfugit]
MichaelBurge has quit [Remote host closed the connection]
QualityAddict has quit [Quit: Leaving]
MichaelBurge has joined #ruby
jakew has joined #ruby
Dreamer3_ has quit [Quit: Leaving...]
jakew has quit [Client Quit]
jackjackdripper has joined #ruby
jakew has joined #ruby
jakew has quit [Client Quit]
jakew has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jakew has quit [Client Quit]
gusrub has quit [Remote host closed the connection]
drcode has joined #ruby
deep-book-gk_ has joined #ruby
deep-book-gk_ has left #ruby [#ruby]
gnufied has quit [Ping timeout: 240 seconds]
renchan has joined #ruby
cagomez has joined #ruby
mim1k has joined #ruby
elcontrastador has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Dreamer3_ has joined #ruby
bronson has joined #ruby
runescape07rsps has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 260 seconds]
nofxxx has joined #ruby
ramfjord has joined #ruby
tunaBee_ has quit [Ping timeout: 240 seconds]
tunaBee has joined #ruby
zapata has quit [Ping timeout: 276 seconds]
Eiam_ has quit [Ping timeout: 276 seconds]
zapata has joined #ruby
nofxxxx has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
charliesome_ has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Ping timeout: 255 seconds]
nacsurte has joined #ruby
ur5us has quit [Remote host closed the connection]
nacsurte has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
iceden has quit [Ping timeout: 240 seconds]
iceden has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
Bock has joined #ruby
rabajaj has joined #ruby
smulverine has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
aufi has joined #ruby
s1kx has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jenrzzz has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.9 Beta Build (2017/07/26) 64 Bit]
grant has joined #ruby
Tempesta has joined #ruby
anisha has joined #ruby
DTZUZO has joined #ruby
bronson has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
dh64 has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
astrobun_ has quit [Remote host closed the connection]
z0mbee has joined #ruby
nacsurte has joined #ruby
armyriad has quit [Ping timeout: 268 seconds]
jameser_ has joined #ruby
ramfjord has joined #ruby
armyriad has joined #ruby
jameser has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
MrBusiness has quit [Ping timeout: 240 seconds]
nacsurte has quit [Ping timeout: 240 seconds]
z0mbee has quit [Quit: leaving]
ramfjord has quit [Ping timeout: 255 seconds]
z0mbee has joined #ruby
z0mbee has left #ruby [#ruby]
andrzejku has joined #ruby
astrobunny has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
MrBusiness has joined #ruby
muzik has joined #ruby
ramfjord has joined #ruby
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
moeabdol has quit [Quit: WeeChat 1.9]
Awsy has joined #ruby
astrobunny has quit [Remote host closed the connection]
conta has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
radic has joined #ruby
aupadhye has joined #ruby
code_zombie has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
bronson has joined #ruby
mzelin has joined #ruby
djbkd has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 240 seconds]
nacsurte has joined #ruby
radic has quit [Quit: ZNC - http://znc.in]
radic has joined #ruby
radic has left #ruby [#ruby]
nacsurte has quit [Ping timeout: 268 seconds]
andikr has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
snath has joined #ruby
biberu has joined #ruby
snath has left #ruby [#ruby]
cam27 has quit [Quit: cam27]
TomyWork has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
mark_66 has joined #ruby
ramfjord has joined #ruby
eelster is now known as eelster[away]
ramfjord has quit [Ping timeout: 240 seconds]
stan has quit [Read error: Connection reset by peer]
stan_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
empty_cup has quit [Ping timeout: 260 seconds]
<ineb> net/imap is a bit esoteric :)
astrobunny has joined #ruby
Fraeon has quit [Ping timeout: 255 seconds]
empty_cup has joined #ruby
enterprisey has quit [Remote host closed the connection]
Fraeon has joined #ruby
Snowy has joined #ruby
aurelien` is now known as aurelien
mzelin has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
npgm has quit [Quit: Connection closed for inactivity]
vondruch has quit [Quit: vondruch]
antgel has joined #ruby
DoubleMalt has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
johnny56_ has joined #ruby
vondruch has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
<dminuoso> Fire-Dragon-DoL: As far as I can tell, net/imap is not responsible for encoding.
InfinityFye has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
nacsurte has joined #ruby
postmodern has quit [Quit: Leaving]
marr has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
nacsurte has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
moeabdol has quit [Client Quit]
hurricanehrndz has quit [Quit: Goodbye]
ghr has joined #ruby
ghr has left #ruby [#ruby]
eelster[away] is now known as eelster
eelster is now known as eelster[away]
hurricanehrndz has joined #ruby
moeabdol has joined #ruby
mikecmpbll has joined #ruby
mim1k has joined #ruby
Silthias has joined #ruby
charliesome has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
Silthias2 has joined #ruby
charliesome has quit [Client Quit]
vondruch has quit [Quit: vondruch]
Silthias1 has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
solrize has joined #ruby
<solrize> heyall. does it sound feasible to modify ruby to dump and reload images the way emacs lisp and similar systems have done in the past? the idea is to get quicker startup for an application with lots of code (big rails app + some 100s of gems)
<havenwood> solrize: see the bootsnap gem
<solrize> thanks, looking
<shmoon> wanted to understand csrf attack in oauth and how state param prevents it ? :/
<havenwood> solrize: it does something along the lines of yomikomu and a few more tricks: https://github.com/ko1/yomikomu
<solrize> found https://github.com/twbs/bootstrap-rubygem - readme.md doesn't explain what it does but i can poke around a little
<solrize> about to look at yomikomu
<havenwood> not bootstrap, bootsnap
<solrize> oh woops! thanks:)
<solrize> looking
<solrize> aha
<havenwood> solrize: also note it's going to be part of the default generated rails app soon: https://github.com/rails/rails/blob/8acca896cbaa01f6fc51969601888a440e83d53a/railties/lib/rails/generators/rails/app/templates/Gemfile#L23
<solrize> wow nice! thanks
<havenwood> shmoon: do you follow that much ^?
ur5us has quit [Remote host closed the connection]
<shmoon> wow what is that $30m in series C
<shmoon> havenwood: i understand that article but it doesn't explain how XSRF happens without state token which is what I'm confused about.
jaruga has joined #ruby
moeabdol has quit [Quit: WeeChat 1.9]
<havenwood> shmoon: you don't want me getting you to follow a link to do something malicious on a service you're authenticated with
<dminuoso> I do however.
<havenwood> \o/
Snowy has quit [Quit: ragequit]
<havenwood> shmoon: or a script to send you there without clicks, however you get there
Beams has joined #ruby
<havenwood> shmoon: like you login to your bank and then inadvertently follow a link to: schoombank.com/xfer?dollars=all&acct=havenwood
<dminuoso> Of course that now raises the really important question:
<dminuoso> Why does havenwood have a schoom account?
<havenwood> shmoon: it's you asking, but i don't know your sekret
<havenwood> dminuoso: mmm, the plot thickens
charliesome has joined #ruby
workmad3 has joined #ruby
<havenwood> shmoon: but if when you authenticate you get a uuid, it can spot the imposter when that uuid can't be repeated back
<havenwood> shmoon: so some rando can't get you to follow a link to do things
<havenwood> shmoon: make sense?
<dminuoso> solrize: Realistically there a couple XSRF vectors in OAuth2. All revolve in the attacker taking control over which service you authorize.
<havenwood> shhhhmoon*
<solrize> :)
ltem has joined #ruby
Silthias2 has left #ruby [#ruby]
ur5us has joined #ruby
<dminuoso> solrize: This can be especially problematic in clickjacking. Imagine a transparent iframe ontop of a regular website that looks familiar to you. Now the "get latest tweets" is actually beneath a transparent "Authorize havenwood to get full details of your bank account" type of button.
<solrize> dminuoso, that was shmoon asking about oath xsrf
<dminuoso> solrize, shmoon
<dminuoso> whats the difference
<solrize> :)
<havenwood> one is orange and the other purple, in my world
<dminuoso> No.
<dminuoso> Your world is wrong.
<dminuoso> purple and red.
<dminuoso> Ah well. And the levenshtein distance between them is 6.
<dminuoso> So there's that
garathem has joined #ruby
Silthias has joined #ruby
nacsurte has joined #ruby
high_fiver has joined #ruby
nacsurte has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
pandaant has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bronson has quit [Ping timeout: 268 seconds]
<shmoon> I know what xsrf is in general. but in relation to oauth2 protocol is where I am getting confused havenwood dminuoso
<shmoon> For example I was reading this which is on the same topic http://homakov.blogspot.in/2012/07/saferweb-most-common-oauth2.html
<shmoon> but the last point doesn't make sense to me "Voila, press Log In with that OAuth Provider - you are logged in directly to User's account on site.com."
Beams_ has joined #ruby
aupadhye has joined #ruby
Beams has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
domgetter has quit [Ping timeout: 276 seconds]
sysvalve has joined #ruby
_whitelogger has joined #ruby
pizzaops_ has joined #ruby
sarbs has quit [Ping timeout: 276 seconds]
lel has quit [Ping timeout: 268 seconds]
nadir has quit [Ping timeout: 276 seconds]
pizzaops has quit [Ping timeout: 276 seconds]
_whitelogger_ has quit [Remote host closed the connection]
empty_cup has quit [Ping timeout: 276 seconds]
Eiam has quit [Ping timeout: 276 seconds]
caw has quit [Ping timeout: 276 seconds]
solrize has quit [Ping timeout: 276 seconds]
willymox has joined #ruby
willymox has quit [Ping timeout: 240 seconds]
slima_ has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
pecan has joined #ruby
pecan has quit [Ping timeout: 276 seconds]
<tynamite> I can't figure out how to setup a reverse proxy to link my webrick server with apache like the tutorial says.
<tynamite> I'm using my windows laptop
tynamite has joined #ruby
tynamite has quit [Changing host]
tynamite has joined #ruby
slima has quit [Read error: Connection reset by peer]
trampi has quit [Quit: Ping timeout (120 seconds)]
olblak has quit [Ping timeout: 240 seconds]
slima_ has joined #ruby
slima_ has quit [Changing host]
empty_cu1 has joined #ruby
eregon_ has joined #ruby
caw_ has joined #ruby
caw_ has joined #ruby
pizzaops_ is now known as pizzaops
caw_ has quit [Changing host]
lel has joined #ruby
eregon has quit [Ping timeout: 258 seconds]
gj_ has joined #ruby
sarbs has joined #ruby
knight- has quit [Ping timeout: 276 seconds]
grymmjack has quit [Ping timeout: 276 seconds]
gj_ is now known as grymmjack
aglorei has quit [Ping timeout: 248 seconds]
uZiel has quit [Remote host closed the connection]
solrize_ has joined #ruby
solrize_ has joined #ruby
solrize_ has quit [Changing host]
pskosinski has joined #ruby
ShekharReddy has joined #ruby
knight- has joined #ruby
pskosinski is now known as Guest32941
aglorei has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
Tohuw has quit [Ping timeout: 240 seconds]
nekomune has joined #ruby
uZiel has joined #ruby
olblak has joined #ruby
Tohuw has joined #ruby
bokayio has joined #ruby
Tohuw is now known as Guest12040
ramfjord has joined #ruby
jaruga has quit [Quit: jaruga]
jaruga has joined #ruby
<tynamite> hello anyone here?
<havenwood> tynamite: folk are always here
rfoust has quit [Ping timeout: 276 seconds]
<surrounder> tynamite: " can't figure out " is a little vague... what have you tried? what isn't working?
brent__ has joined #ruby
alamar has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
alamar has joined #ruby
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alamar is now known as Guest14480
s1kx has quit [Quit: s1kx]
<tynamite> I'm using this tutorial
brent__ has quit [Ping timeout: 240 seconds]
<tynamite> This is what I put at the bottom of my httpd.conf
<tynamite> When I put that in to setup a reverse proxy for apache, my rack app fails to start.
<tynamite> apache fails to start I mean
<ineb> and what does it say as error
<tynamite> apache error log is empty
lel has quit [Ping timeout: 276 seconds]
nacsurte has joined #ruby
<tynamite> i think I see the problem
lel has joined #ruby
<tynamite> It's saying ProxyPassReverse takes one, two or three arguments, a virtual path and a URL for reverse proxy behaviour
<tynamite> How can there be a syntax error if I'm using the format the tutorial gave me?
high_fiver has quit [Ping timeout: 246 seconds]
jeyraof^mbpr has joined #ruby
alex`` has joined #ruby
nacsurte has quit [Ping timeout: 248 seconds]
astrobunny has quit [Remote host closed the connection]
<ineb> tynamite: is the comment wrongly interpreted as argument there? i dont know
ruby-lang166 has joined #ruby
s1kx has joined #ruby
<ruby-lang166> #RubyonRails
<ruby-lang166> i want to know how can i debug a Hash object
<ruby-lang166> @everyone
<tynamite> use the .inspect method
Pacra has quit [Ping timeout: 255 seconds]
<ruby-lang166> as in Hash[:key].inspect ?
<tynamite> yes
<ruby-lang166> thanks
<ruby-lang166> will do that
<tynamite> then view source in your web browser
<tynamite> the web browser won't display <stuff> as text
kspencer has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
<tynamite> arrrgh! no one's online in #httpd for me to get apache help
kspencer has joined #ruby
kspencer has quit [Excess Flood]
kspencer has joined #ruby
bronson has joined #ruby
<ruby-lang166> @tynamite thanks mate , it is showing the correct output in console
<ruby-lang166> but the real deal is the email format is printing it incorrectly (html.erb)
bronson has quit [Ping timeout: 240 seconds]
shiranuidong has joined #ruby
shiranuidong has quit [Max SendQ exceeded]
<tynamite> fixed it now
madgen has joined #ruby
Guest32941 has quit [Changing host]
Guest32941 has joined #ruby
Guest32941 has joined #ruby
<tynamite> I can't get this reverse proxy tutorial to work
Guest32941 is now known as pskosinski
<tynamite> This is what I see when I set it up http://imgur.com/a/UPJ6h
<tynamite> My rack app should load, but it doesn't load, I just get it saying error 404 not found on every page.
runescape07rsps has quit [Quit: Leaving]
romankapitonov has joined #ruby
tynamite has quit [Ping timeout: 260 seconds]
im0nde has joined #ruby
gizmore|2 has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
nowhere_man has quit [Ping timeout: 248 seconds]
gizmore has joined #ruby
ferr has joined #ruby
adlerdias has joined #ruby
ruby-lang166 has quit [Ping timeout: 260 seconds]
stamina has joined #ruby
<Bish> how do i check for boolean in a case block?
<Bish> when TrueClass,FalseClass ?
nacsurte has joined #ruby
zacts has quit [Ping timeout: 255 seconds]
MarcWebe1 has quit [Quit: leaving]
tynamite has joined #ruby
<tynamite> I can't get my reverse proxy to hook up a ruby app with apache.
<tynamite> I get this when I try to view my app http://imgur.com/qfvUdK7
nacsurte has quit [Ping timeout: 240 seconds]
<Bish> u wont get people to help you by spamming
mjolnird has quit [Ping timeout: 258 seconds]
rgtk has quit [Ping timeout: 246 seconds]
<tynamite> I'm not spamming
<Bish> you are
<tynamite> my computer had a blue screen so I lost the irc chat so if anyone did reply to me I didn't see it
<Bish> lol
<Bish> okay then, heres my approach to help you: take nginx
muzik has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<Bish> and basicially this is not a ruby problem
rgtk has joined #ruby
mjolnird has joined #ruby
madgen has quit [Read error: Connection reset by peer]
madgen has joined #ruby
conta has quit [Read error: Connection reset by peer]
tynamite has left #ruby [#ruby]
conta has joined #ruby
ferr_ has joined #ruby
diegok has quit [Ping timeout: 255 seconds]
BSab has joined #ruby
gnufied has joined #ruby
diegok has joined #ruby
BSAlb has quit [Ping timeout: 240 seconds]
zacts has joined #ruby
<ineb> Bish: to answer your question: yes
<Bish> when true would lead to problems, right?
<Bish> >> a=false;case a; when true; 1; else; false; end;
<Bish> >> a=false;case a; when true; 1; else; false; end;
<Bish> :(
stamina has quit [Quit: WeeChat 1.9]
<Bish> does not lool like it
bronson has joined #ruby
<ineb> Bish: 'when' comes down to using the === operator
<ineb> and therefore we have true === true
<ineb> or TrueClass === true
<ineb> you can do it either way, i dont see any pitfalls
bronson has quit [Ping timeout: 240 seconds]
jeyraof^mbpr has quit [Quit: Leaving]
someuser has joined #ruby
KeyJoo has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
<Radar> Bish: out of interest, what other values could the value be when it's not true / false ?
apparition47 has joined #ruby
rgtk has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
jrs has joined #ruby
<jrs> hi+
<_moep_> hi
<jrs> is there a more succinct way of writing https://gist.github.com/anonymous/21010482bc727cf4578c41562c20cd38 ? I.e. either add to an existing Hash or create it if it doesn't exist?
nacsurte has joined #ruby
<jrs> hmm okay so i just came up with https://gist.github.com/anonymous/3457e7ea8bfb7a615ab719660a998cd5 ... i guess that's the shortest.
ramfjord has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
gnufied has quit [Ping timeout: 255 seconds]
Ishido has joined #ruby
rabajaj has quit [Quit: Leaving]
naprimer2 has quit [Ping timeout: 268 seconds]
naprimer2 has joined #ruby
naprimer2 has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
ldnunes has joined #ruby
VladGh has quit [Remote host closed the connection]
jphase has quit [Remote host closed the connection]
VladGh has joined #ruby
millerti has joined #ruby
im0nde has quit [Quit: im0nde]
bronson has joined #ruby
<Bish> can i have a case when block where i go into 2 paths
<Bish> ineb: thanks btw
ElFerna has joined #ruby
phoo1234567 has joined #ruby
ta_ has joined #ruby
<Bish> i mean what do i do if a case when is the same as the combination of 2
<Bish> when x; a; when y; b; when x,y; a;b;
<Bish> sorry, not verry expressive
bronson has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Ping timeout: 260 seconds]
<Bish> i mean stuff like that
<Bish> can i avoid writing the 2 lines doubled?
<ljarvis> when :ON_OPEN, :ON_CLICK
yeticry has joined #ruby
<Bish> well, but the result is different..
<Bish> and the input is different aswell
<ljarvis> right, just saw that
yeticry_ has quit [Read error: Connection reset by peer]
<Bish> i get :ON_OPEN_AND_CLICK, i cant realy change that
naprimer2 has joined #ruby
<ljarvis> then I don't understand your question
<Bish> well, third case is a combination of first and senc
<Bish> i would love to not write that 2 times
<ljarvis> but it's a different condition
<Bish> :(
<Bish> can case when do fancy stuff with arrays?
<ljarvis> fancy? like what?
<Bish> well like take an array as parameter for when
<ljarvis> well sure
<ljarvis> when array
<Bish> instead of writing :A,:B
adlerdias_ has joined #ruby
<ljarvis> right.. you need to be specific
<Bish> giving it [:A,:B]
<ljarvis> when *array
<Bish> oh that works?
<ljarvis> try it
<Bish> dont tell me when is a method, i gonna flip
<ljarvis> it's not a method
ShekharReddy has quit [Quit: Connection closed for inactivity]
<ljarvis> it just takes a comma separated list of params, and splatting an array returns a comma separated list of params (in a low level sense)
adlerdias has quit [Ping timeout: 248 seconds]
hkdsun has quit [Ping timeout: 240 seconds]
hkdsun has joined #ruby
tacoboy has joined #ruby
tvw has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElFerna has quit [Ping timeout: 276 seconds]
ta_ has quit [Remote host closed the connection]
Ishido has quit [Ping timeout: 240 seconds]
lacuna has joined #ruby
ElFerna has joined #ruby
brent__ has joined #ruby
workmad3 has joined #ruby
ldnunes has quit [Ping timeout: 276 seconds]
kahra has quit [Quit: WeeChat 1.9]
nadir has joined #ruby
sepp2k has joined #ruby
jrs has quit [Remote host closed the connection]
Ishido has joined #ruby
DK2 has quit [Ping timeout: 276 seconds]
jrs has joined #ruby
brent__ has quit [Ping timeout: 255 seconds]
nacsurte has joined #ruby
DK2 has joined #ruby
jrs has quit [Remote host closed the connection]
<Bish> can i make 2 constants point to the same reference?
<Bish> can i copy modules?
<Bish> does const_set(:new,const_get(:old))
<Bish> do that trick?
<ljarvis> did you try it?
<Bish> faster to ask, no
jrs has joined #ruby
mim1k has quit [Ping timeout: 276 seconds]
synthroid has joined #ruby
nacsurte has quit [Ping timeout: 268 seconds]
<ljarvis> well, not really
<ljarvis> you'd know if you opened irb and tried it
<Bish> i dont know if it comes with weird implications
<Bish> if these 2 constants reference the same thing
<Bish> or the module gets copied
<Bish> i expected hints like that
<Bish> even if it works
<Bish> thats why i rather ask
<Bish> not only because of speed
ldnunes has joined #ruby
jrs has quit [Remote host closed the connection]
jrs has joined #ruby
<ljarvis> you've been here long enough to know how to ask well formed questions, and you're clearly smart enough to do the research quickly yourself, but you still seem to just ask without thinking
<Bish> thinking is stupid :(
<ljarvis> so, let me ask, what do you actually want? do you have code to show it?
quobo has joined #ruby
jrs has quit [Remote host closed the connection]
<Bish> the code is big, wouldnt give you much, i have 2 big modules which act as handler for messages
<Bish> and i found out that 2 handlers basicially do the same
jrs has joined #ruby
<ljarvis> you can always provide small examples to help people who are taking their time to help you
<Bish> and i have a mapping of module name => module
<ljarvis> a Hash?
<Bish> yes something like
<Bish> {:ax_by_cz=>AxByCz}
<Bish> and AxByCz has a self.call method, which ets called if message :ax_by_cz comes in
ramfjord has joined #ruby
<Bish> and i noticed 2 of the modules share 90% of the code so i coul DRY it out
truenito has joined #ruby
adlerdias has joined #ruby
gheegh has joined #ruby
<ljarvis> so, you move that 90% into a new module that's included into the other 2
<Bish> hm, they both only contain that one method
<Bish> they dont have something else, so include is not really an option
<ljarvis> so they share 100% of the code?
<ljarvis> but there's only 1 method
<Bish> no the 2 methods are different
<ljarvis> 2 methods? there are now two of them
<Bish> no, each module has 1 each
<Bish> and those methods have alot in common
<ljarvis> how much code belongs to this one method?
<Bish> 100% :D of the module
<ljarvis> well there's your problem
<ljarvis> break it down into reusable pieces
<ljarvis> then extract the bits being reused into a module that's included in both other things
<Bish> well thats hard, since its basicially a huge database transaction
<ljarvis> that doesn't tell me why it's hard
<Bish> and it only uses 1 other class
<Bish> object* rather
<ljarvis> now you're just saying words, because i have not a zero clue about how your code works without an example
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish> ;;, yes well, i dont think it would bring us much if i posted that code here
<Bish> there is so much context
ramfjord has quit [Ping timeout: 276 seconds]
adlerdias_ has quit [Ping timeout: 276 seconds]
<ljarvis> ok sure, well good luck with your problem
<Bish> i really didnt want to be a annoying question asker.. i really think it wouldnt give you anything
<Bish> writing an example for that would take alot of time
<Bish> but thanks, i appreciate your effort
<ljarvis> ok, well we wouldn't want to use your time
<Bish> man.. i really didnt want to be like that im sorry
jrs has quit [Remote host closed the connection]
<Bish> you really dont need to help me, dont be mean :/
jrs has joined #ruby
jrs has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 268 seconds]
jrs has joined #ruby
Didac has quit [Changing host]
Didac has joined #ruby
jrs has quit [Remote host closed the connection]
jrs has joined #ruby
gnufied has joined #ruby
diegobiavati has joined #ruby
jrs has quit [Remote host closed the connection]
jrs has joined #ruby
eelster has joined #ruby
<ljarvis> Bish: I want to help, but without a well formatted question and some basic code, there's really nothing anyone can do and you're wasting your own precious time as well as others. I'm not expecting to see thousands of lines of code, but you could have created a very basic reproduction in simple terms and then outlaid 1-3 questions very easily with minimal work
howdoi has quit [Quit: Connection closed for inactivity]
umaaji has quit [Ping timeout: 240 seconds]
<Bish> sorry, i am not good at that, thats why i tried to ask a general question, sorry didnt want to bother you like that
lacuna has joined #ruby
<octomancer> the perl guys are way better at passive-aggressive entitlement than you lot ;-)
<gheegh> Bish: There is a good tutorial out there about how to structure code.. i've been programming in Ruby since 2005 and I thought it was interesting/ehlpful.
<gheegh> let me find it
<gheegh> (i'm jumping on the tail end of this conversation, if its helpful only.. i might not have the right context)
<ljarvis> Bish: not being good at it is fine, but lets help you get better at it
<Bish> gheegh: im coding for long time too i guess i will never be good at it, but ill give it a shot
bronson has joined #ruby
<gheegh> this is the code notes on Sandi Metz's book "Practical Object Oriented Design with Ruby"
<gheegh> The net of what i've learned is "don't fear the class"
<gheegh> something that is complex, should probably be in its own class
jinie_ has quit [Ping timeout: 276 seconds]
<Bish> ljarvis: thats why i asked a simple question in the beginning.. i didnt want to steal someones time
jinie_ has joined #ruby
<Bish> since copying the module would do the trick i guess…
stoffus has quit [Ping timeout: 255 seconds]
<ljarvis> Bish: doing X = Y doesn't copy the Y module to X, it points the X constant to the Y constant which just happens to be the name of a module
bronson has quit [Ping timeout: 240 seconds]
<ljarvis> when you look at class Foo or module Bar -- Foo and Bar are just constants. They're not even necessary, they're just a helpful way to refer to a class
eelster has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ljarvis> or module
<Bish> yeah i know that, kinda
<ljarvis> ok, great
eelster has joined #ruby
<Bish> it confuses me, but basicially i know all that
jphase has joined #ruby
<ljarvis> what part confuses you?
<Bish> i guess B = Module.new(A)
<Bish> references and stuff
mim1k has joined #ruby
<Bish> i mean const_set(:B,const_get(:A))
<Bish> should copy const A to B, wouldnt it?
<ljarvis> that's just B = A
<Bish> ah, okay.
Qchmqs__ has joined #ruby
<Bish> but, basicially that would work, right?
tvw has quit [Remote host closed the connection]
andikr has quit [Ping timeout: 255 seconds]
<Bish> because B is really the module WhateverParent::B
<ljarvis> work in what sense? the code would work yes, but it depends what you want it to do
roshanavand has quit [Remote host closed the connection]
<Bish> yeah as i said, in this case, the module only has a method "call" which doesnt reference other things as much
<ljarvis> ok so, lets write some code.. one sec
<ljarvis> how's this for a high level conceptual design of your code? https://gist.github.com/leejarvis/142c87fdd0d6c2b14e7c1f6b143df01c
<Bish> yes i just added a module over these 2
<ljarvis> ok, updated, is that correct?
<Bish> MessageHandler.constants.map { |x| [x.to_s.gsub(/(.)([A-Z])/,'\1_\2').downcase,MessageHandler.const_get(x)] }.to_h
<Bish> and did this
<Bish> yes
<dminuoso> ljarvis | that's just B = A
<dminuoso> It's not.
<Bish> but Parent would be MessageHandler in this case
<dminuoso> ljarvis: What if there's a method B around? D:
<ljarvis> dminuoso: yo
<Bish> u can have uppercase methods?
<ljarvis> dminuoso: stahp
<ljarvis> Bish: yes
<dminuoso> Bish: Yes!: D
<Bish> oh geez
<ljarvis> >> Array(nil)
<ruby[bot]> ljarvis: # => [] (https://eval.in/837919)
<ljarvis> that's a method
<dminuoso> ^-
<ljarvis> but anywayyyyy, thanks dminuoso for derailing
<Bish> oh.
<Bish> :D
<dminuoso> ljarvis: You are welcome!
<ljarvis> Bish: ok so, since we don't want to confuse people with too much code, lets just keep it simple. This right? https://gist.github.com/leejarvis/142c87fdd0d6c2b14e7c1f6b143df01c
<Bish> yes
<ljarvis> what next?
zebird has joined #ruby
<Bish> the call methods have both 1 parameter "job"
<Bish> which is the job database models
<ljarvis> great
madgen has joined #ruby
<ljarvis> added
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
<Bish> well, thats probably not important.. i mean my problem is the Handlers constant
<Bish> i want foo and bar both point to Foo
<Bish> but i want to keep my funny line which maps the modules to message names
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElFerna has joined #ruby
ruby-lang211 has joined #ruby
ruby-lang211 has quit [Client Quit]
nacsurte has joined #ruby
grant has joined #ruby
andrzejku has joined #ruby
nacsurte has quit [Ping timeout: 248 seconds]
<ljarvis> oh :| well that really wasn't obvious
<ljarvis> you mentioned the code in Foo.call and Bar.call was slightly different
dhaller has joined #ruby
<Bish> it is, minimal, but i will change it in a way, where it checks what module it is
<Bish> that was my plan
<ljarvis> just do HANDLERS[:bar] = Foo after your line
<Bish> or i can pull that information out of "job"
<Bish> yeah., but i did that weird message=>ModuleHandling to NOT have a weird routing table
<Bish> and have it rather implicit
<Bish> :/
<ljarvis> where would the alias live?
<ljarvis> you have to define it somehow right?
<Bish> thats why i wanted to "copy" the module
<Bish> so the the module is different, same call method
<ljarvis> right, so Bar = Foo should be fine
Derperperd has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 248 seconds]
Xiti` has quit [Quit: Xiti`]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
sylario has joined #ruby
zebird has quit [Quit: WeeChat 1.9]
banisterfiend has joined #ruby
FastJack has quit [Remote host closed the connection]
DLSteve has joined #ruby
<jrs> Sometimes I wish someone would finish my $current_programming_project for me and make me rich with it somehow.
synthroid has quit [Remote host closed the connection]
kahra has joined #ruby
Bhootrk_ has joined #ruby
anisha has quit [Ping timeout: 255 seconds]
anisha has joined #ruby
dhaller has quit [Remote host closed the connection]
eljimbo has joined #ruby
synthroid has joined #ruby
<Bish> jrs: i can't relate
ferr_ has quit [Quit: WeeChat 1.9]
cagmz_ has quit [Quit: Leaving]
bkxd has joined #ruby
__Yiota has joined #ruby
govg has quit [Ping timeout: 240 seconds]
govg has joined #ruby
bronson has joined #ruby
Ishido has quit [Ping timeout: 268 seconds]
ElFerna has quit [Ping timeout: 258 seconds]
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
conta has quit [Quit: conta]
DoubleMalt has joined #ruby
conta has joined #ruby
AxelAlex has quit [Ping timeout: 260 seconds]
pandaant has quit [Remote host closed the connection]
<Bish> jrs: echo $current_programming_project
oleo has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
ElFerna has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
naprimer2 has quit [Quit: Leaving]
futilegames has joined #ruby
naprimer2 has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
smulverine has quit [Remote host closed the connection]
AxelAlex has joined #ruby
<jrs> Bish, a little web app to edit and view textbooks with. It's not yet online anywhere, though.
Rapture has joined #ruby
<jrs> The cool thing about it, though, is that I'll be allowed to make it opensource once its finished.
<Bish> how many people are working on it?
<jrs> One programmer, three content editors, at the moment.
DoubleMalt has quit [Quit: Leaving]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
phoo1234567 has quit [Quit: Gotta go]
vuoto has joined #ruby
gil_ has quit [Ping timeout: 246 seconds]
cadillac_ has joined #ruby
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
oliv_____ has quit [Ping timeout: 276 seconds]
dhaller has joined #ruby
rgtk has joined #ruby
cadillac_ has quit [Client Quit]
cadillac_ has joined #ruby
ElFerna has quit [Ping timeout: 255 seconds]
rgtk has quit [Ping timeout: 248 seconds]
herbmillerjr has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
chouhoul_ has joined #ruby
chrisarc1nd is now known as chrisarcand
olivi____ has joined #ruby
ElFerna has joined #ruby
polishdub has joined #ruby
bruno- has joined #ruby
raspado has joined #ruby
Pacra has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Read error: Connection reset by peer]
olivi____ has quit [Ping timeout: 246 seconds]
Derperperd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jefffree has joined #ruby
Pacra has quit [Ping timeout: 255 seconds]
chouhoul_ has quit [Remote host closed the connection]
kahra has quit [Quit: WeeChat 1.9]
Derperperd has quit [Changing host]
Derperperd has joined #ruby
chouhoulis has joined #ruby
ElFerna has quit [Ping timeout: 268 seconds]
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
kahra has joined #ruby
rippa has joined #ruby
dhaller has quit [Read error: Connection reset by peer]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
apparition47 has quit [Quit: Bye]
bronson has joined #ruby
dhaller has joined #ruby
andikr has joined #ruby
chouhoul_ has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 276 seconds]
<dminuoso> Oh man why cant you simply do
<dminuoso> -> (a) -> (b) { foo }
<ljarvis> u silleh
<dminuoso> ljarvis: No seriously, this should be a thing.
chouhoulis has quit [Ping timeout: 246 seconds]
<ljarvis> why?
<Papierkorb> ... what is that supposed to do?
<dminuoso> ljarvis: Partial application?
<dminuoso> Papierkorb: A manually curried function
<ljarvis> heh
<Papierkorb> Reject.
<ljarvis> :D
ElFerna has joined #ruby
garathem has quit [Ping timeout: 260 seconds]
<dminuoso> Papierkorb: In Haskell you even _have_ to do it because a function can have only one argument. :S
<Papierkorb> Haskell likes to complicate things
gnufied has quit [Ping timeout: 276 seconds]
cam27 has joined #ruby
mark_66 has quit [Remote host closed the connection]
olivi____ has quit [Quit: Leaving...]
<dminuoso> But considering that the namegiver of both currying and haskell was "Haskell Curry" that should not come to a surprise.
kculpis has joined #ruby
olivi____ has joined #ruby
andikr has quit [Ping timeout: 240 seconds]
eelster has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
tacoboy has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 240 seconds]
<mikecmpbll> i'm a lamb madras kinda man.
[Butch] has joined #ruby
Awsy has quit [Ping timeout: 276 seconds]
sarmiena_ has joined #ruby
tacoboy has joined #ruby
aufi has quit [Quit: Leaving]
BSab has quit [Ping timeout: 276 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
cdg has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
zacts has quit [Ping timeout: 276 seconds]
conta has quit [Ping timeout: 268 seconds]
rgtk has joined #ruby
gusrub has joined #ruby
gnufied has joined #ruby
dhaller has quit [Read error: Connection reset by peer]
<ljarvis> silly haskell
<ljarvis> and its silliness
sarmiena_ has joined #ruby
sarmiena_ has quit [Client Quit]
Qchmqs__ has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
Pacra has joined #ruby
howdoi has joined #ruby
brent__ has joined #ruby
antgel has quit [Ping timeout: 258 seconds]
<jrs> ljarvis, they *do* have a damn nice web framework
ElFerna has quit [Ping timeout: 258 seconds]
Pacra has quit [Ping timeout: 255 seconds]
tacoboy has quit [Remote host closed the connection]
barx has joined #ruby
zmo has joined #ruby
<zmo> hi all o/
<zmo> is there a way to colourise the outputs in irb to make it look nice?
<ljarvis> yep!
<zmo> I've seen that there are colours in the homebrew's irbrc
<zmo> but I'm running archlinux ;)
zacts has joined #ruby
truenito has quit [Ping timeout: 255 seconds]
<zmo> ljarvis - could you point me some RTFM where I can find an answer ?
<zmo> I tried using wirble/hirb with Hirb::View.enable
<zmo> but it's still black/white
<ljarvis> i dunno, I googled "ruby irb colours"
<zmo> so did I
<ljarvis> :D
<zmo> maybe that's the english spelling
<ljarvis> lol
herbmillerjr has joined #ruby
npgm has joined #ruby
uZiel has joined #ruby
Pacra has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
someuser has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
gusrub has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
lacuna has joined #ruby
phinxy has quit [Read error: Connection reset by peer]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eelster has joined #ruby
cdg has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 255 seconds]
Bhootrk_ has quit [Read error: Connection reset by peer]
gnufied has quit [Ping timeout: 255 seconds]
sysvalve has quit [Quit: Leaving]
tacoboy has joined #ruby
Serpent7776 has quit [Quit: Leaving]
amclain has joined #ruby
gusrub has quit [Remote host closed the connection]
barx has quit [Quit: barx]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
eelster has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
haylon has joined #ruby
gusrub has joined #ruby
kwesidev has joined #ruby
gnufied has joined #ruby
futilegames has quit [Quit: futilegames]
herbmillerjr has quit [Quit: Konversation terminated!]
<baweaver> zmo: If you use Pry most of that comes built in.
<baweaver> ?pry
<ruby[bot]> Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<zmo> baweaver - TBH, I'm using rails console and I'm connecting to heroku remotely
<baweaver> Ah, Not immediately sure if you can do that on Heroku but I'd guess you can with pry-rails or similar tools.
sarmiena_ has joined #ruby
moeabdol has quit [Ping timeout: 255 seconds]
<banisterfiend> if you set pry-rails as your console it'll 'just work' with heroku @zmo
rgtk has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
nowhere_man has joined #ruby
bronson has joined #ruby
FastJack has joined #ruby
Ishido has joined #ruby
cadillac_ has quit [Ping timeout: 246 seconds]
raspado has quit [Quit: Leaving...]
mikecmpbll has quit [Quit: inabit. zz.]
cadillac_ has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
nacsurte has joined #ruby
t-recx has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
rgtk has joined #ruby
ar1a has quit [Ping timeout: 255 seconds]
kies has quit [Ping timeout: 268 seconds]
anisha has quit [Quit: This computer has gone to sleep]
ar1a has joined #ruby
olivi____ has quit [Remote host closed the connection]
eelster has joined #ruby
olivi____ has joined #ruby
Beams_ has quit [Quit: .]
jrs has quit [Remote host closed the connection]
jrs has joined #ruby
BSab has joined #ruby
olivi____ has quit [Ping timeout: 246 seconds]
conta has joined #ruby
uZiel has joined #ruby
jrs has quit [Remote host closed the connection]
jrs has joined #ruby
conta has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
cdg has joined #ruby
conta has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
KeyJoo has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
sarmiena_ has quit [Quit: sarmiena_]
marxarelli|afk is now known as marxarelli
jrs has quit [Remote host closed the connection]
jrs has joined #ruby
barx has joined #ruby
jrs has quit [Remote host closed the connection]
vee_ has quit [Ping timeout: 268 seconds]
barx has quit [Client Quit]
jrs has joined #ruby
alveric1 has quit [Quit: WeeChat 1.9]
jrs has quit [Remote host closed the connection]
renchan has quit [Quit: Leaving...]
oliv_____ has joined #ruby
alveric has joined #ruby
jrs has joined #ruby
jrs has quit [Remote host closed the connection]
mim1k has joined #ruby
jrs has joined #ruby
barx has joined #ruby
rgtk has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
TomyWork has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 255 seconds]
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
ColeHub has joined #ruby
BSab has quit [Quit: Leaving]
BSaboia has joined #ruby
roshanavand has joined #ruby
madgen has quit [Quit: Lost terminal]
SteenJobs_ has joined #ruby
bronson has quit [Remote host closed the connection]
code_zombie has joined #ruby
sepp2k has quit [Remote host closed the connection]
eckhardt has joined #ruby
SteenJobs_ has quit [Client Quit]
enterprisey has joined #ruby
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
drcode has joined #ruby
andikr has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
duderonomy has joined #ruby
kies has joined #ruby
barx has quit [Quit: barx]
sepp2k has joined #ruby
ColeHub has quit [Quit: Snooze.]
TomyLobo2 has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
ColeHub has joined #ruby
SteenJobs_ has joined #ruby
sarmiena_ has joined #ruby
conta has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
conta has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
sleepee has quit [Ping timeout: 240 seconds]
jaruga has quit [Quit: jaruga]
conta has quit [Client Quit]
alan_w has quit [Quit: WeeChat 1.7]
ColeHub has quit [Quit: Snooze.]
mtkd has joined #ruby
oliv_____ has quit [Remote host closed the connection]
ColeHub has joined #ruby
andikr has quit [Remote host closed the connection]
ColeHub has quit [Client Quit]
BSAlb has joined #ruby
BSaboia has quit [Ping timeout: 268 seconds]
kwesidev has quit [Ping timeout: 246 seconds]
AndBobsYourUncle has joined #ruby
enterprisey has quit [Remote host closed the connection]
weaksauce has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 276 seconds]
dliobom has joined #ruby
ColeHub has joined #ruby
ColeHub has quit [Client Quit]
marxarelli is now known as marxarelli|afk
DLSteve has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
ColeHub has joined #ruby
spheric has quit [Quit: Textual IRC Client: www.textualapp.com]
ColeHub has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
__Yiota has joined #ruby
haylon has quit [Remote host closed the connection]
ColeHub has joined #ruby
WeiJunLi has joined #ruby
<chrisseaton> If I have a string A, and want to replace all instances of some other string B, with string C instead, how should I best do that in Ruby? C may contain anything, so String#gsub won't work.
JBlazeCoder21 has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Eiam has joined #ruby
oliv_____ has joined #ruby
<havenwood> chrisseaton: C isn't a string?
<havenwood> chrisseaton: What would example values for A, B and C be? I'm not quite sure I follow.
alex`` has quit [Quit: WeeChat 1.9]
<chrisseaton> I want to do a.gsub(b, c)
<chrisseaton> All are strings
bronson has joined #ruby
<havenwood> >> 'xo24xo24xo'.gsub '24', '42'
<chrisseaton> But c could contain any string at all, so could include back-references, which I don't want evaluated as a regexp
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> => "xo42xo42xo"
<havenwood> ahhh
<chrisseaton> >> 'foo'.gsub('f', '\0')
<ruby[bot]> chrisseaton: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
chouhoul_ has quit [Remote host closed the connection]
<havenwood> #=> "foo"
conta has joined #ruby
<chrisseaton> 'foo'.gsub('f', '\0') -> "foo"
<chrisseaton> I want '\0oo'
chouhoulis has joined #ruby
<havenwood> ah, right - that makes sense, mmm
<ljarvis> 'foo'.gsub('f', '\\\0')
dviola has joined #ruby
ramfjord has joined #ruby
<havenwood> >> 'xo24xo24xo'.gsub '24', Regexp.escape('\0')
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> #=> "xo\\0xo\\0xo"
<havenwood> Well, bot is down.
* ljarvis obviously read 0 backlog
<havenwood> chrisseaton: The best I can think is to Regexp.escape the values.
bronson has quit [Ping timeout: 248 seconds]
<chrisseaton> I'm sure I must be overlooking some methods... surely there must be a core library method to do something as simple as substitute a string...
[Butch] has quit [Quit: I'm out . . .]
rabajaj has joined #ruby
<havenwood> String#tr won't work. I'm afraid there isn't.
<havenwood> Hmm
conta has quit [Ping timeout: 276 seconds]
<havenwood> Regexp.escape is no good I suppose because of the noise the escaping causes.
<herwin> foo = 'foo'; foo['o'] = 'a'; foo # => 'fao'
<havenwood> herwin: just needs to be repeated
<herwin> that's the only string sub I could think of
<herwin> but wouldn't be surprised if it used regex under the hood
valkyr2e has quit [Quit: Bye.]
<havenwood> chrisseaton: how about: 'xo24xo24xo'.gsub('24') { '\0' }
<havenwood> #=> "xo\\0xo\\0xo"
Bock has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
<chrisseaton> Ah clever, thanks
<havenwood> It'd set $1, $2, $`, $&, and $' but if that's okay at least it gets the value right.
AndBobsYourUncle has joined #ruby
<havenwood> You're welcome
ColeHub has quit [Quit: Snooze.]
valkyr2e has joined #ruby
kwesidev has joined #ruby
jrs has quit [Remote host closed the connection]
jrs has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
eelster has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ColeHub has joined #ruby
SeepingN has joined #ruby
s1kx has quit [Quit: s1kx]
ColeHub has quit [Client Quit]
ColeHub has joined #ruby
oliv_____ has quit [Ping timeout: 246 seconds]
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lasenna[m] has joined #ruby
cdg has joined #ruby
eelster has joined #ruby
vuoto has quit [Remote host closed the connection]
olivi____ has joined #ruby
cadillac_ has quit [Ping timeout: 268 seconds]
cadillac_ has joined #ruby
ule has quit [Changing host]
ule has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
high_fiver has joined #ruby
runescape07rsps has joined #ruby
high_fiver has quit [Read error: Connection reset by peer]
high_fiver has joined #ruby
anisha has joined #ruby
AndBobsYourUncle has joined #ruby
boto has quit [Quit: boto]
olivi____ has quit [Remote host closed the connection]
_moep_ has quit [Remote host closed the connection]
Tempesta_ has joined #ruby
ElFerna has joined #ruby
Tempesta has quit [Ping timeout: 268 seconds]
dliobom has left #ruby [#ruby]
ColeHub has quit [Quit: Snooze.]
oliv_____ has joined #ruby
rabajaj has quit [Remote host closed the connection]
lacuna has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
anistor86 has joined #ruby
ForeignBiscuit has joined #ruby
anistor86 has left #ruby ["Ex-Chat"]
enterprisey has joined #ruby
rabajaj has joined #ruby
anistor86 has joined #ruby
<anistor86> hello everyone!
<havenwood> anistor86: hi!
<anistor86> i am new to the ruby world...and I really like it!
<anistor86> I am currently in London and studying ruby and everything in english, and I was thinking to do something for the italian comunity
<havenwood> anistor86: welcome!
<havenwood> anistor86: nice
<anistor86> does anyone know if the italian community is still alive?
ResidentBiscuit has quit [Ping timeout: 240 seconds]
<havenwood> anistor86: There is a #ruby-it channel. I'm not sure on its population.
<anistor86> it's just because I was web developer back in italy (long time ago) and at that time my english wasn't good and I struggled a bit to learn in english...so I wan't to help the italian community for that!
<havenwood> anistor86: Here's a list of channels: https://ruby-community.com/pages/channels
<anistor86> yep...there is...but there are 8 users...I wrote few minutes ago...but nothing yet...let's see!
lxsameer has joined #ruby
<anistor86> anyway...thanks for the help!
cagomez has quit [Remote host closed the connection]
rabajaj has quit [Quit: Leaving]
ur5us has joined #ruby
andrzejku has joined #ruby
jphase has joined #ruby
hurricanehrndz has quit [Ping timeout: 260 seconds]
nirix has quit [Ping timeout: 240 seconds]
JR042444__ has joined #ruby
JR042444__ has quit [Max SendQ exceeded]
ur5us has quit [Ping timeout: 240 seconds]
JR042444__ has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
ForeignBiscuit has quit [Ping timeout: 240 seconds]
MrBusiness has quit [Ping timeout: 255 seconds]
hurricanehrndz has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kwesidev has quit [Ping timeout: 246 seconds]
nirix has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lacuna has joined #ruby
weaksauce has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
johnny56_ has quit [Remote host closed the connection]
kwesidev has joined #ruby
romankapitonov has joined #ruby
wilbert has joined #ruby
bronson has joined #ruby
lacuna has quit [Client Quit]
johnny56_ has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
Fichtenstein has joined #ruby
ElFerna has joined #ruby
Fichtenstein has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
conta has joined #ruby
ar1a has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
InfinityFye has quit [Quit: Leaving]
WeiJunLi has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 268 seconds]
ar1a has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 276 seconds]
biberu has quit []
eelster has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
wald0 has joined #ruby
enterprisey has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 246 seconds]
AndBobsYourUncle has joined #ruby
johnny56_ has quit [Remote host closed the connection]
ColeHub has joined #ruby
eelster has joined #ruby
johnny56_ has joined #ruby
guacamol_ has joined #ruby
ElFerna has joined #ruby
eckhardt has joined #ruby
diegobiavati has quit [Ping timeout: 260 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ForeignBiscuit has joined #ruby
dfoolz has quit [Quit: ZNC - http://znc.in]
vuoto has joined #ruby
joast has quit [Ping timeout: 246 seconds]
JR042444__ has quit [Ping timeout: 240 seconds]
WeiJunLi has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
kwesidev has quit [Ping timeout: 255 seconds]
jphase has quit [Ping timeout: 255 seconds]
kith has joined #ruby
adlerdias has quit [Quit: adlerdias]
oliv_____ has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 240 seconds]
ForeignBiscuit has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
_aeris_ has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
_aeris_ has joined #ruby
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
jrs has quit [Remote host closed the connection]
ElFerna has joined #ruby
jrs has joined #ruby
oliv_____ has quit [Ping timeout: 240 seconds]
jrs has quit [Remote host closed the connection]
jrs has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jrs has quit [Remote host closed the connection]
jrs has joined #ruby
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
Rapture has joined #ruby
jrs has quit [Client Quit]
<ule> Hey guys, I'm getting a nice deprecated warning here when I do assert_equal FOO, BAR when FOO and BAR are nil
<ule> I can definity replace it to assert_nil and get rid of the deprecated message but I have some tests inside loops so, some of them are nil some of them are not
<ule> so, What would you do? assert_equal FOO, BAR unless FOO.nil? + assert_nil FOO, BAR if FOO.nil?
cahoots has joined #ruby
ForeignBiscuit has joined #ruby
sleepee has joined #ruby
<ule> I don't understand why deprecating my nice assert_equal NIL, NIL
<cahoots> hi, if i run a command with `<command>` and then on the next line call $?.exitstatus, is it guaranteed to return the exit status of that command? or could it be overridden by some command running in parallel?
anistor86 has quit [Quit: Ex-Chat]
<Papierkorb> ule: there was never a reason for `NIL`.
<yorickpeterse> cahoots: $? is scoped per thread
ElFerna has quit [Ping timeout: 240 seconds]
<cahoots> yorickpeterse, thanks :)
<yorickpeterse> actually, seems behaviour contradicts the source
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<yorickpeterse> ah no, that was just Pry messing things up
ElFerna has joined #ruby
bronson has joined #ruby
Pacra has quit [Ping timeout: 255 seconds]
mtkd has quit [Ping timeout: 246 seconds]
AndBobsY_ has joined #ruby
ozcanesen has joined #ruby
joast has joined #ruby
mtkd has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
wilbert has quit [Ping timeout: 246 seconds]
vuoto has quit [Remote host closed the connection]
* SeepingN notes to "stick with wirb"
ElFerna has quit [Ping timeout: 240 seconds]
WeiJunLi has quit [Remote host closed the connection]
JBlazeCoder21 has quit [Remote host closed the connection]
weaksauce has joined #ruby
HoierM has joined #ruby
AndBobsY_ has quit [Ping timeout: 240 seconds]
lacuna has joined #ruby
wilbert has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
wilbert has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
oliv_____ has joined #ruby
synthroid has quit []
wilbert has joined #ruby
eelster has quit [Quit: Textual IRC Client: www.textualapp.com]
domgetter has joined #ruby
WeiJunLi has joined #ruby
dhaller has joined #ruby
hkdsun has quit [Quit: ZNC 1.6.5 - http://znc.in]
pwned has joined #ruby
wilbert has quit [Ping timeout: 276 seconds]
oliv_____ has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
mim1k has joined #ruby
lxnr has joined #ruby
wilbert has joined #ruby
dhaller has quit [Remote host closed the connection]
dhaller has joined #ruby
aclark has quit [Remote host closed the connection]
aclark has joined #ruby
ledestin has joined #ruby
AxelAlex has quit [Quit: AxelAlex]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
ur5us has joined #ruby
ldnunes has quit [Quit: Leaving]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
bkxd has joined #ruby
b3ck_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
bronson has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
__Yiota has quit [Client Quit]
<darix> SeepingN: pry >>> *irb :p
wald0 has quit [Quit: Lost terminal]
<SeepingN> not when it causes Confusion and Delay
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<SeepingN> I'm consued enough tyring to debug new code, I don't need my interpreter to add to the mix on its own!
ElFerna has joined #ruby
JBlazeCoder21 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
XD_ has joined #ruby
olivi____ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
runescape07rsps has quit [Ping timeout: 255 seconds]
WeiJunLi has quit [Remote host closed the connection]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
hkdsun has joined #ruby
JBlazeCoder21 has joined #ruby
olivi____ has quit [Ping timeout: 255 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
lxnr has quit [Quit: WeeChat 1.9]
vee_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
high_fiver has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
kkiero has joined #ruby
elcontrastador has joined #ruby
duderonomy has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
cagomez has quit [Remote host closed the connection]
XD_ has quit [Quit: Leaving]
Eiam has quit [Ping timeout: 240 seconds]
McBride36 has joined #ruby
wilbert_ has joined #ruby
dhaller has quit [Remote host closed the connection]
dhaller has joined #ruby
stee_3 has left #ruby [#ruby]
wilbert has quit [Ping timeout: 268 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kith has quit [Ping timeout: 258 seconds]
dhaller has quit [Client Quit]
pwned has quit [Ping timeout: 240 seconds]
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
ForeignBiscuit has quit [Quit: Critical Miss]
ElFerna has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ecuanaso has joined #ruby
wald0 has joined #ruby
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli|afk is now known as marxarelli
olivi____ has joined #ruby
ltem has quit [Quit: Leaving]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
wilbert_ has quit [Quit: wilbert_]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
bronson has joined #ruby
olivi____ has quit [Ping timeout: 246 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has quit [Ping timeout: 276 seconds]
dhaller has joined #ruby
gusrub has joined #ruby
ElFerna has joined #ruby
b3ck_ has quit [Ping timeout: 240 seconds]
jinie_ has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
cdg has quit [Remote host closed the connection]
jinie_ has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
mtkd has quit [Ping timeout: 240 seconds]
ElFerna has quit [Ping timeout: 248 seconds]
eelster[away] has quit [Quit: Textual IRC Client: www.textualapp.com]
mtkd has joined #ruby
oliv_____ has joined #ruby
deerskin has joined #ruby
polishdub has quit [Quit: leaving]
fullstack has joined #ruby
ta_ has joined #ruby
fullstack has quit [Changing host]
fullstack has joined #ruby
oliv_____ has quit [Ping timeout: 276 seconds]
b3ck_ has joined #ruby
elcontrastador has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
bronson has quit [Remote host closed the connection]
deerskin has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 240 seconds]
aclark has quit [Remote host closed the connection]
<yorickpeterse> I'd argue Pry is no more confusing than IRB
aclark has joined #ruby
Dry_Lips has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
<SeepingN> not confusing itself
<SeepingN> but when it causes issues with libraries and code, that is confusing
<SeepingN> you don't want to troubleshoot code that isn't broken, that's a good way to kill a day or 2
grant has joined #ruby
QualityAddict has joined #ruby
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
ElFerna has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
Pacra has joined #ruby
cam27 has quit [Quit: cam27]
ElFerna has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
nowhere_man has joined #ruby
apparition has joined #ruby
TomyLobo2 has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> yorickpeterse: why do you say this?
<al2o3-cr> irb is petty !confusing too
ecuanaso has joined #ruby
<al2o3-cr> *pretty
justicefries has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Cohedrin_ has quit [Read error: Connection reset by peer]
<SeepingN> I haven't had irb screw things up too many times though.
Cohedrin_ has joined #ruby
conta has joined #ruby
ElFerna has quit [Ping timeout: 276 seconds]
ElFerna has joined #ruby
conta has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 258 seconds]
<al2o3-cr> SeepingN: only human error fucks shit up
<SeepingN> right
cdg has joined #ruby
<al2o3-cr> damn right
guacamol_ has joined #ruby
<al2o3-cr> damn cold
<SeepingN> and when that human is "some dude who wrote this irb program" and "that other dude that updated the Great XYZ librarie of all rubies", and you discover the hard way that the 2 don't play well together, who's to blame?
<SeepingN> you, for not writing the whole thing in ASM yourself
eljimbo has quit [Quit: This computer has gone to sleep]
eljimbo has joined #ruby
eljimbo has quit [Client Quit]
uZiel has joined #ruby
eljimbo has joined #ruby
<al2o3-cr> SeepingN: human error is inevitable
eljimbo has quit [Client Quit]
eljimbo has joined #ruby
eljimbo has quit [Client Quit]
eljimbo has joined #ruby
eljimbo has quit [Client Quit]
JBlazeCoder21 has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
alveric1 has joined #ruby
JBlazeCo_ has joined #ruby
<al2o3-cr> >> 1 + 1 == 3
<ruby[bot]> al2o3-cr: # => false (https://eval.in/838081)
<al2o3-cr> human error
kiltzman has quit [Ping timeout: 255 seconds]
<SeepingN> you did that on purpose
lesce has joined #ruby
<al2o3-cr> no shit sherlock
cagomez has quit [Remote host closed the connection]
<SeepingN> human onpurpose
ta_ has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
kiltzman has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
perniciouscaffei has joined #ruby
alveric has quit [Ping timeout: 255 seconds]
JBlazeCo_ has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
hutch34 has joined #ruby
lesce has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
dhaller has quit [Quit: Textual IRC Client: www.textualapp.com]
<al2o3-cr> >> "foo".clamp("fox", "foy") << ?y
<ruby[bot]> al2o3-cr: # => undefined method `clamp' for "foo":String (NoMethodError) ...check link for more (https://eval.in/838082)
JBlazeCoder21 has joined #ruby
<al2o3-cr> oh dear
<SeepingN> give em the CLAMPS
<SeepingN> --[ ]-- clamp clamp
<al2o3-cr> i'm drinking some shit called rekorderlig