Bài đăng

Nếu bất chợt một ngày, bạn phát hiện một người tuy cùng tuổi với bạn, nhưng lại giỏi hơn bạn rất nhiều, bạn sẽ cảm thấy như thế nào?

Nếu bất chợt một ngày, bạn phát hiện một người tuy cùng tuổi với bạn, nhưng lại giỏi hơn bạn rất nhiều, bạn sẽ cảm thấy như thế nào? Suy nghĩ và thực hiện. Right now !!!

[Solve] Kali Linux Login Loop Problem! Fix

My document.  You can see here. You should like, share and comment your feedback in your video. Firstly, I was broken by me when I delete only one language. But I don't know what way to fix it. And I must install it again, and don't have a way to recover my data. I will take you the way to fix it. Reason: Maybe, Your operating is broken when you are updating and upgrading your system that is not complete. And you shutdown. Solution: Start operating normally, When the login screen appears. You click Ctrl + Alt + F2 (For me, It is ok). You can try from F1 to F12 if F2 is not ok. And for connecting the Internet, you must update and upgrade your system again. It is ok for me. If you have a problem concern about it. Feel free to send me an email. Tks you very much. See you soon.

[Solve] VMware Workstation and Device/Credential Guard are not compatible. VMware Workstation can be run after disabling Device/Credential Guard. Please visit ...

I consult  this video . And now, I will share with me the solution. Search for "Run" and type "gpedit.msc" in that Goto    Local Computer Policy - Computer Configuration - Administrative Templates - System - Device Guard - Turn on Virtualization  Double click that .... and select "Disable" ... Go to Control Panel - Uninstall a Program - Turn Windows features on or off - (uncheck/turn off) Hyper-V. Click OK Select Do not restart. And then type the following cmds in cmd prompt.. to Delete the related EFI variables from the BCD file... Launch cmd as admin... bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi" bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215} bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS bc...

[Raspberry] Triển khai Web application trên Raspberry Pi Part 6

Trong bài này, mình sẽ hướng dẫn các bạn cấu hình data SQLite3 hiển thị trên webserver. 1. Download sqlite3 trên raspberry: sudo apt-get install sqlite3 2. Chỉnh sửa file env_log.py như nội dung bên dưới: import sqlite3 import sys import Adafruit_DHT def log_values(sensor_id, temp, hum): conn=sqlite3.connect('/var/www/lab_app/lab_app.db') #It is important to provide an #absolute path to the database #file, otherwise Cron won't be #able to find it! curs=conn.cursor() curs.execute("""INSERT INTO temperatures values(datetime(CURRENT_TIMESTAMP, 'localtime'), (?), (?))""", (sensor_id,temp)) curs.execute("""INSERT INTO humidities values(datetime(CURRENT_TIMESTAMP, 'localtime'), (?), (?))""", (sensor_id,hum)) ...

[Raspberry] Triển khai Web application trên Raspberry Pi Part 5

Để làm được bài này các bạn phải làm được  Raspberry Kết Nối Cảm Biến Độ Ẩm, Nhiệt Độ . Cái này phụ thuộc rất nhiều vào cảm biến.  OK, Nếu các bạn đã làm được thì mời các bạn đọc tiếp :D  1. root@raspberrypi:/var/www/lab_app# gedit lab_app.py 2. Copy nội dung file  này  vào trong file lab_app.py 3. root@raspberrypi:/var/www/lab_app/templates# gedit lab_temp.html 4. root@raspberrypi:/var/www/lab_app/templates# gedit no_sensor.html 5. Copy nội dung của file  này  vào trong file no_sensor.html. 6. Chỉnh sửa file  lab_app_uwsgi.ini  :  root@raspberrypi:/var/www/lab_app# gedit lab_app_uwsgi.ini Nội dung chỉnh sửa(theo nội dung bên dưới): #Full path: /var/www/lab_app/lab_app_uwsgi.ini [uwsgi] #application's base folder base = /var/www/lab_app #python module to import app = lab_app module = %(app) home = %(base)/venv pythonpath = %(base) #socket file's location socket = /var/www/la...

[Raspberry] Triển khai Web application trên Raspberry Pi Part 4

Bài này mình sẽ tiếp tục hướng dẫn các bạn cấu hình từng bước, các bạn thực hiện theo mình nhé. 1. Tạo thư muc: root@raspberrypi:/var/www/lab_app# mkdir templates 2. root@raspberrypi:/var/www/lab_app# cd templates 3. Chỉnh sửa file: root@raspberrypi:/var/www/lab_app/templates# gedit hello.html 4. Copy nội dung của file trong  này  vào trong file hello.html 5. Chỉnh sửa file: root@raspberrypi:/var/www/lab_app# gedit hello.py 6. Copy nội dung ở dưới vào trong file hello.py from flask import Flask from flask import render_template app = Flask(__name__) app.debug = True @app.route("/") def hello(): return render_template('hello.html', message="Hello World!") if __name__ == "__main__": app.run(host='0.0.0.0', port=8080) 7. Open server: root@raspberrypi:/var/www/lab_app# python hello.py Mở browser và nhập vào địa chỉ http://ipraspberry:8080 Bài sẽ dừng ở đây. Hẹn bạn part tiếp...

[Raspberry] Triển khai Web application trên Raspberry Pi Part 3

Mình sẽ tiếp tục hướng dẫn các bạn cấu hình Web Server trên Raspberry. 1. Tạo thư mục:  1 root @raspberrypi : / var / www / lab_app # mkdir static 2. Tạo thư mục: 1 root @raspberrypi : / var / www / lab_app / static # mkdir css 3. Tạo thư mục:  1 root @raspberrypi : / var / www / lab_app / static # mkdir images 4. Chỉnh sửa file:  1 root @raspberrypi : / var / www / lab_app / static # gedit a_static_file.html 5. Copy nội dung dưới đây vào trong file. 1 2 3 4 5 6 7 8 9 < html > < head > < title > Static page </ title > </ head > < body > < h1 > This is an example of a staic page </ h1 > < p > Neat, isn 't it?</p> </ body > </ html > 6. Mở browser, nhập vào http://ipraspberry/static/a_static_file.html 7. Download file skeleton ở  đây và sau đó giải nén file ra, copy 2 *.css file trong thư mục Skeleton-x.x.x/css/ vào ...