« Back to channel list

#ruby - 31 December 2017

« Back 1 day Forward 1 day »
[00:09:40] bkxd: has joined #ruby
[00:19:41] bkxd: has joined #ruby
[00:37:41] bkxd: has joined #ruby
[00:39:00] JusticeFries: has joined #ruby
[00:43:06] JusticeFries: has joined #ruby
[00:46:12] mtkd: has joined #ruby
[00:47:18] darkhanb_: has joined #ruby
[00:55:41] chocoelho: has joined #ruby
[00:59:06] JusticeFries: has joined #ruby
[01:00:12] drewmcmillan: has joined #ruby
[01:10:00] alfiemax: has joined #ruby
[01:14:56] s33n: has joined #ruby
[01:23:29] jtdoncas: has joined #ruby
[01:31:41] pelegreno: has joined #ruby
[01:32:01] wolakkk: has joined #ruby
[01:35:27] guardianx: has joined #ruby
[01:38:16] alfiemax: has joined #ruby
[01:40:12] al2o3-cr: has joined #ruby
[01:47:46] jeffreylevesque: has joined #ruby
[01:50:34] zwliew: has joined #ruby
[01:58:49] wolakkk: has joined #ruby
[02:11:04] noodle: has joined #ruby
[02:22:08] hightower3: has joined #ruby
[02:29:23] jtdoncas: has joined #ruby
[02:33:47] wolakkk: has joined #ruby
[02:41:37] bkxd: has joined #ruby
[03:03:44] Azure: has joined #ruby
[03:04:37] randomstrangerb: has joined #ruby
[03:07:13] jeffreylevesque_: has joined #ruby
[03:17:28] jamesaxl: has joined #ruby
[03:29:09] alfiemax: has joined #ruby
[03:32:31] iamarun: has joined #ruby
[03:37:40] ledestin: has joined #ruby
[03:58:30] chocoelho: has joined #ruby
[04:00:09] JusticeFries: has joined #ruby
[04:05:53] gix-: has joined #ruby
[04:15:12] c0ncealed: has joined #ruby
[04:16:26] darkness: has joined #ruby
[04:28:45] alfiemax: has joined #ruby
[04:29:53] randomstrangerb: has joined #ruby
[04:43:38] dinfuehr: has joined #ruby
[04:45:15] nofxx: has joined #ruby
[04:59:24] bkxd: has joined #ruby
[05:11:07] faces: has joined #ruby
[05:13:04] konsolebox: has joined #ruby
[05:22:42] bkxd: has joined #ruby
[05:25:13] randomstrangerb: has joined #ruby
[05:27:59] konsolebox: has joined #ruby
[05:35:18] bkxd: has joined #ruby
[05:43:28] ptx0: has joined #ruby
[05:49:31] stove: has joined #ruby
[05:50:01] alfiemax: has joined #ruby
[05:51:56] stove: has joined #ruby
[05:52:34] konsolebox: has joined #ruby
[06:03:31] konsolebox: has joined #ruby
[06:16:03] eightlimbed: has joined #ruby
[06:18:33] alfiemax: has joined #ruby
[06:23:36] naprimer3: has joined #ruby
[06:25:51] konsolebox: has joined #ruby
[06:31:39] konsolebox: has joined #ruby
[06:34:09] alfiemax: has joined #ruby
[06:42:07] konsolebox: has joined #ruby
[06:50:54] randomstrangerb: has joined #ruby
[06:51:07] konsolebox: has joined #ruby
[06:52:09] Mikasi: has joined #ruby
[06:53:38] Mikasi: has joined #ruby
[06:59:37] konsolebox: has joined #ruby
[07:00:26] lytol_: has joined #ruby
[07:03:18] jtdoncas_: has joined #ruby
[07:04:04] rippa: has joined #ruby
[07:06:03] marius: has joined #ruby
[07:08:10] KeyJoo: has joined #ruby
[07:11:37] konsolebox: has joined #ruby
[07:14:08] elphe: has joined #ruby
[07:40:04] jnollette: has joined #ruby
[07:50:46] mtkd: has joined #ruby
[07:52:00] cdg: has joined #ruby
[07:55:41] reber: has joined #ruby
[08:00:40] ahrs: has joined #ruby
[08:01:12] anisha: has joined #ruby
[08:25:20] alfiemax: has joined #ruby
[08:30:04] jrp93: has joined #ruby
[08:39:54] dn`: has joined #ruby
[08:52:44] alfiemax: has joined #ruby
[08:53:10] claudiuinberlin: has joined #ruby
[09:00:27] randomstrangerb: has joined #ruby
[09:03:16] jtdoncas_: has joined #ruby
[09:12:25] oetjenj: has joined #ruby
[09:17:33] jtdoncas_: has joined #ruby
[09:21:08] darkhanb: has joined #ruby
[09:24:37] t0adst00l: has joined #ruby
[09:27:15] belmoussaoui: has joined #ruby
[09:30:03] jamesaxl: has joined #ruby
[09:33:35] oetjenj: has joined #ruby
[09:34:11] oetjenj: has joined #ruby
[09:34:57] oetjenj: has joined #ruby
[09:35:44] oetjenj: has joined #ruby
[09:49:23] jtdoncas_: has joined #ruby
[09:55:19] mtkd: has joined #ruby
[10:04:07] clemens3: has joined #ruby
[10:06:58] alex``: has joined #ruby
[10:15:12] dionysus69: has joined #ruby
[10:19:24] jnollette: has joined #ruby
[10:22:16] jtdoncas_: has joined #ruby
[10:23:26] randomstrangerb: has joined #ruby
[10:24:19] alfiemax: has joined #ruby
[10:29:32] InfinityFye: has joined #ruby
[10:31:17] InfinityFye: has left #ruby: ()
[10:31:20] zwliew: has joined #ruby
[10:42:12] ltem: has joined #ruby
[10:50:00] drewmcmillan: has joined #ruby
[10:52:50] jtdoncas_: has joined #ruby
[10:52:55] miskatonic: has joined #ruby
[10:55:33] biberu: has joined #ruby
[10:58:15] alfiemax: has joined #ruby
[11:12:40] gil_: has joined #ruby
[11:15:29] troulouliou_div2: has joined #ruby
[11:17:30] chocoelho: has joined #ruby
[11:28:13] jrp93_2: has joined #ruby
[11:28:50] jtdoncas_: has joined #ruby
[11:29:02] amatas: has joined #ruby
[11:38:32] AJA4350: has joined #ruby
[11:39:52] bkxd: has joined #ruby
[11:40:29] mtkd: has joined #ruby
[11:47:37] mynameisdebian: has joined #ruby
[11:47:57] mynameisdebian: Anyone use Rails? Looking at the example at the bottom of this page on Controllers here: https://www.tutorialspoint.com/ruby-on-rails/rails-controllers.htm What is the practical difference between the "show" and "edit" methods? Are they both needed?
[11:59:14] mozzarella: mynameisdebian: they do different things
[11:59:58] mozzarella: well, ultimately it's for you to decide
[12:00:19] mynameisdebian: mozzarella: Thank you for the reply. Can you elaborate on that for me? The only difference I see is that "edit" includes the line "@subjects = Subject.all"
[12:00:21] mozzarella: but show typically doesn't allow you to modify the entry, it only shows it
[12:01:08] mynameisdebian: mozzarella: I guess I don't see how the edit method actually changes anything?
[12:01:16] mynameisdebian: sorry for the newbie question
[12:01:56] mozzarella: mynameisdebian: it doesn't change anything, it's from there that you write the form needed to modify an entry
[12:02:09] mozzarella: the form will be sent to update
[12:03:05] mozzarella: the two views can be similar or entirely different
[12:03:10] jtdoncas_: has joined #ruby
[12:03:13] burgestrand: has joined #ruby
[12:04:04] mynameisdebian: mozzarella, thank you
[12:05:40] mozzarella: mynameisdebian: maybe you would understand better by looking at the screenshots: https://www.tutorialspoint.com/ruby-on-rails/rails-views.htm
[12:06:24] mynameisdebian: mozzarella: tbh I was just going through that tutorial in order, and I didn't get to the Views section yet, so didn't realize that I would be defining a view for each method (I get that now)
[12:06:41] mynameisdebian: your answer helped
[12:06:50] mozzarella: https://www.tutorialspoint.com/ruby-on-rails/images/show-book.gif
[12:06:56] mozzarella: https://www.tutorialspoint.com/ruby-on-rails/images/edit-book.gif
[12:07:40] cdg: has joined #ruby
[12:15:24] sameerynho: has joined #ruby
[12:16:30] drewmcmillan: has joined #ruby
[12:17:40] mynameisdebian: I will look at those
[12:18:08] leitz: has joined #ruby
[12:18:45] leitz: Confused again. Didn't we used to be able to declare a variable outside of a method and then use it in the method, as long as it wasn't re-defined?
[12:22:37] mynameisdebian: leitz, if you are not defining a class in your .rb file, try preceding the variable with an '@'
[12:22:46] mynameisdebian: leitz, sorry if I misunderstood
[12:23:27] mynameisdebian: leitz, sorry, I may have misunderstood. Can you paste your code somewhere?
[12:24:35] jtdoncas_: has joined #ruby
[12:27:19] leitz: mynameisdebian, Line 19 sets the connection name. L43's method needs it https://github.com/makhidkarun/rb_tools/blob/master/bin/set_origin_planet.rb
[12:28:02] DmitryBochkarev: has joined #ruby
[12:28:05] leitz: Lately I've moved back to Ruby from Python, so I may just be more confused than normal.
[12:30:24] leitz: The code and connection work. I was just wondering if there was a way to not pass in the connection name.
[12:30:26] mynameisdebian: leitz, what error do you get?
[12:30:59] tomlukeywood: has joined #ruby
[12:32:09] guardianx: has joined #ruby
[12:32:17] mozzarella: I don't think it ever was possible, but you can use globals, constants or functions
[12:32:27] tomlukeywood: I am attempting recursion in ruby yet when i try this code i get an error: quiz.rb:19: syntax error, unexpected tIDENTIFIER, expecting keyword_end
[12:32:27] tomlukeywood: https://pastebin.com/tAMgPhZ4 why is this?
[12:32:28] ruby[bot]: tomlukeywood: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c70e92a3d9458ac9d8980ec74e4e5178
[12:32:29] ruby[bot]: tomlukeywood: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[12:33:24] jtdoncas_: has joined #ruby
[12:33:46] leitz: tomlukeywood, maybe swtich lines 19 and 20?
[12:34:14] mozzarella: tomlukeywood: although you don't need parentheses, you still need comas…
[12:34:49] tomlukeywood: leitz: but would that not remove the recursion?
[12:34:54] mynameisdebian: tomlukeywood, I'm not a Ruby expert but can you define an argument list without commas?
[12:35:01] tomlukeywood: mozzarella: oh thanks
[12:36:28] alfiemax: has joined #ruby
[12:37:34] leitz: tomlukeywood, I'm barely able to recurse myself, so still working on it.
[12:37:45] nadir: has joined #ruby
[12:38:59] tomlukeywood: leitz: what dont you understand?
[12:39:41] leitz: tomlukeywood: life, women, recursion...
[12:40:10] tomlukeywood: leitz: can you understand this example?
[12:40:11] tomlukeywood: https://paste.debian.net/1003047/
[12:41:42] tomlukeywood: (https://en.wikipedia.org/wiki/Factorial)
[12:42:17] alfiemax: has joined #ruby
[12:46:57] leitz: Hey tomlukeywood, I've done one or two small recursion exercises. Literally, one or two. So I get the concept of it but not much more. Reading "Grokking Algorithms" and it's helping. Took a coding break for the past couple weeks.
[12:47:45] tomlukeywood: ok if you get stuck just say
[12:47:59] leitz: Also re-reading "think like a programmer" and the recursion example makes sense. Mostly.
[12:57:13] belmoussaoui__: has joined #ruby
[12:57:18] jhass: havenwood: al2o3-cr I maintain a couple of the older ruby packages but the main one is by anatol
[12:59:31] drewmcmillan: has joined #ruby
[12:59:40] al2o3-cr: ok, thank you jhass.
[13:03:00] guardianx: has left #ruby: ()
[13:04:45] tAn: has joined #ruby
[13:07:28] jtdoncas_: has joined #ruby
[13:10:00] tAn: has joined #ruby
[13:14:47] despai: has joined #ruby
[13:16:06] plexigras: has joined #ruby
[13:24:54] tomlukeywood: has left #ruby: ()
[13:28:50] tomphp: has joined #ruby
[13:31:52] hightower3: has joined #ruby
[13:33:37] TomyLobo2: has joined #ruby
[13:37:37] troulouliou_div2: hi i have a string like this BLAH=DATA1, BLAH2=DATA2, BLAH3=DATA3 ; what is the best way to extract DATA3 with a regexp ?
[13:38:02] troulouliou_div2: i can get the index of BLAH3 and then extract but i would like to know if there is a better way
[13:38:42] lupine: /BLAH3=(\w+)/ ?
[13:39:20] troulouliou_div2: lupine, and then how to extract it from the string ?
[13:39:30] troulouliou_div2: just string[post, length] ?
[13:41:58] jtdoncas_: has joined #ruby
[13:42:07] lupine: "BLAH=DATA1, BLAH2=DATA2, BLAH3=DATA3".match(/BLAH3=(\w+)/)[1]
[13:42:35] lupine: `match` will return a MatchData instance. you can get by index (1 being the first capture group) or do whatever else you like
[13:43:45] troulouliou_div2: lupine, yeah thanks
[13:45:48] mtkd: has joined #ruby
[13:47:07] jrp93_3: has joined #ruby
[13:50:54] jrp93: has joined #ruby
[13:51:53] jrp93_2: has joined #ruby
[14:02:45] tAn: has joined #ruby
[14:03:32] tAn: has joined #ruby
[14:05:49] tAn: has joined #ruby
[14:07:23] tAn: has joined #ruby
[14:08:28] tAn: has joined #ruby
[14:09:38] tAn: has joined #ruby
[14:11:23] alfiemax: has joined #ruby
[14:16:34] john__: has joined #ruby
[14:17:01] jtdoncas_: has joined #ruby
[14:21:50] tAn: has joined #ruby
[14:22:51] anisha: has joined #ruby
[14:30:09] chocoelho: has joined #ruby
[14:30:24] randomstrangerb: has joined #ruby
[14:34:03] vipaca: has joined #ruby
[14:37:16] burgestrand: has joined #ruby
[14:38:14] burgestrand: has joined #ruby
[14:45:52] burgestrand: has joined #ruby
[14:47:01] mynameisdebian: has joined #ruby
[14:49:10] Burgestr_: has joined #ruby
[14:51:53] jtdoncas_: has joined #ruby
[14:59:42] cremes: has joined #ruby
[15:01:57] x0F: has joined #ruby
[15:03:17] DLSteve: has joined #ruby
[15:07:03] drewmcmi_: has joined #ruby
[15:09:35] drewmcmillan: has joined #ruby
[15:11:10] drewmcmillan: has joined #ruby
[15:12:52] ltem: has joined #ruby
[15:17:49] InfinityFye: has joined #ruby
[15:18:10] dionysus69: has joined #ruby
[15:19:22] InfinityFye: has left #ruby: ()
[15:20:30] drewmcmillan: has joined #ruby
[15:20:45] despai: has joined #ruby
[15:24:23] camonz: has joined #ruby
[15:27:02] jtdoncas_: has joined #ruby
[15:27:24] anisha: has joined #ruby
[15:33:55] helpa-bot: has joined #ruby
[15:34:38] tcopeland1: has joined #ruby
[15:34:59] gf3_: has joined #ruby
[15:35:42] yaewa: has joined #ruby
[15:35:50] zwliew: has joined #ruby
[15:36:06] ikopico: yo, in gemspec - adding 'rake' and 'rspec' as 'add_development_dependency' - then running with 'bundle exec' tells me that I don't have 'rake' installed in this bundle, same goes with rspec. I guess this is a common misunderstanding, can anyone please advise?
[15:36:12] anisha_: has joined #ruby
[15:36:43] havenwood: ikopico: Do you have the line `gemspec` in your Gemfile?
[15:36:52] hays_: has joined #ruby
[15:36:52] hays_: has joined #ruby
[15:36:56] hr3f: has joined #ruby
[15:37:11] ikopico: yup, other than testing with rake everything works as expecetd @havenwood
[15:37:42] ikopico: Actually I'm using most of the templates that you get with 'bundle gem'
[15:37:56] dtzuzu: has joined #ruby
[15:38:13] yosafbridge: has joined #ruby
[15:38:41] helpa: has joined #ruby
[15:38:41] havenwood: ikopico: I just tried a two-liner Gemspec with rake as dev dep in gemspec and it installed rake.
[15:38:46] Puffball: has joined #ruby
[15:38:58] pppktz: has joined #ruby
[15:39:10] ikopico: havenwood hmm did you run 'bundle' / 'bundle install' to achieve that?
[15:39:12] hxegon: has joined #ruby
[15:39:17] PaulePanter: has joined #ruby
[15:39:27] havenwood: ikopico: yup
[15:39:31] drewdrew: has joined #ruby
[15:39:56] havenwood: ikopico: A Gemfile with `source 'https://rubygems.org'` and `gemspec` only.
[15:40:09] ikopico: yup that's the exact same setup I have
[15:40:17] havenwood: ikopico: and in the *.gemspec a: gem.add_development_dependency 'rake'
[15:40:21] havenwood: ikopico: then: bundle
[15:40:34] bokayio: has joined #ruby
[15:40:42] A124: has joined #ruby
[15:40:57] DLSteve: has joined #ruby
[15:41:09] havenwood: ikopico: Using the latest RubyGems and Bundler?
[15:41:10] drewmcmillan: has joined #ruby
[15:41:19] havenwood: Works on my machine!
[15:41:40] havenwood: RubyGems 2.7.4 and Bundler 1.16.1.
[15:41:41] ikopico: I hate when it comes to dependency management and rbenv etc
[15:41:51] x0F: has joined #ruby
[15:42:01] havenwood: ikopico: gem update --system && gem update bundler
[15:42:34] perry: has joined #ruby
[15:42:34] perry: has joined #ruby
[15:42:37] rideh: has joined #ruby
[15:42:38] jerryskye: has joined #ruby
[15:42:42] ruby[bot]: Missing command under rbenv? Did you try `rbenv rehash`?
[15:42:44] Gabemo: has joined #ruby
[15:42:51] Derperperd: has joined #ruby
[15:43:04] Mikasi: has joined #ruby
[15:43:06] CBebop: has joined #ruby
[15:43:10] brainslug: has joined #ruby
[15:43:11] kenichi: has joined #ruby
[15:43:13] Lyubo1: has joined #ruby
[15:43:37] havenwood: RVM has #rvm, chruby has #chruby, and rbenv has that message ^.
[15:44:48] synstack: has joined #ruby
[15:44:51] ozzloy: has joined #ruby
[15:44:58] synstack: has joined #ruby
[15:44:58] ozzloy: has joined #ruby
[15:45:30] michael_mbp: has joined #ruby
[15:45:40] Keltia: has joined #ruby
[15:46:23] cjohnson: has joined #ruby
[15:46:58] ikopico: OK I'm feeling dumb now, I've removed the .bundle dir and refetched everything ¯\_(ツ)_/¯
[15:47:00] tomphp: has joined #ruby
[15:47:04] ikopico: And now it works
[15:47:36] ikopico: Thanks a lot havenwood - in the future when in doubt I'll first turn it off and on again
[15:48:52] coderphive: has joined #ruby
[15:49:22] lxsameer: has joined #ruby
[15:49:32] mtkd: has joined #ruby
[15:52:29] hurricanehrndz: has joined #ruby
[15:53:02] naprimer3: has joined #ruby
[15:59:32] jtdoncas_: has joined #ruby
[16:06:40] code_zombie: has joined #ruby
[16:07:22] mikecmpbll: has joined #ruby
[16:10:29] mynameisdebian: has joined #ruby
[16:11:06] tAn: has joined #ruby
[16:14:04] belmoussaoui: has joined #ruby
[16:22:57] alfiemax: has joined #ruby
[16:31:55] chouhoulis: has joined #ruby
[16:35:03] tomphp: has joined #ruby
[16:37:15] jtdoncas_: has joined #ruby
[16:42:27] burgestrand: has joined #ruby
[16:46:10] dviola: has joined #ruby
[16:48:43] tAn: has joined #ruby
[16:49:43] banisterfiend: has joined #ruby
[16:50:38] clemens3: has joined #ruby
[16:52:02] dionysus69: has joined #ruby
[16:57:34] linetrac1: has joined #ruby
[16:57:36] moei: has joined #ruby
[16:57:39] flak: has joined #ruby
[16:57:58] selim_: has joined #ruby
[16:59:23] Sirecote: has joined #ruby
[16:59:48] elphe: has joined #ruby
[17:00:08] ikopico: has joined #ruby
[17:00:39] ericmathison: has joined #ruby
[17:01:03] Mrgoose2: has joined #ruby
[17:04:13] Ishido: has joined #ruby
[17:08:11] NightMonkey: has joined #ruby
[17:11:16] jtdoncas_: has joined #ruby
[17:16:21] JusticeFries: has joined #ruby
[17:17:50] mynameisdebian: has joined #ruby
[17:19:21] VladGh: has joined #ruby
[17:31:52] tAn: has joined #ruby
[17:32:34] dinfuehr: has joined #ruby
[17:35:33] maciuszek: has joined #ruby
[17:35:35] Brak____________: has joined #ruby
[17:36:01] Iambchop: has joined #ruby
[17:36:10] zipkid: has joined #ruby
[17:37:28] Nuck: has joined #ruby
[17:37:31] HashNuke: has joined #ruby
[17:39:09] ogres: has joined #ruby
[17:43:52] jtdoncas_: has joined #ruby
[17:48:43] darkhanb: has joined #ruby
[17:54:05] mtkd: has joined #ruby
[18:00:52] c0ncealed: has joined #ruby
[18:03:47] KeyJoo: has joined #ruby
[18:07:02] eightlimbed: has joined #ruby
[18:12:42] tAn: has joined #ruby
[18:20:21] jtdoncas_: has joined #ruby
[18:26:54] jnollette: has joined #ruby
[18:28:46] KeyJoo: has joined #ruby
[18:31:15] uZiel: has joined #ruby
[18:38:23] TomyLobo2: i need to solve the travelling salesman problem for a set of about 20 entries
[18:38:40] TomyLobo2: i could bruteforce it, but maybe there's a gem for that? :)
[18:41:38] despai: has joined #ruby
[18:43:11] zautomata: has joined #ruby
[18:43:35] ectos: has joined #ruby
[18:46:25] DmitryBochkarev: has joined #ruby
[18:46:50] spkag: has joined #ruby
[18:48:29] tAn: has joined #ruby
[18:55:53] kapil___: has joined #ruby
[18:56:33] jtdoncas_: has joined #ruby
[19:01:36] webguynow: has joined #ruby
[19:03:06] bkxd: has joined #ruby
[19:07:36] tvw: has joined #ruby
[19:11:56] havenwood: TomyLobo2: Here's an example solution with ai4r: https://github.com/SergioFierens/ai4r/tree/master/examples/genetic_algorithm
[19:12:23] cdg: has joined #ruby
[19:13:14] TomyLobo2: that thing's page was redirecting to all kinds of advertisement so i didnt look into it
[19:14:39] Dimik: has joined #ruby
[19:15:53] TomyLobo2: havenwood, but doesn't this approximate?
[19:16:29] havenwood: TomyLobo2: You want to exhaust all possibilities?
[19:16:43] bmurt: has joined #ruby
[19:17:08] TomyLobo2: it's only 17 entries
[19:17:29] havenwood: TomyLobo2: Is it cheating to use the Google Distance Matrix API?
[19:17:39] TomyLobo2: only 128k possibilities...
[19:17:40] havenwood: https://developers.google.com/maps/documentation/distance-matrix/intro
[19:18:00] TomyLobo2: that's probably spherical though
[19:18:03] havenwood: https://github.com/Skalar/google_distance_matrix
[19:18:25] havenwood: shortest_route_by_*
[19:18:28] TomyLobo2: and probably even takes roads into account
[19:19:31] havenwood: yeah, if your sales folk aren't going by road it's no use
[19:19:40] TomyLobo2: it's not sales
[19:19:48] havenwood: just joking
[19:19:55] TomyLobo2: it's planning a construction ship's route in stellaris
[19:20:30] havenwood: TomyLobo2: hrm, any way to do this with Matrix?
[19:21:13] TomyLobo2: i made a savegame parser, i'm picking it apart to find all the planets missing research/mining stations, now i want to find the optimal route between them
[19:21:52] TomyLobo2: assuming direct jumps, for starters :)
[19:22:28] TomyLobo2: havenwood, what'S MAtrix?
[19:22:32] TomyLobo2: the google thing?
[19:23:37] havenwood: TomyLobo2: I just meant with Matrix in stdlib or like NMatrix from SciRuby.
[19:24:11] havenwood: It just seemed like a matrix - I don't actually have a solution.
[19:25:08] havenwood: TomyLobo2: On second thought, there's probably nothing to that.
[19:25:27] havenwood: TomyLobo2: Brute forcing seems reasonable.
[19:25:28] orbyt_: has joined #ruby
[19:25:53] TomyLobo2: yeah i just have to make sure i dont have all permutations in memory at any point ^^
[19:26:45] DmitryBochkarev: has joined #ruby
[19:26:45] TomyLobo2: i need a parallel_min_by ^^
[19:28:00] TomyLobo2: maybe i should use backtracking instead of being lazy and using Array#permutation
[19:29:19] bkxd: has joined #ruby
[19:33:47] jtdoncas_: has joined #ruby
[19:36:55] millz: has joined #ruby
[19:37:52] miskatonic: has joined #ruby
[19:38:01] bkxd: has joined #ruby
[19:39:58] d^sh: has joined #ruby
[19:41:48] pastorinni: has joined #ruby
[19:42:30] TomyLobo2: i'm basically looking for the shortest hamiltonian path on the graph
[19:42:54] DrCode: has joined #ruby
[19:46:43] DrCode: has joined #ruby
[19:47:04] spkag: has joined #ruby
[19:49:20] chouhoulis: has joined #ruby
[19:53:55] DmitryBochkarev: has joined #ruby
[19:57:56] belmoussaoui: has joined #ruby
[19:58:12] tAn: has joined #ruby
[19:59:24] mtkd: has joined #ruby
[20:01:09] yokel: has joined #ruby
[20:10:02] jtdoncas_: has joined #ruby
[20:10:53] killsnowden: has joined #ruby
[20:25:17] zautomata1: has joined #ruby
[20:36:52] tAn: has joined #ruby
[20:39:17] Azure: has joined #ruby
[20:40:14] burgestrand: has joined #ruby
[20:42:38] capin: has joined #ruby
[20:56:33] meesles: has joined #ruby
[21:03:15] tomphp: has joined #ruby
[21:04:09] DmitryBochkarev: has joined #ruby
[21:05:03] Azure: has joined #ruby
[21:05:09] zautomata: has joined #ruby
[21:12:53] TomyLobo2: it's still not done
[21:13:03] TomyLobo2: come on, it's just 17! permutations
[21:14:04] TomyLobo2: 355 687 428 096 000
[21:14:14] TomyLobo2: 355 trillion.... that takes a while
[21:16:33] stove: has joined #ruby
[21:17:57] tAn: has joined #ruby
[21:20:34] randomstrangerb: has joined #ruby
[21:20:53] millz: has joined #ruby
[21:26:05] mistergibson: has joined #ruby
[21:40:59] cdg: has joined #ruby
[21:48:53] alfiemax: has joined #ruby
[21:49:18] ged: has joined #ruby
[21:49:25] Azure: has joined #ruby
[21:53:18] JusticeFries: has joined #ruby
[21:53:19] bairyn: has joined #ruby
[21:53:55] tAn: has joined #ruby
[21:55:19] ahrs: has joined #ruby
[22:01:39] apeiros: TomyLobo2: you seriously calculate 17! perms of something?
[22:02:28] TomyLobo2: well not anymore
[22:02:33] apeiros: I mean, assuming calculating 1 takes 1µs (0.000001s), you still wait for 11 years…
[22:02:49] TomyLobo2: i'm switching to branch&bound, which should be 2^17 instead :)
[22:03:41] TomyLobo2: ...according to wikipedia
[22:03:44] apeiros: yes, that should be ever so slightly that it's barely noticeable faster
[22:04:25] TomyLobo2: do you have any idea how big the difference between 2^n and n! is?
[22:04:38] apeiros: yes, about 11y in above calc :-p
[22:05:08] TomyLobo2: from 355 trillion to 131072
[22:05:31] apeiros: yes. or again, in above calc, from 11.27y to 0.1s
[22:05:40] apeiros: as I said, barely noticeable.
[22:05:59] apeiros: as you can see, I'm being dead serious
[22:06:28] TomyLobo2: i thought you said it's barely noticably faster
[22:06:46] apeiros: it is. I mean it's only 11y. how'd you notice that?
[22:07:07] TomyLobo2: change in gait, coughing, grey hair
[22:08:41] apeiros: I guess it matters whether you're older than the universe
[22:08:44] apeiros: ACTION afk
[22:11:06] capin: would anyone mind taking a look at a homebrew formula I have edited, https://goo.gl/nEx1Fs I can't figure out why the app won't compile with python support. more specifically why cmake can't find a library even though I've added the library path as a compile time arg. build error => https://goo.gl/c1r6F9
[22:12:28] elphe: has joined #ruby
[22:20:19] TomyLobo2: looks like that would get more replies in a channel about whatever that "homebrew formula" thing is
[22:26:16] archio: has joined #ruby
[22:26:29] capin: TomyLobo2: yeah I posted in #machomebrew yesterday, and there hasn't been a reply since my post from yesterday ¯\_(ツ)_/¯
[22:30:43] Azure: has joined #ruby
[22:31:35] jnyw: has joined #ruby
[22:31:44] archio: has joined #ruby
[22:33:09] sameerynho: has joined #ruby
[22:41:39] tAn: has joined #ruby
[22:56:30] [reed]: has joined #ruby
[22:56:31] [reed]: has joined #ruby
[23:02:33] elphe: has joined #ruby
[23:03:01] oetjenj: has joined #ruby
[23:07:59] stove: has joined #ruby
[23:13:24] vipaca: has joined #ruby
[23:14:08] stove: has joined #ruby
[23:14:37] EXCHGR: has joined #ruby
[23:15:11] al2o3-cr: has joined #ruby
[23:16:47] tAn: has joined #ruby
[23:17:08] raynold: has joined #ruby
[23:17:11] chocoelho: has joined #ruby
[23:20:21] marius: has joined #ruby
[23:20:38] eightlimbed: has joined #ruby
[23:25:08] eightlimbed: has joined #ruby
[23:31:18] ogres: has joined #ruby
[23:32:14] jtdoncas_: has joined #ruby
[23:36:08] jenrzzz: has joined #ruby
[23:36:08] jenrzzz: has joined #ruby
[23:40:30] t0adst00l: has joined #ruby
[23:42:46] s33n: has joined #ruby
[23:43:53] _sfiguser: has joined #ruby
[23:44:05] mtkd: has joined #ruby
[23:44:06] _sfiguser: hello guys... is there something similar to urllib3 in ruby ? http://urllib3.readthedocs.io/en/latest/user-guide.html
[23:45:11] Zarthus: what functionality do you wish to have
[23:45:42] Zarthus: Ruby in itself has a http and url include
[23:45:53] Zarthus: there's gems available for anything more advanced
[23:50:48] t0adst00l: has joined #ruby
[23:56:55] elphe: has joined #ruby
[23:59:31] randomstrangerb: has joined #ruby