kitallis

Activity Graph

Page 1 of 2 | Next »

2018-12-10

[16:59:38] kitallis: has joined #ruby
[17:16:37] kitallis: Quit: going, bye

2018-06-21

[05:50:00] kitallis: has joined #ruby
[13:43:31] kitallis: Quit: going, bye

2018-01-28

[06:52:01] kitallis: has left #RubyOnRails: ("going, bye")
[06:52:09] kitallis: has left #ruby: ("going, bye")

2017-12-07

[14:48:09] kitallis: *.net *.split
[14:54:59] kitallis: has joined #ruby
[22:39:22] kitallis: Ping timeout: 260 seconds
[22:42:21] kitallis: has joined #ruby

2017-12-06

[21:38:58] kitallis: *.net *.split
[22:02:07] kitallis: has joined #RubyOnRails
[22:02:07] kitallis: has joined #ruby

2017-12-01

[02:28:55] kitallis: has joined #ruby

2017-11-10

[04:41:32] kitallis: has joined #RubyOnRails

2017-11-09

[02:50:40] kitallis: Ping timeout: 248 seconds
[02:57:53] kitallis: has joined #ruby

2017-11-05

[20:11:48] kitallis: *.net *.split

2017-10-04

[14:49:35] kitallis: has joined #RubyOnRails
[14:49:35] kitallis: has joined #ruby

2017-09-28

[10:45:38] kitallis: I get "LoadError: Could not open library 'lib.dylib' : dlopen(lib.dylib, 5): image not found" –– has anyone faced this issue on os x before? https://github.com/rgeo/activerecord-postgis-adapter
[10:45:58] kitallis: (running jruby with rbenv)

2017-09-27

[17:28:16] kitallis: I have a table with col: "t.float :points, array: true, default: []"
[17:29:10] kitallis: I can insert into it correctly like [[1,2], [3,4]], but reading from it breaks like: "ActiveRecord::StatementInvalid: ActiveRecord::JDBCError: org.postgresql.util.PSQLException: Bad value for type double : {"1.19999999999999996","3.39999999999999991"}"

2017-09-11

[13:27:16] kitallis: # Unknown type 'point' for column 'things'" –– how do I fix this?
[13:27:16] kitallis: I'm running rails 4.2.9, I get this error in my schema.rb file when I add a Point type: "# Could not dump table "table_name" because of following StandardError
[13:36:40] kitallis: tcopeland, hrm
[13:36:49] kitallis: I'm not since https://www.postgresql.org/docs/9.4/static/datatype-geometric.html Point is a standard geometric type
[13:37:10] kitallis: and it's available without the postgis extension
[13:40:30] kitallis: tcopeland, that works for running migrations, but it doesn't work for schema dumps
[13:41:00] kitallis: as in, my table/column gets created that way, but the schema.rb still says that
[13:49:30] kitallis: ah didn't know that was a thing
[13:57:07] kitallis: thanks tcopeland and elomatreb

2017-08-14

[12:57:29] kitallis: I have a list that looks like this https://gist.github.com/anonymous/2ff894e46f3c7418bb22ce0bd37bbe3d
[12:58:04] kitallis: and I want to uniq on it, but I would like to pick up the version where name != address
[12:58:37] kitallis: but uniq inherently picks off the first item
[13:02:43] kitallis: yeah, uniq won't work
[13:03:37] kitallis: actually group_by+select should
[23:51:35] kitallis: *.net *.split
[23:56:43] kitallis: has joined #ruby
[23:56:44] kitallis: has joined #RubyOnRails

2017-08-12

[13:12:48] kitallis: if I have 2 subclasses, which need to call the same method, and so the method exists in the parent class, but the values required to compute it are only computed in the child class
[13:13:05] kitallis: how do I cleanly handle that inheritance
[13:14:53] kitallis: it's Sub < Parent | Sub2 < Parent
[13:16:48] kitallis: konsolebox, ^
[13:18:03] kitallis: konsolebox, which means, I can't share functionality between the two subclasses
[13:18:13] kitallis: they'll be the same methods
[13:19:37] kitallis: that's better
[13:19:57] kitallis: thanks konsolebox

2017-08-02

[10:08:41] kitallis: has joined #RubyOnRails
[10:09:17] kitallis: I'm using this gem, is there any way to avoid running it in my regular "bundle exec rake"
[10:09:19] kitallis: https://github.com/zipmark/rspec_api_documentation

2017-07-29

[16:27:43] kitallis: has joined #RubyOnRails
[16:27:53] kitallis: does rails have any way to hot reload config?
[16:28:01] kitallis: (domain config)
[16:29:31] kitallis: like business config
[16:31:50] kitallis: tbuehlmann_, Model.find(id: 1).score * config.multiplier
[17:19:40] kitallis: has left #RubyOnRails: ("going, bye")

2017-07-25

[08:32:28] kitallis: Ping timeout: 240 seconds
[08:41:57] kitallis: has joined #ruby

2017-07-24

2017-06-25

[15:51:40] kitallis: can I do this in ruby? https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#numberOfLeadingZeros(int)
[15:58:35] kitallis: chrisseaton, let me try
[15:59:11] kitallis: yeah, I wanted to see if I could avoid to_s
[16:04:30] kitallis: chrisseaton, I assume >>> is right shift, what do you think <<= is?
[16:05:39] kitallis: oh, nvm, it's n <<= 1 is n = n << 1
[16:07:04] kitallis: >>> is unsigned
[16:23:05] kitallis: chrisseaton, seems to be working ok
[16:26:20] kitallis: https://gist.github.com/anonymous/0d2b05fe22087b5fe98550fdcf4b3401
[16:38:46] kitallis: chrisseaton, just going to instead do Math.log2(i).ceil
[16:43:46] kitallis: chrisseaton, yeah
[16:43:51] kitallis: Float can do 1.7976931348623157 * (10 ** 308)
[16:43:56] kitallis: which is huge enough for my usecase
[16:50:14] kitallis: chrisseaton, how do you figure?
[17:18:17] kitallis: chrisseaton, yeah, you're right ("0x%02X" % 8007199254740991.to_s).hex.to_f.to_i
[17:18:28] kitallis: Math.log2(8007199254740991).ceil => 2
[17:18:39] kitallis: err, not 2, 53
[17:18:48] kitallis: seems to be fine until 53

2017-06-20

[00:17:37] kitallis: *.net *.split
[00:22:55] kitallis: has joined #ruby

2017-06-19

[18:19:42] kitallis: *.net *.split

2017-06-15

[11:23:28] kitallis: has joined #RubyOnRails
[11:27:29] kitallis: I'm trying to write a query that looks like "SELECT * FROM table WHERE ((col1 = 'str' AND col2 = 'str') OR (col1 = 'str2' AND col2 = 'str2')" – is there a way to do that in AR without string joining manually?
[11:28:21] kitallis: the OR conditions can be more than 2

2017-06-12

[18:55:13] kitallis: does .take not work on lazy enumerators? only first(n) seems to be working
[18:59:47] kitallis: havenwood, is first(n) fundamentally different then?
[18:59:56] kitallis: because that seems to realize it
[19:00:03] kitallis: without a t_a
[19:11:59] kitallis: havenwood, yeap, tried it out, understood
[19:12:34] kitallis: i'm assuming though in practice, first(n) is the same as take(n).to_a
[19:13:00] kitallis: unless of course you're in rails in which case, it'll turn it into a SQL LIMIT iinw

2017-06-11

[18:06:32] kitallis: has joined #RubyOnRails
[18:06:33] kitallis: has joined #ruby
[18:06:50] kitallis: has left #RubyOnRails: ()
[18:07:14] kitallis: has left #ruby: ()
[18:07:33] kitallis: has joined #ruby
[18:55:24] kitallis: how is ruby doing?

2017-03-12

[21:37:06] kitallis: Ping timeout: 240 seconds

2016-07-10

[04:59:58] kitallis: *.net *.split
[08:54:02] kitallis: has joined #ruby
[08:54:06] kitallis: has joined #RubyOnRails

2016-07-01

[19:40:43] kitallis: Ping timeout: 252 seconds
[19:48:01] kitallis: has joined #ruby
[19:48:01] kitallis: has joined #RubyOnRails

2016-05-18

[05:12:55] kitallis: Ping timeout: 246 seconds

2016-05-03

[07:59:21] kitallis: has joined #ruby
[07:59:21] kitallis: has joined #RubyOnRails

2016-05-02

[20:29:05] kitallis: Ping timeout: 268 seconds

2016-04-21

[17:49:48] kitallis: Ping timeout: 276 seconds
[17:50:34] kitallis: has joined #ruby
[17:50:34] kitallis: has joined #RubyOnRails

2016-04-17

[22:58:52] kitallis: Ping timeout: 260 seconds
[23:01:16] kitallis: has joined #ruby
[23:01:16] kitallis: has joined #RubyOnRails

2016-02-27

[22:40:55] kitallis: Ping timeout: 240 seconds
[22:53:53] kitallis: has joined #ruby
[22:53:53] kitallis: has joined #RubyOnRails

2016-02-26

[17:20:43] kitallis: *.net *.split
[17:21:47] kitallis: has joined #ruby
[17:21:47] kitallis: has joined #RubyOnRails

2016-02-19

[18:25:34] kitallis: *.net *.split
[18:25:55] kitallis: has joined #ruby
[18:25:55] kitallis: has joined #RubyOnRails

2016-01-31

[12:25:10] kitallis: *.net *.split
[12:29:46] kitallis: has joined #RubyOnRails
[12:29:47] kitallis: has joined #ruby

2016-01-20

[18:24:57] kitallis: has joined #RubyOnRails
[18:24:59] kitallis: has joined #ruby
[18:35:42] kitallis: *.net *.split
[18:37:50] kitallis: has joined #RubyOnRails
[18:37:51] kitallis: has joined #ruby
[18:48:18] kitallis: *.net *.split
[18:48:40] kitallis: has joined #RubyOnRails
[18:48:41] kitallis: has joined #ruby
[18:59:06] kitallis: *.net *.split
[20:18:04] kitallis: has joined #RubyOnRails
[20:18:05] kitallis: has joined #ruby
[20:28:39] kitallis: *.net *.split
[20:42:53] kitallis: has joined #RubyOnRails
[20:42:54] kitallis: has joined #ruby
[20:53:24] kitallis: *.net *.split
[21:47:49] kitallis: has joined #ruby
[21:47:49] kitallis: has joined #RubyOnRails

2015-12-21

[10:13:02] kitallis: *.net *.split

2015-12-10

[16:17:47] kitallis: Ping timeout: 272 seconds
[16:19:51] kitallis: has joined #ruby
[16:19:51] kitallis: has joined #RubyOnRails

2015-12-07

[14:54:19] kitallis: Ping timeout: 245 seconds
[14:57:21] kitallis: has joined #ruby
[14:57:21] kitallis: has joined #RubyOnRails

2015-12-06

[16:35:09] kitallis: Ping timeout: 245 seconds
[16:37:21] kitallis: has joined #ruby
[16:37:21] kitallis: has joined #RubyOnRails
[21:05:54] kitallis: Ping timeout: 260 seconds
[21:07:20] kitallis: has joined #ruby
[21:07:20] kitallis: has joined #RubyOnRails

2015-12-04

[18:13:55] kitallis: Ping timeout: 260 seconds
[18:14:42] kitallis: has joined #ruby
[18:14:42] kitallis: has joined #RubyOnRails

2015-12-02

[15:37:13] kitallis: *.net *.split
[15:41:34] kitallis: has joined #ruby
[15:41:46] kitallis: has joined #RubyOnRails
[15:53:21] kitallis: *.net *.split
[16:47:49] kitallis: has joined #ruby
[16:48:06] kitallis: has joined #RubyOnRails

2015-11-30

[00:46:50] kitallis: Ping timeout: 245 seconds
[00:56:59] kitallis: has joined #ruby
[00:56:59] kitallis: has joined #RubyOnRails
[03:52:14] kitallis: Ping timeout: 245 seconds
[03:59:49] kitallis: has joined #ruby
[03:59:49] kitallis: has joined #RubyOnRails
[06:57:14] kitallis: Ping timeout: 245 seconds
[07:09:10] kitallis: has joined #ruby
[07:09:10] kitallis: has joined #RubyOnRails
[10:02:14] kitallis: Ping timeout: 245 seconds
[10:06:34] kitallis: has joined #ruby
[10:06:34] kitallis: has joined #RubyOnRails
[14:41:04] kitallis: Ping timeout: 260 seconds
[15:36:34] kitallis: has joined #ruby
[15:36:34] kitallis: has joined #RubyOnRails

2015-11-29

[22:19:00] kitallis: *.net *.split
[22:43:15] kitallis: has joined #ruby
[22:43:15] kitallis: has joined #RubyOnRails

2015-11-26

[07:54:52] kitallis: has joined #ruby
[07:54:52] kitallis: has joined #RubyOnRails
[19:02:06] kitallis: *.net *.split
[19:11:09] kitallis: has joined #ruby
[19:11:13] kitallis: has joined #RubyOnRails

2015-11-19

[11:01:38] kitallis: has joined #ruby
[11:01:38] kitallis: has joined #RubyOnRails

2015-10-27

[04:03:00] kitallis: Quit: going, bye

2015-10-26

[23:38:59] kitallis: Ping timeout: 268 seconds
[23:41:30] kitallis: has joined #RubyOnRails
[23:41:31] kitallis: has joined #ruby

2015-10-23

[22:33:43] kitallis: has joined #ruby
[22:33:43] kitallis: has joined #RubyOnRails

2015-10-10

[21:43:07] kitallis: *.net *.split

2015-08-11

[14:08:27] kitallis: does anyone have thoughts on this? https://gist.github.com/kitallis/88d68e2acb0da38cf975
[14:09:19] kitallis: it seems to be behaving very oddly in terms of file writes
[14:09:42] kitallis: the index.html file ??? it tends to be writing things slowly but in bulk
[14:15:22] kitallis: [k-_, hm, yeah figured
[14:17:12] kitallis: won't bother with $stdout.sync = true, because it flushes it consistently enough

2015-08-04

[04:07:42] kitallis: I'm using axlsx_rails with rails 4.2.1, and I get a missing template error ??? all my file names are correct, but I see "Missing template invoices/export with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :axlsx, :coffee, :jbuilder]}"
[04:08:10] kitallis: there is no :xlsx in :formats, but the handlers have :axlsx
[04:25:25] kitallis: Radar, it's supposed to be rendering export.xlsx.axlsx sittings in invoices/export.xlsx.axlsx
[04:25:50] kitallis: called from invoices controller and an action export
[04:26:38] kitallis: oh, I thought that hashmap just listed all the available formats
[04:27:01] kitallis: yeah, the handler seems to have axlsx
[04:36:10] kitallis: Radar, any idea why it would be looking for .html?
[04:36:17] kitallis: I tried forcing it in routes.rb

2015-07-27

[13:54:20] kitallis: has joined #RubyOnRails
[13:54:46] kitallis: so I'm trying to create this paginatable concern https://github.com/amatsuda/kaminari#creating-friendly-urls-and-caching
[13:55:16] kitallis: it works fine for my resource with index, but I also want it to be applied to a separate collection 'get' route inside that resource ??? how do I do that?

2015-07-13

[15:36:52] kitallis: *.net *.split
[15:37:28] kitallis: has joined #ruby

2015-06-30

[08:24:32] kitallis: why does this fail? http://pastie.org/10265705
[08:26:23] kitallis: ACTION kills self
[08:31:08] kitallis: yeah, I fixed that
[08:31:30] kitallis: changed it to http://pastie.org/10265714
[08:32:23] kitallis: ha, yeah. I recall those.

2015-06-25

[12:33:19] kitallis: has left #RubyOnRails: ("going, bye")

2015-06-20

[21:02:00] kitallis: Ping timeout: 244 seconds
[21:02:25] kitallis: has joined #ruby
[21:02:25] kitallis: has joined #RubyOnRails

2015-06-18

[10:00:24] kitallis: is there a library that can detect mime types of remote files without having to download the entire thing?
[10:00:40] kitallis: mimemagic does it, but for remote, you have to feed it the entire blob
[10:00:51] kitallis: something like fastimage but for any file
[10:01:14] kitallis: fastimage is clever because it only partially reads the file, header
[10:02:07] kitallis: yeah, I meant fastimage does that, because images usually have it in the header (I believe)

2015-06-12

[11:39:10] kitallis: why does this create a blank empty 1st page for some images? http://pastie.org/10237102

2015-06-11

[15:38:13] kitallis: has anyone tried using prawn and fitting images of various sizes into an appropriate page format (a4/a5), scale the images to best fit the page, if they are too small, ignore etc.?