ก๊วนซอฟท์แวร์ </softganz> SoftGang (Gang Software)

Web &amp; Software Developer Gang.

624 items|« First « Prev 1 (2/63) 3 4 5 Next » Last »|
โดย Little Bear on 23 ก.พ. 68 13:59


View

ตรวจสอบ OS version

cat /etc/os-release

ขั้นตอน 1: Update เวอร์ชั่นปัจจุบันของ Ubuntu

***

sudo apt update && apt upgrade -y

ขั้นตอน 2: เตรียมสำหรับการ upgrade:

***

sudo apt install update-manager-core

ขั้นตอน 3: Run the Upgrade:

***

sudo do-release-upgrade

***

ขั้นตอน 4: Post-Upgrade Cleanup:

***

sudo apt autoremove && apt clean

ขั้นตอน 5: ตรวจสอบผลการอัพเกรด: ***

cat /etc/os-release

***

หากเกิดความผิดพลาด สามารถเปลี่ยน sources แล้ว update

First, ensure that all the contents of /etc/apt/sources.list and /etc/apt/sources.list.d/ubuntu.sources contain the word noble instead of jammy. If it contains jammy, replace that with noble.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i 's/jammy/noble/g' /etc/apt/sources.list
sudo sed -i 's/jammy/noble/g' /etc/apt/sources.list.d/ubuntu.sources
sudo apt update
sudo apt full-upgrade

หลังจาก upgrade แล้ว start apache ไม่ได้ เนื่องจากมีการเปลี่ยน php version ให้สร้างลิงก์ไฟล์ของ apache config ใหม่

cd /etc/apache2/mods-enable
ln -s php8.1.conf ../mods-avaliable/php8.1.conf
ln -s php8.1.load ../mods-avaliable/php8.1.load

แล้ว restart apache

systemctl restart apache2

Upgrade MariaDB

apt upgrade mariadb-server
apt install mariadb-server
โดย Little Bear on 23 ต.ค. 67 15:25

Pure White Color

White
#FFFFFF
Ivory
#FFFFF0
Pearl
#FCFCF7
Marble
#F2F8FC
Off White
#FAF9F6
Lavender
#F4F1F8
Alice Blue
#F0F8FF
Parchment
#FBF5DF
Cold Steel
#F8F7F4
Egg White
#FDFDFD

Gray Color

Black
#000000
Charcoal Gray
#171717
Oil Blank
#0C0C0C
Obsidian
#0B1215
Midnight Blue
#101720
Dark Slate Gray
#0D1717
Rich Black
#020D19
Deep Navy Blue
#011222

Charcoal
#21242A

Licorice
#161110
Deep
#101923
Obsidian
#08100C
Smokie
#23262A
Alien
#01A2228
Neutral
#232325

โดย Little Bear on 5 ก.ย. 67 11:58

ตารางที่เกี่ยวข้อง

  • tag : taggroup => project:supportType, catId
  • glcode : glcode
  • project_gl : glcode
  • project_dev : category
  • project : supportType is value
  • project_tr : formId="info", part="project", refCode is value
โดย Little Bear on 9 ส.ค. 67 17:52

Backup database

Backup database all table

mysqldump  --user=username --password databasename> file.sql

Backup database some table

mysqldump  --user=username --password databasename table1 table2 > file.sql

Backup database exclude some table

mysqldump  --user=username --password --databases db  --ignore-table=db.table1  --ignore-table=db.table2 > file.sql

Repair database/table

For InnoDB Tables:

  • Restart MariaDB with innodbforcerecovery by edit MariaDB configuration file (e.g., my.cnf or my.ini) and add or modify the innodbforcerecovery option in the [mysqld] section. Start with a low non-zero value (e.g., 1).
  • Restart MariaDB. If it fails, increase the value and retry.
  • Once MariaDB starts, you can try to dump the data from the corrupted table, drop the table, recreate it, and then restore the dumped data.
  • Check and Optimize Tables:   - Use mariadb-check -c databasename to check for corrupted indexes.   - Run OPTIMIZE TABLE tablename to force a rebuild of the table.

For MyISAM Tables:

Use REPAIR TABLE statement:

REPAIR TABLE table_name;

You can add the FORCE argument to attempt internal repair before rebuilding:

REPAIR TABLE table_name FORCE;

Use myisamchk utility:

myisamchk -r table_name.MYI

โดย Little Bear on 9 ส.ค. 67 10:02

เจอข่าวจาก blognone.com ว่า "กูเกิลเปิดตัว Pigweed SDK ชุดพัฒนาคอมพิวเตอร์ embedded เต็มรูปแบบ รองรับ RP2350" กะว่าจะลองดูสักหน่อย

อ่านเอกสารแนะนำได้จาก Introducing the Pigweed SDK: A modern embedded development suite

เริ่มต้นด้วยการ Clone Sense showcase repo และลองติดตั้งจาก tutorial

ไว้หาโอกาสลองใช้งานอีกที แล้วค่อยมารายงานเพิมเติม

โดย Little Bear on 30 ก.ค. 67 12:24

กำลังศึกษาเรื่อง Modules บน JavaScript อยู่

ที่มา

โดย Little Bear on 30 ก.ค. 67 12:00

กำลังศึกษาเรื่อง Class บน JavaScript อยู่

ที่มา

โดย Little Bear on 7 ก.ค. 67 17:27

/var/log/apache2/error.log

[Sun Jul 07 14:36:12.269017 2024] [mpm_prefork:error] [pid 3153653:tid 3153653] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

/var/log/php7.4-fpm.log

  • [07-Jul-2024 00:00:01] NOTICE: error log file re-opened
  • [07-Jul-2024 13:15:25] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
nano /etc/php/7.4/fpm/pool.d/www.conf
change
pm.max_children = 5
to
pm.max_children = 20
nano /etc/apache2/mods-enabled/mpm_prefork.conf
<IfModule mpm_prefork_module>
    #StartServers       10
    MinSpareServers       10
    MaxSpareServers      20
    #MaxRequestWorkers    150
    #MaxConnectionsPerChild   0

    ServerLimit              250
    StartServers              10
    #MinSpareThreads           75
    #MaxSpareThreads          250<br />
    #ThreadLimit               64
    #ThreadsPerChild           32
    MaxRequestWorkers       250
    MaxConnectionsPerChild 10000
</IfModule>
โดย Little Bear on 13 พ.ค. 67 09:40

กลับมาเริ่มเขียน IoT ใหม่อีกครั้ง หลังจากทิ้งไปนาน

NodeMcu

Additional Boards Manager URLs

http://arduino.esp8266.com/stable/packageesp8266comindex.json
Board: esp8266
Select board: NodeMCU 1.0
Port: dev/cu.usbserial-21110

ESP-32

Additional Boards Manager URLs

https://dl.espressif.com/dl/packageesp32index.json
(สำรอง)https://espressif.github.io/arduino-esp32/packageesp32index.json
(สำรอง)https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/packageesp32index.json
Board: esp32 by Espressif
Select board: ESP32-WROOM-DA Module or ESP32 Dev Port: dev/cu.usbserial-0001
Upload speed: 460800 (***** ระวัง ความเร็ว 921600 ใช้งานไม่ได้ อัพโหลดโปรแกรมแล้วเกิดข้อผิดพลาด *****)

Resource:

624 items|« First « Prev 1 (2/63) 3 4 5 Next » Last »|