Jump to content

Mortenrb

Member
  • Posts

    39
  • Joined

  • Last visited

Posts posted by Mortenrb

  1. I haven't tested this software myself, but it is decently well described on their website on how to move the arm using G-code, manually in a terminal

    http://thor.angel-lm.com/documentation/firmware/

     

    If you don't want to use raw G-code (understandably) it seems like Asgard can move all axis at the same time, you you change the articulations and hit "Go All". Ofc, the arduino has to be connected to Asgard to do this.

     

    This assumes that you already got the firmware installed

     

    Oh, and it could greatly help if you stated the youtube link to the person with the software you seem to want to use.

  2. You could make a javascript function that loads another javascript file that contains the language parametres, and then make an onload function that updates either tag ID's or a different key. (in this case, data-translate-key)

     

    Say you have lang.en.js (and lang.de.js, lang.nb.js etc) that contains something along these lines

    window.translations = {
        title: "Welcome",
        text: "This is a test"
    };

     

    A HTML body along these lines

    <body>
        <h1 data-translate-key="title">Loading...</h1>
        <p data-translate-key="text">Loading...</p>
    </body>

    and a script to load the desired text/javascript into the website, but defaults to lang.en.js

    window.addEventListener('DOMContentLoaded', function () {
                var userLocale = navigator.language || navigator.userLanguage; // e.g., "en-US"
                var simpleLocale = userLocale.split("-")[0]; // considering only "en" from "en-US"
    
                function loadScript(locale) {
                    var scriptSrc = `lang.${locale}.js`;
                    var scriptTag = document.createElement('script');
                    scriptTag.src = scriptSrc;
    
                    scriptTag.onerror = function () {
                        if (locale !== 'en') { // Avoids infinite loop in case lang.en.js also fails
                            console.error(`Failed to load script for locale: ${locale}. Falling back to English.`);
                            loadScript('en'); // Default to English
                        } else {
                            console.error(`Failed to load default English locale script.`);
                        }
                    };
    
                    scriptTag.onload = function () {
                        if (window.translations) {
                            var translatableElements = document.querySelectorAll('[data-translate-key]');
                            translatableElements.forEach(function (element) {
                                var translationKey = element.getAttribute('data-translate-key');
                                var translatedText = window.translations[translationKey];
                                if (translatedText) {
                                    element.textContent = translatedText;
                                }
                            });
                        }
                    };
    
                    document.head.appendChild(scriptTag);
                }
    
                loadScript(simpleLocale);
            });

     

    It's not perfect, but it works. You still have to know the proper locales to use, and it doesn't require the knowledge of the users location, but rather the language the user is actually using.

    You could also make the website dynamically change the language, if you had some unload or reload function.

    Attached a working example

    lang.zip

  3. If you use Android, FamilyLink is fairly decent, you can lock certain or all apps on-demand, by daily time, by pre-set times, or just all together stop the installation. You have stats over usage, you can block in-app-purchases, you can control content-access on Google services. If you for any reason should want or need, you can also access their GPS, lock devices remotely, and change some device settings.

     

    It's not perfect, but it is enough for most people.

    The only thing I miss from the app, is being able to share access to their mother without adding her to the family-group.

  4. Yes there is, most won't have pre-trained voices thought.

    I saw a youtube video of someone using tortoise tts with "AI Voice Cloning" to simplify it, if I haven't misunderstood, I haven't really checked.
    https://github.com/neonbjb/tortoise-tts
    https://git.ecker.tech/mrq/ai-voice-cloning

     

    Other than that, you can check out huggingface, if you are comfortable in doing your own little research to find one that fits you

    https://huggingface.co/models?pipeline_tag=text-to-speech&sort=trending

  5. While you technically can do anything with most of the languages, they all have their strengths and weaknesses.

    What do you want to make? What fields interests you? Where do you see yourself working in the future?

    Any C-style languages is good on the CV.

     

    Kotlin, Java, Dart and C# are great if you want to make apps, thought you can make alot more with them (the two latter also makes it easy to make iPhone apps if you're already making Android apps with them)

    Javascript with e.g. React Native is also a decent alternative to make apps.

     

    Personally, I've always felt that having a reason and/or idea to work on keeps me motivated to continue learning anything new.

  6. Oh I'm sorry, what about the many children who has divorced parents and live 50/50 (or any other arrangement) with each of them.

     

    I am already paying for "Premium" so that all of us are able to watch at the same time, why should I pay even more?

    You know what? The instance I get any of my devices blocked that doesn't just require me to login again as I usually would, I am done with Netflix.

    Personally I barely use it anyway, so there's basically no loss for me, and we still have the numerous other streaming services at our hand.

  7. Might be slightly overhyped, but it is still a fairly interesting device.

    The price is actually very good for a device like this, and I can't actually find any comparable devices at the same-ish price point in Norway and usually they just 10x the price going from USD to NOK when they start selling it here. (looking at the $649 pricepoint)

    I have two kids that eventually will want to have their first PC and this could possibly be ideal.

    They travel a lot as me and their mother isn't together anymore, so we could buy a steam deck, two docks, two KB+M+monitors for each of our kids and they'd have a fully fledged PC for travel as well as at home.

    Some might prefer a laptop, but to be fair, a laptop isn't great when you're sitting in a car for a couple of hours, at least not on the lap of a kid.

     

    I haven't decided whether or not to actually get a Steam Deck (when it launches in my country), but it's interesting enough that I will consider it

  8. There's a couple of flaws in your plan.

    The idea is good, but your ISP might have terms that disallow such activity on a private plan, and on a business plan you might get other limitations, such as bandwidth limitation and a higher monthly cost. (plus, probably insane fees if you use more than your allocated bandwidth)

    A shared host often also has protections, such as DDOS protection, backups in the case of faulty hardware, uptime guarantee.

    As others has stated, you also have the cost of electricity, hardware maintenance, software maintenance.

     

    In the long run, a shared host or even a low-tier VPS from DigitalOcean or Linode might fit your needs perfectly. (easy to setup multiple websites with let's encrypt on a single VPS, and some shared webhosting solutions allows multiple domains on a single account)

    Also, multiple IP's to one domain is a okay technique for redundancy, but it doesn't actually check whether or not the IP is offline, and thus clients might connect through the service that is offline. (check Round-robin DNS)

     

    Just read your last reply: Zoho has a solution for a custom domain, for free.

  9. RPI with a GSM modem attached to it, many of the "USB dongle"-type GSM modems supports AT commands, and those are fairly easy to execute through any script language you desire.

    Then just use a contactor or relay hooked to one of the phases that feeds the UPS/server.

    If you don't use an UPS, just use a battery-backup for the raspberry pi.

     

    Oh, and as other people state here, some UPSes has some sort of software you may use that detects power loss.

  10. 17 hours ago, SupremeGOAT said:

    so hypothetically speaking i could get javascript code for a contact us form , save that file online and run it with this code sourcing it form the file url?

    Yes and no.

    Browser-based javascript cannot send emails.

    You still need a backend or a service that the js can link to, in order to  send emails.

  11. In essence, it's a matter of running the SELECT mysql command towards the database, but it all depends on how advanced the search is supposed to be.

     

    As for the code you've provided, it's not actually very secure, and it would be subject to a lot of potential explots, e.g. XSS and SQL injection to name the most serious flaws.

  12. I personally like IntelliJ alot better than Eclipse for all Java-related development, but if you want to use it for multiple languages, Eclipse is a cost and disk-space saving alternative, comparet to a new IDE for each language.

  13. Be aware that if you don't own the rights to the game you decompiled, you might break the law if you decide to publish the game!
     

    On that note, while Actionscript is far away from C#/Js in many aspects, the logic still holds similarities.

    Doing it by hand might be a large task, but it should be doable with some knowlegde in Unity, and if you hurry up, you might be able to use Unity Learn Professional while it is available, free of charge! (their free tier is great too!)

  14. Okay, so it seems like it's one of those bigger starter sets, which is great, this means you're basically not limited, unless you need e.g. multiple wheels and such.

     

    However, you could start with something simple, like using a temperature module with the LCD to make a digital room temperature reader. You could further expand that to include buttons, so you could switch between e.g. light (photo resistor) and temperature... this should give you a good understanding for the basics of coding with arduino, and scaling sensors.

     

    Using the 74HC595, which is a shift-out module, you can basically control 8 digital outputs from one serial output, so you can start simple with maybe a couple of traffic lights and controll it accordingly?

     

    If you want to got slightly further, you can even use the LCD or 8*8 Dot matrix with buttons or the joystick module and make a simple game, maybe flappy-bird, space invader, tetris or well... anything within the arduino restraints?

     

    Oh, and Instructables is a quite interesting website as well, for all hobby designs, not only arduino

    https://www.instructables.com/

  15. There's lots you could do! It all depends on the kit you got, and what you envision to do with it, the sky is the limit!

     

    Arduino is great for prototyping nearly everything, and something as complex as a robot cleaner/vacuum could be simple-ish to do with an arduino.

     

    May I suggest for you to head over to Arduino Project Hub, it's a great location for inspiration! :)
    https://create.arduino.cc/projecthub

×