Hmmm, I kinda want to write some disco elysium fanfic with branching choices, not as much for the story but for the programming practice (I just don't have any ideas atm :/). Or if someone wants to do the writing I can do all the programming? Or maybe I should just make a twine style framework? But I kind of want it to be compatible with AO3's archive format, even though the platform is not really suited for what I want to do lol
272 notes
·
View notes
(via Kubernetes Namespace Tutorial for Beginners | Kubernetes Namespace Explained)
2 notes
·
View notes
Flutter 如何修改 App 的 namespace
以下為 Flutter 修改 Android namespace 的位置,:
android\app\build.gradle (有2處)
android\app\src\main\AndroidManifest.xml (不一定有)
android\app\src\main\kotlin\… (根據新的namespace修改資料夾名稱)
android\app\src\main\kotlin\…\ManiActivity.kt
View On WordPress
0 notes
hello! just popped over from one of your xiaoven fics (which was amazing, 10/10 btw). i was just wondering which genshin server you're in? i'm kinda lonely and want more genshin friends haha
hi hiiii :3
i'm actually not really active in any genshin servers bc i tend to be really shy abt interacting w/them, though literally just a few days ago i met this guy in co op mode who mentioned a ganqing server, and upon further discussion we realized we were both in it, which was very surprising bc there are like literally 30 people in there. so i Have been thinking abt becoming active in there, but i suspect you are not looking to enter the gq scene ahaha
anyway, in regards to a xv server, According To My Research(tm), there used to be one a long time ago! i was never in it, obviously, but i went server hopping a while back to try to find it at a friend's request, and from what i have gathered (by searching up "xiaoven" in various tangentially related genshin ship servers), what happened is that it got really toxic and insular and then eventually imploded/got deleted sometime in... march or april of this year, i wanna say?
and then due to various factors the xv community just never really recovered from that so what i've been saying we should do-- *gets crushed by a cork board covered in red strings before i can continue*
ahem SO ANYWAY yeah i totally understand the "isolated fan" feeling/experience, but if you want, i could direct you to some of my tumblr mutuals if you wanna kinda lurk in my circle for a bit before joining in!! you'll probably just be like "this is the most random collection of people i've ever seen in my life" but i mean like,,, that's kind of how every community ever has started?? so might as well give it a shot :D
0 notes
Under the Hood of Linux Containers
Containers have been around for quite a while and are the heart of modern software architecture and cloud native technologies. While there are different container technologies like docker which provides abstraction for creating and managing containers it is important to know how containers works internally with the Host operating systems. In this post we are going to look at the major Linux OS…
View On WordPress
1 note
·
View note
Unlocking the Full Potential of CI/CD Pipeline for Azure Kubernetes Services
Are you looking to set up a CI/CD pipeline for AKS (Azure Kubernetes Service) but don’t know where to start? Look no further. In this article, we will cover the basics of setting up a CI/CD pipeline with Azure DevOps – from creating builds and releases, d
Are you looking to set up a CI/CD pipeline for AKS (Azure Kubernetes Service) but don’t know where to start? Look no further. In this article, we will cover the basics of setting up a CI/CD pipeline with Azure DevOps – from creating builds and releases, deploying resources, automating deployment processes with Azure Pipelines, and best practices for configuring pipelines. By the end of this…
View On WordPress
0 notes
Kubernetes namespaces are a way to divide cluster resources between multiple users by providing a separate set of resources for each user. A namespace provides scope for names, allowing different users to use what would otherwise be identical names for different resources. Kubernetes contexts are a way to connect to different clusters or namespaces within a cluster. Contexts include information such as cluster endpoint, user credentials, and namespace. A user can switch between contexts to access different clusters or namespaces. In this video, you will learn Kubernetes Namespaces and contexts and how to switch between contexts.
0 notes
C++ compiler diagnostic gone horribly wrong: error: explicit specialization in non-namespace scope
C++ compiler diagnostic gone horribly wrong: error: explicit specialization in non-namespace scope
Here is a g++ error message that took me an embarrassingly long time to figure out:
In file included from /home/llvm-project/llvm/lib/IR/Constants.cpp:15:
/home/llvm-project/llvm/lib/IR/LLVMContextImpl.h:447:11: error: explicit specialization in non-namespace scope ‘struct llvm::MDNodeKeyImpl<llvm::DIBasicType>’
template <> struct MDNodeKeyImpl<DIStringType> {
^
This is the code:
template <>…
View On WordPress
0 notes
Describe Singleton Pattern In JavaScript
The singleton design pattern is a popular one for JavaScript. It offers a means of organizing the code into a logical chunk that can be reached via a single variable. When a single instance of an object is required for the duration of an application, the singleton design pattern is utilized. The Singleton pattern in JavaScript can be used for a variety of purposes, including NameSpacing, which lowers the number of global variables on your page (preventing global space from becoming cluttered), organizing the code consistently, and improving the readability and maintainability of your pages.
The standard definition of the Singleton pattern emphasizes these two ideas:
- A class should only be permitted to have one instance, and
- We ought to make that one instance accessible from anyone in the world.
Let me explain the singleton pattern in the context of JavaScript:
Encapsulation is the process of using an object to give a namespace to a collection of related methods and attributes. If initiating is permitted, it can only be done once.
Using object literals, we can generate singletons in JavaScript. There is another option, which I will discuss in my subsequent piece.
The object itself, with all of its members (methods and attributes), plus the global variable used to access it, make up a singleton object. One of the main characteristics of the singleton pattern is that the variable is global, allowing the object to be accessible from anywhere on the page.
JavaScript: A Singleton as a Namespace
As I already mentioned, singletons can be used in JavaScript to declare namespaces. In JavaScript, NameSpacing plays a significant role in responsible programming. Because everything may be changed, and because it is quite simple to accidentally delete a variable, a method, or even a class without realising it. As an example of something that frequently occurs when working concurrently with another team member,
function findUserName(id) {
}
/* Later in the page another programmer
added code */
var findUserName = $('#user_list');
/* You are trying to call :( */
console.log(findUserName())
Namespacing your code inside of a singleton object is one of the greatest techniques to avoid unintentionally overwriting variables.
/* Using Namespace */
var MyNameSpace = {
findUserName : function(id) {},
// Other methods and attribute go here as well
}
/* Later in the page another programmer
added code */
var findUserName = $('#user_list');
/* You are trying to call and you make this time workable */
console.log(MyNameSpace.findUserName());
Singleton Design Pattern Implementation
/* Lazy Instantiation skeleton for a singleton pattern */
var MyNameSpace = {};
MyNameSpace.Singleton = (function() {
// Private attribute that holds the single instance
var singletonInstance;
// All of the normal code goes here
function constructor() {
// Private members
var privateVar1 = "Nishant";
var privateVar2 = ;
function privateMethod1() {
// code stuff
}
function privateMethod1() {
// code stuff
}
return {
attribute1 : "Nishant",
publicMethod: function() {
alert("Nishant");// some code logic
}
}
}
return {
// public method (Global access point to Singleton object)
getInstance: function() {
//instance already exist then return
if(!singletonInstance) {
singletonInstance = constructor();
}
return singletonInstance;
}
}
})();
// getting access of publicMethod
console.log(MyNamespace.Singleton.getInstance().publicMethod());
The singleton that was used above is simple to comprehend. The static getInstance() method of the singleton class returns a reference to the single singleton instance, which the singleton class keeps as a static reference.
Read the full article
0 notes