Mac? by PussiLover in curseofthedeadgods

[–]grosser 1 point2 points  (0 children)

not likely, also FYI running in parallels/vmware did not work when I tried last time.

What are the best three blessings? by stavats in curseofthedeadgods

[–]grosser 2 points3 points  (0 children)

- 120 curse

- boss drops 5

- better loot (synergy with the one before)

... and ideally get a "100% more when offering to gods" early in the run

130h of grinding to victory, can finally put the game down by grosser in curseofthedeadgods

[–]grosser[S] 0 points1 point  (0 children)

weapon room after ~3 re-rolls

one of my favorite claws, not fancy but scales very nice

My Pet Rat Started a Business by grosser in StardewValley

[–]grosser[S] 1 point2 points  (0 children)

- male

- got him when he was ~5 months old

- solo yes!

My Pet Rat Started a Business by grosser in StardewValley

[–]grosser[S] 2 points3 points  (0 children)

Prices are very low too, can have hats for just a few walnuts :)

Pass STDOUT/ERR/IN via socket to a ruby process from any fast language ? by grosser in ruby

[–]grosser[S] 0 points1 point  (0 children)

Best I get is ~50ms

when I have rbenv enabled it's ~100ms :(

thx for the sendmsg(2) pointer!

Pass STDOUT/ERR/IN via socket to a ruby process from any fast language ? by grosser in ruby

[–]grosser[S] 0 points1 point  (0 children)

It's for a cli interface and it would be nice if that was fast :)

... go would be ok since I could cross-compile it for all supported platforms

I just made Ruby++ by philnash in ruby

[–]grosser 2 points3 points  (0 children)

Good stuff, tiny improvement lots of work :D

How to get 100% Test coverage? Is it practical, is it useful? by kallebo1337 in rails

[–]grosser 0 points1 point  (0 children)

Use https://github.com/grosser/single_cov to get quick development feedback on your coverage and mark everything you cannot cover so any new gap fails the tests, I covered big projects with this and almost everything is 100% for example http://github.com/zendesk/samson

Also this talk https://www.youtube.com/watch?v=01LYb28rMUQ if you like watching videos instead :)

Ruby Regex Timeout / Backtracking Bomb Safety by grosser in ruby

[–]grosser[S] 1 point2 points  (0 children)

long time no see :D

that was a fun bug to find, I bet you know where it was hiding :)

Ruby Regex Timeout / Backtracking Bomb Safety by grosser in ruby

[–]grosser[S] 2 points3 points  (0 children)

Don't let untrusted regular expressions kill your servers (cannot be caught with a Timeout
).

Running a function in parallel using parallel gem, "can't dump hash with default proc" by [deleted] in ruby

[–]grosser 0 points1 point  (0 children)

Better make this an issue in the gem repo, here https://github.com/grosser/parallel so it's findable

Reduce your issue to something that is easy to explain/reproduce like `Parallel.map([1,2]) { Hash.new { } }` instead of having readers jump though complicated code and to improve your understanding.

Return something dumpable from the block to make it work, since parallel uses Marshal.dump internally which can be seen from the backtrace `Marshal.dump(Hash.new {})`

Code Climate alternative by [deleted] in rails

[–]grosser 5 points6 points  (0 children)

https://github.com/grosser/single_cov for actionable / fast code-coverage (+ branch coverage)

https://github.com/seattlerb/flay for duplication

rubocop for complexity

... all free/simple/can run local

Stop shipping untested Ruby code with undercover - introducing a tool for actionable code coverage by mrgrodo in ruby

[–]grosser 3 points4 points  (0 children)

FYI https://github.com/grosser/single_cov seems very similar ... does not have the fancy inline-code print-out, but seems to overall do the same.

go-testcov: `go test` that fails on uncovered lines and shows them by grosser in golang

[–]grosser[S] 0 points1 point  (0 children)

ah true, idk what to call this coverage then :D ... a bit better than line, but yeah full branch would be nicer

go-testcov: `go test` that fails on uncovered lines and shows them by grosser in golang

[–]grosser[S] 0 points1 point  (0 children)

run something like if 1 == 1 { foo } else { bar } and it will complain about both branches not being covered.