Categories

In windows, we can set the display color, brightness etc in intel hd graphics app, such that, we don’t encounter eye strain. Is there any similar app in ubuntu to do that? I am not talking about blue light filter apps like f.lux or redshift. I wish to manually change the rgb, sharpness and all […]

Categories

## Could it be possible to secure transactions against double-spending with other utxos?

I’m new to Bitcoin Script, and I was wondering if it is possible to use funds from one utxo to “insure” that other utxo will not be double-spent (until the Lightning Network will save us all). Suppose I have 0.1 bitcoin in a utxo with pubkey pubKey1, and 10 bitcoins that I would send to […]

Categories

## Why optimizing a system to use bytes with fewer 1 values will not save electricity

I’ve got an odd one. My spouse is beginning to take an interest in and learn about computer science subjects. I’ve helped by providing lessons on programming topics, and finding educational things on topics such as transistors, binary math, etc. She posed a theory recently that I instinctively know cannot be correct, but I can’t […]

Categories

## postgresql transitive unique constraints via foreign key

I have the following schema: CREATE TABLE t2 ( id TEXT PRIMARY KEY, t1_id TEXT REFERENCES t1(id) ); CREATE TABLE t3 ( id TEXT PRIMARY KEY, t2_id TEXT REFERENCES t2(id) ); CREATE TABLE t4 ( t4_counter BIGINT NOT NULL, t3_id TEXT REFERENCES t3(id), // Need UNIQUE constraint on t4_counter + t2_id ); There are 3 […]

Categories

Categories

## Given all the primes up to N, calculate the next prime.

Does a formula exist, such that, when we know all the primes less than N, e.g.: 2,3,5,7,11 we can calculate the next prime, in this case, 13? Note: while I am ok with using functions such as gcd(), I am looking for 1 formula, not an algorithm.

Categories

## Given all the primes up to N, calculate the next prime.

Does a formula exist, such that, when we know all the primes less than N, e.g.: 2,3,5,7,11 we can calculate the next prime, in this case, 13? Note: while I am ok with using functions such as gcd(), I am looking for 1 formula, not an algorithm.

Categories

## Is given set open in product topology formed by product of order sets?

We have two continuous functions f and g from topological space X to topolgical space Y. Where set Y having order topology. Now, consider Product topology Y×Y. We define a subset V of Y×Y, V = { (f(x),g(x)) | f(x)>g(x) for some x belonging to X} Now, can we say set V is open in […]