Better HN
topnewbestaskshowjobs
Log inSign up

bArray

7,485 karma · joined Mar 14, 2016 (10y ago) · 2,314 submissions

Why jump in one pond when you can dip your foot in many?
Submissions

comment 7y ago · link · parent

> If there exists a solution to either not using cloudflare,

> 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

For a site focused on transparency and privacy, it's parked behind CloudFlare. I can't view the site past the about page without JS enabled and allowing CloudFlare to probe and track me.

> 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

I disagree, if you miss an individual on the first capture, there's always the second capture. The number of people you fail to detect because their face is halfway between two screens would likely be far exceeded by the number of faces you fail to detect because there's an issue within the algorithm itself or simply the face isn't fully visible.

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

This sounds like hell, especially coupled with China trying to "predict crime" before it happens [1] and a "social credit" score based in part on who you are seen with [2]. It's only a matter of time before this technology is implemented in your Country [3].

[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

> Well, they are having to align some number of sensors

> 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

That's amazing and I'm glad that it's possible, even by the standards of older technology. I certainly think dropping packages into the PCB is the lowest hanging fruit for reducing depth.

comment 7y ago · link · parent

I think it's more that ultra-processed foods typically have high amounts of sugars and carbs. Any diet where you remove sugar and carbs, you'll see weight loss. Diabetics demonstrate that our relationship with food is much more complex than most people think - for example, diabetics don't have to inject insulin if eating white cheddar cheese.

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

Yeah... I'm not entirely convinced about this future.

* 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

Eh, I used to think the same thing about coffee, but here I am with a grinder and a plunger. Instant coffee is okay at a push, but the taste improvement is massive, especially when grinding your own coffee (you can actually taste the flavours they claim to put in there).

As for tea flavours, the difference is usually just the addition of herbs and spices.

comment 7y ago · link · parent

Thank you for your explanation. I guess your last point is why I thought I was missing something:

> 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

I've been hearing about FPGAs for the last few years or so, what would be the benefit to using one over something like a Raspberry Pi? What's the killer application?

comment 7y ago · link · parent

I would say that you're barking up the wrong tree. It's really about cost of investment vs return on investment. 15 tonne robots still cost too much to build, transport, run, etc. Therefore, they have no competitors, because everybody else did the same napkin math but realized it wouldn't work.

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

Firstly, thank you for taking the time to reply. In your opinion, specifically regarding the hardware, do you believe there are improvements that could be made (in terms of design)?

> 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

Is a smart phone really the best way to type an essay or create a computer program? I do see the movement towards touch-only devices in younger people, but I'm yet to understand how people can productively type on such devices.

comment 7y ago · link · parent

I think the biggest failure (ignoring politics, markets, etc) was its complexity. Tech with moving parts tends to break. You also can't easily build something that is all things to all people, it's better to do a simple thing well than a lot of things awfully.

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.

[1] https://accounts.pi-top.com/products/pi-top/

comment 7y ago · link · parent

Can you even begin to imagine how much of the Internet's total bandwidth is used on adware/shovelware/crapware? And crazier still, how much of the world finds most of the web completely unusable as a result?

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

Agreed, correlation is not equal to causation. I think alcohol, drugs, mental illness and suicide should all be looked at together (at the very least). I suspect they might be just moving the problem elsewhere. Of course their statistics on drugs abuse will be approximations because people won't want to share their illegal habits.

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

> I note this policy is being mooted UK wide - good.

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

I'd go one step further, I would accept the existence of both typed and non-typed "runtime" versions of Python (i.e. a run-time flag or program argument). Writing a quick script? Reach for the non-typed version. Writing production software? We ought to make sure we're type checking. Default to non-typed to stop beginners breaking their code.

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

When it comes to this stuff, simply look at what China is doing. It seems to be ground zero for future censorship methods.

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].

[1] https://en.wikipedia.org/wiki/Steganography

[2] https://en.wikipedia.org/wiki/Illegal_number

comment 7y ago · link · parent

If you are interested in this, I would recommend checking out DroneSimLab [1]. Both are developed for the Unreal Engine and both have SITL (Software In The Loop) for drone control. One thing DroneSimLab will allow you to easily do is add multiple drones. If I remember correctly it uses Gazebo to create semi-realistic control for the drone.

[1] https://github.com/orig74/DroneSimLab

comment 7y ago · link · parent

Eh, it's not that difficult. What do you think uses all the power in your phone? It's the display, WiFi, cellular, etc. Most of the time your CPU is under-clocked to save power and reduce heat. A lot of the Intel Atom chips will run as passively as an ARM chip will with comparable throughput.

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

They have a guaranteed customer if this is the case. PineTime also makes me quite excited.

comment 7y ago · link · parent

Maybe for some, but why almost all but a few "indie" phones are locked down in this way? I suspect it's more about cost as having a "motherboard" chip means increasing the BOM and pushes an already tight PCB layout to be tighter. Still, I really hope there is some way to incentivize manufacturers to do this.

comment 7y ago · link · parent

As I said in different comment, without something like a BIOS to get some code running with some basic functionality, things are quite difficult [1].

[1] https://news.ycombinator.com/item?id=21005593

comment 7y ago · link · parent

> Also, there are x86 android devices but I wouldn't expect them to be any more friendly than arm-devices.

Yeah, without some kind of boot code (i.e. BIOS or UEFI) to help get the ball rolling, you essentially have the same problem.

comment 7y ago · link · parent

Can we just build phones with a basic x86/AMD64 architecture and a small BIOS so we can load any OS onto them easily from a micro SD? I recently tried to get Halium boot running for my mobile, it's nigh on impossible if it's more than a few years old. (This was in an attempt to load Ubuntu OS onto it.)

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

Finding the sites themselves is easy with a VPN, reverse SSH shell or proxy. Make sure all of your torrents are encrypted and it'll be more difficult for them to actively block packets (which is the way it will eventually go).

comment 7y ago · link · parent

That's my hopes for PineTime, I would love for it to be a standalone "fitness tracker" and MP3 player rolled into one. It's a very nice price point for a watch to hack with.

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

The ability to make contributions to improving hardware and software is important. Perhaps I want my MP3 player to support a new audio codec, or to display a large clock, or to track my steps when I go for a walk - you get the point. When it's open source, I'm able to make these changes, or use the work of others.
1
585960
78