matled

Activity Graph

Page 1 of 1

2018-08-01

[12:48:58] matled: *.net *.split

2018-07-20

[00:07:26] matled: *.net *.split
[00:15:45] matled: has joined #ruby

2018-06-20

[22:10:40] matled: Ping timeout: 245 seconds
[22:13:42] matled: has joined #ruby

2018-05-29

[02:46:55] matled: *.net *.split
[02:47:59] matled: has joined #ruby
[02:50:04] matled: *.net *.split
[02:50:33] matled: has joined #ruby

2018-05-24

[13:11:11] matled: Remote host closed the connection
[13:20:10] matled: has joined #ruby

2018-05-22

[18:05:14] matled: Remote host closed the connection

2018-05-10

[12:10:18] matled: Remote host closed the connection
[12:25:09] matled: has joined #ruby

2018-05-06

[04:45:34] matled: Remote host closed the connection
[04:45:42] matled: has joined #ruby

2018-04-25

[12:25:41] matled: *.net *.split
[12:27:20] matled: has joined #ruby
[15:01:12] matled: *.net *.split
[15:03:17] matled: has joined #ruby

2018-04-11

[01:52:35] matled: Read error: Connection reset by peer
[01:57:39] matled: has joined #ruby

2018-04-10

[04:03:07] matled: Remote host closed the connection
[04:10:28] matled: has joined #ruby

2018-04-09

[19:46:25] matled: Remote host closed the connection
[19:53:45] matled: has joined #ruby

2018-02-25

[09:00:28] matled: Remote host closed the connection
[09:00:39] matled: has joined #ruby

2018-01-28

[00:25:28] matled: Read error: Connection reset by peer
[01:24:24] matled: Read error: Connection reset by peer

2018-01-10

[20:05:50] matled: Remote host closed the connection
[21:40:13] matled: has joined #ruby

2018-01-07

[12:29:50] matled: Remote host closed the connection
[13:05:09] matled: has joined #ruby

2017-12-05

[19:43:50] matled: Remote host closed the connection
[19:55:12] matled: has joined #ruby

2017-10-16

[10:25:10] matled: has joined #ruby

2017-09-23

[06:28:55] matled: Remote host closed the connection

2017-09-17

[03:01:06] matled: Remote host closed the connection
[03:01:12] matled: has joined #ruby

2017-09-14

[11:35:10] matled: has joined #ruby

2017-08-08

[15:49:36] matled: Remote host closed the connection
[16:00:12] matled: has joined #ruby

2017-07-18

[08:13:43] matled: Remote host closed the connection
[08:25:09] matled: has joined #ruby

2017-07-12

[22:36:27] matled: has joined #ruby

2017-07-04

[21:26:47] matled: Write error: Broken pipe

2017-06-20

[00:15:13] matled: Write error: Broken pipe
[00:17:05] matled: *.net *.split
[00:22:51] matled: has joined #ruby
[22:15:39] matled: Write error: Broken pipe

2017-06-16

[23:26:15] matled: *.net *.split

2017-05-27

[13:04:05] matled: Remote host closed the connection
[13:15:10] matled: has joined #ruby

2017-04-12

[06:55:53] matled: Ping timeout: 260 seconds

2017-03-30

[20:25:45] matled: Remote host closed the connection
[20:25:53] matled: has joined #ruby

2017-03-19

[10:57:07] matled: Remote host closed the connection
[11:05:12] matled: has joined #ruby

2017-03-17

[14:09:24] matled: Remote host closed the connection
[14:09:31] matled: has joined #ruby

2016-07-28

[04:41:01] matled: Write error: Broken pipe

2016-07-08

[10:52:48] matled: Remote host closed the connection
[10:52:58] matled: has joined #ruby

2016-06-30

[09:08:19] matled: *.net *.split

2016-06-14

[00:27:58] matled: Remote host closed the connection
[00:28:06] matled: has joined #ruby

2016-05-10

[19:10:10] matled: mynameisbrian: empty hash and empty block are both {}, so if you have 'puts {}' it is interpreted as puts with a block, whereas puts({}) disambiguates it to be a has as the first argument
[19:11:07] matled: mynameisbrian: def foo(*args, &block); p [args, block]; end -- this can help to understand what's going on

2016-03-03

[03:26:38] matled: Ping timeout: 260 seconds

2016-02-27

[22:41:00] matled: Ping timeout: 240 seconds

2016-02-25

[15:26:00] matled: Ping timeout: 240 seconds

2016-02-19

[18:27:23] matled: *.net *.split

2016-02-16

[17:27:26] matled: Remote host closed the connection
[17:40:09] matled: has joined #ruby

2016-01-31

[12:25:14] matled: *.net *.split
[12:28:35] matled: has joined #ruby

2016-01-21

[12:27:05] matled: Remote host closed the connection
[12:40:10] matled: has joined #ruby

2015-12-19

[17:31:45] matled: Read error: Connection reset by peer

2015-12-11

[22:05:30] matled: Read error: Connection reset by peer

2015-12-02

[15:39:37] matled: Write error: Broken pipe
[15:40:14] matled: has joined #ruby
[15:53:29] matled: Write error: Connection reset by peer
[15:54:03] matled: has joined #ruby
[16:48:41] matled: Write error: Broken pipe
[16:53:31] matled: has joined #ruby

2015-11-27

[10:58:34] matled: Write error: Broken pipe

2015-11-17

[05:00:08] matled: Ping timeout: 246 seconds
[17:59:16] matled: Ping timeout: 265 seconds

2015-11-16

[23:06:50] matled: *.net *.split

2015-11-14

[05:14:24] matled: *.net *.split
[05:50:47] matled: Read error: Connection reset by peer

2015-11-07

[15:57:12] matled: Remote host closed the connection
[16:00:28] matled: has joined #ruby

2015-11-05

[15:46:11] matled: Remote host closed the connection
[15:46:20] matled: has joined #ruby

2015-10-16

[00:08:57] matled: has joined #ruby

2015-10-10

[05:32:15] matled: Remote host closed the connection
[21:43:03] matled: *.net *.split

2015-10-04

[19:32:24] matled: Ping timeout: 240 seconds

2015-09-27

[22:03:35] matled: Read error: Connection reset by peer

2015-09-16

[00:21:44] matled: Remote host closed the connection

2015-09-07

[03:08:32] matled: Ping timeout: 265 seconds

2015-08-21

[07:37:12] matled: Remote host closed the connection

2015-08-19

[23:44:00] matled: Remote host closed the connection
[23:44:07] matled: has joined #ruby

2015-08-16

[07:06:47] matled: Ping timeout: 255 seconds

2015-08-08

[11:05:09] matled: Remote host closed the connection
[11:05:17] matled: has joined #ruby

2015-07-24

[08:33:56] matled: Remote host closed the connection
[08:55:09] matled: has joined #ruby

2015-07-14

[18:30:52] matled: *.net *.split

2015-07-09

[00:07:19] matled: Ping timeout: 255 seconds
[00:16:09] matled: has joined #ruby

2015-07-06

[00:27:33] matled: Read error: Connection reset by peer

2015-06-13

[22:02:35] matled: Remote host closed the connection
[22:09:53] matled: has joined #ruby

2015-06-01

[08:10:54] matled: Remote host closed the connection

2015-05-28

[17:55:57] matled: Remote host closed the connection
[18:05:09] matled: has joined #ruby

2014-07-14

[08:57:45] matled: lng: ../..

2014-06-11

[21:56:34] matled: PRY: not an acRonYm?
[21:59:19] matled: fresham: you could use Hash[keys.zip(values)]

2014-06-02

[20:57:00] matled: % printf "\xEF\xBB\xBFA" | file - => /dev/stdin: UTF-8 Unicode (with BOM) text, with no line terminators
[20:57:18] matled: luckyruby: you probably want to remove the BOM (byte order mark)
[20:58:33] matled: luckyruby: mh, File.read / File.open appears to do that for me already
[20:58:56] matled: luckyruby: what does File.open(...).gets.inspect give you?
[21:00:34] matled: luckyruby: so that looks good. calling #[0,4] on that string should give you AUSD
[21:01:45] matled: luckyruby: oh, that's interesting. I can reprocude your problem here...
[21:02:13] matled: #inspect with utf-8 in the locale doesn't escape the bom :(
[21:02:25] matled: so it's just invisible
[21:06:49] matled: luckyruby: not sure if there is a good way to do this. you can open the file with 'r:bom|utf-8' according to stackoverflow, but it probably expects a bom at that point. you can also just strip the bom if present (e.g. #sub(/\A\xEF\xBB\xBF/, ""))
[21:10:16] matled: luckyruby: whoever wrote that file added that. some libraries of programming languages will do that, some editors, ...

2014-04-05

[22:34:07] matled: is iconv just removed from stdlib or completely deprecated for ruby? I cannot see any support for transliteration in the stdlib and iconv appears to work well for that.
[22:35:05] matled: apeiros: gem install still works :)
[22:35:17] matled: well, I'm writing a new script
[22:35:42] matled: and want to replace accents and umlauts with transliterations (i.e. strip off the accent or replace ?? with ae)
[22:39:51] matled: thanks, I'll take a look at the activesupport function for this
[22:53:57] matled: uh, iconv needs 2.6s, active support 12.5s (baseline is 1s without transliteration)
[22:56:15] matled: no, I haven't seen any option for that
[22:56:34] matled: it can replace/remove characters
[22:56:54] matled: replace all with the same (e.g. a beautiful question mark :)
[22:57:47] matled: if I guard the transliterate with #ascii_only? it's not too bad, was just a bit surprising that it would suddenly take 12s
[22:59:29] matled: yeah, I don't really understand the state of iconv. it can be installed from gems and has no deprecation warning, so I'm not sure if the library itself is deprecated or if it was just deprecated as part of stdlib
[23:00:42] matled: ah, ok. I've not actually seen the warning myself, just searching for ruby transliteration showed a lot of discussions and confusion about the deprecation

2012-09-06

[05:58:53] matled: rubyNoob: nokogiri has #at for the first match and #search for all matches
[05:59:29] matled: check the documentation if you need specifically the xpath version
[05:59:52] matled: and for quick hacking note that there is also / and % as shortcuts for at and search (I'm not sure which way around)