This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
hi people, as a new year is coming I’m preparing a list of software related books to buy… which do you guys recommend?
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.
2 in a row for Pragmatic Bookshelf.
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
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)
last)
;; => [8 :foo]
This lib has an ordered map that behaves as you'd expect https://github.com/clj-commons/ordered
@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
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&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.
Advice for explaining your tech job to your family: https://medium.com/@HendersGame/holiday-guide-explaining-your-tech-job-2b6d28dc0ea6
“no I can’t fix your computer, I actively hate computers and especially the maintenance of the things”
My favorite is when I say I work with big data and my relatives are like “so you do excel?”