Skip to content

Chris' Laboratory

chrislee.kr – Personal blog as bookshelves

Menu
  • Home
  • Github
  • Contact Me
Menu

Category: Platforms

Alpine – Plugin caching_sha2_password could not be loaded

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

When using mysql client to login MySQL, it throws the following error: If it’s alpine linux, then simply install mariadb-connector-c

Continue reading

Disable Swap in Raspberry Pi

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

Reference: https://www.element14.com/community/thread/21377/l/how-do-i-permanently-disable-the-swap-service

Continue reading

Linux Docker uses excessive memory

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

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

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

[따라하기] 아두이노 기초 – 초음파센서 사용하기 by ODIY 한국과학창의재단

Posted on 07/03/2017 by Chris Lee

[따라하기] 아두이노 기초 – 초음파센서 사용하기 by ODIY 한국과학창의재단     Ardunio – Ultrasound sensor with LED           #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, OUTPUT);…

Continue reading

[따라하기] 아두이노 기초 – LED와 버튼 제어하기 by ODIY 한국과학창의재단

Posted on 03/03/201703/03/2017 by Chris Lee

[따라하기] 아두이노 기초 – LED와 버튼 제어하기 by ODIY 한국과학창의재단       Arduino – LED Wave       #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 here,…

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

Docker 1.12 – Deploying Docker Services within Docker Swarm Mode and Docker Machine

Posted on 22/09/201611/10/2016 by Chris Lee

Docker 1.12 – Deploying Docker Services within Docker Swarm Mode and Docker Machine Source Repo: https://github.com/chrisleekr/docker-swarm-scalable-web-application-architecture   This is proof-of-concept project to set up Docker Swarm in development environment with single command.   This project involves: Docker Machine Docker Swarm – Docker Built-in Orchestration Local Docker Registry Docker Network Docker Service Note: This project is created for…

Continue reading

Raspberry pi에 Let’s Encrypt SSL 설치하기

Posted on 18/09/201618/09/2016 by Chris Lee

Raspberry Pi의 IP를 알아낸다음에 Router에서 DMZ를 설정하여 외부 IP로 접속할 경우 Raspberry Pi로 접근이 되도록 한다. Raspberry Pi에 아파치를 설치한다. 설치방법: https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md 외부 IP로 접속하여 Apache 설치 여부를 확인한다. Raspberry Pi에 다이나믹 도메인을 연결한다 https://www.noip.com (무료) 에 가입을 한다 NoIP Dynamic Update Client를 다운로드 및 설치한다. 다운로드: https://www.noip.com/download?page=linux 설치방법: https://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client-on-ubuntu/ 다이나믹 도메인 (http://xxxxx.ddns.net)에 접속이 되는지 확인한다….

Continue reading

Secure Raspberry Pi with iptables, PSAD, Fail2ban and OSSEC

Posted on 01/09/201625/10/2016 by Chris Lee

Disable ping $ echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all   Install iptables and iptables-persistent $ sudo apt-get install iptables iptables-persistent $ sudo service iptables-persistent start   Create shell script $ nano reset_iptables.sh #!/usr/bin/env bash iptables -F iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT iptables -A INPUT -m conntrack –ctstate ESTABLISHED,RELATED…

Continue reading

Docker Tor+Proxy

Posted on 17/08/201617/08/2016 by Chris Lee

Run tor and proxy server in docker and set Chrome browser to send all traffics to docker tor proxy server Environment: Windows 7 Docker Toolbox – https://www.docker.com/products/docker-toolbox Proxy Helper – https://chrome.google.com/webstore/detail/proxy-helper/mnloefcpaepkpmhaoipjkpikbnkmbnic?utm_source=chrome-app-launcher-info-dialog Step 1: Create docker-compose-tor.xml version: ‘2’ services: torproxy: image: jess/tor-proxy expose: – “9050” restart: “always” privoxy: image: jess/privoxy links: – torproxy ports: – “8118:8118” expose: – “8118” restart:…

Continue reading

Raspberry Pi – Push Button + LED

Posted on 17/11/201310/09/2016 by Chris Lee

  import RPi.GPIO as GPIO from time import sleep PIN18 = 12 PIN25 = 22 GPIO.setmode(GPIO.BOARD) GPIO.setup(PIN25, GPIO.IN) GPIO.setup(PIN18, GPIO.OUT) LEDON = False while 1: try: if GPIO.input(PIN25): if LEDON == True: print “– PIN25 ON” LEDON = False GPIO.output(PIN18, False) else: print “– PIN25 OFF” LEDON = True GPIO.output(PIN18, True) sleep(1) except KeyboardInterrupt: GPIO.cleanup()…

Continue reading

Python – ImportError: No module named django.utils

Posted on 19/04/201310/09/2016 by Chris Lee

When I follow the tutorial – App Engine Series #4 – I got this error for Ajax.py: ImportError: No module named django.utils According to this article, Python 2.7 uses native JSON library. Fixed source for Ajax.py is this: #!/usr/bin/env python # -*- coding: utf-8 -*- # Including the models: from models.models import * # from Phyton 2.7,…

Continue reading

Python – ImportError: No module named

Posted on 19/04/2013 by Chris Lee

When I follow the tutorial – App Engine Series #4 – I kept getting the error like below: ImportError: No module named controllers It is caused by below code: import webapp2 # Importing the controllers that will handle # the generation of the pages: from controllers import crons,ajax,generate,mainh To fix the error, it is very simple….

Continue reading

Google App Engine Tutorial – Datastore – 한글 입력시 Internal Server Error 나는 현상

Posted on 18/04/201318/04/2013 by Chris Lee

Google App Engine의 Datastore 튜토리얼 소스를 실행시 한글을 방명록 이름(Guestbook name)필드에 입력하면 다음과 같은 에러가 발생한다. Traceback (most recent call last): File “/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.2/webapp2.py”, line 1535, in __call__ rv = self.handle_exception(request, response, e) File “/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.2/webapp2.py”, line 1529, in __call__ rv = self.router.dispatch(request, response) File “/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.2/webapp2.py”, line 1278, in default_dispatcher return route.handler_adapter(request, response) File “/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.2/webapp2.py”, line 1102,…

Continue reading

Python – 한글로 주석 남기면 실행 안되는 현상(cannot execute app if write Korean as comment)

Posted on 18/04/2013 by Chris Lee

한글로 코멘트를 남겼는데 다음과 같은 서버 에러가 발생했다. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. 검색해서 Using Python with Chinese, Japanese and Korean 라는 글을 찾았고, 코드를 다음과 같이 하니 문제없이 실행되었다. #!/usr/bin/env python # -*- coding: utf-8 -*-

Continue reading

Sample Code from Developing and deploying an application on Google App Engine

Posted on 17/04/201317/04/2013 by Chris Lee

In the video, it provides the code as below #!/usr/bin/env python import os import wsgiref.handlers from google.appengine.ext import webapp from google.appengine.ext.webapp import template class MyHandler(webapp.RequestHandler): def get(self): self.response.out.write(template.render(‘main.html’, {})) def main(): app = webapp.WSGIApplication([ (r’.*’, MyHandler)], debug= True) wsgiref.handlers.CGIHandler().run(app); if __name__ == “__main__”: main() However, it gives the error as below: Traceback (most recent call…

Continue reading

AIR for TV

Posted on 10/08/2011 by Chris Lee

Article Link: http://learn.adobe.com/wiki/display/airquestions/AIR+for+TV What tools do developers use to create AIR 2.5.1 apps for TVs? Developers can use the following tools: AIR 2.6 SDK Flash Professional CS5 Extension for AIR 2.5 (now an integral feature in Flash Professional CS5.5) Flash Builder 4.5 Note: Developers can use the AIR 2.6 SDK for developing apps for AIR 2.5.1 for…

Continue reading

Samsung TV SDK 2.5 – Javascript Error keyCode

Posted on 10/08/201111/09/2016 by Chris Lee

Samsung SDK 2.5 editor provides ‘Basic Javascript Project’; however, it contains Reference Error when you launch first time like below:   Error Detail : ReferenceError: keyCode is not defined   It is caused because template code has capitalize error. Find below code:   Main.MainKeyHandler = function() { var KeyCode = event.keyCode; switch(keyCode) { … }…

Continue reading

Samsung TV Application SDK UX Guideline

Posted on 04/05/201104/05/2011 by Chris Lee

Samsung_TV_Application_SDK_UX_Guideline_1.0 – Version 1.0 Points 1. Design Principles – TV screen should not contain too much information. – Accurate navigation for user operation – Actions like Move, Return, Enter must be clear – TV is using a restricted control method “Remote Control” – Consistency of Button Operations (ex; Green: Sorting or Preference, Yellow: Check or…

Continue reading

Running Samsung TV Apps SDK on Boot Camp

Posted on 30/04/201130/04/2011 by Chris Lee

I have windows running bootcamp and tried to launch Samsung TV Apps SDK(IDE); however, it crashes windows every launch. Tested so far; but crashed all the time: – Windows 7 32bit on Boot Camp 3 (iMac, Macbook Air, Macbook Pro) – Windows Vista 32bit on Boot Camp 3 (iMac) Cannot run Samsung TV IDE due…

Continue reading

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
 

Loading Comments...