18107

joined 2 years ago
[–] [email protected] 12 points 1 week ago

You don't need to do everything every day. Some days, surviving is enough.

[–] [email protected] 2 points 2 weeks ago

Research "body doubling". It's the only way I get important tasks at home done.

[–] [email protected] 2 points 2 weeks ago (1 children)

I read through seeming endless logs from a battle simulation and used these log to improve the accuracy of the simulation. It may seem like tedious work not fitting of a Klingon warrior, but now our brothers and sisters will be more prepared with a fair simulation as they train FOR THE GLORY OF THE EMPIRE!

[–] [email protected] 1 points 2 weeks ago

I believe they are all residential. There might be a few small businesses, but nothing huge.

[–] [email protected] 3 points 2 weeks ago* (last edited 2 weeks ago)

See my other comment reply for more context.

Amber is currently an Australian only electricity company, and the users are unusually involved compared to other energy retailers.

I think targeting wholesale pricing specifically instead of just Amber could be better. For the foreseeable future the two user groups would be identical, but a wholesale group would also encompass any emerging wholesale providers.

[–] [email protected] 2 points 2 weeks ago* (last edited 2 weeks ago)

The difference with Amber is the variable energy prices that can change every 5 minutes and vary between -100c/kWh and 2000c/kWh. Many users take advantage of these prices with custom battery automation, or want to know how Amber's default automation (Smart-Shift) will behave in certain circumstances. There are very few options for whole home automation yet, so many users are developing their own, or asking for help using early access systems that are not yet user friendly. The automation and control of solar, home batteries, car charging, and deferable loads has led to a large amount of discussion that is centered around wholesale prices.

The group could be renamed to include all users of wholesale electricity prices. The suggested name is because Amber is currently the only electricity provider in Australia, so all discussion of wholesale prices and the effects of it has been in Amber groups. Because these groups are all non-searchable, the same questions have been asked many times by many people. A forum space like Lemmy would provide more resources to those just wanting a quick answer to a common question.

I'd be happy to provide example of why an Amber (or wholesale) group is necessary, but all of the communities are in "walled-gardens" and I can't link to them.

[–] [email protected] 6 points 2 months ago* (last edited 2 months ago)

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

[–] [email protected] 35 points 3 months ago
  1. Put on gorilla suit
  2. Teleport to the ISS for the second time
[–] [email protected] 10 points 3 months ago* (last edited 3 months ago)

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.

[–] [email protected] 22 points 1 year ago

They were possibly confusing nitrogen with carbon dioxide. CO2 will definitely lead to distress in high concentrations, and has been used in some slaughterhouses.

[–] [email protected] 1 points 1 year ago

What's the charging efficiency?

[–] [email protected] 7 points 1 year ago

Most electric cars only have 1 gear and it's always engaged. If you put the car in reverse, it uses the same gear, but the motor spins the other way.

Even in neutral the motor still spins when the wheels are turned, it just doesn't output any power to the wheels.

view more: ‹ prev next ›