#ruby - 16 April 2019
« Back 1 day Forward 1 day »
[06:04:10] matsaman: Trying to match from a starting pattern up to but not including an ending pattern, but I'm only getting every other item I think should be matching from .scan.
[08:46:27] havenwood: Jonopoly: i've never been a huge cucumber fan, just because it seems like a layer of abstraction that's not useful to me personally and i have no stakeholders reading it typically
[08:47:41] havenwood: Jonopoly: my partner's side project uses capybara/selenium, but no cucumber: https://github.com/stephaniewilkinson/yonderbook/blob/master/spec/web/spec_helper.rb
[08:47:50] havenwood: Jonopoly: Just a run-on integration test ;) https://github.com/stephaniewilkinson/yonderbook/blob/master/spec/web/system_spec.rb
[10:44:46] xco: hi, i’m sort of benchmarking or trying to at least how much memory allocations a method uses. what tool can i use for that if this is possible at all
[12:04:49] depesz: hi. where can I find explanation of what is &. syntax ? i have something like: x&.downcase&.start_with?('aa')
[12:07:21] depesz: phaul:thanks, duckduckgoed it, and got https://en.wikipedia.org/wiki/Safe_navigation_operator#Ruby :)
[12:08:21] phaul: I agree that's not much :) but there must be blogposts about it, otherwise ytti explained it all there is to know already ;)
[12:17:23] phaul: oh'forheavens'sake! I spent ~5hrs now trying to figure out why Im getting wrong css colours on the "production-box".
[12:19:28] phaul: it turns out now I can reproduce https://gist.github.com/phaul/64292bfe8911bbf6ccfe99e45283e346 with the native ext built on that machine for sassc-2.0.1
[14:17:55] towo: Is there any useful way to store a Hash.dig symbol list somehow? Actual use case is "translate a lookup of this name into this nested hash element", so I'm also open for better suggestions.
[15:04:35] jhass: well you can just splat an array into Hash.dig, so create (and store) that array however you like
[15:21:25] towo: Ah, it takes an array… good to know. :) I can probably cook up something with that, thanks.
[16:41:33] AndreYuhai: I have an each loop and then I am rescuing an exception inside the loop within a begin-end block. I want to redo the current iteration in rescue block, so putting redo will execute the each block again and not the begin block, right?
[17:00:54] fluxAeon_: when i run rake webpack:compile it's supposed to build my js files and put them into my webpack folder. it's stopped doing that for some reason and i can't figure out why. the webpack folder is now empy.
[18:13:42] rubylover: The problem is that the images are named in excel but when I fetch them, their name information is lost
[18:20:03] adam12: waheedi: I suspect that they might have been called something else and not `roo_*`
[18:20:29] waheedi: well i really don't know their original names and have no access to that neither
[18:22:26] adam12: rubylover: This is likely a shortcoming with Roo. I'm not sure you'll be able to do any better unless you are able to update the roo gem to get the filenames from the xlsx file through the XLS spec (if one even exists?)
[18:29:37] rubylover: In VBA, it is possible to write code that finds images by their name which one can assign to an image in a spreadsheet
[18:30:08] waheedi: rubylover: can you please share that books.xlsx file somewhere we can see its content?
[18:31:12] rubylover: Images are not stored in a Cell. It appears like that but the images are actually drawn on a "drawing layer" on top of the spreadsheet
[18:33:08] rubylover: So if I delete all 3 images and remake them in a different order, the files generated by Roo will folllow that specific order
[18:34:41] waheedi: i seem them all with no names on my machine, and when I try to save these images it will save it as untitled (the default untitled file name for my os)
[18:38:57] rubylover: <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image2.png"/>
[18:39:26] rubylover: This is an XML structure. IT is saying that the something rID3 has a target image at ../media/image2.png"
[18:45:51] waheedi: like even my machine with a proper microsoft excel sheet, didn't save the image file with its proper name
[18:59:47] waheedi: you can unzip that excel file and you will find the names inside Book1/xl/drawings/drawing1.xml
[20:37:59] leftylink: hmm, if someone were to tell me "hey Ray, Ruby is your Blub", I wonder how to know whether that's true. As I understand it, Blub implies I am not able to comprehend this or that feature. Then again, it's hard to know the difference between "I don't understand it" and "I understand it and judge that it does not benefit this project"
[20:40:16] leftylink: I guess it's hard to know if you're in that situation. Just as the ant is not able to understand the human
[20:40:38] leftylink: so really the best thing to do is just to expand your understanding, no matter what
[20:41:15] leftylink: on the other hand, "Ruby is your most-used language" is a much more well-defined statement, and one that is true if said to me
[20:43:46] baweaver: In early Ruby everyone was enamored with monkey patching. That one certainly didn't age well.
[22:22:16] havenwood: sagax: `if` and `elsif` variable declarations aren't special really, but you can't do them with `else` since there's no statement with just `else`
[22:25:13] rubydoc: stderr: -e:2: warning: found `= literal' in conditional, should be == (https://carc.in/#/r/6qht)
[22:25:56] rubydoc: stderr: -e:2:in `<main>': undefined local variable or method `b' for main:Object (NameError) (https://carc.in/#/r/6qhv)
[22:28:30] phaul: note to self. if there is both stdout and stderr, the bot should probablt report back both
[22:53:03] phaul: here's the check in, who spots the bug first ? https://github.com/phaul/yarr/commit/ca0a366deadd371cd9ca271e1366adf134db94d8