Thursday, December 31, 2020

BigChainDB Links

 BigChainDB Server:

https://www.bigchaindb.com/developers/guide/tutorial-car-telemetry-app/

https://github.com/bigchaindb/bigchaindb

/home/ubuntu/Downloads/BigChainDBCarTutorial/


Edit: Jan 3rd: (concerning: ~/Downloads/BigChainDBTests):
I didn't I've much luck with
https://github.com/bigchaindb/js-bigchaindb-driver
https://github.com/bigchaindb/js-driver-orm

/home/ubuntu/Downloads/BigChainDBCarTutorial/


const BigchainDB = require('bigchaindb-driver')

const API_PATH = 'https://test.ipdb.io/api/v1/'
const conn = new BigchainDB.Connection(API_PATH)


error, this broke:

import Orm from 'bigchaindb-orm'

"import Orm from 'bigchaindb-orm'
^^^^^^

SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
"

https://github.com/bitcoinjs/bip39

error, this broke:


const seed = bip39.mnemonicToSeed('seedPhrase').slice(0,32)

                                               
TypeError: bip39.mnemonicToSeed(...).slice is not a function

    at Object.<anonymous> (/home/ubuntu/Downloads/BigChainDBTests/testtwo.js:8:49) `     at Module._compile (internal/modules/cjs/loader.js:1063:30) 

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)

    at Module.load (internal/modules/cjs/loader.js:928:32)

    at Function.Module._load (internal/modules/cjs/loader.js:769:14)

    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)

    at internal/main/run_main_module.js:17:47

found during debugging::

https://javascript.info/task/class-extend-object
https://stackoverflow.com/questions/38987784/how-to-convert-a-hexadecimal-string-to-uint8array-and-back-in-javascript
https://stackoverflow.com/questions/49854811/class-extends-value-object-is-not-a-constructor-or-null
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
https://stackoverflow.com/questions/51304884/error-typeerror-data-slice-is-not-a-function

https://ipdb.io/research/


or the the car tutorial. 




Sunday, December 20, 2020

LoRa Unlicensed Band

 https://makersportal.com/blog/2019/10/5/arduino-lora-network

https://www.digikey.com/en/articles/unlicensed-915-mhz-band-fits-many-applications-and-allows-higher-transmit-power
"FCC regulations for the 915-MHz ISM band, for example, place no restrictions on type of application or duty cycle."


Saturday, December 19, 2020

Follow-Up with Compiler Thoughts for mm-ADTdocs

Original:
http://raptorlicious.blogspot.com/2020/06/i-glanced-at-mm-adt-docs-and-started.html

https://www.youtube.com/channel/UCSX3MR0gnKDxyXAyljWzm0Q
Computer Science 

Assembler and gdb

https://tldp.org/HOWTO/html_single/Assembly-HOWTO/


https://www.gnu.org/software/gdb/


Dr. Martin J.M. Codrington
https://www.youtube.com/channel/UCsVxr0vvJlUaKxRoCmg5FcQ

CQL:
https://www.youtube.com/channel/UCsVxr0vvJlUaKxRoCmg5FcQ

Bartosz Milewski:
https://www.youtube.com/channel/UC8BtBl8PNgd3vWKtm2yJ7aA

Topos:
https://www.youtube.com/channel/UCxUZjZaLPsHPlp8AtkSBZiA

Mathématiques et programmation:
https://www.youtube.com/channel/UC1LQmyz-CJ7RYWVtkmcHr8g

Fun(c)tional Programming Group:
https://www.youtube.com/channel/UCZ9Qv0y5IS-0DsN4ZDTDyqA

Hackers at Cambridge
https://www.youtube.com/channel/UCNY6ekV9z84ZYL4qUDusTFw

Tutorials Point (India) Ltd.
https://www.youtube.com/channel/UCVLbzhxVTiTLiVKeGV7WEBg


Wednesday, December 16, 2020

Working on understanding GNU Make

Start with the files:

a.c a.h b.c b.h c.c c.h d.c

Create the object files by compiling and assembling:

gcc -c a.c   ==> a.o

gcc -c b.c  ==> b.o

gcc -c c.c  ==> c.o

gcc -c d.c  ==> d.o

Link all of the files:

gcc -o output *.o  ==> output

Files:

a.c
#include "a.h"

int add(int a, int b)
{
    return a + b;
}

a.h
int add(int a, int b);

b.c
#include "b.h"

int multiply(int a, int b)
{
    return a * b;
}

b.h
int multiply(int a, int b);

c.c
#include "c.h"

int merge(int a, int b)
{
    return multiply(a,b) / multiply(a,b);
}

c.h
#include "a.h"
#include "b.h"

int merge(int a, int b);

d.c
#include "c.h"
#include <stdio.h>

int main()
{
   int a = 121;
   int b = 5;
   int c = merge(a,b);
   printf("here is the merge %d\n",c);
}

How do I build a makefile that does this???

Makefile:

d : a.o b.o c.o d.o
    cc -o d a.o b.o c.o d.o
a.o : a.c a.h
    cc -c a.c
b.o : b.c b.h
    cc -c b.c
c.o : c.c a.o b.o
    cc -c c.c
d.o : d.c c.o
    cc -c d.c

Commands followed to compile:

make

++++++++++++++++++++++++++++++++++

use make test:

https://stackoverflow.com/questions/4927676/implementing-make-check-or-make-test







Tuesday, December 15, 2020

compiling multiple c files for ardunio

compiling multiple c files....

For Ardunio?
It says to get make to do it.

or I might need to compile all of the files

https://www.cs.utah.edu/~zachary/isp/tutorials/separate/separate.html