isxek

Activity Graph

Page 1 of 1

2019-02-09

[09:34:01] isxek: has joined #ruby
[12:56:11] isxek: Remote host closed the connection

2019-02-01

[11:59:02] isxek: has joined #ruby
[17:13:54] isxek: Remote host closed the connection

2016-07-12

[03:21:55] isxek: has joined #ruby
[08:13:10] isxek: has joined #ruby
[08:13:22] isxek: Client Quit

2016-06-28

[08:14:24] isxek: has joined #ruby
[17:11:37] isxek: Quit: Leaving

2016-06-27

[06:42:16] isxek: has joined #ruby
[20:04:56] isxek: Quit: Leaving

2016-06-26

[08:21:41] isxek: has joined #ruby
[16:43:27] isxek: Read error: Connection reset by peer

2016-06-24

[11:12:56] isxek: has joined #ruby
[14:20:28] isxek: Quit: Leaving

2016-06-21

[13:34:11] isxek: has joined #ruby
[16:07:48] isxek: Quit: Leaving

2016-06-16

[09:57:33] isxek: has joined #ruby
[17:16:09] isxek: Quit: Leaving

2016-06-12

[13:31:30] isxek: has joined #ruby
[18:49:01] isxek: Remote host closed the connection

2016-06-11

[14:10:34] isxek: has joined #ruby
[14:30:20] isxek: ACTION claps with one hand
[20:15:45] isxek: Quit: Leaving

2016-06-08

[09:18:34] isxek: has joined #ruby
[09:43:50] isxek: Ping timeout: 260 seconds
[09:57:36] isxek: has joined #ruby
[13:34:23] isxek: Ping timeout: 250 seconds

2016-06-07

[13:12:51] isxek: has joined #ruby
[15:30:57] isxek: Quit: Leaving

2016-06-02

[07:32:46] isxek: has joined #ruby
[10:56:26] isxek: Quit: Leaving

2016-06-01

[11:29:18] isxek: has joined #ruby
[18:24:17] isxek: Quit: Leaving

2016-05-31

[12:33:48] isxek: has joined #ruby
[15:05:21] isxek: Quit: Leaving

2016-05-30

[06:54:12] isxek: has joined #ruby
[20:32:42] isxek: Remote host closed the connection

2016-05-29

[03:51:27] isxek: has joined #ruby
[07:28:39] isxek: tie: if by "methods" you mean functions attached to classes, then yes
[07:34:57] isxek: I'm not terribly familiar with how "functions" work in C++
[07:37:44] isxek: tie: it depends. Blocks in Ruby act more like Scheme lambdas, I think - code blocks without the 'def-end' markers
[07:40:23] isxek: You'll be able to understand it as you see more of it, I'm sure.
[07:43:36] isxek: tie_: Don't take it to heart. :)
[08:30:52] isxek: tie_: consider maybe using existing libraries that can help you with that task?
[08:31:02] isxek: i mean, if you're pressed for time
[08:34:28] isxek: trying to get more people to use Ruby? :)
[08:39:41] isxek: "try to make it work, make it work correctly, then make it work fast"
[08:40:27] isxek: then refactor :D
[08:43:03] isxek: uh, shazam?
[09:06:10] isxek: ACTION sends tie_ a thumbs-up sign
[20:20:12] isxek: Remote host closed the connection

2016-05-28

[11:16:41] isxek: has joined #ruby
[11:19:22] isxek: Client Quit
[11:20:09] isxek: has joined #ruby
[11:20:34] isxek: Remote host closed the connection
[11:21:08] isxek: has joined #ruby
[17:13:39] isxek: Remote host closed the connection

2016-05-27

[16:43:07] isxek: has joined #ruby
[19:41:14] isxek: Remote host closed the connection

2016-05-23

[14:38:38] isxek: has joined #ruby
[17:43:08] isxek: Quit: Leaving

2016-05-20

[01:47:47] isxek: Remote host closed the connection

2016-05-19

[16:31:38] isxek: has joined #ruby

2016-05-17

[07:14:31] isxek: has joined #ruby
[08:14:00] isxek: Remote host closed the connection

2016-05-15

[17:52:11] isxek: has joined #ruby
[20:39:28] isxek: Quit: Leaving

2016-05-14

[08:33:11] isxek: has joined #ruby
[17:17:44] isxek: Quit: Leaving

2016-05-13

[15:25:57] isxek: has joined #ruby
[17:57:26] isxek: Quit: Leaving

2016-05-12

[05:24:22] isxek: has joined #ruby
[21:50:16] isxek: Quit: Leaving

2016-05-11

[00:16:33] isxek: Quit: Leaving
[05:47:17] isxek: has joined #ruby
[07:33:34] isxek: Ping timeout: 240 seconds
[14:46:26] isxek: has joined #ruby
[17:35:15] isxek: Quit: Leaving

2016-05-10

[20:29:47] isxek: has joined #ruby

2016-05-04

[07:27:24] isxek: has joined #ruby
[17:20:22] isxek: Quit: Leaving

2016-05-03

[05:27:20] isxek: has joined #ruby
[10:00:24] isxek: Ping timeout: 244 seconds
[12:19:24] isxek: has joined #ruby
[18:20:03] isxek: Quit: Leaving

2016-05-02

[16:27:09] isxek: has joined #ruby
[21:11:33] isxek: Ping timeout: 246 seconds
[21:12:56] isxek: has joined #ruby
[22:22:13] isxek: Remote host closed the connection

2016-05-01

[05:57:39] isxek: has joined #ruby
[08:23:58] isxek: Remote host closed the connection
[11:08:08] isxek: has joined #ruby
[21:55:40] isxek: Quit: Leaving

2016-04-30

[05:09:22] isxek: has joined #ruby
[19:01:32] isxek: Quit: Leaving

2016-04-29

[03:18:58] isxek: has joined #ruby
[17:42:03] isxek: Remote host closed the connection

2016-04-28

[03:41:30] isxek: has joined #ruby
[07:09:57] isxek: Remote host closed the connection

2016-04-27

[03:52:24] isxek: has joined #ruby
[08:44:36] isxek: what does .scan(/.{4}/) mean?
[08:45:07] isxek: ah, of course, it's a regex pattern
[18:19:02] isxek: Quit: Leaving

2016-04-26

[09:13:18] isxek: has joined #ruby
[09:13:48] isxek: Client Quit
[09:15:59] isxek: has joined #ruby
[09:54:28] isxek: Remote host closed the connection
[10:04:19] isxek: has joined #ruby
[13:34:10] isxek: newjersey: the former
[13:40:47] isxek: newjersey: not completely sure what you're asking
[13:45:41] isxek: newjersey: usually when you get those "failed to build gem native extension" errors, part of the gem needs to be built/compiled
[13:46:19] isxek: newjersey: since you're on lubuntu, you might need to have the 'build-essential' package installed
[13:47:17] isxek: newjersey: or, in other words, you would need to run 'sudo apt-get install build-essential'
[13:49:05] isxek: newjersey: that's odd, lemme try
[13:51:06] isxek: newjersey: how did you install ruby, by any chance?
[13:52:18] isxek: newjersey: I have v2.3.0 too, but I did not install ruby via 'apt-get'
[13:53:12] isxek: newjersey: I generally install Ruby through chruby/ruby-install, which builds Ruby inside my home directory
[13:54:08] isxek: newjersey: I'd suggest installing Ruby that way, to make the gems build
[13:54:57] isxek: no need, the ruby-install script will get the Ruby source code, compile it on its own
[13:55:07] isxek: then install it in a directory inside your home directory
[13:57:26] isxek: newjersey: here's the guide I used to install Ruby here in Ubuntu: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[13:57:48] isxek: i was able to install the jekyll gem without any issues
[13:58:40] isxek: unless someone more experienced than both of us objects, I'd suggest using that as the way to install Ruby on Ubuntu
[13:59:45] isxek: newjersey: if you do try that, better run 'sudo apt-get remove ruby' first, to avoid conflicts
[14:01:38] isxek: there you go :)
[14:06:06] isxek: apeiros: so what could have been a one-liner got converted into a 3-liner?
[14:08:19] isxek: apeiros: yeah, misread the code, sorry
[19:51:31] isxek: Remote host closed the connection

2016-04-25

[03:21:29] isxek: has joined #ruby
[08:33:00] isxek: Remote host closed the connection
[13:17:16] isxek: has joined #ruby
[18:37:41] isxek: Remote host closed the connection

2016-04-24

[09:09:58] isxek: has joined #ruby
[21:27:47] isxek: Remote host closed the connection

2016-04-22

[14:54:38] isxek: has joined #ruby
[18:12:41] isxek: Remote host closed the connection

2016-04-16

[05:41:04] isxek: has joined #ruby
[20:21:25] isxek: Quit: Page closed

2016-03-05

[06:38:08] isxek: has joined #ruby
[10:36:09] isxek: Quit: Leaving

2016-03-04

[10:33:12] isxek: has joined #ruby
[16:41:30] isxek: Remote host closed the connection

2015-10-06

[17:45:45] isxek: has joined #ruby
[20:40:01] isxek: Quit: Page closed

2015-09-06

[14:48:58] isxek: has joined #ruby
[19:50:39] isxek: Quit: Page closed

2015-09-05

[11:03:09] isxek: has joined #ruby
[11:10:27] isxek: Is there a built-in unit testing module in Ruby v2.2's standard library?
[11:10:46] isxek: Need to test a small script
[11:11:34] isxek: 0x0dea: that's the same as this one (https://rubygems.org/gems/minitest/), right?
[11:11:51] isxek: 0x0dea: thanks!
[11:13:09] isxek: 0x0dea: ah, there it is
[11:39:54] isxek: Quit: Page closed

2015-08-20

[08:12:05] isxek: has joined #ruby
[11:02:16] isxek: Ping timeout: 246 seconds
[13:51:52] isxek: has joined #ruby
[17:45:00] isxek: Quit: Page closed

2015-08-05

[08:35:59] isxek: has joined #ruby
[19:39:40] isxek: Ping timeout: 246 seconds

2015-07-19

[11:25:42] isxek: has joined #ruby

2015-07-16

[09:25:23] isxek: has joined #ruby
[16:17:37] isxek: Ping timeout: 246 seconds

2015-07-02

[00:29:56] isxek: has joined #ruby
[03:03:49] isxek: Ping timeout: 246 seconds
[03:04:20] isxek: has joined #ruby
[03:32:31] isxek: Ping timeout: 246 seconds
[06:21:27] isxek: has joined #ruby
[06:32:43] isxek: I'm using this script to filter for email addresses to include in our blacklist: http://pastebin.com/KPcV75gM . However, after running uniq! on the matches array, the output still shows duplicate values. Any suggestions?
[06:32:58] isxek: well, that was fast
[06:33:19] isxek: first time posting to #ruby, sorry
[06:35:20] isxek: 0x0dea: I've tried just plain uniq, but I'm getting the same results.
[06:37:53] isxek: ACTION takes a look at ruby docs
[06:40:55] isxek: 0x0dea: looks like #scan was exactly what I needed. thanks to you both!
[06:46:26] isxek: 0x0dea: holy crap, that reduced my script to ~6 lines
[06:50:48] isxek: 0x0dea: reduced to 4 :)
[06:51:59] isxek: 0x0dea: does ruby still compile that regex, or is there no need for that?
[06:52:21] isxek: docs says #new is the same as #compile
[06:56:29] isxek: certainly looks easier to read
[07:01:00] isxek: Ox0dea: it wasn't sarcasm
[07:06:28] isxek: at any rate, thanks for the leg up - i'm off
[07:07:14] isxek: Quit: Page closed

2015-07-01

[02:31:13] isxek: has joined #ruby
[03:04:58] isxek: Ping timeout: 246 seconds
[04:26:04] isxek: has joined #ruby
[07:07:01] isxek: Quit: Page closed

2015-06-24

[03:53:59] isxek: has joined #ruby
[07:48:07] isxek: Ping timeout: 246 seconds

2014-10-13

[11:56:00] isxek: hello, is there really no built-in way to check which platform the ruby script is running in? the stackoverflow suggested answers point to either a Config module, an RbConfig module, and a 3rd-party module called 'os'

2014-10-11

[02:46:20] isxek: Hello! Does Ruby recognize lines ending in CRLF? I tried doing a file.read.split("\r\n") but it won't produce the output I wanted
[02:46:54] isxek: If I change that to file.read.split("\n"), it works
[02:48:26] isxek: gizmore: the file does have CRLF line endings, but if I change the line endings there to LF, then I use "\n" for split(), it works
[02:49:11] isxek: lemme try that in binary mode
[02:50:17] isxek: I'm currently on a friend's machine, and it's on Windows
[02:51:01] isxek: I'm introducing my friend to Ruby, but I'm just as new to it too
[02:53:12] isxek: gizmore: opening it in binary works
[02:54:52] isxek: gizmore: there's a note in the Windows help file for Ruby that states opening files in binary mode "suppresses EOL <-> CRLF conversion on Windows"
[02:55:09] isxek: so I guess that does the trick
[02:57:08] isxek: gizmore: yeah, that would probably be a good idea
[02:57:22] isxek: gizmore, shevy: thanks :)
[03:00:30] isxek: oh, one other thing: in Python they have a method called "parseaddr" that allows splitting an email address that's stated like "FirstName LastName <my@email.zzz>" into "FirstName LastName" and "my@email.zzz"
[03:00:45] isxek: is there an equivalent in ruby for that?
[03:01:09] isxek: I've been looking in the Ruby docs for it
[03:05:22] isxek: well, i'll just keep searching, thanks for the help