Take off

블로그 이미지
by 안.들
  • Total hit
  • Today hit
  • Yesterday hit

'분류 전체보기'에 해당되는 글 66건

  1. 2016.12.25
    (test)arduino, light sensor
  2. 2016.12.24
    (test)arduino, signal lamp(red/yellow/green)
  3. 2016.12.24
    (test)arduino led with button
  4. 2016.12.02
    docker machine이란?
  5. 2016.11.30
    tensorflow installation.
  6. 2016.11.26
    deep learning / machine learning
  7. 2016.11.24
    site 실패한 수차례의 로그인 시도를 제한하는 로직
  8. 2016.11.16
    hybrid app development step2
  9. 2016.10.15
    hybrid App step1
  10. 2016.10.06
    PCA9685 Driver (16 채널) 에 대해서

<<Code>>

int potpin = 0;

int ledpin = 13;

int val = 0;


void setup() {

  // put your setup code here, to run once:

pinMode(ledpin,OUTPUT);

Serial.begin(9600);

}


void loop() {

  // put your main code here, to run repeatedly:

val = analogRead(potpin);

Serial.println(val);

delay(1000);

}



조도 센서는 빛의 세기에따라 제어가 필요한 경우에 조건으로 사용가능. 응용을 어떻게 할까..

AND

<<CODE>>

int REDpin = 6;

int YELLOWpin = 5;

int GREENpin = 4;


void setup() {

  // put your setup code here, to run once:

  pinMode(REDpin, OUTPUT);

  pinMode(YELLOWpin, OUTPUT);

  pinMode(GREENpin, OUTPUT);

}


void loop() {

  // put your main code here, to run repeatedly:

digitalWrite(REDpin, HIGH);

delay(3000);

digitalWrite(REDpin, LOW);

digitalWrite(YELLOWpin, HIGH);

delay(3000);

digitalWrite(YELLOWpin, LOW);

digitalWrite(GREENpin, HIGH);

delay(3000);

digitalWrite(GREENpin, LOW);

}







AND

refer to the site : https://www.youtube.com/watch?v=YWY_Is0L7fE

아듀이노 led 샘플.

코드
---------------------------------------------------------

int LED = 12;

int BUTTON = 4;


void setup() {

  // put your setup code here, to run once:

pinMode(LED, OUTPUT);

pinMode(BUTTON, INPUT);

}


void loop() {

  // put your main code here, to run repeatedly:

if(digitalRead(BUTTON) == HIGH)

{

     digitalWrite(LED,HIGH);

}

else

{

digitalWrite(LED,LOW);

}

}

---------------------------------------------------------





AND


refer  : https://docs.docker.com/machine/overview/

https://docs.docker.com/docker-for-windows/


윈도우에서 docker-machine --create 는 hyperv driver를 사용하는것.

Docker for Windows - You can use docker-machine --create with the hyperv driver to create additional local machines.

AND



tensorflow.org참조


https://www.python.org/downloads/release/python-352/ 에서 

PC에 맞는 Pip프로그램 다운로드

Windows x86-64 executable installer Windows for AMD64/EM64T/x64, not Itanium processors

*local PC프로세서 확인
-----------------------------------------

-----------------------------------------

windows는 아나콘다버전을 추천하네.(refer, https://tensorflow.blog/)

https://www.continuum.io/downloads#windows

아나콘다버전은 path설정까지 되어 pip 명령어를 command 창에서 실행가능함


To install the CPU-only version of TensorFlow

C:\Users\Administrator>pip install --upgrade https://storage.googleapis.com/tens

orflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl

Collecting tensorflow==0.12.0rc0 from https://storage.googleapis.com/tensorflow/

windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl

  Downloading https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0

.12.0rc0-cp35-cp35m-win_amd64.whl (12.2MB)

    100% |################################| 12.2MB 37kB/s

Collecting numpy>=1.11.0 (from tensorflow==0.12.0rc0)

  Downloading numpy-1.11.2-cp35-none-win_amd64.whl (7.6MB)

    100% |################################| 7.6MB 74kB/s

Requirement already up-to-date: wheel>=0.26 in c:\program files\anaconda3\lib\si

te-packages (from tensorflow==0.12.0rc0)

Collecting protobuf==3.1.0 (from tensorflow==0.12.0rc0)

  Downloading protobuf-3.1.0-py2.py3-none-any.whl (339kB)

    100% |################################| 348kB 1.3MB/s

Requirement already up-to-date: six>=1.10.0 in c:\program files\anaconda3\lib\si

te-packages (from tensorflow==0.12.0rc0)

Collecting setuptools (from protobuf==3.1.0->tensorflow==0.12.0rc0)

  Downloading setuptools-29.0.1-py2.py3-none-any.whl (472kB)

    100% |################################| 481kB 898kB/s

Installing collected packages: numpy, setuptools, protobuf, tensorflow

  Found existing installation: numpy 1.11.1

    Uninstalling numpy-1.11.1:

      Successfully uninstalled numpy-1.11.1

  Found existing installation: setuptools 27.2.0

Cannot remove entries from nonexistent file c:\program files\anaconda3\lib\site-

packages\easy-install.pth

You are using pip version 8.1.2, however version 9.0.1 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' comm

and.


C:\Users\Administrator>


C:\Users\Administrator>python -m pip install --upgrade pip

Collecting pip

  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)

    100% |################################| 1.3MB 426kB/s

Installing collected packages: pip

  Found existing installation: pip 8.1.2

    Uninstalling pip-8.1.2:

      Successfully uninstalled pip-8.1.2

Successfully installed pip-9.0.1


To install the GPU version of TensorFlow

C:\Users\Administrator>pip install --upgrade https://storage.googleapis.com/tens

orflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl

Collecting tensorflow-gpu==0.12.0rc0 from https://storage.googleapis.com/tensorf

low/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl

  Downloading https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_g

pu-0.12.0rc0-cp35-cp35m-win_amd64.whl (32.5MB)

    100% |################################| 32.5MB 7.9kB/s

Collecting protobuf==3.1.0 (from tensorflow-gpu==0.12.0rc0)

  Using cached protobuf-3.1.0-py2.py3-none-any.whl

Requirement already up-to-date: numpy>=1.11.0 in c:\program files\anaconda3\lib\

site-packages (from tensorflow-gpu==0.12.0rc0)

Requirement already up-to-date: six>=1.10.0 in c:\program files\anaconda3\lib\si

te-packages (from tensorflow-gpu==0.12.0rc0)

Requirement already up-to-date: wheel>=0.26 in c:\program files\anaconda3\lib\si

te-packages (from tensorflow-gpu==0.12.0rc0)

Collecting setuptools (from protobuf==3.1.0->tensorflow-gpu==0.12.0rc0)

  Using cached setuptools-29.0.1-py2.py3-none-any.whl

Installing collected packages: setuptools, protobuf, tensorflow-gpu

  Found existing installation: setuptools 27.2.0

Cannot remove entries from nonexistent file c:\program files\anaconda3\lib\site-

packages\easy-install.pth


C:\Users\Administrator>

------------------


Docker Toolbox

If you have an earlier Windows system that doesn’t meet the Docker for Windows requirements, get Docker Toolbox.

See Docker Toolbox Overview for help on installing Docker with Toolbox.

The Docker Toolbox setup does not run Docker natively on Windows. Instead, it uses docker-machine to create and attach to a virtual machine (VM). This machine is a Linux VM that hosts Docker for you on your Windows system.

Requirements

To run Docker, your machine must have a 64-bit operating system running Windows 7 or higher. Additionally, you must make sure that virtualization is enabled on your machine. For details, see the Toolbox install instructions for Windows.


windows 8 사용하는 나는 Docker toolbox설치.

설치 가이드 

https://docs.docker.com/toolbox/toolbox_install_windows/

설치파일 : https://www.docker.com/products/docker-toolbox
DockerToolbox-1.12.3.exe

참고) https://medium.com/@suhaas/how-to-install-tensorflow-on-windows-8-all-glitches-gotchas-covered-4725b73626a5#.ubsg6dj01


바로가기 : Docker Quickstart Terminal 실행

Creating CA: C:\Users\Administrator\.docker\machine\certs\ca.pem
Creating client certificate: C:\Users\Administrator\.docker\machine\certs\cert.pem

Running pre-create checks...
Creating machine...
(default) Copying C:\Users\Administrator\.docker\machine\cache\boot2docker.iso to C:\Users\Administrator\.docker\machine\machines\default\boot2docker.iso...

(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to create a network adapter. Sometimes, such confirmation window is minimized in the taskbar.

(default) Found a new host-only adapter: "VirtualBox Host-Only Ethernet Adapter#2"

(default) Windows might ask for the permission to configure a network adapter. Sometimes, such confirmation window is minimized in the taskbar.

(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.

(default) Waiting for an IP...

Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...

Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!

To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: C:\Program Files\Docker Toolbox\docker-machine.exe env default

                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/

docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com
Start interactive shell

Administrator@WIN-D8C41MUFQ7T MINGW64 ~


Prompt에서 다음명령어 실행해서 docker가 정상수행하는지 확인 아래처럼 나오면 정상작동하고 있는것임.

$ docker run hello-world

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world

c04b14da8d14: Pull complete
Digest: sha256:0256e8a36e2070f7bf2d0b0763dbabdd67798512411de4cdcf9431a1feb60fd9
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker Hub account:
https://hub.docker.com
For more examples and ideas, visit:
https://docs.docker.com/engine/userguide/Administrator@WIN-D8C41MUFQ7T MINGW64 ~

$


$ docker-machine ls
NAME      ACTIVE   DRIVER       STATE     URL                         SWARM   DOCKER    ERRORS
default   *        virtualbox   Running   tcp://192.168.99.100:2376           v1.12.3

*두번째 docker-machine만들기

$ docker-machine create vdocker -d virtualbox

Running pre-create checks...
Creating machine...
(vdocker) Copying C:\Users\Administrator\.docker\machine\cache\boot2docker.iso to C:\Users\Administrator\.docker\machine\machines\vdocker\boot2docker.iso...

(vdocker) Creating VirtualBox VM...
(vdocker) Creating SSH key...
(vdocker) Starting the VM...
(vdocker) Check network to re-create if needed...
(vdocker) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...Docker is up and running!

To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: C:\Program Files\Docker Toolbox\docker-machine.exe env vdocker

Administrator@WIN-D8C41MUFQ7T MINGW64 ~

$

$ docker-machine ls
NAME      ACTIVE   DRIVER       STATE     URL                         SWARM   DOCKER    ERRORS
default   *        virtualbox   Running   tcp://192.168.99.100:2376           v1.12.3
vdocker   -        virtualbox   Running   tcp://192.168.99.101:2376           v1.12.3


-------------

windows의 cmd창에서

C:\Users\Administrator>FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO %i
C:\Users\Administrator>SET DOCKER_TLS_VERIFY=1
C:\Users\Administrator>SET DOCKER_HOST=tcp://192.168.99.101:2376
C:\Users\Administrator>SET DOCKER_CERT_PATH=C:\Users\Administrator\.docker\machine\machines\vdocker
C:\Users\Administrator>SET DOCKER_MACHINE_NAME=vdocker
C:\Users\Administrator>REM Run this command to configure your shell:
C:\Users\Administrator>REM      @FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO @%i

C:\Users\Administrator>

--

docker실행

C:\Users\Administrator>docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow

Unable to find image 'gcr.io/tensorflow/tensorflow:latest' locally

latest: Pulling from tensorflow/tensorflow

6c953ac5d795: Pull complete
3eed5ff20a90: Pull complete
f8419ea7c1b5: Pull complete
51900bc9e720: Pull complete
a3ed95caeb02: Pull complete

ebb77ce6e1c6: Pull complete

c145c1f339f5: Pull complete

9528c5352798: Pull complete

c1f8f4c880d4: Pull complete

f5d83de9c678: Pull complete

d819f1ec59a0: Pull complete

bfc1d5e3de1c: Pull complete

182b64c1f020: Pull complete

Digest: sha256:e4bfa434c53e604d582f73f3c8c9b6d7fb9ece563b3bd7eb89a20b76b8bd48c7

Status: Downloaded newer image for gcr.io/tensorflow/tensorflow:latest

[I 20:40:40.719 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret

[W 20:40:40.775 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.

[W 20:40:40.776 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and n

ot recommended.

[I 20:40:40.844 NotebookApp] Serving notebooks from local directory: /notebooks

[I 20:40:40.845 NotebookApp] 0 active kernels

[I 20:40:40.846 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/

[I 20:40:40.848 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).


이상태에서 jupyter로 접속.

로컬에 있는 python으로는 import tensorflow 에러남

jupyter내 python2로 아래 처럼 수행하면 실행됨. 뭘까.....


위 단계에서 이게 빠졌넹. tensorflow받기.. 한것 같은데..

C:\Users\Administrator>docker run -it b.gcr.io/tensorflow/tensorflow:latest-devel

docker: An error occurred trying to connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create: open //./pipe/docker_engine: The syst

em cannot find the file specified..

See 'docker run --help'.

C:\Users\Administrator>FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO %i

C:\Users\Administrator>SET DOCKER_TLS_VERIFY=1

C:\Users\Administrator>SET DOCKER_HOST=tcp://192.168.99.101:2376

C:\Users\Administrator>SET DOCKER_CERT_PATH=C:\Users\Administrator\.docker\machine\machines\vdocker

C:\Users\Administrator>SET DOCKER_MACHINE_NAME=vdocker

C:\Users\Administrator>REM Run this command to configure your shell:

C:\Users\Administrator>REM      @FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO @%i


C:\Users\Administrator>docker run -it b.gcr.io/tensorflow/tensorflow:latest-devel

Unable to find image 'b.gcr.io/tensorflow/tensorflow:latest-devel' locally

latest-devel: Pulling from tensorflow/tensorflow

a64038a0eeaa: Pull complete

2ec6e7edf8a8: Pull complete

0a5fb6c3c94b: Pull complete

a3ed95caeb02: Pull complete

ed54cceb1f9b: Pull complete

219efdf5ea33: Pull complete

147d151c1430: Pull complete

48862cd9a16f: Pull complete

aa5acc667d66: Pull complete

348cc777900e: Pull complete

0872ed622c8c: Pull complete

a718d6248904: Pull complete

2b705ad62ec4: Pull complete

1f90a0184aa3: Pull complete

00278cb3e438: Pull complete

Digest: sha256:231dfe3589219e758b636f3b7d3948ef8935db53f53612c10d92441c3d6fcbc6

Status: Downloaded newer image for b.gcr.io/tensorflow/tensorflow:latest-devel

root@eb297f9585cd:~#

root@eb297f9585cd:~# python

Python 2.7.6 (default, Jun 22 2015, 17:58:13)

[GCC 4.8.2] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow as tf

>>> hello = tf.constant('hello tensorflow is it doing well?')

>>> sess = tf.Session()

>>> print sess.run(hello)

hello tensorflow is it doing well?

>>>

>>> exit

Use exit() or Ctrl-D (i.e. EOF) to exit

>>>

root@eb297f9585cd:~#

root@eb297f9585cd:~# exit


C:\Users\Administrator>


-------------------------


구글링 잘 못해서... 이것 저것 찾아보면서 아직 하는 이유는.

local에 install된 python, ipython을 윈도우 commnad창에서 실행해서 들어갔을때

>>>import tensorflow as tf 하면 에러나서임.
그래서 아래 url의 방법으로 한번 더 시도함.

http://cheonbrave.blogspot.kr/2016/12/7-1-httpswww.html?spref=fb


이상하네..

그냥 cmd 창에서 아래 실행하면
docker run -it b.gcr.io/tensorflow/tensorflow:latest-devel

linux shell 창으로 들어가고.

거기서는 import tensorflow as tf 로 참조되네. 뭘 어떻게 해야하는가.


https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html#anaconda-installation

다시보기

AND

https://en.wikipedia.org/wiki/Google_Brain

구글은  'Google Brain'이라 불리우는 머신러닝프로젝트를 진행했다. 

youtube에서 플레이되는 그 많은 비디오에서 고양이를 찾아내는 프로젝트다. 학습시킨 머신을 이용해서 비디오에 나타나는 '고양이'를 찾는다.

그 프로젝트의 머신러닝을 리드한 이,스텐포드 교수  andrewng,  andrewng.org 참고





딥러닝이란?

기계학습 알고리즘의 집합,

위키백과에서는 https://ko.wikipedia.org/wiki/%EB%94%A5_%EB%9F%AC%EB%8B%9D


딥 러닝 소프트웨어 라이브러리[편집]

Torch

Theano

Deeplearning4j, JVM에서의 분산 딥 러닝 라이브러리.

ND4J

NVIDIA cuDNN DNN의 프리미티브를 제공해주는 라이브러리.

DeepLearnToolbox, MATLAB/Octave 딥 러닝을 위한 툴박스.

convnetjs, 자바스크립트로 구현된 딥 러닝 라이브러리.

Gensim 자연언어처리를 위한 툴킷.

Caffe Berkeley Vision and Learning Center (BVLC)에서 만든 딥러닝 프레임워크

Tensorflow 구글에서 발표한 기계학습 오픈소스 library


AND

(사이트 만들때 적용필요)


1번째 로그인 실패 : 지연 없음

2번째 로그인 실패 : 2초 지연

3번째 로그인 실패 : 4초 지연

4번째 로그인 실패 : 8초 지연

5번째 로그인 실패 : 16초 지연


이런식으로 재차 로그인 하는 사용자에 대해서  제한 할 필요가 있음.




'Deep Learning' 카테고리의 다른 글

ubuntu에 tensorflow설치 (Anaconda 포함).  (0) 2017.02.19
Ubuntu NVIDIA GPU check  (0) 2017.02.19
docker machine이란?  (0) 2016.12.02
tensorflow installation.  (0) 2016.11.30
deep learning / machine learning  (0) 2016.11.26
AND



refer url : http://assortedgarbage.com/apigee/

refer hybrid app framework url : http://ionicframework.com/

refer ant install url : https://www.mkyong.com/ant/how-to-install-apache-ant-on-windows/


(phonegap 설치)

C:\Users\Administrator>npm install -g phonegap

npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130

npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

C:\Users\Administrator\AppData\Roaming\npm\phonegap -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js

phonegap@6.3.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap

├── pluralize@0.0.4

├── opener@1.4.1

├── colors@0.6.0-1

├── semver@1.1.0

├── minimist@0.1.0

├── qrcode-terminal@0.9.4

├── shelljs@0.1.4

├── update-notifier@0.6.3 (is-npm@1.0.0, semver-diff@2.1.0, chalk@1.1.3, boxen@0.3.1, configstore@2.1.0, latest-version@2.0.0)

├── prompt@0.2.11 (revalidator@0.1.8, pkginfo@0.4.0, read@1.0.7, utile@0.2.1, winston@0.6.2)

├── phonegap-build@0.10.0 (colors@0.6.2, qrcode-terminal@0.8.0, optimist@0.3.7, shelljs@0.0.9, phonegap-build-api@0.4.0)

├── insight@0.8.2 (object-assign@4.1.0, async@1.5.2, node-uuid@1.4.7, lodash.debounce@3.1.1, chalk@1.1.3, tough-cookie@2.3.2, configstore@1.4.0, os-name@1.0.3, request@2.78.0, inquirer@0.10.1)

├── connect-phonegap@0.24.0 (connect-inject@0.4.0, ip@1.1.3, adm-zip@0.4.7, http-proxy@1.15.1, walkdir@0.0.11, shelljs@0.2.6, useragent@2.1.9, socket.io@1.5.0, request@2.76.0, connect@2.30.2, archiver@1.1.0, gaze@1.1.2,ocaltunnel@1.8.1)

└── cordova@6.1.1 (underscore@1.7.0, q@1.0.1, ansi@0.3.1, nopt@3.0.1, update-notifier@0.5.0, cordova-common@1.5.1, cordova-lib@6.1.1)



--------------

(ionic 설치)

C:\Users\Administrator>npm install -g cordova ionic

npm WARN deprecated node-uuid@1.4.7: use uuid module instead

C:\Users\Administrator\AppData\Roaming\npm\cordova -> C:\Users\Administrator\App

Data\Roaming\npm\node_modules\cordova\bin\cordova

C:\Users\Administrator\AppData\Roaming\npm\ionic -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\ionic\bin\ioniccordova@6.4.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova

├── underscore@1.7.0

├── q@1.0.1

├── nopt@3.0.1 (abbrev@1.0.9)

├── update-notifier@0.5.0 (is-npm@1.0.0, semver-diff@2.1.0, chalk@1.1.3, string-length@1.0.1, repeating@1.1.3, configstore@1.4.0, latest-version@1.0.1)

├── insight@0.8.4 (object-assign@4.1.0, async@1.5.2, uuid@3.0.0, lodash.debounce@3.1.1, tough-cookie@2.3.2, chalk@1.1.3, os-name@1.0.3, configstore@1.4.0, request@2.79.0, inquirer@0.10.1)

├── cordova-common@1.5.1 (cordova-registry-mapper@1.1.15, unorm@1.4.1, underscore@1.8.3, q@1.4.1, semver@5.3.0, ansi@0.3.1, osenv@0.1.3, bplist-parser@0.1.1,

 minimatch@3.0.3, glob@5.0.15, shelljs@0.5.3, elementtree@0.1.6, plist@1.2.0)

└── cordova-lib@6.4.0 (valid-identifier@0.0.1, cordova-registry-mapper@1.1.15, opener@1.4.1, unorm@1.3.3, properties-parser@0.2.3, semver@4.3.6, nopt@3.0.6,dep-graph@1.1.0, shelljs@0.3.0, glob@5.0.15, elementtree@0.1.6, request@2.47.0,xcode@0.8.9, cordova-serve@1.0.0, aliasify@1.9.0, init-package-json@1.9.4, tar@1.0.2, cordova-fetch@1.0.1, cordova-create@1.0.1, plist@1.2.0, cordova-js@4.2.0,npm@2.15.11)

ionic@2.1.12 C:\Users\Administrator\AppData\Roaming\npm\node_modules\ionic

└── @ionic/app-generators@0.0.3


(ionic app설치)

이건 뭘까...  안쓸것 같은데...

C:\Users\Administrator>ionic start myApp tabs

******************************************************

 Dependency warning - for the CLI to run correctly,

 it is highly recommended to install/upgrade the following:


 Please install your Cordova CLI to version  >=4.2.0 `npm install -g cordova`


******************************************************

Creating Ionic app in folder C:\Users\Administrator\myApp based on tabs project

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip

[=============================]  100%  0.0s

Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip

[=============================]  100%  0.0s

Installing npm packages...

npm WARN package.json ionic-project@1.1.1 No repository field.

npm WARN package.json ionic-project@1.1.1 No license field.

npm WARN deprecated gulp-minify-css@0.3.13: Please use gulp-clean-css

npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher

 to avoid a RegExp DoS issue

npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher

 to avoid a RegExp DoS issue

npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail o

n node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible

. Use 'npm ls graceful-fs' to find it in the tree.

-

> node-sass@3.13.0 install C:\Users\Administrator\myApp\node_modules\gulp-sass\n

ode_modules\node-sass

> node scripts/install.js


Downloading binary from https://github.com/sass/node-sass/releases/download/v3.1

3.0/win32-x64-46_binding.node

Download complete

Binary saved to C:\Users\Administrator\myApp\node_modules\gulp-sass\node_modules

\node-sass\vendor\win32-x64-46\binding.node

Caching binary to C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\3.1

3.0\win32-x64-46_binding.node


> node-sass@3.13.0 postinstall C:\Users\Administrator\myApp\node_modules\gulp-sa

ss\node_modules\node-sass

> node scripts/build.js


Binary found at C:\Users\Administrator\myApp\node_modules\gulp-sass\node_modules

\node-sass\vendor\win32-x64-46\binding.node

Testing binary

Binary is fine

gulp-rename@1.2.2 node_modules\gulp-rename


shelljs@0.3.0 node_modules\shelljs


gulp-concat@2.6.1 node_modules\gulp-concat

├── concat-with-sourcemaps@1.0.4 (source-map@0.5.6)

├── vinyl@2.0.1 (is-stream@1.1.0, replace-ext@1.0.0, clone-buffer@1.0.0, clon

e-stats@1.0.0, remove-trailing-separator@1.0.1, clone@1.0.2, cloneable-readable@

1.0.0)

└── through2@2.0.1 (xtend@4.0.1, readable-stream@2.0.6)


gulp-util@2.2.20 node_modules\gulp-util

├── lodash._reinterpolate@2.4.1

├── minimist@0.2.0

├── vinyl@0.2.3 (clone-stats@0.0.1)

├── chalk@0.5.1 (escape-string-regexp@1.0.5, ansi-styles@1.1.0, supports-colo

r@0.2.0, has-ansi@0.1.0, strip-ansi@0.3.0)

├── through2@0.5.1 (xtend@3.0.0, readable-stream@1.0.34)

├── lodash.template@2.4.1 (lodash.values@2.4.1, lodash._escapestringchar@2.4.

1, lodash.templatesettings@2.4.1, lodash.defaults@2.4.1, lodash.keys@2.4.1, loda

sh.escape@2.4.1)

├── multipipe@0.1.2 (duplexer2@0.0.2)

└── dateformat@1.0.12 (get-stdin@4.0.1, meow@3.7.0)


gulp-minify-css@0.3.13 node_modules\gulp-minify-css

├── memory-cache@0.0.5

├── through2@0.6.5 (xtend@4.0.1, readable-stream@1.0.34)

├── bufferstreams@0.0.2 (readable-stream@1.1.14)

├── vinyl-sourcemaps-apply@0.1.4 (source-map@0.1.43)

├── clean-css@3.0.10 (commander@2.5.1, source-map@0.1.43)

└── gulp-util@3.0.7 (object-assign@3.0.0, array-differ@1.0.0, lodash._reevalu

ate@3.0.0, lodash._reescape@3.0.0, lodash._reinterpolate@3.0.0, array-uniq@1.0.3

, beeper@1.1.1, replace-ext@0.0.1, minimist@1.2.0, has-gulplog@0.1.0, fancy-log@

1.2.0, vinyl@0.5.3, chalk@1.1.3, gulplog@1.0.0, lodash.template@3.6.2, through2@

2.0.1, multipipe@0.1.2, dateformat@1.0.12)


gulp@3.9.1 node_modules\gulp

├── interpret@1.0.1

├── pretty-hrtime@1.0.3

├── deprecated@0.0.1

├── archy@1.0.0

├── minimist@1.2.0

├── tildify@1.2.0 (os-homedir@1.0.2)

├── semver@4.3.6

├── v8flags@2.0.11 (user-home@1.1.1)

├── chalk@1.1.3 (escape-string-regexp@1.0.5, ansi-styles@2.2.1, supports-colo

r@2.0.0, has-ansi@2.0.0, strip-ansi@3.0.1)

├── orchestrator@0.3.8 (sequencify@0.0.7, stream-consume@0.1.0, end-of-stream

@0.1.5)

├── gulp-util@3.0.7 (array-differ@1.0.0, lodash._reescape@3.0.0, lodash._reev

aluate@3.0.0, lodash._reinterpolate@3.0.0, beeper@1.1.1, object-assign@3.0.0, ar

ray-uniq@1.0.3, replace-ext@0.0.1, has-gulplog@0.1.0, fancy-log@1.2.0, vinyl@0.5

.3, gulplog@1.0.0, lodash.template@3.6.2, through2@2.0.1, multipipe@0.1.2, datef

ormat@1.0.12)

├── vinyl-fs@0.3.14 (defaults@1.0.3, strip-bom@1.0.0, vinyl@0.4.6, graceful-f

s@3.0.11, through2@0.6.5, mkdirp@0.5.1, glob-stream@3.1.18, glob-watcher@0.0.6)

└── liftoff@2.3.0 (lodash.isstring@4.0.1, lodash.isplainobject@4.0.6, lodash.

mapvalues@4.6.0, rechoir@0.6.2, extend@3.0.0, flagged-respawn@0.3.2, resolve@1.1

.7, fined@1.0.2, findup-sync@0.4.3)


gulp-sass@2.3.2 node_modules\gulp-sass

├── lodash.clonedeep@4.5.0

├── vinyl-sourcemaps-apply@0.2.1 (source-map@0.5.6)

├── through2@2.0.1 (xtend@4.0.1, readable-stream@2.0.6)

├── gulp-util@3.0.7 (object-assign@3.0.0, array-differ@1.0.0, lodash._reinter

polate@3.0.0, array-uniq@1.0.3, lodash._reescape@3.0.0, lodash._reevaluate@3.0.0

, beeper@1.1.1, replace-ext@0.0.1, minimist@1.2.0, has-gulplog@0.1.0, fancy-log@

1.2.0, vinyl@0.5.3, chalk@1.1.3, gulplog@1.0.0, lodash.template@3.6.2, multipipe

@0.1.2, dateformat@1.0.12)

└── node-sass@3.13.0 (get-stdin@4.0.1, lodash.assign@4.2.0, async-foreach@0.1

.3, in-publish@2.0.0, chalk@1.1.3, nan@2.4.0, mkdirp@0.5.1, cross-spawn@3.0.1, g

lob@7.1.1, npmlog@4.0.1, meow@3.7.0, request@2.79.0, node-gyp@3.4.0, sass-graph@

2.1.2, gaze@1.1.2)


bower@1.8.0 node_modules\bower


Adding initial native plugins

Initializing cordova project without CLI

Saving your Ionic app state of platforms and plugins

Saved platform

Saved plugins

Saved package.json


♬ ? ♬ ?  Your Ionic app is ready to go! ♬ ? ♬ ?


Some helpful tips:


Run your app in the browser (great for initial development):

  ionic serve


Run on a device or simulator:

  ionic run ios[android,browser]


Test and share your app on device with Ionic View:

  http://view.ionic.io


Build better Enterprise apps with expert Ionic support:

  http://ionic.io/enterprise


Create an Ionic Cloud account to add features like User Authentication, Push Not

ifications, Live Updating, iOS builds, and more?

(Y/n): n


C:\Users\Administrator>npm install -g cordova

npm WARN deprecated node-uuid@1.4.7: use uuid module instead

C:\Users\Administrator\AppData\Roaming\npm\cordova -> C:\Users\Administrator\App

Data\Roaming\npm\node_modules\cordova\bin\cordova

cordova@6.4.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova

├── underscore@1.7.0

├── q@1.0.1

├── nopt@3.0.1 (abbrev@1.0.9)

├── update-notifier@0.5.0 (is-npm@1.0.0, semver-diff@2.1.0, chalk@1.1.3, stri

ng-length@1.0.1, repeating@1.1.3, configstore@1.4.0, latest-version@1.0.1)

├── insight@0.8.4 (object-assign@4.1.0, async@1.5.2, uuid@3.0.0, lodash.debou

nce@3.1.1, tough-cookie@2.3.2, chalk@1.1.3, os-name@1.0.3, configstore@1.4.0, re

quest@2.79.0, inquirer@0.10.1)

├── cordova-common@1.5.1 (cordova-registry-mapper@1.1.15, unorm@1.4.1, unders

core@1.8.3, q@1.4.1, semver@5.3.0, ansi@0.3.1, osenv@0.1.3, bplist-parser@0.1.1,

 minimatch@3.0.3, glob@5.0.15, shelljs@0.5.3, elementtree@0.1.6, plist@1.2.0)

└── cordova-lib@6.4.0 (valid-identifier@0.0.1, cordova-registry-mapper@1.1.15

, opener@1.4.1, unorm@1.3.3, properties-parser@0.2.3, semver@4.3.6, nopt@3.0.6,

dep-graph@1.1.0, shelljs@0.3.0, glob@5.0.15, xcode@0.8.9, elementtree@0.1.6, req

uest@2.47.0, cordova-serve@1.0.0, init-package-json@1.9.4, aliasify@1.9.0, tar@1

.0.2, cordova-fetch@1.0.1, cordova-create@1.0.1, plist@1.2.0, cordova-js@4.2.0,

npm@2.15.11)




'Android' 카테고리의 다른 글

Android Emulator guide  (0) 2017.02.18
hybrid App step1  (0) 2016.10.15
Android 다국어  (0) 2015.11.30
안드로이드 마켓  (0) 2015.11.27
안드로이드에서 FragmentTabHost를 이용한 탭 메뉴구성  (0) 2015.11.23
AND

얼마전에 bootstrap 디자인 샘플로 

비즈니스분석에 대한 소개를 만든적이 있는데.. 3달정도.

이런 형식은 html5로 웹으로 게시해도 되지만(모든 device에 적용됨)

hybrid app 을 만들어 사용하면 좋겠다 생각이 들었다. 디자인이 힘든 나같은 사람에게는 만들기도 쉽지 않을까?하는 생각. 


제품소개, 잘 변하지않는 쇼핑몰 상품리스트 등에 적용해서 이런걸로 만들어서 해도 좋겠다 싶네.

try.......

먼저 android studio에서 hybrid app 개발가능하도록 세팅해보자.


https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/hybrid_ios.htm

cordova를 설치해야하는군.
https://cordova.apache.org/docs/en/latest/guide/platforms/android/

[ANDROID_HOME]
C:\Users\Administrator\AppData\Local\Android\sdk

[JAVA_HOME]
C:\Program Files\Java\jdk1.7.0_79

first of all you have to install 1)node.js 2)apache ANT 3) Java JDK & JRE 4) Android SDk & Eclipse and then after all installation you have to set this all software path into environmental- variable. and then fire your npm install -g ionic. without this all software installation and there path setup your ionic application will not created.

continue...

'Android' 카테고리의 다른 글

Android Emulator guide  (0) 2017.02.18
hybrid app development step2  (0) 2016.11.16
Android 다국어  (0) 2015.11.30
안드로이드 마켓  (0) 2015.11.27
안드로이드에서 FragmentTabHost를 이용한 탭 메뉴구성  (0) 2015.11.23
AND


 PCA9685 Driver (16 채널)

사용방법 및 configuration.


참고) https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c

AND

ARTICLE CATEGORY

분류 전체보기 (66)
금융 (0)
관제 (4)
Unix (1)
Android (6)
Windows (2)
Java (4)
oracle (3)
web (3)
English (3)
Physics (1)
Books (6)
요리 (1)
Deep Learning (6)
IoT (21)
to-do list (0)
Music (1)

RECENT ARTICLE

RECENT COMMENT

CALENDAR

«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

ARCHIVE