레이블이 information인 게시물을 표시합니다. 모든 게시물 표시
레이블이 information인 게시물을 표시합니다. 모든 게시물 표시

2016년 3월 18일 금요일

Javascript promises - html5rocks

I start study about javascript promises. (so late...)
(Promises.js had started 2012-12-06 ver 1.0.)

Start from html5rocks page
http://www.html5rocks.com/en/tutorials/es6/promises/

I think promises core value is "Control Async function system".
If use promises, we can control async callback function.

if all function success -> return true,
else return false.

ref,
Promises.js site
https://www.promisejs.org/

I need more study on promises after this posting.
I will use promises on my projects. :)


Korean version
Promises가 있다는걸 이제야 알았네요.
http://www.html5rocks.com/ko/tutorials/es6/promises/

이 글을 보고 다른것도 찾아보려고 검색해봤더니
좋은 글이 많더라구요

http://programmingsummaries.tistory.com/325
(위의 블로그에는 좋은글들이 많습니다!)

아직 많이 부족해서 아쉬운점이 큽니다만
공부할게 많다는점이 아직 즐겁습니다 ㅎㅎ

2016년 2월 5일 금요일

vnstat - monitor for linux, BSD

http://humdi.net/vnstat/

vnstat - vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s).

1. Ubuntu install vnstat

$sudo apt-get install vnstat


2. vnstat command

$vnstat --help
 vnStat 1.11 by Teemu Toivola <tst at iki dot fi>

         -q,  --query          query database
         -h,  --hours          show hours
         -d,  --days           show days
         -m,  --months         show months
         -w,  --weeks          show weeks
         -t,  --top10          show top10
         -s,  --short          use short output
         -u,  --update         update database
         -i,  --iface          select interface (default: eth0)
         -?,  --help           short help
         -v,  --version        show version
         -tr, --traffic        calculate traffic
         -ru, --rateunit       swap configured rate unit
         -l,  --live           show transfer rate in real time


See also "--longhelp" for complete options list and "man vnstat".


$vnstat
Database updated: Fri Feb  5 00:05:49 2016

   eth0 since 02/05/16

          rx:  80 KiB      tx:  61 KiB      total:  141 KiB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
       Feb '16        80 KiB |      61 KiB |     141 KiB |    0.00 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        --     |      --     |      --     |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
         today        80 KiB |      61 KiB |     141 KiB |    3.23 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        --     |      --     |      --     |

$vnstat -h
eth0                                                                     00:10
  ^                                                                       r
  |                                                                       r
  |                                                                       r
  |                                                                       r
  |                                                                       r
  |                                                                       rt
  |                                                                       rt
  |                                                                       rt
  |                                                                       rt
  |                                                                       rt
 -+--------------------------------------------------------------------------->
  |  01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 00

 h  rx (KiB)   tx (KiB)      h  rx (KiB)   tx (KiB)      h  rx (KiB)   tx (KiB)
01          0          0    09          0          0    17          0          0
02          0          0    10          0          0    18          0          0
03          0          0    11          0          0    19          0          0
04          0          0    12          0          0    20          0          0
05          0          0    13          0          0    21          0          0
06          0          0    14          0          0    22          0          0
07          0          0    15          0          0    23          0          0

08          0          0    16          0          0    00        178         96

Goooooooooooood.


2016년 2월 2일 화요일

ElasticSearch Hardware recommendations

Source : https://www.elastic.co/guide/en/elasticsearch/guide/current/hardware.html

Memory

If you’ve been following the normal development path, you’ve probably been playing with Elasticsearch on your laptop or on a small cluster of machines laying around. But when it comes time to deploy Elasticsearch to production, there are a few recommendations that you should consider. Nothing is a hard-and-fast rule; Elasticsearch is used for a wide range of tasks and on a bewildering array of machines. But these recommendations provide good starting points based on our experience with production clusters.
In my computer environment,

CPUs

Most Elasticsearch deployments tend to be rather light on CPU requirements. As such, the exact processor setup matters less than the other resources. You should choose a modern processor with multiple cores. Common clusters utilize two to eight core machines.
If you need to choose between faster CPUs or more cores, choose more cores. The extra concurrency that multiple cores offers will far outweigh a slightly faster clock speed.

Network

A fast and reliable network is obviously important to performance in a distributed system. Low latency helps ensure that nodes can communicate easily, while high bandwidth helps shard movement and recovery. Modern data-center networking (1 GbE, 10 GbE) is sufficient for the vast majority of clusters.
Avoid clusters that span multiple data centers, even if the data centers are colocated in close proximity. Definitely avoid clusters that span large geographic distances.
Elasticsearch clusters assume that all nodes are equal—not that half the nodes are actually 150ms distant in another data center. Larger latencies tend to exacerbate problems in distributed systems and make debugging and resolution more difficult.
Similar to the NAS argument, everyone claims that their pipe between data centers is robust and low latency. This is true—until it isn’t (a network failure will happen eventually; you can count on it). From our experience, the hassle of managing cross–data center clusters is simply not worth the cost.
...
My server settings...
Mem : 1GB
CPU : 1 core
...
I can't use elasticsearch in my server.
:'-(

2016년 2월 1일 월요일

Ubuntu, install jdk 1.8.x



$sudo add-apt-repository ppa:webupd8team/java
$sudo apt-get update
$sudo apt-get install oracle-java8-installer

You will see some agreement, yes to all

After installation finished,
$java -version

java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)

Good luck!

jsPerf

http://jsperf.com/

This site test javascript performances.

About test example
 triple-equals-vs-double-equals

Page like this.



If you click 'Run tests'

processing and return result to you.
like this.

Testing in Chrome 48.0.2564.97 32-bit on Windows NT 6.3 64-bit
TestOps/sec
===
if (s1 === s2) {}
if (s1 === s3) {}
if (s1 === s4) {}
if (s1 === s5) {}
126,211,632±1.51%89% slower
==
if (s1 == s2) {}
if (s1 == s3) {}
if (s1 == s4) {}
if (s1 == s5) {}
10,709,041±5.01%99% slower
!==
if (s1 !== s2) {}
if (s1 !== s3) {}
if (s1 !== s4) {}
if (s1 !== s5) {}
70,270,530±0.00%fastest
!=
if (s1 != s2) {}
if (s1 != s3) {}
if (s1 != s4) {}
if (s1 != s5) {}
5,273,440±0.00%fastest
=== on same type only
if (s1 === s3) {}
if (s1 === s5) {}
if (s1 === s3) {}
if (s1 === s5) {}
739,712,962±0.00%fastest
== on same type only
if (s1 == s3) {}
if (s1 == s5) {}
if (s1 == s3) {}
if (s1 == s5) {}
565,679,421±0.00%fastest
!== on same type only
if (s1 !== s3) {}
if (s1 !== s5) {}
if (s1 !== s3) {}
if (s1 !== s5) {}
706,719,526±0.00%fastest
!= on same type only
if (s1 != s3) {}
if (s1 != s5) {}
if (s1 != s3) {}
if (s1 != s5) {}
1,133,703,804±0.00%fastest

2016년 1월 8일 금요일

2016년 1월 7일 목요일

AWS Seoul!


AWS(Amazon Web Services) Announcing the new Region, Seoul.




EC2 Pricing



These pricing like Tokyo region.

I was surprised this new announcement.
LOL

2015년 12월 29일 화요일

블로거 구글 웹마스터 Sitemap 등록하기


블로거(Blogger) 블로그를 구글 웹마스터 도구(구글 서치 콘솔)에 등록했었습니다.

https://www.google.com/webmasters/tools/home?hl=ko

구글 웹마스터 콘솔부터 한번 볼까요?











속성추가는 가지고 있는 사이트를 추가할 수 있습니다.

오늘은 속성추가 후에 Sitemap 추가하는 것을 해보려합니다.


















Sitemaps 누르면















Sitemap 테스트 / Sitemap 제출 이 있습니다.

입력하는 곳에
atom.xml?redirect=false&start-index=1&max-results=500

위의 텍스트를 입력해주세요. 입력후에 Sitemap 제출 해주시면
위와 같은 페이지를 보실 수 있을겁니다.

#Sitemap 테스트를 눌러보면 경고가 나오는데
살포시 무시해주시고 진행해도 문제 없습니다.

Sitemap을 제출하는 이유는
구글의 웹크롤러에 등록하여 잘 검색되게끔 하려는 것입니다.

자세한 사항은 구글의 친절한 도움말을 보시면 좋을 것 같아요
https://support.google.com/webmasters/answer/156184?hl=ko

이상 구글 웹마스터 Sitemap 등록 포스팅이었습니다.

2015년 12월 27일 일요일

네이버 웹마스터도구 블로그에 적용하기


우연하게 네이버 웹마스터도구에 대해서 알게되었는데

구글 아날리틱스 말고 다른 것도 적용해보자 해서 적용해보게 되었습니다.

네이버 웹마스터도구는 여기서 보실 수 있습니다.
http://webmastertool.naver.com/



네이버 아이디가 있으면 그냥 로그인하시면 됩니다.
로그인 하면,


이런 화면이 나옵니다
(제가 이미 등록해서 이런 화면일 거에요...ㅎㅎㅎ)

사이트 추가+ 를 누르면
아래와 같은 설정창이 나옵니다.

1. 사이트 정보 입력
- 프로토콜 선택
- 블로그 URL 입력






























2. 사이트 소유 확인
사이트 소유 확인이 필요하다고 합니다
방법은 두가지가 있어요
1. HTML 태그 넣기
2. HTML 파일 업로드 하기

HTML 태그 넣는건 저처럼 blogger를 이용하는 경우와
index.html 코드에 접근할 수 있는 블로그라면 가능합니다.



HTML 파일 업로드는 블로그를 운영하는 곳에 파일을 업로드 할 수 있으면 
HTML 파일 업로드해서 확인해볼 수 있습니다.





웹마스터도구를 등록했으니 들어가봐야겠지요 ㅎㅎ


현재는 수집상태를 알 수 없다고 하는데
기다려보면 될 것 같습니다.

이후에 데이터가 보이는지 한번 더 포스팅 해보겠습니다.

감사합니다

2015년 12월 26일 토요일

구글 지역 가이드(google local guide)


구글 지역 가이드(Google Local Guide)

구글에서 현재 지역 가이드라는 서비스를 하고 있는데요.
말그대로 그 지역에 대한 정보를 올려서 공유하는 서비스 입니다.

URL은 아래와 같습니다.
https://www.google.com/local/guides/

처음에 들어갔을때 페이지는




위와 같은 페이지가 나옵니다.

가입하기!

가입하고 나서 처음에는 가이드를 작성하고자 하는 작성자 위치를 적으라고 합니다.
그 위치를 적어주고 시작합니다.


GOOGLE 지도로 이동 버튼을 눌러보겠습니다.
서울로 가보죠


서울에 정보를 하나 입력해보겠습니다.







위의 캡쳐처럼 참여를 누르면 있는것에서 할 수 있고

그냥 검색을 통해서 입력을 할 수 있습니다.



















위의 예시는 자주 가는 음식점이 등록이 안되어 있어서 등록해봤습니다.
(네이버에는 등록되어있는데 없더라구요)

첫 캡쳐에서의 'Google 지도에 누락된 장소를 추가합니다' 버튼을 누르면
장소추가 팝업이 나옵니다.

다 입력하고 완료가 되면
'Google 지도를 개선할 수 있도록 도와주셔서 감사합니다' 라고 나옵니다.

그 외에 할 수 있는 활동은 이러한 것들이 있습니다.
- 사진 업로드
- 리뷰
- 장소 추가
- 수정 제안
- 투표

이런한 활동을 하면 뭐가 좋냐구요?

구글에서 혜택을 줍니다.
URL : https://www.google.com/local/guides/benefits/index.html

레벨에 따라 다르게 주는데요

1 레벨 (활동 0+) :
  • 지역 가이드 월간 뉴스레터를 통해 최신 정보를 받을 수 있습니다.
  • Google에서 개최하는 워크샵과 행아웃에 참여할 수 있습니다.
  • 일부 국가에서 지역 가이드만을 위한 대회에 참여할 수 있습니다.

2 레벨 (활동 5+):
  • Google의 신제품과 새로운 기능을 미리 사용해볼 수 있습니다.
  • 지역 가이드 캘린더에 모임을 직접 홍보할 수 있습니다.

3 레벨 (활동 50+):
  • Google 지도에서 지역 가이드 배지로 나를 표시할 수 있습니다.
  • 지역 가이드만을 위한 Google+ 커뮤니티에서 다른 지역 가이드와 교류할 수 있습니다.
  • 지역 가이드 커뮤니티 채널을 관리하여 대화할 수 있습니다.
  • 일부 도시에서 Google 주최 이벤트에 참여할 수 있습니다.

4 레벨 (활동 200+):
  • Google 드라이브 스토리지를 무료로 업그레이드할 수 있습니다.
  • 지역 가이드 온라인 채널의 주인공이 될 수 있습니다.
  • 매년 감사의 선물을 받을 수 있습니다.

5 레벨 (활동 500+):
  • 일반에 공개되기 전에 신제품을 먼저 사용할 수 있습니다.
  • Google의 레벨 5 지역 가이드 정상 회담에 참가를 신청할 수 있습니다.


위와 같습니다.

3레벨부터 뭔가 탐나기 시작합니다.
저는 3레벨에 도전!
여러분은 어디까지 가실수 있으신가요?!

이상 포스팅 마치겠습니다.

2015년 12월 25일 금요일

구글 번역 커뮤니티 (Google translate community)

구글 번역 커뮤니티 
(Google translate community)


구글 번역기 성능 향상에 기여할 수 있는 곳이 있습니다.

위치는
https://translate.google.com/community?promo=useredit

우선 저는
한국어->영어 / 영어->한국어
이렇게 두개만 하고 있습니다.


UI는

- 메인 (Main Page)


- 번역 (Translate Page)


- 유효성 검사 (Validate Page)


- 그 외 (etc)
옆에 뱃지 같은게 있는데 뭔지 한번 살펴볼까요


저는 아직 레벨1도 못갔지만 유효성 검사를 100개 하면
레벨1로 갈 수 있다고 하네요
저 뱃지도 많이 모으고 싶은 욕망이..ㅋㅋㅋㅋ

이상 구글 번역 커뮤니티 포스팅이었습니다

2015년 12월 20일 일요일

GitHub Explore

Github Explore



Today, i will show you GitHub function 'Explore'


In GitHub homepage,
login, and you can see this page.



click your avatar image,
you can see this dropdown menu.

this menu have some functions,
i will show you one of these.
Explore









Explore page
this page show you what project most interesting and issued (famous)
In this time, we can see projects. Machine Leaning, Software development tools, Game Engines, Universal 2nd Factor, so on.

You can see the Trending repo this week.
And you can see starred repo ranked this week.



I hope my repositories are most starred some time or other.

end of my today learning.

2015년 12월 17일 목요일

구글 검색어 순위 보기


구글 검색어 순위 보기


네이버에 검색어 순위가 있듯이
구글에서도 검색어 순위를 볼 수가 있는데요

https://www.google.co.kr/trends/?hl=ko




- 최신 인기 검색어
- 2015 차트
- 검색 트렌드 탐색
- 유튜브 영상
- 인기 급상승 검색어 순위
- LEGO에 대한 전 세계 관심도
(LEGO는 왜 보여주는지 모르겠지만 레고도 있네요)

그리고 전 세계 검색어 순위도 볼 수가 있는데요.
위에서 전 세계 값으로 바꿔주면 볼 수 있습니다.



그 외에도 '2015년 올해의 검색어' 라는 것도 있습니다.

https://www.google.co.kr/trends/story/2015_GLOBAL


전 세계 검색어 기준으로한 순위를 볼 수 있습니다.
파리테러, 스타워즈, 화성, 럭비 월드컵 등이 있었네요.




올해 검색어에 대한 동영상입니다.
올해에도 많은 일이 있었네요. 내년에는 좋은일만 가득하길 바라봅니다.

2015년 12월 16일 수요일

blogger에 google analytics 달기

blogger에 google analytics 달기

블로그에 방문자와 다른 데이터를 얻어보고싶어서 google analytics를 달아보기로 했다.

단순히 설정에서 구글 아날리틱스 값을 넣으면 될줄 알았지만



















<- 여기에 설정하는게 있긴하다


이것만 설정해줘야 하는게 아니라

템플릿 메뉴에서



HTML 편집을 누르고 들어가면
코드를 입력할수 있는 곳이 나온다.

코드는
구글 아날리틱스(Google Analytics, https://www.google.com/analytics/) 에서
계정을 만들고 속성을 만든 뒤에 나온 코드를 삽입하면된다.

자세한 사항은
친절한 구글 설명서가 있으니 참고하시면 된다.
(친절한지는...)

코드를 삽입하고 나서 저장을 한다.
그러고 나서 페이지에 들어갔다가 나와서

구글 아날리틱스를 확인해보면...


실시간은 어떤가 보자


나 한명 들어와있다.

이렇게 Blogger 블로그에 구글 아닐리틱스(Google Analytics)를 장착해보는 방법을
알아보았다.

다른 블로그에는 구글 아날리틱스를 어떻게 사용할까에 대한 글이 많은데
나중에는 더 공부해서 어떻게 사용할까를 어떻게 사용했다라는 걸 쓰고 싶다.

JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...