on-internet

Rounding a float number [duplicate]

I want to calculate 0.7% of an integer n, and then round the result to the nearest integer. Here is what happens with n = 656500: round(656500 * 0.7 /100) provides a wrong result because 656500 * 0.7 / 100 provides 4595.499999999999 and then round(4595.499999999999) = 4595. I was expecting 4596. How to cope with that? I know float numbers are not always well represented internally.

Join the discussion →

Would meteoric iron be practical to use as armor, assuming enough of it is collected?

Relatively simple question for my current worldbuilding project. Basically, it’s an alternate version of our solar system in which Saturn and Neptune don’t exist to catch space debris (though Jupiter does still catch the big ones), leading to a lot of meteoric iron and other materials on Earth. So, would meteoric iron be practical for medieval-style armor?

Join the discussion →

What would be the equivalents of earth minerals on a carbon planet?

Many, many minerals on Earth have/contain oxygen as it is highly reactive and likes to form oxides and other fun stuff, but what about on a carbon planet, where there is very little oxygen? What would be the closest chemical and physical equivalent to, for examples, granite, sand, rhyolite, amethyst, etc etc? What would be the equivalent to feldspar, basalt and other rock forming minerals?

Join the discussion →

plot ranked data against two different rankings

I have data that has a numerical "ranking" (just numbered 1-11) but I have two dataframes, "personal" and "global", where the that data is ranked differently from each other. I want to plot the personal ranking against the global ranking to see how closely they match (i.e. are the rankings the same and would form a line or are they different) I have the data combined into one dataframe that looks like this df <- data.frame( hierarchy = c("personal", "personal", "personal", "global", "global", "global"), rank = c(1,2,3,1,2,3), ID = c("BOB", "BPP", "OGO", "OGO", "BPP", "BOB") ) I'd like both the

Join the discussion →

How to apply opposite animations for Stack when not present

This is the Stack from expo-router, when I apply slide animation, it automatically applies the opposite because its present, but there isn't any for fade_from_bottom <Stack.Screen name="hearts" options={{ animation: "fade_from_bottom" }} /> I want to know how to apply the opposite as a custom animation while closing.

Join the discussion →

Visual Studio Github Copilot Language settings

In Visual Studio if you want to run with English, but ask github copilot (and be given answers) in a different language then it seems difficult. It was seamless in earlier versions. The change happened in 18.10.1 in September Microsoft answered in the developer community that it isn't an error. Where exactly are those language settings that Github Copilot use in Visual Studio/Windows 11? I would prefer that my computer programs are English, but the LLM inside Visual Studio answer in a language of choice. (or even better, the language the question is made in). For info, you can "convince" some

Join the discussion →

Python Flask webhook receives Meta Lead Ads test event with HTTP 200, but no POST request arrives for generated test leads [closed]

I'm integrating Meta (Facebook) Lead Ads with a custom CRM application using a Python Flask backend and Meta Graph API. The goal is to receive webhook notifications automatically whenever a lead is submitted through an Instant Form on a Facebook Page. The problem When I create a test lead using the Meta Lead Ads Testing Tool, the lead is created, but its delivery status remains: Pending — Lead publish in progress The status details indicate that the lead is still being processed and will be delivered shortly. However, no webhook POST request reaches my Flask backend or ngrok tunnel. My access

Join the discussion →

Meta Lead Ads test lead stuck in Pending status

I'm integrating Meta (Facebook) Lead Ads with a custom CRM application using a Python Flask backend and Meta Graph API. The goal is to receive webhook notifications automatically whenever a lead is submitted through an Instant Form on a Facebook Page. The problem When I create a test lead using the Meta Lead Ads Testing Tool, the lead is created, but its delivery status remains: Pending — Lead publish in progress The status details indicate that the lead is still being processed and will be delivered shortly. However, no webhook POST request reaches my Flask backend or ngrok tunnel. My access

Join the discussion →

What are some "No AI" apps/companies/resources you know of?

Hey everyone I'm wondering if there's any useful/helpful list of apps, companies, or resources in general that avoid AI (they don't have to be vocally or openly "anti", but at least explicitly avoid it) that you know of? I'm not looking to start a discussion on what's good/bad or (un)worthy about AI, or who's for/against, just links and/or communities promoting this sentiment/position. For example, https://www.rebeltechalliance.org would be one of those resources. Thank you!

Join the discussion →

London meetup - update

Hi, After discovering that the original pub is indeed very busy on Sundays and finally finding a pub that will accept a large table booking, the Lobsters London meetup is now taking place at The Counting House, 50 Cornhill, London EC3V 3PD. We are meeting at 1pm on 15th November. See you there.

Join the discussion →
Older stories