havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
fuzzface has quit [Quit: Leaving]
fphilipe_ has joined #ruby
ellcs has quit [Ping timeout: 258 seconds]
cd has joined #ruby
queip has quit [Ping timeout: 248 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
queip has joined #ruby
ellcs has joined #ruby
n13z_ has joined #ruby
n13z has quit [Read error: Connection reset by peer]
sagax has joined #ruby
n13z_ has quit [Ping timeout: 248 seconds]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 252 seconds]
AJA4350 has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 272 seconds]
dviola has quit [Quit: WeeChat 2.5]
hutch has quit [Quit: WeeChat 2.5]
ramfjord has quit [Ping timeout: 252 seconds]
n13z has joined #ruby
tranch has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
ellcs has joined #ruby
hutch has joined #ruby
CCDelivery has quit [Remote host closed the connection]
faces has quit [Ping timeout: 272 seconds]
dviola has joined #ruby
Technodrome has joined #ruby
AJA4350 has quit [Quit: AJA4350]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
code_zombie has quit [Quit: Leaving]
cschneid has joined #ruby
crankharder has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
victorqueiroz has quit [Quit: Connection closed for inactivity]
duderonomy has joined #ruby
victorqueiroz has joined #ruby
sandstrom has joined #ruby
ellcs has quit [Ping timeout: 272 seconds]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
ellcs has joined #ruby
gix has quit [Disconnected by services]
bambanx has quit [Quit: Leaving]
fphilipe_ has joined #ruby
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
fphilipe_ has quit [Ping timeout: 246 seconds]
dviola has quit [Quit: WeeChat 2.5]
houhoulis has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
m_antis_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uplime is now known as ^
^ has quit [Disconnected by services]
uplime has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
uplime is now known as ^
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 245 seconds]
crankharder has quit [Ping timeout: 248 seconds]
ur5us has quit []
sandstrom has joined #ruby
donofrio has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
tranch has quit [Quit: tranch]
armyriad has joined #ruby
tranch has joined #ruby
^ is now known as [
[ has quit [Disconnected by services]
uplime has joined #ruby
Inline has quit [Quit: Leaving]
brett-soric has joined #ruby
fphilipe_ has joined #ruby
uplime is now known as ^
^ is now known as [
cd has quit [Remote host closed the connection]
sauvin has joined #ruby
cd has joined #ruby
conta has joined #ruby
tranch has quit [Quit: tranch]
troulouliou_dev has quit [Quit: Leaving]
tranch has joined #ruby
brett-soric has left #ruby [#ruby]
schneider has joined #ruby
conta has quit [Ping timeout: 248 seconds]
conta has joined #ruby
m_antis_ has quit [Quit: m_antis_]
Technodrome has joined #ruby
queip has quit [Ping timeout: 244 seconds]
queip has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
aupadhye has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
tranch has quit [Ping timeout: 268 seconds]
tranch_ has joined #ruby
kyrylo has joined #ruby
houhoulis has quit [Remote host closed the connection]
mayurvpatil has joined #ruby
schneider has quit [Ping timeout: 244 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
victorqueiroz has quit [Quit: Connection closed for inactivity]
houhoulis has joined #ruby
houhoulis has quit [Ping timeout: 245 seconds]
houhoulis has joined #ruby
sandstrom has joined #ruby
TomyWork has joined #ruby
houhoulis has quit [Ping timeout: 258 seconds]
houhoulis has joined #ruby
ramfjord has joined #ruby
tranch_ has quit [Ping timeout: 244 seconds]
tranch has joined #ruby
houhoulis has quit [Ping timeout: 268 seconds]
DTZUZO has quit [Ping timeout: 248 seconds]
DTZUZU has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
houhoulis has joined #ruby
schneider has joined #ruby
houhoulis has quit [Ping timeout: 244 seconds]
alem0lars has joined #ruby
jefffrails35 has joined #ruby
houhoulis has joined #ruby
fphilipe_ has quit [Ping timeout: 258 seconds]
houhoulis has quit [Ping timeout: 258 seconds]
mayurvpatil has quit [Quit: This computer has gone to sleep]
ramfjord has joined #ruby
alem0lars has quit [Ping timeout: 272 seconds]
jmcgnh has quit [Ping timeout: 245 seconds]
jmcgnh_ has joined #ruby
jmcgnh_ is now known as jmcgnh
ramfjord has quit [Ping timeout: 245 seconds]
houhoulis has joined #ruby
deepredsky has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
houhoulis has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 258 seconds]
conta has joined #ruby
houhoulis has joined #ruby
Technodrome has joined #ruby
houhoulis has quit [Ping timeout: 268 seconds]
houhoulis has joined #ruby
houhoulis has quit [Ping timeout: 244 seconds]
deepredsky has joined #ruby
[ is now known as ^
houhoulis has joined #ruby
houhoulis has quit [Ping timeout: 252 seconds]
houhoulis has joined #ruby
mayurvpatil has joined #ruby
mayurvpatil has quit [Max SendQ exceeded]
houhoulis has quit [Ping timeout: 245 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
houhoulis has quit [Ping timeout: 244 seconds]
cca4 has joined #ruby
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
<cca4> Hello I'm trying to display console https://github.com/rails/web-console from a container docker with rails and I have this Cannot render console from 172.24.0.1 error! Allowed networks: 127.0.0.0.0.0/127.255.255.255.255, ::1 how can I solve it? Thank you in advance
houhoulis has joined #ruby
kenichi has quit [Remote host closed the connection]
DTZUZU has joined #ruby
houhoulis has quit [Ping timeout: 244 seconds]
NL3limin4t0r_afk is now known as NL3limin4t0r
<NL3limin4t0r> cca4: Bind it to 0.0.0.0 instead of 127.0.0.0 or localhost.
alem0lars has joined #ruby
Technodrome has joined #ruby
<cca4> Ok i tried thanks
houhoulis has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has quit [Ping timeout: 272 seconds]
leitz has joined #ruby
m_antis has joined #ruby
houhoulis has joined #ruby
cd has quit [Quit: cd]
ramfjord has joined #ruby
conta has quit [Ping timeout: 258 seconds]
cca4 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 258 seconds]
alem0lars has quit [Read error: Connection reset by peer]
houhoulis has quit [Ping timeout: 245 seconds]
alem0lars has joined #ruby
houhoulis has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
houhoulis has quit [Ping timeout: 248 seconds]
guardian has quit [Remote host closed the connection]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
conta has joined #ruby
queip has quit [Ping timeout: 248 seconds]
Sina has joined #ruby
houhoulis has joined #ruby
queip has joined #ruby
houhoulis has quit [Ping timeout: 268 seconds]
guardian has joined #ruby
spiette has quit [Ping timeout: 246 seconds]
tranch has quit [Quit: tranch]
BH23 has joined #ruby
tdy1 has joined #ruby
alem0lars has quit [Ping timeout: 248 seconds]
tdy has quit [Ping timeout: 245 seconds]
za1b1tsu has joined #ruby
Technodrome has joined #ruby
BH23 has quit [Ping timeout: 245 seconds]
BTRE has quit [Ping timeout: 244 seconds]
BH23 has joined #ruby
BTRE has joined #ruby
houhoulis has joined #ruby
mikecmpb_ has quit [Ping timeout: 258 seconds]
BH23 has quit [Ping timeout: 258 seconds]
houhoulis has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
arup_r has joined #ruby
ur5us has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayurvpatil has joined #ruby
mayurvpatil has quit [Max SendQ exceeded]
arup_r has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
arup_r has joined #ruby
Technodrome has joined #ruby
donst has quit [Ping timeout: 245 seconds]
cd has joined #ruby
houhoulis has joined #ruby
houhoulis has quit [Ping timeout: 272 seconds]
houhoulis has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 268 seconds]
Xiti` has joined #ruby
houhoulis has quit [Ping timeout: 252 seconds]
Pixi_ has joined #ruby
Xiti has quit [Ping timeout: 245 seconds]
Xiti` has quit [Ping timeout: 245 seconds]
cek has joined #ruby
cek has left #ruby [#ruby]
queip has quit [Ping timeout: 272 seconds]
houhoulis has joined #ruby
Swyper has quit [Remote host closed the connection]
conta has joined #ruby
BH23 has joined #ruby
queip has joined #ruby
Technodrome has joined #ruby
rokra has joined #ruby
houhoulis has quit [Ping timeout: 248 seconds]
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
Xeago_ is now known as Xeago
ramfjord has joined #ruby
JjOtt has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
fuzzface has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
houhoulis has joined #ruby
Technodrome has joined #ruby
reber has joined #ruby
houhoulis has quit [Ping timeout: 258 seconds]
jacksop has joined #ruby
ZAJDAN has joined #ruby
<ZAJDAN> file_path = Rails.root.join('PDF','KW_list.pdf') is somehow possible in the filename use variable?
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
BH23 has quit [Ping timeout: 246 seconds]
houhoulis has joined #ruby
BH23 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has quit [Ping timeout: 252 seconds]
fuzzface has quit [Quit: Leaving]
Technodrome has joined #ruby
houhoulis has joined #ruby
<leitz> ZAJDAN, you might find more Rails-fu in #Rails.
Josse has joined #ruby
houhoulis has quit [Ping timeout: 252 seconds]
<Josse> Question: Is ruby still worth knowing, the day of today?
<leitz> On the other hand, I just realized that was a bad channel name.
<Josse> I'm really comfortable with JavaScript, is ruby able to compete with that?
<Josse> or could I use ruby to 'pair to' my JavaScript?
<leitz> ZAJDAN, #rubyonrails
<leitz> Josse, it depends on what you want to do.
<leitz> JS is good for a lot of things; I looked at the MEAN stack a while back and loved the idea.
<Josse> I'm just interested in broadening my understanding of full stack development, honestly
<leitz> What I find most important is how well the language fits me, personally, and secondarily how well it fits the tasks I want to do.
<ZAJDAN> solved
<Josse> so should I learn Ruby, or rather PHP or something?
<leitz> Josse, honestly, if you're into full stack I'd do some MongoDB. Mongo uses JS as the "SQL" language, so that's a plus.
haylon_ has quit [Quit: No Ping reply in 180 seconds.]
<leitz> If I were starting out in Web, and I liked JavaScript, I'd just stay there.
<Josse> I've heard about MongoDB, but honestly, why would I want to use something like that compared to my own SQL database?
<Josse> I've got postgres, and it works great
<Josse> Yeah, but I feel like I've actually gotten comfortable enough with JavaScript so I'm looking to expand my horizon, so to speak
za1b1tsu has quit [Remote host closed the connection]
<leitz> Do you work in a JS based shop?
<Josse> No, I'm an amateur programmer, I'm not doing anything profesionally
<leitz> I found my understanding of how much I "knew" changed drastically when I had to do it for a living.
<Calinou> there are many practical use cases for NoSQL databases, but at a small scale, you probably won't notice the difference as much
<Calinou> the fact that many clients want NoSQL because it looks pretty on their PowerPoint also hurts :)
<Calinou> (rather than real, technical reasons)
<Josse> yeah, but I'm actually 15 years old so my living isn't my worry just yet
<leitz> My own path has been to add git and TDD. I'm an "Apprentice" in a few C based languages and want to get better.
<leitz> So I'm using Ruby to push towards mastery in programming topics like OOP, introspection, patterns, etc.
<Josse> so it is worth knowing?
<leitz> Ruby? I'd say not if you're really good at Javascript.
<leitz> Nor is PHP.
victorqueiroz has joined #ruby
<leitz> JS is actually taking over much of the web, outside of microservices type stuff.
<NL3limin4t0r> Josse: Although most developers hate php, me included, it's worth learning for legacy sake. More than 50% of website run a php backend.
<leitz> IMNSHO
<Josse> yeah recently I was looking for developer jobs just out of interest, to see what was out there
<leitz> NL3limin4t0r makes a good point, if you want to get hired for Web, then add PHP and Rails.
<Josse> and I noticed that the web app that we use for school was hiring PHP developers
<leitz> But you could master JS and have a good job selection.
<leitz> Or if you want something even better, Go.
<Josse> Yep, Go also seems to be really popular
<phaul> it's a shame that the good old "expressiveness - succintness" and so on of ruby doesn't come up any more in these discussions.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul> I think the more languages you know especially the more come from different paradigms the better off you are
<leitz> IIUC, the guy who wrote Node.js now prefers Go.
JjOtt has quit [Quit: Leaving...]
<Josse> So rather than PHP or Ruby, I should learn go?
jacksop has quit []
<leitz> phaul, I'm getting back into Ruby to retain what sanity remains, and finding it much more productive.
<leitz> Josse, yes. It'd probably add 10-15% to your salary if you learn and market well.
<leitz> And some MongoDB backend tools are written in Go. :)
<Josse> Allright. But does it have good learning resources?
<leitz> There's the walk through on golang.org, and Univ of Cali (something) has a free Coursera specialty on it.
<leitz> There's a few free on-line books, too.
haylon has joined #ruby
* leitz is digging into "Head First Ruby" though.
<Josse> could you link to that?
<Calinou> PHP isn't just legacy, modern PHP is a pretty decent language to work with in my experience
<Josse> Allright, so I should learn both? PHP and Go? :)
<Calinou> sure, they each excel in different scenarios
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
<Josse> Thank you!
<NL3limin4t0r> Ruby is a fun language to learn. If you write it well it's one of the more (visually) beautiful languages out there.
<leitz> Josse, on-line Go intro. https://tour.golang.org/welcome/1
<Josse> I believe I'll go with PHP first then, because I've already got really good learning resources
<Calinou> once you get more seasoned in PHP, there's a fun minigame to do here: http://returntrue.win/ :P
miskatonic has joined #ruby
<leitz> The coursera course lets you take for free, or you can pay and get a certificate. Which might help employment. PHP, Ruby, and Java have language certs, too.
arup_r has quit []
BH23 has quit [Ping timeout: 272 seconds]
<NL3limin4t0r> Josse: Another good language to learn is Java. It's not the most requested language, but it does offer a good base for a lot of programming concepts, since everything has to be written out explicitly. Things like classes, inheritance, abstract classes, interfaces, method overloading.
al2o3-cr has joined #ruby
AJA4350 has quit [Ping timeout: 248 seconds]
<leitz> I wish I had been smart enough to find *and stick with* Ruby many years ago.
jhass has quit [Ping timeout: 245 seconds]
yokel has quit [Ping timeout: 252 seconds]
gigetoo has quit [Ping timeout: 252 seconds]
BH23 has joined #ruby
gigetoo has joined #ruby
codefriar has joined #ruby
codefriar has quit [Client Quit]
codefriar has joined #ruby
yokel has joined #ruby
Technodrome has joined #ruby
schneider has quit [Ping timeout: 245 seconds]
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
BH23 has quit [Ping timeout: 252 seconds]
<ZAJDAN> Josse: a few Years I work with PHP ...it is nice language, but now Iam trying RubyOnRails and I have to say....it is perfect
<ZAJDAN> hard to learn, cause community is not so big as in PHP, but when you are patient you will like it
BH23 has joined #ruby
codefriar has quit [Ping timeout: 244 seconds]
codefriar has joined #ruby
yokel has quit [Read error: Connection reset by peer]
za1b1tsu has joined #ruby
yokel has joined #ruby
cthulchu_ has joined #ruby
deepredsky has quit [Ping timeout: 272 seconds]
cthu| has quit [Ping timeout: 248 seconds]
Rapture has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BH23 has quit [Ping timeout: 252 seconds]
<jokke> leitz: mongodb is terrible
<jokke> people using it as a general purpose db is a real pain
jefffrails35 has quit [Ping timeout: 258 seconds]
<jokke> it's a document based db. I've yet to see a standard web project that didn't have relational data
<jokke> heh rubyonrails is far from perfect but sure, it solves quite a range of standard problems pretty elegantly (i'm a long time rails dev)
<jokke> i haven't used it in a long time though
<jokke> still being high on crystal ;)
<jokke> the language, not the drug :)
<jokke> ZAJDAN: when it comes to ruby web frameworks, i really like how hanami is approaching things
conta has quit [Ping timeout: 244 seconds]
Inline has joined #ruby
clemens3 has joined #ruby
ebbflowgo has joined #ruby
vondruch_ has joined #ruby
sandstro_ has joined #ruby
vondruch has quit [Ping timeout: 246 seconds]
vondruch_ is now known as vondruch
sandstrom has quit [Ping timeout: 252 seconds]
za1b1tsu has quit [Ping timeout: 252 seconds]
codefriar has quit [Ping timeout: 248 seconds]
<ebbflowgo> hey, what's the best way to normalize a compounded fastjson_api serialized hash?
conta has joined #ruby
jefffrails35 has joined #ruby
spiette has joined #ruby
znz_jp has quit [Remote host closed the connection]
jhass has joined #ruby
Esa_ has joined #ruby
<al2o3-cr> &>> %w(. - ').tap { |c| 0.step(75) { |i| $> << c[(Math.sin(i) + 1).round] } }
znz_jp has joined #ruby
<rubydoc> # => -''-..-''-...-''-..-''-..-''-..-'''-..-''-..-''-..-''-...-''-..-''-..-''-..-[".", "-", "'"] (https://carc.in/#/r/74x0)
<havenwood> ebbflowgo: Whatcha normalizing about it?
<ebbflowgo> i have a content list that includes lists and lists.user
<ebbflowgo> @havenwood
<ebbflowgo> the list and lists.user gets seraizlied into a included array
<ebbflowgo> i'd like to be able to look at each content object and get the respective lists and user for each list
<ebbflowgo> in my react side i use normalizer which works great
<ebbflowgo> looking for something to normalize the included relationships
<havenwood> ebbflowgo: Have any example data before and after normalization?
<havenwood> It looks like you're talking about this? https://www.npmjs.com/package/normalizer
<ebbflowgo> yes that's the js normalizer
schneider has joined #ruby
<havenwood> ebbflowgo: It's easy with the stdlib to remove non-ASCII characters or replace them with an arbitrary character. I'd probably use the i18n gem for the transliteration.
AJA4350 has joined #ruby
<havenwood> &>> 'André Alçada Padez'.encode(Encoding::ASCII, undef: :replace)
<rubydoc> stderr: -e:2: invalid multibyte char (US-ASCII) (https://carc.in/#/r/74x8)
<havenwood> #=> "Andr? Al?ada Padez"
<havenwood> 'André Alçada Padez'.encode(Encoding::ASCII, undef: :replace, replace: '')
<havenwood> #=> "Andr Alada Padez"
<havenwood> I18n.transliterate('André Alçada Padez')
<havenwood> #=> 'Andre Alcada Padez'
<havenwood> ebbflowgo: ^
<ebbflowgo> here's the data objects
<ruby[bot]> ebbflowgo: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<ebbflowgo> @havenwood ^
deimos has quit [Quit: leaving]
<ebbflowgo> perhaps there's a misunderstanding, rather than removing non-ascii characters, i'm looking to return compound objects, ie content and it's lists and lists.user data
jeremycw has joined #ruby
<havenwood> ebbflowgo: And you're working with MongoDB?
<ebbflowgo> havenwood: postgres and netflix's fastjson_api serializer
<ebbflowgo> it turns active record relations into the json api spec
<havenwood> ebbflowgo: Can you just normalize the text before deserializing it?
<havenwood> ebbflowgo: I'd suggest searching for a gem that does this. I don't really get the "normalization" task. Is it just transliterating non-ASCII characters to their ASCII equivalent?
<ebbflowgo> i've looked all over, that's why i came here D:
BH23 has joined #ruby
aupadhye has quit [Ping timeout: 258 seconds]
<havenwood> ebbflowgo: Can you just "normalize" the serialized JSON? Is there anything else going on other than transliterating non-ASCII characters?
<ebbflowgo> no need for the transliteration
<havenwood> ebbflowgo: what do you need?
<havenwood> I get there's a normalizer node package. I don't know what it does. The top of its docs seem to suggest transliteration.
<ebbflowgo> havenwood: ah miscommunication, this is the package
<ebbflowgo> i have a structure same as the example json
<havenwood> >.>
<havenwood> I guess I was looking at the wrong npm package. No wonder I'm confused.
* havenwood goes to find coffee.
<ebbflowgo> yeah clearly
<ebbflowgo> lol
clemens3 has quit [Quit: WeeChat 1.6]
Fridtjof has quit [Ping timeout: 272 seconds]
<ebbflowgo> sorry about that too, i've been looking at this all morning. the package text blended together
BH23 has quit [Ping timeout: 246 seconds]
<ebbflowgo> this package also takes the normalized json and turns it into the nested result :| https://github.com/yury-dymov/redux-object
za1b1tsu has joined #ruby
codefriar has joined #ruby
<havenwood> ebbflowgo: That looks like a tool for a very specific use case. You'll probably need to find a gem or write one to get this in Ruby.
BH23 has joined #ruby
<ebbflowgo> havenwood, yeah.. i'm surprised because the gem fastjson_api seems to be a popular serializer.. so i'm curious as to what others are doing when they have any relationships on their objects
<havenwood> "Support for belongs_to, has_many and has_one"
<havenwood> ebbflowgo: Doesn't the fast_jsonapi just support that out of the box? https://github.com/Netflix/fast_jsonapi
<ebbflowgo> havenwood: here are my serializers, if that were the case id expect the data to show up in each data object
conta has quit [Quit: conta]
<ebbflowgo> as the data displayed in this gist, i believe fastjson_api shows the relationships, but i'd really expect an easy way to grab the relationship data for the content lists and list.user
sandstro_ has quit [Quit: My computer has gone to sleep.]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4351 is now known as AJA4350
BH23 has quit [Ping timeout: 268 seconds]
yokel has quit [Read error: Connection reset by peer]
BH23 has joined #ruby
yokel has joined #ruby
jefffrails35 has quit [Ping timeout: 252 seconds]
orbyt_ has joined #ruby
SeepingN has joined #ruby
jefffrails35 has joined #ruby
fuzzface has joined #ruby
BH23 has quit [Ping timeout: 258 seconds]
sagax has quit [Ping timeout: 252 seconds]
zacts has quit [Quit: WeeChat 1.9.1]
sagax has joined #ruby
rippa has joined #ruby
queip has quit [Ping timeout: 244 seconds]
gix has joined #ruby
duderonomy has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
queip has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
Josse has quit [Quit: Connection closed for inactivity]
jefffrails35 has quit [Quit: Leaving]
mrpropa has joined #ruby
kenichi has joined #ruby
dbugger has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
AJA4351 is now known as AJA4350
dbugger has quit [Client Quit]
duleja has joined #ruby
<duleja> Hello
solars has joined #ruby
<duleja> Does it make a difference if I store json data to a file and then read it to a variable and pass that variable to a JSON.parse(variable-here) Or this is the same if I just send my json response to a JSON.parse(response)?
mikecmpbll has joined #ruby
<ebbflowgo> same result,
<duleja> yeah
<duleja> I thought so... Thanks for answering
themsay has quit [Ping timeout: 272 seconds]
themsay has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
tdy2 has joined #ruby
kyrylo has joined #ruby
<rokra> Hey, how can I get the value of this variable only if it exists ? p r["interfaces"][0]["mac_address"] --> I have error <main>': undefined method `[]' for nil:NilClass
lucasb has joined #ruby
tdy1 has quit [Ping timeout: 252 seconds]
<phaul> there is fetch, for hash and array from built ins. then you have safe navigation &. altrough with addressing [] it'sa bit inonvinient. blah&.[](index) looks silly but works
sandstrom has joined #ruby
<phaul> inconvinient*
<phaul> so you can chain pr&.[]("interfaces")&.[](0)&. ...
<rokra> It s because I need to aprse a json with some sub array
<rokra> s/aprse/parse
fuzzface has quit [Quit: Leaving]
<al2o3-cr> what's wrong with dig?
<rokra> https://dpaste.de/UUQa -> I need to get value which is the IP
<rokra> dig, checking
michael_imac has joined #ruby
<al2o3-cr> rokra: obj.dig(0, 'interfaces', 0, 'ip_addresses', 0, 'value')
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael_mbp has quit [Ping timeout: 258 seconds]
syndikate has quit [Ping timeout: 258 seconds]
m17 has quit [Ping timeout: 258 seconds]
cpallares has quit [Ping timeout: 258 seconds]
bvdw has quit [Ping timeout: 258 seconds]
linuus has quit [Ping timeout: 258 seconds]
michael_imac is now known as michael_mbp
linuus has joined #ruby
code_zombie has joined #ruby
psmolen has quit [Ping timeout: 248 seconds]
cpallares has joined #ruby
ropeney has quit [Ping timeout: 248 seconds]
yokel has quit [Read error: Connection reset by peer]
ropeney has joined #ruby
psmolen has joined #ruby
yokel has joined #ruby
ramfjord has joined #ruby
jeremycw has quit [Ping timeout: 246 seconds]
al-damiri has joined #ruby
RedSnarf has joined #ruby
hiroaki has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
rippa has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
dviola has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
sauvin has quit [Ping timeout: 252 seconds]
Fridtjof has joined #ruby
r29v has joined #ruby
queip has quit [Ping timeout: 245 seconds]
fuzzface has joined #ruby
queip has joined #ruby
RedSnarf has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
hiroaki has quit [Ping timeout: 252 seconds]
Freshnuts has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ramfjord has quit [Ping timeout: 252 seconds]
leitz has quit [Quit: Leaving]
<rokra> al2o3-cr: thx testing
za1b1tsu has quit [Remote host closed the connection]
<rokra> al2o3-cr: working using obj.dig('interfaces', 0, 'ip_addresses', 0, 'value')
<rokra> al2o3-cr: thx
vjacob has joined #ruby
<ytti> rokra, this looks somewhat like junos :)
<ytti> but not exactly
e is now known as edk
brool has joined #ruby
duleja has quit [Remote host closed the connection]
HeavenDestroyer has joined #ruby
HeavenDestroyer has quit [Quit: leaving]
buckworst has joined #ruby
orbyt_ has joined #ruby
AJA4350 has joined #ruby
GodFather has joined #ruby
buckworst has quit [Quit: Leaving]
englishm has quit [Excess Flood]
jeremycw has joined #ruby
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
kyrylo has joined #ruby
Technodrome has joined #ruby
reber has quit [Remote host closed the connection]
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
SeepingN has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Xeago has quit [Quit: Xeago]
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
mrpropa has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helpa-bot has joined #ruby
helpa has quit [Remote host closed the connection]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
hightower2 has joined #ruby
CCDelivery has joined #ruby
tdy2 is now known as tdy
nowhereman has joined #ruby
mrpropa has joined #ruby
Nirvash has quit [Quit: Ping timeout (120 seconds)]
nowhereman has quit [Ping timeout: 252 seconds]
GodFather has quit [Read error: Connection reset by peer]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
powerbit has quit [Read error: Connection reset by peer]
schneider has quit [Ping timeout: 244 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bougyman> #ruby, meet Ruby: https://photos.app.goo.gl/AisUH7pYtZ9ZJBPe9
fuzzface has quit [Quit: Leaving]
queip has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has joined #ruby
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
cats has quit [Ping timeout: 245 seconds]
cats has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
jeremycw has quit [Ping timeout: 252 seconds]
CCDelivery has quit [Remote host closed the connection]
m_antis has quit [Quit: m_antis]
cats has quit [Ping timeout: 272 seconds]
chris349 has joined #ruby
<chris349> Trying to setup RVM correctly, lots of steps say something about "$HOME/.rvm/scripts/rvm"
meinside has quit [Quit: Connection closed for inactivity]
<chris349> What do I do if I do not have that file? I have /usr/local/rvm/bin/rvm instead where would .rvm directory be located?
<havenwood> chris349: That means you have a "global" install of RVM, which isn't recommended.
<chris349> Ok, so where is .rvm directory? Trying to adapt this command to my system:
<havenwood> chris349: Ideally, uninstall RVM, restart your terminal to drop env, and reinstall RVM as a non-root user without sudo.
<havenwood> chris349: rvm implode --force
<chris349> [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
<havenwood> chris349: There won't be one with a global install.
<SeepingN> same as ~/.rvm/scripts/rvm
<SeepingN> don't you have $HOME defined??
<chris349> I do not have ~/.rvm directory
<havenwood> SeepingN: They don't have RVM installed in the home dir, since they have it installed globally.
<havenwood> chris349: Did you install RVM?
<chris349> Maybe a better question, the bundle install fails with this error: usr/bin/env: ruby_executable_hooks: No such file or directory
<chris349> How do I fix that and make the bundle install succeed
<havenwood> chris349: Did you install RVM?
<havenwood> It's a threshold question, because if you did, you should stop and reinstall locally.
<chris349> with the command (running as root): \curl -sSL https://get.rvm.io
<havenwood> chris349: Okay, so you have a bad install of RVM. RVM isn't meant to work with the root user.
<havenwood> chris349: It is explicitly not supported.
<chris349> But thats not the question, I ssh in as the user and bundle command is found
<havenwood> chris349: rvm implode --force
<chris349> But then I try to run bundle install automated and it fails
<havenwood> chris349: Restart your terminal. Reinstall RVM as a non-Root user.
* SeepingN hits the Nukem button
<chris349> So if I install as the user all these errors will go away?
<havenwood> chris349: Alternatively, you can manually work around root issues. The installation instructions advise to not install as root. You'll have an easier time on that path.
<chris349> Also how can I use that \curl -sSL https://get.rvm.io to install a specific version? I always need to run it, add the correct version, and then delete the default version it installed
<SeepingN> thus not the best way to install
<SeepingN> use your OS's package manage o' choice
<havenwood> chris349: Are you installing Ruby for a development or production environment?
<chris349> What is the best way?? I get \curl -sSL https://get.rvm.io from the RVM site!
<havenwood> chris349: Are you installing Ruby for a development or production environment?
<chris349> Right now its development. To run automated tests using Jenkins CI
<chris349> But normally I use the same process for production too
<havenwood> chris349: Okay, a local install is sane in development. Usually, it's advised not to use a version switcher in prod, fwiw.
<chris349> So anyways you say not to follow this instruction? https://rvm.io/rvm/install
victorqueiroz has quit []
victorqueiroz has joined #ruby
<havenwood> chris349: Those instructions advise to do a single-user install as a non-root user.
<havenwood> chris349: Do follow them.
<havenwood> chris349: If a part of those instructions isn't clear, let's fix it so it's clear.
<chris349> havenwood, Lets not debate that. The question is, can I specify the Ruby version from the start?
m_antis has joined #ruby
<havenwood> chris349: Yes, you can.
<chris349> havenwood, Would you mind sharing with me the command to do that?
<havenwood> chris349: The reason I'd want to debate it is I'm one of the maintainers of RVM, so I'd like the instructions to work. Just saying, if you think they're broken, let's fix them.
<havenwood> chris349: By default, installing RVM doesn't install a version of Ruby. Do you want to install RVM and a Ruby of a particular version or something else?
vondruch has quit [Ping timeout: 272 seconds]
<havenwood> chris349: You can install RVM along with a Ruby if you want. Or do them in separate steps. Up to you.
<havenwood> By default, RVM does not install a Ruby. Normally, you install RVM, then use RVM to install a Ruby.
<havenwood> chris349: I'm unclear whether you want to install a particular version of RVM, or RVM alongside a particular version of Ruby?
<chris349> I would prefer to pass to the \curl -sSL https://get.rvm.io command the version of ruby I want
<chris349> The only way I know how to do it is run that command, install the ruby version, then uninstall the default version
<havenwood> chris349: You can see the installer help by running:
<havenwood> \curl -sSL https://get.rvm.io | bash -s stable --help
<havenwood> chris349: Oh, you want a version of Ruby.
<havenwood> chris349: \curl -sSL https://get.rvm.io | bash -s stable --ruby=2.6.3
<havenwood> chris349: Anyhoo, pass a --ruby flag with the engine and version you want.
<havenwood> chris349: Install RVM as a non-root user without sudo.
<havenwood> chris349: If you must use an unsupported root install, instructions are here: https://rvm.io/support/faq#i-want-to-install-for-root-only
<havenwood> chris349: Be sure to restart your terminal between uninstalling and reinstalling.
<havenwood> chris349: \curl -sSL https://get.rvm.io | bash -s head --ruby=2.6.3
<havenwood> (You were using master.)
cats has joined #ruby
<chris349> This is odd, its trying to install ruby from the system package manager? Installing required packages: ruby...jenkins password required for 'yum install -y ruby':
<havenwood> chris349: I think you'd have had better luck if you asked the channel how to install Ruby in development on your OS. :P
<chris349> Anyways I install as non-root user and in the shell rvm/ruby works fine, but in the Jenkins CI script it still fails: /tmp/jenkins8124905322485742601.sh: line 2: bundle: command not found
<havenwood> chris349: gem install bundler
<havenwood> chris349: What OS?
* havenwood guesses CentOS
<havenwood> chris349: What OS/distro and version?
<havenwood> Anyhoo if it's CentOS you can use EPEL for Ruby 2.4: https://www.softwarecollections.org/en/scls/rhscl/rh-ruby24/
<chris349> havenwood, I do that but still same error. CentOS 7. I need Ruby 2.1.7 for this
<havenwood> Ah, EPEL does have Ruby 2.5.
<havenwood> chris349: Ruby 2.1 is sooo old!
<chris349> I can run the app in production on Centos 7, but I am trying to run these rspec tests under Jenkins CI. Unless theres a better system to use for that
<havenwood> chris349: It's past end of life, so you should use a package manager with LTS to get security backports.
<havenwood> chris349: Ruby 2.1 has known security vulnerabilities that are not patched if you compile it yourself.
<chris349> havenwood, Great. The issue is bundle command is found in my terminal and not found when I try to run this through Jenkins CI under the same user
<havenwood> gotta run, good luck!!
<chris349> I do that and still no go
<chris349> + bundle --version
<chris349> line 5: bundle: command not found
cthu| has joined #ruby
Esa_ has quit []
cthulchu_ has quit [Ping timeout: 258 seconds]
staticx has quit [Remote host closed the connection]
staticx has joined #ruby
m_antis_ has joined #ruby
mochiyoda_ has quit [Ping timeout: 252 seconds]
m_antis has quit [Ping timeout: 245 seconds]
hiroaki has joined #ruby
crankharder has joined #ruby
* al2o3-cr thinks this year has flown by
r29v has quit [Quit: r29v]
renich has joined #ruby
CCDelivery has joined #ruby
* havenwood flies away on a chariot pulled by cats...
<havenwood> chris349: Does RVM work from Jenkins?
<havenwood> chris349: Is it sourced?
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Freshnuts has quit [Quit: Leaving]
m_antis_ has quit [Quit: m_antis_]
m_antis has joined #ruby
bambanx has joined #ruby
r29v has joined #ruby