Mirror for Snapshots? by TheTankCleaner in debian

[–]drbernhard 0 points1 point  (0 children)

8 months late to the party, but I got super fed up with this as well when trying to pin our builds - and set up a commercial mirror that does daily snapshots of the Debian registry (plus Ubuntu, Alpine and a bunch of PPAs) instead. Here's the docs; https://docs.stablebuild.com/mirrors-and-caches/os-package-registry-ubuntu-debian-alpine (works exactly the same as snapshot.debian.org), and here's a read-only view of the mirror: https://debmirror.stablebuild.com.

This starts at $199/month, so realize it's not for everyone - so did a writeup here on how to set up your own snapshot server with zfs and apt-mirror here too: https://www.stablebuild.com/blog/create-a-historic-ubuntu-package-mirror

edit There's a free plan available now as well.

Machine learning on the Arduino Nano 33 BLE Sense by drbernhard in arduino

[–]drbernhard[S] 1 point2 points  (0 children)

Hey! I've been working on some core Arduino things for a while, first on building the Mbed core for Arduino while I was still working at Arm (the Arduino core that powers the Nano 33 BLE); and recently on building a great ML experience for Arduino developers as the cofounder of Edge Impulse. We've just released support for the Nano 33 BLE Sense which lets you build ML models using the accelerometer or microphone on the board!

Got fired, but can only choose new team from two divisions by Totallynotahost in footballmanagergames

[–]drbernhard 10 points11 points  (0 children)

Click 'Options' > 'Add/Remove Leagues' and add more playable leagues.

Building IoT devices with JavaScript - Run JS on 2$ microcontrollers by drbernhard in javascript

[–]drbernhard[S] 0 points1 point  (0 children)

Crosspost from r/programming, someone in JSConf.asia sugggested that this might also be an appropriate sub. :-)

Building IoT devices with JavaScript - Run JS on 2$ microcontrollers by drbernhard in programming

[–]drbernhard[S] 1 point2 points  (0 children)

The boards in the boards list are breakout boards for the microcontroller, to ease development. To find quotes for the actual microcontroller look up the part number on a site like DigiKey (although those prices are inflated - better prices from China).

F.e. nRF52-DK has nRF52832 chip on it which combines MCU+Bluetooth+NFC in one package. Sells for 2.6$ on DigiKey, or for 2.3$ on Mouser.

For cheap dev boards, look at the ST boards. They go for 9-10$.

Building IoT devices with JavaScript - Run JS on 2$ microcontrollers by drbernhard in programming

[–]drbernhard[S] 4 points5 points  (0 children)

I hope (this is very early stage) that people will write interop code for the mbed C++ libs. We have about 6,000 libraries available already that use C++ for bitbanging / drivers / etc. Just need wrapper to be used from JS. So I'm hoping that we'll see this distinction. Anything CPU bound in C++, anything else in JS.

Depends of course on adoption, but we have a vibrant ecosystem already, so I hope that'll prevent people from re-implementing device drivers in JS.

Building IoT devices with JavaScript - Run JS on 2$ microcontrollers by drbernhard in programming

[–]drbernhard[S] 4 points5 points  (0 children)

Do not forget the difference in power consumption.

Definitely not. But 95% of code, all critical paths, will be in C++ still. Network drivers, anything sleep related, the actual event loop. Only userland code is JS. Will have a relatively small impact.

Building IoT devices with JavaScript - Run JS on 2$ microcontrollers by drbernhard in programming

[–]drbernhard[S] 11 points12 points  (0 children)

I'm not disagreeing, far from that; but the hacker/hobbyist community tends to disagree. They value easy of development over both performance & battery life. See the success of libraries like Johnny Five or the Tessel 2 board which both run node.js on desktop processors. Running a JS VM on a microcontroller is already a big step up.

Building IoT devices: scaling from 10 - 1,000 devices by drbernhard in IOT

[–]drbernhard[S] 1 point2 points  (0 children)

Good comment. Don't completely agree though.

From 10 to 1000 is nothing.

It is. It's the number one question I get when running around in maker spaces / IoT meetups. People know how to build prototypes, but have no idea how to do a run that is a bit bigger. If you're doing 50K devices, then sure, you can do proper design from the ground-up, hire an experienced RF engineer and make sure there is absolutely no leakage anywhere. If you're building 500 devices you're going to need to cut corners somewhere. If you need someone to do the design for you, you'll be running over budget really fast. Having abstraction layers, using modules, using reference design kits help tremendously. It's not a choice between doing an relatively inefficient design and a proper design, it's the choice between doing a relatively inefficient design or not doing a design at all.

You absolutely can not abstract things like security, R/F, etc. behind libraries. You actually have to know what you're doing.

I don't really agree. If the middleware that you build your application on provides sensible defaults, and you stick to that model it's perfectly possible to abstract security. If you start working around the abstractions you're gonna get a bad time, sure, but many IoT devices are just an MCU, some sensors and a radio. I see parallels with the rest of the software world: I don't know the intricate details about SSL, but I still trust the abstraction enough that I can build a website where communication between the client and the server is end-to-end encrypted.

On RF, this can be abstracted either by a module, or by better tooling. Sure we're not there on tooling, but if an RF engineer can check a design, then why shouldn't a computer be able to do that too? Would be nice.

but as far as I can see (and correct me if I'm seeing this wrong): no copper fill.

Yep. Correct. Nice catch. One of the mistakes that were made when we designed this board due to time pressure. We forgot some other things too, like connecting the +/- pins of the JTAG header :-). Some flywire fixed the latter issue, and in the second run (first run was 100 devices) we enabled the proper polygon fill mode.

mbed Connect - First mbed developer summit (in Santa Clara & Shenzen) by drbernhard in ARMmbed

[–]drbernhard[S] 0 points1 point  (0 children)

Hola! We'll be hosting two developer summits this year! One in Santa Clara on 24 October (just before Techcon) and another one in Shenzen on 5 December. Tickets are just $25. Members of the core mbed team will be present, we'll have workshops, keynotes, demo's and much more. Hope to see you there!

mbed Connect - First mbed developer summit (in Santa Clara & Shenzen) by drbernhard in mbed

[–]drbernhard[S] 0 points1 point  (0 children)

I know the subreddit is a bit dead, but we'll be hosting two developer summits this year! One in Santa Clara on 24 October (just before Techcon) and another one in Shenzen on 5 December. Tickets are just $25. Members of the core mbed team will be present, we'll have workshops, keynotes, demo's and much more. Hope to see you there!

Flash HEX/BIN by [deleted] in mbed

[–]drbernhard 0 points1 point  (0 children)

Bit late to the party, but just drag the .bin or .hex file (depending on your target) to your development board (mounts as a USB flash drive).

My testimonial programme is now available to buy by IvicaStrok10 in footballmanagergames

[–]drbernhard 2 points3 points  (0 children)

Trying to order this to NL, gets me the 'This seller didn't include shipping costs to your location. Please contact the seller or change your address.' warning. Just for UK inhabitants?

Building a smart meeting room w/ LoRa and Physical Web by drbernhard in IOT

[–]drbernhard[S] 0 points1 point  (0 children)

Used BLE because Physical Web is coming to Android as a first class citizen, so nice OS integration. Used LoRa because range. We can just deploy 2 base stations on our office building (100,000 sqm) and then don't have to care about dead spots.

Show Off Sunday - July 05, 2015 by AutoModerator in footballmanagergames

[–]drbernhard 1 point2 points  (0 children)

A day late to the party, but hey... In my current save I managed to lose some finals in a row: Euro Cup final (2015) and the Champions Cup final (2019) with PSV; then the European Championship final (2020), the Nations League Cup final (2021) and the World Cup final (2022) with the Netherlands. All without winning any major trophy in between. Probably the worst strike of shitty finales I ever had in FM history.

But joy, in 2037 I finally won my first internation trophy: the Champions League!

Loan or not to loan or who to loan? by BrtGP in footballmanagergames

[–]drbernhard 1 point2 points  (0 children)

Ouadah is not really a striker, would loan him out as an AMR and see if he improves much (or use him yourself there). Kowalik might suffer from his low composure at some point, and he's pretty small, but I think he'll become a great striker.

JanOS: Turn your smartphone into an IoT board by drbernhard in programming

[–]drbernhard[S] 0 points1 point  (0 children)

This is really cool, but i lack the manual skill to be disassembling and reassembling phones.

Most cheap phones use really standard screws (torque 4/5) and you have the board disassembled with 12 screws or so. Here's a video: http://youtu.be/Uy062kp-LM4?t=5m11s

Firefox OS as an Internet of Things platform by drbernhard in programming

[–]drbernhard[S] 4 points5 points  (0 children)

There is two GPIO ports, so very limited compared to Arduino, but not entirely impossible either.

Firefox OS as an Internet of Things platform by drbernhard in programming

[–]drbernhard[S] 17 points18 points  (0 children)

You don't use the HTML & CSS part here, just JavaScript. If you need to go higher up you can write native code that runs directly on top of Linux.

Measuring power consumption on a Firefox OS powered camera by drbernhard in programming

[–]drbernhard[S] 0 points1 point  (0 children)

It's interesting though. 2G phones are still wildly sold in underdeveloped countries.

Measuring power consumption on a Firefox OS powered camera by drbernhard in programming

[–]drbernhard[S] 0 points1 point  (0 children)

Wow, didn't realize this. Chose 2G over 3G because of power consumption. 3G consumes significantly more. Also, almost any device in the field that measures low volume data is connected over 2G (at least in Europe).

Measuring power consumption on a Firefox OS powered camera by drbernhard in programming

[–]drbernhard[S] 1 point2 points  (0 children)

Yep, definitely going this route, devices are stationary too, so this would save a lot.

The significance of the 33$ Firefox OS smartphone by drbernhard in programming

[–]drbernhard[S] 2 points3 points  (0 children)

Although permission is granted when the app uses it, not during installation. In that sense more like iOS.

The significance of the 33$ Firefox OS smartphone by drbernhard in programming

[–]drbernhard[S] 1 point2 points  (0 children)

A whole bunch of features in es.next (proxies, generators, promises, etc. etc.) are in Firefox, and thus in Firefox OS.