Setting environment variables BLAS_VERSION or LAPACK_VERSION to the path to the desired BLAS or LAPACK library path overrides Matlab's own BLAS or LAPACK. Matlab may fail to work, but this is claimed to work even with AOCL libraries or MKL for example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* place under assets/css/blockquote.css */ | |
/* General alert styling */ | |
.alert { | |
padding: 1rem; | |
margin-bottom: 1rem; | |
border: 1px solid transparent; | |
border-radius: .25rem; | |
} |
Upload recent WSJT-X contacts to LoTW using ARRL TSQL command line interface without needing a separate logging program.
WSJT-X can connect to a logging program daemon, but for those to wish to simply upload new QSOs to LoTW, this Python script does it all by itself.
- Python >= 3.10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import tarfile | |
import platform | |
from pathlib import Path | |
import argparse | |
from datetime import datetime | |
a = argparse.ArgumentParser( | |
description="Compress and upload raw WSPR data to science archive." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Use Python stdlib "email" to extract attachments from an .eml file | |
as obtained from an email client or Download from Gmail etc. | |
based on https://gist.github.com/urschrei/5258588 | |
""" | |
from pathlib import Path |
GCC Gfortran 15.1.0 has a new bug that is
fixed in Gfortran 15.2.0 release
on any operating system (Windows, macOS, ...) that is triggered by -Wall
gfortran -Wall wall.f90 && ./a.out
wall.f90:38:12: >
For each package, go into PyPI projects and add a publisher.
This uses separate jobs for build and publish as recommended to avoid a poisoned package from hijacking the publish to put hostile code in a package.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.14...4.0) | |
project(Maidenhead LANGUAGES Fortran) | |
enable_testing() | |
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") | |
add_compile_options(-fno-backtrace -fimplicit-none) | |
endif() | |
add_library(maidenhead OBJECT maidenhead.f90) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.29) | |
project(find_perm LANGUAGES NONE) | |
set(noread_shared ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}noread_shared${CMAKE_SHARED_LIBRARY_SUFFIX}) | |
set(noread_static ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}noread_static${CMAKE_STATIC_LIBRARY_SUFFIX}) | |
# EXISTS requires read permissions | |
# https://cmake.org/cmake/help/latest/command/if.html#exists | |
# no read permissions means can't touch the file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.20) | |
project(lang LANGUAGES C) | |
include(CheckSourceRuns) | |
include(CheckTypeSize) | |
check_type_size("time_t" TIME_T_SIZE) | |
if(NOT TIME_T_SIZE GREATER_EQUAL 8) |
NewerOlder