Skip to main content

First post using stackedit

Welcome to StackEdit! Hey! I’m your first Markdown document in StackEdit 1 . Don’t delete me, I’m very helpful! I can be recovered anyway in the Utils tab of the Settings dialog. Documents StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible offline! Note: StackEdit is accessible offline after the application has been loaded for the first time. Your local documents are not shared between different browsers or computers. Clearing your browser’s data may delete all your local documents! Make sure your documents are synchronized with Google Drive or Dropbox (check out the Synchronization section). Create a document The document panel is accessible using the button in the navigation bar. You can create a new document by clicking New document in the document panel. Switch to another document All your local documents are listed in the document panel. You can switch from one to anoth...

Installing tensorflow on Mac OS 10.11

Tensorflow (https://www.tensorflow.org/) is the open source deep learning library from Google (http://www.wired.com/2015/11/google-open-sources-its-artificial-intelligence-engine/).

Installing Tensorflow is not easy on Mac if you follow exactly the installation instruction on the homepage. I have no idea why. I have error then error while trying to install Tensorflow with pip, with virtualenv, or even with Docker.

However, with Anaconda (https://www.continuum.io/downloads), it will be easy. The trick is you should download the wheel file and install it offline other than retrieving it online as suggested by Tensorflow homepage.

So, with anaconda for python2 installed, I did:

# create a new environment with sklearn installed, up to you
# if you want a pure Python, replace scikit-learn by python
conda create -n tensorflow scikit-learn

# activate the new environment
source activate tensorflow

# download the wheel file

curl https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl --output tensorflow-0.6.0-py2-none-any.whl

# then install
pip install tensorflow-0.6.0-py2-none-any.whl

Comments

Popular posts from this blog

Getting started with Cryptpad in Ubuntu: step by step

Cryptpad is an open source collaborative editor which is hosted at: https://github.com/cjdelisle/cryptpad It is easy to clone the github repository and start to try, but if you are a newbie, there maybe some difficulties. Suppose that you have a clean Ubuntu machine, and want to try with Cryptpad, you can follow these steps: 1. Download mongodb for Linux: https://www.mongodb.org/downloads 2. Unzip the file you got to a location you want. You will start mongodb from there, or add this directory to your PATH variable so you can start mongodb from anywhere. 3. Suppose that you chose the easier way, i.e start mongodb from its directory. 4. Open Terminal (Ctrl + Alt + T for shortcut), move to the directory of mongodb 5. Type: mkdir db mongod --dbpath=./db These above commands will first, create a directory 'db' insider the directory mongodb, then start mongodb server. 6. Keep the terminal with mongodb server running 7. Open another terminal (Ctrl...

Cài đặt Apache, PHP và MySQL trong Ubuntu 8.10

Cài đặt bộ 3 thành phần này trong Ubuntu dễ hơn rất nhiều so với trong Windows, tất cả bạn cần làm là có một đường truyền Internet tương đối tốt. Đầu tiên, cài đặt Apache: Mở Terminal lên và gõ: sudo apt-get install apache2 Có thể bạn sẽ phải nhập mật khẩu root, sau đó quá trình cài đặt sẽ diễn ra tự động, bạn chỉ phải ngồi chờ, và chọn Y nếu có câu hỏi. Để kiểm tra Apache đã cài đặt thành công hay chưa, hãy mở trình duyệt lên và gõ: http://localhost/ Nếu bạn thấy dòng chữ It works thì mọi việc đã suôn sẻ. Tiếp theo là quá trình cài đặt PHP. Vẫn trong cửa sổ Terminal, gõ: sudo apt-get install php5 libapache2-mod-php5 Quá trình cài đặt diễn ra tương tự như cài đặt Apache, lưu ý ở đây là câu lệnh cài đặt PHP 5. Quá trình cài đặt sẽ tắt mất Apache, bạn cần khởi động lại nó để chạy thử PHP - tất nhiên có thể để sau cũng được: sudo /etc/init.d/apache2 restart Để kiểm tra PHP cài đặt có thành công hay không, hãy tạo file test.php trong thư mục /var/www có nội dung: Sau đó, mở trình duyệt lê...

Tinh truy Ngũ Trượng nguyên

星墜五丈原 杜甫 長星昨夜墜前營, 訃報先生此日傾。 虎帳不聞施號令, 麟台谁顯著勳名。 空余門下三千客, 辜負胸中十万兵。 好看綠陰清晝里, 于今無复雅歌聲! Phiên âm: Tinh Trụy Ngũ Trượng Nguyên Đỗ Phủ Trường tinh tạc dạ trụy tiền doanh , Phó báo tiên sinh thử nhật khuynh . Hổ trướng bất văn thi hiệu lệnh , Lân đài thùy hiển trước huân danh . Không dư môn hạ tam thiên khách , Cô phụ hung trung thập vạn binh . Hảo khán lục âm thanh trú lí , Vu kim vô phục nhã ca thanh ! Dịch thơ: Sao rơi gò Ngũ Trượng Đỗ Phủ Đêm qua trước trại sa sao lớn, Báo triệu tiên sinh vội lánh trần. Hiệu lệnh ngừng ban nơi trướng Hổ, Công ai chép tiếp chốn đài Lân? Bơ vơ dưới cửa ba nghìn khách, Đành uổng trong lòng chục vạn quân. Lồng lộng trời xanh cây rợp tán, Từ đây thôi bặt tiếng ca ngâm!