xdmx (Eric Bloom)
- Login: xdmx
- Registered on: 02/06/2019
- Last sign in: 03/25/2021
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 1 | 2 |
Activity
03/25/2021
-
11:07 AM Ruby Bug #17748 (Closed): Ruby 3.0 takes a long time to resolv DNS of nonexistent domains
- I'm running into a subtle bug when trying to resolv a nonexistent domain.
```
$ ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
$ irb
require 'resolv'
=> true
t = Time.now ; Resolv::DNS.open { |dns...
02/06/2019
-
01:49 PM Ruby Feature #15590: Add dups to Array to find duplicates
- > I assume that you more refer to a complementary method to .uniq but I am not
> ...
Sorry for not having included an example!
Yes, I mean it as a complementary method of `uniq`, and actually `duplicates` would be much better than `d... -
11:31 AM Ruby Feature #15590 (Open): Add dups to Array to find duplicates
- Many times I find myself debugging data and the need of finding duplicated values inside of an Array.
Based on the amount of data it could be a simple `array.detect { |value| array.count(value) > 1 }` or a more performant way like
...