pabloh

Activity Graph

Page 1 of 1

2018-09-14

[00:49:18] pabloh: Quit: Leaving

2018-09-13

[22:07:47] pabloh: has joined #ruby
[22:08:29] pabloh: has joined #RubyOnRails

2018-04-30

[18:33:33] pabloh: has joined #ruby
[19:31:01] pabloh: Quit: Leaving

2018-04-19

[21:36:43] pabloh: Quit: Alwyzon, cloud-powered IRC client and bouncer - http://alwyzon.com/

2018-04-16

[20:32:56] pabloh: has joined #ruby

2018-03-23

[01:52:46] pabloh: has joined #ruby
[01:53:18] pabloh: Any body knows if is possible to delegate a method preserving the original arity?
[01:53:48] pabloh: or if you have a "new method defined" hook?
[01:55:34] pabloh: but on that case you have compatible arity
[01:57:53] pabloh: what I would like is to have "MClass.method(:original).paramters == MClass.method(:delegated).paramters"
[01:58:08] pabloh: or at least "MClass.method(:original).arity == MClass.method(:delegated).arity"
[02:09:18] pabloh: sadly now, since alias only helps you with method on the same class
[02:10:04] pabloh: I basically want to copy a instance method to the class so it becomes a class method as well
[02:58:56] pabloh: Quit: Leaving

2017-07-27

[16:00:32] pabloh: has joined #ruby
[19:57:03] pabloh: Quit: Leaving

2017-04-24

[05:35:50] pabloh: Quit: Leaving

2017-04-23

[21:10:23] pabloh: has joined #ruby

2017-04-18

[13:51:11] pabloh: has joined #ruby
[13:51:33] pabloh: Client Quit

2017-03-28

[20:28:33] pabloh: has joined #ruby
[20:28:33] pabloh: has joined #RubyOnRails
[23:07:46] pabloh: Quit: Leaving

2017-03-24

[17:58:43] pabloh: has joined #ruby
[17:58:43] pabloh: has joined #RubyOnRails
[20:32:35] pabloh: Quit: Leaving

2017-03-11

[04:54:33] pabloh: Quit: Leaving

2017-03-10

[20:17:28] pabloh: has joined #ruby
[20:17:28] pabloh: has joined #RubyOnRails
[22:46:06] pabloh: anyone here familiar with sequel?
[22:47:44] pabloh: Papierkorb, mwkang, do you know any plugin, or functionality to do profiling?
[22:48:02] pabloh: I would like to count the number of queries during requests?
[22:48:44] pabloh: and have tests to detect if a N+1 problem arises?
[22:49:15] pabloh: like something like bullet
[22:49:25] pabloh: (and many others)
[22:49:31] pabloh: but for sequel
[22:50:06] pabloh: I would like to use (or write) a library like this one: https://github.com/brigade/db-query-matchers
[22:50:20] pabloh: (which only supports ActiveRecord)
[22:52:03] pabloh: Papierkorb, I already asked there, maybe I could try the google group later
[22:52:15] pabloh: the mailing list I mean

2017-03-09

[02:51:55] pabloh: has joined #ruby
[02:51:55] pabloh: has joined #RubyOnRails
[02:52:34] pabloh: Client Quit

2016-05-31

[07:46:19] pabloh: has joined #ruby
[07:46:39] pabloh: has joined #RubyOnRails
[08:42:56] pabloh: Quit: Leaving

2016-05-26

[00:32:53] pabloh: has joined #ruby
[00:45:53] pabloh: Read error: Connection reset by peer
[00:52:53] pabloh: has joined #ruby
[01:06:21] pabloh: Read error: Connection reset by peer
[01:12:31] pabloh: has joined #ruby
[01:15:58] pabloh: Client Quit
[01:24:31] pabloh: has joined #ruby
[01:25:58] pabloh: Client Quit
[05:51:24] pabloh: has joined #ruby
[06:29:58] pabloh: Quit: This computer has gone to sleep
[15:51:21] pabloh: has joined #ruby
[15:56:44] pabloh: Quit: This computer has gone to sleep
[17:53:10] pabloh: has joined #ruby
[20:57:35] pabloh: Quit: This computer has gone to sleep

2016-05-25

[03:51:22] pabloh: has joined #ruby
[04:04:30] pabloh: Quit: This computer has gone to sleep
[04:13:31] pabloh: has joined #ruby
[04:17:00] pabloh: Client Quit

2016-05-24

[17:25:33] pabloh: has joined #ruby
[17:44:25] pabloh: Quit: This computer has gone to sleep
[17:46:33] pabloh: has joined #ruby
[18:25:03] pabloh: Quit: This computer has gone to sleep
[19:13:07] pabloh: has joined #ruby
[19:14:27] pabloh: Client Quit
[19:19:33] pabloh: has joined #ruby
[20:54:31] pabloh: Quit: This computer has gone to sleep
[22:24:56] pabloh: has joined #ruby
[23:05:34] pabloh: Quit: This computer has gone to sleep
[23:06:18] pabloh: has joined #ruby
[23:09:17] pabloh: Client Quit

2016-05-23

[20:00:47] pabloh: has joined #ruby
[21:09:18] pabloh: Quit: This computer has gone to sleep
[21:25:21] pabloh: has joined #ruby
[22:04:28] pabloh: Quit: This computer has gone to sleep
[22:09:09] pabloh: has joined #ruby
[22:11:46] pabloh: Client Quit

2016-05-16

[08:31:52] pabloh: has joined #ruby
[14:28:27] pabloh: Quit: Leaving

2016-05-15

[06:18:27] pabloh: has joined #ruby
[06:37:50] pabloh: p1k, use simple commas
[06:38:00] pabloh: instead of doubles
[06:41:59] pabloh: that single quote
[06:45:17] pabloh: single quote won't apply escaping except for the single quote itself
[06:45:31] pabloh: or to '//'
[06:45:48] pabloh: sorry to '\\'
[07:05:40] pabloh: oh, I didn't know you wanted to use multiline string
[07:06:01] pabloh: heredoc always escapes I think
[07:06:32] pabloh: plk, do u have a gist with what u are trying to do?
[07:08:28] pabloh: http://makandracards.com/makandra/15003-how-to-ruby-heredoc-without-interpolation
[07:08:50] pabloh: apparently you can use HEREODOCS with single quote semantics, see the link
[07:09:16] pabloh: although I'm not 100% sure I understand what you are trying to do, do you have a gist/pastie?
[07:22:54] pabloh: who's #ruby-lang admin?
[07:30:44] pabloh: I think theres a lot more plp that can access, since it's access by invitation
[07:59:00] pabloh: has joined #RubyOnRails
[08:57:21] pabloh: Ping timeout: 246 seconds
[09:40:34] pabloh: has joined #ruby
[09:42:32] pabloh: ACTION is lost
[10:01:50] pabloh: apeiros, hahah
[12:15:38] pabloh: Quit: Leaving

2016-02-15

[21:50:15] pabloh: has joined #ruby
[21:51:00] pabloh: has joined #RubyOnRails
[21:52:06] pabloh: has left #ruby: ()
[21:52:09] pabloh: Client Quit

2015-07-31

[04:58:23] pabloh: has joined #RubyOnRails
[04:58:23] pabloh: has joined #ruby
[05:00:48] pabloh: anyone can suggest a simple gem to keep track of subclasses for specific classes?
[05:17:25] pabloh: Ox0dea, yeah I end up using that
[05:17:52] pabloh: actually I wanted to track descendants initially para subclasses are enough
[05:18:01] pabloh: s/para/but/
[05:18:33] pabloh: subclasses and descendants?, no
[05:18:53] pabloh: immediate subclasses != descendants :P
[10:40:25] pabloh: Quit: Saliendo

2015-07-16

[13:05:55] pabloh: has joined #RubyOnRails
[13:05:55] pabloh: has joined #ruby
[21:16:02] pabloh: Quit: Saliendo

2015-07-15

[10:41:00] pabloh: has joined #RubyOnRails
[10:41:00] pabloh: has joined #ruby
[17:05:15] pabloh: Remote host closed the connection

2015-06-29

[11:59:45] pabloh: has joined #RubyOnRails
[11:59:45] pabloh: has joined #ruby
[13:02:30] pabloh: Remote host closed the connection

2015-06-21

[00:48:44] pabloh: has joined #RubyOnRails
[00:48:44] pabloh: has joined #ruby
[00:53:39] pabloh: Hi can some suggest a regexp (or some other way) to tell a windows path from a URI?
[03:07:29] pabloh: does anyone knows how to recognize if a filesystem path on a string is a valid windows path?
[03:09:34] pabloh: nietzschette, and for paths including file names?
[03:16:54] pabloh: bnagy, but can you not use regular windows for File.read(), for instance?
[03:23:13] pabloh: Ping timeout: 264 seconds

2015-06-15

[06:32:41] pabloh: Remote host closed the connection

2015-06-14

[18:31:32] pabloh: has joined #RubyOnRails
[18:31:32] pabloh: has joined #ruby

2015-05-24

[20:35:10] pabloh: has joined #RubyOnRails
[20:35:10] pabloh: has joined #ruby
[23:06:03] pabloh: Quit: Saliendo

2015-05-21

[06:33:44] pabloh: has joined #RubyOnRails
[06:33:44] pabloh: has joined #ruby
[06:36:23] pabloh: anyone here with some understanding of encodings?
[06:40:44] pabloh: writing to an IO object with some encoding (like a file or IOString), will automaticaly convert your input strings to the right encoding if they are not the same?
[06:46:14] pabloh: xxneolithicxx, global or by IO steam?
[06:46:35] pabloh: remember which option, method?
[06:46:50] pabloh: xxneolithicxx, thanx I'll check
[06:51:40] pabloh: basically I'm reading from an input that's Windows_1252 or UTF-8 encoded and I have to produce an output that's always Windows_1252 encoded
[06:52:12] pabloh: and a lot of transformation in beetween but that's encoding agnostic
[06:56:20] pabloh: the input strings encoding is properly set, if that's what you asked
[06:57:43] pabloh: so yes, I know the encoding at runtime
[06:58:05] pabloh: don't have to detect it or anything
[07:05:00] pabloh: ok, I didn't consider the regexps operations could be problematic
[07:06:21] pabloh: maybe I should make sure is all utf-8 before doing everything else, and the convert to 1252
[07:06:33] pabloh: zenspider, thanks
[07:54:15] pabloh: is there a way to ask Ruby what's the system preferred newline?, for instance if you are at windows, it should be "\r\n" and "\n" at Unix
[07:55:54] pabloh: adaedra, excellent, thanks a lot!
[07:56:25] pabloh: ytti, I working on strings
[07:57:14] pabloh: I was actually looking for a constant instead of a global though, that's a bit surprising
[07:58:55] pabloh: ytti, I've been using ruby for years and didn't know about 'english' :-0
[08:00:30] pabloh: Mon_Ouie, yup, I just saw
[08:00:37] pabloh: thanks, anyway
[08:05:34] pabloh: ytti, yeap you have $RS and $INPUT_RECORD_SEPARATOR
[08:06:22] pabloh: ah, yeea sry, u need English for that
[08:08:08] pabloh: adaedra, you can start porting English to core... ;)
[08:09:43] pabloh: that's a shame...
[13:27:02] pabloh: Quit: Saliendo

2015-04-02

[22:40:38] pabloh: anyone here can recommend a simple gem for form objects?

2015-02-02

[07:42:32] pabloh: can someone explain this weird behavior: http://pastie.org/9879773 ?

2015-02-01

[04:00:01] pabloh: hey, someone here got a good understanding of refinements?
[04:01:44] pabloh: heh, no really
[04:02:09] pabloh: where is the 'using' method defined for the top level object, and where is it for Module/Class?
[04:02:42] pabloh: I tried redefining it for Module#using, but the top level version keep been the same...
[04:04:10] pabloh: heh, is alright, they definitely work different but can't tell why...
[04:13:42] pabloh: havenwood, sry that's an irb specific issue?
[04:20:46] pabloh: havenwood, I got the same behavior on a file, if I redefine Module#using, the top level one don't change and also keeps working fine
[04:22:02] pabloh: havenwood, anyhow, what I was trying to do was to refine an anonymous class specifically the singleton class from the top level object
[04:22:33] pabloh: the reason it wans't working was due the problem with IRB you pointed out though :)

2015-01-31

[03:22:05] pabloh: hi, does anyone knows if there's an API to look up for a file at ruby load's path without actually loading the file?
[03:35:18] pabloh: agent_white, that's a posibility, going through all the entries, I was wondering if that's already done elsewhere...
[03:39:55] pabloh: agent_white, well done somewhere else at the ruby/rubygems API, I should have said

2014-10-27

[17:04:05] pabloh: Hi!, anybody around understand possessive quantifiers/atomic grouping?
[17:10:43] pabloh: havenwood, sort of both
[17:10:59] pabloh: I was expecting this to fail, but it doesn't:
[17:11:45] pabloh: "aab" =~ /(?>(aa)*)(ab)/
[17:11:52] pabloh: havenwood, ok
[17:11:58] pabloh: will checit it out
[17:23:12] pabloh: havenwood, is not really equivalent
[17:23:32] pabloh: if you use 'xx', that atom, will never match
[17:23:53] pabloh: but with 'aa', the first atomic group should match at least once
[17:24:32] pabloh: havenwood, that would simply fail
[17:25:25] pabloh: "aab" =~ /(?>(xx)*)(ab)/, I'm confused about why does this expression fails
[17:25:45] pabloh: sorry this expression: "aab" =~ /(?>(aa)*)(ab)/
[17:26:35] pabloh: havenwood, since the first 'aa', should match, I thought the regexp engine should not backtrack for other possible matches, since the atomic group would tell it not to
[17:26:49] pabloh: well, instead of nil
[17:28:00] pabloh: my idea was that after the first 'aa' matching, the whole expression will fail, but aparently it just keeps going, and match after the 1st letter
[17:28:47] pabloh: eam, do you know why?
[17:31:03] pabloh: eam, may be the non-backtracking behavior, activates only if there is some string previously matched?
[17:31:47] pabloh: eam, allright I will try reading that, thanks!
[17:40:18] pabloh: eam, alright, thanks a lot!

2014-09-20

[19:25:58] pabloh: hi, anyone knows a guide for tweakings MRI 2.1.3, GC for faster tests?

2014-09-13

[01:59:23] pabloh: hey guys!, given a method definition like this one: https://gist.github.com/pabloh/3f8953fc2985bdfb3af2
[01:59:54] pabloh: the block_given? call, would be referring to the outer or inner block?
[02:01:23] pabloh: (or more precisely to the 'body' or 'blk' variable? )
[02:11:37] pabloh: hey guys!, given a method definition like this one: https://gist.github.com/pabloh/3f8953fc2985bdfb3af2
[02:11:38] pabloh: (or more precisely to the 'body' or 'blk' variable?)
[02:11:38] pabloh: the block_given? call, would be referring to the outer or inner block?
[05:12:07] pabloh: cina, since the scope is already close they probably are

2014-01-26

[23:04:23] pabloh: anyone knows how to print bytecodes (the nemonics) from a rubinius method?
[23:06:19] pabloh: Hanmac, that's not what I'm asking for
[23:10:56] pabloh: Hanmac, what i whant is given an arbitrary method from the class, see the instrucction bytecode that the method execute when running on the Rbx VM
[23:19:36] pabloh: bnagy, thanks, I will take a look
[23:20:57] pabloh: bnagy, I found it
[23:21:09] pabloh: is just "puts compiled_code.decode"
[23:28:38] pabloh: bnagy, i haven't play a lot with it yet
[23:28:47] pabloh: nor with rbx in general...
[23:29:36] pabloh: the bytecodes are way nicer than mri's though

2013-02-03

[22:26:57] pabloh: anyone know where can I find recipes for multistage setups using vlad the deployer?