phreakocious

Activity Graph

Page 1 of 1

2017-12-18

[01:54:45] phreakocious: Quit: gotta go

2017-12-01

[02:28:50] phreakocious: has joined #ruby

2017-11-16

[01:28:19] phreakocious: has joined #ruby

2017-08-17

2017-08-14

[23:51:31] phreakocious: *.net *.split
[23:52:37] phreakocious: has joined #ruby

2017-06-27

[09:34:58] phreakocious: *.net *.split

2017-06-20

[00:17:28] phreakocious: *.net *.split
[00:23:02] phreakocious: has joined #ruby

2017-06-16

[23:26:16] phreakocious: *.net *.split
[23:26:43] phreakocious: has joined #ruby

2017-06-02

[14:32:17] phreakocious: I would like to use this gem that normally writes to stdout, but have the output go into a variable. It offers the ability to swap out the file descriptor, but that seems sloppy (if it's even possible). Any thoughts? https://github.com/arches/table_print
[14:34:40] phreakocious: if it's even possible to collect the output of a swapped out file descriptor into a variable, is what I meant.
[14:35:18] phreakocious: beautiful, I'll look into it. thanks :)
[14:36:34] phreakocious: thanks again, havenwood and ljarvis
[14:40:04] phreakocious: worked like a champ, despite being a little hard on the eyes :D

2017-04-19

[14:36:40] phreakocious: Ping timeout: 240 seconds
[14:39:18] phreakocious: has joined #ruby

2017-04-12

[06:55:40] phreakocious: Ping timeout: 268 seconds
[06:57:06] phreakocious: has joined #ruby

2016-04-14

[01:29:11] phreakocious: has joined #ruby
[01:36:36] phreakocious: has joined #ruby
[01:37:34] phreakocious: has joined #ruby

2016-01-16

[17:19:25] phreakocious: people love getting told how to talk, I hear...
[17:20:05] phreakocious: has joined #ruby
[17:22:50] phreakocious: good.. full of looking for ways to be a victimn :)
[17:25:08] phreakocious: has joined #ruby-banned
[17:25:23] phreakocious: has left #ruby-banned: ("Leaving...")

2016-01-14

[20:41:43] phreakocious: Ping timeout: 260 seconds
[20:47:57] phreakocious: has joined #ruby
[21:27:35] phreakocious: Ping timeout: 240 seconds
[21:29:58] phreakocious: has joined #ruby

2016-01-12

[15:11:56] phreakocious: Ping timeout: 272 seconds
[15:16:25] phreakocious: has joined #ruby

2016-01-11

[14:35:27] phreakocious: Ping timeout: 260 seconds
[14:41:21] phreakocious: has joined #ruby
[14:46:24] phreakocious: Ping timeout: 264 seconds
[15:19:23] phreakocious: has joined #ruby
[15:48:02] phreakocious: Ping timeout: 276 seconds
[15:49:30] phreakocious: has joined #ruby
[20:22:50] phreakocious: Ping timeout: 246 seconds
[20:31:43] phreakocious: has joined #ruby

2016-01-06

[14:34:27] phreakocious: Quit: gotta go
[14:56:43] phreakocious: has joined #ruby

2015-12-19

[20:36:03] phreakocious: Read error: Connection reset by peer
[20:36:30] phreakocious: has joined #ruby

2015-12-03

[00:08:32] phreakocious: Ping timeout: 244 seconds
[00:25:33] phreakocious: has joined #ruby

2015-12-02

[15:37:37] phreakocious: *.net *.split
[15:41:41] phreakocious: has joined #ruby
[15:51:28] phreakocious: *.net *.split
[16:47:56] phreakocious: has joined #ruby

2015-11-29

[22:18:44] phreakocious: *.net *.split
[22:19:32] phreakocious: has joined #ruby

2015-11-26

[07:56:17] phreakocious: *.net *.split
[18:55:31] phreakocious: has joined #ruby

2015-11-15

[04:44:36] phreakocious: Ping timeout: 264 seconds
[04:50:26] phreakocious: has joined #ruby

2015-11-14

[07:03:57] phreakocious: Ping timeout: 255 seconds
[07:05:02] phreakocious: has joined #ruby

2015-10-16

[00:08:59] phreakocious: has joined #ruby

2015-10-04

[19:34:02] phreakocious: DEA7TH: turn it off?
[19:35:29] phreakocious: I can turn it off per-channel
[19:35:55] phreakocious: I think even mIRC could do that :)
[19:37:47] phreakocious: sure you didn't mean to go to #TCL ? :)

2015-10-03

[20:51:34] phreakocious: a pond might have attributes/characteristics (properties) like salinity and pH and depth
[20:55:05] phreakocious: goldfish6744: but it's not necessary to refer to them in that way...
[20:55:20] phreakocious: using objects makes things more expressive..

2015-10-01

[14:41:27] phreakocious: does it seem reasonable that spawning 200 ruby processes is faster than 200 threads for doing the same work? the only mutex locked activity is pushing items into an array..
[14:42:16] phreakocious: it's all just sending/receiving UDP packets
[22:29:45] phreakocious: I would like to make a nice thread-safe increment method that takes a class instance or global variable as a parameter.. is there a nice way to do this since you can't pass a reference to the variable?
[22:31:19] phreakocious: something like .. def foo(var) ; $mutex.synchronize { var += 1 } ....
[22:34:37] phreakocious: could it be done with (ick) eval?
[22:34:46] phreakocious: or some ruby equivalent
[22:36:04] phreakocious: ahh jhass I see'
[22:36:52] phreakocious: I'm still stuck in a very functional way of thinking. :D thanks Ox0dea and jhass
[22:39:29] phreakocious: that's pretty neat

2015-09-29

[19:33:56] phreakocious: Ping timeout: 256 seconds
[19:34:48] phreakocious: has joined #ruby

2015-09-26

[19:02:40] phreakocious: is there a way to use the printf style but have the results go into a variable instead of printing?

2015-09-24

[20:39:19] phreakocious: what's easy-mode?
[20:39:46] phreakocious: I think unless reads better in some situations
[20:39:55] phreakocious: especially when used at the end of a statement
[20:41:02] phreakocious: been using ruby for almost 3 years after 10+ of perl has forced me to learn a lot of those rubyisms but the code looks better for it
[20:42:01] phreakocious: heh, it's good for what it was made for, but it got mega bloated and then totally lost its direction
[21:14:49] phreakocious: i_node: never regex html :)
[21:14:55] phreakocious: it's almost a troll question
[21:15:29] phreakocious: I know, I've done it
[21:47:44] phreakocious: craysiii: you can use the .reply method to send something back to the channel it was received on
[21:49:20] phreakocious: (half-assedly working on a cinch bot myself)
[21:50:35] phreakocious: craysiii: take a look at: https://github.com/phreakocious/verboten/blob/master/verboten.rb
[21:52:10] phreakocious: +1 to that :)
[21:54:19] phreakocious: craysiii: I believe so, yeah
[22:28:54] phreakocious: craysiii: what OS are you on?
[22:29:06] phreakocious: it looks like you don't have compilers and headers installed
[22:29:32] phreakocious: do sudo apt-get build-essential
[22:30:10] phreakocious: yeah something like libwx-devel
[22:47:28] phreakocious: craysiii: there's a wx(blahblah)-headers too
[22:48:40] phreakocious: each time you see this line checking for wx/preferences.h... *** extconf.rb failed ***
[22:48:56] phreakocious: you are missing some other -dev package or some headers related to what it's looking for
[22:49:10] phreakocious: (or some variant of that line)
[22:49:42] phreakocious: and that :D ... always that. :)
[22:52:12] phreakocious: it takes a lot of looking at broken shit to know right where to look in large stack trace really quickly :)
[22:53:21] phreakocious: version 0.0.1.1-dev is promising ;)
[22:58:12] phreakocious: native library stuff is best left to the masochists
[22:58:57] phreakocious: there is no hand holding :)
[22:59:27] phreakocious: sometimes you get lucky and there is an OS package for the gem you want
[22:59:45] phreakocious: and all the dependencies are magically resolved
[23:16:47] phreakocious: craysiii: congrats

2015-09-20

[00:56:08] phreakocious: Quit: gotta go
[00:58:09] phreakocious: has joined #ruby
[03:43:02] phreakocious: Remote host closed the connection
[03:45:04] phreakocious: has joined #ruby

2015-09-19

[13:47:56] phreakocious: anyone have a simple gem for handling config files? dotenv's focus on environment variables feels really odd to me, and settingslogic's yaml is a bit much
[13:49:09] phreakocious: the example seems overengineered for simple key/value type needs
[13:49:24] phreakocious: and I don't need development/production separation
[13:51:16] phreakocious: heh, I guess I'll just write one :)
[13:51:56] phreakocious: it's like fashion.. what's old is new again
[13:52:56] phreakocious: in the process of finding this, http://12factor.net/ came up repeatedly and it looks like some freemason shit to me
[14:17:48] phreakocious: apeiros: yeah, leaning that way.. settingslogic doesn't seem to work right with simple lists :(

2015-09-18

[21:20:36] phreakocious: Ping timeout: 260 seconds
[21:21:51] phreakocious: has joined #ruby
[23:06:16] phreakocious: Quit: gotta go
[23:07:20] phreakocious: has joined #ruby
[23:14:28] phreakocious: Quit: gotta go
[23:15:51] phreakocious: has joined #ruby
[23:23:08] phreakocious: Quit: gotta go
[23:24:35] phreakocious: has joined #ruby
[23:42:16] phreakocious: Quit: gotta go
[23:44:01] phreakocious: has joined #ruby

2015-09-17

[12:42:15] phreakocious: has left #ruby-offtopic: ("Leaving...")

2015-09-16

[18:49:25] phreakocious: has joined #ruby-offtopic

2015-09-15

[02:02:34] phreakocious: RubyRed: assholery

2015-09-12

[16:09:52] phreakocious: Ping timeout: 255 seconds
[16:14:18] phreakocious: has joined #ruby
[16:31:21] phreakocious: Remote host closed the connection
[16:37:30] phreakocious: has joined #ruby

2015-09-10

[14:05:11] phreakocious: Ping timeout: 240 seconds
[14:07:26] phreakocious: has joined #ruby

2015-09-07

[01:58:55] phreakocious: Ping timeout: 255 seconds
[02:01:27] phreakocious: has joined #ruby
[15:44:47] phreakocious: Ping timeout: 240 seconds
[15:47:04] phreakocious: has joined #ruby

2015-09-01

[19:34:05] phreakocious: *.net *.split
[19:35:05] phreakocious: has joined #ruby
[19:47:57] phreakocious: *.net *.split
[19:52:40] phreakocious: has joined #ruby

2015-08-18

[14:59:43] phreakocious: *.net *.split

2015-08-13

[07:41:27] phreakocious: *.net *.split
[07:43:00] phreakocious: has joined #ruby
[07:46:50] phreakocious: Ping timeout: 256 seconds
[07:56:57] phreakocious: has joined #ruby

2015-08-04

[08:35:11] phreakocious: *.net *.split
[08:37:37] phreakocious: has joined #ruby

2015-07-23

[23:33:14] phreakocious: Ping timeout: 264 seconds
[23:34:41] phreakocious: has joined #ruby

2015-07-16

[13:31:38] phreakocious: hi, can someone explain why I get this error message when doing a Queue.pop(true) for non-blocking: in `pop': no implicit conversion of true into Integer (TypeError)
[13:33:14] phreakocious: the docs and many online examples show it is correct syntax
[13:35:15] phreakocious: http://ruby-doc.org/stdlib-2.0.0/libdoc/thread/rdoc/Queue.html#method-i-pop
[13:35:21] phreakocious: https://gist.github.com/phreakocious/f57aa23257f9b855ba2c
[13:37:26] phreakocious: right above the declaration of counters
[13:38:49] phreakocious: [k-_: what's wrong with that?
[13:39:22] phreakocious: it doesn't show that when i puts hosts.class though
[13:40:52] phreakocious: thanks for the help all
[13:42:50] phreakocious: not yet but it will be
[13:50:04] phreakocious: [k-_: you were totally right, thanks again
[15:43:50] phreakocious: another question, if I may.. is it possible to set the name of a thread that will appear in ps/top? $0 changes the main process and all threads show that.
[15:44:06] phreakocious: google has not been helpful
[15:45:32] phreakocious: ah ruby 2.1 :( that might work, though
[15:46:27] phreakocious: ah very nice. Thanks again
[15:46:59] phreakocious: I would like to be on 2.2, but this is not an easy thing :)
[17:17:49] phreakocious: Ping timeout: 264 seconds
[17:20:36] phreakocious: has joined #ruby

2015-06-20

[21:38:08] phreakocious: Ping timeout: 255 seconds

2015-05-30

[01:33:14] phreakocious: Ping timeout: 265 seconds
[06:44:46] phreakocious: has joined #ruby

2015-05-27

[09:31:53] phreakocious: Ping timeout: 252 seconds
[09:32:51] phreakocious: has joined #ruby

2015-05-26

[11:36:12] phreakocious: Ping timeout: 272 seconds
[11:38:29] phreakocious: has joined #ruby
[18:00:23] phreakocious: Ping timeout: 265 seconds
[18:02:52] phreakocious: has joined #ruby

2015-05-22

[00:11:24] phreakocious: Ping timeout: 272 seconds
[00:14:02] phreakocious: has joined #ruby

2014-09-10

[00:31:26] phreakocious: can anyone help lend some insight into some strange behavior with pack? https://gist.github.com/phreakocious/18b4892a90f633f582cc
[00:38:57] phreakocious: well that second byte in the output should not be 00
[00:39:03] phreakocious: since some of the bits are 1s
[00:40:21] phreakocious: but it should take 8 bits at a time from vlanlist, reverse the order of the bits, and then smash those into single bytes
[00:40:43] phreakocious: I was using numbers originally but pack didn't seem to like working with numbers as input
[00:41:13] phreakocious: pack('B8*') is supposed to interpret those as a sequence of bits and make it into a byte
[00:43:21] phreakocious: jhass: will give it a shost
[00:52:53] phreakocious: jhass: it ends up only outputting one byte for some awesome reason.. :) https://gist.github.com/phreakocious/b70ea90e1c744b1632c8
[00:53:40] phreakocious: ohh perl.. I miss you. =D
[01:20:47] phreakocious: jhass|off: thanks for the pointer, I figured it out...