• 11 Posts
  • 379 Comments
Joined 2 years ago
cake
Cake day: October 4th, 2023

help-circle

  • I am quite sure they also don’t offer USB ports to charge the phone you run in lieu of a build in system

    I definitely read an article somewhere where it says that they provide USB power for the tablet/phone.

    kagis

    This article has it:

    https://www.roadandtrack.com/news/a64580484/slate-truck-ev-pickup-truck-suv/

    The Truck will come with a phone mount and convenient USB power to mount your phone or a tablet to the dash.

    EDIT: I think that a better criticism is that this thing is just a prototype, still almost two years away from mass production, assuming everything goes right for them. Like, they could have any number of things go wrong (the Trump tariff situation, for one…hard to have any idea where things will be). It could be that they crash into problems trying to get mass production going. It could be that they can’t hit their target price point.





  • From my other link, I don’t think that the touch screen is an optional purchase. I don’t think that they’re selling any entertainment computer to have a screen on. It says that they come standard with a smartphone mounting point or optionally with a tablet mounting point. But the car computer is bring-your-own, and not built into the car. Which…is what I’ve wanted, because computers age out a lot more quickly than cars do.

    I assume that there’ll be an OBD-II slot that one can hook up to to feed data about the car to the phone/tablet. There’s software that can make use of that. Dunno if there’s any other data typically exposed to car computers other than what that provides.


  • I don’t think that it has a cell modem, either, because it sounds like it eschews a baked-in entertainment computer:

    https://www.caranddriver.com/news/a64564869/2027-slate-truck-revealed/

    Roll-down windows come standard, as do manually adjustable rearview mirrors. An audio or infotainment system is noticeably missing, too. Instead, your cellphone or tablet serves these functions, with a dock for the former included and one for the latter available as an optional accessory. Better like the sound coming out from your phone or tablet’s speakers, too, because the Slate lacks speakers, though the brand’s accessory division will gladly hook you up with a set.

    Honestly, if you took my last year of comments complaining about privacy-infringing cars and those complaining about changes to what a truck is, this does kind of look to be addressing both. Gotta see what the actual production vehicle is like in real life, of course, but…

    https://cars.usnews.com/cars-trucks/advice/mini-truckin-returns-slate-unveils-old-school-style-affordable-electric-pickup

    When I say the truck is small, I mean it. At 174.6 inches, it’s about 2 feet shorter in overall length than the 2025 Ford Maverick and Hyundai Santa Cruz. And to use the Wayback Machine to a time when compact pickups were actually compact, it’s roughly the same size as the compact pickups of 1980: the Toyota truck, Chevy LUV and Ford Courier. Notably, no other automakers have offered trucks of this size in America since the mid 1990s.

    Yeah, like the “inexpensive, no-frills utility vehicle” that pickups originally were.






  • They can! We’ve got a nuclear power plant that evaporates water from sewage for cooling.

    https://en.wikipedia.org/wiki/Palo_Verde_Nuclear_Generating_Station

    The Palo Verde Generating Station is a nuclear power plant located near Tonopah, Arizona[5] about 45 miles (72 km) west of downtown Phoenix. Palo Verde generates the most electricity of any power plant in the United States per year, and is the largest power plant by net generation as of 2021.[6] Palo Verde has the third-highest rated capacity of any U.S power plant. It is a critical asset to the Southwest, generating approximately 32 million megawatt-hours annually.

    At its location in the Arizona desert, Palo Verde is the only nuclear generating facility in the world that is not located adjacent to a large body of above-ground water. The facility evaporates water from the treated sewage of several nearby municipalities to meet its cooling needs. Up to 26 billion US gallons (~100,000,000 m³) of treated water are evaporated each year.[12][13] This water represents about 25% of the annual overdraft of the Arizona Department of Water Resources Phoenix Active Management Area.[14] At the nuclear plant site, the wastewater is further treated and stored in an 85-acre (34 ha) reservoir and a 45-acre (18 ha) reservoir for use in the plant’s wet cooling towers.

    If you’re location-agnostic as to your datacenter, though, probably easier to just stick a datacenter by the ocean and use seawater, though. Lots of that.

    EDIT: Or make use of the waste heat instead of throwing it away. If it’s winter and you’re a town in Alaska, say, you’d probably just as soon have the heat piped your way.




  • A Perl program to convert the number of digits in the first numeric field that appears in a list of filenames.

    source
    #!/usr/bin/perl -w
    # numberit.pl
    # Converts between number formats (number of leading zeros) in numbers in title names
    # Usage: <number of digits> filelist
    
    $digits = shift (@ARGV);
    
    if ($digits > -1)
    {
        foreach $oldName (@ARGV)
        {
            $newName = $digitValue = $oldName;
    
            if ($digitValue =~ m/\//) {
              $digitValue =~ m/^(.*\/[^0-9\/]*)([0-9]+)([^\/]*)$/;
              $prefix = $1;
              $postfix = $3;
              if (!defined($prefix)) {
                $prefix = "";
              }
    
              $digitFormatted = sprintf("%0${digits}d", $2);
    
            } else {
              $digitValue =~ m/^([^0-9]*)([0-9]+)([^\/]*)$/;
              $prefix = $1;
              $postfix = $3;
              if (!defined($prefix)) {
                $prefix = "";
              }
    
              $digitFormatted = sprintf("%0${digits}d", $2);
    
    
            }
    
            if ($digitValue) {
              $newName = $prefix . $digitFormatted . $postfix;
              rename($oldName, $newName);
            }
          }
    }
    

    Looks something like:

    $ touch a1.mp3
    $ touch a2.mp3
    $ numberit.pl 3 *
    $ ls
    a001.mp3  a002.mp3
    $ numberit.pl 2 *
    $ ls
    a01.mp3  a02.mp3
    $
    

  • Assuming that the leading number and period is part of the filename:

    1. If the directory-browsing thing supports natural sorting of numbers, you can use that; this will detect numbers within the filename and sort by them. For example, I use emacs’s dired to browse directories and play movies. It can modify the flags passed to ls, and ls supports natural sorting of numbers in filenames with the -v flag. Doing this in dired means C-u s v RET, and the directory will be displayed sorted numerically.

    2. If the directory-browsing thing doesn’t support that, rename to a “0”-padded format such that a lexicographic order has the same ordering as numeric order:

       $ for f in *; do
           n="$(printf %04d ${f%%.*})"
           mv "$f" "$(echo $f|sed s/^[0-9]*/$n/)"
       done 
      

      That way,

       1. Episode_One.mp4
      

      will become

       0001. Episode_One.mp4
      

      and so forth, and so software that can only do lexicographic orderings is happy.

    If the leading number and period isn’t part of the filename, then we need to parse human-language strings.

    $ npm install words-to-numbers
    
    $ for f in *; do
        w="$(echo $f|sed -r "s/^Episode_([^.]*).mp4/\1/")"
        n=$(echo $w|node -e 'wn=require("words-to-numbers"); const l=require("readline").createInterface({input:process.stdin, output:process.stdout, terminal:false}); rl.on("line", l=> {console.log(wn.wordsToNumbers(l));})')
        nf=$(printf %04d $n)
        mv "$f" "$nf. $f"
    done
    

    That’ll rename to the format mentioned above in option 2:

    Episode_One.mp4
    

    will become

    0001. Episode_One.mp4
    

    And lexicographic sorting will work.