Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
IvanK_net
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
IvanK_net
5y ago
I would love to use a CDN. But I am afraid of things I do not fully understand, and I am afraid of making things too complex. If I update a single file, how long it takes until nobody in the world can access the old version anymore? Does it
92.
▲
by
IvanK_net
5y ago
Thanks! I wish we could detect all browser shortcuts, see https://twitter.com/ivankutskir/status/1422671831006392329
93.
▲
by
IvanK_net
5y ago
I was running www.Photopea.com with 10M page views a month for $40 a year. Now, I upgraded to $60 a month. I never used any CDN.
94.
▲
by
IvanK_net
5y ago
BTW. I replaced every "let" and "contst" with "var" in your code, and it seems to run about 15% faster: https://jsfiddle.net/05xd1oft/ Inserting the loop into a function really speeds it u
95.
▲
by
IvanK_net
5y ago
If a 50-character piece of JS is running for two seconds, it was definitely optimized at some point. And even a most advanced optimization of 50 characters would not take more than 0.1 seconds. Even with a warmup, the unwrapped version is m
96.
▲
by
IvanK_net
5y ago
You probably implemented it in a wrong way. On my machine, a JSFiddle version is 3.5x faster, while in your benchmark, it is 1.4x faster.
97.
▲
by
IvanK_net
5y ago
BTW. you can unwrap loops in pure Javascript too, and it also makes the code several times faster. 4x unwrap: https://jsfiddle.net/49j7htdz/1/ 8x unwrap: https://jsfiddle.net/49j7htdz/2/
98.
▲
by
IvanK_net
5y ago
I do not know a lot about the ad mechanism, which my partners use. But it usually works by contacting several servers and asking them "hey, there is someone visiting www.Photopea.com, probably from Canada, with a screen resolution of 1
99.
▲
by
IvanK_net
5y ago
If you know how the web works, you must know, that websites do not have access to your device. You do not tell Photopea your name or your address. The only thing a website can know, is, that "someone with a screen resolution of 1920x10
100.
▲
by
IvanK_net
5y ago
"Theft implies that you are deprived of the item once it's stolen - this is not the case here." Yeah, exactly. If I write a book, and one person buys it, and a billion people copy it from that person (and I sell just one copy
101.
▲
by
IvanK_net
5y ago
Photopea.com has an option to pay for an ad-free experience, and one in 2000 users is paying for it. I make around $.01 (one USD cent) for an hour of using Photopea with ads. If someone was willing to pay me two cents for an hour of using P
102.
▲
by
IvanK_net
5y ago
My ads are traditional ads, and the ads are almost always related to the business. There are no good and bad ads. The creators of ad blockers decide, what the ad is. The code of an ad blocker literally contains a code like: if(website is Ph
103.
▲
by
IvanK_net
5y ago
90% of my income is from ads. If I could not make money with my website, I would shut it down and would go get hired by some company.
104.
▲
by
IvanK_net
5y ago
And what exactly is "your personal information", that has been sent to so many websites?
105.
▲
by
IvanK_net
5y ago
Nobody cares what your opinion about the ad is. If you do not like the "cost" of the item (watching a minute of an ad, to see a 10 second video), just go somewhere else to find an alternative. Or buy it once and never again. What
106.
▲
by
IvanK_net
5y ago
Could you be more specific? What "3rd parties" are tracking what "behaviour" of yours, and why exactly is it worth so much? And what do you mean by "you" in "tracking you"? Do they know your name?
107.
▲
by
IvanK_net
5y ago
I own a website www.Photopea.com, visited by 3 million people a month. Once in a while, I enable adblock detector, and do not allow usrers with adblocks use the service. I wish everyone was doing that. When you see someone willing to give y
108.
▲
by
IvanK_net
5y ago
We have one type of electric sockets (at least within each country). But there certainly can exist better kinds of sockets than those used in your our my country. But I am glad that we all have same sockets in our houses, even though they a
109.
▲
by
IvanK_net
5y ago
If the better one is expensive (e.g. the creator asks for license fees), we should choose the cheaper one. Just like the VHS has beaten the Betamax.
110.
▲
by
IvanK_net
5y ago
This is not about what connector is better. It is about everyone using the same connector. I believe if Apple allowed others to use their connector for free, they could "beat" USBs and become the only existing standard.
111.
▲
by
IvanK_net
5y ago
I think by a "charger", the EU means everything needed to charge a device, i.e. including the cables. Which means, that the charging ports should be identical on all devices sold in the EU.
112.
▲
by
IvanK_net
5y ago
This facility will remove 4,000 tons of CO2 a year. An average person produces 5 tons of CO2 a year. So it will be removing the CO2 produced by 800 people. I think it would be cheaper to pay people not to fly for holidays, etc.
113.
▲
by
IvanK_net
5y ago
At the end, they have a photo example of various formats. Here is the GIF version of their final image (249 kB) https://i.imgur.com/8yt7NS0.gif
114.
▲
by
IvanK_net
5y ago
I think every programmer should know, that logical AND is many times faster than Modulus (which is at least as hard as a division), and use & instead of % right in his code for powers of two (and not expect it to be done by a compiler).
115.
▲
by
IvanK_net
5y ago
You can compile only the decompressor of the official ZSTD library to wasm, it is ony 28 kB: https://github.com/facebook/zstd/files/6602821/zstd.zip
116.
▲
by
IvanK_net
5y ago
Fun Fact: a person https://github.com/101arrowz recently created a ZSTD decompressor in Javascript (without any dependencies), which is only 7.1 kB (3.6 kB zipped) - here it is: https://unpkg.com/fzstd@0.0.
117.
▲
by
IvanK_net
5y ago
What is GA? I do not have any sales.
118.
▲
by
IvanK_net
5y ago
A standard web browser is a browser, which runs a website according to web standards. If an extension e.g. replaces every image in a webpage with the image of Bill Gates, it is not a standard browser in my opinion, and users should not repo
119.
▲
by
IvanK_net
5y ago
An update: almost nobody pays for Photopea, and all my reports are from users who use it for free. I fixed over 3000 issues so far, some took minutes, others took weeks: https://github.com/photopea/photopea/issues?
120.
▲
by
IvanK_net
5y ago
I am an author of a photo editor https://www.Photopea.com . Whenever someone reports a bug to me, I ask them if they use any site-modifying extensions. If they do, I ignore them completely, even if they wrote a long, detailed re
More ›