Better HN
topnewbestaskshowjobs
Log inSign up

mireq2

13 karma · joined Dec 29, 2020 (5y ago) · 6 submissions

Python / Django / C / C++ developer https://github.com/mireq/
Submissions

comment 4mo ago · link · parent

No. I need something like <option value="123"><img src="...">Mars</option> - separated internal representation and value and dynamically updated. If i can fit whole list to client memory why should i choose datalist over select?

comment 4mo ago · link · parent

Great satire but let's create that same for combobox with server side filtering. Now you have problem because it's not possible with native HTML elements. Many re-implementations are result of missing native elements.

comment 1y ago · link · parent

iTerm2 switches GPU to CPU rendering when running on battery. GPU rendering is more power hungry than CPU.

comment 3y ago · link · parent

I spent couple days rewriting everything from Django to Jinja2 and it was really big difference with 10x speedup (from 500ms for invoice list to 50ms). It was big e-commerce system with every ORM query optimized, selecting only required fields, prefetching related relations or selecting related. Django templates are really really slow and hard to debug. Rewrite was really great decision in this case.

comment 4y ago · link · parent

Clips are not so fragile. I have disassembled my P14s gen 2 wtih AMD on first day because i wanted Intel AX210 wifi instead of realtek. Two fingernails broken, because i don't have tools, but with plastic tools it should be easy (here is video https://youtu.be/K_lJcciszsw).

Big problem for me is USB-C. I don't like small, fragile connectors directly soldered on motherboard. USB-A is on separate board. I don't know why USB-C has no separate board.

Trackpoint on AMD models has terrible in linux support. Sample rate of trackpoint is max 40Hz, because it's in fallback mode (PS/2 protocol). Touchpad can't be disabled in BIOS and low rate is because is muxed with trackpoint to single PS/2 interface.

S0ix don't work. No opportunistic sleep. Minimal power usage on battery with AMD-5850u, LCD at minimum brightness (4k panel) is 3W. Standard power usage while i am working is 3.5-4.5W.

comment 5y ago · link · parent

Really cool display even if it has problems with tearing. I played around with that display a bit - https://youtu.be/8S1BXnx-vLE (STM32, 60+ fps), https://youtu.be/Wql4WTpPrWs (ESP32, ~40 fps)