• 1 Post
  • 130 Comments
Joined 2 years ago
cake
Cake day: July 23rd, 2023

help-circle






  • What? The US military uses 24 for just one minute? Seems so unnecessary. Why would they do that?

    World     US military
    
    HH:MM:SS  HH:MM:SS
    23:59:59  23:59:59
    00:00:00  24:00:00
    00:00:01  24:00:01
    00:00:02  24:00:02
    ...         ...
    00:00:59  24:00:59
    00:01:00  00:01:00
    00:01:01  00:01:01
    

    Really? Do they order custom clocks for this etc? Do they have custom settings on their computers to add that extra minute?

    Edit: It says in the time chart on the site you linked that 00:00 = 12 am. What are you on about?






  • 404toRust@programming.devstruct in Rust
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 month ago

    You can implement Display for custom structs, to print them in the regular manner:

    use std::fmt;
    
    struct Point {
        x: i32,
        y: i32,
    }
    
    impl fmt::Display for Point {
        fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
            write!(f, "({}, {})", self.x, self.y)
        }
    }
    
    fn main() {
        let point = Point { x: 10, y: 20 };
        println!("{}", point); // using standard println!
    }
    

    You can also implement things like Add, Sub, AddAssign (point_a += point_b)… :)








  • 404toScience Memes@mander.xyzpump up the jamz
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    Technotronic got their name by combining the word ‘techno’, meaning a sort of dance music, and ‘tronic’ meaning ‘tronic’.

    The original 12-inch release of Pump Up The Jam came with a free horse.

    At 7.16pm on December 28th 1879, Dundee’s Tay Bridge collapsed as a train passed over it. 60 passengers lost their lives.

    Other musical acts whose names begin with ‘T’ include The Cure, The Isley Brothers, and The Velvet Underground.


  • 404toScience Memes@mander.xyzpump up the jamz
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 months ago

    Pump Up the Jam is an anagram of ‘Jump Up the Pump’.

    This song was played five times in a row at the funeral of director Stanley Kubrick.

    Techtronic’s home planet, Earth, consists of 70% water.

    If you isolate the individual drumbeats from this song and arrange them in a circle, it unlocks a cheat mode that allows you to pass through solid surfaces at will.