79168901

Date: 2024-11-08 05:29:46
Score: 1
Natty:
Report link

After starting the emulator, open terminal or command prompt and then enter following commands,

  1. telnet localhost 5554 ( This will connect your emulator )

  2. phonenumber (your_desired_phone_no)

Within this 2 commands you will be able to change your emulators phone number

Additional step;

When you connect emulator, and if you get this, Android Console: Authentication required Android Console: type 'auth <auth_token>' to authenticate Android Console: you can find your <auth_token> in

then go to your directory and search for .emulator_console_auth_token, open that and copy the auth number and open terminal again connect to emulator and enter below command,

this will work. 😊

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

79168897

Date: 2024-11-08 05:27:45
Score: 0.5
Natty:
Report link

im use this code to fix js. download multiple file with new tabs

function downloadFilesInNewTabs(fileArray) {
    top.sapphire.alert('Starting file downloads in new tabs', true);
    fileArray.forEach((file, index) => {
        const url = "WEB-CUSTOM/Download/DownloadFile_00.jsp?filepath=WEB-CUSTOM/ControlChart/Output/" + file;
        const newTab = window.open(url, '_blank');

        if (!newTab) {
            console.error(`Failed to open new tab for file: ${file}`);
            top.sapphire.alert(`Failed to open new tab for file: ${file}`, true);
        }
    });
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: patipat nuntapet

79168892

Date: 2024-11-08 05:22:44
Score: 1
Natty:
Report link

Given how expensive dateformatter is I would have considered a kludge of splitting the date on " ", using [0] array element of the split and ditching the rest.

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

79168888

Date: 2024-11-08 05:21:44
Score: 2.5
Natty:
Report link

Check if the subscription is available in your current location. I Faced a similar issue and after turning on the VPN I successfully fetched all of my subscriptions.

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

79168882

Date: 2024-11-08 05:19:43
Score: 2
Natty:
Report link

Yes, the same issue reproduced in my project. So I just had to initialize the initial value with empty string:

privacy_policy=' ';

<ckeditor [editor]="Editor" [config]="editorConfig [(ngModel)]="privacy_policy" (ready)="onReady($event)">

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

79168870

Date: 2024-11-08 05:13:42
Score: 1
Natty:
Report link

Your question does not follow StackOverFlow Community Guidelines on how to post a question. Specifically, your question is non coding question, and is asking for recommendations which is generally frowned upon. But anyway, let me help you :)

First thing, I could think of from your question is sheer quantity of images that you have in your dataset. I would recommend you to collect more good quality images to improve your model accuracy and performance.

If, you can't get hold of more images, you can apply Data Argumentation Techniques like

  1. Geometric Transformations: Try to rotate/scale/flipping your images.
  2. Color and Brightness Adjustments: Play with your dataset's color and brightness levels.

This will significantly, increase the number of images. The next important thing is to make sure that you have proper Data distribution. That is, if your classes are skewed towards one class, model performance will degrade. Make sure you use techniques like Oversampling to minority class. Ensure that the train and validation sets have a similar class distribution to avoid skewed evaluation.

Last piece of advise, play with different models and constantly hypertune your model params.

Reasons:
  • Blacklisted phrase (1): StackOverFlow
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: DrinkandDerive

79168869

Date: 2024-11-08 05:12:42
Score: 1.5
Natty:
Report link

awaitItem() will return the first emitted value in the flow, which is an empty list of TvShow in your case. Could you try using expectMostRecentItem() to get the latest emitted value?

viewModel.recentTvShowList.test {
     assertEquals(expectedList, expectMostRecentItem())
}
Reasons:
  • Whitelisted phrase (-1): in your case
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: veeyikpong

79168868

Date: 2024-11-08 05:12:42
Score: 1.5
Natty:
Report link

on Windows, select "Anaconda Prompt" instead of the terminal. enter image description here

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

79168864

Date: 2024-11-08 05:09:41
Score: 4.5
Natty: 6
Report link

this is not an answer. but were you successful setting up the database? my head is exploding right now.

Reasons:
  • Blacklisted phrase (1): not an answer
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: amir rahmani

79168850

Date: 2024-11-08 04:57:39
Score: 1
Natty:
Report link

From comment by Jonathan Leffler:

Use unsigned char for the front and rear indexes — that will avoid the warning safely.

Nailed it. Built all the way through that time.

// FIFO queue structure for tracking the keys
typedef struct {
    char items[6];
    unsigned char front;
    unsigned char rear; 
} Queue;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: StarSword

79168848

Date: 2024-11-08 04:56:39
Score: 1
Natty:
Report link

I'm not entirely sure about the solution, but I found a package that claims to support NFC with Expo.

You can check out the Expo NFC Package. Give it a try, and if it works, that's great! If not, feel free to reach out, and we can troubleshoot it together.

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

79168846

Date: 2024-11-08 04:55:39
Score: 3
Natty:
Report link

I was also facing this problem with many of my websites where i use videos. These days many videos are as reels i.e. vertical or portrait.

I tried many option like mentioned above. They work but for the sake of simplicity i created a plugin to make things simple. For people who may not be very comfortable with css or inline code.

This plugin is free and on wordpress. https://wordpress.org/plugins/yt-portrait-video-embed/

Simply use shortcode and video ID. And its done. I have tried to make it responsive as well. Hope its helpful to you.

Reasons:
  • Blacklisted phrase (1): This plugin
  • Blacklisted phrase (1): also facing this
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Rajwant

79168841

Date: 2024-11-08 04:49:38
Score: 4.5
Natty:
Report link

######ABOVE######

Nailed it!

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: BoomerangBigBobbyBonerfield

79168836

Date: 2024-11-08 04:48:37
Score: 2.5
Natty:
Report link

const date = new Date() // current date

const minutes = date.setMinutes(date.getMinutes() + yourMinuteshere)

const hours = date.setHours(date.getHours() + yourHourshere)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ATHUL KRISHNA KS

79168835

Date: 2024-11-08 04:48:37
Score: 2
Natty:
Report link

You can add viewbinding to avoid findViewById , check official ViewBinding document.

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

79168829

Date: 2024-11-08 04:46:34
Score: 12 đŸš©
Natty: 5.5
Report link

Having the same error, do you have this solved already?

Reasons:
  • RegEx Blacklisted phrase (1.5): solved already?
  • RegEx Blacklisted phrase (2.5): do you have this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Having the same error
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tianyang Guan

79168809

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

It is a compatibility issue between Avro and Spark. Remove from the spark.jars.packages, org.apache.spark:spark-avro_2.12:3.5.3 since in the Spark latest vesrion already included. Secondly use latest Hadoop-Azure version "org.apache.hadoop:hadoop-azure:3.3.4". Refresh your spark session, it will resolve the issue.

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

79168806

Date: 2024-11-08 04:33:31
Score: 0.5
Natty:
Report link

I've fixed the issue. The issue was actually with the material CSS file imported in angular.json .

If we want to use old styles we need to use this line - ./node_modules/@angular/material/legacy-prebuilt-themes/legacy-indigo-pink.css

NOTE: This can be used till v16 only

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

79168805

Date: 2024-11-08 04:32:30
Score: 1
Natty:
Report link

If we are talking about the same package speech_to_text, maybe there's no way. It wraps all native systems voice recognition, so there's not a direct way to customize the dictionary. For example:

https://developer.android.com/reference/kotlin/android/speech/SpeechRecognizer https://developer.apple.com/documentation/speech

Analyzing both Android and iOS APIs, they are very limited to download languages and in most cases, infering in some results like Android AlternativeSpan, but I don't think that's the case.

I don't know if you are planning to use only local or cloud Speech to Text recognition, but I would recommend Google Speech-to-Text API.

It's available on googleapis package.

I've also searched for some edge models and could only find https://huggingface.co/openai/whisper-small as tiny version, but not sure how "tiny" it is for a mobile phone.

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

79168804

Date: 2024-11-08 04:32:30
Score: 3.5
Natty:
Report link

Why dont you just execute hot reload, hot restart or even build your projects in windows if your windows have better specifications?

Also, what do you mean by overwrite each other, maybe you can explain more?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why do
  • Low reputation (1):
Posted by: Yusril Dewantara

79168803

Date: 2024-11-08 04:31:30
Score: 2.5
Natty:
Report link

Happened to me as well and then I had it resolved by emailing their support team, Here's their email. Heroku [email protected]

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

79168799

Date: 2024-11-08 04:30:30
Score: 0.5
Natty:
Report link

There are many other answers on Stackoverflow for this error message. In short, modules that use C or C++ code are compiled against the version of perl you are using and have markers in them to check they are being used with that version. If you change the perl version (or compiler details in some cases), those won't work and you get that message.

Likewise, if you update the shared library that one of those compiled modules wants to use, you'll have a similar problem. For example, I have to keep around the openssl libraries I compiled against for a module that used those to keep working. If I update openssl (at the same location), I need to recompile the Perl modules that work against those.

CPAN.pm can recompile everything it knows you have installed:

cpan -r

Mostly this sort of thing happens when you are trying to share a module library outside of the default paths (say, like using local::lib). Reinstall those modules too.

And, don't share that directory between different versions of perl, such as the system perl and one you installed through a different method.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): Stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): have a similar problem
  • High reputation (-2):
Posted by: brian d foy

79168798

Date: 2024-11-08 04:29:30
Score: 1.5
Natty:
Report link

You can use the limit parameter in your API call but you can still fetch only 100 records at a time and you'll have to paginate post that.

Curious to know what your use case is! Are you planning to regularly sync data between Chargebee & Power BI?

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Sriram

79168793

Date: 2024-11-08 04:28:29
Score: 1
Natty:
Report link

Another thing, if you're having issues with dependencies, and if you're using Visual Studio Code.

Try to check the OUTPUT tab right next to PROBLEMS (or you can using shortcut commands: Ctrl+Shift+U) There are information about plugins' version you've been using, whether they're compatible with each other or not. It will update the information after by having save changes in the dependencies of pubspec.yaml file.

It is useful for me to understand the compatibility between my project and the plugins dependencies itself.

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

79168782

Date: 2024-11-08 04:24:28
Score: 2.5
Natty:
Report link

Got the same problem. If you run

!pip install -U git+https://github.com/google-gemini/generative-ai-python@imagen

import google.generativeai as genai
import pprint

for model in genai.list_models(page_size=100): # page_size can be any number
    pprint.pprint(model.name) 

Available Models Instead of seeing the Imagen 3 model ("imagen-3.0-generate-001") or any image generation models, here's what it returns, or at least what I get:

Problem: According to Google's blog post, there is a waitlist for accessing Imagen 3. To join, you need to fill out the "Labs.google Trusted Tester Waitlist," which requires providing credentials—a process that feels like getting military clearance.

Has anyone successfully accessed Imagen 3 through the API? Any tips or alternative steps to get this model up and running?

Reasons:
  • Blacklisted phrase (1): Any tips
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Melting Brain

79168776

Date: 2024-11-08 04:22:27
Score: 1
Natty:
Report link

enter code hereI encountered a similar issue and resolved it by adding multiple links to the configuration file located in public/env/config.js (and in config.testing.js).

To add multiple links to the same environment, you can specify them in the VITE_APP_UI_URL variable, separating each URL with a comma. This approach allows you to easily configure multiple links within the same environment.

//config.Testing.js

process.env.PORT = 3000;
process.env.HOST = 'localhost';
process.env.CLIENT_ID = 'your_client_id';
process.env.REDIRECT_URI = 'your_callback_endpoint';

var VITE_APP_UI_URL = "your_test_url_1 , your_test_url_2";
var VITE_SITE_KEY = "your_site_key";
var VITE_APP_API_BASEURL = "your_baseurl";

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Syed Farhan

79168757

Date: 2024-11-08 04:15:26
Score: 2
Natty:
Report link

I had the same issue, but it was resolved in the latest version, 17.11.15, of Visual Studio. I recommend running a repair on the IDE through the installer to fix it.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anthony San Lucas

79168750

Date: 2024-11-08 04:05:24
Score: 3.5
Natty:
Report link
  1. Click Commits button: Commit button

  2. Filter for you account in Users dropdown at top right conder

User filter

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

79168746

Date: 2024-11-08 04:02:23
Score: 2
Natty:
Report link

The problem is that you are creating one chart for each entry of your data set.

Create a single ColumnSeries for your entire dataset.

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

79168738

Date: 2024-11-08 03:56:22
Score: 1.5
Natty:
Report link

Another thing, if you're having issues with dependencies, and if you're using Visual Studio Code.

Try to check the OUTPUT tab right next to PROBLEMS (or you can using shortcut commands: Ctrl+Shift+U) There are information about plugins' version you've been using, whether they're compatible with each other or not. It will update the information after you execute,

flutter pub get

It is useful for me to understand the compatibility between my project and the plugins dependencies itself.

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

79168731

Date: 2024-11-08 03:55:22
Score: 1
Natty:
Report link

Well, the code you provide is working fine, It wont create

RenderViewport#252ca NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:

unless you put the ListView.builder inside the Column or Row widget

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

79168728

Date: 2024-11-08 03:53:22
Score: 1
Natty:
Report link

For Xcode 15.0+, you have to remove the Main interface configuration from here, as attached:

Steps:

Note: you also need to make the changes in info.plist file related to Main interface. That is same process as the previous Xcode versions.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mostafa Shamin Yeasar

79168726

Date: 2024-11-08 03:50:21
Score: 3.5
Natty:
Report link

Cant be done. Solution was add defaults of empty string to the columns in the table.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can
Posted by: Programnik

79168722

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

For anyone who see this question later, I have developed a Kotlin/JVM library to facilitate working on Hijrah dates and times, which is built on top on java.time.chrono.

It adds a set of new classes, and extention functions to current java classes, include functions like plusWeeks, plusMonths, publicly available. Give it a try!

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

79168720

Date: 2024-11-08 03:48:20
Score: 2.5
Natty:
Report link

You can find the solution here

I add the key file content as env var to cloud function and followed instructions in the answer below

Google OAuth using domain wide delegation and service account

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Chiáșżn LĂȘ

79168699

Date: 2024-11-08 03:30:16
Score: 3.5
Natty:
Report link

thank you so much for sharing this piece of content, I was also looking for the solution of BaoBao Technology website

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

79168695

Date: 2024-11-08 03:24:14
Score: 1
Natty:
Report link

When placing a swiper-container inside a mat-grid-tile within an Angular Material mat-grid-list, the swiper component doesn’t display correctly by default. The slides either don't take up the full space, or they have layout issues.

To fix this, add width: 100% to the swiper-container. This will make it take up the full width of the mat-grid-tile, allowing the swiper to render and distribute the slides correctly.

swiper-container { width: 100%; }

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Mateus Oliveira

79168689

Date: 2024-11-08 03:18:11
Score: 6.5 đŸš©
Natty:
Report link

Did you check if the Windows Build Support (IL2CPP) module is installed for Unity 2022? enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: Ying Li - MSFT

79168681

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

I’m using FVM to switch from SDK 2.10.5 to 3.24.2, but I get this error:

Future isn't a type. Try correcting the name to match an existing type.

Initially, I tried importing dependencies and updating the SDK environment in pubspec.yaml in VSCode, but nothing worked. Then, I opened the same project in Android Studio Koala (the newer version), and it ran successfully without any code changes.

command I used in Android Studio(already select sdk using fvm):

fvm flutter pub get

and

fvm flutter run

So, I can assume this issue might be caused by the IDE or Flutter/Dart settings in the IDE(both IDEs have the same SDK path and the same versions of Flutter and Dart installed).

Reasons:
  • Blacklisted phrase (1): but nothing work
  • RegEx Blacklisted phrase (1): I get this error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yusril Dewantara

79168680

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

Please add a trailing slash at the end of proxy_pass URI as http://rails_app:4000/

Adding the trailing slash tells NGINX to strip the /api prefix from the request URL before passing it to the backend service. This way, if a client requests /api/posts, it will be proxied to http://rails_apps:4000/api

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: HEMANTH K P

79168675

Date: 2024-11-08 03:11:09
Score: 1
Natty:
Report link

When you are in your report design window, select the tablix.

At the bottom, you will see Row Group to your left and Column Group to your right.

At the very edge of Column Groups, there is a tiny downward pointing dropdown, click on that and select "Advanced Mode"

Advanced Mode selection

That will open you your Static Groups under your Row Groups.

Select the first one, and then go to properties. Set RepeatonNewPage = False

Where to find advanced Options

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Starts with a question (0.5): When you are in you
  • High reputation (-1):
Posted by: Harry

79168661

Date: 2024-11-08 03:03:08
Score: 3.5
Natty:
Report link

I’m encountering the same issue as others where my Angular application takes up to 5 minutes to load when generating a PDF using either Puppeteer or Playwright. The problem seems to be related to the main.js file of my frontend application, as it is the only file that takes a long time to load.

I initially thought it could be related to the Docker image I was using. When I used my local Docker image, I was able to generate the PDF successfully. However, when I deployed the image to Rancher, the PDF generation failed, and it took up to 5 minutes to load the main.js file.

I’ve tried various solutions, including switching to the Node Slim image and alternating between Puppeteer and Playwright, but neither solution resolved the issue.

Has anyone encountered this problem or know what could be causing the long load time for main.js when generating the PDF, specifically in the Rancher environment?

Any insights or suggestions would be greatly appreciated!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): what could be
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tiago Silva Pereira

79168659

Date: 2024-11-08 03:02:07
Score: 1.5
Natty:
Report link

Issue with sending emails through Gmail’s SMTP server. Check Server Firewall and Outbound Connections. Check PHPMailer's Debugging Output. Update PHP Version and Extensions. Testing with Another SMTP Server. By enabling PHPMailer's debug output, checking server restrictions, and ensuring your PHP configuration is correct, you should be able to get more details on what's going wrong.

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

79168657

Date: 2024-11-08 03:01:07
Score: 3
Natty:
Report link

you can run swagger to look up the segment id and then return to you all mcsvids. this is useless however when speaking with other non-adobe-marketing tools. but you could return other things like userids or hash ids.

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

79168656

Date: 2024-11-08 03:00:07
Score: 1.5
Natty:
Report link

Just found a simple answer using the "+" operator

myText = "Number is "    
myText = myText+ 10
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Elliot

79168653

Date: 2024-11-08 02:59:06
Score: 1
Natty:
Report link

if you initiated OneDrive, most of your files would most likely have admin in it's path. Also when you open jupyter notebook, you would experience errors such as this : Your file couldn’t be accessed It may have been moved, edited, or deleted. ERR_FILE_NOT_FOUND

To solve this, first, open file explorer and paste this directory C:/Users/Admin/AppData/Roaming

look for jupyter folder, if it exist, delete it. Next, create another jupyter folder and open it the create a runtime folder

Close Anaconda prompt or any terminal .

reopen your anaconda prompt or cmd using run as administrator and type jupyter notebook

You should be able to open jupyter notebook in the web and access all your files including OneDrive

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

79168647

Date: 2024-11-08 02:55:06
Score: 1
Natty:
Report link

I don't know if this is a valid aproach or not, but you can try change tintColor of PHPickerViewController:

picker.view.tintColor = .black
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: duckSern1108

79168641

Date: 2024-11-08 02:53:03
Score: 11.5 đŸš©
Natty: 4.5
Report link

Guys i written a code for merging file but i want to re modify it but don't have proper idea can anyone help me?

Sub Master_File()
Dim n As Integer
Dim wb As Integer
Dim master As String
Dim userfile As String
'Dim l_Row As Long
'Dim l_Dist As Long

Application.DisplayAlerts = False
Application.ScreenUpdating = False

master = ThisWorkbook.Name

With Application.FileDialog(msoFileDialogOpen)
                .AllowMultiSelect = True
                .Title = "Locate Your Files"
                .Show
                
            n = .SelectedItems.Count
            
            For wb = 1 To n
            Path = .SelectedItems(wb)
            Workbooks.Open (Path)
            
            userfile = ActiveWorkbook.Name
            
            For Each Sheet In ActiveWorkbook.Worksheets
            If Sheet.Name = "Tracker" Then
            Sheet.Select
            Sheets("Tracker").Select
            Range("a1").Select
            Range(Selection, Selection.End(xlToRight)).Select
            Range(Selection, Selection.End(xlDown)).Select
            Selection.Copy
            'l_Row = Sheets("Tracker").Range("A1048576").End(xlUp).Row
            'This will find the last row of the tracker sheet
            'Range("A2:K" & l_Row).Copy
            'This code will copy all dat from tracker sheet
            Windows(master).Activate
            'This code will activate the master file where we will paste our data
            Sheets("Sheet1").Select
            Range("a1").Select
            'Range("a1048576").Select
            Selection.End(xlDown).Select
            Selection.End(xlDown).Select
            Selection.End(xlUp).Select
            ActiveCell.Offset(1, 0).Select
            
            'l_Dist = Sheets("Sheet1").Range("A1048576").End(xlUp).Row + 1
            'This code will find the next  blank row in the master file
            'Sheets("Sheet1").Range("A" & l_Dist).Select
            'This code will find the last non blank cell in the master file
            Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
            Range("b1048576").Select
            Selection.End(xlUp).Select
            Selection.End(xlToLeft).Select
            ActiveCell.Offset(1, 0).Select
            Range(Selection, Selection.End(xlDown)).Select
            Range(Selection, Selection.End(xlToRight)).Select
            Selection.Delete
            
            Range("a2").Select
            Selection.AutoFilter
            ActiveSheet.Range("$A$2:$L$41").AutoFilter Field:=1, Criteria1:= _
            "Employee Number"
            ActiveCell.Offset(20, 0).Range("A1").Select
            Range(Selection, Selection.End(xlToRight)).Select
            Range(Selection, Selection.End(xlDown)).Select
            Selection.EntireRow.Delete
            ActiveCell.Offset(-20, 0).Range("A1").Select
            Selection.AutoFilter
            Range("a2").Select
            
            Range(Selection, Selection.End(xlToRight)).Select
            Range(Selection, Selection.End(xlDown)).Select
            Selection.Font.Bold = True
            Selection.Columns.AutoFit
            With Selection
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlBottom
        .WrapText = False
        .Orientation = 0
        .AddIndent = False
        .IndentLevel = 0
        .ShrinkToFit = False
        .ReadingOrder = xlContext
        .MergeCells = False
    End With
    ActiveCell.Select
    
            
            Windows(userfile).Close savechanges:=False
            
            End If
        Next Sheet
    Next wb
    
End With

End Sub

In this code i want to edit at here like i want to connect the sheet name from cell A1 like what i write in cell A1 that will be consider as sheet name from other workbooks for find the sheet and then it will find that name from other workbook sheets if i write in cell A1 = Company then it will find Company sheet name from other workbook sheets

**

If Sheet.Name = "Tracker" Then
            Sheet.Select
            Sheets("Tracker").Select
            Range("a1").Select

**

Can anyone help me Please?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can anyone help me
  • RegEx Blacklisted phrase (3): Can anyone help me
  • RegEx Blacklisted phrase (1): i want
  • RegEx Blacklisted phrase (2): help me Please
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Rahul Vishwakarma

79168631

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

Extract the header from the list and add it as a new row.

header_row <- colnames(scraped_data[[1]])
scraped_data[[1]] <- rbind(header_row, scraped_data[[1]])

Note that the column name remains the same

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

79168628

Date: 2024-11-08 02:47:01
Score: 2.5
Natty:
Report link

As @regdos correctly pointed out, do a copy rather than an update -- this combined with memo actually ended up saving the render of the second ContentComponent.

Flamegraph showed Did not render on the client during this profiling session. which is what I wanted!

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

79168615

Date: 2024-11-08 02:38:59
Score: 2.5
Natty:
Report link

I was able to resolve this error after updating beam version to 2.59 and installing apache-beam[gcp].

After disconnecting from VPN, I was able to install this package from PyPi repo.

pip install apache-beam[gcp] --index-url=https://pypi.org/simple

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

79168614

Date: 2024-11-08 02:38:59
Score: 1
Natty:
Report link

It turns out that ghcr.io uses basic authentication in the form of <username>:<PAT>

So it would look something like this.

curl -H "Authorization: Basic $BASE64_CREDENTIALS" "https://ghcr.io/token?service=ghcr.io&scope=repository:<user>/<image>:pull"

{"token":"xyz"}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: StaticMethod

79168603

Date: 2024-11-08 02:34:58
Score: 3
Natty:
Report link

I think onload function with state can work also skeleton component need some css properties or their inbuilt settings.

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

79168583

Date: 2024-11-08 02:22:55
Score: 1
Natty:
Report link

Or, maybe you could use some CSV reader library to looping through the CSV contents like this?

const fs = require('fs');
const csv = require('csv-parser');

fs.createReadStream('test.csv')
  .pipe(csv())
  .on('data', (row) => {
      console.log(row['Modem ID'], row['Total Chargeable'].replace(',', '.'));
  })
  .on('end', () => {
      console.log('CSV file successfully processed');
  });

I think this approach would be better, rather that you read the CSV as a string

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

79168580

Date: 2024-11-08 02:17:54
Score: 0.5
Natty:
Report link

Velero has started to deprecate Restic as documented here.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: gohm'c

79168578

Date: 2024-11-08 02:17:54
Score: 2
Natty:
Report link

Old answer, but I've made a VM detection library in C++ that is meant to do exactly this.

https://github.com/kernelwernel/VMAware

All the techniques mentioned in this post are included in the library.

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

79168577

Date: 2024-11-08 02:17:54
Score: 1
Natty:
Report link

First, you can replace "," to another character. For example, you can change "BF002062010","1,300.00" to "BF002062010"-"1,300.00".

Then, using line = line.replace(',', ''); removes thousand comma.

Finally, you can replace "-" to replace ",".

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

79168572

Date: 2024-11-08 02:14:53
Score: 1.5
Natty:
Report link

Add back the comma.

line.replaceAll(',', '').replace('""', '","')
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tsz Lam

79168571

Date: 2024-11-08 02:13:53
Score: 1.5
Natty:
Report link
location: {   
  displayName: <your Room name>,   
  locationEmailAddress: <your Room emailAddress>,   
  locationType: 'conferenceRoom' 
}

this's work for me

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

79168569

Date: 2024-11-08 02:11:53
Score: 1.5
Natty:
Report link

The outliers are so far away that it forces the box plot to be squished as the range of data is so large, you could use outlier detection techniques to help with this.

Using a log(y) will help by reducing the amplitude of the outliers and the spread of values and make the box plot more easily visible.

You can also click the zoom button above the plot in Rstudio if you are using that as your IDE, this will open the plot in a new window that can be fullscreen.

Hope this answers your question.

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

79168556

Date: 2024-11-08 02:03:51
Score: 2.5
Natty:
Report link

Does this do what you're looking for?

df$Percentage <- 
  rowSums(df[as.character(yrs)]) /
  rowSums(
    outer(df$CofQYr, yrs, FUN = function(x, y) y <= (yrs[length(yrs)]-as.integer(x))) *
    as.matrix(df[as.character(yrs)])[match(df$TRADE, ifelse(df$CofQYr=="Total", df$TRADE, NA)),]
  )
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Eonema

79168555

Date: 2024-11-08 02:03:51
Score: 1
Natty:
Report link

Turns out I just needed to do a little more reading. os._exit(0) is what works.

import time
import keyboard as kb
import sys
import os

def on_hotkey():
    print('hotkey')
    os._exit(0)
    
kb.add_hotkey('ctrl + q', on_hotkey )
for i in range(3):
    print('Hello')
    time.sleep(5)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: elscan

79168553

Date: 2024-11-08 01:58:50
Score: 1
Natty:
Report link

this is consistent with tidyselect and works within groups:

filter(c_across(all_of(var_a))==4)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: blueskyddd

79168546

Date: 2024-11-08 01:51:49
Score: 4.5
Natty:
Report link

These are the CSP directives that Stripe.js requires https://docs.stripe.com/security/guide?csp=csp-js#content-security-policy

Can you add them to your integration and try again?

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

79168544

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

You could refer to following url to filter by date

https://domain.sharepoint.com/sites/sitename/_api/web/lists/getByTitle('listname')/items?$filter=Date ge datetime%272017-19-05%27
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RaytheonXie-MSFT

79168539

Date: 2024-11-08 01:44:47
Score: 5.5
Natty: 5
Report link

How to make a chat bot though and integrate it like so it doesn’t have a bot tag and can talk to people in dms?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Fahad

79168538

Date: 2024-11-08 01:44:47
Score: 1
Natty:
Report link

this might be consistent with tidyselect and works within groups:

filter(!is.na(c_across(all_of(var_a))))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: blueskyddd

79168535

Date: 2024-11-08 01:43:47
Score: 1.5
Natty:
Report link

You can see all the supported browsers by:

npx playwright install --help

and then download a specific browser by:

npx playwright install chrome
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Uzair Abid

79168526

Date: 2024-11-08 01:29:44
Score: 4
Natty:
Report link

Follow the thread here, I used the one where he add the client attribute to the InnerTube Method and it worked. At least for now ^^'

Reasons:
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: kidus abebe

79168519

Date: 2024-11-08 01:22:42
Score: 1.5
Natty:
Report link

To interact with shadow dom with puppeteer. Keep everything same like normal dom except selectors.To Handle element from shadow dom add ">>>" before selector. For example

await page.click("selector")//for regular dom
await page.click(">>>selector")//for shadow dom
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Niemur Rahman

79168510

Date: 2024-11-08 01:13:41
Score: 2.5
Natty:
Report link

For inline, us the brackets sign like the example below.

Hello, world!
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: baobure

79168504

Date: 2024-11-08 01:08:40
Score: 1.5
Natty:
Report link

I found out why. Our service was hosted on the isolated network only accessible by office wifi.

The tester was using the 5G network when he tried to make request which obviously failed. The reason why other older test devices were working was that they can only use wifi internet as they were not wired to any carrier services.

It wasn't neither of front-end or back-end problem and one of the wierdest error I got haha.

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

79168501

Date: 2024-11-08 01:06:39
Score: 2.5
Natty:
Report link

I found out that this problem was reported to Microsoft a few months ago. They said that it had been fixed in the latest version of Visual Studio. I already had the latest update, but it still did not fix it. So I deleted VS, cleaned my registry, rebooted my computer, downloaded/reinstalled VS (same version) and now the problem is gone. So having the latest update might not fix it. Delete, clean registry and reinstall VS was my solution

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

79168499

Date: 2024-11-08 01:05:39
Score: 0.5
Natty:
Report link

If you add limit=250000 to your query do you get all of the data? I presume when you say the results are reduced you mean the date range is reduced and not the number of rows returned.

Data from the API is paginated with a default of 10,000 rows and a max of 250,000 rows. For more than 250,000 rows you'll have to also set an offset parameter and run the query again.

You can find details here:

https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#:~:text=The%20number%20of%20rows%20to,how%20many%20you%20ask%20for.

RunReportRequest(
            property=f"properties/{GOOGLE_ANALYTICS_ID}",
            return_property_quota=True,
            dimensions=[
                Dimension(name="date"),
                Dimension(name="customEvent:itemId”),
                # Dimension(name="customEvent:companyId), # Uncommenting causes problem
            ],
            metrics=[
                Metric(name="eventCount"),
            ],
            date_ranges=[
                DateRange(start_date='2024-03-25’, end_date='2024-09-25’),
            ],
            limit=250000
        ) 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jason Gaskin

79168482

Date: 2024-11-08 00:49:36
Score: 0.5
Natty:
Report link

Setting the HorizontalScrollBarVisibility to Auto or Visible should help.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Andrew KeepCoding

79168478

Date: 2024-11-08 00:46:35
Score: 0.5
Natty:
Report link

Consider using JsPrettier, which is a front end for Prettier. Prettier is a modern code formatter widely used and actively developed. Besides HTML, it supports a whole lot of other languages. JavaScript runtime is required for it to run (Node.js or Deno).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by:  ïŸĄ

79168469

Date: 2024-11-08 00:35:32
Score: 6 đŸš©
Natty: 6
Report link

That's great. How would it need to be to work on iterm instead of Terminal?

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

79168464

Date: 2024-11-08 00:30:30
Score: 3
Natty:
Report link

I would also verify the connection assignment on the terminal, setting it to "Continuous Output" will give you a constant stream of weight data.

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

79168458

Date: 2024-11-08 00:26:29
Score: 3
Natty:
Report link

FIXED: The problem was due to vercel. Hosted the server on aws-eleasticbeanstalk and everything worked smoothly.

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

79168456

Date: 2024-11-08 00:24:29
Score: 1.5
Natty:
Report link

A potential solution for this error in your Spring application running on Docker is to add the following variable on Dockerfile.

SPRING_MAIN_ALLOW_BEAN_DEFINITION_OVERRIDING=true
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Edelvandro Fonseca de Macedo d

79168455

Date: 2024-11-08 00:24:29
Score: 3
Natty:
Report link

Thanks you @dbugger for pointing me in the right direction. @Edmund's answer to this question was the solution to my issue:

https://stackoverflow.com/a/78882862/5161457

Remove the default site if it exists:

sudo rm /etc/nginx/sites-enabled/default

Test your Nginx configuration:

sudo nginx -t

If the test passes, reload Nginx:

sudo systemctl reload nginx

Then retry in 10 mins.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • User mentioned (1): @dbugger
  • User mentioned (0): @Edmund's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jillian Hoenig

79168451

Date: 2024-11-08 00:20:28
Score: 1
Natty:
Report link

This is probably due to Safari's handling of base64-encoded images and of xlink:href.

Replace xlink:href with href in the <use> elements:

<use href="#image0_1330_2263" transform="translate(-0.43633) scale(0.000749064)" />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abstractmelon

79168449

Date: 2024-11-08 00:20:28
Score: 1
Natty:
Report link

The reason for the unauthorized error is because nginx uses a user called www-data.

It is also possible to add permissions without changing the user name, but There is also an easy way to change the user name used by nginx.

How to change nginx username:

$ sudo nano /etc/nginx/nginx.conf
# change user www-data to ubuntu
$ sudo systemctl restart nginx

Since adding only permissions is complicated, it is replaced with a link.

https://django.seolpyo.com/entry/31/?page=4

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: django.seolpyo.com

79168443

Date: 2024-11-08 00:17:27
Score: 0.5
Natty:
Report link

In short, I think that the answer depends on the environment...

I'm recommending this package: https://github.com/single-spa/import-map-overrides

It works for browsers and NodeJS too...

You register your aliases in the main.js (or your entry point), then any other module can use that alias to import the aliased file.

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

79168429

Date: 2024-11-08 00:10:26
Score: 5.5
Natty:
Report link

Why the Html.Raw calls on all the strings?

I’m looking at it on my phone but I can’t see why that wouldn’t work as just

class=“something @(hasMM ? “Hey” : “”)”

?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why the
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Steve McNiven-Scott

79168421

Date: 2024-11-08 00:01:24
Score: 3.5
Natty:
Report link

Thanks to Joe for his comment: use numKeys = bson_num_keys(bsonArray) to get the number of keys (entries), and use bson_append_document(bsonArray, "numKeys", -1, bsonObj)

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

79168420

Date: 2024-11-07 23:58:23
Score: 0.5
Natty:
Report link
function cikti = sigmoidDerivative(x)
cikti = sigmoid(x) .* (1 - sigmoid(x));

this code part have to be changed to

function cikti = sigmoidDerivative(x)
cikti = x .* (1 - x);

because in the jacobian function, sigmodiDerivative() funtion is called with parameter that already calculated with sigmoid() function

[~ , jA1] = forward_pass(jinput_vals(i),W1,b1,W2,b2);
    derivW1 = -1 * W2'.* sigmoidDerivative(jA1) *jinput_vals(i);  

jA1 is already return from sigmoid() function and so repeated unnecessary sudden increase and decrease of lamba problem solved.

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

79168410

Date: 2024-11-07 23:50:22
Score: 2
Natty:
Report link

I am using Docker with a nodejs alpine image. I am trying to install a command line interface for TestRail and this package is a dependency for my tech stack. Running apk add py3-ruamel.yaml solved my issue.

Page for reference

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jamon Douglas

79168407

Date: 2024-11-07 23:49:22
Score: 1
Natty:
Report link

I tried all the css suggestions without any luck. After some experimentation I found that if you replace the html element directly under the element being scaled with itself everything is crisp. Here is a react hook example:

const useChromeScaleHack = (ref: MutableRefObject<HTMLElement>, scale: number) => {
    if (!window.chrome) return

    useEffect(() => {
        if (scale > 1.09 && ref.current) {
            const el = ref.current
            el.replaceWith(el)
        }
    }, [scale])
}

const Comp = ({ scale, children }) => {
    const ref = useRef(null)
    useChromeScaleHack(ref, scale)
    return (
        <div
            style={{
                willChange: "transform",
                transform: `scale(${scale})`,
            }}
        >
            <div ref={ref}>{children}</div>
        </div>
    )
}
Reasons:
  • Blacklisted phrase (1.5): any luck
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Eigil

79168387

Date: 2024-11-07 23:40:20
Score: 3
Natty:
Report link

Ok you can log out of the site and restart it to work or another solution There may be a temporary problem with the site.

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

79168386

Date: 2024-11-07 23:39:19
Score: 1
Natty:
Report link

I just came across a similar error in my application. I believe it was caused by the encryption key Next uses for server actions cycling for each build.

From the docs: "To prevent sensitive data from being exposed to the client, Next.js automatically encrypts the closed-over variables. A new private key is generated for each action every time a Next.js application is built. This means actions can only be invoked for a specific build."

The docs then go on to say that you can override the process.env.NEXT_SERVER_ACTIONS_ENCRYPTION_KEY variable to keep a consistent server action encryption key across builds.

Read more here https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#security

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

79168374

Date: 2024-11-07 23:32:18
Score: 0.5
Natty:
Report link

Follow this formatting example. The URL should look as below.

{{baseUrl}}/reservations?filters=[{"field":"checkIn","operator":"$between","from":"2023-03-02T00:00:00%2B01:00","to":"2023-03-02T23:59:59%2B01:00"}]

Enjoy

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

79168368

Date: 2024-11-07 23:30:17
Score: 1.5
Natty:
Report link

It appears to me that vercel writes the requests to the logs even if the requests return 403 forbidden. That confused me a bit, but they are being denied even though the requests are logged.

At this point I have set up this configuration in the vercel firewall.

Rule 1 RequestPath --> MatchesExpression --> .php$|.php7$

Rule 2 RequestPath --> MatchesExpression -->(wp-content|wp-admin|wp-login|cgi-bin|wp-includes|wp-trackback|wp-feed|.well-known)

I did it this way because the logs show the bots looking for urls like site/wp-content/ or site/wp-includes/ without a php extension just a trailing slash

Today I had 1,000 requests denied with this setup so it seems to be working pretty well.

JA4 Digest requests are next on the menu.

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

79168356

Date: 2024-11-07 23:18:15
Score: 1.5
Natty:
Report link

The issue you're facing is due to your trigger call, spinResult.trigger(). The trigger function only takes one argument. If you want to supply multiple parameters to the callback, you can send them in an array.

For example: Here's what the trigger line should look like to rectify this issue:

nc.appEvents.spinResult.trigger( [5, "7777"] ); // pass in the args as an array

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

79168350

Date: 2024-11-07 23:15:14
Score: 1.5
Natty:
Report link

As pointed out by @jakevdp, there is an issue with the efficiency in running the function accuracy due to operations that are not JAX native. Although, I tried to ensure only JAX arrays and fully vectorized operation for compatibility as below;

def accuracy(labels, predictions):
    labels = jnp.array(labels)
    predictions = jnp.array(predictions)
    correct_predictions = jnp.sign(labels) == jnp.sign(predictions)
    acc = jnp.mean(correct_predictions)
    return acc

but still the performance in evaluating accuracy is very bad, infact it's infeasible.

As I am dealing with Quantum Neural Networks, in specific Parameterized Quantum Ciruits as my model, the number of learnable parameters are very few in number. Thus, a more feasible and efficient workaround would be to log the train and test loss (surprisingly the evaluation of test loss is not very slow), atleast this helps in avoiding overfitting. Furthermore, for getting the accuracies, save the parameters at each step using jax.debug.callback, and fetch them to calculate the train and test accuracies at each step after the training process. It can be implemented as below.

import os
import pickle
import time
from datetime import datetime

def save_params(params, step):
    # Get current timestamp
    current_timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
    # Directory where params are saved
    dir_path = f"stackoverflow_logs/{current_timestamp}/params"
    os.makedirs(dir_path, exist_ok=True)  # Create directories if they don't exist

    # File path for saving params at the current step
    file_path = os.path.join(dir_path, f"{step}.pkl")
    
    # Save params using pickle
    with open(file_path, "wb") as f:
        pickle.dump(params, f)
    print(f"Parameters saved at step {step} to {file_path}")


@jax.jit
def update_step_jit(i, args):
    params, opt_state, data, targets, X_test, y_test, X_train, y_train, batch_no, print_training = args
    _data = data[batch_no % num_batch]
    _targets = targets[batch_no % num_batch]
    train_loss, grads = jax.value_and_grad(cost)(params, _data, _targets)
    updates, opt_state = opt.update(grads, opt_state)
    test_loss, _ = jax.value_and_grad(cost)(params, jnp.array(X_test), jnp.array(y_test))
    # Save parameters every step
    jax.debug.callback(lambda params, step: save_params(params, step), params, i)
    params = optax.apply_updates(params, updates)

    def print_fn():
        jax.debug.print("Step: {i}, Train Loss: {train_loss}, Test Loss: {test_loss}", i=i, train_loss=train_loss, test_loss=test_loss)

    jax.lax.cond((jnp.mod(i, 1) == 0) & print_training, print_fn, lambda: None)
    return (params, opt_state, data, targets, X_test, y_test, X_train, y_train, batch_no + 1, print_training)

@jax.jit
def optimization_jit(params, data, targets, X_test, y_test, X_train, y_train, print_training = True):
    opt_state = opt.init(params)
    args = (params, opt_state, data, targets, X_test, y_test, X_train, y_train, 0, print_training)
    (params, _, _, _, _, _, _, _, _, _) = jax.lax.fori_loop(0, 10, update_step_jit, args)
    return params

params = optimization_jit(params, X_batched, y_batched, X_test, y_test, X_train, y_train)

var_train_acc = acc(params, X_train, y_train)
var_test_acc = acc(params, X_test, y_test)

print("Training accuracy: ", var_train_acc)
print("Testing accuracy: ", var_test_acc)

Finally, one can also use any frameworks like wandb, mlflow or aim for tracking in the callback function.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @jakevdp
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sup

79168328

Date: 2024-11-07 23:03:12
Score: 3
Natty:
Report link

Every time I do it, as in unzip the jar and then zip it without any changes, it just says "Error: Invalid or corrupted jarfile" so I don't know if I should give up or not.

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

79168323

Date: 2024-11-07 23:02:12
Score: 3.5
Natty:
Report link

there's an official endpoint for this

Use http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/?key=YOUR_API_KEY&vanityurl=VANITY_URL

You can get a Steam web api key from https://steamcommunity.com/dev/apikey

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

79168322

Date: 2024-11-07 23:01:11
Score: 3
Natty:
Report link

Ok, it seems that I found my solution. And it's a classic rookie mistake. The cube I create in Blender is smaller than the one in my own script :D. After adjusting it... it works.

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

79168308

Date: 2024-11-07 22:56:10
Score: 1
Natty:
Report link

I was able to fix this by removing permissions on the aws service that was being invoked within my recursive function.

I went to IAM and found the role that was being used by the Lambda function. I selected the Permission Policy that was tied to the aforementioned service and clicked "Remove".

I noticed the loop by viewing the Cloud Watch logs of the Lambda Function. After completing the above, the logs stopped with an error about how it no longer had permissions.

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

79168294

Date: 2024-11-07 22:48:08
Score: 3
Natty:
Report link

This was so helpful. I was struggling with this problem to. And adding this line to style.scss fixed the problem. Thanks.

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