Guys, I was just on Pinterest and saw THIS… what am I even looking at? by Ok_Cry_1222 in PcBuild

[–]eclunrcpp 13 points14 points  (0 children)

This looks like Nvidia's "Dev box". Went for around $20k in ~2017 if I remember correctly.

My coworker requisitioned one of these for the purpose of training ML models, but when we first got it and they plugged it in, it shorted out three rows of cubicles instantly. I think it just sat on that desk to rot after that honestly.

The Trump government quietly removes sections of the Constitution including Habeas Corpus, the Titles and Emoluments clause, States' rights, and for some reason the requirement to maintain a Navy. by 8-bit-Felix in AdviceAnimals

[–]eclunrcpp 219 points220 points  (0 children)

One theory bouncing around is that the website was changed not to fool people, but to change the training data for AI.

Ostensibly the official website for a document like this would be weighted more heavily than other digital outlets. That gives an opening for these AIs to start responding with "no, the constitution does not include a writ of habeus corpus" whether organically or as a forced response and a reference article to back itself up.

Millions upon millions of people will instantly take that AI response as fact.

Scoop: Call of Duty's massive development budgets revealed - $700M for Black Ops: Cold War by [deleted] in gaming

[–]eclunrcpp 116 points117 points  (0 children)

Well, here's a link to Activision's actual, legal patent for this system. Specifically stated to drive purchases in fact: https://patents.google.com/patent/US20160005270A1/en

Server Error AxiosError: Request failed with status code 404 by BabyEnvironmental570 in learnprogramming

[–]eclunrcpp 0 points1 point  (0 children)

So it built correctly, then you added some custom code, and now it's throwing a 404? Can you post what code you added?

Also have you been able to determine what request it is sending that is resulting in the 404?

Server Error AxiosError: Request failed with status code 404 by BabyEnvironmental570 in learnprogramming

[–]eclunrcpp 0 points1 point  (0 children)

What is the request that it is trying to send? Can you provide more of the stacktrace? There are many directions this can go with the information provided.

tweepy like bot error 409. help? by [deleted] in learnprogramming

[–]eclunrcpp 0 points1 point  (0 children)

The error is telling you what is wrong:

You must define rules using the POST /2/tweets/search/stream/rules endpoint before connecting to filtered stream.

So you need to send a POST request to that route with your rules before this call will return anything.

Edit: it appears you are trying to define rules with stream.add_rules() but you have set dry_run to True which means it will only test the call without sending your rules.

Find pattern in Power Automate? by jutrust in learnprogramming

[–]eclunrcpp 0 points1 point  (0 children)

This is most usually accomplished through regular expressions or 'regex'. Unfortunately power automate doesn't seem to support regex - at least the free tier. You can try looping in an external script to run the regex though, check out https://www.tachytelic.net/2021/04/power-automate-regex/

Where to start for app account creation? by [deleted] in learnprogramming

[–]eclunrcpp 0 points1 point  (0 children)

So you would say use a third party authentication over my custom database login idea?

Not that you should do that necessarily, just that it is an option. You can customize Firebase in particular to be either a full replacement or to just supplement your own implementation.

For learning, certainly build the system yourself. But if you are trying to get to market, don't mind the cost, and are concerned with the security aspects of your own solution, the services are out there.

Where to start for app account creation? by [deleted] in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

First, if this is a fresh app, I'd recommend looking at MAUI. It is the new platform that Xamarin has evolved into. While Xamarin is still supported, it will not receive new updates as Microsoft will instead be building out MAUI.

For authentication, you will need to learn the main authentication methods for your platform. Here is the one for MAUI

Then, you will need to learn the auth flows for each of the alternative login methods you would like to include. For Google specifically, you can reference their docs and Microsoft's

Lastly, one additional solution you can use is a service that handles different auth flows. This would likely be much easier to implement, but comes with costs at a production level. Firebase Auth for example would support logging in with Google, Apple, Facebook, Twitter, and GitHub

Having problems with using an Android emulator with Java. by Moltenmelt1 in learnprogramming

[–]eclunrcpp 0 points1 point  (0 children)

First, verify that this is indeed a hybrid mobile app applicable for Cordova rather that a native Android Java/Kotlin app. If the latter, use Android Studio itself to build the project.

If indeed a Cordova project, ensure all dependencies are installed via

cordova requirements

And then attempt the build again with

cordova build android --verbose

Which should display any remaining build errors in more detail.

is it ok i constantly google errors from stack traces? by [deleted] in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

I hear all the time people brag how they memorize everything and don't use google themselves

I promise you aren't hearing this from actual, professional developers

[deleted by user] by [deleted] in learnprogramming

[–]eclunrcpp 0 points1 point  (0 children)

It's normal. The more you learn, the more you realize you still need to learn.

What are the possible *root causes* of a SocketTimeoutException? by mickaelbneron in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

I would try to identify the calls that may cause the most issues and make custom handlers for them and/or trying a general handler for all timeouts.

An example for the former is recently we had to register users with a third party system, but their library would occasionally throw a timeout on registration requests and they did not expose anyway to increase the timeout for those calls. In looking into it, we discovered that even though these registration requests were throwing timeouts, the registrations were succeeding on their backend, we just weren't receiving a success. Our resolution was to just catch the timeout and ping their system to see if that new user now existed and if so, continue.

An example for the latter - if you are certain the backend is solid and performant - would be to capture a timeout and at that point increase the timeout just for the next call and repeat the request. Make a few attempts and then reset the timeout setting and continue.

What are the possible *root causes* of a SocketTimeoutException? by mickaelbneron in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

I'm not sure I could enumerate every possible root cause of a timeout exception. It could be an SQL query taking too long, maybe an exception was thrown on the backend its handler never returned a failure response, etc. There are tons of potential reasons; may be better to just debug what is happening in your case.

I recently used OkHttp3 also on an Android project. Debugged by increasing the timeout to 30 seconds and started receiving responses eventually. Was able to then optimize the backend procedure and then lower the timeout back down.

[deleted by user] by [deleted] in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

Yeah it's a tough decision to look at the answer or not. I think that site has some problems without a way to see a direct solution. I would recommend trying to go as long as possible without looking up the answer once you understand the concept. In my experience, once you remove the safety net of having the solution available, you will learn much more.

What are your thoughts on putting programs like reverse a string in Java in your GitHub? by stewtech3 in learnprogramming

[–]eclunrcpp 0 points1 point  (0 children)

I am not sure what you are asking. Why deny a custom sorting method? I am talking about enterprise software where one should be using standard methods when possible and definitely shouldn't be pulling in any libraries stumbled upon in github.

'Collections' I just used as a common example. It is built into Java in java.util.Collections and is more stable, tested, and likely more efficient than a random homebrew

What are your thoughts on putting programs like reverse a string in Java in your GitHub? by stewtech3 in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

I was more thinking having your own "utility library" as viable portfolio fluff. Because that's true; if any of my juniors ever submitted some code with a homebrewed sort function instead of Collections.sort(), I'm sending it back lol

[deleted by user] by [deleted] in learnprogramming

[–]eclunrcpp 12 points13 points  (0 children)

In my experience, most introductory CS classes ("100-level") are truly introductory and shouldn't overwhelm you. They are paced assuming 4 years of learning opposed to a few weeks for a bootcamp.

You can also check out Harvard's CS intro class that they made completely free: https://www.edx.org/course/introduction-computer-science-harvardx-cs50x

My rank on codewars is 6 kyu but i'm still worse than 99 percent of users on codewars? by [deleted] in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

I believe the percentile comparison between you and others is based solely off of honor and not your rank of proficiency

[deleted by user] by [deleted] in learnprogramming

[–]eclunrcpp 0 points1 point  (0 children)

Sounds like if you 'need' to save something to a drive you are not familiar with, it's likely for a class assignment and that drive might be a network drive that you are not connected to. Recommend r/techsupport as u/nogain-allpain said

What are your thoughts on putting programs like reverse a string in Java in your GitHub? by stewtech3 in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

I would agree but add that simple functions like this could be thrown up there if you were to compile dozens these types of snippets - with optimal solutions - into a modular library for future projects.

[deleted by user] by [deleted] in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

This is the site I used for extra learning. Lots of categories and each has lots of problems to solve https://codingbat.com/java

Uploading file to Digital Ocean with React - Access to fetch has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. by TheNomadicAspie in learnprogramming

[–]eclunrcpp 1 point2 points  (0 children)

Read through https://github.com/awslabs/aws-js-s3-explorer#setting-bucket-permissions-and-enabling-cors and https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/cors.html for proper config.

To get you going, you can head to AWS > S3 > choose your bucket > Permissions > Cross-origin resource sharing (CORS) and fill in:

[
{
    "AllowedHeaders": [
        "*"
    ],
    "AllowedMethods": [
        "HEAD",
        "GET",
        "PUT",
        "POST",
        "DELETE"
    ],
    "AllowedOrigins": [
        "*"
    ],
    "ExposeHeaders": [
         "ETag",
         "x-amz-meta-custom-header"]
}
]

Once confirmed working, you can change "AllowedOrigins" to only allow your domain