79301530

Date: 2024-12-22 18:55:17
Score: 0.5
Natty:
Report link

after @Jeremy Dalmer helped me to overcome the problem with the static event handler and clarified in which class the event, delegate and eventHandler had to go, it was only a small step to follow @Flydog57's advice to use the standard event signature (object sender EventArgs e). For sake of simplicity I put the definition of the event argument class into the same file as the form. I think it is clear now, how to put even more data load on it. Finally it is possible to define the value variable as private in the user control. The result corresponds now to my current level of programming skills. It may be helpful for other newbies like me who search for basic examples for event handling using Winforms.

Full code for the form and the event argument:

using System;
using System.Windows.Forms;

namespace Events
{
    public partial class Form1 : Form
    {

        public Form1()
        {
            InitializeComponent();
            this.myUserControl.Value_Change += this.Form1_ListenToChanges;
        }

        // EventHandler
        public void Form1_ListenToChanges(MyUserControl sender, ListenToChangesEventArgs e)
        {             
            //The following will work now:
            label1.Text = e.Count.ToString();
        }
    }

    public class ListenToChangesEventArgs : EventArgs
    {
        private int _Count;
        public int Count
        {
            get { return _Count; }
        }
        public ListenToChangesEventArgs(int count)
        {
            _Count = count;
        }
    }
}

Full code for the user control:

using System;
using System.Windows.Forms;

namespace Events
{
    public partial class MyUserControl : UserControl
    {
        private int value;

        // Delegate
        public delegate void MyUserControlEventHandler(MyUserControl sender, ListenToChangesEventArgs e);

        // Event
        public event MyUserControlEventHandler Value_Change;

        public MyUserControl()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            value++;
            // Raise event
            if (Value_Change != null) Value_Change(this, new ListenToChangesEventArgs(value));
        }
    }
} 
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Jeremy
  • User mentioned (0): @Flydog57's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: oelgoetz

79301521

Date: 2024-12-22 18:48:16
Score: 1
Natty:
Report link

What you're referring to is similar to an "unrolled linked list" (Wikipedia ref). As you mentioned, search and iteration performance can be much better with an unrolled linked list since it's more cache friendly.

As a hybrid solution between a linked list and an array list, it inherits some of the benefits, and some of the downsides of each implementation. For example, consider insertions in the middle of the list. Let's say the "bucket" that you need to insert into is full. So, you push the last element of that bucket to the next one. But that bucket is also full. And the next bucket is full. Either you keep moving elements around until you reach a non-full bucket, or you end up with a non-empty bucket in the middle of the list, leading to fragmentation or wasted space. This is no better than an array list.

So in short, it's situational. If you know you need fast random access and won't need to resize the list often, then array list is probably better. If you know you're going to be removing or inserting elements in the middle of then array often, then maybe a plain linked list is better. Considering that linked lists and array lists are sufficient for a lot of use cases, using unrolled linked lists may not be worth it (considering the fragmentation and code complexity introduced).

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

79301519

Date: 2024-12-22 18:47:15
Score: 0.5
Natty:
Report link

You can to use:

org.springframework.data.domain.Example

public Socks findByExample() {
    Socks socks = new Socks(params by constractor);
    return findByExample(socks);
}

public Socks findByExample(Socks sock) {
    return socksDao.findOne(Example.of(sock));
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Reuven Eliezer

79301511

Date: 2024-12-22 18:43:14
Score: 11.5 🚩
Natty: 6.5
Report link

Facing the same issue. Cannot log-in on mobile devices with Facebook, while it works smoothly on desktop or with Google on mobile.

Did you manage to fix it?

Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): Facing the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Stefano Conoci

79301507

Date: 2024-12-22 18:41:13
Score: 3
Natty:
Report link

Add this NuGet in your app System.IdentityModel.Tokens.Jwt

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

79301505

Date: 2024-12-22 18:40:13
Score: 1.5
Natty:
Report link

I think this was changed at some point. You can do this now with enablejsapi=1 in the URI

<iframe id="yt-iframe"
    width="640" height="360"
    src="https://www.youtube.com/embed/uNDfgnWN2G0?rel=0&enablejsapi=1&playlist=IJrwmIQqj5s,uNDfgnWN2G0,pDf46hYF4CE&enablejsapi=1"
    frameborder="0"
></iframe>

Then create a script to interact with your iframe

  var tag = document.createElement('script');
  tag.id = 'iframe-demo';
  tag.src = 'https://www.youtube.com/iframe_api';
  var firstScriptTag = document.getElementsByTagName('script')[0];
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

  var player;
  function onYouTubeIframeAPIReady() {
    player = new YT.Player('yt-iframe', {
    events: {
      'onReady': onPlayerReady,
      'onStateChange': onPlayerStateChange
    }
    });
  }

  function onPlayerReady(event) {
    player.playVideoAt(2); // start at 2nd video
  }
  function onPlayerStateChange(event) {
  }

Reference: https://developers.google.com/youtube/iframe_api_reference#Playback_controls

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

79301498

Date: 2024-12-22 18:36:12
Score: 3
Natty:
Report link

Found out what happened. I am using MS Entra ID and I tried adding logout paths to the appsettings. Removing those logout paths fixed the problem because one of the paths lead to / route.

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

79301480

Date: 2024-12-22 18:25:10
Score: 1
Natty:
Report link

It might related to node version either you can run npm install svelte@^4.0.0 or npm install --legacy-peer-deps finally you can check via running this rm -rf node_modules package-lock.json npm cache clean --force npm install

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

79301479

Date: 2024-12-22 18:25:10
Score: 2.5
Natty:
Report link

for me it worked ok when trying :PlugInstall instead of :pluginstall

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: dev gl

79301477

Date: 2024-12-22 18:20:09
Score: 2
Natty:
Report link

Reducing 300 dimensions to only 2D is extremely aggressive and will inevitably lead to significant information loss.

reducer = umap.UMAP(n_components=20, random_state=42)

Higher n_components captures more information but may lose the interpretability of low-dimensional embeddings.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Albert Christopher Halim

79301470

Date: 2024-12-22 18:15:08
Score: 1.5
Natty:
Report link

Detecting focus changes due to TAB or SHIFT + TAB navigation can be tricky, especially when dealing with browser toolbars. Here's a potential solution using JavaScript:

Capture keydown events: Listen for TAB and SHIFT + TAB keydown events.

Check focus direction: Determine if the focus is moving forward (TAB) or backward (SHIFT + TAB).

Handle focus changes: Implement logic to handle focus changes within your application.

Here's a sample code snippet to get you started:

javascript

document.addEventListener('keydown', (event) => {
    if (event.key === 'Tab' || event.key === 'Shift') {
        const currentElement = document.activeElement;
        const nextElement = document.querySelector(':focusable');
        const previousElement = document.querySelector(':focusable + :focusable');

        if (event.key === 'Tab' && nextElement) {
            // Focus moved forward
            console.log('Focus moved forward to:', nextElement);
        } else if (event.key === 'Tab' && previousElement) {
            // Focus moved backward
            console.log('Focus moved backward to:', previousElement);
        }
    }
});

// Helper function to select focusable elements
function getFocusableElements() {
    return Array.from(document.querySelectorAll('a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])'));
}

This code listens for keydown events and checks if the focus is moving forward or backward based on the TAB key. You can customize the logic to handle focus changes as needed.

Does this help with your requirements?

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

79301466

Date: 2024-12-22 18:14:07
Score: 1.5
Natty:
Report link

I found that going to My Assets, selecting assets in Project -> Version Control and removing Version Control package from my project solved my problem

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

79301461

Date: 2024-12-22 18:06:06
Score: 1
Natty:
Report link

It seems the MySQL server is down due to a full disk and possible InnoDB page corruption. Here's how to resolve it:

I am doing my best to provide a solution that you can follow to resolve your MySQL database crash. I think MySQL is down due to a full disk and possible corruption. Here's how to resolve it:

  1. Free disk space: Clear space on the /data mount to allow MySQL to restart.

  2. Check InnoDB corruption: Start MySQL with innodb_force_recovery in my.cnf (e.g., innodb_force_recovery = 1) and restart MySQL.

  3. Backup data: If MySQL starts, immediately back up the data with mysqldump or Percona XtraBackup.

  4. Restore if needed: If recovery fails, restore from the most recent backup.

  5. Monitor disk usage: Ensure ongoing disk space management to avoid future issues.

I also found a helpful blog that might assist you in fixing the issue.

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

79301454

Date: 2024-12-22 18:02:06
Score: 1
Natty:
Report link

I don't quite understand your question but there doesn't seem to be any error in your code.The data variable is updated once you click on the button and you can display it like

console.log(`Parent rendering ..${data}`);

See updated value

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

79301444

Date: 2024-12-22 17:57:04
Score: 4
Natty:
Report link

The files seem to get served when the user is authenticated. But when they sign off, I get a 302 and the CSS file isn't loaded. I imagine this is the same issue? I'm using dotnet 9 in Azure as well.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michael Sullivan

79301440

Date: 2024-12-22 17:57:03
Score: 3
Natty:
Report link

!exit work perfectly. Of course, Ctrl+C works but I would use it in worst case scenario. !exit is cleaner.

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

79301435

Date: 2024-12-22 17:56:03
Score: 0.5
Natty:
Report link

For anyone reading this and finding that everything above is not working, note that this solution is what worked for me. What is crucial is that the symlinks go to the place where homebrew has in fact installed your openssl libraries.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Brad

79301419

Date: 2024-12-22 17:46:01
Score: 0.5
Natty:
Report link

Maybe using a list and indices to access the data could be faster than the coalesce / when. I'll try tomorrow to see if there is any speed up for doing the below:

symbol_to_idx = dict(pl.DataFrame(list_symbols, schema=['symbol']).with_row_index().select('symbol', 'index').iter_rows())
(
    df.join(basket, on="symbol", how="left")
    # alternative #2 to the successive joins 
    .join(
        df_pivot.select(
            "date", 
            pl.concat_list(list_symbols).alias("price_to_drop")
        ),
        on="date",
        how="left",
    )
    .with_columns([col(f'symbol_{i}').replace(symbol_to_idx).alias(f'symbol_index_{i}_to_drop') for i in [1,2]])
    .with_columns(*[col('price_to_drop').list.get(col(f'symbol_index_{i}_to_drop')).alias(f'price_{i}') for i in [1,2]])
    .select(pl.exclude("^.*to_drop$"))
)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: randomcoder877

79301410

Date: 2024-12-22 17:38:59
Score: 1.5
Natty:
Report link

Merhaba,

Jupyter'deki hatanın cevabını bilmiyorum ama şunu söyleyebilirim ki python'nun kendi uygulaması olan " IDE " kullanabilirsin jupyter'deki yapmış olduğun; kod satırlarının, içeriklerinin, yapmış olduğun ve yapacak olduğun bir çok projenin aynısını " IDE " ile yapabileceğini kesin bir şekilde dile getiririm. Ancak jupyter hatası almaya devam ediyorsan https://jupyter.org/try sitesinden web aracılığı çalışabilirsin.

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

79301400

Date: 2024-12-22 17:31:58
Score: 1
Natty:
Report link

You can try to use yAxis.offset to align label. This can be useful

yAxis: {
  offset: 30,
  labels: { 
    align: 'left',
  }
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Huân Phan

79301399

Date: 2024-12-22 17:30:58
Score: 1
Natty:
Report link
const deleteHandler = () => {
  if (todos.length > 0) {
   setTodos(todos.filter((el) => el.id !== todo.id));
} else setTodos([])
};
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sarkis

79301394

Date: 2024-12-22 17:29:57
Score: 2
Natty:
Report link

I think this is due to a CORS issue. You probably have a mismatch between your APP_URL in the .env file and the URL you are using in the browser. Example: if your APP_URL is set as APP_URL=http://localhost:8000, you should browse using http://localhost:8000 and not http://127.0.0.1:8000

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

79301384

Date: 2024-12-22 17:23:56
Score: 1.5
Natty:
Report link

Brothers , this error has bothered me for one week and made me go crazy.But atleast i had one hor trouble shooting session with chatgpt and fix this. So this is what happened and it's so freakin' silly. I had a folder called pyspark.py in my working directing and the "from pyspark.sql import bla bla bla' was referencing to the pyspark.py file in my working directory rather than the installed pyspark library . i removed the filed , removed "pycache" file and removed the cache again through python command . Then exit working directory and create a new clean directory and run your code again . This should do the trick. This is my first contribution . Thanks fellas**

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sai Kunchala

79301379

Date: 2024-12-22 17:21:55
Score: 9.5
Natty: 8
Report link

hey you found an answer to your problem here? also how were you able to use both meta sdk and vuforia at the same time in unity. I am also trying to use external camera for vuforia , Pls guide me to it.

Thanks!!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): guide me
  • RegEx Blacklisted phrase (2.5): Pls guide me
  • RegEx Blacklisted phrase (3): were you able
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: VISHAL BHARTI

79301374

Date: 2024-12-22 17:17:55
Score: 1
Natty:
Report link

Some suggestions from PageSpeed/Lighthouse may not be feasible or necessary for every site. It should be used as part of the overall performance picture, but not as the only decision-making criteria. 4000+ DOM nodes may or may not be acceptable, depending on the web application.

Real-world performance is more important. Instead of focusing solely on PageSpeed scores, prioritize improving the actual experience for users.

How to optimize the DOM size

In general, look for ways to create DOM nodes only when needed, and destroy nodes when they're no longer needed.

If you're shipping a large DOM tree, try loading your page and manually noting which nodes are displayed. Perhaps you can remove the undisplayed nodes from the initially loaded document and only create them after a relevant user interaction, such as a scroll or a button click.

Use a library like react-window to minimize the number of DOM nodes created if you are rendering many repeated elements on the page.

Reference: https://developer.chrome.com/docs/lighthouse/performance/dom-size

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

79301361

Date: 2024-12-22 17:08:52
Score: 0.5
Natty:
Report link

I ended up using the internal IPv6 address instead of localhost. I still do not understand why localhost does not work, but using the IPv6 address is fine enough in this case.

Thus, instead of

ProxyPass / http://localhost:24471/
ProxyPassReverse / http://localhost:24471/

I now use

ProxyPass / http://[fd00:0002::1]:24471/
ProxyPassReverse / http://[fd00:0002::1]:24471/

Of course, which address to use depends on your network setup.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Max Görner

79301360

Date: 2024-12-22 17:07:52
Score: 2.5
Natty:
Report link

Re Rabbid76's answer:

Not enough rep to comment, but I tried this code and it works after the following correction:

elif tokens[0] == 'vt':
        vn_arr.append([float(c) for c in tokens[1:]])

should read

elif tokens[0] == 'vt':
        vt_arr.append([float(c) for c in tokens[1:]])

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): to comment
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: CGChas

79301359

Date: 2024-12-22 17:06:52
Score: 2.5
Natty:
Report link

i have written a peer-to-peer reverse proxy that supports UDP, it can forward data from one UDP/TCP server to another:

https://github.com/holesail/holesail

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

79301358

Date: 2024-12-22 17:06:52
Score: 3
Natty:
Report link

If multiple clients (like your browsers) are using the same client ID, this can lead to one client disconnecting another, causing instability and repeated connection attempts.

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

79301345

Date: 2024-12-22 16:58:50
Score: 1
Natty:
Report link

Python 3.13 is not currently supported by psycopg2 and psycopg2-binary on Windows machine. Use Python 3.12 instead. See the available wheels for specific platforms on psycopg2-binary and psycopg2.

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

79301334

Date: 2024-12-22 16:48:47
Score: 3
Natty:
Report link

As of 2024 I didn't find anything related to the "shopping" tab in Bing Search API documentation and I am not sure about the Bing Ads API capability of providing these results.

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

79301307

Date: 2024-12-22 16:36:45
Score: 1.5
Natty:
Report link

Main clue here that this is a timezone issue is that the time difference is exactly an integer multiple of 1 hour. Note however that some timezones are not an integer multiple of 1 hour (e.g. Indian Standard Time (IST) is UTC +5:30).

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

79301305

Date: 2024-12-22 16:34:44
Score: 2
Natty:
Report link

In Html Structure Use an Image Widget inside a container, as you already have.

In CSS Apply styles to the Image Widget and the ::before pseudo-element to achieve the desired effect.

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

79301303

Date: 2024-12-22 16:33:44
Score: 1.5
Natty:
Report link

You can allow for recursiveness, while this is dangerous and requires failover mechanisms, can be done.

aws lambda put-function-recursion-config --function-name yourFunctionName --recursive-loop Allow

As per other solutions, using a FIFO queue will increase the complexity with no real benefits, since AWS recursiveness protection also detects when it happens in said scenario:

loops that Lambda can detect

https://docs.aws.amazon.com/lambda/latest/dg/invocation-recursion.html

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

79301297

Date: 2024-12-22 16:29:43
Score: 1.5
Natty:
Report link

Simply replace :

const deliveryText = document.getElementsByClassName("delivery-text");

with

const deliveryText = document.getElementsByClassName("delivery-text")[0];
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rashid

79301291

Date: 2024-12-22 16:25:42
Score: 1.5
Natty:
Report link

With the help of @Kapcash, now it works. I have to use what Nuxt offer first and then Vitest. Here is what I've changed: instead of

vi.mock('#imports', async () => ({...

now I have:

import { mockNuxtImport } from '@nuxt/test-utils/runtime'
....

const mockUser = ref<User | null>(null)
mockNuxtImport('useSanctumAuth', () => {
  return () => ({
    user: mockUser,
  })
})

beforeEach(() => {
        vi.clearAllMocks()
        mockUser.value = null
    })
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Kapcash
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dust_bg

79301286

Date: 2024-12-22 16:20:41
Score: 0.5
Natty:
Report link

One just needs to test the const-removed version of C:

concept Container = requires(typename std::remove_const_t<C> c, const C cc) {
    ... /* keep the same */ ...
};

See https://godbolt.org/z/b4aMPdoWM

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

79301279

Date: 2024-12-22 16:14:40
Score: 3
Natty:
Report link

i was also facing the same issue i guess there is some error in the latest version so just downgrade your clerk version and everything will work good !!

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

79301276

Date: 2024-12-22 16:09:38
Score: 5
Natty:
Report link

I was able to resolve the issue using this github enter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Emmy britt

79301270

Date: 2024-12-22 16:02:36
Score: 1
Natty:
Report link

Add this line at end of any script

input("Press any Key")

or use time module

import time
// Your code
time.sleep(10)

there will be an delay for the next line to execute, so for 10 seconds your screen will wait and then close.

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

79301262

Date: 2024-12-22 15:53:34
Score: 0.5
Natty:
Report link

Use https://jwt.io/ to generate bearer token. Use this: Algorithm: ES256 Header: { "alg": "ES256", "kid": "[your key id]", "typ": "JWT" } Payload: { "iss": "[your issuer id]", "iat": 1734613799, "exp": 1734614999, "aud": "appstoreconnect-v1" } Note that 'exp' should be less than 1200 seconds from 'iat'. Insert your private key as entire text from downloaded p8 file into 'verify signature' field. Copy generated bearer token from the 'encoded' field.

POST https://api.appstoreconnect.apple.com/v1/authorization use your bearer token. It works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ol camomile

79301250

Date: 2024-12-22 15:42:32
Score: 2.5
Natty:
Report link

If there is something like ts-node, you won't see any compiled files 'cause it compiles + runs them on the fly without emitting to disk. Check out the package.json to see how the app is started.

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

79301243

Date: 2024-12-22 15:37:31
Score: 0.5
Natty:
Report link

I found a monkey-patching way: make a global variable: window.iframeDoc.

// Get the iframe element
var iframe = document.evaluate("/html[1]/body[1]/iframe[1]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; 

// Access the iframe's document object
var iframeDoc = iframe.contentDocument || iframe.contentWindow.document;

// make iframeDoc global
window.iframeDoc = iframeDoc;

// later when other scripts not sure whether to use document or iframeDoc
var startDoc = document;
if (window.iframeDoc) {
    startDoc = window.iframeDoc;
}

var e2 = startDoc.evaluate("id('shadow_host')", startDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
console.log(`e2=${e2}`);

The result

e2=[object HTMLDivElement]

It works for the purpose. Welcome to point out any drawback with it. Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: oldpride

79301240

Date: 2024-12-22 15:36:31
Score: 0.5
Natty:
Report link

I was able to get it to work using uiRadio and ui props.

<URadioGroup
      v-model="selected"
      :options="methods"
      :ui="{ fieldset: 'w-full flex flex-col'}"
      :uiRadio="{
        label: 'cursor-pointer py-3',
        wrapper: 'pl-2 rounded-md items-center hover:bg-green-100',
        inner: 'w-full',
        form: 'cursor-pointer'
    }"
>
    <template #label="{ option }">
      <p class="text-base w-100">
        {{ option.label }}
      </p>
    </template>
</URadioGroup>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: link

79301239

Date: 2024-12-22 15:34:31
Score: 1
Natty:
Report link

Java version using this: https://codility.com/media/train/solution-flags.pdf And binary search. Got 100% and O(N).

public int solution(int[] A) {
    int N = A.length;
    boolean[] peaks = new boolean[N];
    for (int i = 1; i < N - 1; i++) {
        if (A[i - 1] < A[i] && A[i] > A[i + 1]) {
            peaks[i] = true;
        }
    }
    return binarySearch(A, 0, (int) Math.sqrt(N) + 2, peaks) - 1;
}

public static int binarySearch(int[] arr, int low, int high, boolean[] peaks) {
    if (high >= low) {
        int mid = low + (high - low) / 2;
        if (!check(mid, arr, peaks)) {
            return binarySearch(arr, low, mid - 1, peaks);
        }
        return binarySearch(arr, mid + 1, high, peaks);
    }
    return low;
}

public static boolean check(int x, int[] A, boolean[] peaks) {
    int N = A.length;
    int flags = x;
    int pos = 0;
    while (pos < N && flags > 0) {
        if (peaks[pos]) {
            flags -= 1;
            pos += x;
        } else {
            pos += 1;
        }
    }
    return flags == 0;
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alvaro Neira

79301237

Date: 2024-12-22 15:33:30
Score: 1.5
Natty:
Report link

Try to set multi_level_index=False:

   df = yf.download(ticker, start=start_date, end=end_date),multi_level_index=False)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: David Wong

79301229

Date: 2024-12-22 15:29:29
Score: 2
Natty:
Report link

Ok, it seems that for some reason setting those constants must be done 'the old way', using sudo settings put global activity_manager_constants power_check_max_cpu_1=256

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

79301224

Date: 2024-12-22 15:25:28
Score: 3
Natty:
Report link

hey thank you for the great idea, i finally find a very great solution to my issue : using

xloc=xloc.bar_time

i'm not finished yet but the hardest part is off now.

thank you for your answer

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user28885078

79301223

Date: 2024-12-22 15:24:28
Score: 0.5
Natty:
Report link

I found the soltion myself.

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

79301212

Date: 2024-12-22 15:16:26
Score: 1
Natty:
Report link

The error ModuleNotFoundError: No module named 'matplotlib.backends.registry' occurs when the matplotlib library is outdated, improperly installed, or there is a conflict between different versions of the library.So unistall matplotlib and reinstall it.

pip uninstall matplotlib
pip install --no-cache-dir matplotlib

enter image description here

Mine is working fine, screenshot attached.

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

79301211

Date: 2024-12-22 15:14:24
Score: 7 🚩
Natty: 5.5
Report link

Is there a way to use .NET 5 and not get the warning message each time a program is run?

Reasons:
  • Blacklisted phrase (1): Is there a way
  • 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
  • Low reputation (1):
Posted by: user3808252

79301205

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

Try using the new seaborn style naming convention with matplotlib:

plt.style.use('seaborn-v0_8-whitegrid')

Or use seaborn's direct styling:

import seaborn as sns
sns.set_style("whitegrid")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hr.Panahi

79301169

Date: 2024-12-22 14:34:16
Score: 2.5
Natty:
Report link

You can use mistralai 0.1.8 version

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user22331738

79301155

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

add your mongodb uri: spring.data.mongodb.uri=mongodb://root:password@localhost:27017/product-service?authSource=admin The authentification passed when i added all those elements to the connection URI.

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

79301154

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

I know this is a really old question but transfer.sh used to have a hosted and now lives on as open-source (self-hostable) utility for exactly what you are looking for.

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

79301150

Date: 2024-12-22 14:23:13
Score: 2.5
Natty:
Report link

Nevermind, I guess I was expecting the brush trace to remain as appeared by the doc. I did try hitting enter but guess in my trials i intervened in some way so it didnt stick. A You Tube video answered.

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

79301148

Date: 2024-12-22 14:22:13
Score: 0.5
Natty:
Report link

I implemented this solution, and it worked perfectly without modifying any core CSS of Filament:

->extraInputAttributes(['class' => 'max-h-96', 'style' => 'overflow-y: scroll;'])
Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Harender Bhandari

79301145

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

Counter.total was added to mypy in version 0.940. Your code, part f1 and f2 works fine

from collections import Counter


def f1(c: Counter[str]) -> None:
    print(c.total())


def f2(c: Counter) -> None:
    print(c.total())


c: Counter = Counter()
c.update(["a", "b", "c", "a", "b", "c"])

f1(c)
f2(c)

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

79301143

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

As mentioned in the comment, the test works when using the Activity context and checking the orientation.

    val orientation = activity.resources.configuration.orientation
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mr T

79301132

Date: 2024-12-22 14:13:11
Score: 1.5
Natty:
Report link

You don't need a loop.

Sub Win_Loss()
Dim RND_Array() As Variant
Dim n As Integer
RND_Array = Application.Sequence(1, 100, 1, 1)
RND_Array = WorksheetFunction.SortBy(RND_Array, 
WorksheetFunction.RandArray(RND_Array), True)
For n = 1 To 100
    Debug.Print RND_Array(n)
Next n

End Sub
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Bernd

79301128

Date: 2024-12-22 14:12:09
Score: 8 🚩
Natty: 5.5
Report link

Hey having same issue managed to sort it ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Developer Uniyo

79301124

Date: 2024-12-22 14:10:09
Score: 3
Natty:
Report link

Of course. Just use NgRx and you will be fine.

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

79301111

Date: 2024-12-22 13:57:06
Score: 1.5
Natty:
Report link

You can use Lombok's @Getter and @Setter annotation on your class which creates the getters and setters for you.

You could also use the @Data annotation which bundles the features of @Getter and @Setter and other annotations together.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Getter
  • User mentioned (0): @Setter
  • User mentioned (0): @Data
  • User mentioned (0): @Getter
  • User mentioned (0): @Setter
  • Low reputation (1):
Posted by: user564930

79301105

Date: 2024-12-22 13:52:05
Score: 2.5
Natty:
Report link

if you are familliar with vscode shortcuts for this case ctrl+k ctrl+c for comment and ctrl+k ctrl+u for uncomment , you can go to settings icon in the top bar , then to keymap then to "Install Keymap" , then you find Visual Studio Keymap , and thats it I wish it help

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

79301103

Date: 2024-12-22 13:51:05
Score: 1
Natty:
Report link

I have also used npm install --verbose and it showed me that I was using the artifactory server of my last company which I have no more access to, instead of public npm repository. And these URLs are placed in the package-lock.json so I removed package-lock and it works now.

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

79301101

Date: 2024-12-22 13:49:04
Score: 2.5
Natty:
Report link

I have change the position and firstly called the AddControllersWithViews after that add the builder.Services.AddDbContext. update-database command not successfully update

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

79301089

Date: 2024-12-22 13:44:03
Score: 1.5
Natty:
Report link

Just refer to the type as ABC::elephant.

But you have already created two instances. i.instance and i.a are both instances.

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

79301086

Date: 2024-12-22 13:43:02
Score: 5
Natty:
Report link

So you want a list of employees against department Id , i.e how many employees in a particular department and a department against employee id.?

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

79301081

Date: 2024-12-22 13:42:02
Score: 2.5
Natty:
Report link

Using multiple queues is always better performance-wise. Even using a separate queue for presentation is beneficial.

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

79301071

Date: 2024-12-22 13:29:00
Score: 3.5
Natty:
Report link

Disclaimer: not the author of the zip, be cautious.

Seems to be available here https://1drv.ms/u/s!AnrMnbcjJgECo4UTVRJ5Un1xvcuQDA?e=DU3d1g From https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/2227#issuecomment-1851689454

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

79301069

Date: 2024-12-22 13:27:00
Score: 2
Natty:
Report link

php 8.1 and above Deprecated: Implicit conversion from float to int loses precision in

imagecopy ($img, $font, $x - $shift, $y, $m['start'], 1, $m['end'] - $m['start'], $fontfile_height);

next

$color = imagecolorat($img, $px, $py) & 0xff;

next

else {
                    $color = imagecolorat($img, $sx, $sy) & 0xFF;
                    $color_x = imagecolorat($img, $sx + 1, $sy) & 0xFF;
                    $color_y = imagecolorat($img, $sx, $sy + 1) & 0xFF;
                    $color_xy = imagecolorat($img, $sx + 1, $sy + 1) & 0xFF;
                }

next

imagesetpixel($img2, $x, $y, imagecolorallocate($img2, $newred, $newgreen, $newblue));

I changed to

imagecopy ((int) ($img, $font, $x - $shift, $y, $m['start'], 1, $m['end'] - $m['start'], $fontfile_height));

but no positive effect What's wrong?

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

79301065

Date: 2024-12-22 13:25:59
Score: 4
Natty:
Report link

We have "records" since java 17

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

79301056

Date: 2024-12-22 13:22:58
Score: 0.5
Natty:
Report link

Add existing locally hosted git repo to GitHub by running the following commands:

git remote add origin https://github.com/{some-user}/{some-repo}.git
git branch -M main
git push -u origin main
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Luther

79301054

Date: 2024-12-22 13:20:57
Score: 4.5
Natty:
Report link

Try to select and use libraries on the site https://indy.fulgan.com/SSL/

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

79301049

Date: 2024-12-22 13:17:56
Score: 2.5
Natty:
Report link

One day, extension creators will have the opportunity to embed the VS Code editor in webview. It is tracked here.

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

79301035

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

You can go to cssgradiant.io to search what you want, like center gradiant (good for the sun on the photo), or with linear gradiants, you can choose the angle and so on.
Put this on the background and you will be good

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

79301033

Date: 2024-12-22 13:07:54
Score: 0.5
Natty:
Report link

First important concept: turbulence don't have one length-scale. I suggest reading Chapter 6 of Turbulent Flows from Pope [1]. Summarizing, intuitively (I'll loose some formality to keep it simple): turbulence is a composition of infinite eddies of different sizes(length-scales). Each length-scale has it's own energy-fraction associated, which is ~"the sum of the energies of all the eddies with that size". Most of the energy lies in the "production range" (low wave number, or large length-scale). In the so-called inertial range, energy is transferred from large eddies to smaller ones without energy loss (almost inviscid flow) with the Kolmogorov spectrum that has -5/3 wave-number exponent. And following L.F.Richardson, the energy "flows downscale" down to Kolmogorov length-scale, which is the scale at which Reynolds number becomes low enough such that dissipation prevails on inertial effect, and eddies are dissipated. Summarized from Richardson as follows: Big whirls have little whirls that feed on their velocity, and little whirls have lesser whirls and so on to viscosity.

So, going to your question, yes, it looks quite empirical, though I'm not an expert of pipes. But I suppose the scales which you're interested in are the Kolmogorov length-scale (at which dissipation happens) and the energy-density-spectrum-peak length-scale, which is the scale containing the most of the turbulent kinetic energy (look at the turbulence energy density spectrum on Pope)

[1] http://user.engineering.uiowa.edu/~me_7268/2023%20Spring/Lecture_Notes/Turbulent%20Flows%20(Stephen%20B.%20Pope).pdf

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

79301022

Date: 2024-12-22 13:02:52
Score: 1.5
Natty:
Report link

I am trying to learn flutter on VSCode, however was NOT getting "Extract Widget" option when doing a Right Click on "Text" object. (only option I was getting was 'Extract Method'). I went to the starting of the 'Class' in which my 'Text' object is. Right clicked on the 'Widget' and said 'Refactor Widget' on it. Then I started getting option of 'Refactor' also on my 'Text' object.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • No code block (0.5):
Posted by: rishi jain

79301005

Date: 2024-12-22 12:50:50
Score: 0.5
Natty:
Report link

Note that fetch is located in the frontend project and executed on client-side (browsers). Therefore, localhost resolves to the user's computer, not your server.

You can simply replace localhost with your deployed server IP/domain.

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

79300998

Date: 2024-12-22 12:49:50
Score: 3
Natty:
Report link

Windows Firewall currently allows up to 1000 addresses per rule. Using WindowsFirewallHelper (https://github.com/falahati/WindowsFirewallHelper) in a .Net app makes this easier to do.

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

79300997

Date: 2024-12-22 12:48:49
Score: 9 🚩
Natty: 5
Report link

Having the exact same issue! Attempting to run on an M4/IOS 13, and attempting to use SDL2 as well... any luck solving?

Reasons:
  • Blacklisted phrase (1.5): any luck
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): Having the exact same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kelvin Filyk

79300981

Date: 2024-12-22 12:35:45
Score: 1.5
Natty:
Report link

This will work for this background:

background: linear-gradient(to bottom left, #5f618a, #776f94, #ad9db8, #fef7ef);

Make sure that their is some content in web-page.

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

79300975

Date: 2024-12-22 12:29:44
Score: 2
Natty:
Report link

Before making any changes make sure to inspect current Terraform state first and check current resources using following command:

terraform state list

And then use correct source address

terraform state mv source destination

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

79300967

Date: 2024-12-22 12:23:43
Score: 3
Natty:
Report link

To anyone who will be met with similar issue - I sort of "solved" it by rewriting the system from scratch as @JamesP wrote he did and it worked. Maybe due to having a lot of dependencies installed some of them were in confilt with each other I'm not sure.

Thanks @JamesP for help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @JamesP
  • User mentioned (0): @JamesP
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Aethillium

79300963

Date: 2024-12-22 12:21:42
Score: 2
Natty:
Report link
#!/system/bin/sh
echo "It runs" > /some_path/some_file.txt

chmod +- /data/adb/service.d/file.sh

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Big load

79300957

Date: 2024-12-22 12:17:41
Score: 2.5
Natty:
Report link

Getting an error,

Traceback (most recent call last): File "C:\Users\mizan\AppData\Local\Programs\Python\Python313\Lib\site-packages\pytube_main_.py", line 341, in title self._title = self.vid_info['videoDetails']['title'] ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ KeyError: 'videoDetails'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "H:\Mega\MEGA _ Academic\PYTHON\Practice\m_0_Streamlit\m_Utility App\1.py", line 10, in video_titles.append(YouTube(link).title) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\mizan\AppData\Local\Programs\Python\Python313\Lib\site-packages\pytube_main_.py", line 346, in title raise exceptions.PytubeError( ...<4 lines>... ) pytube.exceptions.PytubeError: Exception while accessing title of https://youtube.com/watch?v=ra3DlQTGe8Q. Please file a bug report at https://github.com/pytube/pytube

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): ~~~~~~~~~~~~~
  • Filler text (0): ^^^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^^^^^^^
  • Low reputation (1):
Posted by: Md Mizanur Rahman

79300956

Date: 2024-12-22 12:15:41
Score: 2.5
Natty:
Report link

For some reason I can't comment you post but I want to say Thank You! I'm doing something different, I'm overlaying several (30 different) 10 seconds videos over an 1 hour video at a fixed time. I tried all chatgpt models, claude, gemini and cursor. All of them giving me wrong commands. So I decided to study and understand FFMPEG. AI was pointing me to using between to set the time. I got to you post used your command as reference and... its working! This is my full command in case someone with the same problem end up here:

ffmpeg -i 7.mp4 -i 1.mov -i 2.mov -filter_complex "[1]setpts=PTS+0/TB[ts1];[2]setpts=PTS+10/TB[ts2];[0][ts1]overlay=0:0:eof_action=pass[out1];[out1][ts2]overlay=0:0:eof_action=pass[out]" -map "[out]" -t 00:00:30 -y output.mp4
Reasons:
  • Blacklisted phrase (0.5): Thank You
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexandre Leitão

79300952

Date: 2024-12-22 12:09:39
Score: 2
Natty:
Report link

Check in you *.csproj for this one:

<OutputType Condition="'$(TargetFramework)' != 'net9.0'">Exe</OutputType> Similar to: Program does not contain a static 'Main' method suitable for an entry point In .Net MAUI Xunit

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

79300949

Date: 2024-12-22 12:08:39
Score: 3
Natty:
Report link

proxy_pass http://ticketing_users$1 /api/users/1234 networks:

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

79300933

Date: 2024-12-22 11:59:37
Score: 2
Natty:
Report link

ran into an exactly the same problem. this thread helped me get through. if your health check does not work when you update your security group to allow only cloudflare IPs, check your port configuration - your server might be running on port 8000 but health check in the target group may be doing it on port 80. Stupid oversight, but a critical one nonetheless.

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

79300931

Date: 2024-12-22 11:57:36
Score: 1
Natty:
Report link

If none of the answers above work, do the following steps:

  1. Change directory to ~/.nvm
  2. Check if you have nvm.sh. If you do then all you have to do is run nvm.sh. Essentially type source nvm.sh. This should solve most of the issues you'd be facing trying to use nvm.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lihka1202

79300929

Date: 2024-12-22 11:55:36
Score: 1
Natty:
Report link

Found a suitable online JSON formatter by Curious Concept : https://jsonformatter.curiousconcept.com/

You just paste/drop your file inside and click "Process", then download the resulting beautified JSON.

Might not be a proper answer I don't know if online tools may apply, but I've found this, it solved my issue and it can be useful, so I think it's worth mentioning...

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

79300910

Date: 2024-12-22 11:37:33
Score: 1
Natty:
Report link

Disabling server-side prerendering in Blazor for .net 8 and 9 is done differently:

https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management?view=aspnetcore-9.0&pivots=server#handle-prerendering

In app.razor make the following changes to disable prerendering for Interactive Server projects (which enables LocalStorage capabilities for example):

<head>
    ...
    <HeadOutlet @rendermode="new InteractiveServerRenderMode(prerender: false)" />
    ...
</head>

<body>
    ...
    <Routes @rendermode="new InteractiveServerRenderMode(prerender: false)" />
    ...
</body>
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Snympi

79300907

Date: 2024-12-22 11:34:32
Score: 2.5
Natty:
Report link

I would like to share the solution I have found for those who have the same problem as me.

public class CustomWebDocumentViewerReportResolver : IWebDocumentViewerReportResolver
 {
     private readonly IServiceProvider _serviceProvider;

     public CustomWebDocumentViewerReportResolver(IServiceProvider serviceProvider)
     {
         _serviceProvider = serviceProvider;
     }

     public XtraReport Resolve(string reportEntry)
     {
         switch (reportEntry)
         {
             case "Report1":
                 return ActivatorUtilities.CreateInstance<Report1>(_serviceProvider);
             default:
                 Type t = Type.GetType(reportEntry);
                 return typeof(XtraReport).IsAssignableFrom(t) ?
                     (XtraReport)Activator.CreateInstance(t) :
                     null;
         }
     }
 }
private readonly ITest1 _test1;
private readonly ITest2 _test2;

public Report1(ITest1 test1, ITest2 test2)
{
    InitializeComponent();
    _test1 = test1;
    _test2 = test2;
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: AdylshaY

79300901

Date: 2024-12-22 11:29:31
Score: 3
Natty:
Report link

I have the same problem for 2 month .. but in javascript ..after a lot of search and my old way .. find out we have array_flip.. :)

my old code:

$array = array('name' => 'mostafa', 'family' => 'mason', 'phone' => '524854745', 'sid' => '85487452660');
// Swap keys 'name' and 'sid'
list($array['name'], $array['sid']) = array($array['sid'], $array['name']);
// Swap keys 'family' and 'phone'
list($array['family'], $array['phone']) = array($array['phone'], $array['family']);
var_dump($array);

and new one:

$array = array('a' => 'val1', 'b' => 'val2', 'c' => 'val3', 'd' => 'val4');
$array = array_flip($array);
var_dump($array);
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (0.5):
Posted by: Mostafa

79300899

Date: 2024-12-22 11:27:30
Score: 4
Natty:
Report link

Actually this is not an answer, more like follow up question (because I've yet to have reputation to put up a comment on the highlighted answer).

I also happens to be in a similar situation with you, I basically create a Linux-based image Azure Http Trigger function and wants to deployed it into Azure container function.

May I know how do you deploy the function? Which method/type of azure service did you use?

As for me, I've been trying using the az cli command like this below but so far been unsuccessful and still gets 404 for my endpoints.

az functionapp create --name MyFunction --storage-account StorageAccount --resource-group MyResourceGroup --consumption-plan-location regioncode --image dockerId/functionRepoName:vTag
Reasons:
  • Blacklisted phrase (1): how do you
  • Blacklisted phrase (1): not an answer
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: codeZeuss

79300887

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

Just after posting the question I've decided to check adding a random case to see if it works and it worked:

enter image description here

So, a case is required, the default case is not enough to save the flow.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kuhi

79300885

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

here is my step by step solution- The problem you are experiencing may be due to the configuration of the input stream and its relationship to the run loop. When you schedule the input stream in a run loop Make sure that the mode you are using is correct and consistent with the current loop running mode. If the mode is incorrect or incorrectly set The stream may not receive events as expected.

Here are the steps to troubleshoot and possibly fix the problem.

Loop Run Mode: Verify the loop run mode you are using. (NSDefaultRunLoopMode) is the production mode when the stream is scheduled. You can check the current mode using [NSRunLoop currentRunLoop].currentMode.

Stream Agent: Make sure the Stream Agent is set up correctly before launching the stream. A delegate must be assigned to the input stream before opening [channel inputStream].

Thread management: Because you are using a custom delivery queue. Make sure the queue doesn't block the main thread or cause a deadlock. If the queue is not available Streaming events may not be processed.

Bug Fix: Added logging to the method. stream:handleEvent: to confirm if a call is in progress. If not, The problem is probably in the streaming settings.

Data Availability: Since you said hasBytesAvailable returns false Ensures that data is sent correctly from the peripheral and that the L2CAP channel works as expected.

Encryption: Have you noticed that enforcing encryption helps hasBytesAvailable It can return the expected data. This indicates that encryption may be required for the stream to function properly. So make sure your BLE connection is properly configured for encrypted communication.

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

79300884

Date: 2024-12-22 11:19:27
Score: 2
Natty:
Report link

This Snowman iPhone Case Will Amp Up Your Holiday Spirit 🎄❄️

With the festive season around the corner, it may become hard to think of the unique ways you can show your love for the holidays. Whether you’re looking to treat yourself or are shopping for a thoughtful gift, the Winter Romance Snowman iPhone Case is a great mix of style, durability and holiday cheer. This luxurious phone case protects your device while celebrating the season's magic.

🎁 Shop Now

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Case-Me Store

79300873

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

My project configuration actually was wrong, but I cannot say to what extend. After recreating the multi module project with intellij's wizard, the expect/actual declarations are properly used and the error disappeard.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: padmalcom