Entries by อ.เอ้ด

Windows 10 ทำให้ แท้

Windows 10 Pro Key กลาง VK7JG-NPHTM-C97JM-9MPGT-3V66T ต้องไป Activate อีกที ตัวอย่างการ Activate slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX slmgr /skms kms8.msguides.com slmgr /ato ไปดูที่ system จะกลายเป็น Windows is Activated

mysql ubuntu ไม่มี root password แต่จะเข้าดูข้อมูล

ที่ root linux สั่งหยุด service mysql /etc/init.d/mysql stop mysqld –skip-grant-tables –skip-networking & หรือ mysqld_safe –skip-grant-tables & mysql -u root ระบบจะเข้ามาที่ mysql> แสดงฐานข้อมูลทั้งหมดใช้ show databases; เลือกใช้ฐานข้อมูล use dbname; เช่นฐานข้อมูลชื่อ datax  ก็ใช้ use datax; เมือ่เลือกฐานได้แล้ว จะตารางทั้งหมด พิมพ์ show tables; เช่น mysql> show tables; +——————–+ | Tables_in_datax | +——————–+ | name                  […]

lost ubuntu 10 root password recovery mode not work

ubuntu ลืมรหัสผ่าน พอ boot มา recovery mode แล้ว จะติดให้ใส่ password Give root password for maintenance (or type Control-D to continue) ทำการแก้โดย reboot ใหม่ แล้ว กด shift ค้างยาวๆ ก่อน boot menu หลังกดจะปรากฎ รายการ เลือกรายการแรก กด e เพื่อแก้ไข  จะแสดงคำสั่งมา ซึ่งยกตัวอย่างเป็น insmod ext2 set root='(hd0,1)’ search –no-floppy –fs-uuid –set 896c7bf8-d2c1-4844-aa49-95e840b77995\519 echo ‘ Load Linux 2.6.32xxx’ linux /vmlinuz-2.6.32xxx root=UUID=896c7bf8-d2c1-4844-aa49-95e840b77995 […]

Arduino Nano +DHT22

#include “DHT.h” #define DHTPIN 2 // what pin we’re connected to #define DHTTYPE DHT22 // DHT 22 (AM2302) DHT dht(DHTPIN, DHTTYPE, 6); void setup() { Serial.begin(9600); Serial.println(“DHTxx test!”); dht.begin(); } void loop() { // Wait a few seconds between measurements. delay(2000); // Reading temperature or humidity takes about 250 milliseconds! // Sensor readings may also […]

nodmcu V3 (Lolin) DHT11 with DeepSleep

การหลับ Deepsleep จะเป็นหน่วย microsecond #include <ESP8266WiFi.h> #include “DHT.h” //deep sleep  wire GPIO16 (D0) to RST Pin #define DHTPIN D4 // ขา Out ของ Sensor ต่อเข้าขา D4 ของ Esp8266 #define DHTTYPE DHT11 // DHT 22 (AM2302), AM2321 DHT dht(DHTPIN, DHTTYPE); void setup() { dht.begin(); Serial.begin(9600); Serial.println(“Humidity and temperature\n\n”); delay(700); } void loop() { float h = […]

nodmcu V3 (Lolin) DHT11 #1

#include “DHT.h” #define DHTPIN D4 // ขา Out ของ Sensor ต่อเข้าขา D4 ของ Esp8266 #define DHTTYPE DHT11 // DHT 22 (AM2302), AM2321 DHT dht(DHTPIN, DHTTYPE); void setup() { dht.begin(); Serial.begin(9600); Serial.println(“Humidity and temperature\n\n”); delay(700); } void loop() { float h = dht.readHumidity(); float t = dht.readTemperature(); Serial.print(“Current humidity = “); Serial.print(h); Serial.print(“% “); Serial.print(“temperature = […]

nodemcu 0.9 am2305 ds18b20 thingspeak

// www.arduinesp.com // // Plot DTH11 data on thingspeak.com using an ESP8266 // April 11 2015 // Author: Jeroen Beemster // Website: www.arduinesp.com // ใช้กับ กล่อง วัดอุณหภูมิที่บ้าน // 20-3-2017 ใช้งานครั้งแรก DHT22 // 19-5-2017 เพิ่ม DS18B20 // 18-12-2017 ซ่อมครั้งที่ 1 เปลี่ยน DHT22 เป็น AM2305 // 26-2-2018 เปลี่ยน accesspoint ใหม่ ตั้งรหัสใหม่ เปลี่ยน thingspeak acc ใหม่ #include <DHT.h> […]