how can asn1 notation and libraries help me? [closed] - network-programming

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Abstract Syntax Notation
I'm in the process of writing a network client and server, in the process of research i came across asn1 notation.
How does asn1 notation help me program network services and what problems does it solve? Is it worth using? does it simplify network programming, or is it something i can do without? Are there alternatives?
I'm looking for tutorials on asn1, how and why i should implement it? Are you using it? If so, how are you using it.

You should not implement ASN.1, (unless that is explicitly your goal).
Rather, most ASN.1 users find a library and use the library.
(in my experience, any library that is good also costs serious money).
I would not use ASN.1 unless you need to. Interoperating with something that already specifies ASN.1 is a good reason to use it. (example: I think that Kerberos transactions are encoded in ASN.1) Otherwise, I'd look at any other format, such as XML or JSON.

Related

Convert shp file or geojson to isobus iso-xml ISO 11783-10 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
has anyone had any experience with ISOBUS Iso-XML (ISO 11783-10)?
I would like to convert some geojson and/or shapefiles (.shp) to this format but am having trouble finding any information.
The specification of ISO 11783-10 is not free. You can buy the specification (google for "ISO 11783-10"), the documentation is high quality and affordable (I'm not affiliated in any way). The bought documents are distributed with some "license" and will be marked with your name, so buyers will be reluctant to share them. There are many concepts involved and details are cryptic, therefore you really need the specification to work with this format.
If you write source code encoding/decoding this format, it will depend on the specification. Distributing your source code + documentation might or might not infringe on the IP/license (I'm not a lawyer). Publishing detailed responses on this subject in open fora on the internet might or might not infringe.
There are quite some developers writing code which deals with ISO 11783-10, but I think the scarcity of freely available source code (e.g. on github) and open discussions on internet is a direct effect of the specification publication policy. It's sad because this domain is complex, has high impact, has many details which are very instance-specific (e.g. for a specific vehicle-manufacturer, accidental complexity), so open discussions and source code could improve productivity for many.
Agleader software SMS Basic has the option to export shapefiles to ISOBUS format.

How to adjust Key Derivation Iterations on iOS Key generation? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm currently working on an app that needs to communicate with a secure system. I need to generate a public and private key according to a couple of requirements. According to system specs, the key derivation iterations is required to be set to 1000, but I can't find any way to do this on iOS.
Can anyone help me out? Thanks!
As stated in comment, your question is a bit too broad. I am guessing that you are asking about PBKDF2.
You can use CommonCrypto to do that. I used it with Objective-C and it was relatively easy. I think there might be some difficulties to use it with Swift, but Google search has a lot of info how to do that.
You will need to use CommonCrypto function CCKeyDerivationPBKDF - link to docs. There is a round parameter which I think is what you are looking for.
This question might help too.

What does “consume an API” means? With details, please [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I would like to know what "consume an API" means in a less technical language possible and would like too some simple example in git and, if possible, using Ruby. I understand that I may be asking a lot, sorry for that, but I can not understand 100% of the examples I found.
I can not go on, because I have not yet been able to fully understand the subject.
Example:
I have a application, a CRUD simple and a API isa JSON that extract the results this CRUD?
Sorry for my limited understanding. I would very much like details with code example, just something basic.
It means that you take in data from an external source/url and do something with it. Here is an example:
http://www.theodinproject.com/courses/ruby-programming/lessons/file-i-o-and-serialization

How to write a program that outputs source code [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
This might not be the right place for this to ask, but I am interested in artificial neural networks and want to learn more.
How do you design a network and train it on source code so it can come up with programs for, for example, easy number theory problems?
What's the general name of this research field?
This is a hugely interesting, and very hard, problem area. It will probably take you months to read enough to even understand how to attack the problem. Here's a few things that might help you get started, and they are more to show the problems you will face than to provide solutions:
http://karpathy.github.io/2015/05/21/rnn-effectiveness/
Then read this, and related papers:
https://arxiv.org/pdf/1410.5401v2.pdf
Next, you probably want to read the classic papers in program synthesis and generation at the parse tree/AST level (mostly out of MIT, I think, in the early 90s.)
Best of luck. This is not trivial.

Hardware to Software incorporation/interaction [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have taken interest in basic hardware interaction with software.
What's a good language to start learning to control hardware? Can Java do the job?
As others have suggested, C or C++ is the "Proper" way to start as interacting with hardware can be done very directly due to the pointer structure (You can access arbitrary memory adresses).
If you haven't used C or C++ before i would suggest that you tried an arduino board as it would give you the feel of the C syntax and at the same time give you a very well documented board to play around with.
http://arduino.cc/
You should even be able to interface to the board in Java and C#
http://playground.arduino.cc/Interfacing/Java
http://playground.arduino.cc/Interfacing/csharp
This depends on the platform. If you have a good java API for your device, it works well enough. In general though C or C++ are the languages of choice when it comes to hardware. The reason for that is that they are able to directly access arbitrary memory addresses through the pointer construct. This is in most cases the way to interact with hardware. This is not directly possible in java.

Resources