A Java class to read ultrasonic sensor readings [raspberry pi] [HC-SR04]

I am working on an embedded systems project these days which the core program is written in java to work on a raspberry pi 3 model b in raspbian os. We needed to connect few ultrasonic sensors for that device so i have written a java class to interface the HC-SR04 ultrasonic sensor with the […]

How to resolve the Opera Browser opening issue in Kali linux 2018

The season for not opening the Opera browser in Kali is that, opera can’t open with the root account. So you can use the following trick to open opera as an usual application in kali linux by following the simple steps below. (i assumed you have already downloaded and installed opera in kali) Step1: Goto […]

How to run Windows PowerShell Scripts? A Quick Guide.

Is it possible? I have encounter a situation that execute a same java program with different combination of program arguments. Surely, if you are in linux you can use shell script. What about windows? Yes, windows has Windows PowerShell so i have used windows powershell to do the exact same this if i was in […]

Custom CSV file reader class for your java projects

Custom CSV file reader This class includes the following methods. Constructor : ReadCsv(String filename) int getNumberOfHeaders() : Returns the number of Headers/coloumns String getHeader(int headerIndex) : Returns the specific header String[] getHeaders() : Returns the array of Headers ArrayList<String[]> getData() : Returns complete data int getSize() : Returns the number of records Feel free to […]

Verilog HDL – How to store data from a file to an array of registers

Following test bench shows you how to store data from a file to an array of registers. This, will be useful in if you are making an instruction memory or data memory sort of module. Here, we will read the “data.txt” file which will contain 32 bit number lines separated by new lines like shown […]

"I hear and I forget, I see and I remember, I do and I understand."
~ Confucius ~
{ SAUSECODE.COM | LinkedIn }