Better HN
topnewbestaskshowjobs
Log inSign up

superfad

38 karma · joined May 26, 2015 (11y ago) · 32 submissions

Frontend developer
Submissions

comment 4y ago · link · parent

> I'm curious about this point; if the only thing stored on the chain is a URL (including Drive/Imgur) then there's no possible way to actually preclude the content from changing right?

When you use something like IPFS the url is created from a hash of the file contents, so it is not possible to change the file without creating a new url.

comment 4y ago · link · parent

VAERS is a voluntary reporting system, it does not include any deaths by bus. Nor does Sharyl Attkisson hawk miracle cures so you seem to be talking complete nonsense.

comment 4y ago · link · parent

Yeah I agree.

> Rug pulls have emerged as the go-to scam of the DeFi ecosystem, accounting for 37% of all cryptocurrency scam revenue in 2021

So 37% of $7.7 billion is $2.849 billion.

> All in all, rug pulls took in more than $2.8 billion worth of cryptocurrency from victims in 2021.

> It’s important to remember that not all rug pulls start as DeFi projects. In fact, the biggest rug pull of the year centered on Thodex... In all, users lost over $2 billion worth of cryptocurrency, which represents nearly 90% of all value stolen in rug pulls. However, all the other rug pulls in 2021 began as DeFi projects.

The graph shows $2.6 billion was lost with Thodex. So that leaves $0.249 billion that was lost in projects that were rug pulls that began as DeFi projects.

comment 4y ago · link · parent

Other than autocomplete, I would also suggest using this cheat sheet to help you: https://nerdcave.com/tailwind-cheat-sheet

comment 4y ago · link · parent

https://sharylattkisson.com/2021/10/exclusive-80-of-the-most...

comment 5y ago · link · parent

I think this is pretty much the same question that was discussed a couple of weeks ago. Worth a read, https://news.ycombinator.com/item?id=29139813

comment 5y ago · link · parent

Ah yeak ok. I agree the formatting is a bit unusual. I guess the confusion is Chris did mention Axie but it was in the previous post which is paywalled.

comment 5y ago · link · parent

It is because Web3 changes the business model and economic incentives. I would suggest reading this:

https://onezero.medium.com/why-decentralization-matters-5e3f...

comment 5y ago · link · parent

The interviewee, Chris Dixon, never mentioned Axie though. It was the interviewer, Steven Johnson, that brought it up.

comment 5y ago · link · parent

That's where something like BrightID would help.

https://www.brightid.org/

comment 5y ago · link · parent

The only time the sizes attribute is not needed when using srcset is when the rendered size of the image is fixed.

One example would be a logo that is less than 320px wide (so it fits even on mobile). In that case you can add x descriptors to give a higher quality logo on retina screens. e.g.

<img src="logo.jpg" alt="Logo" srcset="logo.jpg, logo-2X.jpg 2x">

Alternatively use an svg :)

But if the image depends on the viewport width then 'srcset' (without x descriptors but with w descriptors) and in combination with 'sizes' is the way to go.

comment 5y ago · link · parent

I've had this happen when uploading a highly optimized image (manually optimized with Squoosh) 2560px wide, then WP generating a 1920px wide version and the KB was larger. I believe I was using the free version of Smush at the time and had to change. Now using reSmush.it.

comment 5y ago · link · parent

The browser doesn’t know the size at which the image will be rendered on the page until it has downloaded and parsed all the relevant CSS and JavaScript files. Shortly after the browser downloads the HTML, it requests CSS and JavaScript. But before the CSS and JavaScript is done loading, the browser starts downloading images. The only thing that the browser does know is the size of the viewport. If we give sizes based on screen width then the browser will know which image to use. The width doesn’t have to be expressed as a viewport width unit though. It can be any length including absolute and relative length. You can even use CSS calc() to do things like auto-calculate margins dynamically.

For your example I believe it would be done like so:

<img src="cat-200.jpg" alt="cat" srcset="cat-200.jpg 200w, cat-400.jpg 400w, cat-800.jpg 800w" sizes="5em">

This page explains responsive images further: https://cloudfour.com/thinks/responsive-images-101-part-5-si...

comment 5y ago · link · parent

Needs (2014) added to the title.

comment 5y ago · link · parent

Thanks for your insight. I agree there are some great tools available, but I am still working on a cost effective solution for small business clients. Maybe I should be putting my energy into finding clients with a bigger budget instead. :)

comment 5y ago · link · parent

Thanks for the reply. I believe you are correct in that the $2.6 million figure is organisation wide so would cover multiple sites.

17.

Ask HN: Is headless a good solution for small businesses?

1 points · by superfad · 5y ago · 4 comments

comment 6y ago · link · parent

> I don't quite understand the issue with aspect ratio. I know there isn't a way to define it well yet, but people have been building websites for almost 30 years without a way to specify it, and now all of a sudden everyone claims to need it. It's weird.

Here is a bit of background on why there is a need for aspect ratio:

https://youtu.be/AQqFZ5t8uNc?t=233

comment 7y ago · link · parent

Very interesting and well done. Something seems off for the 'ask' page though. "Top Ask HN stories from the past year" but most only have a few points.

comment 8y ago · link · parent

They may not care about their own privacy but they should care about privacy online as a whole because there are most definitely people who have legitimate reasons for privacy such as journalists, activists or politicians. If they don't care about online privacy ask them if they also don't care about racism because they are not black or a minority.

comment 9y ago · link · parent

Cryptome was keeping a tally of what has been released. The problem is the total size of the trove is not known publicly. But yes, it would be a very tiny percentage.

https://cryptome.org/2013/11/snowden-tally.htm

comment 9y ago · link · parent

Do you charge your clients by the hour or another way?

I feel like I could be just as productive with fewer hours but there is somewhat of a financial conflict when being paid by the hour.

comment 9y ago · link · parent

They will be asking for passwords in NZ too before too long by the sound of it.

https://nzccl.org.nz/content/customs-able-demand-unlockpassw...

Plus there is what happened to Sam Blackman

http://www.nzherald.co.nz/nz/news/article.cfm?c_id=1&objecti...

comment 9y ago · link · parent

> Digital misinformation has become so pervasive in online social media that it has been listed by the WEF as one of the main threats to human society.

It might be a good time to bring back critical thinking to the education curriculum. I see that as the only real solution.

It would be interesting to know how the spread of this misinformation differs from other types of regular news.

comment 9y ago · link · parent

Because he studied full time for 8 months in preparation for an interview. No doubt a few people would have been interested in the news.

https://medium.freecodecamp.com/why-i-studied-full-time-for-...

comment 10y ago · link · parent

That reminded me of this Apple patent but it looks like this is done in a different method.

Apple files patent for camera hidden behind display http://appleinsider.com/articles/09/01/08/apple_files_patent...

comment 11y ago · link · parent

My guess is she means they don't need authorization to install it if it is a web app, where as a desktop app may need company sign off to install software.
12