alex``

Activity Graph

Page 1 of 8 | Next »

2018-09-05

[07:59:47] alex``: Ping timeout: 240 seconds

2018-09-04

[20:07:16] alex``: Ping timeout: 272 seconds
[20:40:30] alex``: has joined #ruby

2018-08-31

[00:07:44] alex``: Quit: WeeChat 2.2
[07:08:00] alex``: has joined #ruby
[14:07:34] alex``: Ping timeout: 240 seconds
[14:10:05] alex``: has joined #ruby
[14:27:38] alex``: Quit: WeeChat 2.2
[15:49:47] alex``: has joined #ruby
[16:10:45] alex``: Quit: WeeChat 2.2
[16:11:20] alex``: has joined #ruby
[16:29:04] alex``: Quit: WeeChat 2.2

2018-08-30

[13:31:30] alex``: Quit: WeeChat 2.2
[18:09:29] alex``: has joined #ruby

2018-08-29

[07:46:25] alex``: has joined #ruby
[10:59:13] alex``: Quit: WeeChat 2.2
[14:59:40] alex``: has joined #ruby
[16:26:43] alex``: Ping timeout: 245 seconds
[16:27:41] alex``: has joined #ruby
[16:33:39] alex``: Quit: WeeChat 2.2
[20:45:15] alex``: has joined #ruby

2018-08-22

[09:18:38] alex``: has joined #ruby

2018-08-21

[11:06:24] alex``: has joined #ruby
[11:06:51] alex``: Client Quit
[11:07:35] alex``: has joined #ruby
[11:57:44] alex``: Quit: WeeChat 2.2
[14:57:27] alex``: has joined #ruby
[14:57:39] alex``: Client Quit
[15:00:01] alex``: has joined #ruby
[16:40:26] alex``: Quit: WeeChat 2.2
[17:54:28] alex``: has joined #ruby
[21:49:22] alex``: Quit: WeeChat 2.2

2018-08-20

[10:26:05] alex``: has joined #ruby
[22:45:40] alex``: Ping timeout: 272 seconds
[22:47:11] alex``: has joined #ruby
[23:19:26] alex``: Quit: WeeChat 2.2

2018-08-19

[10:50:08] alex``: has joined #ruby
[17:49:03] alex``: Quit: WeeChat 2.2
[17:53:32] alex``: has joined #ruby
[19:44:03] alex``: Quit: WeeChat 2.2

2018-08-18

[10:28:48] alex``: What is the more clear between:
[10:29:10] alex``: (in a case / when)
[10:29:28] alex``: until ARGV.empty?
[10:29:49] alex``: parameters[:arguments] << ARGV.shift
[10:30:14] alex``: parameters[:arguments].append(*ARGV)
[10:30:17] alex``: ARGV.clear
[10:31:25] alex``: MarcWeber: Hey o/
[10:32:12] alex``: Looong time not seeing you, hdy?
[14:33:48] alex``: Remote host closed the connection
[14:37:47] alex``: has joined #ruby
[14:46:51] alex``: How to merge 2 arrays (superpose) like hash?
[14:49:26] alex``: [nil, '%{foo}', "\n"] and ['http://foo.bar', '%{bar}']
[14:49:44] alex``: => ['http://foo.bar', '%{bar}', "\n"]
[15:08:12] alex``: apeiros: Awesome
[15:08:16] alex``: havenwood: Yep
[15:08:53] alex``: I was going with zip or to_h, but apeiros lot much clear in intent
[15:09:40] alex``: A.zip(B).map { |pack| pack.compact.last }
[15:10:31] alex``: apeiros: Is there a functional way as simple as your solution?
[15:10:46] alex``: without relying on modifying a
[15:12:10] alex``: Can be both
[15:12:31] alex``: I write a command-line wrapper around positional arguments
[15:12:40] alex``: to pass to a function
[15:13:54] alex``: [nil, 'default-value', 'another-default'].zip(['user-input-one', 'second']).collect { |pack| pack.compact.last }
[15:13:58] alex``: havenwood: ^
[15:14:32] alex``: apeiros: b would be ARGV or something
[15:16:04] alex``: havenwood: What is option flags?
[15:16:26] alex``: apeiros: Thanks again :p
[15:18:45] alex``: havenwood: where ARGV.options is from ?
[15:23:58] alex``: havenwood: Thanks for you gist
[15:26:04] alex``: I would like Ruby supporting -flag
[15:26:12] alex``: instead of --flag
[15:33:19] alex``: havenwood: Do you mind making yr gist public so I can still see it back from time to time from my Stars?
[15:34:13] alex``: It actually listed in my Stars é_é
[15:34:44] alex``: Thanks :p
[15:38:41] alex``: option.accept is smart
[15:39:26] alex``: havenwood: I get right the prototypes?
[15:40:03] alex``: accept(class, regex-to-pass-string-option, &block-to-transform-string-option)
[15:41:06] alex``: "1" with accept(Integer) would do Integer("1") ?
[15:41:51] alex``: or it requires, accept(Integer, Integer) { |string| string.to_i }
[15:44:01] alex``: havenwood: I was using Thor, but it’s quite too much for the need of the tool I write
[16:09:14] alex``: havenwood: Slop is awesome :)
[16:19:35] alex``: I like it doesn’t have assumption upon how CLI should be
[16:20:01] alex``: there is no -h --help, etc.
[16:20:12] alex``: or GNU long option forced
[22:18:02] alex``: Ping timeout: 276 seconds
[22:50:41] alex``: has joined #ruby
[23:12:50] alex``: Quit: WeeChat 2.2

2018-08-17

[09:05:31] alex``: has joined #ruby
[10:48:28] alex``: How to get RSS keys?
[10:48:51] alex``: https://ruby-doc.org/stdlib/libdoc/rss/rdoc/RSS.html
[10:49:04] alex``: http://feeds.radiokawa.com/podcast_kaorin.xml
[10:49:26] alex``: I want to get the entry names of items
[10:49:57] alex``: title, itunes:author, enclosure (url, type), guid, pubDate, etc.
[10:50:23] alex``: Is there a way to expose as a Ruby object?, Hash / Array
[10:50:51] alex``: instead of methods: item.title, item.itunes_author
[10:51:27] alex``: like: item holding a hash, item['itunes:author'], etc.
[13:02:44] alex``: Any idea?
[13:08:36] alex``: Criten: You were not here when I asked
[13:08:37] alex``: https://gist.github.com/alexherbo2/2215c5bb0b6206b4e77dd02c142c7019
[13:09:45] alex``: by entry names, I mean the tag names
[13:10:06] alex``: I want access like a Ruby object (Hash, Array, String)
[13:13:42] alex``: Do you suggest another lib or language?
[13:14:19] alex``: I could go with standard XML if there is a lightweight
[13:15:06] alex``: Basically I need to collect items in and get the hash of each item
[13:15:31] alex``: http://feeds.radiokawa.com/podcast_kaorin.xml
[13:15:47] alex``: So that I can do
[13:16:05] alex``: "user-input-string" % item-data
[13:16:16] alex``: and let user choose the output
[13:16:21] alex``: with printf syntax
[13:16:39] alex``: Criten: Yep I would avoid Nokogiri
[13:16:52] alex``: JS is adapted for that?
[13:17:41] alex``: Rails is worse no? X)
[13:18:38] alex``: it’s in 'active_support/core_ext' ?
[13:20:47] alex``: but I need to get the data from feeds which is useful
[13:20:55] alex``: to collect the data songs
[15:55:34] alex``: How to get RSS guid value?

2018-08-16

[10:11:43] alex``: has joined #ruby
[11:00:14] alex``: Ping timeout: 256 seconds
[11:55:16] alex``: has joined #ruby
[17:11:54] alex``: Ping timeout: 260 seconds
[17:15:09] alex``: has joined #ruby
[17:45:05] alex``: Ping timeout: 240 seconds
[17:48:00] alex``: has joined #ruby
[17:52:35] alex``: Ping timeout: 240 seconds
[17:54:25] alex``: has joined #ruby
[18:09:05] alex``: Ping timeout: 240 seconds

2018-08-15

[07:34:58] alex``: has joined #ruby
[08:20:24] alex``: Ping timeout: 244 seconds
[08:23:19] alex``: has joined #ruby
[18:16:47] alex``: Quit: WeeChat 2.2
[18:17:20] alex``: has joined #ruby
[19:31:48] alex``: Ping timeout: 260 seconds
[19:32:50] alex``: has joined #ruby
[20:46:32] alex``: Quit: WeeChat 2.2
[20:46:49] alex``: has joined #ruby
[22:07:10] alex``: Quit: WeeChat 2.2
[22:07:24] alex``: has joined #ruby
[23:04:57] alex``: Ping timeout: 272 seconds

2018-08-14

[16:52:46] alex``: has joined #ruby
[16:53:48] alex``: What is the best recommandation when delegating named parameters?
[16:54:09] alex``: I have a class OVHTelecomControl::Client < OVHApi::Client
[16:54:43] alex``: https://rubydoc.info/gems/ovh-api/OVHApi/Client#initialize-instance_method
[16:54:45] alex``: Definiting my own?
[16:54:52] alex``: initialize(**parameters)
[16:54:55] alex``: or name them
[19:18:43] alex``: Ping timeout: 260 seconds
[19:41:31] alex``: has joined #ruby
[22:02:03] alex``: Ping timeout: 272 seconds

2018-08-13

[08:06:32] alex``: has joined #ruby
[10:11:45] alex``: Ping timeout: 248 seconds
[11:51:30] alex``: has joined #ruby
[12:55:21] alex``: Ping timeout: 240 seconds
[13:32:02] alex``: has joined #ruby
[20:31:51] alex``: Ping timeout: 240 seconds

2018-08-12

[06:13:30] alex``: has joined #ruby
[06:25:40] alex``: Quit: WeeChat 2.2
[06:35:48] alex``: has joined #ruby
[10:12:36] alex``: Quit: WeeChat 2.2
[11:06:59] alex``: has joined #ruby
[11:09:19] alex``: Client Quit

2018-08-11

[05:36:32] alex``: has joined #ruby
[08:26:22] alex``: Is there a way to chain each in one imbrication?
[08:27:37] alex``: I have 3 imbrications
[08:28:59] alex``: client.lines.each(line) in line.queues.each(queue) in queue.agents.each.with_index(1)(agent, position)
[08:29:16] alex``: Is there a way to condense in one imbrication
[08:29:47] alex``: giving (client, line, queue, agent, position)
[08:29:56] alex``: in one block
[08:30:02] alex``: instead of the 3 imbrications
[08:46:22] alex``: client.lines.each do |line|
[08:46:31] alex``: line.queues.each do |queue|
[08:46:48] alex``: queue.agents.each.with_index(1) do |agent, position|
[08:47:00] alex``: I would like:
[08:47:25] alex``: {chaining} do |line, queue, agent, position|
[08:47:36] alex``: instead of the 3 imbrications
[08:48:29] alex``: France XD
[08:48:45] alex``: It’s not an english word as well?
[08:49:34] alex``: What the correct word
[08:51:20] alex``: Actually I would like this working functionnaly
[08:51:35] alex``: like giving queue.agents.map.with_index
[08:52:02] alex``: to return the list of agents with the context (line, queue, position)
[08:54:17] alex``: baweaver: Is is related to Enumarator?
[08:54:31] alex``: I would expect to work with any block
[08:54:45] alex``: client.lines.tap
[08:56:10] alex``: We have an initial object, and send to it a list of methods with blocks, accumulate the blocks arguments to the final call and returns value
[08:57:52] alex``: baweaver: Maybe there could be a hack with |(a,b,c)| ?
[08:58:41] alex``: [[1,2,3],[4,5,6]].map { |(a,b,c)| a+b+c }
[10:42:14] alex``: baweaver: Nice !!
[10:42:40] alex``: The intermidiate data could be preserved with a third argument no?
[10:42:57] alex``: def dive(object, paths, data = [object])
[11:01:39] alex``: baweaver: Do you think the function is useful, or better to organize the code diffently to don’t need imbrication?
[11:02:35] alex``: I think `paths` could be renamed in `def-list` or something to handle arguments
[11:02:58] alex``: list = [:foo, :bar, :baz]
[11:03:35] alex``: list = [:foo, [:arg1, arg2], :bar, { x: 1, y: 2}, :baz]
[23:46:35] alex``: Ping timeout: 272 seconds

2018-08-10

[07:42:56] alex``: has joined #ruby
[11:54:40] alex``: Ping timeout: 256 seconds
[11:59:16] alex``: has joined #ruby
[13:13:36] alex``: Ping timeout: 244 seconds
[13:24:15] alex``: has joined #ruby
[15:53:20] alex``: Quit: WeeChat 2.2
[22:13:52] alex``: has joined #ruby
[22:44:00] alex``: Ping timeout: 244 seconds

2018-08-09

[08:56:06] alex``: has joined #ruby
[09:01:21] alex``: Ping timeout: 240 seconds
[09:34:19] alex``: has joined #ruby
[11:24:24] alex``: Quit: WeeChat 2.2
[11:39:27] alex``: has joined #ruby
[17:40:08] alex``: Quit: WeeChat 2.2

2018-08-08

[07:15:01] alex``: has joined #ruby
[07:32:34] alex``: Quit: WeeChat 2.2
[07:32:51] alex``: has joined #ruby
[07:33:21] alex``: Client Quit
[07:33:35] alex``: has joined #ruby
[14:19:45] alex``: Ping timeout: 248 seconds
[14:46:49] alex``: has joined #ruby
[17:22:44] alex``: Quit: WeeChat 2.2

2018-08-06

[01:55:25] alex``: Ping timeout: 244 seconds
[05:10:56] alex``: has joined #ruby
[06:01:01] alex``: Ping timeout: 268 seconds
[07:50:43] alex``: has joined #ruby

2018-08-05

[06:54:08] alex``: has joined #ruby
[18:08:22] alex``: Quit: WeeChat 2.2
[21:02:37] alex``: has joined #ruby
[23:12:57] alex``: Ping timeout: 240 seconds
[23:15:45] alex``: has joined #ruby

2018-08-04

[17:36:18] alex``: has joined #ruby
[17:36:50] alex``: Client Quit
[17:37:28] alex``: has joined #ruby
[19:30:04] alex``: Quit: WeeChat 2.2
[19:30:21] alex``: has joined #ruby
[21:47:54] alex``: Ping timeout: 260 seconds

2018-07-25

[05:11:39] alex``: has joined #ruby
[05:53:37] alex``: Ping timeout: 256 seconds
[08:05:24] alex``: has joined #ruby
[16:32:33] alex``: Ping timeout: 248 seconds

2018-07-24

[21:28:50] alex``: has joined #ruby
[22:30:39] alex``: Ping timeout: 260 seconds