79171271

Date: 2024-11-08 19:10:34
Score: 2.5
Natty:
Report link

Thank you for the explanation. It works flawlessly. I have a small addition.

The method 'GeteBayDetails' for SiteId 77 (Germany) fails because the ENUM member 'COD' is missing in the enum BuyerPaymentMethodCodeType. Just add it, and then the call goes through without exception

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nesh

79171266

Date: 2024-11-08 19:09:34
Score: 1
Natty:
Report link

The best architecture to do this looks like a CDN or image proxy in front of S3 that allows for the signing and possibly even the encryption of URLs sent to the client. You are right to want to avoid sending the whole file by downloading it and passing it on to the client.

See imgproxy, an open source image proxy that enables resizing of images, signing and encrypting image URLs, serving images from an S3 bucket and more. There are alternatives that do similar things too.

If it were me, I'd use a server side implementation that encrypts/signs the URL and passes it to the client. I'd configure the headers on the response from the image proxy to determine how long the browser should cache the image.

I found this helpful blog post describing a basic set up of this kind of flow.

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

79171262

Date: 2024-11-08 19:07:33
Score: 5.5
Natty:
Report link

I am facing the same issue. Can not see lldb-vscode in debugger option. Any support would help.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: vineet yagnik

79171258

Date: 2024-11-08 19:06:33
Score: 1
Natty:
Report link

Move Multiple Files on FormSubmit

I modified your code this can now handle and move multiple files on formsubmit.

Here's the code:

function onFormSubmit(e) {

  const responses = e.values;
  const companyName = responses[1];
  const logoFileId = responses[2];
  const photoFileId = responses[3];
  const videoFileId = responses[4];

  const parentFolderId = 'paste-parent-folder-id-here';
  const parentFolder = DriveApp.getFolderById(parentFolderId);
  const companyFolder = parentFolder.createFolder(companyName);

  extractFileId(logoFileId, `${companyName}_Logo`);
  extractFileId(photoFileId, `${companyName}_Photo`);
  extractFileId(videoFileId, `${companyName}_Video`);

  function extractFileId(url, name) {
    const data = url;
    if (data.includes(',')) {
      const splitedData = data.split(',');
      for (let i = 0; i < splitedData.length; i++) {
        moveAndRenameFile(splitedData[i].split("=")[1], name)
      }
      return
    } else if (!data) {
      console.log("No Action taken");
      return;
    }
    moveAndRenameFile(data.split("=")[1], name)
    return
  }


  function moveAndRenameFile(fileId, newName) {
    try {
      if (fileId) {
        Logger.log(`Attempting to move file ID: ${fileId}`);
        const file = DriveApp.getFileById(fileId);
        file.setName(newName);
        file.moveTo(companyFolder);
      }
    } catch (error) {
      Logger.log(`Error with file ID ${fileId}: ${error.message}`);
    }
  }

}

Here is how you create a form question with attach multiple files.

Sample 1

Sample Output

Lime Husky

Lime Husky Child Folder

Lime Husky Child Folder Output


References:

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

79171249

Date: 2024-11-08 19:05:32
Score: 1.5
Natty:
Report link

Check you java configuration of the project and the java configuration of gradle. Should be the same and works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Diego Virgüez

79171248

Date: 2024-11-08 19:04:32
Score: 1
Natty:
Report link

For windows my solution was to add your root directory with setChroot:

$dompdf->getOptions()->setChroot('d:\\www');
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lisandro

79171247

Date: 2024-11-08 19:04:32
Score: 1.5
Natty:
Report link

OPFS cache only works with HTTPS. It doesn't work if the browser is communicating over HTTP.

Is the IIS server, serving the webpage via HTTP ? If so, then OPFS will fail.

Reconfig IIS Server, to host an HTTPS endpoint and OPFS will re-activate.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: michael beale

79171243

Date: 2024-11-08 19:01:31
Score: 2.5
Natty:
Report link

If you need to position an element that is relative to your parent element, then you need to specify not 'fixed' but 'absolute' then the element will be located relative to the parent element.

enter image description here If your content will simply be located in the middle of the block with a fixed position, then it is enough to add indents through "padding'enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Denis Zhuzhkov

79171242

Date: 2024-11-08 19:01:31
Score: 1.5
Natty:
Report link

Does making the argument a generic parameter instead work for you?

So something like this:

abstract class BaseClass {
  public abstract userAuth<
    TResponse extends MyResponse = MyResponse,
    TError extends unknown = unknown
  >(): TResponse | UIError<TError>;
}

class TestClass extends BaseClass {
  public userAuth<
    TResponse extends MyResponse = MyResponse, TError extends unknown = unknown>(): TResponse | UIError<TError> {
      throw new Error("Method not implemented.")
  }
}
Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Eri

79171238

Date: 2024-11-08 18:58:30
Score: 3
Natty:
Report link

This has been happening to me recently as well - no idea why. Closing Chrome and restarting seems to fix it, though.

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

79171235

Date: 2024-11-08 18:55:29
Score: 1
Natty:
Report link

Those parameter are used as changelog parameters, not liquibase parameters: that's why they are not working. You would need to set this in the scope, but I don't see a way to do it in CDI.

Maybe you could set the ResourceAcessor and tame it to your needs. I guess CDI uses the DirectoryResourceAcessor but you could create one that better suits your needs, like SearchPath used in Maven plugin.

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

79171234

Date: 2024-11-08 18:55:29
Score: 0.5
Natty:
Report link

Well, upon reading some unrelated things from SO for another problem, I stumbled upon a reference to the android:windowSoftInputMode="adjustResize" being used in the <activity> tag instead of the <application> tag.

Moving from the application tag to the activity tag fixed all my issues 😭

Hopefully this helps someone in the future to not do the same newbie mistake as me!

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rui Almeida

79171218

Date: 2024-11-08 18:50:26
Score: 7 🚩
Natty: 4.5
Report link

very good. work fine with WIN 11, Visual Studio 2022 , vb windows form. do you have an update specific for win11?

Reasons:
  • RegEx Blacklisted phrase (2.5): do you have an
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Massimo GIAMMATTEI

79171214

Date: 2024-11-08 18:48:25
Score: 1.5
Natty:
Report link

I usually do

$ cd <where Project.toml lives>
$ julia --project=. test/runtests.jl
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stepan Zakharov

79171206

Date: 2024-11-08 18:45:24
Score: 1
Natty:
Report link

Late to the party, but I'm writing my Bachelor Thesis on this subject and developed a Python module that acts as a subscriber-publisher (using Paho-MQTT library to do so) with a multithreaded interface to do exactly this. I'm also writing a Mosquitto native plugin in C++ to do the same thing within the broker, without the need of sending your data to an external client. It's all very rough because I'm no such expert programmer, with many issues, but it works and the basic idea is there if anyone wants to take a look. Also, check HiveMQ, I think they implemented something similar in their broker software.

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

79171199

Date: 2024-11-08 18:43:23
Score: 4.5
Natty: 4
Report link

nah, just ignore it maaan, it's fine

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

79171197

Date: 2024-11-08 18:41:23
Score: 3.5
Natty:
Report link
    String[][] matrix = new String[][]{
            {"", "why ", "did ", "I ", "lose ", "reputation ", " ", ""},
            {"", "points ", "for ", "this ", "question? ", "(dk)", "", ""}};

    Arrays.stream(matrix, 0, 2)
            .flatMap(s -> Arrays.stream(s, 1, 7))
            .forEach(System.out::print);
}

why did I lose reputation points for this question? (dk)

Reasons:
  • RegEx Blacklisted phrase (1.5): reputation
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): why did I
  • Low reputation (1):
Posted by: Dominic J

79171193

Date: 2024-11-08 18:40:20
Score: 10.5 🚩
Natty: 6.5
Report link

were you able to solve this ? I am stuck in a similar situation where i can see the audio buffer in the backend getting transmitted to aws transcribe but getting empty results array.

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (1.5): I am stuck
  • RegEx Blacklisted phrase (1.5): solve this ?
  • RegEx Blacklisted phrase (3): were you able
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sarthak

79171190

Date: 2024-11-08 18:38:19
Score: 0.5
Natty:
Report link

Do you see following warning in your build log?

[WARNING]: !Failed to set up process.env.secrets

Secrets in AWS amplify are very confusing with Gen1 vs Gen1, Frontend vs Backend, build-time vs run-time.

I found that this works:

plus you also need and IAM Service role with permissions to read from SSM parameter store, namely ssm:GetParametersByPath.

See this immensely helpful comment on github issue:

If you did everything right, you shouldn't see that warning in the build log.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Trane9991

79171181

Date: 2024-11-08 18:34:18
Score: 1
Natty:
Report link

Very simply, there is a major difference between alter and drop/create. Without getting into details this comes down to the way that database pages work at a structural level. Some changes (adding a column) can be done using alter as long as you understand that the new column will most likely end up on a different page from the rest of the table. Other changes (inserting a column) must drop and create so that the new column can be placed on the correct page to be in the correct order. Either way, Drop / Create is the best way to ensure that at that you don't end up with fragmentation at the page level. It's the cleanest and most efficient way to make table changes.

This also brings up a very important piece of advice: Script everything, test, test and retest before you roll anything to production!!

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

79171176

Date: 2024-11-08 18:32:17
Score: 0.5
Natty:
Report link

When creating a Game object with games = Game('Alex', 'heads', 3), the parameters should be instances of Player, Coin, and Dice, not strings.

Also, the play method in the Game class runs a loop for 20 turns, but the return statement immediately exits after the first turn. The return should be moved outside the loop to return the final position after 20 turns.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Shreyas Salankimatt

79171171

Date: 2024-11-08 18:29:17
Score: 3
Natty:
Report link

In this case it turned out to be an extension called indent-rainbow, not a built in VS Code setting!

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

79171168

Date: 2024-11-08 18:28:17
Score: 3.5
Natty:
Report link

For anyone having this problem, it seems it was inherent to the downloadable tinyMCE from version 6.4 through the latest 7.5, where the size is again what it should be.

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

79171159

Date: 2024-11-08 18:25:15
Score: 2
Natty:
Report link

use VSHarpoon extension, this will let you create multiple groups of 10 tabs, eg; group 1 has 10 tabs, group 2 has 10 tabs and so on. you also will be able to jump each to tab with keybinding. quite fast and enjoyable

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

79171158

Date: 2024-11-08 18:24:15
Score: 1.5
Natty:
Report link

If your reading a large json object like a geojson feature collection use JSON.parse on the object prior to use

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Cliff Njoroge

79171147

Date: 2024-11-08 18:19:13
Score: 1
Natty:
Report link

As few people have already suggested, this happens due to JEP 451. Allowing the dynamic loading of agents using the -XX:+EnableDynamicAgentLoading option is not a good solution. It just masks the problem. And even if you allow it for some reason, you should really avoid loading agents dynamically anyway. Upcoming versions of Java will get you in trouble this way.

Instead, following the Mockito's guide (in case you are using Mockito, of course), you can load the agent properly (and yes, you can directly load mockito-core as an agent, no need to load byte-buddy-agent in this case; the error message might be a little misleading). If you are not using Mockito, the process is the same, just point at the agent that needs to be loaded according to the error message (e.g. net.bytebuddy:byte-buddy-agent:jar).

From your question I see your problem is with IntelliJ. The above solution fixes the problem only when you use a build tool to run your tests (e.g. when you run mvn test on the command line), but if you want to just click on the green arrow on the left side of your test and run it from there, the message will still be present. The reason is that this way you execute directly the java command and the build tool is not involved at all. A way to mitigate this is to update your run configuration by appending to the VM options filed the -javaagent property (usually, you will already have -ea set there).

The catch here is that since you are not using a build tool, you can't get automatically the path to the agent's JAR, like you would have it otherwise (e.g. ${org.mockito:mockito-core:jar} in case of Maven + Mockito). Instead, you can do this:

-javaagent:$MAVEN_REPOSITORY$/org/mockito/mockito-core/5.14.2/mockito-core-5.14.2.jar

Unfortunately, as you can see, you need to point to a specific Mockito version since you can't know at this point the version used by your build tool.

Another catch is that you need to use this specific run configuration to run your test. If you click instead on the green arrow on the left side of the test class/method, IntelliJ will create a new run configuration that doesn't have your VM option set. I am not sure off the top of my head if the option could be set globally in the IntelliJ's settings, so that it is present every time a new run configuration is created. If someone knows a way, please share.

I know this is not the best approach, but on the good side, this is just a problem in the IDE. I really hope the folks from JetBrains come up with a solution for this.

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Radoslav Stoyanov

79171144

Date: 2024-11-08 18:17:12
Score: 0.5
Natty:
Report link

This error is thrown when xarray is unable to import dask, which almost certainly means that dask is not properly installed in your environment. You should try all the suggestions for re-installing dask and its dependencies using your preferred package manager.

The accepted answer should not be to downgrade xarray - that's not necessary.

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

79171140

Date: 2024-11-08 18:15:12
Score: 4
Natty: 5
Report link

I would like to know how I can insert a curly bracket in a legend to gather the data in specific categories. Something like:

Reasons:
  • Blacklisted phrase (1.5): I would like to know
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Fiore

79171125

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

I think you want to search for tools to simulate network traffic / jitter / drops. There are quite a few hits on a quick web search.

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

79171117

Date: 2024-11-08 18:08:09
Score: 1
Natty:
Report link

If there are rows in the table that have a colspan set to a value greater than 1, you may need to add the same colspan to the <td> tag containing the image

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: ekcrisp

79171108

Date: 2024-11-08 18:02:08
Score: 1.5
Natty:
Report link

The likely way to start understanding to what I am asking is to learn:

Configuration in ASP.NET Core and Use multiple environments in ASP.NET Core

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: pepr

79171099

Date: 2024-11-08 17:58:07
Score: 0.5
Natty:
Report link

I found the solution!

If the metadata and screenshots are located in the default folders and the paths to the default folders are set in the Fastfile like I did, the upload does not work, but Fastlane does not notice this.

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Thomas

79171097

Date: 2024-11-08 17:57:07
Score: 3
Natty:
Report link

You can achieve this with Gitlab's custom collapsible sections

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Tate Thurston

79171072

Date: 2024-11-08 17:51:05
Score: 3.5
Natty:
Report link

It came up with tonnes of nonsense but it did kill the process C:\WINDOWS\system32>taskkill /im TiWorker.exe /f SUCCESS: The process "TiWorker.exe" with PID 5420 has been terminated.

C:\WINDOWS\system32>net stop wuauserv /y The Windows Update service is stopping. The Windows Update service could not be stopped.

C:\WINDOWS\system32>rmdir "%systemroot%\SoftwareDistribution\Download" /s /q C:\WINDOWS\SoftwareDistribution\Download\8E3CAC~1\Metadata\UpdateAgent.dll - Access is denied.

C:\WINDOWS\system32>del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat" /s /f /q Could Not Find C:\ProgramData\Application Data\Microsoft\Network\Downloader\qmgr*.dat

C:\WINDOWS\system32>cleanmgr /sageset:65535 & cleanmgr /sagerun:65535 this is what it came up with is this bad?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Dan

79171057

Date: 2024-11-08 17:47:03
Score: 5.5
Natty:
Report link

I have followed the steps to the dot. But I am getting Address not found error. How did you create the connections using service principal? enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Mohtasim Mapkar

79171055

Date: 2024-11-08 17:46:03
Score: 3
Natty:
Report link

I have same issue and I am on

I created new SO at IntelliJ - modifying <groupId> in maven pom.xml to contain a variable shows "Properties in parent definition are prohibited"

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have same issue
  • High reputation (-2):
Posted by: pixel

79171042

Date: 2024-11-08 17:41:02
Score: 2
Natty:
Report link

You can't.

This feature has been removed in 0.9.0: https://github.com/gephi/gephi/releases/tag/v0.9.0

Remove ClusteringAPI from codebase. It needs a complete rewrite.

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

79171038

Date: 2024-11-08 17:39:01
Score: 1
Natty:
Report link

It's the Bundle ID you're looking for. No fingerprints required for iOS. See https://firebase.google.com/docs/ios/setup for instructions.

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

79171033

Date: 2024-11-08 17:38:01
Score: 1.5
Natty:
Report link
Better example of using HTMLemail formatting 

``######################################################################### ## PowerShell Script: # #########################################################################

#Global Variable Section
#########################################
#Email Variables
$emailTo = "test.org"
$emailFrom = "test.org"
$smtpServer = "Mail.test.org" 
$message = ""
$subject = "J-Summary"
$message = ""

#Default Summary Variables; Set to Zero/Blank
$totalDollar = 0
$totalAccptDollar = 0
$numTrans = 0
$numAccptTrans = 0
$batchNum = ""
$transDetail = ""

#HTML Header Variables
$Header1 = "J "
$Header2 = "EC OPERATIONS"
$Header3 = " ALIDATION STATUS REPORT"

#File Path Section
#########################################
# Specify the path to EDI 820/824/997 Files
$filePath820 = "C:\Users\test\Desktop\Chase-Summary_Files\JPM820.outb*"
$filePath824 = "C:\Users\test\Desktop\Chase-Summary_Files\Chase_SH_AP_824_*"
$filePath997 = "C:\Users\test\Desktop\Chase-Summary_Files\Chase_SH_AP_997_*"
$archiveFolder = "C:\Users\test\Desktop\Chase-Summary_Files\_Archive\"

# Read the content of the Summary file
$content820 = Get-Content -Path $filePath820 -Raw
$content824 = Get-Content -Path $filePath824 -Raw
$content997 = Get-Content -Path $filePath997 -Raw

#Remove Line Feeds from EDI File Used For Easier Processing/Parsing Logic
$content820 = [string]::join("",($content820.split("`n")))
$content824 = [string]::join("",($content824.split("`n")))
$content997 = [string]::join("",($content997.split("`n")))

#HTML Compiler Section
#########################################
#Build Header HTML Section
$rptHeader = @"
<html>
<body>
<center><strong>$($Header1)</strong></center>
<center><strong>$($Header2)</strong></center>
<center><strong>$($Header3)</strong></center>
<br>
"@

#Build Footer HTML Section
$rptFooter = @"
</table>
<br>
<br>
STATUS(ST): TA=ACCEPTED TC=ACCEPTED W/CHANGE TE=ACCEPTED W/ERROR TR=REJECTED
<br>
<br>
<br>
IF YOU HAVE ANY QUESTIONS, PLEASE OPEN A SERVICENOW INCIDENT
ASSIGNED TO <strong>APP-BUSINESS-MATERIALS MANAGEMENT</strong>
<br>
<center>*****END OF REPORT*****</center>
</body>
</html>
"@

#EDI Reader Section to Finalize HTML Compiler
#########################################
#Read EDI 820 File (Used to Gather Total Received Number of Transactions and Dollar Amount)
$ediSegments = $content820 -split "\\"
##Parse Through Fields of Section and Get Total Dollar Amount Sent For All Transactions Regardless of Status For Summary Line
for ($s = 0; $s -lt $ediSegments.Count; $s++) {
    $ediSummarySegment = $ediSegments[$s] -split "\*"
    
    #Calculate Total Dollar Amount By Collecting Amount From Each Read BPR Section
    if ($ediSummarySegment[0] -eq "BPR") {
        $totalDollar = $totalDollar + $ediSummarySegment[2]
    }
    #Collect Total Number of Transactions From the GE Section
    elseif ($ediSummarySegment[0] -eq "GE") {
        $numTrans = $ediSummarySegment[1]
    }
}

#Read EDI 824 File (Used to Gather Total Processed Number of Transactions and Dollar Amount)
$ediSegments = $content824 -split "\\"
##Parse Through Fields of Section and Get Total Number of Accepted Dollar Amount and Accepted Transactions
for ($e = 0; $e -lt $ediSegments.Count; $e++) {
    $ediSummarySegment = $ediSegments[$e] -split "\*"

    #Calculate Total Dollar Amount By Collecting Amount From Each Read AMT Section
    if ($ediSummarySegment[0] -eq "AMT") {
        $totalAccptDollar = $totalAccptDollar + $ediSummarySegment[2]
    }
    #Collect Total Number of Transactions From the GE Section
    elseif ($ediSummarySegment[0] -eq "GE") {
        $numAccptTrans = $ediSummarySegment[1]
    }
}

#Parse Through Fields of Section
for ($i = 0; $i -lt $ediSegments.Count; $i++) {
    $ediSegment = $ediSegments[$i] -split "\*"

    #Collect and Format Date Value From the ISA Section
    if ($ediSegment[0] -eq "ISA") {
        $Customer = $ediSegment[8].TrimEnd()
        $Date = $ediSegment[9]
        $FormatDate = "$($Date.Substring(2,2))/$($Date.Substring(4,2))/$($Date.Substring(0,2))"
        $Time = $ediSegment[10]
        $FormatTime = "$($Time.Substring(0,2)):$($Time.Substring(2,2))"

        #Create Report Info Table
        $rptInfo = @"
<table border="0">
<tr><td>Customer ID: $($Customer)</td><td>&nbsp;</td><td>$($FormatDate) $($FormatTime) PT</td></tr>
</table>
<br>
"@
    }
    elseif ($ediSegment[0] -eq "ST") {
        $ediType = $ediSegment[0] -split "\*"    
    }
    elseif ($ediSegment[0] -eq "BGN") {
        #Collect Batch Number and Build Summary Table Section Based on First Collected Occurrence; Ignore All Other Values As They Would Be Duplicating This Section
        if ($batchNum -eq "") {
            $batchNum = $ediSegment[2]
                
            #Create Summary Table For First Time - Include Table Header
            $rptSummary = @"
<table border="1">
<tr><th>FILE# / BATCH#</th><th>AMOUNT</th><th># TRANS</th><th>STATUS</th></tr>
<tr><td>$($batchNum)</td><td>$($totalDollar)</td><td>$($numTrans)</td><td>TRANS RECEIVED</td></tr>
<tr><td>$($batchNum)</td><td>$($totalAccptDollar)</td><td>$($numAccptTrans)</td><td>TRANS ACCEPTED</td></tr>
</table>
<br>
"@
        }
    }
    elseif ($ediSegment[0] -eq "OTI") {
        #Collect and Format Date Value
        $effDate = $ediSegment[6]
        $effFormatDate = "$($effDate.Substring(4,2))/$($effDate.Substring(6,2))/$($effDate.Substring(0,4))"

        #Collect Transaction Detail and Build Detail Table and Rows Based on Each OTI Section Found in EDI File
        if ($transDetail -eq "") {
            #Create Transaction Detail Table For First Time - Include Table Header
            $transDetail = @"
<table border="1">
<tr><th>ST</th><th>TRANS #</th><th>TRACE #</th><th>EFF DATE</th><th>AMOUNT</th><th>MESSAGE</th></tr>
<tr><td>$($ediSegment[1])</td><td>$($ediSegment[9])</td><td>$($ediSegment[3])</td><td>$($effFormatDate)</td>
"@
        }
        #Build Additional Table Rows
        else {
        $transDetail = $transDetail + 
 @"
<tr><td>$($ediSegment[1])</td><td>$($ediSegment[9])</td><td>$($ediSegment[3])</td><td>$($effFormatDate)</td>
"@
        }
    }
    #Append Amount Value as Last Column in Row
    elseif ($ediSegment[0] -eq "AMT") {
        if ($transDetail -ne "") {
            $transDetail = $transDetail + "<td>$($ediSegment[2])</td><td></td></tr>" + "`r`n"
        }
    }
}

#Reset Variables to Avoid Duplication of Displayed Data
$errDetail = ""
$errReport = ""

#Read 997 EDI File (Used to Gather Total Number of Errored Transactions and Dollar Amounts)
$ediSegments = $content997 -split "\\"

#Parse Through Fields of Section
for ($i = 0; $i -lt $ediSegments.Count; $i++) {
    $ediSegment = $ediSegments[$i] -split "\*"
    
    #Collect Transaction Error Detail and Build Detail Table and Rows Based on Each AK2 Section Found in EDI File
    if ($ediSegment[0] -eq "AK2") {
        if ($errDetail -eq "") {
            #Create Transaction Error Detail Table For First Time - Include Table Header
            $errDetail = @"
<table border="1">
<tr><th>TRANS #</th><th>MESSAGE</th></tr>
<tr><td style="color:red"><strong>$($ediSegment[2])</strong></td><td style="color:red"><strong>TRANSACTION NOT ACCEPTED</strong></td></tr> `r`n
"@
        }
        #Build Additional Table Rows
        else {
            $errDetail = $errDetail + 
 @"
<tr><td style="color:red"><strong>$($ediSegment[2])</strong></td><td style="color:red"><strong>TRANSACTION NOT ACCEPTED</strong></td></tr> `r`n
"@
        }
    }
}

#Check If Error Detail Data Exists
if ($errDetail -eq "") {
    #Display Default Message to Customer Alerting No Errors Exist
    $errReport = @"
<br>
No Errors Exist.
<br>
"@
}
else {
    #Append Built Transaction Error Table to End Table Tag
    $errReport = @"
$($errDetail)
</table>
<br>
"@
}

#Build Email Message Body Section
#########################################
#Compile HTML Code
$body = @"
$($rptHeader)
$($rptInfo)
$($rptSummary)
$($errReport)
$($transDetail)
$($rptFooter)
"@

#Build Email Notification Section
#########################################
$message = $body
$anonUsername = "anonymous"
$anonPassword = ConvertTo-SecureString -String "anonymous" -AsPlainText -Force
$anonCredentials = New-Object System.Management.Automation.PSCredential($anonUsername,$anonPassword)
Send-MailMessage -smtpserver "$smtpServer" -from "$emailFrom" -to "$emailTo" -subject "$subject" -body "$message" -BodyAsHtml -credential $anonCredentials 

#Cleanup EDI File Section
#########################################
#Move Files to Archive Directory
Move-Item -Path $filePath820 -Destination $archiveFolder
Move-Item -Path $filePath824 -Destination $archiveFolder
Move-Item -Path $filePath997 -Destination $archiveFolder
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (2):
  • Filler text (0.5): #########################################################################
  • Filler text (0): #########################################################################
  • Low reputation (0.5):
Posted by: Configueroa

79171030

Date: 2024-11-08 17:37:00
Score: 2.5
Natty:
Report link

U can try to make foreign relation with both tables and when u delete relation from table where is exists many to many relation, u can easily see that in both tables matched rows are deleted

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

79171023

Date: 2024-11-08 17:35:00
Score: 2
Natty:
Report link

Check the permission for Users-permissions in API Tokens there should be allowed to find users.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alexander Timofeyev

79171013

Date: 2024-11-08 17:31:59
Score: 0.5
Natty:
Report link

Here's a straightforward bash script to flatten just one level of directories while keeping deeper subfolders intact. You can save as flatten-one-level.sh

#!/bin/bash

for dir in */; do
    if [ -d "$dir" ]; then
        echo "Processing directory: $dir"
        for file in "$dir"*; do
            if [ -f "$file" ]; then
                mv "$file" .
            fi
        done
        rmdir "$dir" 2>/dev/null || true
    fi
done

To make the script executable and run it:

chmod +x flatten-one-level.sh

Hope it will be helpful. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alen Schmitt

79171007

Date: 2024-11-08 17:28:58
Score: 2.5
Natty:
Report link

Failure [DELETE_FAILED_USER_RESTRICTED] Failure [DELETE_FAILED_USER_RESTRICTED] Success Failure [INSTALL_FAILED_VERSION_DOWNGRADE: Downgrade detected: Update version code 2217 is older than current 8942] ❌

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

79170989

Date: 2024-11-08 17:23:56
Score: 1.5
Natty:
Report link

Does the JVM allocate memory for the entire array length * 4 bytes, i.e. 4000 bytes after the above statement

Java will do it as you say, and one more thing is that the memory needs to be contiguous. Because the data of arrar is consecutive, it is necessary to fully allocate it when initializing the array, if there is no contiguous memory, out of mem will occur.

Some space will be needed for the array itself, but it's only about 4 to 8 bytes

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Thành Lê

79170956

Date: 2024-11-08 17:09:52
Score: 2.5
Natty:
Report link

In response to silver-soul CommentedJul 9 at 16:36 on Papanito post. "Please do note that {theredirectURL} needs to be encoded , otherwise the error mentioned by @papanito in the comments does occur"

Would you happen to have an example of an encoded {theredirectURL} ? I'm in the same situation with my URL looking identical to the example provided by user papanito, except I get

  1. That’s an error.

The server cannot process the request because it is malformed. It should not be retried. That’s all we know.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @papanito
  • Low reputation (1):
Posted by: BobDanburg

79170951

Date: 2024-11-08 17:08:52
Score: 1.5
Natty:
Report link

Don't forget a comma between classes. This should be:

.foo,.bar {
  /* style details */
}

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

79170940

Date: 2024-11-08 17:03:51
Score: 1.5
Natty:
Report link

You are using and modifying pool->waiting_in_queue but where are you assigning it an initial value?

Also if sdm_threadpool and the other types like it are custom structures please include the definition of those structures.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tanmeet Singh Chhabra

79170936

Date: 2024-11-08 17:01:51
Score: 1
Natty:
Report link
$specificationIds = array_filter(array_column($request->specification, 'id'), function($value) {return !empty($value);});

$specification = ProductSpecification::whereIn('id', $specificationIds)->get();
if(count($specification) > 0){
$specification->delete();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mahesh Kumar Saini

79170930

Date: 2024-11-08 16:59:50
Score: 2
Natty:
Report link

After making changes to the configuration or dependencies, it's always a good idea to clear the npm cache and reinstall everything:

rm -rf node_modules rm package-lock.json npm install

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

79170921

Date: 2024-11-08 16:57:49
Score: 0.5
Natty:
Report link

You need to return the result of func(a, b) within the isNumeric function. Currently, nothing is returned.

Corrected:

def decoratorIsNumber(func):
    def isNumeric(a, b):
        a = a if str(a).isnumeric() else 0
        b = b if str(b).isnumeric() else 0
        return func(a, b) 
    return isNumeric
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: EuanG

79170920

Date: 2024-11-08 16:57:49
Score: 5
Natty:
Report link

As @MatsLindh said in the comments, the problem was due to the UTF-8 BOM and was solved by simply removing it.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @MatsLindh
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jonathan Gómez Pérez

79170913

Date: 2024-11-08 16:53:47
Score: 1.5
Natty:
Report link

I also had this issue. One minute the code was working, the other it wasn't.

This error occurs when there is no workbooks opened (Workbooks.Count = 0). You need to add a dummy Workbook in order to add the AddIn.

I ended up finding the solution to this question in another post (with a code example). I leave my reply here as I found this post first.

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

79170911

Date: 2024-11-08 16:51:44
Score: 10.5 🚩
Natty:
Report link

how could you solve it?

I try to solve it using this post

https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/azure-ad-authentication-sql-server-linked-server?view=sql-server-ver16

Authentication with Microsoft Entra Password, Without success

enter image description here

I'm using this prvider string = "Server=<"enviromentname".crm4.dynamics.com,1433>;Authentication=ActiveDirectoryPassword" enter image description here

enter image description here

enter image description here

I am exhausting all options before using CData, but I download the free trial and test it success

If you have news about solutions, please tell me.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (2): could you solve
  • RegEx Blacklisted phrase (2.5): please tell me
  • RegEx Blacklisted phrase (1.5): solve it?
  • Probably link only (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): how
  • Low reputation (1):
Posted by: Diego Mesa

79170901

Date: 2024-11-08 16:49:43
Score: 2
Natty:
Report link

The same thing happened to me with error 0x80040402, and after trying to reinstall and update it didn't solve it. I was able to solve it by unchecking the box "Place the solution and the project in the same directory". This way, the new project was created correctly. (answer using translate)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hernan Pablo Toniutti

79170896

Date: 2024-11-08 16:47:41
Score: 11 🚩
Natty:
Report link

I'm having the same issue, any solution?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: GSFZamai

79170879

Date: 2024-11-08 16:40:38
Score: 3
Natty:
Report link

I now i'm a bit late, but maybe this little guide will help you out. It's not quite what you currently have, but it will get you through some general ideas how to pull this off.

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

79170862

Date: 2024-11-08 16:35:35
Score: 7.5 🚩
Natty: 3.5
Report link

Did you ever solve this @human.io

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever solve this
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: GCN Controller

79170854

Date: 2024-11-08 16:32:34
Score: 0.5
Natty:
Report link

It does not work with the extractors because you used the preprocessor (ColumnTransformer) to fit and transform. You can get them by specifying the step within the ColumnTransformer:

preprocessor["cat"].get_feature_names_out()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ranemak

79170852

Date: 2024-11-08 16:31:34
Score: 1.5
Natty:
Report link

The results of a query are discarded after 24 hours. Once a query has been evicted from the cache, trying to reuse the result in post-processing will result in the error you're seeing.

I was able to reproduce your scenario and observed the exact same results.

Since the current version of Snowpark Python is erroring out, they're likely attempting to use the cached results of the query instead of attempting to re-run the base query.

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

79170843

Date: 2024-11-08 16:30:33
Score: 1
Natty:
Report link

In my case, behind a proxy I had to provide a valid entry in the npm configuration file located at

%userprofile%\.npmrc

The line I had to include was

registry="http://specific.value.to.be.adapted/.../"

npm could then know where it's company specific repository was located and it started working as expected and downloaded the project dependency in a decent time.

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

79170841

Date: 2024-11-08 16:29:33
Score: 0.5
Natty:
Report link

To answer to comments asking to move only some settings to a custom file I found the file attribute that should help:

in web.config:

...
<appSettings file="otherSettings.config">
    <add key="owin:AutomaticAppStartup" value="false" />
    <add key="Environment" value="Test" />
</appSettings>

in otherSettings.config:

 <appSettings>
    <add key="Usuer" value="myUser" />
    <add key="Password" value="thePassword" />
 </appSettings>

I tried and the app reads both settings in the web.config file and in the otherSettings.config. HTH

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vjncenzo

79170833

Date: 2024-11-08 16:28:32
Score: 2.5
Natty:
Report link

UPDATE :

Manage to get it working with docker run --add-host=myapp1.test:host-gateway

Had some trouble getting my docker app fetching the data correctly because it's a secure link with unverified certificate, but

wget --no-check-certificate https://myapp1.test:443/

worked from inside the container!

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

79170825

Date: 2024-11-08 16:23:31
Score: 0.5
Natty:
Report link

If EAV would be the superior solution to everything (regarding database design) then why is there no database vendor that offers me just that engine with only three build in tables called Entity, Attribute and Value and we can skip all that cumbersome DDL like CREATE TABLE etc. It certainly would be much cheaper as there is far less to implement. Still Oracle and Microsoft SQL Server leave us out here in the cold or simply wont give up their old bad ways. Maybe they just dont like making money!!! The appealing fact that it is so flexible to so many developers comes at a heavy price. Typelessnes (or hard to implement), constraintless (or hard to implement except when you are a developer with 'RED' years of experience or are age minus 30, all entries that could have been avoided with constraints). EAVs perform horribly when the number of attributes exceeds a small amount as Hospitals and Magento found out.

For OP add these columns to the tables that need them or ask your self why you need them. If for auditing purposes this isnt very secure. Try to stick to more simple designs and proven designs.

For everyone involved in databses i really would recommend Bill Karwin's book. I bought it initially as "might be interesting, why not" but it turned out to be a must have.

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

79170822

Date: 2024-11-08 16:22:30
Score: 2.5
Natty:
Report link

Here's my 2 cents: Why not use YAML?

Code:

import os, yaml

bool(yaml.load(os.getenv(MY_VAR) or "", yaml.Loader))

Test:

for val, expected in {
    "yes": True,
    "no": False,
    "on": True,
    "off": False,
    "true": True,
    "false": False,
    "1": True,
    "0": False,
    "": False,
    None: False,
}.items():
    actual = bool(yaml.load(val or "", yaml.Loader))
    assert actual == expected
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Lariel

79170818

Date: 2024-11-08 16:21:30
Score: 2.5
Natty:
Report link

In that view's settings, ensure that Choice column is checked off. Then on the calendar view, you can format the view and that choice column should then be visible as an option, and you can color code from there. If you want a color that isn't in the default options, select anything and then you can edit the JSON to be any other color using proper color code: https://zerg00s.github.io/sp-modern-classes/

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

79170815

Date: 2024-11-08 16:20:30
Score: 0.5
Natty:
Report link

I solved it Entities.Graphics should be used with URP Forward+. Change Rendering Path on URP-HighFidelity-Renderer for best compatibility.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Javin Yang

79170810

Date: 2024-11-08 16:18:29
Score: 2.5
Natty:
Report link

Entities.Graphics should be used with URP Forward+. Change Rendering Path on URP-HighFidelity-Renderer for best compatibility.

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

79170805

Date: 2024-11-08 16:16:29
Score: 2.5
Natty:
Report link

Just create Statement 2 for ResultSet 2

Statement statement2 = connection.createStatement();

ResultSet resultSet2 = statement2.executeQuery("");

If you use Statement 1 for ResultSet 2, Connection is Closed Error comes.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Vivekraj Agathariruppu Pugalen

79170803

Date: 2024-11-08 16:16:29
Score: 3
Natty:
Report link

Indeed up persing omanova VPN Ip from Tanzania indeed help

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

79170793

Date: 2024-11-08 16:14:28
Score: 1.5
Natty:
Report link

Tha's seems correct you can't add users to admin group. Use the below REST API call to create or update the users. If you are the owner/creator of APIM instance then you can update your email under Notification template. This will allow any update the admin email

https://learn.microsoft.com/en-us/rest/api/apimanagement/user/create-or-update?view=rest-apimanagement-2024-05-01&tabs=HTTP

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Shailesh Tiwari

79170778

Date: 2024-11-08 16:10:28
Score: 1
Natty:
Report link

From this tailwind issue, with Firefox it actually needs to set the outline-style property when also setting the outline-color.

So it needs to explicitly add the tailwind class focus:outline as seen here https://play.tailwindcss.com/dDz1DnaYbm

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

79170777

Date: 2024-11-08 16:10:28
Score: 3.5
Natty:
Report link

¿Te gustaría que Analyticalpost destacara en periódicos digitales reconocidos como La Razón o MSN?

Trabajamos con empresas como la tuya que buscan ganar visibilidad y mejorar su reputación en internet. La aparición en medios digitales no solo te aportará mayor credibilidad, sino que también te permitirá:

Desde 195€, te ofrecemos la oportunidad de obtener esta exposición de alto valor. Además, garantizamos la devolución del dinero si no alcanzamos los resultados.

Si te interesa, me encantaría mostrarte algunos casos de éxito y hablar contigo sobre cómo podemos aplicar todo esto a Analyticalpost.

¿Me compartes tu número para coordinar una breve llamada? ¿Te iría mejor por las mañanas o por las tardes?

Quedo a la espera de tu respuesta.

Un saludo,

Reasons:
  • Blacklisted phrase (1): ¿
  • Blacklisted phrase (1): cómo
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Elena

79170776

Date: 2024-11-08 16:10:28
Score: 2.5
Natty:
Report link

This can be a pain. When I use the tool, it opens maximized to both my screens with no resize available. I simply re-click the icon, open a second PRT (which opens normal), then hover over the icon until both thumbnails appear, then right click close the giant one.

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

79170775

Date: 2024-11-08 16:10:28
Score: 3.5
Natty:
Report link

Checke you Contry Setting in your Sheet for EU you have to USE ; and not ,

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

79170773

Date: 2024-11-08 16:10:28
Score: 0.5
Natty:
Report link

I've just changed tabindex="-1" to tabindex="1" Then working properly

<div class="modal fade" id="userModal" tabindex="1" role="dialog" aria-labelledby="userModalLabel" aria-hidden="false" aria-busy="true" >
</div

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

79170769

Date: 2024-11-08 16:09:27
Score: 1.5
Natty:
Report link

Old post, new answer:

You can do exactly what you are asking (understanding the latency element of GCS buckets).

1 - Mount the GCS bucket as a volume with gcsfuse

https://cloud.google.com/storage/docs/cloud-storage-fuse/overview

2 - Set that mounted volume path as a git remote (yes a local directory can be a git remote from another directory on the same machine

How to add a local repo and treat it as a remote repo

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

79170755

Date: 2024-11-08 16:07:26
Score: 3
Natty:
Report link

Yes, you are absolutely right crs(temperature.utm) [1] "PROJCRS["WGS 84 / UTM zone 39N",\n BASEGEOGCRS["WGS 84",\n DATUM["World Geodetic System 1984",\n ID["EPSG",3

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

79170753

Date: 2024-11-08 16:06:26
Score: 1.5
Natty:
Report link

For me this problem appeared while trying to run an app on an iOS device (first appeared after adding a package, but persisted after removing the package dependency). I tried many things, but what finally resolved it was deleting the contents of the Xcode DerivedData directory. (I.e. Xcode -> Settings -> Locations, open DerivedData in Finder and delete its contents.)

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: jakobleck

79170752

Date: 2024-11-08 16:06:26
Score: 0.5
Natty:
Report link

what worked for my project in tinymce v7+ is adding to the initialization: newline_behavior: 'block', then modifying The editor content to wrap it inside divs ( for the existing messages on the website) :

setup: function (editor) {
        

  function wrapLinesInDivs(content) {
    const lines = content.split(/<br\s*\/?>|\n/);
    return lines.map(line => `<div>${line}</div>`).join('');
  }

  editor.on('init', function () {
    // Get the initial content as HTML
    let content = editor.getContent();
    // Wrap each line in a div
    let wrappedContent = wrapLinesInDivs(content);
    // Set the modified content
    editor.setContent(wrappedContent);
  });

},

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): what
  • Low reputation (1):
Posted by: Marouane Ao

79170748

Date: 2024-11-08 16:04:25
Score: 2.5
Natty:
Report link

I had the same problem. It looks like the feature has been reverted and is waiting for a new implementation (as of november 2024):

Relevant issue: https://gitlab.com/gitlab-org/gitlab/-/issues/468971

Merge revert: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167059

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Unprex

79170747

Date: 2024-11-08 16:03:25
Score: 1
Natty:
Report link

I encountered this issue when deploying my .Net Core app to an Azure Function. Setting the WEBSITE_TIME_ZONE environment variable solved it for me. For more information see the documentation here

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: S. Rasmussen

79170745

Date: 2024-11-08 16:03:24
Score: 4.5
Natty: 5
Report link

same issue with nextjs v15. clear cache does not work.

Reasons:
  • RegEx Blacklisted phrase (1): same issue
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Henry Zhang

79170720

Date: 2024-11-08 15:56:22
Score: 3
Natty:
Report link

i think it should be just: x.responseJSON.error and x.responseJSON.error_description

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

79170717

Date: 2024-11-08 15:56:22
Score: 4
Natty:
Report link

Evidence main branch:

Image not loading

Download not working

Same "getAnexoFile" method

Same "descargarAnexo" method

Same HTML BLADE

Finally, same disk config: Same filesystem.php

I will continue looking for the solution, but if anyone has an idea I will thank them very much =)

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Miguel Silva Rubio

79170716

Date: 2024-11-08 15:55:22
Score: 1.5
Natty:
Report link
<div class="columnPages">
    <header>This is the Header</header>
    <p>This is the content.</p>
</div>



.columnPages header, p{text-align: center;}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Danish Iqbal

79170715

Date: 2024-11-08 15:55:22
Score: 1
Natty:
Report link

You have to use babel to interpret jsx files with this config

{
    "presets": ["@babel/preset-env", "@babel/preset-react"]
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jérémy Cornut

79170709

Date: 2024-11-08 15:52:21
Score: 2
Natty:
Report link

The best way to do it would be to put a reviews element into your bookSchema and reference the ObjectId of the review.

Then on your get route, use .populate("reviews").exec(your callback).

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

79170708

Date: 2024-11-08 15:52:21
Score: 4
Natty: 5
Report link

For bundle pages like: https://store.steampowered.com/bundle/45867/Hogwarts_Legacy__Harry_Potter_Quidditch_Champions_Deluxe_Editions_Bundle/

You can use: https://store.steampowered.com/actions/ajaxresolvebundles?bundleids=45867&cc=UA&l=english

API endpoing details: https://github.com/Revadike/InternalSteamWebAPI/wiki/Resolve-Bundles

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

79170692

Date: 2024-11-08 15:48:19
Score: 2.5
Natty:
Report link
{ const iframeData = document.getElementById("iframeId"); iframeData.src = `https://maps.google.com/maps?q=${lat},${lon}&hl=es;&output=embed`; }, [lat, lon]); return ( ); } export default GoogleMap 100091552220885
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Man Brew

79170691

Date: 2024-11-08 15:47:19
Score: 3.5
Natty:
Report link

I've recently created a CLI to do this. It uses Jinja2 templates.

enter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andy Verstraeten

79170688

Date: 2024-11-08 15:46:18
Score: 1
Natty:
Report link

Can you help me with this bug?

Your source of your problem seems to be a bug in opencv library itself.
I am not sure if/when it will be fixed.

But anyway I would recommend using opencv (and cv::resize) with cv::Mat which is the natual matrix container for opencv.

It is also better suited to represent a 2D array that vector<vector<T>> thanks to contiguous memory layout which is more efficient and cache-friendly.
It is considered quite a good matrix class in general.

Here's an example how to use it in your case:

#include <iostream>
#include <opencv2/opencv.hpp>

int main()
{
    // Create and fill input:
    cv::Mat at1(4, 4, CV_64FC1);
    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            at1.at<double>(j, i) = 4. * i + j;
        }
    }

    // Print input:
    std::cout << "Input:\n";
    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            std::cout << "  " << at1.at<double>(j, i);
        }
        std::cout << std::endl;
    }

    // Perform resize and create output:
    cv::Mat ax1;  // no need to initialize - will be done by cv::resize
    cv::resize(at1, ax1, cv::Size(2, 2), 0, 0, cv::INTER_CUBIC);

    // Print output:
    std::cout << "\nOutput:\n";
    for (int i = 0; i < 2; i++) {
        for (int j = 0; j < 2; j++) {
            std::cout << "  " << ax1.at<double>(j,i);
        }
        std::cout << std::endl;
    }
}

Output:

Input:
  0  1  2  3
  4  5  6  7
  8  9  10  11
  12  13  14  15

Output:
  2.03125  4.21875
  10.7812  12.9688

Side notes:

  1. As commented above the cubic interpolation filter you chose is not a good one for these matrix sizes, but I assume in the real case they are bigger.
  2. For more efficient access to cv::Mat elements, use cv::Mat::ptr to get a line pointer instead of accessing each element with cv::Mat::at.
  3. Note that the indices to cv::Mat::at are given as (y,x) (i.e. row,column) and not (x,y) as some might expect.
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): help me
  • Whitelisted phrase (-1): in your case
  • RegEx Blacklisted phrase (3): Can you help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you help me with this
  • High reputation (-2):
Posted by: wohlstad

79170686

Date: 2024-11-08 15:46:18
Score: 0.5
Natty:
Report link

Sort the data by Account and Date (ascending)

Add a new column for Year to easily group the data by year. In Column D (titled "Year")

Formula in Coulmn D =YEAR(A2) "Drag this formula down to fill all rows"

use Pivot Tables and some helper columns to simplify the calculation of annual performance.

Create a Pivot Table: Select your data range (columns A through D). Go to the Insert tab and select PivotTable. Create a new Pivot Table in a new worksheet.

Rows=Add Account and Year to the Rows area. Values= Add Value twice First as Minimum Value for the year (using the Min summary function). Second as Maximum Value for the year (using the Max summary function)

In a column next to the Pivot Table, calculate the annual return using the formula =(End_Value / Start_Value - 1) * 100

Refer the Max value as the End_Value and the Min value as the Start_Value for each account and year. YTD Calculation for the Current Year:

For the current year, use the latest available value (end of the current month) as the End_Value and the value from the beginning of the year as the Start_Value. Use the same return formula to calculate the YTD value.

Now create a summary table that consolidates annual returns for all accounts using LOOKUP or referencing formulas

new worksheet, set up a summary table

Columns = Accounts as headers Rows = Years (including a "YTD" row for the current year).

Use the GETPIVOTDATA function to pull the calculated annual return values from the Pivot Table into your summary table

Example of Calculating Return in Excel Suppose your Pivot Table has the following columns:

Account Year Start_Value (Min) End_Value (Max) Account 1 2017 1.000 1.820 Account 1 2018 1.820 2.327

In the next column, add: Return (%) for each year: =(D2/C2 - 1) * 100

combination of Pivot Tables and Calculated Columns, you can generate an annual return table efficiently for multiple accounts

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

79170682

Date: 2024-11-08 15:45:18
Score: 2
Natty:
Report link

I'm using Next.js 15 and was getting similar issue.

Error please install required packages: 'drizzle-orm'

after running pnpm update I got ( which is absurd... )

Please install latest version of drizzle-orm

The workaround I found was pnpm exec drizzle-kit generate

Source: https://github.com/drizzle-team/drizzle-orm/issues/2699#issuecomment-2322825749

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

79170666

Date: 2024-11-08 15:41:17
Score: 2.5
Natty:
Report link

It seems it is not possible to configure the HTTP Logs diagnostic configuration. The accepted answer has some useful considerations but in my use case the processing via event hubs and functions was not an option.

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

79170664

Date: 2024-11-08 15:41:17
Score: 3
Natty:
Report link

I often use Switch with enums. JaredPar's answer is good, but it doesn't work for me (possibly because i am using ReSharper).

What is working for me: after creating a Switch statement based on some enum, i click my mouse at begining of word "Switch", then i press ALT+ENTER and select "Add switch statement for bla-bla-bla...". This will generate all cases for all possible enum values.

Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Oleksandr Martysh

79170646

Date: 2024-11-08 15:36:16
Score: 4
Natty:
Report link

Interaction casters have a Filtering Settings section where you can change the Raycast Mask: enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alex Sandor

79170645

Date: 2024-11-08 15:35:15
Score: 0.5
Natty:
Report link

This can be achieved by using the paid software package, Setasign-Core. The following demonstrates it (code found in the link provided by @JanSlabom in the comments):

<?php

use \SetaPDF_Core_Document_Page_Annotation_FreeText as FreeTextAnnotation;

// load and register the autoload function
require_once '../vendor/autoload.php';

// let's define some properties first
$x = 10;
$yTop = 10; // we take the upper left as the origin

$borderWidth = 1;

$borderColor = '#FF0000';
$fillColor = '#00FF00';
$textColor = '#0000FF';

$text = "Received: " . date('Y-m-d H:i:s');
$align = SetaPDF_Core_Text::ALIGN_LEFT;

// create a document instance by loading an existing PDF
$writer = new \SetaPDF_Core_Writer_File('test-form-annotated-signed.pdf', true);
$document = \SetaPDF_Core_Document::loadByFilename(
    'test-form-signed.pdf',
    $writer
    );

// we will need a font instance
$font = SetaPDF_Core_Font_Standard_Helvetica::create($document);
$fontSize = 12;

// now we create a text block first to know the final size:
$box = new SetaPDF_Core_Text_Block($font, $fontSize);
$box->setTextColor($textColor);
$box->setBorderWidth($borderWidth);
$box->setBorderColor($borderColor);
$box->setBackgroundColor($fillColor);
$box->setAlign($align);
$box->setText($text);
$box->setPadding(2);

$width = $box->getWidth();
$height = $box->getHeight();

// now draw the text block onto a canvas (we add the $borderWidth to show the complete border)
$appearance = SetaPDF_Core_XObject_Form::create($document, [0, 0, $width + $borderWidth, $height + $borderWidth]);
$box->draw($appearance->getCanvas(), $borderWidth / 2, $borderWidth / 2);

// now we need a page and calculate the correct coordinates for our annotation
$page = $document->getCatalog()->getPages()->getPage(1);
// we need its rotation
$rotation = $page->getRotation();
// ...and page boundary box
$box = $page->getBoundary();

// with this information we create a graphic state
$pageGs = new \SetaPDF_Core_Canvas_GraphicState();
switch ($rotation) {
    case 90:
        $pageGs->translate($box->getWidth(), 0);
        break;
    case 180:
        $pageGs->translate($box->getWidth(), $box->getHeight());
        break;
    case 270:
        $pageGs->translate(0, $box->getHeight());
        break;
}

$pageGs->rotate($box->llx, $box->lly, $rotation);
$pageGs->translate($box->llx, $box->lly);

// ...and a helper function to translate coordinates into vectors by using the page graphic state
$f = static function($x, $y) use ($pageGs) {
    $v = new \SetaPDF_Core_Geometry_Vector($x, $y);
    return $v->multiply($pageGs->getCurrentTransformationMatrix());
};

// calculate the ordinate
$y = $page->getHeight() - $height - $yTop;

$ll = $f($x, $y);
$ur = $f($x + $width + $borderWidth, $y + $height + $borderWidth);

// now we create the annotation object:
$annotation = new FreeTextAnnotation(
    [$ll->getX(), $ll->getY(), $ur->getX(), $ur->getY()],
    'Helv',
    $fontSize,
    $borderColor
    );
$annotation->getBorderStyle()->setWidth($borderWidth);
$annotation->setColor($fillColor);
$annotation->setTextLabel("John Dow"); // Used as Author in a Reader application
$annotation->setContents($text);
$annotation->setName(uniqid('', true));
$annotation->setModificationDate(new DateTime());
$annotation->setAppearance($appearance);

// now we need to add some things regarding "variable text" that are required by e.g. Acrobat (if you want to add
// e.g. a digital signature directly after adding a free-text annotation)
$dict = $annotation->getDictionary();
$dict->offsetSet(
    'DS',
    new SetaPDF_Core_Type_String('font: Helvetica, sans-serif ' . sprintf('%.2F', $fontSize) . 'pt;color: ' . $textColor)
    );
switch ($align) {
    case SetaPDF_Core_Text::ALIGN_CENTER:
        $align = 'center';
        break;
    case SetaPDF_Core_Text::ALIGN_RIGHT:
        $align = 'right';
        break;
    case SetaPDF_Core_Text::ALIGN_JUSTIFY:
        $align = 'justify';
        break;
    default:
        $align = 'left';
}

$dict->offsetSet('RC', new SetaPDF_Core_Type_String(
    '<?xml version="1.0"?><body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" ' .
    'xfa:APIVersion="Acrobat:11.0.23" xfa:spec="2.0.2"  style="font-size:' . $fontSize . 'pt;text-align:' . $align .
    ';color:' . $textColor . ';font-weight:normal;font-style:normal;font-family:Helvetica,sans-serif;font-stretch:normal">' .
    '<p dir="ltr"><span style="font-family:Helvetica">' . htmlentities($annotation->getContents(), ENT_XML1) . '</span></p></body>'
    ));

// lastly add the annotation to the page
$page->getAnnotations()->add($annotation);

$document->save()->finish();
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @JanSlabom
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Benjamin

79170643

Date: 2024-11-08 15:35:15
Score: 3
Natty:
Report link

The solution was using

app.statusbar.overlaysWebView(true);

using Framework7, right after cordova was done loading the app

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

79170642

Date: 2024-11-08 15:34:15
Score: 3.5
Natty:
Report link

Follow the procedure below to take care of the Download: missing driver files

This will download or update the driver right within the IDE

process

Got it from their official docs here https://www.jetbrains.com/help/idea/jdbc-drivers.html#configure_a_jdbc_driver_for_an_existing_data_source

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

79170639

Date: 2024-11-08 15:34:15
Score: 3
Natty:
Report link

Yes, it's possible to use transfer learning leveraging trained DL CNN models in the public domain (e.g. Keras) using as inputs the 3D images with 10 Channels (rather than 3 -- R-G-B).

I recommend checking out this tutorial which does a good job to explain how to use transfer learning with inputs of different sizes and channels (i.e., 1 channel and n channels) --> https://www.youtube.com/watch?v=5kbpoIQUB4Q

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Blacklisted phrase (1): youtube.com
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Young ACE mc