HNHacker News
TopNewBestAskShowJobs

IvanK_net

2,453 karma · joined August 20, 2013

submissionscomments
IvanK_net··on Photopea: A free Photoshop alternative making millions
Thanks, I loved it there! :)

I gave a talk in Nantes about making Photopea: https://www.youtube.com/watch?v=IZmaeC_Ma5A

IvanK_net··on Photopea: A free Photoshop alternative making millions
25% of our users use Photopea on mobile, but we do not monetize it in these cases, as we think your screen is already too small.
IvanK_net··on Photopea: A free Photoshop alternative making millions
If you go to www.Photopea.com and press More - "Install Photopea", it will install the so-called "PWA". This allows starting Photopea with a homescreen icon, in a window without a browser UI. It also allows associating a website with certain extensions, so your system will "open files in a website". It should work on every device/OS/browser (in the long run). You can uninstall it in your browser under about://apps
IvanK_net··on Adobe to acquire Figma for $20B
You can open Fireworks PNG files in www.Photopea.com :) https://community.adobe.com/t5/fireworks-discussions/open-fi...
IvanK_net··on Why It’s OK to Block Ads (2015)
I guess you always pay in cash. The amount of information which banks and card issuers collect about you is just tremendous. And unlike web ads, they know your real name, your address, your age ...
IvanK_net··on Why It’s OK to Block Ads (2015)
I said IF you could choose not to pay (if it was legal, the owner did not mind it), it WOULD make more sense not to pay (as you would save your money). That is how it is with websites today, the owners let you do it, even though they could prevent you from accessing their content.
IvanK_net··on Why It’s OK to Block Ads (2015)
It is okay because website creators tolerate it. Once all website owners stop tolerating it, everybody would have to watch ads.

Just like if at the grocery store, you could choose to pay or not pay. It would be totally okay not to pay. But if the number of non-paying customers grew too much, the owners would make it mandatory to pay. This did not happen to the web yet.

IvanK_net··on Imagen: An AI system that creates photorealistic images from input text
Pixlr was not bought by Google. So many people spreading lies on the internet :(
IvanK_net··on EU reaches deal to make USB-C a common charger for most electronic devices
I wish EU standardizes a single electric socket for all EU countries. Germany, France, Switzerland and Italy - each has a different socket (although German and French are very similar to each other).

More here: https://www.plugsocketmuseum.nl/EuropePlugsSockets.html

IvanK_net··on USB Cheat Sheet
Fun fact: USB 2.0 webcams have been existing for over 10 years. USB 2.0 is 60 MB/s.

A pixel of an image is 3 Bytes. A 1920x1080 FullHD image is 6.2 MB. At 30 frames per second, second of a FullHD video is 186 MB. How did they do that?

Answer: frames are transferred as JPEG files. Even a cheap $15 webcam is a tiny computer (with a CPU, RAM, etc), which runs a JPEG encoder program.

IvanK_net··on U.S. Surnames with No Vowels
The letters R, L, M can create a syllable in the czech language, similar to vowels. All words in the article are single-syllable words.

The word "srp" in Czech is a "sickle" - a tool for harvesting wheat: https://cs.wikipedia.org/wiki/Srp From that, you get "Srpen" - "August", which is a "month of harvesting crops" (same in Czech, Polish, Ukrainian, etc).

IvanK_net··on Reddit Photopea founder – I have millions of users, but no businesses use it
I created https://www.Photopea.com/templates a year ago, where anyone can upload their work and share it with others.
IvanK_net··on Reddit Photopea founder – I have millions of users, but no businesses use it
Hi, I am the creator of Photopea :) When you open Photopea.com, about 1.5 MB of data is loaded to your computer (most of it Javascript). Now, you can disconnect from the internet and use it "offline". It works the same as MS Paint, Photoshop and other programs work :) using your CPU, your GPU, your RAM.
IvanK_net··on Apple unveils contactless payments via Tap to Pay on iPhone
I wish people were more aware of fees. You pay around 1% of the amount as a fee. Without these fees, everytihng could be 1% cheaper. Imagine every person in the world making 1% more overnight. 1% of your money is a lot.

That is why you will never be able to give money to a friend this way. You give $100, but they receive $99. They give it back after a week, and you receive $98.

IvanK_net··on Why isn't there a replication crisis in math?
Just a fun fact: there are dozens of papers released each year, which claim that they have proven that P=NP, or P is not equal NP. E.g. they "prove" it with soap bubbles: https://arxiv.org/pdf/cs/0406056.pdf
IvanK_net··on A surprisingly hard CS problem: sums of square roots (2018)
I think the formulation "this algorithm is in PSPACE" is very inappropriate in this case. Every "sane" algorithm is in PSPACE, e.g. adding two numbers.

Either prove, that the problem is PSPACE-complete (any PSPACE problem can be converted into it), or just say that your algorithm takes exponential time in polynomial space.

IvanK_net··on Ask HN: Gmail account security
I think we, "people", pushed companies to do this.

There are billions of people creating various accounts. Hundreds of thousands of them had a weak password, or told their password to someone, etc, and their data leaked. There were so many news about "data leaks" and "security issues" in the past 20 years, and each time, a company was blamed, never a user.

We even made laws, where letting people log in with only a password can be illegal.

IvanK_net··on No amount of alcohol is good for the heart, says World Heart Federation
That is strange. But I am sure a small amount of cigarettes is good for lungs.
IvanK_net··on We handle 80TB and 5M page views a month for under $400
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 take seconds / minutes / hours? Also, some files should not be cached at all (like PHP requests).

I am afraid it would take me days or weeks to learn everything and to cofigure the CDN properly, and I am risking being offline for a part of the world during that time. Also, if there is a problem at the CDN, my website would be broken, too. If someone could help me, you can write me at support@photopea.com

IvanK_net··on We handle 80TB and 5M page views a month for under $400
Thanks! I wish we could detect all browser shortcuts, see https://twitter.com/ivankutskir/status/1422671831006392329
IvanK_net··on We handle 80TB and 5M page views a month for under $400
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.

IvanK_net··on Faster TypedArrays: Vector Addition in WebAssembly
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 up in Chrome. Also, I have noticed, that for Float32Array, the rolled / unrolled performance is almost identical, but for Uint32Array, unrolled is about 30% faster: https://jsfiddle.net/aq06p94f/

IvanK_net··on Faster TypedArrays: Vector Addition in WebAssembly
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 more than 3x faster.

IvanK_net··on Faster TypedArrays: Vector Addition in WebAssembly
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.
IvanK_net··on Faster TypedArrays: Vector Addition in WebAssembly
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/

IvanK_net··on You block ads in your browser, why not in your city?
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 1920x1080 pixels, how much would you pay for showing them your ad?" ... there is an auction, and the ad from the highest bidder is shown to you. The more servers take part in the auction, the more money I can make.

Like really, if you open a website for the first time in your life, what kind of secret information could it know about you?

IvanK_net··on You block ads in your browser, why not in your city?
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 1920x1080 pixels visited www.Photopea.com at 18:37". It can be useful to know the number of visitors, or the usual screen resolutions.

IvanK_net··on You block ads in your browser, why not in your city?
"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 in total), there is nothing wrong, because I still have my book.

I am glad that most of people dont think this way, because we would not have any books in our world.

IvanK_net··on You block ads in your browser, why not in your city?
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 Photopea (with no ads), I would gladly accept it.

IvanK_net··on You block ads in your browser, why not in your city?
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 Photopea.com) find a specific element and delete it.

If an ad blocker tells you, that they are not blocking "good ads", they are usually blackmailing ad companies to pay them, so that they do not block their ads. The money, which could go to content creators, are going to ad block creators.

← PreviousPage 4 of 14Next →