• 1 Post
  • 79 Comments
Joined 3 years ago
cake
Cake day: October 3rd, 2021

help-circle

  • If you mean front end developers, then yes, that’s me.

    First, it’s not front end’s responsibility to sanitise the input before executing the query because it’s not the front end code which operates on the database. What if we have ten front ends? Implement it ten times?

    Second, it’s the back end who’s executing the query so they are doing it anyway. Doing it in the front end code is a waste of time and electricity.

    It’s not a war zone outpost. There is no such thing as multiple layers of security. It’s absurd to think that a piece of malicious data “beat up” the security code at the first spot, just to be knocked out by the same security code further down the road. If a piece is code is effectively sanitising the input then the best place to put it is where it’s closest to the database, and it only needs to happen once.


  • I downvoted OP as if this is StackOverflow.

    What is the use case for OP for using AI?

    What does OP not like about the current setup?

    What goal is OP trying to achieve?

    What drawback and extra cost is OP willing to take?

    Without providing any of the information, asking such a question, slabbing buzz words like “federated” to the title is just wasting everyone’s time. A few days ago there was even a question asking for a “federated browser”. (¯―¯٥)

    Despite all these some pals still provided insightful answers. You guys are amazing.


  • I used to use Gboard for Cantonese input. I downloaded fcitx5 reading your comment and tried it for some time. There are some features noticeably missing compared to Gboard.

    • top numeric row
    • single-hand mode
    • simplified and traditional characters selection#

    # Found it. It’s in the settings bar at the top of the typing area. Click it open and go deep inside it.

    What Gboard and fcitx5 both don’t have for Jyutping input is glide typing. I wish fcitx5 have it because it is really what could make me switch and not look back. Gboard in general has better finger tap detection/correction because duh Google had more data to train on. But I will definitely start using fcitx5 because being open source is sufficient for me to switch.

    For languages that isn’t supported by its plugins like Japanese, I have to keep using Gboard though.



  • “Last”. Yes. In practice, I found eggs in a fridge age by weeks. I would still call them “fresh” within a week. After that, they don’t taste as well. Another week after that, visual changes happen on the shell. I can see as if the fluid inside is “breaching” the membrane thus dark spots on the outside. This is the last stage I would still be willing to consume them. After that I would throw them away.











  • Does anything show up in dmesg when you plug in the adaptor?

    I read that you don’t have another adaptor or computer for debugging, but it’s equally sad that it’s most probably the best result you can get, knowing or not knowing what the root cause is. You literally need to test another adaptor, try another SD card, try a different USB port. Basically throw everything at the wall and see what sticks. It would work without technical knowledge eventually.



  • Rebasing is for advanced git users who knows what he’s doing. If one does not know how to use it or not feeling comfortable in general, he can happily take his own code and try to merge it into the latest version instead. No one is judging.

    For the rest of the world where projects are open-source, more often than not, not those projects inside a corporation where only the team lead is making decisions, it’s a powerful tool to settle down conflicts sort out history.

    One does not need to change the history again, if he’s not comfortable with it. Just use git as if it’s centralised VCS like SVN. No big deal. In fact, in corporations you do. There only needs to be one person who manages the repository.