Category Archives: Memo

an inconceivable bug of STM32CubeMX….

The default value of Heap and Stack in STM32CubeMX is 0x200 bytes Heap and 0x400 bytes Stack. Which is work fine in most situation. BUT the middleware of USBStack use malloc! for TX and RX buffer!!! That will make the … Continue reading

Posted in Memo | Tagged , , , , | Comments Off on an inconceivable bug of STM32CubeMX….

Disable Chrome PDF plugin

For the old chrome version, goto chrome://plugin and disable it. But when I upgrade to 62, missing this. And I found chrome://settings/content/pdfDocuments Or find by click I found https://superuser.com/questions/30850/stop-pdfs-from-displaying-inside-google-chrome finally:)

Posted in Memo | Tagged , , , | Comments Off on Disable Chrome PDF plugin

STM32F103 marking summary

This is collection I got. and compare with PCN-8363-2014.03.31.pdf PCN-8390-2014.05.07.pdf PCN-9484-2015.12.17.pdf PCN-9511-2016.04.22.pdf PCN-9685-2016.04.19.pdf

Assembly Plant

Country of Origin

Manufactured date The problem is, howto identify 2003 or 2013?

Interconnect

Chip revision

Posted in Memo | Tagged , , , , | Comments Off on STM32F103 marking summary

Bug in Python3.6 standard library when compile using MinGW

Python36 is compiled by Visual Studio 2015 or MSBuild tools 2015, which included Compiler v19.00 (MSC_VER 1600). But “C:\Python36\Lib\distutils\cygwinccompiler.py” can’t handle it… I modify it simply like this:

Posted in Memo | Tagged , , , , , , , | Comments Off on Bug in Python3.6 standard library when compile using MinGW

USB3.0 Hub

I bought some USB3.0 hub, and look inside:) Unitek Y-3043CBK, RTS5411, transfer stable and look pretty. This chip have EFuse ROM, so external SPI Flash is useless.

Posted in Memo | Tagged , , , , , | Comments Off on USB3.0 Hub

Xilinx update Spartan3AN device!

I found the release date of some XC3S50AN is 2014 or 2016! and Impact can’t download to In-System Flash, show me “SPI not found”… But the older 2010’s IC is OK. After some searching… Xilinx manufacturing Spartan3AN devices, not discontinued! … Continue reading

Posted in Memo | Tagged , , | Comments Off on Xilinx update Spartan3AN device!

Remove unnecessary php file please

When I analysis web server log file, I found this

That means someone checking my files, and want to get the MySQL password? It is better to prevent this location in web server!

Posted in Memo | Tagged , , , , | Comments Off on Remove unnecessary php file please

Fix wordpress 301 loop when enable nginx…

I am try to setup Nginx as reverse proxy, backend is Apache, the problem is WordPress always 301 to the same URL even if the browser request that URL (301 loop). client nginx(https) apache(http) The problem is WordPress think the … Continue reading

Posted in Memo | Tagged , , , | Comments Off on Fix wordpress 301 loop when enable nginx…

Enable Let’s Encrypt

I am using StartSSL free certificate before, but Chrome and Firefox begin to drop it. So I change to Let’s Encrypt. It really work!!! Great!!! And force all request to SSL.

This work is licensed under a Creative Commons … Continue reading

Posted in Memo | Tagged , , | Comments Off on Enable Let’s Encrypt

Found final audit of Truecrypt report

I found the final report on opencryptoaudit.org, and the answer is Truecrypt is safe, great! Or I think is safer than most open source crypto on the fly disk implement without UEFI.

Posted in Memo | Tagged , | Comments Off on Found final audit of Truecrypt report