bappity

joined 1 year ago
[–] bappity@lemmy.world 7 points 1 week ago

and having a total of 1 braincell

[–] bappity@lemmy.world 26 points 2 weeks ago (5 children)

on this point...

I heard from someone in my local area that it's getting to the point where people don't even know how to use a mouse and keyboard.

this is the iPad generation....

[–] bappity@lemmy.world 17 points 3 weeks ago* (last edited 3 weeks ago) (4 children)

do other languages have the thing where sentences change meanings depending on what word you emphasize?

"what's PJ short for?"
"what's pj SHORT for?"

whack

[–] bappity@lemmy.world 11 points 1 month ago* (last edited 1 month ago)

forced arbitration means you can't go through the normal court system if you want to sue them, instead resolving it through a private neutral third party.

and before, the waiver meant that you gave up your right to sue them in a class action lawsuit

getting rid of those is a massive W

[–] bappity@lemmy.world 12 points 1 month ago (1 children)

reasonable response tbh

[–] bappity@lemmy.world 23 points 1 month ago

better yet, the restaurant industry in America. you get mentally tortured while living on 2 cents an hour

[–] bappity@lemmy.world 133 points 1 month ago* (last edited 1 month ago)

yeah sure, happy teams start with jira but they end up as angry and sad teams

[–] bappity@lemmy.world 26 points 1 month ago (4 children)

religion being a cancer on this world example #9636472614364

[–] bappity@lemmy.world 50 points 1 month ago (6 children)

PARTIALLY SIDED?

[–] bappity@lemmy.world 1 points 1 month ago* (last edited 1 month ago)

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()),
    }
}

[–] bappity@lemmy.world 4 points 1 month ago* (last edited 1 month ago) (4 children)

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

[–] bappity@lemmy.world 14 points 1 month ago* (last edited 1 month ago) (3 children)

certificates fucking destroy everything in my work for an hour once every year because of expiry

 
 
0
Tailor Rule (lemmy.world)
submitted 8 months ago* (last edited 8 months ago) by bappity@lemmy.world to c/tenforward@lemmy.world
 

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

1
submitted 10 months ago* (last edited 10 months ago) by bappity@lemmy.world to c/eternityapp@lemdro.id
 

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"}

 

me when

 
 
 

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.

 
 

PRESS ANY KEY TO CLOSE THIS WINDOW . . .

view more: next ›