Hacker Newsnew | past | comments | ask | show | jobs | submit | thehta's commentslogin

Taking a guess, probably has something to do with batteries heating up and solder having a low melting point.


Sounds really cool, do you have a write-up of it anywhere?


https://blog.waleson.com/2022/03/the-worlds-first-cowboy-key...

Source code here: https://github.com/jtwaleson/cowboy-bike-remote-ble

I’m currently working on finalizing the PCB version, the first one had some flaws so the battery drained really quickly.


Thank you. I just recently discovered the nRF52 as a potential solution for my own BLE project. To use a keyfob as a housing is brilliant and very 'stealth'. I have no experience with the nRF52 chips, but this will be a very useful resource for me.

In your blog post you mention that "switching between 24km/h and 25km/h" is very important. May I ask why? Isn't such a speed difference almost negligible as you easily surpass it when pedalling?


If you ever get stuck don't hesitate to reach out :)

There is EU regulation to limit the bike to 25km/h. If you look at the code you can see how the switching between 24 and 25 km/h works. The rest I leave as an exercise to the reader.


The idea is that Meta uses WhatsApp contact lists to build and maintain their social graphs, which is in turn used for advertising.


Any working cross-platform rippers that you know of?


IMO the energy you expend doing exercise is coming from a completely different place than energy for knowledge work. On the contrary, doing exercise clears your mind and engages your body -- the opposite of sitting at a desk. In my experience you will feel your baseline "mental energy" also start to increase.


I think GP isn't talking about energy used to perform an exercise, which (IMO) indeed comes from "a completely different place". I read their comment as talking about energy required to start doing an exercise, day in, day out. This, at least for me, comes from the same place as energy needed to start writing code at work, or to get out of the house and run and errand. Burnout happens when that energy source becomes depleted or unreliable.

Based on my experience (including lack of the ability to stick to any exercise regimen long-term), I second GP's post.

I also agree that doing exercises helps recover that second type of energy. It's a positive feedback loop - but the problem is, you won't be able to start it if you're too depleted on the "starting energy". Like with an ICE car - the engine does recharge your battery, but you won't be able to start it if the battery is already dead.


Speak for yourself or citation needed as they say.

It's also only anecdata for me, but I do have hobbies that qualify as sports but after an exhausting day at work I want nothing less than to also exhaust my body and this has been a theme forever.

Also doing any kind of exercise in the morning is the worst and it doesn't clear my mind, it makes me want to get back to bed and the motivation to start work is at a complete low. Some people may well feel refreshed or good after exercising, for me it's the complete opposite - but I don't claim authority.


How is it weird? You literally go from

> viewing text/parsing XML

to

> allowing remote sites to execute code on your machine, immediately when you load a site.

That's quite a big jump, regardless of all the browser sandboxing.


I see people comment this on HN on a daily basis and it always boggles my mind. For me this reads as: 'This thing that was initially conceived years ago when computers were incapable of much more than display text should never evolve/change to take advantage of current capabilities'.

Yes, initially the web could only display hyperlinked text. The same can be said for many technologies/inventions, should we therefore never expand the capabilities of our tools? What is the difference between the web and your operating system in that regard? Why are OS APIs so different?

We can also look at the positive effect this evolution has had where what used to be platform specific tooling is now often simply available via a URL. I much prefer that over random executables that are not sandboxed and by default have full access to all your data. Yes, this can be mitigated, but the average user won't.

No it's not all sunshine and roses, we've made trade-offs with regards to performance and UX among others, but this is still an ongoing process as the modern web is still relatively young and changing.


> take advantage of current capabilities'.

The problem is that, usually, turning off "current capabilities" leads to a faster loading, lower distraction, less ad-contaminated, less janky, and all around better experience. In an effort to squeeze every ad dollar out of the eyeballs crossing the page, sites are using modern capabilities as weapons against their users.

If sites continue to work js-free, there's a simple switch to enable to improve my browsing experience.

And it even defeats the anti-adblock crap reasonably often.


We have HTML and CSS, which evolved quite a lot and already allow for what 90% (estimate) of the websites do.

Usually it is people using JS, where they should not and tracking from FAANG and others, which are the reason to block JS. You are painting a wrong picture there.

If 95% of the web devs used JS in appropriate ways and it was not used so much for spying on people, well, then it would be a different story.


[flagged]


Would you please stop breaking the HN guidelines? You've been back to doing it repeatedly lately. This is not cool.

https://news.ycombinator.com/newsguidelines.html


It's possible to create javascript-less sites with partial hydration, e.g. by using Svelte and Elder.js. They are loading fast and working fast. They are favored by search engines. They have much fewer issues with accessibility.

These people, who advocate to use aged JS libraries to poorly implement modern HTML5 features while breaking accessibility, are the weirdest form of Luddites ever.


JavaScript's a massive security threat. It's really weird to me that people seem to just assume it's fine, and isn't the most dangerous damn thing in common use on computers. Every time someone (usually Google) pushes another way for it to touch hardware, I'm surprised that most developers are like "oh good, so glad, can't wait 'till Safari catches up in 5 years". Um... no? It's a terrible idea? Please don't ever?

We ought to be reigning in what JS can do and removing access, not adding more. For one thing, it shouldn't be able to send data without our say-so. It's insecure and spying-enabling by design—why does clicking a link mean the page that loads gets to send my mouse movements and keystrokes to its master? That's crazy, and has been a major contributor to the new norm that all kinds of privacy-invasion is fine. "It's just 'telemetry', what's the big deal?" Ugh.

"That's alarmist, JS is super secure" right, and most folks weren't worried about their CPUs betraying them until Meltdown and Spectre—smart money says there is a vulnerability we'll find shocking in one or more JavaScript implementations, right now, waiting to screw us.


> smart money says there is a vulnerability we'll find shocking in one or more JavaScript implementations, right now, waiting to screw us.

https://www.vusec.net/projects/smash/


We spend a ton of time locking down OS API/ABIs to prevent sandbox violations and I wouldn't trust a shared server with sensitive data unless I had an IT team working on it. JS seems to be a lot better with sandboxing though. You still have to really worry about CSRF though. I use multiple profiles to ensure sketchy sites can't get at my data.

I think JS gets a bad name when people use it to make crazy modal popups or inline video ads or change the way the page scrolls. Beyond that it's cool that devs can get really creative with a website and I love coding in JS. But also you're adding a lot of complexity for that. HTML/css are fine for creating a website that communicates information and maybe even looks nice. And they aren't actually a programming language, they're just data. JS is a full programming language and gives you enough rope you hang yourself and I think developers kinda go off the rails messing with their sites and ruin the user experience.

It is cool that I can have whoever execute code on my machine without worrying if it will get privileged access to it. That is a pretty amazing feature of JS/browsers.


It is a weird hang up because JavaScript/scripting was already ubiquitous in the 90s! I programmed "Dynamic HTML" pages as a summer job in '98 or so when I was in high school.


> we've made trade-offs with regards to performance and UX among others

Security too! https://www.vusec.net/projects/smash/


There was never a technical limitation to running software over a network, unless you go back to before computer networking was invented, far far before the internet. Putting all the capability into the browser is what people have a problem with.

The modern web is anxiety-inducing and incredibly scary to people that pay attention. I don't want to spend an hour checking the js on sites before I use them to make sure they aren't malicious/mining bitcoin/whatever, so disabling JS is an easy out that preserves my sanity, and gives me a better experience. No cookies, no popups, no paywalls, no ads, no lag.


There's nothing wrong with using a school bus to carry 30 children to a school, just like there's nothing wrong with using JS to render a highly-interactive SPA.

But the vast majority of websites that use React are the moral equivalent of driving an empty school bus to the store to buy a loaf of bread: It's massively wasteful and frankly stupid.


> should we therefore never expand the capabilities of our tools?

Yes that's exactly what the luddites are arguing in favor of, rolling back progress, and dramatically stripping away capabilities. They don't consider any of it to be a net positive, they don't think of it as being progress.

It's not specific to JavaScript, it's far broader than that. It's an ethos.

In my observation they also typically want to go back to not having graphical user interfaces. They like a nice command line interface as a way of life. It seems silly to stop there though. The computer should be gotten rid of just the same to be philosophically consistent.


I think you are right in many respects. I would not consider myself one of the accused luddites, but in their defense, this ethos isn't baseless.

First and foremost, the luddites you speak of are programmers or sys admins. They have been using terminals and are still using terminals daily, and they see the benefits that those tools have to offer. Namely, they see composable, interoperable programs that abide by the philosophy that programs "should do one thing well" as the bench mark for real progress. I would say I agree with the merits of this perspective. But I still use VSCode in addition to vim, because I'm not a zealot and there are times when I want to edit something in a very flexible way that VS Code better facilitates.

Both ways of doing things have their merits I suppose. It just hurts a bit to see something simple and powerful be wrapped and rewrapped in progressively less helpful proprietary systems and given a JS front end that lacks all of the focus and freedom that charmed us with the systems to begin with.


Technically you already allow remote code execution via XSLT.


In a mere 20-ish years. Crazy.


And how many years did HTML exist before JavaScript was invented?


100000 years?


You just restated the belief as if the reason is self-evident. What's the reason? Security? Even displaying a JPEG has had security vulnerabilities. You can't really seem to escape that just by not executing code. And no PDFs too, I guess, because they contain code?


Reducing the attack surface is the pragmatic thing to do and it just happens that js alone makes a several orders of magnitude difference on its own. Don't let perfect be the enemy of the good.


HTML has never been XML.

And HTML + CSS3 is Turing complete without Javascript anyway: https://accodeing.com/blog/2015/css3-proven-to-be-turing-com...


Amen, I think if memory serves correctly HTML was SGML inspired and once XML became popular there was a XHTML standardization push for a brief time.

I think you could argue that the ubiquity of HTML led to people see value in something like XML back in the late 90's / early 00' and HTML drove XML invention and adoption and not the other way around.


Yes, but JavaScript has been a thing since the 90's and was widely used by web sites even back in the the days of GeoCities. So it's really a bit weird to complain about something that has been part of the web since almost its beginnings, and arguably has been one of the main drivers for the 'rise of the web' itself.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: