• 1 Post
  • 24 Comments
Joined 1 year ago
cake
Cake day: June 23rd, 2023

help-circle


  • Yea, I wasn’t saying it’s always bad in every scenario - but we used to have this kinda deployment in a professional company. It’s pretty bad if this is still how you’re doing it like this in an enterprise scenarios.

    But for a personal project, it’s alrightish. But yea, there are easier setups. For example configuring an automated deployed from Github/Gitlab. You can check out other peoples’ deployment config, since all that stuff is part of the repos, in the .github folder. So probably all you have to do is find a project that’s similar to yours, like “static file upload for an sftp” - and copypaste the script to your own repo.

    (for example: a script that publishes a website to github pages)


  • I suppose in the days of ‘Cloud Hosting’ a lot of people (hopefully) don’t just randomly upload new files (manually) on a server anymore.

    Even if you still just use normal servers that behave like this, a better practice would be to have a build server that creates builds, like whenever you check code into the Main branch, it’ll create a deploy for the server, and you deploy it from there - instead of compiling locally, opening filezilla and doing an upload.

    If you’re using ‘Cloud Hosting’ - for example AWS - If you use VMs or bare metal - you’d maybe create Elastic Beanstalk images and upload a new Application or Machine Image as a new version, and deploy that in a more managed way. Or if you’re using Docker, you just upload a new Docker image into a Docker registry and deploy those.




  • Yea, what @hydroptic@sopuli.xyz posted is actually Java

    What even is the point of creating standards if you design backdoors to them

    If you’re building in a backdoor anyways, why would the backdoor require 5 lines of weird reflection to get the type, type info, fieldinfo with the correct binding flags, and then invoking the method?

    I think it’s kinda neat compared to C#, just being able to say “Ignore private/protected/internal keywords”


  • Is it Java? It looked like Microsoft Java C# to me…

        public static void Main(string[] args)
        {
            var meme = new Meme();
            var joke = GetTheJoke(meme);
        }
        
        public static Joke GetTheJoke(Meme theMeme)
        {
            var memeType = typeof(Meme);
            var jokeField = memeType.GetField("Joke", BindingFlags.NonPublic | BindingFlags.Instance);
            return (Joke)jokeField.GetValue(theMeme);
        }
    

  • there is no good silver bullet solution

    Yea, to add, you (OP) should probably mention what you intend to do with it. You mention modeling and generating interfaces for Python and Typescript, but you can do that with loads of things. Like you want to create an API client/server, you could look at OpenAPI specs for example.

    If you’re looking at inter-process communication or embedded systems, or (named) pipe kinda communication you probably want a way more compressed messaging format like protobuf








  • I don’t think so. I just made a screenshot of one random convo he’s having about this, but there’s loads more in a similar fashion.

    And all of his other posts besides this one seem legit on the surface.

    So it would be pretty weird if he randomly has a very bad take, and then just claims “Lol this was a troll post, gotcha!”… That’s pretty much the 4chan defense when you get called out - “Haha guys, I’m actually not r-worded, I’m just trolling!”



  • What we have is machine learning, just an algorithm that takes input and gives you output. It can’t act on its own.

    Isn’t that basically what “real learning” is as well? Basically you’re born as a baby, and you take input, and eventually you can replicate it, and eventually you can “talk” for example?

    But in the training data something was off, suddenly your AI is racist and gives every black person a lesser amount.

    Same here, how is that different from “real learning”? You’re born into a racist family, in a racist village where everyone is racist. What is the end-result; you’re probably somewhat racist due to racist input - until you might unlearn that, if you’re exposed to other data that proves your racist ideas were wrong

    If a human brain is basically a big learning computer, why wouldn’t AI eventually reach singularity and emulate a brain and beyond? All the examples you mentioned of what it can’t do, is just stuff it can’t do yet


  • I like how they’ve done it, but from an “instance owner” perspective I can kinda see how it could become annoying to support 5 different FE UIs…

    I’ve tested https://phtn.app - and over there it seems when you login it sends the login request straight to https://programming.dev/api/v3/user/login - (which is good)
    While mlmym sends the login attempt to it’s own backend to proxy it - which is bad, since anyone could alter the code and log the login requests on their server and capture your auth data.

    I’ve been looking into mlmym, but it’s programmed in GO, which I’m not familiar with, so that’s not great (for me) - though I’ve seen you can compile GO into WASM - so my idea is to do that so it can be hosted stateless (like in s3 or even just github pages) without any backend. If then the auth can be fixed, it could practically be used from any location and the instances wouldn’t have to host their own version of mlmym