Posted in Computing Notes on Jan 21st, 2024 Comments Off
Revisions: 21 January 2024, first publication The Thunderbird developers are moving to a new user interface code base for Thunderbird 115 and Thunderbird 102 is the last version that will work with the historical userChrome.css customizations. The userbase for Mozilla products has continually shrunk over the past few years and the chances of equivalent customization [...]
Posted in Computing Notes on Jan 21st, 2024 Comments Off
This is the code for a function in Bash script. #!/bin/bash # Define a function greet() { echo “Hello, $1″ } # Call the function with “World” as the argument greet “World”
Posted in Computing Notes on Jan 21st, 2024 Comments Off
To loop through the subdirectories in a folder, when those subdirectories may contain spaces in the file names, use the following procedure. OLD_IFS=$IFS && IFS=$’\n’ for directory in $HOME/somefolder/*/; do echo “some code here” done IFS=$OLD_IFS
Posted in Computing Notes on Jan 10th, 2024 Comments Off
This document contains some notes on .bashrc for use with Linux systems. alias ll=’ls -alF’ alias la=’ls -A’ alias l=’ls –CF’ if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi The preceding two blocks come standard on Ubuntu as of version 2022.04. One tweak for WSL2 on Windows might be the addition of this [...]
Posted in Computing Notes on Jul 7th, 2023 Comments Off
7 July 2023: Ubuntu 22.04′s update notifier seems to not include the option to configure any settings, at least after certain conditions exist on a particular system. To stop the notifier from appearing. To stop the notifier from appearing use sudo apt-get remove update-notifier 7 July 2023: There are non-snap builds of ungoogled-chromium for Ubuntu [...]
Posted in Computing Notes on Mar 16th, 2023 Comments Off
To launch java -Xms2048M -Xmx2048M –add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server-1.21.1.jar nogui
Posted in Computing Notes on Dec 10th, 2021 Comments Off
This isn’t stock advice, it’s a data and math project. AAPL is interesting (not investing advice!) from a data perspective. Part of my big data project was the creation of a tool to analyze every symbol regressed on every other symbol for numerous lags. In addition to revealing the vendor’s mangling of data for unknown [...]
Posted in Computing Notes on Oct 11th, 2021 Comments Off
Linear regression analysis using Stata contains a look at Stata output for regression. There is also an excellent document on Regression Analysis | Stata annotated output at this link. There is an excellent document on Basic Data Analysis and Manipulation at this link. Yt−1 is the first lag of Yt (Chapter 10, p. 1).
Posted in Computing Notes on Oct 19th, 2020 Comments Off
Some time ago, Python 2 was the default language for use with Linux and Gnome 3. A set of extensions for Gnome, called Nautilus Python existed which allowed one to create customized right click menus. One of these was called “Historical Copy” and it created a lovely copy of the file with a timestamp inserted [...]
Posted in Computing Notes on Aug 15th, 2020 Comments Off
This is a GTK notification in Linux that remains on screen until it is clicked. #!/usr/bin/python3 import gi gi.require_version(‘Notify’, ’0.7′) from gi.repository import Notify gi.require_version(‘Gtk’, ’3.0′) Notify.init("Hello world") Hello = Notify.Notification.new("Hello world – the heading", "This is an example notification.", "dialog-information") # https://www.devdungeon.com/content/desktop-notifications-linux-python Hello.set_urgency(2) # Highest priority Hello.show() Last updated and tested 12 December 2020 [...]
Posted in Computing Notes on Feb 2nd, 2020 Comments Off
This great procedure makes it easy to remember what variables are related to in R. One of the troubles with exploratory data analysis is that when one has a lot of variables it can be confusing what the variable was created for originally. Certainly code comments can help but that makes the files larger and [...]
Posted in Computing Notes on May 25th, 2019 Comments Off
My favorite function of all time is varsoc in Stata. That’s saying a lot because I have been working with computers for decades and have written software in several languages, used many different types of administrative software tool sets, and owned a lot of books with code in them. Varsoc regresses one variable, y, upon another variable, [...]
Posted in Computing Notes on Dec 27th, 2011 Comments Off
This will start the time service and synchronize the clocks on CentOS 6. yum install ntp chkconfig ntpd on ntpdate pool.ntp.org /etc/init.d/ntpd start