Top HN posts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "shared:shaderc" | |
| import "vendor:glfw" | |
| import vk "vendor:vulkan" | |
| MAX_FRAMES_IN_FLIGHT :: 2 | |
| Context :: struct | |
| { | |
| instance: vk.Instance, |
If you have a LUKS-encrypted partition on another disk, it's easy to mount it inside WSL.
List your disks:
> wmic diskdrive list briefMount the whole disk inside WSL (using --bare so WSL doesn't attempt to mount it automatically):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // GLFW and OpenGL example with very verbose comments and links to documentation for learning | |
| // By Soren Saket | |
| // semi-colons ; are not requied in odin | |
| // | |
| // Every Odin script belongs to a package | |
| // Define the package with the package [packageName] statement | |
| // The main package name is reserved for the program entry point package | |
| // You cannot have two different packages in the same directory |
Tutorial: https://www.youtube.com/watch?v=hIqMrPTeGTc
Paste the below code in your browser console (F12 > Console):
(()=>{
markAllVideosAsNotBeingInteresting({
iterations: 1
});
})();
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "input": { | |
| "blocklist": [], | |
| "compressor": { | |
| "attack": 20.0, | |
| "boost-amount": 6.0, | |
| "boost-threshold": -72.0, | |
| "hpf-frequency": 10.0, | |
| "hpf-mode": "off", | |
| "input-gain": 0.0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo systemctl disable bolt.service | |
| sudo systemctl mask bolt.service | |
| sudo systemctl stop bolt.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <fontconfig> | |
| <dir>~/.fonts</dir> | |
| <!-- | |
| Documented at | |
| http://linux.die.net/man/5/fonts-conf | |
| To check font mapping run the command at terminal | |
| $ fc-match 'helvetica Neue' | |
A computer font (or font) is an electronic data file containing a set of glyphs, characters, or symbols such as dingbats.
Most computer fonts used today are in either bitmap(BDF) or outline data(otf/ttf) formats.
Many non-English users have problems with their language's rendering, at least Persian users have problems with viewing Persian charactars that can happen because:
- Proper fonts are not installed/found by fontconfig. Click here
- Fontconfig order is wrong and the latin fonts are above Persian fonts and don't have a good support that causes problems. Click Here