OTA good practice: prevent "without OTA" updates [closed] - iot

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 9 months ago.
Improve this question
I am using an esp32, with the function esp_https_ota, but i think the situation applies in any iot OTA.
Let's take the situation:
I release a release whose firmware badly controls subsequent OTAs
I would like to release a patch ... but I can't because I broke the OTAs
Are there any tools or best practices to address this?
NB: I am not looking for a "solution", I do not want to remedy a problem that has already occurred, I would simply like to understand good practices.

The easiest way is to work with a beta release; in my devices you can choose a firmware location; the regular and a beta/test location. Last only for devices in reach of course. Will prevent most of the problems.
And the function you intend to I guess is the app rollback function. Although it has some possible security issues, if you run the program and let it do some easy tasks to verify basic function and consequently validate the image, 99% of your problems is solved.
To tackle the last percent I added OTA over SD, so people can put a firmware image on sd card. In my opinion wifi/https takes a lot of buts and ifs to work.

Related

Sound Localization with a single microphone [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am trying to determine the direction of an audio signal using the microphone on an iPhone. Is there any way to do this? As far as I have read and attempted, it isn't possible. I have made extensive models with keras and even then determining the location of the sound is shaky at best due to the number of variables. So not including any ML aspects, is there a library or method to determine audio direction from an iOS microphone?
No, in general it shouldn't be possible (Even with machine learning)--you need at least two points (and excellent timing) to determine a direction. You MIGHT be able to do something with multiple iPhones, but that would require very tight timing and some learning to determine where the phones are in relation to each other--and I doubt such a library already exists for the iPhone (existing libraries could be ported/adapted though)

Rails code quality tools that I can run in development mode without sharing my code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I came across https://codeclimate.com.
Super awesome, but I'm working on a project whose code I cannot share with others or Code Climate.
Now I would like to be able to improve my code quality and wonder if anyone can suggest tools that do what codeclimate.com does but locally in development mode, without me having to share my code.
The metric_fu gem seems to be the best option combining all known test tools into 1 an generate a neat report although its not as nice and fully featured as code climate.com
We can use Fog gem which give code complexity at class and method level.
To check code duplications we can use Flay gem.
Both give same result that code climate gives.
Now there's an exact answer: Last year Code Climate released a new platform which includes a command-line interface, Code Climate CLI. It runs entirely on your computer (in a Docker container) and doesn't require a Code Climate account.

Unit testing for iOS projects [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm still relatively new to iOS development and also an absolute stranger to any kind of testing that is not compile, run, and check whatever comes to your mind.
This is obviously a weakness on any developer's profile and I'm decided to get ride of it now that interesting, real projects are coming my way.
In my quest to look for the best approach to go from 0 to 100 as soon (and well) as possible I'm coming to the specialized community to get your feedback.
At the same time I'm asking for your tips I'm also getting into Amazon to look for well-reviewed books on the subject and Google to get the rest. I'm just coming here to gather the feedback of those willing to spare a minute or to so I can probably hit jackpot with a great advise and better plan my learning strategy.
Thats right. For my job testing and test driven development is indispensable.
I often use Java and JUnit, but for Objective-C and XCode I think this screencast is a very good start: http://qualitycoding.org/objective-c-tdd/
Since I watch this screencast I use OCHamcrest and OCMockito (both explaind in this screencast) as well as SenTestingKitAsync for testing asynchronous functions.
I think the Clean Code book is a must have for every developer. There is a chapter about testing.

trigger.io - Looking for data storage possibility [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I know this is not a technical question but I don't know where to ask elsewhere.
I use the very cool toolkit called trigger.io to develop apps for both android and ios. Now I would like to use something like a database to display data in my app.
Firstly I found a realtime backend called firebase: http://www.firebase.com/
Nice but it takes a while until one gets access to it since it is still in beta.
Then I found a cloud service called Kinvey: http://www.kinvey.com/ Also interesting, but it is free as long as only 200 users download the app.
So do you know any alternatives to store data and use it for my app?
That would be very helpful,
thanks enne
Sure. Parse is an easy option. Basic plan to get start is $0 a month.
Also, there is nothing stopping you from bundling (or download and saving and caching) a json file for use in your trigger.io app.

What test harness tool/framework can test concurrent requests in a Rails app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
How can I test my Rails app with N concurrent users?
These simulated users will do some actions like upload/download files, etc.
Are there any frameworks or free tools that support this?
ab(Apache Benchmark) is made for that. Here is an example:
https://github.com/igrigorik/async-rails
I use jMeter, although the UI is a little rough IMO. I ended up sharing a lot of code between my easyb (Groovy-based) specs and a mini-DSL I used to create jMeter config/execution files (XML) so redundancy between specs and load testing was reduced. The same should be doable in Ruby as well.
JMeter allows concurrent testing, ramp-ups, all sorts of stuff. I don't know if it does everything a commercial tool does, but I've used it for a long time on a wide range if apps and it's been, more or less, satisfactory.

Resources