79211615

Date: 2024-11-21 14:34:15
Score: 2
Natty:
Report link

Adding the attribute splitStatements="true" to the sql tag resolved the issue. Thanks to the tip provided by @siggemannen.

Updated code

<changeSet author="me" id="poc" runAlways="true" runOnChange="true" >
 <sql splitStatements="true">
  BEGIN
      DECLARE @MyVariable INT;
      SET @MyVariable = 10;
  END;
 </sql>
</changeSet>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • User mentioned (1): @siggemannen
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rick

79211595

Date: 2024-11-21 14:31:15
Score: 2
Natty:
Report link

The latest version of Office 365 allows for this with the CreateBookmarks argument.

Microsoft Documentation: https://learn.microsoft.com/en-us/office/vba/api/word.document.exportasfixedformat

Example VBA Code:

ActiveDocument.ExportAsFixedFormat _
    OutputFileName:= "#######Filepath#########", _
    ExportFormat:=wdExportFormatPDF, _
    CreateBookmarks:=wdExportCreateHeadingBookmarks
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Danny

79211579

Date: 2024-11-21 14:25:13
Score: 1.5
Natty:
Report link

I just had the same issue and error message with VScode (I'm on Windows 10, vscode 1.95.3). I restarted my machine (Start menu -> power button -> Restart option) and that fixed the issue for me.

Mentioning in case anyone else runs into this issue, don't skip restarting just because it didn't work for the author.

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

79211567

Date: 2024-11-21 14:22:12
Score: 2.5
Natty:
Report link

enter code hereFacebook(+-code Recovery+-)enter code here

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Suman Ghosh

79211564

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

make sure to have jjwt-api and jjwt-impl dependencies versions are matching. Also do mvn clean & install.

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

79211553

Date: 2024-11-21 14:17:10
Score: 1.5
Natty:
Report link

Our application has met the same issue. In order to fix this, you can modify the microsoft edge policies in GPEdit:

GPEdit -> Computer Configuration -> Administrative Templates -> Microsoft Edge -> Restrict exposure of local IP address by WebRTC -> Enabled -> Allow public and private interfaces over http default route.

Additional information here https://admx.help/?Category=EdgeChromium&Policy=Microsoft.Policies.Edge::WebRtcLocalhostIpHandling

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

79211551

Date: 2024-11-21 14:17:09
Score: 9 🚩
Natty: 5.5
Report link

using configuration via INI file is perfect when runniung python script during runtime. When starting my script in rc.local I get KeyError and script is aborted:

Nov 21 14:59:54 RaspiJura4 rc.local[916]: fileConfig('logging.ini') Nov 21 14:59:54 RaspiJura4 rc.local[916]: File "/usr/lib/python3.11/logging/config.py", line 71, in fileConfig Nov 21 14:59:54 RaspiJura4 rc.local[916]: formatters = _create_formatters(cp) Nov 21 14:59:54 RaspiJura4 rc.local[916]: ^^^^^^^^^^^^^^^^^^^^^^ Nov 21 14:59:54 RaspiJura4 rc.local[916]: File "/usr/lib/python3.11/logging/config.py", line 104, in _create_formatters Nov 21 14:59:54 RaspiJura4 rc.local[916]: flist = cp["formatters"]["keys"] Nov 21 14:59:54 RaspiJura4 rc.local[916]: ~~^^^^^^^^^^^^^^ Nov 21 14:59:54 RaspiJura4 rc.local[916]: File "/usr/lib/python3.11/configparser.py", line 979, in getitem Nov 21 14:59:54 RaspiJura4 rc.local[916]: raise KeyError(key) Nov 21 14:59:54 RaspiJura4 rc.local[916]: KeyError: 'formatters'

Is there any idea how to solve this? Best regards Pit

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (1): Is there any
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1.5): how to solve this?
  • Contains signature (1):
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Filler text (0.5): ^^^^^^^^^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^^
  • Low reputation (1):
Posted by: Pit

79211538

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

It's because age is probably an integer. Try message = name + "is" + str(age)

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

79211536

Date: 2024-11-21 14:13:08
Score: 3
Natty:
Report link

The issue has been identified, and the fix will be included in the next patch. The release is scheduled to be available within the next two weeks. Please stay tuned for the update, and thank you for your patience!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nishith Shrivastav

79211523

Date: 2024-11-21 14:10:08
Score: 1
Natty:
Report link

In each communication point you pass the current time and the step length as argument to the fmi2DoStep function. This error message means that in the following step, the time of the communication point t_{i+1} is not exactly equal to t_{i} + delta_t. So, most likely this is a truncation error of the master algorithm.

You could replace the computation of the next communication point by a getReal call to receive the communication time computed by the FMU after each doStep call. If you cannot modify the master algorithm, you have to contact the support to let the developers fix it.

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

79211520

Date: 2024-11-21 14:10:08
Score: 0.5
Natty:
Report link

To speed up your app you can follow below steps:

Combine API Requests:

Discuss with your backend developer to merge the APIs into a single request that returns all the required data in one response, or reduce it from 4 to 2 or something like that. For example, if one API fetches homepage details and another fetches user details, pass user-specific parameters in a single request and get everything at once.

Optimize Frontend Loading:

If combining APIs isn't possible, prioritize loading essential data first. Use shimmer placeholders or similar for sections dependent on secondary APIs. Fetch secondory prioritized data in background using asynchronous updates (e.g., StreamBuilder or FutureBuilder).

Caching:

Cache static or semi-static data to reduce repeated API calls.

UI Optimization:

Simplify widget trees for complex designs and avoid unnecessary rebuilds

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

79211512

Date: 2024-11-21 14:08:06
Score: 6.5 🚩
Natty:
Report link

did anyone solve this (NOBRIDGE) ERROR Error: Exception in HostFunction: Unable to convert string to floating point value: "large"

Reasons:
  • RegEx Blacklisted phrase (3): did anyone solve this
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did anyone solve this
  • Low reputation (1):
Posted by: Solomon Snow

79211508

Date: 2024-11-21 14:07:06
Score: 1
Natty:
Report link

What worked for me: Pycharm Settings -> Build, Execution, Deployment -> Python Debugger -> Drop into debugger on failed test:

Screenshot

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: plutasnyy

79211490

Date: 2024-11-21 14:03:05
Score: 3
Natty:
Report link

In my case it was a broken shared folder. Issue disappeared after rebooting the server.

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

79211485

Date: 2024-11-21 14:02:04
Score: 3
Natty:
Report link

For me, the issue was probably that I had a number of very old virtual environments lying around that I hadn't used in years. Deleting all of them solved the problem.

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

79211479

Date: 2024-11-21 14:01:04
Score: 1.5
Natty:
Report link

You can partition your Hudi table based on time intervals (e.g., year, month, day) to optimize storage and query performance. This enables efficient querying of data within specific time ranges.

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

79211477

Date: 2024-11-21 14:01:04
Score: 1
Natty:
Report link
.mat-stepper-horizontal-line,
.mat-horizontal-stepper-header::after,
.mat-horizontal-stepper-header::before {
  top: 27px !important;
  border-top-width: 5px !important;
  transition: background-color 0.3s ease, width 0.3s ease;
}
.mat-step-header[ng-reflect-state="done"]::after,
.mat-step-header[ng-reflect-state="done"]+ .mat-step-header[ng-reflect-state="done"]::before {
  background: green !important;
  transition: background-color 0.5s ease, width 0.5s ease; 
}
.mat-step-header[ng-reflect-state="done"] + .mat-stepper-horizontal-line {
  background: green;
  transition: background-color 0.5s ease; 
}
.mat-step-header[ng-reflect-selected="true"]::before,.mat-step-header[ng-reflect-state="done"]::before{
  background: green;
}
Angular 15
Please check this it will help you out 
Reasons:
  • Blacklisted phrase (1): Please check this
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mallikarjuna Muraboina

79211468

Date: 2024-11-21 13:59:03
Score: 1
Natty:
Report link

a short answer: you shouldn't try to bypass without authorization. Try to reach out their customer service. sometimes they can offer an access through API

"Based on factors such as information security and protecting the value of website content, this site gives permission to stop access to uncertified robots, crawlers and other unnatural human access behaviors."

"How to remove restrictions Please stop non-human access to this website in the network environment, record the following blocked connection information, provide contact information to contact our customer service, and request us to lift the access restrictions. In addition, if you have business needs and need a certified crawler to access this website in a non-human way, please contact our customer service and we will have a business window to explain the cancellation to you."

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

79211451

Date: 2024-11-21 13:54:02
Score: 1.5
Natty:
Report link

It is not possible for an item to have 3 different prices in its record in Xero.

When you use an item in a request eg to create a bill in Xero you can specify the price in the request as part of the body in the UnitAmount field.

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

79211448

Date: 2024-11-21 13:53:01
Score: 8.5 🚩
Natty:
Report link

Can you share you solution for that problem?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share you solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you share you solution for that
  • Low reputation (1):
Posted by: Ivica Tasic

79211446

Date: 2024-11-21 13:53:00
Score: 3
Natty:
Report link

What prevents you from doing the following?

var options = await dbContext.Options.ToListAsync();

//Machine to seed:
Machine machine = new(){ description="MyTestMachine" }
OptionMachine opt = new(){ Machine = machine, Option = options[0], price = 500M };
machine.Options.Add(opt)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Sancho Panza

79211445

Date: 2024-11-21 13:52:00
Score: 2.5
Natty:
Report link

I have enabled the DevOps Platform integration in Sonarqube, but still it is not reflecting on my MR.

Any changes that i have to make in mu gitlab-ci.yaml file

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

79211438

Date: 2024-11-21 13:52:00
Score: 0.5
Natty:
Report link

You could convert them to to sets and use the bitwise operator/logical(&) to effectively combine to 2 lists and meet your criteria.

def find_common_elements(list1 :list, list2:list):
    set1 = set(list1)
    set2 = set(list2)
    
    return list(set1 & set2)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mippy

79211436

Date: 2024-11-21 13:50:59
Score: 4
Natty:
Report link

After delete cache folder, it's OK.

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

79211433

Date: 2024-11-21 13:50:59
Score: 0.5
Natty:
Report link
  1. Remove old version (whole folder): C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs
  2. Install specific version of MVS -> 2022 LTSC 17.2.0
  3. In configuration select: ""C++ Universal Windows Platform.."
  4. in C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\Appx\Debug\x64, you should have desired version of Microsoft.VCLibs.140.00.Debug

the second option is:

  1. Remove old version (whole folder): C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs
  2. Install specific version of MVS -> 2022 LTSC 17.2.0
  3. In configuration don't select any extra packages which you don't need
  4. After finish installation export your configuration export configuration
  5. Open configuration in text editor and add this package: "Microsoft.VisualStudio.ComponentGroup.MSIX.Packaging", "Microsoft.VisualStudio.ComponentGroup.WindowsAppSDK.Cs"
  6. Open MVS Installer again and import configuration import configuration
  7. Install
  8. in C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\Appx\Debug\x64, you should have desired version of Microsoft.VCLibs.140.00.Debug
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Marek Biolik

79211424

Date: 2024-11-21 13:45:58
Score: 1
Natty:
Report link

LinkedIn's API rate limit is indeed challenging, especially for apps displaying analytics using Pages Data Portability. The main issue is that the rate limit is application-wide, not user-specific. This means:

Whether your app has 1 user or 1,000 users, the limit remains the same. If one user exhausts the quota, all other users are blocked until the quota resets.

Use LinkedIn for OAuth Only: Instead of fetching analytics, limit LinkedIn usage to authentication and explore other data sources for insights.

Feedback to LinkedIn It would be helpful if LinkedIn introduced pay-as-you-go plans or user-specific rate limits. This would make the API more suitable for real-world, multi-user applications.

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

79211422

Date: 2024-11-21 13:45:58
Score: 1.5
Natty:
Report link

A solution is to implement the bridge between your renderer and Node can be done through the preloader and IPC. I still don't know why the considerably less tedious way to do it - as listed in the question - does not work, but not a lot of traction on the question to find that out.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Fluxian

79211420

Date: 2024-11-21 13:45:58
Score: 2
Natty:
Report link

Too new to make a comment. line 10 of the listed Makefile: CC = avr-gcc

avr-gcc is your compiler. So that's what you need to use.

you might look at winavr to provide this compiler for MsOS, or on linux install avr-gcc.

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

79211413

Date: 2024-11-21 13:44:58
Score: 1
Natty:
Report link

Use an ADS client that is connected to the EtherCAT masters AmsNetId and Port number 65535.

Prepare a byte buffer[] that has a length that is equal to 2*ConfiguredSlaveCount. (2 is the size of ST_EcSlaveState).

If you don't know your configured slave count you can read it as an uint from the same ADS client at index group 0x6 subIndex 0x0.

Do a Client.Read operation supplying this buffer to index group 0x9 and subIndex 0x0. Your buffer will be filled with data that describes an ST_EcSlaveState for each of your configured slaves. A description of the struct can be found here: https://infosys.beckhoff.com/english.php?content=../content/1033/tcplclib_tc2_ethercat/57122443.html&id=

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

79211405

Date: 2024-11-21 13:42:58
Score: 1.5
Natty:
Report link

😭 I found a way and it's working as intended. I am still not sure if it's right method (since I am new to vhost customization and all) but here you go:

I just edited the vhost files for my example.com for port 80 (vhost.conf) in litespeed folder.

What I changed in the file was a simple line of code:

extprocessor 30000 {
  type                    proxy
  address                 https://127.0.0.1:30000
  env             NODE_ENV=production
  maxConns                5 
  initTimeout             20
  retryTimeout            20
  respBuffer              0
}

I just changed the address 127.0.0.1:30000 to address https://127.0.0.1:30000

Now, example.com is:

https://example.com is

  1. Firefox - working without problems
  2. Edge/Brave/Chrome - working without problems

http://example.com:30000 is

https://example.com:30000 is

this was done with nodejs using:

https.createServer(options, app).listen(30000, ()=>{
console.log("Running at port 30000");
});

and in options:

const options = {
    key: fs.readFileSync(path.resolve("example.com.key")),
    cert: fs.readFileSync("example.com.crt"),
    ca: fs.readFileSync(path.resolve("example.com-ca.crt"))
};

ca file(s) might not be available under your control panel's ssl folder. Mine works even when I omit the ca key-value pair.

P.S. Last night copilot broke my brain after serving me an answer where the code asked http and https to listen to port 30000, and then copilot itself said one port cannot be assigned to two different things. 😭 I quit copilot then and there.

Reasons:
  • RegEx Blacklisted phrase (1.5): I am new
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Loves chicken

79211399

Date: 2024-11-21 13:40:57
Score: 1.5
Natty:
Report link

VS Code has an auto-wrapping feature that wraps lines at a certain column width. This is useful when you're working with long lines of code or comments.

Press Alt + Z (Windows/Linux) or Option + Z (macOS) to toggle Word Wrap. This will automatically break long lines to fit within the editor window, making them easier to read without changing the code.

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

79211388

Date: 2024-11-21 13:37:56
Score: 1
Natty:
Report link

You asked why, and there's no way to do this without a wall of text, so here's your wall of text: I'm not about to find out where, because quite frankly your method to get to the result is very convoluted, but somewhere in your network of filters and lookups, the cell containing -20, is being processed by a function that is either instructed to read it as text ("-20"), or the function itself is text-based in origin, and will therefore read and store any input as text. This all happens as an array in memory.

Secondly, you've stumbled upon the hidden, secret difference between an array and a range. Simply put, an array can only exist in memory to be remembered and manipulated, or transfered to a new array, and finally, by the function, one or any or all of these arrays can then be written to a range of cells. A range can't do any of that, it's more like a piece of paper you printed the result onto. If your function doesn't actually print data to cells, it's not a range, but an array. If you cannot see the range in your sheet, it doesn't exist.

RELEVANT: You (smartly) put EffectiveScore in Name Manager, so you could ezpz refer to it. It is essential to understand that EffectiveScore is calculated and stored as an array in memory. It doesn't exist as a range before you enter =EffectiveScore in a cell, and the function prints over 3 rows: 100, 80, 100.

Before you do that, this is what is stored in memory: 100, 100+"-20", 100. You may not see them as this, because you're thinking "I'm just doing math here, lol", but + and - are functions, just like SUM(). Unlike the SUM() function though, they are instructed to convert/read all inputs as numbers. When you enter =SUM(EffectiveScore), the range of EffectiveScore doesn't exist yet, so the SUM function uses the array stored in memory, which includes -20 stored as text. It skips that because "text isn't math, lmao", and writes 300 to your cell. When you add the +, you're instructing the SUM() function to read all inputs as numbers. Now it becomes 100, 100+-20, 100, which equals 280.

You can get the same effect by doing =SUM(NUMBERVALUE(EffectiveScore)).

It's the same thing that happens here: =1=1 will return TRUE, because both are 1, and both are numbers. ="1"=1 will return FALSE, even though both are 1, the first is a text string, and the other a number. =NUMBERVALUE("1")=1 will return TRUE, because NUMBERVALUE() converts it's text-string-intestines to a number. =0+"1"=1 will return TRUE because as previously exlained, the + function converts text "1" to a number: 1.

Reasons:
  • Blacklisted phrase (0.5): lmao
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Blebbypants McFearson

79211383

Date: 2024-11-21 13:36:56
Score: 1
Natty:
Report link

This is answered in the Go FAQ “Why is my nil error value not equal to nil?”

Basically, since the interface has a type, it is not nil.

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

79211382

Date: 2024-11-21 13:35:55
Score: 1.5
Natty:
Report link

If BLAS threading cannot be controlled and persists with multithreading, consider using explicit parallel processing to ensure proper thread control. For example:

library(parallel)

cl <- makeCluster(1) # Single core

clusterExport(cl, list("explained_variance_aov", "data"))

results <- parLapply(cl, paste0("PC", 1:3000), function(pc) { explained_variance_aov(pc, data, "covar") })

stopCluster(cl)

results <- do.call(rbind, results)

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

79211381

Date: 2024-11-21 13:35:55
Score: 4.5
Natty:
Report link

SD_MMC.remove("/"+ file.name());

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: علی روستایی

79211376

Date: 2024-11-21 13:33:54
Score: 2.5
Natty:
Report link

struct Struct { int foo; // Field to be cleared char bar; // Other fields // May have padding for alignment purposes };

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bogireddy Varun kumar reddy

79211372

Date: 2024-11-21 13:32:54
Score: 0.5
Natty:
Report link

You may also want to change the version of the OpenAI api, at least for me it was a blocker to not able to use structured outputs.

I changed env variable from 2024-03-01-preview to 2024-08-01-preview, and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mehmet Burak Sayıcı

79211368

Date: 2024-11-21 13:32:54
Score: 0.5
Natty:
Report link

Turns out I was simply using a wrong command line to run the playbook: ansible-playbook -i inventory.yml tasks/main.yml instead of ansible-playbook -i inventory.yml playbook.yml.

After that the error messages became much clearer and my final playbook looks like:

---
- name: Play
  hosts: all
  become: true
  roles:
    - /home/marco/play/roles/ics-ans-orca-driver
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Marco Montevechi Filho

79211367

Date: 2024-11-21 13:31:53
Score: 1.5
Natty:
Report link

Alright, i found the issue. To avoid the problem I had to add a backlink to the ToMany property in order to make it work properly :

@Entity()
class MyObject {

@Backlink('holderObject') // This was missing
final insideObjects = ToMany<InsideObject>();

MyObject({
 this.name,
});

...
}

Here the foc info from objectbox :

When using @Backlink it is recommended to explicitly specify the linked to relation using to. It is possible to omit this if there is only one matching relation. However, it helps with code readability and avoids a compile-time error if at any point another matching relation is added (in the above case, if another ToOne is added to the Order class).

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Backlink
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Xababa Dalabama

79211360

Date: 2024-11-21 13:29:53
Score: 3.5
Natty:
Report link

django-q2 is a fork of django-q that works for Django >= 4.2, check it out here: https://pypi.org/project/django-q2/

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jtoby

79211344

Date: 2024-11-21 13:25:52
Score: 1.5
Natty:
Report link

For me this happened after switching the macbook from Intel to M4 (RN 0.72)

I had to enable Rosetta destination and run on a Rosetta iPhone to make the build work in Xcode:

enter image description here]1 enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: Florin Dobre

79211340

Date: 2024-11-21 13:23:51
Score: 2.5
Natty:
Report link

Using your account in this link you may click the “Enable” button to start using Claude Sonnet 3.5.

image

Here’s additional public documentation link for Anthropic Code Cookbook: Check out example code for a variety of complex tasks, such as RAG from various web sources, making SQL queries, function calling, multimodal prompting, and more.

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: McMaco

79211330

Date: 2024-11-21 13:18:50
Score: 3.5
Natty:
Report link

For iOS 15 and later see Warpling's answer here: https://stackoverflow.com/a/79118419/19705384

In summary:

viewController.sheetPresentationController?.prefersPageSizing = false
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joe Thomson

79211329

Date: 2024-11-21 13:18:50
Score: 2
Natty:
Report link

Hi Im trying to replicate this although my .tif doesnt seem to be loading properly as i get this error message:

class       : SpatRaster 
dimensions  : 5972, 5020, 1  (nrow, ncol, nlyr)
resolution  : 100, 100  (x, y)
extent      : 2863300, 3365300, 3211800, 3809000  (xmin, xmax, ymin, ymax)
coord. ref. : ETRS89-extended / LAEA Europe (EPSG:3035) 
source      : U2018_CLC2018_V2020_20u1.tif 
name        : U2018_CLC2018_V2020_20u1 
Warning message:
In class(object) <- "environment" :
  Setting class(x) to "environment" sets attribute to NULL; result will no longer be an S4 object

Any advice would be greatly appreciated!

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (1): i get this error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: AlexValentine

79211321

Date: 2024-11-21 13:16:49
Score: 3.5
Natty:
Report link

It seems that clearing events from a 'secondary' calendar is currently not possible, even for users with elevated roles like Calendar Admin or similar.

While you can delete, create, and modify calendars or events, attempting to clear all events from a secondary calendar using the following endpoint:

https://www.googleapis.com/calendar/v3/calendars/_calendar_id_/clear

where _calendar_id_ is a value like an email, e.g., [email protected]) results in the following error:

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "invalid",
        "message": "Invalid Value"
      }
    ],
    "code": 400,
    "message": "Invalid Value"
  }
}

If anyone has insights, a guide, or tips on how to clear events from a secondary calendar, your help would be greatly appreciated!

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (3): help would be greatly appreciated
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrea Rossi

79211317

Date: 2024-11-21 13:16:49
Score: 1
Natty:
Report link

I'd suggest a few steps:

  1. try running the same step after a few seconds (sometimes 2s is not enough to element to load)
  2. check if you are interacting with the correct window/tab
  3. verify if there are no "spaces" in the text try using contain: bot.FindElementByXPath("//div[contains(text(), 'IMECall')]").Click
  4. check for iframes (I had many problems with that when I was learning to use selenium with vba) check if there is a tag "iframe" in devtools. if the element is inside a frame:

bot.SwitchToFrame bot.FindElementByTag("iframe")

bot.FindElementByXPath("//div[text()='IMECall']").Click

bot.SwitchToDefaultContent ' Return to the main page

there are other steps, but those would be my first guesses

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

79211310

Date: 2024-11-21 13:15:49
Score: 2.5
Natty:
Report link

In ~\AppData\Roaming\Sublime Text\Packages\Anaconda\.python-version
inputs your python version (my is 3.12).

After then was no message

But ...

I think this is beter.

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

79211309

Date: 2024-11-21 13:14:49
Score: 0.5
Natty:
Report link

The urls is deprecated if you still want it you need to enable it. You should only use url to get the current url.

Mention in the UPGRADE file: https://github.com/sulu/sulu/blob/2.6/UPGRADE.md#deprecated-urls-variable-in-return-value-of-sulu_content_load

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

79211301

Date: 2024-11-21 13:11:48
Score: 5
Natty: 4
Report link

dears, thanks for sharing knowledge. I noticed that when using concat OR & in excel, the double quotes in source cells if any, gets repeated when we copy paste the result to plain text or notepad. But if you just copy paste into a word document then the values show up perfectly fine.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (2): thanks for sharing
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kamalakannan V

79211298

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

The Premium Reporting API provides a PAT (Personal Access Token) exactly for this use case, letting you access their API from a server side, without having a user going through the 3-legged login dance.

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

79211279

Date: 2024-11-21 13:06:46
Score: 3
Natty:
Report link

You can define your command the same as the Kernel file on bootstrap/app.php using withSchedule method

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

79211276

Date: 2024-11-21 13:05:46
Score: 0.5
Natty:
Report link

I'm afraid the Data Visualization extension doesn't support rotating sprites. What you could do instead is, add custom HTML or SVG elements on top of the Viewer canvas, and use the Viewer SDK to make sure these elements stay "attached" to a specific XYZ position in the model space. We do this in the APS Digital Twin demo:

enter image description here

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

79211268

Date: 2024-11-21 13:02:46
Score: 2
Natty:
Report link

Working fine:

int ID= await dbConnection.QueryFirstOrDefaultAsync(new CommandDefinition(sql, command.Item, cancellationToken: cancellationToken));

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

79211264

Date: 2024-11-21 13:01:45
Score: 9 🚩
Natty: 5.5
Report link

Hey Is there anyone who can guide me...actually I would like to know how to create a customer or supplier using the Twinfield API. Could you please guide me on the following:

What API endpoint or URL should I use for creating a customer or supplier in Twinfield? What XML structure should I use in the request body to create a customer or supplier? Are there any specific parameters (such as company ID, customer/supplier code, etc.) I need to include in the request? What type of response should I expect after creating a customer or supplier? Any insights or examples would be greatly appreciated! Thanks for your help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): guide me
  • Blacklisted phrase (1.5): I would like to know
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): Is there any
  • Whitelisted phrase (-0.5): Thanks for your help
  • RegEx Blacklisted phrase (2.5): Could you please guide me
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Saurav

79211260

Date: 2024-11-21 13:00:44
Score: 0.5
Natty:
Report link

For a windows based build agent use call activate <env_name>:

- script: |
    conda install --yes --quiet --name myEnvironment ruff
    call activate myEnvironment
    ruff format .
  displayName: Activate environment and run ruff

It's the equivalent to mentioned source activate myEnvironment for unix.

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

79211258

Date: 2024-11-21 13:00:44
Score: 1.5
Natty:
Report link

IMO, the best way to investigate your problem is to perform a large amount of requests and took a heapdump. You analyse the heapdump with Memory Analyzer You open the "Histogram" view You add the column "Retained Heap" You sort on "Retained Heap" column.

Now you have a better view of the object and memory repartition. You can find the origin of different objects with a right click > List objects > with incomming references.

You can add a screenshot to have more help.

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

79211255

Date: 2024-11-21 12:59:44
Score: 0.5
Natty:
Report link

Incremental counting answered here depends on the grid items being in order and cannot deal with the irregular order caused by grid-auto-flow: dense and individual grid-row / grid-column.

Even if human isn't interested in pixel coordinates, script can convert them into grid indexes!

//// returnedArray[elmIdx] = {row: rowIdx, column: colIdx}
function measureGridIndexes(elms) {

  const coords = {row: [], column: []};  // The two will be very sparse arrays
  for (const [elmIdx, elm] of elms.entries()) {
    const x = elm.offsetLeft, y = elm.offsetTop;
    coords.row[y] ??= [];  // An array of element indexes at the same Y pixel coordinate
    coords.row[y].push(elmIdx);
    coords.column[x] ??= [];  // X ditto
    coords.column[x].push(elmIdx);
  }

  const gridIdxs = [];
  /// .flat() densifies a sparse array
  for (const [rowIdx, elmIdxs] of coords.row.flat(0).entries()) {
    for (const elmIdx of elmIdxs) {
      gridIdxs[elmIdx] = {row: rowIdx};
    }
  }
  for (const [colIdx, elmIdxs] of coords.column.flat(0).entries()) {
    for (const elmIdx of elmIdxs) {
      gridIdxs[elmIdx].column = colIdx;
    }
  }

  return gridIdxs;

}

Demo: https://codepen.io/phroneris/pen/RwXOJZZ

Note, however, that this code only considers integer item coordinates.

And of course, this does not address cases where the position is further customized with individual margin, position, etc.
I wish no website would do such styling, which would throw away the advantages of grid layout...

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

79211248

Date: 2024-11-21 12:58:43
Score: 5
Natty: 4
Report link

Is there any way to know the exact reason of 400 response code? I am getting that for invalid password as per password policy but I am not getting error description in response.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: Atul Aggarwal

79211244

Date: 2024-11-21 12:57:43
Score: 0.5
Natty:
Report link

I have reproduced the code and made some adjustments by importing tf_keras instead of keras, and using tf_keras consistently throughout the code. This ensures compatibility with TensorFlow's integrated Keras API. After making these changes, the code working more efficiently.Please refer to this gist

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

79211238

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

To revert date like this "24.12.2023" to "2023-12-24" and create directory:

FOR /f "tokens=1-3 delims=. " %%a IN ("%date%") DO SET dt=%%c-%%b-%%a
md %dt%
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: m_skipper

79211228

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

Do not use ansible.builtin.command for this purpose. This is expected to fail as your command is returning rc != 0 so the module perceive this as a failure.

There is other modules that can help you with this such as ansible.builtin.systemd

See example here

- name: Get Service Status
  ansible.builtin.systemd:
    name: mariadb
  register: result

- debug:
    var: result.status.ActiveState

- name: Mariadb start if in inactive state
  ansible.builtin.service:
    name: mariadb
    state: started
  when: result.status.ActiveState == 'inactive'

Also one note on your usage of changed_when and handlers. These should be used when your task is making actual changes on the system. Here you're just looking for the state of something, so you're not making changes. As you can see above you just need to useregister to save the result of your task and use an appropriate when statement to apply the intended logic.

See links for more info:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: akire0ne

79211226

Date: 2024-11-21 12:53:41
Score: 6 🚩
Natty: 5.5
Report link

Anyone find the answer for this issue?

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

79211223

Date: 2024-11-21 12:52:41
Score: 1.5
Natty:
Report link

I tested the tab bar on ios 18 and indeed there is a problem, but with one thing. The fact is that if you build an application for iOS 18 through the xcode 16, the items will really disappear, but this is a bug exclusively of the build in this version of the xcode. If you build absolutely the same application for iOS 18, but after, say, the 15.4 xcode, which supports iOS 18, which is strange, then there are no problems with the tab bar. Oh apple, such an apple

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

79211221

Date: 2024-11-21 12:52:41
Score: 2.5
Natty:
Report link

Thanks its work ! my next.config.js file code:

/** @type {import('next').NextConfig} */ const nextConfig = { output: "export", trailingSlash: true, // Enables trailing slashes in URLs experimental: { fallbackNodePolyfills: false, }, images: { unoptimized: true, // Required for static export remotePatterns: [ { protocol: "https", hostname: "edyug.com", port: "", pathname: "/img/", // Allows images from the /img directory }, { protocol: "https", hostname: "edyug.com", port: "", pathname: "/media/", // Allows images from the /media directory }, ], }, };

module.exports = nextConfig;

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @type
  • Low reputation (1):
Posted by: Shivam Kumar

79211218

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

Spring 5.3.41 is a commercial release, available only to those who has subscribed the extended support.

Please check this link: https://spring.io/blog/2024/10/17/spring-framework-cve-2024-38819-and-cve-2024-38820-published

Reasons:
  • Blacklisted phrase (1): Please check this
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: Francesco Poli

79211212

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

I am guessing you have a LINQ query this has delayed execution until the data is needed. Try the following.

Add two lines vat t = outcome.ToList(); ; // Debug on this line and View t

Reasons:
  • Whitelisted phrase (-1): Try the following
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Niall O'Dwyer

79211205

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

Yes, this is a known problem, unfortunately, when using the auto type, visual studio cannot determine the method fields and their types for a class, as far as I know, the only way to return tooltips is to explicitly indicate the type

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

79211200

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

As per the edit

It seems that in the newly added code for AddServiceDefaults there is a resilience strategy added http.AddStandardResilienceHandler();. Disabling this for now remedies the issue.

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

79211196

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

According to the DatePicker github page, there is a format option as a part of the plugin options array. Have you tried that?

e.g.

'pluginOptions' => [
    'format' => 'dd-M-yyyy',
    'todayHighlight' => true
]
Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Richard C

79211193

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

In the meantime, I have found a workaround:

I now use this Flutter package, called web_usb

And with some modifications to fit my device (especially concerning the endpoint-addressing), I have a working solution now that fully works also if running in release mode:

flutter run -d chrome --release

As of the other library usb_device I did not understand the described security issue from the answers and how to circumvent it. Maybe you can show a concrete example ?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: iKK

79211190

Date: 2024-11-21 12:43:38
Score: 0.5
Natty:
Report link

VSCode does not natively allow you to change the actual structure of the suggestions widget at this time.

The only thing you can do is customize it's colors using the editorSuggestWidget.<setting> as per the theme color docs.

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

79211188

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

I would like to add one note on the Anand's smart answer.

When you are to get a list of elements, you should use "find_elements" instead of "find_element".

Hope this also helps!

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

79211186

Date: 2024-11-21 12:42:37
Score: 0.5
Natty:
Report link

I had the same problem with the *.js files locally stored in git. Git changed the end-of-line from LF (unix) to CRFL (windows). The HASH is not valid after that.

In this case, you need to tell git to keep eol as needed using a file .gitattributes with lines of type:

/my/path/to/file.js eol=lf

Use the command dos2unix on the file before commit to fix the file.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pascal Béthune

79211185

Date: 2024-11-21 12:42:37
Score: 0.5
Natty:
Report link

you could do this:

sample = 9.283646283
print(len(str(sample).split(".")[1]))

str(sample) will convert the float to string

.split(".")[1] will split by the dot and return the decimals

len() will give you the lenght of the decimals-substring

result: 9

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

79211182

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

This is not a problem with s3 but with your frontend. you have a content security policy(CSP) configured on your frontend. That restricts it from loading the file. If you add the s3 url to your CSP or make it less restrictive it should work.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/connect-src

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: A. van Loon

79211180

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

Cropping the image this way should be doable with the Viewer SDK (see this blog post), although it would be quite a bit of work.

Here's a different idea, how about cropping the screenshot after it's been generated by the Viewer SDK? You could render the screenshot with a blank white background, and later you could have a small piece of code that would cut out all the white pixels above/below/next to your floorplan.

Reasons:
  • Blacklisted phrase (1): this blog
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Petr Broz

79211178

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

if these don't work, try a other format instead. I was uploading .png files but when i switched to .jpg files it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: César Van Leuffelen

79211166

Date: 2024-11-21 12:37:36
Score: 1.5
Natty:
Report link

in my case, It need more time to work correctly. like this:

setTimeout(function() {
    mymap.invalidateSize();
}, 500);

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

79211154

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

You need to add the location of the class you're trying to test (and all its dependencies) to the classpath...

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

79211152

Date: 2024-11-21 12:33:35
Score: 0.5
Natty:
Report link

The args stands for arguments that are passed to the function whereas kwargs stands for keyword arguments which are passed along with the values into the function.

*args (Non-keyword Arguments/Positional Arguments) – *args allows a function to accept any number of positional arguments i.e. arguments that are non-keyword arguments, variable-length argument list.

*kwargs (Keyword Arguments) – **kwargs is a special syntax that allows us to pass a variable length of keyword arguments to the function.

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

79211148

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

If you're experiencing problems with animations not working on your Framer site, particularly with ticker components or appear effects, the issue might be related to the "Reduced Motion" settings on specific devices or browsers. Check this

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ihab L.

79211145

Date: 2024-11-21 12:28:34
Score: 2
Natty:
Report link

Solved here : https://github.com/googlesamples/unity-jar-resolver/issues/712#issuecomment-2386068835

I've used unitypackage instead of UPM registry and use minimum API Level 24 and target API Level set the highest possible API (35 in my case)

Edit : Download External Dependency Manager unitypackage from here

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

79211137

Date: 2024-11-21 12:26:33
Score: 0.5
Natty:
Report link

I fixed this by changing from "module": "commonjs" to "module": "esnext" in tsconfig.json. Probably there is issue with import and export for old compiler version.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mingyu Dai

79211128

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

I found the problem. the fact is that in the main player control script there was a page where there was a check for true. If false, the line of making the camera inactive was executed.

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

79211124

Date: 2024-11-21 12:25:33
Score: 1.5
Natty:
Report link

Look on some demos

  1. Not defined collision, collide automatic (group = -1) https://brm.io/matter-js/demo/#mixed

  2. Defined mask + category - use for precize collision https://brm.io/matter-js/demo/#collisionFiltering

  3. Not defined collision, callback event (group = -1) - may be best for you https://brm.io/matter-js/demo/#sensors

  4. Collision by group, group = Body.nextGroup(true) https://brm.io/matter-js/demo/#car All grouped not collide between us, but can collide with others groups.

My example https://mlich.zam.slu.cz/js-matter/js-sorter/mechanical-sorter.htm

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

79211123

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

As Wulolo said that is the way, if you want to use the shortcut for toggling wordWrap: Alt + Z.

Preview when its On: toggle word wrap preview

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

79211122

Date: 2024-11-21 12:25:33
Score: 1.5
Natty:
Report link

Use this regular expresion:

.*DEBUG.*

to ignore lines containing the text "DEBUG"

File A: Line N

xxxxxx DEBUG xxxxx

File B: line N

yyyyyyy DEBUG yyyyyyy

If only this line N its different in the 2 files, it will me marked as equals files.

In window file folders, Folder Filter, select the expresion and in select option select *.*

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

79211119

Date: 2024-11-21 12:24:33
Score: 1.5
Natty:
Report link

As @AlexAR mentioned already in his comment, there's a viewer extension you can use to compare two versions of a design side-by-side: https://aps.autodesk.com/blog/difference-3d-models-autodeskdifftool-extension.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @AlexAR
  • Single line (0.5):
  • High reputation (-1):
Posted by: Petr Broz

79211118

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

Instead of using the npm command, test the code using the correct testing method found in your package.json file.

For example, if the command in the package.json file is: "test": "jest --watchAll --runInBand --detectOpenHandles", the correct .github/workflows/testing.yml file would be:

name: Run Tests
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Install Dependencies
        run: npm install
      - name: Run tests
        run: npx jest --runInBand --detectOpenHandles --forceExit

Don't use the --watchAll command as this could lead to the issue you were facing. Use the --forceExit command in the .github/workflows/testing.yml file to ensure the testing is exited.

This way, you can keep the command in the package.json file the same and can continue testing the app on your local machine in the same way.

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

79211110

Date: 2024-11-21 12:22:31
Score: 1.5
Natty:
Report link

AS of today, I updated all my packages to their last version using ncu and npm install. The warning is still here.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Philippe Corrèges

79211101

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

I am also facing this problem, I solved it this way

Go to Android Studio Settings

Settings > Build, Execution > Build Tool > Gradle

and set Gradle JDK path with JAVA_HOME

Reasons:
  • Blacklisted phrase (1): also facing this
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Manoj kumar

79211098

Date: 2024-11-21 12:18:30
Score: 6 🚩
Natty: 5
Report link

how to use byColumnNameAndValue(String columnName, String value) spec method, can you please share an example.

Reasons:
  • RegEx Blacklisted phrase (2.5): can you please share
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how to use
  • Low reputation (1):
Posted by: user3719130

79211097

Date: 2024-11-21 12:18:30
Score: 1.5
Natty:
Report link

Try using the container name in your .env file:

MERCURE_PUBLIC_URL=https://container-name/mercure
MERCURE_URL=https://container-name/mercure
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tóth Richárd

79211093

Date: 2024-11-21 12:17:29
Score: 3.5
Natty:
Report link

Same issue, but in my case it is stuck on loading in Firefox. Works in Chrome

Reasons:
  • RegEx Blacklisted phrase (1): Same issue
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: thewb

79211089

Date: 2024-11-21 12:17:29
Score: 0.5
Natty:
Report link

Inspired by this post and others I got to this:

Basically it's building off everything what has been said but there's also the ctypes.pythonapi.PyFrame_LocalsToFast which enables you to modify variables at various scopes which enabled me to make a pretty cool function.

Enjoy:

import ctypes
from inspect import currentframe
from IPython import get_ipython
from types import FrameType
from typing import Any

def has_IPython() -> bool:
    """Checks for IPython"""
    return get_ipython() != None

class nonlocals:
    """
    Equivalent of nonlocals()
    
    # code reference: jsbueno (2023) https://stackoverflow.com/questions/8968407/where-is-nonlocals,CC BY-SA 4.0
    # changes made: condensed the core concept of using a stackframe with getting the keys from the 
    # locals dict since every nonlocal should be local as well and made a class
    """
    def __init__(self,frame: FrameType|None=None) -> None:
        self.frame=frame if frame else currentframe().f_back
        self.locals=self.frame.f_locals
    
    def __repr__(self) -> str: return repr(self.nonlocals)
    @property
    def nonlocals(self) -> dict:
        names=self.frame.f_code.co_freevars
        return {key:value for key,value in self.locals.items() if key in names} if len(names) else {}

    def check(self,key: Any) -> None:
        if key not in self.nonlocals: raise KeyError(key)

    def __getitem__(self,key: Any) -> Any: return self.nonlocals[key]
    def update(self,dct) -> None:
        for key,value in dct.items(): self[key]=value
    def get(self,key,default=None) -> Any: return self.nonlocals.get(key,default=default)
    def __setitem__(self,key: Any,value: Any) -> None:
        self.check(key)
        self.locals[key]=value
        # code reference: MariusSiuram (2020). https://stackoverflow.com/questions/34650744/modify-existing-variable-in-locals-or-frame-f-locals,CC BY-SA 4.0
        ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(self.frame), ctypes.c_int(0))

    def __delitem__(self,key: Any) -> None:
        self.check(key)
        del self.locals[key]
        # code reference: https://stackoverflow.com/questions/76995970/explicitly-delete-variables-within-a-function-if-the-function-raised-an-error,CC BY-SA 4.0
        ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(self.frame), ctypes.c_int(1))

## Bonus function ##
class scope:
    """
    gets the function name at frame-depth and the current scope that's within the main program
    
    Note: if using in jupyter notebook scope.scope will remove jupyter notebook specific attributes
    that record in program inputs and outputs. These attributes will still be available just not via 
    scope.scope because it causes a recursion error from some of the attributes changing while in use

    How to use:

    def a():
        c=3
        def b():
            c
            y=4
            print(scope(1).locals)
            print(scope().locals)
            print(scope().nonlocals)
            scope(1)["c"]=7
            print(scope(1).locals)
            print(scope().locals)
            print(scope().nonlocals)
        b()
        print(c)
    a()
    ## i.e. should print:
    {'b': <function a.<locals>.b at 0x000001DD9DFEDB20>, 'c': 3}
    {'y': 4, 'c': 3}
    {'c': 3}
    {'b': <function a.<locals>.b at 0x000001DD9DFEDB20>, 'c': 7}
    {'y': 4, 'c': 7}
    {'c': 7}
    7
    
    This allows us to change variables at any stack frame so long as it's on the stack
    """
    def __init__(self,depth: int=0) -> None:
        ## get the global_frame, local_frame, and name of the call in the stack
        global_frame,local_frame,name=currentframe(),{},[]
        while global_frame.f_code.co_name!="<module>":
            name+=[global_frame.f_code.co_name]
            global_frame=global_frame.f_back
            if len(name)==depth+1: local_frame=(global_frame,) # to create a copy otherwise it's a pointer
        ## instantiate
        if depth > (temp:=(len(name)-1)): raise ValueError(f"the value of 'depth' exceeds the maximum stack frame depth allowed. Max depth allowed is {temp}")
        name=["__main__"]+name[::-1][:-(1+depth)]
        self.depth=len(name)-1
        self.name=".".join(name)
        self.local_frame,self.global_frame=local_frame[0],global_frame
        self.locals,self.globals,self.nonlocals=local_frame[0].f_locals,global_frame.f_locals,nonlocals(local_frame[0])

    def __repr__(self) -> str:
        """displays the current frames scope"""
        return repr(self.scope)
    @property
    def scope(self) -> dict:
        """The full current scope"""
        if has_IPython():
            ## certain attributes needs to be removed since it's causing recursion errors e.g. it'll be the notebook trying to record inputs and outputs most likely ##
            not_allowed,current_scope=["_ih","_oh","_dh","In","Out","_","__","___"],{}
            local_keys,global_keys=list(self.locals),list(self.globals)
            for key in set(local_keys+global_keys):
                if (re.match(r"^_i+$",key) or re.match(r"^_(\d+|i\d+)$",key))==None:
                    if key in not_allowed: not_allowed.remove(key)
                    elif key in local_keys:
                        current_scope[key]=self.locals[key]
                        local_keys.remove(key)
                    else: current_scope[key]=self.globals[key]
            return current_scope
        current_scope=self.globals.copy()
        current_scope.update(self.locals)
        return current_scope
    
    def __getitem__(self,key: Any) -> Any: return self.locals[key] if key in self.locals else self.globals[key]
    def update(self,dct) -> None:
        for key,value in dct.items(): self[key]=value
    def get(self,key,default=None) -> Any: return self.scope.get(key,default=default)
    def __setitem__(self,key: Any,value: Any) -> None:
        if key in self.locals:
            self.locals[key]=value
            # code reference: MariusSiuram (2020). https://stackoverflow.com/questions/34650744/modify-existing-variable-in-locals-or-frame-f-locals,CC BY-SA 4.0
            ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(self.local_frame), ctypes.c_int(0))
        else: self.globals[key]=value

    def __delitem__(self,key: Any) -> None:
        if key in self.locals:
            del self.locals[key]
            # code reference: https://stackoverflow.com/questions/76995970/explicitly-delete-variables-within-a-function-if-the-function-raised-an-error,CC BY-SA 4.0
            ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(self.frame), ctypes.c_int(1))
        else: del self.globals[key]
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ben Tonks

79211088

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

From 2024 theme, Both the theme and plugin file editors have been moved under TOOLS in wp dashboard left menu.

And to assign custom post type now I think you will have to use the top bar submenu under "New" and select the desired post type.

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

79211084

Date: 2024-11-21 12:15:29
Score: 0.5
Natty:
Report link

Update for the benefit of anyone else with the issue.

I raised a ticket with Graph API support and they flicked a switch which allowed it to work. So it appears that it won't work by default, possibly to prevent abuse.

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

79211079

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

Maybe this package made by Gary Polhill might work for you. By using mgr:mem and mgr:cpu-time during a behaviorspace run you can test the distribution of cpu_time and memory used across different behavior-space runs.

https://github.com/garypolhill/netlogo-jvmgr

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bart de Bruin

79211077

Date: 2024-11-21 12:14:29
Score: 1.5
Natty:
Report link

I suspect it is caused by "broadphase", this is a little bit late answer but, You could try "NaiveBroadPhase":

world.broadphase = new CANNON.NaiveBroadphase(world)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Seckin

79211061

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

Have you tried changing how the selected option is defined in the options tag? As the styling shouldn't normally interfere with livewire assignment to component properties.

<option @if($key == \App\Models\SavedSearch::INTERVAL_WEEK ) selected @endif value="{{$key}}"> {{$value}} </option>
Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Olumuyiwa