sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get install raspberrypi-ui-mods -y
sudo apt-get install libgdk-pixbuf2.0-dev -y
sudo /usr/lib/arm-linux-gnueabihf/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
sudo reboot
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
import argparse | |
import random | |
import matplotlib.pyplot as plt | |
from collections import defaultdict | |
class PktDrop(object): | |
def drop(self): | |
return False |
[toc]
- It is delay-based congestion control, no react to packet loss.
- It is window based, not rate based congestion control.
- It relies on ACK feedback.
- It has mode switch to compete with buffer-filling flows like TCP.
- It uses smallest RTT in recent
srtt/2
duration to filter noise (ACK compression, WiFi aggregation) - Compared with Copa, NADA can achieve low delay and maintain at steady state as well, and it also has mode switch to compete with TCP, and it's more easiler to try NADA with current framework/protocols. However NADA may be sensative to noise in delay/loss, which need more investigation.
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
from collections import OrderedDict, Counter | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib | |
june_data = { | |
'joining_or_others': 44, | |
'video_delay': 29, | |
'meeting_dropped': 25, |
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/osascript | |
on getProcessName(appPath) | |
set AppleScript's text item delimiters to "/" | |
set filename to text item -1 of appPath | |
set AppleScript's text item delimiters to "." | |
set processName to text item -2 of filename | |
log "processName:" & processName | |
return processName | |
end getProcessName |
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
#!/bin/bash | |
# ./dummynet.sh -b 500 -q 1000 -i 1 -t out -f 10.22.133.53 prepare | |
# ./dummynet.sh -b 500 -q 1000 -i 2 -t out -f 10.22.133.25 prepare | |
# ./dummynet.sh start | |
# ./dummynet.sh stop | |
# | |
# To avoid sudo with password, adding the following into /etc/sudoers | |
# |
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/osascript | |
on openCamTwist() | |
tell application "CamTwist" | |
activate | |
delay 1 | |
end tell | |
end openCamTwist | |
- loop file with pattern
lines=$(find "$logdir" -name '*.log' -print)
while read line
do
echo "processing \"$line\""
done <<< "$(echo -e "$lines")"
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/osascript | |
on play_video(recording_path) | |
tell application "QuickTime Player" | |
if it is not running then | |
log "play video: " & recording_path | |
set filepath to (recording_path as POSIX file) | |
set theMovie to open file filepath | |
tell theMovie | |
set the presenting to true |
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/osascript | |
on todayISOformat() | |
set dateFormat to "%T" | |
set theDate to current date | |
set y to text -4 thru -1 of ("0000" & (year of theDate)) | |
set mon to text -2 thru -1 of ("00" & ((month of theDate) as integer)) | |
set d to text -2 thru -1 of ("00" & (day of theDate)) | |
set H to text -2 thru -1 of ("00" & (hours of theDate)) | |
set M to text -2 thru -1 of ("00" & (minutes of theDate)) |