Scientific Computing

10 meter AM / FM calling frequency

The 10 meter ham radio band has a suggested FM calling frequency of 29.6 MHz, which is nestled among the repeater frequencies. With a dedicated 10 meter FM band antenna tuned for the 29.5 - 29.7 MHz range, this works fine. However, many 10 meter operators primarily use CW, data, SSB, and similar modes in the 28.0 - 28.5 MHz range. Most popular 10m antennas such as a dipole antenna or 1/4 wavelength vertical antenna tuned for say 28.3 MHz may have an excessively high SWR at 29.6 MHz. Operators using inexpensive converted 27 MHz CB radios may not be able to tune the non-5kHz offset channel. That is, they might be able to tune to 29.605 MHz, but not 29.600 MHz.

The 10m AM mode calling frequency is generally 29.0 MHz, which is much closer to the 28 MHz SSB/CW frequencies. This allows more efficient use of the same antenna for both 10m SSB/CW and AM. An AM channel offset as much as 5 kHz can generally still be heard by another AM receiver, but with reduced signal efficiency. 10 kHz AM channel spacing is generally adequate for AM radios (as observed by CB radio channel plans and MW AM broadcast plans).

It is worth considering a “new” FM calling frequency near but just above 29 MHz with a 5 kHz offset to address using inexpensive converted CB radios and more optimally using the same antenna as for 28 MHz SSB/CW. We suggest considering 29.055 MHz as a new 10 meter FM calling frequency. This is far enough away from the AM calling frequency of 29.0 MHz and typically working frequencies just above 29.0 MHz.

In this table, the “converted CB channel” assumes common export radio channel charts. The specific radio may have a different channel number for the same frequency. We’ve put in a possible “new” AM calling frequency of 29.005 MHz for converted CB radios, if such would be desired. The jump in channel sequencing from channels 23, 24, 25 is a de facto standard.

frequency (MHz) mode description converted CB channel
29.000 AM 10 meter AM calling frequency
29.005 AM AM calling freq. for converted CB radios 20
29.015 AM AM working frequency 1 21
29.025 AM AM working frequency 2 22
29.035 FM FM working frequency 1 24
29.045 FM FM working frequency 2 25
29.055 FM 10 meter FM calling frequency 23

CB Radio 11 meter DX

In 2017, WT Docket 10-119 modernized FCC 27 MHz (11 meter) CB Radio Rules as published in the Federal Register, including replacing 95.333 and 95.933. The obsolete Part 95.413 rule limiting legal CB radio communications to 250 km was removed.

CB Radio rules do not specify a maximum range for CB radio communications, as long as the other station is in the United States or Canada. Therefore, “DX”, two-way long distance communication typically using non-groundwave propagation such as skywave, meteor scatter, etc. is legal for USA CB radio operators with other CB radio stations in the United States and Canada.

At dusk/dawn, a form of skywave propagation known as greyline propagation can occur, allowing strong signals between distant stations within the same dawn/dusk region as seen on this live map. If propagation is enhanced but no station is transmitting on the frequency one is listening to, the propagation enhancement is not noticed. Like on other frequency bands, listening for known transmitters is a useful DX detection technique in the 11 meter band. For example, Broadcast Auxiliary Remote Stations (STL) can be heard around 26 MHz. 27.025 MHz CB radio channel 6 in the AM mode is a common frequency for CB DX. The 12 meter and 10 meter NCDXF beacons provide another source of live propagation detection, especially for seeing if the MUF is near the 11 meter band. The UK CADS and Ireland WPAS 11 meter community service broadcasts overlap with some traditional CB radio frequencies.

International DX groups may use calling frequencies including SSB 26.285 MHz, FM 26.805 MHz, and SSB 27.555 MHz, but these frequencies are generally not legal to transmit on.

Cleanup unused files in Linux

Keep at least 10% of drive space to avoid:

  • SSD wear
  • HDD fragmentation

Determine free space on Linux / macOS / Windows Subsystem for Linux with “ncdu”. ncdu uses Ncurses terminal graphics to quickly show the biggest files in the Linux filesystem tree. ncdu is very handy to find large files or directories that may be unneeded.

df -h

gives a drive-level summary of disk usage.

Package managers cache installed files in case of need to reinstall, but the packages can be redownloaded if needed to save disk space by clearing the cache. Clear the package cache–for APT (common in Debian-based systems):

apt autoclean

or for DNF (Fedora, RHEL, CentOS):

dnf clean dbcache

Remove unwanted packages

TeX Live documentation can consume a lot of disk space. To cleanup the documentation, consider removing packages matching texlive-*doc. This also removes texlive-full but with no detriment to TeX Live working.

Synaptic list of files to remove for texlive-doc to save disk space

Packages removed for texlive-doc to save over 1 GB of disk space.


Related:

CMake FindOpenSSL hints

For all CMake find_*() commands including FindOpenSSL, the package path can be hinted by setting an appropriate environment variable or CMake variable. This examples supposes a Homebrew package manager has installed OpenSSL 1.1, which the user wishes to use in a CMake project. To hint the package path when configuring a CMake project, either specify OpenSSL_ROOT by environment variable:

export OpenSSL_ROOT=$(brew --prefix openssl@1.1)

or directly in the CMake configure command:

cmake -B build -DOpenSSL_ROOT=$(brew --prefix openssl@1.1)

The example CMakeLists.txt:

cmake_minimum_required(VERSION 3.16)

project(f LANGUAGES NONE)

find_package(OpenSSL REQUIRED)

Use the –debug-find CMake option to see the paths CMake is searching.

To disable various search paths, consider the following CMake variables. These are normally only used for debugging or special cases.

set(CMAKE_FIND_USE_CMAKE_PATH false)
set(CMAKE_FIND_USE_CMAKE_SYSTEM_PATH false)
set(CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH false)
set(CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH false)

The OpenSSL world is gradually transitioning from OpenSSL 1.1 to 3, and Homebrew uses subdirectory to isolate the OpenSSL installs. CMake does not recursively search as that would in general not have a stopping condition and at least significantly slow down the search performance.

GitHub Actions Apple Silicon CPU

GitHub Actions macOS runners use Apple Silicon CPU, which is what most Apple users have. Some build issues including the linker have historically had Apple Silicon-specific issues. Generally it’s good to test on the same CPU architecture as the target platform.

We sometimes find it necessary to select the Xcode version compatible with Homebrew GCC if build errors occur that are not present on a physical Apple Silicon laptop.

jobs:

  mac:
    runs-on: macos-1atest

    strategy:
      matrix:
        cxx: [g++-14, clang++]

    env:
      HOMEBREW_NO_AUTO_CLEANUP: 1
      CXX: ${{ matrix.cxx }}

    steps:
    - uses: actions/checkout

    - run: sudo xcode-select --switch /Applications/Xcode_15.1.app

    - run: cmake --workflow --preset debug

    - run: cmake --workflow --preset release

In this example Ninja enables quick testing of builds in Debug and Release mode, which is important to catch bugs.

macOS WiFi BSSID scan

The undocumented, discontinued macOS command-line utility airport– not to be confused with the Airport Utility app–gave detailed information about the current WiFi connection and nearby WiFi APs. This utility was located at /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport.

Since discontining airport, current BSSID requires using CoreWLAN framework as demonstrated in Python scan-wifi-python.

Apple provides a list of device WiFi support.

PowerShell tilde expansion

PowerShell tilde expansion was dropped in 7.4.0. Automatic variable $home remains available across operating systems.

ls $home

PowerShell tilde expansion was fraught with difficulties that led PowerShell maintainers to at least temporarily drop tilde expansion in PowerShell 7.4.0.

Note that automatic variables are just inside PowerShell itself–they are not environment variables. Thus, automatic PowerShell variables are generally not visible to other programs or scripts unless additional steps are taken to expose them, perhaps as a command line argument or environment variable.

Aspell don't backup

Aspell creates backup files with a .bak extension by default. To turn off the backup files configure Aspell to not create them. Often there is not a not a user configuration file “aspell.conf” present. Even if there is a config file present, it can be overridden by environment variable ASPELL_CONF:

export ASPELL_CONF="dont-backup;"

or do similarly through Control Panel in Windows.

Confirm the setting has taken effect by:

aspell dump config | more

and look for the line backup false.


Related: Aspell dictionary location

Clear temporary scratch files on HPC

Unix-like HPC systems often have shared temporary scratch directories mapped by environment variable $TMPDIR to a directory like “/scratch” or “/tmp”. $TMPDIR may be used for temporary files during build or computation. $TMPDIR is often shared among all users with no expectation of preservation or backup. If user files are left in $TMPDIR, the HPC system may email a periodic alert to the user.

If the user determines that $TMPDIR files aren’t needed after the HPC batch job completes, one can clear $TMPDIR files with a command near the end of the batch job script. Carefully consider whether this is appropriate for the specific use case, as the scratch files will be permanently deleted.

rm -r -i $TMPDIR 2>/dev/null

Verify that deletes only the user’s files, as each user’s files have write permissions only for their own files. Once this is established, to use this command in batch scripts replace the “-i” with “-f” to make it non-interactive.

CMake TARGET_RUNTIME_DLL_DIRS for CTest

Building Windows shared libraries in general creates DLLs whose directory must be on environment variable PATH when the executable target is run. Windows error code -1073741515 corresponding to hex error code 0xc0000135 emits when the necessary DLLs are not in the program’s working directory or on Path environment variable. This will make CTest tests fail with error code 135.

The CMake generator expression TARGET_RUNTIME_DLL_DIRS along with test property ENVIRONMENT_MODIFICATION can be used to set the Path environment variable for the test, gathering all the directories of the DLLs CMake knows the target needs.

set_property(TEST adder PROPERTY ENVIRONMENT_MODIFICATION PATH=path_list_append:$<TARGET_RUNTIME_DLL_DIRS:main>)

in this minimal example CMakeLists.txt uses the properties above to work correctly.