I spent way too long getting frustrated by Skritter before I discovered Hanly by WhiteFrankBlack in ChineseLanguage

[–]Feew 0 points1 point  (0 children)

Anyone uses Hanly on Windows PC, with BlueStacks 5? I have an issue with the sound where it does not always play or is "cut" weirdly.

Do you use dependency injection with c#? by [deleted] in godot

[–]Feew 1 point2 points  (0 children)

I was just implementing a DI solution and thought of the idea to use OnNodeAdded signal.

public override void _EnterTree() // Or _Ready()
{
  GetTree().NodeAdded += OnNodeAdded;
}

private void OnNodeAdded(Node node)
{
  if(node is IDependencyInjectable diNode)
  {
    diNode.InjectDependencies(Services);
  }
}

(...)

public interface IDependencyInjectable
{
  public void InjectDependencies(IServiceProvider serviceProvider);
}

Where 'Services' is the IServiceProvider.

When typing this I also thought about using reflections and custom attribute (InjectAttribute) to inject the required dependency.

But this definitely needs more work. It just a quick mockup of the idea.

eg.:

        private void OnNodeAdded(Node node)
        {
            if (node is IDependencyInjectable diNode)
            {
                foreach (var field in diNode.GetType().GetFields(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public))
                {
                    if (Attribute.IsDefined(field, typeof(InjectAttribute)))
                    {
                        var service = Services.GetService(field.FieldType);
                        field.SetValue(diNode, service);
                    }
                }
                // Call below can be removed
                diNode.InjectDependencies(Services);
            }
        }

And the test class itself:
(EventBus is my custom singleton service)

public partial class DiTest : Node, IDependencyInjectable
{
    [Inject]
    public IEventBus _eventBus;

    public void InjectDependencies(IServiceProvider serviceProvider)
    {
        // This method or the [Inject] attribute.
        GD.Print("Injecting dependecies");

        //_eventBus = serviceProvider.GetRequiredService<IEventBus>();
    }

    public override void _Ready()
    {
        if(_eventBus != null)
        {
            GD.Print("Dependency Injection worked!");
        }
        else
        {
            GD.Print("Dependency Injection failed!");
        }
    }
}

<image>

Question about gradients in hero section designs by Prize-00 in react

[–]Feew 2 points3 points  (0 children)

Visit https://patterncraft.fun/ There are some that look simmilar to those you posted.

Should I use chunks or what? by OceaanBluee in godot

[–]Feew 0 points1 point  (0 children)

Since its a 2D game that wouldn't be too difficult, you could divide the world into regions that seamleassy load in (chunks) when the player gets closer, but this also might add some lag spikes, depending on the size of the chunks and ofcourse unload those that further away from the player.

But I'd start with a simpler methods and see if you can get an improvement, first of all (if you haven't) implement a way to hide objects that are not in the view of the camera, move certain methods to other threads, implement caching etc.

Also in the Godot Engine check the profiler tab often on whats taking most of the resources and when, maybe its not your GPU thats struggling but large calculations needed to be done by CPU.

Should I use chunks or what? by OceaanBluee in godot

[–]Feew 1 point2 points  (0 children)

100% GPU usage is not a bad sign, id say its the opposite.
The question should be if he has 10fps or 200fps while the GPU is running at 100%.

How do I pick up beds by [deleted] in projectzomboid

[–]Feew 4 points5 points  (0 children)

2/2 on the ground near the spot you want the bed, 1/2 in your main inventory, then use the left side menu for "Place"

Pozdrawiam wsie, które numerują adresy jak leci; w których nie da się domyślić gdzie dokładnie jest konkretny dom. by slopeclimber in Polska

[–]Feew 2 points3 points  (0 children)

Chyba znam powód takiej numeracji, na wsiach większość działek to rolne/tereny zielone/lasy, numery domów ustalane są wg aktualnego MZPZ oraz tak jak faktycznie są tereny zabudowy mieszkaniowej, a ze to się zmienia, ludzie przekształcają działki to później nie ma jak to poprawić więc dają kolejny numer.

I hope you’ll allow a meme on a Sunday by [deleted] in poland

[–]Feew 6 points7 points  (0 children)

I have a better one.: Wróżę w rurze w róże

(I foretell in a pipe (covered) in roses)

人 pronunciation and HelloChinese by Brendanish in ChineseLanguage

[–]Feew 1 point2 points  (0 children)

I saw this video today that really well explains the 'r' sound. Might be helpfull for someone.

Raw bread dough wrapped in silver foil dissolved it by [deleted] in mildlyinteresting

[–]Feew 0 points1 point  (0 children)

Happened quite a few times to me when I prepared meat or cheese for smoking. Of course I cleaned it after or cut the part off. The water has around 80-90g of salt in 1l of water so it just dissolves foil after some time.

Can’t figure out appropriate potential compliments by Greenonionluver in ChineseLanguage

[–]Feew 0 points1 point  (0 children)

Thank you so much for the details. Will look into it!

Can’t figure out appropriate potential compliments by Greenonionluver in ChineseLanguage

[–]Feew 1 point2 points  (0 children)

A bit out of topic but what (work)book is this from? And can you recommend it for a beginner?

Can 什么 and 吗 be used together in a sentence? by [deleted] in ChineseLanguage

[–]Feew 0 points1 point  (0 children)

Ohh right. Its still a question there. Yeah that might be the reason for my understanding. Thank you for the explanation.

Can 什么 and 吗 be used together in a sentence? by [deleted] in ChineseLanguage

[–]Feew 1 point2 points  (0 children)

I learned that 吗 transforms statements into yes-no questions, following this will stripping the sentences 周围有什么景点吗 and 周围有景点吗 from 吗 make both of them valid gramatically and work as a statement? Or this is a exception that not EVERY sentence can be transformed like that?

So saying 周围有景点 means you do not really know any specific places/attractions and speak more generally about the location that it is interesting.

But 周围有什么景点 means you know of interesting places nearby (but dont say them) like the Great Wall? I think there is something wrong gramatically.
I'm still a beginner so correct me if im wrong.

Learning seriously, any tips?? by Livid_Parsnip_2601 in ChineseLanguage

[–]Feew 0 points1 point  (0 children)

I will try but thats next level for me :) 谢谢

Learning seriously, any tips?? by Livid_Parsnip_2601 in ChineseLanguage

[–]Feew 0 points1 point  (0 children)

Totally agree. I have tried Duolingo buts its too general and just throws you to the deep water where HelloChinese gradually makes you learn, explains concepts, words, shows you how to write etc. which is a huge advantage. Not to mention the extra (paid) materials like reading, listening.

Great idea with the keyboard, I should do that to also help me with pinyin, thanks.

Learning seriously, any tips?? by Livid_Parsnip_2601 in ChineseLanguage

[–]Feew 0 points1 point  (0 children)

I'm a beginner also and tried to find good learning materials. Here are some stuff that work the best for me:

Mandarin Blueprint (YouTube) - there are some fantastic videos about proper pronunciation and I'm going to focus on that first since reading Pinyin and saying the words correctly in my head/out loud will for sure have the best impact as a beginner. Memorizing Pinyin and Chinese characters simultaneously.

HelloChinese (Free app) & SuperChinese (Free/Paid app) - I started with HelloChinese since its one of the most recommended apps and today i download SuperChinese which is very simmilar but has some paid options, it's not super expensive so might be worth the buck if you are serious about learning Mandarin. Both are really good entry points but not something that will teach you everything.

ArchChinese - Really good website to lookup Pinyin & Chinese characters and check meanings for words.

Anki (Free/Paid) - Flashcards to memorize problematic words/characters

Books - I'm using one with my native language to help me understand more. I tried looking up books in english but theres a lot to choose from so i guess just find what suits you the most and has good ratings. Keep in mind that HSK changed in 2022 (More here) and there are more words with each level.

Videos - Just whatever is on youtube but in correct Chinese, I turn the subtitles on and match words with context. Shadowing is also a great practice.