PTEG Filament Temperature


Catatan temperature 3d printer menggunakan ender5pro

Filament yang digunakan sunlu dan creality

  • Warna kuat (kuning, merah, dll) transparent 245 derajat keatas
  • Warna tidak transparant (putih, hitam) 235 derajat maks 240
    • Fan speed 40
    • Speed 60
    • Outer & Inner Speed 40
    • Retract 4.5 Speed 50

Akan terus diupdate apabila mencoba filament baru 🙂

set datetime as default current timestamp for flask model


Try this it will work guaranteed 😀

created_on = db.Column(db.DateTime, server_default=db.func.now())

Allow mysql remote access


Enable bind address at

/etc/mysql/mysql.conf.d/mysqld.cnf

change bind address to your ip remote or 0.0.0.0 to allow from all

add mysql port to firewall via ufw allow mysql

CREATE USER 'user'@'ip_address' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'user'@'ip_address';

If you see %, well then, there’s another problem altogether as that is “any remote source”. If however you do want any/all systems to connect via root, use the % wildcard to grant access:

CREATE USER 'user'@'%' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'user'@'%';

Finally, reload the permissions, and you should be able to have remote access:

FLUSH PRIVILEGES;

Howto use B-L072Z-LRWAN1 with lmic


My notes howto make B-L072Z-LRWAN1 can use lmic in arduino, i’m using standard lmic and this library can’t work until you add manually pin spi at your setup.

SPI.setMOSI(PA7);
SPI.setMISO(PA6);
SPI.setSCLK(PB3);

And you can use this pinout

// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = PA15,
.rxtx = LMIC_UNUSED_PIN,
.rst = PC0,
.dio = {PB4, PB1, PB0},
};

For complete code you can see at my github here

Add dependency when install Pillow at alpine image docker


Pillow needs dependency jpeg-dev, zlib-dev and libjpeg so add this to your Dockerfile before requirement instalation

.....
RUN apk add jpeg-dev zlib-dev libjpeg
COPY ./requirements.txt .
...
And rebuilt the image, hope this helps

Happy Codding 
Salam Ngoprek

Rangkuman Cloud AWS


  • Lima pilar dari AWS Well-Architected Framework, di antaranya:
    • Operational excellence (Keunggulan Operasional)
    • Security (Keamanan)
    • Reliability (Keandalan)
    • Performance efficiency (Efisiensi Kinerja)
    • Cost optimization (Pengoptimalan Biaya)
  • Enam manfaat dari komputasi cloud, antara lain:
    • Ubah pengeluaran di muka menjadi pengeluaran variabel.
    • Manfaatkan masifnya skala ekonomi.
    • Berhenti menebak kapasitas.
    • Tingkatkan kecepatan dan ketangkasan.
    • Hentikan biaya pengelolaan dan pemeliharaan data center.
    • Mendunia dalam hitungan menit.