News for hackers. Stuff that matters.

morazow

Hey,

Thanks for the recipe! I am also into fermented recipes.

Quick question, where do you buy Habanero Chilis in Germany? I somehow never saw them in supermarkets or "wochenmarkt"s.

Re:Ask HN: What's the best book you read in 2021? on Friday December 24, 2021 @01:16PM (#29676102)
I also read it this year.

It came very close to me. The society of the book was very similar to the society in which I grew up, Soviet Union in 90s.

Some of the lines from the book:

".. the social consience completely dominates the individual conscience, instead of striking a balance with it. We don't cooperate - we obey. We fear being outcast, being called lazy, dysfunctional, egoizing. We fear our neighbor's opinion more than we respect our own freedom of choice."

"No matter what their society's like, some of them must be decent. People vary here, don't they? Are we all perfect Odonians? But in a sick organism, even a healthy cell is doomed."

Re:WordStar: A Writer's Word Processor (1996) on Saturday March 06, 2021 @04:08PM (#26370545)
I always remember this exchange with real writer when I see & hear WordStar :)

https://www.youtube.com/watch?v=X5REM-3nWHg

Re:Monkey.org on Thursday February 04, 2021 @07:41AM (#26024844)
https://monkey.org/~marius/

Marius also has great profile, I am happy user of his libraries (e.g, finagle)!

Books:

Introduction to Reliable and Secure Distributed Programming (https://www.amazon.de/-/en/Christian-Cachin/dp/3642152597).

I took a class with Luis Rodrigues (one of the authors), the book introduces the fundamentals of distributed systems. For example, you would build leader election from first principles.

Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly on Thursday September 10, 2020 @04:08AM (#24430021)
Looks nice!

I have similar setup and custom unbound docker container based on distroless.

One suggestion: In unbound use more privacy-centric dns providers. https://www.privacytools.io/providers/dns/

Re:Eastern European Movies on Friday June 26, 2020 @05:10AM (#23650102)
Wow. This was one of the most watched movies around our household during my childhood.

The place in the movie is just near my hometown, old Merv in Turkmenistan.

ohh wow,

I remember being fascinated with Pascal program that makes snow fall.

Basically, it was white dots on a blue background in an infinite loop. :)

Re:Tiles to Curves: Fun with Voronoi Graphs on Saturday July 13, 2019 @04:58AM (#20427182)
This is very interesting!

Recently, my colleagues used Voronoi graphs to show how each player controls the field during a football (soccer) game [0].

[0]: https://www.exasol.com/en/blog/controlling-space-in-football...

Read code reviews of senior developers.

I follow several public and private projects that I do not contribute at all. Any time there is a review comment on a pull request from senior devs, I try to check if it is new to me. If so, I note down the problem and suggestions.

Here are some examples:

- Aleks suggested to limit the try to the places where exceptions can be thrown and move everything else out of the try.

- Thomas suggested to use =StringBuilder= instead of =String.format=. The former is faster and more robust.

- Oscar suggested to use a =parameter object= or a =builder= when there are many (more than 3-4) parameters.

Re:Write Your Own Virtual Machine on Friday December 14, 2018 @07:02AM (#18680236)
Off-topic.

Does anyone know how I can convert AST into stream of bytecodes? Are there any good example language implementations to learn?

Re:Traveling the World on a Third World Passport on Friday August 17, 2018 @04:15PM (#17785358)
Opening the page and seeing first picture made me smile :) That is a place in Turkmenistan!

Coming from there and living in Germany, I wish someday to be able to travel the world possibly with German passport though..

How would you rate this solution? Assuming we have static keypad grid.

  long moves(int start = 1, int len) {
    assert(len > 0);
    long[] cur = new long[10];
    for (int i = 0; i < 10; i++) {
      cur[i] = 1;
    }
  
    long[] nxt = new long[10];
    while (len-- > 0) {
      nxt[0] = cur[4] + cur[6];
      nxt[1] = cur[8] + cur[6];
      nxt[2] = cur[7] + cur[9];
      nxt[3] = cur[4] + cur[8];
      nxt[4] = cur[3] + cur[9] + cur[0];
      nxt[5] = 0;
      nxt[6] = cur[1] + cur[7] + cur[0];
      nxt[7] = cur[2] + cur[6];
      nxt[8] = cur[1] + cur[3];
      nxt[9] = cur[4] + cur[2];

      for (int i = 0; i < 10; i++) {
        cur[i] = nxt[i];
      }
    }
  
    return cur[start];
  }
Re:Solving dynamic programming interview problems on Friday May 18, 2018 @02:37PM (#17103844)
I did watch live where Nikola solves this problem, https://www.youtube.com/watch?v=kKhnYLpME3w. It covered most of requirements of dynamic programming. For me the interesting part was coming up with algorithmic complexity (Big-O) of the solution.
Re:A Virtual Machine on Friday April 06, 2018 @06:31PM (#16778072)
If anyone is interested on making compilers / programming languages, there is another recent initiative from Per Vognsen, Bitwise: https://github.com/pervognsen/bitwise.

I occasionally watch streams so far it was very helpful to observe how he makes design decisions, thought process and implementations.

I thought it was about Linear Discriminant Analysis..
Re:Ask HN: Recommendations for a book on Distributed Systems? on Tuesday January 03, 2017 @02:48PM (#13312383)
I would suggest "Introduction to Reliable and Secure Distributed Programming" (https://www.amazon.de/Introduction-Reliable-Secure-Distribut...).

I never read the book, but took a course with author based on this book. It was fun and interesting; covering both basic and advanced concepts in distributed systems.

Re:Data Wrangling at Slack on Thursday December 08, 2016 @03:37AM (#13129147)
I would recommend S3.

Using S3 with EMR in production was breeze for us. Even cost effective, since you can play with spot instances depending on your jobs. You also improve utilization of your resources.

With recent Athena it is possible also to do ad hoc queries directly :) Before it required starting "QA" cluster.

Re:Ask HN: Where do you go to get recruiters to find you a job? on Monday September 19, 2016 @03:29AM (#12529595)
I recently used https://www.honeypot.io/. And the experience was quite good.
Re:GitHub Code Search – Programmers' Goldmine on Sunday August 28, 2016 @02:00PM (#12377564)
I usually watch the Apache projects.

Apache Arrow (https://github.com/apache/arrow/) is very interesting and promising project. It is in early state; you can watch the design decisions taken and how they are implemented. Plus it is multi-language project, you can find code in C++, Java and Python.

Re:What ever happened to Wordstar? on Monday July 18, 2016 @07:19AM (#12114391)
Offtopic, I know one person who still uses Wordstar heavily. And I hope he keeps using it :) https://www.youtube.com/watch?v=X5REM-3nWHg
Re:Should Prostitution Be a Crime? on Thursday May 05, 2016 @07:27PM (#11640494)
It is legal in some European countries, for example, Germany and Netherlands.

In Germany, they pay income tax and charge VAT for their services.

In Ottoman empire the Sultans do not get married, I think it was forbidden. They have Harem, the women are concubines.

The story is that Roxelana (aka Hürrem Sultan) got herself freed and when Süleyman wants her, refuses and tells him "he needs to marry her" since she is not a slave anymore. She was only woman marring a sultan.

His was interesting fact for me also, because it means all sultans are kinda bastards. But a little research shows that children are not considered bastards. Also from religion point of view.

Re:Steven Weinberg: Science books for the general reader on Saturday April 04, 2015 @03:32PM (#9321898)
I highly recommend, Uncertainty: Einstein, Heisenberg, Bohr, and the Struggle for the Soul of Science by Lindley, David

Great read about the beginning of quantum mechanics. I really liked how Lindley depicted thoughts and reactions of great minds to one of controversial topics in physics, quantum mechanics.

Re:Sphere Online Judge on Saturday November 29, 2014 @03:36AM (#8673403)
Even though Spoj is great, nowadays contest programming people use some other online judges. http://codeforces.com/ and http://www.codechef.com/ are mostly used platforms.
Re:Getting Organized with Org Mode on Friday November 28, 2014 @08:35AM (#8670869)
I also use org-mode, mostly for writing documents. Customizing embedded code, referencing the lines and in the end publishing to beautiful pdf, html, markdown is really awesome.
Re:AWS Frankfurt, Germany Region on Saturday October 25, 2014 @08:18AM (#8507980)
Data is usually replicated across datacenters.
Re:AWS Frankfurt, Germany Region on Thursday October 23, 2014 @04:22PM (#8500532)
I think some German corporations will still be reluctant to use it due to replication, etc.
Re:Kotlin, the Swift of Android on Monday September 01, 2014 @10:55AM (#8253122)

Older »