Just a simple script to store useful yt-dlp options. Like what one would do with a Bash script, but platform-agnostic.
Demonstrates use of concurrent.futures.ThreadPoolExecutor and asyncio.Semaphore in separate examples to check outbound port connectivity.
In both examples, the maximum number of concurrent connections is limited to 5 (user option). This examples shows that Asyncio using
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
| %amsnr: SNR in AM systems | |
| % | |
| %This code contains functions to generate a message signal, amplitude | |
| %modulate a carrier and detect the message using envelope detection. | |
| % | |
| %Homework: Write code to perform SNR analysis as discussed in homework | |
| %5. Additional information is available in the comments below. | |
| % | |
| % Last modified: 2009-April-07 | |
| % |
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
| function aud = SSBdemod(modeDemod, fc) | |
| %k = [55e3 65e3]; %sample range to use | |
| k = [1 .2e6-1]; | |
| figure(1) | |
| hT = subplot(3,1,1); | |
| hD = subplot(3,1,2); | |
| hF = subplot(3,1,3); |
There are a few node types on BU SCC that are designed for MPI jobs. The job script syntax can be used for interactive session start.
qrsh -pe mpi_28_tasks_per_node 56
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(mini LANGUAGES Fortran) | |
| message(STATUS "CMAKE Generator: ${CMAKE_GENERATOR}") | |
| add_executable(mini mini.F) |
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
| Notes on WSJT-X Installation for Mac OS X | |
| ----------------------------------------- | |
| First just drop the wsjtx.app onto the Applications folder in the dmg window to | |
| install to Applications | |
| If you have already downloaded a previous version of WSJT-X then I suggest | |
| you change the name in the Applications folder from WSJT-X to WSJT-X_previous | |
| before proceeding. | |
| I recommend that you follow the installation instructions especially if you |
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
| [flake8] | |
| max-line-length = 100 |
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
| //Copyright Kevin Lawler, released under ISC License | |
| // https://getkerf.wordpress.com/2016/03/30/the-best-algorithm-no-one-knows-about/ | |
| double random_double() //your random double function | |
| { | |
| //[0,1) uniformly random double, mt19937-64.c source is fine | |
| //keep in mind most double-based implementations drop randomness to 52-bits | |
| return genrand64_real2(); | |
| } | |
This becomes an issues with MPI workers with synchronized parallelism. There are "14 core" laptops with two P-cores and 12 E-cores. I have seen project teams that configure their programs (say via enviornment variables) to only use the P-cores, but this can lead to a performance drop vs. their much older all P-core computer.
NewerOlder