노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

회전 행렬에서 오일러 각을 구하기


- Euler Angles from a Rotation Matrix




1. Rotation Matrix(회전 행렬), 


1) X-Y-Z 외적


2) 각 ( alpha, beta, gamma)




2. 코드

1) Angle -> Matrix

2) Matrix -> Angle


alpha is 45.0000000000000 degrees beta is 60.0000000000000 degrees gamma is 30.0000000000000 degrees

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


yahoo finance 활용(3), 미국 주식 현재가와 비교 하기




1. Scraping 


How to scrape Yahoo Finance and extract stock market data using Python & LXML , https://www.scrapehero.com/scrape-yahoo-finance-stock-market-data/



* 스크래링 결과물, JSON 파일 구조 분석


# Get Values : Year Target Est., EPS, Earnings Date
y_Target_Est = j_l_s["quoteSummary"]["result"][0]["financialData"]["targetMeanPrice"]['raw']  # noqa



2. 추가할 부분


이전글(2)에서 API가 제공하는 과거 시점의 Data이슈가 있으므로, 이전글(2)에서  '주식 목록 읽어서 가져오기' 부분과 상단의 스크래핑하는 부분을 결합 한다면, 최신 가격을 비교하는 코드를 작성 가능할것으로 보임





블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

yahoo finance 활용(2), 미국 주식 현재가와 비교 하기



* 문제점 : yahoo finance를 통해 얻는 정보가 실시간이 아니다.


0. 사전 준비


- install python 2.7 

- install yahoo finance ( >pip install yahoo-finance )

- install code editor : IDLE(python GUI), JetBrain PyCharm, Sublime Text3



1. 전체 코드 Flow 절차


- 구입 가격 리스트를 읽기 

  : HTS등에서 엑셀로 복사하고, csv(utf-8)로 저장


- 리스트의 Symbol값으로 yahoo finance의 share(stock정보)값을 읽기


- 비교후에 결과 출력하기



2. 실행결과





* 소스코드


블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

yahoo finance 활용(1), 미국 저평가 주식 찾기 



아래 원문과 수정된 글에서 Yahoo Finance에서 제공하는 주식 정보를 통해서, 몇가지 저평가 기준을 적용하여, 결과를 얻는 프로그램으로, Python 프로그램 구조와 코딩 문법을 고려하여 재작성을 합니다.


Python코딩 문법은 80칼럼 넘는 부분, 함수간격 2줄, 파라미터 구분자, Indent등을 pep8online.com를 통해서 검사할 수 있습니다.


1. 입력 데이터 파일 만들기


리스트 다운로드는 http://www.nasdaq.com/screening/company-list.aspx


2. 조건식 설정(정의)

# share price is less than 1.5 x book value
PRICE_BOOK_LT = 2.0
# earnings per share is at least 2x bigger than dividend per share
EARN_DIV_GT = 1.5
# dividend yield is more than 3%
DIV_YIELD_RATIO = 3.0
# 5yr PEG is between 0 and 1.1 ( or < 2.0 )
PEG_GT = 0.0
PEG_LT = 2.0



3. 결과 파일 만들기



현재 기준으로 검색 결과는 아래와 같습니다.


아래 코드는 python 2 기준으로 작성되었으며, python 3에서 실행시는 print -> print()로 괄호를 추가 해야 합니다.



아래 형식에서 구분자를 ,를 사용하였으나, Company명에 ,를 사용하는 경우가 있으므로, 구분자의 대체가 필요 해 보입니다.

Symbol,Company,Price,Bookvalue,Dividend share,Dividend yield,EPS,PE ratio,PE growth ratio
AYR,Aircastle Limited,21.77,23.58,1.04,4.81,2.00,10.89,1.89
ABR,Arbor Realty Trust,8.31,9.79,0.72,8.80,1.11,7.46,0.93
CHS,Chico's FAS, Inc.,8.56,4.86,0.33,3.61,0.72,11.94,0.95
FNB,F.N.B. Corporation,14.09,13.22,0.48,3.35,0.73,19.25,1.22
FAF,First American Corporation (New,44.64,27.80,1.36,3.04,3.14,14.23,1.87
GME,Gamestop Corporation,21.15,22.40,1.52,7.27,3.36,6.30,0.83
HT,Hersha Hospitality Trust Class,18.17,20.14,1.12,6.20,2.91,6.25,0.33
IGT,International Game Technology O,18.27,17.80,0.80,4.42,1.23,14.82,1.17
IVZ,Invesco Ltd,36.11,18.83,1.16,3.30,2.20,16.43,1.02
KKR,KKR & Co. L.P. Common Units Rep,19.17,12.63,0.68,3.67,1.76,10.88,0.15
KSS,Kohl's Corporation,37.15,29.20,2.20,5.75,3.45,10.76,1.88
MFC,Manulife Financial Corporation,19.44,15.39,0.55,3.13,1.20,16.20,1.71
ORI,Old Republic International Corp,19.40,17.61,0.76,3.88,1.59,12.22,1.33
PK,Park Hotels & Resorts Inc.,27.00,28.03,1.72,6.41,11.45,2.36,0.51
PKX,POSCO,67.49,115.34,2.08,3.23,4.96,13.59,0.34
RWT,Redwood Trust, Inc.,17.21,15.13,1.12,6.58,1.76,9.78,1.45
SNY,Sanofi American Depositary Shar,49.0425,25.8810,1.6400,3.4300,4.1345,11.8618,1.5500
TGNA,TEGNA Inc,14.38,10.66,0.49,3.41,1.87,7.68,1.95
UMC,United Microelectronics Corpora,2.35,2.91,0.09,3.82,0.14,17.41,1.08
VLO,Valero Energy Corporation,68.03,44.33,2.80,4.11,4.57,14.88,0.77




수정문 : http://blog.naver.com/PostView.nhn?blogId=silvury&logNo=220933350426

원문 :  https://www.reddit.com/r/SecurityAnalysis/comments/4u969n/finding_undervalued_dividend_stocks_with_python/







또는 My Screeners 


Yahoo Finance내의 Screen 서비스를 이용해서, https://finance.yahoo.com/screener 내의 Undervalued Growth Stocks, Growth Technology Stocks, Day Gainers, Day Losers, Most Actives등에서 조건식을 변경하는 방법도 있다.


1. Undervalued Growth Stocks


- Trailling P/E (LTM) is (<0) (0-20) (20-50) (50-80) (>80)

- PEG Ration(5yr expected) is (<1) (1 to 2) ( 2 to 3 ) (>3)

- EPS Growth (LTM) is (<15%) (15% to 25%) (25% to 50%) (50% to 100%) (> 100%)

- Exchange is (NasdaqGS) (NYSE)


2. Growth Technology Stocks


- Quarterly Revenue Growth(yoy) is (<15%) (15% to 25%) (25% to 50%) (50% to 100%) (> 100%)

- EPS Growth (LTM) is (<15%) (15% to 25%) (25% to 50%) (50% to 100%) (> 100%)

- Sector is (Technology)

- Exchange is (NasdaqGS) (NYSE)


참고. developer yahho.com / yql / console


https://developer.yahoo.com/yql/console/#h=select+*+from+pm.finance+where+symbol%3D%22SKT%22

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

Udacity.com Nanodegree(미세 전공) 학위



컴퓨터 전공자와 독학 개발자, 누굴 채용할까? 라는 제목에서 비교를 하고 있지만, 그 보다는

코세라(Coursera), 유다시티(Udacity), 칸아카데미(Kahn Academy)등이 제공하는 MOOCs(Massively Open Online Courses)가 새로운 프로그래밍 언어의 개발자가 되려는 사람들에게 중요한 역할을 하고 있을을 알 수 있다.



그리고, 컴퓨터 공학을 전공하려면 대학 등록금만 1년에 수만달러가 들겠지만, 이들 MOOC를 통해서 저렴한 비용으로 자격증을 취득할 수 있다. 유다시티는 Nono Degree를 월199달러 러에 제공하고 1년이 소요되면, 비용의 절반을 환급하고, 졸업후에 6개월내에 직장을 구하지 못하면, 전액 또는 일부를 돌려준다. ( MOOC를 통해 인생역전 메이저는 전공학위, 마이너는 부전공 학위, 나노는 미세전공 학위쯤...)



Nanodegree, 2017년 7월 현재


- React ( nd019 )

- Intro to Programming

- VR Developer

- Robotics

- Digital Marketing

- Deep Learning Foundations

- Artificial Intelligence

- Self-Driving Car Engineer

- Business Analyst

- Android Basics

- Machine Learning Engineer

- Fron-End Web Developer

- Full Stack Web Developer( nd04)  , 글쓴이가 취득한 학위 -  아마 4번째로 생긴것 같다 

- Android Developer

- Become an iOS Developer

- Data Analyst ( nd02 )



Full Stack Web Developer Nanodegree


CO-CREATED BY : AWS(Amazon Web Service), GitHub, AT&T, Google

TIMELINE : 6 Months

SKILL LEVEL : 중급 ( Intermediate ) 

BASE SALARY : FULL STACK DEVELOPER $40.4K TO $162K ( from PAYSA )



커리큘럼 ( 5 PARTS, 7 PROJECTS )


1. Programming Fundamentals and the Web ( 26개 단원, 2개 프로젝트 )


2. Web Applications and Development ( 8개 단원, 1개 프로젝트 )


3. The Backend : Databases & Applications ( 14개 단원, 2개 프로젝트 )


4. The Frontend: JavaScript & AJAX ( 9개 단원, 1개 프로젝트 )


5. Deploying to Linux Servers ( 6개 단원, 1개 프로젝트 )




진행 방식


각 단원은 1시간~10여 시간이 소요된다.


매주 10시간의 수업을 청취해야 하며, 이를 토대로 3-6개월 정도를 산정한것으로 보인다.


중간 또는 말미에 프로젝트를 완성하고 제출하면, 미흡한 부분등을 알려주면서 보완해서 다시 제출하도록 안내를 한다. 


모든 프로젝트를 통과를 하게 되면, 1개 PART를 완료 처리를 해준다. 


각 프로젝트는 대체로 수일정도가 소요되는것으로 생각이 된다.






블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

vaddin 뉴스 - Vaadin Board for Java is now available





Hello ???,

After releasing Vaadin Board with an HTML API in May, we received a ton of questions on when it will be available with a Java API for Vaadin Framework users. The answer is: NOW, as we are pleased to announce the release of Vaadin Board for Java


Vaadin Board can be used to create dashboards, intro screens, image galleries, or just to build application layouts, so that they will look great on different devices. Responsive behaviour comes built-in and it just works, no need to write any CSS. A total breeze for Java developers. Vaadin Board is commercially licensed and is included in the Pro and Prime subscriptions.

Go check it out right away and give it a spin!

Kind regards, 

Vaadin Team

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

Tomcat에 SSL(HTTPS)추가 하기





1. 위치 

: $CATALINA_HOME/conf


2. 파일 

: server.xml 


3. 수정할 부분 



1) 원본


<!-- 

    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"

               maxThreads="150" scheme="https" secure="true"

               clientAuth="false" sslProtocol="TLS"/>

-->



2. 수정


  <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"

               maxThreads="150" scheme="https" secure="true"

               clientAuth="false" sslProtocol="TLS"

keystorePass=""xxxx" keystoreFile="${user.home}/.keystore"/>



* keytool -genkey

"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA
  -keystore \path\to\my\keystore



4. Servers에서 재등록시 SSL확인






원문

https://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html


참조 

http://blog.daum.net/overpassion1/16


블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

Python Lists , 리스트


원문에서 제공하는 예제는 실제 실행시에, 예약어등의 사용으로 warning과 error가 발생하므로 수정해서 실행을 해야 한다. 이 실행 결과를 정리한다.



##

## Python Lists , 리스트 기본

##


# Lists work similarly to strings - use the len() function and square brackets[] 

# to access data, with the first element at index 0

colors = ['blue', 'blue', 'green']


print (colors[0]) ## blue

print (colors[2]) ## green

print (len(colors)) ## 3


# Assignment with an = on lists doest not make a copy. 복사 금지

# Instead, assignment makes the two variables point to the one list in memory

b = colors ## Does not copy the list


print(b) ## ['blue', 'blue', 'green']


empty_list = [] ## is just an empty pair of brackets []


yield_list = [1,2] + [3, 4] ## The '+' works to append two lists

print(yield_list) ## [1, 2, 3, 4]



##

## FOR and IN , 생성자 For

##


# Python's *for* and *in* constructs are extremely useful, 

# and the first use of them we'll see is with lists.

squares = [1, 4, 9, 16]

total_value = 0

# The *for* construct - for var in list 

#    is an easy way to look at each element in a list.

#    Do not add or remove from the list during iteration.

for num in squares:

  total_value += num

print( total_value ) ##30


# The *in* construct on ite own is an easy way to test if an element appears

# in a list(or other collection) - value in collection - tests if the value is

# in the collection, returning True/False

name_list = ['larry', 'curly', 'moe']

if 'curly' in name_list:

  print('yay')


# test_strings = 'abcd'

# for ch in test_strings:

#   print(ch) ## a b c d


##

## Range , 범위 ( 0 ~ n-1 ) 

##


# The range(n) function yields the numbers 0,1, ... n-1 and range(a,b) returns

# a, a+1, ... b-1 up to but not including the last number.

# for i in range(100):

#   print(i)


##

## While Loop, 반복 While

##


# Python also has the standard while-loop, and the *break* and *continue* statements work

# as in C++ and Java, altering the course of the innermost loop.

i = 1

a = 'abc'

while i < len(a):

  print (a[i]) ## b

  i = i + 3



##

## List Methods , 함수들

##


# Here are some other common list methods.

# list.append(elem) : adds a single element to the end of the list

# list.insert(index, elem) : inserts the element at the given index

# list.extend(list2) : adds the elements in list2 to the end of the list

# list.index(elem) : searches for the given element from the start of the list and returns its index

# list.remove(elem) : searches for the first instance of the given element and removes it

# list.sort() : sorts the list in place(does not return it)

# list.reverse() : reverses the list in place(does not return it)

# list.pop(index) : removes and returns the element at the given index

str_list = ['larry', 'curly', 'moe']

str_list.append('shemp')

str_list.insert(0,'xxx')

str_list.extend(['yyy', 'zzz'])

print(str_list) ## ['xxx', 'larry', 'curly', 'moe', 'shemp', 'yyy', 'zzz']

print(str_list.index('curly')) ## 2


str_list.pop(1)

print(str_list) ## ['xxx', 'curly', 'moe', 'shemp', 'yyy', 'zzz']


# common error 

# : note that the above methods do not *return* the modified list

#   they just modify the original list

num_list = [1, 2, 3]

print(num_list.append(4)) ## None

num_list.append(4)

print(num_list) ## [1, 2, 3, 4, 4]


##

## List Build up, 생성하기

##


# One common pattern is to start a list a the empty list[],

# then use append() or extend() to add elements to it

empty_list = []

empty_list.append('a')

empty_list.append('b')

print(empty_list) ## ['a', 'b']


##

## List Slices, 자르기 [start:end:step]

##


# Slices work on lists just as with strings, and can also be used to change

# sub-parts of the list


char_list = ['a', 'b', 'c', 'd']

print(char_list[1:-1]) ## ['b', 'c']

print(char_list[:]) ## ['a', 'b', 'c', 'd']

print(char_list[1:2]) ## ['b']

char_list[0:2] = 'z'

print(char_list) # ['z', 'c', 'd']



원본 

https://developers.google.com/edu/python/lists















블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,

Python 예제

Web Tech./Python 2017. 7. 4. 18:42
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

Python 예제



## Comments


# This is a one-line Python comment - code blocks are so useful !

""" This type of comment is used to document the purpose of funtions and classes."""


## Declaration/Initialization


# Remember values, not variables, have data types.

# A variable can be reassigned to containe a different data type.

answer = 42

answer_some = "The answer is 42."


## Data Types


boolean = True

number = 1.1

string = "Strings can be declared with single or double quotes."

list_some = ["Lists can have", 1, 2, 3, 4, "or more types together!"]

tuple_some = ("Tuples", "can have", "more than", 2, "elements!")

dictionary = {'one': 1, 'two': 2, 'three': 3}

variable_with_zero_data = None


print(list_some)

print(tuple_some)

print(dictionary)


## Simple Logging


print ("Printed!")


## Conditionals


def test_func(cake):

  if cake == "delicious":

    return "Yes, please!"

  elif cake == "okay":

    return "I'll have a small piece."

  else:

    return "No, thank you."


## Loops


for item in list_some:

  print (item)


def is_big(total, max_val, values):

  i = 0

  while (total < max_val):

    total += values[i]

    i += 2

  return total

  

## Functions


def divide(dividend, divisor):

  quotient = dividend / divisor

  remainder = dividend % divisor

  return quotient, remainder



def caculate_stuff(x, y):

  (q, r) = divide(x, y)

  print (q, r)


## classes

class person(object):


  def __init__(self, name, age):

    self.name = name

    self.age = age

    

  def birthday(self):

    self.age += 1

    



블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


Python, Web 보안 (기초)



1. SQL Injection


  - string format 쿼리

    : 사용자의 조작된 입력값으로 공격을 받게 되는 부분을 차단

    cur = db.cursor()
    query = "SELECT * FROM user_table where user = %s" % user_id
    c.execute(query)


2. XSS ( Cross-site Scripting )


  - html코드를 string format를 통해서 escape처리

    : 의도하지 않는 사용자의 조작된 코드를 방지

return "<'h1>hello, %s! <'/h1>" % user


3. XRF( Cross-site request forgery )


  - flask패키지를 통해서 입력폼을 검증

<form method="POST" action="/"> {{ form.csrf_token }} {{ form.name.label }} {{ form.name(size=20) }} <input type="submit" value="Go"> </form>





* 참조 


https://swalloow.github.io/flask-security , python


https://www.google.co.id/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0ahUKEwiTvfvjh-_UAhUDp48KHdanCqcQFggzMAI&url=https%3A%2F%2Fwww.cs.utexas.edu%2F~shmat%2Fcourses%2Fcs380s_fall09%2F10webappsecurity.ppt&usg=AFQjCNGMlgsoxIp_n-fNUf_Y_XrWg6Inig , Security of Web Applications



http://flask.pocoo.org/docs/0.12/security/, flask


http://nisam.tistory.com/8 , PHP


http://code1018.tistory.com/89, PHP

'Web Tech. > Python' 카테고리의 다른 글

Python Lists 강좌 ( 원문, google.com )  (0) 2017.07.05
Python 예제  (0) 2017.07.04
vagrant up, Authentication failure. Retrying 발생시  (0) 2017.05.16
빅데이타와 Python  (0) 2017.02.07
Eclipse(이클립스), Python Editor 설치  (0) 2016.11.16
블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

github에 업로드 하기 ( from Window )



* github에 저장소 만들기


1. github에 신규 저장소 생성 ( Create a new repository )




* 로컬 저장소(PC 또는 작업 디렉토리)


2. Open Git Bash ( 작업 디렉토리에서 )


3. Git 저장소를 초기화 ( 작업 디렉토리에서 )


$ git init



4. 로컬 저장소에 변경된 부분을 추가


$ git add .  (또는 git status로 변경된 부분을 확인후 개별 등록 가능 )



5. Commit (변경된 부분에 대한 주석 추가)


$ git commit -m "First commit"



* 6-7은 fork하는 원본 저장소의 변경 사항을 가져올떄만...


6. Copy link the remote repository URL ( Copy URL )


7. 로컬 저장소에 remote repository를 추가


$ git remote add origin [remote repository URL]



8. Push the changes to GitHub ( 업로드 등록 )


$ git push origin master




참조 : https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/




* git pull 과 fetch 차이


- fetch는 merge없이 다운로드

- pull은 merge하고 다운로드


http://silvernine.me/wp/?p=309

'Web Tech. > PHP, Web' 카테고리의 다른 글

checkbox로 <div>를 감추거나 보여주거나  (0) 2017.11.24
sqlmap - a penetration testing tool  (0) 2017.11.20
Chrome, Inspect  (0) 2017.04.05
Bootstrap 시작 하기  (0) 2017.02.07
3. OctoberCMS , Creating Themes  (0) 2017.01.20
블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


vagrant up시에 Authentication failure. Retrying...가 반복될때



Oracle VM VirtualBox(4.3.2사용)를 통해서 실행시에,


오른쪽과 같이 에러가 발생하면,


==> default: Waiting for machine to boot. This may take a few minutes...

    default: SSH address: 127.0.0.1:2222

    default: SSH username: vagrant

    default: SSH auth method: private key

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...


1. vagrant ssh-config로 IdentityFile 위치를 확인하고,

2. insecure_private_key.pub의 내용을 복사한다.


3. 다른 bash에서 vagrant ssh를 실행하고, password는 vagrant입력하고 접속한다.

4. 접속후에 .ssh/authorized_keys파일에 복사한 내용을 붙여넣기 한다.



5. 4번이 완료되면, 오른쪽 창이 다음 단계로 넘어간다.



* 명령어 


vagrant up , https://www.vagrantup.com/docs/cli/up.html 

vagrant ssh , https://www.vagrantup.com/docs/cli/ssh.html



'Web Tech. > Python' 카테고리의 다른 글

Python 예제  (0) 2017.07.04
Python, Web 보안 (기초)  (0) 2017.07.04
빅데이타와 Python  (0) 2017.02.07
Eclipse(이클립스), Python Editor 설치  (0) 2016.11.16
Python/파이썬 설치  (0) 2016.11.16
블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

Chrome/크롬을 통한 모바일 디바이스 Inspect


0. 모바일 디바이스, 개발자 옵션 활성화하기


https://developer.android.com/studio/run/device.html#developer-device-options


- Samsung 갤럭시, 활성화

http://www.samsung.com/us/support/answer/ANS00030524/



1.크롬에서 Inspect 화면으로 이동후에 USB 연결한다.




2. 반응이 없을때


1) USB Driver 설치


- Get the Google USB Driver ( & OEM USB Drivers )

https://developer.android.com/studio/run/win-usb.html


2) Android SDK\platform-tools\adb 실행


(1) adb 실행

> adb devices


(2) 디바이스에서,  허용하기


(3) 성공시


참조 :  Get Started with Remote Debugging Android Devices

https://developers.google.com/web/tools/chrome-devtools/remote-debugging/?utm_source=dcc&utm_medium=redirect&utm_campaign=2016q3


블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


Spring Boot , Thymeleaf 설정



1. 프로젝트 생성




- download , project import

* import후에 에러가 발생한다면, Maven Project 버젼을 내려서 시도.


2. 모듈 작성


- src/main/java
-- com.example.HelloController.java
package com.example;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 
 * Controller maps HTTP Requests with view.
 * 
 */
@Controller
public class HelloController {

	@RequestMapping("/hello")
	public String hello(Model model, 
			@RequestParam(value="name",required=false, defaultValue="World") String name) {
		
		model.addAttribute("name", name);
		
		return "hello";
	}
}


- src/main/resources
-- templates/hello.html
<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8" />
	<title>Hello Thymeleaf!</title>
</head>
<body>
	<p th:text="'Hello '+ ${name} +'!'" />
</body>
</html>

* thymeleaf


-- extends SpringBootServletInitializer , configure()

package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;

@SpringBootApplication
public class ThymeleafappApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(ThymeleafappApplication.class, args);
	}
	
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(ThymeleafappApplication.class);
	}
}



-- Run As -> Spring Boot App



참조

http://coderscampus.com/ep01-spring-boot-rocks/

https://hellokoding.com/spring-boot-hello-world-example-with-thymeleaf/

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


2016년 Java 개발 Tool 및 기술 사용 분석


- 작성 시점 : 2016년 초 ~ 7월14일
- 자료 수집 : 질문 항목에 답변
- 자료 답변 : 2,040명

- 설문 문항들
1) 여전히 Eclipse는 최고의 IDE인가?
2) Gradle은 Maven를 따라 잡았나?
3) Git는 승리한건가?
4) Java EE의 개발속도의 장점 및 단점?
5) Java 8을 사용하나?
6) 재배포에 걸리는 시간?
7) APM솔루션은 어떤것을 사용하나?

- 답변자들의 경력

 경력 (년)

비율 (%)

 0-4

15 

 5-9

24 

 10-14

23 

 15-19

19 

 20-29

15 

 30-39

- 답변자들의 직업

 직업

비율(%) 

 Software Developer

54 

Management 

3 

Architect 

18 

Team Lead 

12 

Consultant 

4 

Developer Advocate 

3 

Director/VP/C-Level 

3 

other 


- 답변자들의 개발 분야

분야

비율 (%)

 Full stack web application

67

Backend code only 

18 

Desktop 

6 

Mobile 

3 

Libraries 

2 

Batch 

1

 Other



A. 주요 상용 서비스에 사용하는 자바 버젼은?


종류

비율 (%)

Java 8

62 

Java 7

28 

Java 6

 Other


B. 주요 많이 사용하는 Java EE 버젼은?


종류

비율 (%)

Java EE 7

31 

Java EE 6

17 

Java EE 8

We don't

42 



C. 사용하는 IDE는 ?


종류

비율 (%)

Intellij IDEA

46 

Eclipe

41 

NetBeans

10 

Other


D. 사용하는 Build Tool은 ?


종류

비율 (%)

Maven

68 

Gradle

16 

Ant

11 

Other



E. 사용하는 Application Server 사용은 ?


종류

Production (%)

Development (%)

Tomcat

42 

42 

Jetty

8 

16 

Wildfly

9 

10 

JBoss EAP

8 

 WebLogic

WehSphere 

Glassfish 


F. 사용하는 Database은 ?


종류

비율 (%)

Oracle DB

39 

MySQL

38 

PostgreSQL

29 

MongoDB

15 

 MS SQL

8 

Redist 

8 

DB2 

7 

Other 

 Cassandra

H2 

Couchbase 

Neo4j 





G. 개발에 소요되는 building과 redeploying 시간은 ?


Minutes / App Redeploy

비율 (%)

0 - 1

29 

2 - 5

41 

6 - 10

12 

11 - 30

12 

30 +




H. 사용하는 Web Framework은 ?


Web Framework

비율 (%)

Spring MVC

43 

Spring Boot

29 

JSF

19 

Vaadin

13 

GWT ( Google )

 Play 2

 Grails

4 

Struts 2 

4 

We don't 

17 

Other 

13 

Struts 1 

3 

Apache Wicket

Play 1




I. Continuous Integraion Server은 ?


CIS

비율 (%)

Jenkins

60 

We don't

16 

Bamboo

Teamcity

6 

Other

4 

Hudson

3 

TravisCI



J. 가장 자주 사용하는 VCS은 ?


VCS

비율 (%)

Git

68 

Subversion

23 

Other

4 

Mercurial

3 

CVS



원문 :

https://zeroturnaround.com/rebellabs/java-tools-and-technologies-landscape-2016/

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,