Problem Goal Read a sentence from the command line, ask for the locations of blanks and generate the phrases. Display the user’s result and compare with original sentence. Pseudo-code Read sentence from command line Ask for location of blanks and their associated categories or description (“e.g “noun”, “verb”, “place”, “celebrity,” “Exclamation” or “part of the […]
Python
Learning Python in 2020 – Beginner – Pig Latin
Java 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 join the […]
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 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 […]
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 Python in 2020 – Beginner – Simple RSS Feed GUI
Overview reference Other Implementations Java 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 […]
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 […]
Beginner | Think Python : Solution to Chapter 3 – Functions
Note : My solutions are independent of the solutions provided by the author. Just an info. I tried to be a bit flexible with the solution by adding arguments, which allows variations in the number of columns and spacing between “+” and “-”. Difficulty: I tried to replicate the exact grid but the spacing was […]
Beginner Automating with Python | Converting MYSQL database tables into single CSV files
Things you might need before coding Install python here Since this solution is realised by using the programming language called python, you should probably install it as instructed in the website linked above. Additionally, you may need to understand the programming principles independent of programming language and also learn the code syntax in python. An […]
Python Networking | Super Beginner Series | Simple Server and Client – “Hello World”
I am more into web development but out of boredom decided to dabble into networking… okay let’s see what I have learned so far. Networking 2018-05-12 10:56:17 AM Python Server This server opens its service at port 9999 and listens and connects to an incoming tcp stream. Once a connection is established, it sends the client […]