Categories
Mastering Development

Bootstrap: Navbar: nav-side-menu: collapse on small screens

I have a nav-side-menu in my html page that shows up fixed top and fixed left. What I am trying to do is get it to collapse to the left side and show a button with 3 bars when viewed on small screens(I don’t want it to disappear). For example, the way the sidebar collapses […]

Categories
Mastering Development

How do I enable windows support on the aws_eks_cluster resources?

I want to run windows on eks, but I need to enable Windows support per this doc: https://docs.aws.amazon.com/eks/latest/userguide/windows-support.html#enable-windows-support It says I need to run this command: eksctl utils install-vpc-controllers –cluster cluster_name –approve Im looking at the terraform aws_eks_cluster resource: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_cluster I cant find any params that look like install-vpc-controllers How do I enable windows support […]

Categories
Mastering Development

Handling Tigger in Dotnet Core Azure

Hi I am facing this problem for quite some days. Hope I can find some solution here. I am having a dotnet core application where I have implemented HostingService to pickup some records from database and push it to quartz trigger. Following works fine in IIS but when deployed to Azure HostingService is been run […]

Categories
Mastering Development

Why are generator expressions called that way?

On one hand we have List comprehension [x for x in range(10)] Set comprehension {x for x in range(10)} Dict comprehension {x: x for x in range(10)} On the other we have Generator expression (x for x in range(10)) Why are the first three expressions called "comprehensions", while the last one is called "expression"? They […]

Categories
Mastering Development

How to query for 2 different images?

I’d like to query for 2 images, images/me.jpg and images/boxing.png. Not sure how I would do it in graphql: query AboutQuery { file(relativePath: { eq: ("images/me.jpg"|"images.boxing.png") }) { childImageSharp { fluid { …GatsbyImageSharpFluid } } } }

Categories
Mastering Development

How to disable \label{} autocomplete in Jupyter Notebook markdown cells?

I have been working with Jupyter Notebook recently and encountered a small issue when using markdown cells. While using Latex syntax, I often need to use \langle and \rangle in order to express an average value. For example, the average value of r would be $\langle r \rangle$ The problem comes from typing the \langle. […]

Categories
Mastering Development

datasets for intrusion response system-data driven approach to intrusion response

There are many datasets available for intrusion detection systems. I would like to know if there is any dataset that represent a response once an intrusion has been detected. intrusion (incident) response is normally done by deploying rules. how a data driven approach can be deployed to intrusion response taking risk assessment into account?

Categories
Mastering Development

Accented letters with Firefox and Chrome on MAC OS

i have this problem: i have this tag for upload a file <div id="form-attachments"> <input type="file" name="attachFile" id="attachFile"/> </div> and i recover the value like this $("#attachFile").change(function () { var file = document.getElementById(‘attachFile’).files[0]; uploadFile(file); }); function uploadFile(file) { var formData = new FormData(); formData.append(‘file’, file); formData.append(‘IDNotifica’, $(‘#IDNotifica’).val()); formData.append(‘relata’, $(‘#fileTipoRelata’).val()); var filename = $(‘input[type=file]’).val().split(‘\\’).pop(); //var bool […]

Categories
Mastering Development

Firebase cloud functions, not working .forEach

I am trying to call the .forEach function in my Cloud functions and it even works, but it does not return what I need, I am trying to get the branch key and it just returns TRUE. I cannot remove return from the second line (I think this is a mistake), because as soon as […]

Categories
Mastering Development

How to append dictionaries to a dictionary in a for loop?

I am trying to create a dictionary where the value for each key is two dictionaries. I have two lists of patient (normal tissue, disease tissue) barcodes that correspond to columns of values in a dataframe. My goal is to match patients that are in both lists and then, for each patient found in both […]