« Back to channel list

#ruby - 25 October 2017

« Back 1 day Forward 1 day »
[00:00:14] ap4y1: has joined #ruby
[00:02:20] Technodrome: has joined #ruby
[00:02:53] elomatreb: If it's an Object it should have an #inspect, only BasicObject[-derived] doesn't have that
[00:04:42] centrx: has joined #ruby
[00:04:42] centrx: has joined #ruby
[00:05:18] howdoi: has joined #ruby
[00:06:04] ap4y: has joined #ruby
[00:06:17] havenwood: >> Object.new.inspect
[00:06:18] ruby[bot]: havenwood: # => "#<Object:0x40899c58>" (https://eval.in/886243)
[00:07:23] alnewkirk: has joined #ruby
[00:07:37] jenrzzz: has joined #ruby
[00:07:37] jenrzzz: has joined #ruby
[00:08:03] Cork: has joined #ruby
[00:09:28] hahuang65: has joined #ruby
[00:13:38] jenrzzz: has joined #ruby
[00:13:39] jenrzzz: has joined #ruby
[00:16:00] cdg: has joined #ruby
[00:17:40] PresidentBiscuit: has joined #ruby
[00:21:12] enterprisey: has joined #ruby
[00:21:42] Cohedrin_: has joined #ruby
[00:22:27] pryorda: has joined #ruby
[00:25:56] dviola: has joined #ruby
[00:26:33] kapil___: has joined #ruby
[00:29:28] modin: has joined #ruby
[00:29:31] rajno: has joined #ruby
[00:30:16] latemus: inspect just gives the object id, not it's content
[00:30:33] latemus: if i convert to an array i see more. is there way to dump the object?
[00:31:11] gusrub: has joined #ruby
[00:33:32] alnewkirk: has joined #ruby
[00:37:10] Cork: has joined #ruby
[00:38:22] jxv: has joined #ruby
[00:40:45] kculpis: has joined #ruby
[00:42:18] milardovich: has joined #ruby
[00:42:35] fmcgeough: has joined #ruby
[00:43:04] AndBobsYourUncle: has joined #ruby
[00:45:52] micahf: has joined #ruby
[00:49:02] alnewkirk: has joined #ruby
[00:53:13] bmurt: has joined #ruby
[00:54:02] zanoni_: has joined #ruby
[00:55:35] AnoHito_: has joined #ruby
[00:55:38] raatiniemi: has joined #ruby
[00:55:50] ForeignBiscuit: has joined #ruby
[00:55:55] Cork: has joined #ruby
[00:56:06] |ifei5good: has joined #ruby
[00:56:19] ForeignBiscuit: has joined #ruby
[00:56:44] ForeignBiscuit: has joined #ruby
[00:56:47] k3rn31_: has joined #ruby
[00:57:09] ForeignBiscuit: has joined #ruby
[00:57:34] ForeignBiscuit: has joined #ruby
[00:57:41] veeti: has joined #ruby
[00:58:20] ForeignBiscuit: has joined #ruby
[00:58:22] Cohedrin_: has joined #ruby
[00:58:48] marens: has joined #ruby
[00:59:12] oetjenj: has joined #ruby
[00:59:53] veloutin: has joined #ruby
[01:00:16] Xeago: has joined #ruby
[01:02:32] quiller: has joined #ruby
[01:04:49] x0F: has joined #ruby
[01:06:31] jolamb: has joined #ruby
[01:12:03] havenwood: larissa: You can define #inspect. Say more about what you have and what you'd like it to look like?
[01:12:12] havenwood: oops, wrong nick!
[01:12:14] |ifei5g00d: has joined #ruby
[01:13:10] pilne: has joined #ruby
[01:13:57] jphase: has joined #ruby
[01:15:08] havenwood: latemus: You may like the default class behavior, exposing instance variables.
[01:18:03] latemus: havenwood: thank you
[01:21:45] imode: has joined #ruby
[01:22:29] kent\n: has joined #ruby
[01:22:41] creat: has joined #ruby
[01:23:46] pygospa: has joined #ruby
[01:25:35] |ifei5good: has joined #ruby
[01:26:45] RickHull: has joined #ruby
[01:27:14] Cohedrin_: has joined #ruby
[01:28:05] alfiemax: has joined #ruby
[01:28:55] d^sh: has joined #ruby
[01:33:10] jenrzzz: has joined #ruby
[01:33:10] jenrzzz: has joined #ruby
[01:34:44] jrafanie: has joined #ruby
[01:36:52] Cohedrin_: has joined #ruby
[01:40:58] uZiel: has joined #ruby
[01:45:14] ozcanesen: has joined #ruby
[01:49:09] enterprisey: has joined #ruby
[01:50:29] gizmore: has joined #ruby
[01:50:31] Technodrome: has joined #ruby
[01:50:49] gusrub: has joined #ruby
[01:54:07] Jameser: has joined #ruby
[01:55:32] jgt: has joined #ruby
[01:55:38] cdg: has joined #ruby
[01:56:08] cdg: has joined #ruby
[01:57:04] |ifei5g00d: has joined #ruby
[01:57:19] MrBusiness: has joined #ruby
[01:57:27] orbyt_: has joined #ruby
[02:05:41] Cohedrin_: has joined #ruby
[02:06:21] apeiros: has joined #ruby
[02:08:34] ap4y: has joined #ruby
[02:10:15] hahuang65: has joined #ruby
[02:10:23] DTZUZO: has joined #ruby
[02:10:49] |ifei5g00d: has joined #ruby
[02:14:07] oleo: has joined #ruby
[02:15:18] mim1k: has joined #ruby
[02:16:49] Azure|dc: has joined #ruby
[02:18:28] jphase: has joined #ruby
[02:18:39] fullstack: has joined #ruby
[02:20:31] jolamb: has joined #ruby
[02:24:13] Technodrome: has joined #ruby
[02:25:23] oetjenj: has joined #ruby
[02:31:19] |ifei5g00d: has joined #ruby
[02:35:38] govg: has joined #ruby
[02:35:52] Cohedrin_: has joined #ruby
[02:36:23] chouhoulis: has joined #ruby
[02:37:23] astrobunny: has joined #ruby
[02:43:20] milardovich: has joined #ruby
[02:45:20] lacour: has joined #ruby
[03:01:48] |ifei5g00d: has joined #ruby
[03:02:54] mikecmpbll: has joined #ruby
[03:03:12] jphase: has joined #ruby
[03:05:30] jphase_: has joined #ruby
[03:06:30] jphase__: has joined #ruby
[03:08:03] ap4y: has joined #ruby
[03:08:58] jphase: has joined #ruby
[03:09:13] c_nick: has joined #ruby
[03:10:28] ledestin: has joined #ruby
[03:10:31] |ifei5g00d: has joined #ruby
[03:11:03] hahuang65: has joined #ruby
[03:14:38] meinside: has joined #ruby
[03:15:52] uZiel: has joined #ruby
[03:21:14] Cohedrin_: has joined #ruby
[03:21:53] c_nick: is it possible to call a ruby function only on form submit through HAML or is there a better way to achieve this?
[03:24:02] gix: has joined #ruby
[03:25:23] govg: has joined #ruby
[03:26:35] RickHull: i don't see why not. using rails? IIRC haml just defines the html, which defines the form. how you handle GET/POST params is ostensibly separate
[03:27:08] hahuang65: has joined #ruby
[03:30:17] astrobunny: has joined #ruby
[03:30:45] c_nick: RickHull, I have created a User Interface where i give all the options to the User and use his selection and create a query which i show in a div, is there a way by which i can send this content from the div back to my route ?
[03:30:57] alfiemax: has joined #ruby
[03:31:06] c_nick: for now i am sending the form elements and concatenating the elements in the ruby like i do in JS which is literally doing things twice
[03:31:22] c_nick: i am using Sinatra Haml no Rails
[03:32:00] RickHull: is the query created on the server or the client?
[03:33:51] c_nick: thats a good question .. I am doing all of that in JS so in the Client.. but this sinatra app is not really a server-client .. its like an App so in this case server and client are one
[03:35:03] RickHull: if the client owns the query, then the client will have to submit that created query via GET/POST on the form submit
[03:36:12] RickHull: in your param handler on the server, you can do your function when you receive e.g. POST['the_query']
[03:36:13] c_nick: submit the created query via GET/POST is what i am looking for .. for now when i click on submit i get all the params but they essentially only include the input tags i am not entirely sure how i can pass a div innerhtml to a form
[03:36:27] RickHull: via JS I think
[03:36:52] RickHull: that div would need to be contained in the HTML <form>
[03:37:00] RickHull: and tagged as in input, maybe?
[03:37:15] RickHull: via HTML ultimately, I would think. but you can manipulate the DOM with JS maybe?
[03:37:34] c_nick: its in the form .. hmm perhaps if i make it a TextArea .. let me see
[03:37:49] RickHull: you can style the TextArea to look like a regular div
[03:38:22] c_nick: that seems like a good option .. as i am not really in the favour of doing it once in JS then again in Ruby.. then maintain both till the end.. thats sad
[03:38:32] c_nick: I will try and see Thanks RickHull :-)
[03:40:43] RickHull: good luck, cheers :)
[03:41:23] guacamole: has joined #ruby
[03:45:26] c_nick: thanks RickHull, Works well! :-)
[03:45:33] c_nick: Now off to styling ... :)
[03:46:41] |ifei5g00d: has joined #ruby
[03:47:40] RickHull: think about whether or not you want the user to edit the textarea. might be cool, maybe not
[03:47:46] RickHull: style accordingly
[03:49:03] RickHull: i think you can probably inject the query string into the form submission without an explicit input
[03:49:09] c_nick: i want that text area to be a read only bit .. ie. u can copy from the UI and paste on the cmd ..
[03:49:48] RickHull: textarea is probably fine for a prototype. you can display it and submit it more cleanly in v2
[03:54:42] apeiros: has joined #ruby
[03:55:45] c_nick: yes seems like the right foot forward, many thanks RickHull, :)
[03:59:53] Yzguy: has joined #ruby
[04:00:58] cschneid_: has joined #ruby
[04:01:39] fullstack: has joined #ruby
[04:02:05] mikecmpbll: has joined #ruby
[04:04:47] kies: has joined #ruby
[04:06:20] |ifei5g00d: has joined #ruby
[04:08:06] Technodrome: has joined #ruby
[04:10:16] jottr: has joined #ruby
[04:11:09] fullstack: has joined #ruby
[04:15:41] jphase: has joined #ruby
[04:15:44] mim1k: has joined #ruby
[04:16:41] jphase_: has joined #ruby
[04:17:41] jphase__: has joined #ruby
[04:18:42] jphase___: has joined #ruby
[04:22:24] cdg: has joined #ruby
[04:27:07] alfiemax: has joined #ruby
[04:28:18] chouhoulis: has joined #ruby
[04:28:42] Dimik: has joined #ruby
[04:30:18] Cohedrin_: has joined #ruby
[04:35:40] cschneid_: has joined #ruby
[04:37:37] mim1k: has joined #ruby
[04:38:05] alex``: has joined #ruby
[04:39:33] govg: has joined #ruby
[04:39:55] cschneid_: has joined #ruby
[04:40:36] biberu: has joined #ruby
[04:43:12] jphase: has joined #ruby
[04:44:13] jphase_: has joined #ruby
[04:47:42] jphase: has joined #ruby
[04:48:44] jphase_: has joined #ruby
[04:51:40] guacamole: has joined #ruby
[04:52:17] jphase__: has joined #ruby
[04:55:11] brianjo: has joined #ruby
[04:57:31] |ifei5g00d: has joined #ruby
[05:00:11] jgt: has joined #ruby
[05:01:26] jxv: has joined #ruby
[05:04:47] apeiros: has joined #ruby
[05:05:47] theory4000: has joined #ruby
[05:06:31] |ifei5g00d: has joined #ruby
[05:19:34] gigetoo: has joined #ruby
[05:19:48] jxv: has joined #ruby
[05:20:15] Silthias1: has joined #ruby
[05:21:50] LocaMocha: has joined #ruby
[05:24:59] djbkd: has joined #ruby
[05:27:16] Macaveli: has joined #ruby
[05:34:09] jgt: has joined #ruby
[05:35:18] aupadhye: has joined #ruby
[05:36:54] jxv: has joined #ruby
[05:37:50] jphase: has joined #ruby
[05:37:56] cschneid_: has joined #ruby
[05:38:50] latemus: is run() like a subshell?
[05:39:39] hutch34: has joined #ruby
[05:40:32] Radar: is what now
[05:40:44] jenrzzz: has joined #ruby
[05:40:44] jenrzzz: has joined #ruby
[05:41:01] andikr: has joined #ruby
[05:42:20] jphase: has joined #ruby
[05:44:13] |ifei5g00d: has joined #ruby
[05:50:19] Devalo: has joined #ruby
[05:53:54] fullstack: has joined #ruby
[05:55:12] jottr: has joined #ruby
[05:56:42] anisha_: has joined #ruby
[06:03:35] segy: has joined #ruby
[06:03:57] Devalo: has joined #ruby
[06:04:32] Devalo: has joined #ruby
[06:04:38] cschneid_: has joined #ruby
[06:05:41] jenrzzz: has joined #ruby
[06:05:42] jenrzzz: has joined #ruby
[06:05:47] Devalo: has joined #ruby
[06:06:22] Devalo: has joined #ruby
[06:07:15] rabajaj: has joined #ruby
[06:12:08] Heph_: has joined #ruby
[06:17:21] conta: has joined #ruby
[06:26:57] dionysus69: has joined #ruby
[06:28:14] nick123: has joined #ruby
[06:29:36] snickers: has joined #ruby
[06:30:14] Devalo: has joined #ruby
[06:31:36] RedNifre: has joined #ruby
[06:38:59] apeiros: has joined #ruby
[06:43:50] |ifei5g00d: has joined #ruby
[06:45:34] Devalo: has joined #ruby
[06:45:52] mjolnird: has joined #ruby
[06:48:57] cschneid_: has joined #ruby
[06:56:03] mank: has joined #ruby
[06:57:01] djbkd: has joined #ruby
[06:57:17] morfin: has joined #ruby
[06:57:51] morfin: if i have Base with method foo and derived which does not implement this method should i raise NoMethodError?
[06:58:06] morfin: in Base.foo
[06:58:50] morfin: i should signl somehow that method is not implemented but NotImplementedError seems to be wrong choice
[06:59:37] ta: has joined #ruby
[07:00:05] Freshnuts: has joined #ruby
[07:01:18] Nilium: foo in base foo is 4.
[07:02:04] Nilium: ACTION crawls back into the bad joke pit from whence he came.
[07:02:35] morfin: def rand 4 end
[07:04:02] matthewd: morfin: Have you considered not defining the method?
[07:04:38] ioggstream: has joined #ruby
[07:04:45] morfin: i was thinking to have methods in base class but throw NoMethodError or something if not implemented in subclass
[07:08:32] morfin: >> class Base def test() raise NoMethodError end end class Derived < Base def test() puts "Derived.test" end end Derived.new.test
[07:08:33] ruby[bot]: morfin: # => /tmp/execpad-7fb7d0021bb8/source-7fb7d0021bb8:2: syntax error, unexpected keyword_class, expecting k ...check link for more (https://eval.in/886385)
[07:09:17] JoL1hAHN: has joined #ruby
[07:09:27] Devalo: has joined #ruby
[07:11:05] Devalo: has joined #ruby
[07:14:39] morfin: just move shared implementations of methods to Base?
[07:15:02] morfin: and leave rest of methods in derived from Base classes
[07:18:29] cschneid_: has joined #ruby
[07:22:28] Tempesta: has joined #ruby
[07:22:41] cdg: has joined #ruby
[07:25:25] claudiuinberlin: has joined #ruby
[07:27:21] ljarvis: NotImplementedError seems perfect for this if it's something derived classes are meant to implement
[07:28:17] matthewd: NotImplementedError is a very bad solution for this: an exception is more than its name
[07:28:19] dminuoso: ljarvis: considering how its used in ruby core and stlib no.
[07:28:37] dminuoso: ljarvis: NotImplementedError is conventionally used in situations when a given functionality is not implemented for some target platform.
[07:28:39] ljarvis: well now if that's how we thought about ruby code all of our code would be awful
[07:29:05] ljarvis: so they used a too generic exception for their use-case
[07:30:20] mark_66: has joined #ruby
[07:30:52] matthewd: ljarvis: And if we started raising non-StandardError exceptions for simple runtime issues, all of our code would be awful
[07:31:02] |ifei5g00d: has joined #ruby
[07:31:48] Technodrome: has joined #ruby
[07:33:50] dminuoso: ljarvis: Something like this is what I've been working on (thanks to matthewd for refining my earlier version) to force users to implement a given interface: https://eval.in/886401
[07:34:25] Defenestrate: has joined #ruby
[07:34:41] Defenestrate: has joined #ruby
[07:35:04] alfiemax: has joined #ruby
[07:36:38] zautomata: has joined #ruby
[07:37:39] dminuoso: Though I suppose it'd be harder to do this with inheritance.
[07:38:01] marr: has joined #ruby
[07:38:29] Devalo: has joined #ruby
[07:38:42] matthewd: dminuoso: I was wondering about deferring the check to .new -- initially just so you can put the includes before the methods, but it might help here too
[07:39:31] matthewd: Much less "compile-time"-y though
[07:39:37] ljarvis: Right, I agree it's not optimal, but also Ruby does not have good tools for defining these sort of interfaces. Having nothing and raising NoMethodError is definitely not enough
[07:41:01] matthewd: I think I might do it with rdoc + method_missing, personally
[07:41:25] ljarvis: that's not a bad shout
[07:41:31] matthewd: rdoc to define the call-seq, document the method's intent, and make it look like the abstract class has it
[07:42:05] matthewd: method_missing with a list of abstract methods to still raise a NoMethodError, but give a better "oi, you should've implemented this in your subclass" message
[07:42:58] |ifei5g00d: has joined #ruby
[07:43:16] andikr: has joined #ruby
[07:52:27] alfiemax: has joined #ruby
[07:52:45] Megamosaren: has joined #ruby
[07:52:52] cschneid_: has joined #ruby
[07:55:01] ldepandis: has joined #ruby
[07:55:51] faces: has joined #ruby
[07:56:19] Technodrome: has joined #ruby
[08:02:17] Silthias: has joined #ruby
[08:02:45] Prutheus: has joined #ruby
[08:03:49] jphase: has joined #ruby
[08:04:19] Prutheus: Hey. I use ruby for data processing and calculation tasks. I want to build a new PC with better performance. But I am not quite sure what kind of processor I should buy. Can the standard ruby interpreter do real multithreading, or do I not need a lot of cores/threads but a lot of cpu speed? what is good/what do I not need?
[08:06:15] jphase_: has joined #ruby
[08:08:00] jxv: has joined #ruby
[08:09:44] jphase: has joined #ruby
[08:11:02] quobo: has joined #ruby
[08:11:50] rajnoT: has joined #ruby
[08:13:19] dminuoso: prutheus: It can do real multithreading but with a catch.
[08:14:17] jphase_: has joined #ruby
[08:14:39] dminuoso: prutheus: In MRI the VM has whats called a global VM lock which prevents most regular kinds of parallelism.
[08:15:17] frmendes: has joined #ruby
[08:15:22] Prutheus: dminuoso: Well, what is MRI?
[08:15:24] dminuoso: prutheus: Short story is: In MRI the only parallelism you get is with I/O or specially written native extensions.
[08:15:36] dminuoso: prutheus: Matz Ruby Interpreter, the "regular ruby implementation"
[08:15:58] dminuoso: prutheus: However, JRuby has no such lock, so you get full parallelism in ruby land.
[08:16:05] Prutheus: and when I use an other interpreter, i can get real multithreading? ok
[08:16:08] dminuoso: But you still have native threads in MRI for concurrency.
[08:16:10] guille-moe: has joined #ruby
[08:16:42] matthewd: If your data processing and calculation is parallelizable, you can run multiple MRI processes -- or use JRuby
[08:16:50] Prutheus: ok buttt question: is my default program multithreaded then or only when I use threads in my program?
[08:17:29] dminuoso: prutheus: Unless you explicitly create threads, you only have the main thread (and some internal threads you dont need to worry about)
[08:18:36] Devalo: has joined #ruby
[08:20:57] aufi: has joined #ruby
[08:21:08] prutheus_: has joined #ruby
[08:21:24] prutheus_: sorry got dc
[08:22:21] prutheus_: So even when I use jRuby, I still need to program threads with thread.new right?
[08:22:52] dminuoso: Prutheus_: If you want to do multithreading, you have to create threads, yes.
[08:23:58] jottr: has joined #ruby
[08:24:29] rahul_bajaj: has joined #ruby
[08:24:51] dminuoso: matthewd: it's still frustrating. I've been working with webpack-dev-server for over a year now, and not once did I have comparable issues.
[08:24:53] prutheus_: Ok. And what kind of cpu is good for multithread, what for single?
[08:25:15] ur5us: has joined #ruby
[08:25:42] dminuoso: Prutheus_: Ignoring a lot of the finer details, it's basically just about the number of physical cores. Ignore "hyperthreading", it's just a marketing gag.
[08:26:16] matthewd: Prutheus_: It sounds like you're solving things in an odd order
[08:26:46] dminuoso: Oh also I seem to have switched channels.
[08:27:21] cschneid_: has joined #ruby
[08:28:18] prutheus_: so a cpu with some chores and high clock would be perfect?
[08:28:26] prutheus_: Why a strange order?
[08:28:48] jphase: has joined #ruby
[08:29:50] greenbagels: Prutheus_: your workload with parallelism will always be limited to the number of available threads on your cpu
[08:29:55] dminuoso: Prutheus_: You have not even implemented your data-processing yet. Also, most frequently performance problems arise from poor code.
[08:30:15] greenbagels: clockrate is not a factor in whether your program will benefit from multithreading
[08:30:34] greenbagels: data dependence and # of threads (as well as % of your code that will be parallelized) are more significant
[08:30:36] Devalo: has joined #ruby
[08:30:40] jgt: has joined #ruby
[08:31:09] greenbagels: (as well as the difficulty of your problem itself, parallelizing something like an array summation function might actually end up slowing down your code)
[08:31:15] prutheus_: What would be more worth for me? AMD FX 8350 or i3 8750K or neither?
[08:31:15] Devalo: has joined #ruby
[08:31:29] mim1k: has joined #ruby
[08:32:13] jottr: has joined #ruby
[08:32:45] greenbagels: If this is a serious project, I'd probably have to say a xeon with 16 threads
[08:32:56] greenbagels: you could even buy a dual socket system for 32+ threads if you so desire
[08:32:57] dminuoso: Prutheus_: Stop worrying about buying adequate hardware. In my experience, you buy dedicated hardware after you have a) written the software, b) profiled it, c) optimized it, and d) have an idea of what you need, and why you need it.
[08:33:04] greenbagels: and what dminuoso said
[08:33:40] greenbagels: see if your code is at the point where you know it'll actually significantly benefit from multiple threads
[08:34:05] prutheus_: No because currently I am working in my notebook but I want to build a PC with a lot of RAM and good CPU to work on that in future
[08:34:38] matthewd: Prutheus_: Perhaps you can expand on "data processing and calculation tasks"?
[08:34:59] matthewd: 'cos that's kinda what computers do
[08:36:15] prutheus_: Ok. For example, my most recent project crawls market data, enter it into several files, do a lot of computations on it and give me some results
[08:36:43] matthewd: How much data? How long does it take, and how long do you want it to take?
[08:37:01] dionysus69: in this specific case ,is it better to use => format rather than this ? "1d": 1
[08:37:22] dionysus69: rubocop is complaining, i dont know how fair it is
[08:37:32] prutheus_: 200 CSV files with each 20k rows and 100 cols
[08:38:20] tobiasvl: dionysus69: well, they don't do the same thing. using : makes the key a symbol, using the => rocket makes it a string
[08:38:28] prutheus_: Takes very long, needs lot lot RAM and should be very faster with new pc
[08:38:34] matthewd: dionysus69: Up to you
[08:39:01] matthewd: Prutheus_: That doesn't sound like much data at all. You'd probably be better off improving your code.
[08:39:30] dionysus69: tobiasvl: you sure? I thought both were same in context of a hash key value assignment
[08:39:56] Paraxial: has joined #ruby
[08:40:05] prutheus_: No it is a lot. On each I do 187 TA calculations which are pretty slow. Whatever, I want to use the new pc for my future tasks, too
[08:40:33] tobiasvl: >> {"1d": 1}
[08:40:34] ruby[bot]: tobiasvl: # => {:"1d"=>1} (https://eval.in/886428)
[08:40:38] tobiasvl: >> {"1d" => 1}
[08:40:39] ruby[bot]: tobiasvl: # => {"1d"=>1} (https://eval.in/886429)
[08:40:43] tobiasvl: dionysus69: ^
[08:41:51] dionysus69: tobiasvl: ok I understood :) thanks
[08:42:31] matthewd: Prutheus_: Okay; I don't know what a TA calculation is ¯\_(ツ)_/¯
[08:42:53] prutheus_: Some market calcs , see ta-lib
[08:43:45] matthewd: I'm not saying "don't buy a new computer"; I'm saying "I doubt buying a new computer will be an effective solution to improving your run time"
[08:44:47] dminuoso: tobiasvl: => doesn't make it a string, it just leaves it as is.
[08:44:50] prutheus_: At least cause of the more RAM it is, because I can store more data in arrays and can work faster with them?
[08:45:09] dminuoso: tobiasvl: Might sound pedantic, but turns out you can use pretty much anything as a key in hash. :P
[08:45:14] tobiasvl: dminuoso: yes, of course. I meant in his specific example. but good clarification
[08:45:26] dminuoso: Ah nevermind then.
[08:45:34] claudiuinberlin: has joined #ruby
[08:45:52] matthewd: dminuoso: It's only pedantic in the sense that I'm pretty sure all three of you know exactly how a hash works, and no-one said anything that implied otherwise :P
[08:45:59] dminuoso: Prutheus_: If you can show us your code, we might be able to provide some insights in your mistakes.
[08:46:05] ioggstream: has joined #ruby
[08:46:18] dminuoso: matthewd: Oh well. :)
[08:48:11] prutheus_: Yes good idea, but this idea is not based on the code. It is based with the idea that I will work on it in future tasks then. So do I need a fast lowcore cpu or much more and and and? I just have problems to identify a good processor
[08:48:44] matthewd: Prutheus_: Yes, if you have more RAM, you can put more things in memory; and yes, it is faster to work with data that's in memory. But the path to faster code is almost always to do less work, not to do it faster.
[08:49:36] prutheus_: Yes I understand, but please help diciding a cpu ^^
[08:49:39] Devalo: has joined #ruby
[08:49:55] matthewd: Is there really that much variability of clockspeed-vs-cores trade-off these days? (at a given budget level)
[08:50:19] Devalo: has joined #ruby
[08:50:44] prutheus_: You remember the 2 CPU I mentioned?
[08:50:51] dminuoso: matthewd: Yes.
[08:52:44] sekmo: has joined #ruby
[08:52:55] matthewd: "i3 8750K"?
[08:53:43] prutheus_: 8350k is what I meant
[08:53:55] sekmo: Hi everyone! I'm looking for very simple ruby katas in order to get good with object modelling with Ruby. Could you send me some simple examples?
[08:54:20] workmad3: has joined #ruby
[08:54:50] sekmo: I've found the famous elevator and bowling problems.. but I'm looking for something simpler :- )
[08:57:24] sekmo: actually, something very simple and oop-oriented :-)
[08:58:01] Siyfion: has joined #ruby
[08:59:45] prutheus_: matthewd you see it is not easy
[09:00:01] ioggstream: has joined #ruby
[09:01:00] Beams: has joined #ruby
[09:01:19] matthewd: Prutheus_: I'd go with the much faster, brand new, Intel 4-core over the slower, 5-year-old, AMD 8-core. Personally.
[09:02:14] prutheus_: Ok thanks. But can you also tell me what I should look at when I may want to search for another one?
[09:05:20] matthewd: I'd say the first four cores are more important than the ones after that, to me
[09:05:29] rabajaj: has joined #ruby
[09:05:59] prutheus_: What do you mean with that?
[09:06:14] matthewd: Given that those extra 4 cores seems to be the only thing the AMD chip has going for it, the Intel seems an easy win in that particular comparison
[09:06:37] Guest28041: has joined #ruby
[09:06:41] dminuoso: Slapping more cores is not necessarily a benefit because they ultimately share a critical resource: the single memory bus.
[09:06:56] dminuoso: Which is why 8-core processors are not universally better in multithreading situations than 4-core processors.
[09:07:02] matthewd: 4 cores will be noticeably better than 2 cores; I don't think 8 cores will be noticeably better than 4. (For most workloads, ymmv, etc)
[09:07:35] prutheus_: Very thanks for this session. I learned allot from you thanks
[09:07:36] alexday: has joined #ruby
[09:07:50] pmunt_: has joined #ruby
[09:07:52] alexday: has left #ruby: ("WeeChat 1.8")
[09:11:20] voiceftp: has joined #ruby
[09:11:35] jaruga: has joined #ruby
[09:13:28] Cork: has joined #ruby
[09:15:36] pax: has joined #ruby
[09:15:40] pax: has joined #ruby
[09:16:24] rajno: has joined #ruby
[09:16:47] Devalo: has joined #ruby
[09:17:27] Devalo: has joined #ruby
[09:17:42] Devalo: has joined #ruby
[09:18:01] Serpent7776: has joined #ruby
[09:18:22] Devalo: has joined #ruby
[09:18:24] shoogz: has joined #ruby
[09:19:00] mim1k: has joined #ruby
[09:19:00] claudiuinberlin: has joined #ruby
[09:19:07] ferr: has joined #ruby
[09:19:52] jgt: has joined #ruby
[09:20:04] burgestrand: has joined #ruby
[09:21:57] ioggstream: has joined #ruby
[09:31:25] charliesome: has joined #ruby
[09:34:47] charliesome: has joined #ruby
[09:35:38] jgt: has joined #ruby
[09:42:16] alfiemax_: has joined #ruby
[09:43:59] rajnoT: has joined #ruby
[09:44:09] pax_: has joined #ruby
[09:44:42] robnester: has joined #ruby
[09:46:26] aclark: has joined #ruby
[09:48:25] charliesome: has joined #ruby
[09:59:14] zautomata: has joined #ruby
[10:03:42] mim1k: has joined #ruby
[10:03:48] bigkevmcd: has joined #ruby
[10:04:12] InfinityFye: has joined #ruby
[10:06:13] duckpuppy: has joined #ruby
[10:06:31] cschneid_: has joined #ruby
[10:08:08] rgr: has joined #ruby
[10:08:53] mjolnird: has joined #ruby
[10:09:11] mim1k_: has joined #ruby
[10:11:26] zanoni: has joined #ruby
[10:12:01] stamina: has joined #ruby
[10:25:06] cschneid_: has joined #ruby
[10:25:40] gigetoo: has joined #ruby
[10:28:02] workmad3: has joined #ruby
[10:29:41] cabotto: has joined #ruby
[10:30:39] mikecmpbll: has joined #ruby
[10:32:36] dkam: has joined #ruby
[10:35:16] ldnunes: has joined #ruby
[10:36:22] alfiemax: has joined #ruby
[10:36:33] |ifei5g00d: has joined #ruby
[10:37:56] fclausen: has joined #ruby
[10:43:11] ajaysingh: has joined #ruby
[10:45:54] jphase: has joined #ruby
[10:47:22] cschneid_: has joined #ruby
[10:52:40] jphase: has joined #ruby
[10:55:22] tvw: has joined #ruby
[10:59:58] Psybur: has joined #ruby
[11:06:39] cschneid_: has joined #ruby
[11:07:11] jphase: has joined #ruby
[11:08:17] jphase_: has joined #ruby
[11:10:10] GodFather: has joined #ruby
[11:11:20] cabotto: has joined #ruby
[11:11:48] jphase__: has joined #ruby
[11:12:07] Macaveli: has joined #ruby
[11:12:22] claudiuinberlin: has joined #ruby
[11:15:16] jphase: has joined #ruby
[11:17:16] flips: has joined #ruby
[11:21:49] dkam: has joined #ruby
[11:22:34] vondruch_: has joined #ruby
[11:24:14] wsilva: has joined #ruby
[11:24:36] Macaveli: has joined #ruby
[11:26:35] apparition: has joined #ruby
[11:29:35] wsilva: has joined #ruby
[11:34:13] ^mtkd: has joined #ruby
[11:34:59] alfiemax: has joined #ruby
[11:35:23] jottr: has joined #ruby
[11:39:32] mitchellvanw: has joined #ruby
[11:40:32] rabajaj: has joined #ruby
[11:41:51] |ifei5g00d: has joined #ruby
[11:43:26] claudiuinberlin: has joined #ruby
[11:54:21] claudiuinberlin: has joined #ruby
[11:54:43] Hexafox[I]: has joined #ruby
[11:55:48] vondruch_: has joined #ruby
[11:58:47] synthroid: has joined #ruby
[11:59:34] vondruch: has joined #ruby
[12:01:37] |ifei5g00d: has joined #ruby
[12:09:02] frmendes: has joined #ruby
[12:12:07] |ifei5g00d: has joined #ruby
[12:15:09] juanca_: has joined #ruby
[12:16:17] Macaveli: has joined #ruby
[12:20:11] shinnya: has joined #ruby
[12:20:31] Devalo: has joined #ruby
[12:24:49] bmurt: has joined #ruby
[12:24:55] jottr: has joined #ruby
[12:35:09] jphase: has joined #ruby
[12:35:45] Devalo: has joined #ruby
[12:40:10] nadir: has joined #ruby
[12:46:47] mson: has joined #ruby
[12:56:17] Psybur: has joined #ruby
[13:00:02] cdg: has joined #ruby
[13:00:59] claudiuinberlin: has joined #ruby
[13:03:24] dkam: has joined #ruby
[13:05:40] mtkd: has joined #ruby
[13:06:11] dviola: has joined #ruby
[13:06:49] cdg: has joined #ruby
[13:07:47] mtkd: has joined #ruby
[13:07:51] bmurt: has joined #ruby
[13:08:14] chouhoulis: has joined #ruby
[13:08:39] nicesignal: has joined #ruby
[13:08:46] charliesome: has joined #ruby
[13:08:57] govg: has joined #ruby
[13:12:27] alnewkirk: has joined #ruby
[13:13:26] sepp2k: has joined #ruby
[13:14:42] Devalo: has joined #ruby
[13:15:22] Devalo: has joined #ruby
[13:15:47] burgestrand: has joined #ruby
[13:18:42] fclausen: has joined #ruby
[13:24:33] Hexafox[I]: Why is `:foo == 'foo'` false?
[13:25:03] dminuoso: Hexafox[I]: A symbol is more like a number than a string.
[13:25:25] Hexafox[I]: I thought symbols could be used to replace strings for a lot of things.
[13:25:42] tobiasvl: well, not for that
[13:25:43] FastJack: has joined #ruby
[13:26:18] dminuoso: Hexafox[I]: The idea is to provide something that looks like strings, but behaves like numbers. And that's symbols.
[13:26:23] rgr_: has joined #ruby
[13:26:29] Hexafox[I]: I have `Config = YAML.load_file('config.yml')` and I tried to do `Config[:password]` but only `Config['password']` works
[13:26:37] dminuoso: That behavior is mostly relevant to the internals of Ruby (essentially the idea is that comparing numbers is faster than comparing strings)
[13:27:02] chouhoulis: has joined #ruby
[13:27:04] dminuoso: So it's used to identify things (such as methods for example) internally.
[13:28:20] dminuoso: Hexafox[I]: There's some bits and parts in Ruby that accepts both, for example .send(...) - but only because it coerces its argument to a Symbol.
[13:28:37] Devalo: has joined #ruby
[13:29:31] scorpiosec: has joined #ruby
[13:29:37] Hexafox[I]: So if something converts all input to symbols it doesn't matter if you use a string or a symbol?
[13:29:41] Hexafox[I]: But otherwise it does matter?
[13:29:51] dminuoso: Hexafox[I]: Right.
[13:33:16] apeiros: Hexafox[I]: same reason as 1 == "1" is false :)
[13:33:33] apeiros: "looking similar" is not the same as "being equal" and even less as "being same"
[13:33:53] Hexafox[I]: I just noticed in a lot of places I could use a string or a symbol and it did the same thing but now I see what is going on.
[13:34:53] oleo: has joined #ruby
[13:34:53] Defenestrate: has joined #ruby
[13:34:54] Defenestrate: has joined #ruby
[13:37:03] DLSteve_: has joined #ruby
[13:38:38] synthroid: has joined #ruby
[13:42:54] Puffball: has joined #ruby
[13:44:03] ltem: has joined #ruby
[13:44:40] |ifei5g00d: has joined #ruby
[13:48:26] fmccann: has joined #ruby
[13:50:04] agent_white: has joined #ruby
[13:50:10] mikecmpbll: has joined #ruby
[13:51:50] bmurt: has joined #ruby
[13:52:09] jrafanie: has joined #ruby
[13:54:21] blackmesa: has joined #ruby
[13:58:09] safetypin: has joined #ruby
[13:59:04] rabajaj: has joined #ruby
[14:04:20] selim: has joined #ruby
[14:04:39] vondruch: has joined #ruby
[14:05:06] jrafanie_: has joined #ruby
[14:05:24] tcopeland: has joined #ruby
[14:08:47] burgestrand: has joined #ruby
[14:11:26] P1ro: has joined #ruby
[14:11:38] Rapture: has joined #ruby
[14:14:43] bmurt: has joined #ruby
[14:18:26] ioggstream: has left #ruby: ("Konversation terminated!")
[14:21:14] safetypin: has joined #ruby
[14:22:43] |ifei5g00d: has joined #ruby
[14:29:16] Devalo: has joined #ruby
[14:29:56] Devalo: has joined #ruby
[14:32:36] qqmash: has joined #ruby
[14:33:13] claudiuinberlin: has joined #ruby
[14:35:20] morantron: has joined #ruby
[14:35:38] morantron: Hi! is it possible in YAML to have both an anchor and an alias on the same node? I'm trying to do something like this https://pastebin.com/D9D0fayk
[14:35:39] ruby[bot]: morantron: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/b9ef373921fd9b83b0e4fe6efc4e7bd6
[14:35:41] ruby[bot]: morantron: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[14:36:11] |ifei5good: has joined #ruby
[14:38:34] burgestrand: has joined #ruby
[14:41:06] FrostCandy: has joined #ruby
[14:41:21] veeti: has joined #ruby
[14:41:35] FrostCandy: I get unexpected } in this line: res = Net::HTTP.post_form(uri, 'd' => {['ruby', 'perl']}.to_json, 'max' => '50')
[14:41:55] FrostCandy: Im just tryin to end a json variable in a post
[14:42:46] blackmesa: has joined #ruby
[14:44:10] bruno-: has joined #ruby
[14:45:51] Devalo: has joined #ruby
[14:46:31] Devalo: has joined #ruby
[14:47:37] EXCHGR: has joined #ruby
[14:48:14] FrostCandy: ahhh: res = Net::HTTP.post_form(uri, 'd' => {'d'=>['one','two']}.to_json )
[14:51:15] EXCHGR: has joined #ruby
[14:51:54] ShalokShalom: has joined #ruby
[14:53:53] orbyt_: has joined #ruby
[14:54:00] EXCHGR: has joined #ruby
[14:56:22] Methiew: has joined #ruby
[14:58:21] claudiuinberlin: has joined #ruby
[14:59:02] kculpis: has joined #ruby
[15:02:54] Methiew: has left #ruby: ("Leaving")
[15:05:28] gusrub: has joined #ruby
[15:05:58] Gustavo: has joined #ruby
[15:06:06] cschneid_: has joined #ruby
[15:07:43] johno84: has joined #ruby
[15:09:00] dionysus69: has joined #ruby
[15:11:26] troys: has joined #ruby
[15:13:53] veeti: has joined #ruby
[15:16:05] jxv: has joined #ruby
[15:17:05] chouhoulis: has joined #ruby
[15:18:22] vtx: has joined #ruby
[15:19:35] fclausen: has joined #ruby
[15:21:05] thomasv314: has joined #ruby
[15:21:42] vtx: hi guys. i am new to ruby and i want to try and start off right when it comes to writing tests for my application. i’ve seen some discussion about specs vs units when testing ruby, and i’m not sure what the difference is, or if they are two names for the same “thing”. i’ve also browsed repositiores and some people seem to have what look like integration tests as what i would assume to be unit tests. i’m from a java background, and in the past i’ve used j
[15:21:43] vtx: for writing unit tests for my code. beyond that, i want to actually write “good” tests, in a more general sense. what resources or sites or books should i be looking at to get an idea of the different types of tests in the ruby ecosystem, i.e. what is considered a unit/integration/system test and what is the difference in unit/spec tests, and also, what actually makes a good, effective test?
[15:26:28] havenwood: vtx: The difference between specs and tests is, I think, the easier part of your question. The primary difference is vocabulary. I think Minitest points out the distinctions well. Compare the unit test and spec examples: https://github.com/seattlerb/minitest#unit-tests
[15:26:32] thomasv314: has joined #ruby
[15:26:51] synthroid: has joined #ruby
[15:27:03] jxv: has joined #ruby
[15:28:14] havenwood: vtx: Sometimes one of the requirements for a project is to have "specs" and if you call your tests "specs," you then have executable specs.
[15:28:41] vtx: havenwood: ah okay. so are specs the more “ruby” way of doing things?
[15:28:49] nowhereman: has joined #ruby
[15:28:58] apeiros: has joined #ruby
[15:29:06] havenwood: vtx: A lot of folk combine the unit test and spec style to create a hybrid. I use the spec-style for `describe` and `it` but then use the test style for `assert`.
[15:29:49] havenwood: vtx: I suppose the most Ruby way would be what Ruby ships with, Minitest, which has both. TIMTOWTDI.
[15:30:09] vtx: havenwood: ohhhh so i can mix and match whatever styles i want? but how would that work if the “test” approach requires that i extend Minitest::Test, whereas the spec style does not?
[15:30:10] havenwood: RSpec is certainly a heavy hitter in the community, so spec-style is popular.
[15:30:25] charliesome: has joined #ruby
[15:30:31] havenwood: vtx: They provide the same thing in the middle, just different ways of getting there.
[15:31:50] Devalo: has joined #ruby
[15:31:59] havenwood: vtx: Unit tests are typically fairly quick and easy to write. They mean your code is written in testable units.
[15:32:25] havenwood: vtx: Integration tests are important, because they typically tie more together and cover that real user flow is actually working.
[15:32:33] vtx: i guess i don’t really understand why both these approaches exist?
[15:33:06] havenwood: vtx: System tests would be the most important, but they tend to be slower and inexplicably fail. Hopefully one day soon these will be more reliable.
[15:33:14] mim1k: has joined #ruby
[15:33:15] havenwood: Headless browsers are getting there.
[15:33:40] vtx: i guess before, in my previous jobs, system testing and integration testing were considered to be the same thing
[15:33:42] havenwood: vtx: Both approaches for unit/integration/system or for spec/test style?
[15:33:53] vtx: havenwood: for spec/test style
[15:34:04] havenwood: System tests use a headless browser to actually go through and click on things, etc.
[15:34:19] havenwood: Integration tests do as close to that as they can, without a real browser.
[15:35:12] havenwood: vtx: Spec and test style don't have to both exist, but they do. I haven't found the distinction to be very helpful.
[15:35:22] ResidentBiscuit: has joined #ruby
[15:35:39] vtx: havenwood: but who does find the distinction helpful?
[15:35:47] ResidentBiscuit: has joined #ruby
[15:35:47] theory4000: has joined #ruby
[15:35:59] matthewd: vtx: Note that barring extremely exceptional cases, these are a project-level either/or choice, not something a given project will have both of
[15:35:59] vtx: i mean, is the intent that less technical qa engineers can discern what tests are doing more easily?
[15:36:02] havenwood: Contractors used to like to propose replacing your tests with executable specs. They liked it.
[15:36:07] havenwood: I don't know!
[15:36:21] matthewd: Different people like different APIs ¯\_(ツ)_/¯
[15:36:22] ResidentBiscuit: has joined #ruby
[15:36:32] havenwood: vtx: If you can read a unit test you can read a spec.
[15:36:42] charliesome: has joined #ruby
[15:36:45] vtx: yeah that’s what i thought too lol
[15:36:47] ResidentBiscuit: has joined #ruby
[15:36:48] havenwood: vtx: They're the same thing effectively.
[15:37:01] vtx: i might just go with the test style, since i guess i’m more comfortable with the syntax
[15:37:10] vtx: since it’s just like writing actual ruby?
[15:37:12] ResidentBiscuit: has joined #ruby
[15:37:30] rippa: has joined #ruby
[15:37:52] havenwood: vtx: Both are actual Ruby, just depends whether you prefer inheritance and methods named according to the DSL or blocks.
[15:38:20] vtx: i guess the syntax of the test style better reflects how the code in my application is structured
[15:38:21] havenwood: vtx: I like the spec style for setup and asserts for the middle. Pick your poison. Rubyists should be able to read and work with either.
[15:38:48] havenwood: Mix and match or use just one style, your choice1
[15:39:24] dinfuehr: has joined #ruby
[15:39:25] havenwood: vtx: How to write good, effective tests is a lot harder question to answer.
[15:39:44] vtx: it’s something i’ve always struggle with
[15:40:17] vtx: i can write tests that assert a bunch of stuff, but my test suites rarely inspire confidence in me that my application works as expected :/
[15:40:25] charliesome: has joined #ruby
[15:41:09] havenwood: https://www.amazon.com/Effective-Testing-RSpec-Build-Confidence/dp/1680501984
[15:41:28] ozcanesen: has joined #ruby
[15:41:42] havenwood: ^ that's a new book that's come out (that I haven't read)
[15:41:56] havenwood: https://gist.github.com/baweaver/57a7c8296ca2c03effbd8fac1e7f6b40
[15:42:02] gusrub: has joined #ruby
[15:42:28] charliesome: has joined #ruby
[15:42:53] friday: has joined #ruby
[15:44:22] gustavo_: has joined #ruby
[15:45:33] gustavo_: has joined #ruby
[15:46:07] milardovich: has joined #ruby
[15:47:15] gustavo_: has joined #ruby
[15:48:27] Emmanuel_Chanel: has joined #ruby
[15:50:24] ABK: has joined #ruby
[15:52:29] gustavo_: has joined #ruby
[15:56:17] jxv: has joined #ruby
[15:59:12] alfiemax: has joined #ruby
[15:59:33] claudiuinberlin: has joined #ruby
[16:00:07] veeti: has joined #ruby
[16:00:48] SeepingN: has joined #ruby
[16:02:04] Macaveli: has joined #ruby
[16:02:46] mostlybadfly: has joined #ruby
[16:03:47] claudiuinberlin: has joined #ruby
[16:03:52] nicesignal: has joined #ruby
[16:06:18] bmurt: has joined #ruby
[16:06:28] Guest3707: somebody can help to do the exericise?
[16:06:35] hutch34: has joined #ruby
[16:07:03] guille-moe: has joined #ruby
[16:07:58] milardovich: has joined #ruby
[16:08:39] __Yiota: has joined #ruby
[16:09:11] havenwood: Guest3707: What exercise?
[16:10:25] orbyt_: has joined #ruby
[16:10:45] kies: has joined #ruby
[16:12:07] milardovich: has joined #ruby
[16:14:09] Guest3707: please help with the task https://gist.github.com/anonymous/0d5d728066cf75f305f0c54292b6764a
[16:16:06] ecstasy: has joined #ruby
[16:16:20] ecstasy: I need to write firmware for IoT devices, Ruby or Python?
[16:17:07] Papierkorb: Guest3707: no effort on your part?
[16:17:16] mozzarella: Guest3707: you're not gonna try anything?
[16:17:22] Papierkorb: what have you tried already?
[16:17:34] ecstasy: ty Papierkorb
[16:17:42] fmccann: has joined #ruby
[16:17:44] ecstasy: very helpful
[16:17:47] ecstasy: much appreciated
[16:17:56] Papierkorb: that wasn't directed towards you?
[16:17:58] orbyt_: has joined #ruby
[16:18:22] ecstasy: Indeed it was, as it seems you are asking me
[16:18:42] ecstasy: Looks like I've found my answer, thanks
[16:18:44] ecstasy: has left #ruby: ("Leaving")
[16:18:54] Papierkorb: Now that *is* "lol"
[16:18:59] Guest96661: has joined #ruby
[16:20:19] thomasv314: has joined #ruby
[16:21:06] blackmesa: has joined #ruby
[16:21:16] Guest3707: i'm a newbie, could you help plz?
[16:22:02] Papierkorb: Guest3707: we already asked you what you have tried to tackle your homework
[16:22:33] kuchi: has joined #ruby
[16:22:49] weaksauce: has joined #ruby
[16:23:03] SeepingN: firmware... for a IoT devices. and ... ruby?! lolz
[16:23:12] jrafanie: has joined #ruby
[16:24:28] Guest3707: currently no effert
[16:24:45] Zarthus: then why should we put our effort into it?
[16:25:15] Guest3707: for me to start
[16:25:27] Zarthus: but you're not helping us help you help yourself
[16:25:33] Zarthus: you need to explain where you are stuck
[16:26:29] Papierkorb: Guest3707: That's really not how it works. You have to make the start. Remember, we're real human beings who're here in their spare time helping out. We're literally taking time out of our free time to help random people. All we ask for is for you to make the start.
[16:26:32] SeepingN: me thinks you are in the wrong class
[16:28:48] __Yiota: has joined #ruby
[16:31:03] mtkd: has joined #ruby
[16:32:16] milardovich: has joined #ruby
[16:32:28] DLSteve_: has joined #ruby
[16:33:29] Technodrome: has joined #ruby
[16:38:03] Guest96661: has joined #ruby
[16:38:47] chouhoul_: has joined #ruby
[16:39:46] milardovich: has joined #ruby
[16:40:19] mochiyoda_: has joined #ruby
[16:40:58] ek926m: has joined #ruby
[16:42:56] workmad3: has joined #ruby
[16:45:14] uZiel: has joined #ruby
[16:46:01] snickers: has joined #ruby
[16:48:41] zautomata1: has joined #ruby
[16:49:11] [Butch]: has joined #ruby
[16:50:18] bmurt: has joined #ruby
[16:50:33] ldepandis: has joined #ruby
[16:51:14] quobo: has joined #ruby
[16:56:49] polishdub: has joined #ruby
[16:58:31] usb777: has joined #ruby
[16:59:33] orbyt_: has joined #ruby
[16:59:47] usb777: hey for those using komodo, just started using the editor but i cant find out how to run my code, theres no run button. cant run the file through run command either help
[17:03:35] usb777: hey anyone know how to run the code in komodo editor?????
[17:04:57] veeti: has joined #ruby
[17:07:32] SeepingN: similar to https://stackoverflow.com/questions/21686395/how-to-run-the-first-python-program-in-komodo-edit-8-5 ?
[17:09:03] ResidentBiscuit: has joined #ruby
[17:09:30] blackmesa: has joined #ruby
[17:12:58] milardovich: has joined #ruby
[17:13:18] uZiel: has joined #ruby
[17:15:09] average: has joined #ruby
[17:15:12] average: memorable IT moments https://twitter.com/wsdookadr/status/923232092116328448
[17:15:16] Guest96661: has joined #ruby
[17:15:46] fmccann: has joined #ruby
[17:16:26] eckhardt: has joined #ruby
[17:18:38] Macaveli: has joined #ruby
[17:20:19] fclausen: has joined #ruby
[17:22:55] hahuang65: has joined #ruby
[17:23:17] SeepingN: The 10x Programmer. huh, never heard that term but have definitely felt it
[17:28:33] nick123: has joined #ruby
[17:30:07] weaksauce: has joined #ruby
[17:31:15] fmccann: has joined #ruby
[17:31:41] orbyt_: has joined #ruby
[17:32:17] porfa: has joined #ruby
[17:34:13] jxv: has joined #ruby
[17:34:16] claudiuinberlin: has joined #ruby
[17:35:06] fmcgeough: has joined #ruby
[17:38:08] __Yiota: has joined #ruby
[17:38:28] MrSparkle: has joined #ruby
[17:41:14] milardovich: has joined #ruby
[17:41:20] alfiemax: has joined #ruby
[17:42:38] average: has left #ruby: ()
[17:43:11] conta: has joined #ruby
[17:47:00] Devalo: has joined #ruby
[17:48:50] moei: has joined #ruby
[17:51:37] chouhoulis: has joined #ruby
[17:53:16] dionysus69: has joined #ruby
[17:55:43] orbyt_: has joined #ruby
[17:57:29] ledestin: has joined #ruby
[17:58:17] milardovich: has joined #ruby
[18:00:35] guacamole: has joined #ruby
[18:01:49] milardovich: has joined #ruby
[18:03:24] vtx: has joined #ruby
[18:03:31] fmccann: has joined #ruby
[18:07:34] ogres: has joined #ruby
[18:07:36] pmunt_: has joined #ruby
[18:09:22] milardovich: has joined #ruby
[18:10:51] Xiti: has joined #ruby
[18:13:39] dionysus69: has joined #ruby
[18:17:41] s3nd1v0g1us: has joined #ruby
[18:19:26] lacour: has joined #ruby
[18:23:32] Technodrome: has joined #ruby
[18:24:51] uZiel: has joined #ruby
[18:26:32] claudiuinberlin: has joined #ruby
[18:29:48] mim1k: has joined #ruby
[18:32:25] bmurt: has joined #ruby
[18:33:19] chouhoulis: has joined #ruby
[18:34:17] milardovich: has joined #ruby
[18:37:05] banisterfiend: has joined #ruby
[18:37:38] banisterfiend: is there a way to compile ruby so that it statically links some libraries but dynamically links others? (i.e statically link openssl but everything else it dynamically links to)
[18:37:43] jrafanie: has joined #ruby
[18:41:02] blackmesa: has joined #ruby
[18:41:39] cdg: has joined #ruby
[18:44:07] milardovich: has joined #ruby
[18:45:05] havenwood: banisterfiend: isn't that what --with-static-linked-ext does, just statically link bundled extensions?
[18:46:46] banisterfiend: havenwood i tried that and it didn't seem to make any difference\
[18:47:04] |ifei5g00d: has joined #ruby
[18:47:21] banisterfiend: havenwood the same libs came up under 'otool -L'
[18:47:44] havenwood: banisterfiend: here's an issue where they add an option to disable dynamic linking: https://bugs.ruby-lang.org/issues/4946
[18:48:08] jackrandom: has joined #ruby
[18:48:10] havenwood: it seems like the default should be that anything that isn't explicitly statically linked gets dynamically linked
[18:48:23] havenwood: ¯\_(ツ)_/¯
[18:50:55] milardovich: has joined #ruby
[18:52:23] jenrzzz: has joined #ruby
[18:52:23] jenrzzz: has joined #ruby
[18:53:43] postmodern: has joined #ruby
[18:54:16] banisterfiend: havenwood last night when i was building ruby it only linked against 3-4 libraries
[18:54:26] banisterfiend: now it's linking against 10 and i have no idea what i changed
[18:54:33] banisterfiend: i dont think i did a major install of any new software or libraries
[18:55:20] havenwood: Did it get moved? Maybe --enable-load-relative wasn't set?
[18:57:13] imode: has joined #ruby
[18:57:33] havenwood: I haven't done statically linked builds in a while. Ran into some issues with 2.3, I can't recall what. It sure would be nice if someone shipped reproducible ones.
[18:58:15] havenwood: I did the OS X one for RVM for a while. It's just a pain to do for each version.
[18:58:35] uZiel: has joined #ruby
[19:05:41] nadir: has joined #ruby
[19:07:24] banisterfiend: havenwood can you type this on one of yoru ruby 2+ executables: otool -L ruby
[19:07:27] banisterfiend: and give me the result?
[19:07:44] banisterfiend: i get so much junk
[19:11:49] Freshnuts: has joined #ruby
[19:12:06] jrafanie_: has joined #ruby
[19:13:57] jackrandom: are you using os x?
[19:13:59] havenwood: banisterfiend: https://gist.github.com/havenwood/62a8d8377d642ae40c5a1cecf9828101
[19:15:06] havenwood: banisterfiend: (jemalloc is just from a --with-jemalloc, otherwise a pretty vanilla install)
[19:15:14] jxv: has joined #ruby
[19:15:27] justthisguy: has joined #ruby
[19:18:21] claudiuinberlin: has joined #ruby
[19:18:37] Dimik: has joined #ruby
[19:19:47] banisterfiend: jackrandom yes i'm using osx
[19:20:14] banisterfiend: havenwood https://gist.github.com/banister/31eb853eedf124b7044e6caf88345699
[19:20:23] uZiel: has joined #ruby
[19:20:25] banisterfiend: havenwood the top one is yesterday, the bottom one is today where i'm getting so much more junk
[19:20:32] thomasv314: has joined #ruby
[19:20:52] Technodrome: has joined #ruby
[19:20:59] fclausen: has joined #ruby
[19:22:13] blackmesa: has joined #ruby
[19:23:47] porfa: has joined #ruby
[19:24:55] jxv: has joined #ruby
[19:25:10] thomasv3_: has joined #ruby
[19:27:16] bmurt: has joined #ruby
[19:31:51] eckhardt: has joined #ruby
[19:37:14] thomasv314: has joined #ruby
[19:38:13] Kug3lis: has joined #ruby
[19:41:33] lxsameer: has joined #ruby
[19:44:32] cdg: has joined #ruby
[19:45:04] thomasv3_: has joined #ruby
[19:45:59] cdg: has joined #ruby
[19:47:02] AndBobsYourUncle: has joined #ruby
[19:53:15] |ifei5g00d: has joined #ruby
[19:55:09] Technodrome: has joined #ruby
[19:57:17] shinnya: has joined #ruby
[19:58:12] tsglove: has joined #ruby
[20:01:51] nick123: has joined #ruby
[20:02:19] eckhardt: has joined #ruby
[20:07:35] tsglove2: has joined #ruby
[20:08:05] milardovich: has joined #ruby
[20:08:49] tsglove2: has joined #ruby
[20:09:35] workmad3: has joined #ruby
[20:11:01] ta: has joined #ruby
[20:11:18] tsglove2: has joined #ruby
[20:12:57] marcux: has joined #ruby
[20:15:07] chouhoul_: has joined #ruby
[20:21:51] __Yiota: has joined #ruby
[20:23:57] goyox86_: has joined #ruby
[20:24:10] ur5us: has joined #ruby
[20:29:43] kapil___: has joined #ruby
[20:31:37] __Yiota: has joined #ruby
[20:35:17] fmcgeough_: has joined #ruby
[20:35:32] synthroid: has joined #ruby
[20:35:48] selim: has joined #ruby
[20:39:01] jrafanie: has joined #ruby
[20:40:45] milardovich: has joined #ruby
[20:42:15] dostoyevsky: has joined #ruby
[20:42:35] dostoyevsky: Does Python have something similar to Ruby's Dir["*/somefile"].each {|filename| puts filename } ?
[20:42:59] ozcanesen: has joined #ruby
[20:44:57] ferr: has joined #ruby
[20:45:43] dostoyevsky: Seems it's glob.glob something
[20:45:49] Papierkorb: dostoyevsky: Sounds like you'd want to ask that in a python oriented channel
[20:46:31] jxv: has joined #ruby
[20:46:35] tsglove3: has joined #ruby
[20:48:42] jxv: has joined #ruby
[20:48:47] goyox86_: has joined #ruby
[20:49:36] Tharbakim: has joined #ruby
[20:50:03] Flonk: has joined #ruby
[20:50:08] Tharbakim: has joined #ruby
[20:50:08] havenwood: dostoyevsky: You can write that in Ruby as just: puts Dir["*/somefile"]
[20:50:22] dostoyevsky: Papierkorb: I did.. they didn't grok ruby though in the beginning... so I asked here...
[20:50:35] yottanami: has joined #ruby
[20:50:40] havenwood: dostoyevsky: Python does have various ways. #python should get it if you use #glob in your example.
[20:50:44] havenwood: yottanami: hey
[20:51:12] yottanami: Is any way to step by step debug just current file using byebug?
[20:51:22] DanKnox: has joined #ruby
[20:51:22] havenwood: dostoyevsky: Ask them about `Dir.glob` equivalent and they'll get on the right track.
[20:51:37] havenwood: (They call it "glob" too.)
[20:51:45] yottanami: I mean do not go to other files and back when another method calls
[20:52:55] sinduck: has joined #ruby
[20:53:19] DLSteve_: has joined #ruby
[20:59:33] BTRE: has joined #ruby
[20:59:45] cdg: has joined #ruby
[21:02:27] chouhoulis: has joined #ruby
[21:06:07] BTRE: has joined #ruby
[21:10:49] Megamos: has joined #ruby
[21:12:23] |ifei5good: has joined #ruby
[21:16:28] __Yiota: has joined #ruby
[21:16:31] goyox86_: has joined #ruby
[21:17:06] ap4y: has joined #ruby
[21:21:51] fclausen: has joined #ruby
[21:23:30] goyox86_: has joined #ruby
[21:24:50] SHyx0rmZ: I haven't done Ruby in ages, but I really wanted to help Guest3707
[21:24:55] SHyx0rmZ: https://gist.github.com/SHyx0rmZ/41d4295c24a09ef2fa48d8ccfba1baa4
[21:25:03] SHyx0rmZ: some good fun after work
[21:25:32] hutch34: has joined #ruby
[21:27:35] zautomata2: has joined #ruby
[21:28:45] GodFather: has joined #ruby
[21:29:05] theory4000: has joined #ruby
[21:29:58] jxv: has joined #ruby
[21:33:51] apeiros: has joined #ruby
[21:34:41] banisterfiend: has joined #ruby
[21:35:51] jxv: has joined #ruby
[21:36:44] pryorda: has joined #ruby
[21:38:54] jenrzzz: has joined #ruby
[21:38:54] jenrzzz: has joined #ruby
[21:45:06] RickHull: has joined #ruby
[21:55:27] Psybur: has joined #ruby
[22:00:47] veeti: has joined #ruby
[22:06:30] mim1k: has joined #ruby
[22:06:56] nickjj: has joined #ruby
[22:10:26] workmad3: has joined #ruby
[22:18:36] fclausen: has joined #ruby
[22:22:12] Ryzokuken: has joined #ruby
[22:25:15] nicesignal: has joined #ruby
[22:25:56] |ifei5g00d: has joined #ruby
[22:28:34] dkam: has joined #ruby
[22:40:31] cdg_: has joined #ruby
[22:44:00] charliesome: has joined #ruby
[22:47:21] orbyt_: has joined #ruby
[22:55:07] QualityAddict: has joined #ruby
[22:56:33] ramfjord: has joined #ruby
[22:57:58] SeepingN: oh I see. ll
[23:01:14] AndBobsYourUncle: has joined #ruby
[23:01:21] nick123: has joined #ruby
[23:03:32] guacamole: has joined #ruby
[23:05:12] tcopeland: has joined #ruby
[23:05:42] Psybur: has joined #ruby
[23:06:59] thinkpad: has joined #ruby
[23:09:41] GodFather: has joined #ruby
[23:12:55] giraffe: has joined #ruby
[23:13:43] tpendragon: has joined #ruby
[23:18:27] Asher1: has joined #ruby
[23:22:17] AndBobsYourUncle: has joined #ruby
[23:25:35] alnewkirk: has joined #ruby
[23:26:17] jxv: has joined #ruby
[23:26:47] zanoni: Sinatra question not allowed?
[23:27:21] jphase: has joined #ruby
[23:28:31] milardovich: has joined #ruby
[23:29:58] naprimer3: has joined #ruby
[23:31:27] nick123: has joined #ruby
[23:37:14] jphase: has joined #ruby
[23:40:26] Znine-zero: has joined #ruby
[23:41:52] Znine-zero: Would anyone be willing to help explain to me why I get a "is not allowed as an instance variable name" error when on the line: if line =~ /@([a-z]{1,})/
[23:42:57] Znine-zero: Escaping the @ gives me an expecting $undefined, expecting end-of-input error.
[23:43:18] Znine-zero: I'm looking for, like, an unmatched quote or something but without any luck.
[23:44:36] blackmesa: has joined #ruby
[23:44:38] thomasv314: has joined #ruby
[23:46:48] Znine-zero: It even throws the error when the line is commented out. I really messed *something* up. lmfao.
[23:47:47] elomatreb: Sounds like a problem with something else, because that line has no error by itself. Paste the entire file?
[23:50:20] hutch34: has joined #ruby
[23:51:17] zanoni: Using Sinatra, and want to serve/play audio files that are outside of the public_folder, outside of the site root. I'm using Thin as a server, so I don't believe x-sendfile is an option. Not sure what if any my options might be?
[23:51:53] Znine-zero: has left #ruby: ()
[23:51:56] orbyt_: has joined #ruby
[23:52:22] guacamole: has joined #ruby
[23:55:09] nickjj: zanoni, what if you proxied it with nginx?
[23:56:58] safetypin: has joined #ruby
[23:57:10] gusrub: has joined #ruby
[23:58:28] alnewkirk: has joined #ruby