Notes on adding Constraint Kinds to Rust
a trait can be thought of as a type operator generating a "constraint" - what in Rust would usually be called a bound. For example:
// Declares a new item `Foo` with kind `type -> constraint`
trait Foo { }
// I've also posted this on unknowncheats.me under the alias of xemacs, as noted in my GitHub description. | |
// https://www.unknowncheats.me/forum/c-and-c-/456716-address-matching-strings-memory-bitmap.html | |
// This is technically a complete implementation and ready to use, you just have to change little things to have it compliant as is right now. | |
auto c_pe::find_utf8_compare_hash( size_t hashed, bool check_8d )const->const std::vector<pattern_t> | |
{ | |
const auto &module_bitmap = get_module_bitmap( ); | |
const auto &module_text_section = grab_section_by_hash( HASH_CT( ".text" ) ); | |
auto results = std::vector<pattern_t>{}; |
#lang sicp | |
;; power impl | |
;; x - number | |
;; y - power | |
;; z - preserved base | |
(define (^-impl x y z) (if (<= y 0) | |
x | |
(^-impl (* z x) (- y 1) z))) |
class IScriptVM { | |
public: | |
virtual ~IScriptVM() = 0; | |
}; | |
class CLuaVM : public IScriptVM { | |
public: | |
virtual ~CLuaVM() = 0; // vftable | |
virtual bool __fastcall Initialize() = 0; |
The following document presents the process of scraping some videos from YouTube, downloading them to an appropriately named file, then transcribing them.
In my scenario, I want to do this for the NT YouTube channel, as I find it to be a wealth of first-hand knowledge, but the only set-back is that it is not in text form, and the fact that the videos seem to have been shot in the late 2000s/early 2010s doesn't do that any justice.
In this procedures, we will be using JavaScript (to handle the video scraping, directly in the Dev Console of Google Chrome), and Python, to subsequently achieve the goals stated above.
First, let's gather a list of pairs of the video title and it's URL. We will first go to the YouTube channel and load in all of the videos. Thankfully, YouTube doesn't update the page schema depending on where you're looking in the page (as opposed to web applications such as Discord, which, annoyingly, do just that), therefore upon loading all of the videos wh
So, one of my latest distractions was making Windows' taskbar progress custom colored. I personally already use StartIsBack, but it has no such option (by default.) So, how do we go about it? I decided to start from Explorer, as it is responsible for the taskbar in itself, and StartIsBack itself hooks into Explorer's painting code to draw everything by itself, with all the context that Explorer has gathered for it.
The following will be a recollection of how my debugging session started off, and how I eventually ended up in the right place:
ITaskbarList3
[guid ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf
], respectively by it's SetProgressValue
and SetProgressState
functions, so let's look for that...CTaskItem::GetProgressState