TomyWork

Activity Graph

Page 1 of 10 | Next »

2019-04-12

[07:10:00] TomyWork: has joined #ruby
[18:04:34] TomyWork: Quit: Leaving

2019-04-11

[07:24:59] TomyWork: has joined #ruby
[14:16:46] TomyWork: Ping timeout: 246 seconds

2019-04-10

[07:04:43] TomyWork: has joined #ruby
[15:02:43] TomyWork: Ping timeout: 246 seconds

2019-04-09

[07:09:13] TomyWork: has joined #ruby
[18:38:46] TomyWork: Ping timeout: 246 seconds

2019-04-08

[09:15:21] TomyWork: has joined #ruby
[16:24:49] TomyWork: Ping timeout: 246 seconds

2019-04-05

[07:11:20] TomyWork: has joined #ruby
[14:11:13] TomyWork: Remote host closed the connection

2019-04-04

[08:02:01] TomyWork: has joined #ruby
[08:09:35] TomyWork: Remote host closed the connection
[08:13:33] TomyWork: has joined #ruby
[16:15:04] TomyWork: Ping timeout: 246 seconds

2019-04-03

[07:17:04] TomyWork: has joined #ruby
[16:17:37] TomyWork: Ping timeout: 246 seconds

2019-04-02

[09:37:45] TomyWork: has joined #ruby
[14:34:07] TomyWork: Ping timeout: 246 seconds

2019-04-01

[07:21:32] TomyWork: has joined #ruby
[15:39:26] TomyWork: Remote host closed the connection

2019-03-29

[08:51:23] TomyWork: has joined #ruby
[17:09:07] TomyWork: Remote host closed the connection

2019-03-28

[08:38:04] TomyWork: has joined #ruby
[18:09:10] TomyWork: Ping timeout: 246 seconds

2019-03-27

[08:14:46] TomyWork: has joined #ruby
[17:46:52] TomyWork: Ping timeout: 246 seconds

2019-03-26

[08:17:28] TomyWork: has joined #ruby
[14:50:34] TomyWork: Ping timeout: 246 seconds

2019-03-25

[08:14:40] TomyWork: has joined #ruby
[16:04:10] TomyWork: Ping timeout: 246 seconds

2019-03-22

[18:01:04] TomyWork: Remote host closed the connection

2019-03-21

[08:21:34] TomyWork: has joined #ruby

2019-03-20

[08:20:25] TomyWork: has joined #ruby
[16:07:49] TomyWork: Ping timeout: 246 seconds

2019-03-19

[08:14:39] TomyWork: has joined #ruby
[09:47:49] TomyWork: Ping timeout: 246 seconds
[09:52:20] TomyWork: has joined #ruby
[16:36:37] TomyWork: Ping timeout: 246 seconds

2019-03-18

[08:07:58] TomyWork: has joined #ruby
[09:29:17] TomyWork: Remote host closed the connection
[09:32:00] TomyWork: has joined #ruby
[17:25:01] TomyWork: Ping timeout: 246 seconds

2019-03-15

[08:01:28] TomyWork: Ping timeout: 246 seconds
[08:13:35] TomyWork: has joined #ruby
[08:45:34] TomyWork: Ping timeout: 246 seconds
[09:03:24] TomyWork: has joined #ruby
[13:08:51] TomyWork: # require 'date'; DateTime.parse('2019-03-15 13:01:11 UTC').strftime('%F %T') # How can I make this display times in the local time zone?
[13:09:44] TomyWork: local time zone = the system's configured time zone, basically whatever the "date" bash command shows
[13:14:12] TomyWork: that was a fun time to start writing ruby
[14:02:43] TomyWork: >> require 'date'; DateTime.parse('2019-03-15 13:01:11 UTC').strftime('%F %T') # How can I make this display times in the local time zone?
[14:04:03] TomyWork: c-c talking to me?
[14:04:41] TomyWork: yeaht the first one was wrong :)
[14:05:43] TomyWork: ACTION sets convolution matrix [[0,0,0],[0,1,0],[0,0,0]]
[14:05:59] TomyWork: that should help
[18:02:41] TomyWork: Remote host closed the connection

2019-03-14

[10:01:27] TomyWork: has joined #ruby
[11:43:28] TomyWork: Ping timeout: 246 seconds
[11:48:26] TomyWork: has joined #ruby

2019-03-13

[07:39:51] TomyWork: has joined #ruby
[21:04:48] TomyWork: Remote host closed the connection

2019-03-12

[08:23:36] TomyWork: has joined #ruby
[09:30:40] TomyWork: Ping timeout: 246 seconds
[09:52:46] TomyWork: has joined #ruby
[10:49:46] TomyWork: Ping timeout: 246 seconds
[10:51:06] TomyWork: has joined #ruby
[14:51:05] TomyWork: I have a certain HTTP server I need to deal with, that sends chunked encoding in an odd way. With chunked encoding, you have a CRLF following each chunk. Unfortunately, this server delays that CRLF until the start of the next chunk, which can be hours later. Do you think there's a ruby library that can deal with that and still timely call handlers, even though that CRLF hasn't arrived yet?
[15:05:58] TomyWork: dberger wrong direction :)
[15:06:01] TomyWork: the server sends chunks
[15:06:08] TomyWork: it's basically an event system
[15:06:16] TomyWork: every event is a chunk
[15:24:50] TomyWork: dberger the thing is, to make this work with python's "requests" library, i had to write this beauty: https://gist.github.com/TomyLobo/9700b225aa4bffa283b34c1a1604ffb1
[15:26:16] TomyWork: and i would like to simultaneously get rid of the python (i'm really not that good at python and i prefer ruby) and get rid of that kludge, if possible
[16:00:10] TomyWork: Remote host closed the connection

2019-02-12

[18:19:35] TomyWork: has joined #ruby
[18:28:56] TomyWork: WSL or bust
[18:29:45] TomyWork: make your windows look and feel like ubuntu :)
[18:30:44] TomyWork: but question: what is the target environment?
[18:30:50] TomyWork: likely not a windows with wsl, right?
[18:31:08] TomyWork: so basically you're developing on the wrong os now
[18:31:25] TomyWork: offer them to run windows in a VM instead
[18:31:36] TomyWork: KRDC is nice
[18:32:11] TomyWork: they likely want some corporate crap in there
[18:32:19] TomyWork: or maybe antivirus
[18:32:42] TomyWork: or maybe they just don't wanna deal with linux
[18:32:54] TomyWork: offer them to admin the system yourself
[18:33:29] TomyWork: is there anything you can't do on linux that you would be able to do on windows that is relevant to your work?
[18:34:03] TomyWork: no the other way round
[18:34:34] TomyWork: in my company, it's legacy crap like notes and old vsphere
[18:37:39] TomyWork: just install a windows 10 theme on ubuntu
[18:37:57] TomyWork: http://www.linuxandubuntu.com/home/transform-your-ubuntu-into-windows-10-look-with-these-gtk-themes
[18:38:35] TomyWork: probably best to use kde for this, it's more customizable
[18:38:50] TomyWork: https://store.kde.org/p/998654/
[18:39:41] TomyWork: can you request a 2nd comp?
[18:39:52] TomyWork: maybe they just want you to have one with windows
[18:40:36] TomyWork: return the favor then?
[18:41:28] TomyWork: and your team is the only one working on ruby stuff?
[18:41:41] TomyWork: what does your team lead say?
[18:41:46] TomyWork: macbooks with windows?
[18:42:15] TomyWork: and you can't get the same deal because?
[18:44:57] TomyWork: brew sounds better than windows :)
[18:45:06] TomyWork: and a lot of ruby devs use macs
[18:45:11] TomyWork: so you get good support
[18:55:23] TomyWork: except it's still not a unix
[18:55:42] TomyWork: not posix compliant, backslash paths and all that stupidity
[19:47:01] TomyWork: Ping timeout: 246 seconds

2018-12-18

[13:11:30] TomyWork: has joined #ruby
[13:19:42] TomyWork: are you aware of a ruby lib capable of dealing with asn.1 indefinite-length structures?
[13:19:48] TomyWork: reading and writing
[13:20:21] TomyWork: specifically i want to convert all indefinite-length structures to definite-length structures
[17:02:52] TomyWork: Ping timeout: 246 seconds

2018-12-13

[16:30:38] TomyWork: has joined #ruby
[16:34:32] TomyWork: hi, I'm trying to use redis-rb to listen to a pubsub channel. my program crashes with an exception whenever there's a connection loss. I notice there's a with_reconnect method in there, but I can't figure out whether it solves my issue because I don't know if I'm using it correctly
[16:35:16] TomyWork: redis = Redis.new(host: redis_host); redis.with_reconnect do redis.subscribe(channel) do ...
[16:36:21] TomyWork: should I just catch the exception and reconnect or is there a way for the library to do this for me?
[17:45:22] TomyWork: Ping timeout: 246 seconds

2018-11-23

[09:32:55] TomyWork: has joined #ruby
[16:09:14] TomyWork: Remote host closed the connection

2018-09-13

[08:43:11] TomyWork: has joined #ruby
[14:54:55] TomyWork: Ping timeout: 246 seconds

2018-08-31

[08:59:07] TomyWork: has joined #ruby
[16:23:28] TomyWork: Remote host closed the connection

2018-08-30

[13:48:13] TomyWork: has joined #ruby
[15:19:58] TomyWork: i'm writing an ldap cache right now. I'm using some of the back-end classes of net-ldap to parse LDAP PDUs from the wire
[15:20:08] TomyWork: surprisingly, i got that part to work
[15:20:32] TomyWork: now i need to re-encode them and send them on their way on the other connection
[15:22:02] TomyWork: my cache is gonna be pretty dumb, it's just going to store response packets by request SHA1 or something and then replay those if the backend connection drops
[15:29:20] TomyWork: is anyone here familiar enough with the internals for Net::LDAP to tell me how PDUs are serialized back into BER format?
[16:49:50] TomyWork: putting relative directories in your PATH, for whatever reason, makes PATH resolution behaviour unpredictable unless you always know the cwd, which you usually don't.
[16:52:37] TomyWork: if your system is in any way accessible to the public (or to untrusted actors in general), you also need to consider security. Having an unpredictable PATH means your security is unpredictable, unless you always specify absolute paths for every single command, which you usually don't.
[17:45:29] TomyWork: if a method yields to a block, can i somehow prevent the remainder of the method from being run after the block ends?
[17:46:06] TomyWork: i guess i could raise and catch, but is there a better way?
[17:48:39] TomyWork: I cannot modify the method
[17:49:18] TomyWork: this is someone else's method, i want to mess with their intended execution flow
[17:51:39] TomyWork: https://github.com/ruby-ldap/ruby-net-ldap/blob/master/lib/net/ber/ber_parser.rb#L172 basically I want to put everything that this function reads from the stream into a buffer/string/whatever
[17:51:43] TomyWork: so i can replay it later
[17:52:30] TomyWork: in case you're wondering, that method is defined in a module, that module is included (via monkey-patching) in several streams and stream-like objects
[17:53:47] TomyWork: this reads a BER object from the network, but i dont know how much it will read beforehand. BER encoding for the length is a bit complicated
[17:54:49] TomyWork: I could just copy that "read_ber_length" function or invoke it via Object#send, but i thought using the actual function may be cleaner
[17:55:18] TomyWork: (read_ber_length is private)
[18:05:35] TomyWork: baweaver any comments? :)
[18:19:22] TomyWork: apeiros_ cool, wasn't aware of that, but that's exactly what i need :)
[18:21:30] TomyWork: can i declare variables without assigning them?
[18:21:56] TomyWork: i want to make sure they're assigned on the outer scope not the block scope
[18:26:28] TomyWork: http://paste.ubuntu.com/p/vWJRzBF73C/ tadaaa
[18:27:16] TomyWork: i went extraclever and made it so the check for indeterminate content length (content_length == -1) doubles as the check for the end of the stream (which shouldn't happen)
[18:27:43] TomyWork: i probably should go extra clever
[18:28:28] TomyWork: don't read too much into it
[18:28:36] TomyWork: it's very basic
[18:28:46] TomyWork: and full of encoding rules
[18:31:40] TomyWork: even shorter
[18:31:54] TomyWork: it does have such a code path
[18:33:51] TomyWork: well it's just nil, so i dont care :)
[18:34:10] TomyWork: return nil if id == nil
[18:36:13] TomyWork: btw, about Net::LDAP being a hot mess
[18:36:29] TomyWork: first of all, thanks, so it's not just me :D
[18:36:50] TomyWork: got a better idea? all i need is BER parsing
[18:37:11] TomyWork: baweaver said that
[18:38:14] TomyWork: apeiros you havent looked at the BER encoding rules yet :D
[18:38:58] TomyWork: i noped after looking at https://github.com/ruby-ldap/ruby-net-ldap/blob/master/lib/net/ber/ber_parser.rb#L135-L152
[18:40:40] TomyWork: 0x80 is indeterminate length
[18:40:45] TomyWork: indeed unsupported
[18:40:58] TomyWork: as indicated by exceptions elsewhere
[18:41:58] TomyWork: well -1 is a valid way of indicating that the length is indeterminate
[18:42:13] TomyWork: the read_ber_length function has no issue determining that
[18:42:31] TomyWork: it's just that read_ber doesn't support indeterminate length
[18:43:55] TomyWork: anyway, i'm gonna leave or i'll stay forever ^^
[18:49:25] TomyWork: Ping timeout: 246 seconds

2018-08-22

[07:27:53] TomyWork: has joined #ruby
[16:32:35] TomyWork: Ping timeout: 240 seconds

2018-08-21

[07:28:52] TomyWork: has joined #ruby
[17:34:35] TomyWork: Ping timeout: 240 seconds

2018-08-20

[07:16:06] TomyWork: has joined #ruby
[16:44:35] TomyWork: Ping timeout: 240 seconds

2018-08-17

[07:38:32] TomyWork: has joined #ruby
[15:12:55] TomyWork: Remote host closed the connection

2018-08-16

[07:56:29] TomyWork: has joined #ruby
[12:20:05] TomyWork: Ping timeout: 240 seconds

2018-08-10

[07:15:57] TomyWork: has joined #ruby
[16:25:38] TomyWork: Remote host closed the connection

2018-08-09

[07:25:35] TomyWork: has joined #ruby
[07:25:49] TomyWork: has left #ruby: ("Leaving")
[07:26:17] TomyWork: has joined #ruby
[07:28:07] TomyWork: sorry about the join spam, i'm not on my own comp here, so i'm authenticating manually, and this +r stuff is killing me
[07:28:38] TomyWork: still preferable to the bot situation though :)
[08:12:36] TomyWork: ArahaelPi no, i mean +r on the channel, which blocks unidentified users
[08:19:50] TomyWork: apeiros uh, i still see evidence of the botspam situation here and there. you should leave that on until that blows over
[08:21:33] TomyWork: apeiros uh, i still see evidence of the botspam situation here and there. you should leave that on until that blows over
[09:03:59] TomyWork: last thing christel posted on twitter is the handshake release post. after that it's just dozens of retweets. maybe someone is pissed off at handshake for some irrational reason... ex team member?
[09:04:49] TomyWork: forgot the 2nd premise: the release post is from about the same time as the start of the spambot attack
[15:49:35] TomyWork: Ping timeout: 240 seconds

2018-08-08

[07:42:16] TomyWork: has joined #ruby
[12:57:35] TomyWork: Ping timeout: 240 seconds
[13:38:41] TomyWork: has joined #ruby
[13:38:59] TomyWork: has left #ruby: ("Leaving")

2018-08-06

[08:17:05] TomyWork: has joined #ruby

2018-07-27

[07:30:33] TomyWork: has joined #ruby
[15:18:03] TomyWork: Remote host closed the connection

2018-07-26

[07:36:55] TomyWork: has joined #ruby
[16:03:21] TomyWork: Remote host closed the connection

2018-07-25

[07:18:13] TomyWork: has joined #ruby
[10:57:01] TomyWork: Quit: Leaving
[12:19:26] TomyWork: has joined #ruby
[12:49:07] TomyWork: Remote host closed the connection
[12:50:50] TomyWork: has joined #ruby
[13:48:35] TomyWork: Ping timeout: 240 seconds

2018-07-24

[07:16:24] TomyWork: has joined #ruby
[15:23:05] TomyWork: Ping timeout: 240 seconds

2018-07-23

[07:05:00] TomyWork: has joined #ruby
[15:58:35] TomyWork: Ping timeout: 240 seconds

2018-07-20

[07:32:32] TomyWork: has joined #ruby
[19:38:29] TomyWork: Remote host closed the connection

2018-07-19

[15:42:39] TomyWork: 31 significant bits, usually
[15:42:45] TomyWork: yes, i copypasted it from the log file
[15:42:51] TomyWork: that is the processing i applied
[15:43:37] TomyWork: if i copypaste a number from a logfile into a ruby program, it is a fixnum literal
[15:45:20] TomyWork: >> [0b01001000010001010100110001010000].pack("V")
[15:45:54] TomyWork: >> "q'#{[0b01001000010001010100110001010000].pack("V")}!"
[15:49:47] TomyWork: "Packs the contents of arr into a binary sequence" - so a String is a binary sequence?
[15:53:25] TomyWork: i thought they were more abstract than that
[15:54:24] TomyWork: well it says "GET HELP"
[15:54:54] TomyWork: some garbled nonsense before that
[15:55:09] TomyWork: i guess the rest after it would be " I'M TRAPPED IN A PACKET FACTORY"
[15:58:34] TomyWork: i played that before i had a smartphone
[15:59:00] TomyWork: had to find a way to decode the qr code from a screenshot
[15:59:52] TomyWork: which is a surprisingly unusual use case
[16:02:01] TomyWork: hah, some of the other stuff looks like a TLS handshake
[17:40:35] TomyWork: Ping timeout: 240 seconds