oddmunds

Activity Graph

Page 1 of 1

2016-06-15

[23:13:01] oddmunds: *.net *.split
[23:19:00] oddmunds: has joined #ruby

2016-04-20

[14:35:56] oddmunds: shibly: just get a newer source and install from source again?

2016-04-06

[13:56:09] oddmunds: maybe because a nanosecond is 10^−9 seconds
[13:56:36] oddmunds: but that is not how the formatting works
[13:59:27] oddmunds: joaquins: what does $ date +%N give you?
[13:59:30] oddmunds: (on the command line)

2016-04-04

[13:55:25] oddmunds: there _has_ to be some library that lets you do puts player.playerstats.stats.first.value
[14:00:22] oddmunds: yeah, maybe you can pack the whole thing in a bunch of classes

2016-03-29

[11:38:30] oddmunds: >> "abc,\ndef,".sub(/,\z/m,'')
[11:39:34] oddmunds: how come my thing didn't output?
[11:41:00] oddmunds: ah, thanks. i thought it meant that it saw the whole multiline string as one, instead of many individual strings.
[11:41:10] oddmunds: makes sense
[11:41:47] oddmunds: anyway, que, tobiasvl, the regex above (with or without /m) removes a trailing comma if there is one
[11:42:22] oddmunds: i understand
[11:57:05] oddmunds: most idomatic way would be "#{a}#{string}"?
[12:00:45] oddmunds: as long as speed is what you're going for, https://github.com/JuanitoFatas/fast-ruby is pretty interesting

2016-03-17

[14:13:22] oddmunds: shevy: i think it has a lot to do with stackoverflow
[14:13:30] oddmunds: it has never been a "ruby place"
[14:14:19] oddmunds: it seems like it filled a void when it comes to .net tech
[14:14:52] oddmunds: while ruby has (at least since before stackoverflow) had an active community
[14:15:14] oddmunds: .net has been a "buy a course", "get a certificate", "buy support" kind of world

2016-02-28

[21:17:23] oddmunds: Ping timeout: 244 seconds
[21:30:43] oddmunds: has joined #ruby

2016-02-26

[09:34:30] oddmunds: Ping timeout: 240 seconds

2016-02-21

[03:07:17] oddmunds: Quit: WeeChat 1.3
[21:18:35] oddmunds: has joined #ruby
[21:27:04] oddmunds: Quit: WeeChat 1.4
[21:27:17] oddmunds: has joined #ruby

2016-01-31

[12:25:04] oddmunds: *.net *.split
[12:28:16] oddmunds: has joined #ruby

2016-01-13

[09:43:18] oddmunds: AimlessRaven: replace s.time with s['time']

2015-12-31

[12:29:17] oddmunds: Ping timeout: 276 seconds
[12:40:53] oddmunds: has joined #ruby
[12:49:20] oddmunds: Ping timeout: 245 seconds
[12:53:10] oddmunds: has joined #ruby
[13:10:14] oddmunds: Ping timeout: 276 seconds
[13:11:04] oddmunds: has joined #ruby
[13:58:30] oddmunds: Ping timeout: 255 seconds
[14:29:57] oddmunds: has joined #ruby
[14:33:53] oddmunds: Excess Flood
[14:34:46] oddmunds: has joined #ruby
[14:43:11] oddmunds: Ping timeout: 276 seconds
[15:01:33] oddmunds: has joined #ruby
[15:06:40] oddmunds: Ping timeout: 260 seconds
[15:08:46] oddmunds: has joined #ruby
[15:21:18] oddmunds: Ping timeout: 255 seconds
[15:29:26] oddmunds: has joined #ruby
[15:37:03] oddmunds: Ping timeout: 255 seconds
[15:49:46] oddmunds: has joined #ruby
[16:06:48] oddmunds: Ping timeout: 264 seconds
[16:09:53] oddmunds: has joined #ruby
[16:27:45] oddmunds: Ping timeout: 260 seconds
[16:31:07] oddmunds: has joined #ruby
[16:53:46] oddmunds: Ping timeout: 240 seconds
[16:59:54] oddmunds: has joined #ruby
[17:12:40] oddmunds: Ping timeout: 245 seconds
[17:29:20] oddmunds: has joined #ruby
[17:33:54] oddmunds: Excess Flood
[17:34:46] oddmunds: has joined #ruby
[18:17:38] oddmunds: Ping timeout: 272 seconds
[18:19:50] oddmunds: has joined #ruby

2015-12-30

[22:16:02] oddmunds: Ping timeout: 246 seconds
[22:25:13] oddmunds: has joined #ruby
[22:44:46] oddmunds: Ping timeout: 240 seconds
[22:52:27] oddmunds: has joined #ruby

2015-12-27

[05:12:00] oddmunds: Ping timeout: 255 seconds
[09:19:32] oddmunds: has joined #ruby

2015-12-16

[11:01:26] oddmunds: has joined #ruby

2015-12-15

[22:00:08] oddmunds: Quit: WeeChat 1.3

2015-12-02

[15:37:11] oddmunds: *.net *.split
[15:41:35] oddmunds: has joined #ruby
[15:53:18] oddmunds: *.net *.split
[16:47:50] oddmunds: has joined #ruby

2015-11-30

[08:56:41] oddmunds: Ping timeout: 276 seconds
[12:53:55] oddmunds: has joined #ruby
[14:41:03] oddmunds: Ping timeout: 260 seconds
[16:08:41] oddmunds: has joined #ruby

2015-11-26

[07:47:10] oddmunds: has joined #ruby
[09:33:14] oddmunds: Ping timeout: 264 seconds
[09:46:19] oddmunds: has joined #ruby

2015-11-19

[02:23:45] oddmunds: Ping timeout: 250 seconds
[02:25:16] oddmunds: has joined #ruby

2015-11-16

[22:54:15] oddmunds: Ping timeout: 265 seconds
[23:08:26] oddmunds: has joined #ruby

2015-11-14

[10:20:39] oddmunds: Ping timeout: 252 seconds
[10:22:01] oddmunds: has joined #ruby

2015-11-11

[12:30:46] oddmunds: this discussion will be great

2015-11-04

[03:05:23] oddmunds: Ping timeout: 250 seconds
[03:07:31] oddmunds: has joined #ruby

2015-11-01

[05:11:05] oddmunds: Ping timeout: 268 seconds
[05:16:21] oddmunds: has joined #ruby

2015-10-27

[09:35:45] oddmunds: mbrownes: i've used ncurses
[09:36:03] oddmunds: it was some years ago, but the libraries were abandoned and outdated
[09:40:01] oddmunds: mbrownes: here's what i used https://github.com/jraregris/cave-santa/blob/master/lib/svirfneblin/display.rb
[09:41:25] oddmunds: ncursesw is probably what you want (unless there's come something better since)
[09:41:51] oddmunds: it let's you use unicode

2015-10-20

[20:01:52] oddmunds: Quit: WeeChat 1.3
[21:00:32] oddmunds: has joined #ruby

2015-10-19

[16:29:36] oddmunds: Ping timeout: 264 seconds
[16:42:35] oddmunds: has joined #ruby

2015-10-16

[00:15:51] oddmunds: has joined #ruby

2015-10-14

[14:40:49] oddmunds: was just going to suggest that
[20:42:36] oddmunds: Quit: WeeChat 1.3
[21:03:58] oddmunds: has joined #ruby

2015-10-06

[11:50:38] oddmunds: pkp: there is really no difference between them

2015-09-30

[16:06:57] oddmunds: Ademan: pry

2015-09-29

[12:28:15] oddmunds: shevy: so file(1)?
[12:40:30] oddmunds: tobiasvl: heysways
[12:54:00] oddmunds: in elixir, it's common to always return tuples like {:ok, data} = calc_data

2015-09-24

[16:24:21] oddmunds: Ping timeout: 244 seconds

2015-09-22

[20:39:29] oddmunds: baweaver: X for Y devs could be documenting what metaphors you need to "forget"

2015-09-18

[08:10:07] oddmunds: certainty: let me know if you find a place where that is _on_ topic. i want to talk about guitars.
[08:11:52] oddmunds: certainty: it does, let's go there

2015-09-15

[10:31:54] oddmunds: shevy: the "rc" in .bashrc etc. stands for 'run commands', so rc-files are traditionally script files
[10:32:05] oddmunds: for example written in ruby
[10:32:58] oddmunds: .conf files might be more what you're looking for
[10:33:29] oddmunds: https://en.wikipedia.org/wiki/Configuration_file

2015-09-01

[13:08:06] oddmunds: shevy: open-uri seemed almost broken to me last night
[13:08:24] oddmunds: but i assumed the error was elsewhere
[13:08:58] oddmunds: seems to be ok now
[13:09:09] oddmunds: i think my app is just very brittle
[13:12:31] oddmunds: shevy: should you happen upon a technique that will let you read "files" over internet from the end to start, i would be interested :)
[13:30:28] oddmunds: shevy: yeah, i think i should think about the problem differently
[13:30:44] oddmunds: the thing is that i parse huge CSV i pull off a site
[13:31:43] oddmunds: instead of having my whole app do everything on each request, i'd rather make something concurrent that keeps busy at sensible internvals and just delivers what data it has upon requests
[13:43:27] oddmunds: shevy: it's a prime candidate to get my elixir fu going

2015-08-18

[14:35:46] oddmunds: aceRacer: what were you linking to exactly? your question doesn't seem to have anything to do with the question you linked to. :/
[14:37:46] oddmunds: oh, yeah, that stuff is just called when the class is read

2015-08-11

[12:26:26] oddmunds: what he wanted was bigdecimal
[12:27:19] oddmunds: I already told you 1.9999999999906 times!

2015-08-07

[01:47:06] oddmunds: Ping timeout: 245 seconds
[01:47:41] oddmunds: has joined #ruby

2015-08-05

[22:24:11] oddmunds: Ping timeout: 272 seconds
[22:25:07] oddmunds: has joined #ruby

2015-07-26

[11:05:59] oddmunds: *.net *.split
[11:12:30] oddmunds: has joined #ruby

2015-07-13

[15:37:00] oddmunds: *.net *.split
[15:37:29] oddmunds: has joined #ruby

2015-07-05

[20:35:45] oddmunds: Omilun: what is wrong with it?
[20:42:09] oddmunds: what is the problem with gets?
[20:43:38] oddmunds: try gets without the '' argument
[20:43:58] oddmunds: like SEX = gets
[20:44:22] oddmunds: Omilun: or like that yes
[20:52:28] oddmunds: Omilun: hmmm im looking at it now, not sure why it doesnt work
[20:52:32] oddmunds: give me a minute
[20:53:50] oddmunds: Omilun: oh, i know
[20:54:05] oddmunds: it is because your input includes the newline (return)
[20:55:13] oddmunds: Omilun: replace your gets() with gets().strip()
[20:58:38] oddmunds: Omilun: it removes leading and tailing whitespace http://ruby-doc.org/core-2.2.0/String.html#method-i-strip
[20:58:43] oddmunds: Omilun: no problem

2015-06-20

[20:48:28] oddmunds: *.net *.split

2015-06-14

[12:59:05] oddmunds: https://youtu.be/mBXGBbEbXZY
[12:59:20] oddmunds: ^ Ruby's Symbols Explained
[13:00:30] oddmunds: codenihal: what exactly are you not getting your head around?
[13:01:24] oddmunds: no. you can't assign anything to a symbol like you can a variable.
[13:03:51] oddmunds: i guess you could say that their names are the values they hold
[13:04:12] oddmunds: codenihal: would you say that 4 holds a value?
[13:04:46] oddmunds: then symbols do not hold any value

2015-06-09

[13:20:42] oddmunds: a guess from the hip: data << file1 << file2
[13:22:35] oddmunds: torpor: but it doesnt work :D
[13:24:32] oddmunds: torpor: how about `cat file1.txt > data.txt && cat file2.txt >> data.txt` ?
[13:25:01] oddmunds: to learn ruby?
[13:25:37] oddmunds: sometimes 'the ruby way' is to use the unix tools already there
[13:29:03] oddmunds: willharrison: yeah, i agree.

2015-06-03

[10:14:03] oddmunds: Ruby is the language in which the framework Rails is written
[10:16:48] oddmunds: fluter: the "X on X" is not really a convention
[10:17:13] oddmunds: Beavis & Butthead on Ice

2015-05-29

[08:21:01] oddmunds: i know a guy who has a script that backs up his home directory to github every day
[08:22:23] oddmunds: forgot: yeah
[08:23:23] oddmunds: it might be just a folder he drops stuff in
[08:23:42] oddmunds: seems like he stopped a couple of weeks ago https://github.com/tommyettinger/home/commits/gh-pages
[08:25:17] oddmunds: shevy: yeah, doodle sounds better for guest lists, but if you want to be "tech cool" maybe Github is the way to go
[08:27:05] oddmunds: i've used github to manage a band i'm in

2015-05-21

[06:43:19] oddmunds: *.net *.split
[06:44:30] oddmunds: has joined #ruby

2015-04-14

[17:09:15] oddmunds: bMalum: do you mean the ruby script serving the response?
[17:10:57] oddmunds: bMalum: i don't understand what file you are referring to
[17:11:26] oddmunds: like if you are served a static file?
[17:11:36] oddmunds: like getting a picture for example?

2015-03-31

2015-03-19

[12:38:19] oddmunds: rubybenchmark

2015-03-18

[09:22:57] oddmunds: maasha: i recommend you follow these style guides, despite them not being official
[09:23:05] oddmunds: they are the defacto standard

2015-02-24

[19:49:18] oddmunds: arup_r: i love how that page starts with "It seems a little overkill to have a gem for this but I figured I would mention it." and then follows with that mess.
[19:50:06] oddmunds: because you linked it?
[19:50:36] oddmunds: heh.. maybe
[19:52:22] oddmunds: arup_r: here are codes for cursor action http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html
[19:56:50] oddmunds: what do you want to happen?
[20:01:52] oddmunds: arup_r: make it go both up and forward. like this print "\033[1A\033[14C...TO Number"
[20:04:00] oddmunds: i guessed. i couldn't bother to count the letters
[20:05:53] oddmunds: arup_r: if you want it to be precise you count the letters in num1 before you convert it to a number and at that to the number of leading letters

2015-02-22

[18:45:29] oddmunds: jhwhite: i assume what you are after is a string representation that does not use scientific notation?
[18:47:00] oddmunds: jhwhite: i think bigdecimal does what you want, though. apart from it using scientific notation. it will do proper arithmetic.

2015-02-17

[11:57:38] oddmunds: you can run rbenv local 2.2.0 in your project root
[11:57:59] oddmunds: and it'll make a .ruby-version file that sets 2.2.0
[11:58:59] oddmunds: sorry, i think rbenv global 2.2.0 is what you're looking for

2015-02-12

[12:45:40] oddmunds: i had problems getting chruby to work
[12:45:44] oddmunds: rbenv just worked

2015-02-06

[13:43:31] oddmunds: shevy: not in github projects
[13:44:52] oddmunds: ruby scores low on stack overflow, because ruby was not in a community/support vacuum before stack overflow arrived (like C# was)

2015-02-04

[09:14:27] oddmunds: izzol: good day

2015-02-03

[10:00:12] oddmunds: bonbonjonjon

2015-01-29

[13:49:38] oddmunds: tobiasvl: request[:a] is also falsey if it is false
[13:51:51] oddmunds: hs366: it will set options[:name] to whatever request[:name] is (as long as it is not falsey)

2015-01-26

[15:11:58] oddmunds: Array#sample
[15:30:45] oddmunds: deck.riffle(other_deck)
[15:33:16] oddmunds: deck.deal(3) #=> [[0,3,6], [1,4,7], [2,5,8]] #(assuming a sorted deck)
[15:34:12] oddmunds: Card#+(other_card) #=> new_deck
[16:56:04] oddmunds: epitron: ...but that is a Deck
[16:58:35] oddmunds: i want to make a Card and Deck project now
[16:58:43] oddmunds: implementing it MY WAY
[17:34:47] oddmunds: Barbara Broccoli, american filmmaker involved in the James Bond series, is the 'discoverer of Brocolli'
[17:34:57] oddmunds: lil' known fact

2014-09-12

[14:02:28] oddmunds: Nilium: i'd stay home

2014-05-26

[10:11:47] oddmunds: newstring = oldstring.sub("new", "old")
[10:12:06] oddmunds: newstring = oldstring.sub("old", "old")
[10:12:09] oddmunds: greregrgregr

2014-05-23

[08:10:20] oddmunds: Macaveli: you probably mean ASCII

2014-05-22

[12:57:10] oddmunds: sweeper: maybe "alignment of asssignments" or something like that
[13:06:42] oddmunds: lolmaus: the children array is full of hashes like the parent?
[13:10:47] oddmunds: lolmaus: it has flatten, but that doesn't work across hashes and arrays, i think

2014-05-19

2014-05-09

[15:00:45] oddmunds: it contains the name as it was called?
[15:01:42] oddmunds: i should be somewhere one minute ago
[15:01:47] oddmunds: tobiasvl: god helg