Fork me on GitHub

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


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?


Network addresses dont work like geographical coordinates

Denis G12:12:25

thanks for explaining. Was a little confused before


Subnets next to each other may be in japan and brazil


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


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.


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)
  ;; => [8 :foo]


This lib has an ordered map that behaves as you'd expect


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


@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

👍 4

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 ?;smid=A1BVYXEL822RF0


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).


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”

💯 4
😂 12

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


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


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