79116383

Date: 2024-10-23 05:22:39
Score: 11 🚩
Natty:
Report link

yo tenia el mismo problemas y tu solución me funciono. muchas gracias.

Reasons:
  • Blacklisted phrase (2): gracias
  • Blacklisted phrase (3): solución
  • RegEx Blacklisted phrase (2.5): mismo
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Enrique Ruiz

79116373

Date: 2024-10-23 05:22:37
Score: 15 🚩
Natty:
Report link

I have the same problem, do you have any solution?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2.5): do you have any
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DucK

79116351

Date: 2024-10-23 05:22:37
Score: 2.5
Natty:
Report link

Formik will not call handleSubmit when the fields are not fully validated (if you use the validate attribute), try removing the validate attribute and submit and you should validate with yup and validationSchema will be more effective and better.

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

79116350

Date: 2024-10-23 05:22:37
Score: 0.5
Natty:
Report link

I am not sure about the exact issue as the code you provided is not enough to identify it, however the error you shared

Traceback (most recent call last):
  File "C:\Users\hajar\Desktop\lns_v_test_epsilon\lns\test_alpha_gamma.py", line 128, in <module>
    main()
  File "C:\Users\hajar\Desktop\lns_v_test_epsilon\lns\test_alpha_gamma.py", line 124, in main
TypeError: 'dict_keys' object is not subscriptable

Clearly points that you are trying to access a dict_keys item by indexing it, which is not possible. If you want to access a key using its index, you need to first convert the dict_keys object into something that can be indexed, such as a list or a tupple:

foo = {'bar':0}

try:
   key = foo.keys()[0]
except:
   print('It doesnt work...')
   key = list(foo.keys())[0]
   print('... but now it does! ->', key)

Note that foo.keys() returns a class dict_keys which can be iterated (but not indexed) through to get both the index and key itself:

foo = {'bar0':0, 'bar1':10}

for ii, key in enumerate(foo.keys()):
   print('Key index: ', ii)
   print('Key name: ', key)

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: greg salles

79116343

Date: 2024-10-23 05:22:36
Score: 4
Natty:
Report link

I am looking to do something similar. I still see lot of examples in the internet on how to secure APIs for websites with UI. In my usecase I am about to provide APIs for B2B so no user logins using UI. Third parties will call my API and they are requesting that I first authenticate using a Client ID and Secret Key, issue them an access token that is valid only for few minutes, and they would be sending the access token in they request back to me, and I would have to validate it and send proper response back.

Would anyone have any sample git repos or tutorial where this is done? Should I use JWT like how it is done for APIs behind UI based websites or is there any other way?

Thanks,

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): is there any
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Nachi

79116342

Date: 2024-10-23 05:21:36
Score: 2.5
Natty:
Report link

It's a restriction of IntelliJ-based IDE. You can vote the corresponding YouTrack issue here:

IJPL-49383 IDE Appearance : Customize per project

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

79116337

Date: 2024-10-23 05:21:36
Score: 0.5
Natty:
Report link

import marshal exec(marshal.loads('''c\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00@\x00\x00\x00s\xa5\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00e\x00\x00j\x03\x00j\x04\x00d\x02\x00\x83\x01\x00rr\x00d\x03\x00GHe\x02\x00j\x05\x00d\x04\x00\x83\x01\x00\x01e\x00\x00j\x06\x00d\x05\x00\x83\x01\x00\x01e\x00\x00j\x06\x00d\x06\x00\x83\x01\x00\x01e\x00\x00j\x06\x00d\x07\x00\x83\x01\x00\x01n\x00\x00y\x11\x00e\x00\x00j\x06\x00d\x08\x00\x83\x01\x00\x01Wn\x1b\x00\x04e\x07\x00k\n\x00r\xa0\x00\x01\x01\x01e\x01\x00j\x08\x00\x83\x00\x00\x01n\x01\x00Xd\x01\x00S(\t\x00\x00\x00i\xff\xff\xff\xffNs\x0c\x00\x00\x00.Akun/.Bahans\x14\x00\x00\x00[>] Install Bahan \n\ni\x02\x00\x00\x00s\x11\x00\x00\x00bash .Akun/.Bahans\x1a\x00\x00\x00pip2 install --upgrade pips\x0f\x00\x00\x00rm .Akun/.Bahans\x11\x00\x00\x00python2 .Akun/.Rt(\t\x00\x00\x00t\x02\x00\x00\x00ost\x03\x00\x00\x00syst\x04\x00\x00\x00timet\x04\x00\x00\x00patht\x06\x00\x00\x00existst\x05\x00\x00\x00sleept\x06\x00\x00\x00systemt\x0b\x00\x00\x00ImportErrort\x04\x00\x00\x00exit(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\n\x00\x00\x00t\x08\x00\x00\x00\x07\x00\x00\x00s\x14\x00\x00\x00$\x01\x12\x01\x05\x01\r\x01\r\x01\r\x01\x10\x01\x03\x01\x11\x01\r\x01'''))

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

79116334

Date: 2024-10-23 05:21:33
Score: 5
Natty:
Report link

But how to config app.js To works on IIS And let’s encrypt?

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

79116333

Date: 2024-10-23 05:21:33
Score: 0.5
Natty:
Report link

In C++, managing queues can sometimes be challenging, especially when dealing with concurrent or asynchronous operations. As of C++20, several enhancements and features were introduced that can help simplify queue operations, particularly in multi-threaded environments. However, if you're using an earlier version of C++, you'll need to employ different techniques and strategies.

Queue Management Issues in C++ (Before C++20) Lack of Built-in Thread Safety: Standard queue implementations, like std::queue, are not thread-safe. This means that if multiple threads are accessing the same queue without proper synchronization, you may encounter data races or undefined behavior.

Manual Synchronization: To safely manage a queue in a multi-threaded environment, you'll have to implement your own synchronization mechanisms, such as mutexes (std::mutex) or condition variables (std::condition_variable). This can add complexity and overhead to your code.

Limited Support for Asynchronous Operations: Earlier C++ standards did not provide robust support for asynchronous programming, which can make handling tasks queued for execution less efficient or more cumbersome.

Custom Implementations: Often, developers had to implement custom queue classes that integrate thread safety, such as using lock-free programming techniques or specialized data structures like std::deque or circular buffers.

Strategies for Queue Management Before C++20 Use of Mutexes: Wrap queue operations within mutex locks to ensure exclusive access to the queue when multiple threads are involved.

Condition Variables: Use condition variables to notify waiting threads when items are added or removed from the queue, allowing for more efficient waiting mechanisms.

Atomic Operations: For certain types of queues, you might leverage atomic types from to reduce locking overhead, although this can be complex and requires careful design.

Custom Queues: Implementing your own thread-safe queue can often provide better performance for specific use cases, but requires a thorough understanding of concurrent programming.

Conclusion While C++20 introduced features like std::jthread, coroutines, and enhanced synchronization primitives that can greatly improve queue management, developers using earlier versions of C++ need to rely on traditional threading techniques and possibly custom implementations. Understanding the limitations and employing robust synchronization methods is crucial for ensuring safe and efficient queue operations.

For more detailed discussions and examples, you can refer to the official C++ documentation and resources on concurrency in C++.

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

79116323

Date: 2024-10-23 05:21:33
Score: 4
Natty:
Report link

Answer mentioned by @Shashika11 and @Martin Niederl worked. Just remove this code exclude = {MongoAutoConfiguration.class} or anything related to it.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Shashika11
  • User mentioned (0): @Martin
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ashutosh

79116321

Date: 2024-10-23 05:21:33
Score: 5
Natty:
Report link

https://dev.to/michaelcharles/fixing-the-https-developer-certificate-error-in-net-on-macos-sequoia-516h

Follow this article, for fixing the problem

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

79116318

Date: 2024-10-23 05:21:33
Score: 1
Natty:
Report link

Got a warning today when executing that code that T is getting deprecated in favor of min

Doing

df['round_time'] = pd.to_datetime(df['Start_Time'], errors='coerce').dt.floor('15T')

worked perfectly fine.

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

79116301

Date: 2024-10-23 05:21:33
Score: 4.5
Natty:
Report link

I'm having the same issue on my development machine (Ubuntu 24.04), but I don't have the issue with the live production environment (container), which seems to be related to the environment in which the machine is running

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Yin Yicao

79116295

Date: 2024-10-23 05:21:32
Score: 1.5
Natty:
Report link

There is no way to calculate the token number exactly. But you can do a rough calculation by the length of audio.

Audio input costs approximately 6¢ per minute; Audio output costs approximately 24¢ per minute.

You can find it here https://openai.com/api/pricing/

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

79116293

Date: 2024-10-23 05:21:32
Score: 0.5
Natty:
Report link

I have faced similar issues few years back, I have realised this due to Python buffering.

You can disable output buffering by running python script with -u option.

python -u your_script.py

Or you can set the environment variable PYTHONUNBUFFERED=1 to make python run in unbuffered mode.

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

79116291

Date: 2024-10-23 05:21:32
Score: 5.5
Natty:
Report link

Sorry, since I don't yet have 50 reputation, I can't comment on the best answer (@maxim1000's algorithm), so I'm using the answer section to raise my question.

After trying this algorithm on an example array I came up with, it seems like the algorithm fails to correctly identify the peak in this case.

Consider the following 5x5 array:

    0   1   2   3   4
    ------------------
0 |  9   19  20  31  64
1 |  49  72  71  51  44
2 |  5   141 95  6   7
3 |  35  36  27  28  50
4 |  10  88  29  189 21

First iteration: The algorithm selects column 2 as the middle column and finds the maximum in columns 1, 2, and 3. The maximum is 189 in column 3. As a result, the algorithm proceeds to the right_side + central_column of this subarray, creating a 5x3 subarray and recursively applies the algorithm on it.

    0   1   2
    -----------
0 |  20  31  64
1 |  71  51  44
2 |  95   6   7
3 |  27  28  50
4 |  29  189 21

Second iteration: The algorithm now selects row 2 as the middle row and finds the maximum in rows 1, 2, and 3. The maximum is 95 in row 2. Since the maximum is in the middle row, the algorithm incorrectly considers 95 as the peak, even though it is not the actual peak in the array.

Thanks in advance for any clarification or suggestions!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (1.5): 50 reputation
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jacky

79116289

Date: 2024-10-23 05:21:32
Score: 2
Natty:
Report link

For me Invalidate Caches and restart the Android Studio and I restarted my phone as well.

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

79116287

Date: 2024-10-23 05:21:32
Score: 3.5
Natty:
Report link

Based on the Microsoft documentation we can use "Key Vault Certificate User" RBAC role.

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

79116277

Date: 2024-10-23 05:21:32
Score: 3
Natty:
Report link

Same issue here. While searching for a solution, I came across a report about it on GitHub. The developers have identified the problem and are working on a fix. Now, it’s just a matter of waiting. Here’s the related GitHub thread: https://github.com/retorquere/zotero-better-bibtex/issues/3031

Reasons:
  • RegEx Blacklisted phrase (1): Same issue
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cynthia Guan

79116264

Date: 2024-10-23 02:37:58
Score: 2.5
Natty:
Report link

This is a textbook preaggregation. Write your votes into an append-only table and use Dynamo streams (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) to update pre-aggregated stats in a different table. Make sure you track timestamp and pk of the last processed event in case the process needs to be restarted.

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

79116261

Date: 2024-10-23 02:35:55
Score: 9 🚩
Natty: 5
Report link

en mi caso estoy en una aplicación con React native expo y obtengo el mismo problema. Error:Feching the token failed:java.util.concurrent.Execution:java.io.IOException:FIS_AUTH_ERROR,estoy usando el sdk de expo para recibir las notificaciones

Reasons:
  • Blacklisted phrase (2): tengo
  • Blacklisted phrase (2): estoy
  • RegEx Blacklisted phrase (2.5): mismo
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mat

79116257

Date: 2024-10-23 02:32:55
Score: 3
Natty:
Report link

This feature is not allowed in China and must be turned off. Failure to turn off this feature will result in a notification from the national security agency

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

79116253

Date: 2024-10-23 02:26:53
Score: 5
Natty:
Report link

I saw a video on YouTube talking about this. You can have a look on it. Check: https://www.youtube.com/watch?v=M1RxKRjdsXw

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gioan Le

79116250

Date: 2024-10-23 02:25:53
Score: 2
Natty:
Report link

You can activate UTF-8 for worldwide language support in Control Panel-Languages and Region:

Inbasu's answer chcp 65001 would do the trick aswell.

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

79116245

Date: 2024-10-23 02:18:51
Score: 1
Natty:
Report link

create a service on host using inotify which observe a file shared with Docker container . This host service should restart systemctl when file is changed . Change the file from java container to trigger restart systemctl

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

79116234

Date: 2024-10-23 02:13:50
Score: 4.5
Natty:
Report link

even after

brew install libomp

still existed.

["dlopen(/Users/yangboz/anaconda3/envs/py312/lib/python3.12/site-packages/xgboost/lib/libxgboost.dylib, 0x0006): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib\n Referenced from: <249AD9BC-FB29-3FD9-972E-779E2749CFB2> /Users/yangboz/anaconda3/envs/py312/lib/python3.12/site-packages/xgboost/lib/libxgboost.dylib\n Reason: tried: '/usr/local/opt/libomp/lib/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libomp/lib/libomp.dylib' (no such file), '/usr/local/opt/libomp/lib/libomp.dylib' (no such file), '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)"]

Macosx M1 14.6.1

any idea? thanks.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): any idea?
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Knight.zhou

79116231

Date: 2024-10-23 02:09:49
Score: 3.5
Natty:
Report link

Create Table Category ( category_id INT )

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

79116228

Date: 2024-10-23 02:08:49
Score: 1.5
Natty:
Report link

looks like 'timeZone=UTC' connection string property is not working from the sqlline command line tool only. Using java code, I was able to get the UTC time with CURRENT_TIMESTAMP after passing 'timeZone=UTC' in JDBC connection string.

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

79116221

Date: 2024-10-23 02:06:48
Score: 0.5
Natty:
Report link

A solution for my case:

Xcode -> target

  1. General -> Build settings -> under Mac catalyst deployment section, set Support mac catalyst to Yes.
  2. Build phases tab -> scroll down to section Link binary with libraries -> add AVKit.framework -> clean build folder and rebuild.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: litbe

79116220

Date: 2024-10-23 02:04:48
Score: 1
Natty:
Report link

You can adjust the number of ticks you need by using stepSize and maxTicksLimit.

For reference, please check the definition here:
https://www.chartjs.org/docs/latest/api/#radialtickoptions

options: {
  legend: { display: false },
  responsive: false,
  maintainAspectRatio: false,
  scales: {
    x: {
      type: "time",
      distribution: "timeseries",
      time: { 
        parser: "YYYY-MM-DDTHH:mm", 
        tooltipFormat: "ll" 
      },
      ticks: {
        source: "data",
        maxRotation: 90,
        minRotation: 90,
        autoSkip: false
      }
    },
    y: { 
      ticks: { 
        beginAtZero: true, 
        major: { enabled: true }, 
        autoSkip: false,
        stepSize: 5,  // Set the interval for Y-axis ticks
        maxTicksLimit: 100,  // Set the maximum number of ticks displayed
        suggestedMax: 100,  // Suggest the maximum value for Y-axis
        suggestedMin: 0  // Suggest the minimum value for Y-axis
      } 
    }
  },
  tooltips: {
    callbacks: {
      label: this.label || defaultLabel
    }
  },
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Poku Ku

79116211

Date: 2024-10-23 01:57:46
Score: 0.5
Natty:
Report link

When working with volumes files on the cluster outside of spark, you can use this syntax to access them:

/Volumes/catalog_name/schema_name/volume_name/path/to/files

so you should be able to ls /Volumes

https://docs.databricks.com/en/files/volumes.html#programmatically-work-with-files-in-volumes-on-databricks

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: HulaHoof

79116201

Date: 2024-10-23 01:51:43
Score: 6 🚩
Natty:
Report link

I get the same error on two different systems. I also tried the Docker version without any success. Seems to be a bug on their end...

Reasons:
  • RegEx Blacklisted phrase (1): I get the same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I get the same error
  • Low reputation (1):
Posted by: Reinhard Ranner

79116200

Date: 2024-10-23 01:51:43
Score: 1.5
Natty:
Report link

Spotted. Fixed by using ternary operator:

var x = number % 12;
x = (x < 0)?(12+x):x;
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Phume

79116199

Date: 2024-10-23 01:51:43
Score: 1
Natty:
Report link

To use relative path in html you should use:

<link rel="stylesheet" th:href="@{.assets/css/mycss.css}"

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

79116198

Date: 2024-10-23 01:50:43
Score: 1
Natty:
Report link

I encountered the same issue and found a solution that worked for me. The fix involved adjusting the argument structure by consolidating them into a single object. Here's an example:

Original code:

"test:emit": (arg1: number, arg2: string) => void;

Updated code:

"test:emit": ({ arg1, arg2 }: { arg1: number, arg2: string }) => void;

I hope this helps anyone facing a similar problem.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Whitelisted phrase (-1): worked for me
  • Has code block (-0.5):
  • Me too answer (2.5): facing a similar problem
  • Low reputation (1):
Posted by: Red Killer

79116192

Date: 2024-10-23 01:47:42
Score: 1.5
Natty:
Report link

I don't know exacly why it's working, but I believe the correct syntax might use = instead of :. In an .env file, the proper format is to use = without spaces around it to assign environment variables.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thiago B. Guedes

79116188

Date: 2024-10-23 01:43:41
Score: 3.5
Natty:
Report link

Thx alot Badrul git config --global --add safe.directory '*' works for me...

Reasons:
  • Blacklisted phrase (1): Thx
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ahmad Rifai

79116182

Date: 2024-10-23 01:42:41
Score: 5
Natty: 5
Report link

i think the problem is fee not enought maybe we can add fee i don't know how if someone have the function ?

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

79116169

Date: 2024-10-23 01:30:38
Score: 2
Natty:
Report link

You would need to kind of brute force it, I think.

Take the inputted password, throw it in a loop that adds adds an extra character at the end, beginning, wherever, and then match it against the stored hash.

To give you an idea, you can look at the John The Ripper single crack mode and custom rules.

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

79116167

Date: 2024-10-23 01:29:37
Score: 5
Natty:
Report link

I find it pretty strange and unusual that this is such a complicated task. This is probably the first time in hundreds of open source image deployments where I'm asked to change hard-coded settings inside the image instead of simply mapping ports in docker.

I question if Fusca above actually deployed the service with the settings posted. This doesn't work for me, but neither do the other suggestions here unfortunately. The mariadb container still reports publishing to 3306 in the logs, and redmine fails to connect if i simply map the ports and provide the new port in the redmine env vars.

Unfortunately I happen to run more than one service per machine, and this port happens to already be taken!

I see a red flag like this and immediately start seeking other solutions -- if something this important and simple is missing, what else will i run into later?

Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: user27940277

79116165

Date: 2024-10-23 01:27:36
Score: 5
Natty: 5
Report link

are you keep getting the sign in prompt? Because now i facing this issue for me. Its work fine to browse the website with https in local, but when try browse the website with https in remote server it keep prompt the sign in alert. Anyway can help? Thanks

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

79116163

Date: 2024-10-23 01:23:35
Score: 0.5
Natty:
Report link

In 2024 the answer is:

  1. Create a file called .rspec in project root.
  2. The contents should look something like this:
--format progress
--color
--require rails_helper

The third line is the critical one to solve this error.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Peter H. Boling

79116161

Date: 2024-10-23 01:23:35
Score: 1.5
Natty:
Report link

I would recommend trying the visibilitychange event instead of 'pagehide' and designing your stats update to handle that it may not be the final thing and may have a subsequent call where you would update the stats again (for example, a user may have just minimized the window, then raised it again, then closed it - that would generate 3 visibilitychange events: hidden, shown, then hidden again).

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

79116159

Date: 2024-10-23 01:21:35
Score: 2.5
Natty:
Report link

my solution in the context I encoutnered it `public static class DependencyInjection Angular 17 SPA see last 3 lines

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

79116158

Date: 2024-10-23 01:21:35
Score: 3
Natty:
Report link

Try using markRaw() https://vuejs.org/api/reactivity-advanced.html#markraw

state: () => ({ 
   settingsCopy: markRaw(...) 
})```
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Subin

79116155

Date: 2024-10-23 01:20:35
Score: 2
Natty:
Report link

Try the formula

c = y % 100
centuryanchor = 5*(c % 4) % 2 + 2
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bảo Khang Mai Lê

79116152

Date: 2024-10-23 01:18:34
Score: 1
Natty:
Report link

When using Bindings for a Behaviour, you may use a x:Reference Binding expression.

Let's say you have a LongPressCommand in ViewModel which the ContentPage binds to. Then you may use x:reference Binding expression for the element like below,

First, set the name of the page to "this",

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
     xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
     ...
     x:Name="this">

Use x:Reference to bind,

<DataTemplate>
    ...
                <Grid.Behaviors>
                    <!--DOESN'T WORK-->
                    <toolkit:TouchBehavior LongPressCommand="{Binding BindingContext.LongPressCommand,source={x:Reference this}}"/>
                </Grid.Behaviors>
</DataTemplate>

Please let me know if you have any question.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • High reputation (-1):
Posted by: Liqun Shen-MSFT

79116150

Date: 2024-10-23 01:16:34
Score: 2.5
Natty:
Report link

This setting is in the Project Properties, just click on the Build in left pane:

Project-Properties

Is it what you're asking?

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

79116149

Date: 2024-10-23 01:16:34
Score: 2.5
Natty:
Report link

on Macs, check this file: "/.config/flutter/settings"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ehab Reda

79116147

Date: 2024-10-23 01:15:33
Score: 4
Natty:
Report link

There is an official implementation from open ai, using react https://github.com/openai/openai-realtime-console

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

79116145

Date: 2024-10-23 01:14:33
Score: 2.5
Natty:
Report link

in my case, the problem was in this file:

"/.config/flutter/settings"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ehab Reda

79116144

Date: 2024-10-23 01:13:33
Score: 2
Natty:
Report link

Well - I used this a few weeks ago. A work laptop with Mint that I wanted to load with Kubuntu. Refused to recognise USB boot (can't blame the laptop - I quite like Mint myself). After running this laptop said "no boot disk" and I thought "Ha ha - can't refuse me now" - only to find that Mint had left behind a shim (like a dog leaving behind something you step in) that I had to get over before finally installing Kubuntu.

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

79116143

Date: 2024-10-23 01:13:33
Score: 3.5
Natty:
Report link

Check the file permission in your cPanel. I hope this will help you. Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Whitelisted phrase (-1): hope this will help
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Erwin

79116139

Date: 2024-10-23 01:12:32
Score: 2.5
Natty:
Report link

on Macs, check this file: "/.config/flutter/settings"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ehab Reda

79116134

Date: 2024-10-23 01:08:31
Score: 7
Natty: 7.5
Report link

Is there a solution to find a similarity of two vector shapes?

Reasons:
  • Blacklisted phrase (1): Is there a 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): Is there a solution to find a
  • Low reputation (1):
Posted by: Hirushi Premarathna

79116131

Date: 2024-10-23 01:03:30
Score: 0.5
Natty:
Report link

for (i = 0; i <= 32; i += 4) { is suspicious.
I'd expect for (i = 0; i < 32; i += 4) {.
Do you want to loop 33 or 32 times?

Same for for (i = 0; i <= 44; i += 4) {

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: chux - Reinstate Monica

79116123

Date: 2024-10-23 01:00:29
Score: 3
Natty:
Report link

Maybe the answer is well for you. To solve the problem you should update Microsoft Visual C++ package.

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

79116122

Date: 2024-10-23 01:00:29
Score: 6
Natty: 7.5
Report link

Please how can I apply the the path c:\app to an azure automation runbook?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Neo Aragon

79116115

Date: 2024-10-23 00:52:27
Score: 1
Natty:
Report link

I found the issue. Running npm i @typescript-eslint/utils fixed it. I had mistakenly previously tried installing the package named @angular-eslint/utils.

This was a pretty silly mistake but I'm going to leave the post up anyway since there aren't any other search results for this error message.

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

79116096

Date: 2024-10-23 00:39:24
Score: 2
Natty:
Report link

It turns out it needed IBOutlet as described here:

https://www.youtube.com/watch?app=desktop&v=CVqdylyDSao

So within viewcontroller:

@IBOutlet var nameOfview: MapView!

and nameOfview can be referenced.

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: NoBugs

79116085

Date: 2024-10-23 00:31:22
Score: 2
Natty:
Report link

You need to run everything with GPU image

https://milvus.io/docs/install_standalone-docker-compose-gpu.md

https://milvus.io/docs/install_cluster-helm-gpu.md

You can adjust the amount of memory.

adjusting the GPU memory settings in the milvus.yaml

Also in version 2.4.14 and beyond there is a fix that makes sure it just works with no warnings or issues. So wait for the next release or adjust accordingly.

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

79116074

Date: 2024-10-23 00:23:21
Score: 0.5
Natty:
Report link

st.multiselect now has a max_selections argument (I tested this in Streamlit 1.39.0). Here's a demo.

enter image description here

import streamlit as st

st.title("Multiple Choice Example")

options = st.multiselect(
    "Select your options (max 3)",
    options=["Option 1", "Option 2", "Option 3", "Option 4"],
    max_selections=3,
)

st.write("You selected:", options)
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Eduardo

79116064

Date: 2024-10-23 00:18:20
Score: 1
Natty:
Report link

Simple solution with inline CSS (demo):

enter image description here

import streamlit as st

st.markdown(
    """
    <style>
    [data-testid="stMarkdownContainer"] p {
        font-size: 50px;
    }
    </style>
    """,
    unsafe_allow_html=True,
)


st.text_input("Enter something here")
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Eduardo

79116039

Date: 2024-10-22 23:51:14
Score: 0.5
Natty:
Report link

For those that did not see their extensions show up... check that this line exists :

x509_extensions = my_extensions

and the name after the = matches the header name for the section with the actual extensions

[ my_extensions ]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Joe Greene

79116034

Date: 2024-10-22 23:48:12
Score: 7.5 🚩
Natty: 4.5
Report link

enter image description here

What can I draw line in this area?

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What can I
  • Low reputation (1):
Posted by: Алексей

79116031

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

Binary is... "0010101001110101" Hex is... "2F E3 A5 20 20 20 20 B6 9A" machine code is... "³L‘rW9ÿÂYLîôÁ(iÝ" Hope this helps.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: LuvOnPython

79116024

Date: 2024-10-22 23:37:09
Score: 8
Natty: 7.5
Report link

Did you manaage to solve this?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve this?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Pablo Motnoya

79116009

Date: 2024-10-22 23:25:07
Score: 4
Natty:
Report link

Please share your full code when you are asking for help with an issue. The supabase docs state that you should not be adding await's inside of the onAuthStateChange as this can cause a dead-lock in the function. https://supabase.com/docs/reference/javascript/auth-onauthstatechange

enter image description here

Reasons:
  • RegEx Blacklisted phrase (2.5): Please share your
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Andrew Smith

79115998

Date: 2024-10-22 23:13:05
Score: 3.5
Natty:
Report link

Check database name or static path for database

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

79115988

Date: 2024-10-22 23:03:03
Score: 1
Natty:
Report link

Following Amazon aws documentation here, the correct command to get information MasterUserSecret of MasterUsername:

aws rds describe-db-clusters --db-cluster-identifier <rds_cluster_arn>

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mário Melo Filho

79115966

Date: 2024-10-22 22:50:01
Score: 1.5
Natty:
Report link

Is it possible to access build-version in prepare.py config script somehow?

Yes. To obtain your argument from CLI, the argument must be declared in the prepare.py script(or possibly anywhere data/group_data exists) and accessed as host.data.argument_name. See sample below:

from pyinfra import host
from pyinfra.api import deploy

# the argument you want
build_version: str = ""

# more arguments with defaults
DEFAULTS = {"foo": None, "bar": ""}

@deploy("Foobar", data_defaults=DEFAULTS)
def samplex():
    print(
      f"\r\n\t{'='*9} RECEIVED ARGUMENTS FROM TERMINAL -> {host.data.build_version} {'='*9}\n")

    print(
    f"\r\n\t{'='*9} RECEIVED EXTRAS FROM TERMINAL ->{host.data.foo} :: {host.data.bar} {'='*9}\n")

From CLI you can call the function as:

pyinfra inventory.py testbed.samplex --data build_version=v1.0 --data foo=baz --data bar=barfoo -y
Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (0.5):
Posted by: Staccato

79115947

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

I found the issue, from the whole time I defined entity type wrong, missed to add parenthesis at the end.

const recordConfig = entityConfig({
  collection: 'records',
  entity: type<Record>(),
  selectId: (record) => record().pid,
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yassine Klilich

79115946

Date: 2024-10-22 22:42:59
Score: 1
Natty:
Report link

You can add : RequestInit after const option, like this:

const option: RequestInit = {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({}),
  credentials: 'include',
};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alex

79115943

Date: 2024-10-22 22:41:59
Score: 0.5
Natty:
Report link

For something like a hover effect, you'll need CSS. This is because you are stylizing your text, and that's what CSS is for.

The following style is what you'll need between your <style> and </style> in your document head.

<style>
/* Here's your original styling for your element (I saw it in your question comments) */
a {
    text-decoration: none;
    color: #808080;
}

/* Here's the hover effect. Everything you add in here is applied to the style on-hover. */
/* This is similar to a javascript onmouseover event except it only applies style. */
a:hover {
    color: white;
}
</style>

Since you've moved your stylizing into CSS style code, you can simplify your HTML code:

<a href="youtube.com/watch?v=HhqWd3Axq9Y" target="_blank">LISTEN</a>
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: keventhen4

79115936

Date: 2024-10-22 22:38:58
Score: 1
Natty:
Report link

class FormHook {

public function initializeFormElement(FormElementInterface &$renderable)
{
    error_log('initialized formElement hook');
    if ($renderable->getIdentifier() === 'text-1') {
        $renderable->setProperty('placeholder', 'somePlaceholderTexts');
    }
}

}

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

79115935

Date: 2024-10-22 22:38:58
Score: 1
Natty:
Report link

Like @AHaworth said, use positioning in your Javascript instead of rotating.

In this code snippet, I changed a few things:

  1. Use your .pupil div instead of .eye:before (styled similarly)
  2. Replace your .eye rotate Javascript code with movement of .pupil

See "EDIT" comments for more details of the changes from your original code.

document.addEventListener("mousemove", eyeball);

function eyeball() {
  const eye = document.querySelector(".eye");
  let x = eye.getBoundingClientRect().left + eye.clientWidth / 2;
  let y = eye.getBoundingClientRect().top + eye.clientHeight / 2;
  let radian = Math.atan2(event.clientX - x, event.clientY - y);
  // EDIT
  // eye.style.transform = `rotate(${rot}deg)`;

  // EDIT
  const pupil = document.querySelector(".pupil");
  let newX = Math.sin( radian - (Math.PI/4) ) * 25
  let newY = Math.cos( radian - (Math.PI/4) ) * 10
  pupil.style.left = newX + 30 + "px"
  pupil.style.top = newY + 15 + "px"
}
h1 {
  margin-top: 100px;
  text-align: center;
  color: white;
}
.container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}
body {
  background-color: black;
}
label {
  color: white;
}
h2 {
  color: white;
}
.eye-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* EDIT Don't rotate, it breaks the position from Javascript */
  /* transform: rotate(45deg); */
  margin-top: 50px;
}
.eye {
  background-color: white;
  /* EDIT Change width and border shape, since we aren't rotating */
  width: 80px;
  height: 50px;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
  position: relative;
}
/* EDIT No longer using :before */
/* .eye:before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: black;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */

/* EDIT - add pupil settings (simmilar to .eye:before) */
.pupil {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: black;
  border-radius: 50%;
  /* top and left will be set by Javascript */
  top: 10px;
  left: 10px;
}
        <div class="eye-container">
          <div class="eye">
            <div class="pupil"></div>
          </div>
        </div>

        <div class="container">
          <label for="lat">Latitude</label>
          <input id="lat" type="text" placeholder="<%= lat %>" name="Latitude" />
          <label for="lon">Longitude</label>
          <input id="lon" type="text" placeholder="<%= lon %>" name="Longitude" />

          <h2>Click the link below to see where it is now on a map</h2>
          <a href="https://www.google.com/maps/search/?api=1&query=<%= lat %>,<%= lon %>">Current ISS Location</a>
        </div>

Reasons:
  • Blacklisted phrase (1): the link below
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @AHaworth
  • Low reputation (0.5):
Posted by: Ray Wallace

79115930

Date: 2024-10-22 22:35:58
Score: 3
Natty:
Report link

when makiing your import do

import {funcName} from '{_path_to_appwrite.js}'

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Starts with a question (0.5): when
  • Low reputation (0.5):
Posted by: George m

79115929

Date: 2024-10-22 22:35:58
Score: 2
Natty:
Report link

I realize this is old but this more recent question I answered is very similar. You have it even easier if you aren't using a bootstrapper.

From the msi .wxs file you can either use a PowerShell script or winget command (You can find both here) to perform a web install of whatever .NET runtime you need.

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

79115910

Date: 2024-10-22 22:24:54
Score: 2.5
Natty:
Report link

Just add spring.jpa.open-in-view=true to your application.properties

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

79115908

Date: 2024-10-22 22:20:54
Score: 1
Natty:
Report link

I solved it with:

  1. Running mvn clean install -U
  2. File->Reload All from disk
Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: newmon13

79115907

Date: 2024-10-22 22:20:52
Score: 6.5 🚩
Natty: 5.5
Report link

About your overarching problem, as far as I know, it is in principle better to split down an AD computation into multiple components (but one must consider the overhead of passing quantities between components). But I'm trying to get more references and prove that. Did you get a better understanding of the problem in the meantime? That would help me a lot.

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Did you get a
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user27739731

79115897

Date: 2024-10-22 22:16:51
Score: 1
Natty:
Report link

These are from the Imperva Advanced Bot Protection SDK. 2+ years after your report they are still unable to release a fix for this.

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

79115892

Date: 2024-10-22 22:14:50
Score: 2.5
Natty:
Report link

I found that by wrapping the packages I want to install in "quotes" the issue is resolved. For example, instead of:

sdkmanager --install build-tools;35.0.0

try:

sdkmanager --install "build-tools;35.0.0"

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: dylan-myers

79115877

Date: 2024-10-22 22:08:49
Score: 0.5
Natty:
Report link

What I can not see in your workflow is that you also set the environment name. I set the environment name via an input.

Here is an example.

name: Build and Deploy

on:
  workflow_dispatch:
    inputs:
      environment:
        type: choice
        description: Choose environment
        options:
        - stage
        - production
jobs:
  deploy:
    environment: ${{inputs.environment}}
    runs-on: ubuntu-latest
    steps:
    # ..
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): What I can not
  • Low reputation (0.5):
Posted by: Bademeister

79115872

Date: 2024-10-22 22:06:48
Score: 1
Natty:
Report link

It seems that you should be importing NodePath from @babel/core, not @babel/node.

Try:

import { NodePath } from '@babel/core'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Octavian

79115868

Date: 2024-10-22 22:04:47
Score: 2.5
Natty:
Report link

hi pam in nextjs we could access enviroment variables with 'NEXT_PUBLIC_' prefix .so for you in .env file you have to name your variable 'NEXT_PUBLIC_SOME_VALUE' and for accessing it in you component's or pages you need to write process.env.NEXT_PUBLIC_SOME_VALUE

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

79115858

Date: 2024-10-22 22:00:47
Score: 3
Natty:
Report link

Create a public class with an array and a for loop which loops through each item in The array and adds 10 each time

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

79115845

Date: 2024-10-22 21:52:45
Score: 0.5
Natty:
Report link

Found a solution.

I moved the CROSS APPLY to a subquery:

CREATE FUNCTION [dbo].[fnTAGS](@STARTDATE DATETIME, @ENDDATE DATETIME)
RETURNS TABLE
AS
RETURN
(
    WITH T AS (
        SELECT DISTINCT tags as TAGS_LIST, TRIM(' "[]' from value) as TAG
        FROM DB.dbo.Source
        CROSS APPLY
            STRING_SPLIT(tags, ',')
    )
    SELECT T.TAGS_LIST AS TAGS_LIST, T.TAG AS TAG
    FROM T, DB.dbo.Source
    WHERE
        DB.dbo.Source.[creation_date] >= @STARTDATE AND
        DB.dbo.Source.[creation_date] <= @ENDDATE
);
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user27938522

79115843

Date: 2024-10-22 21:51:45
Score: 3.5
Natty:
Report link

I just had this happen to me too and the naming of the entity was odd. Honestly, it looks like it has something to do with Copilot and AI.

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

79115816

Date: 2024-10-22 21:43:42
Score: 1.5
Natty:
Report link

While this isn't exactly what we're both looking for, it is pretty close:

Change the accessible diff view to ON

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

79115802

Date: 2024-10-22 21:40:40
Score: 13.5 🚩
Natty: 6.5
Report link

I have the same question and problem. Did you solve it? Will be very grateful for reply and help

Reasons:
  • Blacklisted phrase (1): I have the same question
  • RegEx Blacklisted phrase (3): Did you solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (2): Will be very grateful
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same question
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Javad Khalilov

79115777

Date: 2024-10-22 21:33:38
Score: 1
Natty:
Report link

You are passing value to Ajax data property. Try to send the data in key,values form. Do something like this,

let pid = localStorage.getItem("pid")
let data = { "com-btn": true, "comments": [], "pid": pid }
$.ajax({
type: 'POST',
url: 'addcomments.php',
data: JSON.stringify(data),

});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Laeeq A.

79115773

Date: 2024-10-22 21:32:37
Score: 3
Natty:
Report link

'yii\filters\HttpCache' is about caching your response from Yii action. It is not about caching static files

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

79115772

Date: 2024-10-22 21:32:37
Score: 2.5
Natty:
Report link

Apparently, it's a glitch that happens now sometimes when you import an animation. Simply restarting Max will fix the issue. It's been happening since 2020.

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

79115770

Date: 2024-10-22 21:31:37
Score: 3
Natty:
Report link

Maybe this will help. It helped me solve the same problem, only I don't use Doker.

scr

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

79115742

Date: 2024-10-22 21:16:34
Score: 3.5
Natty:
Report link

https://repost.aws/questions/QUkpXpEmHBR6uci39_zdYqcA/aws-textract-not-accepting-remote-non-aws-document-url

AWS Textract operations wont support remote url! But I tried to use Azure Document Intelligence, that has an option to access remote documents!

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

79115739

Date: 2024-10-22 21:16:34
Score: 4.5
Natty:
Report link

Based on this article, this is a new UITabBarController animation in iOS 18. You can check it in the news app in any simulator running iOS 18.

enter image description here

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nikita Tepliakov

79115738

Date: 2024-10-22 21:15:33
Score: 1.5
Natty:
Report link

But the method seems to not run when applied to specific cells The following returns "API call to docs.documents.batchUpdate failed with error" Is it an API limitation or a wrong way to use it ?

function myFunction2() {
  const doc = DocumentApp.getActiveDocument();
  const documentId = doc.getId();
  const body = doc.getBody();
  const table = body.getTables()[0]; // Utiliser le premier tableau
  const index = body.getChildIndex(table);
  const tableStart = Docs.Documents.get(documentId).body.content[index + 1].startIndex;

  const numRows = table.getNumRows(); // Nombre de lignes dans le tableau

  const resource = {
    requests: []
  };

  // Créer des requêtes pour chaque cellule à partir de la colonne 2
  for (let rowIndex = 0; rowIndex < numRows; rowIndex++) {
    resource.requests.push({
      updateTableCellStyle: {
        tableCellLocation: {
          tableStartLocation: { index: tableStart },
          rowIndex: rowIndex,
          columnIndex: 1 // Commence à partir de la colonne 2 (index 1)
        },
        tableCellStyle: {
          borderBottom: {
            dashStyle: "DASH",
            width: { magnitude: 1, unit: "PT" },
            color: { color: { rgbColor: { blue: 1 } } }
          },
          borderLeft: {
            dashStyle: "SOLID",
            width: { magnitude: 1, unit: "PT" },
            color: { color: { rgbColor: { red: 1 } } }
          },
          borderRight: {
            dashStyle: "SOLID",
            width: { magnitude: 1, unit: "PT" },
            color: { color: { rgbColor: { red: 1 } } }
          }
        },
        fields: "borderBottom,borderLeft,borderRight"
      }
    });
  }

  try {
    Docs.Documents.batchUpdate(resource, documentId);
    Logger.log("Bordures mises à jour avec succès");
  } catch (e) {
    Logger.log("Erreur lors de la mise à jour : " + e.message);
  }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Antoine Carimalo

79115715

Date: 2024-10-22 21:02:30
Score: 4.5
Natty: 5
Report link

seems setup files is what you need https://testthat.r-lib.org/articles/special-files.html

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

79115713

Date: 2024-10-22 21:01:30
Score: 1
Natty:
Report link

How about just checking if the month in question is December and if so, returning 0 instead of the previous month?

VAR vLastMonth = 
    CALCULATE(
        EOMONTH(MAX(DateTable[Date]), -1),
        ALLSELECTED(DateTable[Date])
    )

RETURN 
    IF(
        MONTH(vLastMonth) = 12,
        BLANK(),    // Return 0 instead if you'd like
        CALCULATE(  // Rest of your measure goes here
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • High reputation (-1):
Posted by: Michal