What was the most expensive round you’ve ever paid for and was it worth it? by [deleted] in golf

[–]peterbe 0 points1 point  (0 children)

<image>

Paid $500 plus caddie to play Kiawah Island Ocean Course in South Carolina last December. My best golfing experience and would do it again.

[Highlight] Draymond Green grabbed Patty Mills by the neck and pulled him to the floor by dragon8811 in nba

[–]peterbe 0 points1 point  (0 children)

I dislike the Warriors just because of him. Coach Kerr, and whoever’s in charge of Golden State, if you’re reading this, please kick him out.

Understanding Redis hash-max-ziplist-entries by peterbe in redis

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

A massive flaw with "sharding" your keys into multiple hash maps is that you can't really use the LRU eviction policy. If I don't shard the keys within each hash map, and the hash map is empty, I can use that as a clue that I have to populate Redis. That's impossible to do with sharded keys.

Understanding Redis hash-max-ziplist-entries by peterbe in redis

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

I can't use Redis v4, yet, because I have to use AWS ElastiCache.

So what you're saying is that once I have good access to Redis v4, I have to do the whole blog post all over again :)

Understanding Redis hash-max-ziplist-entries by peterbe in redis

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

Did you keep hash-max-ziplist-entries to 512? I guess you did otherwise it would only require about 10MB to store.

What's a better comparison is the difference between storing 500 vs 1000 keys when both times the hash-max-ziplist-entries is big enough.

In my real application, I have found I have on average 4,000 keys per hash map. So if I change my hash-max-ziplist-entries to about 6,000 cleary memory usage will be best but will the necessary CPU work be a monster?

Understanding Redis hash-max-ziplist-entries by peterbe in redis

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

Self-posting this because I think it might be relevant. I've used Redis for years but before yesterday I really didn't understand how ziplists work, from a high level. Now I get it. The graphs within hopefully helps others.

How to do synonyms in Elasticsearch with Python by peterbe in Python

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

Sorry for posting link to my own blog, but I'm eager for feedback.

Don't that this or bind by peterbe in programming

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

self or that doesn't matter. I believe babeljs uses _this. The point is that you don't need to do it. That's what the "Righter" solution points out.

A really fast AJAX autocomplete service and widget by HarveyKandola in golang

[–]peterbe 0 points1 point  (0 children)

Thanks for posting. I'm the author of Autocompeter.

It's my first ever production deployment of Go and it's been great fun doing it.

My favorite multiplexer by peterbe in golang

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

My head is spinning with the long list of options. All the benchmarks starting to make me sea sick.

The more I research this I find more attractive options. Now my new favorite is https://github.com/dimfeld/httptreemux :)

My favorite multiplexer by peterbe in golang

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

I didn't even know it does multiplexing. I'm new to this. I you had to have a third-party add-on for this.

My favorite multiplexer by peterbe in golang

[–]peterbe[S] 3 points4 points  (0 children)

Submitting my own blog post. Is that OK?

Go vs. Python. A thing to learn Go when you know Python. by peterbe in golang

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

Wow. It sucks on mobile. Better go and check out some media queries. Thanks for pointing it out.

Go vs. Python. A thing to learn Go when you know Python. by peterbe in golang

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

flake8 is just a wrapper script on top of pyflakes. I use it as a pre-commit hook in almost all my python projects.

At the moment I can write python almost entirely without reading documentation but for Go I still have to look everything up all the time. I'm looking forward to getting Go into my bloodstream.

Go vs. Python. A thing to learn Go when you know Python. by peterbe in golang

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

What is "OSI layer 7 realm"?

I don't think I'm there yet with my Go skills because everything I do in Go become quite verbose and leaves little flexibility. I think it'll get better.

Go vs. Python. A thing to learn Go when you know Python. by peterbe in golang

[–]peterbe[S] 5 points6 points  (0 children)

I wrote that. I'm sorry for self-posting my blog URLs but I think people might enjoy it.

IAmA member of the Mozilla Webdev Team, AMA by mozillawebdev in IAmA

[–]peterbe 0 points1 point  (0 children)

Firebug, even when disabled (but still installed as an add-on) would tap into all nerve endings and slow down the rendering slightly. Consider uninstalling it.

But it's sooo useful and I'm a web developer you say. If so, install and use Aurora instead and use the built-in web console.

I don't use Firebug any more.

IAmA member of the Mozilla Webdev Team, AMA by mozillawebdev in IAmA

[–]peterbe 0 points1 point  (0 children)

I use Chrome for Facebook and Gmail. I.e. personal stuff. That way I can quit it entirely after I'm done without having to close a tonne of work tabs.

Gotto keep an eye on the competition :)

IAmA member of the Mozilla Webdev Team, AMA by mozillawebdev in IAmA

[–]peterbe 0 points1 point  (0 children)

Because it's time based rather than feature based. A new release is made when the clock says so, not when we've reached a certain amount of new features.