79076142

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

The saviour for those who doesn't want to pay is Microsoft Edge. The documentation mentions: You can't configure a maximum duration for functions using the Edge runtime. They can run indefinitely provided they send an initial response within 25 seconds.

So, simply install Edge and you are good to go. Atleast, I am continuing my app's development now.

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

79076136

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

(Derivative of Winston's answer)

pathlib makes it easy to manipulate the module's filename:

import __main__
from pathlib import Path

main_name = Path(__main__.__file__).stem
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Adam Gausmann

79076131

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

Possibly xorriso -as mkisofs option -boot-info-table is to blame. It causes xorriso to overwrite bytes 8 to 63 in the boot image. Larger boot images use these bytes to locate themselves on the optical boot medium and to load more of themselves than just the 4 blocks of 512 bytes, which they trust any BIOS to be able to load.

So try xorriso -as mkisofs without option -boot-info-table. Better omit option -boot-load-size 4 , too, until your bootimage becomes too large for getting loaded by your BIOS. (Then you will have to study ISOLINUX or GRUB for their preparation and use of bytes 8 to 63 in the boot image.)

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

79076121

Date: 2024-10-10 20:57:16
Score: 1
Natty:
Report link

If you need for Fire Monkey:

After Memo1.Lines.Add (); add this line:

 Memo1.GoToTextEnd;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wellington Telles Cunha

79076108

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

When something doesn’t compile it is helpful to share the error. That should work but it will only work on Windows - so if you are compiling it in WSL (Linux) that could be the problem.

Working on an emulation of one system in another will make things like this more problematic and I recommend you compile the windows app on a windows environment instead - cmd or even the MSYS2 setup recommended in the Fyne getting started guide. https://fyne.io/started

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): When some
  • Low reputation (1):
Posted by: Andy

79076104

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

Ahoy!

Your example was in awk, but would you mind a Perl solution? When you are trying to do many things at once, it is probably best not to use one liners and write out a complete program. From what I understand the beginning pattern is ### and the end pattern is ##. Then inside that pattern, the sub pattern you are looking for is everything from Problem Key until the end of the line. I took the example file and removed the asterisks (*) from around the end pattern. I assumed you put them there for emphasis and they are not in the original file.

Here is the solution

#!/usr/bin/perl -w

#find all lines within pattern ### and ##
#inside this pattern, look for sub pattern Problem Key: .*\n
#assuming the Problem Key sub pattern can occur multiple times inside the pattern

my $pattern;
my $subPattern;
my $i = 1; #count $pattern matches
my $j = 1; #count $subPattern matches
undef $/; #grab entire file at once because there are newlines
while(<>){#this while loop only runs once per file, and the entire file is stored in $_
  while( /\#{3}\n([\w\W]*?)\#{2}/g ){ #$1 contains the current pattern, regex will match all occurances in file
    $pattern = $1;
    print "Pattern found Match: $i\n";
    print "-------------\n";
    print "$pattern";
    print "-------------\n";
    $j = 1;
    while( $pattern =~ / (Problem Key:.*)/g ){ #$1 contains current subpattern, regex will match all occurances in $pattern
      $subPattern = $1;
      print "Sub Pattern Found Match: $j\n";
      print "-----------------\n";
      print "$subPattern\n";
      print "-----------------\n\n";
      $j++;
    }
    $i++;
  }
}

Output looks like this

$ perl subPattern.pl subPattern.txt
Pattern found Match: 1
-------------
xxx
zzz Problem Key: DFW-XXXXX [blah blah][blah blah][blah blah]
yyy
xxx
-------------
Sub Pattern Found Match: 1
-----------------
Problem Key: DFW-XXXXX [blah blah][blah blah][blah blah]
-----------------

Pattern found Match: 2
-------------
zzz 
xxx 
yyy 
zzz Problem Key: DFW-YYYY [blah blah][blah blah]
-------------
Sub Pattern Found Match: 1
-----------------
Problem Key: DFW-YYYY [blah blah][blah blah]
-----------------

Good Luck!

Reasons:
  • Blacklisted phrase (2): would you mind
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: user3408541

79076082

Date: 2024-10-10 20:40:13
Score: 3
Natty:
Report link

How to make this happen is explained very well and in detail here: Provide a site name to Google Search. The implementation is through the schema.org protocol.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (0.5):
Posted by: Maniac

79076078

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

If you can't download windows from the website try a different browser or a VPN Hola VPN is free browser extension if it does not work try to download the installer on your phone and transfer the file to your pc over USB wire or one of the cloud storage services

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

79076064

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

found that ApplicationModuleListener is annotated with TransactionalEventListener

so end up publish event under @Transactional

@RequiredArgsConstructor
public class EventPublishingService {

  private @NonNull final ApplicationEventPublisher applicationEventPublisher;

  @Transactional
  public void publishEvent(MyApplicationEvent event) {
    applicationEventPublisher.publishEvent(event);
  }
}

and this do the magic work.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Transactionaland
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: JPG

79076061

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

Your assumption is correct. If the class is found inside a locally running container the image must have it, also when running remotely. Hence doublecheck whether you really are running the same image.

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

79076050

Date: 2024-10-10 20:26:09
Score: 2
Natty:
Report link

Disabling the willReadFrequently canvas context flag fixed the issue and paints do not take 30ms anymore.

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

79076033

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

If anyone still have this issues.

check for this import in settings.py

from rest_framework.schemas import openapi

Remove it because it references

rest_framework.schemas.openapi

which conflicts with drf-spectacular. spectacular provides its own schema generator.

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

79076030

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

This might be helpful: Codepen Link

<div class="outerbox">
  <div class="innerbox select">
    Home
</div>
  <div class="innerbox select">
    Contact
</div>
  <div class="innerbox">
    Profile
</div>
</div>
.outerbox {
  overflow: hidden;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100px;
  background-color: red;
  padding: 20px 0 20px 20px;
  color: #fff;
}

.innerbox {
  padding: 1.5rem 10px;
  position: relative;
  background-color: red;
  transition: all 0.3s ease;
}


.select::after {
  position: absolute;
  top: -20px;
  right: 0;
  content: "";
  width: 120px;
  height: 30px;
  background-color: red;
  border-radius: 100px;
}

.select::before {
  position: absolute;
  content: "";
  width: 120px;
  height: 30px;
  border-radius: 100px;
  background-color: red;
  bottom: -20px;
  right: 0;
}

.innerbox:hover {
  background-color: white;
  color: red;
}

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Manish Patil

79076029

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

I found a class on Github that returns the Windows master volume among other things.

The method is -> getMasterVolumeLevel()

Class where you will find the method (GitHub)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aarón

79076015

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

You need to make sure that your dependencies point in one direction (controller -> service -> repository). Then you won't have cycles.


To do this,

  1. Don't call services from other services.
  2. Feel free to call multiple repositories from your services.

P.S. Services contain business logic, including transaction management logic. Accordingly, if you have 2 repositories and you need to do some action in these repositories in one transaction, then the service is the place that will wrap the work with these repositories in one transaction.

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

79075998

Date: 2024-10-10 20:08:05
Score: 2.5
Natty:
Report link

You can set up a wrapper function, passing the scoped logger as an argument, as seen in https://www.dataleadsfuture.com/conquer-retries-in-python-using-tenacity-an-end-to-end-tutorial/

Something like:

def my_scope_logger(logger):
    def my_log(retry_state):
        logger.log('something to log')
    return my_log

Then you can pass 'my_scope_logger' to the before callback in the retry decorator.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Danilo Gomes Curcio

79075993

Date: 2024-10-10 20:06:05
Score: 2
Natty:
Report link

You bind the properties of your view model to your controls. A view model is not meant to have knowledge of the view and its controls.

So if you want the SelectedRow, you create a property in your view model and you bind to that property from your view.

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

79075991

Date: 2024-10-10 20:06:05
Score: 3
Natty:
Report link

Try this package it will make your OTP process faster and easy to maintain https://github.com/mustafakhaleddev/LaravelAdvancedOTP

Reasons:
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MKD

79075986

Date: 2024-10-10 20:04:04
Score: 2
Natty:
Report link

as per enter link description here

this is the solution:

options.setBrowserVersion("116.0.5845.111");

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Whitelisted phrase (-2): solution:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user23485334

79075973

Date: 2024-10-10 20:02:03
Score: 10
Natty: 7.5
Report link

Can someone help me, what is wrong in below Oracle SQL. I am getting [Error] Execution (29: 82): ORA-01843: not a valid month.

SELECT * FROM schemaAB.VWHIST WHERE SER='SAT' AND START_TIME= ('10/10/2024 5:31:03')

Thank you in advance.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Thank you in advance
  • RegEx Blacklisted phrase (3): Can someone help me
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): Can someone help me
  • Low reputation (1):
Posted by: user2259252

79075971

Date: 2024-10-10 20:00:02
Score: 2
Natty:
Report link

In my case, I recently installed an antivirus which setup firewall.

  1. Uninstall the antivirus
  2. Restart my system
  3. Restart the server

It works fine after that.

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

79075960

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

In my case, I was able to resolve by updating ("getting latest") on the root of the svn branch.

This was on a Mac using Versions as an svn client.

I've never had to do that before, but it worked in this case.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ODB

79075953

Date: 2024-10-10 19:56:01
Score: 1.5
Natty:
Report link

Thanks to @ouroboros1 for the solution, full code to follow!

def main():

    csvFileList=os.listdir("data")

    dataFileList={}

    for csvFile in csvFileList:

        with open(f"data\\{csvFile}", mode='r', newline='\n') as curFile:
            curFileData = csv.reader(curFile)
            currFileList=[]
            for row in curFileData:
                currFileList.append(row)
            dataFileList[csvFile]= currFileList
    pandaList=[]

    for file in dataFileList:
        pandaList.append((file, pd.DataFrame(dataFileList[file][1:], columns=dataFileList[file][0])))

    for df in pandaList:

        filename = df[0]
        dataFrame=df[1]
        result = dataFrame.loc[:, dataFrame.nunique().ne(1)]

        result.to_csv(filename, index=False)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @ouroboros1
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MKUltra

79075950

Date: 2024-10-10 19:55:01
Score: 1.5
Natty:
Report link
{% your_tag_name as name %}
{{ name|filter }}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: tikej

79075947

Date: 2024-10-10 19:54:00
Score: 3.5
Natty:
Report link

In my case, just restarting the iPhone worked, good luck.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: José Ángel Guerrero Sánchez

79075943

Date: 2024-10-10 19:52:00
Score: 0.5
Natty:
Report link

I just faced the same issue. After checking the information, I found that it was caused by incorrect setting of CUDA architecture while compiling grid_sample_3d plugin.

Set set_target_properties(${PROJECT_NAME} PROPERTIES CUDA_ARCHITECTURES “89”) in the CMakeLists.txt of the compiled plugin to the compute power adapted to your own GPU. The compute power can be found at the URL https://developer.nvidia.com/cuda-gpus. For example, if I am using a 3090, at the corresponding compute power of 8.6, I should use set_target_properties(${PROJECT_NAME} PROPERTIES CUDA_ARCHITECTURES “86”)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: zyyyc

79075941

Date: 2024-10-10 19:52:00
Score: 4
Natty:
Report link

Please access this picture and follow the commands [1]: https://i.sstatic.net/Fyw9a2BV.png

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

79075938

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

You have a couple of options, both of which can be found in this answer.

logic app ( power automate) extract checklist items from a task from a planner plan

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

79075921

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

So I come up with this: I couldn't update dependencies due to that newer versions of pipenv don`t support python 3.7, so I installed older version of pipenv, succefully updated some packages and launched the project.

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

79075917

Date: 2024-10-10 19:43:58
Score: 2
Natty:
Report link

I found this seems to do the same thing

@tag_product = Product.tag_counts_on(:tags)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luigi

79075916

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

It seems from further research that the REVOKE PRIVILEGES does not cascade from the database level down, so I'll have to do explicit revocations.

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

79075909

Date: 2024-10-10 19:40:57
Score: 1.5
Natty:
Report link

I used Timothy G.s suggestion (which worked - thank you!) and took it a step further.

I overwrote the VCToolsVersion and VCToolsRedistVersion in both the default AND base platform props/txt files in C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build

I still had selected v143 in the Platform Target Toolset in the C++ project properties (in visual studio - so no changes to project)

I took the VCToolsVersion and VCToolsRedistVersion info from this:

VCToolsVersion and VCToolsRedistVersion info

and overwrote the VCToolsVersion and VCToolsRedistVersion info in these files:

files to modify

bingo bango, project builds perfectly.

This allowed me to build our legacy programs without making any changes to the project itself. Our company is forced to use out of date toolsets due to some other software we integrate with that isn't up to date... And many of our tools are used in that software...

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

79075901

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

For anyone that is looking for the solution, Autodesk has 2 constant to set margin horizontally and vertically, you can set them to 0 to get the exact fit. Log viewer.navigation to the console you should be able to see the source, from then you should see 2 uppercase property end with MARGIN, update them

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

79075900

Date: 2024-10-10 19:36:56
Score: 4.5
Natty: 6
Report link

langley... THANK YOU SO MUCH!!!

Reasons:
  • Blacklisted phrase (0.5): THANK YOU
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Juan Quijano

79075891

Date: 2024-10-10 19:33:54
Score: 5.5
Natty: 6
Report link

I see the async void answer is marked as best. But what if the awaited operation fails?

https://learn.microsoft.com/en-us/archive/msdn-magazine/2013/march/async-await-best-practices-in-asynchronous-programming

See figure 2in the provided link. I'm curious, what am i missing here?

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

79075887

Date: 2024-10-10 19:32:54
Score: 3
Natty:
Report link

OMG I should have read the manual :(

It was that easy:

$(elem).bootstrapToggle();

Sorry,

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

79075881

Date: 2024-10-10 19:31:54
Score: 2
Natty:
Report link

It looks like anthropic-bedrock (https://github.com/anthropics/anthropic-bedrock-python/tree/main) is no longer an actively maintained repo. It has been merged into the main anthropic repo at ( https://github.com/anthropics/anthropic-sdk-python/tree/main)

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

79075878

Date: 2024-10-10 19:30:53
Score: 2.5
Natty:
Report link

pessoal estou com esse problema quem pode ajudar Command failed with exit code 1: C:\curso-apps\teste\platforms\android\tools\gradlew.bat cdvBuildDebug

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: jose da silva Homedoimportodo

79075876

Date: 2024-10-10 19:30:53
Score: 8 🚩
Natty:
Report link

I have the same question and need, an alternative question would be what moderm 4G stick modems allow SMS to be sent and received over is Https/IP connections from a WIN 11 Server ?

Reasons:
  • Blacklisted phrase (1): I have the same question
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same question
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rand Mental

79075871

Date: 2024-10-10 19:28:52
Score: 2.5
Natty:
Report link

Selam Amine,

https://stackoverflow.com/a/63778894/17052702

The "In the installer" part of this answer helped me to solve the exact problem you have. I got the same error as you and 'data' folder in my PostgreSQL location was empty. I just uninstalled it and installed again with selecting "English, United States" instead of "default locale" and it is working as expected now.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • No code block (0.5):
  • Low reputation (1):
Posted by: mbdeviant

79075865

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

Ran into this problem on a fresh Git install on Windows 11. None of the other answers helped. Was finally able to fix it by switching Git to using the built-in ssh.exe instead of the one packaged with Git for Windows by running:

git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Reshi

79075862

Date: 2024-10-10 19:27:52
Score: 5
Natty:
Report link

we struggled for a bit but figured out in the end. but with a round about way I guess. it's our first time for me and team members to work with VR so there's a probably better way than this :). Any help would be appreciated.

here is the new code my college made.

public class MidiFileLoader : MonoBehaviour { public List midiFilePaths = new List(); // Store all MIDI file paths public GameObject buttonPrefab; // Assign a UI Button prefab with a Text component public Transform buttonContainer; // A parent object in the UI where buttons will be placed public string midiListFileName = "midi_list.txt"; // The text file that lists all MIDI files

// UI elements for progress and debugging
public Slider downloadProgressSlider; // Progress bar for file download
public TMP_Text debugText; // TextMeshPro text for debugging and showing progress

void Start()
{
    // Request permission for external storage on Android
    if (Application.platform == RuntimePlatform.Android)
    {
        RequestStoragePermissions();
    }

    // Start loading MIDI file list
    StartCoroutine(LoadMidiFileList());
}

// Coroutine to load the list of MIDI files from StreamingAssets
private IEnumerator LoadMidiFileList()
{
    string midiListPath = Path.Combine(Application.streamingAssetsPath, "MidiFiles", midiListFileName);

    // Use UnityWebRequest to load the list file (for Android and other platforms)
    UnityWebRequest request = UnityWebRequest.Get(midiListPath);

    yield return request.SendWebRequest();

    if (request.result == UnityWebRequest.Result.Success)
    {
        // Parse the file list (assuming each file is on a new line)
        string fileList = request.downloadHandler.text;
        string[] lines = fileList.Split('\n');

        foreach (string line in lines)
        {
            if (!string.IsNullOrEmpty(line.Trim()))
            {
                midiFilePaths.Add(line.Trim());
            }
        }

        // Populate the UI with buttons for each MIDI file
        PopulateMenu();
    }
    else
    {
        Debug.LogError("Failed to load MIDI list: " + request.error);
    }
}

// This method will populate the menu with the MIDI file paths
void PopulateMenu()
{
    for (int i = 0; i < midiFilePaths.Count; i++)
    {
        string path = midiFilePaths[i];

        // Instantiate the button inside the buttonContainer
        GameObject newButton = Instantiate(buttonPrefab, buttonContainer);

        // Set the button text to the MIDI file name
        newButton.GetComponentInChildren<TMP_Text>().text = Path.GetFileNameWithoutExtension(path);

        // Add a listener to the button to load the selected file when clicked
        Button buttonComponent = newButton.GetComponent<Button>();
        string fullPath = Path.Combine(Application.streamingAssetsPath, "MidiFiles", path);
        buttonComponent.onClick.AddListener(() => 
        {
            Debug.Log("Button clicked for: " + fullPath);
            StartCoroutine(LoadAndPlayMidi(fullPath));
        });
    }
}

// Coroutine to load and play a MIDI file
private IEnumerator LoadAndPlayMidi(string filePath)
{
    // Use UnityWebRequest to access the file in StreamingAssets
    UnityWebRequest request = UnityWebRequest.Get(filePath);

    // Reset progress bar and debug text
    downloadProgressSlider.value = 0;
    debugText.text = "Starting download...";

    request.SendWebRequest();

    // Update the progress bar while downloading
    while (!request.isDone)
    {
        downloadProgressSlider.value = request.downloadProgress;
        debugText.text = $"Downloading... {request.downloadProgress * 100}%";

        yield return null; // Wait until the next frame
    }

    if (request.result == UnityWebRequest.Result.Success)
    {
        // Save the downloaded file to persistentDataPath
        string tempFilePath = Path.Combine(Application.persistentDataPath, Path.GetFileName(filePath));

        // Write the downloaded data to a local file
        File.WriteAllBytes(tempFilePath, request.downloadHandler.data);

        // Call MidiReader with the file path of the saved file
        MidiReader.instance.StartReading(tempFilePath);

        // Debug: Notify user that the file is ready
        debugText.text = "Download complete!";
    }
    else
    {
        Debug.LogError("Failed to load MIDI file: " + request.error);
        debugText.text = "Download failed: " + request.error;
    }

    // Reset progress bar after download
    downloadProgressSlider.value = 0;
}

// Request external storage permissions on Android
private void RequestStoragePermissions()
{
    if (!Permission.HasUserAuthorizedPermission(Permission.ExternalStorageRead))
    {
        Permission.RequestUserPermission(Permission.ExternalStorageRead);
    }

    // Optional: Check for write permission if needed
    if (!Permission.HasUserAuthorizedPermission(Permission.ExternalStorageWrite))
    {
        Permission.RequestUserPermission(Permission.ExternalStorageWrite);
    }
}

}

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help would be appreciated
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Omar Ali

79075856

Date: 2024-10-10 19:25:51
Score: 1.5
Natty:
Report link

Update 2024.10. Something looks change based on the new IDE. Here is the setup page below: enter image description here

File -> Settings -> Languages & Frameworks -> Jupyter -> Markdown font scale

You need to change the percentage to increase or decrease the font size of your markdown font size(like what I did to set it up as 150% to make the font 1.5 times than the original.)

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

79075848

Date: 2024-10-10 19:22:50
Score: 2
Natty:
Report link

Turns out my .env file had theWEBSITE_HOST=http://127.0.0.1:8000 changing it to WEBSITE_HOST=http://127.0.0.1worked.

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

79075835

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

Sorry if I'm way too late..., but here is how I did it if anyone came across this in the future

find . -name "*.tif" \
  -exec sh -c 'exec magick convert "$1" "${1%.tif}.png"' _ {} \; \
  -exec sh -c 'rm -rf "$1"' _ {} \;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Quang1999

79075828

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

You can visit https://onlyface.pro/facebook-swipe-up-video to register a Facebook application, select all permissions from 'Events Groups Pages,' and generate a swipe-up video post using the token.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Châu Văn Hiệu

79075826

Date: 2024-10-10 19:14:49
Score: 3
Natty:
Report link

Is this problem because of the same-origin policy? If the checkout URL or any redirects go to a different website or subdomain, that could be why window.opener is null.

You can check same-origin policy documentation here: https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: tcsd

79075806

Date: 2024-10-10 19:06:47
Score: 2.5
Natty:
Report link

I finally found an answer.. I had to add an AntPatternRequestMatcher to the

http.securityMatcher(new AntPatternRequestMatcher("/services/**"))

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

79075803

Date: 2024-10-10 19:05:47
Score: 11
Natty: 7
Report link

I have the same @dai problem

@dai, adjunté opciones. Existe la opción "Proveedor de datos de cliente SQL de Microsoft" que marqué en rojo. Utilicé esa opción y la prueba de conexión se realizó correctamente. Sin embargo, cuando uso el componente de origen de ADO-NET con el administrador de conexión, puedo obtener una vista previa de los datos. Pero cuando ejecuto el paquete desde Visual Studio, aparece el siguiente error: [ADO NET Source [2]] Error: ADO NET Source no pudo adquirir la conexión {E022BF69-01BE-4CB8-A916-F5BD67A7DB43} con el siguiente mensaje de error: "No se pudo crear un administrador de conexión administrado". – rkapukaya Comentado13 de abril de 2023 a las 15:02

Can somebody help me?

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (2): crear
  • RegEx Blacklisted phrase (3): Can somebody help me
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @dai
  • User mentioned (0): @dai
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Diego Mesa

79075796

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

Just for anyone who has reached here after noticing lld is missing in the LLVM installation:

lld is now provided in a separate formula:

brew install lld
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vyshnav

79075794

Date: 2024-10-10 19:03:46
Score: 2.5
Natty:
Report link

I reinstalled Intellij due to other problems and I found this obstacle. @Areza was right! You must downgrade your version.

enter image description here

You can do it clicking right above your db connection and editing their properties (Drivers tab), or you can create a new db connection and do the same stuff.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Areza
  • Low reputation (0.5):
Posted by: A. González

79075793

Date: 2024-10-10 19:03:46
Score: 1.5
Natty:
Report link

The normal state for that environment is to have schema validation turned on to encourage good XML development practices. It was inadvertently turned off during an update. Once it was discovered, the validation routines were restored.

Schema validation turned on is the normal state of the environment and will remain. The error message you are receiving is alerting you that you are not following schema and is attempting to provide you with the next expected element per schema.

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

79075792

Date: 2024-10-10 19:03:46
Score: 2.5
Natty:
Report link

double.parse(priceController.text), int.parse(quantityController.text), should solve the issue

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Afolarin olayemi Abdullahi

79075790

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

For Better Performance Use Trim Function : $('.select').selectize({ openOnFocus: true, items: [''], score: function(search) { var score = this.getScoreFunction(search); return function(item) { return item.text.trim() .toLowerCase() .startsWith(search.toLowerCase()) ? 1 : 0; }; }, });

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

79075781

Date: 2024-10-10 19:00:45
Score: 1.5
Natty:
Report link

While I'm sure the previous responses will work, they're more complicated than they need to be.

If your instance is unreachable due to a full disk, just detach the volume from that instance and attach it to a working instance. Then do whatever you need to do, whether it be deleting files or growing the volume.

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

79075767

Date: 2024-10-10 18:53:43
Score: 1
Natty:
Report link

S3 is is specific service. Sometimes it behaves like regional service, other times like global one.

Try to remove region parameter from your S3 client. Connection will be created to default region for S3 (us-east-1).

Presigned URL generates temporary security credentials and embeds this into URL. This involves IAM service and STS service.

IAM is global service and S3 has its own special behaviour. I have no better explanation. Try S3 client without region.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Tomasz Breś

79075762

Date: 2024-10-10 18:51:43
Score: 1
Natty:
Report link
$('.foobar').on('click', function(e) {
  var el = e.target;
  if (e.target !== this) {
    el = e.target.closest('DIV');
  }

  // do stuff with el
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Popsyjunior

79075760

Date: 2024-10-10 18:50:42
Score: 1
Natty:
Report link

It is not theoretically viable to use Azure Blob Storage as a straight replacement for a relational database such as PostgreSQL in a Django project. Blob storage is intended to store unstructured data such as photos, videos, documents, and other files, rather than structured relational data, which PostgreSQL manages.

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

79075752

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

Wrap up by another div with 100% width

<div style="width: 100%;">
  <div class="SubHeader">
    <h1>Mes tickets</h1>
      <button>Créer un ticket</button>
  </div>
</div>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Md. Sohel Rana

79075745

Date: 2024-10-10 18:41:40
Score: 2.5
Natty:
Report link

This will probably help someone out there. So I also faced something related to this and it was not also about cancelling an effect but about dispatching an action that ran the same saga again. So that's something you should look out for. Somewhat recursive kind of logic.

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

79075738

Date: 2024-10-10 18:39:40
Score: 2
Natty:
Report link

I am having the same issue as you are. In my case I have two azure Service Principals, and the other one is logged out, yet terraform is trying to use the logged out SP to target the resources.

My back end block looks something like this....

terraform {
  backend "azurerm" {
    subscription_id      = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    storage_account_name = "terraformdevstate"
    resource_group_name  = "cc-dev-rg-tor"
    container_name       = "tfstate-devops-dev"
    key                  = "dev-test"
  }
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "~>3.80"
    }
    azuread = {
      source  = "hashicorp/azuread"
      version = "~>2.4"
    }
  }
  required_version = "~> 1.5"
}

I think terraform is caching and targeting the other subscription even though I am specifically selecting the subscription belonging to the second SP.

Error: Failed to get existing workspaces: Error retrieving keys for Storage Account "terraformdevstate": storage.AccountsClient#ListKeys: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client '6cb8xxxx-xxxx-xxxx-xxxx-70c35b6cxxxx' with object id '6cb8xxxx-xxxx-xxxx-xxxx-70c35b6cxxxx' does not have authorization to perform action

Even when I logout of the first SP and log into the second SP terraform wants to use the first SP to deploy the infrastructure.

Not sure if this is Terraform or Azure CLI that is at fault here.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the same issue
  • Low reputation (1):
Posted by: Chupacabra

79075735

Date: 2024-10-10 18:37:39
Score: 5
Natty: 4
Report link

ngl that deployed site is really fast and snappy. Did you change it after posting this or potentially update your Next version? Curious.

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

79075733

Date: 2024-10-10 18:37:39
Score: 0.5
Natty:
Report link

This is (an example of) an initial flow network for your example.

Each individual item goes to a capacity

If you repeat finding the max-flow and then subtracting off the items until you get zero items, the number of times you repeat Ford–Fulkerson is your answer. However, for Ford–Fulkerson, this can be simplified to,

Simplified.

That is, it doesn't matter what the strategy for individual items is; what matters is the sum. Thus you should be able to solve this problem in O(number of items).

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Neil

79075732

Date: 2024-10-10 18:36:39
Score: 2.5
Natty:
Report link

Using API-KEY in my header instead of API_KEY worked for me.

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

79075730

Date: 2024-10-10 18:36:39
Score: 1
Natty:
Report link
itemsArray.push(
{
    //template: templateArray[i].TemplateName,
    template: document.getElementById(templateArray[i].TemplateName),
    title: templateArray[i].Title,
    index: templateArray[i].TemplateIndex
}

);

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

79075728

Date: 2024-10-10 18:36:39
Score: 3
Natty:
Report link

I know maybe it's not advanced method to solve your problem but If npm is not in your system’s PATH (Windows), Node.js might be working, but npm might not.

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

79075724

Date: 2024-10-10 18:34:39
Score: 0.5
Natty:
Report link

I accomplished it via calling stop_consuming call in the callback. Rest of the callback code just processed the single consumed message.

def callback(ch, method, properties, body):
        ch.stop_consuming()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: tkarahan

79075718

Date: 2024-10-10 18:31:38
Score: 1.5
Natty:
Report link

It appears nested objects are not supported (yet?), flattening the object to only contain json primitives seems to work.

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

79075709

Date: 2024-10-10 18:29:37
Score: 8 🚩
Natty: 4
Report link

Were you able to resolve the problem? I have the same situation and all over the internet I can only find this reference on the subject, but without an answer to resolve it.

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve the problem?
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Adriano Anschau

79075705

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

Hello try this method:

 process.on('uncaughtException', (err) => {

  console.log(err.name, err.message);
  server.close(() => {
    process.exit(1);
  });
});
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: elyes kabous

79075703

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

There is no way to programmatically change the label of a custom control after the control has rendered for the first time on the ribbon. You can have two controls with different labels and configure them so that only one is enabled at any given time.

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

79075678

Date: 2024-10-10 18:19:34
Score: 5
Natty: 5
Report link

It has been a very long time and I don't know if you still need this but, this Plugin might help you https://wordpress.org/plugins/custom-product-in-woo-order/

Reasons:
  • Blacklisted phrase (1): this Plugin
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Adolph Crist

79075677

Date: 2024-10-10 18:18:33
Score: 2
Natty:
Report link

Not all templates support Java. Try to choose another template for the new project, e.g. no activity or basic view activity, and then you will find a language droplist where you can select your preferred language.

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

79075672

Date: 2024-10-10 18:16:33
Score: 2.5
Natty:
Report link

I encountered the same issue, and it was resolved by disabling the Intellicode extension. The solution was provided in this discussion

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

79075671

Date: 2024-10-10 18:16:33
Score: 3.5
Natty:
Report link

i encountered this same issue, fixed mine by adding a wrapper class like this

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

79075666

Date: 2024-10-10 18:14:32
Score: 1
Natty:
Report link

If you follow the link posted by user1153046, it gives normal instructions for installing under Linux.

For WSL, it turns out you don't need to install specific GPU drivers, per official NVidia Documentation, just add the TensorFlow libraries/binaries/dependencies for Cuda with one pip install line:

pip install tensorflow[and-cuda]

Which installs these additional packages:

Installing collected packages: nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-nvcc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, nvidia-cusparse-cu12, nvidia-cudnn-cu12, nvidia-cusolver-cu12

Previously, I installed tensorflow without the "[and-cuda]" and got the same error message: "Could not find cuda drivers on your machine, GPU will not be used."

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): user1153046
  • Low reputation (1):
Posted by: Louis McCarthy

79075659

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

There can be muliple methods depending upon the situation. One thing that you can try is taking screenshot of only dropdown element.

driver.find_element(By.ID, id).screenshot('element_screenshot.png')

If you can share web page URL of copy of webpage I can test and find working solution.

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

79075641

Date: 2024-10-10 18:08:30
Score: 4
Natty: 4
Report link

I am able to accomplish this at scale by taking over the datasets that need to be updated and then using the same API mentioned above.

However, specifying the gateway data source ID to map to doesn’t do anything. This leaves an extra step to do manually.

Are you able to update this as well somehow?

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

79075636

Date: 2024-10-10 18:07:30
Score: 3
Natty:
Report link

import pytest_asyncio

@pytest_asyncio.fixture() async def your_fixture():

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

79075635

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

Using type as unknown should work

Use the below snippet as example

           try{
                //your code

            }catch(e : unknown  ){
                if( e instanceof Error){
                    setErrormessage(e.message)
                }
            }  
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kmax

79075634

Date: 2024-10-10 18:05:29
Score: 2
Natty:
Report link

I don't know if you already found your answer to this question, but this post explains how to save your .pdf to the desired path using os.path.join

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

79075624

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

This also might be helpful in some cases, specially when dealing with STATE from riverpod:

if (state.contains(foo)) {
      state = state.where((item) => item.id != foo.id).toList();
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hitalo

79075621

Date: 2024-10-10 17:59:27
Score: 1
Natty:
Report link

OK, so I was able to find the issue. I will post it because it may help someone in the future.
The logic with the intervals was just fine. The problem was with the interaction of the Bluetooth hook and this useEffect. In the question, I just put the part of the code that handles the timers, but this was inside a useEffect triggered by the change in step (the app has multiple steps where you have to trigger nodes, which are PCBs that send messages via BLE/MESH).

So... at the beginning of the useEffect I was setting the triggeredDevice to null so that if it was the same as the previous step, it would force the app to interpret it as changed, hence triggering its useEffect (not this one, another).

 useEffect(() => {
    if (currentStep <= selectedSteps) {
      const selectedArray = Array.from(selectedDevices);
      const masterDevice = selectedArray[0];
      setTriggeredDevice(null); // <--- This I had to comment out

      const randomIndex = Math.floor(Math.random() * selectedArray.length);
      const selectedCorrectDevice = selectedArray[randomIndex];

This was "colliding" with the setting of that state within the read characteristic function in the BLE hook:

const startListeningToCharacteristic = async (device: Device, characteristicUUID: string) => {
      if (device) {
        try {
          if (isDeviceConnected(device.id)) {
            const subscription = device.monitorCharacteristicForService(
              TERMINAL_UUID_SERVICE,
              characteristicUUID,
              (error, characteristic) => {
                if (characteristic?.value) {
                  const decodedData = base64.decode(characteristic.value);
                  console.log(`Received data: ${decodedData}`);
                  try {
                    const parsedData = JSON.parse(decodedData);
                    const deviceId = parsedData.node;
                    setTriggeredDevice(""); // This I added to force the trigger
                    setTriggeredDevice(deviceId);                    
                  } catch (parseError) {
                    console.error("Error parsing JSON data:", parseError);
                  }
                } else {
                  console.log("No Data received");
                }
              }
            );
            characteristicSubscriptions.current[device.id] = subscription;
          } else {
            console.log(`Device ${device.id} is not connected.`);
            listConnectedDevices();
          }
        } catch (error) {
          console.error("Error during monitoring setup:", error);
        }
      } else {
        console.log("No Device Connected");
      }
    };

So I added that empty string setting before the deviceId setting to force it, and the setInterval ran perfectly. I don't fully understand why there was an issue with this, but I think it might have been some kind of race condition or something like that.

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Damián Vallejo

79075614

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

i have the same problem but with location, im using expo-location to get the user current location and save it on firebase DB , the app works well with expo go but when i build the apk version and download it to my android device the app crushes when i click the button that trigger the getLocation function, the first run the app asks me for permission, i granted and then it crushes //Get Driver home Location const getLocation = async () => { Keyboard.dismiss() setLocationLoading(true) try { const isAvailable = await Location.hasServicesEnabledAsync(); if (!isAvailable) { createAlert('الرجاء تفعيل خدمات الموقع الجغرافي للتطبيق') setLocationLoading(false); return; }

      let { status } = await Location.requestForegroundPermissionsAsync();
      if (status !== 'granted') {
        createAlert('حدث خطأ اثناء تحديد الموقع. يرجى المحاولة مرة أخرى');
        setLocationLoading(false);
        return;
      }
      console.log('Getting current position...');
      let location = await Location.getCurrentPositionAsync({
        accuracy: Location.Accuracy.High,
      });
      console.log('Location obtained:', location)
      setLocation(location)

    } catch (error) {
      createAlert('حدث خطأ اثناء تحديد الموقع. يرجى المحاولة مرة أخرى');
      console.log(error)
    } finally {
      setLocationLoading(false)
    }
  }
Reasons:
  • Blacklisted phrase (1): i have the same problem
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): i have the same problem
  • Low reputation (1):
Posted by: Hamdi Ammari

79075611

Date: 2024-10-10 17:55:26
Score: 5
Natty:
Report link

Simple mistake, use Or instead of And... Thanks to @Dogbert for helping

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Dogbert
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kouketsu

79075591

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

I had the same problem here, and in my case, there was another program using the same apk built. I was trying build the app using Visual Studio, but I had a project on Android Studio using the same build. When I deleted the project on Android Studio, everything works fine.

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

79075582

Date: 2024-10-10 17:45:23
Score: 6 🚩
Natty:
Report link

this is my main file

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Joon Kim

79075579

Date: 2024-10-10 17:43:22
Score: 6.5 🚩
Natty:
Report link

enter image description here this is my controll file

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joon Kim

79075577

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

Got the answer from youtube. For anyone with a similr issue, simply add this to your next.config.js

const nextConfig = {
  eslint: {
    ignoreDuringBuilds: true,
  },
};
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Being47

79075570

Date: 2024-10-10 17:40:22
Score: 3
Natty:
Report link

Have you tried using Ctrl+d repeatedly on albumname and then shift+end to highlight the whole line(s) and then the del key?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jeevan Gopinath

79075566

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

You need to set up syncSecret to true in your SecretProviderClass:

spec:
  syncSecret:
    enabled: true

And the re-apply this yaml:

kubectl apply -f <your-yaml-filename>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: poisoned_monkey

79075556

Date: 2024-10-10 17:34:20
Score: 5
Natty: 4.5
Report link

Your code is useful but look at the marked area

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

79075555

Date: 2024-10-10 17:34:18
Score: 6.5 🚩
Natty: 4
Report link

Here in 2024, trying to compile a solution with a .wdproj file. All of the links above are now 404 or don't have the addon.

Does anyone have a current source for the .wdproj addon?

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have a current
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Tom Wilson

79075548

Date: 2024-10-10 17:32:17
Score: 2.5
Natty:
Report link

If the thermostat you have is a Google Nest Thermostat, then you set it up on your Google Account and follow device access documentation. (https://support.google.com/googlenest/answer/9893532)

If it is a thermostat that you are building take a look at the cloud to cloud APIs. (https://developers.google.com/nest/device-access/api/thermostat)

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

79075538

Date: 2024-10-10 17:29:17
Score: 1
Natty:
Report link

Right now there is no way to integrate automations directly into 3rd party services . However, you can implement a virtual device and change the code in a way which changes the state of the device in a way that corresponds to your automation .

You can make use of the following documentation for creating a virtual device and making use in creating automation.

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

79075532

Date: 2024-10-10 17:27:17
Score: 3
Natty:
Report link

I had to flush and sqlflush my database using the Django manager, immediately I makemigrations and migrate. It started working perfectly

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

79075531

Date: 2024-10-10 17:27:17
Score: 1.5
Natty:
Report link

In my case I had the web app already running localhost:8100 for deskotp development which caused the app to not load on the phone. Running npm ionic cap run --livereload will run a server for the desktop to access too.

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

79075521

Date: 2024-10-10 17:25:16
Score: 1.5
Natty:
Report link

The viewChild won't work in this case beccause the component is inside a ng-template.

You need to use *ngTemplateOutletenter

I explain it in this in this topic

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

79075520

Date: 2024-10-10 17:24:16
Score: 1.5
Natty:
Report link

Device Access APIs are web APIs. Hence, throughout numerous steps (authentication, re-authentication , SDP Exchange , etc..) an internet connection will be needed.

In every camera WebRTC call a connectivity check might need to be done, hence these APIs will not work on a local only network.

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

79075496

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

What worked for me was to remove connman and install NetworkManager. The connman blacklist solution did not work for me.

Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Hannes Van zyl