Post install update:
sudo dnf update
sudo dnf upgrade
sudo dnf clean all
sudo reboot
| n^0.3 < n^0.5 < n < n^2 < n^3 | |
| logn < n^0.5 < n < nlogn < n^2 < nˆ2.3 < 3ˆn < 4^n | |
| n^0.5 = √n | |
| n^2.3 = 5^log2n |
$ brew install python3 # Installed at /usr/local/Cellar/python3
Check that python3 has been installed by running it at the terminal:
$ python3
>>> Python 3.7.2
get-pip.py from https://bootstrap.pypa.io/get-pip.py and install (this should already be installed if python was installed from python.org or homebrew):| for dir in *; do | |
| if [ -d "$dir" ]; then | |
| echo "$dir" | |
| cd "$dir" | |
| git pull | |
| cd ".." | |
| fi | |
| done |
| ssh -p 2222 training@localhost | |
| [ ] Using small sample from data | |
| - create it: | |
| head -50 ../data/purchases.txt > testfile | |
| - pass it to mapper script | |
| cat testfile | ./mapper.py | |
| - do all the map reduce in one command |
| import sys | |
| salesTotal = 0 | |
| oldKey = None | |
| for line in sys.stdin: | |
| data = line.strip().split("\t") | |
| if len(data) != 2: | |
| # Something has gone wrong. Skip this line. | |
| continue |
| string sdkPath = Environment.GetEnvironmentVariable ("ANDROID_HOME"); | |
| if (sdkPath == null) { | |
| sdkPath = EditorPrefs.GetString ("AndroidSdkRoot"); | |
| } | |
| EditorSetup.AndroidSdkRoot = sdkPath; |
| * Edit Alsa configuration: | |
| sudo nano /etc/modprobe.d/alsa-base.conf | |
| * Add to the end of the file: | |
| options snd-hda-intel model=imac27_122 | |
| * Reload Alsa module: | |
| pulseaudio -k | |
| sudo alsa force-reload |
| #import <Foundation/Foundation.h> | |
| #import <UIKit/UIKit.h> | |
| #import <CoreTelephony/CTCarrier.h> | |
| #import <CoreTelephony/CTTelephonyNetworkInfo.h> | |
| #import "UnityInterface.h" | |
| // Required to return strings to Unity | |
| char* cStringCopy(const char* string) | |
| { | |
| if (string == NULL) |