79182961

Date: 2024-11-12 23:02:09
Score: 1
Natty:
Report link

Is there any optimization happening during compile time?

There are many, but if you touch the array, the whole array will be there.

Is the compiler (I use gcc at the moment) smart enough to realize that only c[0] is used?

No, the compiler is not a programmer. It is programmer's job. Also If you use a reference to this array the compiler doe not why. You may not use the array at all in your code - but it can be used as a DMA buffer for example.

Is the operating system (name one) smart enough to not waste the memory?

It is not related to OS or bare metal. OS does not deal with static storage duration objects

When I code for embedded microcontrollers, is there any difference to running this program on another OS (memory-wise)?

No.

You just presented bad programming pattern leading to unnecessary wast3e of memory.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Blacklisted phrase (1): is there any
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there any
  • High reputation (-2):
Posted by: 0___________

79182954

Date: 2024-11-12 22:57:08
Score: 3
Natty:
Report link

The next-themes doc includes a section about how to avoid this: Avoid Hydration Mismatch

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Thibaut

79182943

Date: 2024-11-12 22:52:07
Score: 2
Natty:
Report link

Thanks for the replies. I was going to provide an edit but decided to add my own answer. There seems to be a few different ideas and opinions here, and after looking into this question further, I've realized that the core of the discussion revolves around how we define the scope of our analysis—what we care about when we talk about algorithmic complexity. Does the underlying representation of the input matter in our analysis, or should we only focus on the abstract, logical behavior of the algorithm?

Here’s an adjacent question that helps us explore this idea:

If I have a program that copies an input integer to another variable, this is typically assumed to be a constant space operation. But since the input integer is likely represented as a binary number under the hood, why is this not considered an O(log n) operation, since we are copying all log(n) bits from one variable to another?

One possible answer is that we are dealing with a fixed-size input, such as a 32-bit integer, which would make the operation constant in terms of space because the input is capped at a maximum size (regardless of the actual value of the integer). But is this truly the reason we consider the operation constant space, or does the space complexity analysis depend more on what we measure the complexity with respect to?

The key insight, I believe, is that the answer depends on our model of computation—on what we are willing to count as "space" or "time" in our complexity analysis. Complexity analysis is inherently tied to the assumptions we make about the nature of the input and the environment. As one comment puts it, "All the computations of complexity depend on your model of computation, in other words on what you would like to count." Are we counting only the space that our algorithm explicitly allocates, or are we including the underlying machine representation (e.g., the binary encoding of integers)?

In this context, the RAM model of algorithmic analysis is usually what we are concerned with. In this model, the focus is on high-level operations, such as additions and comparisons, and assumes a fixed-size machine word (e.g., 32 or 64 bits). The time and space complexity are measured based on the number of operations required to solve a problem, ignoring the details of machine word size or arbitrary precision. For most algorithmic problems and competitive programming algorithms, this model is used, as it abstracts away the details of the underlying hardware and focuses on the algorithm’s efficiency with respect to input size.

In short, the real question boils down to what you’re measuring your algorithmic complexity with respect to—the input value itself or the representation of the input value on the machine. If we consider the input value in its raw form, with a fixed bit size (say 32 or 64 bits), then copying it would be an O(1) operation. But if we delve into the details of how the input is represented on the machine (in binary, with a potentially varying bit length), we might argue that the operation could take O(log n) space, reflecting the number of bits involved.

Ultimately, it’s less about whether the input is “arbitrary precision” versus “fixed size” and more about what assumptions we make when measuring algorithmic complexity. These assumptions about the model of computation—what we count and how we count it—determine whether we consider the operation constant space or logarithmic.

In Short: O(1) time with respect to what we are generally concerned about. We can do complexity analysis with respect to other lower-level details, but this generally is outside the scope of our model of analysis.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (0.5): why is this
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: marcusdel2112

79182933

Date: 2024-11-12 22:46:06
Score: 2
Natty:
Report link

You can use Vercel AI SDK

To stream text with React Server Component: https://sdk.vercel.ai/examples/rsc/basics/streaming-text-generation

To stream text with client hook: https://sdk.vercel.ai/examples/next/basics/streaming-text-generation

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stasiek

79182927

Date: 2024-11-12 22:44:06
Score: 2.5
Natty:
Report link

In general More partitions lead to higher throughput. But few things to consider - more partitions means consumer has to have higher memory system to consume data.

Interesting articles I found about it

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sneha Mule

79182919

Date: 2024-11-12 22:40:05
Score: 3
Natty:
Report link

Apparently you can't just add the new scope to a program when token was created, it is necessary to delete the token and obtain new permission via the consent screen. After that code works fine.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28124933

79182906

Date: 2024-11-12 22:30:03
Score: 1
Natty:
Report link

This appears to be a weird/unintended behavior of OpenSearch. I was able to resolve it by setting the access policy to the root principal of my AWS account:

Principal: ['arn:aws:iam::$ACCOUNT_ID:root']
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: leopoldGrimes

79182893

Date: 2024-11-12 22:25:01
Score: 3.5
Natty:
Report link
  1. Try using the i18next package for translation
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Emmanuel Omidiora

79182891

Date: 2024-11-12 22:24:01
Score: 3.5
Natty:
Report link

Getting Same errorin Amadeus selfapiAPI RequestUrl-https://api.amadeus.com/v2/shopping/flight-offersmethod-post {"currencyCode":"USD","originDestinations":[{"id":"1","originLocationCode":"BOG","destinationLocationCode":"MIA","departureDateTimeRange":{"date":"2024-12-15"}},{"id":"2","originLocationCode":"MIA","destinationLocationCode":"BOG","departureDateTimeRange":{"date":"2024-12-20"}}],"travelers":[{"id":"1","travelerType":"ADULT"}],"sources":["GDS"],"searchCriteria":{"maxFlightOffers":5,"flightFilters":{"cabinRestrictions":[{"cabin":"ECONOMY","coverage":"MOST_SEGMENTS","originDestinationIds":["1","2"]}]}}} APIResponse {"errors":[{"code":2668,"title":"PARAMETER COMBINATION INVALID/RESTRICTED","detail":"One of the search criteria is not allowed","status":400}]}

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): Getting Same error
  • Low reputation (1):
Posted by: Travel PortalSolution

79182886

Date: 2024-11-12 22:21:00
Score: 2
Natty:
Report link

I'm a bit late to the party, but I just saw this, and figured I'll add I created a tool that does that here: https://github.com/rglonek/SpikeTools

It's a simple golang application (you can check the source there), with a docker image for ease of use (no download/compile needed).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Robert Glonek

79182876

Date: 2024-11-12 22:19:00
Score: 4.5
Natty:
Report link

Solved my problem by switching to Java 21. Thanks, Rishaan!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bodoed

79182874

Date: 2024-11-12 22:17:59
Score: 0.5
Natty:
Report link

Likely the error comes from the shell or the OS.

To shorten the classpath you can combine the classes from several jar files into fewer jar files.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: queeg

79182862

Date: 2024-11-12 22:11:58
Score: 0.5
Natty:
Report link

Convert a URL into its title using the SPLIT function

The website you provided is protected, which prevents web scrapes from accessing its content. This is due to various security measures, such as CAPTCHAs and IP blocking, which are designed to avoid unauthorized data extraction.

One alternative/possible solution that can be provided is to extract the address directly from the link. This extracted address can then be formatted as 720b Waverley Road Dartmouth Dartmouth.

Sample Sheet Data:

Sample Data

Sample Code:

  function titleFromURL(url) {
  const urlModif = url.split('/').pop().replaceAll("-", " ").replace(/\b(\w)/g, f => f.toUpperCase());
  console.log(urlModif);
  return urlModif;
}

After saving the code back to your sheet, then type this in column B:

=titleFromURL(A1)

URL

Sample Output:

sample output

Reference: SPLIT function

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: leylou

79182856

Date: 2024-11-12 22:09:57
Score: 4
Natty:
Report link

Thank you all for your response. As Craig pointed out - all I had to do was to include "IC.ITEM_ID" in the Group By.

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Inigo CA

79182855

Date: 2024-11-12 22:09:57
Score: 2
Natty:
Report link

You can deploy your project on Vercel. Under Build & Development Settings set the following options:

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arzl James Lao

79182854

Date: 2024-11-12 22:08:57
Score: 0.5
Natty:
Report link

I had put packages/** instead of package/* in my pnpm-workspaces.yaml file so it was seeing the dist folder as a package and overwriting the workspace folder lol

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Novaterata

79182828

Date: 2024-11-12 22:00:54
Score: 2.5
Natty:
Report link

You can change the owner of database to the new user:

ALTER DATABASE MY_DB OWNER TO MY_USER;

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: helderam

79182814

Date: 2024-11-12 21:53:52
Score: 17
Natty: 8
Report link

after few years i have a similar problem , did you solve it ?? i believe that you did it, so can you help me to overpass this problem ?

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): i have a similar problem
  • RegEx Blacklisted phrase (3): did you solve it
  • RegEx Blacklisted phrase (1.5): solve it ??
  • RegEx Blacklisted phrase (3): can you help me
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): i have a similar problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dionisis Vrynas

79182803

Date: 2024-11-12 21:50:51
Score: 1
Natty:
Report link

You need to add both hosted zones in template enter image description here

CloudFrontDNSRecord:
    Type: 'AWS::Route53::RecordSet'
    Properties:
      HostedZoneId: !Ref HostedZoneId
      Type: A
      AliasTarget:
        DNSName: !GetAtt myCloudFrontDistribution.DomainName
        HostedZoneId: Z2FDTNDATAQYW2  # Fixed CloudFront Hosted Zone ID

and Always try to add hardcoded values, test it, if it works update it with dynamic variables and attributes, that will help you to debug much faster.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fedi Bounouh

79182799

Date: 2024-11-12 21:48:51
Score: 2
Natty:
Report link

Not a full solution to your problem but I ran into the same issue when using Spring 3.3.5. Even just following the Spring guides didn't work on a sample app. If you downgrade to 3.3.3 it works.

This however doesn't explain what are the incompatible versions from Spring Boot 3.3.4 onwards

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: dion007

79182790

Date: 2024-11-12 21:44:50
Score: 2
Natty:
Report link

I removed this part from my web.xml :

<login-config>
    <auth-method>OIDC</auth-method>
</login-config>

So don't add auth-method OIDC in you web.xml if you use @OpenIdAuthenticationMechanismDefinition

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @OpenIdAuthenticationMechanismDefinition
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: grigouille

79182788

Date: 2024-11-12 21:44:50
Score: 2
Natty:
Report link

Apparently I had changed the default template. Using this fixed it:

plotly.io.templates.default = "plotly"

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: steam1901

79182771

Date: 2024-11-12 21:36:48
Score: 2.5
Natty:
Report link

You must redefine the path of the /static files, in this case you have to change it in the index.html file, according to the path of the folder where your application is located on the server.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ismael Gomes

79182760

Date: 2024-11-12 21:31:47
Score: 0.5
Natty:
Report link

javascript:void%20function(){%22chrome.google.com%22===location.hostname%26%26location.pathname.startsWith(%22/webstore%22)%3Fchrome.management.getAll(a=%3E{function%20b(a){chrome.webstorePrivate.getExtensionStatus(a.id,b=%3E{if(%22force_installed%22===b){const%20b=prompt(What%20do%20you%20want%20to%20do%20with%20${a.name}%3F%20(enable/disable));var%20c=%22%22===a.homepageUrl%3F%3Cb%3E%3Ca%20title=%22${a.description}%22%3E${a.name}%3C/a%3E%3C/b%3E:%3Cb%3E%3Ca%20href=%22${a.homepageUrl}%22%20title=%22${a.description}%22%3E${a.name}%3C/a%3E%3C/b%3E,d=%22%22;%22disable%22===b.toLowerCase()%3F(chrome.management.setEnabled(a.id,!1),d+=%3Cp%3EDisabled%20${c}%3C/p%3E):%22enable%22===b.toLowerCase()%3F(chrome.management.setEnabled(a.id,!0),d+=%3Cp%3EEnabled%20${c}%3C/p%3E):alert(%22Invalid%20option,%20try%20again!%22),document.body.innerHTML+=d}})}document.body.innerHTML=%22%22,document.write(%22\n%3Clink%20rel=%22preconnect%22%20href=%22https://fonts.googleapis.com%22%3E\n%3Clink%20rel=%22preconnect%22%20href=%22https://fonts.gstatic.com%22%20crossorigin%3E\n%3Clink%20href=%22https://fonts.googleapis.com/css2%3Ff...%22%20rel=%22stylesheet%22%3E\n%3Cstyle%3E\n%20%20body%20{\n%20%20%20%20%20%20font-family:%20'Montserrat',%20sans-serif;\n%20%20}\n%20%20a%20{\n%20%20%20%20%20%20text-decoration:%20none;\n%20%20%20%20%20%20color:%20blue\n%20%20}\n%20%20p%20{\n%20%20%20%20%20%20margin:%200px\n%20%20}\n%3C/style%3E\n%3Ch1%20style=%22text-align:%20center%22%3EExtension%20Panel%3C/h1%3E\n%22),a.forEach(a=%3Eb(a))}):(alert(%22Run%20this%20script%20again%20but%20while%20on%20this%20page%22),location.href=%22https://chrome.google.com/webstore_%22)}();

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ethan Michael Hicks

79182757

Date: 2024-11-12 21:30:46
Score: 2
Natty:
Report link

This worked for me:

https://ramontebar.net/2017/08/24/failed-to-install-microsoft-visualstudio-component-debugger-justintime-vs2017/

  1. I set the environment variable (this did not help)
  2. Then I ran the Unblock-File command as described in the article
Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Frode

79182756

Date: 2024-11-12 21:29:46
Score: 2
Natty:
Report link

The problem was that I had an overeager HttpInterceptor that was converting all HTTP error responses into a string.

The intercepter was simply returning:

err.statusText

Which was why I only saw a string, not an HttpErrorResponse object.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Chrygore

79182755

Date: 2024-11-12 21:29:46
Score: 1
Natty:
Report link

The Correlation Error for our team was caused by a short RemoteAuthenticationTimeout setting. It was intermittent, due to the timeout being reached in some instances and not others. It's unfortunate the same error can be linked to so many different circumstances.

In our case I think the variable was falsely set and expected to perform as a Request Timeout, when it is actually accounting for the time limit of completing the authentication flow.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: WiseGuy

79182750

Date: 2024-11-12 21:26:45
Score: 1.5
Natty:
Report link

I'd guess that your issuer isn't specified in your openid config. You'd have to decode your JWT to verify that. If that's the problem, you just need to add all of your issuers to that validate-jwt policy.

Since you're doing everything in Entra Id, you might consider using a validate-azure-ad-token policy instead of a validate-jwt policy since that already checks for all of the issuers that might issue your tokens.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Killianti

79182746

Date: 2024-11-12 21:24:44
Score: 4
Natty:
Report link

this error are getting two three days.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Travel PortalSolution

79182744

Date: 2024-11-12 21:24:44
Score: 2.5
Natty:
Report link

You can change the owner of database to the new user:

ALTER DATABASE airflow OWNER TO airflow;

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: helderam

79182734

Date: 2024-11-12 21:22:43
Score: 1
Natty:
Report link

I'm imagining that in the foreach loop, you are persisting data outside the code logic you have.

Can you update the question to contain the logic in comment:

//Do stuff with $row

Because if you save data outside of that statement, it remains in memory. So while you have an optimization in regards to chunking the

DB::SELECT(...)

The memory leak remains since data is likely aggregated outside of the relevant code you provided.

Reasons:
  • Blacklisted phrase (1): regards
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mconkin

79182732

Date: 2024-11-12 21:22:43
Score: 1
Natty:
Report link

Using Redis could potentially help alleviate some of the pressure on your Aerospike database, especially if your application has high read demands or if there’s some data that doesn’t need to be fetched from Aerospike in real time for every request.For data that doesn’t change frequently (like user profiles, configuration settings, or lookup data), you could store it in Redis as a cache layer in front of Aerospike.

By doing so you can:

Redis is also good for Distributed Locking or Rate limiting specifically in a concurrent environment. Redis’s distributed locking mechanism (using something like Redlock) can help ensure only one goroutine or instance accesses Aerospike at a time for specific actions.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Usman Tahir

79182726

Date: 2024-11-12 21:20:42
Score: 2.5
Natty:
Report link

just remove "chakra-ui-color-mode" from localstorage and refresh the page. that should be fixed

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Angel

79182713

Date: 2024-11-12 21:16:41
Score: 2
Natty:
Report link

The solution for me was to correct the "homepage": "/" in my package.json. I had been fiddling with it earlier for some github pages preview.

Soo check that as well.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mr T

79182710

Date: 2024-11-12 21:14:41
Score: 1
Natty:
Report link

If the accepted answer don't work because of some default styling set the !important property in the global file.

.hide-dropdown {
  display: none !important;
}

This fixed my issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ananthu

79182706

Date: 2024-11-12 21:12:40
Score: 1
Natty:
Report link

Thanks to @nc1943 above for their excellent answer. I wanted to set system-level environmental variables and also hit a couple of minor errors when trying to use the code above. I've tweaked it and if run in an Admin PowerShell session it successfully imports the variables:

param(
    [string]$Path,
    [switch]$Verbose,
    [switch]$Remove,
    [switch]$RemoveQuotes
)

$variables = Get-Content -Path $Path | Select-String -Pattern '^\s*[^\s=#]+=[^\s]+$'

foreach ($var in $variables) {
    $keyVal = $var -split '=', 2
    $key = $keyVal[0].Trim()
    if ($RemoveQuotes) {
        $val = $keyVal[1].Trim("'").Trim('"')
    } else {
        $val = $keyVal[1]
    }
    if ($Remove) {
        [Environment]::SetEnvironmentVariable($key, '', [System.EnvironmentVariableTarget]::Machine)
    } else {
        [Environment]::SetEnvironmentVariable($key, $val, [System.EnvironmentVariableTarget]::Machine)
    }
    if ($Verbose) {
        "$key=$([Environment]::GetEnvironmentVariable($key, [System.EnvironmentVariableTarget]::Machine))"
    }
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @nc1943
  • Low reputation (1):
Posted by: EDIflyer

79182701

Date: 2024-11-12 21:10:40
Score: 0.5
Natty:
Report link

Those are the Windows file paths, but you're running the program in WSL. Your paths need to be relative to the / route. Also, UNIX paths use forward slashes, not backslashes.

The correct route would be ~/lab1/obrada.txt where the tilde is the /home/USER directory

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: exoRift

79182699

Date: 2024-11-12 21:09:39
Score: 1.5
Natty:
Report link

You should set up the message field of the annotation.

@NotNull(message = "{org.company.User.name.NotNull}")
private String name;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roberto Foglia

79182692

Date: 2024-11-12 21:04:38
Score: 3
Natty:
Report link

select distinct city from station where city REGEXP '[aeiou]$';

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pradeep R. Yadav

79182687

Date: 2024-11-12 21:01:37
Score: 2.5
Natty:
Report link

I feel your pain. IMHO breaking backwards compatibility requires a very good reason, and I'm not sure there is one in this case. See this github issue

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ed Statham

79182680

Date: 2024-11-12 21:00:37
Score: 2.5
Natty:
Report link

images not image

https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase

openGraph: {
  images: '/og-image.png',
},
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hyzyr

79182664

Date: 2024-11-12 20:52:35
Score: 1
Natty:
Report link

Since you mentioned in the comment section that you are using Cloud Run Functions as the service, I recommend reviewing this documentation, which will guide you on how to deploy a Cloud Run function from source code and help you understand the build process during deployment.

As suggested also by John, you can also view runtime logs for Cloud Run Functions in the Logs Explorer so you could see the actual error. You can also check the Cloud Run Functions troubleshooting errors page which might help you.

I hope this helps.

Reasons:
  • Blacklisted phrase (1): this document
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: HerPat

79182663

Date: 2024-11-12 20:51:35
Score: 0.5
Natty:
Report link

I had Xcode 15.4. I tried to run the app on an old simulator (iOS 15) that I had downloaded before.

The simulators for iOS 15 simply were not visible in the simulators list.

The trick was to go to Window > Devices and Simulators, find the needed device you want to use and switch the option from "Automatic" to "Always".

enter image description here

Reasons:
  • No code block (0.5):
Posted by: David

79182661

Date: 2024-11-12 20:50:35
Score: 2.5
Natty:
Report link

Ok so I could not find a way around the mentioned limitations with WPF. So what I did instead was add a brief timer to my HOLD button that keeps the GO button enabled. User touches HOLD then GO. All good. Not exactly what I wanted but close enough to work for the user. Interestingly enough, I've now seen multiple other windoze tablet UIs that use the same approach, so I'm guessing I'm not the only one to run into this issue.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: NondescriptChap

79182655

Date: 2024-11-12 20:48:34
Score: 3
Natty:
Report link

I am also confronted with this issue, my code works fine on desktop Signale client, but when running it as service, the service will not connect die to an SSl error

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user2298075

79182652

Date: 2024-11-12 20:46:34
Score: 1
Natty:
Report link

The problem ended up being that our Content-Type header was:

Content-Type: */*; charset=utf-8

Instead of:

Content-Type: text/HTML; charset=utf-8

Twitter/X, LinkedIn, and Apple Messages choked on */*.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Barry Hess

79182650

Date: 2024-11-12 20:44:31
Score: 6.5 🚩
Natty:
Report link

I don't know. heh 😁 ...............................................................................................................................................................................................

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (3):
  • Filler text (0.5): ...............................................................................................................................................................................................
  • Low entropy (1):
  • Low reputation (1):
Posted by: Afshin fallahnejad

79182646

Date: 2024-11-12 20:41:30
Score: 1.5
Natty:
Report link
<MARQUEE behavior="scroll" direction="left" width="100%">
    <img src="yourimagehere1.gif">
    <img src="yourimagehere2.gif">
    <img src="yourimagehere3.gif">
    </MARQUEE>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Obinna Nehemiah

79182645

Date: 2024-11-12 20:40:29
Score: 1
Natty:
Report link

I agree. I've noticed that the articles like this one that use pca.components_ * np.sqrt(pca.explained_variance_) seem to cite the theory behind what PCA loadings are to explain their reasoning. On the other hand, the ones that use abs or normalize the abs of the pca.components_ seem to focus on feature importance like this.

I think this blog best explains it in its section titled "Difference Between Loadings, Correlation Coefficients and Eigenvectors."

I hope SciKit fixes this in their guides and adds a method to compute it soon.

Reasons:
  • Blacklisted phrase (1): this blog
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Omig12

79182630

Date: 2024-11-12 20:33:28
Score: 1.5
Natty:
Report link

In the SQL Editor window, click on the database name at the top (or Ctrl+0, that's Ctrl+zero) to open the "Choose catalog/schema" dialog. Select the database (catalog) in the left pane by clicking on it, then select the schema in the right pane by double-clicking on it, which also closes the dialog. Click on the following images to see screenshots.

Open "Choose catalog/schema" dialog

Select database and schema

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lauren Anderson

79182619

Date: 2024-11-12 20:25:26
Score: 2.5
Natty:
Report link

You can change port location by going inside the subsystem, double clicking the Connection Port, and changing the Port location on parent subsystem attribute.

https://www.mathworks.com/matlabcentral/answers/31981-change-the-position-of-a-part-of-the-input-ports-of-a-simulink-block#answer_175751

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jelly Joe

79182618

Date: 2024-11-12 20:25:25
Score: 4.5
Natty:
Report link

hi can you provide me the code for clearkey drm in exoplayer? i am working on the same project but i have been facing the source issue. even though i have tested it with the above link you have provided and its working just fine but in the app its giving me source issue. it will be very helpful for me if you can provide me your code so i can look upto it.

Reasons:
  • RegEx Blacklisted phrase (2.5): can you provide me the code
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Muteeb Rehman

79182611

Date: 2024-11-12 20:23:24
Score: 1
Natty:
Report link

Assuming the text is in cell A1, you could try it by combining TEXT with REGEXEXTRACT and DATEVALUE.

=TEXT(DATEVALUE(REGEXEXTRACT(A1, "([A-Za-z]{3}) (\d{1,2}), (\d{4})")), "MM/DD/YYYY")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: flkcgn

79182608

Date: 2024-11-12 20:21:24
Score: 0.5
Natty:
Report link

Had the same problem, solved with ng-init and active:

<tabset>
    <tab
        ng-repeat="tab in tabs"
        ng-init="tab.active = $index === 0"
        active="tab.active"
        heading="{{ tab.heading }}"
    >
    </tab>
    <tab heading="Foo">
    </tab>
</tabset>    
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sorrat

79182606

Date: 2024-11-12 20:21:24
Score: 4.5
Natty:
Report link

Even Wordpress' interface is broken. When you update a user and you click the link to return to the search result at the top you're taken to a link with the @ symbol removed.

I opened a bug report a long time ago but they seem to care more about making it difficult for us to ask for help than actually replicating the problem and fixing it when aware of issues.

https://wordpress.org/support/topic/symbol-removed-from-url-when-returning-to-user-list/#post-18130287

Wordpress did NOT have this problem before. It started with an update released shortly before my original topic there.

Can anybody help and maybe join the conversation over there, so hopefully one of the developers maintaining Wordpress actually looks into it? Maybe they think I am a single lunatic with the issue and won't bother helping if they don't see others asking for help too.

Reasons:
  • RegEx Blacklisted phrase (3): Can anybody help
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: The Sim Architect

79182603

Date: 2024-11-12 20:20:24
Score: 1
Natty:
Report link

I made it this way:

factory<ActionHandler> { (firstParamArgs: FirstParamArgs, secondParam: SecondParam) ->
    MySecondViewModel(firstParamArgs, secondParam)
}

 private val handler: ActionHandler by inject { parametersOf(inputParamArgs.firstParamArgs, inputParamArgs.secondParam) }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Monica

79182590

Date: 2024-11-12 20:15:22
Score: 2
Natty:
Report link

There isn't any other way to test the Google* Assistant integration end-to-end. You can install another supported version of Studio without downgrading the main version you use. See How to install multiple Android studio with different versions on same PC?

*You could write your own test Assistant app to test it, but that would be quite a lot of work.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ahaan Ugale

79182588

Date: 2024-11-12 20:15:22
Score: 0.5
Natty:
Report link

You may try:

=+split(A2," at",)

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (2):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: rockinfreakshow

79182583

Date: 2024-11-12 20:14:22
Score: 2
Natty:
Report link

The fact that your code is fine for user=portal but not for user=pubic indicates that the problem is due to access/security rules on model: 'supplier.registration.activity'...

Could you check the rpc answer using console.log(records) ?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Ahrimann Steiner

79182580

Date: 2024-11-12 20:13:21
Score: 1
Natty:
Report link

Use this URL to get cluster image:

https://raw.githubusercontent.com/googlearchive/js-marker-clusterer/refs/heads/gh-pages/images/m1.png
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shub

79182577

Date: 2024-11-12 20:12:21
Score: 1
Natty:
Report link

The most reliable workaround I have found is using the CMAKE_EXPORT_COMPILE_COMMANDS option. With this (but only when CppTools extension is installed), one can type IntelliSense in the Command Pallete, which offers the option to choose the data source. And then one can select the relevant compile_commands.json file. Once this is set, the navigation through Ctrl-Click seems to work correctly within the source which belong to the selected build target.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: PasterOfMuppets

79182576

Date: 2024-11-12 20:12:21
Score: 3
Natty:
Report link

A hero posted this answer on github, and after 5 hours of debugging and trying every single solution psoted in github and stackoverflow, finally this one solved the problem :

https://stackoverflow.com/a/79182535/15721679

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Abdeldjalil Chougui

79182571

Date: 2024-11-12 20:09:20
Score: 0.5
Natty:
Report link

Per https://source.android.com/docs/core/architecture/hidl/binder-ipc#vndbinder

Normally, vendor processes don't open the binder driver directly and instead link against the libbinder userspace library, which opens the binder driver.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Paul Ratazzi

79182570

Date: 2024-11-12 20:09:20
Score: 1.5
Natty:
Report link

After clearing the files in the DriveData folder, can you build again and check?

Path is something like this

/Users/YOUR-USER-NAME/Library/Developer/Xcode/DerivedData/
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Yakup DURMUS

79182554

Date: 2024-11-12 20:01:18
Score: 2
Natty:
Report link

Check the sizes prop at [NextJS Image] [NextJS Image]: https://nextjs.org/docs/pages/api-reference/components/image An example:
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"

Now it renders with good quality on larger devices and optimised version on smaller screens. Read the documentation for details!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: omkar sawant

79182538

Date: 2024-11-12 19:55:17
Score: 1
Natty:
Report link

We can create ColorDrawable and convert it as ImageBitmap.

Image(
        modifier = Modifier.matchParentSize(),
        bitmap = ColorDrawable(Color.Black.toArgb()).toBitmap(10, 10).asImageBitmap(),
        contentScale = ContentScale.FillBounds,
        contentDescription = null
    )
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Siva Nimmala

79182529

Date: 2024-11-12 19:53:16
Score: 2.5
Natty:
Report link

The above answers are for Elasticsearch.

Follow this document for Opensearch. there is more you need to do to make it work:

https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-snapshot-registerdirectory.html

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Solomon

79182527

Date: 2024-11-12 19:52:14
Score: 8 🚩
Natty: 4.5
Report link

Thank you Dario M. and mason - I cannot upvote your comment due to my lack of reputation points but your comment helped me fix my issue. Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I cannot
  • Blacklisted phrase (0.5): upvote
  • RegEx Blacklisted phrase (1.5): reputation points
  • RegEx Blacklisted phrase (2): cannot upvote
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: agic

79182524

Date: 2024-11-12 19:50:13
Score: 1.5
Natty:
Report link

you can use Specific FocusNode for the TextField and then after pressing the done button that FocusNode variable set to unfocus.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Udara Wickramarathne

79182519

Date: 2024-11-12 19:47:13
Score: 0.5
Natty:
Report link

Microsoft Outlook and Azure logic apps interpret e-mail in a very strict manner.

I ended up using this resource to understand some aspects: https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/message-format-and-transmission

What I had trouble with was the strict handling of e-mails being sent by a black box type of software run by another party. They would send an e-mail with text in the body and also have an attachment of the same content. The e-mail had the body text encoded with the same type as the attachment: Content-Type: text/xml

Outlook and an Azure logic app were strict and interpreted this as an attachment even though it was where the body of a message would go. They auto assigned a filename to the attachment. Thunderbird and Gmail were more relaxed in the handling of the e-mail and when viewing the body section (even through it had a text/xml type, because it was where the body would be, they were more user friendly and interpreted it as plain text and just displayed the XML as the body of the message and then the attachment was handled correctly as an attachment.

My take away is: It appears Microsoft products are very strict in how they handle messages.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lyle Merdan

79182502

Date: 2024-11-12 19:43:12
Score: 1
Natty:
Report link

Now it's possible to compile C++ code into WASM and than use it in Go with the help of wazero runtime. No CGO is needed. Consider go-sqlite3 as an example.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Vitaly Isaev

79182501

Date: 2024-11-12 19:42:11
Score: 2
Natty:
Report link

Here's my fixing up of it: main.js

async function getLatestRelease(repo) {
    const response = await fetch(`https://api.github.com/repos/${repo}/releases/latest`);
    const data = await response.json();
    return data.tag_name;
}

function downloadFile(url, filename) {
    const link = document.createElement('a');
    link.href = url;
    link.download = filename;
    document.body.appendChild(link);
    link.click();
    document.body.removeChild(link);
}

async function showPopup(type) {
    let popupText = '';
    let downloadLink = '';

    if (type === 'dev') {
        popupText = 'Thank you for downloading Comp_V3 *dev*! This download link goes to the Github API. This is the source code. <br> <br> You will need my Custom SDK to use this. Check out my other download in the navbar.';
        downloadLink = 'https://github.com/RanchoDVT/Comp-V5/archive/refs/heads/dev.zip';
        document.getElementById('popup-title').innerText = 'Download Comp-V3 ' + type;
    } else if (type === 'stable') {
        const latestTag = await getLatestRelease('RanchoDVT/Comp-V5');
        popupText = 'Thank you for downloading Comp_V3 stable! This download link goes to the Github API. This is the source code. <br> <br> You will need my Custom SDK to use this. Check out my other download in the navbar.';
        downloadLink = `https://github.com/RanchoDVT/Comp-V5/archive/refs/tags/${latestTag}.zip`;
        document.getElementById('popup-title').innerText = 'Download Comp-V3 ' + type + ' ' + latestTag;
    } else if (type === 'sdk') {
        const latestTag = await getLatestRelease('RanchoDVT/Vex-SDK');
        popupText = 'Thank you for downloading my custom SDK. This is unofficial and in no way affiliated, endorsed, supported, or created by VEX Robotics. <br> <br> You will need this to install my Custom SDK (This) to use my Comp_V3 Program. This modifies Vex\'s robotics extension, so PLEASE don\'t go to them if you have problems with this. Please contact me. <br> <br>There is a PowerShell script for this to make it easier: ';
        popupText += '<a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/RanchoDVT/Vex-SDK/blob/dev/Vex-SDK.updater.ps1">Powershell download</a>';
        document.getElementById('popup-title').innerText = 'Download Custom ' + type + ' ' + latestTag;
        downloadLink = `https://github.com/RanchoDVT/Vex-SDK/archive/refs/tags/${latestTag}.zip`;
    }

    document.getElementById('popup-text').innerHTML = popupText; // Use innerHTML to render HTML content
    document.getElementById('download-link').href = downloadLink;
    document.getElementById('popup').classList.add('active');
    document.getElementById('overlay').classList.add('active');
}


function hidePopup() {
    document.getElementById('popup').classList.remove('active');
    document.getElementById('overlay').classList.remove('active');
}

the navbar:

    <nav>
        <li><a class="nav-link" data-page="index.html" href="index.html">Home</a></li>
        <li class="dropdown">
            <a class="nav-link" data-page="projects.html" href="projects.html">Projects</a>
            <div class="dropdown-content">
                <a target="_blank" href="https://github.com/Voidless7125/Comp-V5">Comp V3</a>
                <a target="_blank" href="https://github.com/RanchoDVT/Vex-SDK">Custom SDK</a>
                <a target="_blank" href="https://ranchodvt.github.io/Comp-V5/">This website!</a>
            </div>
        </li>
        <li class="dropdown">
            <a class="nav-link">Downloads</a>
            <div class="dropdown-content">
                <a onclick="showPopup('stable')">Comp_V3 Stable</a>
                <a onclick="showPopup('dev')">Comp_V3 Dev</a>
                <a onclick="showPopup('sdk')">Custom SDK Stable</a>
            </div>
        </li>
        <li><a class="nav-link" data-page="features.html" href="features.html">Features</a></li>
        <li><a class="nav-link" data-page="contact.html" href="contact.html">Contact</a></li>
        <li style="float: right;"><a class="nav-link" data-page="about.html" href="about.html">About</a></li>
    </nav>

    <!-- Pop-Up Structure -->
    <div id="popup" class="popup">
        <div class="popup-header">
            <h2 id="popup-title">Download</h2>
        </div>
        <p id="popup-text"></p>
        <button class="cancel-btn" onclick="hidePopup()">Cancel</button>
        <a id="download-link" class="download-btn" href="#" download>Download</a>
    </div>
    <div id="overlay" class="overlay" onclick="hidePopup()"></div>

and the css:

.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
}

.popup.active {
    display: block;
    background-color: black;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: black;
}

.popup-header h2 {
    margin: 0;
    font-size: 18px;
    background-color: black;
}

.download-btn, .cancel-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.download-btn {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    text-align: center;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
}

.overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): contact me
  • Blacklisted phrase (1): Please contact me
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: DVT

79182500

Date: 2024-11-12 19:41:11
Score: 3
Natty:
Report link

You used a dependency that was built with .NET 4.0, if your project configuration is with .NET 2.0.. 3.5.

For Example : enter image description here

and config in project is .net 3.5 enter image description here

**

To solve this problem, you should either move the .NET version of the project to version 4.0 or use a dependency with .NET version 3.5 or lower.

**

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohsen Givi

79182494

Date: 2024-11-12 19:39:08
Score: 6.5 🚩
Natty: 4.5
Report link

I'm struggling to read a growing MXF file in real time for a live sports streaming project. I can read the video in 5-minute chunks provided by the recording software, and I’m able to load the full file (around 750GB) once it's complete. However, I need to process the file as it’s still growing. Any suggestions on how to approach this?

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2): Any suggestions
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sumit Chaudhary

79182487

Date: 2024-11-12 19:37:07
Score: 2.5
Natty:
Report link

How to add Google Map API to Web

<script
    src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&loading=async&libraries=maps&v=beta" defer>
</script>

https://developers.google.com/maps/documentation/javascript/add-google-map

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): How to add
  • Low reputation (0.5):
Posted by: Shub

79182485

Date: 2024-11-12 19:36:07
Score: 4
Natty:
Report link

how i felt when bro said ancient : 𓀂𓀬𓁅𓁅𓃂𓄆𓃻

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how i
  • Low reputation (1):
Posted by: Nisha InWoods

79182479

Date: 2024-11-12 19:34:06
Score: 2
Natty:
Report link

You may try:

=LET(a,TOCOL(C7:E27,1),SORT(UNIQUE(ARRAYFORMULA(TOCOL(a,1)+TOCOL(ARRAYFORMULA(6-TOCOL(ARRAYFORMULA(WEEKDAY(a)),1)),1)))))

Output:

Output


Reference

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gyul

79182468

Date: 2024-11-12 19:29:05
Score: 2
Natty:
Report link

1 Build you project in release mode.
2 Copy the .exe from the release folder to the folder you wond to deploy e.g C:\path\to\folder\deployfolder.
3 Open the tools for example: Qt 6.5.3 (MinGW 11.2.0 64-bit).
4 Write command

winddeployqt C:\path\to\folder\deployfolder and that's it.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ghaith

79182463

Date: 2024-11-12 19:29:02
Score: 7 🚩
Natty: 5.5
Report link

Is the issue resolved . I am also facing the same post angular 18 migration. Please help

Reasons:
  • RegEx Blacklisted phrase (3): Please help
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is the is
  • Low reputation (1):
Posted by: Gautham Bharati N

79182459

Date: 2024-11-12 19:28:02
Score: 0.5
Natty:
Report link

Getting Specific Crypto Prices using CMC API

I tried your code and it seems to be missing and it has an error. I modified and converted your python into Javascript and added the forEach() function to iterate each data if the ID is matched in your array it will return the CRYPTO value of EURO as to match in your script json.data[x].quote.EUR.price.

Code.gs

function getCryptoData(id) {
  var url = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest?convert=EUR";
  var apiKey = 'xyz'; // Replace with your API key
  var headers = {
    "X-CMC_PRO_API_KEY": apiKey,
    "Accept": "application/json"
  };

  var response = UrlFetchApp.fetch(url, { 'headers': headers });
  var json = JSON.parse(response.getContentText());
  json.data.forEach(x => {
    if (x.id == id) {
      console.log(x.name, x.quote.EUR.price)
      return x.quote.EUR.price
    }
  })
}

Sample Output:

Sample 1 Sample 2

Reference:

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lime Husky

79182446

Date: 2024-11-12 19:23:00
Score: 2
Natty:
Report link

@aled Thank you for your answer! I found it extremely helpful, even though I was barking up the wrong tree and asking the wrong questions. The solution I found was to add another ee:transform component after the wsc:consume component. I was also able to simplify my existing ee:transform so that I didn't have to map each individual element. The Add:\soapkit-config flow now looks like this:

<flow name="Add:\soapkit-config">
    <ee:transform doc:name="Transform Input">
        <ee:message>
            <ee:set-payload><![CDATA[%dw 2.0
                output application/xml
                ns ns0 http://tempuri.org/
                ---
                payload.body]]></ee:set-payload>
        </ee:message>
    </ee:transform>
    <wsc:consume config-ref="Web_Service_Consumer_Config" operation="Add" doc:name="Outside Consumer" />
    <ee:transform doc:name="Transform Output">
        <ee:message>
            <ee:set-payload><![CDATA[%dw 2.0
                output application/xml
                ns ns0 http://tempuri.org/
                ---
                payload.body]]></ee:set-payload>
        </ee:message>
    </ee:transform>
</flow>

When I put logging components in, I can see that after the Transform Output, the payload looks like this:

<?xml version='1.0' encoding='UTF-8'?>
<AddResponse xmlns="http://tempuri.org/">
    <AddResult>579</AddResult>
</AddResponse>

... then control flows back to the SOAP Router which puts the payload into a SOAP Body, so it looks like this:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Body>
        <AddResponse xmlns="http://tempuri.org/">
            <AddResult>579</AddResult>
        </AddResponse>
    </soap:Body>
</soap:Envelope>
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @aled
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Norman Lynch

79182444

Date: 2024-11-12 19:22:00
Score: 2.5
Natty:
Report link

try changing local.settings.json

"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sivakumar G Nair

79182442

Date: 2024-11-12 19:19:59
Score: 1.5
Natty:
Report link

You can create profile-specific configuration files, like application-local.properties and application-sandbox.properties, where you define the logback configurations for "local" and "sandbox" profiles respectively.

Place the shared properties in application.properties, which will be loaded across all profiles. The application-local.properties and application-sandbox.properties files will inherit from application.properties and can override specific settings as needed.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Amario

79182441

Date: 2024-11-12 19:19:59
Score: 1
Natty:
Report link

This post looks old so for newer users needing to update the client requests.

If using the most up to date spring security stuff, it will use a webclient in the backend to actual talk with the Reddit auth service. You will need to follow the instructions here https://docs.spring.io/spring-security/reference/reactive/oauth2/index.html#oauth2-client-customize-web-client, passing in the customized WebClient that sets the default header to the oauth clients to use when making the request.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: heyo

79182413

Date: 2024-11-12 19:08:57
Score: 2
Natty:
Report link

Of course it was a problem with the lifecycle of my activity. When I use ViewTreeObserver.OnGlobalLayoutListener instead of .post, the coordinates are returned perfectly.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: schwitzky

79182407

Date: 2024-11-12 19:05:56
Score: 1
Natty:
Report link

charlesparker@Charless-Mini KandR % ls -l /usr/bin/gcc -rwxr-xr-x 77 root wheel 119008 Aug 4 06:31 /usr/bin/gcc charlesparker@Charless-Mini KandR % which cc /usr/bin/cc charlesparker@Charless-Mini KandR % ls -l /usr/bin/cc -rwxr-xr-x 77 root wheel 119008 Aug 4 06:31 /usr/bin/cc charlesparker@Charless-Mini KandR % which clang /usr/bin/clang charlesparker@Charless-Mini KandR % ls -l /usr/bin/clang -rwxr-xr-x 77 root wheel 119008 Aug 4 06:31 /usr/bin/clang

Mac mini 2018 Macos Sonoma 14.6.1

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Charles Parker

79182400

Date: 2024-11-12 19:04:56
Score: 0.5
Natty:
Report link

I credit most of the logic for this solution to @codtex and @stritch000. I noticed that the solution from @stritch000 uses the same adjustment rule for both the current and next year lookups, which might produce incorrect results if the adjustments change after the first year.

Here is an updated solution that addresses the next-year lookup while also preserving the southern hemisphere fix. It also uses Linq. If you plan to run this for many dates, you could cache the results of the Linq query for a given year/timezone in a dictionary

public static DateTime? GetNextTransition(DateTime asOfTime, TimeZoneInfo timeZone)
{
    var getAdjs = from adj in timeZone.GetAdjustmentRules()
                  from yr in (int[])[asOfTime.Year, asOfTime.Year + 1]
                  from t in (TimeZoneInfo.TransitionTime[])[adj.DaylightTransitionStart, adj.DaylightTransitionEnd]
                  where adj.DateStart.Year <= yr && adj.DateEnd.Year >= yr
                  select GetAdjustmentDate(t, yr);

    if (getAdjs.Where(a => a > asOfTime).Any())
    {
        return getAdjs.Where(a => a > asOfTime).Min();
    }
    return null;
}
public static System.Globalization.Calendar cal = System.Globalization.CultureInfo.CurrentCulture.Calendar;
public static DateTime GetAdjustmentDate(TimeZoneInfo.TransitionTime transitionTime, int year)
{
    if (!transitionTime.IsFixedDateRule)
    {
        int minDate = transitionTime.Week * 7 - 6; //1, 8, 15 ... This is the earliest date that works for transition.
        var minDateDayOfWeek = cal.GetDayOfWeek(new DateTime(year, transitionTime.Month, 1)); //the day for minDate
        int dayDiff = (transitionTime.DayOfWeek - minDateDayOfWeek + 7) % 7;
        int transitionDay = minDate + dayDiff;
        if (transitionDay > cal.GetDaysInMonth(year, transitionTime.Month))
            transitionDay -= 7;
        return new DateTime(year, transitionTime.Month, transitionDay, transitionTime.TimeOfDay.Hour, transitionTime.TimeOfDay.Minute, transitionTime.TimeOfDay.Second);
    }
    else
    {
        return new DateTime(year, transitionTime.Month, transitionTime.Day);
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @codtex
  • User mentioned (0): @stritch000
  • User mentioned (0): @stritch000
  • Low reputation (1):
Posted by: ericcan

79182396

Date: 2024-11-12 19:02:56
Score: 1.5
Natty:
Report link

Turns out that I had a rogue tab related to a work project.

Normally, stopping the dev server closes all related tabs. . . except maybe it didn't, and that remaining tab kept polling for the server. So when I started a new server for a different proj, it was polling on the same port and getting 404s back.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: monsto

79182379

Date: 2024-11-12 18:56:54
Score: 3
Natty:
Report link

try adding ignore scripts --> "npm i node-sass --ignore-scripts"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: RevathiK

79182376

Date: 2024-11-12 18:56:54
Score: 0.5
Natty:
Report link

You don't need to use .tabViewStyle(.page(indexDisplayMode: .never)) modifier to achieve this, you can do this by binding the selectedTab with TabView.

struct ContentView: View {

  @State var selectedTab = 0

  var body: some View {
    ZStack(alignment: .bottom) {
        TabView(selection: $selectedTab) {
            HomeView(page: 0)
                .tag(0)
            
            HomeView(page: 1)
                .tag(1)
            
            HomeView(page: 2)
                .tag(2)
            
            HomeView(page: 3)
                .tag(3)
            
            HomeView(page: 4)
                .tag(4)
        }
        
        RoundedRectangle(cornerRadius: 25)
            .frame(width: 350, height: 70)
            .foregroundColor(.white)
            .shadow(radius: 0.8)

        HStack {
            ForEach(0..<5, id: \.self) { index in
                    Button {
                        selectedTab = index
                    } label: {
                        CustomTabItem(imageName: "cross", title: "Item \(index)", isActive: (selectedTab == index))
                    }
            }
        }
        .padding(.horizontal, 30)
        .frame(height: 70)
    }
  }

  @ViewBuilder func CustomTabItem(imageName: String, title: String, isActive: Bool) -> some View{
    VStack(alignment: .center) {
        HStack(alignment: .center) {
            Spacer()
            Image(systemName: imageName)
                .resizable()
                .renderingMode(.template)
                .foregroundColor(isActive ? .purple : .gray)
                .frame(width: 25, height: 25)
            Spacer()
        }
        Text(title)
            .foregroundColor(isActive ? .purple : .gray)
    }
  }
}

struct HomeView: View {

  var page: Int

  var body: some View {
    NavigationView {
        VStack {
            NavigationLink(destination: HomeDetailView()) {
                Text("Tab \(page) is selected")
            }
        }
        .background(.red)
    }
    .navigationViewStyle(.stack)
  }
}

struct HomeDetailView: View {
  var body: some View {
    Rectangle()
        .fill(.orange)
  }
}

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Akash Gupta

79182370

Date: 2024-11-12 18:53:53
Score: 3.5
Natty:
Report link

May I add an additional scenario to discuss in this thread?

  1. take snapshot A of the EBS volume

  2. add some data/file and change empty blocks on the EBS volume

  3. delete/remove data/file from the EBS volume

  4. take snapshot B of the EBS volume

Are changed blocks from step 2 switched to empty ones and they are not included into the snapshot B OR they are considered as changed and are included in the snapshot B although they are empty?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Ionel Dinu

79182368

Date: 2024-11-12 18:51:53
Score: 2
Natty:
Report link

There's a simpler solution I believe that I found in this medium article: https://kulembetov.medium.com/preventing-flash-of-unstyled-content-fouc-in-next-js-applications-61b9a878f0f7

Basically, it consists of adding visibility: hidden; to the body element by default and then adding the visibility back client side once the main layout has mounted (like so for instance: document.body.classList.add('body-visible');

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Faris Marouane

79182363

Date: 2024-11-12 18:49:52
Score: 2
Natty:
Report link

If you are using NewtonsoftJson, make sure to add Nuget package reference to Microsoft.AspNetCore.Mvc.NewtonsoftJson also.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Nitheesh George

79182352

Date: 2024-11-12 18:44:50
Score: 1
Natty:
Report link

I am also on Windows. I use --force-polling and it works. I got the solution from this Github issue

This flag forces Liquid to use polling rather than inotify. So, note that it is more CPU intensive.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: putawanDE

79182345

Date: 2024-11-12 18:40:50
Score: 2.5
Natty:
Report link

I faced this issue and was able to resolve it by updating my typescript version; I'm now currently using "typescript": "^5.6.3". Try that and see if it works. Good luck!

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrew D.

79182335

Date: 2024-11-12 18:36:49
Score: 3
Natty:
Report link

It is unprofessional that only 15 days have passed between the announcement of the deprecation of the functionality and its removal.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gabriel Alfredo Aros Garay

79182332

Date: 2024-11-12 18:35:48
Score: 4
Natty: 4
Report link

You need a the micro python from pimoroni to work with the GFX PACK

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28265806

79182330

Date: 2024-11-12 18:33:45
Score: 6 🚩
Natty:
Report link

I can only use REST API's to use instance_config to exclude fields. It is still not working with Python APIs. Would appreciate someone's help as there is no code samples for this feature from Vertex AI.

Reasons:
  • Blacklisted phrase (2): still not working
  • Blacklisted phrase (1.5): Would appreciate
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rishikesan Ravichandran

79182311

Date: 2024-11-12 18:26:43
Score: 2.5
Natty:
Report link

go to : Control Panel -> Credential Manager -> Generic Credentials

choose the edit option and update your "User name" and "Password"

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Saravanan B S

79182300

Date: 2024-11-12 18:23:43
Score: 3.5
Natty:
Report link

Check if you have mySQL installed and not just the workbench

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: urmomjei