REST API (Link)
RESTful API is an interface that two computer systems use to exchange information securely over the internet.
RESTful API is an interface that two computer systems use to exchange information securely over the internet.
// https://levelup.gitconnected.com/8-ways-to-measure-execution-time-in-c-c-48634458d0f9 | |
// Ways to Measure exeuction time in c++ | |
// 1. Using the ‘time’ Linux command (Run program with "time ./program") | |
// 2. Using <chrono> | |
// 3. With <sys/time.h> and gettimeofday() | |
// 4. With <time.h> and time() | |
// 5. Using <time.h> and clock() | |
// 6. With <time.h> and clock_gettime() | |
// 7. With <sysinfoapi.h> and GetTickCount64() (For windows) | |
// 8. With <processthreadsapi.h> and GetProcessTimes() (For windows) |
Fix for docker kea container restarting
export LOCAL_DIR=$(docker inspect -f '{{ .GraphDriver.Data.UpperDir }}' dhcp-kea-1)
pushd $LOCAL_DIR/run/kea/
rm kea.kea-dhcp4.pid
popd
// To Build and Run | |
// g++ main.cpp -g -lgtest -lgmock | |
// ./a.out | |
// links | |
// https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md | |
// https://stackoverflow.com/questions/58501850/googlemock-how-to-use-mocking-in-test | |
// https://qiangbo-workspace.oss-cn-shanghai.aliyuncs.com/2018-12-05-gtest-and-coverage/PlainGoogleQuickTestReferenceGuide1.pdf | |
#include "gtest/gtest.h" | |
#include "gmock/gmock.h" |
https://askubuntu.com/questions/125257/how-do-i-add-an-additional-hard-drive
First you need to identified the new hard disk.
press CTRL+ALT+T to open a console then type :
lsblk You will see something similar with this:
loop0 7:0 0 86.6M 1 loop /snap/core/4486
// To Compile & Run | |
// gcc -o test2 test2.c -lrdkafka -ljansson | |
// ./test2 | |
#include <stdio.h> | |
#include <unistd.h> | |
#include "kafkaProducer.h" | |
#include <librdkafka/rdkafka.h> | |
#include <jansson.h> |
Hadoop comma****nds
hdfs getconf -confKey fs.defaultFS # ( new property ) # Get namenode of hadoop****
https://data-flair.training/blogs/top-hadoop-hdfs-commands-tutorial/