juria_roberts

Activity Graph

Page 1 of 1

2019-01-17

[03:45:26] juria_roberts: has joined #RubyOnRails
[03:45:44] juria_roberts: How do I prevent the stack trace from appearing in production?
[04:19:56] juria_roberts: Quit: Page closed

2019-01-15

[01:20:13] juria_roberts: has joined #ruby
[01:20:39] juria_roberts: How to I add a string to all of the lists in the array? https://justpaste.it/77gxq
[01:29:30] juria_roberts: baweaver: tr.map! {|item| item[:posix_groups] = ["ddd"]}
[01:29:52] juria_roberts: baweaver: tr.map! {|item| item[:list] = ["ddd"]}
[01:31:43] juria_roberts: yup thats what I got
[01:32:12] juria_roberts: Should I not use map?
[01:32:45] juria_roberts: thats all there is
[01:32:56] juria_roberts: setting the array and then modifying it
[01:33:42] juria_roberts: actually the array is in a dependency
[01:33:47] juria_roberts: that I have no control over
[01:33:55] juria_roberts: I just need to add another posix group
[01:34:40] juria_roberts: Yeah, but its not an important detail
[01:36:03] juria_roberts: Will give it shot
[01:39:48] juria_roberts: Awesome, it works
[02:50:05] juria_roberts: Ping timeout: 256 seconds

2018-10-25

[00:04:13] juria_roberts: zenspider: Sorry they are environment variables
[01:50:51] juria_roberts: Ping timeout: 256 seconds

2018-10-24

[22:40:07] juria_roberts: has joined #ruby
[22:40:30] juria_roberts: How does ruby provide configure_args and envroot?

2017-09-08

[00:17:01] juria_roberts: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[00:17:32] juria_roberts: has joined #ruby
[00:56:01] juria_roberts: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2017-09-07

[23:31:10] juria_roberts: has joined #ruby
[23:32:29] juria_roberts: How do I check if string contains one of multiple substrings except one?
[23:33:15] juria_roberts: ["abx", "xyz"].any? { |needle| a.include? needle } currently doing this but how do i return false if a contains abxdf
[23:38:06] juria_roberts: konsolebox: is there a way to do it with any?
[23:39:10] juria_roberts: yeah i will use include for the second part thanks :)

2017-08-30

[01:35:03] juria_roberts: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[04:07:41] juria_roberts: has joined #ruby
[04:09:50] juria_roberts: I have a multidimensional array [ ['A'], ['B', 'C']] for C I want the index 1 to be returned. For A I want the index 0 to be returned. How do I achieve this?
[04:11:24] juria_roberts: baweaver: I want to know which array the element belongs to
[04:13:25] juria_roberts: will this work? ary.find_index { |arr| arr.include?"C" }
[04:13:48] juria_roberts: ok will find an editor
[04:14:21] juria_roberts: mkaito: Thanks
[04:17:05] juria_roberts: mkaito: Sorry I am very new to ruby you mean there should be a space between find_index and { right?
[04:17:53] juria_roberts: seems to work without the space there
[04:18:21] juria_roberts: I am using https://repl.it/languages/ruby
[04:19:54] juria_roberts: Thanks a lot guys...It works :)
[04:42:21] juria_roberts: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[05:53:21] juria_roberts: has joined #ruby
[05:53:51] juria_roberts: How do I dynamically create an array with n number of elements and each element is a number except the last 4. For eg n= 10 then i want to output [1, 2, 3, 4, 5, 6, 'this', 'is' ,'the', 'end']
[06:19:39] juria_roberts: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[06:20:35] juria_roberts: has joined #ruby

2017-08-29

[21:57:23] juria_roberts: has joined #ruby

2016-04-08

[05:39:29] juria_roberts: has joined #ruby
[05:41:03] juria_roberts: How can i avoid adding nil to the array? https://repl.it/CD30
[05:43:32] juria_roberts: havenwood: that makes the array nil
[05:43:44] juria_roberts: havenwood: I wanna keep the previous value
[05:50:36] juria_roberts: havenwood: sorry...i guess if its in a function it will return nil if i dont put steps in the end...do you know an elegant way of appending to an array if a condition is satisfied?
[05:56:44] juria_roberts: havenwood: didn't understand...can you edit this example and show? https://repl.it/CD30
[05:58:08] juria_roberts: havenwood: i don't want the extra steps at the end
[06:02:30] juria_roberts: Ox0dea: is there a simpler way?
[06:05:06] juria_roberts: Ox0dea: haha no...its gonna be code reviewed and i just want it to be easy to understand for a person who doesnt know ruby ( I don't know ruby as well)
[06:08:23] juria_roberts: Ox0dea: Cool...i think i will stick to putting the steps at the end
[08:30:08] juria_roberts: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2016-03-31

[05:38:51] juria_roberts: has joined #ruby
[05:40:59] juria_roberts: How do i merge the arrays instead of it being overwritten? https://repl.it/CAym/0
[05:44:30] juria_roberts: Thanks baweaver and Radar..i am new to Ruby :)
[05:45:10] juria_roberts: how do i merge multiple?
[05:45:37] juria_roberts: without chaining merge
[05:46:20] juria_roberts: no another logic will do
[05:48:03] juria_roberts: https://repl.it/CAym/3 doesnt work
[05:51:12] juria_roberts: Ox0dea: so if i have 10 hashes that becomes infeasible
[05:53:31] juria_roberts: Ox0dea: i was wrong i misunderstood
[05:54:16] juria_roberts: Ox0dea: yeah my hashes will have the same keys
[06:03:32] juria_roberts: Ox0dea: Thanks thats awesome..ill read up and try to understand what's happening
[06:11:27] juria_roberts: Ox0dea: Thanks a lot!
[08:03:43] juria_roberts: Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421]

2016-03-30

[01:52:36] juria_roberts: has joined #ruby