« Back to channel list

#ruby - 29 August 2018

« Back 1 day Forward 1 day »
[00:10:11] WebDawg: has joined #ruby
[00:15:38] gigetoo: has joined #ruby
[00:17:12] deadnull: has joined #ruby
[00:17:40] dinfuehr: has joined #ruby
[00:23:25] LiftLeft2: has joined #ruby
[00:33:32] code_zombie: has joined #ruby
[00:34:49] DTZUZO: has joined #ruby
[00:41:05] LiftLeft2: has joined #ruby
[00:48:34] mroutis: has joined #ruby
[00:49:35] sagax: has joined #ruby
[00:56:32] lxsameer: has joined #ruby
[00:59:16] WebDawg: has joined #ruby
[00:59:56] apeiros: has joined #ruby
[01:19:38] hays: has joined #ruby
[01:19:46] miah: has joined #ruby
[01:20:39] twe4ked: has joined #ruby
[01:22:22] \13k: has joined #ruby
[01:22:23] russt: has joined #ruby
[01:23:21] m4rCsi: has joined #ruby
[01:24:50] linuxdaemon: has joined #ruby
[01:25:36] leitz_: has joined #ruby
[01:29:31] apeiros: has joined #ruby
[01:29:55] spectra: has joined #ruby
[01:38:41] nowhere_man: has joined #ruby
[01:44:18] apeiros: has joined #ruby
[01:44:38] dbz: has joined #ruby
[01:50:17] SegFaultAX: has joined #ruby
[01:51:18] dumptruckman: has joined #ruby
[01:53:26] ujjain: has joined #ruby
[01:55:56] Ropeney: has joined #ruby
[01:56:58] LiftLeft2: has joined #ruby
[01:57:18] knight33: has joined #ruby
[01:58:12] jhass: has joined #ruby
[01:59:17] apeiros: has joined #ruby
[02:06:48] evdubs: has joined #ruby
[02:10:28] t0x_: has joined #ruby
[02:14:18] apeiros: has joined #ruby
[02:17:46] gigetoo: has joined #ruby
[02:18:18] arescorpio: has joined #ruby
[02:29:22] apeiros: has joined #ruby
[02:30:15] cschneid_: has joined #ruby
[02:42:55] tomaw: has joined #ruby
[02:43:09] Nightmare: has joined #ruby
[02:53:30] tjbp: has joined #ruby
[02:53:54] sriehl: has joined #ruby
[02:53:59] valkyr2e: has joined #ruby
[02:55:05] jp: has joined #ruby
[02:55:11] Fire-Dragon-DoL: has joined #ruby
[02:56:47] canton7: has joined #ruby
[02:58:25] darix: has joined #ruby
[02:59:21] apeiros: has joined #ruby
[02:59:31] infernix: has joined #ruby
[03:05:25] sspreitz: has joined #ruby
[03:06:59] michael_mbp: has joined #ruby
[03:09:00] bambanx: has joined #ruby
[03:09:59] graphene: has joined #ruby
[03:10:13] balr0g: has joined #ruby
[03:13:36] braincras: has joined #ruby
[03:18:11] _whitelogger: has joined #ruby
[03:19:55] knight33: has joined #ruby
[03:26:52] knight33: Anyone know of a way I can make API requests and have that server as a "push based" monitoring solution?
[03:30:44] darkhanb: has joined #ruby
[03:31:22] apeiros: has joined #ruby
[03:45:20] WA9ACE: has joined #ruby
[03:46:41] apeiros: has joined #ruby
[04:01:26] apeiros: has joined #ruby
[04:10:35] code_zombie_: has joined #ruby
[04:15:58] tdy: has joined #ruby
[04:16:07] dbz: has joined #ruby
[04:22:27] apeiros: has joined #ruby
[04:22:46] dorian: has left #ruby: ()
[04:34:33] doubledup: has joined #ruby
[04:39:21] bambanx: has joined #ruby
[04:54:08] apeiros: has joined #ruby
[05:01:32] apeiros: has joined #ruby
[05:13:48] rootsudo: has joined #ruby
[05:14:58] sauvin: has joined #ruby
[05:16:31] darthThorik: has joined #ruby
[05:21:10] orbyt_: has joined #ruby
[05:25:57] aufi: has joined #ruby
[05:26:57] za1b1tsu_: has joined #ruby
[05:40:43] sagax: has joined #ruby
[05:50:02] raggi: has joined #ruby
[05:52:27] reber: has joined #ruby
[05:53:36] ramfjord: has joined #ruby
[05:58:47] FastJack: has joined #ruby
[06:05:35] rootsudo: has joined #ruby
[06:13:57] Dbugger: has joined #ruby
[06:16:01] tristanp: has joined #ruby
[06:16:32] za1b1tsu_: has joined #ruby
[06:18:53] snickers: has joined #ruby
[06:19:00] Freshnuts: has joined #ruby
[06:42:30] Tempesta: has joined #ruby
[06:42:30] Hobbyboy|BNC: has joined #ruby
[06:43:32] kke: very annoying that when you google for some stdlib class it always links you to some antique version, usually 1.9.3.
[06:45:15] kke: heh, and the same happens if you search for something like "tempfile" in ruby-doc.com. the first result is 1.9.3
[06:45:38] kke: oh, it's using google for searches too.
[06:50:16] bak1an: has joined #ruby
[06:51:17] Radar: kke: dash.app or devdocs.io will help you there
[06:52:22] kke: yeah, just requires retraining the muscle memory
[06:52:59] kke: devdocs doesn't have 2.5 at all yet
[06:53:45] Radar: kke: Yeah it does. Refresh the page.
[06:54:15] kke: you added it? :D
[06:54:40] Radar: I'm good but not that good. You probably had a cached version of the page.
[06:54:48] Radar: I had the same problem for a different thing last week
[06:55:35] kke: i haven't been there for months or maybe years
[06:55:43] kke: stupid cache.
[06:55:47] Radar: how good are browsers
[06:56:19] kke: well i suppose they should change the etag for the category list when it is updated
[06:59:49] eckhardt: has joined #ruby
[07:02:29] yohji: has joined #ruby
[07:06:45] evdubs: has joined #ruby
[07:10:53] eckhardt: has joined #ruby
[07:11:41] sina: has joined #ruby
[07:16:38] rootsudo: has joined #ruby
[07:17:37] rootsudo: has joined #ruby
[07:18:28] lxsameer: has joined #ruby
[07:22:18] burgestrand: has joined #ruby
[07:24:09] za1b1tsu_: has joined #ruby
[07:25:05] Sylario: has joined #ruby
[07:28:23] c0mrad3: has joined #ruby
[07:29:11] sysvalve: has joined #ruby
[07:37:47] hahuang65_: has joined #ruby
[07:43:31] dbz: has joined #ruby
[07:43:33] vondruch: has joined #ruby
[07:45:01] teclator: has joined #ruby
[07:45:56] dellavg_: has joined #ruby
[07:46:25] alex``: has joined #ruby
[07:53:33] ramfjord: has joined #ruby
[07:57:20] mikecmpbll: has joined #ruby
[07:59:17] tdy: has joined #ruby
[07:59:59] desperek: has joined #ruby
[08:00:30] yokel: has joined #ruby
[08:01:48] graphene: has joined #ruby
[08:17:09] tristanp: has joined #ruby
[08:24:18] LiftLeft2: has joined #ruby
[08:28:37] graphene: has joined #ruby
[08:51:09] Arahael: has joined #ruby
[08:53:24] foxxx0: has joined #ruby
[08:54:26] Nicmavr: has joined #ruby
[08:57:01] deadnull: has joined #ruby
[08:57:56] za1b1tsu_: has joined #ruby
[09:04:53] Beams: has joined #ruby
[09:05:55] alem0lars: has joined #ruby
[09:07:51] LiftLeft2: has joined #ruby
[09:35:29] DTZUZO: has joined #ruby
[09:40:06] deadnull: has joined #ruby
[09:43:52] despai: has joined #ruby
[09:47:40] tdy: has joined #ruby
[09:51:57] za1b1tsu_: has joined #ruby
[09:53:29] ramfjord: has joined #ruby
[09:55:21] bijan_: has joined #ruby
[10:04:03] gnufied: has joined #ruby
[10:06:04] Beams: has joined #ruby
[10:07:17] gregf_: has joined #ruby
[10:18:04] despai: has joined #ruby
[10:19:10] tristanp: has joined #ruby
[10:22:51] Beams: has joined #ruby
[10:25:45] deadnull: has joined #ruby
[10:34:04] roshanavand: has joined #ruby
[10:38:58] clorisu: has joined #ruby
[10:39:47] clorisu: Hi, could anybody let me know why line 35 is running when the expression at line 16 should prevent it? https://pastebin.com/RtpPkCBC
[10:39:48] ruby[bot]: clorisu: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[10:39:56] graphene: has joined #ruby
[10:41:26] clorisu: https://gist.github.com/brasscapon/4d99a6cd0f54841815393667e2a51443
[10:42:14] elomatreb: clorisu: Nothing in line 16 can prevent the expression in the lower lines from running, are you getting output that you don't expect?
[10:47:26] clorisu: elomatreb: im getting that the orange tree is now 21 years old. shouldnt the conditional of if @yearspassed <20 being true preven this and run the else?
[10:49:12] elomatreb: You're not outputting the age of the tree anywhere, only the height
[10:53:45] clorisu: elomatreb: im outputting it into `
[10:53:54] clorisu: line 18 no?
[10:54:23] elomatreb: In line 18 you're adding one to it, and in line 19 you're outputting @height
[10:58:53] Beams: has joined #ruby
[11:04:12] jinie: has joined #ruby
[11:18:22] bijan_: has joined #ruby
[11:18:50] AJA4350: has joined #ruby
[11:23:20] clorisu: yes elomatreb , but shouldnt that if not run again once yearspassed is over 20?
[11:29:51] pwillard: has joined #ruby
[11:48:48] sonOfRa: has joined #ruby
[11:53:24] ramfjord: has joined #ruby
[11:56:14] bmurt: has joined #ruby
[11:59:44] bmurt: has joined #ruby
[12:03:56] _Fremen_: has joined #ruby
[12:04:04] _Fremen_: hello everyone
[12:05:13] _Fremen_: I do not have any experience with ruby but I am trying to execute this hacking test at the bottom of the page: https://github.com/nextcloud/nextcloud-snap
[12:05:50] _Fremen_: after bundle install I get "gemfile not found error". How can I solve this?
[12:06:32] knight33: has joined #ruby
[12:12:04] savolla: has joined #ruby
[12:16:33] bak1an: has joined #ruby
[12:17:53] mroutis: has joined #ruby
[12:20:07] apeiros: _Fremen_: you forgot to "cd tests", didn't you?
[12:21:00] _Fremen_: apeiros: it gave an error because it was not created?
[12:21:28] _Fremen_: tests directory
[12:21:37] apeiros: it's part of the repository
[12:21:45] apeiros: if it isn't there, you messed up long before already.
[12:22:23] apeiros: you… did git clone the repository, yes?
[12:22:59] _Fremen_: I only did those package installations and 4 lines of command
[12:23:17] _Fremen_: the pwd was home directory
[12:23:38] apeiros: it is kind of a given that if you want to modify the repository, that you have to clone it
[12:24:15] _Fremen_: unfortunately
[12:24:26] apeiros: but if you feel that that's not obvious, you can supply them with a patch to their README.md which adds that step.
[12:25:04] _Fremen_: as I said, I did not used Ruby before I had come here for help
[12:25:14] apeiros: that's not really a ruby thing.
[12:25:28] apeiros: it's like an "every language or other git using project out there" thing
[12:25:31] _Fremen_: which line of code was missing?
[12:25:49] apeiros: git clone https://github.com/nextcloud/nextcloud-snap.git
[12:25:59] apeiros: and cd into the repository after cloning
[12:26:13] apeiros: you can also use that green button "clone or download" on the github page.
[12:26:46] _Fremen_: ok thanks very much :)
[12:27:13] _Fremen_: I did not realized we need the repository of nextcloud
[12:27:33] apeiros: how did you intend on changing any of the source code without having the source code in the first place then?
[12:27:59] _Fremen_: because I did not realized I need the source code :)
[12:28:17] apeiros: …ok. well, anyway, problem solved I hope.
[12:28:17] _Fremen_: I assumed this testing was part of the ruby language library or etc.
[12:28:19] sonOfRa: has joined #ruby
[12:28:56] _Fremen_: lastly, does this command change the contents of pwd? sudo gem install bundle
[12:29:21] Xeago: has joined #ruby
[12:31:28] apeiros: _Fremen_: do `git status` after running it and see.
[12:32:09] amelliaa: has joined #ruby
[12:36:10] _Fremen_: apeiros: no repository
[12:36:17] _Fremen_: so it is ok I guess
[12:36:54] apeiros: I have no idea where you ran that command
[12:37:04] apeiros: but you're supposed to run it in the tests directory (parent would be ok too)
[12:38:15] tristanp: has joined #ruby
[12:40:46] fmcgeough: has joined #ruby
[12:57:28] mfunkmann: has joined #ruby
[13:07:32] bijan_: has joined #ruby
[13:16:09] arekushi: has joined #ruby
[13:21:58] bak1an: has joined #ruby
[13:22:44] despai: has joined #ruby
[13:23:03] bijan_: has joined #ruby
[13:23:55] tycoon177: has joined #ruby
[13:31:57] ule: has joined #ruby
[13:34:20] bijan_: has joined #ruby
[13:40:14] mfunkmann: has joined #ruby
[13:41:41] mfunkmann: Hey folks. I am working with Ruby 2.5 - Is there a short und beautiful alternative to using hash.merge? Like ... an operator or something to merge to hashes? Something like hash1 + hash2 ?
[13:42:17] thejs: has joined #ruby
[13:45:46] bijan_: has joined #ruby
[13:45:47] anubhav996: has joined #ruby
[13:47:01] havenwood: mfunkmann: Nope
[13:53:19] ramfjord: has joined #ruby
[13:54:11] mfunkmann: havenwood: Alright, thank you
[13:55:18] bijan_: has joined #ruby
[13:56:29] Inline: has joined #ruby
[14:04:00] lomex: has joined #ruby
[14:05:50] roshanavand: has joined #ruby
[14:06:22] Rapture: has joined #ruby
[14:10:00] ramfjord: has joined #ruby
[14:14:52] z64: has joined #ruby
[14:14:57] ineb: has joined #ruby
[14:15:12] sriehl: has joined #ruby
[14:19:22] za1b1tsu_: has joined #ruby
[14:23:03] knight33: has joined #ruby
[14:26:46] discopatrick: has joined #ruby
[14:33:09] KeyJoo: has joined #ruby
[14:35:17] bijan_: has joined #ruby
[14:38:25] vondruch: has joined #ruby
[14:39:44] chouhoulis: has joined #ruby
[14:41:45] roshanavand: has joined #ruby
[14:44:03] orbyt_: has joined #ruby
[14:46:19] bijan_: has joined #ruby
[14:46:35] IanMalcolm: has joined #ruby
[14:47:50] raz: has joined #ruby
[14:49:02] raz: question: the return value from str.force_encoding('UTF-8') and str.force_encoding('UTF-8').dup should behave completely identical, right?
[14:49:16] raz: i think i've run into a ruby bug :(
[14:49:50] bhaak: depends on the content of str
[14:50:33] knight33: has joined #ruby
[14:51:48] raz: hmmm. why would the content differ after being dup'ed?
[14:52:02] raz: (or the encoding...)
[14:52:39] raz: i'm indeed running into encoding errors *unless* i add the trailing .dup
[14:55:26] bijan_: has joined #ruby
[14:55:44] mostlybadfly: has joined #ruby
[14:57:10] bhaak: I might have though of String.new
[14:58:02] mikhael_k33hl: has joined #ruby
[14:59:40] alex``: has joined #ruby
[15:00:59] mikhael_k33hl: al2o3-cr: hey man, how you doin?
[15:05:17] [Butch]: has joined #ruby
[15:19:41] tjbp: has joined #ruby
[15:24:54] apeiros: raz: apart from one additionally creating a copy of the string - yes
[15:25:11] apeiros: note that in both cases, str is modified
[15:25:56] ineb: str.dup.force_encoding('UTF-8') would leave str untouched
[15:27:15] apeiros: other exceptional cases: if str was extended. dup doesn't copy that.
[15:27:27] apeiros: buuuut seriously, if you want help, provide useful info :-p
[15:27:41] apeiros: reproducible example would be the best.
[15:32:04] despai: has joined #ruby
[15:33:57] aufi: has joined #ruby
[15:35:48] bijan_: has joined #ruby
[15:42:52] graphene: has joined #ruby
[15:46:58] vondruch: has joined #ruby
[15:47:13] bijan_: has joined #ruby
[15:47:38] rootsudo: has joined #ruby
[15:50:21] GodFather: has joined #ruby
[15:50:52] eddof13: has joined #ruby
[15:53:03] raz: it's unfortunately hard to reproduce out of context. rails app with ActiveModelSerializer here
[15:53:15] nowhere_man: has joined #ruby
[15:53:29] raz: i'm just sticking with my workaround for now
[15:55:19] Eiam: dump the content prior to dupe, call dupe on it, look at it after
[15:55:35] Eiam: if it doesn't reproduce without rails layered on top, its probably Rails and not Ruby
[15:56:12] Eiam: as I recall dupe is shallow by default
[15:57:17] raz: yep i've done that. dumped it all sorts of ways. the string object looks identical before/after dup. i'm guessing rails/AMS somehow attaches/guesses the encoding in a way that gets stripped by the dup
[15:57:36] za1b1tsu_: has joined #ruby
[16:01:13] dionysus69: has joined #ruby
[16:01:33] bijan_: has joined #ruby
[16:04:33] dionysus69: is it possible to iterate over an array but execute each in separate thread? I have sleep n in the each loop but I don't want to execute them in sequence on after another, I want to execute them concurrently, they are thread safe operations so is it possible to turn GLI off for that?
[16:06:43] conta2: has joined #ruby
[16:06:44] tdy: has joined #ruby
[16:12:30] ArahaelPi: has joined #ruby
[16:14:54] bijan_: has joined #ruby
[16:18:00] ivanskie: has joined #ruby
[16:18:11] Eiam: you could check out jruby
[16:19:31] IanMalcolm: has joined #ruby
[16:19:41] Eiam: you can't "disable" the GIL and I'm not sure you'd just want to anyway. Even if your threads were actually put on n distinct cores, I question that you'd get a reliable result
[16:20:29] havenwood: you can disable it with fiddle, but...
[16:20:31] Eiam: jruby does not have a GIL and will let you spin up n distinct actual threads in parallel.
[16:20:45] Eiam: havenwood: okay sure its code "anything" is possible
[16:21:04] darkhanb: has joined #ruby
[16:21:23] Eiam: I could fly for a few seconds too, or some might say, fall with grace
[16:21:49] jcarl43: has joined #ruby
[16:23:33] bijan_: has joined #ruby
[16:23:54] mroutis_: has joined #ruby
[16:24:27] havenwood: https://gist.github.com/tenderlove/5733632
[16:25:47] havenwood: dionysus69: With CRuby you can fork. Is JRuby an option?
[16:26:12] havenwood: Forking with IPC is possible but heavy.
[16:26:56] Paraxial: has joined #ruby
[16:27:27] doubledup: has joined #ruby
[16:27:41] alex``: has joined #ruby
[16:28:17] doubledup: has joined #ruby
[16:29:25] doubledup: has joined #ruby
[16:31:44] jmcgnh_: has joined #ruby
[16:32:45] lomex: has joined #ruby
[16:33:38] bijan_: has joined #ruby
[16:37:33] bijan__: has joined #ruby
[16:39:02] szulak: has joined #ruby
[16:46:02] troys: has joined #ruby
[16:46:53] bijan_: has joined #ruby
[16:51:03] bijan__: has joined #ruby
[16:52:08] eckhardt: has joined #ruby
[16:54:11] orbyt_: has joined #ruby
[17:02:27] ptx0: has joined #ruby
[17:02:35] bhaak: raz: if it's within the context of Rails, are you really sure it's a String? it could also be Rails' HtmlSafeBuffer or whatever it's called
[17:03:30] dbz: has joined #ruby
[17:03:42] bhaak: SafeBuffer
[17:03:53] bijan_: has joined #ruby
[17:04:21] tdy: has joined #ruby
[17:04:58] qoreQ: has joined #ruby
[17:08:36] dbz: has joined #ruby
[17:09:18] dbz: has joined #ruby
[17:13:07] Eiam: with Rails, one never knows whats actually Ruby anymore at all
[17:16:19] bijan_: has joined #ruby
[17:17:55] graphene: has joined #ruby
[17:21:14] bijan__: has joined #ruby
[17:23:30] armyriad: has joined #ruby
[17:27:27] miah: sometimes DSL's can obscure the actual programming language they run on
[17:31:38] memo1: has joined #ruby
[17:32:38] memo1: hi, if i share my code using git with other machines, but the wrappers is different on every one of them, how i manage to admin the eviroment variables to keep the code clean?
[17:32:47] graphene: has joined #ruby
[17:43:50] dviola: has joined #ruby
[17:45:27] mostlybadfly: has joined #ruby
[17:48:23] r29v: has joined #ruby
[17:49:41] graphene: has joined #ruby
[17:50:08] miah: memo1: not really a ruby issue, but i'd look into some sort of configuration management solution like chef, ansible, puppet, etc
[17:58:07] conta2: has joined #ruby
[17:59:10] ramfjord: has joined #ruby
[18:01:46] dbz_: has joined #ruby
[18:04:46] Rapture: has joined #ruby
[18:18:32] graphene: has joined #ruby
[18:24:13] baweaver: I come bearing gifts of puns: https://twitter.com/keystonelemur/status/1034673784257540096
[18:24:47] WA9ACE: We'd love to have your puns over on ruby.social ;)
[18:25:03] baweaver: https://ruby.social/web/statuses/100631878162881744
[18:26:09] nofxx: has joined #ruby
[18:26:25] baweaver: I'm new to Mastodon, I forget I have it quite frequently.
[18:26:29] tdy: has joined #ruby
[18:30:00] dbz: has joined #ruby
[18:38:43] graphene: has joined #ruby
[18:51:32] WA9ACE: It's definitely a conscious effort to check it since I don't have a Tweetbot equivalent for Mastodon yet
[18:54:43] graphene: has joined #ruby
[18:55:42] nowhere_man: has joined #ruby
[18:55:57] bmurt: has joined #ruby
[19:02:47] tdy: has joined #ruby
[19:03:32] mikecmpbll: has joined #ruby
[19:04:34] ellcs: has joined #ruby
[19:13:25] ivanskie: anyone here using aws-sdk?
[19:13:41] spiette: has joined #ruby
[19:16:13] KeyJoo: has joined #ruby
[19:16:22] Paraxial: has joined #ruby
[19:16:41] dbz: has joined #ruby
[19:17:26] dbz: has joined #ruby
[19:23:57] wildermind: has joined #ruby
[19:25:00] apeiros: WA9ACE: same issue here :D
[19:25:41] ule: ivanskie: sure, whats up?
[19:25:54] ivanskie: is it just me or is it slow?
[19:26:23] ule: ivanskie: which region are you connecting to? No problems here
[19:26:55] ivanskie: i wrote a little dirty proof of concept dashboard with sinatra and aws-sdk.. each beanstalk app > each environment > get instance ids > for each instance describeInstance..
[19:27:00] ivanskie: taking 30-40 seconds
[19:27:10] ule: ivanskie: https://status.aws.amazon.com
[19:27:15] ivanskie: (5 apps, 4 environments each)
[19:27:57] ule: ivanskie: Something is wrong there
[19:28:08] ule: ivanskie: 30/40 seconds sounds too much
[19:28:20] ivanskie: probably my code sucks
[19:28:56] ule: ivanskie: try calling aws via aws-cli and see if it is fast
[19:29:06] ule: same method, describeInstance
[19:30:02] bijan_: has joined #ruby
[19:30:20] ivanskie: https://dpaste.de/Fp4h
[19:34:36] Nicmavr: has joined #ruby
[19:35:19] ivanskie: needs to be refactored.
[19:36:14] ule: ivanskie: looks like you're calling "eb.describe_environments" 2 times inside your before block
[19:36:45] ivanskie: lol oops. should just be envs.
[19:37:46] ivanskie: there's a lot to refactor.
[19:38:28] ivanskie: also instead of getting an array of instance-ids and then doing describe_instances and passing the array, im doing that request per each instance id. which is dumb
[19:40:28] tdy: has joined #ruby
[19:42:41] graphene: has joined #ruby
[19:44:48] graphene: has joined #ruby
[19:47:09] ellcs: has joined #ruby
[19:47:12] despai: has joined #ruby
[19:49:39] lomex: has joined #ruby
[19:55:57] ghoti: has joined #ruby
[19:57:51] thejs: has joined #ruby
[20:01:42] graphene: has joined #ruby
[20:03:44] akaiiro: has joined #ruby
[20:04:30] code_zombie: has joined #ruby
[20:04:47] Paraxial: has joined #ruby
[20:06:23] reber: has joined #ruby
[20:07:49] rootsudo: has joined #ruby
[20:19:53] dbz_: has joined #ruby
[20:19:56] blackmesa: has joined #ruby
[20:23:38] spiette: has joined #ruby
[20:27:07] lenqbit: has joined #ruby
[20:29:58] zenspider: man... trying to get spring working on this client's app... it CHEWS through battery like it's nothing
[20:30:10] zenspider: ruby process taking almost a whole CPU
[20:30:42] zenspider: I can't even configure it to fall back to polling sucessfully.. ugh. ruby tooling has just gotten FAR too complex and buggy
[20:31:25] apeiros: rm bin/spring
[20:32:46] zenspider: pretty much
[20:32:47] tdy: has joined #ruby
[20:33:22] apeiros: spring caused too many problems for me early on, so '--no-spring' is standard for me.
[20:33:33] apeiros: maybe it's gotten better. but then again, your story indicates otherwise.
[20:33:44] zenspider: I'm really only using it to try to drive a test to generate a PDF to see WTF asciidoctor-pdf is fucking up now. It's entirely convoluted but I don't need some BS process killing my battery in the process
[20:33:54] zenspider: it's pretty terrible IMHO
[20:35:05] WA9ACE: apeiros I agree. `--no-spring` is mandatory when generating a new rails app
[20:39:57] bijan_: has joined #ruby
[20:44:13] bijan__: has joined #ruby
[20:45:15] alex``: has joined #ruby
[20:47:41] justache: has joined #ruby
[20:48:27] bijan_: has joined #ruby
[20:49:27] ur5us: has joined #ruby
[20:50:56] zenspider: anyone have experience with asciidoc + pdf?
[20:52:01] leitz: has joined #ruby
[20:56:18] r29v: has joined #ruby
[20:56:57] bijan_: has joined #ruby
[21:03:48] dbz: has joined #ruby
[21:04:31] r29v: has joined #ruby
[21:10:41] despai: has joined #ruby
[21:32:28] dbz_: has joined #ruby
[21:34:26] clorisu: has joined #ruby
[21:36:00] clorisu: has joined #ruby
[21:43:48] knight33: has joined #ruby
[21:53:37] agent_white: has joined #ruby
[22:00:02] gilfoyle: has joined #ruby
[22:00:48] gilfoyle: I have an array of strings which are keys on a hash. What's the easiest way to create a list of values from that hash using these keys?
[22:00:50] graphene: has joined #ruby
[22:00:57] gilfoyle: (by easiest I mean rubyest)
[22:01:58] snickers: has joined #ruby
[22:02:58] apeiros: hash.values_at(*keys)
[22:03:06] apeiros: @ gilfoyle ^
[22:03:49] gilfoyle: I was just playing with keys.collect { |x| hash[x] } - but I really like yours apeiros! ?:)
[22:06:32] arescorpio: has joined #ruby
[22:08:09] herbmillerjr: has joined #ruby
[22:10:19] baweaver: >> h = { 'a' => 1, 'b' => 2 }; %w(a b).map(&h)
[22:10:20] ruby[bot]: baweaver: # => [1, 2] (https://eval.in/1052079)
[22:10:39] baweaver: (Please don't actually do that)
[22:10:40] baweaver: (use values_at)
[22:11:13] baweaver: Hash#to_proc: -> key { hash[key] }
[22:14:57] beeman: has joined #ruby
[22:17:21] MarcWeber: has joined #ruby
[22:17:53] MarcWeber: is there any library for making screenshots and clicking on linux which eventually even can convert shot to ruby-cv?
[22:32:28] fluxAeon: has joined #ruby
[22:32:58] chouhoulis: has joined #ruby
[22:42:47] notpod: has joined #ruby
[22:49:53] akaiiro: has joined #ruby
[22:55:31] ivanskie: has joined #ruby
[22:59:19] knight33: has joined #ruby
[23:04:43] brent__: has joined #ruby
[23:21:31] sadsagfjg: has joined #ruby
[23:22:21] samort7: has joined #ruby
[23:22:44] samort7: If I just have a regular ruby file I'm working on, where do I edit my rubocop.yml file?
[23:23:41] samort7: I keep getting carriage return errors in RubyMine because I am using Linux for Windows
[23:23:42] arescorpio: has joined #ruby
[23:24:08] samort7: And I need to tell RuboCop to use Windows carriage returns (https://github.com/sirlantis/rubocop-for-rubymine/issues/15)
[23:36:40] sadsagfjg: has left #ruby: ("Leaving")
[23:57:22] akem2: has joined #ruby