Skip to content

Ramblings and Thoughts

  • About

Ramblings and Thoughts

Networking, Computers, Life

Adjusting the Firewall under Ubuntu

December 8, 2019 by cbogdon

The default firewall configuration tool for Ubuntu is ufw. Developed to ease iptables firewall configuration, ufw provides a user friendly way to create an IPv4 or IPv6 host-based firewall. By default UFW is disabled. Enable or Disable To turn UFW on with the default set of rules: sudo ufw enable To check the status of UFW: sudo ufw status verbose …

Continue Reading

How to manually increase the upload file size in WordPress

May 11, 2019 by cbogdon

After a brand new installation of WordPress, I found out that WordPress defaults to 2MB of uploads of media files. To fix, you can add the following lines to the .htaccess file within Apache.

How to leverage WTForms and Bootstrap Web Template

March 26, 2019 by cbogdon

In starting my own Web Application, I found the Bootstrap Framework. In addition, I started using the WTForms library to make dealing with forms very easy. This document leverages the following references as notes: WTForms Python Tutorial – https://pythonspot.com/tag/wtforms/ WTForms Documentation – http://wtforms.simplecodes.com/docs/1.0.1/crash_course.html Bootstrap – https://getbootstrap.com/ The challange I ran into is that the default …

Continue Reading

Code Snippet to generate a unique value

March 26, 2019 by cbogdon

In doing some basic database programming in Python, I always find the need to generate a unique value for key index. I have a few examples that would help: Sequential Index This example will generate a sequential number based on the current date and time: Non Sequential Random Numbers This example creates a uuid number …

Continue Reading

Python testing notes with pytest

January 30, 2019 by cbogdon

I just started experimenting with pytest to performing testing of my application. Because it initially took some trial and error, I figured I can try to document this. I definitely am not an expert on pytest, but read Brian Okken’s Book that can be found here: http://pythontesting.net/ Set up testing directories The current project that …

Continue Reading

Configuring PyCharm for using pytest as the test runner

January 30, 2019 by cbogdon

To use pytest as the test runner, I found a bunch of things that weren’t working officially, so I tried to write this blog post to understand the right way of doing it. Configuring pytest as the test runner To configure pytest, you need to do the following: Go to the Preferences menu ( Within …

Continue Reading

Managing Ubuntu Packages

January 27, 2019 by cbogdon

Installing Packages To install a new package, you can use: Upgrading Packages Before you upgrade any Ubuntu packages, you need to update the package database Once your package data base is updated, then to upgrade anything do the following. This will update any applications, and the Ubuntu core system to the latest versions available.  The …

Continue Reading

Installing LAMP Stack Under Ubuntu

January 27, 2019 by cbogdon

This document was originally written by Matt Drake from Digital Ocean (https://www.digitalocean.com/community/users/mdrake) The original version was found at: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04 I copied it here to keep as a record for the future. This document has the following Steps: Installing Apache Web Server Installing MySql Database Installing SSL Certificates Installing WordPress Introduction A “LAMP” stack is a group of open-source software that is typically installed together to enable …

Continue Reading

Mac OSX system USB port Configuration

August 30, 2018 by chrisbog

To connect a Mac OS X system USB port to the console using the built-in OS X Terminal utility, follow these steps: Step 1 Use the Finder to go to Applications > Utilities > Terminal. Step 2 Connect the OS X USB port to the router. Step 3 Enter the following commands to find the …

Changing Chrome to default to OSX’s System Print Dialog

August 30, 2018 by chrisbog

One annoying capability of Chrome on OSX is that it defaults to a “Chrome” Specific Print Dialog Box instead of the system one.   I finally found the way to reset this behavior and force Chrome to default to the system dialog. Open a terminal window and do the following: defaults write com.google.Chrome DisablePrintPreview -bool true

Posts navigation

  • 1
  • 2
  • 3
  • Next

Tags

Apache Carbon Copy Cloner Chrome Cisco Crashplan HTML iOS iClou Linux MySQL Nexus NXAPI Omnifocus OSX Outlook PyCharm Pytest Python Quicken Samsung TV Ubuntu VMWare Wordpress Youtube
© 2023 Ramblings and Thoughts | WordPress Theme by Superbthemes