1,791 karma · joined Oct 27, 2012 (14y ago) · 297 submissions
181.
A New Era of SSRF: Exploiting URL Parser in Trending Programming Languages [pdf](blackhat.com ↗)
4 points · by mediumdeviation · 9y ago · discuss
comment 9y ago · link · parent
I know because I reviewed this library (https://github.com/VincentGarreau/particles.js) when a colleague wanted to add something similar to our site. The problem is it uses a naive O(n^2) algorithm for linking up particles when they get near each other, which wastes a lot of CPU cycles.
Running this script with a large number of particles and auto-linking on is ill-advised - but fortunately you can delete the <canvas> element quite easily to stop the script.
comment 9y ago · link · parent
It's also possible to export any Flash movie as a standalone executable with the Flash runtime baked in. This should be immune to any sort of deprecation. Of course this relies on the developer who holds the original source file to do the exporting.
comment 9y ago · link · parent
Laravel can act as the API backend to the frontend (basically a set of REST endpoints that the frontend can talk to), or alternatively the Vue components are used only where heavy client-side interactions are required, while the rest of the pages are still served up by Laravel normally.
comment 9y ago · link · parent
186.
Why are crime victims being jailed?(bbc.com ↗)
157 points · by mediumdeviation · 9y ago · 89 comments
188.
They Have, Right Now, Another You(nybooks.com ↗)
2 points · by mediumdeviation · 9y ago · discuss
comment 9y ago · link · parent
There is a vast difference between the government banning you and reddit banning you (which they are not actually doing here, but for the sake of argument).
You have the right to free expression. You do not have the right to free expression on someone else's platform. reddit is not the Internet - if reddit does not like what you say, you can set up your own space on the Internet. If the government does not like what you say, then there is literally no legal alternative. That's the difference.
Oh, and stop confusing net neutrality with this issue. It's not the same.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
1. It keeps the tech industry domestic
2. The servers are physically inside China, guaranteeing them access to the data
This is why I've always thought that the Great Firewall's purpose is not only censorship, but also a form of Internet-age protectionism.
comment 10y ago · link · parent
comment 10y ago · link · parent
And if I scroll down a bit more you'll find a web worker spawned by the same page consuming another 120MB of RAM. This is a lot of stuff happening on what is suppose to be just a news article.
comment 10y ago · link · parent
comment 10y ago · link · parent
[1]: http://moneyweek.com/ftse-100-v-ftse-250-why-have-they-diver...
comment 10y ago · link · parent
The size of the nutritional label is not infinite. The number of potential labels is. More importantly, by labeling GMO, you're simultaneously implying that there may be something unsafe about them, and distracting from far more important information, like allergens and sugar content.
> I don't think it'd place any sort of unhealthy burden on the industries to write "This food may contain genetically modified organisms"
Fruits and vegetables can be contaminated, for instance if they are grown or stored next to each others. For labeling purposes guidelines are set with some leeway within safe boundaries. Trying to do the same for GMO highlights the silliness of the exercise, since there are no such boundaries, because they are as safe to eat as their non-GMO counterparts.
Then there's processed foods - tracing which of the dozens of ingredients are non-GMO would be non-trivial. It is possible, of course, but why force companies to waste money for something that is of no health consequence?
And finally, there's the issue of GMO entering the food chain. It is at least possible to trace this for livestock, if you have a complete history of everything that they've ever been fed, but what about animals caught in the wild like fishes?
I'd love to have more transparency and information about the food on my plate - I want my fruits grown in areas that are not under water stress, and my vegetables grown sustainably, but let's not waste time and money trying to label things that don't need labeling in the first place.
comment 10y ago · link · parent
comment 10y ago · link · parent
The bet (and the referenced article) is about the availability of the resources at the end of those URLs - the URL itself is just a reference, or a pointer if you will to a resource.
comment 10y ago · link · parent
Because trifecta of retina (hi-dpi) displays, responsive design (use the same code for both mobile and desktop) and miserly bandwidth caps, (especially on mobile networks), means that traditional <img> tags won't do it any more.
<picture> is designed to help with this - and I'm pleasantly surprised to find that it has landed in a surprising number of browsers http://caniuse.com/#feat= picture - but you'll still need a polyfill, which is if course JavaScript.
Pages with a lot of images also use lazy loading to reduce bandwidth usage even further.
Of course a <noscript> should be included, but it's getting harder and harder to make the claim that it is economical to support people without JS.
comment 10y ago · link · parent
comment 10y ago · link · parent
From the Telegraph [2]
> The BBC’s determination to give a balanced view has seen it pit scientists arguing for climate change against far less qualified opponents such as Lord Lawson who heads a campaign group lobbying against the government’s climate change policies. Andrew Montford, who runs the Bishop Hill climate sceptic blog, former children’s television presenter Johnny Ball and Bob Carter, a retired Australian geologist, are among the other climate sceptics that have appeared on the BBC.
I think I agree with the BBC's own comedian's take on this, which is to give each side time proportional to the amount of support they have from experts in the field. In other words, for every ten minutes of airtime for climate experts on climate change caused by humans, we can have 18 seconds, or 3% of climate skeptics speaking.
[1]: https://www.washingtonpost.com/news/morning-mix/wp/2014/07/0...
[2]: http://www.telegraph.co.uk/culture/tvandradio/bbc/10944629/B...