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


Bash , Kill $pids




- 프로세스 찾기

- 문자열 null 비교

- Kill 명령어 실행


#!/bin/bash

lsof -i | grep 8117
pids=`lsof -i | grep 8117 | grep -v grep | awk '{print $2}'`
echo $pids
if [ ! -z "$pids" ] 
then
	kill -9 $pids
else
	echo "Not Found!"
fi


블로그 이미지

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.

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

모네로(XMR, monero) 채굴용 Pool 구축하기



- 모네로 채굴, 저렴한 수수료, 자체 구축


- 1 CPU로 시작해서, 4 CPU로 확장을 고려(방문자가 많아지면,)


- 채굴장에서 전용풀도 필요하다면, 원격 구축 대행 가능(?)




채굴 실행 / 채굴 접속 


- 이미지 : 채굴중 진행 표시

- Mining Program 마이닝 프로그램 : xmr-stak-cpu.exe


- 설정 : config.txt

-- "cpu_threads_conf":

-- "pool_address" : 

-- "wallet_address" :

-- "pool_password" :



사전 준비


1. VPS (가상 사설 서버, 최소 1CPU/1GB/20GB HDD, 권장 4 CPU/8GB/80GB HDD )


2. Ubuntu 14.04 x64 (최소)


3. Putty / Winscp등의 ssh /sftp 지원툴




Ubuntu 설정


1. Update Ubuntu


2. Setup SWAP


3. 필요한 패키지 설치




Monero 데몬 설정(Wallet)



1. 폴더 생성 : mkdir monero

2. 다운로드 & unzip : https://downloads.getmonero.org/monero.linux.x64.v0-10-1-0.tar.bz2

3. monerd실행 (동기화)




채굴풀 설정(Mining Pool )


1.git clone : git clone https://github.com/zone117x/node-cryptonote-pool.git pool

2. cd pool

3. npm update

4. cp config_example.json config.json

5. 수수료를 저렴하게 수정, 출금 금액도 낮게 설정





결과물 : 웹 메인 화면





원문 : 

http://betbybitcoin.com/setup-monero-mining-pool-using-node-cryptonote-pool/


참조 : https://github.com/teracycle/teracycle-pool

참조 : https://moneroeric.com/install-monero-wallet-address/

블로그 이미지

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.

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

xmr-stak-cpu 빌드(컴파일) 하기



XMR(모네로, monero)를 위한 CPU채굴 프로그램




1. 폴더 생성


mkdir c:\xmr-stak-dep


2. Visual Studion 2017 Commnunity 다운로드 및 설치, 실행후에


1) Desktop development with C++(왼쪽에서 선택)

2) Toolset for Visual Studio C++ 2015... (오른쪽에서 선택)


3. Cmake for Win64 다운로드 ( 3.9 )


4. Dependencies ( OpenSSL/Hwloc and Microhttpd ) 다운로드


unzip c:\xmr-stap-dep

 


개발자 기부/수수료

4.1 on_switch_pool(size_t pool_id) : 

    if ( pool_id = dev_pool_id )

     donate.xmr-stak.net:6666 또는 donate.xmr-stak.net:3333

4.2 case EV_SWITCH_POOL:

    on_switch_pool(ev.iPoolId)


5. 컴파일


xmr-stak-cpu를 github에서 다운로드후 unzip c:\xmr-stak-cpu


아래 명령어를 실행




 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"
set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..
msbuild xmr-stak-cpu.sln /p:Configuration=Release
cd bin\Release
copy ..\..\..\config.txt .


또는 c:\xmr-stak-cpu 아래에

_vs1SetEnv.bat


"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"

pause

_vs2Build.bat

:: should run after : setVs.bat

set CMAKE_PREFIX_PATH=d:\xmr-stak-dep\hwloc;d:\xmr-stak-dep\libmicrohttpd;d:\xmr-stak-dep\openssl
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..
msbuild xmr-stak-cpu.sln /p:Configuration=Release
cd bin\Release
copy ..\..\..\config.txt .

pause



5.1 실행시 Error1 : msvcp140.dll, vcruntime140.dll not available erros 

--> 다운로드 from Microsoft



5.2 원본 : https://github.com/fireice-uk/xmr-stak-cpu


5.3 첨부 : 컴파일 버젼





* 개발자 기부 수수료 부분 (자세히)


https://github.com/fireice-uk/xmr-stak-cpu/blob/master/executor.cpp
// executor.cpp
void executor::ex_clock_thd()
{
	size_t iSwitchPeriod = sec_to_ticks(iDevDonatePeriod);	// 6000 -> 12000
	size_t iDevPortion = (size_t)floor(((double)iSwitchPeriod) * fDevDonationLevel); // 240

	//No point in bothering with less than 10 sec
	if(iDevPortion < sec_to_ticks(10))
		iDevPortion = 0;

	//Add 2 seconds to compensate for connect
	if(iDevPortion != 0)
		iDevPortion += sec_to_ticks(2);		// 244
	while (true)
	{
		std::this_thread::sleep_for(std::chrono::milliseconds(size_t(iTickTime)));

		push_event(ex_event(EV_PERF_TICK));

		// Service timed events
		std::unique_lock lck(timed_event_mutex);
		std::list::iterator ev = lTimedEvents.begin();
		while (ev != lTimedEvents.end())
		{
			ev->ticks_left--;
			if(ev->ticks_left == 0)
			{
				push_event(std::move(ev->event));
				ev = lTimedEvents.erase(ev);
			}
			else
				ev++;
		}
		lck.unlock();

		if(iDevPortion == 0)
			continue;

		iSwitchPeriod--;
		if(iSwitchPeriod == 0)
		{
			push_event(ex_event(EV_SWITCH_POOL, usr_pool_id));
			iSwitchPeriod = sec_to_ticks(iDevDonatePeriod);
		}
		else if(iSwitchPeriod == iDevPortion)	// 244
		{
			push_event(ex_event(EV_SWITCH_POOL, dev_pool_id));
		}
	}
}

// donate-level.h
// constexpr double fDevDonationLevel = 2.0 / 100.0;

// executor.h
constexpr static size_t iDevDonatePeriod = 100 * 60;



[실행]

[2017-11-14 11:53:29] : Starting single thread, affinity: 0.
[2017-11-14 11:53:29] : Starting single thread, affinity: 1.
[2017-11-14 11:53:29] : Starting single thread, affinity: 2.
[2017-11-14 11:53:29] : iDevDonatePeriod: 6000
[2017-11-14 11:53:29] : Connecting to pool xmr-eu.dwarfpool.com:8005 ...
[2017-11-14 11:53:29] : iSwitchPeriod: 12000
[2017-11-14 11:53:29] : hwloc: memory pinned
[2017-11-14 11:53:29] : fDevDonationLevel: 1202590843
[2017-11-14 11:53:29] : iDevPortion: 240
[2017-11-14 11:53:29] : iDevPortion: 244
[2017-11-14 11:53:29] : hwloc: memory pinned
[2017-11-14 11:53:29] : MEMORY ALLOC FAILED: VirtualAlloc failed.
[2017-11-14 11:53:29] : hwloc: memory pinned
[2017-11-14 11:53:29] : MEMORY ALLOC FAILED: VirtualAlloc failed.
[2017-11-14 11:53:29] : MEMORY ALLOC FAILED: VirtualAlloc failed.
[2017-11-14 11:53:29] : Connected. Logging in...
[2017-11-14 11:53:30] : Difficulty changed. Now: 20000.
[2017-11-14 11:53:30] : New block detected.


블로그 이미지

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.

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

CudaMiner 윈도우용 컴파일 하기



-- 비트코인/알트코인 마이닝 마이너 만들기



1. 사전 준비


1) Visual Studio 201x (c++설치)


2) Nvidia CUDA Toolkit 5.5 , https://developer.nvidia.com/cuda-downloads


3) OpenSource Package ( phthreads, OpenSSL, curl )


4) Download CudaMiner Source , https://github.com/cbuchner1/CudaMiner




원문 : http://cryptomining-blog.com/tag/compile-cudaminer-for-windows/

블로그 이미지

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.

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

가벼운 LiteCoin wallet(지갑)으로?



Litecoin core를 https://litecoin.org/ 를 통해서 다운로드 가능하지만, 지갑 정보를 모두 수령하기에는 용량이 너무 많다.


대체할 만한 가볍고 사이즈 작은 지갑으로 추천할 만한 것은 Eletctrum-LTC https://electrum-ltc.org/로 Bitcoin의 Electrum Wallet에서 fork된 버젼이다.


- 12개의 보안 문구를 seed로 사용하여, 침입자에게 좌절을 준다

- 지갑키를 압호화하는 패스워드도 필요하다.





- 참조 : 


https://themerkle.com/top-4-litecoin-wallet-clients/


https://www.reddit.com/r/litecoin/comments/6n4r51/best_wallet_for_litecoin/

블로그 이미지

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.

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


비트코인 마이닝 하드웨어 성능 및 가격 비교(채산성)




1. ASIC Hardware/채굴 하드웨어



* Mhash/s = millions hashed per second(double sha256 raw speed performance)



원문 : https://en.bitcoin.it/wiki/Mining_hardware_comparison




2. 채굴 채산성 ( 2017년 8월 기준의 난이도 )


- AntMiner S9 기준 : 14,000,000 Mhash/s ( USD 2,400 ) 


- 월 USD 404 수입 : 6개월에 투자 회수 가능 



* 채산성 비교 2




https://www.cryptocompare.com/mining/#/equipment





* 실시간 Realtime Hashrate (채굴 비중)


https://btc.com/


AntMiner제작사 BitMain에서 운영하는 곳으로

AntPool.com과 BTC.com, HashNest.com등이 있음



* 특정 pool에서, 다중 coin(algorithm) 채굴 결과에 따른 효율성


- 동일 장비라면, 어떤 coin을 채굴하는 것이 좋을까?



블로그 이미지

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.

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

BitCoin/비트코인 채굴하기



1. mining pool 가입하기


- 일반적인 PC로는 1bit coin를 채굴하기 위해서는 수백년이 소요된다.


- 대표적인 사이트 https://bitminter 가입하기



2. 채굴 도구 설치하기



- Java를 통해서 실행되는 Client로서, Java설치가 필요하다.



3. 채굴 Client 실행



- ENGINE START를 누르면, 시작된다.


- Client실행후에 Settings->Account의 설정은 https://bitminter.com/members/workers의 Workers설정과 가입 ID를 사용하면 된다.

- https://bitminter.com/members/workers의 메뉴에서 "Accepted"가 Client에서 작업한 결과를 반영하는 항목이다.


- 이 방식은 GPU를 사용하는 과정으로, ASIC를 사용하는 방식은 설명을 찾아 보면 될 것 같다.




*  CPU로 채굴하기


How to mine BitCoin with your CPU

https://jonathanmh.com/how-to-mine-bitcoin-with-your-cpu/


- cpuminer 

1. 다운로드, https://github.com/pooler/cpuminer

2. 사용법, minerd --help

3. 옵션

-a : specify the algorithm

-o : URL of mining sever


        • us1.bitminter.com:3333 (United States)
        • us2.bitminter.com:3333 (United States)
        • eu1.bitminter.com:3333 (Europe)


-u : username for mining server


e.g. John_asic3


-p : password for mining server


You can put X or 123 as password


-t : number of miner threds

-D: enable debug output

-P: verbose dump of protocol-level activities


mining.notify , https://github.com/ctubio/php-proxy-stratum/wiki/Stratum-Mining-Protocol

 {

  "method": "mining.notify",

  "params": [

// Job ID.

    "3e2f-4",

// Hash of previous block.

    "cc8122818b18803ee5d1 0f737a65b4bc083a2a8c00c6bf500000000000000000",

// The miner inserts ExtraNonce1 and ExtraNonce2 after this section of the coinbase

    "0100000001000000000000000000000000000000000 0000000000000000000000000000000ffffffff4d03bd5407094269744d696e7465722cfabe6d6d345a22ef755 0f17b770cd4443b0d6518cdc894f396e3bd6ec8d530bc62bb83380100000000000000096575313e2f00000004",

// The miner appends this after the first part of the coinbase and the two ExtraNonce values

    "ffffffff014089a150000000001976a9145c0e4a6830ff6ea9aea773d75bc207299cd50b7488ac00000000",

// List of merkle branches. The coinbase transaction is hashed against the merkle brances to build the final merkle root

    [

      "9e67c63ad57b49ab4be0bb35193dddf1910ade39a89e08e90f5af1c5a75fff2d",

      "bef5a66cadfd72b4003d8 fe43cc47dd799a1eea591779fcd1ea725d02a4de297",

      "27f05a3d8292bffe8836c605373a97b95210960fbb65 eab217ce8c1450c4198e",

      "d223f3be32ab0acaea400255ff40150487ad826d38ba9d484ceb8417aeb28b16",

      " 3ae54c3a88eee2ef1440cb171f23e25dd6c3c2f20e29d554e65848c4bfb3db69",

      "7709c4da7d0ccc6de618dc3 732e9ef542da80cd7cc68c6b105ccbad57b09a193",

      "2dda89452949583814463fa1dfc21ca5922835d893afb5 ac817b7028ab3b7efe",

      "1c0da5af5cb8c86d013e6dbce9e4ac8386e4b00d4d810e6cf75c8b36e4a480a7",

      "d7 dfa91ccabf0f151c388726a410f4ab430a231348b03862c2ca17ebcaa6c96a",

      "5533806ec8f9c855711eb7e99 07d878e56b9ed5986dd3e26c91868768ddc64a1",

      "b0194b4ea47866169ab41468208ac475e9a70c1af6467d0a 6a93dc9bcc0da0ed"

    ],

// Bitcoin block version, used in the block header

    "20000002",

// nBit, the encoded network difficulty. Used in the block header.

    "180130e0",

// nTime, the current time. nTime rolling should be supported, but should not increase faster than actual time.

    "59911174",

// Clean Jobs. If true, miners should abort their current work and immediately use the new job. 

// If false, they can still use the current job, but should move to the new one after exhauting the current nonce range.

    false

  ],

  "id": 1

}



*  주의할 사이트

1. 맬웨어 : minergate.com



블로그 이미지

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 IDLE에서 Shift+Tab이 안되는 경우



1. 옵션  -> Cofigure IDLE
2. Keys탭을 선택

3. "dedent-region"를 목록에서 선택
4. "Get New Keys for Selection"버튼 클릭

5. Shift선택하고, Tab을 목록에서 고른다.







참조 : 

https://stackoverflow.com/questions/790711/how-to-remove-tab-indent-from-several-lines-in-idle

블로그 이미지

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.

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

AWS S3 파일 업로드 연동하기 (with Java)


AWS S3와 연동하기 위해서는 아래 참조의 경우를 살펴보면, 장단점등이 있으며, 이를 보완할 필요가 있다. 

물론, 연동을 위해서는 Java용 AWS SDK가 필요하다.( aws.amazon.com/ko/sdk-for-java ) 



1. SDK를 포함후에 확인된 Dependency


- jackson-annotations-x.x.x.jar, jackson-core-x.x.x.jar, jackson-databind-x.x.x.jar

- joda-time-x.x.x.jar

- http-core-x.x.x.jar

- http-client-x.x.x.jar


실행시에 ClasssNotFoundException이 발생한다면, 해당 Dependency들을 추가 해야 한다.



2. 연동 클래스 만들기


1) 생성자부분


AmazonS3 amazonS3;


AWSCredentials creds = new BasicAWSCredentials(accessKey, secretKey);

amazonS3 = AmazonS3ClientBuild.standard()

.withCredential(creds)

.withRegions(Regions.XXX)

.withForceGlobalBucketAccessEnable(true)

.build();


* withRegions()이 없으면
: SdkClientException이 발생한다.(
Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region.)


http://docs.aws.amazon.com/ko_kr/general/latest/gr/rande.html

1) us-east-2 : 미국 동부 오하이오

2) us-east-1 : 미국 동부 버지니아 북부

3) us-west-1 : 미국 서부 캘리포니아 북부

4) us-west-2 : 미국 서부 오레곤

5) ap-south-1 : 아시아 태평양 뭄바이

6) ap-northeast-2 : 아시아 태평양 서울

7) ap-northeast-1 : 아시아 태평양 도쿄

8) ap-southeast-1 : 아시아 태평양 싱가프로

9) ap-southeast-2 : 아시아 태평양 시드니

... eu-central-1, eu-west-1, eu-west-2, sa-east-1, ca-central-1


2) File Upload부분


PutObjectRequest putObjectRequest = new PutObjectRequest(buckeName, fileName, file);


//file permission

putObjectRequest.setCannedAcl(CannedAccessControlList.PublicRead);


// fill upload

PutObjectResult ret = amazonS3.putObject(pubObjectRequest);





3) 소스 예제



참조 1, [Java] Java를 이용해 AWS S3 파일 업로드 하기

http://dwfox.tistory.com/57


- AmazonS3Client는 deprecated된 상태로 변경이 필요하다.



참조2, Amazon S3 Tutorial – The ULTIMATE Guide

https://www.javacodegeeks.com/2017/03/amazon-s3-tutorial.html


- AmazonS3ClientBuilder를 잘 설명하고 있으나, 다소 복잡한 면이 있다.


참조3, Working with AWS Credentials

http://docs.aws.amazon.com/ko_kr/sdk-for-java/v1/developer-guide/credentials.html

- AWSCredentials인터페이스는 BasicAWSCredentials를 AWS access key와 secret key를 사용해서 생성한다. 이떄 환경설정등에서 가져 오는 방법과 명시적으로 지정하는 방법을 알 수 있다.


참조4, Amazon S3 Examples ( using AWS SDK for Java )

http://docs.aws.amazon.com/ko_kr/sdk-for-java/v1/developer-guide/examples-s3.html 


참조5, Amazon S3,  버킷 생성, 

https://docs.aws.amazon.com/ko_kr/AmazonS3/latest/UG/BucketOperations.html 


Amazon S3에 저장한 모든 객체는 버킷에 존재합니다. 디렉토리로 파일 시스템 내 파일을 그룹화하듯 버킷으로 관련 객체를 그룹화할 수 있습니다. 버킷은 액세스 권한 및 버전 관리 상태 등의 속성을 지니며, 사용자는 버킷이 속할 리전을 원하는 대로 설정할 수 있습니다.


참조6, Amazon S3,  폴더 작업

https://docs.aws.amazon.com/ko_kr/AmazonS3/latest/UG/FolderOperations.html

Amazon S3에서 버킷과 객체는 기본 리소스이며 객체가 버킷에 저장됩니다. Amazon S3에서는 일반적인 파일 시스템에서와 같이 계층이 없는 단순한 구조입니다. 하지만 간결한 구성을 위해 Amazon S3 콘솔에서는 객체를 그룹화하는 수단으로 폴더 개념을 지원합니다.


블로그 이미지

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.

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



KUKA KR210.URDF에서 DH parameter 추출하기



1. Forward Kinematics에서 정의된 URDF파일의 Δ값을 확인후에


2. 실제 변화된 Difference값을 찾기 


1) Twist Angles -> alpha0 ~ 6

2) Link Offsets -> d1 ~ d7

3) Link Lengths -> a0 ~ a6

4) Joint Angles -> theta1 ~ theta7

 

* 파란색의 a1,a2, a3, d1, d4, d7가 중요



<그림>



블로그 이미지

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.

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


Postgres 백업 및 복구 ( Backup & Restore with pgAdmin)



옵션에 따라서 복구시에 에러가 발생하므로, 성공한 백업과 복구 옵션을 기록



1. 우측 메뉴 클릭, Backup  ( 선택된 Schema 전체 )



1) File Options

(1) Filename : 원하는 위치에 파일명을 선택

(2) Format : Custom 선택

(3) Rolename : 원하는 DB User선택


2) Dump Options #1

(1) Sections  : Pre-data, Data, Post-data를 모두 선택

(2) Type Of Objects : 선택 없음

(3) Don't save : Owner, Privilege만 선택


3) Dump Options #2

(1) Queries : Include CREATE DATABASE statement, Use Insert commands만 선택

(2) Disable : 선택 없음

(3) Miscellanous : 선택 없음


4) Objects

전체 선택


Backup 버튼 클릭


2. 우측 메뉴 클릭, Restore
: Database를 선택하거나 없는 경우에는 신규 생성후에 진행 



1) File Options

(1) Format : Custom 선택

(2) Filename : 백업된 파일을 선택

(3) Rolename : 원하는 DB User선택


2) Restore Options #1

(1) Sections  : Pre-data, Data, Post-data를 모두 선택

(2) Type Of Objects : 선택 없음

(3) Don't save : Owner, Privilege만 선택

3) Restore Options #2

선택 없음



Restore 버튼 클릭

'DBMS, noSQL > PostgreSQL' 카테고리의 다른 글

DB ERD 추출 하기  (0) 2017.10.27
dblink 문법  (0) 2017.10.25
재구매, 연속 구매  (0) 2017.04.12
Postgres CPU 과다 사용 ( high CPU Usage )  (0) 2017.01.23
Postgres , CSV를 Table로 import 하는 경우에 에러 발생  (0) 2016.12.06
블로그 이미지

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.

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

100대 국정 과제에서 발견된 문서 오류?



이런 문장의 중복 요소들의 오류를 AI나 머신러닝으로 찾을 수 있을까?




1. 사이트 :


http://www1.president.go.kr/news/newsList4.php?srh%5Bview_mode%5D=detail&srh%5Bseq%5D=822#none



2. 사이트 스크린 샷



3. 문서 내용에서 중복 증상을 보이는 번호들 :

첨 부 국민인수위원회 국민정책제안 국정과제 반영 현황

- 10, 50 

- 91, 92 (유사)

- 14, 76

- 30, 62

- 18, 48

- 5, 82

- 45, 54 (유사)

- 44, 52

- 7, 29

- 28, 53

- 85, 96(유사)


국정운영_5개년_계획_170719-1.pdf


중복 예)


블로그 이미지

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.

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

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


- 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.

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

맥북, SSD용량 확장/증설하기



트레센드 JetDrive Lite 확장 카드는 맥북에 큰 용량의 SSD로 업그레이드를 하지 않아도 쉽게 총 저장 공간을 늘리는 기회를 제공한다.


1. JetDrive Lite 종류


1) JetDrive Lite 130 

(1) 호환 모델 : Macbook Air 13 inches , Late 2010 - Early 2015 

(2) 용량 : 64 GB, 128 GB, 256GB


* 가격 : amazon.com



2) JetDrive Lite 330 

(1) 호환 모델 : Macbook Pro Retina 13 inches , Late 2012 - Early 2015 

(2) 용량 : 64 GB, 128 GB, 256GB


3) JetDrive Lite 350 

(1) 호환 모델 : Macbook Pro Retina 15 inches , Mid 2012 - Early 2013 

(2) 용량 : 64 GB, 128 GB, 256GB


4) JetDrive Lite 360 

(1) 호환 모델 : Macbook Pro Retina 15 inches , Late 2013 - Mid 2015 

(2) 용량 : 64 GB, 128 GB, 256GB




2. JetDrive Lite 외관



3. JetDrive Lite 장착





* 비교 - JetDrive 모델


맥북 용량 확장 트랜센드 JetDrive 


http://m.danawa.com/community/community.html?division=use_epilogue&listSeq=2940384



블로그 이미지

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.

,