Basics 1. Fetch the requested HTML file (via HTTP GET). 2. Parse (creating the DOM) that file (using DFS). 3.
Continue readingCategory: Computer
Garbage collection (Basics)
A garbage collector is a hidden background tool that cleans unused application memory automatically. It’s necessary for languages which aren’t
Continue readingLayout of std::shared_ptr (libstdc++)
Source code Debugging Visual result |———————-| | shared_ptr sPtr1 | |———————-| |Pointer to the Object |—|——-> Object | | |
Continue readingBIOS resetted after every cold reboot
Issue: The most common reason that the BIOS is resetted after every cold reboot is a flat CMOS battery. If
Continue readingMount points (Linux)
Linux differs from Windows with creating just a single directory tree for all partitions. Request all mount points user@DeveloperVM:~$ df
Continue readingChange owner, group and permissions (Linux)
Change owner/group chown [options] [owner][:[group]] file Examples chown root file.txt // For file.txt set owner to root chown -R root:admin
Continue readingAuthentication – Session-based vs. Token-based
Session-based The client logs into the server and gets a session id. The server caches all sessions to be able
Continue readingResolve conflicts for binary files (Git)
There are common scenarios where you possibly have to resolve conflicts. They are cherry-pick, merge, rebase and revert. If those
Continue readingSandboxing (Linux)
There are multiple possibilities with Linux to sandbox applications. chroot … Changed file system root namespaces … Separated namespaces (e.g.
Continue readingLambda captures (C++)
auto func = [/*capures*/](/*arguments*/){/*body*/}; Captures: <var> … Local variable by value &<var> … Local variable by reference = … All
Continue reading