darrik

Activity Graph

Page 1 of 4 | Next »

2017-04-17

[12:29:07] darrik: has joined #RubyOnRails
[12:31:06] darrik: Read error: Connection reset by peer
[12:33:05] darrik: has joined #RubyOnRails
[14:11:41] darrik: Read error: Connection reset by peer

2016-06-26

[04:42:18] darrik: Read error: Connection reset by peer
[04:46:02] darrik: has joined #RubyOnRails

2016-06-23

[20:27:33] darrik: *.net *.split
[20:32:49] darrik: has joined #RubyOnRails

2016-06-20

[12:16:40] darrik: Ping timeout: 264 seconds
[12:20:01] darrik: has joined #RubyOnRails
[12:23:01] darrik: Remote host closed the connection
[12:23:17] darrik: has joined #RubyOnRails

2016-06-19

[18:50:10] darrik: *.net *.split

2016-05-19

[18:26:33] darrik: *.net *.split
[18:26:44] darrik: has joined #RubyOnRails

2016-05-11

[00:05:06] darrik: Read error: Connection reset by peer
[00:05:33] darrik: has joined #RubyOnRails

2016-05-10

[21:21:28] darrik: Quit: Lost terminal
[23:49:10] darrik: has joined #RubyOnRails

2016-05-03

[19:42:25] darrik: *.net *.split
[19:51:37] darrik: has joined #RubyOnRails

2016-05-02

[10:37:22] darrik: Ping timeout: 276 seconds
[10:37:32] darrik: has joined #RubyOnRails
[11:20:51] darrik: Ping timeout: 250 seconds
[13:04:58] darrik: has joined #RubyOnRails

2016-05-01

[08:24:27] darrik: Ping timeout: 246 seconds
[08:25:27] darrik: has joined #RubyOnRails

2016-04-27

[19:14:16] darrik: Read error: Connection reset by peer
[19:14:57] darrik: has joined #RubyOnRails
[19:25:33] darrik: Quit: Lost terminal
[19:27:31] darrik: has joined #RubyOnRails

2016-04-25

[08:53:51] darrik: Ping timeout: 276 seconds
[08:54:15] darrik: has joined #RubyOnRails

2016-04-17

[08:12:10] darrik: *.net *.split
[08:40:34] darrik: has joined #RubyOnRails

2016-04-02

[09:08:41] darrik: Remote host closed the connection
[09:08:57] darrik: has joined #RubyOnRails

2016-03-31

[03:33:27] darrik: Ping timeout: 246 seconds
[03:38:49] darrik: has joined #RubyOnRails

2016-02-28

[12:53:55] darrik: Ping timeout: 264 seconds
[13:24:03] darrik: has joined #RubyOnRails
[13:28:57] darrik: Ping timeout: 260 seconds
[13:36:29] darrik: has joined #RubyOnRails
[21:09:41] darrik: Ping timeout: 248 seconds

2016-02-10

[06:18:42] darrik: Ping timeout: 250 seconds
[06:19:46] darrik: has joined #RubyOnRails

2016-01-27

[06:58:50] darrik: Ping timeout: 276 seconds
[06:59:06] darrik: has joined #RubyOnRails

2016-01-20

[18:22:03] darrik: *.net *.split
[18:24:57] darrik: has joined #RubyOnRails
[18:35:42] darrik: *.net *.split
[18:37:50] darrik: has joined #RubyOnRails
[18:48:18] darrik: *.net *.split
[18:48:40] darrik: has joined #RubyOnRails
[18:59:06] darrik: *.net *.split
[19:00:50] darrik: has joined #RubyOnRails

2016-01-12

[10:16:06] darrik: Ping timeout: 240 seconds
[10:17:12] darrik: has joined #RubyOnRails

2016-01-07

[19:38:36] darrik: *.net *.split

2015-12-23

[00:09:37] darrik: Quit: leaving
[00:42:50] darrik: has joined #RubyOnRails

2015-12-02

[15:39:06] darrik: *.net *.split
[15:41:42] darrik: has joined #RubyOnRails
[15:51:48] darrik: *.net *.split
[16:48:01] darrik: has joined #RubyOnRails

2015-11-22

[03:45:54] darrik: *.net *.split
[03:56:04] darrik: has joined #RubyOnRails

2015-11-18

[15:28:45] darrik: Quit: leaving
[15:39:48] darrik: has joined #RubyOnRails
[16:12:44] darrik: Quit: leaving
[17:18:29] darrik: Client Quit
[17:18:29] darrik: has joined #RubyOnRails
[17:21:04] darrik: has joined #RubyOnRails
[17:22:31] darrik: Client Quit
[17:22:55] darrik: has joined #RubyOnRails

2015-10-19

[16:29:00] darrik: Ping timeout: 264 seconds
[16:30:21] darrik: has joined #RubyOnRails

2015-10-16

[00:16:11] darrik: has joined #RubyOnRails

2015-10-15

[06:15:29] darrik: Ping timeout: 244 seconds
[06:18:02] darrik: has joined #RubyOnRails

2015-09-24

[22:15:40] darrik: Quit: Lost terminal
[22:17:02] darrik: has joined #RubyOnRails

2015-09-01

[20:11:39] darrik: Ping timeout: 265 seconds
[22:28:56] darrik: has joined #RubyOnRails

2015-08-30

[18:14:53] darrik: Ping timeout: 250 seconds
[18:37:00] darrik: has joined #RubyOnRails
[18:50:11] darrik: Ping timeout: 240 seconds
[19:27:22] darrik: has joined #RubyOnRails
[19:33:07] darrik: Ping timeout: 272 seconds
[19:38:37] darrik: has joined #RubyOnRails

2015-08-25

[23:00:20] darrik: Quit: Lost terminal
[23:03:35] darrik: has joined #RubyOnRails
[23:03:46] darrik: has joined #RubyOnRails
[23:03:46] darrik: Changing host

2015-08-23

[05:28:37] darrik: Ping timeout: 255 seconds
[05:40:43] darrik: has joined #RubyOnRails

2015-08-21

[05:13:19] darrik: Ping timeout: 255 seconds
[05:15:06] darrik: has joined #RubyOnRails

2015-08-20

[05:59:25] darrik: Ping timeout: 250 seconds
[06:31:56] darrik: has joined #RubyOnRails

2015-08-18

[14:59:57] darrik: *.net *.split

2015-08-11

[11:32:38] darrik: has joined #RubyOnRails

2015-08-10

[16:25:16] darrik: Quit: Lost terminal

2015-07-27

[01:29:00] darrik: Quit: leaving
[01:35:36] darrik: has joined #RubyOnRails

2015-07-18

[15:54:10] darrik: Quit: Lost terminal
[15:55:33] darrik: has joined #RubyOnRails

2015-07-15

[01:16:41] darrik: Quit: Lost terminal
[01:18:43] darrik: has joined #RubyOnRails
[01:18:44] darrik: has joined #RubyOnRails
[01:18:44] darrik: Changing host
[05:36:17] darrik: Ping timeout: 265 seconds
[15:15:37] darrik: has joined #RubyOnRails

2015-07-12

[13:07:05] darrik: Quit: leaving
[13:08:52] darrik: has joined #RubyOnRails

2015-07-11

[02:36:53] darrik: has joined #RubyOnRails

2015-07-10

[22:06:32] darrik: Quit: Lost terminal

2015-07-03

[13:47:19] darrik: Ping timeout: 256 seconds
[14:04:11] darrik: has joined #RubyOnRails

2015-06-26

[13:33:17] darrik: Ping timeout: 256 seconds
[13:34:10] darrik: has joined #RubyOnRails

2015-06-20

[21:02:00] darrik: Ping timeout: 244 seconds
[21:08:14] darrik: has joined #RubyOnRails

2015-06-10

[02:09:11] darrik: has joined #RubyOnRails

2015-06-09

[17:24:45] darrik: Ping timeout: 250 seconds

2015-06-08

[19:53:07] darrik: Ping timeout: 244 seconds
[22:51:27] darrik: has joined #RubyOnRails

2015-06-04

[01:22:17] darrik: Ping timeout: 250 seconds
[01:47:02] darrik: has joined #RubyOnRails

2015-06-02

[13:02:45] darrik: Quit: Lost terminal
[13:04:14] darrik: has joined #RubyOnRails

2015-06-01

[10:43:48] darrik: Ping timeout: 258 seconds

2015-05-27

[00:30:28] darrik: Quit: Lost terminal
[00:32:15] darrik: has joined #RubyOnRails
[00:35:35] darrik: Client Quit
[00:36:18] darrik: has joined #RubyOnRails

2014-04-15

[01:06:23] darrik: additionally, suppose private keys are siphoned from a bank. until those keys are replaced, everyone who believes they are safe connecting via encrypted traffic is mistaken
[01:07:19] darrik: it won't warn you that someone has the key to decrypt the encrypted traffic :P

2014-04-08

[13:29:44] darrik: which one do you prefer?

2014-02-20

[00:02:29] darrik: specialblend: if you don't need the rails environment, you can disable it on asset precompile
[00:04:13] darrik: specialblend: try config.assets.initialize_on_precompile = false
[00:04:46] darrik: however, if you're compiling assets from engines, this might not work. not really sure
[00:05:35] darrik: nahtnam: as far as i know, that has nothing to do with it. default url options are for how the mailer renders links in views
[00:06:09] darrik: nahtnam: what is refusing your connection? your mail server?
[00:07:27] darrik: yeah, that's your mail server refusing connection. did you test your config options?
[00:08:46] darrik: specialblend: sorry. i know i had that issue with something before and don't remember how i fixed it, but that's what i thought i did
[00:09:41] darrik: where is it looking for your mysql socket?
[00:12:43] darrik: specialblend: where is this precompile executing? are you sure they have the same database.yml?
[00:13:10] darrik: nahtnam: you don't have any smtp options configured, so actionmailer is probably trying to connect to localhost:25
[00:15:09] darrik: specialblend: no chance that RDS is localhost?
[00:15:26] darrik: i know mysql will fall back to a socket if host is "localhost" (but not if host is "127.0.0.1")
[00:18:23] darrik: nahtnam: do you have a mail server running on localhost:1025 ?
[00:19:22] darrik: well, you're telling actionmailer to connect to localhost:1025, so if you don't have a mail server there, you can imagine that connection might be refused :)
[00:19:39] darrik: and yes, you need privileges to open a port under 1024
[00:20:32] darrik: nahtnam: that's out of scope for my assistance here. lol
[00:20:43] darrik: nahtnam: if you don't have a mail server running, your best bet is to use a service like gmail or something
[00:21:21] darrik: otherwise, i'd install postfix, but that's a good amount of configuration to get correct
[00:21:53] darrik: nahtnam: are you running mailcatcher on that machine?
[00:22:24] darrik: you might try a simple telnet localhost 1025 and send an email by hand to make sure that's running
[00:22:54] darrik: commands are: MAIL TO: to_address\n RCPT FROM: from_address; DATA: blah\n.\n
[00:24:19] darrik: no, telnet is it's own program
[00:24:36] darrik: it simply opens a socket connection and copies what you type to it and reads responses
[00:24:53] darrik: those are smtp commands that all mail servers understand, and you would type them into the telnet session
[00:25:13] darrik: (obviously replacing to_address, from_address, and blah with more suitable values)
[00:26:09] darrik: at the very least, while mailcatcher is running, verify with netstat -tlundp | grep 1025
[00:26:18] darrik: you should see a listening socket on 1025
[00:29:17] darrik: excellent
[12:21:36] darrik: trinode: why not use redis or memcache or something to cache property descriptions or something?
[12:22:37] darrik: mikecmpbll: for a 1-1 relationship, that won't reduce queries, unless they're multiple instances of the same model
[12:23:35] darrik: he's viewing a single item details, he said
[12:27:06] darrik: trinode: at that point you're talking about implementing your own cache in memory, inside your app. why, when people have probably done a better job with memcache or redis or the like?
[12:28:13] darrik: trinode: if your web server has multiple workers, you may end up storing several versions

2014-01-27

[15:36:13] darrik: MickeySoFine: missing an equals sign. that a typo in the gist or the actual file?
[15:51:59] darrik: if i had to guess, the attribute should be :remote_filename_url
[15:52:10] darrik: based on the example workmad3 posted
[15:52:53] darrik: i just want to point out that mounting the uploader under the filename attribute is entirely misleading when reading the code
[15:55:12] darrik: MickeySoFine: ^

2013-12-28

[17:39:17] darrik: zeromodulus: some obvious questions: console and front-end running in same environment? any caching in place?

2013-12-27

[01:54:05] darrik: zeromodulus: you can make a separate manifest for it

2013-12-11

[16:17:18] darrik: spamotuve: the code in the answer contains some places for you to fill in fields, which would be helpful to see, as would the full error backtrace
[16:22:49] darrik: spamotuve: there's a really handy gist command line utility that you can use to gist files and errors and such, if copying and pasting into a web form is not your thing

2013-12-06

[13:03:42] darrik: doesn't really matter. i make a bin/ folder inside my app for that, or write a rake task. i would say lib is not a good place for it

2013-11-18

[18:42:30] darrik: pwz2000: not sure if it makes a difference, but in your css it says "Inside /assets/stylesheet" where typically that's app/assets/stylesheets (plural)
[18:43:11] darrik: pwz2000: you should gist your manifests instead of the (somewhat irrelevant) contents of your javascript files

2013-11-04

[01:07:59] darrik: Technodrome: how did unicorn compare to puma in your tests?

2013-10-29

[21:43:06] darrik: kara_sweets: cron checks its files once a minute

2013-10-23

[15:04:34] darrik: _bart: you can install another ruby executable for your user and simply prefix the path to your PATH environment variable such that your local ruby is the one that gets executed. no root privs should be necessary
[15:09:21] darrik: _bart: oh, heh. probably not :)

2013-10-07

[21:20:32] darrik: dcope: i have not, and i've used unicorn for a LOT of projects

2013-10-04

[11:24:38] darrik: LIkjeo: you could just use an integer and store the number of minutes since midnight
[11:24:53] darrik: LIkjeo: or seconds, depending on the resolution you need
[11:26:14] darrik: LIkjeo: what about tz info?
[11:29:38] darrik: LIkjeo: what db? mysql has a time column type. i would assume that AR would translate that to a Time
[11:33:03] darrik: LIkjeo: i'm confused. AR has a time column type, most databases support it, sqlite stores everything as strings anyway, so i'd expect this would just work. have you tried the time type?
[11:34:30] darrik: Scient: in AR?
[11:35:15] darrik: Scient: yeah, mysql and postgres both do
[11:36:45] darrik: LIkjeo: if it were me, i'd just store the number of seconds from midnight in an integer column and do the conversion myself, unless you have a use for the time that precludes this

2013-10-03

[14:50:34] darrik: mikecmpbll: rake jobs:work runs the delayed_job worker in the foreground
[14:51:16] darrik: mikecmpbll: that may be possible. never tried that
[14:52:17] darrik: mikecmpbll: typically you do rake jobs:run in testing and automate running delayed_job start in production (with adequate monitoring)
[14:58:51] darrik: ptrf: different db users? different system users?
[15:01:00] darrik: ptrf: out of curiosity, why?
[15:02:58] darrik: ptrf: not really, in my opinion :)
[15:03:50] darrik: ptrf: you're talking what? putting a separate environment in config/database.yml and using that to run rake db:migrate? your creds are still in one place
[15:06:20] darrik: ptrf: realistically, if someone has file-system access, you're probably screwed already, so creds in one place is probably not an issue. at that point, it could make sense to keep db users separate for those tasks
[15:06:45] darrik: ptrf: and the easiest way i can think of to do it would be to add a migration environment and use that for rake db:migrate, pointing at the same db with different creds
[15:19:03] darrik: ptrf: ideally your code doesn't expose that opportunity, but betting the farm on it is a bad idea, so i think it makes sense to have an additional layer of prevention
[15:19:19] darrik: ptrf: simple answer -> minimum necessary in both cases :)

2013-09-29

[02:18:15] darrik: platzhirsch: you could always do them by hand: get '/repository/:id/my_method' => 'repositories#my_method', :as => :my_method_repository, etc
[13:39:46] darrik: poli: hours = (seconds / 3600).to_i; minutes = ((seconds - (hours * 3600)) / 60).to_i; seconds -= (3600 * hours) + (60 * minutes);
[15:50:34] darrik: NotMyPony: the asset pipeline compiles all stylesheets included in application.css into one file. in order to use different ones in different controllers, you need to make separate manifests and deliberately include them in separate layouts or programmatically
[15:52:49] darrik: NotMyPony: a cheap workaround is to nest controller-specific html in an identifier, and then target that identifier with your styles
[15:53:19] darrik: i.e. all the views for the home controller are nested in #home, and all the styles reference #home li a { } or similar
[15:53:44] darrik: NotMyPony: however, in my opinion, the best path is to create separate manifests for separate style requirements, and include the ones you need
[15:58:17] darrik: sevenseacat: one good argument is that it doesn't scoop in global gems if you run a command and don't type bundle exec
[15:59:53] darrik: sevenseacat: we had an issue like that where a command was picking up a gem not included in the bundle in development and it made it all the way through production because that command was never run as bundle exec
[16:00:13] darrik: sevenseacat: mind you, i'm not saying it's a *good* argument... ;)
[16:01:02] darrik: sevenseacat: it'll catch things not added at least
[16:02:09] darrik: sevenseacat: but contrapositively, having 30 copies of a gem installed is not a strong argument against, unless you're terribly limited on disk space
[16:07:35] darrik: anannie: and your dilligence. i've been "freelancing" from ohio for about 10 years, and the market isn't strong here. most of my work comes from out of state by a long shot
[16:08:52] darrik: anannie: im, phone, video conference, travel. whatever is necessary
[16:09:03] darrik: anannie: largely depends on the client
[16:09:35] darrik: s2013: nope. akron
[16:10:04] darrik: s2013: you from ohio?
[16:12:14] darrik: anannie: depending on your market, success may depend on not limiting yourself just to rails. obviously, you are more viable with more skills
[16:12:24] darrik: but i might not be allowed to say that in #ror
[16:13:30] darrik: this is true, but sometimes knowing php can get your feet in the door on projects, and then you can sell them on rails
[16:13:49] darrik: s2013: sometimes? lol
[16:15:13] darrik: s2013: my experience is the opposite, and we try our best not to deal with firms but rather directly with clients
[23:37:31] darrik: s2013: another thing you can do is if you have a remote machine you have ssh access to, you can reverse tunnel the port from your desktop
[23:38:38] darrik: s2013: such that hitting port 4444 on the remote host is really the endpoint of an ssh tunnel from your localhost on port 3000 (ports configurable, obviously)

2013-09-24

[22:49:04] darrik: wm3|away: not my server. i know what it's worth. however, 3.2.3 was current when the app was contracted. when the client wants to pay to upgrade, they can make that evaluation
[22:50:23] darrik: obiwanchinobi: we have different clients, apparently
[22:50:45] darrik: wm3|away: hell, i'll give away the url. perhaps that will make a more convincing argument than i have thus far ;)
[22:51:36] darrik: dcope: with logrotate?
[22:52:09] darrik: dcope: there's an option with logrotate for that. rotate 14
[22:53:14] darrik: obiwanchinobi: honestly, i don't remember. i can tell you this: my register_interceptor is outside my config block in my env file, although i don't remember why. wouldn't have been my first choice place to put it, so i may have been forced
[22:54:06] darrik: obiwanchinobi: for what it's worth ;)
[22:56:18] darrik: Stalkr^: rails should create logs when running locally. tail -f logs/development.log ?
[22:56:46] darrik: dcope: it's dependent on whether you use 'weekly', 'daily', etc
[22:56:51] darrik: dcope: it should keep 14 rotations
[22:57:00] darrik: dcope: which should equate to 14 files
[22:57:13] darrik: dcope: fwiw, i use weekly and rotate 26
[22:57:16] darrik: keeps 1/2 year of logs
[22:57:31] darrik: dcope: obviously adjust for different log volumes
[22:59:11] darrik: dcope: you can set that option globally in logrotate.conf or per block inside logrotate.d/*
[23:00:10] darrik: dcope: yeah, because it's not a daemon. it's run by cron. each run reads the conf
[23:00:51] darrik: dcope: you can force it to run with -f or test run with -d