scottstamp

Activity Graph

Page 1 of 1

2015-12-25

[08:34:49] scottstamp: Ping timeout: 265 seconds

2015-12-07

[14:16:49] scottstamp: Ping timeout: 265 seconds
[15:16:58] scottstamp: has joined #ruby

2015-12-02

[15:35:02] scottstamp: *.net *.split
[16:47:37] scottstamp: has joined #ruby

2015-11-30

[10:00:23] scottstamp: has joined #ruby

2015-11-27

[06:24:11] scottstamp: Ping timeout: 265 seconds
[08:20:48] scottstamp: has joined #ruby
[08:41:33] scottstamp: *.net *.split

2015-11-26

[08:27:21] scottstamp: has joined #ruby
[09:35:14] scottstamp: Ping timeout: 265 seconds
[10:32:07] scottstamp: has joined #ruby
[19:02:04] scottstamp: *.net *.split
[22:51:37] scottstamp: has joined #ruby

2015-11-17

[17:58:46] scottstamp: Ping timeout: 265 seconds
[18:56:46] scottstamp: has joined #ruby

2015-11-16

[22:54:46] scottstamp: Ping timeout: 265 seconds
[23:50:44] scottstamp: has joined #ruby

2015-11-06

[08:27:11] scottstamp: Ping timeout: 265 seconds
[08:29:15] scottstamp: has joined #ruby

2015-11-04

[07:06:17] scottstamp: Ping timeout: 265 seconds
[07:08:13] scottstamp: has joined #ruby

2015-11-02

[17:33:28] scottstamp: Ping timeout: 265 seconds
[17:39:09] scottstamp: has joined #ruby

2015-10-23

[09:20:33] scottstamp: Ping timeout: 265 seconds
[09:23:48] scottstamp: has joined #ruby

2015-10-16

[00:31:21] scottstamp: has joined #ruby

2015-10-15

[23:33:21] scottstamp: Ping timeout: 265 seconds

2015-10-14

[16:50:17] scottstamp: *.net *.split
[16:59:55] scottstamp: has joined #ruby
[17:07:19] scottstamp: *.net *.split
[17:10:26] scottstamp: has joined #ruby

2015-10-08

[09:18:26] scottstamp: Ping timeout: 265 seconds
[09:22:27] scottstamp: has joined #ruby

2015-10-07

[05:51:14] scottstamp: Ping timeout: 265 seconds
[06:19:45] scottstamp: has joined #ruby

2015-09-07

[03:07:04] scottstamp: Ping timeout: 265 seconds
[05:06:18] scottstamp: has joined #ruby

2015-08-13

[07:41:28] scottstamp: *.net *.split
[07:43:01] scottstamp: has joined #ruby
[07:46:51] scottstamp: Ping timeout: 256 seconds
[08:42:46] scottstamp: has joined #ruby

2015-08-04

[08:35:13] scottstamp: *.net *.split
[08:37:38] scottstamp: has joined #ruby

2015-07-09

[16:48:32] scottstamp: Ping timeout: 265 seconds
[16:59:06] scottstamp: has joined #ruby

2015-06-26

[02:26:52] scottstamp: Ping timeout: 265 seconds
[02:30:35] scottstamp: has joined #ruby

2015-06-24

[04:37:52] scottstamp: Ping timeout: 265 seconds
[04:38:25] scottstamp: has joined #ruby

2015-06-21

[13:21:00] scottstamp: Ping timeout: 265 seconds
[14:17:28] scottstamp: has joined #ruby

2015-06-18

[22:55:16] scottstamp: *.net *.split
[23:06:09] scottstamp: has joined #ruby

2015-06-15

[00:41:07] scottstamp: Ping timeout: 265 seconds
[00:41:17] scottstamp: has joined #ruby

2015-06-12

[03:53:27] scottstamp: Ping timeout: 265 seconds
[03:56:19] scottstamp: has joined #ruby
[03:57:44] scottstamp: Max SendQ exceeded
[03:57:56] scottstamp: has joined #ruby

2015-05-29

[21:33:05] scottstamp: Read error: Connection reset by peer
[21:38:01] scottstamp: has joined #ruby

2015-05-28

[10:47:01] scottstamp: Ping timeout: 265 seconds
[10:49:36] scottstamp: has joined #ruby

2015-05-27

[22:35:44] scottstamp: Ping timeout: 265 seconds
[22:38:14] scottstamp: has joined #ruby
[22:47:20] scottstamp: Ping timeout: 265 seconds
[23:26:58] scottstamp: has joined #ruby

2015-05-26

[18:02:48] scottstamp: Ping timeout: 265 seconds
[18:04:19] scottstamp: has joined #ruby

2015-05-22

[06:38:30] scottstamp: *.net *.split
[07:17:13] scottstamp: has joined #ruby

2015-05-21

[06:43:18] scottstamp: *.net *.split
[07:52:42] scottstamp: has joined #ruby

2015-01-26

[21:15:23] scottstamp: Hmm, am I misunderstanding something with routes? This is one of the lines in my initializer, get 'explore(/:sort(/:tags))' => 'explore#index', I'd expect /explore/popular to map to explore#index{params[:sort]=>"popular"}, but for some reason it's setting :tag instead.
[21:15:51] scottstamp: nginx w/ passenger <3 my dream stack
[21:16:39] scottstamp: Oh, thanks wallerdev, I was trying #rails and thought it was odd nobody was there.
[21:17:21] scottstamp: Hey all, I'm trying to setup a route - get 'explore(/:sort(/:tags))' => 'explore#index' - for some reason /explore/popular is mapping popular to :tags instead of :sort. Am I doing something wrong?
[21:19:28] scottstamp: Never mind, I'm stupid. It's an issue in my gem.
[21:20:53] scottstamp: I considered it, but :tags is never set unless :sort is. :P

2015-01-25

[23:49:38] scottstamp: Hey, is there a "Rails" way of checking if a parameter is set inside a controller? In my use case, I have a few routes pointing to the same controller method with an optional parameter passed to the route. I remembered reading Rails has some validation stuff, figured what I'm trying to do probably belongs there.
[23:50:04] scottstamp: basically I need to do if params[:tag] is set { ...} else { ... }
[23:53:31] scottstamp: ah, present. That's what I was looking for.
[23:54:03] scottstamp: Neat, that looks rather useful for the next few features I need to implement actually.

2015-01-23

[13:04:55] scottstamp: Hmm, I'm trying to build a model but I'm getting an empty migration file -- would that happen if a table already exists in my db?
[13:06:35] scottstamp: softinio: isn't it great being a polyglot? ;D
[13:06:40] scottstamp: avril14th: hm, weird
[13:06:55] scottstamp: I didn't figure so
[13:07:01] scottstamp: wonder why this is happening then
[13:07:31] scottstamp: It's in my schema, but the migration file just has an empty change block
[13:08:08] scottstamp: def change { create_table :tracks do |t| { ... t.timestamps null: false } }
[13:08:25] scottstamp: ... is where I'd expect my definitions but it's just whitespace
[13:09:15] scottstamp: it also removed another previously defined schema from schema.rb
[13:09:28] scottstamp: screw it, I'll just start over, haha
[13:10:39] scottstamp: when in doubt, throw it under a bus. ^_^
[13:47:05] scottstamp: avril14th: turns out the problem was a misplaced --force-plural flag, guess the parser for rails g doesn't like things out of order ;)
[13:47:32] scottstamp: wald0: 3.0.0-b#
[13:48:06] scottstamp: or -beta if you want to be terse
[13:48:48] scottstamp: Semantic versioning is about the only thing Java gets right. ^_^
[13:52:07] scottstamp: wald0: I would agree it can get confusing when you branch a beta from a stable, but the idea is that versioning tools will take your whole number as precedence over something flagged. I suppose doing it *right* would be 3.1.0-beta (or 4.0.0-beta if it's a major update)
[13:52:27] scottstamp: then when you drop your flag, 4.0.0 takes precedence over 4.0.0-beta
[13:58:16] scottstamp: then they're doing it wrong. :3
[15:14:10] scottstamp: grr, wtf. I'm trying to include a gem I built into a rails project but rake --tasks is throwing an error from that gem saying it can't find httparty. http://pastie.org/9854607
[15:14:27] scottstamp: I have require 'rubygems' at the top of the file that's requiring httparty already

2015-01-20

[12:36:49] scottstamp: config.vm.network[:ip]
[12:40:52] scottstamp: hate that bloody syntax. not sure bahamans -- have you tried asking over in #vagrant? I'm sure someone in there would have an answer at hand.
[12:41:46] scottstamp: It is, but it also sounds like you're trying to do something that'd be pretty common in a Vagrantfile. :P
[12:43:19] scottstamp: Just meant *I* don't like it, setting things with that sort of key/val feels clumsy to me, it's very akin to how a rack config file defines things. And oh?
[12:43:58] scottstamp: ddv: not me. ;)
[12:44:19] scottstamp: haha, it's okay, #youtried
[12:48:25] scottstamp: *phew*, I was hoping it was a typo when you said feb=31 days
[12:48:47] scottstamp: ACTION did not want to learn another calendar locale
[12:55:13] scottstamp: it doesn't hate you, math hates you. it's always math.
[12:55:34] scottstamp: also, you're adding 1 to c then checking if the remainder is zero in the month of january
[12:55:38] scottstamp: if it doesn't, subtract 19
[12:55:53] scottstamp: problem - subtract 19 from a number you just added a one to
[12:55:59] scottstamp: solution - subtract 20
[12:56:10] scottstamp: https://eval.in/245240
[12:59:30] scottstamp: you're right. unno then D:
[13:03:06] scottstamp: Any particular reason you're not just using the Date class?
[13:03:47] scottstamp: > require 'date'; puts Date.new(2001,1,1) + 19
[13:04:10] scottstamp: hmm, guess that's not how the evalbot works. lol
[13:12:58] scottstamp: Lol, you'll get the same answer re: Date

2015-01-19

[03:30:56] scottstamp: I'm trying to override String.truncate, but I'm getting an error when I try to alias the original method, "undefined method `truncate' for class `String' (NameError)", here's my code - http://pastie.org/9839370
[03:30:58] scottstamp: any thoughts?
[03:40:57] scottstamp: D'oh, it is. :\ that explains it, then.
[03:41:02] scottstamp: Thanks xxneolithicxx
[03:45:18] scottstamp: If I was actually using ActionView, I would be. ;P
[03:45:32] scottstamp: This is a Rails-less app, just trying to get that functionality
[03:48:17] scottstamp: http://pastie.org/9839390 there we go, that seems to work. :) lol thanks for saving me from a stupid mistake xxneolithicxx
[04:01:47] scottstamp: hmm, any reason you're iterating over the products before pushing each element back into csv_object? Are you planning to do some other processing in that block?
[04:03:12] scottstamp: I'm not sure if what you're doing adds any performance overhead, but there's a built in for that already, you can just do csv_object.append products
[04:15:13] scottstamp: Shouldn't be, but sure.
[04:20:31] scottstamp: heh, yeah that'd do it xxneolithicxx - wouldn't merge squash that empty element?
[04:21:00] scottstamp: actually nvm, looking at the behavior now, it wouldn't
[04:23:11] scottstamp: the spare element that shellox is talking about :P never mind me, I'm trying to squash a CSS bug right now, lol my feedback probably won't be too useful atm
[11:41:45] scottstamp: It's kind of like shorthand for a = b if !a.nil?
[11:43:36] scottstamp: Use a defined? check first.
[11:44:34] scottstamp: ||= won't save you if you're trying to apply it to an object that doesn't exist
[11:45:19] scottstamp: oh, derp, you're right
[11:46:11] scottstamp: http://www.rubyinside.com/what-rubys-double-pipe-or-equals-really-does-5488.html "Undefined Variables: Another Tricky Case" > "That is, a variable assignment, even if not run, immediately summons that variable into being."
[11:48:54] scottstamp: Ruby: if there's an edge case, there's probably an accompanying blog post.
[12:07:14] scottstamp: nobody said explaining things made you correct! :3
[12:18:04] scottstamp: Resque/Sidekiq with memcached for your object store maybe?
[12:26:07] scottstamp: eh both are from the looks of things - could just run the Redis db without write to disk *shrug*

2015-01-15

[01:32:43] scottstamp: word, it's like -5C here. :(
[01:34:51] scottstamp: Eh, if I do 'ClassName.get_const('InnerClassName')', does that provide the same functionality as 'Object.get_const('ClassName::InnerClassName')', or does that only work on Modules? the doc is a little unclear.
[01:35:18] scottstamp: I'm over in Newfoundland, on the coast, so it's frigid and humid. </3
[01:36:12] scottstamp: I suppose the easiest way to figure this out would be to try it, haha
[01:36:55] scottstamp: Welp, I guess not - undefined method
[01:37:27] scottstamp: I'm an idiot, lol, yeah
[01:37:48] scottstamp: That makes sense, then.

2014-12-02

[04:14:34] scottstamp: I'm coming back to Ruby for the first time in a while, since 1.8.7 (iirc), any major documented changes I should read up on?
[06:54:35] scottstamp: :( the ror wiki is down
[06:55:08] scottstamp: I'm tempted to say it did.
[06:55:26] scottstamp: wiki.rubyonrails.org, but its either down or being DDoSed
[06:55:34] scottstamp: oh... I don't know?
[06:59:42] scottstamp: sevenseacat, seems weird that could affect a subdomain and not a root
[07:04:24] scottstamp: I've used Gollum before, it's a nice base.