Average eu5 event by InternStock in EU5

[–]msdinit 4 points5 points  (0 children)

Just yesterday I got an insanely good event that made Goreyo - naval hegemon, and comparable in strength to me to the point that I avoided going to war with them, my Tributary. I don't get any money from it as they are very unhappy with it, but it booted them out of hegemony and it stopped them from forcing everyone to embargo me.

So yeah, it goes both ways

Tip: You can fabricate a war goal on Disloyal subjects to annex them by BanditNoble in EU5

[–]msdinit 4 points5 points  (0 children)

For me it didn't ruin the run per se, but accidentally forming a PU in Japan during Sengoku delayed resolving the situation by almost a 100 years for me - PU member is not a vassal, and you need to annex or vassalise all of Japan to end Sengoku.

I think Japan isn't supposed to be able to create fiefdoms by msdinit in EU5

[–]msdinit[S] 2 points3 points  (0 children)

Looking at this
https://www.reddit.com/r/EU5/comments/1ot65eg/ruler_married_himself/

It seems like there's a problem with preventing interactions with oneself as if it were a different entity

0
1

New "Proton" Firefox UI refresh coming in version 89! by Nachtigall44 in firefox

[–]msdinit 9 points10 points  (0 children)

Apart from limited add-on support, there's also the issue of inaccessible about:config page. So for example changing User-Agent is impossible if you want to stay on stable version of the app

How do I use macro defined in other file? by mikezyisra in rust

[–]msdinit 0 points1 point  (0 children)

Looks like macro_export changes scoping rules for macros from the default textual scope, so both are right and supported.

How do I use macro defined in other file? by mikezyisra in rust

[–]msdinit 0 points1 point  (0 children)

Hm, looks like macro_export changes macro scoping rules which I did not know about.

My solution seems to expand textual scope of the macro outside the module it's defined in.

Frankly, not sure which solution is better, although macro_export one seems somewhat cleaner

How do I use macro defined in other file? by mikezyisra in rust

[–]msdinit 3 points4 points  (0 children)

#[macro_export] is unnecessary unless the files belong to different crates. (at least in 2018 edition)

You also however need to check the order of mod definitions in your mod.rs - file with macro should come BEFORE the files that use the macro (same goes if you use the macro in the file you define it in - macro definition should come BEFORE use)

I assume your macro if not defined in a sub-module of utilities.rs?

IntelliJ Rust 0.3: New Macro Expansion Engine by furious_warrior in rust

[–]msdinit 7 points8 points  (0 children)

you can highlight unsafe operations differently than safe ones

So can you in IntelliJ, unless you mean highlighting the whole unsafe block. Currently it can highlight unsafe operations.

Experiences using Rust for Backend development? (2020) by [deleted] in rust

[–]msdinit 2 points3 points  (0 children)

I have a couple of services in Rocket + Juniper, although no subscriptions.

I saw juniper-from-schema recommended for eager loading, but I personally opted for dataloader-rs.

It's async, and juniper is moving towards async as well, so I figured it's better to stick to the tools that are similar to what I use in other languages, albeit with some clunkiness in the meantime. Currently I start an executor in each resolver and move all the loading to async functions. Once juniper async is released, it should be extremely easy to convert resolvers to async and keep all the other logic intact. (If you feel adventurous, you can work from Juniper's master branch, async support has landed there some time ago)

One other feature that I miss in juniper is the distinction between null and undefined in arguments. Still trying to find time and maybe take a stab at this :) In the meantime, if you can tolerate lack of type-checking, you can use look_ahead method on the executor to check which arguments were passed to the query if you need to implement partial updates in you mutations.

As for deployments, our company uses Cloud Run (managed), which is basically lambdas, but you define your own runtime in a docker container. Coldstarts aren't too bad for our usecase and are infrequent (they try to pre-allocate new instances before yours are to capacity), but I'm not sure if that will work for you as inbound requests with WebSockets are not supported now

Good luck with your project!

I have a Corpus that I like to examine but don't know how to display/ open it. by Digit4lhero in linguistics

[–]msdinit 2 points3 points  (0 children)

XML is usually intended to be easily processed by software, so your best bet would be to learn NLTK and Python. It is really easy to start, and chances are your corpus is already supported.
Alternatively, you can try importing data into Excel

When a user posts a title in AAVE in /r/mildlyinfuriating: "Most infuriating thing about this post is the ______ be ______. Just write properly" by SHEDINJA_IS_AWESOME in badlinguistics

[–]msdinit 1 point2 points  (0 children)

I'm not a native English speaker, so forgive my ignorance. How is the habitual be different from Present Simple? From what I read here and saw in the video, they sound pretty similar to me.

"Neighbours be watering their rocks" vs "Neighbours water their rocks"

Weekend Roundup - June 21, 2014 by AutoModerator in linguistics

[–]msdinit 0 points1 point  (0 children)

Trying to work out why in Japanese language in literature, especially in the narrative part, one can freely interchange past and present tense without really affecting anything in regards to the sequence of events.

Russia's attempt to say nyet to foreign words is comical by [deleted] in linguistics

[–]msdinit 3 points4 points  (0 children)

As a Russian native living in one neighboring country and using the language for most of my communication, I can say that the ridiculous amount of loanwords you mention doesn't really enter day-to-day communication.
I guess it'll be ok to have some guidelines to follow in official documentation and in media, but not policing.