• 0 Posts
  • 49 Comments
Joined 2 years ago
cake
Cake day: July 4th, 2023

help-circle
  • South Australia has run into this problem and implemented a solution.

    When the solar exports in a section of the grid exceeds the local transformer’s limits, a signal is sent to all of the inverters in that section to limit the export rate. The same signal can be send to all solar inverters in South Australia if the entire grid has too much renewable energy.

    This signal only limits the export to the grid, so the homeowner can always use their own solar power first. The permitted export is guaranteed to be between 1.5kW and 10kW per phase.

    The was a minor oversight during implementation. Homeowners on wholesale pricing would often curtail or switch off their solar inverters if the prices went negative. If the grid operator sent a signal to reduce the export rate, it would override the homeowner’s command and force a 1.5kW export during negative pricing (costing the homeowner to export). No-one considered that anyone might not want to export solar all of the time.



  • 18107@aussie.zonetoAsklemmy@lemmy.mlWhat’s your ultimate unpopular opinion?
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    2
    ·
    18 days ago

    Abortion should be mandatory.

    People keep arguing over whether abortion should be legal or not, but my opinion is that it should be forced on everyone whether they want it or not. Late term abortions up to 100 years after birth should also be considered for inclusion in this rule.

    One of my favourite activities is finding controversial opinions, then taking an opinion so extreme that it makes everyone else look like a centrist.





  • 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




  • If you are worried, a qualified medical practitioner is always more reliable than a web forum.

    Insufficient or poor quality sleep can cause problems with attention and memory, and can exacerbate existing conditions.

    Poor sleep could be caused by a medical condition (sleep apnoea), or psychological (stress). Often stress can be hard to identify, particularly if it’s long term stress.

    Again, this might not be your problem, and finding the right doctor who actually listens to you is important. Don’t be afraid to try more than 1 doctor if the first makes you uncomfortable.





  • It depends on your country, your budget, your definition of good, and your driving needs.

    A second hand Nissan Leaf or Chevy Bolt are more affordable, but don’t suit everyone’s needs.
    An MG4 is a great budget new car, but can be out of some people’s price range.
    A Polestar 2 is a comfortable option from a manufacturer who cares about the environment.
    A Porsche Taycan is a performance car for a fraction of the price of a petrol supercar.