follow ubuntu framework laptop guide
https://community.frame.work/t/ubuntu-21-04-on-the-framework-laptop/2722
change settings in ubuntu
- adjust touchpad (no natural scroll)
https://community.frame.work/t/ubuntu-21-04-on-the-framework-laptop/2722
ERROR: Exception: | |
Traceback (most recent call last): | |
File "/Users/blah/.pyenv/versions/2.7.18/envs/blah.com/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 224, in _main | |
status = self.run(options, args) | |
File "/Users/blah/.pyenv/versions/2.7.18/envs/blah.com/lib/python2.7/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper | |
return func(self, options, args) | |
File "/Users/blah/.pyenv/versions/2.7.18/envs/blah.com/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 403, in run | |
pycompile=options.compile, | |
File "/Users/blah/.pyenv/versions/2.7.18/envs/blah.com/lib/python2.7/site-packages/pip/_internal/req/__init__.py", line 90, in install_given_reqs | |
pycompile=pycompile, |
// based on the lcdthermocouple example | |
// also: | |
// https://randomnerdtutorials.com/esp32-ssd1306-oled-display-arduino-ide/ | |
// http://www.esp32learning.com/code/esp32-and-max6675-example.php | |
// parts: | |
// * HiLetgo DC 3-5V MAX6675 Module + K Type Thermocouple Temperature Sensor | |
// * UCTRONICS 0.96 Inch OLED Module 12864 128x64 Yellow Blue SSD1306 Driver I2C | |
// * ESP32 | |
#include <max6675.h> |
# samsung evo+ sd card | |
pi@raspberrypi:~ $ dd if=/dev/zero of=/home/pi/test bs=8k count=50k conv=fsync; rm -f /home/pi/test | |
51200+0 records in | |
51200+0 records out | |
419430400 bytes (419 MB, 400 MiB) copied, 17.0585 s, 24.6 MB/s |
/* | |
* This sketch programs Ardunio to communicate with Artisan using MODBUS protocol and | |
* an inexpensive thermocouple amplifier. | |
* | |
* Hardware: | |
* Arduino UNO | |
* Thermocouple amplifier (MAX6675) | |
* K-type thermocouple | |
* | |
* Libraries needed: |
/* | |
* This sketch programs Ardunio to communicate with Artisan using MODBUS protocol and | |
* an inexpensive thermocouple amplifier. | |
* | |
* Hardware: | |
* Arduino UNO | |
* Thermocouple amplifier (MAX6675 or MAX31855) | |
* K-type thermocouple | |
* | |
* Libraries needed: |
$ go run dnstrace.go -c 10 -s 192.168.1.94 -n 100 www.googletagservices.com | |
Benchmarking 192.168.1.94:53 via udp with 10 conncurrent requests | |
Total requests: 1000 of 1000 (100.0%) | |
DNS success codes: 1000 | |
DNS response codes | |
NOERROR: 1000 |
# See full example: https://github.com/pawl/django_modelchoicefield_caching/blob/master/myapp/views.py#L31-L51 | |
for song in playlist: | |
form_data = {'title': song["title"], 'artist': song["artist"]} | |
song_form = forms.SongFormWithModelChoiceField(data=form_data) | |
song_form.is_valid() # runs a query to get the ModelChoiceField queryset each time | |
print('ModelChoiceField - query count AFTER validating all songs:', | |
len(connection.queries)) # 5 queries | |
# query for choices outside of the loop to prevent unnecessary queries |