79091664

Date: 2024-10-15 20:40:41
Score: 1.5
Natty:
Report link

So I want to stop this terrible increase in the size of the 'userdata-qemu.img.qcow2' file of my virtual machine. Is there a solution for this?

It's strange, but it's ok to delete userdata.img and userdata-qemu.img. But emulator can't run without the last file, but it can be empty! So make empty file userdata-qemu.img (for example, using touch command in terminal), and that's it. I removed 6,5GB + 0,5GB for just one of virtual devices.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Roman

79091653

Date: 2024-10-15 20:36:40
Score: 1
Natty:
Report link

This happened to me as I had 3k new files inside of a single commit. I fixed it by splitting this commit into smaller commits.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Finnian Logan-Riley

79091644

Date: 2024-10-15 20:34:40
Score: 1
Natty:
Report link

Use the .is_*() methods available for all datatypes (docs):

import polars as pl

assert pl.UInt8.is_numeric()
assert not pl.UInt8.is_temporal()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Max

79091643

Date: 2024-10-15 20:34:40
Score: 1.5
Natty:
Report link

I'm not 100% sure what you did but what you see as folders in VS are actually filters and aren't represented in file explorer. So you would create a new filter inside VS and drag the files in and make sure you use the correct paths, you might have to use "item/item.h". Make sure the files are in the source folder where all other source files are and if you don't see them use VS to add an existing file.

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

79091642

Date: 2024-10-15 20:33:40
Score: 0.5
Natty:
Report link

Here is the code prior to and including that shown in the question. The remainder of the code is comprised of many iterations of attempted copy-paste from TxtBk to TmpBk.

    Dim wbk as Workbook
    Dim TxtBk as Workbook
    Dim TmpBk as Workbook                                                                     

    Set wbk = ThisWorkbook
    Set TxtBk = ActiveWorkbook
    
'   Get path from worksheet
    fromPath = wbk.Sheets("Instructions").Range("A20").Value
    
'   Make sure there is a backslash at the end of the from path
    If Right(fromPath, 1) <> "\" Then fromPath = fromPath & "\"

'   Open new file based on template
    Set TmpBk = Workbooks.Add(fromPath & "UST37.xltx")

'   Move data from parsed file to template

'   Sheet OAA
'   Running Date
    TxtBk.Sheets("OAA").Activate
    Range("D4").Copy
    TmpBk.Sheets("OAA").Activate
    Range("G4").PasteSpecial Paste:=xlPasteValues
    Application.CutCopyMode = False `
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Thom B

79091626

Date: 2024-10-15 20:24:37
Score: 6 🚩
Natty: 6
Report link

Does this method risk exposing secrets anywhere?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: scott p shaffer

79091616

Date: 2024-10-15 20:19:36
Score: 2.5
Natty:
Report link

I have improved @naren-murali's answer. I think this implementation is what you need.

.custom-hover
  .mat-expansion-panel:not(:has(.mat-content-hide-toggle)):hover
  .mat-expansion-panel-header::after,
.custom-hover
  .mat-expansion-panel:not(:has(.mat-content-hide-toggle))
  .mat-expansion-panel-header:focus::after {
  background-color: red;
  content: '';
  display: inline;
  width: 16px;
  height: 2px;
  margin: 15px -4px 0 -12px;
}

https://stackblitz.com/edit/p4jjwk-hkndbv?embed=1&file=src%2Fstyles.scss&view=preview

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • User mentioned (1): @naren-murali's
  • Low reputation (1):
Posted by: mucoban

79091614

Date: 2024-10-15 20:19:36
Score: 3
Natty:
Report link

I can't comment yet since I don't have 50 reputation points, but would like to know if something evolved regarding the GCP SDK side.

It would be great to use the StorageClient with the HMAC signed URL, and have access to all the great abstractions from it, instead of relying on normal HTTP client responses as in this previous example (downloading a file).

Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (1.5): I don't have 50 reputation points
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vinicius Gaio

79091613

Date: 2024-10-15 20:18:35
Score: 4
Natty: 4
Report link

Maybe this will work?

https://github.com/ungoogled-software/ungoogled-chromium/issues/2120#issuecomment-1537070442

Remove the "=" from the argument.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Frank Hagenson

79091608

Date: 2024-10-15 20:16:34
Score: 1.5
Natty:
Report link

Your function should be like this:

getIsAAuthenticated() {
   return this.isAuthenticated();
}

You need parentheses to get the signal value.

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

79091600

Date: 2024-10-15 20:14:34
Score: 1
Natty:
Report link

The error is not specific to react-hook-form or Gatsby – your React component is just missing a return statement.

Return the JSX by using return <div>...</div> where you have <div>...</div>.

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

79091593

Date: 2024-10-15 20:12:33
Score: 7 🚩
Natty: 5.5
Report link

Is there any rest API to fetch the sql queries used in a BIP data model in Oracle fusion?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: samrilla

79091582

Date: 2024-10-15 20:08:32
Score: 2
Natty:
Report link

** 2024 solution **

  1. Make sure to add -> maven { url 'https://jitpack.io' }
  2. Add: api 'com.github.barteksc:AndroidPdfViewerV1:1.6.0'
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Wander O Filho

79091580

Date: 2024-10-15 20:08:32
Score: 0.5
Natty:
Report link

The problem could not be directly solved at this moment, was however averted using ObjectOutputStream.

I'm simply writing all the data containers to their own file when the server shuts down

ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(
    "plugins/MyPlugin/data/some_data.bin"));
oos.writeObject(myObjectContainingAllTheData);
oos.close();

... and read them back in when starting again.

ObjectInputStream ois = new ObjectInputStream(new FileInputStream( 
    "plugins/MyPlugin/data/some_data.bin"));
myObjectContainingAllTheData = (HashMap<UUID, SomeSerializableType>)ois.readObject();
ois.close();

(try-catch left out for simplicity)

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

79091579

Date: 2024-10-15 20:08:31
Score: 9.5 🚩
Natty: 5
Report link

i'm facing a similar situation, it's been 6 years since you asked this question, have you managed to solve this problem?

Reasons:
  • Blacklisted phrase (3): have you managed
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bruno.pablo

79091577

Date: 2024-10-15 20:07:30
Score: 5
Natty:
Report link

Trying to make VK_KHR_EXTERNAL_MEMORY_EXTENSION work too. Working well when the import and the export are done in the same process. But I am not sure if what I try has been already done, I cannot find any example and I don't think that the test code is testing that too. I want one process that creates a VkBuffer, populate it and export it / share the FD. After, IN ANOTHER PROCESS, I try to import that VkBuffer. I have different trouble, depending on whether it is tested under Windows or Linux. Under Linux, I got VK_OUT_OF_MEMORY at vkAllocateMemory call. On Windows, I sometimes have no error but only '0' or noise as payload, sometime error about a mismatch in the size of the memory (but a size that exists somewhere else in the producer app) so look like if the FD (HANDLE) was referring to another 'random' resource. I also tried to call DuplicatHandle on 'consumer / import side' but in that case, I receive an error about "invalid Handle" from DuplicatHandle.

Reasons:
  • Blacklisted phrase (1.5): I cannot find
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (1): I receive an error
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stephane Germain

79091569

Date: 2024-10-15 20:04:29
Score: 3.5
Natty:
Report link

Please refer to the below AWS Glue blog post for a potential solution to address this issue.

https://aws.amazon.com/blogs/big-data/scale-aws-glue-jobs-by-optimizing-ip-address-consumption-and-expanding-network-capacity-using-a-private-nat-gateway/

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

79091549

Date: 2024-10-15 19:57:26
Score: 0.5
Natty:
Report link

So far, the only solution I've come up with is to just append the cksum then check the file by ignoring the end bytes, and using them to check it.

(append crc) cat file | cksum -- | awk '{printf "%.8x",$1 }' >> file

(check crc) CRC=$(head -c -8 file | cksum -- | awk '{printf "%.8x",$1 }' ); [ "$(tail -c 8 file)" = "$CRC" ] && echo "pass"
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ed K

79091547

Date: 2024-10-15 19:56:26
Score: 3
Natty:
Report link

Problem solved. The issue was coming from the way OCSP signing certificate ASN.1 data wass written in OCSP response. I corrected it and now X509Chain is building the chain and checking revocation properly.

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

79091542

Date: 2024-10-15 19:55:26
Score: 0.5
Natty:
Report link

I have found out that we just needed to divide the third value by the width of the display, and the sixth by its height.

So, for our 1920x1080 display:

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

79091530

Date: 2024-10-15 19:50:25
Score: 1
Natty:
Report link

NUnit provides a Timeout attribute.

[Test, Timeout(2000)]
public void PotentiallyLongRunningTest()
{
    /* ... */
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mike R

79091526

Date: 2024-10-15 19:50:25
Score: 2.5
Natty:
Report link

Change underscore (_) and copy the entire word "init" is a format error. class Dog: def init(self, name): self.name = name

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yesenia artavia anchia

79091522

Date: 2024-10-15 19:48:24
Score: 2.5
Natty:
Report link

Step-1 Create a Flutter Project Step-2 Open Terminal Step-3 Step by step all commands to upload project remotely. → 1. git init → 2. git add . → 3. git commit -m "description" → 4. git branch -M branchName → 5. git remote add origin repoUrl → 6. git push -u origin branchName

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

79091515

Date: 2024-10-15 19:45:23
Score: 2.5
Natty:
Report link

yes use ?vq=hd1080p at the end of your video url

e.g. Normal Embedded Url src="https://www.youtube.com/embed/Dfsdugdaer?si=EsIRhQ106ZRENmWn"

e.g Quality Set Embedded Url src="https://www.youtube.com/embed/Dfsdugdaer?si=EsIRhQ106ZRENmWU?vq=hd1080p"

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: XBEAST

79091511

Date: 2024-10-15 19:43:22
Score: 3.5
Natty:
Report link

not sure if its a single line you still need pipeline. but you are missing | on your lines for

- script: 
    swift package-registry login {myrepourl}/login --token mytoken
- script: 
    swift package-registry set --global {myrepourl}

while you have | for the other script lines. if its a single line i always put it next to the - script: element.

can you post logs for these two? it seems like you didnt properly login

Reasons:
  • RegEx Blacklisted phrase (2.5): can you post
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Rocky Egawa

79091509

Date: 2024-10-15 19:42:22
Score: 1.5
Natty:
Report link

In manifest_version 3 use this

`chrome.action.onClicked.addListener((tab) => {
  chrome.tabs.create({
    url: "your_html_.html"
  });
 })`
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rishabh verma

79091503

Date: 2024-10-15 19:40:22
Score: 0.5
Natty:
Report link

Inlay hints. offUnlessPressed is the sweet spot for my liking.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Artem Russakovskii

79091499

Date: 2024-10-15 19:38:21
Score: 1
Natty:
Report link

import numpy as np from PIL import Image

for curr_im in f.readlines(): # Loop through file with names of image files
    print(curr_im) #print name of image file

    with Image.open(os.path.join)https://imagizer.imageshack.com/img585/8488/bugoo.jpg) as z:
        z.show() # Show image

        zz=np.asarray(z)
        print(zz.max(), zz.min(), zz.dtype, zz.shape) # Verify something has been read
        x=input("Pause") 
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user27819885

79091496

Date: 2024-10-15 19:38:21
Score: 1
Natty:
Report link

After weeks of trial and error, I was able to correct the code. I found an article from Microsoft Learn. This article helped me use an alias to get the error from the "Equal sign" and the .RelJob. There was also another issue I found that my Patch syntax was incorrect.

If(CountRows(colRelatedJob) > 0,
    ForAll(colRelatedJob As _Related,
        If(_Related.SaveRecord,
            Patch(ds_tblRelatedJobs,
                    Coalesce(LookUp(ds_tblRelatedJobs, FK_JobNum = txtJob.Value && RelatedJob = _Related.RelJob),Defaults(ds_tblRelatedJobs)),
                {
                    RelatedJob: _Related.RelJob,
                    RelatedGroup: _Related.RelGroup,
                    RelatedPM: _Related.RelPM,
                    RelatedForeman: _Related.RelForeman,
                    RelatedScope: _Related.RelScope,
                    FK_JobNum: txtJob.Value
                }
            )
        )
    )
);
Reasons:
  • Blacklisted phrase (1): This article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kavorka

79091494

Date: 2024-10-15 19:37:20
Score: 5
Natty:
Report link

Have you checked that the two users each have their own token? And that each request sends the correct token in the Authorization header?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MAWAAW

79091492

Date: 2024-10-15 19:37:20
Score: 2.5
Natty:
Report link

This behaviour may be not related to Java. See:

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: Krzysztof Tomaszewski

79091488

Date: 2024-10-15 19:36:20
Score: 2
Natty:
Report link

It is not weird, nor it is even related with C or your program.

Can somebody explain why is the \t behaving like this?

It all depends on where the TAB is being processed. The behavior of TAB processing is to advance the cursor to the next tab stop, and tab stop columns are set someplace, application specific or terminal emulator specific.

Also note that TAB stops can be used at specific columns and not at specific interval like 4 or 8 columns like in most editors.

If you are using windows terminal there is a settings.json file where you can set them.

In Linux you have the tabs command, that is often installed in Windows when you install with git or if you install gcc. Many of my Windows machines have this tabs command and reports the version --- tabs -V --- as 6.4

Under Windows the default is to have VIRTUAL TERMINAL PROCESSING on console, and in this case you can also use VT100 commands to set and reset tab stops.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can somebody explain
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: arfneto

79091483

Date: 2024-10-15 19:35:20
Score: 3
Natty:
Report link

If you got here because your SqlContainer tests randomly started to fail like ours. It's not your fault. Seems like there's something up with the ubuntu-latest github runner and someone has found a workaround.

https://blog.rufer.be/2024/09/22/workaround-fix-testcontainers-sql-error-docker-dotnet-dockerapiexception-docker-api-responded-with-status-codeconflict/

Info from TestContainers

https://github.com/testcontainers/testcontainers-dotnet/pull/1265

Bug/Pr on TestContainers to fix it, maybe?

https://github.com/testcontainers/testcontainers-dotnet/issues/1274 https://github.com/testcontainers/testcontainers-dotnet/pull/1270/files

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: EJC

79091479

Date: 2024-10-15 19:33:19
Score: 1
Natty:
Report link

in MainLayout.razor you will see

 <article class="content px-4">
 @Body

remove px-4 and inside MainLayout.razor.css

.top-row, article {
   padding-left: 2rem !important;
   padding-right: 1.5rem !important;
}

either comment it out, or set the padding to 0px Then it will go from edge to edge

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

79091465

Date: 2024-10-15 19:30:18
Score: 0.5
Natty:
Report link

Given n numbers to choose from, both O(2^n) ad O(n) are correct answers.

It's O(2^n) because you are picking between 2 options (to include or not include) for each of the n numbers and will end up with O(2^n) subsets generated.

But generally, you don't consider space of the result you return because that's just expected cost you must incur no matter what. So at each step of the recursion, you only have the temporary array of max length n that you keep adding and removing numbers from. So max auxiliary space is O(n).

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

79091454

Date: 2024-10-15 19:28:18
Score: 2.5
Natty:
Report link
atOptions = { 'key' : '3a3c69b6baaded6ce9a7aa7f3c7977d9', 'format' : 'iframe', 'height' : 60, 'width' : 468, 'params' : {} };
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: afzalkhan khan

79091444

Date: 2024-10-15 19:23:16
Score: 1.5
Natty:
Report link

The only way I found to copy the db into the user dir (godot 4.3)

var db_file_content : PackedByteArray  = FileAccess.get_file_as_bytes("res://data/data.db")
var file : FileAccess = FileAccess.open("user://data.db",FileAccess.WRITE)
file.store_buffer(db_file_content)
file.close()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Luc

79091440

Date: 2024-10-15 19:21:16
Score: 2
Natty:
Report link

Sometimes, just use VPN and life will be good as a developer. Try it, it should solve this problem

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

79091439

Date: 2024-10-15 19:21:16
Score: 3.5
Natty:
Report link

Yes, ChatGPT Plus also has an image upload limit. You can typically upload up to 10 images per session or conversation.

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

79091433

Date: 2024-10-15 19:20:14
Score: 8 🚩
Natty: 4
Report link

I found your post very useful as I was having issues to enable from the API the dataset refresh, thing is, I do want to get notified if that fails, but when i try to reverse the disabled notification, it still sends me the initial error of "for app owner only requests", do you have a tip that I can use if I want to enable again the notification without receiving that error?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (2.5): do you have a
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user27819662

79091431

Date: 2024-10-15 19:19:14
Score: 1.5
Natty:
Report link

I commonly use this approach and I find the quickest and cleanest approach is:

g++ $(<args.txt)

Or in the questions exact framing:

g++ $(<file_containing_content) -o executable
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lekstam

79091418

Date: 2024-10-15 19:12:12
Score: 7 🚩
Natty: 5
Report link

any solution you found facing same issue in angular 18, coverage report generated but no coverage with same

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: k.nisha Cuty

79091414

Date: 2024-10-15 19:11:11
Score: 7 🚩
Natty: 6
Report link

Did you manage to establish the connection? I am trying with Kotlin API3, but I am not having success.

Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Deiviti Felski Efisio

79091408

Date: 2024-10-15 19:09:10
Score: 1
Natty:
Report link

Variant of @kdubs answer in the case that you would like to return a value from the class-qua-function:

class incrementer:
    state = 0

    def __new__(_class, increment = 1):
        _class.state += increment
        return _class.state

# Usage example:
one = incrementer()
two = incrementer() 
twelve = incrementer(10)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @kdubs
  • Low reputation (0.5):
Posted by: Glen Whitney

79091397

Date: 2024-10-15 19:05:09
Score: 3
Natty:
Report link

I found really new extension exactly matches your needs. Enhanced Comments demo

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

79091392

Date: 2024-10-15 19:04:08
Score: 2
Natty:
Report link

** 2024 solution **

  1. Make sure to add -> maven { url 'https://jitpack.io' }
  2. Add: api 'com.github.barteksc:AndroidPdfViewerV1:1.6.0'
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Wander O Filho

79091387

Date: 2024-10-15 19:03:08
Score: 1
Natty:
Report link

compine all widgets in one widget and give it columnspan = 'full'

A friend told me how to fix this, I have created 6 widgets for each single stats overview and gave each one columnspan = 1; but he told me to do it like in the photo. I must put each 3 widgets or each row in the same stats overview widget and give it columnspan = 'full'; let me share my code with you

<?php

namespace App\Filament\Widgets;

use Filament\Widgets\StatsOverviewWidget as BaseWidget;
use Filament\Widgets\StatsOverviewWidget\Stat;
use App\Models\Order;
use App\Models\PlaceOrder;
use Filament\Widgets\Concerns\InteractsWithPageFilters;
use Carbon\Carbon;

class OrderDeliveredWidget extends BaseWidget
{
    use InteractsWithPageFilters;

    protected int | string | array $columnSpan = 'full';

    protected function getStats(): array
    {
        $statuses = [
            ['model' => Order::class, 'status' => 'to_customer', 'label' => 'On Delivery Orders'],
            ['model' => Order::class, 'status' => 'delivered', 'label' => 'Delivered Orders'],
            ['model' => PlaceOrder::class, 'status' => 'pending', 'label' => 'Pending Orders'],
        ];

        $stats = [];

        foreach ($statuses as $statusInfo) {
            $query = $statusInfo['model']::query();
            
            if ($this->filters['Date']) {
                $query->where('created_at', '>=', $this->getFilterDate($this->filters['Date']));
            }

            $currentCount = $query->where('status', $statusInfo['status'])->count();
            
            $previousPeriodStart = $this->getPreviousPeriodStart($this->filters['Date']);
            $previousCount = $statusInfo['model']::where('status', $statusInfo['status'])
                ->where('created_at', '>=', $previousPeriodStart)
                ->where('created_at', '<', $this->getFilterDate($this->filters['Date']))
                ->count();

            $percentageChange = $this->calculatePercentageChange($previousCount, $currentCount);
            $description = $this->getDescription($percentageChange);
            $icon = $this->getDescriptionIcon($percentageChange);
            $color = $this->getColor($percentageChange);

            $stats[] = Stat::make($statusInfo['label'], $currentCount)
                ->description($description)
                ->descriptionIcon($icon)
                ->color($color);
        }

        return $stats;
    }

    private function getFilterDate(?string $filter): Carbon
    {
        return match($filter) {
            'today' => now()->startOfDay(),
            'week' => now()->startOfWeek(),
            'month' => now()->startOfMonth(),
            'year' => now()->startOfYear(),
            default => Carbon::createFromTimestamp(0),
        };
    }

    protected function getFilters(): ?array
    {
        return [
            'today' => 'Today',
            'week' => 'This week',
            'month' => 'This month',
            'year' => 'This year',
        ];
    }

    private function calculatePercentageChange($oldValue, $newValue): float
    {
        if ($oldValue == 0) {
            return $newValue > 0 ? 100 : 0;
        }
        return (($newValue - $oldValue) / $oldValue) * 100;
    }

    private function getDescription(float $percentageChange): string
    {
        $formattedChange = number_format(abs($percentageChange), 1);
        $direction = $percentageChange >= 0 ? 'increase' : 'decrease';
        return "{$formattedChange}% {$direction}";
    }

    private function getDescriptionIcon(float $percentageChange): string
    {
        return $percentageChange >= 0 
            ? 'heroicon-m-arrow-trending-up'
            : 'heroicon-m-arrow-trending-down';
    }

    private function getColor(float $percentageChange): string
    {
        if ($percentageChange > 10) {
            return 'success';
        } elseif ($percentageChange < -10) {
            return 'danger';
        } else {
            return 'warning';
        }
    }

    private function getPreviousPeriodStart(?string $filter): Carbon
    {
        return match($filter) {
            'today' => now()->subDay()->startOfDay(),
            'week' => now()->subWeek()->startOfWeek(),
            'month' => now()->subMonth()->startOfMonth(),
            'year' => now()->subYear()->startOfYear(),
            default => Carbon::createFromTimestamp(0),
        };
    }
}
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pierre Sameh

79091385

Date: 2024-10-15 19:02:08
Score: 0.5
Natty:
Report link

First I tried the workaround as https://stackoverflow.com/users/5546726/reshi did

# This is just a workaround to the real problem which is inside the git package
git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"

# Only real solution for now is to downgrade git to a known working version from 2.47 to 2.42

Since Jenkins is the executor of the git command, then I couldn't figure out to fix the known_host problem which came afterwards.

Therefore my only fix for now was to downgrade git from version 2.47 to 2.42.

When next release come, I'll see if this problem has been fixed.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jakob Ojvind Nielsen

79091381

Date: 2024-10-15 19:00:07
Score: 2.5
Natty:
Report link

Use Google Colab Version:

pip install opencv-python==4.10.0.84
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: john china

79091380

Date: 2024-10-15 19:00:07
Score: 1.5
Natty:
Report link
string="a b c d e f g h"
print(len(string))
new_string=""
for letter in range(0,15):
    new_string+= string[letter].capitalize()
print(new_string)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gabi

79091370

Date: 2024-10-15 18:57:06
Score: 1.5
Natty:
Report link

Using ExpoSDK 51 you can hide the header like this:

<Stack initialRouteName="home" screenOptions={{ headerShown: false }}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vitor Rezende

79091361

Date: 2024-10-15 18:55:06
Score: 1
Natty:
Report link

For these purposes you can combine extend-exclude and src options. For example:

ruff . --src your_dir1 --extend-exclude 'your_dir2/*'

Here is some more info about extend-exclude

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

79091360

Date: 2024-10-15 18:54:06
Score: 3.5
Natty:
Report link

I had a similar problem, so I enabled checkpoints and set the max checkpoint timeout to 60 seconds. Data started being inserted into my Iceberg table.

https://nightlies.apache.org/flink/flink-docs-release-1.20/api/python/reference/pyflink.datastream/api/pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.enable_checkpointing.html?highlight=enable_check#pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.enable_checkpointing

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

79091353

Date: 2024-10-15 18:52:05
Score: 0.5
Natty:
Report link

Updated working code

public String stringExpansionRegEx(String str) {

    StringBuilder result = new StringBuilder();

    boolean bool = Pattern.matches("([a-zA-Z]\\d)+", str);
    if (bool == true){
        for (int i=0;i<str.length();i+=2)  {
                 char ch = str.charAt(i);
                 int count = Integer.parseInt(String.valueOf(str.charAt(i+1)));
                 for (int j = 0; j < count; j++) {
                     result.append(ch);
                 }
        }
    }
    return result.toString();
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Urekha Rajendran

79091352

Date: 2024-10-15 18:52:05
Score: 0.5
Natty:
Report link
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/**")
                .allowedOrigins("http://localhost:4200")
                .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
                .allowedHeaders("*")
                .exposedHeaders("Authorization")
                .allowCredentials(true)
                .maxAge(3600L);
    }
}

Make sure to remove any conflicting CORS annotations from your controller. The @CrossOrigin annotation is generally not necessary if you’re handling CORS globally.Since you are already using the CORS configuration, you should remove the manual header setting in your interceptor

httpServletResponse.setHeader("Access-Control-Allow-Origin", "*");
httpServletResponse.setHeader("Access-Control-Allow-Methods", "GET,POST,OPTIONS,DELETE,PUT");
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @CrossOrigin
  • Low reputation (1):
Posted by: Manish Keshari

79091349

Date: 2024-10-15 18:51:05
Score: 0.5
Natty:
Report link

I'm new to instruction but will give this a shot... I'm also assuming you're trying to open your form onto a blank record so you that you can add a new record...

Have you tried this?

This is where your form's vb code is added, which MS Access will automatically supply the intro and exit code for your event...

DoCmd.GoToRecord , , acNewRec

me.[whateveryourfirstcontrolis].setfocus

So your entire code should look like this:

Private Sub Form_Open(Cancel As Integer)

DoCmd.GoToRecord , , acNewRec

me.[whateveryourfirstcontrolis].setfocus

End Sub

Click X to exit the code panel, then again. You can now go from DESIGN to FORM view or close and reopen the form. Your form should now open to a blank record for you to add a new entry with your cursor at whatever control you set the focus to...

Note: The next time you go into design view/properties/event, you'll see "Event Procedure on the On Open event... this also applies if you create a macro or build an expression. These events are also on every control (element you use on your form).

PS: Once you get to the bottom control, if you want to just cycle through the current record and not go to the next record, go back into the properties again, select the OTHER tab, select CURRENT RECORD.

Hope it helps.

:) Lisa B.

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Whitelisted phrase (-1): Have you tried
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Luclarie

79091335

Date: 2024-10-15 18:47:04
Score: 0.5
Natty:
Report link

Figured it out.

    export const test = base.extend<TestOptions & MyFixtures>({
  storeID: [1, { option: true }],


  logIn: async ({ page, storeID }, use) => {
    // Set up the fixture.
    const logIn = new LogIn(page);
    await logIn.goto();
    await logIn.loginWorkFlow(storeID);
    // Use the fixture value in the test.
    await use(logIn);
  },
  testData: async ({ storeID }, use) => {
    let NY = await require('../testData/NYTestData.json');
    let NC = await require('../testData/NCTestData.json');
    if (storeID == 1) {
      await use({ ...NY });
    } else {
      await use({ ...NC });
    }
  },
});
export { expect } from '@playwright/test';
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Steven Rutherford

79091332

Date: 2024-10-15 18:47:04
Score: 3
Natty:
Report link

I decided to add kaska settings to appsettings.json to each project, and it is working sorry for wasting time

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

79091324

Date: 2024-10-15 18:46:03
Score: 1
Natty:
Report link

the django-crontab project last update was in 2016.. over 8 years ago. It's probably a dead project.

I'd recommend to implement a custom django admin command and register it with crontab the old fashioned way (crontab -e).

in a bash file, setup your virtual environment then call the custom admin script similar to below python manage.py <script_name> --settings=<django_app>.settings

schedule the script to run in cron (e.g.): 30 * * * * <path_to_script>/<script_name>.sh

if adding your bash file to git, make sure you set your .sh file to maintain execute. for example, C:\Temp\TestRepo>git update-index --chmod=+x foo.sh

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

79091315

Date: 2024-10-15 18:42:02
Score: 3
Natty:
Report link

I installed it with sudo, which made it available only to root user. Installing without sudo fixed it and now I can access conda as I wanted

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

79091303

Date: 2024-10-15 18:39:02
Score: 1.5
Natty:
Report link

You need to install essentials:

 sudo apt-get install build-essential
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: perevales

79091302

Date: 2024-10-15 18:39:02
Score: 1.5
Natty:
Report link

works for me as well but in the host application getting the below error

Loading script failed. (missing: http://localhost:3000/internal/postpo/postPORemote.js) while loading "./App" from 3035 ScriptExternalLoadError at 3035 (http://localhost:5000/main.039c8f05349a71d72a27.js:28:25) at webpack_require (http://localhost:5000/runtime.a439e888716b1ad0ac8c.js:34:32) at initExternal (http://localhost:5000/runtime.a439e888716b1ad0ac8c.js:352:28) at webpack_require.I (http://localhost:5000/runtime.a439e888716b1ad0ac8c.js:365:15) at http://localhost:5000/runtime.a439e888716b1ad0ac8c.js:873:47 at 4914 (http://localhost:5000/runtime.a439e888716b1ad0ac8c.js:927:26) at http://localhost:5000/runtime.a439e888716b1ad0ac8c.js:961:56 at Array.forEach () at webpack_require.f.consumes (http://localhost:5000/runtime.a439e888716b1ad0ac8c.js:942:36) at http://localhost:5000/runtime.a439e888716b1ad0ac8c.js:146:40

Reasons:
  • Blacklisted phrase (1.5): getting the below error
  • Whitelisted phrase (-1): works for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: komal

79091300

Date: 2024-10-15 18:38:01
Score: 1
Natty:
Report link

Aha-- the problem was that I added a new class in my Guice module and registered it with just a regular bind( ) call. The class actually relies on an @Assisted factory constructor, so I needed to register it with Guice via something like this:

install(new FactoryModuleBuilder().build(APNSThreadWorker.Factory.class));

Once I did that, the .war deployed correctly. Whew.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Roy Wood

79091296

Date: 2024-10-15 18:37:01
Score: 1.5
Natty:
Report link
docker run -ti gcr.io/distroless/java:11  -XshowSettings:properties -version | grep java.home
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Stéphane Jeandeaux

79091294

Date: 2024-10-15 18:37:01
Score: 1.5
Natty:
Report link

The problem you have is Terraform is trying to assign a name to the object that is yet to be created, however, the name is made up of objects that don't exist yet. The Terraform address in for_each here would be module.ser["name-uuid"]. The uuid is the bit it doesn't know yet As suggested in the error message, there are two ways of solving it:

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

79091293

Date: 2024-10-15 18:37:01
Score: 3
Natty:
Report link

You can rename the Last bean properties name is : replace "graphiteWriterSession" to "host"

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

79091290

Date: 2024-10-15 18:35:00
Score: 2.5
Natty:
Report link

It may not be what you're aiming for, but have you considered xmltodict?

This would let you navigate to the element using a dict which could be easier, if you just need the value of the element and nothing too xml specific.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ali Syme

79091285

Date: 2024-10-15 18:33:00
Score: 1
Natty:
Report link

DELETE query with named placeholders:

$id = $_REQUEST["id"];
$stmt = $conn->prepare("DELETE FROM mytableName WHERE id = :myID;");
$stmt->bindParam("myID",$id, PDO::PARAM_INT);
$stmt->execute();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ali Rad

79091279

Date: 2024-10-15 18:30:59
Score: 2
Natty:
Report link

Check your discord,js version. if it's above v13, try using client.on('messageCreate', async message instead of client.on('message', async message

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

79091278

Date: 2024-10-15 18:30:59
Score: 1.5
Natty:
Report link

Jsoup is only for parsing HTML, what you want here is a headless browser. If you must use java for this then your options here are:
htmlunit (but the javascript support isn't great, wouldn't reccomend it if the page has a non-trivial amount of js)
Selenium(browser automation, includes language bindings for Java)

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

79091274

Date: 2024-10-15 18:27:59
Score: 0.5
Natty:
Report link

Your authentication happens in AWS CloudFront. You have whitelisted all "swagger stuff". You could probably allow all "swagger stuff" excluding the swagger.json, but it won't work for a user visiting the page. The Swagger UI needs the swagger.json (or an equivalent openapi.json)... So if a user visits your Swagger UI unauthenticated, the user will see nonworking Swagger pages because he or she won't be able to load the necessary swagger.json.

Another idea is to generate the static web pages using a tool like swagger-ui-dist and host that publicly. You could do this in a build step of the API, so that the information is up to date with the actual implementation. Note that the swagger.json can likely be reverse engineered from this static code.

Most importantly, I don't see why you would be okay showing the API documentation, but not the swagger.json. They basically contain the same information... So why not share the swagger.json as well?

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: user2609980

79091236

Date: 2024-10-15 18:17:56
Score: 0.5
Natty:
Report link

Java search for getResources(), from the working directory, you can locate it using:

System.out.println( System.getProperty( "user.dir" ));

Probably, this print:

xxx/org/example/ooplibrary

Then your call should be:

URL url = this.getClass().getResource( "/View/LogInView.fxml" );
        
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Marce Puente

79091226

Date: 2024-10-15 18:15:55
Score: 3
Natty:
Report link

You don’t need to completely reshape your architecture. Instead, you can combine Kafka for the asynchronous part and another system for handling synchronous interactions.

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

79091225

Date: 2024-10-15 18:15:55
Score: 1
Natty:
Report link

Given the error message and the code, it looks like in the line new Value($fields, 'array') in the fetchData method, $fields is an array of plain php strings. It should be an array of XmlRpc\Value objects.

You can either do that conversion manually, or simplify your code by having recursive wrapping of native php values into XmlRpc\Value objects by using XmlRpc\Encoder::encode() method, as seen f.e. in https://github.com/gggeek/phpxmlrpc/blob/master/demo/client/proxy.php

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: gggeek

79091217

Date: 2024-10-15 18:11:54
Score: 3
Natty:
Report link

Unlike other browser, Safari seems to create a separate text renderer element for each text node when created with document.createTextNode, with the result that kerning or opentype font features do not get applied to any typed out text. This also means connected scripts (like Arabic) or complex scripts (like Devanagari) will render as individual glyphs instead of properly shaping :(

The subsequent onCreateTextNode cannot be used to circumvent this (e.g. with node.innerText += ...) because the node is created either way. — kontur

Arabic in Firefox/Chrome connected properly Arabic in Firefox/Chrome connected properly

Arabic in Safari rendered as individual letters: Arabic in Safari rendered as individual letters:

Source: https://github.com/tameemsafi/typewriterjs/issues/216#issue-2212800972

Reasons:
  • Blacklisted phrase (1): :(
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Amir

79091214

Date: 2024-10-15 18:11:54
Score: 1
Natty:
Report link

Tracked it down.

Microsoft.Owin.Host.SystemWeb

was missing - installed that and it ran perfectly :-)

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

79091209

Date: 2024-10-15 18:09:54
Score: 2
Natty:
Report link
=COUNT(LET(z,SCAN(A2,C2:L2,LAMBDA(a,b,a-b)),FILTER(z,z>=0)))

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: user11222393

79091207

Date: 2024-10-15 18:09:54
Score: 1.5
Natty:
Report link

Just to update the answer for today:

As of now, Visual Studio App Center is scheduled for retirement on March 31, 2025. Maybe for anybody considering it: Dont'.

Here are some options you might want to consider:

As for CodePush. You can habe a Self-hosted CodePush Server:

https://github.com/microsoft/react-native-code-push https://github.com/htdcx/code-push-server-go

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sebastian Schütze

79091195

Date: 2024-10-15 18:06:53
Score: 1.5
Natty:
Report link

Just had the same issue. Somehow the page got excluded from my solution.

I just had to:

Open Solution Explorer -> Click the icon for "show all files" -> Right click on my page -> click "include in project" -> build solution

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

79091191

Date: 2024-10-15 18:04:52
Score: 2.5
Natty:
Report link

Upgrading to Dusk v8 (which also required I upgrade the version of PHP that my project was using to v8.2 & upgrade the version of phpunit to v10) successfully fixed this issue.

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

79091186

Date: 2024-10-15 18:01:52
Score: 0.5
Natty:
Report link

Not sure if this will help anyone. I'm dealing with an alias domain with Laravel Forge. I tried the redirect('http://aliasdomain.com', 301) and got a server error. I had to use the redirect()->to('http://aliasdomain.com', 301)->send() to get this to work.

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

79091180

Date: 2024-10-15 17:59:51
Score: 0.5
Natty:
Report link

So after a lot of Googling and searching I think I finally have an answer and it's all due to the standards set in the "Unicode CLDR Project"

It may be very new to us who are suddenly subjected to Windows 11 24H2, but in fact this standard has been around for years. If you go googling for "September changed from Sep to Sept" you will find people coming up against this issue for years on many different platforms. I found one such complaint dating back to 2015 and who knows there may be earlier ones.

Long story short: With regard to this standard, Microsoft is actually "late to the party". Others implemented it a LONG time ago.

All we can do is ask our clients to delay applying Windows 11 24H2 until we get around to fixing our software so it can handle this properly. Thankfully this turned out to be not as big a deal as I feared.

My apologies to anyone who came here hoping to find a "fix" but the only thing I can do is provide the answer to the question as stated. This is why it happened. We have to learn to live with it.

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

79091172

Date: 2024-10-15 17:56:50
Score: 3
Natty:
Report link

What worked for me: EXAMPLE (Windows) TSKILL/23436/F

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: V Sharma

79091169

Date: 2024-10-15 17:55:50
Score: 3.5
Natty:
Report link

For anyone else wondering, I was able to follow this tutorial and able to check the reason why my scheduled query was also failing. I also use Redshift serverless and this solution works for that service also: https://docs.aws.amazon.com/redshift/latest/mgmt/query-editor-v2-schedule-query-troubleshooting-cloudshell.html

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Rizxcviii

79091165

Date: 2024-10-15 17:52:49
Score: 1
Natty:
Report link

Android 13 does NOT show the permission prompt automatically. I had a similar case where I removed all the runtime requests, but later figured out a 3rd party library was asking for this permission in order to work. In my case I found that the CleverTap plugin has a method to ask for this permission, and this was the source of my problem.

This behaviour is due to a 3rd party, not the Android OS.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ramiro G.M.

79091159

Date: 2024-10-15 17:51:49
Score: 3
Natty:
Report link

I am using MySQL 8.0 and I have just tested and found that Enum values can't contain space character in them.

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

79091157

Date: 2024-10-15 17:50:48
Score: 0.5
Natty:
Report link

Why did you mean by

it finds the elements, however without the internal elements

?

You have Element. And you can extract keys/values and text, it's children and so on Also you can use xpath to get all Data tags:

root.xpath('/History/Env/EnvD/Data')
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why did you mean
  • Low reputation (1):
Posted by: Danil

79091137

Date: 2024-10-15 17:45:47
Score: 1
Natty:
Report link

If you have installed Node.js but the npm folder is missing in user/AppData/Roaming folder, simply restart the system and it will be visible.

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

79091134

Date: 2024-10-15 17:43:47
Score: 0.5
Natty:
Report link

How is the attribute "Last purchase date" enriched? Assuming there is an enrichement like:

Set:

or similar...

We can add an additional enrichement, something like:

Set:

This is can then be tested from any API client (no need to depend on the website). I like Postman (but any works). Here's a sample payload:

endpoint: https://collect.tealiumiq.com/event

payload:

{
    "tealium_account":"....your account....", 
    "tealium_profile":"....your profile....",  
    "tealium_trace_id":"....your traceid....",

    "tealium_event":"my_test_purchase_date", 
    "my_date": "2024-07-20"
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How is the
  • Low reputation (0.5):
Posted by: rpcm

79091132

Date: 2024-10-15 17:42:46
Score: 0.5
Natty:
Report link

I'm not quite sure why it started working because I'd generated another build before creating this question, but it seems to be working now. I'm pretty sure that by installing react-native-vector-icons, the problem worked itself out. I do know that in the Getting Started docs, it mentions that the library should be installed "because some components use those internally". It'd be great if react-native-paper allowed for more flexibility with customizing icon sets, but at least the issue is fixed!

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: J. Jackson

79091127

Date: 2024-10-15 17:41:46
Score: 1.5
Natty:
Report link

Upgrading the Node version of 18.2 to 20 fixes this issue. There seems to be an update in the latest expo minor release (51.0.37) that updated fetch commands for node 20 that breaks the way node 18 handles the requests.

"expo": "^51.0.37",
"react": "18.2.0",
"react-native": "0.74.5",
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: gender-isnt-real

79091124

Date: 2024-10-15 17:39:46
Score: 1
Natty:
Report link

I had the same issue and found that the Laravel Extra Intellisense VS Code extension was triggering the list command about every minute. Disabling this extension solved the problem but may limit some autocompletion features added by this extension.

https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.laravel-extra-intellisense

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Patrick Levesque

79091114

Date: 2024-10-15 17:37:45
Score: 0.5
Natty:
Report link

You need to replace the moduleId property in the PropertyEntity and PropertyEntityId with the module property

@Id
@ManyToOne
@JoinColumn(name = "module_id")
private ModuleEntity module;

See example 164 in Hibernate ORM User Guide.

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

79091102

Date: 2024-10-15 17:29:43
Score: 0.5
Natty:
Report link

FOUND A SOLUTION

I determined that the issue was caused by the underlying flutter_svg package required by flutter_html.

Adding the following to my pubspec.yaml eliminated the dependecy.

dependency_overrides: 
  flutter_svg: ^1.0.0

Found the solution here: https://github.com/Sub6Resources/flutter_html/issues/978

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

79091098

Date: 2024-10-15 17:28:43
Score: 1.5
Natty:
Report link

I had a similar issue where my art was showing up blurry, but the file imported was fine. The original file was 18 sprites in a single row PNG that was then sliced in Unity.

FIX: I resized the sprite sheet to 3 rows of 6 sprites on each row instead of the 18 sprites on one single row.

I think unity didn't like that the sprite sheet was so wide.

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

79091094

Date: 2024-10-15 17:28:43
Score: 3
Natty:
Report link

Your suggestion works fine, but if I change my code, the exception occurs again; The problem is intermittent with different solution actions.
I appreciate your support Jiachen.

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

79091092

Date: 2024-10-15 17:28:43
Score: 3.5
Natty:
Report link

Just in case, I had this problem and it was driving me crazy. I ended up having a trailing space on keystore.p12, so it couldn't find it!

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

79091082

Date: 2024-10-15 17:26:42
Score: 0.5
Natty:
Report link

Had to change a few things but it is working as expected now.

Firstly, had to add index projections to the skillset and explicitly map all fields I want to populate in the search index. Note that contentVector does not show up in search index because it is not retrievable.

skillset = SearchIndexerSkillset(
        name="cf-chunk-embed-skillset",
        description="Skillset for chunking and Azure OpenAI embeddings",
        skills=[split_skill, embedding_skill],
        index_projection=SearchIndexerIndexProjection(
            selectors=[
                SearchIndexerIndexProjectionSelector(
                    target_index_name="cf-rag-index",
                    parent_key_field_name="parent_id",
                    source_context="/document/chunks/*",
                    mappings=[
                        InputFieldMappingEntry(name="chunk", source="/document/chunks/*"),
                        InputFieldMappingEntry(name="contentVector", source="/document/chunks/*/contentVector"),
                        InputFieldMappingEntry(name="title", source="/document/title"),
                        InputFieldMappingEntry(name="abstract", source="/document/abstract"),
                        InputFieldMappingEntry(name="summary", source="/document/summary"),
                        InputFieldMappingEntry(name="jurisdiction", source="/document/jurisdiction"),
                        InputFieldMappingEntry(name="category", source="/document/category"),
                        InputFieldMappingEntry(name="location", source="/document/location"),
                        InputFieldMappingEntry(name="document_type", source="/document/document_type"),
                    ]
                )
            ],
            parameters=SearchIndexerIndexProjectionsParameters(
                projection_mode="skipIndexingParentDocuments"
            )
        )
    )

Also needed to create a new parent id field and modify the key field to have keyword analyzer.

fields = [
        SearchField(name="id", type=SearchFieldDataType.String, key=True, analyzer_name="keyword"),
        SimpleField(name="parent_id", type=SearchFieldDataType.String, filterable=True),
        SearchableField(name="title", type=SearchFieldDataType.String),
        # SearchableField(name="content", type=SearchFieldDataType.String),
        SearchableField(name="chunk", type=SearchFieldDataType.String),
        SimpleField(name="location", type=SearchFieldDataType.String, filterable=True),
        SimpleField(name="document_type", type=SearchFieldDataType.String, filterable=True),
        SearchableField(name="jurisdiction", collection=True, type=SearchFieldDataType.String, filterable=True),
        SearchableField(name="category", collection=True, type=SearchFieldDataType.String, filterable=True),
        SearchableField(name="summary", type=SearchFieldDataType.String),
        SearchableField(name="abstract", type=SearchFieldDataType.String),
        SearchField(name="contentVector", type=SearchFieldDataType.Collection(SearchFieldDataType.Single),
                    searchable=True, vector_search_dimensions=3072, vector_search_profile_name="cf-vector"),
    ]

Lastly, you can remove the output field mappings from the search indexer. It didn't seem to do anything when the index projection is set on the skillset.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: cap

79091079

Date: 2024-10-15 17:24:42
Score: 2.5
Natty:
Report link

After two days of frustration, I posted this question. Five minutes later, I stumbled on the answer. I reviewed the Release Pipeline and drilled down a couple of levels in the directory where the artifact is stored. This has been unnecessary in previous pipelines, but it is what worked for this one. My pipeline ran successfully!

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

79091067

Date: 2024-10-15 17:21:41
Score: 3
Natty:
Report link

PlantCV's binary threshold (https://plantcv.readthedocs.io/en/stable/binary_threshold/) would be able to segment the handwriting. Then, you could use autocrop (https://plantcv.readthedocs.io/en/stable/auto_crop/) to grab each line of text individually for training. An example: enter image description here img, path, filename = pcv.readimage("./lQkrHG19.png")

threshold_light = pcv.threshold.binary(gray_img=img, threshold=220, object_type='dark')

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Keely Brown