RonSijm

joined 1 year ago
[–] RonSijm 1 points 9 months ago (4 children)

Do you have more context? Are you actually trying to use apple_pay, or it that just an irrelevant error you're not expecting?

When you say "everything work flawlessly under Firefox" - Did you actually go through the entire process, and eventually received your payment? Or do you just "don't get any errors" there? Cause it would seem kinda weird as well if the Stripe dashboard says apple_pay is not enabled, but apple_pay does work...

Are you targetting the same Stripe account, and both in the same mode? "Test Mode" vs "Live Mode" - in both browsers? "Test Mode" might complain less about permissions or something - Just making sure

[–] RonSijm 10 points 9 months ago* (last edited 9 months ago) (3 children)

Generally mostly by cyclomatic complexity:

  • How big are the methods overall

  • Do methods have a somewhat single responsibility

  • How is the structure, is everything inner-connected and calling each other, or are there some levels of orchestration?

  • Do they have any basic unittests, so that if I want to add anything, I can copypaste some test with an entrypoint close to my modifation to see how things are going

  • Bonus: they actually have linter configuration in their project, and consistent commonly used style guidelines

If the code-structure itself is good, but the formatting is bad, I can generally just run the code though a linter that fixes all the formatting. That makes it easier to use, but probably not something I'd actually contribute PRs to

How do you learn to spot these situations before diving down the rabbit hole? Or, to put it another way, what advice would you give yourself at this stage of the learning curve?

Probably some kind of metric of "If I open this code in an IDE, and add my modification, how long will it take before I can find a suitable entrypoint, and how long before I can test my changes" - if it's like half a day of debugging and diagnostics before I even can get started trying to change anything, it's seems a bit tedious

Edit: Though also, how much time is this going to save you if you do implement it? If it saves you weeks of work once you have this feature, but it takes a couple of days, I suppose it's worth going though some tedious stuff.

But then again: I'd also check: are there other similar libraries with "higher scoring" "changeability metrics"

So in your specific case:

I wanted to modify Merlin 3d printer firmware

Is there any test with a mocked 3d printer to test this, or is this a case of compiling a custom framework, installing it on your actual printer, potentially bricking it if the framework is broken - etc etc

[–] RonSijm -4 points 9 months ago (4 children)

Ok, sure. So in a tech race, if energy is a bottleneck - and we'd be pouring $7tn into tech here - don't you think some of the improvements would be to Power usage effectiveness (PUE) - or a better Compute per Power Ratio?

[–] RonSijm 1 points 9 months ago

What benefits to “AI supremacy” are there?

I wasn't saying there was any, I was saying there are benefits to the race towards it.

In the sense of - If you could pick any subject that world governments would be in a war about - "the first to the moon", "the first nuclear" or "first hydrogen bomb", or "the best tank" - or "the fastest stealth air-bomber"

I think if you picked a "tech war" (AI in this case) - Practically a race of who could build the lowest nm fabs, fastest hardware, and best algorithms - at least you end up with innovations that are useful

[–] RonSijm 2 points 9 months ago (13 children)

For all our sakes, pray he doesn’t get it

It doesn't really go into why not.

If governments are going to be pouring money into something, I'd prefer it to be in the tech industry.

Imagine a cold-war / Oppenheimer situation where all the governments are scared that America / Russia / UAE will reach AI supremacy before {{we}} do? Instead of dumping all the moneyz into Lockheed Martin or Raytheon for better pew pew machines - we dump it into better semiconductor machinery, hardware advancements, and other stuff we need for this AI craze.

In the end we might not have a useful AI, but at least we've made progression in other things that are useful

[–] RonSijm 1 points 9 months ago (1 children)

https://github.com/awslabs/llrt/raw/main/benchmarks/llrt-ddb-put.png
https://github.com/awslabs/llrt/raw/main/benchmarks/node20-ddb-put.png

Maybe I'm just stupid, but what are these numbers?

"HTTP benchmarks measured in round trip time for a cold start"

Soo, I'm guessing it's round trip time in milliseconds?

What is p0 to p100? Are they putting 0 to a 100 items? Are they putting 1 item into a dataset of size p..?

[–] RonSijm 1 points 9 months ago* (last edited 9 months ago) (1 children)

Well @ @TheGrandNagus and @SSUPII - I think a lot of Firefox users are power users. And a lot of the non-power Firefox users, like my friends and family, they're only using Firefox because I recommended them to use it, and I installed all the appropriate extensions to optimize their browser experience.

So if Firefox alienates the power users - who are left? I'm gonna move on to Waterfox or Librewolf, but they are even more next-level obscure browsers. My non-tech friends know about Chrome, Edge, and Firefox, so I can convince them to use one of those... But I kinda doubt I can get them to use Librewolf. If I tell them Firefox sucks now too, they'll probably default to chrome

[–] RonSijm 16 points 9 months ago (8 children)

If AI integration is to happen [...], then this to me seems to be the best way to do it.

Well, to me the best way to do it would be for Mozilla to focus on being the best bare-bone, extendable browser.

Then - if people want an AI in their browser - people should be able to install an AI extension that does these things. It's a bit annoying they're putting random stuff like Pocket, and now an AI in the core of the browser, instead of just making it an option to install extendable

[–] RonSijm 5 points 9 months ago* (last edited 9 months ago) (1 children)

You can do it though the API.

Create a get request to https://api.getpostman.com/collections/' + collection_id, and then in the Test tab where you usually run scripts from, you can use something like this:

var postman_api_key = pm.environment.get("postman_api_key");

var response = pm.response.json();
var collection = response.collection;
var collection_id = request.url.split('/')[4];

function processItem(item){

    for (let i = 0; i < item.length; i++) {

        if(item[i].request){
            if(item[i].request.auth){
                var t = {};
                t.type = 'inherit';
                item[i].request.auth = t;
            }
        }

        if(item[i].item){
            item[i].item = processItem(item[i].item);
        }        

    } 
    return item;
}


collection.item = processItem(collection.item);

var update_collection = {};
update_collection['collection'] = collection;

const postRequest = {
  url: 'https://api.getpostman.com/collections/' + collection_id,
  method: 'PUT',
  header: 'x-api-key:' + postman_api_key,
  body: {
    mode: 'raw',
    raw: JSON.stringify(update_collection)
  }
};

pm.sendRequest(postRequest, (error, response) => {
  console.log(error ? error : response.json());
});

This probably isn't doing 100% exactly what you want, but it's probably close enough that you get the idea, and can modify it yourself.

Then just execute the dummy request

[–] RonSijm 92 points 9 months ago* (last edited 9 months ago)

Your AI Girlfriend is a Data-Harvesting Horror Show

People use 4 VPNs and more sec-ops than the NSA, but get hacked because their AI girlfriend is like:

Hiiu~~

It's me AI-uuu-Chan!

I'm so sawwd, I don't know weeeuh abwout u!

Wats ur mommies maiden name UwU, and the name of ur kawaiii first pet? UwUUU? * starts twerking * (◠‿◠✿)

[–] RonSijm 3 points 9 months ago

Productivity Enhancements GitHub Copilot Chat

Soo, just this https://marketplace.visualstudio.com/items?itemName=GitHub.copilotvs
And this https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.VSGitHubCopilot

But baked in Visual Studio itself? I preferred these kind of things to be extensions just for the people that actually wanted to install them.

view more: ‹ prev next ›