I am learning Python in 2020 – Beginner – Automate Backup of multiple Mongo Databases with python and a batch script

Operation System : Windows 10 IDE : VsCode Requirements : a computer, internet, notepad Book | Tutorial : see links below Git Project :None Goal Create a python program that backs-up a given database. This program should be called at intervals ( daily or weekly or monthly) by the Window task scheduler and should be […]

I am learning Java in 2020 – Beginner – Simple Spring REST Service Setup and basic Validation (Part 2)

Operation System : Windows 10 IDE : IntelliJ Requirements : Java 8 > , Postman ( For Testing) Book | Tutorial : youtube tutorial Java version : 12 Git Project : Here Parts: Part 1 Goal Learn how to indicate erroneous actions and objects in the REST Service Solution Main Changes Model During my research […]

I am learning Java in 2020 – Beginner – Simple Spring REST Service Setup with In-memory DB

Operation System : Windows 10 IDE : IntelliJ Requirements : Java 8 > , Postman ( Rest API Testing) Book | Tutorial : youtube tutorial Java version : 12 Git Project : Here Starter Project: Here Parts: Part 2 Goal Learn how to setup a spring rest application Learn how to add dependencies in the […]

I am learning C in 2020 – Beginner – Data types, Headers and Makefile

Operation System : Windows 10 IDE : https://cplayground.com/ Requirements: gcc compiler Book : Head first C chapter 4 Goal Learn more about C What I learned The different data types Keep in mind that there are other data types that are untreated here. Char I sincerely thought each char was stored as it is, but […]

I am learning Java in 2020 – Beginner – Absolutely Simple Restaurant DB connection using JPA

Operation System : Windows 10 IDE : Eclipse IDE ( Java EE – 4.15.0 ) Java version : 12 Less complicated version : In Java and in Python Requirements: Java installed, MySQL connector jar ( here) , MySQL Optional : Eclipse Java EE IDE Goal Learn the java persistence architecture ( JPA ) Pseudo-code Create […]

I am learning Python in 2020 – Beginner – Making a simple database for a restaurant menu

Operation System : Windows 10 IDE : Visual Studio Code Java Implementation : Java and a MySQL Database Problem Goal Generate a mysql database that holds a table of restaurant‘s menu which includes information about each meal. Pseudo-code Solution In order to connect to the MySQL database, we will need to import the mysql.connector which […]

I am learning C in 2020 – Beginner – Open, Read, Write and Close file

  Operation System : Windows 10 IDE : Visual Studio Code Problem Goal Learn how to open, write, read and close a file given in as a command line argument Pseudo-code Read a given file write contents into another out.txt file Close file Solution Include dependencies I added the errno header to track when errors […]

I am learning Java in 2020 – Beginner – Java and a MySQL Database

Operation System : Windows 10 IDE : Intellij IDEA Community Python Implementation : Making a simple database for a restaurant menu Problem Goal Learn how to connect to a mysql database in Java. Pseudo-code Make a connection to the mysql db Create the “restaurants” database, if not exists Populate the “Nigerian” table in the restaurants […]

I am learning C in 2020 – Beginner – Understanding the size of pointer

Operation System : Windows 10 Problem Goal Be able to predict the number of bytes that will be allocated for an array, a pointer, integer, a single character etc. Pseudo-code No need for one. Solution Chars and pointer to strings As shown below, 1 byte is used to store a character. char a = ‘A’; […]

I am learning C in 2020 – Beginner – How I learned about the standard output, input, error and pipe command

Book: Head First C Chapter: 3 This implementation is provided in the book introduced above. I am simply going line by line to further understand. Operation System : Windows 10 Problem Goal Learn standard output, standard input, standard error, the pipe command, running programs concurrently by creating a program that does the following: Reads a […]

I am learning C in 2020 – Beginner – What I learned about memory, variables and pointers in c

Book: Head First C Chapter: 3 Platform used: cplayground.com Pointers humbled me Problem Goal Understand pointers at a foundational level. Memory Zones in C I figured it would be useful to gain a simple overview of where variables could live during the run of a c program. Stack Variables declared or/and initialised within a function […]

Learning C in 2020 – Absolute Beginner – Listing Network Adapters on Windows

Book: Hands-On Network Programming with C: Learn socket programming in C and write secure and optimized network code Overview reference This implementation is provided in the book introduced above. I am simply going line by line to further understand. Problem Goal List all network adapters on windows machine. Pseudo-code Get Network Adapters Print out basic […]

Learning Java in 2020 – Beginner – Ridiculously Simple Python Client and a Java Server

Overview reference Problem Goal Make a python socket client send a “hello” message to a waiting java server. Voila! Pseudo-code Create a server socket that waits for incoming streams / connection from another address Send a “hello world” message to the server socket and have the server socket print it out after the connection has […]

Java and Python Project List

I thought it would be interesting to see how one could implement a program in java and python. Hopefully it would help me gain more insight in programming syntax and logic. Projects Python Java Simple Automated WordPress Project Setup Available Ports in a Machine ( Network Programming Basics) Simple RSS Feed GUI in Python Simple […]

Learning Java in 2020 – Beginner – Available Ports in a Machine ( Network Programming Basics)

Overview reference Problem Goal Try to find open ports on a computer by using its ip address.. Pseudo-code Get the ip address Get range of ports to be checked Make connections to ip address at each port within the given range If connection is established, write the port in the “openports.txt” file and close the […]

Learning Java in 2020 – Beginner – Simple RSS Feed GUI

Overview reference Problem Goal Simply obtain a valid URL from the command line, determine if the given URL has a rss feed ( <URL>/feed). If it does, display a list of all the items and allow the user to open a post by clicking on an item. Pseudo-code Get URL from user Make request to […]

Learning Python in 2020 – Beginner – Simple Automated WordPress Project Setup

Requirements Python, internet, time Problem Goal The script should simply download the latest wordpress zip file, unzip it and allow the user to set the main wp-config values. Pseudo-code Make a get request ( https://wordpress.org/latest.zip ) Save the downloaded zip file in the current directory Create a wp-config.php file based off wp-config-sample.php file Ask the […]

Learning Java in 2020 – Beginner – Check if Palindrome

Overview reference Problem Goal Check if the the user input reads the same forward and backward. Here for more explanation. In this solution we will be ignoring the case. Pseudo-code First of all, the user input string is obtained and reversed. Both the original value and reversed form are stripped of non-alphanumeric characters. That way, […]

Learning Java in 2020 – Beginner – Count Vowels

Overview reference Problem Goal Count the number of vowels in a given text and provide a report of how many times a specific vowel occurred in the text. Pseudo-code Count Vowels Get user input Declare a count variable and initialize with 0 Loop through text Check if each character is a vowel If vowel, increase […]

Learning Java in 2020 – Beginner – Pig Latin

Overview reference Python Solution Problem Goal Simply take a word, check if it begins with a vowel or a consonant cluster and append “ay” accordingly. If the word starts with a vowel, add an “ay” to the end of the word. Else extract the consonant cluster from the word, append “ay” to the cluster and […]