<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: zawerf</title><link>https://news.ycombinator.com/user?id=zawerf</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 14 May 2026 20:24:24 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=zawerf" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by zawerf in "25 Gbit/sec residential FTTH in Switzerland [German]"]]></title><description><![CDATA[
<p>People who get this should donate their excess bandwidth to a "worthy" cause.<p>For example e-hentai.org serve their images from a p2p system called hentai@home and their total network is only using ~4Gbit/sec:<p><a href="https://e-hentai.org/hentaiathome.php" rel="nofollow">https://e-hentai.org/hentaiathome.php</a><p>(or <a href="https://imgur.com/a/1H04buw" rel="nofollow">https://imgur.com/a/1H04buw</a> if you don't want to login)</p>
]]></description><pubDate>Thu, 27 May 2021 11:36:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=27301765</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=27301765</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=27301765</guid></item><item><title><![CDATA[Hackers force MangaDex to shut down]]></title><description><![CDATA[
<p>Article URL: <a href="https://mangadex.org/index.html">https://mangadex.org/index.html</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=26535132">https://news.ycombinator.com/item?id=26535132</a></p>
<p>Points: 5</p>
<p># Comments: 3</p>
]]></description><pubDate>Sun, 21 Mar 2021 23:33:26 +0000</pubDate><link>https://mangadex.org/index.html</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=26535132</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=26535132</guid></item><item><title><![CDATA[New comment by zawerf in "Ask HN: Do we need Google captcha?"]]></title><description><![CDATA[
<p>CAPTCHA isn't just a matter of protecting your site. One of the most evil attacks nowadays is "Distributed Spam Distraction", where you spam your victim with thousands of emails per second so an important email (e.g., fraudulent purchases) gets lost in the noise.<p>How do you do this in a world with decent spam filters? By using the victim's email to sign up for real services so they get hit with a welcome email. Because these are real services, spam filter won't catch it. This can only be done with services that have sign up forms that are easily automated.<p>The most evil thing here is your email is crippled even after the attack is over because these real companies will keep sending you newsletter and it's impossible to unsubscribe to them all.</p>
]]></description><pubDate>Tue, 22 Oct 2019 19:39:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=21327731</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21327731</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21327731</guid></item><item><title><![CDATA[New comment by zawerf in "Data Structures Part 3: Arrays of Arrays"]]></title><description><![CDATA[
<p>Yea someone else also mentioned that generalization (called a tiered vector) in that thread: <a href="https://news.ycombinator.com/item?id=20873110" rel="nofollow">https://news.ycombinator.com/item?id=20873110</a></p>
]]></description><pubDate>Tue, 01 Oct 2019 15:37:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=21126577</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21126577</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21126577</guid></item><item><title><![CDATA[New comment by zawerf in "HEAD – A guide to <head> elements"]]></title><description><![CDATA[
<p>Express Helmet also turns it off by default and included a rationale for why (tldr: privacy leaks when there are random external links posted on a page):
<a href="https://helmetjs.github.io/docs/dns-prefetch-control/" rel="nofollow">https://helmetjs.github.io/docs/dns-prefetch-control/</a></p>
]]></description><pubDate>Tue, 01 Oct 2019 06:27:10 +0000</pubDate><link>https://news.ycombinator.com/item?id=21122549</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21122549</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21122549</guid></item><item><title><![CDATA[New comment by zawerf in "Data Structures Part 3: Arrays of Arrays"]]></title><description><![CDATA[
<p>There was a really interesting post on this topic recently where you have a circular array of circular arrays of size sqrt(n). [1]<p>The result is you can do O(1) access, O(sqrt(N)) insert and delete at arbitrary indices, and O(1) insert at head and tail.<p>In terms of big O this is strictly better than:<p>- arrays: O(1) access, O(N) insert/delete in middle, O(1) insert/delete at tail.<p>- circular arrays: O(1) access, O(N) insert/delete in middle, O(1) insert/delete at head and tail.<p>- fixed page size chunked circular arrays such as the c++ implementation of std:deque which is still O(N) for insert and delete. [2]<p>[1] <a href="https://news.ycombinator.com/item?id=20872696" rel="nofollow">https://news.ycombinator.com/item?id=20872696</a><p>[2] <a href="https://stackoverflow.com/questions/6292332/what-really-is-a-deque-in-stl" rel="nofollow">https://stackoverflow.com/questions/6292332/what-really-is-a...</a></p>
]]></description><pubDate>Tue, 01 Oct 2019 04:03:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=21121930</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21121930</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21121930</guid></item><item><title><![CDATA[New comment by zawerf in "A.I. researchers are making more than $1M, even at a nonprofit"]]></title><description><![CDATA[
<p>I think people are supposed to report their salary with the stock price at grant, not after appreciation (at least on levels.fyi). But yea it's a lot more because google stock is half their comp and it keeps doubling every 3-4 years.</p>
]]></description><pubDate>Sun, 29 Sep 2019 23:34:49 +0000</pubDate><link>https://news.ycombinator.com/item?id=21110357</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21110357</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21110357</guid></item><item><title><![CDATA[New comment by zawerf in "The Spinner"]]></title><description><![CDATA[
<p>It's no secret that content moderators moderate content. Most of the stuff on HN is shaped by a few people who gets to decide what's interesting enough to get a boost or not.<p>It definitely feels like gaslighting when you notice it happening. For example a few times I know I made a comment on an old article the day before but it didn't get traction. But then it would be on the frontpage again the next day with all the timestamps manipulated to seem fresher, including on my own comments! I know I was sleeping at that time so then I start questioning my sanity and whether I was sleepwalking or not!</p>
]]></description><pubDate>Fri, 27 Sep 2019 22:25:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=21096802</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21096802</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21096802</guid></item><item><title><![CDATA[New comment by zawerf in "DOMPurify, Security in the DOM, and Why We Really Need Both [pdf]"]]></title><description><![CDATA[
<p>It wouldn't help if new features extend the capabilities of existing stuff (which is done all the time). For example the CSS Shader example from before adds new syntax to the existing 'filter' css style, which you might've already whitelisted because it is safe today.</p>
]]></description><pubDate>Wed, 25 Sep 2019 11:09:51 +0000</pubDate><link>https://news.ycombinator.com/item?id=21069557</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21069557</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21069557</guid></item><item><title><![CDATA[New comment by zawerf in "DOMPurify, Security in the DOM, and Why We Really Need Both [pdf]"]]></title><description><![CDATA[
<p>I am always irrationally(?) scared of using these sanitizers despite their successful history. As soon as new html/js/css syntax/features are introduced, won't your security model need to be reevaluated? Which seems like a lost cause at the rate new capabilities are introduced to the web. E.g., when CSS Shaders lands, you might be able to execute arbitrary gpu code with just css (hypothetically speaking, I don't actually know how it will work. I am sure it'll be sandboxed pretty well. But the problem remains that there are too many new possibilities to keep up with!).</p>
]]></description><pubDate>Wed, 25 Sep 2019 10:30:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=21069377</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21069377</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21069377</guid></item><item><title><![CDATA[New comment by zawerf in "Comparing Database Types"]]></title><description><![CDATA[
<p>(We're getting way off topic) but I think the problem with auto increment is that it can't be sharded easily since multiple shards can increment to the same value. If you then try to go back to random ids you're now stuck with 8 bytes which will conflict once every billion items or so. I guess it's pretty extreme premature optimization but I think UUID is nicer for future-proofing at the cost of some performance. (I would love to see benchmarks to know exactly how much performance I am giving up though)<p>By the way uuidv1 is already prefixed by a timestamp! But unfortunately it doesn't use a sortable version of the time so it doesn't work for clustering the ids into the same page. I think it was really designed for distributed systems where you would want evenly distributed ids anyway.</p>
]]></description><pubDate>Wed, 25 Sep 2019 07:13:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=21068481</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21068481</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21068481</guid></item><item><title><![CDATA[New comment by zawerf in "Comparing Database Types"]]></title><description><![CDATA[
<p>I am trying this out and I am still on the edge of whether I like it or not.<p>Create a table with a json column:<p><pre><code>  CREATE TABLE Doc (
    id UUID PRIMARY KEY,
    val JSONB NOT NULL
  );
</code></pre>
Then later it turns out all documents have user_ids so you add a check constraint and an index:<p><pre><code>  ALTER TABLE Doc ADD CONSTRAINT check_doc_val CHECK (
    jsonb_typeof(val)='object' AND
    val ? 'user_id' AND
    jsonb_typeof(val->'user_id')='string'
  );
  CREATE INDEX doc_user_id ON Doc ((val->>'user_id'));
</code></pre>
I think the postgres syntax for this is pretty ugly. And if you also want foreign key constraints you still have to move that part of the json out as a real column (or duplicate it as a column on Doc). I am not sure it's even worth it to have postgres check these constraints (vs just checking them in code).<p>I am also a little worried about performance (maybe prematurely). If that document is large, you will be rewriting the entire json blob each time you modify anything in it. A properly normalized schema can get away with a lot less rewriting?</p>
]]></description><pubDate>Tue, 24 Sep 2019 23:29:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=21065843</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21065843</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21065843</guid></item><item><title><![CDATA[New comment by zawerf in "Comparing Database Types"]]></title><description><![CDATA[
<p>Technical note: big oh isn't a useful measure here. Most databases use b-trees (yes, even mongo) so lookups are at best O(log(n)). That goes for you and the people replying too.<p>The constant factors are way more important here. It's a 1000x factor difference depending on how durable you need your data to be (whether you need to write to disk or a quorum of network nodes in multiple regions). That is basically the only thing that mattered in the recent mongo vs postgres benchmarks.</p>
]]></description><pubDate>Tue, 24 Sep 2019 17:57:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=21062885</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21062885</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21062885</guid></item><item><title><![CDATA[New comment by zawerf in "A website coding itself live"]]></title><description><![CDATA[
<p>Here's the guy he said he got inspiration from: <a href="https://jakealbaugh.com/" rel="nofollow">https://jakealbaugh.com/</a><p>I think if liked those you would also like:<p><a href="http://acko.net/" rel="nofollow">http://acko.net/</a><p><a href="http://worrydream.com" rel="nofollow">http://worrydream.com</a></p>
]]></description><pubDate>Sat, 21 Sep 2019 17:59:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=21036840</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21036840</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21036840</guid></item><item><title><![CDATA[New comment by zawerf in "Google Wing Launching US Drone Deliveries with FedEx, Walgreens"]]></title><description><![CDATA[
<p>I think we're way past that point already. Everyone with a phone already has their location tracked at least by their phone company. You might've even given it away to other companies willingly: <a href="https://www.google.com/maps/timeline" rel="nofollow">https://www.google.com/maps/timeline</a>.<p>I don't think there were that many unintended consequences from this tech. We got better traffic jam maps. And maybe a handful of criminals who forgot to leave their phone at home got caught.<p>I think this is one of those things that people growing up with the tech won't think anything of it (mom wants to always know your location) but old geezers will reminisce of a time where we still had to call a landline and talk a friend's parents first to see if they are home.</p>
]]></description><pubDate>Thu, 19 Sep 2019 22:28:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=21021383</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21021383</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21021383</guid></item><item><title><![CDATA[New comment by zawerf in "Silicon Valley is terrified of California’s privacy law"]]></title><description><![CDATA[
<p>I didn't believe that number but it seems like it's true if you restrict it to just north america monthly active users: <a href="https://thespring.io/investing/facebook-makes-more-revenue-per-user-than-netflix/" rel="nofollow">https://thespring.io/investing/facebook-makes-more-revenue-p...</a><p>Average revenue per user is around $25 for global users.<p>This brings up a related issue that not all users are equal. Even in non-data mining business models, you still have some segment of the users subsidizing another.</p>
]]></description><pubDate>Thu, 19 Sep 2019 21:49:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=21021065</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21021065</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21021065</guid></item><item><title><![CDATA[New comment by zawerf in "Reddit Is Down"]]></title><description><![CDATA[
<p>The two communities have surprisingly different cultures (despite having high content overlap).</p>
]]></description><pubDate>Wed, 18 Sep 2019 22:27:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=21011052</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21011052</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21011052</guid></item><item><title><![CDATA[New comment by zawerf in "Ask HN: What are some architectural decisions that improved your codebase?"]]></title><description><![CDATA[
<p>I have recently been struggling with versioning(and learning devops in general) myself so I would love to hear more on this topic. For example if you rollback a deployment (or if you just have browsers who haven't refreshed yet), how do you make sure browser clients are talking to the right api backend version? How do you force them to upgrade or rollback? Will they even be routed to the same api server on multiple calls?<p>This is especially bad with long-lived single page apps.<p>(I already use immutable static files auto generated/hashed by create react app. I rely on cloudflare to cache them forever rather than never deleting from the build though)</p>
]]></description><pubDate>Wed, 18 Sep 2019 21:28:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=21010419</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21010419</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21010419</guid></item><item><title><![CDATA[New comment by zawerf in "Inkscape 1.0 Beta 1"]]></title><description><![CDATA[
<p>It's sad that you're getting downvoted.<p>I was trying this out on my phone and although I had to switch to landscape to make the UI fit, it was buttery smooth!<p>I was really impressed with the sheer amount of features included, many of which I have never seen implemented in any other web based editor.</p>
]]></description><pubDate>Wed, 18 Sep 2019 07:59:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=21003221</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=21003221</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21003221</guid></item><item><title><![CDATA[New comment by zawerf in "Show HN: I built an online image editor using WebGL and CSS transforms"]]></title><description><![CDATA[
<p>Figma is pretty successful and is written in C++ compiled to webassembly:<p><a href="https://www.figma.com/blog/building-a-professional-design-tool-on-the-web/" rel="nofollow">https://www.figma.com/blog/building-a-professional-design-to...</a><p><a href="https://www.figma.com/blog/webassembly-cut-figmas-load-time-by-3x/" rel="nofollow">https://www.figma.com/blog/webassembly-cut-figmas-load-time-...</a></p>
]]></description><pubDate>Tue, 17 Sep 2019 02:55:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=20990872</link><dc:creator>zawerf</dc:creator><comments>https://news.ycombinator.com/item?id=20990872</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=20990872</guid></item></channel></rss>