Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DagAgren
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
271.
▲
by
DagAgren
7y ago
Yes, this was inspired by that, and the fact that our database engineer went "I'm not putting that much garbage in my database"! And I figured, yeah, that's still a lot of data, and it's massively misusing several d
272.
▲
by
DagAgren
7y ago
It is a term often used for DCT-transformed data. DCT, in this case, breaks the image down into basically an average colour of the whole image, referred to as the DC component, and a bunch of waves that make up the detail of the image, refe
273.
▲
by
DagAgren
7y ago
It is a lot smaller than that, that is probably the size of all JS code on the web page? The algorithm itself fits into a few k.
274.
▲
by
DagAgren
7y ago
These are the safest I could find. They are perfectly fine for using in filenames.
275.
▲
by
DagAgren
7y ago
Hello, I am the main author of this. Also make sure to check out the README on Github for more technical details! https://github.com/woltapp/blurhash
276.
▲
by
DagAgren
7y ago
That choice is explained in the README: https://github.com/woltapp/blurhash (83 is about as many safe characters as you can reasonably find, and it allows some nice ways of packing values together.)
277.
▲
by
DagAgren
7y ago
That looks great! You could probably devise a much smaller data representation too, to get the size down.
278.
▲
by
DagAgren
7y ago
The amount of data to send is miniscule.
279.
▲
by
DagAgren
7y ago
Do modern browsers even support progressive display of JPEGs? I have not seen it happen in years and years.
280.
▲
by
DagAgren
7y ago
In addition to the aesthetic effect, this is available immediately, while progressive JPEG will still require additional data to be loaded from the server.
281.
▲
by
DagAgren
7y ago
Should work fine, if you integrate it into your toolchain somehow.
282.
▲
by
DagAgren
7y ago
The algorithm is tiny, and will easily fit in less than an image's worth of data, especially if you minify it. Also, it is likely you have more than one image on any given website.
283.
▲
by
DagAgren
7y ago
Finder exchanges : and / in filenames, for compatibility with classic MacOS, which used : as a directory separator and allowed / in filenames. You can create a file named / in Finder, and it will show up as : on the file syst
284.
▲
by
DagAgren
7y ago
: was disallowed on classic MacOS. On modern macOS, it is allowed in the POSIX layer just fine. However, Finder and other parts of the UI will translate a : in the file name to a / on display, and vice versa. This is because classic Ma
285.
▲
by
DagAgren
7y ago
You can decode using a very small canvas to minimise performance issues, and the scale the resulting image up.
286.
▲
by
DagAgren
7y ago
I've started strongly leaning towards the principle that if I have to choose between either an icon or text on a button, I will choose text. Icons are nice landmarks to guide the eye, but they are absolutely worthless to convey informa
287.
▲
by
DagAgren
7y ago
This is a tempting idea, but as was already pointed out, the problem is not the character set, but that similar images will encode to the same string. Anyway, chances are you are already storing a filename in your database, so you would nee
288.
▲
by
DagAgren
7y ago
This one is picked very carefully to be as safe as reasonably possible with this number of characters. As was pointed out elsewhere, it is actually safe for filenames.
289.
▲
by
DagAgren
7y ago
At sizes like 32 px, you still want more control over line widths and details than a regular vector format grants you. For images that small, you still want to emphasise some things more than others.
290.
▲
by
DagAgren
7y ago
In that case, the problem seems a bit exacerbated by using a renderer that is very bad at rendering at small size. I'm sure you could render that to be a bit less of a jaggy and blurry mess.
291.
▲
by
DagAgren
7y ago
Absolute love minimal image formats. There's just something very satisfying about them. I created this one: https://blurha.sh/
292.
▲
by
DagAgren
7y ago
And it is so rare because of the incredibly strict regulations and limitation on it happening. And I feel safe to ignore that data because I can trust that my safety is taken care of by those same limitations.
293.
▲
by
DagAgren
7y ago
Motorcycles are not self-sufficient. On a timescale of longer than a day, they will lose to any cheetah. Humans have yet to design a machine that could even outcompete a fluffy kitten.
294.
▲
by
DagAgren
7y ago
And we already have microscopic machines that use it for power, and we know what they are capable of.
295.
▲
by
DagAgren
7y ago
Not really. Flying faster than the speed of sound without complex supporting industry is not possible. Flying faster than the speed of sound is not sustainable, it is something we have to work very hard to achieve, and the second we stopped
296.
▲
by
DagAgren
7y ago
If using stronger chemical bonds was advantageous, bacteria probably would be doing it already. The weak bonds is what complex chemistry and thus complex functionality possible. Stronger bonds is dead matter, and dead matter does not compet
297.
▲
by
DagAgren
7y ago
Hurtling tons of steel through the sky at hundreds and hundreds of kilometers an hour above my head is a massive privilege to have, and a huge responsibility to take on. Letting the world know that you are doing it is very much a lowest-bas
298.
▲
by
DagAgren
7y ago
The same way you do it many times a day in your everyday life?
299.
▲
by
DagAgren
7y ago
I deny that this is a valid reason to flee prosecution in Sweden.
300.
▲
by
DagAgren
7y ago
The article makes so many misrepresentations, I am not very inclined to take what is says at face value. It tries hard to make it sound like he does not have access to a lawyer, but what it actually seems to say is that he is not able to br
More ›