Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
from gnuradio import gr, blocks
def tlm_to_cosmos(list_of_temps):
tb = gr.top_block()
# sizeof_char == 1 byte in gnuradio land
nonblocking = False

Note for Dmitri/David: the Virtualbox/Cosmos instructions just document what you guys already went through. This doesn't require a second VM or anything.

Virtualbox

  • Download Ubuntu 18.04 ISO
  • Create new linux 64-bit VM in Virtualbox
  • Set memory to 4096 MB
  • Do “minimal installation”
  • Accept all other defaults
  • Increase VM video memory to max
  • sudo apt install gcc perl make
# ./manage.py shell_plus
# If you only have ONE database
from django.db import connection
from django.db.migrations.recorder import MigrationRecorder
from django.utils import timezone
recorder=MigrationRecorder(connection)
recorder.record_applied(app=app_name, name=migration_name)
# for multiple databases, for some reason, even if you specify the connection it doesn't work