A.I.

Install Tensorflow on Ubuntu with Virtualenv

Tensorflow on Ubuntu 14.4 (64). Here is a video version of this tutorial: And here is the terminal commands and code used: sudo su sudo apt-get install python-pip python-dev python-virtualenv virtualenv –system-site-packages ~/tensorflow source ~/tensorflow/bin/activate pip install –upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl Find the tenserFlow location: python -c ‘import os; import inspect; import tensorflow; print(os.path.dirname(inspect.getfile(tensorflow)))’ The test project: Start […]

CSS3 programming

CSS3 On / Off switch

Here is a simple CSS3 On / Off switch. You can use JavaScript code to find the current switch state. This example only provides the styling part of the element. The HTML: <div class=”switch” id=”switch”> <a href=”#thinghyL”> <div class=”thinghyL” id=”thinghyL”><div class=”knobL”></div></div> </a> <a href=”#thinghyR”> <div class=”thinghyR” id=”thinghyR”></div> </a> </div> The CSS: .switch { width:100px; height:30px; […]

Back To Top