quarters

Activity Graph

Page 1 of 4 | Next »

2019-07-19

[06:11:31] quarters: Ping timeout: 276 seconds
[06:13:48] quarters: has joined #ruby
[06:43:13] quarters: Ping timeout: 250 seconds
[06:45:46] quarters: has joined #ruby
[07:17:01] quarters: Ping timeout: 250 seconds
[07:20:28] quarters: has joined #ruby
[07:57:56] quarters: Ping timeout: 252 seconds
[08:01:27] quarters: has joined #ruby

2019-07-15

[06:50:29] quarters: *.net *.split
[07:16:47] quarters: has joined #ruby
[08:27:06] quarters: *.net *.split
[08:36:19] quarters: has joined #ruby

2019-07-13

[19:34:27] quarters: has joined #ruby
[19:34:27] quarters: Changing host
[19:34:27] quarters: has joined #ruby
[19:34:27] quarters: Changing host

2019-07-09

[01:06:38] quarters: Ping timeout: 258 seconds
[01:08:49] quarters: has joined #ruby

2019-07-05

[20:49:54] quarters: has joined #ruby
[20:49:54] quarters: Changing host
[20:49:54] quarters: has joined #ruby
[20:49:54] quarters: Changing host

2019-06-05

[02:17:45] quarters: Ping timeout: 250 seconds
[02:20:43] quarters: has joined #ruby

2019-06-03

[12:41:49] quarters: Ping timeout: 250 seconds
[12:43:45] quarters: has joined #ruby
[13:40:12] quarters: Ping timeout: 252 seconds
[13:42:34] quarters: has joined #ruby

2019-05-30

[12:45:03] quarters: Ping timeout: 252 seconds
[12:48:01] quarters: has joined #ruby
[12:57:31] quarters: Ping timeout: 252 seconds
[13:07:55] quarters: has joined #ruby
[13:19:22] quarters: Ping timeout: 252 seconds
[13:20:49] quarters: has joined #ruby

2019-04-30

[05:38:28] quarters: woodruffw, thanks. I was wondering if some_hash.find or find_all will be a linear operation

2019-04-28

[03:58:06] quarters: hello. I have a file "foo.txt" in the same folder as "foo.rb" where I have a line "foo = File.new("foo.txt","r")" but am getting an error saying that such a file doesn't exist. The documentation here https://ruby-doc.org/core-2.1.4/File.html#method-c-open doesn't really clarify for me.
[04:47:18] quarters: I found that I would need to check Dir.pwd
[04:48:04] quarters: I was wondering how to check whether or not a key in a hash starts with a particular string

2019-04-27

[03:05:18] quarters: hello. I was wondering if there's a way to get [1,2,3,3,5] from removing [1,2,4] from [1,1,2,2,4,3,3,5] with a single operator. Diff unfortunately removes all instances of the elements [1,2,4] found in the other array
[05:49:13] quarters: havenwood, thank you
[05:49:36] quarters: ah, thanks!
[20:10:37] quarters: I was wondering how I can use vs code's debugger with bundle exec rspec
[20:19:57] quarters: Swyper, yes. haha. how'd you guess
[20:20:24] quarters: but what did I do to give it away?
[20:20:44] quarters: oh, I thought you meant alcoholics anonymous
[20:21:16] quarters: I'm on the ruby section now
[20:21:43] quarters: do you have vs code's debugger setup?
[20:23:08] quarters: cool. _just_ finished that

2019-04-21

[00:32:43] quarters: hello. I was wondering if anyone can advise on how to debug specs with vs code's debugger
[18:56:57] quarters: I was wondering how to pass a hash's key, value pair as a hash into a proc
[18:57:23] quarters: while iterating over it using #each

2019-04-14

[23:36:01] quarters: Changing host
[23:36:02] quarters: has joined #ruby
[23:36:02] quarters: Changing host
[23:36:02] quarters: has joined #ruby

2019-04-13

[05:48:11] quarters: hello. I was wondering how to refactor this to avoid an exception(found being an integer): "if found != nil && found > i"
[05:54:33] quarters: nm. i was also potentially nil, which was the issue
[08:18:48] quarters: phaul, thank you
[16:49:41] quarters: *.net *.split

2019-04-10

[20:28:12] quarters: Ping timeout: 252 seconds
[20:30:34] quarters: has joined #ruby
[21:25:14] quarters: Ping timeout: 258 seconds
[21:27:37] quarters: has joined #ruby

2019-04-08

[00:57:16] quarters: has joined #ruby
[00:57:46] quarters: hello. I'm having an issue with running pry without readline and was wondering what the standard solution for this si
[00:57:51] quarters: this is on linux
[01:14:13] quarters: adam12, I just tried installing rb-readline, but I'm getting the same error
[01:14:30] quarters: * Use the pry-coolline gem, a pure-ruby alternative to Readline
[01:14:30] quarters: * Use the rb-readline gem, which is a pure-Ruby port of Readline
[01:14:30] quarters: * Rebuild Ruby with Readline support using `--with-readline`
[01:14:30] quarters: Possible solutions:
[01:14:30] quarters: Sorry, you can't use Pry without Readline or a compatible library.
[01:15:03] quarters: gem install rb-readline
[01:17:05] quarters: like "bundle exec pry"?
[01:18:01] quarters: adam12, I had tried it with the same issue
[01:19:25] quarters: adam12, like "pry -rreadline"? I just tried it and got an error there as well
[01:20:37] quarters: kind of different, but the underlying error is the same I think: libreadline.so.7: cannot open shared object file: No such file or directory - /home/quarters/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/x86_64-linux/readline.so (LoadError)
[01:21:24] quarters: yes, it does
[01:23:01] quarters: adam12, sure
[01:24:24] quarters: adam12, it's been awhile since I've touched ruby. is libreadline also a ruby gem?
[01:24:33] quarters: or is that a system package
[01:25:12] quarters: I'll try to hunt it down and install it
[01:25:31] quarters: readline appears to already be installed
[01:25:38] quarters: readline 8 for arch linux
[01:25:51] quarters: I'll reinstall it
[01:26:14] quarters: I'm fine with reinstalling ruby. is that course ill-advised?
[01:26:35] quarters: removing it and reinstalling a more current version
[01:27:57] quarters: ok. I'm uninstalling it now
[01:33:20] quarters: adam12, uninstalling and reinstalling ruby fixed it
[01:35:04] quarters: readline.so
[01:42:36] quarters: adam12, thanks

2018-12-06

[22:02:06] quarters: Ping timeout: 252 seconds

2018-11-27

[18:43:17] quarters: something I've been puzzled about is how to improve a web app after having move from from mvp to full implementation of all features. is this stage possible where a web app is bugfree and nothing else is left to implement?
[18:46:02] quarters: like even the basic ruby on rails microblog tutorial app. what would be considered a bug there? if it received traffic that demands the addition of maybe other instances of that microblog webapp?
[18:46:08] quarters: with a load balancer
[18:46:48] quarters: or the final project in the rails tutorial by Hartl
[18:57:45] quarters: I guess I'm trying to get a high level view of what drives constant refactoring of a web app in the absence of scaling issues or introduction of new features
[18:58:01] quarters: even with desktop software development
[18:58:14] quarters: I reckon that there's not as much activity in that space?

2018-11-21

[16:36:02] quarters: hello. I'm trying to work with legacy code that uses attr_accessible and am struggling to understand it. I want to refactor this because attr_accessible is deprecated in the version of Rails I want to upgrade to: https://hastebin.com/nokajaduwi.rb is one of the models
[17:18:31] quarters: I had also installed devise and would like to remove it and did so from my gemfile but now my server is broken and was wondering how to fix it: /home/qkay/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `block in load_missing_constant': uninitialized constant Devise (NameError)

2018-11-19

[19:09:32] quarters: has joined #RubyOnRails
[19:10:23] quarters: hello. I've inherited a project that cites a gem called "javascript-state-machine-rails" to be used with jruby but I can't seem to find that gem anywhere and was wondering if anyone knows where to find out of circulation gems
[19:10:52] quarters: this is code from 2012
[19:19:26] quarters: ooooh. so that's possible too
[19:19:56] quarters: is there a canonical location for where that private gem might've been stored?
[19:20:50] quarters: tubbo: awesome. thanks
[19:43:20] quarters: I'm guessing that gems in a gemfile aren't installed in a rails project but installed in the ruby folder? if so, if there are projects that use different versions of the same gem, are they all installed in that ruby folder?
[20:20:01] quarters: tubbo: gotcha. thanks again!
[21:40:06] quarters: when I try to run rails db:migrate on the following: I get an error "wrong number of arguments (2 for 1)" and was wondering how to fix it: https://pastebin.com/Sy3MxL07
[21:40:59] quarters: Radar: how to write gist without account?
[21:42:25] quarters: Radar, ok. one second
[21:44:55] quarters: https://hastebin.com/ecenucibuf.coffeescript
[21:45:04] quarters: it saved it as coffeescript for whatever reason
[21:45:13] quarters: or it named it that
[21:45:16] quarters: I don't know
[21:45:50] quarters: the stacktrace, then my migration file
[21:46:06] quarters: from line 80 on
[21:48:07] quarters: Radar, I added protected attributes continued to be able to keep the syntax for attr_accessible from legacy code
[21:49:53] quarters: Radar: removing that gem will lead to other breakage and I was wondering if there's a way to troubleshoot without removing that gem
[21:51:18] quarters: Radar: # class PriorityClient < Client; end
[21:51:21] quarters: a comment too
[21:52:54] quarters: and line 15 in protected att contd: object = new(attributes, options)
[21:57:46] quarters: Radar: ah, gotcha
[22:03:39] quarters: Radar: what happens to options then?
[22:03:54] quarters: since new no longer accepts options as an argument
[22:04:02] quarters: at least from what I gather
[22:11:34] quarters: does that mean that validation does not happen through constraints in the database?
[22:28:39] quarters: Radar: I'll definitely wean off of it but I'm a bit confused about how activerecord no longer accepts an options argument but https://edgeguides.rubyonrails.org/active_record_migrations.html says that it still accepts options arguments in migration files
[22:29:04] quarters: I'm not sure if the edgeguides are just not updated and I'll have to find what the current api for migrations is

2018-08-21

[19:34:01] quarters: *.net *.split

2018-07-24

[21:40:00] quarters: has joined #ruby
[21:40:00] quarters: Changing host
[21:40:00] quarters: has joined #ruby
[21:40:00] quarters: Changing host

2018-07-23

[07:29:06] quarters: has joined #RubyOnRails
[15:20:29] quarters: Ping timeout: 256 seconds
[15:27:44] quarters: has joined #ruby

2018-07-20

[00:07:20] quarters: *.net *.split
[00:15:37] quarters: has joined #ruby
[02:27:58] quarters: has joined #ruby
[02:27:58] quarters: Changing host
[02:27:58] quarters: has joined #ruby
[02:27:58] quarters: Changing host

2018-07-18

[02:19:07] quarters: Quit: EliteBNC 1.6.5 - http://elitebnc.org
[02:26:33] quarters: has joined #ruby

2018-06-06

[19:52:55] quarters: has joined #RubyOnRails
[19:53:14] quarters: hello. I was wondering if I can ask about jekyll here
[19:56:59] quarters: akaiiro: oh. didn't know it existed!
[19:57:24] quarters: akaiiro: thanks

2018-05-29

[02:19:40] quarters: has joined #ruby
[02:19:40] quarters: Changing host
[02:19:40] quarters: has joined #ruby
[02:19:40] quarters: Changing host
[02:47:03] quarters: *.net *.split
[02:48:09] quarters: has joined #ruby

2018-04-27

[04:39:57] quarters: has joined #ruby
[04:39:57] quarters: Changing host
[04:39:57] quarters: has joined #ruby
[04:39:57] quarters: Changing host

2018-04-26

[01:11:05] quarters: has joined #ruby
[01:11:05] quarters: Changing host
[01:11:05] quarters: has joined #ruby
[01:11:05] quarters: Changing host
[02:12:53] quarters: Ping timeout: 256 seconds
[02:13:03] quarters: has joined #ruby

2018-04-25

[12:25:48] quarters: *.net *.split
[12:27:18] quarters: has joined #ruby
[12:27:33] quarters: has joined #RubyOnRails
[15:01:19] quarters: *.net *.split
[15:03:05] quarters: has joined #RubyOnRails
[15:03:19] quarters: has joined #ruby
[16:10:24] quarters: *.net *.split

2018-04-15

[16:13:54] quarters: has joined #RubyOnRails
[16:14:02] quarters: has joined #ruby
[16:14:58] quarters: hello. I was trying to run bundle install with rbenv but am getting this message: "rbenv: ruby_executable_hooks: command not found"
[16:38:46] quarters: havenwood: I'm trying to work on a project here: github.com/github/classroom which requires rbenv. Otherwise, I'd use another ruby version manager. but yeah, I moved from rvm and ran rbenv rehash
[16:40:12] quarters: command -v bundle => ~/.rbenv/shims/bundle and gem which bundler => ~/.gem/ruby/2.4.0/gems/bundler-1.15.3/lib/bundler.rb
[16:43:08] quarters: ah, I had jruby-1.7.4 installed and running bundle install led to it prompting me that bundle install exists on that version of ruby
[16:43:15] quarters: so I just uninstalled it for now
[16:43:44] quarters: kind of a brute way of doing it. hopefully I'll figure out how to keep that version of ruby and get it to work
[16:44:00] quarters: but uninstalling jruby made the script work

2018-02-22

[13:59:48] quarters: Ping timeout: 240 seconds

2018-02-04

[06:15:31] quarters: *.net *.split
[06:17:08] quarters: has joined #RubyOnRails

2018-02-03

[15:34:25] quarters: has joined #RubyOnRails

2018-01-25

[17:13:19] quarters: has joined #RubyOnRails

2017-12-01

[18:49:52] quarters: Read error: Connection reset by peer

2017-11-30

[10:02:14] quarters: hello. I was wondering if it's recommended to use react-rails to use react as a front end
[10:11:44] quarters: dminuoso: so my friend coded something in ruby on rails with angular as a front-end but I'm only interested in using the API for that app, whereas, yeah, I'd like to code a separate SPA with node backend
[10:11:53] quarters: I was wondering if that's kosher
[10:13:46] quarters: dminuoso: if I just use the rails app's API, what should I do with the front-end code that's already been written?
[10:13:54] quarters: the app is kind of dead atm
[10:14:01] quarters: and I have the source
[10:14:23] quarters: dminuoso: just the API for that rails app
[10:14:48] quarters: and I'd hit the endpoints of the rails api from my node server
[10:16:21] quarters: your idea about a full separate SPA seems very appealing to me
[10:18:30] quarters: can c-r-a be easily placed on top of the rails app without having to shuffle files within the existing rails file structure?
[10:20:51] quarters: dminuoso: oh...so I think I get what you're saying now. create a new dir, in which I place the c-r-a folder and the rails project?
[10:21:06] quarters: that way they're in the same repo
[10:21:11] quarters: but also not mixing
[10:22:02] quarters: dminuoso: should i just leave the unused angular code in the rails app/views folder as is?
[10:23:44] quarters: dminuoso: yeah, I'd like to remove it, but am unsure as to where breakage would happen. Like can I just delete views wholesale without worrying about breaking the backend? Or is the frontend and backend files more modular in a rails project than I take it for?
[10:24:13] quarters: I haven't played with role manifests at all, but I'll definitely take that tack
[10:25:33] quarters: and the only gem you introduced for that refactor was webpacker?
[10:26:30] quarters: ok. so react-rails should be a good place to start
[10:26:50] quarters: so no new gems needed?
[10:27:01] quarters: instead use a role manifest?
[10:27:13] quarters: yeah, I'd like the 0 coupling very much
[10:27:36] quarters: ah so the cra route makes it unnecessary for me to use gems
[10:27:38] quarters: I get it ow
[10:27:49] quarters: that's super ideal
[10:29:43] quarters: yeah. I'd prefer to avoid using gems when possible
[10:31:05] quarters: I'm not familiar with HMR
[10:32:13] quarters: I've only seen this with rails apps
[10:32:28] quarters: the react apps I've worked with needed to be manually refreshed
[10:34:06] quarters: if a react component is already a stateful one, but I have some properties that I'd like to keep out of the state object so that any changes to it don't trigger a re-render, would you advise against declaring such properties outside of state?
[10:34:46] quarters: kind of the wrong chan...but I figured while we're talking about react...
[10:37:41] quarters: if I already implemented a class stateful component and had an object with used id numbers to track numbers that have been used to prevent duplicates for new list items, I'm not interested in having a component re-render whenever that object is updated with a new id number
[10:38:44] quarters: dminuoso: it isn't directly, but the id will be accessed from a property that IS kept in state eventually
[10:41:00] quarters: I'm still trying to understand what you mean by maintaining full application state
[10:45:46] quarters: where would the state be kept in a raw react solution
[10:46:31] quarters: oh, I think I get what you mean now
[10:47:46] quarters: do you mean that, as opposed to react-rails which causes refreshes during HMRs, using react directly would prevent such refreshes thereby allowing us to have control over the application's state
[11:01:07] quarters: dminuoso: how would a c-r-a based front-end be able to retrieve state if all of the components are functional stateless components?
[11:08:31] quarters: dminuoso: in what instances would you take a different tack where you introduce state to the react tree and not use redux
[11:18:20] quarters: I haven't worked with redux so I'm having trouble conceptualizing how state is persisted to local storage with redux. Is it saved to the browser like a cookie?
[11:20:23] quarters: is the middleware that does this part of redux?
[11:22:24] quarters: dminuoso: I haven't worked with observables at all
[11:23:38] quarters: I'll definitely look into them if this will help keep my react tree statefree and if I get all the attendant benefits of doing so
[11:26:41] quarters: noted. I reckon that the concepts you just listed will come through use rather than me reading articles or textbooks regaring them
[11:32:58] quarters: dminuoso: thanks for your help and advice. definitely quite a bit to chew on when moving forward with my project