bappity 5 days ago • 100%
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 5 days ago • 100%
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 6 days ago • 94%
certificates fucking destroy everything in my work for an hour once every year because of expiry
bappity 6 days ago • 94%
I don't get the appeal of azure because of things like this.
annoying how much they try to push it
bappity 1 week ago • 100%
it's almost like they're pulling it out their asses
bappity 1 week ago • 98%
‘No Way To Prevent This,’ Says Only Nation Where This Regularly Happens
bappity 2 weeks ago • 97%
oh look they care about it now it's affecting them
bappity 2 weeks ago • 100%
oh definitely
though ironically my course is computer science, you'd think they'd be good at these things 😭
bappity 2 weeks ago • 100%
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
bappity 2 weeks ago • 100%
yeah, what a shocking revelation.
bappity 2 weeks ago • 94%
"waaaaah please give us exemption so we can profit off of stolen works waaaaaaaahhhhhh"
bappity 2 weeks ago • 100%
vertical tabs reinforce this delusion in me
bappity 2 weeks ago • 100%
FINALLY.
it shouldn't have taken this long...
bappity 3 weeks ago • 100%
You can find utterly vile replies from blue checks on that site now, even on the most heavenly, innocent, morally correct tweet. It's insane.
bappity 3 weeks ago • 100%
dupe comment probably from internet issue or something just letting u know
bappity 3 weeks ago • 100%
removes telemetry
NEURON ACTIVATION
bappity 4 weeks ago • 100%
FIXING BIRMINGHAM??!?!!!?!
bappity 1 month ago • 100%
that whole movement is so funny to me, like they tried to move to a different beer after bud light did a harmless advertisement and their replacement WAS FROM THE SAME PARENT COMPANY
bappity 1 month ago • 100%
humans naturally gravitate towards phallic jokes
bappity 1 month ago • 100%
pretty much
bappity 1 month ago • 100%
and don't call me Shirley
bappity 1 month ago • 100%
special military operation ( ͡° ͜ʖ ͡°)
bappity 1 month ago • 83%
...
bappity 1 month ago • 100%
motherfucker YOU WANTED THESE DEBATES IN THE FIRST PLACE
bappity 1 month ago • 100%
from a republican?!?!?
oh my goodness. what a surprise.
bappity 1 month ago • 100%
honestly the only thing that is stopping me moving rn is Google Pay contactless for my bank cards and my bank app having ridiculous requirements with safetycheck.
bappity 1 month ago • 100%
bouta make true AGI so I can create friends to play with
bappity 1 month ago • 100%
fire af design
bappity 1 month ago • 100%
I thought they couldn't get worse D:
bappity 1 month ago • 100%
then it would seem that the governor was deathly allergic to tea and tragically passed from the allergic reaction 😭
bappity 1 month ago • 99%
it's such a shame that tomorrow the governor accidentally fell out of a hotel window and shot himself in the back 10 times 😢
bappity 1 month ago • 100%
THE WITHER STORM
bappity 1 month ago • 100%
imo not really cos he would've endorsed someone with a bit more brain capacity than him and not kept sabotaging himself
bappity 1 month ago • 66%
yes... hahaha.... YES!
bappity 1 month ago • 100%
they experienced it so we didn't have to 🙌
their sacrifice shall not be forgotten.
bappity 1 month ago • 96%
I thought he was gonna announce he'd drop out but this is so much better
bappity 1 month ago • 100%
highly recommend checking it out! it's very feature rich!
bappity 1 month ago • 100%
it enables me leaving open a billion tabs because they're so easy to switch between and organise with it 😭😭😭
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](https://lemmy.world/pictrs/image/c0ee9995-0eb3-4350-b8c8-7a36839303b6.jpeg) ![homepage posts](https://lemmy.world/pictrs/image/8826b8c0-0407-460e-8339-607c89eae341.jpeg) ![comments view](https://lemmy.world/pictrs/image/58a38a76-f3ad-447f-be3a-e7811f2b93e7.jpeg) It copies the colour scheme of jerboa and also uses tap to collapse comments. ::: spoiler 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"} :::
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.
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
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
and I keep doing it
thought this looked cool. mod link: [https://modrinth.com/mod/distanthorizons](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.
I made a post [here](https://lemmy.world/post/1423246) and am trying to post a comment to it but it's constantly loading when I press the post button, never working?? the community is on this instance (lemmy.world) and it is my own post, what's happening??
File explorer has a new design, thoughts?
or is it only possible through add-ons/forks
look at this cutie ![](https://lemmy.world/pictrs/image/b87c995e-0735-4da0-8475-e899d3e7ab46.png)
hey admins, is the server under a bit of load at the moment? I've been getting a lot of network errors, posts/comments take about 10-20 seconds to load or create. even uploading images, loading my profile and stuff get me a JSON parse error as well. I can't upload images at all right now, hit with a JSON error. so here's an Imgur album link with examples: [https://imgur.com/a/fNuf0wD](https://imgur.com/a/fNuf0wD)
hey admins, is the server under a bit of load at the moment? I've been getting a lot of network errors, posts/comments take about 10-20 seconds to load or create. even uploading images, loading my profile and stuff get me a JSON parse error as well. I also can't upload images at all right now, hit with a JSON error. so here's an Imgur album link with examples: [https://imgur.com/a/fNuf0wD](https://imgur.com/a/fNuf0wD)
saw this guy burrowing next to a race track, what's it doin? trying to get outta the heat?
PRESS ANY KEY TO CLOSE THIS WINDOW . . .
Mine is 11, Matt Smith's doctor. Loved his portrayal and the story arcs (especially the ones with River Song)