havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
jrabe has quit [Quit: Disconnected]
jrabe has joined #ruby
cschneid has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 245 seconds]
white_lilies has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
Guest82829 has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
JamJam_kid has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
houhoulis has quit [Remote host closed the connection]
Guest82829 has joined #ruby
workmad3 has joined #ruby
Guest82829 has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
Guest82829 has joined #ruby
roamingdog has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
Guest82829 has quit [Ping timeout: 264 seconds]
aspiers has quit [Ping timeout: 240 seconds]
rivalomega has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest3244
Guest3244 has quit [Client Quit]
roamingdog has quit [Ping timeout: 260 seconds]
rivalomega has joined #ruby
white_lilies has joined #ruby
Guest82829 has joined #ruby
cschneid has quit [Remote host closed the connection]
Guest82829 has quit [Ping timeout: 268 seconds]
duderono_ has joined #ruby
duderono_ has quit [Client Quit]
Guest98316 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Nicmavr is now known as Guest3423
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
rivalomega has quit [Read error: Connection reset by peer]
rivalome_ has joined #ruby
Guest82829 has joined #ruby
gizmore has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
gizmore|2 has quit [Ping timeout: 264 seconds]
SeepingN has joined #ruby
spencer has quit [Read error: Connection reset by peer]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 248 seconds]
heckler has joined #ruby
duderonomy has joined #ruby
duderonomy is now known as Guest44050
Guest44050 has quit [Client Quit]
duderono_ has joined #ruby
Guest82829 has joined #ruby
hph^ has quit [Ping timeout: 268 seconds]
Guest82829 has quit [Ping timeout: 240 seconds]
Guest82829 has joined #ruby
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest82829 has quit [Ping timeout: 256 seconds]
t0xik has quit [Quit: Connection closed for inactivity]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
Mrgoose2 has quit [Quit: ZNC 1.7.x-nightly-20170908-e86efb08 - https://znc.in]
Guest82829 has joined #ruby
roamingdog has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
akaiiro has quit [Remote host closed the connection]
spencer has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
Guest82829 has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
Guest82829 has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Quit: WeeChat 2.1]
Guest82829 has joined #ruby
workmad3 has joined #ruby
Guest82829 has quit [Ping timeout: 248 seconds]
cyberg has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Remote host closed the connection]
Guest82829 has joined #ruby
JamJam_kid has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Guest82829 has quit [Ping timeout: 255 seconds]
__holden__ has quit [Ping timeout: 256 seconds]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
Immune has joined #ruby
Immune has left #ruby [#ruby]
Guest82829 has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
`7hr34t_hvntr has quit [Ping timeout: 240 seconds]
sspreitz has quit [Ping timeout: 260 seconds]
Guest82829 has quit [Ping timeout: 264 seconds]
sspreitz has joined #ruby
braincrash has quit [Quit: bye bye]
Guest82829 has joined #ruby
spencer has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
Guest82829 has quit [Ping timeout: 265 seconds]
white_lilies has quit [Ping timeout: 264 seconds]
cschneid has joined #ruby
Guest82829 has joined #ruby
houhoulis has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
spencer has joined #ruby
Guest82829 has joined #ruby
RougeR has quit [Ping timeout: 264 seconds]
Guest82829 has quit [Ping timeout: 240 seconds]
mrush has joined #ruby
t0xik has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
Guest82829 has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
raatiniemi has joined #ruby
Guest82829 has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
mrush has left #ruby [#ruby]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 245 seconds]
agent_white has quit [Quit: night]
karapetyan has joined #ruby
Guest82829 has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
za1b1tsu has joined #ruby
za1b1tsu has quit [Client Quit]
Guest82829 has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
Guest82829 has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
Guest82829 has quit [Ping timeout: 256 seconds]
stairmast0r has quit [Ping timeout: 248 seconds]
Guest82829 has joined #ruby
houhoulis has quit [Remote host closed the connection]
Guest82829 has quit [Ping timeout: 268 seconds]
solocshaw has quit [Ping timeout: 255 seconds]
Guest82829 has joined #ruby
stairmast0r has joined #ruby
solocshaw has joined #ruby
Guest82829 has quit [Ping timeout: 276 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 260 seconds]
spencer has quit [Quit: Textual IRC Client: www.textualapp.com]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest82829 has joined #ruby
semtex-h has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
heckler has quit []
nythalcrow has joined #ruby
Guest82829 has joined #ruby
aspiers has joined #ruby
nythalcrow has quit [Client Quit]
nythalcrow has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
nythalcrow has quit [Remote host closed the connection]
stairmast0r has quit [Ping timeout: 256 seconds]
aufi has joined #ruby
solocshaw has quit [Quit: solocshaw]
Inline has quit [Quit: Leaving]
Guest82829 has joined #ruby
stairmast0r has joined #ruby
ur5us has quit [Remote host closed the connection]
Guest82829 has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
cschneid has quit [Remote host closed the connection]
conta has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 260 seconds]
venmx has quit [Ping timeout: 256 seconds]
Guest82829 has joined #ruby
SeepingN has joined #ruby
aupadhye has joined #ruby
Guest82829 has quit [Ping timeout: 265 seconds]
suukim has joined #ruby
pskosinski has quit [Ping timeout: 255 seconds]
Guest82829 has joined #ruby
cschneid has joined #ruby
pskosinski has joined #ruby
apeiros has quit [Remote host closed the connection]
anisha has joined #ruby
apeiros has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
Guest82829 has quit [Ping timeout: 260 seconds]
cschneid has quit [Ping timeout: 248 seconds]
tty has quit [Quit: tty]
cschneid has joined #ruby
reber has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
anisha has quit [Read error: Connection reset by peer]
Guest82829 has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
anisha has joined #ruby
duderono_ has joined #ruby
biberu has joined #ruby
TinkerT has joined #ruby
karapetyan has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
Guest82829 has quit [Ping timeout: 255 seconds]
starseed0000 has quit [Ping timeout: 255 seconds]
KramerC has joined #ruby
karapetyan has quit [Ping timeout: 276 seconds]
cschneid has joined #ruby
Guest82829 has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
JamJam_kid has quit [Ping timeout: 248 seconds]
za1b1tsu has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
Guest82829 has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
cschneid has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
schleppel has joined #ruby
amar has joined #ruby
Guest82829 has joined #ruby
cschneid has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
stnly4 has joined #ruby
stnly has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
yohji has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 248 seconds]
cschneid has quit [Ping timeout: 248 seconds]
venmx has joined #ruby
sysvalve has joined #ruby
Blaguvest has joined #ruby
Guest82829 has joined #ruby
cschneid has joined #ruby
Burgestrand has joined #ruby
venmx has quit [Quit: leaving]
Guest82829 has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
claudiuinberlin has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
rivalome_ has quit [Remote host closed the connection]
alem0lars has joined #ruby
Guest82829 has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
clemens3 has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
Guest82829 has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
nythalcrow has joined #ruby
amar has quit [Remote host closed the connection]
Guest82829 has joined #ruby
ta_ has joined #ruby
ta_ has quit [Client Quit]
cschneid has quit [Ping timeout: 264 seconds]
cschneid has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
conta has quit [Quit: conta]
p4p0l0 has joined #ruby
ams__ has joined #ruby
t0xik has joined #ruby
cadillac_ has quit [Ping timeout: 248 seconds]
Guest82829 has joined #ruby
dionysus69 has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
cadillac_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
Guest82829 has quit [Client Quit]
lxsameer has joined #ruby
apeiros has joined #ruby
ciscam has quit [Ping timeout: 264 seconds]
ciscam has joined #ruby
cschneid has quit [Ping timeout: 265 seconds]
cschneid has joined #ruby
ellcs has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
cschneid has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
amar has joined #ruby
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
karapetyan has joined #ruby
hph^ has joined #ruby
nielsk has quit [Quit: So Long, and Thanks for All the Fish]
cschneid has joined #ruby
amar has quit [Ping timeout: 256 seconds]
nielsk has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
amar_ has joined #ruby
ellcs has joined #ruby
amar_ has quit [Remote host closed the connection]
amar_ has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
jottr_ has joined #ruby
cschneid has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
Guest90374 is now known as fribmendes
fribmendes has quit [Changing host]
fribmendes has joined #ruby
cschneid has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
jottr_ has quit [Ping timeout: 276 seconds]
vondruch has quit [Quit: vondruch]
KeyJoo has joined #ruby
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
suukim has quit [Ping timeout: 265 seconds]
nythalcrow has quit [Remote host closed the connection]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
vondruch has joined #ruby
suukim has joined #ruby
guille-moe has joined #ruby
cschneid has quit [Ping timeout: 276 seconds]
wald0 has joined #ruby
cabotto has joined #ruby
cschneid has joined #ruby
KeyJoo has quit [Read error: Connection reset by peer]
Beams has joined #ruby
beefjoe has joined #ruby
kryptoz has joined #ruby
ur5us has joined #ruby
rivalomega has joined #ruby
cschneid has quit [Ping timeout: 245 seconds]
rivalomega has quit [Ping timeout: 268 seconds]
cschneid has joined #ruby
konsolebox has joined #ruby
KeyJoo has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
cschneid has joined #ruby
vovs03 has joined #ruby
tvw has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
karapetyan has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
workmad3 has joined #ruby
cschneid has joined #ruby
maiz has joined #ruby
RougeR has joined #ruby
bmurt has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
apparition47 has joined #ruby
kryptoz has quit [Ping timeout: 256 seconds]
ellcs has quit [Ping timeout: 276 seconds]
unknown2 has joined #ruby
cschneid has quit [Ping timeout: 268 seconds]
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
conta has joined #ruby
cabotto has quit [Ping timeout: 248 seconds]
unknown2 has quit [Quit: Leaving]
usuario has joined #ruby
usuario has quit [Quit: leaving]
ur5us has quit [Remote host closed the connection]
za1b1tsu has quit [Ping timeout: 256 seconds]
cabotto has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
cschneid has joined #ruby
GodFather has joined #ruby
AJA4350 has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
duderonomy has joined #ruby
nima_m has joined #ruby
nima_m_ has joined #ruby
nima_m__ has joined #ruby
alem0lars has quit [Ping timeout: 276 seconds]
cschneid has quit [Ping timeout: 248 seconds]
nima_m has quit [Ping timeout: 255 seconds]
nima_m_ is now known as nima_m
ellcs has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
za1b1tsu has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
Guest3423 has quit [Read error: Connection reset by peer]
halbbalda has quit [Quit: ZNC - http://znc.in]
halbbalda has joined #ruby
nima_m_ has joined #ruby
Nicmavr has joined #ruby
Nicmavr is now known as Guest36323
GodFather has joined #ruby
nima_m__ has quit [Ping timeout: 255 seconds]
psychicist__ has joined #ruby
karapetyan has quit [Remote host closed the connection]
cschneid has joined #ruby
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
nima_m_ has quit [Quit: nima_m_]
conta has quit [Quit: conta]
cschneid has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
cyberg has joined #ruby
amar_ has quit [Remote host closed the connection]
cschneid has joined #ruby
karapetyan has quit [Remote host closed the connection]
beanish has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 256 seconds]
beefjoe has quit [Remote host closed the connection]
synthroid has joined #ruby
cschneid has joined #ruby
psychicist__ has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 256 seconds]
psychicist__ has joined #ruby
cschneid has joined #ruby
<syndikate> Date.strptime gave me this error Exception: invalid strptime format - `%F'. I can't figure what %F is. My date to parse is of the format this "14 Jul 2018"
wald0 has quit [Quit: Lost terminal]
<dminuoso> apeiros: Mm Im not happy
<dminuoso> Though I guess that is as good as it will get.
nowhereman_ has quit [Ping timeout: 260 seconds]
beanish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has quit [Quit: WeeChat 2.1]
omth has quit [Ping timeout: 240 seconds]
zautomata has joined #ruby
roamingdog has joined #ruby
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
cschneid has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
roamingdog has quit [Ping timeout: 255 seconds]
cabotto has quit [Remote host closed the connection]
<konsolebox> syndikate: i'm unable to reproduce that error message. i only get 'invalid date'. perhaps show a code.
cabotto has joined #ruby
<syndikate> konsolebox, I am just trying it out in irb
vovs03 has quit [Remote host closed the connection]
KeyJoo has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
<apeiros> syndikate: try a strftime with %F to see what components it is
beanish has joined #ruby
<apeiros> I'm sure you'll quickly figure how to rewrite %F ;-)
<apeiros> (it doesn't match 14 Jul 2018 btw.)
<syndikate> %F - The ISO 8601 date format (%Y-%m-%d)
<syndikate> That doesn't match what I gave
<syndikate> Hence my argument is wrong
<apeiros> ok, so your question is not what you wanted to ask for
anisha_ has joined #ruby
<syndikate> Yeah, I think I got confused there with couple of issues
<apeiros> Jul is %B
<apeiros> I guess the other two you can figure?
cschneid has quit [Ping timeout: 240 seconds]
anisha has quit [Ping timeout: 276 seconds]
<syndikate> Okay, I need to clarify couple of things. If not template is passed strptime uses %F
<syndikate> That's correct, right?
cschneid has joined #ruby
Rapture has joined #ruby
<apeiros> you can ask the docs :)
<apeiros> Date.strptime([string='-4712-01-01'[, format='%F'[, start=Date::ITALY]]]) -> date
<apeiros> I'd say yes, default is %F
<dminuoso> Gah okay this is getting annoying now.
beanish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> dminuoso: oooh, german error messages in json :D
<syndikate> I was looking at the source code of that method. So, my conclusion is that I was passing wrong string format.
<apeiros> dminuoso: .save! and rescue different exceptions? (unless I misremember)
<dminuoso> apeiros: these errors will eventually be transported into my React application
<dminuoso> The rails way of i18n is a mess and annoying to use
<syndikate> I should have used this Date.strptime('7 Jul 2018', "%d %b %Y")
<dminuoso> Besides I dont have any internationalization needs
<apeiros> I figured. got to disconnect for a bit now, though, since I have to make a phone call :)
<apeiros> more or less concur @ rails i18n being a mess.
<apeiros> laters :)
<dminuoso> o/
apeiros has quit []
<syndikate> Now, my actual problem here is that my backed expects another format and teh frontend provides another
<syndikate> By aperios
<syndikate> Oh too late
<syndikate> apeiros*
<syndikate> Time to talk to frontenders
<dminuoso> 14:43 syndikate | Now, my actual problem here is that my backed expects another format and teh frontend provides another
<dminuoso> Why is that a problem
<syndikate> I have a validator send to expect a format and parsing happens with that format
<syndikate> Set to expect*
def_jam has joined #ruby
eb0t_ has joined #ruby
<syndikate> I have other views providing the date in the expected format
eb0t has quit [Ping timeout: 245 seconds]
eblip has quit [Ping timeout: 245 seconds]
<syndikate> I would prefer everything to be unique
agent_white has joined #ruby
<syndikate> And not add an extra case for a specific page
<syndikate> Hope that makes sense dminuoso
def_jam is now known as eb0t
eb0t_ is now known as eblip
cschneid has quit [Ping timeout: 264 seconds]
nowhereman_ has joined #ruby
<dminuoso> No.
<syndikate> Okay, so how do you say this can be solved? I have some code in backend which expects Date.strptime('date_string', EXPECTED_FORMAT)
<syndikate> This is being used at multiple places
<syndikate> Hence everywhere that format is _expected_
amar_ has joined #ruby
InfinityFye has joined #ruby
InfinityFye has quit [Client Quit]
cabotto has quit [Remote host closed the connection]
<agent_white> Mornin' folks
cabotto has joined #ruby
<dminuoso> syndikate: I still dont understand what your problem is.
<syndikate> Oh okay.
<dminuoso> syndikate: You could a) force all parts to use iso8601 which will reduce headaches.
<dminuoso> Or b) explain what your problem is.
<syndikate> dminuoso, I am moving towards something similar to a. I will get to b.
cschneid has joined #ruby
<dminuoso> syndikate: format is a representation issue.
dionysus69 has quit [Ping timeout: 264 seconds]
<dminuoso> Not a processing issue.
conta has joined #ruby
jcalla has joined #ruby
karapetyan has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Ping timeout: 240 seconds]
jcalla has quit [Ping timeout: 256 seconds]
cschneid has quit [Ping timeout: 240 seconds]
cabotto has quit [Remote host closed the connection]
fmcgeough has joined #ruby
jottr_ has joined #ruby
walidvb has joined #ruby
cschneid has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
<walidvb> hey all, i'm having trouble with v8, libv8 and mini_racer using bundler
<walidvb> running on Mac OS X 10.13
amar_ has quit [Ping timeout: 245 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
<walidvb> somehow it seems i cannot get the versions to match. i have installed v8 via brew(which installed 5.1), then libv8(using gem i libv8 -v 5.3.332.38.5 -- --with-system-v8), and tried installing mini_racer the same way, which seemed to do the trick
beanish has joined #ruby
<walidvb> i have successfully run my rails app. I then added a gem, ran bundle again, and starting the app now gives me a Symbol not found error
<walidvb> if that rings a bell to anyone, would greatly appreciate some help configuring this
hph^ has quit [Ping timeout: 248 seconds]
white_lilies has joined #ruby
jcalla has joined #ruby
beefjoe has joined #ruby
bmurt has joined #ruby
cschneid has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
soniya29 has joined #ruby
cabotto has joined #ruby
soniya29_ has joined #ruby
cschneid has joined #ruby
cabotto has quit [Ping timeout: 240 seconds]
starseed0000 has joined #ruby
Inline has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
white_lilies has quit [Ping timeout: 265 seconds]
cschneid has joined #ruby
soniya29_ has quit [Ping timeout: 276 seconds]
soniya29 has quit [Ping timeout: 276 seconds]
soniya29_ has joined #ruby
soniya29 has joined #ruby
<havenwood> walidvb: What's the error? Something like? dyld: lazy symbol binding failed: Symbol not found
<walidvb> havenwood: was this: mini_racer Symbol not found: __ZTIN2v811ArrayBuffer9AllocatorE
<walidvb> i'm currently re installing, etc, so can't tell more right this second
<walidvb> libv8 is currently compiling
zach_ has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
cyberg has quit [Ping timeout: 264 seconds]
gnufied has joined #ruby
<havenwood> walidvb: Assuming it's reproducible, it might be worth trying compiling v8 with gcc++. That was a solution for a rubyracer/v8 issue a while back: https://github.com/cowboyd/therubyracer/issues/392#issuecomment-208247513
cyberg has joined #ruby
<walidvb> yeah i've been through that.. worked on it 3-4 hours, for it to finally work. sprung my server, was working fine, added a gem, added an empty class, restarted my server to get access to these, it had stopped working
<walidvb> although i don't think running bundle would touch anything on installed gems, no?
cschneid has joined #ruby
gnufied_ has joined #ruby
<havenwood> walidvb: it doesn't `pristine` installed gems that don't change, but dependencies will re-resolve when you add a gem.
fluxAeon has joined #ruby
<havenwood> walidvb: Sounds like a frustrating issue. Can you revert the Gemfile.lock and confirm it still works post-reboot?
<walidvb> very frustrating indeed ^^
<walidvb> argh in the meantime i remove libv8, is recompiling now
<walidvb> but i did revert and tried to run, had the same issue
<walidvb> seems like smth to do with the wrong versions/paths being used, i would say
karapetyan has joined #ruby
<walidvb> (which is running since 10 minutes, i think.. -.-)
conta has quit [Quit: conta]
soniya29_ has quit [Ping timeout: 276 seconds]
soniya29 has quit [Ping timeout: 276 seconds]
<walidvb> (and bundler hasn't told me this would take time, which it usually does)
cschneid has quit [Ping timeout: 240 seconds]
nima_m has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Ping timeout: 256 seconds]
kryptoz has joined #ruby
amar_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has quit [Ping timeout: 240 seconds]
amar_ has quit [Ping timeout: 260 seconds]
sysvalve has quit [Ping timeout: 264 seconds]
zach_ has quit [Quit: Page closed]
karapetyan has joined #ruby
taylorzr has joined #ruby
suukim has quit [Ping timeout: 245 seconds]
<walidvb> havenwood: it could be that i had some bundle configs when it was working, i just can't figure out exactly which
sysvalve has joined #ruby
aupadhye has quit [Ping timeout: 265 seconds]
p4p0l0 has quit [Remote host closed the connection]
<walidvb> havenwood: still here?
kryptoz has quit [Remote host closed the connection]
<walidvb> i'm now reinstalling everything. libv8 installs fine(--with-system-v8), but mini_racer gives me a Libv8 location not found(whether i run it with or without --with-system-v8)
<walidvb> btw i uninstalled and reinstalled v8 (with brew uninstall v8 && brew install v8)
kryptoz has joined #ruby
amar_ has joined #ruby
taylorzr has quit [Ping timeout: 265 seconds]
nowhereman_ has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
amar_ has quit [Ping timeout: 256 seconds]
starseed0000 has quit [Ping timeout: 276 seconds]
Bish has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
biberu has quit []
starseed0000 has joined #ruby
p4p0l0 has joined #ruby
cschneid has joined #ruby
apparition47 has quit [Quit: Bye]
kryptoz has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
kryptoz has joined #ruby
tdy has quit [Ping timeout: 248 seconds]
p4p0l0 has quit [Ping timeout: 245 seconds]
codymj has joined #ruby
kryptoz has quit [Remote host closed the connection]
tdy has joined #ruby
cabotto has joined #ruby
kryptoz has joined #ruby
akaiiro has joined #ruby
<darix> walidvb: system libv8 and the libv8 gem can be tricky
<darix> as it is really picky about which versions work
<dbrandon> 3l10s0m3ga5
<darix> dbrandon: stop using my password please.
<walidvb> yeah is quite tricky indeed
BloopMonsterOMG has quit [Quit: WeeChat 2.1]
<walidvb> i ended up updating both libv8 and mini_racer, seems to have done the trick
<walidvb> tests running fine :)
<walidvb> don't think i require to understand more right now ;)
<walidvb> thanks all for your help, appreciated!
chouhoulis has quit [Remote host closed the connection]
suukim has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
Es0teric has joined #ruby
walidvb has quit [Ping timeout: 256 seconds]
walidvb_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Burgestrand has quit [Quit: Closing time!]
beanish has quit [Ping timeout: 265 seconds]
andikr has quit [Remote host closed the connection]
p4p0l0 has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
p4p0l0 has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
weird_error has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
p4p0l0 has joined #ruby
ellcs has quit [Remote host closed the connection]
alem0lars has joined #ruby
beefjoe has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
kryptoz has quit [Remote host closed the connection]
orbyt_ has joined #ruby
kryptoz has joined #ruby
akaiiro has quit [Remote host closed the connection]
Dbugger has joined #ruby
guille-moe has quit [Ping timeout: 245 seconds]
GodFather has quit [Ping timeout: 264 seconds]
walidvb_ has quit [Remote host closed the connection]
starseed0000 has quit [Ping timeout: 276 seconds]
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cabotto has quit [Remote host closed the connection]
alem0lars has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
akaiiro has joined #ruby
biberu has joined #ruby
<ljarvis> o/
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> ljarvis: \o
starseed0000 has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
cabotto has joined #ruby
jcarl43 has joined #ruby
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
tty has joined #ruby
mike11 has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
yohji has quit [Remote host closed the connection]
maiz has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
wontruefree has joined #ruby
kryptoz has quit [Remote host closed the connection]
<ljarvis> hai
dionysus69 has joined #ruby
nima_m has joined #ruby
biberu has quit []
akkad has quit [Remote host closed the connection]
crankharder has joined #ruby
claudiuinberlin has joined #ruby
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
cthulchu has joined #ruby
zapata has quit [Quit: WeeChat 2.1]
nima_m_ has joined #ruby
cthulchu_ has joined #ruby
roamingdog has joined #ruby
nima_m has quit [Ping timeout: 248 seconds]
nima_m_ is now known as nima_m
eckhardt_ has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Quit: AJA4350]
raynold has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
cabotto has quit []
maiz has joined #ruby
amar_ has joined #ruby
Beams has quit [Quit: .]
[Butch] has joined #ruby
amar_ has quit [Ping timeout: 255 seconds]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
soniya29 has joined #ruby
roamingdog has joined #ruby
soniya29_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
claudiuinberlin has joined #ruby
biberu has joined #ruby
claudiuinberlin has quit [Client Quit]
p4p0l0 has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 276 seconds]
akaiiro has quit [Remote host closed the connection]
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
starseed0000 has quit [Ping timeout: 245 seconds]
roamingdog has quit [Remote host closed the connection]
michaelg has joined #ruby
gheegh has joined #ruby
sameerynho has joined #ruby
jrich523 has joined #ruby
akkad has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
starseed0000 has joined #ruby
roamingdog has joined #ruby
akkad has quit [Client Quit]
maiz has quit [Quit: WeeChat 2.0.1]
Eiam has joined #ruby
orbyt_ has joined #ruby
soniya29_ has quit [Ping timeout: 240 seconds]
soniya29 has quit [Remote host closed the connection]
soniya29_ has joined #ruby
soniya29 has joined #ruby
anjen has joined #ruby
roamingdog has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
TomyWork has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 265 seconds]
roamingdog has joined #ruby
soniya29_ has quit [Ping timeout: 276 seconds]
soniya29 has quit [Ping timeout: 276 seconds]
amar_ has joined #ruby
amar_ has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
amar_ has joined #ruby
anjen has quit [Quit: anjen]
karapetyan has quit [Remote host closed the connection]
soniya29 has joined #ruby
soniya29_ has joined #ruby
jenrzzz has joined #ruby
jottr_ has joined #ruby
karapetyan has joined #ruby
lytol has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
amar__ has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
jrich523 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
alem0lars has joined #ruby
patteh has quit [Remote host closed the connection]
amar_ has quit [Ping timeout: 256 seconds]
patteh has joined #ruby
akkad has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Remote host closed the connection]
SeepingN has joined #ruby
maiz has joined #ruby
rivalomega has joined #ruby
rivalomega has quit [Remote host closed the connection]
rivalomega has joined #ruby
rivalomega has quit [Read error: Connection reset by peer]
rivalomega has joined #ruby
maiz has quit [Quit: WeeChat 2.0.1]
anisha_ has quit [Quit: This computer has gone to sleep]
karapetyan has quit [Remote host closed the connection]
fredlinhares has joined #ruby
karapetyan has joined #ruby
cagomez has joined #ruby
cadillac_ has quit [Ping timeout: 268 seconds]
soniya29_ has quit [Ping timeout: 276 seconds]
soniya29 has quit [Ping timeout: 276 seconds]
sauvin has quit [Read error: Connection reset by peer]
sysvalve has quit [Quit: Leaving]
cadillac_ has joined #ruby
cthu| has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
alem0lars has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
cthulchu_ has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
jenrzzz has joined #ruby
cagomez has joined #ruby
karapetyan has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 256 seconds]
amar__ has quit [Remote host closed the connection]
quobo has joined #ruby
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
amar has joined #ruby
karapetyan has joined #ruby
\void has joined #ruby
cagomez has joined #ruby
amar has quit [Ping timeout: 248 seconds]
Alina-malina has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
p4p0l0 has joined #ruby
<headius> havenwood: hey do you have a set of benchmarks you're seeing JRuby+Graal do really well on?
<headius> I'm going to be doing a talk at the JVM Language Summit on the perf improvements we're seeing with Graal *not* using Truffle
anjen has joined #ruby
pankaj has joined #ruby
jenrzzz has joined #ruby
<pankaj> Is their any most preferred website used by ruby users particularly to download and use html themes for free so that to be used in their projects?
dreamthese has quit [Read error: Connection reset by peer]
soniya29__ has joined #ruby
clemens3 has joined #ruby
dreamthese has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
lytol has quit [Remote host closed the connection]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
soniya29_ has quit [Ping timeout: 255 seconds]
soniya29 has quit [Ping timeout: 265 seconds]
<cthu|> guys, can I create objects directly in a function call args?
arand has quit [Ping timeout: 248 seconds]
soniya29 has joined #ruby
arand has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
<cthu|> obj1.method1(Regexp.new("^\s*blahblah\s*"))
<cthu|> I just want a way to "cast" string into regex and regex's constructor seems to do just that
anjen has quit [Quit: anjen]
anjen has joined #ruby
jottr_ has joined #ruby
michaelg has quit [Remote host closed the connection]
p4p0l0 has quit [Remote host closed the connection]
maiz has joined #ruby
wontruefree has quit [Quit: this is not the client you are looking for]
<gizmore> cthu|: should work
<cthu|> thanks
<cthu|> doesn't it look wrong? I mean wrong like "you should never use variables in regex"
jenrzzz has quit [Ping timeout: 240 seconds]
<cthu|> hm
<cthu|> what if in the constructor I would check if the string or a regex is passed
<cthu|> and if it's a string, then I would check if it equals to the template
<cthu|> and if it's a regex, I'd check if it matches the template
<cthu|> yeah
<cthu|> sounds weird, but should work
wontruefree has joined #ruby
_seanc_ has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
amar has joined #ruby
p4p0l0 has joined #ruby
amar_ has joined #ruby
pankaj has quit [Ping timeout: 240 seconds]
amar has quit [Ping timeout: 248 seconds]
suukim has quit [Quit: Konversation terminated!]
aufi has quit [Ping timeout: 248 seconds]
<cthu|> oh, so .class returns the actual class, not its name
<cthu|> hell this language is soo cool
<cthu|> feels like being a root on production
cagomez has joined #ruby
conta1 has joined #ruby
soniya29__ has quit [Remote host closed the connection]
soniya29 has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 260 seconds]
discopatrick has joined #ruby
<Eiam> cthu|: if you cannot understand it after you've written it, it might be wrong for other reasons
<Eiam> doing weird shit is fun and cool until you get a bug report that you've got to sort out, and who knows what the asshole that was yourself wrote two weeks ago. I hate that jerk, always screwing me over.
<cthu|> yeah
<cthu|> we can return values from blocks, right?
<cthu|> or...
<cthu|> hell
<cthu|> I suspect I shouldn't use blocks
<cthu|> nah
<cthu|> ha!
<cthu|> return in a block breaks the whole thin
<cthu|> thing
<cthu|> but there still has to be a way to return from a block
<cthu|> break does it for blocks!
<cthu|> ha!
conta1 has quit [Quit: conta1]
<cthu|> ok, I don't quite understand how .select works inside
<Eiam> you are programming by trial and error instead of understanding
<cthu|> I think if the block returns true, then select puts this object in the output array
<cthu|> yeah, I'm trying to understand now
karapetyan has quit [Remote host closed the connection]
<cthu|> or!
<cthu|> the block should return the object
<cthu|> ok, I'm done. the only thing the block will do is run my function. I can't figure how to make it work otherwise
<cthu|> no. I'l go have a dinner. Hope someone tells me how to do this: https://paste.ofcode.org/37RizeQpEwdPU2vVnSQnChb
<cthu|> I tried a few versions before
<Eiam> what in gods name
<Eiam> if you have nils in your dataset and just want to discard them, .compact it before you enumerate
<Eiam> no idea what dl_var_val is,
gizmore has quit [Read error: Connection reset by peer]
<Eiam> why not just combine lines 4 and 8, if either evaluates to true it'll just take the object yielded to it in your result
omth has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
foglabs has joined #ruby
taylorzr has joined #ruby
jottr_ has joined #ruby
orbyt_ has joined #ruby
zachk has joined #ruby
apeiros_ has joined #ruby
zachk has quit [Read error: Connection reset by peer]
zachk has joined #ruby
cagomez has joined #ruby
amar has joined #ruby
nowhere_man has joined #ruby
zachk has quit [Changing host]
zachk has joined #ruby
amar_ has quit [Ping timeout: 260 seconds]
cagomez has quit [Ping timeout: 276 seconds]
rivalome_ has joined #ruby
cagomez has joined #ruby
dinfuehr has quit [Ping timeout: 245 seconds]
taylorzr has quit [Ping timeout: 255 seconds]
rivalomega has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
psychicist__ has quit [Ping timeout: 265 seconds]
chouhoul_ has joined #ruby
tag has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Ping timeout: 256 seconds]
fluxAeon has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
Mqll has joined #ruby
cagomez has joined #ruby
jottr_ has quit [Ping timeout: 265 seconds]
fmcgeough has quit [Quit: fmcgeough]
<havenwood> cthu|: Only use #select when you're trying to filter to a subset of the collection. Use the #any? predicate method instead for this case.
nima_m has quit [Quit: nima_m]
cagomez has quit [Remote host closed the connection]
guille-moe has joined #ruby
cagomez has joined #ruby
<Eiam> wait he only wants one result?
<Eiam> I thought he wanted every result that passes his two tests
synthroid has quit []
<Eiam> and hes using the weird return true thing to flag what would already happen by default
<havenwood> Eiam: Appears to me to return `false` or `true`.
<Eiam> yeah I took that as "add this to my select 'returned' results"
taylorzr has joined #ruby
Mqll has quit [Excess Flood]
Mqll has joined #ruby
<havenwood> Eiam: maybe i'm the one misreading
<Eiam> haha now we both doubt ourselves
<havenwood> cthu|: What is your purpose!? ;-P
jenrzzz has quit [Ping timeout: 256 seconds]
<Eiam> havenwood: I assumed when name && dl_var_val match, add it to my select
<havenwood> cthu|: Is that example ^ what you're trying to do? See if any twoquals the string or match the regexp?
<Eiam> otherwise, discard.
<havenwood> Eiam: Oh, I think you're right now. Haha.
<Eiam> like how some people write if (blah) return true instead of just writing (blah)
guille-moe has quit [Ping timeout: 245 seconds]
<Eiam> because they don't understand or like that the last statement "returns" in ruby and the evaluation of an if already "returns" its result without needing to force it
jenrzzz has joined #ruby
<Eiam> havenwood: we will remain forever in limbo until cthu| graces us with an answer.
<havenwood> cthu|: Amended that ^ gist with a #select example.
<Eiam> havenwood: I like how both do the right thing either way lol
<Eiam> like no code changes except for .any vs .select
Mqll has quit [Client Quit]
<Eiam> havenwood: I really feel like there is a way to condense the string & regexp case into a single comparison anyway
<Eiam> but I was tired of fiddling with it and I hate regexp anyway
<Eiam> any string that passes == will also pass =~ , no?
<Eiam> but many things can pass =~ and fail ==
karapetyan has joined #ruby
<havenwood> Eiam: threequals should do the trick, right?
<havenwood> Eiam: It just might threequals other things. ;-O
<havenwood> data_layer.select { |object| object[dl_var_name].to_s === dl_var_val }
booboy has quit [Quit: ZNC - https://znc.in]
<cthu|> but if I return true manually, I get a bool in the events var
<cthu|> okay, I want an array of all elements that got true
<cthu|> which is weeeeird
<cthu|> no
<cthu|> absolutely no
fluxAeo__ has joined #ruby
<cthu|> if you use =~ to do regex
booboy has joined #ruby
<havenwood> cthu|: What might it be other than a String or Regexp? Will it always be one of those two?
<cthu|> yes
karapetyan has quit [Ping timeout: 260 seconds]
<havenwood> cthu|: events = data_layer.select { |object| object[dl_var_name].to_s === dl_var_val }
<cthu|> I don't mean it to be anything else
spk_ has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
<cthu|> === does regex matching?
ptx0_ has joined #ruby
<apeiros_> havenwood: shouldn't that be reversed?
<Eiam> wait what when did ruby get ===
<bougyman> sure
<cthu|> AND string matching
<havenwood> apeiros_: ew, did i invert it?
<Eiam> mentally I think of === as being "Javascript is broken so just use ==="
<apeiros_> at least from your gist I thought dl_var_val is the string/regexp switcher?
<Eiam> don't break my mental model
<havenwood> apeiros_: yeah, you're right
<apeiros_> Eiam: ages ago
<Eiam> apeiros_: damn =(
* Eiam googles
<apeiros_> Eiam: case/when uses it and a couple of methods
<havenwood> cthu|: events = data_layer.select { |object| dl_var_val === object[dl_var_name].to_s }
apeiros_ is now known as apeiros
spk has quit [Ping timeout: 256 seconds]
ptx0 has quit [Ping timeout: 256 seconds]
spk_ is now known as spk
<havenwood> wait
<cthu|> pk, but what if I want it to be manual?
<apeiros> Eiam: basically, `case expr when cond` is evaluated as `cond === expr`
* havenwood fails at multitasking
<cthu|> I want to work with select manually
<apeiros> cthu|: why'd you player-kill?
<cthu|> that was an ok
<cthu|> :)
amar_ has joined #ruby
<cthu|> apeiros, I'm actually trying to work with the code you wrote for me
* apeiros runs
<cthu|> a week or two ago
<cthu|> ahahah
<Eiam> okay its like a Set/Contains operator
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<Eiam> apeiros: send him a bill for your hours
<cthu|> havenwood, can we have manual returns in select?
<cthu|> to manually decide what goes in and what not
<apeiros> cthu|: `next true` returns true from the block.
<havenwood> cthu|: next
<Eiam> ... you decide what goes in by having your expression evaluate
<Eiam> if its true, in it goes. if its false, out it goes
<cthu|> break true should do the same, guys!
<havenwood> cthu|: `next` goes on to the next iteration, while `break` is more breaking
<apeiros> cthu|: though if you can you avoid mid-construct exits. that's one kind of spaghetti code
<apeiros> cthu|: next and break do different things.
<elomatreb> Explicit next/return/break are kind of counterintuitive in Ruby
<Eiam> ^
<apeiros> next returns from the block to the method which yields
<cthu|> ok, I'll try next, thanks
<elomatreb> Esp. in conjuction with blocks
<Eiam> this makes no sense
<apeiros> break returns from the block AND the method which yields (i.e. the method which yields never sees the return value of the block)
<elomatreb> >> [1, 2].select { return true } # eg
<ruby[bot]> elomatreb: # => unexpected return (LocalJumpError) ...check link for more (https://eval.in/1028028)
<cthu|> I do wanna try ===, but it feels wrong
amar has quit [Ping timeout: 248 seconds]
<Eiam> if you are trying to select all things that match an expression, just write the expression in your block
<Eiam> presto, selected for the expression
<cthu|> elomatreb, return in the block exits the method
<apeiros> 🎶 if using === is wrong, I don't wanna be right 🎵
<Eiam> >> [1,2,3].select { |x| x.odd?}
<ruby[bot]> Eiam: # => [1, 3] (https://eval.in/1028029)
Cthulu201 has quit [Ping timeout: 260 seconds]
<apeiros> can we call === "triqual"?
<Eiam> see? everything that matched "if x == odd" was selected
<cthu|> I know that
<elomatreb> cthu|: Exactly. Which is a little counterintuitive if you assume blocks are lambdas/functions, like e.g. in Javascript
<Eiam> so what are you doing with this break/true stuff =0
<havenwood> no need for: x.odd? == true
<cthu|> elomatreb, right right
<havenwood> just: x.odd?
<cthu|> and yet I want a function there :(
<cthu|> I miss JS's callbacks :)
<apeiros> then call one
<havenwood> same with `nil`, it's already falsey
<cthu|> yeah
<cthu|> I used to call one from a block
<cthu|> but then was corrected
<apeiros> select { |x| foo(x) }
<cthu|> exactly
<apeiros> but iirc the only thing which made it worth in your case was your debugging code
<cthu|> by the way, objects are always passed by reference, right?
<cthu|> and hashes
<cthu|> and arrays
<apeiros> without the debugging code, there was little point IMO. but nothing wrong with it.
<cthu|> ok, thanks
<apeiros> cthu|: you always wanted the technically correct explanation, right?
reber has quit [Remote host closed the connection]
<cthu|> apeiros, yes, thanks
<apeiros> objects are passed by copy
weird_error has quit [Quit: weird_error]
<cthu|> if next doesn't work, I'll go back to the function
<apeiros> but it doesn't copy the objects
<cthu|> it's value or reference
* dminuoso finds that explanation rather confusing
<cthu|> I'm sure it's ref
<elomatreb> Ruby does have lambdas as well, btw.
<apeiros> dminuoso: yeah. I should invest more in making a less confusing explanation :D
taylorzr has quit [Ping timeout: 245 seconds]
<dminuoso> Ruby is pass-by-value, with variables being references to objects.
<apeiros> especially given the frequency of this question.
<elomatreb> >> [1, 2].select &lambda {|_| return true }
<ruby[bot]> elomatreb: # => [1, 2] (https://eval.in/1028034)
<apeiros> cthu|: ^ what dminuoso said.
<cthu|> that's variables
<cthu|> and reference with objects
<cthu|> like I thought
<cthu|> although... are hashes objects?
<elomatreb> Everything is an object
<apeiros> nope
<cthu|> right, right
<cthu|> something's not?
ldnunes has quit [Quit: Leaving]
<dminuoso> cthu|: blocks, methods and local variables are not.
<apeiros> but most cases which aren't, are implementation details.
<apeiros> variables are not objects, and ^
<cthu|> aha!!
<dminuoso> Though the first two can be reified.. so.
<cthu|> that's it, thanks a lot, folks, love ya
<apeiros> you can turn blocks & methods into objects, though
<elomatreb> OK, "every value is an object" is more correct (and kind of what I meant)
<apeiros> also any implementation could choose to have those as objects all the time.
<apeiros> elomatreb: :D
<cthu|> should I avoid === for regex matching?
<cthu|> it looks too convenient to be true
* dminuoso avoids === generally
<dminuoso> It just doesn't have well defined semantics.
<cthu|> so next works
<cthu|> thanks a lot for it
<cthu|> now I'll try to avoid next with ===
<elomatreb> === does all kinds of stuff depending on the left-hand side. If the LHS is a class it does instanceof checks, if it's a range it does inclusion checks, etc
<cthu|> woooooooooow
<dminuoso> Exactly. "Does all kinds of stuff" with no common theme is bad in my book.
<cthu|> hooooly mooole
<cthu|> on the left side, huh?
fredlinhares has quit [Quit: WeeChat 1.4]
<cthu|> so the regex should be on the left
<apeiros> it's a method
<cthu|> every operation is a method
<elomatreb> And like any other method you can override for your own classes, e.g. there's an IP address class in the standard library that does subnet inclusion IIRC
<dminuoso> cthu|: Not quite.
<apeiros> what methods do always depends on the receiver
<apeiros> i.e. "left side"
<dminuoso> cthu|: Ruby has keywords...
<cthu|> dminuoso, what's not a method?
<apeiros> `defined?` f.ex.
<dminuoso> Anything that is not a method?
<apeiros> `alias`
Dbugger has quit [Remote host closed the connection]
<elomatreb> Simple assignment
<apeiros> ternary is also an operator
<cthu|> right
<dminuoso> lambdas..
<cthu|> ok, ok
<cthu|> got it :)
<apeiros> lambda otoh is a method :D
<dminuoso> apeiros: what does `a = ->(){}` invoke?
<bougyman> dminuoso: nil
<cthu|> what is ->
<cthu|> I know it penetrates
<apeiros> dminuoso: does it invoke something? I actually never bothered to check
<elomatreb> "stabby lambda" syntax
<dminuoso> asm>> a = ->(){}
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/1028035
<elomatreb> Similar to arrow functions in JS
<dminuoso> Ah I guess it does call Kernel#lambda
<cthu|> bleh
<cthu|> I hate that concept in JS
<dminuoso> It's about the one redeeming feature of the language.
<cthu|> redeeming?
<cthu|> more like confusing
tty has quit [Read error: Connection reset by peer]
* dminuoso pokes elomatreb
* elomatreb pokes back
<dminuoso> Oh havenwood, so I want proper profunctor optics in Ruby.
<dminuoso> Taking a deep dive into lenses currently, they are a godsend in JavaScript.
jottr_ has joined #ruby
tty has joined #ruby
<Eiam> -> and lambda aren't the same thing
biberu has quit []
<Eiam> swear I had some code a few months ago I wrote as lambda { blah} and later tried to convert lambda to -> and it stopped working
<Eiam> didn't have time to dig into what was up other than to realize they clearly aren't the same
<dminuoso> asm>> add = -> a, b { a + b }
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/1028038
<dminuoso> asm>> add = lambda { |a, b| a + b }
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/1028039
<RougeR> damn
<dminuoso> Eiam: There's some freaking annoying subtle differences because Japananese reasons.
agent_wh1te has joined #ruby
<RougeR> coming from ruby ive forgotten how weird python functions look...
<RougeR> they just...trail off
<apeiros> Eiam: proc and lambda are not the same thing
<apeiros> Eiam: -> and lambda are
<havenwood> Eiam: Did you maybe forget to change the way the args are expressed?
<apeiros> lambda enforces arity (like methods), proc does not (like blocks)
<apeiros> RougeR: like lonesome cowboys?
<RougeR> return also functions differently between proc and lambda
<Eiam> havenwood: that may have been what it was. I did something like blah = lambda {code} then later just tried to swap it and it failed
<RougeR> apeiros: yes
<cthu|> I think using end is awkward. I would enjoy python's way
<cthu|> even JS's way feels better
<RougeR> i like end and {}
redlegion has quit [Remote host closed the connection]
<cthu|> yeah
<apeiros> RougeR: now I have the image of lucky luke riding off in my mind.
<Eiam> havenwood: like how each_with_object and reduce swap around their paramaters, so annoying.
<RougeR> i just dont like having nothing
<havenwood> Eiam: Usually it's the args, since they're different. Aye.
<cthu|> lol
<RougeR> cthu|: but in python it looks like you forgot to finish the function
<cthu|> indentation is something
<dminuoso> Eiam: dont use each_with_object and just manually zip? *shrugs*
<RougeR> it just trails off and then the code continues
redlegion has joined #ruby
<dminuoso> Eiam: Or in that case properly reduce?
<havenwood> apeiros: I've seen, "Name all the differences you know between a proc and a lambda" several times in Ruby interviews. A great opportunity to bring up Tennet's correspondence principle. ;-P
<cthu|> I hate finishing it with ends though. feels like overexplicit
<dminuoso> Eiam: The argument order is normal for a left fold though.
jottr_ has quit [Ping timeout: 276 seconds]
<Eiam> dminuoso: I don't use each_with_object at all because it didn't exist when I started Ruby and I'm used to reduce already. =p
<dminuoso> havenwood: one sucks, the other doesnt.
<dminuoso> done.
<cthu|> defininng funcion now right now yes defining!
<RougeR> ive never even made my own procs or lambdas outside of a learning exercise
<apeiros> havenwood: don't tell me I'd fail because I haven't even heard of that principle?
<RougeR> i might have some code interview soon..
<RougeR> well
agent_white has quit [Ping timeout: 256 seconds]
<RougeR> i have 2 interviews tommorow
<apeiros> anyway, the difference between lambda and proc is 6
<havenwood> apeiros: haha
schleppel has quit [Quit: Konversation terminated!]
<RougeR> one is with a tiny startup
<Eiam> havenwood: haha my opening Ruby question is always "Explain the difference between reduce, inject, select and each on an array"
<RougeR> the other is a big startup
<havenwood> apeiros: I'd summarize the principle as, "there are reasons for a different return locale."
<havenwood> Yehuda wrote a post on it that I think has been lost to the sands of time.
<apeiros> Eiam: I hope they fail if they don't mention that inject was there first.
<apeiros> havenwood: "return locale" meaning where return returns to?
<Eiam> apeiros: its there to see if they know they are the same thing
<havenwood> apeiros: aye
<RougeR> inject = accumulator, each = iterator, select = matcher,
<Eiam> I've had people who clearly knew the other ones INVENT differences
<apeiros> Eiam: I hate that part about rubys numerous aliases
<dminuoso> inject = fold
<Eiam> thinking there *Was* a diffference
<RougeR> i cant remember reduce off top of head
<dminuoso> each = traverse
<dminuoso> select = uhh what is this.
<apeiros> Eiam: there are some methods which *seem* to be aliases but aren't.
<RougeR> dminuoso: iterator is a better descriptor
<apeiros> and due to all the aliases, you never really know whether that's such a case :(
<Eiam> its not a pass/fail question anyway, I'm just trying to get a ball rolling to discuss stuff.
<havenwood> sticklers are saying it's "Tennent’s principle of qualification", anyhoo
<apeiros> Eiam: anyway, to continue on my previous patter, the difference between each and reduce is of course 5
<RougeR> oh fukin
<RougeR> reduce and inject are the same
<RougeR> aliases
<Eiam> apeiros: not to be confused with the 6 for proc & lambda. got it, you are hired!
<havenwood> "Tennent’s principles are very powerful because violations of them tend to show up in the language as flaws, irregularities, unnecessary restrictions, unexpected interactions or complications, and so on."
<apeiros> Eiam: of course, I'm purrfect.
<Eiam> when can you start!
<Eiam> please refactor all my rubys
<apeiros> I can't. dminuoso has to show me haskell first.
<havenwood> Ah, found the article I was thinking of: https://yehudakatz.com/2012/01/10/javascript-needs-blocks/
ur5us has joined #ruby
<Eiam> apeiros: sounds like step into a dark alley type talk
<apeiros> havenwood: IMO the main grievances with JS functions/callbacks is boilerplate and binding :-/
<Eiam> bludgeon you with haskell and take your wallet
<cthu|> woohoooo
<cthu|> black magic woooorks!
<apeiros> Eiam: I might get eaten by a grue. I'll hold on tight to my candle.
<havenwood> JavaScript did get the arrow function, now all is once again right on the Internet.
<cthu|> I love irb
<cthu|> not ready to get a t-shirt yet though
<apeiros> havenwood: arrow function has a different binding? god, I got to reread about that then!
anjen has quit [Quit: anjen]
<RougeR> apeiros:
<RougeR> it just looks so wrong...
* apeiros hands RougeR a `# end my_func`
foglabs has quit [Ping timeout: 256 seconds]
<apeiros> you should try plsql
<RougeR> apeiros: i was seriously tempted
<RougeR> to do
<RougeR> #ed
<RougeR> #end
anjen has joined #ruby
<apeiros> you have to qualify all ends
<RougeR> ;l
<apeiros> as in `function foo … end foo;`
<apeiros> (same for `end if`, `end loop` etc.)
<cthu|> what's plsql?
<cthu|> maybe pg?
<apeiros> cthu|: oracle's proglang
<cthu|> ah
<cthu|> good
<cthu|> thanks
<apeiros> pg has pgplsql
<cthu|> oh neat
<apeiros> which tries to be compatible
<Eiam> I'd like for the end of functions to be backwards. dne and fi respectively
<cthu|> with oracle?
<Eiam> if, fi
<apeiros> or largely compatible. though I think you need pg enterprise for that.
<cthu|> oh
<cthu|> that sucks
<apeiros> cthu|: yes, with plsql. there's tons of legacy (and even new) code in plsql.
<cthu|> I didn't even know there was pg enterprise
Cthulu201 has joined #ruby
<cthu|> is that a language one would use in stored procedures?
<apeiros> yes
<apeiros> and triggers
<cthu|> ah, I see
<cthu|> ok then
<apeiros> and you absolutely don't want to write in it
<cthu|> I used to do it for mysql
* apeiros remembers writing a basic "split" method in ~30 LOC
* apeiros shudders
<cthu|> I hate DELIMITERS till today
<apeiros> havenwood: isn't yehuda part of TC39?
jottr_ has joined #ruby
<apeiros> (that is the name of the group? or am I confusing things…?)
<havenwood> apeiros: I dunno!
<dminuoso> apeiros: Try this in Ruby:
<dminuoso> over (partsOf (worded . _head)) reverse "sony playstation"
<dminuoso> > "pony slaystation"
<cthu|> woooooooow
<Eiam> that reads like haskell
<Eiam> oh dminuoso ..
alem0lars has quit [Ping timeout: 268 seconds]
<cthu|> hehehe
desperek has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> dminuoso: I'm sure using one of baweaver's libs you could write that in less ruby 😇
<dminuoso> apeiros: Not with his libs.
<baweaver> apeiros: Yehuda is on TC39.
<apeiros> baweaver: yay
t0xik has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
<dminuoso> baweaver: Why not.
<havenwood> Ooh, I see Haskell is a Tetris-complete lang: https://github.com/SamTay/tetris
jottr_ has quit [Ping timeout: 268 seconds]
<apeiros> somebody needs to write a proglang which is coded in tetronomicons
weird_error has joined #ruby
fluxAeo__ has quit [Quit: Textual IRC Client: www.textualapp.com]
eckhardt has quit [Ping timeout: 256 seconds]
weird_error has quit [Client Quit]
<s3krit> I think they're called tetronimos
bijan_ has joined #ruby
<cthu|> folks, what's the meaning of ?i-mx:
<apeiros> s3krit: possible :D
<elomatreb> cthu|: In a regex? Sets mode flags, possibly for only a nesting group
<apeiros> cthu|: (?:) is a non-capturing group
<cthu|> aaaah, cool, thanks!
<apeiros> the stuff between ? and : says which flags are enabled and disabled
<cthu|> awesome
<apeiros> left of - is enabled, right is disabled. so this is with i flag, without mx flags
<cthu|> it's just I casted it into (oblivion) string and got it.
<cthu|> makes sense
<apeiros> it's the basis for how ruby allows you to construct larger regexes from smaller:
<apeiros> >> f = /foo/i; g = /bar#{f}/
<ruby[bot]> apeiros: # => /bar(?i-mx:foo)/ (https://eval.in/1028075)
<cthu|> hm
<apeiros> so it retains the case-insensitiveness for the foo part
<cthu|> wooooooow
<cthu|> this is so cool
<havenwood> cthu|: so do ignore case, but don't treat a newline as a . matching char, and ignore whitespace and comments
<elomatreb> Check out the extended mode too, godsend tbh
<cthu|> not gonna use it, but it's amazing to know!
<apeiros> it is useful e.g. when you want to translate a BNF into a regex (think e.g. email validation)
<cthu|> yeh right
<elomatreb> .+@.+\..+ # done
maiz has quit [Ping timeout: 264 seconds]
<havenwood> A too little-known Ruby Regexp delimiter is: /o
<elomatreb> :P
<apeiros> elomatreb: lel
<apeiros> elomatreb: you have NO IDEA SIR, NO IDEA I TELL YOU!!!!1!elf!1!
<cthu|> that will match .@...
<havenwood> Perform interpolation only once! Without the /o it'll interpolate each time it's evaluated.
<cthu|> hehe
<elomatreb> Yeah, email matching is kind of a bad example because pretty much no matter what you do you do something wrong
<cthu|> lol :)
<apeiros> elomatreb: no?
<apeiros> translate the BNF :)
<cthu|> Beautiful Non-email Form
<elomatreb> Then you can run into trouble with your application layer accepting email addresses, while the underlying delivery infrastructure does not
<apeiros> at least that's what I did. granted I adjusted it a bit since I actually don't want to allow all valid email addresses (e.g. no comments in the address please, also no newlines - yes, both exist)
<elomatreb> And depending on how good you log you can lose emails to oblivion
<apeiros> elomatreb: no. the problem is almost always the app layer.
<apeiros> MTAs are mostly capable of handling addresses. they usually struggle elsewhere :D
<apeiros> (not sure about utf-8 capab, tho, but IME that's quite good by now too)
<cthu|> what's MTA?
<dminuoso> This is an RFC compliant regex to test email addresses for validity: https://gist.github.com/dminuoso/39236f19a58ae8c3c66ad9752759a3f0
<elomatreb> A friend has an email address 🖕@...
<elomatreb> cthu|: Mail Transfer Agent
<elomatreb> The part of the stack that actually sends the email from your server to the destination server
<dminuoso> But in the end you care about deliverability, not conformity.
<dminuoso> Because most mail software is not RFC 822 compliant
jenrzzz_ has joined #ruby
AJA4350 has joined #ruby
<jidar> I doubt ... is a valid tld
<havenwood> headius: I've spotted some where JRuby+Graal definitely fly. I'll see if I can put together a few examples tonight.
<elomatreb> Did my bouncer swallow the emoji? It's <middle finger emoji>@, didn't want to share their email
jenrzzz has quit [Ping timeout: 245 seconds]
<headius> havenwood: that would be great...I'm trying to show that we've got a good long future ahead of us just by leveraging Graal and making incremental improvements to JRuby
<headius> and also to show that Graal is great with or without Truffle
<jidar> elomatreb: oh, it generally depends on the terminal, lots of emoji don't show up
<elomatreb> It does locally for me, but I know ZNC likes to meddle with encoding
<apeiros> elomatreb: na, it showed just fine
<havenwood> Regexp is 30x faster to compile with the "o" option: https://gist.github.com/havenwood/187f5ac07ef671eb92d1d5c8f44f6664
<apeiros> elomatreb: but not everybody has proper fonts to see those :)
<havenwood> Freezing doesn't suffice either.
Guest36323 has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
<headius> havenwood: yeah in that case I would assume it's basically doing nothing because there's no side-effect after initially compiling the regexp
<headius> graal (and truffle) are great at doing nothing
Nicmavr has joined #ruby
Nicmavr is now known as Guest63073
<cthu|> oh neat
<havenwood> headius: In JRuby there doesn't seem to be as profound a difference between the two. About twice as slow instead of thirty times.
<havenwood> TruffleRuby doesn't optimize interpolated regexp yet.
<headius> oh I see
<havenwood> (That benchmark is just an aside from the other convo.)
<headius> heh ok I wasn't sure
quobo has quit [Quit: Connection closed for inactivity]
jenrzzz_ has quit [Ping timeout: 248 seconds]
jhack has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
lytol has joined #ruby
lytol has quit [Remote host closed the connection]
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
desperek has quit [Quit: xoxo]
jhack has quit [Quit: jhack]
orbyt_ has joined #ruby
discopatrick has quit [Quit: Connection closed for inactivity]
cschneid has quit [Ping timeout: 255 seconds]
zapata has joined #ruby
jottr_ has joined #ruby
karapetyan has joined #ruby
amar_ has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 256 seconds]
<cthu|> hey folks
<cthu|> how do I puts in color? :)
<apeiros> puts "\e[41mCOLOOOOR\e[0m"
<apeiros> 1 is bold, 30-39 is background, 40-49 is foreground
<apeiros> errr, bg & fg wrong way round :D
<apeiros> ; to separate multiple. e.g. \e[1;33;40m is bold yellow on black
<cthu|> thanks!
<apeiros> and \e[0m resets, in case that wasn't clear.
<apeiros> there's a couple of gems out there to provide you with nice convenience methods for this
<cthu|> yeah
<cthu|> I saw them
<cthu|> but I prefer doing it raw
<SeepingN> I have a small file that I include when I want colors
<elomatreb> Windows does its own thing too, IIRC
<SeepingN> then I can do: puts "#{RED}This is in red #{RESET} but this is not"
cschneid has joined #ruby
<cthu|> this can help: http://ezprompt.net/
<cthu|> wow
mike11 has quit [Quit: Leaving.]
<cthu|> SeepingN, that works in Win?
<cthu|> like in cmd?
knight33 has joined #ruby
<cthu|> nah
<SeepingN> linux
<SeepingN> ain't nobody using ruby in windows!
<SeepingN> ;)
<cthu|> hehe
<cthu|> linux made it a lot more comfy than unix
shinnya has joined #ruby
<cthu|> or is it bash
codymj has quit [Quit: Leaving]
<SeepingN> well the prompt stuff is bash
<SeepingN> changing text colors with escape codes is via which TERMinal you have set
<SeepingN> and a client that understands it of course
cagomez has joined #ruby
sanscoeur has joined #ruby
sanscoeur has quit [Remote host closed the connection]
<elomatreb> It is partially standardized, they're ANSI terminal code
sanscoeur has joined #ruby
crankharder has quit [Quit: leaving]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raynold has quit []
crankharder has joined #ruby
crankharder has quit [Client Quit]
bijan_ has quit [Remote host closed the connection]
crankharder has joined #ruby
eckhardt has joined #ruby
<cthu|> and how do I bold this? puts("\e[41m>>>Analytics test Failed\e[0m")
<cthu|> oh neat!
<cthu|> puts("\e[1m\e[41m>>>Analytics test Failed\e[0m")
<cthu|> ha!
<cthu|> the best
<al2o3-cr> \e[41;1m
<cthu|> oh, ok
<cthu|> thanks
sanscoeu_ has joined #ruby
<SeepingN> I have a small file of this:
<SeepingN> RESET ||= "\033[0m"
<SeepingN> RED ||= "\033[0;31;40m"; REDBG ||= "\033[0;37;41m"
<SeepingN> CLEAR ||= "\033[K"
<SeepingN> (other colors too of course)
sanscoeur has quit [Ping timeout: 268 seconds]
jhack has joined #ruby
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #ruby
sanscoeur has quit [Remote host closed the connection]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 248 seconds]
SeepingN has quit [Ping timeout: 268 seconds]
starseed0000 has quit [Ping timeout: 245 seconds]
<cthu|> thanksI wonder why bash doesn't have the full rgb
bijan_ has joined #ruby
<cthu|> like 255:255:255
wontruefree has quit [Quit: bye]
subroot has joined #ruby
k0mpa has quit [Ping timeout: 250 seconds]
bijan_ has quit [Ping timeout: 256 seconds]
Azure|dc is now known as Azure
bijan_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has quit [Quit: jhack]
anjen has quit [Quit: anjen]
bijan_ has quit [Ping timeout: 245 seconds]
darkhanb has joined #ruby
jhack has joined #ruby
root_ has joined #ruby
root_ has quit [Client Quit]
root_ has joined #ruby
root_ is now known as Guest16183
Guest16183 has quit [Client Quit]
izaac has joined #ruby
<cthu|> folks folks folks!
<cthu|> there's to_json
<cthu|> but I wanna prettify it too :(
<cthu|> pretty_generate()!
eckhardt has joined #ruby
izaac has quit [Client Quit]
<al2o3-cr> cthu|: you can use jj for prettyfied json ;)
<cthu|> what's jj?
<al2o3-cr> try it `jj(json)`
clemens3 has quit [Ping timeout: 264 seconds]
bijan_ has joined #ruby
<al2o3-cr> it's just a wrapper method around pretty_generate on Kernel.
sameerynho has quit [Ping timeout: 240 seconds]
JamJam_kid has joined #ruby
clemens3_ has joined #ruby
cschneid has quit []
jhack has quit [Quit: jhack]
bijan_ has quit [Ping timeout: 256 seconds]