ziggy

Activity Graph

Page 1 of 2 | Next »

2016-07-14

[01:53:11] ziggy: Ping timeout: 244 seconds

2016-07-12

[20:03:07] ziggy: has joined #RubyOnRails

2016-07-11

[23:27:03] ziggy: Ping timeout: 276 seconds

2016-07-05

[22:09:18] ziggy: has joined #RubyOnRails

2016-06-02

[03:40:41] ziggy: Ping timeout: 244 seconds
[04:39:54] ziggy: has joined #RubyOnRails
[04:53:07] ziggy: Ping timeout: 252 seconds

2016-06-01

[03:30:33] ziggy: Ping timeout: 240 seconds
[03:59:21] ziggy: has joined #RubyOnRails
[04:06:28] ziggy: Ping timeout: 264 seconds
[08:06:26] ziggy: has joined #RubyOnRails
[08:10:59] ziggy: Ping timeout: 260 seconds

2016-05-28

[03:49:04] ziggy: Ping timeout: 240 seconds
[04:47:24] ziggy: has joined #RubyOnRails
[04:47:24] ziggy: Changing host
[04:47:24] ziggy: has joined #RubyOnRails
[05:04:21] ziggy: Ping timeout: 246 seconds
[09:04:00] ziggy: has joined #RubyOnRails
[09:04:00] ziggy: Changing host
[09:04:00] ziggy: has joined #RubyOnRails
[09:08:15] ziggy: Ping timeout: 250 seconds
[12:06:30] ziggy: has joined #RubyOnRails
[12:11:39] ziggy: Ping timeout: 276 seconds
[15:08:55] ziggy: has joined #RubyOnRails
[15:08:55] ziggy: Changing host
[15:08:55] ziggy: has joined #RubyOnRails
[15:13:21] ziggy: Ping timeout: 246 seconds

2016-05-26

[01:35:44] ziggy: Ping timeout: 260 seconds
[02:33:54] ziggy: has joined #RubyOnRails
[02:33:54] ziggy: Changing host
[02:33:54] ziggy: has joined #RubyOnRails
[02:46:04] ziggy: Ping timeout: 264 seconds
[04:44:54] ziggy: has joined #RubyOnRails
[04:49:37] ziggy: Ping timeout: 260 seconds
[07:47:13] ziggy: has joined #RubyOnRails
[07:52:09] ziggy: Ping timeout: 276 seconds
[10:49:40] ziggy: has joined #RubyOnRails
[10:54:48] ziggy: Ping timeout: 276 seconds
[14:53:02] ziggy: has joined #RubyOnRails
[14:57:27] ziggy: Ping timeout: 260 seconds
[16:49:20] ziggy: has joined #RubyOnRails

2016-05-25

[03:47:06] ziggy: has joined #RubyOnRails

2016-05-24

[21:56:43] ziggy: has joined #RubyOnRails
[23:45:33] ziggy: Ping timeout: 276 seconds

2016-03-19

[04:03:18] ziggy: has joined #RubyOnRails
[04:07:41] ziggy: Ping timeout: 250 seconds

2016-03-18

[01:47:31] ziggy: has joined #RubyOnRails
[06:41:33] ziggy: Ping timeout: 240 seconds

2016-02-03

[04:58:22] ziggy: has joined #RubyOnRails
[05:02:54] ziggy: Remote host closed the connection

2016-01-31

[22:48:55] ziggy: Ping timeout: 240 seconds

2016-01-29

[16:45:45] ziggy: has joined #RubyOnRails

2016-01-28

[19:22:14] ziggy: Remote host closed the connection

2016-01-27

[10:21:29] ziggy: has joined #RubyOnRails
[10:21:29] ziggy: Changing host
[10:21:29] ziggy: has joined #RubyOnRails

2016-01-25

[02:53:15] ziggy: Ping timeout: 240 seconds

2016-01-23

[01:12:35] ziggy: Ping timeout: 245 seconds
[05:25:09] ziggy: has joined #RubyOnRails

2016-01-22

[02:08:59] ziggy: has joined #RubyOnRails
[02:08:59] ziggy: Changing host
[02:08:59] ziggy: has joined #RubyOnRails

2016-01-21

[01:14:15] ziggy: Ping timeout: 240 seconds
[02:08:44] ziggy: has joined #RubyOnRails
[02:08:44] ziggy: Changing host
[02:08:44] ziggy: has joined #RubyOnRails
[04:04:30] ziggy: Ping timeout: 256 seconds

2016-01-17

[22:53:33] ziggy: *.net *.split
[22:58:00] ziggy: has joined #RubyOnRails

2016-01-16

[02:09:44] ziggy: has joined #RubyOnRails

2016-01-11

[12:14:03] ziggy: Ping timeout: 260 seconds

2016-01-08

[04:53:11] ziggy: has joined #RubyOnRails
[04:53:11] ziggy: Changing host
[04:53:11] ziggy: has joined #RubyOnRails
[05:28:53] ziggy: Ping timeout: 246 seconds
[07:11:54] ziggy: has joined #RubyOnRails
[08:30:11] ziggy: Ping timeout: 264 seconds
[09:29:33] ziggy: has joined #RubyOnRails

2016-01-06

[22:04:34] ziggy: Ping timeout: 240 seconds

2016-01-05

[04:35:48] ziggy: has joined #RubyOnRails
[04:35:48] ziggy: Changing host
[04:35:48] ziggy: has joined #RubyOnRails

2016-01-04

[06:56:00] ziggy: Ping timeout: 264 seconds

2016-01-03

[03:21:53] ziggy: Ping timeout: 276 seconds
[03:57:04] ziggy: Changing host
[03:57:04] ziggy: has joined #RubyOnRails
[03:57:05] ziggy: has joined #RubyOnRails
[07:33:30] ziggy: Ping timeout: 272 seconds
[08:06:01] ziggy: has joined #RubyOnRails
[08:06:01] ziggy: Changing host
[08:06:01] ziggy: has joined #RubyOnRails
[08:10:32] ziggy: Ping timeout: 250 seconds
[08:24:34] ziggy: has joined #RubyOnRails
[08:24:34] ziggy: Changing host
[08:24:34] ziggy: has joined #RubyOnRails
[20:46:59] ziggy: Ping timeout: 264 seconds
[20:56:24] ziggy: has joined #RubyOnRails

2016-01-02

[02:39:20] ziggy: Ping timeout: 265 seconds
[03:37:16] ziggy: has joined #RubyOnRails
[04:24:11] ziggy: Ping timeout: 264 seconds
[04:36:43] ziggy: has joined #RubyOnRails
[04:36:43] ziggy: Changing host
[04:36:43] ziggy: has joined #RubyOnRails
[06:16:10] ziggy: Ping timeout: 250 seconds
[06:23:10] ziggy: has joined #RubyOnRails
[06:23:10] ziggy: Changing host
[06:23:10] ziggy: has joined #RubyOnRails

2016-01-01

[04:39:57] ziggy: has joined #RubyOnRails
[04:54:03] ziggy: Ping timeout: 260 seconds
[19:06:22] ziggy: has joined #RubyOnRails
[19:06:23] ziggy: has joined #RubyOnRails
[19:06:23] ziggy: Changing host
[20:03:29] ziggy: Ping timeout: 265 seconds
[20:31:50] ziggy: has joined #RubyOnRails
[20:31:56] ziggy: has joined #RubyOnRails
[20:31:56] ziggy: Changing host

2015-12-31

[04:33:06] ziggy: has joined #RubyOnRails
[04:53:54] ziggy: Ping timeout: 245 seconds

2015-12-30

[03:47:36] ziggy: has joined #RubyOnRails
[03:47:36] ziggy: Changing host
[03:47:36] ziggy: has joined #RubyOnRails
[05:42:06] ziggy: Ping timeout: 240 seconds

2015-12-21

[08:09:51] ziggy: has joined #ruby
[08:09:52] ziggy: has joined #ruby
[08:09:52] ziggy: has joined #RubyOnRails
[08:09:52] ziggy: Changing host
[08:09:52] ziggy: has joined #RubyOnRails
[20:15:17] ziggy: Read error: Connection reset by peer

2015-12-17

[10:42:04] ziggy: has joined #RubyOnRails
[10:42:04] ziggy: has joined #ruby
[10:42:05] ziggy: has joined #ruby
[10:42:05] ziggy: has joined #RubyOnRails
[10:42:05] ziggy: Changing host
[10:49:36] ziggy: Ping timeout: 272 seconds
[10:57:27] ziggy: has joined #ruby
[10:57:27] ziggy: has joined #RubyOnRails
[10:57:27] ziggy: Changing host
[10:57:27] ziggy: has joined #RubyOnRails
[10:57:27] ziggy: has joined #ruby
[15:07:20] ziggy: Ping timeout: 255 seconds
[15:09:42] ziggy: has joined #RubyOnRails
[15:09:42] ziggy: has joined #ruby
[15:09:43] ziggy: has joined #ruby
[15:09:43] ziggy: has joined #RubyOnRails
[15:09:43] ziggy: Changing host
[15:14:24] ziggy: Ping timeout: 256 seconds

2015-12-14

[16:19:36] ziggy: Ping timeout: 272 seconds

2015-12-11

[04:20:25] ziggy: Ping timeout: 250 seconds
[17:15:36] ziggy: has joined #RubyOnRails
[17:15:36] ziggy: has joined #ruby
[17:15:37] ziggy: has joined #ruby
[17:15:37] ziggy: has joined #RubyOnRails
[17:15:37] ziggy: Changing host

2015-12-09

[19:38:43] ziggy: has joined #ruby
[19:40:41] ziggy: dumb question. I'm trying to clean up a deployment image (it's quite large). is there any reason that I can't remove APP_ROOT/vendor/bundle/ruby/2.2.0/cache/*.gem after I bundle install?
[20:53:36] ziggy: has joined #RubyOnRails
[20:53:42] ziggy: dumb question. I'm trying to clean up a deployment image (it's quite large). is there any reason that I can't remove APP_ROOT/vendor/bundle/ruby/2.2.0/cache/*.gem after I bundle install?
[20:56:44] ziggy: I'm `bundle install --deployment --clean --no-cache` which I thought would do the same thing as bundle clean
[20:56:48] ziggy: I'll check
[21:00:53] ziggy: commented
[21:03:37] ziggy: generally first_date and end_date are an expression; I find it easier to read when you surround them in ()
[21:03:41] ziggy: that was my answer
[21:04:15] ziggy: 1.week.ago..Time.current still works I think
[21:24:03] ziggy: speakingcode: send_file is your answer, but the file should be in public
[21:24:08] ziggy: since that's your docroot
[21:24:53] ziggy: block it with the web server
[21:25:24] ziggy: make public/protected always a 403
[21:25:37] ziggy: if this is nginx, then you can do something a bit cleverer
[21:26:43] ziggy: add a location to your config file called /protected which is an alias, then use X-Accel-Redirect: /protected/whatever - it'll go to ALIAS/whatever
[21:26:52] ziggy: you block public/protected
[21:26:57] ziggy: https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/
[21:27:58] ziggy: APP_ROOT/public = open, APP_ROOT/public/private = 403 for all requests
[21:28:32] ziggy: add a location which makes private/XXX work with an internal redirect
[21:28:41] ziggy: honestly, you're best off just using S3 signed URLs
[21:28:53] ziggy: (or Azure signed URLs if you're in to that)
[21:30:55] ziggy: still, using S3 signed URLs is simple
[21:31:49] ziggy: if you're running on AWS anyways, storing the files on EBS is an order of magnitude more expensive
[21:32:33] ziggy: Papierkorb: some of us run our small scale PoC on AWS from day 1 because we do not have servers
[21:33:18] ziggy: awesome, then going 0 to webapp involves SSH and stuff for you
[21:34:17] ziggy: I guess that's technically true
[21:34:32] ziggy: I just don't have a cluster with which to run my shiny new app on
[21:34:42] ziggy: I use Packer to build a new image, deploy that image
[21:35:02] ziggy: alternatively I use Packer to build a new docker image, deploy that image
[21:36:51] ziggy: right - maybe not if your laptop is the server and you're displaying it on a projector... but then in that case it doesn't actually have to "work" and you could have faked it with plain HTML and nginx magic ;)
[21:38:04] ziggy: since I'm already loading my boilerplate aws-sdk and friends, it's a piece of cake to sign a URL and redirect_to it
[21:38:53] ziggy: but my requirements are different - a demo would have to work for 0.0.0.0/0, and since we don't have an office server, aws
[21:39:14] ziggy: nickjj: that's what speakingcode is doing
[21:40:00] ziggy: nickjj: it works, but presumably the file is user-provided and not part of the app (once in production)
[21:44:11] ziggy: I'm about to try this, someone tell me if it's going to break things if they can: for gem in $(find ./vendor/bundle/ruby -iname '*.gem'); do rm -fv $gem; done
[21:44:15] ziggy: this is after bundle install
[21:46:10] ziggy: MrSnugglepants: negative, they're in vendor/bundle/ruby/*/cache
[21:49:01] ziggy: nickjj: this is in a chef recipe, noninteractive

2015-09-26

[20:14:58] ziggy: has left #RubyOnRails: ()

2015-09-21

[16:32:28] ziggy: has joined #RubyOnRails

2015-09-20

[20:13:21] ziggy: Ping timeout: 250 seconds

2015-09-10

[18:25:49] ziggy: has joined #RubyOnRails

2015-09-04

[17:17:19] ziggy: Ping timeout: 272 seconds

2015-08-15

[03:11:59] ziggy: cheeseboy: rake db:migrate? make sure the table is in schema.rb? are you using the plural object name as the table name?

2015-08-14

[04:13:01] ziggy: Ping timeout: 255 seconds
[04:46:23] ziggy: has joined #RubyOnRails

2015-08-13

[00:48:51] ziggy: How do I keep render from appending "; charset=utf-8" to my content type?
[00:49:35] ziggy: nil doesn't work
[00:50:17] ziggy: binary data.
[00:50:22] ziggy: charset=false works
[00:50:37] ziggy: audio/mpeg does not have a charset
[00:51:47] ziggy: basically, I have a badly behaving client accessing something.mp3. something.mp3 normally redirects to the asset in a CDN, but this client sucks and needs to be fed the first two bytes of a MP3 file: "ID"
[00:52:06] ziggy: it's really :id.:format where :format = mp3
[00:52:57] ziggy: so, I'm render body: 'ID', status: :partial_content along with setting the Content-Range header and response.charset = false
[00:53:04] ziggy: and that makes my spec pass :)
[00:54:32] ziggy: (my spec checks the content type and ensures it equals audio/mpeg)
[00:55:53] ziggy: this would be something I'd normally fix at the web server, but the logic on when to give this client the two bytes it asked for and when to redirect this client to the CDN is more complicated than I care to do in a nginx config file
[00:57:12] ziggy: I _think_ it's a poorly configured NetScaler appliance on their end, but I don't know. It leaks a "Pxyro-Connection" header to me as well
[00:57:58] ziggy: gambl0re: in general, methods ending in ? should return something truthy or falsy
[00:58:11] ziggy: preferably true or false
[00:58:49] ziggy: yes, but it's not idiomatic
[01:00:50] ziggy: in 2015, javascript probably isn't activating a dropdown menu
[01:00:53] ziggy: I mean, maybe
[01:01:06] ziggy: but chrome/opera/safari/edge dev tools will show you what's listening on what elements
[01:02:08] ziggy: you're attempting to access a private method
[01:03:28] ziggy: try protected
[01:03:53] ziggy: make it a protected method
[01:03:58] ziggy: instead of private
[01:04:33] ziggy: but also, do not store your user ID in the session like that :\
[01:05:58] ziggy: doctorly: you can see what's listening on an element.. but you probably should just look through the JS that's loaded and see what's listening or activating that dropdown menu.
[01:06:52] ziggy: gambl0re: just realized your problem, and I'm not going to tell you what it is because it's in the railscast
[01:07:10] ziggy: also the right answer is devise
[01:07:12] ziggy: always devise
[01:08:09] ziggy: fair enough :)
[01:08:27] ziggy: always use someone else's library
[01:08:42] ziggy: the people doing devise and clearance are smarter than me when it comes to authentication :)
[01:09:30] ziggy: gambl0re: you're not going to be very successful if you can't figure out why your helper methods don't poke into the view
[01:10:52] ziggy: doctorly: right click, inspect, somewhere in there there's an event listeners tab
[01:11:02] ziggy: I see it in opera
[01:11:15] ziggy: gambl0re: yes, but it does a ton of stuff that most people don't need
[01:11:27] ziggy: baash05: yeah, but it's complicated
[01:12:35] ziggy: https://gist.github.com/ziggythehamster/1f33fdd988c072b9ffe7 <-
[01:13:14] ziggy: baash05: because it's much easier to i18n from the start than add i18n later
[01:13:38] ziggy: gambl0re: neither was Adobe, yet here I am, with an exposed password from the Adobe breach
[01:14:33] ziggy: baash05: you need the root en: or en_AU:
[01:14:48] ziggy: I have like, that exact structure going for me and it works
[01:15:01] ziggy: error.add(:attribute, :error) is even easier
[01:15:24] ziggy: you might try changing activemodel to activerecord
[01:15:40] ziggy: or using a string key in yml
[01:20:13] ziggy: baash05: dumb question, did you kill rails server and start it again?