Skip Navigation
Jump
Yoda might be running on multi-threading
  • I switched to using tiberius

    bit different but not too hard don't have my code on hand atm but this is how I started with it

        let mut config = Config::new();
        config.host("your_server_name");
        config.database("your_database_name");
        config.authentication(tiberius::AuthMethod::sql_server("your_username", "your_password"));
        config.trust_cert();
    
        let tcp = TcpStream::connect(config.get_addr()).await?;
        tcp.set_nodelay(true)?;
        
        let mut client = Client::connect(config, tcp.compat_write()).await?;
    

    then I did something along the lines of

    fn main() {
            let stream = client.query(&query, &[]).await?;
            let rows = stream.into_first_result().await?;
    
            let db_data: Vec<MyObject> = rows.into_iter().map(mapping_function_i_made_for_myobject).collect();
    }
    
    fn mapping_function_i_made_for_myobject(row: Row) -> MyObject {
        MyObject {
            my_date_field: row.get::<NaiveDateTime, _>("my_date_field").map(|dt| Local.from_local_datetime(&dt).unwrap()),
        }
    }
    
    
    1
  • Jump
    Yoda might be running on multi-threading
  • just started out rust and made a massive thing with sqlx only to find out the latest versions don't have mssql support anymore and the last version that did doesn't support decoding DateTime<Utc> 😭😭😭

    had to rewrite the whole thing again with Tiberius, painful yet educational

    4
  • Jump
    Oopsie, Visual Studio License expired, so the build server stopped working
  • certificates fucking destroy everything in my work for an hour once every year because of expiry

    15
  • Jump
    Oopsie, Visual Studio License expired, so the build server stopped working
  • I don't get the appeal of azure because of things like this.

    annoying how much they try to push it

    38
  • Jump
    I guess there's always... diplomacy?
  • I'm putting my latinum on Janeway's abuse of temporal mechanics. Pretty sure our model of time, or at least the documented displacements, follow pretty closely to the many-worlds interpretation. They could've taken as much as they wanted without affecting this world's past.

    There's no way in hell Voyager had a sustainable routine to last them that long and have them return so... clean...

    2
  • Jump
    I guess there's always... diplomacy?
  • Janeway has an unlimited supply of torpedos anyway, just beam them onto the ships

    22
  • Jump
    Tim Walz says he's 'sick and tired' of prayers after Georgia school shooting
  • it's almost like they're pulling it out their asses

    6
  • Jump
    Tim Walz says he's 'sick and tired' of prayers after Georgia school shooting
  • ‘No Way To Prevent This,’ Says Only Nation Where This Regularly Happens

    103
  • Jump
    Hey, Chakotay. You got any books by JO MAMA?
  • his version would be 5 hours longer

    4
  • Jump
    Hey, Chakotay. You got any books by JO MAMA?
  • For Janeway, the temporal prime directive is but a leaf on a concrete road. It is a whisper in a hurricane, drowned out by forces far beyond its control. A candle flickering in a storm, its light dimmed by the chaos around it. It stands as a sandcastle at high tide, soon to be swept away. Like a thread in the vast tapestry of fate, it holds little sway over the grander design. It is but a feather in the wind, to the whims of the Janeway.

    6
  • Jump
    What part of your life could be improved with software?
  • oh definitely

    though ironically my course is computer science, you'd think they'd be good at these things 😭

    2
  • Jump
    What part of your life could be improved with software?
  • university

    I missed opening week and was assigned to the wrong year of courses for 3 fucking months because they fucked up their systems AND one character in my password somehow completely fucking broke their system which makes me think they store them in plaintext.

    paying 9 grand a year for a shit show atm

    3
  • Jump
    OpenAI Pleads That It Can’t Make Money Without Using Copyrighted Materials for Free
  • "waaaaah please give us exemption so we can profit off of stolen works waaaaaaaahhhhhh"

    54
  • Jump
    Pop Up Voyager: Scientific Method
  • b-but I'm only 23 years old...

    aging speedrun gif

    5
  • Jump
    Pop Up Voyager: Scientific Method
  • frfr ong no cap??

    6
  • Jump
    Pop Up Voyager: Scientific Method
  • if this is not cap it's insane but genius

    2
  • Jump
    Chief O'Brien at Work #12 - Pizza Adventures!
  • O'BRIEN THIS IS THE THIRD TIME THIS WEEK

    THATS MY CHAIR GIVE IT BACK

    9
  • Jump
    Chief O'Brien at Work #12 - Pizza Adventures!
  • emh doctor mildy annoyed

    I'm a transporter chief not a holographic doctor

    6
  • yay ~my brain is slowly rotting as the unstoppable marching of time is slowly guiding us all towards an inevitable death~

    15

    cross post from https://lemmy.world/post/12105270

    can't find a way to properly cross post on Lemmy, hope it's implemented soon looks like I did it anyway oh

    0

    I liked the colour scheme for it and the tap to collapse comments immediately so made a theme for it! some pics below and the JSON for it if you wanna import it yourself. (it's in a spoiler below)

    !profile sidebar

    !homepage posts

    !comments view

    It copies the colour scheme of jerboa and also uses tap to collapse comments.

    Theme share text below (click here)

    {"archivedTint":"#FFB4009F","authorFlairTextColor":"#FFEE02C4","awardedCommentBackgroundColor":"#FF000000","awardsBackgroundColor":"#FFEEAB02","awardsTextColor":"#FFFFFFFF","backgroundColor":"#FF000000","bottomAppBarBackgroundColor":"#FF000000","bottomAppBarIconColor":"#FFE5A477","buttonTextColor":"#FFE5A477","cardViewBackgroundColor":"#FF000000","chipTextColor":"#FFFFFFFF","circularProgressBarBackground":"#FF000000","colorAccent":"#FFFFDBC9","colorPrimary":"#FF000000","colorPrimaryDark":"#FF000000","colorPrimaryLightTheme":"#FFFFDBC9","commentBackgroundColor":"#FF000000","commentColor":"#FFFFFFFF","commentIconAndInfoColor":"#B3FFFFFF","commentVerticalBarColor1":"#FF0336FF","commentVerticalBarColor2":"#FFC300B3","commentVerticalBarColor3":"#FF00B8DA","commentVerticalBarColor4":"#FFEDCA00","commentVerticalBarColor5":"#FFEE0219","commentVerticalBarColor6":"#FF00B925","commentVerticalBarColor7":"#FFEE4602","crosspostIconTint":"#FFFF1868","currentUser":"#FF00D5EA","dividerColor":"#FF69666C","downvoted":"#FF007DDE","fabIconColor":"#FF261811","flairBackgroundColor":"#FF00AA8C","flairTextColor":"#FFFFFFFF","fullyCollapsedCommentBackgroundColor":"#FF000000","isAmoledTheme":true,"isChangeStatusBarIconColorAfterToolbarCollapsedInImmersiveInterface":false,"isDarkTheme":false,"isLightNavBar":false,"isLightStatusBar":false,"isLightTheme":false,"linkColor":"#FFE5A477","lockedIconTint":"#FFEE7302","mediaIndicatorBackgroundColor":"#FFFFFFFF","mediaIndicatorIconColor":"#FF000000","moderator":"#FF00BA81","name":"Jerboa Amoled ","navBarColor":"#FF000000","noPreviewPostTypeBackgroundColor":"#FF424242","noPreviewPostTypeIconTint":"#FF808080","nsfwBackgroundColor":"#FFFF1868","nsfwTextColor":"#FFFFFFFF","postContentColor":"#B3FFFFFF","postIconAndInfoColor":"#B3FFFFFF","postTitleColor":"#FFFFFFFF","postTypeBackgroundColor":"#FFE5A477","postTypeTextColor":"#FF000000","primaryIconColor":"#FFE5A477","primaryTextColor":"#FFE5A477","readPostCardViewBackgroundColor":"#FF000000","readPostContentColor":"#FF979797","readPostTitleColor":"#FF979797","receivedMessageBackgroundColor":"#FF4185F4","receivedMessageTextColor":"#FFFFFFFF","secondaryTextColor":"#B3FFFFFF","sendMessageIconColor":"#FF4185F4","sentMessageBackgroundColor":"#FF31BF7D","sentMessageTextColor":"#FFFFFFFF","singleCommentThreadBackgroundColor":"#FF123E77","spoilerBackgroundColor":"#FFEE02EB","spoilerTextColor":"#FFFFFFFF","stickiedPostIconTint":"#FF0336FF","submitter":"#FFEE8A02","subreddit":"#FFE5A477","subscribed":"#FFFF1868","tabLayoutWithCollapsedCollapsingToolbarTabBackground":"#FF000000","tabLayoutWithCollapsedCollapsingToolbarTabIndicator":"#FFE5A477","tabLayoutWithCollapsedCollapsingToolbarTextColor":"#FFE5A477","tabLayoutWithExpandedCollapsingToolbarTabBackground":"#FF000000","tabLayoutWithExpandedCollapsingToolbarTabIndicator":"#FFE5A477","tabLayoutWithExpandedCollapsingToolbarTextColor":"#FFE5A477","toolbarPrimaryTextAndIconColor":"#FFE5A477","toolbarSecondaryTextColor":"#FFE5A477","unreadMessageBackgroundColor":"#FF123E77","unsubscribed":"#FF0336FF","upvoteRatioIconTint":"#FF0256EE","upvoted":"#FFE5A477","username":"#FF606650","voteAndReplyUnavailableButtonColor":"#FF3C3C3C"}

    8

    SEASON 2 SPOILERS

    Just curious if anyone has different thoughts on this. My current thoughts are:

    SACRED TIMELINE (and its branches) - An infinite number of universes. It has at least one universe for each possible moment in time. You can take anything from those universes (or "branches") without affecting the others because each one is physically its own entity.

    Traveling through them is not really traveling through time; it's more like traveling a long distance to other universes that are just following similar paths of development.

    TVA TIMELINE - A single universe (or some kind of expanse? Probably not a "universe"). It's one single entity. New branches (other universes/expanses, separate entities) will not form from it for some reason, so the only kind of time travel possible would be dynamic (actual time travel, not just hopping across universes).

    If you take something from its past, the entire future will change. Some examples from season 2: when Loki crashes into the chrono bay window, breaks the monitor, and cracks the floor. When he timeslips back to his point in time, the crack was apparently always there. Another example: when Loki talks to O.B. in the past, and O.B. in the future recalls that it happened.

    I think that the expanse that the TVA is in encompasses the sacred timeline, so dynamically traveling to the past of the TVA is also dynamically traveling to the actual past of the sacred timeline.

    0

    Personally I'm not a big fan. It's more advantageous to camp for most of a game and you get barely any points for elims :/

    Admittedly though, matchmaking has been a lot better.

    They almost had something going for them this season but dropped the ball

    0

    Google apparently only shows you reviews from people with the same type of device as you AND in your region. seems stupid to me.

    I mean it'd be kind of cool but only if it was TOGGLEABLE

    12

    thought this looked cool.

    mod link: https://modrinth.com/mod/distanthorizons

    I'm using a dev build for 1.20.1 that they have in their discord server, they don't have an official release for that version yet.

    31

    my original idea

    0