HackerTrans
TopNewTrendsCommentsPastAskShowJobs

CodeHz

no profile record

comments

CodeHz
·geçen yıl·discuss
Actually, it won't compile in msvc (the linking phase, to be precise), MSVC uses different names for methods with different visibilities
CodeHz
·3 yıl önce·discuss
Windows do have this API, NtDeleteFile, AND it could be used to delete current running exe. https://twitter.com/jonaslyk/status/1345167613643661312 but it is undocumented...
CodeHz
·3 yıl önce·discuss
Funiest thing is, in win11, the notepad use RichEdit again (but use winui's richedit control, not win32
CodeHz
·3 yıl önce·discuss
no, you can do it by define SQLITE_DEFAULT_FOREIGN_KEYS=1 while compiling sqlite3
CodeHz
·3 yıl önce·discuss
Btw, you can even run a executable file which has been renamed to any extension (.txt or .whatever) in command line. (See PATHEXT env) It just recognized by the explorer (and shellexecute api’ third parameter). So that’s mean all files have “executable” permission by default.
CodeHz
·3 yıl önce·discuss
Maybe it just a transparent div that blocked all the pointer events?
CodeHz
·4 yıl önce·discuss
it could come from a template function which don't have a sfinae branch (or `if constexpr (std::is_empty<T>::value)`) for empty type
CodeHz
·4 yıl önce·discuss
You could try adguard (android version), but it is paid.

And the biggest problem is most of sites are already upgraded to https, it needs MITM attack, but lots of applications won't accept any user certificate... (so adguard needs be installed to let those apps bypass its proxy, that's mean, you cannot just host a central proxy server to filter all ssl traffic)
CodeHz
·4 yıl önce·discuss
BTW, the GitHub mobile app rendering them correctly (since it doesn't use html)