

Plover. I’m still not any good at it.
Plover. I’m still not any good at it.
I decided to use NAND instead of NOR, but it’s effectively the same thing.
Scala:
//main
@main
def main(): Unit =
var i = 15 //Choose any number here
i = add(i, 1) //this increments i
println(i)
//Adds 2 numbers in the most intuitive way
def add(a: Int, b: Int): Int =
val pairs = split(a).zip(split(b))
val sumCarry = pairs.scanLeft(false, false)((last, current) => fullAdder(current._1, current._2, last._2))
return join(sumCarry.map(_._1).tail.reverse)
//Converts an integer to a list of booleans
def join(list: Seq[Boolean]): Int = BigInt(list.map(if (_) '1' else '0').mkString, 2).toInt
//Converts a list of booleans to an integer
def split(num: Int): Seq[Boolean] = num.toBinaryString.reverse.padTo(32, '0').map(_ == '1')
//Adds 2 booleans and a carry in, returns a sum and carry out
def fullAdder (a: Boolean, b: Boolean, c: Boolean): (Boolean, Boolean) =
(NAND(NAND(NAND(NAND(a, NAND(a, b)), NAND(NAND(a, b), b)), NAND(NAND(NAND(a, NAND(a, b)), NAND(NAND(a, b), b)), c)), NAND(NAND(NAND(NAND(a, NAND(a, b)), NAND(NAND(a, b), b)), c), c)), NAND(NAND(NAND(NAND(a, NAND(a, b)), NAND(NAND(a, b), b)), c), NAND(a, b)))
//The basis for all operations
def NAND(a: Boolean, b: Boolean): Boolean = !a || !b
EDIT: replaced Integer.parseInt
with BigInt(...).toInt
to fix NumberFormatException
with negative numbers.
try it online here
LocalSend. File transfer between any devices with (almost) any OS over LAN. No account required. The best file transfer app I’ve ever encountered by far.
StreetComplete. Get motivated to go outside with quests to help complete OpenStreetMaps. Surprisingly addictive. Requires an OpenStreetMaps account.
f.lux. Remove the blue light from your computer monitor in the evening to help you fall asleep more easily. Redshift. As above. Not quite as good, but works on some OS/System configurations that f.lux can’t handle.
Pulsar. A community version of the discontinued Atom text editor. Highly extendable and configurable. Great for small programming tasks or opening text files with an obscure syntax. Has most of the packages built for Atom.
Home Assistant. For automating your house and more (controlling smart lights and appliances, monitoring solar panel output, weather forecasts, printer diagnostics, delivery tracking…). A dedicated device (Raspberry Pi, old laptop) is highly recommended. A bit of a learning curve, but hard to live without after using it.
I have used Kagi for several weeks and can’t go back. I can finally find things on the internet again and I don’t want to lose that again.
I find your lack of comma disturbing.
It hasn’t happened to me, but passengers have been severely injured before.
An example of a minor incident.
Listen to the safety briefing. They wouldn’t bother telling you if it wasn’t important.
Keep your seatbelt on for the entire flight. The pilots can’t always predict turbulence, and hitting the ceiling hurts.
https://piped.video/watch?v=YyzQsVzKylE
Lithium batteries scale power and capacity at the same time. Flow batteries can scale power and capacity independently.
The advantage of flow batteries is that they can have enormous capacities without the added cost of upgrading the power, making it ideal for grid scale storage.
Even if this new flow battery reaches the energy density of a lithium battery, and can output sufficient power, it would still need to reach price parity to be competitive.
Adequate for cargo flights, not happening any time soon for passenger flights. Aviation safety is very strict and slow to change.
Flow batteries are great for long duration storage, but not good for high power delivery.
This means they will work far better as grid storage than as EV batteries.
Xed
It opens quickly
I have a prototype self driving system in my car. It drives logically and consistently, but it doesn’t behave like a human.
This would be a really helpful feature as self driving becomes more common.
Mint is based on Ubuntu, which is based on Debian. LMDE is being built alongside Linux Mint and is based only on Debian.
Linux Mint and LMDE are functionally the same, but LMDE is protection/insurance against Ubuntu doing something stupid.
I highly recommend Linux Mint (cinnamon) as an entry level Linux distro. It looks and feels similar to Windows, and it’s based on Ubuntu, so it has a lot of support and compatibility.
A better comment would be delay in seconds
as that is the one thing not obvious from glancing at the code.
Even the most subtle burn in bothers me, but grey instead of black doesn’t. LED is better than OLED for me.
As soon as there is a technology with the same colours as OLED with absolutely no burn in (and my existing displays get too old), I’ll consider it.