Install libimobiledevice and ifuse$ yays libimobiledevice ifuse (* important) Pair with iPad – make sure iPad is connected via USB cable$ idevicepair pair Run usbmuxd $ sudo usbmuxd -f -v Create mount folder$ sudo mkdir /media/ipad$ sudo chmod 777 /media/ipad Mount iPad using ifuse$ ifuse /media/ipad Open file manager, then you will see iPad is…
Node.js (REST API) + Vue.js/Nuxt.js (Frontend/Backend) + MySQL Boilerplate
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,…
When Arch Linux installation, cannot find nvme0n1 in DELL XPS 13
When you do lsblk, it does not show your SSD, then it means RAID for SATA Operation is on. Simply open Bios -> System Configuration -> SATA Operation and set “AHCI” Refer Install Arch Linux with Full Disk Encryption (LVM on LUKS) for Dell XPS 13 – https://gist.github.com/chrisleekr/a23e93edc3b0795d8d95f9c70d93eedd
Linux Docker uses excessive memory
Issue: I have a 16G memory and configured swap as 16G. When start mysql docker, mysqld uses crazy amount of memory and make the system freeze. References: https://success.docker.com/article/node-using-swap-memory-instead-of-host-memory Solution
VirtualBox + Windows 7 USB storage not recognised
Environments: Arch Linux Oracle VM VirtualBox 6.0.8 + Extension Pack Issue: In “Device Manager”, Universal Serial Bus Controller driver is not installing correctly. USB storage is not showing. Driver not found for USB storage. Solution: Install Intel USB 3.0 eXtensible Host Controller Driver – https://downloadcenter.intel.com/download/21129/USB-3-0-Driver-Intel-USB-3-0-eXtensible-Host-Controller-Driver-for-Intel-7-Series-C216-Chipset-Family Then reboot References: https://forums.virtualbox.org/viewtopic.php?f=7&t=84793 https://dwaves.org/2016/10/11/linux-debian-host-virtualbox-5-x-windows-7-guest-usb-3-0-external-harddisk-hardware-verr_pdm_no_usb_ports/
Share clipboard between GNOME and Boxes (Windows)
Reference: https://help.gnome.org/users/gnome-boxes/stable/clipboard.html.en https://www.spice-space.org/download.html While express installation typically takes care of making shared clipboard available to you, express installation is not available for all operating systems. In such cases or if you choose manual installation, for shared clipboard to work the SPICE vdagent needs to be installed in the guest. In most Linux-based operating systems the…
Winetricks failed to install WMP9
References: https://www.hahwul.com/2018/08/install-kakaotalk-on-ubuntu-18.04.html https://www.playonlinux.com/en/topic-16540-MPSetup_wmp9_will_not_run.html Error message: Solution: Download MPsetup.exe from https://web.archive.org/web/20180404022333/http://download.microsoft.com/download/1/b/c/1bc0b1a3-c839-4b36-8f3c-19847ba09299/MPSetup.exe Save as /home/{username}/.cache/winetricks/wmp/MPSetup.exe Rerun winetricks
Certbot으로 무료 SSL/TLS 인증서 발급/재발급 하기
[PHP+MySQL] 간단한 카카오 i 오픈빌더 챗봇 만들기 (Kakao i Open Builder)
카카오 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…
When you get 403 Forbidden error in VentraIP shared hosting
Out of nowhere, I started getting the error when I try to post any article. After in-depth investigation, I found if I add any code snippet, I cannot save or publish the article due to getting 403 Forbidden error in the server. Other articles are suggesting to do following things: Disable all plugins Fix folder/file…
Workerbox (Service Worker)로 사이트 로딩 속도 향상 시키기
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:
Get all validation errors for Angular form
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));…
Yii2 errors – Failed to clone the git and “extra.asset-installer-paths” option is deprecated`
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…
Javascript project devtools
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…
Backup/Restore pacman & yaourt packages list
Arch linux Backup pacman package list pacman -Qqet | grep -v “$(pacman -Qqg base)” | grep -v “$(pacman -Qqm)” > pacman-packages.txt Restore pacman package pacman -S –needed $(cat pacman-packages.txt) Backup yaourt package list pacman -Qm > yaourt-packages.txt Backup yaourt package yaourt -S –needed –noconfirm $(cat yaourt-packages.txt)
Local workspace file (‘angular.json’) could not be found.
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)…
Error on installing `networkmanager-l2tp 1.2.10-3` in Arch Linux
References: https://gist.github.com/pastleo/aa3a9524664864c505d637b771d079c9 https://askubuntu.com/questions/981165/l2tp-ipsec-failing-to-connect-kubuntu-17-10 When run the command to install the package `networkmanager-l2tp 1.2.10-3`, an error occurs like below: $ yaourt -S networkmanager-l2tp … ==> Validating source files with md5sums… network-manager-l2tp-1.2.10.tar.gz … Passed network-manager-l2tp-1.2.10.tar.gz.asc … Skipped ==> Verifying source file signatures with gpg… network-manager-l2tp-1.2.10.tar.gz … FAILED (unknown public key 49A7787EF8D3C039) ==> ERROR: One or more…
Setup Gitlab & Jenkins on Raspberry Pi 2
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…
Ziroom (즈룸)에 대한 개인적인 생각
Ziroom (즈룸): http://blog.naver.com/china_lab/221042945179 * Ziroom (즈룸)이란 * 집 주인으로부터 아파트나 하우스등 쉐어를 놓을 집을 위탁받아, 하우스 인테리어, 보수, 이사까지 중개업체인 즈룸에서 관리해줌 추가적인 서비스로 주2회 방문 청소 및 보수 서비스 등 방 검색, 인증, 계약, 결제까지 모두 모바일 앱에서 처리가 가능하여 사기를 방지하고 편리함을 제공함 집주인은 집만 제공하면 수익이 제공되고 집 보수까지 모두 즈룸에서…
[따라하기] 아두이노 기초 – 초음파센서 사용하기 by ODIY 한국과학창의재단
[따라하기] 아두이노 기초 – 초음파센서 사용하기 by ODIY 한국과학창의재단 Ardunio – Ultrasound sensor with LED https://vimeo.com/207270128 #define TRIG 2 // Sending out ultrasound #define ECHO 3 // Receiving ultrasound #define LED 9 // Controlling LED void setup() { // put your setup code here, to run once: pinMode(TRIG,…
[따라하기] 아두이노 기초 – LED와 버튼 제어하기 by ODIY 한국과학창의재단
[따라하기] 아두이노 기초 – LED와 버튼 제어하기 by ODIY 한국과학창의재단 Arduino – LED Wave https://vimeo.com/206546319 #define DELAY_TIME 100 void setup() { // put your setup code here, to run once: pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); } void loop() { // put your main code…
Time Clock Management System developed with Yii2 REST API + Angular 2 + Docker
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…
Missing Authroization header in request
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…
Get AWS EC2 tags to environment parameters for apache2
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…
PHP imap_open() error – INBOX: invalid remote specification (errflg=2)
INBOX: invalid remote specification (errflg=2) Got following error when use imap_open() in PHP? Notice: Unknown: Can’t open mailbox {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX: invalid remote specification (errflg=2) in Unknown on line 0 Check imap enabled SSL support like screenshot If cannot see SSL Support configuration, then need re-compile imap.so with enabling SSL support. PHP…