RedNifre

Activity Graph

Page 1 of 4 | Next »

2019-04-20

[09:18:44] RedNifre: Ping timeout: 259 seconds
[10:33:46] RedNifre: has joined #ruby
[11:19:07] RedNifre: Ping timeout: 264 seconds
[11:20:06] RedNifre: has joined #ruby
[12:44:48] RedNifre: has left #ruby: ("WeeChat 1.9.1")

2019-04-19

[11:25:54] RedNifre: has joined #ruby
[12:24:28] RedNifre: Ping timeout: 258 seconds
[12:53:49] RedNifre: has joined #ruby
[13:01:59] RedNifre: Ping timeout: 252 seconds
[13:07:57] RedNifre: has joined #ruby
[14:34:48] RedNifre: Ping timeout: 258 seconds
[15:11:02] RedNifre: has joined #ruby
[17:31:30] RedNifre: Ping timeout: 268 seconds
[17:33:22] RedNifre: has joined #ruby

2019-04-18

[14:52:04] RedNifre: has joined #ruby
[14:52:40] RedNifre: Hi there. If I want to implement a very old school BASIC compiler (line numbers, goto etc.), are there any good tokenizer/parser libraries I could use?
[14:53:07] RedNifre: (It's for compiling basic programs for my old calculator that is programmed in something that feels like machine language)
[16:12:12] RedNifre: Ping timeout: 252 seconds
[16:14:16] RedNifre: has joined #ruby
[16:55:00] RedNifre: looks like french?
[16:55:56] RedNifre: It's french and means christmas. If it's UTF-8 and 5 long it looks like the unicode format that encodes the e with the diaresis as one character.
[16:56:13] RedNifre: it means you pronounce it "no-el"
[16:56:22] RedNifre: like "naive" with two dots on the i
[16:57:18] RedNifre: Looks like everything is working, but you need to be careful, if you are on a mac and use that as a file name, MacOS will turn it into a different representation so when you read it back in it will be at least 7 bytes I think.
[16:57:49] RedNifre: length is the byte count. You might want the grapheme cluster count, but I don't know if Ruby has a function for that.
[16:58:18] RedNifre: MacOS will store it as "noe<dots on the previous character>l" kinda.
[16:58:53] RedNifre: Ruby might have a code point count which will work in that case, but not if you read it as a file name on MacOS. Hm.
[16:59:01] RedNifre: Text is tricky :)
[16:59:44] RedNifre: Looks like nobody knows how to do it: https://unicode-programming.readthedocs.io/en/latest/count-characters/ruby/
[17:00:26] RedNifre: I only know about Swift counting grapheme clusters correctly, I hope more languages will offer that feature in the future.
[17:01:20] RedNifre: Also, according to legend, there is a giant several hundred MB large C library from IBM somewhere, that is the only thing that can handle Unicode correctly. If you can get that to work you might be able to get the correct character count.
[17:02:54] RedNifre: Your string would fit into ISO/IEC 8859-15, so convert it to that to get a 4 byte string ;)
[17:03:17] RedNifre: (That's a really bad idea and was meant as a joke)
[17:05:03] RedNifre: Because then you couldn't mix it with Japanese or Russian text any more. It wouldn't be Unicode.
[17:05:24] RedNifre: If you want to count the grapheme characters correctly here's how: http://www.unicode.org/reports/tr29/
[17:06:39] RedNifre: That's even worse, that doesn't even have the EUR sign.
[17:07:53] RedNifre: You have a U+0308 in there?
[17:08:15] RedNifre: Then 5 is the correct code point length, because your string is actually "noe<dots on previous char>l"
[17:08:48] RedNifre: Try the length of this in IRB (Copy paste it!) "noΓ«l"
[17:09:27] RedNifre: Yeah, so it does in fact count the unicode code points.
[17:10:02] RedNifre: With your string, do s[2] to get "e" and s[3] to get the dots.
[17:10:28] RedNifre: With my string, s[2] should give you the single character "e with dots"
[17:13:00] RedNifre: Yeah, I got it from Wikipedia, the article name is written with the "E WITH DIARESIS" character, while your String has an "E" followed by "COMBININD DIARESIS", so your string has the dots as a separate combining character.
[17:15:15] RedNifre: Even more fun: Those two strings are identical according to Unicode.
[17:15:53] RedNifre: MacOS respects that, you can use both strings to open a file with that name, because MacOS converts all representations to the same format before writing it to disk.
[17:16:04] RedNifre: Well, unicode.org? Or just some random stuff.
[17:16:14] RedNifre: I mostly learn Unicode when something doesn't work as expected ;)
[17:16:38] RedNifre: Hey, do you have Emoji in your IRB?
[17:17:28] RedNifre: Which country are you from and do you have Emoji-Support in your IRB? :D
[17:18:54] RedNifre: Dammit, looks like Ubuntu doesn't do flags in the terminal.
[17:19:14] RedNifre: If you are on MacOS you could try reversing "πŸ‡ΊπŸ‡ΈπŸ‡ͺπŸ‡ͺ" (USA flag followed by Estland Flag).
[17:20:39] RedNifre: Estland flag should stay as it is, but the USA flag should turn into the Soviet Union flag when reversed (Though I don't think that any platform has that flag supported).
[17:25:50] RedNifre: Yeah, dealing with Unicode can lead to a lot of πŸ›πŸž if you are not careful.
[20:53:51] RedNifre: Ping timeout: 268 seconds

2019-04-17

[16:38:45] RedNifre: has joined #ruby
[17:49:19] RedNifre: Ping timeout: 250 seconds

2019-04-16

[13:52:35] RedNifre: has joined #ruby
[14:44:04] RedNifre: Ping timeout: 252 seconds
[15:18:51] RedNifre: has joined #ruby
[15:37:30] RedNifre: Ping timeout: 258 seconds
[15:39:21] RedNifre: has joined #ruby
[16:00:53] RedNifre: Ping timeout: 258 seconds
[16:01:46] RedNifre: has joined #ruby
[16:13:31] RedNifre: Ping timeout: 268 seconds
[16:15:00] RedNifre: has joined #ruby
[17:06:07] RedNifre: Ping timeout: 240 seconds
[20:17:33] RedNifre: has joined #ruby
[22:10:02] RedNifre: Ping timeout: 258 seconds

2019-04-15

[08:26:24] RedNifre: has joined #ruby
[14:56:47] RedNifre: Ping timeout: 252 seconds
[15:04:29] RedNifre: has joined #ruby
[15:34:42] RedNifre: Ping timeout: 250 seconds
[15:35:54] RedNifre: has joined #ruby
[15:45:01] RedNifre: Ping timeout: 250 seconds
[15:46:15] RedNifre: has joined #ruby
[21:04:27] RedNifre: Ping timeout: 240 seconds

2019-04-14

[20:25:04] RedNifre: has joined #ruby
[21:22:47] RedNifre: Ping timeout: 240 seconds

2019-01-23

[08:16:11] RedNifre: has joined #RubyOnRails
[08:16:11] RedNifre: has joined #ruby

2019-01-22

[12:35:28] RedNifre: has joined #RubyOnRails
[12:35:28] RedNifre: has joined #ruby
[22:23:51] RedNifre: Ping timeout: 250 seconds

2019-01-21

[07:22:28] RedNifre: has joined #RubyOnRails
[07:22:28] RedNifre: has joined #ruby
[14:19:02] RedNifre: Ping timeout: 268 seconds
[14:19:47] RedNifre: has joined #RubyOnRails
[14:19:47] RedNifre: has joined #ruby
[22:31:16] RedNifre: Ping timeout: 252 seconds
[22:53:41] RedNifre: has joined #RubyOnRails
[22:53:41] RedNifre: has joined #ruby
[23:37:12] RedNifre: Ping timeout: 268 seconds

2019-01-20

[08:38:36] RedNifre: has joined #RubyOnRails
[08:38:36] RedNifre: has joined #ruby
[13:30:18] RedNifre: Ping timeout: 252 seconds
[13:32:13] RedNifre: has joined #ruby
[13:32:14] RedNifre: has joined #RubyOnRails
[17:43:51] RedNifre: Ping timeout: 252 seconds
[17:44:37] RedNifre: has joined #ruby
[17:44:38] RedNifre: has joined #RubyOnRails
[22:40:12] RedNifre: Ping timeout: 252 seconds

2019-01-19

[08:40:51] RedNifre: has joined #RubyOnRails
[08:40:51] RedNifre: has joined #ruby
[09:05:10] RedNifre: Ping timeout: 252 seconds
[09:07:11] RedNifre: has joined #RubyOnRails
[09:07:11] RedNifre: has joined #ruby
[23:36:22] RedNifre: Ping timeout: 252 seconds

2019-01-18

[09:05:24] RedNifre: Ping timeout: 252 seconds
[09:07:37] RedNifre: has joined #RubyOnRails
[09:07:37] RedNifre: has joined #ruby
[11:43:48] RedNifre: Ping timeout: 252 seconds
[11:44:59] RedNifre: has joined #RubyOnRails
[11:44:59] RedNifre: has joined #ruby
[11:49:35] RedNifre: Ping timeout: 250 seconds
[17:32:17] RedNifre: has joined #RubyOnRails
[17:32:17] RedNifre: has joined #ruby
[18:27:44] RedNifre: Ping timeout: 252 seconds
[20:42:10] RedNifre: has joined #ruby
[20:42:11] RedNifre: has joined #RubyOnRails
[22:38:40] RedNifre: Ping timeout: 250 seconds

2019-01-17

[09:04:52] RedNifre: Ping timeout: 268 seconds
[09:06:46] RedNifre: has joined #ruby
[09:06:47] RedNifre: has joined #RubyOnRails
[13:53:03] RedNifre: Ping timeout: 252 seconds
[13:54:09] RedNifre: has joined #RubyOnRails
[13:54:09] RedNifre: has joined #ruby

2019-01-16

[22:13:55] RedNifre: has joined #ruby
[22:14:02] RedNifre: has joined #RubyOnRails
[22:15:08] RedNifre: Hi. I'm currenly working through Hartl's tutorial and everything works so far except that when I do `heroku run rails console --sandbox`, inside irb it won't find `User` even though that worked locally (I added a User model and pushed that to heroku and did a db:migrate).
[22:15:25] RedNifre: How can I figure out what is going on?
[22:16:46] RedNifre: Can I do other things in rails console to get a better picture of the situation?
[22:29:09] RedNifre: Ping timeout: 252 seconds
[23:21:25] RedNifre: has joined #RubyOnRails
[23:21:25] RedNifre: has joined #ruby

2019-01-09

[11:33:12] RedNifre: has joined #ruby
[11:40:56] RedNifre: Ping timeout: 268 seconds
[11:41:30] RedNifre: has joined #ruby
[15:30:06] RedNifre: Ping timeout: 252 seconds
[15:30:43] RedNifre: has joined #ruby
[19:05:48] RedNifre: Quit: spiders everywhere!

2019-01-08

[02:08:51] RedNifre: Ping timeout: 252 seconds
[13:22:15] RedNifre: has joined #ruby
[13:27:42] RedNifre: Ping timeout: 268 seconds
[13:28:34] RedNifre: has joined #ruby
[15:17:00] RedNifre: Ping timeout: 252 seconds
[20:38:24] RedNifre: has joined #ruby
[21:16:43] RedNifre: Ping timeout: 250 seconds
[21:26:26] RedNifre: has joined #ruby
[21:50:17] RedNifre: Ping timeout: 268 seconds
[21:50:55] RedNifre: has joined #ruby
[23:17:42] RedNifre: Ping timeout: 252 seconds

2019-01-07

[19:46:06] RedNifre: has joined #ruby
[20:30:03] RedNifre: Ping timeout: 252 seconds
[20:30:28] RedNifre: has joined #ruby
[21:16:00] RedNifre: Ping timeout: 252 seconds
[21:16:48] RedNifre: has joined #ruby
[22:53:03] RedNifre: Ping timeout: 252 seconds
[23:21:38] RedNifre: has joined #ruby

2018-12-16

[09:03:04] RedNifre: Ping timeout: 264 seconds
[09:05:05] RedNifre: has joined #RubyOnRails
[09:05:05] RedNifre: has joined #ruby
[16:10:46] RedNifre: Ping timeout: 260 seconds

2018-12-15

[01:21:31] RedNifre: Ping timeout: 250 seconds
[09:04:00] RedNifre: has joined #RubyOnRails
[09:04:00] RedNifre: has joined #ruby

2018-12-14

[16:07:42] RedNifre: has joined #ruby
[16:07:50] RedNifre: has joined #RubyOnRails
[16:08:57] RedNifre: hey there, I'm new to rails. When I run `rails test` in the Cloud9 IDE it first runs the tests as expected but follows it with a lot of output, something about tmux (which isn't even installed) and many .rb files. Why is that?
[16:09:42] RedNifre: so it outputs the expected statistics of how many tests worked or failed, followed by /usr/local/rvm/gems/ruby-2.4.1/gems/notiffany-0.1.1/lib/notiffany/notifier/tmux/client.rb:12:in `version': undefined method `[]' for nil:NilClass (NoMethodError)
[16:10:38] RedNifre: I guess it wants to notify in tmux but fails because there is no tmux? Can I tell it to run the tests without a notification when they are done?
[16:39:39] RedNifre: never mind, just installing tmux fixes it.

2018-12-07

[11:10:05] RedNifre: has joined #ruby
[11:10:06] RedNifre: has joined #RubyOnRails
[11:28:39] RedNifre: Ping timeout: 252 seconds
[11:29:46] RedNifre: has joined #RubyOnRails
[11:29:46] RedNifre: has joined #ruby
[11:43:06] RedNifre: Ping timeout: 260 seconds
[12:11:27] RedNifre: has joined #RubyOnRails
[12:11:27] RedNifre: has joined #ruby
[12:28:01] RedNifre: Ping timeout: 260 seconds
[13:57:30] RedNifre: has joined #RubyOnRails
[13:57:30] RedNifre: has joined #ruby
[14:55:01] RedNifre: Ping timeout: 260 seconds
[15:21:16] RedNifre: has joined #RubyOnRails
[15:21:16] RedNifre: has joined #ruby
[15:28:52] RedNifre: Ping timeout: 264 seconds
[16:56:08] RedNifre: has joined #ruby
[16:56:09] RedNifre: has joined #RubyOnRails
[20:56:15] RedNifre: Ping timeout: 252 seconds
[21:25:47] RedNifre: has joined #RubyOnRails
[21:25:47] RedNifre: has joined #ruby
[21:32:05] RedNifre: Ping timeout: 250 seconds

2018-12-06

[19:32:05] RedNifre: has joined #ruby
[19:32:37] RedNifre: has joined #RubyOnRails
[19:33:24] RedNifre: What's a good way to learn Rails if you have medium knowledge of web frameworks and ruby?
[19:55:30] RedNifre: I learned ruby because I needed to do some simple things.
[19:55:40] RedNifre: So far I only used it for small to medium sized things.
[19:56:06] RedNifre: E.g. a Jira automation, some raspberry Pi LED blinking stuff, some media ingest etc.
[19:58:31] RedNifre: Yeah, I noticed that even though I never learned Ruby properly it's still my go to language for getting something simple done quickly. So I wondered if I should give it a closer look regarding doing large things with it, hence Rails.
[19:59:10] RedNifre: (Usually I use heavy weight statically typed languages for larger things)
[20:09:31] RedNifre: it basically replaced bash for me completely, especially since you can write `inline bash like that`
[21:23:51] RedNifre: Ping timeout: 252 seconds

2018-10-30

[01:16:34] RedNifre: Ping timeout: 272 seconds
[01:19:05] RedNifre: has joined #ruby
[01:19:51] RedNifre: Client Quit
[14:40:37] RedNifre: has joined #ruby
[18:33:49] RedNifre: Quit: everything is great

2018-10-29

[23:49:43] RedNifre: What happens when you launch ruby files with the interpreter? Does it parse individual files lazily when it encounters a require? I have a version of my script running and it's currently crawling something, but I'd like to continue working on it... I gues the interpreter doesn't mind if I edit the file since it only reads it once on startup, right?
[23:51:13] RedNifre: oh, never mind, the crawling just finished :o)
[23:51:20] RedNifre: But thanks :)

2018-10-28

[22:27:21] RedNifre: Is there a neater way to do BigDecimal.new("123.45") ?
[22:41:53] RedNifre: Ping timeout: 250 seconds
[22:42:19] RedNifre: has joined #ruby

2018-10-22

[00:05:53] RedNifre: Ping timeout: 245 seconds
[08:06:08] RedNifre: has joined #ruby

2018-10-21

[19:28:21] RedNifre: has joined #ruby
[19:29:02] RedNifre: Hey there. What's the idiomatic ruby way for tail -f somefile | ruby somescript.rb?
[19:37:46] RedNifre: Basically I want to only read new lines as they are added to a log file.
[19:40:48] RedNifre: hmmm, looks somewhat complicated.
[19:41:39] RedNifre: I wonder if there's a simpler `tail -f bla | ruby bla.rb` solution.
[20:45:47] RedNifre: Ping timeout: 240 seconds
[20:48:02] RedNifre: has joined #ruby
[21:40:31] RedNifre: Well, given that I'm rewriting my big ball of mud code to clean it up I guess I should do the proper 'select' solution
[21:41:36] RedNifre: You see, historically I used ruby to write tiny ugly prototypes and when it got too messy I rewrote it in a different language, but now I'm trying to do it properly in ruby (because I couldn't find a better scripting language)
[21:58:48] RedNifre: Read error: Connection reset by peer
[22:04:50] RedNifre: has joined #ruby

2018-10-18

[08:26:31] RedNifre: has joined #ruby
[10:25:27] RedNifre: Ping timeout: 268 seconds
[11:45:59] RedNifre: has joined #ruby
[15:25:25] RedNifre: Ping timeout: 250 seconds
[15:34:32] RedNifre: has joined #ruby
[16:58:53] RedNifre: Ping timeout: 268 seconds
[17:41:43] RedNifre: has joined #ruby
[19:05:51] RedNifre: Ping timeout: 252 seconds

2018-09-17

[17:37:53] RedNifre: Well... It's just that I have the script running locally on my machine, I want to quit it easily and I want it to continue where it left off when I start it again, so it should save its state when I quit it.
[17:38:24] RedNifre: I'll see if it works now...
[20:28:52] RedNifre: Ping timeout: 272 seconds
[21:31:40] RedNifre: has joined #ruby
[21:45:42] RedNifre: Ping timeout: 252 seconds
[21:50:52] RedNifre: has joined #ruby
[22:06:30] RedNifre: Ping timeout: 252 seconds
[22:19:13] RedNifre: has joined #ruby
[22:26:02] RedNifre: Ping timeout: 272 seconds