Cross-compilare un cross-compilatore, wow
https://en.wikipedia.org/wiki/Cross_compiler#Canadian_Cross
https://en.wikipedia.org/wiki/Cross_compiler#Canadian_Cross
🤯3
Approvato da Arves
https://twdev.blog/2021/08/cmake/
CMake language is bad
Yes, it’s like a vimnoscript of build system languages. Inconsistent, confusing and without a reference manual at hand all the time, impossible to memorise [...]
Anatomy of a CMakeLists.txt file
[...] To bring a simple library to a production quality which other people can actually use (or even yourself, as part of a bigger project), I had to write 48 lines of CMake code [...]
Dealing with more complex projects
[...] Since global
https://twdev.blog/2021/08/cmake/
CMake language is bad
Yes, it’s like a vimnoscript of build system languages. Inconsistent, confusing and without a reference manual at hand all the time, impossible to memorise [...]
Anatomy of a CMakeLists.txt file
[...] To bring a simple library to a production quality which other people can actually use (or even yourself, as part of a bigger project), I had to write 48 lines of CMake code [...]
Dealing with more complex projects
[...] Since global
CMakeLists.txt acts as a single super project aggregator, the implication is that it’s impossible to enforce build order [...]twdev.blog
Why CMake sucks?
CMake has become a de facto industry standard as a natural ancestor superseding autotools. But is it actually an improvement? Personally, after spending signifficant amount of time with CMake projects, I’m inclined to conclude that no, not really. Below,…
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
2020 — io con PyQt5 e reverse engineering sul progetto Huawei Breakout mai andato in porto (è morto il telefono (grazie gesù))
Prossima PC build che faccio metto tutto in cantina al fresco e tutte le periferiche collegate via rete
🤯2
Ho scoperto come mandare emoji singole standard forzando la versione non animata — bisogna formattare l'emoji in grassetto o altro
Edit: non funziona da desktop
Edit: non funziona da desktop
journalctl -u micro
Altro bug — VSCode Nonostante abbia attivato le opzioni per l'accelerazione hardware, al minimo scrolling del pannello terminale lagga tutto per ~5 secondi... Forse inerente https://stackoverflow.com/questions/70718770/vscode-terminal-is-running-extremely…
Found specific issue — generata automaticamente su github tramite telemetria
https://github.com/microsoft/vscode/issues/176261
https://github.com/microsoft/vscode/issues/176261
GitHub
[PerfSampleError] `drawImage` · Issue #176261 · microsoft/vscode
[PerfSampleError] by <<renderer>> in drawImage at drawImage at _drawChars in vscode-file://vscode-app/node_modules.asar/xterm-addon-canvas/lib/xterm-addon-canvas.js:1:7048 at <anonym...
Non so se sia il nuovo SSD Crucial che mi era stato regalato — oppure qualche componente, tipo la CPU ormai vecchia di +13 anni che sta lentamente morendo ed ha bisogno di "scaldarsi" per partire bene — ma ogni volta il PC è particolarmente lento appena lo accendo, anche su GRUB; quando poi riavvio (anche con Ctrl-Alt-Del) torna ad essere veloce come prima.
Chissà
Chissà
Per disabilitare l'effetto sonoro di ricerca fallita (Ctrl-F) su firefox:
•
•
about:config
• accessibility.typeaheadfind.enablesound
• = falseHowTo C++14 — singleton
Come ci si aspetterebbe in C#:
• non è possibile istanziare una classe nella dichiarazione di sé stessa (come nell'esempio di prima), perché non è ancora terminata
• è possibile inizializzare all'esterno, in un file sorgente
• è semplificabile, ma se un campo della classe non ha distruttore possono esserci problemi
Come ci si aspetterebbe in C#:
public class My {
public static readonly My singleton = new My();
private My() { ... }
}
Come fare in C++14 (uno dei modi):• non è possibile istanziare una classe nella dichiarazione di sé stessa (come nell'esempio di prima), perché non è ancora terminata
• è possibile inizializzare all'esterno, in un file sorgente
• è semplificabile, ma se un campo della classe non ha distruttore possono esserci problemi
#pragma once
class My {
public:
static My &instance() {
if (!_instance)
_instance = new My();
return *_instance;
};
private:
static My *_instance;
My();
};
___________________
#include "my.hpp"
My *My::_instance = nullptr;
My::My() { ... }async loop(rem):
while True:
await sleep(rem.time)
notify(rem.text)
foreach rem:
task.run(lambda: loop(rem))È tanto difficile implementare una logica del genere su Android? No perché non trovo alcuna app che mi permetta di farlo — dovrò ripiegare su Automate