Reverser Proxy ด้วย Nginx บน Docker
ใน workshop ครั้งนี้ จะใช้ digital ocean โดยไปตั้งค่า subdomain ก่อนที่ network โดยเพิ่มที่ CNAME ดังนี้ blog.zity.co , test.zity.co เรามาเริ่มสร้างจากใช้ docker image ที่ชื่อว่า nginx-proxy $ docker...
View Articleวิธีการติดตั้ง Free SSL Certificates จาก Let’s Encrypt โดยใช้ Docker และ Nginx
Install Docker on Ubuntu curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release...
View ArticleHow to kill a nodejs process in Linux?
sudo netstat -lpn |grep :'3000' 3000 is port i was looking for, After first command you will have Process ID for that port kill -9 1192 in my case 1192 was process Id of process running on 3000 PORT...
View Articleวิธี Setup proxy ให้ nvm บน linux (WSL)
NVM uses curl, so modifying the file ~/.curlrc file (or create it if it does not exist) proxy = <proxy_host>:<proxy_port> จากนั้นก็ปิดเครื่องแล้วเปิดใหม่ credit...
View ArticleUpgrading Node.js to latest version
2019 Solution Without using sudo! The current stable “LTS” version of node is 10.15.3 (2019-04-03) see: nodejs.org for latest. Step 1 – Get NVM (Node Version Manger) curl -o-...
View ArticleHow to push files to a Bitbucket.org
Choose Create repository or Choose Teams & Create Repository Input data “Respository name” When complted, Choose “I have an exiting project” copy step 2 “git remote add origin …” Download &...
View ArticleCognitive Dissonance
/ เรามักจะเจอคนประเภทหนึ่งในเน็ต หรือตามกรุ๊ปไลน์ ที่เชื่อข้อมูลซึ่งไม่รู้ว่าเชื่อไปได้ยังไง ยิ่งเมื่อได้รับข้อมูลที่ถูกต้องกว่าไปจนเกิดอาการ “เงิบ” แล้ว...
View Articleตั้งค่า macOS ให้รองรับ NTFS
ติดตั้ง osxfuse และ ntfs-3g /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew cask install osxfuse brew install ntfs-3g...
View Articleสร้างเว็บด้วย Vue.js+Vuetify
Vue.js+Vuetify GIF ติดตั้ง npm และ node.js https://nodejs.org ติดตั้ง vue-cli https://github.com/vuejs/vue-cli ติดตั้ง vuetify http://vuetify.com/ sudo vue init vuetifyjs/webpack-advanced vue-vuetify...
View Articleสร้างแอป Android เพื่อทดสอบการใช้งาน Firebase Realtime Database & Firebase...
บทความนี้จะมีเนื้อหาเกี่ยวกับ Firebase Realtime Database, Firebase Storage, Firebase Crash, Drawer Menu, Fragment, Custom ListView, Camera,Glide และอื่นๆสัพเพเหระ...
View Articleแนะนำการใช้งาน Firebase และสร้างแอป Android ติดต่อ Firebase Database
ไปที่ firebase.google.com คลิกที่ปุ่ม ไปที่คอนโซล Create Firebase Project select Android — — — เลือกที่เมนู Database เลือก Tab กฎ และเปลี่ยนสิทธิ์ให้ไม่ต้องมีการตรวจสอบผู้ใช้ — Use Postman Test send...
View ArticleHow to completely clear git repository, without deleting it
f you only have a local git repository if you want to erase your whole history and start over again: cd <repo> rm -rf .git git init and start committing again. If you want to remove both files...
View ArticleHow to create Custom Listview in Android
code : https://github.com/thana19/testCustomListView 1. New Project with Empty Activity 2. New layout “fragment_main” <?xml version="1.0" encoding="utf-8"?> <LinearLayout...
View ArticleAndroid : How to Add a Navigation Drawer and Implement Fragment
code : https://github.com/thana19/testNavigationDrawer 1. New Project with Navigation Drawer Activity 2. edit content_main.xml – add FrameLayout <?xml version="1.0" encoding="utf-8"?>...
View ArticleAndroid : How to convert a image into base64Binary ?
imageView.buildDrawingCache(); Bitmap bitmap = profile_image.getDrawingCache(); String encodedImageData = getEncoded64ImageStringFromBitmap(bitmap); ============ public String...
View Articleแกะกล่อง ASUS Zenfone 2 Laser 5.5
เนื่องจากปัญหาค่าโทรของแม่กับญาติผู้ใหญ่ที่บ้าน ซึ่งเดือนนึงโทรคุยกันหลักพัน ทั้งๆที่บ้านก็มี Hispeed Internet กันทุกบ้าน และโปรมือถือก็สมัคร 3g/4g ให้แม่ใช้แล้ว จึงคิดว่าจะให้ใช้ line...
View ArticleHow to push files to a Bitbucket.org
Choose Create repository or Choose Teams & Create Repository Input data “Respository name” When complted, Choose “I have an exiting project” copy step 2 “git remote add origin …” Download &...
View ArticleGet SHA1 fingerprint certificate in Android Studio for Google Maps
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android The post Get SHA1 fingerprint certificate in Android Studio for Google Maps appeared...
View ArticleAndroid : Animate an Activity
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Override how this activity is animated into view // The new activity is pulled in from the left...
View ArticleAndroid : Auto scrolling in ExpandableListView
final int[] lastClickedPosition = {0}; expListView.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() { @Override public boolean onGroupClick(ExpandableListView parent, View v, int...
View Article