Category: Coding

c, Coding, Software Development

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 […]

Beginner, Coding, Java, Java, Learn Programming with Me, Python

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 […]

Coding, Python

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 […]

Coding, JavaScript, React, Software Development, Web Development

React Transition for Dummies | Difference between CSSTransition and Transition

Bounce, Fade, Animate 05/03/2019 11:56:52 PM Intro into React Transitions In case you are a newbie in the world of react transitions,  you should probably read this post (React Transitions for Dummies | Part 1 : Transition, Styled Components and RandomColor) before continuing. <Transition> If you want to animate a react component, wrap it with […]

Coding, JavaScript, React, Software Development, Web Development

React Transitions for Dummies | Part 1 : Transition, Styled Components and RandomColor

04/29/2019 12:49:21 AM Overview Simply learning on how to use the React Transition Group “Transition” component to make websites look awesome! Who is this for? This should be useful for those who are confused as I was and (to some extent) still am about component and page transitions especially in React. Why I wanted to […]

Coding, Python

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 […]

Coding

Python 4 Beginners: XML to CSV within a minute

Hey yall! Another snippet to convert the same XML file in Python 4 Beginners: XML to JSON within a minute into a simple CSV file.  XML File: Code: [sourcecode lang=”python”] #XML TO EXCEL FILE import xml.etree.ElementTree as ET from openpyxl import Workbook import os import json import csv def readFile(filename): ”’ Checks if file exists, parses the […]

Coding

Python 4 Beginners: XML to JSON within a minute

This is an extension of the Python 4 Beginners: XML to Excel within a minute. A simple function will help generate a json file. This is the XML File  xml_to_excel The Code [sourcecode lang=”python”] #XML TO EXCEL FILE import xml.etree.ElementTree as ET from openpyxl import Workbook import os import json def readFile(filename): ”’ Checks if file exists, […]

Coding

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 [sourcecode lang=”python”] #file name -> s.py (sorry I am not that creative!) #server import socket target_host = "localhost" target_port = 9999 #create server socket server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) […]