https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#0
| # This file contains a collection of workarounds for missing TFLite support from: | |
| # https://github.com/tensorflow/magenta/tree/master/magenta/music | |
| # as posted in https://github.com/tensorflow/tensorflow/issues/27303 | |
| # Thanks a lot to github.com/rryan for his support! | |
| # The function for testing MFCC computation given PCM input is: | |
| # - test_mfcc_tflite | |
| # Please not that the output has not yet been compared to the one produced by the respective TF functions. | |
| # This file also contains test code for other problems in the context of audio processing with TF and TFLite: |
| # Source: https://stackoverflow.com/a/43317244 | |
| $path = ".\aws-ec2-key.pem" | |
| # Reset to remove explict permissions | |
| icacls.exe $path /reset | |
| # Give current user explicit read-permission | |
| icacls.exe $path /GRANT:R "$($env:USERNAME):(R)" | |
| # Disable inheritance and remove inherited permissions | |
| icacls.exe $path /inheritance:r |
| #!/usr/bin/env python3 | |
| import os | |
| import paramiko | |
| ssh_key_filename = os.getenv('HOME') + '/.ssh/id_rsa' | |
| jumpbox_public_addr = '168.128.52.199' | |
| jumpbox_private_addr = '10.0.5.10' | |
| target_addr = '10.0.5.20' |
| {0: u'__background__', | |
| 1: u'person', | |
| 2: u'bicycle', | |
| 3: u'car', | |
| 4: u'motorcycle', | |
| 5: u'airplane', | |
| 6: u'bus', | |
| 7: u'train', | |
| 8: u'truck', | |
| 9: u'boat', |
| #include <iostream> | |
| #include "tensorflow/cc/client/client_session.h" | |
| #include "tensorflow/cc/ops/standard_ops.h" | |
| #include "tensorflow/cc/ops/image_ops.h" | |
| #include "tensorflow/core/framework/tensor.h" | |
| #include "tensorflow/core/public/session.h" | |
| #include <opencv2/opencv.hpp> | |
| using namespace std; |
This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:
lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)
A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly.
In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers.
This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa in the command-line.
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare git@github.com:usi-systems/easytrace.git
| %Rischan Mafrur | |
| %Sub Table in Latex | |
| % May 20, 2014 | |
| \begin{table}[h] | |
| \begin{subtable}[h]{0.16\textwidth} | |
| \centering | |
| \begin{tabular}{|l|l|} | |
| XXX & YYY\\ |
On a recent project, I ran into an issue with Python Selenium webdriver. There's no easy way to open a new tab, grab whatever you need and return to original window opener.
Here's a couple people who ran into the same complication:
- http://stackoverflow.com/questions/17547473/how-to-open-a-new-tab-using-selenium-webdriver
- http://stackoverflow.com/questions/6421988/webdriver-open-new-tab/9122450#9122450
- https://groups.google.com/forum/#!topic/selenium-users/kah4iEPRopc
- ... and many many more.
So, after many minutes (read about an hour) of searching, I decided to do find a quick solution to this problem.