7,485 karma · joined Mar 14, 2016 (10y ago) · 2,314 submissions
comment 7y ago · link · parent
> or some option hidden away that allows me to tell clouflare
> o fuck off with how it treats traffic, I'd love to know.
The method I use to avoid CloudFlare altogether (probably wrong as it's bespoke) is to do the following before "handling" the request:
* Store all connecting IPs, last request time and the rate at which requests are being made in a serviced-buffer. If the request rate becomes too high, give them a timeout (return a very small page telling them to come back in a few minutes).
* If database hits are high, drop non-important requests first, starting with views, then up/down votes, comments and then user security. Views and votes can fail silently and most people won't be any of the wiser.
* If static content requests are high, drop generated content first, followed by large files (all JS, most CSS, images, etc). For the generated content, you can use a recently generic cached view.
* Lastly, if all else fails, just return a redirect to some static server hosted somewhere strong (like GitHub pages for example), explaining that demand is high at this current time.
This approach has worked for me so far. Under high load, you need to handle requests as soon as possible, even if it means not returning something. Holding onto a connection is what will sink your ship.
In general most sites seem to die because they spend too long dealing with individual requests. especially when the database is hit. As soon as you overload a WordPress database for example, it's screwed. And this is just for displaying content to the website!
comment 7y ago · link · parent
> Decentralized platforms are not an ideal solution for
> internet communities.
Hard disagree. Communities are about give and take, the early internet was driven by people hosting bulletin boards, IRC servers, web servers, etc. There are people out there still willing to be part of the solution if you give them the chance.
> TOR is also not an answer, the technical barrier in
> accessing hidden services alone disqualifies them as a
> practical alternative, before even considering the
> bandwidth/latency limitations.
TOR is plug-and-play these days, although using TOR effectively requires a change in mind-set, both for the server owners and users of such servers.
> As seen with youtube, reddit, &c. With transparency and
> accountability, and without a significant profit incentive
> to do otherwise, the model still works.
Servers, time and expertise usually cost money. Staff running the show need to put food on their tables one way or another - there will always be a financial incentive. Unless, of course, you reduce running costs to near zero.
comment 7y ago · link · parent
That's okay. There are of course limitations. You can't detect faces you can't see, for example (i.e. somebody walking the wrong direction). If you're detecting 10k faces at an accuracy of 99.99%, one in every detection frame is a failure.
comment 7y ago · link · parent
[1] https://www.independent.co.uk/news/world/asia/china-ai-crime...
[2] https://www.bbc.com/news/world-asia-china-34592186
[3] https://www.nytimes.com/2019/04/24/technology/ecuador-survei...
comment 7y ago · link · parent
> ensuring sufficient overlap to ensure that they can
> process the images together.
It would be much easier to avoid the issue of stitching altogether and simply process the images separately, then merge the resulting output data. As far as I'm aware, you're not going to find a GPU that can process a 500MP image efficiently.
comment 7y ago · link · parent
People should generally eat more protein in the form of meat, eggs, fish, nuts, cheese, etc. You feel fuller and with a little exercise you can quite easily turn it into muscle.
comment 7y ago · link · parent
* PCBs are cheaper to manufacturer than silicon wafers.
* PCBs can be arbitrarily created and adjusted with little overhead cost (time and money).
* PCBs can be re-worked if a small hardware fault(s) is found.
* PCBs can carry large amount of power.
* PCBs can help absorb heat away from some components.
* PCBs have a small amount of flexibility, allowing them to absorb shock much easier.
* PCBs can be cut in such a way as to allow for mounting holes or be in relatively arbitrary shapes.
* PCBs can be designed to protect some components from static damage.
What I can see on the other hand is some packages end up being dropped into the PCB and soldered at the sides. Sometimes this is done with large through-hole capacitors, where the legs are bent and the capacitor sits in the middle of the PCB (inside a cut hole). Other than ball packages, you could could probably drop the majority into the PCB itself.
The other obvious option for manufacturers will be to put more tech on a single die, but then other problems are also raised. For example, some parts are binned based on their tested results.
comment 7y ago · link · parent
As for tea flavours, the difference is usually just the addition of herbs and spices.
comment 7y ago · link · parent
> None of the above are likely to apply to hobbyists, so most
> hobbyists who are developing for FPGAs are likely doing so
> just because they find it very interesting.
I see posts on HackerDay about FPGAs and think: "What am I missing?". I build robots as part of a hobby and was wondering where on earth they fit into that pipeline. Most of the things I build are either already solved within a single chip, or are easily solved with the addition of a small micro. Developing something using a HDL would be too extreme, even for me.
One thing that I think might be of interest in the future is when the cell count is such that we can process large neural networks, although I suspect they might always lag behind GPUs and/or TPUs.
comment 7y ago · link · parent
That's not to say that something like this isn't possible, the size simply needs to be reduced. Remove the human from the inside and then your robots can also deal proper blows.
comment 7y ago · link · parent
> What you've described is nearly exactly the design of the
> OLPC. A one-piece impermeable keyboard, battery behind the
> keyboard to weight it down, all of the sophisticated
> electronics behind the screen to minimize cable bending.
Kind of, but it has speakers, daughter extension boards, swivel display, custom "motherboard" PCB, etc. I do appreciate that it was a different time though and I have the arm chair privilege of looking at this through a modern lens.
> The charging circuitry will charge the battery if given
> anywhere between 11 and 18 volts (there are user reports
> of slowly charging with 9V), and will not be damaged if
> exposed to higher, or negative, voltage. I've charged mine
> from my 12V lithium motorcycle battery plenty of times.
These days (modern lens) I think it would be appropriate to accept an input down to 5V (i.e. USB). Supporting AC wouldn't be incredibly difficult either (many phone wall changes are quite small), but of course would increase size and/or complexity. Also I think it's good to keep kids away from high voltage/current AC.
> The OLPC XO-1 is quite easy to disassemble and repair. You
> only need one philips #1 screwdriver, and it doesn't have
> a ridiculous number of teeny-tiny screws, or any glue,
> holding it together. The wiki has detailed instructions on
> disassembling the top[0] and bottom[1] of the laptop, and
> also guides on replacing specific components.
It's certainly much better than I thought in terms of repair-ability, but I still believe it's overly complex. The display for example should get a display signal via a HDMI cable (which is shielded) and send the touchscreen data via USB, as well as providing power for the display. If the cable breaks, sourcing a replacement is relatively easy given the standardization. If the display breaks, an external one may be used.
> People took advantage of the easy-to-disassemble and
> thoroughly-documented hardware to develop community hacks.
> A popular one was to replace the membrane keyboard with a
> particular USB keyboard, which could be cut up to fit the
> chassis, and internally wired to one of the USB ports.
> I've seen a tutorial on how to solder an extra 256 MB of
> memory in.
That's awesome, but it should have come with an off-the-shelf drop-in removable USB keyboard anyway. The keyboard should be a valuable item, even if the rest of the laptop is completely destroyed.
> The G1G1 laptops came with a preinstalled collection[3] of
> educational material, mostly from Wikipedia. The wiki has
> instructions on how to create custom collections to be
> distributed with a deployment of laptops. OLPC also
> created the School Server[4], a distro intended to provide
> a central network resource for communication and stored
> learning material.
The preinstalled collections are pretty cool. The school server I highly doubt would have worked correctly in many cases as it relies on too much to work correctly (server setup correctly, networking, stable electricity supply, etc).
These days I would make all the books stand-alone, probably distributed as markdown as you can read them raw or compile them into some more pleasing format. I think requiring some non-standard program to open .xol files was probably a move in the wrong direction.
comment 7y ago · link · parent
If I were to set out with this challenge today, I would build a basic version of the Pi Top [1]. Literally just a keyboard, touch screen, Raspberry Pi, battery and battery circuit (input 5-24V DC, output 5V DC). A lot of people in hard-up areas still have phones and therefore some kind of DC power, but worse case a car battery can usually be come across.
Put the Pi behind the display (avoid bending the display cable) and expose the inputs/outputs. Put the battery in the keyboard area to weight it down. Have everything just plug into normal ports (including the display) with visible cables on the back.
That way it's simple, easy(ier) to fix and upgrade. Parts can be hacked and re-used for other projects. There's tonnes of documentation and online support. People could feasibly take to broken devices to create a working one.
As for the meshing stuff, it's overly complicated. I think you would just preload the machine with a bunch of learning resources (software, books, etc) and make it easy for the device to become a hotspot for file sharing.
comment 7y ago · link · parent
Imagine trying to browse modern web pages on a dial-up speed connection. Many sites now completely refuse to load until you load their JS, which calls some external JS, which then renders the page. I run almost every web page without JS and Cloudflare is the number 1 reason for not being able to access a page.
comment 7y ago · link · parent
I was told a funny story from my Russian friend where they introduced some law to prevent people buying hard liquor after 10pm to curb alcoholism. He was quite amused to see people running into the shop at 9:55pm with a trolley and back out just before 10pm with a trolley full of hard liquor.
comment 7y ago · link · parent
To moot is to argue, but then your next statement seems to suggest you want the policy to be rolled out across the UK? Are you for or against rolling this policy out across the UK?
I currently live in New Zealand where alcohol is relatively expensive and it has a massive drinking problem for young persons. When I go back to the UK, the problem is about the same, but the young people aren't going broke buying alcohol. I don't think it works. Increasing the price of Tobacco didn't do much to stop smoking, but vaping and preventing smoking in public areas did. Changing social attitudes to smoking is fundamentally what reduced it.
Personally, I think it's better to use the carrot and not the stick. It shouldn't be the responsibility of the state to raise people's children correctly.
I think this works in my experience. As a child, my parents would let me have a small drink with a meal. As I grew up I never felt the need to drink to excess, I knew how alcohol worked. My sibling had the same experience and doesn't drink. My younger sibling still, was prevented from drinking anything and then went crazy when they legally could.
comment 7y ago · link · parent
The same with something like JIT vs compiling, I don't want to find out that some edge case a quadrillion loops in has some simple error a compiler could have found.
comment 7y ago · link · parent
The next approach is probably VPNs, although they won't last forever. Governments could always just pass a law outlawing encryption (China has banned VPNs) or compelling services to allow them to man-in-the-middle for any connection. Once it becomes illegal to hide your online activities, there's very little you can do and remain legal.
That said, tricks also exit for hiding data in plain sight (see steganography [1]). Then you end up in this weird territory of illegal numbers and representations of them [2].
comment 7y ago · link · parent
comment 7y ago · link · parent
The only thing is PCB space, but even then, I wouldn't except modern chip processes not being able to replicate the BIOS setup in a small chip. It should even be possible to get a BIOS into the same die as the processor to save space.
By the way, the reason for wanting x86/AMD64 is because OSes that support a BIOS are already built for these architectures, whereas anybody building OSes for ARM doesn't expect such niceties, hence the current state of mobile phone OSes. If ARM gained BIOS support, it would too be suitable.
comment 7y ago · link · parent
comment 7y ago · link · parent
Why does it have to be this difficult to try a different OS, when loading an OS onto a new laptop is so relatively easy? It shouldn't be so difficult to get basic functionality up and running.
comment 7y ago · link · parent
All it would need is an ESP32, IMU, heart rate sensor, micro SD card reader, audio jack, LiPo and touch display. Make it work with the Arduino IDE and things get very exciting for hack-ability.
Honestly, the watch makes me more excited than the phone.
comment 7y ago · link · parent