Fork me on GitHub
#off-topic
<
2018-12-24
>
bartuka01:12:13

hi people, as a new year is coming I’m preparing a list of software related books to buy… which do you guys recommend?

Eric Ervin02:12:05

do you know Clojure already? Getting Clojure was a good one I read this year

futuro00:12:41

Beyond Legacy Code has been well worth the time my team mate and I have put into it. Highly recommended.

Eric Ervin19:12:57

2 in a row for Pragmatic Bookshelf.

Denis G09:12:46

when it comes to consistent hashing or any other hashing scheme, where we hash IP:PORT everybody is saying that the algorithm ignores latency (when it comes to routing) since nodes that are near each other on the ring, may be located in different parts of the world. Question is, why not to hash IP in such a way, where IP addresses that are near each other will have similar/close prefix. This way → near on the ring, implies short latency. What is the problem with this approach? load balancing?

kulminaator12:12:51

Network addresses dont work like geographical coordinates

Denis G12:12:25

thanks for explaining. Was a little confused before

kulminaator12:12:23

Subnets next to each other may be in japan and brazil

kulminaator12:12:35

Maybe hash the upper and lower half of the address independently, just dont expect 54.1.x.x to be near 54.9.x.x

jaihindhreddy13:12:31

I have a super weird question. PHP out of the box has only one impoverished collection type called array which acts both as a sequential array and also as an ordered map. And the standard library serdes json_encode and json_decode maintain the order of the keys. Is there a JSON decoder in Clojure that returns an array-map in Clojure (because order matters somewhere)? I understand it's not really JSON at that point.

madstap14:12:17

You shouldn't rely on array-maps keeping order, as it'll change type when it has a certain number of elements and you do stuff like assoc onto it

(-> (apply array-map (mapcat vector (range 16) (repeat :foo)))
      (assoc 16 :foo)
      last)
  ;; => [8 :foo]

madstap14:12:38

This lib has an ordered map that behaves as you'd expect https://github.com/clj-commons/ordered

madstap14:12:14

Dunno how to parse the thing while maintaining order, though...

madstap15:12:58

@jaihindhreddy Your best bet is probably to use a patched version of cheshire where you change this function to use an ordered map from that lib https://github.com/dakrone/cheshire/blob/master/src/cheshire/parse.clj#L15

hubert15:12:04

Hi, I know that it has been already discussed but can you recommend good monitors. Is anyone using a wide one? There is a deal of the day for one today and it seems like price is nice. By any chance does anyone use this one ? https://www.amazon.com/Viotek-GN34CW-34-Inch-Ultrawide-Professional/dp/B07HZ499J4?ref_=Oct_DLandingS_PC_67e0ea7f_NA&amp;smid=A1BVYXEL822RF0

deg16:01:12

Maybe just my workflow, but I prefer using multiple medium-sized (say 24") monitors. Because most OSs make it so easy to snap an app to full-screen, this gives me a few parallel slots on my desk. Are there any good tools to define multiple "full screens" on a larger physical screen? (asking mostly for Ubuntu, but interested in answers for any OS).

jaihindhreddy16:01:54

I use i3 as my window manager and never felt the need to do this. My friend used xrandr to define virtual monitors but not every program sees this like that. My understanding is that the architecture of X11 makes this impossible to do cleanly i.e, make everything believe there are two monitors.

Lennart Buit18:12:43

“no I can’t fix your computer, I actively hate computers and especially the maintenance of the things”

chrisulloa20:12:18

My favorite is when I say I work with big data and my relatives are like “so you do excel?”

emil0r21:12:03

Like excel, but millions of them, all at the same time

emccue21:12:31

"I'm like a truck driver for computers, I'm not a mechanic."