Categories
User Help

HSM: How multiple users are supported (using SAM)?

So far, I knew that traditional HSMs (Hardware Security Module) can be used to store key of a single user. But, recently, I came to know that newer HSMs have the capability to store keys of multiple users and let users use those keys to sign documents. Newer HSMs does this using Subscriber Authentication Module […]

Categories
Mastering Development

How to understand the proposed resolution of #1664

After looking at the proposed resolution of #1664(proposed resolution 1664), I’m confused for the rules of a default argument of a function template, Cite the content here: According to 8.1.5 [expr.prim.lambda] paragraph 3 The closure type is declared in the smallest block scope, class scope, or namespace scope that contains the corresponding lambda-expression. [Note: This […]

Categories
Artificial Intelligence (AI) Development

Is a dystopian surveillance state computationally possible?

This isn’t really a conspiracy theory question. More of an inquire on the global computational power and data storage logistics question. Most recording instruments such as cameras and microphones are typically voluntary opt in devices, in that, they have to be activated before they start recording. What happens if all of theses devices were permanently […]

Categories
Development

In Gradle (6.2), can we annotate constructor params of a custom task as “input”?

Say I have a custom gradle task: open class CustomTask @Inject constructor( private val inputFile: File, private val outputFile: File ) : DefaultTask() (based on https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:passing_arguments_to_a_task_constructor ) . In gradle, so far, the common way to define inputs or outputs is with annotations like InputFile. From a Kotlin-perspective, it would be nice to inject all […]

Categories
Development

Trying to add multiple records with a while loop to a MYSQL table defined by a field in case they dont already exist

I have a table named “Payments” this table looks like this HouseNumber| Month | Amount| Status I have 104 houses to administrate, hows numbers go from 1 to 104, so far, only 5 houses have paid March rent and I made an insert to my table for those ones. If you run this query: SELECT […]

Categories
Development System & Network

MikroTik VPN With Multiple External IP Addresses

I have a MikroTik CCR1009-8G-1S that is providing the Internet connection for two separate but co-located businesses. Both businesses have VPN configured on their servers and the MikroTik passes the traffic from a specific external IP to the appropriate internal server. What I want to do is enable VPN on the MikroTik itself for the […]

Categories
Bitcoin Cryptocurrency Development

how is litecoin different from bitcoin

So far, i only know that litecoin is using another mining algorithm called Scrypt which has some ASIC resistance. Is there any more difference? Or they are completely the same except the mining algorithm

Categories
Development

Java: how to find the minimum of an array (user input)

So far, this is my code: public static void main(String[] args) { System.out.println(“Please input numbers”); Scanner myScan = new Scanner(System.in); String input = myScan.nextLine(); String[] numbers = input.split(” “); int[] numbersInt = new int[numbers.length]; int minNumber = numbersInt[0]; for(int i = 0 ; i < numbers.length; i++) { numbersInt[i] = Integer.parseInt(numbers[i]); } for(int i = […]

Categories
Development Linux Ubuntu

Os-prober not finding windows

I recently got a new razer blade 15 inch 2019 and have been running dual boot Manjaro/Windows10 for more than a month now. The 2 systems are installed on their own drives. I dad no problems, so far, until I decided to switch from Manjaro to Ubuntu. Now my bootloader doesn’t “see” Windows anymore but […]

Categories
Development Linux Ubuntu

Os-prober not finding windows

I recently got a new razer blade 15 inch 2019 and have been running dual boot Manjaro/Windows10 for more than a month now. The 2 systems are installed on their own drives. I dad no problems, so far, until I decided to switch from Manjaro to Ubuntu. Now my bootloader doesn’t “see” Windows anymore but […]