Skip to main content

Posts

Spring Cloud Vault | Part 1 Installing HashiCorp Vault as a Service on Ubuntu

  Introduction: HashiCorp Vault is a powerful tool for managing secrets and protecting sensitive data. It provides a secure and centralized way to store, access, and manage credentials, tokens, and other secrets. In this blog post, we will walk you through the process of installing Vault as a service on an Ubuntu server, enabling you to harness its capabilities to enhance security and manage secrets effectively. Prerequisites: Before we begin, ensure you have the following prerequisites in place: An Ubuntu server with sudo privileges. A basic understanding of the command line. A user account with sudo privileges. Step 1: Import HashiCorp GPG Key: HashiCorp provides a GPG key to sign their packages. You need to import this key to verify the package's authenticity. Run the following command: curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg Step 2: Add HashiCorp APT Repository: Next, add the
Recent posts

Hack your old car radio into Bluetooth streaming device

Mazda 3 1.6L 2010 This is my old car, Mazda 3 1.6L 2010 model. This car stereo radio model has no any digital reader like USB or Bluetooth, just CD reader and FM/AM radio function.  But it has a strange button name "Media" on the right and I can't figure out what this thing for. So, I do a google and find something like below. AUX input port, car stero, Mazda 3, Sanyo A media button is for AUX input and it's didn't connect to anything. So, I design to use some Bluetooth module connect to it. Anyway, it's mine and it's old, So I can do anything without feeling pity with it. Alright, do research Car stero model nameplate My car stereo part number is "BCB1 66 ARX" I do research but no luck. There is no any document. But I found something look familiar like my stereo model. This is an auxiliary pin port diagram of J702 connector, g-pin is right channel input, f-pin is left channel input and e-pin is s

Call web service with Arduino using SOAP message over HTTP

There are many ways to communicate between two devices. One of that is the efficient, simple and cheap way: Web Service. Web Service is a software system designed for support communication over a network. To communicate between Arduino and host computer, we can apply Web Service which uses Arduino Ethernet Shield. The example from http://arduino.cc/en/Main/ArduinoEthernetShield describe how to call web server over HTTP protocol. We are able to apply to the call to a web service provider by sending a SOAP message. This article shows how to call the web service provider with Arduino and ethernet shield. Server-side install web service provider, developed with Java language and deploy on apache tomcat and client-side is an Arduino with Ethernet Shield installed. Arduino and Ethernet Shield From WebClient in Arduino Example, demonstrate how to call web server by using an  ethernet shield . Like use telnet command call to server with puting some instruction command within the reque

Simple Arduino Digital Osscilloscope

This article about how communication between Arduino and Java via USB. Due to “Arduino Playground” http://playground.arduino.cc/Interfacing/Java that describes how to communicate between Java and Arduino via USB port. This article is adapted to an osscilloscope. Arduino In the example, Arduino Uno to generate 25% PWM wave on PIN3 and then connects PIN3 and A0 together. In the loop() function, read an analog value from A0 and send thru USB by Serial.println() function. void setup () { Serial.begin(115200); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } pinMode(3,OUTPUT); //PWM 25% duty cycle on pin 3 analogWrite(3,64); } void loop () { int in = analogRead(A0); Serial.println(in); } Java The Java project “Simple oscilloscope” created by Netbean IDE and use JFreeChart library for creating graphs. The Simple oscilloscope implements SerialPortEventListener, when data is incoming on USB port the program call function

Time attendance with arduino web service

From the previous article , now we apply to the real world application. The time attendance machine which uses RFID is a good example. This article demonstrate you to how to call web service provider from Arduino and how to plug the Ethernet shield, LCD shield and RFID module to Arduino together. The RFID time attendance reads tag key and send tag number of computer for request employee name and then display employee name and time on the LCD. After computer receive tag number, program find employee ID and record employee tag them to excel and then send the employee name back to the client. In this article, the process of communication is web service by soap message. The computer server contains Microsoft excel file contain employee data. When the server receives a tag number, the web service program finds the employee name from excel file and write tag time to excel file while send back employee name.  RFID Module The Radio Frequency Identification (RFID) Reader Module is