79147024

Date: 2024-11-01 05:35:00
Score: 2.5
Natty:
Report link

The app itself, Acode, does this. Go to extensions and download the TypeScript compiler. When you save the file, it compiles automatically, so you can reload the app and go to the folder to find the compiled .js file.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: José Márcio Araujo Silva

79147018

Date: 2024-11-01 05:26:59
Score: 2
Natty:
Report link

Set up daily export of the spending logs to BigQuery. You can combine this with Cloud functions and from there you can create your own conditions, which if they are fulfilled would trigger a notification

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

79147015

Date: 2024-11-01 05:23:58
Score: 0.5
Natty:
Report link

The model can be trained and inferenced successfully now: Set safe_serialization to False in model training file tutorial_train_plus.py:

accelerator.save_state(save_path, safe_serialization=False)

It will generate pytorch_model.bin instead of model.safetensors during training.

Once training is complete, modify the model conversion code as below based on the original instructions in readme:

ckpt = "pytorch_model.bin" # set correct path
sd = torch.load(ckpt)

Model file ip_adapter.bin will be generated for inference.

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

79147010

Date: 2024-11-01 05:20:58
Score: 0.5
Natty:
Report link

I was able to solve this by excluding the functions folder in ./tsconfig.json and deploying functions separately with firebase deploy --only functions:

{
  "compilerOptions": {
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "bundler",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true,
    "plugins": [
      {
        "name": "next"
      }
    ],
    "paths": {
      "@/*": ["./*"]
    }
  },
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
  "exclude": ["node_modules", "./functions"]
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: traht gulxam

79147009

Date: 2024-11-01 05:19:57
Score: 1.5
Natty:
Report link

For Linux, add an environment variable TZ=[TZ identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) (not WEBSITE_TIME_ZONE). The settings will take effect after restarting your app.

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

79147004

Date: 2024-11-01 05:16:57
Score: 2.5
Natty:
Report link

never agredd to being rooted or and licrnse agreements i have all the information police reports for months 2000 dollars in damages in phones im cslling the fbi ifentity theft so msny federal offenses youve been threw my persinal medicsl records bank acccounts youve caused severe trama and ihave a bag if phones with memory cards backed uo to what all these roots have done and videos of when trying to save personal information for gets wioed flash reboot erased ive msde reports to carrol coubty sherifs office deputy cortez head of cyber unit will get the phones and sims and i will end this tourture your targetting people nit ever have i agreedto any agreement your same as alpache 2.0 same as baltimore root 3 same as the other 300 roots not exceptable youvr take the right to protect my chikdren and the right to privacy i am terified to own a phone police reports will be cslking fbi in concord as well i cant take this any more please i beg u stop targetring me i cant taje any more

Reasons:
  • RegEx Blacklisted phrase (1): i am terified to own a phone police reports will be cslking fbi in concord as well i cant take this any more please
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: not telking u

79146999

Date: 2024-11-01 05:14:56
Score: 1
Natty:
Report link

if you are loading your data using pandas , you can use pd.get_dummies

it will automaticly encode categorical features , you can also set columns yourself

more on https://pandas.pydata.org/docs/reference/api/pandas.get_dummies.html

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aliasghar

79146979

Date: 2024-11-01 05:03:54
Score: 2
Natty:
Report link

An update to the issue raised: This was handled by defaulting the value I wanted to initalize to 0 on the onupgrade and once I have the result of the API call I wrote a function to replace all the values in the table to the gotten result. This although is not a perfect solution to the issue(as it would leave the table value defaulted to 0 instead of the number we need), will work.

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

79146972

Date: 2024-11-01 04:57:53
Score: 0.5
Natty:
Report link

I first dropped sql_store from the database. Then, I created sql_store and then ran the code to create the whole databases.

DROP DATABASE IF EXISTS sql_store;
CREATE DATABASE sql_store;
'''
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amin

79146968

Date: 2024-11-01 04:53:52
Score: 0.5
Natty:
Report link

Yes, it will always revert because text box formatting only works for the plain text not the variables. You need to edit the html by clicking '< >' at the top right corner. there you can add any styling including font size around the variable and save it like that. Do not revert back to normal view as will revert the changes.

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

79146963

Date: 2024-11-01 04:50:51
Score: 1.5
Natty:
Report link

Try these steps! To run the Flask development server make use of either Flask run or python app.py commands.

Use the F12 button to check the browser console for errors.

Delete all the cookies and the cache memory from the browser.

Check that such a Flask route has been declared: (e.g., @app.route('/')).

Make sure that no blocking code or infinite loops are present.

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

79146960

Date: 2024-11-01 04:49:51
Score: 2.5
Natty:
Report link

Command + D inserts date into the current line

Command + Shift + D inserts date with time into the current line

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

79146947

Date: 2024-11-01 04:41:49
Score: 0.5
Natty:
Report link

Hey! I went from this

√ What is the name of the npm package? ... expo-draw-over √ What is the native module name? ... ExpoDrawOver √ How would you describe the module? ... Draw over other apps module √ What is the Android package name? ... expo.modules.drawover √ What is the name of the package author? ... Alan Lopez Reyna √ What is the email address of the author? ... √ What is the URL to the author's GitHub profile? ... √ What is the URL for the repository? ...

✔ Downloaded module template from npm
✔ Created the module from template files ✖ Installing module dependencies Error: npm install exited with non-zero code: 1 at ChildProcess.completionListener (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules@expo\spawn-async\build\spawnAsync.js:42:23) at Object.onceWrapper (node:events:634:26) at ChildProcess.emit (node:events:519:28) at cp.emit (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\cross-spawn\lib\enoent.js:34:29) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) ... at spawnAsync (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules@expo\spawn-async\build\spawnAsync.js:7:23) at installDependencies (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\create-expo-module\build\packageManager.js:9:37) at C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\create-expo-module\build\create-expo-module.js:86:60 at newStep (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\create-expo-module\build\utils.js:21:22) at Command.main (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\create-expo-module\build\create-expo-module.js:85:35) { pid: 852, output: [ '', '' ], stdout: '', stderr: '', status: 1, signal: null }

to this

✔ What is the name of the npm package? … draw-over-apps ✔ What is the native module name? … DrawOverApps ✔ How would you describe the module? … My new module ✔ What is the Android package name? … expo.modules.drawoverapps ✔ What is the name of the package author? … Alan Lopez ✔ What is the email address of the author? … [email protected] ✔ What is the URL to the author's GitHub profile? … ✔ What is the URL for the repository? …

✔ Downloaded module template from npm ✔ Created the module from template files ✔ Installed module dependencies ✔ Compiled TypeScript files ✔ Initialized the example app ✔ Configured the example app ✔ Prebuilt the example app ✔ Installed dependencies in the example app (skipped installing CocoaPods) ✔ Skipped creating an empty Git repository, already within a Git repository

✅ Successfully created Expo module

To start developing your module, navigate to the directory and open iOS and Android projects of the example app

cd draw-over-apps npm run open:ios npm run open:android

Learn more on Expo Modules APIs:

The solution for windows 10 users

All has to do with your environment setup in windows 10 you need to

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
nvm install --lts
nvm use --lts

is important to install this in WSL at the same time to have it in your machine

sudo apt install adb
sudo apt install google-android-platform-tools-installer

and now you can run

npx create-expo-module@latest and-the-name-of-your-module
Reasons:
  • Blacklisted phrase (1): How would you
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): I use was to setup correctly the environment for react native please
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: LRアラン

79146941

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

Remove "camera" from the AndroidManifest's android:foregroundServiceType= tag(s); only add the service type that you need. It is failing because you are requesting too many foregroundServiceType and its failing specifically on the "camera" service and you only need the microphone one

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

79146932

Date: 2024-11-01 04:28:47
Score: 1.5
Natty:
Report link

Chrome Ver: 130.0.6723.92 VSCode Ver: 1.95.1

I got this problem in above version too,I found chrome will keep hanging when I launch with any breakpoint activate.

But if I clear all the breakpoints or just toggle it to deactivate, then chrome will launch correctly.

After that, to toggle breakpoints to activate, it works(in my case)

Hope these will help!

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

79146918

Date: 2024-11-01 04:17:45
Score: 2
Natty:
Report link

try this in program.cs: app.MapControllerRoute( name: "YourName", pattern: "{controller=YourName}/{action=Index}/{id?}");

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Albert

79146904

Date: 2024-11-01 04:03:42
Score: 0.5
Natty:
Report link

I have figured a possible solution? However, I'm unsure if it makes sense to do so or just seems redundant?

But I have created an API route to effectively collect the data; then send it to a controller to separate the formData and create different variables for the files and the payload; then I pass that controller data down to the server action.

This does seem to be working.

The API route looks something like this:

// api/upload/route.ts

import { handleFileUpload } from "@/app/controllers/upload.controller";

export async function POST(req: any) {
    return handleFileUpload(req)
}

The controller looks something like this:

// controllers/upload.controller.ts

import { NextResponse } from "next/server"
import { uploadFileToS3 } from "@/app/actions/s3File.ts";

export const handleFileUpload = async (req: any) => {
  try {
    const form = await req.formData()
    const files = form.getAll("files") as any

    const payloadRAW = form.get("payload")
    const {
      uploadDestination,
      mediaID,
      bucket,
      uploadEndpoint,
      pathname,
      redirectPath
    } =  JSON.parse(payloadRAW)

    const payload = {
      uploadDestination,
      mediaID,
      bucket,
      uploadEndpoint,
      pathname,
      redirectPath
    } as any

    const uploadURL = await uploadFileToS3(files, payload);
    return NextResponse.json({ message: "success", uploadURL });
  } catch (error) {
    console.error("Error uploading file:", error);
    return NextResponse.json({ message: "failure", reason: error.message });
  }
}

I then reconfigured my server action to take in the Files: File[] instead of the formData: FormData, along with some other general changes.

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

79146892

Date: 2024-11-01 03:56:41
Score: 1.5
Natty:
Report link
$image1 = clone $image;
$image2 = clone $image;
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hamid Shariati

79146887

Date: 2024-11-01 03:53:40
Score: 2
Natty:
Report link

MkDocs was exactly what I was looking for. Out of the box it does precisely what I want it to.

Docsify, VuePress and Eleventy were also options I was looking at. I tried docsify first, it looked promising but it didn't auto-gen navigation for me.

After testing out MkDocs, I didn't see a reason to continue. I'll still try VuePress and Eleventy, as well as any other options that folks suggest.

Will leave this question unanswered in case someone comes along with a better option.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: klvs

79146884

Date: 2024-11-01 03:51:39
Score: 1.5
Natty:
Report link

I totally agree that this would be an amazing feature. I'm also trying to take notes on NLP syntax and parsing, and don't find the current diagrams sufficient. I can offer that you could write your own CSS rules, but that seems overkill and I don't have the time to do that right now. I will say that since mermaid is open source, you could also add this yourself (or at the very least add it in a fork) if you are so determined (see the docs for this here). One semi-similar feature request on their repo can be found here. I've also personally created a diagram proposal request specifically for this here, so it would be amazing if you could give it some love to build traction.

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

79146876

Date: 2024-11-01 03:48:39
Score: 1
Natty:
Report link

In this case the solution is to use Anonymous union literals.

const py = @cImport({
    @cInclude("Python.h");
});

var pyObject = py.PyObject{
    .unnamed_0 = .{ .ob_refcnt = 1 },
    .ob_type = null,
};

// main fn and stuff..

If the type was a struct, an Anonymous struct literal could be used instead.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Matías Santurio

79146875

Date: 2024-11-01 03:47:38
Score: 0.5
Natty:
Report link

For posterity, another option: Package Builder is a modern fully-supported app for the latest versions of macOS.

The Apple command line tools can be a royal pain to get things right by yourself (speaking from personal experience! ugh), and the old Packages app no longer works and was a too complicated for the vast majority of uses IMO. Package Builder is easier and also ties into building disk images too. GUI and command line.

Reasons:
  • No code block (0.5):
Posted by: seth

79146870

Date: 2024-11-01 03:44:38
Score: 1.5
Natty:
Report link

This is because IDEA default decompiler decompile the class. On top of the decompile file showes .. the name of decompiler like FrenFlower decompiler.

IDEA also provide the ribbon to download the source file on top of the editor. Once source is downloaded then source can be found in local repository.

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

79146864

Date: 2024-11-01 03:38:36
Score: 4.5
Natty: 5
Report link

When I attempt to push incorrect data, I get the below error (message, line no. 4) in the POSTMAN.

enter image description here

How can I incorporate both the error and message into the response? I’d love to hear your suggestions!

Note : I am not getting "BadRequest_MethodNotAllowed" error in any case right now.

Reasons:
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (1): I get the below error
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (1):
Posted by: user724817

79146861

Date: 2024-11-01 03:36:35
Score: 0.5
Natty:
Report link

Smart pointers aren't necessary to achieve "memory safety," i.e. avoiding new and delete, here. The commenter was suggesting defining mBufferBlocks as:

std::vectorstd::vector<char> mBufferBlocks;

Then you know how many "buffer blocks" you have by mBufferBlocks.length() and the size of the buffer block at i using mBufferBlocks[i].length(). A buffer's data is then accesses via mBufferBlocks[i].data();

Allocating, or append()ing a new buffer is then just:

mBufferBlocks.

Releasing memory is then achieved automatically in the class' dtor().

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

79146858

Date: 2024-11-01 03:35:35
Score: 1
Natty:
Report link

Make sure you're setting the image to the correct ID. In your case, "exo_image". You're using view.setImageBitmap(bmp). Make sure "view" is referring to "exo_image"

Reasons:
  • Whitelisted phrase (-1): In your case
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user27894462

79146857

Date: 2024-11-01 03:34:34
Score: 1.5
Natty:
Report link
html2pdf().set(opt).from(element).toPdf().get('pdf').then(function (pdf) {
         pdf.setProperties({
            title: "title.pdf"
         })
         window.open(pdf.output('bloburl'), '_blank');

It work for me.

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

79146854

Date: 2024-11-01 03:33:34
Score: 3.5
Natty:
Report link

no tell me the real link , you need cookie and then i can konw how to crawl it

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

79146853

Date: 2024-11-01 03:32:34
Score: 1
Natty:
Report link

The startCaptureWithHandler:completionHandler: method of RPScreenRecorder return the error code RPRecordingErrorUserDeclined in the completionHandler if the user denies permission.

If you call startCaptureWithHandler:completionHandler: again after the user has declined, the authorization prompt will appear again.

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

79146852

Date: 2024-11-01 03:31:31
Score: 8.5 🚩
Natty: 5.5
Report link

Did you find a solution??? I'm in same your case

Reasons:
  • Blacklisted phrase (1): ???
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find a solution
  • Low reputation (1):
Posted by: Byeongsoo Kim

79146842

Date: 2024-11-01 03:28:30
Score: 0.5
Natty:
Report link

Instead of add placeholderLabel to textView, you should add placeholderLabel to view of NameViewController: Change this line textView.addSubview(placeholderLabel) to view.addSubview(placeholderLabel). There might be hidden logic in UITextView to interact with its subviews which cause your bug

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

79146838

Date: 2024-11-01 03:26:29
Score: 4.5
Natty:
Report link

I just get the same error when debugging, and the solution is actually pretty simple for me, i just end the debug, and start new debug and then it work perfectly fine

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): get the same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andreas

79146829

Date: 2024-11-01 03:14:27
Score: 1
Natty:
Report link

By using the method provided by @trialNerror, slicing performance improved by about 8 times on my machine compared to the for loop.

import torch
import random
import time 
B = 1024
N = 40
D = 512
src_tensor = torch.randn((B,N,D))
indices = [random.randint(0,N-1-1) for _ in range(B)]
t1 = torch.empty((B,2,D))
t2 = torch.empty((B,2,D))
start = time.perf_counter()
t1[:,0,:] = src_tensor[range(B),indices]
t1[:,1,:] = src_tensor[:,1:,:][range(B),indices]
end1 = time.perf_counter()
for i in range(B):
    p1,p2 = indices[i],indices[i]+1
    t2[i,:,:]=src_tensor[i,[p1,p2],:]
end2 = time.perf_counter()

print(f't1 == t2 ? :{t1.equal(t2)}')
print(f't1: {end1-start}')
print(f't2: {end2-end1}')
print(f't2/t1: {(end2-end1)/(end1-start)}')

# t1 == t2 ? :True
# t1: 0.002891700016334653
# t2: 0.023338499944657087
# t2/t1: 8.070857908089506
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @trialNerror
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MasterLu

79146817

Date: 2024-11-01 03:06:22
Score: 6 🚩
Natty:
Report link

This video helped me, i hope it can fix your problem as well!:

https://www.youtube.com/watch?v=m0ABCBtGRjo

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

79146813

Date: 2024-11-01 03:04:22
Score: 2
Natty:
Report link

I appreciate your quick response.

I have developed a straightforward API page that utilizes a custom staging table and made the endpoint accessible to a third-party service. The consumer is required to utilize the POST method to submit data into the staging table.

What are the best practices for managing the responses that I send back to the caller after their request? I would like to ensure that the response is informative and appropriately reflects the outcome of their data submission.

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

79146804

Date: 2024-11-01 02:51:19
Score: 1
Natty:
Report link

If you have one cell, or you need to drag this formula down or Flash Fill a column in a defined data Table, this formula will work:

=XLOOKUP(K9,$H$4:$H$7,$G$4:$G$7,"Bigger than 150",1)

K9 is the single sell value in question.

The lookup array is the Max Length data.

The Return Array is the Group Numbers.

If the size is larger than 150, this is stated - in the 'if not found' part of the formula.

The match mode is 'exact match or next larger item'.

The 'search mode' is not specified, but by default is first to last.

The last 3 parts of the formula are optional, but, in this example the first 2 of these do need to be specified.

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

79146799

Date: 2024-11-01 02:50:17
Score: 7 🚩
Natty: 4
Report link

Did you find the answer? the link from this comment doesn't work anymore.

Reasons:
  • RegEx Blacklisted phrase (3): Did you find the answer
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you find the answer
  • Low reputation (1):
Posted by: Alurian

79146798

Date: 2024-11-01 02:49:16
Score: 4.5
Natty:
Report link

What exactly did you do in routes? the problem is most likely there

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Ephraim XYZ

79146796

Date: 2024-11-01 02:48:16
Score: 1.5
Natty:
Report link

You can plot single points for Earth and Mars, and then update each point's position to the current frame coordinates.

import matplotlib.pyplot as plt
import matplotlib.animation as animation

earthx = planetRs[0][0]
earthy = planetRs[0][1]
marsx = planetRs[2][0]
marsy = planetRs[2][1]

fig, ax = plt.subplots()

line1, = ax.plot([], [], 'bo', label='Earth')  # Earth
line2, = ax.plot([], [], 'ro', label='Mars')   # Mars
ax.set(xlim=[-2, 2], ylim=[-2, 2], xlabel='X position', ylabel='Y position')
ax.legend()
ax.grid(False)

def init():
    line1.set_data([], [])
    line2.set_data([], [])
    return line1, line2

def update(frame):
    line1.set_data(earthx[frame], earthy[frame])
    line2.set_data(marsx[frame], marsy[frame])
    return line1, line2

ani = animation.FuncAnimation(
    fig, update,
    frames=len(earthx),
    init_func=init,
    interval=30,
    blit=True,
)
plt.close()
ani

enter image description here

Reasons:
  • Blacklisted phrase (1): thx
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mateus Alves de Oliveira

79146783

Date: 2024-11-01 02:35:13
Score: 1
Natty:
Report link

You are typing Python code in System terminal(zsh). If you are trying to recall the code line by line you need to do it in Python interactive terminal. Type python and seeing >>>on the terminal starting point you are good to go.

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

79146782

Date: 2024-11-01 02:34:13
Score: 2.5
Natty:
Report link

Educational

summarize दौस्ति की मिसाल: धर्म से परे इंसानियत की कहानी

Umesh Behera

mode_edit_outline

star_border

Rahim Badshah

mode_edit_outline

star_border Chapter 1: मित्रता की शुरुआत

edit

download

pause

broken_image Add Media Insufficient credits अध्याय 1 - मित्रता की शुरुआत

गर्मी के एक सुंदर दिन में, छोटे से गांव 'घनश्यामपुर' में एक नया परिवार आया था। यह परिवार मुस्लिम समुदाय से था और बादशाह परिवार के नाम से जाना जाता था। पिता रहीम बादशाह, माता सलमा बेगम और बेटा रहीम बादशाह। रहीम एक 17 वर्षीय युवक था, जो अपने माता-पिता और छोटे भाई-बहनों के साथ रहता था।

गांव के लोग इस नए परिवार का स्वागत करने में थोड़ा संकोच कर रहे थे, क्योंकि यह एक हिंदू बहुल गांव था। लेकिन रहीम का मिठास और सरल व्यवहार जल्द ही उन्हें सभी के दिलों में बैठ गया। वह गांव के बच्चों के साथ खेलने और उनकी मदद करने लगा। धीरे-धीरे रहीम और गांव के एक अन्य युवक, उमेश बेहरा, के बीच एक गहरी दोस्ती बन गई।

उमेश एक हिंदू परिवार से आता था। उसके पिता रामू बेहरा एक किसान थे और उसकी माता सुधा बेहरा गृहिणी थीं। उमेश अपने माता-पिता और छोटे भाई-बहनों के साथ रहता था। वह एक मेधावी छात्र था और गांव में सबसे अच्छे छात्रों में से एक माना जाता था।

एक दिन, जब उमेश स्कूल से लौट रहा था, तो उसने रहीम को अकेले खड़े देखा। उमेश ने रहीम की मदद की पेशकश की और धीरे-धीरे दोनों युवकों के बीच एक मजबूत दोस्ती बन गई। वे एक-दूसरे के घर जाया करते और एक-दूसरे की मदद करते। उमेश रहीम को हिंदी में पढ़ने-लिखने की मदद करता और रहीम उमेश को उर्दू में सुधार करता।

गांव में दोनों परिवारों के बीच भी धीरे-धीरे एक अच्छा संबंध बन गया। रहीम के पिता रहीम बादशाह और उमेश के पिता रामू बेहरा अक्सर एक-दूसरे से मिलते और अपने परिवारों के बारे में बात करते। सलमा बेगम और सुधा बेहरा भी एक-दूसरे के घर जाया करती और आपस में मिठाइयां बांटती।

एक दिन, उमेश और रहीम स्कूल से लौट रहे थे। तभी अचानक आसमान में काले बादल छा गए और तेज़ हवाएं चलने लगीं। शीघ्र ही भारी बारिश शुरू हो गई और तेज़ तूफान आने लगा। गांव के कई घर क्षतिग्रस्त हो गए और लोगों को बहुत परेशानी हो रही थी।

उमेश के घर में भी काफी नुकसान हुआ था। उसके पिता रामू बेहरा के खेत भी बर्बाद हो गए थे। उमेश बहुत चिंतित था और वह रहीम के घर गया। रहीम ने उमेश को देखकर उसकी मदद करने की पेशकश की। उमेश ने रहीम से कहा, "मेरा परिवार बहुत परेशान है। हमारा घर और खेत नष्ट हो गए हैं।" रहीम ने कहा, "मेरे घर में आ जाओ, हम आपकी मदद करेंगे।"

रहीम के पिता रहीम बादशाह ने भी उमेश के परिवार की मदद करने का फैसला किया। वह उमेश के पिता रामू बेहरा से मिले और उन्हें अपने घर में रहने का न्यौता दिया। रामू बेहरा ने इस दोस्ताना जेस्चर को स्वीकार कर लिया और अपना परिवार रहीम के घर में ले गए।

इस तरह, एक हिंदू और एक मुस्लिम परिवार एक साथ रहने लगे। रहीम और उमेश की दोस्ती और परिवारों के बीच बढ़ते संबंध ने गांव में एक नए उदाहरण की शुरुआत की। लोग देखकर हैरान थे कि धर्म और जाति के बावजूद, ये दो परिवार कैसे एक-दूसरे की मदद कर रहे हैं। यह सच्ची मानवता और सहयोग की भावना थी, जो सभी बाधाओं को पार कर गई।

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Rohim Badsha

79146779

Date: 2024-11-01 02:33:13
Score: 0.5
Natty:
Report link

I resolved this issue.

I created a new simple page to direct to target page, this new page can be passed from LinkedIn Post Inspector.

This is a workaround.

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Allan Hua

79146778

Date: 2024-11-01 02:33:13
Score: 0.5
Natty:
Report link

For the second section, try dynamic rendered server component described here.

Unless you need to use React hooks like useState, useEffect and etc.., you should first consider to employ Server Component.

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

79146777

Date: 2024-11-01 02:32:13
Score: 2
Natty:
Report link

I am fond of the Pathlib library, where it's pretty elegant and straight to the point.

import os.path
# Method 1: os.path.isfile() - specifically for files (not directories)
if os.path.isfile("file.txt"):
    print("File exists")

# Method 2: pathlib (Python 3)
from pathlib import Path
if Path("file.txt").exists():
    print("File exists")

See the difference?

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

79146776

Date: 2024-11-01 02:29:12
Score: 0.5
Natty:
Report link

Try setting the TopN on Region and not #.

Apply TopN on Region

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

79146773

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

If your app is an expo app, this can happen when you use pod install instead of npx pod-install. At least in my case, the warning went away when using the latter command instead.

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

79146772

Date: 2024-11-01 02:24:11
Score: 5
Natty: 4
Report link

has it been solved? I also encountered this problem and initially suspected it was a dependency issue.

Reasons:
  • RegEx Blacklisted phrase (1.5): solved?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: GG gguowang

79146762

Date: 2024-11-01 02:16:09
Score: 1
Natty:
Report link

Add TRIM around the ranges in the XLOOKUP:

=XLOOKUP (B34,TRIM(Sheet2!D14:D17),TRIM(Sheet2!D14:D17),)

The TRIM, removes extra spaces in a string, but leaving 1 only and not more than one, and removes extra spaces to zero spaces at the beginning and end of a string, a few database errors resolved by one formula.

As names can be the same for different customers, or entered many times, you may need to add another bit of data to be sure you have "unique" names. I use COUNTIFS all the time, and doing a COUNTIF first for the range of names (lock the column letters and numbers with "$"), in both databases to see if you only get "1" for each name: =COUNTIF($B$32:$B$34,B34)

if not you will need a COUNTIFS, to maybe add the postcode (can be isolated with RegEx) to be counted with the name.

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

79146758

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

If your debug launch configuration suddenly won’t launch, try starting the application from the command line and then shutting it down. This helped me fix the issue when I suspected the app didn’t exit properly on the previous run.

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

79146755

Date: 2024-11-01 02:14:08
Score: 3.5
Natty:
Report link

There is a direct way to acquire .obj file of environment scans by using Device Portal without coding, you could refer to - Spatial object mesh observer - MRTK 2 | Microsoft Learn.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ying Li - MSFT

79146735

Date: 2024-11-01 01:47:03
Score: 3.5
Natty:
Report link

I installed vs2022 tools, but for some unknown reason, the system's environment variables are missing. Just configure vs2022_install and it's ok

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

79146734

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

I finally set the FireWall rule [Destination filters IP] to None. And do that

  1. Set FireWall rule target tags [xxxx]
  2. Set VM instance Network tags [xxxx]
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: WilliamChen

79146730

Date: 2024-11-01 01:42:01
Score: 2
Natty:
Report link

You have to go to your DNS, i.e., namescheap, goddaddy, etc. and select CNAME then enter the values Clerk provides for each, e.g., clerk -> frontend-api.clerk.services.

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

79146728

Date: 2024-11-01 01:38:01
Score: 2
Natty:
Report link

See "Theme.Settings.Home" in Settings' theme.xml:
The background color is "@android:color/system_surface_container_light"

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

79146716

Date: 2024-11-01 01:33:00
Score: 1.5
Natty:
Report link

In cell E2 add: =IF(ISBLANK(A2),"",$A$1)

For the first cells on row 2, in the rest of the data, the locked cell range in the last part of the IF formula would need to be changed to the appropriate value in cells A1 to D1. Flash Fill should be available if a Table, or drag down the formulas, from the bottom right corner.

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

79146704

Date: 2024-11-01 01:27:58
Score: 2
Natty:
Report link

In case you still need it (and use Sharepoint from Azure)

If you're using Azure instance, You can configure an App in a Sharepoint Site, with Permission to read and write files or lists. Here's some resources on how to connect to the REST API. (Thank you Vikram Samal!). It is a very easy-to-understand guide.

part 1: https://vikramsamal.medium.com/how-to-test-sharepoint-office-365-online-rest-api-crud-operation-using-postman-client-1895b871603b part 2: https://vikramsamal.medium.com/how-to-connect-and-test-sharepoint-office-365-online-rest-api-crud-operation-using-postman-client-6de83d502c41

With that configured, you can design two transformations, one to get the token, other to upload a file using the token. Example: Basic design of Job to Upload CSV File to Sharepoint

1 - Get Access Token

2 - Upload File Sharepoint

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): medium.com
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: saint

79146701

Date: 2024-11-01 01:25:58
Score: 5
Natty: 5.5
Report link

Intl has a list format, documented for JavaScript on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat

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

79146695

Date: 2024-11-01 01:20:56
Score: 3.5
Natty:
Report link

No, it's not possible. You'll have to persist the dateForSorting and update it as date1 and date2 are modified.

It's a popular idea though ;)

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • High reputation (-1):
Posted by: Hal Mueller

79146692

Date: 2024-11-01 01:18:56
Score: 0.5
Natty:
Report link

I was using docker desktop with alpaca as proxy enabler, and i also had proxy enabled with docker desktop, i solved this issue by disabling proxy in docker desktop client under settings> advance

Reasons:
  • Whitelisted phrase (-2): i solved
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anupam Choubey

79146683

Date: 2024-11-01 01:06:53
Score: 3
Natty:
Report link

If you open the html file in the browser, the \mathcal symbol shows normally. Maybe it's just R studio's page problem.

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

79146679

Date: 2024-11-01 01:03:53
Score: 2.5
Natty:
Report link

Based on the ChromaDB documentation https://cookbook.chromadb.dev/core/collections/#cloning-a-collection, directly updating a collection’s HNSW parameters and reindexing is not an option. Instead, the process requires cloning the collection, updating the parameters during the clone, and then replacing the original collection

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

79146676

Date: 2024-11-01 01:00:52
Score: 3
Natty:
Report link

You can achieve this without the constructor wrapper by using a combination of:

  1. @Environment
  2. ViewModifier
    // define a custom type of environment key for closures
    private struct ClosureKey: EnvironmentKey {
        static let defaultValue: (() -> Void)? = {}
    }

    // define a new environment property
    extension EnvironmentValues {
        var myAction: (() -> Void)? {
            get { self[ClosureKey.self]}
            set { self[ClosureKey.self] = newValue }
        }
    }

    struct MyActionModifier: ViewModifier {
        var perform: (() -> Void)?

        func body(content: Content) -> some View {
            content.environment(\.myAction, perform)
        }
    }

    struct ChildView: View {
        @Environment(\.myAction) var action: (() -> Void)?
        
        var body: some View {
            Button(action: {
                self.action?()
            })
        }

        func myAction(_ perform: (() -> Void)?) { 
           self.modifier(MyActionModifier(perform: perform) 
        }
    }

The payoff:

    struct ParentView: View {
        var body: some View {
            ChildView()
                .myAction({print("hello world")})
        }
    }

In reality this is pure madness. I think it's vastly preferable to use an optional closure in the constructor. But perhaps this process can be simplified. After all, declaring ClosureKey only has to be done once. And perhaps MyActionModifier can be refactored to use a dynamic KeyPath? Which would leave the EnvironmentValues extension as the major task for each custom environment value.

However, I'm not even 100% sure this works yet.

Sources:

  1. https://developer.apple.com/documentation/swiftui/environmentkey
  2. https://useyourloaf.com/blog/swiftui-custom-environment-values/
  3. SwiftUI ViewModifier for custom View
  4. SwiftUI: store closure in environment?
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Environment
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Jacob Sánchez

79146672

Date: 2024-11-01 00:57:51
Score: 4.5
Natty:
Report link

Instrucciones: En la siguiente actividad deberá grabar un video (2 a 6 min., utilizar herramientas informáticas, pizarras, cartulinas, hojas de papel en blanco, etc.) donde explique la resolución del ejercicio expuesto a continuación: Para tal propósito, en la plataforma deberá subir la ficha dada en la siguiente página con todas las casillas llenas.

  1. En un instituto de 500 personas se cumple que el número de alumnos que juega al fútbol son 300, que juegan al baloncesto 150, que hacen ciclismo 120, que juegan fútbol y baloncesto son 90, al fútbol y ciclismo 20, baloncesto y ciclismo 25, y por fin que practican los tres deportes 3. Calcular: a) La probabilidad de que elegido al azar un alumno no haga ningún deporte. b) La probabilidad de que elegido al azar un alumno no juegue al baloncesto. c) La probabilidad de que elegido al azar un alumno juegue al baloncesto o al fútbol.

Obs. Verifique que su link de video funcione, de lo contrario su tarea no tendrá ningún valor.

UNAG Ficha de Video Tutorial IIIP-2024 Tema Probabilidad (Diagramas de VENN) Alumno
Sección
Problema Resolver una probabilidad usando diagramas de VENN

Resolución Edite o inserte la resolución del ejercicio

Respuesta Edite únicamente la respuesta

Link de Video Inserte el link del video subido Previamente a “YouTube” (no listado) El video deberá contener los siguientes elementos: • Presentación del alumno (Decir su nombre y sección) • Breve introducción teórica (Definición, teorema a aplicar) • Planteamiento del problema • Resolución • Finalmente plantear la respuesta

Reasons:
  • Blacklisted phrase (1): todas
  • Blacklisted phrase (3): solución
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: DIANA FIGUEROA

79146669

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

When you see a .java file for classes like Thread in IntelliJ IDEA, it’s actually because of two main things: decompiled sources and source attachments. Here’s how it works:

Compiled JDK files: The JDK classes are indeed packaged as .class files in JARs, like rt.jar (or modules in newer JDKs). But these are compiled files, not the original .java source files.

Decompiled Source Code: By default, IntelliJ can actually decompile these .class files, letting you view the code in a readable format. Even without the original source, it’s able to reconstruct something that looks very close to Java code—minus the comments or certain annotations, which don’t carry over when code is compiled.

Source Attachments: When you install a JDK, it usually comes with a src.zip file in the root JDK directory. This src.zip contains the original .java source files, and IntelliJ automatically attaches it to the JDK if it’s available. With this attachment, IntelliJ shows you the actual .java files instead of decompiled code.

So, when you Ctrl + Click on a class like Thread, IntelliJ is showing you the .java file from this src.zip if it’s available. If you searched your disk and couldn’t find Thread.java, it’s likely because you don’t have this src.zip file. Not all JDK installations include it, but you can usually download a version that does.

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

79146661

Date: 2024-11-01 00:43:47
Score: 5
Natty:
Report link

Complete ReactJs tutorial Check out here https://youtu.be/ndcENsaE8l0

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Manibala Sinha

79146657

Date: 2024-11-01 00:41:47
Score: 1.5
Natty:
Report link

Per the comment: I was using location = / which does not match the request POST /OCSP/EMSSSPCAResponder - I meant to use location / which matches any URL.

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

79146655

Date: 2024-11-01 00:39:46
Score: 11
Natty: 7.5
Report link

No answer but having the same issue did you figure this out?

Reasons:
  • RegEx Blacklisted phrase (3): did you figure this out
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tommy Pritchett

79146652

Date: 2024-11-01 00:34:45
Score: 3
Natty:
Report link

Copy Paste from VCODE and then go to Format-> Text-> Layout-> and on Paragraph Background add dark grey color.

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

79146646

Date: 2024-11-01 00:32:44
Score: 5
Natty: 5
Report link

not sure if this still relevant but I can share how I setup the wordpress with cPanel https://medium.com/@lifebtye/setup-a-server-for-wordpress-with-a2hosting-95adbf1b1c97

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: theBeginner

79146643

Date: 2024-11-01 00:29:43
Score: 1.5
Natty:
Report link

docker compose up --build --watch seems to be the answer. Weird how the tutorial I'm watching doesn't make this clear. I was under the impression docker compose up builds your containers even the documentation says it:

Usage docker compose up [OPTIONS] [SERVICE...] ....... Builds, (re)creates, starts, and attaches to containers for a service.

But apparently this isn't true and you need the --build option.

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

79146632

Date: 2024-11-01 00:16:40
Score: 1
Natty:
Report link

Uninstall Angular CLI Completely:

sudo npm uninstall -g @angular/cli

Clear NPM Cache:

npm cache clean --force

Reinstall the Desired Version: Now, reinstall the desired version of Angular CLI:

sudo npm install -g @angular/[email protected]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ahmed zayati

79146624

Date: 2024-11-01 00:09:39
Score: 3
Natty:
Report link

Another way to do it, if you don't want to create too much code is to use > in the shell command to dump it to a file. E.g. ls > ls.out

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

79146620

Date: 2024-11-01 00:05:38
Score: 1.5
Natty:
Report link

git pull --rebase origin master is not pulling and rebasing master to your branch. You should

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

79146617

Date: 2024-11-01 00:05:38
Score: 0.5
Natty:
Report link
=index(query(A:B,"SELECT SUM(A), B WHERE NOT A IS NULL GROUP BY B ORDER BY SUM(A) DESC"),2)

Result:

enter image description here

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

79146614

Date: 2024-11-01 00:02:37
Score: 2
Natty:
Report link

I assume that your .net app has a reverse proxy in front of it that allows you to you to proxy each sub path to your different applications ?

I can see two ways you can sort this problem :

  1. If the reverse proxy use X-Forwarded headers. You could use the forwarded header middleware with ForwardedHeaders. XForwardedPrefix
  2. Worst come to worst : adjust the base path of the application with app.UsePathBase(app.Configuration["EnvVariableHavingYourSubpath"]) which does require altering the reverse proxy to tell it to also use the subpath for the forwarded requests.
Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jean-Baptiste Zeller

79146612

Date: 2024-11-01 00:01:37
Score: 2.5
Natty:
Report link

Fixed by changing mode = LineDataSet.Mode.CUBIC_BEZIER to mode = LineDataSet.Mode.HORIZONTAL_BEZIER

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

79146610

Date: 2024-10-31 23:59:37
Score: 2.5
Natty:
Report link

Check your logs: Auth0 Dashboard > Monitoring > logs

I had a similar issue, tried everything, but this is just a general error thrown, the real error is in the logs of auth0.

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

79146604

Date: 2024-10-31 23:55:36
Score: 3.5
Natty:
Report link

The book provides the exact state of Three.js when it was written so unless theres a typo in the book everything should work fine. Make sure you download the code associated with the book and follow their instructions, should work.

-Sir McQueef

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Sir McQueef

79146602

Date: 2024-10-31 23:54:36
Score: 0.5
Natty:
Report link

So, I found an answer from another site with no connection to my problem but it worked.

Just need to add to App.xaml Resources or Page,Grid,NavigationView Resources the following code:

<SolidColorBrush x:Key="NavigationViewContentBackground" Color="Transparent" />
Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ariel P

79146599

Date: 2024-10-31 23:50:35
Score: 0.5
Natty:
Report link
import numpy as np

a = np.array([[1, 2], [3, 4], [5, 6]])
b = np.insert(a, 0, 0, axis=1)
print(b)

Result:

[[0 1 2]
 [0 3 4]
 [0 5 6]]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Konstantin Makarov

79146593

Date: 2024-10-31 23:45:34
Score: 1
Natty:
Report link

I figured it out, finally. I had to change the Grid BackgroundColor to White and then change BackgroundColor of the Frames to Transparent so that I could see the highlighted color underneath them. I wish there were a way to highlight overtop of the Frames instead, but this works.

Reasons:
  • Whitelisted phrase (-2): I figured it out
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TrollKilla

79146590

Date: 2024-10-31 23:43:33
Score: 0.5
Natty:
Report link

I realize that this brew tap has everything I need, and I don't need to install the old PHP extension using pecl or compiling from source.

https://github.com/shivammathur/homebrew-extensions

brew tap shivammathur/extensions
brew install shivammathur/extensions/[email protected]

Since I already have the old 7.4 mcrypt extension,

brew unlink [email protected]
brew link [email protected] 

Checking

php71 -m | grep mcrypt
mcrypt
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Prabowo Murti

79146585

Date: 2024-10-31 23:38:32
Score: 5
Natty: 5
Report link

I changed the PATH to be able to run it without the /. and now if I run a file like "./file -g" the file recieves the argument, but when I run it without the ./ "file -g" it acts as if it didn't get the -g argument. Why is this happening?

Reasons:
  • RegEx Blacklisted phrase (0.5): Why is this
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gonzalo Martín

79146584

Date: 2024-10-31 23:35:31
Score: 1
Natty:
Report link

The best answer I found is described by GitHub themselves: Removing sensitive data from a repository.

Greatly recommend using this, esp. if your remote is on GitHub. Just using the answers in this thread will require googling a lot more (which was my way), while the article contains everything from here and most of other advice you may need to (and sometimes must) follow - with every required comment and precaution. Very comprehensive and yet very easy to read.

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

79146583

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

I recently had to set up this same workflow myself, and decided to create a simple example repo that walks through the process of setting things up.

Hope this helps someone looking to do the same.

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

79146581

Date: 2024-10-31 23:31:30
Score: 4
Natty:
Report link

« ScrollView objects should not be nested. In addition, ScrollView objects should not be nested with other controls that provide scrolling, such as CollectionView, ListView, and WebView. » So it’s likely you have to punt the scroll view.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jean-Baptiste Zeller

79146575

Date: 2024-10-31 23:27:29
Score: 4
Natty:
Report link

You can customise the way the text box is drawn by overriding the OnPaint method.

https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/overriding-the-onpaint-method?view=netframeworkdesktop-4.8

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

79146573

Date: 2024-10-31 23:26:29
Score: 1
Natty:
Report link

I got an answer from a java discord, what I need here is a CountDownLatch. Here's how it would work in my code:

public class MRE {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        InputHandler[] handler = new InputHandler[1];
        Thread thread = new Thread(() -> {
            boolean[] matches = new boolean[1];
            CountDownLatch latch = new CountDownLatch(1);
            handler[0] = (message) -> {
                matches[0] = message.equals("true");
                latch.countDown();
            };
            try {
                latch.await();
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
            }
        });
        thread.start();
        while (scanner.hasNext()) {
            handler[0].handleMessage(scanner.nextLine());
        }
    }

    interface InputHandler {
        void handleMessage(String message);
    }
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: blockgoblin31

79146565

Date: 2024-10-31 23:20:27
Score: 2.5
Natty:
Report link

This means that your inf file refers itself (driver.inf) in CopyFiles section.

This is not allowed. You need to use CopyINF. See remarks in https://learn.microsoft.com/en-us/windows-hardware/drivers/install/inf-copyfiles-directive

Usually you do not need to copy INF file: https://learn.microsoft.com/en-us/windows-hardware/drivers/install/inf-copyinf-directive

Try to move inf file into CopyINF section or remove it.

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

79146563

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

Only a few citation styles are included in @citation-js/plugin-csl by default. To use the AMA style, you need to download and register it:

let style_ama = Cite.util.fetchFile('https://raw.githubusercontent.com/citation-style-language/styles/master/american-medical-association.csl')
Cite.plugins.config.get('@csl').templates.add('ama', style_ama)

See also a different iteration of this question on GitHub: https://github.com/citation-js/citation-js/issues/231#issuecomment-2282724819.

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

79146553

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

It is working for me, but decimals are too long now. How do I fix it?

Reasons:
  • Blacklisted phrase (1): How do I
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Aviaaja Sandgreen

79146525

Date: 2024-10-31 22:46:20
Score: 2
Natty:
Report link

Does legacy x86 support type 1 hypervisor?

Yes, it does.

If yes, how does it emulate sensitive instructions that failed to raise traps across different privileges?

By using binary translation: the sensitive instructions are replaced with other instructions that emulate the behavior of the sensitive instructions properly.

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

79146519

Date: 2024-10-31 22:44:20
Score: 2
Natty:
Report link

NVM-windows can be used without requiring admin rights after setting it up as follows:

  1. Uninstall NVM-windows and/or nodejs if they are already present
  2. Download and run the latest NVM-windows installer (or install it manually without admin rights)
  3. For the NVM installation path, choose a folder within the user directory
  4. For the Node.js symlink path, choose a path within the user directory as well and complete the installation
  5. Enable "Developer Mode" in Windows 10+

Developer Mode allows NVM to manage symlinks without admin privileges.

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

79146513

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

Compatible with Android, iOS and Smart TVs In addition to computers/laptops running macOS/Windows operating systems, so everyone is welcome at any time. We work hard on the quality of our products. Service with confidence. Customer satisfaction. 24/7 support. The quality of our services is our main goal https://www.strong4kvip.com

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

79146504

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

I faced the same problem but found a solution (thanks to this article):

At first, it's important to state we are using this guide and this repository.

  1. Split your server.js into 2 files:

... // imports & constants (without port)

export const app = express();

... // server code

// Start http server
import { app } from './server.js';

const port = process.env.PORT || 5173;

app.listen(port, () => {
  console.log(`Server started at http://localhost:${port}`);
});

Then, change scripts in package.json:

  "scripts": {
    "dev": "node startServer",
    ...
    "preview": "cross-env NODE_ENV=production node startServer"
  }

This will allow you to still start your app locally.

  1. In your project directory, create a directory api and place there a file index.js containing:

import { app } from '../server.js';

export default app;

We did this to let Vercel start our server as a serverless function. Vercel cannot use app.listen().

  1. In your project directory, create a file vercel.json containing:

{
  "version": 2,
  "public": true,
  "rewrites": [
    { "source": "/(.*)", "destination": "/api/index.js" }
  ],
  "functions": {
    "api/index.js": {
      "includeFiles": "dist/client/**"
    }
  }
}

rewrites forwards all requests to a serverless function. includeFiles allows to serve the directory and access files.

  1. Deploy as usual.
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): this guide
  • Blacklisted phrase (1): this article
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ben Barnes

79146501

Date: 2024-10-31 22:32:18
Score: 2.5
Natty:
Report link

Just use 8.8 Gradle version with jdk 22. Make sure in the Program file>java folder there is no 23 and 22 sdk folder at the same time if yes than remove the sdk 23 folder and restart the computer

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

79146499

Date: 2024-10-31 22:32:18
Score: 0.5
Natty:
Report link

According to the next.js routing file convention docs, a route isn't publicly accessible unless it has a page.js or equivalent file in it, so it seems like having components inside app/ is fine as long as there is no page.js in components. This is the setup I have seen on some projects as well.

This is on next 14.

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

79146497

Date: 2024-10-31 22:32:17
Score: 5
Natty:
Report link

Most of these replies were not working for me after running into the same issue in late 2024 on a Macbook.

For me, the solution ended up being to open System Settings > Privacy and Security. Then scroll to find Local Network. Make sure it is enabled for Google Chrome or whatever browser you hit issues with.

Reasons:
  • RegEx Blacklisted phrase (3): not working for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jack

79146494

Date: 2024-10-31 22:30:17
Score: 1
Natty:
Report link

When using @Component + @WebFilter, you're actually registering the filter twice with Embedded Tomcat:

This is why using both annotations works, but it's not the recommended approach

but in Traditional Spring MVC (External Tomcat):

When using external Tomcat, the servlet container handles @WebFilter registration directly This is why you get the "already registered" error when using both annotations

=> Working with Just @WebFilter require using @ServletComponentScan in the Spring Boot application, This annotation enables scanning for servlet components including @WebFilter

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @WebFilter
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Mohamed amine ben hassen

79146490

Date: 2024-10-31 22:28:16
Score: 3
Natty:
Report link

I also got this because I forgot to add await keyword

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