Posts

Showing posts from September, 2022

Python script: Vowel / Consonant Counter and Palindrome Checker

Image
 This was made in Visual Studio Code within a virtual environment. The most important commands in working with your virtual environment are: 1. Create your virtual environment > py -m venv env 2. Activate your virtual environment > env\Scripts\activate 3. Go to View > select Command Palette > Select Python Interpreter > (env:venv) 3. Run your application > py main.py ------------------------------------------------------------------------------------- Screenshot I (Desktop users): To view the sections below clearly > left click on the script > should go to a new window with a zoomed in view or left click once to zoom in. Screenshot II                            Screenshot III ------------------------------------------------------------------------------------- Screenshot IV Screenshot V Screenshot VI

Random notes regarding swap space and swap partitions.

Image
What is swap space? Swap space is an area where processes are swapped in and out to effectively manage processes which share CPU time. Swap space is like extra RAM which increases processing power of the CPU but should not be considered a solution in lieu of RAM. Swap space is not on the RAM, but located on the HD. - Slower than RAM. - Thrashing - When the kernel creates a volatile and unstable cycle of swapping processes. - You may resolve thrashing by reducing the swappiness value. Not unlike the nice value (when using Glances for network monitoring), the nicer a process is the higher the positive value. The higher the negative value, the more of a demand the process is creating for CPU time. Glances  i s a cross-platform monitoring tool which aims to present a large amount of monitoring information through a curses or Web based interface.  The best way to modify a swap file is to use rescue mode. This avoids conflicts with processes in swap space and swap space being used by the ker

C++ Resources - A curated list of cpp resources for developers.

Image
This is a curated list of resource to help developers. This list is modified and updated on an ongoing basis. Taken from Wikipedia for Herb Sutter  Herb Sutter is a prominent C++ expert. He is also a book author and was a columnist for Dr. Dobb's Journal. He joined Microsoft in 2002 as a platform evangelist for Visual C++.NET, rising to lead software architect for C++/CLI. Sutter has served as secretary and convener of the ISO C++ standards committee for over 10 years. https://herbsutter.com/category/c/ ----------------------------------------------------------------------------------------- "Fluent C++" by Jonathan Boccara Blog Link: https://www.fluentcpp.com/ "Fluent C++" is a blog by Jonathan Boccara that focuses on modern C++ programming techniques and best practices. The blog covers a wide range of topics, including C++ features, code design, performance optimization, and the effective use of the C++ Standard Library. It provides in-depth explanati