Skip to content

Chris' Laboratory

chrislee.kr – Personal blog as bookshelves

Menu
  • Home
  • Github
  • Contact Me
Menu

Category: Frameworks

Taint all resources in the one module

Posted on 12/01/202312/01/2023 by Chris Lee

Reference: https://gist.github.com/justinclayton/01f349f66e908a243709

Continue reading

npm link with peerDependencies

Posted on 03/01/202306/01/2023 by Chris Lee

Project “sub-library” – package to be linked: Project “main-project” – package to use package 1 First, run the following command in the sub-library Second, run the following command in the main-project Then, run the following command in the sub-library Now, the peer dependency moment will be available in the sub-library package. References:

Continue reading

Failed to transform bcprov-jdk15on-1.68.jar

Posted on 27/07/202227/07/2022 by Chris Lee

Error: Reference: https://github.com/robolectric/robolectric/issues/6521#issuecomment-851736355 Solution: Open android/build.gradle Update gradle version from 4.2.2 to 7.1.3 From: classpath(“com.android.tools.build:gradle:4.2.2”) To: classpath(“com.android.tools.build:gradle:7.1.3”) Open Android Studio for the project and wait for syncing gradle Build again

Continue reading

React Native Boilerplate

Posted on 08/05/202208/05/2022 by Chris Lee

A React Native boilerplate using React Native, React Navigation, React Redux Toolkit, React Native Bootsplash, React Native Onboarding Swiper, Redux Persist, Formik, Yup, Lottie, Axios This is a React Native boilerplate project. The project is using Node.js REST API that I developed as the boilerplate. You can find the Node.js REST API boilerplate project in here….

Continue reading

BUG! exception in phase ‘semantic analysis’ in source unit ‘_BuildScript_’ Unsupported class file major version 61

Posted on 04/11/202104/11/2021 by Chris Lee

Issue: In Arch Linux, when try to execute npm run android, it throws the following error. Solution: Do not use Java 17 Open JDK as it’s not compatible at time of writing. Check Gradle version Check Java compatibility against Gradle version – https://docs.gradle.org/current/userguide/compatibility.html Since OpenJDK 16 does not exist in AUR – https://wiki.archlinux.org/title/java#OpenJDK, install OpenJDK…

Continue reading

Change Java OpenJDK version in Arch Linux

Posted on 04/11/202104/11/2021 by Chris Lee

Issue: When execute npm run android for React Native, the build error occurred as below: Solution: It’s because currently Java version is lower than 11. Assuming already has another Java JDK, simply change Java for Arch Linux. Reference: https://edgardorl.com/blog/configure-java-in-arch-linux-to-run-a-react-native-application/

Continue reading

바이낸스 자동 매매 트레이딩 봇

Posted on 21/03/202129/07/2021 by Chris Lee

추적 매수/매도 기법(Trailing buy/sell strategy)을 이용한 자동화된 바이낸스 자동매매 프로그램 소스 코드: https://github.com/chrisleekr/binance-trading-bot 최신 업데이트 정보는 README.md에 서 확인 가능합니다. 이 페이지는 한국어로 프로그램에 대한 설명만 적혀있습니다. 경고 이 프로그램을 이용하여 돈을 벌 수 있을지 없을지는 절대 보장하지 않습니다. 리스크를 감당하실 수 있을 경우에만 사용하세요! 이 코드를 이용하여 직/간접적으로 생긴 손실이나 경제적인 어려움이 생길 경우 절대 책임지지…

Continue reading

React.js – TypeError: Cannot read property ‘setState’ of undefined

Posted on 26/01/202126/01/2021 by Chris Lee

Problem code Error Solution https://stackoverflow.com/questions/32317154/react-uncaught-typeerror-cannot-read-property-setstate-of-undefined https://reactjs.org/docs/handling-events.html With ES5 With ES6

Continue reading

실시간 환율 받아오기 (Get real-time currency information)

Posted on 21/11/202028/11/2020 by Chris Lee

Code snippet to retrieve real-time currency from exchangeratesapi.io

Continue reading

Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins

Posted on 07/11/202029/07/2021 by Chris Lee

Automated Binance trading bot with trailing buy/sell strategy Github: https://github.com/chrisleekr/binance-trading-bot Warnings I cannot guarantee whether you can make money or not. So use it at your own risk! I have no responsibility for any loss or hardship incurred directly or indirectly by using this code. Read disclaimer before using this code. Before updating the bot, make sure…

Continue reading

Image Optimisation Service

Posted on 16/05/202029/08/2020 by Chris Lee

Github: https://github.com/chrisleekr/image-optimisation This is a practice project. The project contains Node.js API that optimise images – jpg, png, svg, and gif. Node.js, Express, Webpack, Imagemin Demo Post local image to optimise $ curl -v -X POST -F “image=@sample1.jpg” https://image-optimisation.chrislee.kr/image -o sample1-output.jpg Pass remote image URL to optimise $ curl -v -X POST “url=https://raw.githubusercontent.com/chrisleekr/image-optimisation/master/examples/sample1.jpg” https://image-optimisation.chrislee.kr/image -o…

Continue reading

애자일 스프린트 회고 도구(Agile Sprint Retrospective Tool)

Posted on 10/04/202029/08/2020 by Chris Lee

스프린트(Sprint)를 운영하면 2주에 한번 아니면 한달에 한번씩 정기적인 “회고(Retrospective)”를 해야한다. 모든 팀원이 솔직하게 익명으로 자신의 의견을 개진해야하고, 그 의견들을 다같이 토론하여 프로젝트 운영에 반영해야 팀의 만족도와 프로젝트 진행율이 개선된다. 이러한 회고를 통해 팀원들이 같은 실수를 하는 것을 방지할 수 도 있다. 회고를 할때 중요한 점은 어떤 의견이든지 절대 나무라거나 쓸데 없는 의견이라고 치부하지 말아야 한다….

Continue reading

Node.js + MongoDB RESTful API Boilerplate

Posted on 13/03/202029/08/2020 by Chris Lee

Github: https://github.com/chrisleekr/nodejs-mongodb-api-boilerplate This is a sample project that I followed the tutorial Build Node.js RESTful APIs in 10 Minutes written by Olatunde Garuba. How to start $ docker-compose up -d $ docker logs -f api This command will build Node.js API and launch docker container mongo and mongo-express Endpoints Node.js API Method URL Sample Data GET http://localhost:3000/tasks POST http://localhost:3000/tasks {“name”:”Fix…

Continue reading

Node.js (REST API) + Vue.js/Nuxt.js (Frontend/Backend) + MySQL Boilerplate

Posted on 10/10/201929/08/2020 by Chris Lee

Github: https://github.com/chrisleekr/nodejs-vuejs-mysql-boilerplate This is a boilerplate project. The project contains Node.js REST API and frontend/backend developed by Vue.js with BootstrapVue. API Node.js, Express, Webpack, Express Validator, JWT, Bunyan, Promise MySQL, Node Mailer, Jest, Supertest, Nodemon Frontend – Nuxt.js Nuxt.js, Vue.js, Vuex, Vuelidate, BootstrapVue, Jest Frontend – Vue.js Vue.js, Vuex, Vue Router, Vue Draggable, Vuelidate, BootstrapVue,…

Continue reading

Certbot으로 무료 SSL/TLS 인증서 발급/재발급 하기

Posted on 18/05/201918/05/2019 by Chris Lee

참고자료: https://www.bennadel.com/blog/3420-obtaining-a-wildcard-ssl-certificate-from-letsencrypt-using-the-dns-challenge.htm SSL 새로 발급 받기 SSL 재발급하기

Continue reading

[PHP+MySQL] 간단한 카카오 i 오픈빌더 챗봇 만들기 (Kakao i Open Builder)

Posted on 29/03/201929/08/2020 by Chris Lee

카카오 i 오픈빌더 (Kakao i Open Builder)를 이용한 플러스 친구 챗봇 (PHP + MySQL) 백엔드 프로젝트 이 프로젝트는 샘플 테스트용으로 카카오톡 플러스 친구 챗봇을 구현하기 위해 만들어졌습니다. 이 프로젝트는 아주 기본 기능만을 구현하였습니다. Production 환경에서는 사용하기에 부족함이 많으니 참고용으로만 사용하시기 바랍니다. 테스트 커뮤니티 챗봇: http://pf.kakao.com/_vAKtj Backend API: https://kakao.chrislee.kr Backend 소스코드: https://github.com/chrisleekr/kakao-plusfriend-bot-backend 개발 환경 PHP 7.2…

Continue reading

Workerbox (Service Worker)로 사이트 로딩 속도 향상 시키기

Posted on 02/03/201903/03/2019 by Chris Lee

Service Worker: 웹페이지와 별개로 브라우저가 백그라운드에서 실행시키는 자바스크립트 코드. 푸쉬, 동기화, 오프라인 모드 지원 https://developers.google.com/web/fundamentals/primers/service-workers/ Workerbox: 구글에서 제공하는 자바스크립트 라이브러리로써 웹앱의 오프라인 지원을 쉽게 할 수 있도록 해줌. https://developers.google.com/web/tools/workbox/ Workerbox 설치 법: Step 1/2: In the bottom of your website, add following Javascript code snippet: Step 2/2: Create service-workers.js and add following snippet:

Continue reading

Get all validation errors for Angular form

Posted on 24/11/201802/03/2019 by Chris Lee

Reference 1: https://gist.github.com/JohannesHoppe/e8d07d63fc345a5fdfdf4fc4989ef2e4 import { FormGroup, ValidationErrors } from ‘@angular/forms’; export function getFormValidationErrors(form: FormGroup) { const result = []; Object.keys(form.controls).forEach(key => { const controlErrors: ValidationErrors = form.get(key).errors; if (controlErrors) { Object.keys(controlErrors).forEach(keyError => { result.push({ ‘control ‘: key, ‘error’: keyError, ‘value’: controlErrors[keyError] }); }); } }); return result; } Reference 2: public ngOnInit() { this.form.valueChanges.subscribe(data => this.onValueChanged(data));…

Continue reading

Yii2 errors – Failed to clone the git and “extra.asset-installer-paths” option is deprecated`

Posted on 11/11/201811/11/2018 by Chris Lee

Error 1. The “extra.asset-installer-paths” option is deprecated, use the “config.fxp-asset.installer-paths” option Update composer.json by removing asset-installer-paths and add fxp-assets { … “extra”: { “yii\\composer\\Installer::postCreateProject”: { “setPermission”: [ { “runtime”: “0777”, “web/assets”: “0777”, “yii”: “0755” } ], “generateCookieValidationKey”: [ “config/web.php” ] } }, “fxp-asset”: { “installer-paths”: { “npm-asset-library”: “vendor/npm”, “bower-asset-library”: “vendor/bower” } } … }   Error…

Continue reading

Javascript project devtools

Posted on 14/10/201814/10/2018 by Chris Lee

Javascript project development tools Babel: https://babeljs.io/docs/en/ Javascript compiler – Transform syntax, Polyfill features and so on $ babel -o dist/package.js dist/package.js Standard: https://standardjs.com/ Javascript style guide, linter and formatter $ standard src/*.js Rollup: https://github.com/rollup/rollup Javascript module bundler $ rollup src/main.js –format iife –name “SamplePackage” –file dist/package.js UglifyJS: https://www.npmjs.com/package/uglify-js Javascript parser, minifier, compressor and beautifier $ uglifyjs dist/package.js -c -m…

Continue reading

Local workspace file (‘angular.json’) could not be found.

Posted on 03/09/201803/09/2018 by Chris Lee

After upgrading Angular application using ncu -a, got an error message Local workspace file (‘angular.json’) could not be found.</code. $ ncu -a $ npm run build Local workspace file (‘angular.json’) could not be found. Error: Local workspace file (‘angular.json’) could not be found. at WorkspaceLoader._getProjectWorkspaceFilePath (/srv/project/node_modules/@angular/cli/models/workspace-loader.js:44:19) at WorkspaceLoader.loadWorkspace (/srv/project/node_modules/@angular/cli/models/workspace-loader.js:31:21) at BuildCommand._loadWorkspaceAndArchitect (/srv/project/node_modules/@angular/cli/models/architect-command.js:189:32) at BuildCommand.<anonymous> (/srv/project/node_modules/@angular/cli/models/architect-command.js:55:25)…

Continue reading

Setup Gitlab & Jenkins on Raspberry Pi 2

Posted on 07/08/201708/08/2017 by Chris Lee

Objective: Installing and configuring Gitlab and Jenkins on Raspberry Pi 2   Background: I currently have extra Raspberry Pi and would like to use for something useful. I found Jenkins and Gitlab are able to install on Raspberry Pi. This article is to share the step by step guide how to setup Gitlab and Jenkins…

Continue reading

Time Clock Management System developed with Yii2 REST API + Angular 2 + Docker

Posted on 22/01/201722/01/2017 by Chris Lee

Time Clock Management System (Yii2 REST API + Angular 2 + Docker)   Source Repo: https://github.com/chrisleekr/time-clock-management-system-yii2-rest-api-angular2-docker   This is a personal project for learning Angular 2. The project contains two applications, one for REST API backend, and the another for Angular 2 frontend. The project involves: Yii2 for providing RESTful API including user login/logout, managing global…

Continue reading

Missing Authroization header in request

Posted on 06/01/201722/01/2017 by Chris Lee

When developing REST API in Yii2, I found some development environments do not populate Authorization header in the request; as a result, I was not able to use HttpBearerAuth because the headers were missing in the request. Note that I still can use QueryParamAuth; although, I insist on using HttpBearerAuth instead of QueryParamAuth.   The…

Continue reading

Get AWS EC2 tags to environment parameters for apache2

Posted on 17/12/201622/01/2017 by Chris Lee

Objective: AWS instances are assigned tags per instance. Need tags to be environment parameters for Apache2; thus, web application can retrieve environment parameter.   Step 1: Configure tags in AWS EC2 instance   Step 2: Setup IAM user and get access key id and secret access key   Step 3: Access to SSH and append…

Continue reading
  • 1
  • 2
  • 3
  • 4
  • Next

Categories

  • Databases (11)
    • MongoDB (4)
    • MS-SQL (1)
    • MySQL (6)
  • E-Commerce (8)
    • Magento (8)
  • Finance (2)
  • Frameworks (84)
    • Adobe Flex (1)
    • Angular (ngx) (3)
    • Codeigniter (6)
    • CSS (5)
    • Django (2)
    • Javascript (13)
    • Node.js (6)
    • PHP (17)
    • React Native (4)
    • React.js (1)
    • Sencha Touch (4)
    • Terraform (1)
    • Vue.js (1)
    • WordPress (4)
    • Yii2 (3)
  • General Documents (15)
  • Marketing (3)
  • Mobile Development (33)
    • Android (20)
    • iPhone (13)
  • Platforms (21)
    • Arduino (2)
    • Docker (5)
    • Google App Engine (5)
    • Raspberry Pi (5)
    • Samsung Smart TV (4)
  • Security (17)
  • Server (30)
    • Linux (12)
  • Tools (14)
    • SVN (7)
  • Uncategorized (2)

Search

Recent Posts

  • Taint all resources in the one module
  • Alpine – Plugin caching_sha2_password could not be loaded
  • npm link with peerDependencies
  • How to setup Gitlab runner with KVM enabled
  • Failed to transform bcprov-jdk15on-1.68.jar

Recent Comments

  • Obayed on Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins
  • Ari on How to install memcache.so/memcached.so for MAMP Pro (Mac)
  • Mida ali on Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins
  • Chris Lee on How to install memcache.so/memcached.so for MAMP Pro (Mac)
  • Chris Lee on Setting Up A VPN Server On OSX 10.6

Tags

1 ajax amazon android android-addpart browser chrislee-kr codeigniter codeigniter-tcpdf com-apple-net-racoon CSS CSS history hack delpaigmail-com entity-addpart-double exception-printing-is-disabled-by-default-for-security-reasons ext-plugins-listpagingplugin ext-plugins-listpagingplugin-example f iphone javascript jquery-defaultchecked jquery-samsung-smart-tv listpagingplugin mac magento-exception-printing-is-disabled-by-default-for-security-reasons magento-sample-data-exception-printing-is-disabled-by-default-for-security-reasons nu-vot null-core-errors-confignotfound-config-mk9engine-ini php samsung-smart-tv-jquery samsung-smart-tv-sdk-ajax samsung-smart-tv-sdk-jquery samsung-tv-sdk samsung-tv-sdk-jquery samsung tv sencha-smart-tv sencha-touch-list-paging smart-tv-jquery sqlite subversion svn tcedook tcpdf-codeigniter uilinebreakmodecharacterwrap-is-deprecated unknown-column-link-area

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2023 Chris' Laboratory | Powered by Minimalist Blog WordPress Theme
Chris' Laboratory
Proudly powered by WordPress Theme: Dark Minimalistblogger.
 

Loading Comments...