79078599

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

Here is the Best way in my opinion.

const reverseString = function (str) {
    let newStr = ''
    for(let i = str.length - 1 ; i >= 0 ; i--){
        console.log(str[i])
        newStr +=  str[i]
    }
};

Because You are making another array by first splitting then reversing and then joining again. You are taking extra steps.

To all developers, I would be happy to get comments on my code

The Real Challenge is to do it in-place Anyone Accepts?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Idrees Ahmed

79078598

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

The fix was to do the following:

Update Ruby Version

rbenv install 2.4.10

rbenv local 2.4.10

Reinstall Bundler

gem install bundler -v '1.17.3'

Update Capistrano to version 3.11.0 and dependent gems.

I also added the below to Capistrano's deploy.rb file but I don't really think it was needed.

set :app_deploy_user, '<user-used-to-write-files-to-server>'

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

79078588

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

Might be late on this, but now you can manually queue stages (link) in yaml pipelines. You can then set an approval check based on the time of the day (and day of week). (instructions)

With this when you queue the stage, provided you have set a timeout for the check longer than 1 day, the stage will pause until the time has come.

We use this to postpone our release, might be unwieldy if you need to do it only once, but it's doable

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

79078585

Date: 2024-10-11 14:18:09
Score: 0.5
Natty:
Report link

Try to generate the CSV file in UTF-8 format using SSIS (if code page 65001 is not supported by the SQL version).

  1. Create a SSIS package
  2. Add a data flow task
    • Add an OLE DB source > fetch data from the SQL table
    • Add a flat file destination (CSV)
  3. Call the SSIS package via an SQL agent job
  4. Execute the above job inside your script or Stored Procedure (SP)
Reasons:
  • No code block (0.5):
Posted by: Sanushi Salgado

79078572

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

I fixed the first issue by changing the "ul" tag to a "div" and removing the "taglist" and "aria-orientation" attributes. I think Esri uses a lot of generic code that doesn't always fit the circumstances, because there was no "li" element children so why use the "ul" tag in the first place?

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: GeoGene

79078567

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

I was able to solve the issue using the measure for the current year as a base and using the SAMEPERIODLASTYEAR function with a filter:

AnoAnteriorFaturamentoYeartodate = 

VAR FinalMesAtualAnoAnterior = 
    CALCULATE(
        MAX(tb_Calendario_Faturamento[Data]),
        YEAR(tb_Calendario_Faturamento[Data]) = YEAR(TODAY()) - 1 &&
        MONTH(tb_Calendario_Faturamento[Data]) <= MONTH(TODAY()) 
    )

RETURN
CALCULATE(    
    [Faturamento Acumulado Atual],
    SAMEPERIODLASTYEAR(tb_Calendario_Faturamento[Data])
    ,tb_Calendario_Faturamento[Data]<=FinalMesAtualAnoAnterior
)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Felipe Augusto Violin

79078565

Date: 2024-10-11 14:11:05
Score: 6 🚩
Natty: 5
Report link

It is 2024 and I want to say Thank you to @Stephane as the solution still works.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1): I want
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Stephane
  • Single line (0.5):
  • Low reputation (1):
Posted by: Carlos Gomes

79078561

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

Maybe you have to use:

"tmp/components/form-controls/address/*" or "tmp/components/form-controls/address/address-city/*"

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

79078555

Date: 2024-10-11 14:09:02
Score: 6.5 🚩
Natty:
Report link

I'm having the same issue trying to list files using the Python API. I've generated a JSON key, set my scopes, and tried to list files.

The service account can list files that were created by the service account. It can list files I created with my personal company account and shared with it. It can't list files that are in a shared folder that is shared with it.

There is a shared folder used by many members of the company that has a large number of folders in it. I need to use the API to list these folders and extract ID numbers from them. The service account has been given access to the shared folder, and appears as a "content manager" in the shared users on the folder, subfolders, and files in each subfolder. It should be able to find these files. If I try to get() one of the files by its fileId that's shared with the service account, it returns a file not found error. How do I make these files visible to the service account?

Reasons:
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: emote_control

79078548

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

In the documentation for the function it says:

If the application is compiled as a debugging version, and the process does not have read access to all bytes in the specified memory range, the function causes an assertion and breaks into the debugger. Leaving the debugger, the function continues as usual, and returns a nonzero value. This behavior is by design, as a debugging aid.

Disabling the Access violation exception in the Debugger Exception Settings fixes the issue.

It's not the proper solution, because now it doesn't breakpoint on all the other access violation exceptions in other places but it's good enough to debug some other tests in this case. The tests that throw this exception and not catch are going to fail, anyway, so it's OK here.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: KulaGGin

79078537

Date: 2024-10-11 14:06:01
Score: 1.5
Natty:
Report link

I think your problem is Exporting classes containing `std::` objects (vector, map etc.) from a DLL

The vector used inside of the DLL may not be the same as on the outside, even if the definition looks the same.
Also the inside could use a completely different STL.

When you link statically then you can be sure that everything uses the same definitions.

The "S" in STL may not be so Standard as you think it should be.

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

79078530

Date: 2024-10-11 14:04:00
Score: 2
Natty:
Report link

I may be missing something but these are ANGLEs so my answer:-

var Midpnt = "lat:" + toString((P1.lat+P2.lat)/2) + ";lat:"+toString((P1.lng+P2.lng)/2);

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

79078528

Date: 2024-10-11 14:03:56
Score: 6 🚩
Natty:
Report link

I am having the same issue with install4j 10.0.8.

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

79078516

Date: 2024-10-11 13:58:55
Score: 1
Natty:
Report link

You are very close, only a comma after the day is missing in your format string. Try

select parse_datetime("%b %e, %Y %I:%M:%S %p", "Sep 5, 2024 12:38:18 PM")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Till K.

79078511

Date: 2024-10-11 13:56:55
Score: 0.5
Natty:
Report link

First off, double-check your /etc/sysstat/sysstat file. Ensure that the INTERVAL parameter is actually set to 2.

Next, make sure your cron job in /etc/default/sysstat looks like this:

*/2 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1

After making these changes, did you restart both the sysstat service and the cron service? Use the following commands:

sudo service sysstat restart
sudo systemctl restart cron

Also, verify the permissions on the cron job. The debian-sa1 script needs to be executable. Lastly, check the logs for any errors. You can find these in /var/log/syslog or by running journalctl -u cron.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: devyy devyy

79078510

Date: 2024-10-11 13:56:55
Score: 2
Natty:
Report link

These icons are inside the bootstrap-icons.woff and bootstrap-icons.woff2 font files provided with bootstrap icons package. So it means you CANNOT change them. However, you CAN download the svg files from the bootstrap website https://icons.getbootstrap.com/#install and use them as they are also provided as separate .svg files

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

79078498

Date: 2024-10-11 13:53:54
Score: 1.5
Natty:
Report link

What you're looking for seems to be gitlab secrets:

Secrets management is the systems that developers use to securely store sensitive data in a secure environment with strict access controls. A secret is a sensitive credential that should be kept confidential. Examples of a secret include:

  • Passwords
  • SSH keys
  • Access tokens
  • Any other types of credentials where exposure would be harmful to an organization

They are specifically required by a job and are not viewable by every person who has access to the job's log. You might want to also take a look at pipeline security

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): What you
  • Low reputation (1):
Posted by: pierre-manchon

79078495

Date: 2024-10-11 13:52:53
Score: 1.5
Natty:
Report link

I don't know what your Models are developed but i assumed you don't have setted up well your database,In order to have a hasOne association you must have an 'user_id' on the Admins table who points at 'id' on the Users table (foreign key). On the other and you must have an 'admin_id' on Users table pointing to 'id' on Admins table (foreign key).

Documentation :

HasOne Associations

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

79078490

Date: 2024-10-11 13:51:53
Score: 0.5
Natty:
Report link

In Windows if you just want to truncate the file after you've finished writing then SetEndOfFile() is the way to go for a HANDLE. If you are working with an fd then SetEndOfFile((HANDLE) _get_osfhandle(fd)). _chsize() or _ftruncate() may only support 32 bit arguments on 32 bit compilers. In Unix AFAIK there isn't any "no size" function like SetEndOfFile().

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

79078486

Date: 2024-10-11 13:49:52
Score: 4.5
Natty:
Report link

You can try '***abc***'.__contains__('abc').

This response offers other solutions : Does Python have a string 'contains' substring method?

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Adeva1

79078483

Date: 2024-10-11 13:48:52
Score: 1.5
Natty:
Report link

Thank you for the help!

I could fix the two problems the next way:

To fix the problem with the div of 0x0 size, I changed the next property of my carousel class.

@media (max-width: 780px) {
  .container {
    grid-template-columns: 100%;
  }
}

To fix the problem with the gap, I only put the media query at the end of my styles.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Juan José Briasco

79078481

Date: 2024-10-11 13:48:52
Score: 4
Natty: 4
Report link

guys my after my elif command there is a colon and it says there is a syntax error

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

79078462

Date: 2024-10-11 13:42:50
Score: 1.5
Natty:
Report link

Here is 1 way.

from time import sleep

line_1 = "You have woken up in a mysterious maze"
line_2 = "The building has 5 levels"
line_3 = "Scans show that the floors increase in size as you go down"

a = [b for b in line_1]
for i in range(0, len(a)):
    print(a[i], end='')
    sleep(0.25)
print('')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Fqrest

79078456

Date: 2024-10-11 13:41:50
Score: 4
Natty: 4.5
Report link

Should it be @Configuration instead of @Component, so that Spring could pick up beans?

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Lilia

79078436

Date: 2024-10-11 13:31:48
Score: 2.5
Natty:
Report link

Your code is returning [7, 6, 3, 8, 9] whereas expected is [9, 7, 6, 3, 8]. Seems like logic is not working well.

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

79078418

Date: 2024-10-11 13:27:46
Score: 1
Natty:
Report link

Just give this in android/app/build.gradle

Note:- Verison keeps changing so you will have to figure out your compatible version.

// For animated GIF support implementation 'com.facebook.fresco:animated-gif:3.3.0'

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

79078409

Date: 2024-10-11 13:25:46
Score: 1
Natty:
Report link

A simple monte carlo simulation goes a long way indeed.

Note this is a randomized game so "Bellman-equation based" methods have no mathematical proof. This is probably why expectimax algorithms work well for this problem.

Anyhow, this is my code snippet. Essentially it's 10 lines of simulation which runs for about 4 minutes on an i7 cpu and achieves 80% win rate (the runtime is due to the not-so-fast implementation of the gym environment and my inability to get pygame to install on pypy).

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

79078408

Date: 2024-10-11 13:25:46
Score: 2.5
Natty:
Report link

Run flutter clean flutter pub get then run the app again

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Elefiku young

79078398

Date: 2024-10-11 13:23:45
Score: 1
Natty:
Report link

In what workflow do you expect this pipeline to run successfully ?

To me the rules for build_main and build_developare preventingdeploy_develop_telegram` from running.

Furthermore, you repeat both build jobs with no visible differences in the job's script. Perhaps you should move the rules in deploy_develop_telegram job to prevent it from running instead.

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

79078389

Date: 2024-10-11 13:20:45
Score: 1
Natty:
Report link

return $post->user->is($user)

make sure the relationship is set for above example. to test if the policy is hitting just write

return true;

and see if it performs if not the policy is not hitting.

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

79078381

Date: 2024-10-11 13:17:44
Score: 2.5
Natty:
Report link

I think this isn't a problem, but just the result of enabling hibernate logging.

logging.level.org.hibernate=DEBUG

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

79078379

Date: 2024-10-11 13:16:44
Score: 1
Natty:
Report link

Based on the answer in IssueTracker https://issuetracker.google.com/u/1/issues/236149640#comment8

This problem is fixed for now. At least for me, it works.

PS If it doesn't work for you, ensure you've changed the text value in the onValueChange callback in your @Preview composite! Like this:

@Preview(showBackground = true)
@Composable
private fun InputPrev() {
    var textValue by remember { mutableStateOf("Text") }
    MainTextInputField(
        text = textValue,
        onValueChange = {
            textValue = it
        }
    )
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Preview
  • Low reputation (0.5):
Posted by: Oleh Kuchura

79078376

Date: 2024-10-11 13:15:44
Score: 1.5
Natty:
Report link

Try clearing the cache! Most probably it is corrupted. First close Dreamweaver. Then type %appdata% into the File Explorer address bar and hit Enter. Then navigate to the Adobe folder. Inside the Adobe folder, find and open the Dreamweaver folder. Then, delete the cache files.

The cache files may be in a folder labeled ‘Cache’ or ‘Temp’. You can safely delete these files as they will be recreated by the software when needed.

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

79078371

Date: 2024-10-11 13:13:43
Score: 3.5
Natty:
Report link

Turns out there is an undocumented option clear_route_cache which solves this issue.

https://github.com/envoyproxy/go-control-plane/blob/5d9168428a5cdac76212030e15f47093b0c45a8a/envoy/extensions/filters/http/jwt_authn/v3/config.pb.go#L306

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Louis Mackie

79078363

Date: 2024-10-11 13:09:28
Score: 1.5
Natty:
Report link

In my case I've configured conftest.py but forgot to fix pytest.ini file. anybody struggling with Collected 0 items try to fix pytest.ini file.

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

79078357

Date: 2024-10-11 13:09:28
Score: 0.5
Natty:
Report link

I have been able to do it by adding the margin into the minimum size calculations of the window:

minimumWidth: rootLayout.Layout.minimumWidth + rootLayout.anchors.margins * 2
minimumHeight: rootLayout.Layout.minimumHeight + rootLayout.anchors.margins * 2

I find it a bit tricky and I am getting random error messages when resizing the window:

QWindowsWindow::setGeometry: Unable to set geometry 1316x776+1292+656 (frame: 1338x832+1281+611) on Main_QMLTYPE_0/"" on "DELL U2723QE". Resulting geometry: 1316x806+1292+656 (frame: 1338x862+1281+611) margins: 11, 45, 11, 11 minimum size: 453x537 MINMAXINFO(maxSize=POINT(x=0, y=0), maxpos=POINT(x=0, y=0), maxtrack=POINT(x=0, y=0), mintrack=POINT(x=702, y=862)))
QWindowsWindow::setGeometry: Unable to set geometry 1208x812+1292+656 (frame: 1230x868+1281+611) on Main_QMLTYPE_0/"" on "DELL U2723QE". Resulting geometry: 1208x842+1292+656 (frame: 1230x898+1281+611) margins: 11, 45, 11, 11 minimum size: 453x561 MINMAXINFO(maxSize=POINT(x=0, y=0), maxpos=POINT(x=0, y=0), maxtrack=POINT(x=0, y=0), mintrack=POINT(x=702, y=898)))
QWindowsWindow::setGeometry: Unable to set geometry 1293x776+1292+656 (frame: 1315x832+1281+611) on Main_QMLTYPE_0/"" on "DELL U2723QE". Resulting geometry: 1293x806+1292+656 (frame: 1315x862+1281+611) margins: 11, 45, 11, 11 minimum size: 453x537 MINMAXINFO(maxSize=POINT(x=0, y=0), maxpos=POINT(x=0, y=0), maxtrack=POINT(x=0, y=0), mintrack=POINT(x=702, y=862)))
QWindowsWindow::setGeometry: Unable to set geometry 1277x812+1292+656 (frame: 1299x868+1281+611) on Main_QMLTYPE_0/"" on "DELL U2723QE". Resulting geometry: 1277x842+1292+656 (frame: 1299x898+1281+611) margins: 11, 45, 11, 11 minimum size: 453x561 MINMAXINFO(maxSize=POINT(x=0, y=0), maxpos=POINT(x=0, y=0), maxtrack=POINT(x=0, y=0), mintrack=POINT(x=702, y=898)))
QWindowsWindow::setGeometry: Unable to set geometry 1289x776+1292+656 (frame: 1311x832+1281+611) on Main_QMLTYPE_0/"" on "DELL U2723QE". Resulting geometry: 1289x806+1292+656 (frame: 1311x862+1281+611) margins: 11, 45, 11, 11 minimum size: 453x537 MINMAXINFO(maxSize=POINT(x=0, y=0), maxpos=POINT(x=0, y=0), maxtrack=POINT(x=0, y=0), mintrack=POINT(x=702, y=862)))
Reasons:
  • RegEx Blacklisted phrase (1): I am getting random error
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jaime02

79078355

Date: 2024-10-11 13:09:28
Score: 2
Natty:
Report link

I was doing 2 things incorrectly. One was using a plugin in babelrc that transforms ECMAScript modules to CommonJS which was generating require statements in the build file. Removing this plugin from babel was one of the fixes required.

Plugin was - @babel/plugin-transform-modules-commonjs

Another thing was how webpack was handling externals. For setting node_modules as externals we made use of nodeExternals which is a part of webpack-node-externals package. This, by design, uses require to import these external packages at runtime. This can be changed by setting the importType property in nodeExternals:

nodeExternals({
      importType: 'module',
      allowlist: [/\.(?!(?:jsx?|json)$).{1,5}$/i, /react-toolbox/],
}),

This results in a build file which does not use require to fetch external packages and hence is compatible with ES module.

Reasons:
  • Blacklisted phrase (1): this plugin
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Exter

79078353

Date: 2024-10-11 13:09:28
Score: 2
Natty:
Report link

Fixed by:

  1. Create a tag with the version v0.1.0 in your repository using the command git tag v0.0.0
  2. push the tag using git push --tags.

P.S. "Thanks" everybody for "answers"... Thanks to ChatGPT for working solution.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alexander Fyodorov

79078345

Date: 2024-10-11 13:09:28
Score: 3
Natty:
Report link

One thing what you have to use if you have audio and video in s3 use presigned url then your seekTo Work properly

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

79078339

Date: 2024-10-11 13:04:30
Score: 3
Natty:
Report link

In my case, the remote host had ran out of storage. Inspecting the output tab of the "Remote - SSH" extension shows it failing at a mkdir command.

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

79078338

Date: 2024-10-11 13:04:30
Score: 3.5
Natty:
Report link

Fixed - iOS compatible renderers started working using the new .NET 8.0.403. No need to convert to a handler.

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

79078335

Date: 2024-10-11 13:03:30
Score: 2.5
Natty:
Report link

For me, it was 1Password chrome extension causing issue. Check for any other password manager extension you have installed.

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

79078331

Date: 2024-10-11 13:02:30
Score: 0.5
Natty:
Report link

Have you tried this ?

const image = await fabric.Image.fromURL(url, undefined, { ...options });

It work fine for me, Image loading in fabricJS 6.+ is now a Promise

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: DocAmz

79078328

Date: 2024-10-11 13:01:29
Score: 3.5
Natty:
Report link

2c848318-2d6b-459e-ab8b-4298c712379e ENDCODE. Send this message, with the code above included, to begin a conversation with one of our volunteers.

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

79078327

Date: 2024-10-11 13:01:29
Score: 3
Natty:
Report link

As soon as I posted this, I found the answer to the second issue. The Map Layers div was actually an image of the Map Layers icon that was in a custom widget and was easily fixable.

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

79078316

Date: 2024-10-11 12:57:29
Score: 1.5
Natty:
Report link

it is also possible to write

cy.get('body').type('{ctrl+ }');

by this you don't write an extra space if you're inside a textfield

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

79078312

Date: 2024-10-11 12:57:29
Score: 1.5
Natty:
Report link

I found a solution to this problem by using the following method:

CROSSJOIN(
            Dim_CALENDRIER,
            Dim_PERIMETRE
        )
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: K_mns

79078308

Date: 2024-10-11 12:56:28
Score: 4.5
Natty:
Report link

I am a beginner in Java and I am trying to use JOptionPane to display a message box but keep getting stuck with an error which I cannot figure out. i also have the same problem |

This is my code:

package mysecondProgramn; import javax.swing.JOptionPane;

public class second {

public static void main(String[] args) {
      int testVal = 20;
        JOptionPane.showMessageDialog(null, "The number is " + testVal);
}

}

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (0.5): I cannot
  • Has code block (-0.5):
  • Me too answer (2.5): i also have the same problem
  • Low reputation (1):
Posted by: Sayed Hasan

79078291

Date: 2024-10-11 12:51:26
Score: 4
Natty:
Report link

The code I posted is the one used to solve the problem. Thanks again to Mark for his help and patience. HI

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

79078289

Date: 2024-10-11 12:51:26
Score: 3
Natty:
Report link

It would be difficult to comment without seeing the domain objects for both Car and Brands. But I don't understand why you have to explicitly the flush on deletion of cars. During transaction close, Hibernate will issue flush and commit.

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sagar Rout

79078282

Date: 2024-10-11 12:49:26
Score: 1
Natty:
Report link

Encountered the same problem. I guess XmlWriter doesn't have time to flush all it's content into stream. So you should manually call

xmlWriter.Flush();
xmlWriter.Close();

Then problem is gone.

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

79078276

Date: 2024-10-11 12:48:26
Score: 1
Natty:
Report link

I was able to get it in the following way:

Step 0: Add 'wget' to the yum install list of where you define 'RUN yum install -y' in the Dockerfile

  1. Bring up the container

  2. SSh into it: docker exec -it the_name /bin/bash

Step 3 wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm (or downlaod the .rmp of what you need)

Step 4 run the following to get the dependencies rpm -qp google-chrome-stable_current_x86_64.rpm --requires

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: HeronAlgoSearch

79078275

Date: 2024-10-11 12:47:26
Score: 0.5
Natty:
Report link

EntityManager(s) are bound to @Transactional(transaction) and not to threads. When the transaction starts, Spring assigns distinct entity manager and on transaction rollback or commit, EntityManager instance life ends then. In the single thread, you can start multiple transaction and each transaction will have its own EntityManager.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sagar Rout

79078264

Date: 2024-10-11 12:45:25
Score: 3
Natty:
Report link

From Documentation

 <VueDatePicker v-model="date" :min-date="new Date()" />
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Momen

79078263

Date: 2024-10-11 12:45:25
Score: 2.5
Natty:
Report link

Thanks to Daniel Sottile !

I had this bug since many monthes... and it's fixed now ! This controller was generated with "nest generate app" or something like that. So I didn't checked imports, i beleived there were ok.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: OtakuSan

79078259

Date: 2024-10-11 12:44:25
Score: 0.5
Natty:
Report link

Ok after thinking about it a bit more I can answer my own question. The child table controls whether a parent record can be deleted, via the ON DELETE XY setting of the foreign key. So if I don't set ON DELETE CASCADE on the child table, and the IOD trigger on the parent table does not delete the child record before attempting to delete the parent record, the deletion of the parent record will be blocked. That is because the implicit default setting is ON THE DELETE NO ACTION

What I meant with the join example was: "Can I be sure that a corresponding parent record always exists for every child record in a foreign key relationship"

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

79078257

Date: 2024-10-11 12:44:25
Score: 1.5
Natty:
Report link

add in PHPWord/Shared/Html.php, function parseInlineStyle, in Case section add

case 'border':
    $styles['borderSize'] = (int) $val;
    $styles['borderStyle'] = 'solid';
    $styles['borderColor'] = '#000000';
 break;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Artem

79078251

Date: 2024-10-11 12:43:25
Score: 2
Natty:
Report link

You can't do that at the application level, and there's a simple reason why: It would also degrade the quality of service for all the other applications running on that hardware.

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

79078246

Date: 2024-10-11 12:42:24
Score: 3.5
Natty:
Report link

'ssl3' is deprecated, and not supported in PowerShell anymore.

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

79078239

Date: 2024-10-11 12:40:23
Score: 1.5
Natty:
Report link

The following selects the part between the GO's and ommits GO's in literals like 'GO':

(?<=GO)(.*?('.*')?)*(?=(?:(?<!--[^\n]*)GO|$))

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

79078238

Date: 2024-10-11 12:39:23
Score: 0.5
Natty:
Report link

Well, for one, you're awaiting a return value here:

const resp = await apiCall.getUser();

But getUser doesn't return any value;

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Jonathan Rys

79078230

Date: 2024-10-11 12:36:23
Score: 0.5
Natty:
Report link

If you want to get a dynamic value of AWS_ALB_LISTENER_ARN by some static name you could get ALB ARN from ALB NAME:

AWS_ALB_ARN=$(aws elbv2 describe-load-balancers --names $AWS_ALB_NAME --query 'LoadBalancers[*].LoadBalancerArn' --output text)

And from ALB ARN get HTTPS:443 ALB Listener ARN:

AWS_ALB_LISTENER_ARN=$(aws elbv2 describe-listeners --load-balancer-arn $AWS_ALB_ARN --query "Listeners[?Protocol=='HTTPS'].[ListenerArn]" --output text)

Note: In my case filtering JSON output by [?Port=='443'] got no results but by [?Protocol=='HTTPS'] works well

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Andy Velychkovskyi

79078228

Date: 2024-10-11 12:36:23
Score: 0.5
Natty:
Report link

dbt test by default will only select the specific column for not_null test.

However, when you have --store-failures flag when running the test, dbt will query select * to store the failed rows. select * on huge tables will cost you lot when running frequently.

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

79078214

Date: 2024-10-11 12:31:20
Score: 8 🚩
Natty: 4
Report link

Hi so I have been having the same problem with eaglercraft 1.16.5

eaglerdevs.github.io/Eaglercraft-1.16.5/

Can someone please help me with the problem when I download the index html file it shows a blank screen. I am using a chromebook. The newest version as of now. Below is the image link and when I click on the link on github, it shows a blank screen.

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • Low reputation (1):
Posted by: JONATHAN JACKSON

79078205

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

As suggested in a comment, the solution is using the logger configuration to redirect stdout to an external file or disable totally stdout/stderr logs.

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

79078197

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

I Researched about this and i got the solution my flutter app was having problem in kotlin version which was min and i changed that into latest version which is now 1.9.20 , Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tanu Purohit

79078195

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

Speculating on what could have motivated this, entities that are valid without ";" as per https://html.spec.whatwg.org/multipage/named-characters.html appear to be mostly those with Unicode values below U+0100, i.e. roughly the original Latin-1 set.

This is probably due to the fact that old versions of Netscape always accepted some of these forms, but that this should only be considered as backwards compatibility to pages written for older browsers with limited character sets (e.g. "&degC" rendering as "°C"), but not something to proliferate for the rest of Unicode.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Marcus Gröber

79078190

Date: 2024-10-11 12:23:18
Score: 0.5
Natty:
Report link

It looks like what you're importing as MDXRemote is not a React component. According to the docs, you want to import it like this:

import { MDXRemote } from 'next-mdx-remote';
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Jonathan Rys

79078185

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

This is because Hibernate doesn't know about your WaDAO entity. You have to register it with Configuration.addAnnotatedClass

configuration.addAnnotatedClass(WaDAO.class);

And by the way, the Data Access Object (DAO) pattern in Hibernate is implemented by the Session/EntityManager object.

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

79078180

Date: 2024-10-11 12:21:17
Score: 4.5
Natty:
Report link

If you use lib mode, you can output multiple formats in "build.lib.formats"

enter image description here

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

79078178

Date: 2024-10-11 12:20:17
Score: 2.5
Natty:
Report link

Following worked for me:

if [[ -n $(git status --porcelain) ]]; then
    echo "Changes detected. Preparing to commit and push."
else
    echo "No changes to commit."
fi

This is mentioned in detail here: What does the term "porcelain" mean in Git?

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: erase.ego

79078170

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

You can have separate pyproject.toml files and share a common poetry.lock and virtual environment between projects. You can have the dev dependencies in the root project. Poetry can do this but a plugin is required e.g. https://github.com/ag14774/poetry-monoranger-plugin

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

79078169

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

The CORS issue you're facing seems to stem from potential configuration problems related to the handling of preflight requests (OPTIONS) in both your Express application and Nginx setup. But that's just a well educated guess based on my own experiences.

Review Browser Caching: Sometimes browsers cache CORS preflight results. To ensure you're testing with fresh headers, clear your browser cache or try the requests in a private/incognito window.

Double-check the headers you are allowing in your CORS configuration: The allowedHeaders in your Express CORS options include 'Content-Type' and 'Authorization'. If your frontend sends any other headers, you need to add those to the allowed list. For example, if you’re sending an X-Requested-With header, include that as well.

Verify Express Server is Listening to OPTIONS: If you have already set up your Express server to handle OPTIONS requests using app.options('*', cors(corsOptions));, make sure the endpoint you are testing (/auth/login) is covered by your CORS configuration as well.

Test CORS with CURL: You can test your API endpoint directly using curl:

curl -X OPTIONS https://qa.example.com/auth/page -H "Origin: http://localhost:3000" -i

This command will show you the response headers returned by your server for the OPTIONS request.

Problem solved?

Reasons:
  • RegEx Blacklisted phrase (1.5): solved?
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: schmark

79078161

Date: 2024-10-11 12:15:16
Score: 3
Natty:
Report link

Anyone has the idea? How to do this with javascript ? As I don't just want them to be reversed visually but physically as well. In dom they should be in the reversed order....

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Abhishek Prajapati

79078158

Date: 2024-10-11 12:14:15
Score: 1
Natty:
Report link

I was having the same issue .. By changing the scope to whatever solutions are suggested online didn't help me.. The solution I found that worked for me was to replace the profile url ...

https://api.linkedin.com/v2/me

Replace the above profileURL With:

https://api.linkedin.com/v2/userinfo

You will be able to get the userdata from this. Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): help me
  • Whitelisted phrase (-1): worked for me
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: VISHWAJEET SINGH

79078150

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

gorm v1.25

struct_name := reflect.TypeOf(MyModel{}).Name()
tablename := gorm_db.NamingStrategy.TableName(struct_name)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: mh. bitarafan

79078144

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

Also, I just ran into this problem with the Paragon asset from the Marketplace, even though the logic was working it was not playing the Montag. and adding the "DeaultSlot" to the pipeline solved it.

enter image description here

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

79078138

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

a few years late to this one but this works

<style>
html {
  overflow: hidden;
  overscroll-behavior: none;
}
</style>

Peace,

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

79078133

Date: 2024-10-11 12:07:14
Score: 1.5
Natty:
Report link

There is a UI library called AceternityUI who does this but not with pure css. You can check their MacBook Scroll component. They are free and OpenSource. Rotating an object in 3 dimensions but showing them in 2d is not an easy case, I don't think it is possible with css.

But you can expand the bottom and narrow the top of the image which will make it look like it is rotated in X axis using JavaScript (or TypeScript).

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

79078130

Date: 2024-10-11 12:06:13
Score: 13 🚩
Natty: 6.5
Report link

For me as well George answer worked But I have a question as eureka-client-jersey was present in earlier versions as well

So what changes in the latest spring boot and spring cloud versions?

Can anybody please help me on this? Thanks in advance

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1.5): I have a question
  • RegEx Blacklisted phrase (3): please help me
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Shubham Mishra

79078127

Date: 2024-10-11 12:05:13
Score: 3
Natty:
Report link

You can pass those arguments to your flutter command line: flutter run -d chrome --web-tls-cert-path=<cert_path> --web-tls-cert-key-path=<key_path> --web-port=8444

See this PR https://github.com/flutter/flutter/issues/60704.
See the available options: https://github.com/arpitgandhi9/flutter/blob/2063fde4ae1ce9ef725a6438de01a68bda8938b1/packages/flutter_tools/lib/src/runner/flutter_command.dart#L237

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

79078122

Date: 2024-10-11 12:01:12
Score: 4.5
Natty:
Report link

For me, the bug appear after a Windows update, I try many solutions but didn't help. Reinstalling Herd solved my problem.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jefferson Giovani

79078118

Date: 2024-10-11 12:00:12
Score: 1.5
Natty:
Report link

The length (Lc) field is defined as

Length Lc of the subsequent data field

You are sending a length of "0x60" which also includes the "Le" field.

Your PROCESS DSRC MESSAGE should look like

"802A80B05F" + rtm-data + "00"

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

79078115

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

We failed with the other suggestions and there was nothing really big in the commit. So we revert the last commit and committed our changes with a sync folder by folder and file by file. We identified one file which we deleted and recreated. Then we could commit and sync also this one.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sascha Müller

79078113

Date: 2024-10-11 11:59:11
Score: 1.5
Natty:
Report link

Had this problem which was caused as I had Format on Save Mode set to "modifications". When I changed it to "File", it was fixed.

  1. At the top right corner of vs code, go to: File > Preferences > Settings or press Ctrl+, (ctrl and comma).
  2. This will open the settings. At the top search bar, type "format on save" and the the option to change "Format on Save Mode" will appear. Select "file" from the dropdown.

Format on Save Mode Picture

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

79078105

Date: 2024-10-11 11:58:11
Score: 1
Natty:
Report link

In example 33, I found one like this:

$pdf->SetFont('helvetica', 'B', 20);

Maybe try this.

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Threshold

79078093

Date: 2024-10-11 11:54:10
Score: 0.5
Natty:
Report link

If you are using an authState provider to check if user is logged in or not and redirect him, using go_router is quite tricky. When I started using the redirect method of GoRouter it seems really easy to manage, but then I realized that the hot reload always redirected me to the initialRoute '/'. In my project I use riverpod to check for the authState (ref.watch(currentUserAccountProvider)). But to use this code in the GoRouter config, the config must be dynamic (vs static). And it result of re-initializing GoRouter config each time your app is rebuilt (-> redirect to "/")

So here is my solution. I am quite new to Flutter so I don't know if it's a good practice or not, experienced users could say, but at least it works for me.

GoRouter config file :

/// The route configuration.
class MyRouterConfig {
  MyRouterConfig();

  GoRouter get router => _router;

  static final GoRouter _router = GoRouter(
    routes: <RouteBase>[
      GoRoute(
        path: '/signin',
        builder: (BuildContext context, GoRouterState state) {
          return const SignInView();
        },
      ),
      GoRoute(
        path: '/signup',
        builder: (BuildContext context, GoRouterState state) {
          return const SignUpView();
        },
      ),
      GoRoute(
        path: '/',
        builder: (BuildContext context, GoRouterState state) {
          return const HomeView();
        },
      ),
      GoRoute(
        path: '/otherview',
        builder: (BuildContext context, GoRouterState state) {
          return const OtherView();
        },
      ),
    ],
    routerNeglect: true,
  );
}

Then I created a widget to manage the redirection following the authState: CheckAuthWidget :

class CheckAuthWidget extends ConsumerWidget {
  final Widget child;
  const CheckAuthWidget({super.key, required this.child});

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final currentUserAccount = ref.watch(currentUserAccountProvider);
    final GoRouter router = MyRouterConfig().router; // Get the router config directly from MyRouterConfig instead of GoRouter.of(context)
    final currentLocation = router.routerDelegate.currentConfiguration.fullPath;
    final List<String> authorizedRoutes = ['/signin', '/signup'];

    currentUserAccount.when(
      data: (user) {
        // If the user is not connected -> redirect to /signin
        if (user == null && !authorizedRoutes.contains(currentLocation)) {
          router.go('/signin');
        }

        if (user != null &&
            (currentLocation == '/signin' || currentLocation == '/signup')) {
          router.go('/');
        }
      },
      loading: () {},
      error: (error, stackTrace) {},
    );

    return child;
  }
}

Here is my main :

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const ProviderScope(child: MyApp()));
}

class MyApp extends ConsumerWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context, WidgetRef ref) {

    return MaterialApp.router(
        title: 'Family Menu',
        routerDelegate: MyRouterConfig().router.routerDelegate,
        routeInformationParser:
            MyRouterConfig().router.routeInformationParser,
        routeInformationProvider:
            MyRouterConfig().router.routeInformationProvider,
        scaffoldMessengerKey: scaffoldMessengerKey,
        supportedLocales: AppLocalizations.supportedLocales,
        localizationsDelegates: AppLocalizations.localizationsDelegates,
        debugShowCheckedModeBanner: false,
        builder: (context, child) => CheckAuthWidget(child: child!),
    );
  }
}

I hope this could help someone else, and please tell me if I am doing something wrong :)

Reasons:
  • Whitelisted phrase (-1): works for me
  • RegEx Blacklisted phrase (2.5): please tell me
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: eInyzant

79078087

Date: 2024-10-11 11:52:09
Score: 3.5
Natty:
Report link

[HttpGet("Controller/{id}")] try this

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gagandeep singh

79078082

Date: 2024-10-11 11:50:09
Score: 5
Natty: 6.5
Report link

Every things is covered in this article,

https://devopsden.io/article/how-to-check-processes-running-on-ec2

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Devops Den

79078078

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

you should try changing the splitInColumns function a little bit for example :

const splitInCOlumns = (nCol,photos) => {
if (Array.isArray(photos)){
const col = new Array(nCol).fill(null).map(() => []);

photos.forEach((photo,index)=> {
col[index % nCol].push(photo);
});
return col;
}
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aman Thakur

79078074

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

To expand on the accepted answer by Miljac:

If you're using Autofac as your dependency resolver, you need to register your View as a Named service (see docs), e.g.

builder.RegisterType<MyView>()
.As<IViewFor<MyViewModel>>()
.Named<IViewFor<MyViewModel>>("ViewWithContract");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lipharDYT

79078063

Date: 2024-10-11 11:45:07
Score: 1.5
Natty:
Report link

Since a static method, you cannot have an external reference. You could use the default instead of static and override some parts of the method in each class that implements this interface

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Σωτήρης Ραφαήλ

79078060

Date: 2024-10-11 11:44:07
Score: 1.5
Natty:
Report link

Adjusting the builder settings in Docker Desktop resolved the issue for me: in "Settings >> Builders" simply select the "default" builder instead of "linux-desktop" builder.

Suggested here: https://github.com/spring-projects/spring-boot/issues/41199#issuecomment-2217450150

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

79078057

Date: 2024-10-11 11:43:06
Score: 2
Natty:
Report link

Очень долго искал решение этой проблемы.

Для того чтобы переориентировать ось Y. Необходимо в extent изменить точку отсчёта высоты, и сделать её отрицательной. Далее в addCoordinateTransforms нужно описать преобразование координаты по Y на отрицательную(минус на минус дают плюс) В итоге мы получим смещение нулевой координаты в левый-верхний угол.

Вырезка ключевых элементов кода:

import { Projection, addCoordinateTransforms } from 'ol/proj'
import ImageLayer from 'ol/layer/Image'
import Static from 'ol/source/ImageStatic'

...

const extent = [0, -img.height, img.width, 0]
const projection = new Projection({
        units: 'pixels',
        extent: extent,
        worldExtent: extent
      })

addCoordinateTransforms(
  projection,
  projection,
  function (coordinate) {
    return coordinate
  },
  function (coordinate) {
    return [coordinate[0], -coordinate[1]]
  })


const targetImageLayer = new ImageLayer({
  source: new Static({
     attributions: '© TODO',
     url: imageUrl,
     projection: projection,
     imageExtent: extent
  })
})
...

UPD. Openlayers v.8.2.0

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (2.5):
  • Low reputation (1):
Posted by: Ivan Likhomanov

79078054

Date: 2024-10-11 11:43:06
Score: 1.5
Natty:
Report link

Take a look at this Heroku buildpack, that lets you put your GitHub access token in an environment variable:

https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-github-netrc

There are full docs on how to use it on that page.

Once you've got it setup Heroku should be able to retrieve your private repository over HTTPS.

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

79078039

Date: 2024-10-11 11:38:05
Score: 5
Natty: 6.5
Report link

Thanks !!! Worked fine for me too

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

79078032

Date: 2024-10-11 11:36:04
Score: 2.5
Natty:
Report link

Please note that every trivial solution that does not reverse the string and pattern will fail in the edge case of overlapping patterns. Let's say you have the string "01-02-03" and you want to find the last match of "\d{2}-\d{2}". Using findall/finditer with [-1] will NOT return "02-03" but "01-02".

(To get a solution that does not reverse the string, all overlapping patterns must be in the results, then the [-1]-method does work.)

(As I do not have enough reputation to leave a comment, I have to leave an answer instead.)

Reasons:
  • RegEx Blacklisted phrase (1.5): I do not have enough reputation
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: just_a_random_name

79078030

Date: 2024-10-11 11:36:04
Score: 2.5
Natty:
Report link

This was due to multiple configuration existing in webpack config. So, one 'webpack compiled successfully' is coming for each configuration.

This is valid behavior.

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

79078028

Date: 2024-10-11 11:35:04
Score: 2
Natty:
Report link

I had the same case and I found the answer here: https://reactnative.dev/docs/hermes

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

79078025

Date: 2024-10-11 11:35:04
Score: 0.5
Natty:
Report link

Is somebody has this error with Tomcat9: I ran into this error today after upgrading from Tomcat 9.0.91 to Tomcat 9.0.96 on a Windows Server. At the same time I updated our webapp (war-file) in Tomact.

In my case the problem was soved by deleting the old compiled jsp files in the tomcat/work/ directory. They were then compiled again and everyting was fine. But this is a special windows server where I often have problem with user rights - so I guess that the work-dir was from the tomcat-User and the new war-file from the local Administrator .. or something like that

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