79154426

Date: 2024-11-04 06:43:12
Score: 3.5
Natty:
Report link

I have completely solved this problem, and based on my article, it can be successfully compiled

https://blog.csdn.net/m0_66975650/article/details/143039495?sharetype=blogdetail&sharerId=143039495&sharerefer=PC&sharesource=m0_66975650&spm=1011.2480.3001.8118

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

79154420

Date: 2024-11-04 06:39:12
Score: 1.5
Natty:
Report link

https://docs.scipy.org/doc/scipy/tutorial/interpolate/interp_transition_guide.html details how to replicate interp2d, in both scattered and grid modes

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

79154419

Date: 2024-11-04 06:39:10
Score: 6.5 🚩
Natty: 4.5
Report link

Have you figured this out ? Just ran into this a few days ago and it's been driving me nuts.

Reasons:
  • RegEx Blacklisted phrase (3): Have you figured this out
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Burning-Ice

79154402

Date: 2024-11-04 06:33:08
Score: 3
Natty:
Report link

Apologies but, having read the answers to the original question this one occurred to me.

Let's talk C instead of javascript and reference the Quake fast inverse square root algorithm...

What's the speed like if your multiply function takes 2 (or an array of) pointers as its input parameters and ...

Fkr each input pointer (/array of)

.. or just return the result as a (/array of) pointer(s) to floats with the caller reading it using a (array of) pointer to original type?

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

79154401

Date: 2024-11-04 06:32:08
Score: 2.5
Natty:
Report link

As the assertion is about sorting, maybe the hashCode and equals methods of the LocalizedId are of interest. I would suggest having a closer look at them.

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

79154394

Date: 2024-11-04 06:29:07
Score: 1
Natty:
Report link

Sometimes Intellij is unable to load modules and also won't provide option to maven reload then you have to manually add project as module.

Go to Project Structure -> Click on Module then add a module and choose the external source such as maven, gradle or antd

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

79154378

Date: 2024-11-04 06:24:06
Score: 1
Natty:
Report link

In C, nested types are accessible as if they were declared in the global scope.

In C++, nested types require explicit qualification with the enclosing type (like foo::bar) because they are considered scoped within the enclosing type.

Is it possible to make it compile when included into C++ code without making the struct type declaration unnested?

Yes, try to use #ifdef __cplusplus to make the code compatible with both C and C++ without changing and also use a macro to handle the scoping.

#include <stdio.h>

#ifdef __cplusplus
#define NESTED_STRUCT(foo, bar) foo::bar
#else
#define NESTED_STRUCT(foo, bar) bar
#endif

struct foo {
    struct bar {
        int baz;
    } bar;
};

int main() {
    struct NESTED_STRUCT(foo, bar) a;
    a.baz = 2;
    printf("%d\n", a.baz);
    return 0;
}
Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Shelton Liu

79154377

Date: 2024-11-04 06:24:06
Score: 1
Natty:
Report link

On Apple Silicon or M1/M2/M3 family

Step 1: Install supervisor

brew install supervisor

Step 2: Create a supervisor configuration with this command

sudo echo_supervisord_conf > /opt/homebrew/etc/supervisord.conf

Step 3: Create laravel conf file in /opt/homebrew/etc/supervisor.d

Step 4: Run supervisor

sudo supervisord -c /opt/homebrew/etc/supervisord.conf

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

79154376

Date: 2024-11-04 06:24:06
Score: 2
Natty:
Report link

Based on the information on Stripe doc. I'm afraid that there's no option to remove the loading animation for a pricing table.

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

79154373

Date: 2024-11-04 06:23:06
Score: 0.5
Natty:
Report link

Anywhere you are using BlocListener or BlocBuilder or BlocConsumer, you can provide your bloc object like this (with GetIt):

          BlocListener(
            bloc: getIt<AuthBloc>(),
            listener: ...,
          ),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: saman

79154364

Date: 2024-11-04 06:19:03
Score: 6 🚩
Natty: 4
Report link

I tried using containerSasToken=?${{ secrets.CONTAINER_SAS_TOKEN }} but still facing same error.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing same error
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Himanshu Singh

79154359

Date: 2024-11-04 06:17:02
Score: 0.5
Natty:
Report link

ASP Core 8

using System.Text.Json.Serialization;
builder.Services.AddControllers().AddJsonOptions(options =>
{
    options.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles;
    options.JsonSerializerOptions.WriteIndented = true;
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AMMAR YASIR

79154338

Date: 2024-11-04 06:09:00
Score: 1
Natty:
Report link

The issue is the android studio still loading the icons asyncronously if you cek in SDK/icons that icon still pushing ini progress

that we will saw if we open create vector asset window and don't close it till the icons loading ind icons folder finished

so keep this window's opened until the icon data in SDK/icons are loaded

enter image description here

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

79154331

Date: 2024-11-04 06:04:59
Score: 1.5
Natty:
Report link

Here u want answer


// DialogHeader
const DialogHeader = dynamic(
    () => import('../../Dialog').then((component) => component.default.Header),
    {loading: () => <Spinner/>}
)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: TheJang

79154330

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

According to https://github.com/localstack/localstack-docker-extension/pull/51, you can use the exe to avoid this error.

You can find the instructions for using the exe here.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: SpicyCatGames

79154315

Date: 2024-11-04 05:54:57
Score: 1
Natty:
Report link

Friend, I suggest that you generate your Base64 content and put it on a Blob.

Then, you just need to use URL.createObjectUrl() and you have your pseudo-link ready to your blob.

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

79154312

Date: 2024-11-04 05:53:57
Score: 1
Natty:
Report link

After typing (, you only need to type characters like /,] to make the things that cover you disappear.

The phenomenon you encounter: enter image description here

The effect after typing characters(You can use the up and down keys to switch and view different definitions): enter image description here

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Cody Liang

79154311

Date: 2024-11-04 05:52:56
Score: 3
Natty:
Report link

In addition to Neha Chaudhary after the steps if the reload not work clear the cookies and browsing data of the site. It works.

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

79154288

Date: 2024-11-04 05:36:54
Score: 1.5
Natty:
Report link

Great read! I had no idea how many benefits artificial turf could offer until I read this post. The low-maintenance aspect is a huge bonus, especially for those of us with busy schedules. And I love that it's environmentally friendly with no need for water or pesticides. Your tips on choosing the right type of turf and the installation process were incredibly helpful. Thanks for making it easy to understand—this really has me considering turf for my yard! Your lawn is the first impression people have of your home or business, and keeping it in peak condition is our specialty. Lawn Brothers offers comprehensive lawn services tailored to suit your environment and lifestyle. From regular lawn care and maintenance to advanced treatments and eco-friendly solutions, we ensure your green spaces are lush, healthy, and inviting.

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

79154286

Date: 2024-11-04 05:35:53
Score: 1.5
Natty:
Report link

Just had a similar issue. You can install the react native-friendly package stream-browserify as stream with npm install stream@npm:stream-browserify

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

79154276

Date: 2024-11-04 05:27:52
Score: 3
Natty:
Report link

I have the same problem using Grails/Groovy/Gradle. As I understand, configuring Java to use JaCoCo agent making instrumentation at runtime, so you don't need to include dependencies in your built (pom.xml).

Check the content of your jacoco.exec file (I assume it is not empty). For that run command: java -jar <jacoccli.jar-path> execinfo <jacoco.exec-path>. This will list all classes, for which JaCoCo collected coverage info. In my case there are only from apache package. So it checks the coverage of the small part of the Tomcat itself and not webapp, it is running.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (0.5):
Posted by: C.A.B.

79154272

Date: 2024-11-04 05:25:51
Score: 2
Natty:
Report link

Your above steps should allow Google to recognize localhost as an authorized origin, resolving the "origin_mismatch" error in your development environment. Setting up separate credentials for development and production is also a good practice to simplify environment specific configurations.

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

79154267

Date: 2024-11-04 05:22:51
Score: 3
Natty:
Report link

This was a databricks infrastructure bug that has now been resolved. It did not require any code or configuration change.

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

79154261

Date: 2024-11-04 05:19:50
Score: 1
Natty:
Report link

The problem is not in Ant design, but is more about how React works. By placing the Select inside a radio, every time you click the radio to open the Select component, the onChange of the Radio.Group is triggered, changing the state of the component and therefore re-render the component. Just remove the Radio wrapper from the Select component and replace it with custom trigger component that looks the same way as the Ant's radio.

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

79154258

Date: 2024-11-04 05:17:49
Score: 2
Natty:
Report link

Yes, Celery Beat is good for background tasks. However, sometimes integrating Celery into our project is a bit difficult. If you have a small task for the background process, I recommend using django-rq.

here is the official link for your reference:

https://pypi.org/project/django-rq/0.2.1/

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

79154252

Date: 2024-11-04 05:14:49
Score: 1
Natty:
Report link

I also encountered this problem and i was able to solve mine by following these steps below: 1, Install homebrew by runnning the following command on your terminal /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" You can get this from https://brew.sh 2, Then, Install vagrant with brew tap hashicorp/tap brew install hashicorp/tap/hashicorp-vagrant 3, Check if vagrant has been installed with vagrant -v 4, Then initialize any version of vagrant from the boxes. for example "vagrant init ubuntu/focal4" and vagrant up, then vagrant ssh...

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

79154248

Date: 2024-11-04 05:11:48
Score: 3.5
Natty:
Report link

Instagram ID hack password emphasized textenter link description here


Yes sir [email protected]

Blockquote


Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sourav Mondal

79154245

Date: 2024-11-04 05:09:48
Score: 3.5
Natty:
Report link

div> Mailbox thread pendingKrushna Kopratkar</ div> </ div>Oct 06, 2023 6:24 am</ div></ div>

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

79154229

Date: 2024-11-04 04:56:45
Score: 3
Natty:
Report link

I have the same problem too. I just used partial but passed the model with it. partial doc

.CSHTML

@model EntityWithNestedLists

@foreach (var nested in @Model.NestedLists)
{
  <partial name="Shared/_NestedList" model="@nested" />
}

Partial NestedList File:

@model Nested

 <td colspan="2" class="text-center">
   @Html.DisplayNameFor(m => m.Item)
 </td>
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
Posted by: aRtoo

79154224

Date: 2024-11-04 04:55:45
Score: 1
Natty:
Report link

If you are trying to upload with JSON data, I think you have to use FormData

 let filePayload = new FormData();
    filePayload.append('file', fileData);

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

79154215

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

It looks like the response generated by Excel::download is not being handled correctly on the frontend, which is causing it to be saved to the server's cache instead of prompting a file download on the client.

Here’s how to solve it:

Use Inertia::post instead of router.post for download: Since you want the file to download directly and not go through Inertia’s SPA-like behavior, a typical Inertia post request will not work as expected. Instead, make a direct GET request from the client.

Update the Vue Code to Trigger a GET Request: Change the handleExport function to open the download link directly in the browser using window.location.

Revised Code Vue Component (handleExport function) Update the handleExport function to construct a URL with query parameters and initiate a download request:

import { ref } from 'vue';
const props = defineProps({ transactions: Object });

const status = ref('Status');
const shop = ref('Shop');

const handleExport = () => {
    // Construct a query string for GET request with parameters
    const params = new URLSearchParams({
        status: status.value,
        shop: shop.value
    }).toString();

    // Redirect to the URL which triggers the download
    window.location.href = `/export_data?${params}`;
};


<template>
    <button @click="handleExport" type="button">Export Data</button>
</template>

Controller (export_data function) Change the export_data method to accept the parameters as a GET request:

    public function export_data(Request $request)
{
    $status = $request->query('status');  // Use query parameters
    $shop = $request->query('shop');

    // Retrieve the filtered data
    $result = Transaction::where([['status', $status], ['shop', $shop]])->get();

    // Export and download the data
    return Excel::download(new TransactionsExport($result), 'Transactions.xlsx');
}
Reasons:
  • Blacklisted phrase (1): how to solve
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Amir Eghbal

79154196

Date: 2024-11-04 04:34:40
Score: 1.5
Natty:
Report link

This was bugging me too. If you don't mind turning off the notification for every application. Turn off

Settings > Notifications > Open/close in-game overlay

This will only turn off the notification, and it will do it for all applications. You'll still be able to use the overlay by hitting Alt+Z (or whatever you have your shortcut set to)

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

79154194

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

In my case, this issue instruction helps, tf.test.is_built_with_cuda() return true.

please try installing TensorFlow v2.4 with CUDA 11.0 and cuDNN 8 as mentioned in the tested build configurations and check if you are facing the same issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • High reputation (-1):
Posted by: yu yang Jian

79154189

Date: 2024-11-04 04:22:38
Score: 2.5
Natty:
Report link

Shake your phone which has the app build installed, configure bundler- Give your Device IP (Laptop) address and Port : 8081 (port your running) and Reload

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

79154183

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

I found the answer I dont know why people are down voting my question but the answer is the each region has the keys to it So in my case i was in different region and the keys was in disabled mode in different region. so i switched to the region and the keys showed up finally and deleted the key

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

79154181

Date: 2024-11-04 04:16:37
Score: 4
Natty:
Report link

Assuming that you've updated to Next 15, caching is no longer enabled by default.

https://nextjs.org/blog/next-15#get-route-handlers-are-no-longer-cached-by-default

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

79154177

Date: 2024-11-04 04:12:36
Score: 2
Natty:
Report link

It is the wrong Document import. You need to import from mongodb. Notice the attributes it says are missing.

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

79154173

Date: 2024-11-04 04:09:35
Score: 1
Natty:
Report link

Unfortunately, fully customizable multi-column layouts are not natively supported in Slack's Block Kit yet.

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

79154158

Date: 2024-11-04 03:55:33
Score: 0.5
Natty:
Report link

The solution that worked for me was from this post by Faruk Celik on the Microsoft Q&A site:

  1. Go to Settings/Apps/Installed Apps/
  2. Scroll down to find "Azure VPN Client", select "Advanced options"
  3. Click "Repair" button under "Reset" part
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: tehDorf

79154143

Date: 2024-11-04 03:41:31
Score: 1.5
Natty:
Report link

In such problems of branches annoying restriction, the easy way is to clean the table, rename/delete the branch and checkout from the origin branch.

But lookout! if you have things that you might want to save (and it's typical in such situation - Backup your branch don't delete it.

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

79154142

Date: 2024-11-04 03:41:31
Score: 1
Natty:
Report link

You can add the following line to your vite.config.ts file to resolve this issue-

fs.mkdirSync(baseFolder, { recursive: true });

Add this after the following statement-

const baseFolder =
env.APPDATA !== undefined && env.APPDATA !== ''
    ? `${env.APPDATA}/ASP.NET/https`
    : `${env.HOME}/.aspnet/https`;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tahmid

79154140

Date: 2024-11-04 03:39:30
Score: 1
Natty:
Report link

To improve readability, consider using the truncate and vertical arguments within the show() method to format the output better:

Setting truncate=False: By default, show() truncates columns that exceed 20 characters, making longer fields look incomplete and potentially causing misalignment. Setting truncate=False prevents this, allowing each column’s full content to be displayed.

Using vertical=True: When vertical=True is set, show() displays each row as a column of key-value pairs instead of as a wide horizontal table. This can be especially useful when examining individual rows or when columns have long data that makes horizontal viewing cumbersome.

Explanation: n=5: Limits the output to the first 5 rows. truncate=False: Ensures that no data is truncated, making it easier to see full values in each column. vertical=True: Shows each row in a vertical format, with each column appearing on a new line, making it more readable when reviewing individual rows.

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

79154139

Date: 2024-11-04 03:39:30
Score: 2.5
Natty:
Report link

Are you trying to multithread?

-P maxprocs, --max-procs=maxprocs
   Parallel mode: run at most maxprocs invocations of utility at
   once.  If maxprocs is set to 0, xargs will run as many processes
   as possible.
... | xargs -P 0 -I % ln % /tmp/images/ 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: nntrn

79154138

Date: 2024-11-04 03:38:30
Score: 1.5
Natty:
Report link

Spring 2 compatible with java 1.8, the example spring 2 here works: https://github.com/codefresh-contrib/spring-boot-2-sample-app

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: yu yang Jian

79154134

Date: 2024-11-04 03:36:30
Score: 1.5
Natty:
Report link

Spring 2 compatible with java 1.8, use example spring 2 here: https://github.com/codefresh-contrib/spring-boot-2-sample-app

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: yu yang Jian

79154133

Date: 2024-11-04 03:35:29
Score: 2
Natty:
Report link

I know in .NET 8 the [FromForm] attribute is not needed so I removed that from the Angular UI and passing it as formdata. Not sure why still the data is coming as empty but file is passed. Can anyone help how to resolve this?

When the [ApiController] attribute applies an inference rule for action parameters of type IFormFile and IFormFileCollection. The multipart/form-data request content type is inferred for these types, so there is no need to add the [FromForm] attribute. But for the string type parameters it is no easier to inferred. So, we have to add the FromForm attribute before it. Since the parameter might be empty, you can modify your code as below:

public async Task<ActionResult> upload(IFormFile file, [FromForm]string? data)
{
    // ....
}

or

public async Task<ActionResult> upload([FromForm]IFormFile file, [FromForm]string? data)
{
    // ....
}
Reasons:
  • RegEx Blacklisted phrase (1.5): how to resolve this?
  • RegEx Blacklisted phrase (3): Can anyone help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Zhi Lv

79154127

Date: 2024-11-04 03:30:29
Score: 3
Natty:
Report link

A bit late but, now there's a wordpress plugin available for this this allows you to use custom stickers, static and animated stickers on your wordpress comments.

https://wpcommentstickers.com/

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

79154122

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

Well, for what it's worth, I have put something together that achieves what I hope will work tomorrow when I have live trade data.

I'm new to Python and it would be interesting to get some feedback on the below code. I'm sure there's a ton of optimizations that can be had. I find pandas and dataframes to be subjects I don't have a handle on.

import yfinance as yf
import pandas as pd
from concurrent.futures import ThreadPoolExecutor, as_completed
import time
import datetime
import pytz


def fetch_stock_hist_data(ticker):
    try:
        stock = yf.Ticker(ticker)
        hist_data = stock.history(period="1d", interval='1m')

        # add symbol column
        hist_data.insert(0, 'Symbol', ticker)
        # only use the last 5 results
        hist_data = hist_data.tail()
        hist_data.reset_index(drop=True, inplace=True)

        one_min_vol = 0
        two_min_vol = 0
        five_min_vol = 0

        # Iterate using range
        for i in range(len(hist_data)):
            five_min_vol += hist_data.iloc[i].to_dict().get('Volume')
            if i > 2:
                two_min_vol += hist_data.iloc[i].to_dict().get('Volume')
            if i > 3:
                one_min_vol += hist_data.iloc[i].to_dict().get('Volume')

        hist_last_row = hist_data.iloc[[-1]]

        new_df = pd.DataFrame(hist_last_row)
        drop_columns = ['Open', 'High', 'Low', 'Close', 'Volume', 'Dividends', 'Stock Splits']
        new_df = new_df.drop(columns=drop_columns)

        # Add columns for 1, 2 and 5 minute volumes
        new_df.insert(1, 'Lst1MinVol', one_min_vol)
        new_df.insert(2, 'Lst2MinVol', two_min_vol)
        new_df.insert(3, 'Lst5MinVol', five_min_vol)

        return new_df
    except Exception as e:
        print(f"Error fetching data for {ticker}: {e}")
        return None

def fetch_curr_stock_data(ticker):
    info = yf.Tickers(ticker).tickers[ticker].info
    data = [ticker, f"{info['currentPrice']}", f"{info['volume']}"]
    return data


def fetch_multiple_stocks(tickers):
    with ThreadPoolExecutor() as executor:
        futures = [executor.submit(fetch_stock_hist_data, ticker) for ticker in tickers]

        results = []
        for future in as_completed(futures):
            result = future.result()

            if result is not None:
                results.append(result)

    return pd.concat(results)


def fetch_curr_stocks(tickers):
    table_title = ['Symbol', 'Price', 'TotVolume']
    prevVol_df = pd.DataFrame(columns = ['Symbol', 'PrevVolume'])

    with ThreadPoolExecutor() as executor:
        while True:
            df = pd.DataFrame(columns = table_title)

            results = list(executor.map(fetch_curr_stock_data, tickers))

            # Adds items from results
            for result in results:
                df.loc[len(df)] = result

            # Convert TotVolume from string to number
            df['TotVolume'] = pd.to_numeric(df['TotVolume'], errors='coerce')

            # Copy volume data for each symbol to a new df.
            prevVol_df = df[['Symbol', 'TotVolume']].copy()
            prevVol_df.rename(columns={'TotVolume': 'PrevVolume'}, inplace=True)

            # Create a new df by merging df and prevVol_df
            tmp_df = pd.merge(df, prevVol_df, on='Symbol', how='left')

            curr_volume = tmp_df['TotVolume'].astype(int) - tmp_df['PrevVolume'].astype(int)

            tmp_df.insert(2, 'CurrVol', curr_volume)

            return tmp_df


if __name__ == "__main__":

    new_york_tz = pytz.timezone('America/New_York')
    tickers = ["AAPL", "GOOG", "MSFT"]
#    tickers = ["AAPL"]

    while True:
        # Get current time and format as 09:30:00
        time_object = datetime.datetime.now(new_york_tz)
        curr_time = time_object.strftime('%H:%M:%S')

        # Get stock info for tickers
        df_curr = fetch_curr_stocks(tickers)

        # Get stock historical data for last 5 minutes today.
        df_hist = fetch_multiple_stocks(tickers)

        #########################
        # Merge df_curr and df_hist

        cols_to_copy = df_hist[['Lst1MinVol',  'Lst2MinVol',  'Lst5MinVol']]

        # Merge df_hist and df2 on col0 to ensure data integrity
        merged_df = pd.merge(df_curr, df_hist[['Symbol', 'Lst1MinVol',  'Lst2MinVol',  'Lst5MinVol']], on='Symbol', how='left')

        #########################
        # Clean up dataframe data
        new_order = ['Symbol', 'Price', 'CurrVol', 'Lst1MinVol', 'Lst2MinVol', 'Lst5MinVol', 'TotVolume', 'PrevVolume']
        final_df = merged_df[new_order]

        # Get rid of 'PrevVolume' column
        final_df = final_df.drop(final_df.columns[-1], axis=1)

        # Insert time stamp as a new column
        final_df.insert(1, 'Time', curr_time)

        # Write data to csv file
        final_df.to_csv('/tmp/yf_data.csv', mode='a', header=False, index=False)
#       Output:
#       AAPL,22:01:16,222.91,0,979377,1403850,2299514,63519990
#       GOOG,22:01:16,172.65,0,387421,727605,1237449,21385165
#       MSFT,22:01:16,410.37,0,432180,558932,861389,23745361

        # Format volumes data with thousdand separator for readability when printing to screen
        final_df['CurrVol'] = final_df['CurrVol'].apply(lambda x: f"{x:,}")
        final_df['Lst1MinVol'] = final_df['Lst1MinVol'].apply(lambda x: f"{x:,}")
        final_df['Lst2MinVol'] = final_df['Lst2MinVol'].apply(lambda x: f"{x:,}")
        final_df['Lst5MinVol'] = final_df['Lst5MinVol'].apply(lambda x: f"{x:,}")
        final_df['TotVolume'] = final_df['TotVolume'].apply(lambda x: f"{x:,}")

        print(final_df)
#       Output:
#         Symbol      Time   Price CurrVol Lst1MinVol Lst2MinVol Lst5MinVol   TotVolume
#       0   AAPL  22:06:38  222.91       0    979,377  1,403,850  2,299,514  63,519,990
#       1   GOOG  22:06:38  172.65       0    387,421    727,605  1,237,449  21,385,165
#       2   MSFT  22:06:38  410.37       0    432,180    558,932    861,389  23,745,361

        time.sleep(10)

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tex

79154120

Date: 2024-11-04 03:28:28
Score: 3.5
Natty:
Report link

To fix this, I added @mutable property to the Network Description (.ned) file of LinearMobility under inet/mobility/single/. In order to change the parameters during runtime, the parameter should be mutable. Mutable parameters can be set to a different value during runtime

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @mutable
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nishani Kasineshan

79154102

Date: 2024-11-04 03:17:25
Score: 0.5
Natty:
Report link

I can reproduce the same error when I try to add a MI by its Object ID.

enter image description here

If you do the same, please add it to Azure DevOps by its Name or Application ID.

Go to your tenant's Enterprise applications page, change Application type to All Applications, search your target MI by its Object ID. enter image description here

Add it to Azure DevOps by Name or Application ID.

enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Ziyang Liu-MSFT

79154100

Date: 2024-11-04 03:15:24
Score: 2.5
Natty:
Report link

CREATE TABLE Persons ( PersonID int, LastName varchar(255), FirstName varchar(255), Address varchar(255), City varchar(255) );

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ธิดาวรรณ แสงแก้ว

79154098

Date: 2024-11-04 03:14:22
Score: 7 🚩
Natty: 4
Report link

Is there a solution to this problem now? I have encountered this problem before and it has been resolved. But I encountered it again and it didn't work well. You can refer to this article for details and try it out

https://blog.csdn.net/m0_66975650/article/details/143039495?spm=1001.2014.3001.5501

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (3): Is there a solution
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a solution to this
  • Low reputation (1):
Posted by: 徐翔宇

79154093

Date: 2024-11-04 03:09:21
Score: 1.5
Natty:
Report link

I hope this is helpful, I got stuck on the same problem but with the help of ChatGTP and Claude AI, I was able to come across one possible solution.

I am using localhost in this example and tailwind CSS in a MERN Stack project.

-------------------------------Passport Setup--------------------------------

import passport from "passport";
import { Strategy as GoogleStrategy } from "passport-google-oauth20";

import User from "../models/user.model.js";
import dotenv from "dotenv";

dotenv.config();

// Configure Passport with a Google strategy for authentication
passport.use(
  "google",
  new GoogleStrategy(
    {
      clientID: process.env.GOOGLE_CLIENT_ID,
      clientSecret: process.env.GOOGLE_CLIENT_SECRET,
      callbackURL: "/api/auth/google/callback",
    },
    /**
     * Verify the user's credentials using Google.
     *
     * This function is called by Passport when a user attempts to log in with their Google account.
     * It:
     * 1. Searches for a user with the provided Google ID.
     * 2. If no user is found, it creates a new user with information from the Google profile.
     * 3. Returns the user object.
     * 4. Passes any errors to the `done` callback.
     *
     * @param {string} accessToken - The access token provided by Google.
     * @param {string} refreshToken - The refresh token provided by Google.
     * @param {Object} profile - The user's profile information from Google.
     * @param {Function} done - The callback to call with the authentication result.
     */
    async (accessToken, refreshToken, profile, done) => {
      try {
        let user = await User.findOne({ googleId: profile.id });
        // Additional check to prevent duplicate accounts if Google email changes
        if (!user) {
          user = await User.findOne({ email: profile._json.email });
        }

        if (!user) {
          // Generate a random password
          const randomPassword = User.prototype.generateRandomPassword();
          // Create a new user
          user = await User.create({
            googleId: profile.id,
            name: profile._json.name,
            email: profile._json.email,
            password: randomPassword, // Set the generated password
            profilePicture: profile._json.picture,
          });
        }
        return done(null, user);
      } catch (error) {
        return done(error, false);
      }
    }
  )
);

/**
 * Serialize the user for the session.
 *
 * This function is called when a user is authenticated. It:
 * 1. Takes the user object and stores the user ID in the session.
 * 2. This ID is used to identify the user in subsequent requests.
 *
 * @param {Object} user - The authenticated user object.
 * @param {Function} done - The callback to call with the serialized user ID.
 */
passport.serializeUser((user, done) => {
  done(null, user.id);
});

/**
 * Deserialize the user from the session.
 *
 * This function is called on each request to retrieve the user object based on the user ID stored in the session. It:
 * 1. Finds the user by their ID.
 * 2. Passes the user object to the `done` callback.
 * 3. Passes any errors to the `done` callback if the user cannot be found.
 *
 * @param {string} id - The user ID stored in the session.
 * @param {Function} done - The callback to call with the user object or an error.
 */
passport.deserializeUser(async (id, done) => {
  try {
    const user = await User.findById(id);
    done(null, user);
  } catch (err) {
    done(err);
  }
});

export default passport;

------------------------------- Auth Controller --------------------------------

import passport from "../lib/PassportSetup.js";
import User from "../models/user.model.js";

/**
 * Initiates Google authentication.
 *
 * This function handles initiating the Google OAuth2 authentication process by:
 * 1. Redirecting the user to Google's OAuth2 login page.
 *
 * @param {Object} req - The request object for initiating Google authentication.
 * @param {Object} res - The response object to redirect the user to Google.
 * @param {Function} next - The next middleware function in the stack.
 */
export const googleAuth = passport.authenticate("google", {
  scope: ["profile", "email"],
});

/**
 * Handles the callback from Google OAuth2.
 *
 * This function handles the callback after the user has authenticated with Google. It:
 * 1. Uses Passport's 'google' strategy to authenticate the user.
 * 2. Redirects the user to the home page on successful authentication.
 * 3. Handles authentication errors by redirecting to the login page with an error message.
 *
 * @param {Object} req - The request object containing Google OAuth2 callback data.
 * @param {Object} res - The response object to redirect the user.
 * @param {Function} next - The next middleware function in the stack.
 */
export const googleAuthCallback = (req, res, next) => {
  passport.authenticate("google", {
    successRedirect: `${process.env.CLIENT_URL}/oauth/callback`,
    failureRedirect: `${process.env.CLIENT_URL}/login`,
    failureFlash: true,
  })(req, res, next);
};

/**
 * Handles successful authentication callbacks from OAuth providers.
 *
 * This function is triggered when a user is successfully authenticated via an OAuth provider (e.g., Google, GitHub).
 * It:
 * 1. Checks if a user object is present on the request, which is set by Passport after successful authentication.
 * 2. Responds with a 200 status and user information if authentication is successful.
 * 3. Includes the user's ID, name, email, profile picture, and role in the response.
 *
 * @param {Object} req - The request object, containing authenticated user data.
 * @param {Object} res - The response object used to send back the authentication result.
 * @param {Function} next - The next middleware function in the stack (not used in this function).
 * @returns {Object} JSON object with user data on success, or an error status if authentication fails.
 */
export const authCallbackSuccess = (req, res, next) => {
  return res.status(200).json({
    success: true,
    status: 200,
    user: {
      id: req.user.id,
      name: req.user.name,
      email: req.user.email,
      profilePicture: req.user.profilePicture,
      role: req.user.role,
    },
  });
};

------------------------------- Auth Routes --------------------------------

import express from "express";

import {
  googleAuth,
  googleAuthCallback,
  authCallbackSuccess,
} from "../controllers/auth.controller.js";

const router = express.Router();

// Passport Google OAuth2 login
router.get("/google", googleAuth);

// Handles Passport Google OAuth2 callback
router.get("/google/callback", googleAuthCallback);

// Returns the user object after Passport Google OAuth2, Github, or any other callback
router.get("/callback/success", isAuthenticated, authCallbackSuccess);

export default router;

------------------------ React OAuthButtons.jsx -------------------------

import React from 'react';
import { useSelector } from 'react-redux';

function OAuthButtons() {
    const { loading } = useSelector((state) => state.user);

    const handleOAuth = (provider) => {
        window.location.href = `http://localhost:4000/api/auth/${provider}`;
    }

    return (
        <div className='flex flex-col gap-3'>
            <button
                className="bg-red-700 text-white rounded-lg p-3 uppercase hover:bg-red-600 disabled:bg-red-400"
                type="button"
                onClick={() => handleOAuth("google")}
                disabled={loading}
            >
                Continue with Google
            </button>
            <button
                className="bg-blue-700 text-white rounded-lg p-3 uppercase hover:bg-blue-600 disabled:bg-blue-400"
                type="button"
                onClick={() => handleOAuth("github")}
                disabled={loading}
            >
                Continue with Github
            </button>
        </div>
    );
}

export default OAuthButtons;

------------------------ React OAuthCallback.jsx -------------------------

import React, { useEffect } from 'react';
import axios from 'axios';
import { useDispatch } from 'react-redux';
import { useNavigate } from 'react-router-dom';
import { loginStart, loginSuccess, loginFailure } from '../../redux/user/userSlice.js';

function OAuthCallback() {
    const dispatch = useDispatch();
    const navigate = useNavigate();

    useEffect(() => {
        const handleCallback = async () => {
            try {
                dispatch(loginStart());
                const response = await axios.get(
                    `http://localhost:4000/api/auth/callback/success`,
                    { withCredentials: true }
                );
                dispatch(loginSuccess({ user: response.data.user }));
                navigate('/');
            } catch (error) {
                dispatch(loginFailure({
                    error: error.response?.data?.message || "Login using Google failed! Please try using email and password!"
                }));
                navigate('/login');
            }
        };

        handleCallback();
    }, [dispatch, navigate]);

    return (
        <div className="flex items-center justify-center min-h-screen">
            <div className="animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-red-700"></div>
        </div>
    );
}

export default OAuthCallback;

------------------------ React App.jsx -------------------------

import React from 'react';
import { BrowserRouter, Routes, Route } from "react-router-dom";

import NavigationBar from './components/Navigation/NavigationBar.jsx';
import Home from './pages/Static/Home.jsx';
import About from './pages/Static/About.jsx';
import Register from './pages/Auth/Register.jsx';
import Login from './pages/Auth/Login.jsx';
import OAuthCallback from './components/Auth/OAuthCallback.jsx';

function App() {
  return (
    <BrowserRouter>
      <NavigationBar />
      <Routes>
        <Route path='/' element={<Home />} />
        <Route path='/about' element={<About />} />
        <Route path='/register' element={<Register />} />
        <Route path='/login' element={<Login />} />
        <Route path="/oauth/callback" element={<OAuthCallback />} />
      </Routes>
    </BrowserRouter>
  )
}

export default App;

------------------------ React (Sample Implementation) Login.jsx -------------------------

import React, { useState } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import axios from "axios";
import { useDispatch, useSelector } from 'react-redux';
import { loginStart, loginSuccess, loginFailure } from '../../redux/user/userSlice.js';
import OAuthButtons from '../../components/Auth/OAuthButtons.jsx';

function Login() {
  const [formDate, setFormData] = useState({
    email: "",
    password: "",
  });
  const navigate = useNavigate();
  const dispatch = useDispatch();
  const { loading, error } = useSelector((state) => state.user);

  const handleChange = (e) => {
    setFormData({ ...formDate, [e.target.id]: e.target.value });
  }

  const handleSubmit = async (e) => {
    e.preventDefault();
    try {
      dispatch(loginStart());
      const response = await axios.post("http://localhost:4000/api/auth/login", formDate, { withCredentials: true });
      const data = await response.data;
      dispatch(loginSuccess({ user: data.user }));
      navigate("/profile");
    } catch (error) {
      dispatch(loginFailure({ error: error.response?.data?.message || "An unexpected error occurred. Please try again." }));
    }
  }

  return (
    <div className='p-3 max-w-lg mx-auto'>
      <h1 className='text-3xl text-center font-semibold my-7'>Login</h1>
      <form onSubmit={handleSubmit} className='flex flex-col gap-4'>
        <input type="email" placeholder='Email' id='email' className='bg-slate-100 p-3 rounded-lg' onChange={handleChange} />
        <input type="password" placeholder='Password' id='password' className='bg-slate-100 p-3 rounded-lg' onChange={handleChange} />
        <button type='submit' disabled={loading} className='bg-slate-700 text-white p-3 rounded-lg uppercase hover:opacity-95 disabled:opacity-75 cursor-pointer'>
          {loading ? "Loading..." : "Login"}
        </button>
        <div className='border-b'></div>
        <OAuthButtons />
      </form>
      <div className='flex gap-2 mt-5'>
        <p>Don't an account?</p>
        <span className='text-blue-500'><Link to={"/register"}>Register</Link></span>
      </div>
      <div>
        <p className='text-red-700'>{error}</p>
      </div>
    </div>
  )
}

export default Login;
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • No latin characters (1):
  • Filler text (0.5): -------------------------------
  • Filler text (0): --------------------------------
  • Filler text (0): -------------------------------
  • Filler text (0): --------------------------------
  • Filler text (0): -------------------------------
  • Filler text (0): --------------------------------
  • Filler text (0): ------------------------
  • Filler text (0): -------------------------
  • Filler text (0): ------------------------
  • Filler text (0): -------------------------
  • Filler text (0): ------------------------
  • Filler text (0): -------------------------
  • Filler text (0): ------------------------
  • Filler text (0): -------------------------
  • Low reputation (1):
Posted by: Jeel Patel

79154088

Date: 2024-11-04 03:03:20
Score: 1.5
Natty:
Report link

Zendesk database is distributed, so no ACID properties. As noted here, it can take a few minutes to Zendesk Support index new and modified tickets: Zendesk Support search reference

More explanations on this help center article: Search API Delayed Results vs Users API

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

79154085

Date: 2024-11-04 03:00:19
Score: 1
Natty:
Report link

Run the following command:

flutter config --jdk-dir <path_to_jdk>

If you rerun flutter doctor --verbose after this you should see it now updated.

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

79154073

Date: 2024-11-04 02:54:18
Score: 0.5
Natty:
Report link

Using dynamic import() syntax, which is a function and allows you to conditionally import modules at runtime. Here’s how to implement it:

import { mainURL } from '../../support/helperFunctions.js';

let dataModule;

if (mainURL.includes('dev')) {
    dataModule = import('../../../data/dataDev.js');
} else {
    dataModule = import('../../../data/data.js');
}

// Use an async function to handle the dynamic import and access the module's exports
async function loadData() {
    const { coreData, lastUpdated } = await dataModule;
    console.log(coreData, lastUpdated);
    // You can now use coreData and lastUpdated as needed
}

// Call loadData() to trigger the import
loadData();
  1. Dynamic Import: import() returns a promise, so we can use await to get the module's exports.
  2. Async Function: Since import() is asynchronous, you need to wrap it in an async function to handle the promise.
(async () => {
  if (somethingIsTrue) {
    // import module for side effects
    await import("/modules/my-module.js");
  }
})();

Refer to this article: Dynamic Imports MDN

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zeeshan Ali

79154069

Date: 2024-11-04 02:53:18
Score: 3.5
Natty:
Report link

Friend,

Do we have exact steps you have followed in detail please. Somehow I am unable to do similar setup. I am stuck with failed Keyclock page stating "error=client_not_found, reason=Cannot_match_source_hash"

Reasons:
  • RegEx Blacklisted phrase (1.5): I am stuck
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Phani Kumar M

79154066

Date: 2024-11-04 02:51:18
Score: 2
Natty:
Report link

Zendesk is discontinuing the use of URL & Branded Targets in favor of webhooks.

Take a look on the documentation of Webhooks here: Zendesk Webhooks

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

79154065

Date: 2024-11-04 02:51:15
Score: 6.5 🚩
Natty: 4.5
Report link

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
  • Low entropy (1):
  • Low reputation (1):
Posted by: Cuong Nguyen Cao

79154053

Date: 2024-11-04 02:39:13
Score: 0.5
Natty:
Report link

When working with a Microsoft Access database that is linked to SharePoint lists, you may encounter issues when trying to write to the database using Java, particularly with the UCanAccess library. The error messages you are seeing suggest that the linked SharePoint lists are causing the database to behave in a read-only manner.

Here are some potential solutions to address this issue:

  1. Ensure All Lookup Fields are Linked: When you link a SharePoint list to Access, make sure that all lookup fields in the underlying list are also linked in Access. If there are unlinked lookup fields, Access may treat the database as read-only. You can link all lookup columns by following these steps:

Link to the SharePoint list directly to ensure all lookup tables are present in Access.

Delete the linked table for the SharePoint list.

Re-link to the SharePoint view using the ImportSharePointList macro action.

  1. Disable Caching: If you are using Access 2010, consider disabling caching for SharePoint tables. This can be done by:

Going to File > Options > Current Database.

In the Caching Web Service area, select the "Never Cache" checkbox for Microsoft SharePoint tables.

  1. Check Permissions: Ensure that you have the necessary permissions to write to the SharePoint lists. If your permissions are set to read-only, you will not be able to perform write operations.

  2. Connection String: Verify that the connection string you are using in your Java application is correctly formatted and points to the right SharePoint list. Any errors in the connection string can lead to the warnings you are seeing.

  3. Use the Latest Version of UCanAccess: Make sure you are using the latest version of the UCanAccess library, as updates may include bug fixes and improvements for working with SharePoint.

By addressing these areas, you should be able to resolve the issues you are facing when trying to write to an Access database linked to SharePoint lists.

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

79154030

Date: 2024-11-04 02:22:09
Score: 2
Natty:
Report link

if you are using angular 18 , Go inside main.ts and make following changes

bootstrapApplication(AppComponent, {providers: [ provideHttpClient( withInterceptors([ exampleInterceptorInterceptor]), ) ]}).catch((err) => console.error(err));;

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sarad Vishwakarma - Fullstack

79154018

Date: 2024-11-04 02:14:07
Score: 2.5
Natty:
Report link

Rolling back the extension to v14.1 will mitigate the issue before there is any fix regarding this.

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

79154011

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

As @jitter answered, if using kind = BlobStorage, the accessTier in properties is required. reference

resource storageAccount1 'Microsoft.Storage/storageAccounts@2023-05-01' = {
  name: 'satest111'
  location: 'westus'
  sku: {
    name: 'Standard_LRS'
  }
  kind: 'BlobStorage'
  properties: {
    accessTier: 'Cold'
  }
}

enter image description here

Try to use kind = 'StorageV2' to make it easy if the kind not mandatory, v2 type is also recommanded.

resource storageAccount2 'Microsoft.Storage/storageAccounts@2023-05-01' = {
  name: 'satest222'
  location: 'westus'
  sku: {
    name: 'Standard_LRS'
  }
  kind: 'StorageV2'
}

here is a sample reference

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jitter
Posted by: wenbo

79154000

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

Thank you very much! After trying several different approaches the one that solved my connection issues was the proposed below:

import urllib connection_string = "DRIVER={SQL Server};Database=people;SERVER=gagan;UID=sa;PWD=admin1" connection_string = urllib.parse.quote_plus(connection_string) connection_string = "mssql+pyodbc:///?odbc_connect=%s" % connection_string

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Angelo Souza

79153997

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

Once you have the body set to 100% and the main set to 100% you can try using a negative margin to bring it in, I know it sounds like a cheap trick and honestly I am not the best developer as I am rather new, but I had a bootstrap project that for some reason had the same issue and using a negative margin was the only thing that worked for me.

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

79153986

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

app.js


import mysql from 'mysql';
import express from 'express';
import bodyParser from 'body-parser';
import session from 'express-session';

const app = express();

// Middleware setup
app.use(bodyParser.urlencoded({ extended: true }));
app.use(express.static('public'));
app.use(session({ secret: 'your-secret-key', resave: false, saveUninitialized: false }));
app.set('view engine', 'ejs');

// Create a MySQL connection pool
const con = mysql.createPool({
    host: "localhost",
    user: "root",
    password: "",
    database: "ecommerce_db",
});

// Utility function to execute database queries
function queryDatabase(query, params) {
    return new Promise((resolve, reject) => {
        con.query(query, params, (error, results) => {
            if (error) {
                reject(error);
            } else {
                resolve(results);
            }
        });
    });
}

// Utility function to calculate total and prepare cart data
function calculateCartDetails(cart, productResults) {
    const productMap = {};
    productResults.forEach(product => {
        productMap[product.id] = product;
    });

    let total = 0;
    cart.forEach(item => {
        const product = productMap[item.productId];
        if (product) {
            total += product.price * item.quantity; // Calculate total
        }
    });

    return { productMap, total };
}

// Product Routes
app.get('/', async (req, res) => {
    try {
        const products = await queryDatabase('SELECT * FROM products', []);
        res.render('pages/product', { products });
    } catch (error) {
        console.error('Database query error:', error);
        return res.status(500).send('Internal Server Error');
    }
});

// Cart Routes
app.get('/cart', async (req, res) => {
    const cart = req.session.cart || []; // Get cart from session

    if (cart.length === 0) {
        return res.render('pages/cart', { cart, total: 0 });
    }

    const productIds = cart.map(item => item.productId);
    const placeholders = productIds.map(() => '?').join(',');

    try {
        const productResults = await queryDatabase(`SELECT id, name, price FROM products WHERE id IN (${placeholders})`, productIds);
        const { productMap, total } = calculateCartDetails(cart, productResults);
        res.render('pages/cart', { cart, productMap, total });
    } catch (error) {
        console.error('Database query error:', error);
        return res.status(500).send('Internal Server Error');
    }
});

// Add to Cart (POST)
app.post('/cart/add', (req, res) => {
    const productId = req.body.productId;
    const quantity = parseInt(req.body.quantity, 10) || 1;

    // Initialize cart if it doesn't exist
    if (!req.session.cart) {
        req.session.cart = [];
    }

    // Check if the product is already in the cart
    const existingProduct = req.session.cart.find(item => item.productId === productId);
    if (existingProduct) {
        existingProduct.quantity += quantity; // Update quantity
    } else {
        req.session.cart.push({ productId, quantity }); // Add new product
    }

    res.redirect('/cart'); // Redirect to cart
});

// Remove from Cart (POST)
app.post('/cart/remove', (req, res) => {
    const productId = req.body.productId;

    // Filter out the product to remove
    req.session.cart = req.session.cart.filter(item => item.productId !== productId);
    res.redirect('/cart'); // Redirect to cart
});

// Payment Routes
app.get('/payment', async (req, res) => {
    const cart = req.session.cart || [];

    if (cart.length === 0) {
        return res.redirect('/'); // Redirect to products if cart is empty
    }

    const productIds = cart.map(item => item.productId);
    const placeholders = productIds.map(() => '?').join(',');

    try {
        const productResults = await queryDatabase(`SELECT id, name, price FROM products WHERE id IN (${placeholders})`, productIds);
        const { productMap, total } = calculateCartDetails(cart, productResults);
        res.render('pages/payment', { cart, productMap, total });
    } catch (error) {
        console.error('Database query error:', error);
        return res.status(500).send('Internal Server Error');
    }
});

// Payment Route
app.post('/payment', async (req, res) => {
    const { orderId, total } = req.body;

    try {
        // Render the payment page with order details
        res.render('pages/payment', { orderId, total });
    } catch (error) {
        console.error('Payment processing error:', error);
        return res.status(500).send('Internal Server Error');
    }
});

// Checkout Route (POST)
app.post('/checkout', async (req, res) => {
    const { orderId, paymentMethod } = req.body;

    try {
        // Update order status to "paid" and save the payment method
        await queryDatabase('UPDATE orders SET status = ?, payment_method = ? WHERE id = ?', ['paid', paymentMethod, orderId]);

        // Clear the cart after payment
        req.session.cart = [];

        // Render a success page or send a confirmation message
        res.render('pages/checkout', { orderId, paymentMethod });
    } catch (error) {
        console.error('Error updating payment status:', error);
        return res.status(500).send('Internal Server Error');
    }
});



// Start the server
app.listen(3001, () => {
    console.log('Server running on http://localhost:3001');
});

// Order Route
app.get('/order', async (req, res) => {
    const cart = req.session.cart || [];

    if (cart.length === 0) {
        return res.redirect('/'); // Redirect to products if cart is empty
    }

    const productIds = cart.map(item => item.productId);
    const placeholders = productIds.map(() => '?').join(',');

    try {
        // Retrieve product details for the cart items
        const productResults = await queryDatabase(
            `SELECT id, name, price FROM products WHERE id IN (${placeholders})`,
            productIds
        );
        const { productMap, total } = calculateCartDetails(cart, productResults);

        // Insert order into the database with status "not paid"
        const orderResult = await queryDatabase(
            'INSERT INTO orders (status, total) VALUES (?, ?)',
            ['not paid', total]
        );
        const orderId = orderResult.insertId;

        // Insert each cart item as an order item linked to the order ID
        await Promise.all(
            cart.map(item =>
                queryDatabase(
                    'INSERT INTO order_items (order_id, product_id, quantity, price) VALUES (?, ?, ?, ?)',
                    [orderId, item.productId, item.quantity, productMap[item.productId].price]
                )
            )
        );

        // Clear the cart after placing the order
        req.session.cart = [];

        // Render confirmation page with order details
        res.render('pages/order_confirmation', { orderId, total });
    } catch (error) {
        console.error('Database query error:', error);
        return res.status(500).send('Internal Server Error');
    }
});

cart.ejs

<body>
    <h1>Your Cart</h1>
    <ul>
        <% cart.forEach(item=> { %>
            <li>
                Product: <%= productMap[item.productId].name %> <br>
                    Price: $<%= productMap[item.productId].price.toFixed(2) %> <br>
                        Quantity: <%= item.quantity %> <br>
                            Total: $<%= (productMap[item.productId].price * item.quantity).toFixed(2) %><br>
                                <form action="/cart/remove" method="POST" style="display:inline;">
                                    <input type="hidden" name="productId" value="<%= item.productId %>">
                                    <button type="submit">Remove</button>
                                </form>
            </li>
            <% }) %>
    </ul>
    <h2>Total Price: $<%= total.toFixed(2) %>
    </h2>
    <a href="/order">Place Order</a>
    <a href="/">Continue Shopping</a>
</body>

</html>

checkout.ejs

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Payment Success</title>
</head>
<body>
    <h1>Pa

yment Successful!</h1>
    <p>Thank you for your payment for Order #<%= orderId %>.</p>
    <p>Your order status is now: Paid</p>
    <a href="/">Return to Home</a>
</body>
</html>

order_confirmation.ejs

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Order Confirmation</title>
</head>
<body>
    <h1>Order Confirmation</h1>
    <p>Thank you for your order!</p>
    <p>Order ID: <%= orderId %></p>
    <p>Total Amount: $<%= total.toFixed(2) %></p>
    <p>Status: Not Paid</p>

    <!-- Payment Button -->
    <form action="/payment" method="POST">
        <input type="hidden" name="orderId" value="<%= orderId %>">
        <input type="hidden" name="total" value="<%= total %>">
        <button type="submit">Proceed to Payment</button>
    </form>
</body>
</html>

payment.ejs

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Payment</title>
</head>
<body>
    <h1>Payment for Order #<%= orderId %></h1>
    <p>Total Amount: $<%= parseFloat(total).toFixed(2) %></p>

    <!-- Payment Form with Payment Method Selection -->
    <form action="/checkout" method="POST">
        <input type="hidden" name="orderId" value="<%= orderId %>">
        
        <h3>Select Payment Method:</h3>
        <label>
            <input type="radio" name="paymentMethod" value="Credit Card" required> Credit Card
        </label><br>
        <label>
            <input type="radio" name="paymentMethod" value="PayPal" required> PayPal
        </label><br>
        <label>
            <input type="radio" name="paymentMethod" value="Bank Transfer" required> Bank Transfer
        </label><br>

        <button type="submit">Complete Payment</button>
    </form>
</body>
</html>

product.ejs

<body>
    <header>
        <%- include('../partials/header') %>
    </header>

    <main>
        <h1>Products</h1>
        <ul>
            <% products.forEach(product => { %>
                <li>
                    <h2><%= product.name %></h2>
                    <p>Price: $<%= product.price %></p>
                    <p>Description: <%= product.description %></p>
                    <img src="<%= product.image %>" alt="<%= product.name %>" />
                    <form action="/cart/add" method="POST">
                        <input type="hidden" name="productId" value="<%= product.id %>">
                        <input type="number" name="quantity" value="1" min="1">
                        <button type="submit">Add to Cart</button>
                    </form>
                </li>
            <% }) %>
        </ul>
    </main>

    <footer>
        <%- include('../partials/footer') %>
    </footer>
</body>
</html>

CREATE TABLE orders (
    id INT AUTO_INCREMENT PRIMARY KEY,
    status VARCHAR(20),
    total DECIMAL(10, 2),
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE order_items (
    id INT AUTO_INCREMENT PRIMARY KEY,
    order_id INT,
    product_id INT,
    quantity INT,
    price DECIMAL(10, 2),
    FOREIGN KEY (order_id) REFERENCES orders(id),
    FOREIGN KEY (product_id) REFERENCES products(id)
);

ALTER TABLE orders ADD COLUMN payment_method VARCHAR(50);

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

79153970

Date: 2024-11-04 01:32:59
Score: 5
Natty: 4.5
Report link

Is there a way to friend all the tests within a class?

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is there a
  • High reputation (-1):
Posted by: WhatABeautifulWorld

79153968

Date: 2024-11-04 01:31:59
Score: 1.5
Natty:
Report link

Currently, the library google.cloud.secretmanager doesn't support importing though module-info.java. The Cloud Java SDK for Secret Manager doesn't work in a modularized project. The current known workaround is to repackage the JAR files. See thread: https://github.com/googleapis/google-cloud-java/issues/10975

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

79153964

Date: 2024-11-04 01:30:59
Score: 2.5
Natty:
Report link

Thanks for the reply, indeed the solution is to place these files with different extensions in different folders.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Juanda García

79153950

Date: 2024-11-04 01:14:55
Score: 2
Natty:
Report link

with com.github.skydoves:powerspinner:1.2.7 only add

languageSpinner.setIsFocusable(true)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dali Cos

79153942

Date: 2024-11-04 01:09:54
Score: 1.5
Natty:
Report link

For the above mentioned problem, To render conditionally I would highly suggest to use conditional parallel routes(Note: parallel routes don't work as expected for dynamic routes), But for a normal route it works like a charm and is part of the layout.

Also, if possible I would suggest you to use server component and rely on server functions for auth related checks and flows. This would possible help you in following ways

  1. Decouple the logic of the component hierarchy and avoid referring the context frequently.
  2. Keeps your application in-sync with the server's state of reality rather than referring the client side state, which could potentially be stale (important especially for the auth flow)

P.S: I understand that the passed child of client component can be a server component.


Second, if you have different route paths for authenticated and un-authenticated users, then as suggested by @lalit-fauzdar in his answer, use middleware to dynamically routes the users to the respective routes.


P.S: It would be helpful if you could share the error shown.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @lalit-fauzdar
  • Low reputation (0.5):
Posted by: JayMGurav

79153941

Date: 2024-11-04 01:07:54
Score: 3.5
Natty:
Report link

"delprioritychar" hint was beautiful. But it does works with "of DEL" only and not with "of CURSOR"

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

79153940

Date: 2024-11-04 01:05:54
Score: 3.5
Natty:
Report link

on webflow, this can be solved by selecting "disable responsiveness" inside the image setting.

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

79153937

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

You might rely on below code snippet from lekman.com showing logic app deployment. There he depends on bicep deploy but its outputs mechanisms are compliant: Access output variables by name reference

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

79153929

Date: 2024-11-04 00:51:51
Score: 0.5
Natty:
Report link

By using a combination of tail and head you should achieve it

Use head by getting all but the X last line of a file named file.txt .

head -n -X file.txt

It should work for .bash_history too and this could do the trick ?

head -n -X .bash_history > .bash_history

Use tail to keep the Y last line of a file named file.txt .

tail -n Y file.txt

you could combine this to have a script that create 2 temp files then merge them to .bash_history

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Antoine O

79153923

Date: 2024-11-04 00:44:50
Score: 3.5
Natty:
Report link

I had an issue in my dependency injection, there were to compose instances, one being rendered and one being updated.

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

79153905

Date: 2024-11-04 00:22:46
Score: 2.5
Natty:
Report link

If you're using Socket.IO (common in NestJS), make sure you chose the "Socket.IO" option and not the basic "WebSocket" request. That was my issue.

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

79153880

Date: 2024-11-04 00:02:43
Score: 2
Natty:
Report link

HOW CAN I RECOVER MY FUNDS ON BINARY OPTIONS-WIZARD ASSET RECOVERY In my quest for redemption, I scoured the internet for solutions to recover my lost bitcoin. From self-proclaimed experts to dubious recovery services, I explored every avenue in the hopes of finding a way to reclaim what was rightfully mine. It felt like an endless maze of false promises and dead ends. But just when I was about to lose hope, I stumbled upon Wizard Asset Recovery- a beacon of hope in a sea of scams. They distinguished themselves from the rest right away because to their knowledge of digital asset recovery and dedication to supporting people like myself. Their team was made up of knowledgeable experts who were familiar with the nuances of the blockchain, and I was interested in finding out more about how they approached the problem. Upon contacting Wizard Asset Recovery, I was greeted by a friendly and knowledgeable representative who took the time to understand my situation. They asked detailed questions to gather information about the loss and assessed the feasibility of recovery. This initial consultation gave me confidence that I was in capable hands and that my case would be treated with utmost professionalism. Wizard Asset Recovery is a go to tool for the best results for assistance. Get in Touch with Wizard Asset Recovery: Website: [email protected]

Reasons:
  • Blacklisted phrase (0.5): HOW CAN I
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): HOW CAN I
  • Low reputation (1):
Posted by: William Lucas

79153879

Date: 2024-11-04 00:00:43
Score: 2.5
Natty:
Report link

We are seeing the same thing occasionally on our MAUI app. It only happens on Android and I believe it is related to the following open bug.

https://github.com/dotnet/android/issues/9039

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

79153875

Date: 2024-11-03 23:59:43
Score: 2
Natty:
Report link

Alex from Kinde here. Apologies for the late reply!

Does Kinde store user data on their own servers?

Yes. We need to store the data to provide our customer auth as a service to you.

If so, does this mean Kinde owns the user data?

No. Your data is owned by you. Kinde is a custodian of that data on your behalf. "You own all data, information or content you and your Authorized Users upload into the Platform (Your Data), as well as any data or information output from the Platform using Your Data as input (Output Data)". This is set our in our Terms, see section 16 of https://docs.kinde.com/trust-center/agreements/terms-of-service/

Are there any potential security or privacy issues with this setup?

This is a balance that you need to decide yourself. The risk of setting up auth in house and having to maintain security updates and feature requests vs relying on a third party company who does this for a living.

Being biased on this answer, we think Kinde is an excellent choice to rely on your customer auth needs. We are constantly updating our product based on feedback so that we meet our customer's expectations, regularly go through security and compliance tests to ensure that we're as secure as possible, and have an awesome team to keep us at the top of our game. This is all done so that you can focus on building your product rather than tinkering with auth.

Hope that answers your question. Feel free to reach out to us via the Slack community or the live chat on our website.

Cheers, Alex

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Alex Norman

79153861

Date: 2024-11-03 23:46:40
Score: 0.5
Natty:
Report link

Any project that you want to receive changes when the starter kit is updated must be a branch of the starter kit. I would create the started kit project and create a branch for starter kit updated and a branch for each of the projects you use the starter kit to create. When you commit a change from the starter kit update you would need to push them to any projects under the starter kit that you wanted to receive the update. Make sure that only the starter kit update branch updates the starter kit project.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Edney Holder

79153857

Date: 2024-11-03 23:39:38
Score: 1.5
Natty:
Report link

You need to create app_name/migrations/__init__.py for every app you have.

or instead you can run: python manage.py makemigrations app_name

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

79153846

Date: 2024-11-03 23:30:37
Score: 1.5
Natty:
Report link

In my case, its because my objectVersion = 70 then i change it into 56 and its works to pod init and pod install.

You can find this objectVersion:

  1. Open finder, and open your project folder
  2. Find yourProject.xcodeproj
  3. Tap with 2 fingers/open the action windows
  4. Klik on Show Package Contents
  5. Open file project.pbxproj
  6. Change objectVersion into 56
  7. Save it, then open the terminal and you can try to pod init again
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Septian Nugraha

79153835

Date: 2024-11-03 23:21:35
Score: 5
Natty: 5
Report link

Are you looking to attach the csv output in the email? If so you can't do that. This medium article provides an alternative option. https://medium.com/@sanusa100/how-to-email-snowflake-data-as-attachments-without-attaching-files-e2844669a5a9

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kushal Patel

79153824

Date: 2024-11-03 23:12:33
Score: 0.5
Natty:
Report link

As you probably noticed C & C++ are different languages.

Is it possible to make it compile when included into C++ code without making the struct type declaration untested?

Yes it is:

#include <stdio.h>

struct foo {
    struct bar {
        int baz;
    } bar;
};

int main() {
    struct foo::bar a;  // Use foo::bar to refer to the nested struct
    a.baz = 2;
    printf("%d", a.baz);
    return 0;
}
Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: 0___________

79153821

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

The query will not look like that. PostgREST will write a CTE query for most of these. The syntax you have from the SDK isn't directly related to SQL, it's a Rest API url builder. If you want to see the query you can look in your Postgres logs inside the Supabase dashboard. Supabase also has a tool for converting SQL to the REST API https://supabase.com/docs/guides/api/sql-to-rest, however they don't have a tool that does the opposite.

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

79153808

Date: 2024-11-03 23:02:31
Score: 1
Natty:
Report link

If you look at the blue lines below the error you can trace back to the script where your getting this error. The error is basically telling you it cannot find the key your looking for of that players data, either you mistyped the key's name (its case sensitive as always) when you used the :Get , :Set or :Update function (i dont know which one from just the one line of error you gave me) or you need to just give it a few minutes (thats how it worked out for me). I dont know why you posted this on stack overflow use roblox dev forum instead, I also dont know why Im replying after 9 months

Reasons:
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anonymommy

79153807

Date: 2024-11-03 22:57:30
Score: 2.5
Natty:
Report link

The Kinde SDK is upto v1.3.1 now, are you able to retry and see if you are still seeing the issue?

Also, check that you have the crypto-js dependency installed. The SDK requires crypto-js version 3.3.0.

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

79153804

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

You can move your adjust the CSS in footer class like following style

.footer {
   color: #ffffff;
    padding: 1.5rem 0;
    text-align: center;
    transition: background-color 0.3s ease; 
    height: 16%;
    border: 15px solid red;
    position: absolute; 
    bottom: 0;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kasun Dananjaya

79153785

Date: 2024-11-03 22:47:28
Score: 2.5
Natty:
Report link

Finally, this helped me! Xcode 15.4, and the app crashes at runtime insisting that NSCameraUsageDescription hasn't been included in info.plist, even though it has. I also didn't realise I could add a row to Info > Custom iOS Target Properties, since the + symbol used on the Build Settings tab isn't visible. Turns out that right-clicking as described above and choosing Privacy - Camera Usage adds NSCameraUsageDescription to the properties list. Bingo! Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: flowerpowered

79153782

Date: 2024-11-03 22:46:28
Score: 3.5
Natty:
Report link

Have a look at inheritance https://www.doctrine-project.org/projects/doctrine-orm/en/3.3/reference/inheritance-mapping.html

It takes care of FKs and relations for you

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Небојша Камбер

79153777

Date: 2024-11-03 22:43:27
Score: 1
Natty:
Report link

Removing the leading (1 or more) whitespace first would do the trick:

"    1234    ".strip().length()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: piritocle

79153768

Date: 2024-11-03 22:38:26
Score: 1
Natty:
Report link

I might not have exactly what your looking for but you can use this to get the information at least, you can then use it to scope it differently for your need :)

# Retrieve all private endpoints in the subscription
$privateEndpoints = Get-AzPrivateEndpoint

# Check if private endpoints exist
if ($privateEndpoints.Count -eq 0) {
    Write-Host "No private endpoints found in this subscription."
    exit
}

# Loop through each private endpoint and output information
foreach ($endpoint in $privateEndpoints) {
    Write-Output "Resource Group: $($endpoint.ResourceGroupName)"
    Write-Output "Private Endpoint Name: $($endpoint.Name)"

    # Initialize an array to store FQDNs
    $fqdnList = @()
    
    # Loop through private link service connections to build FQDNs
    foreach ($connection in $endpoint.PrivateLinkServiceConnections) {
        if ($connection.GroupIds -and $connection.GroupIds.Count -gt 0) {
            foreach ($group in $connection.GroupIds) {
                $fqdnList += "$($group).privatelink.$($connection.Name).azure.net"
            }
        }
    }

    # Display FQDNs or "None found" if empty
    if ($fqdnList.Count -gt 0) {
        Write-Output "FQDNs:"
        foreach ($fqdn in $fqdnList) {
            Write-Output "  - $fqdn"
        }
    } else {
        Write-Output "FQDNs: None found"
    }

    # Retrieve the private IP addresses from network interfaces
    Write-Output "IP Addresses:"
    $networkInterface = Get-AzNetworkInterface -ResourceId $endpoint.NetworkInterfaces.Id

    # Loop through IP configurations to fetch private IP addresses
    $ipAddresses = $networkInterface.IpConfigurations | ForEach-Object { $_.PrivateIpAddress }
    
    if ($ipAddresses.Count -gt 0) {
        foreach ($ip in $ipAddresses) {
            Write-Output "  - $ip"
        }
    } else {
        Write-Output "  - None found"
    }

    Write-Output "-----------------------------------------"
}

Hope this is helpful and remember shared knowledge is the best knowledge 😊 Best Regards, Timmy Malmgren


If the Answer is helpful, please click "Accept Answer" and upvote it as it helps others to find what they are looking for faster!

Reasons:
  • Blacklisted phrase (0.5): Best Regards
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (0.5): upvote
  • Whitelisted phrase (-1.5): you can use
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Timmy Malmgren

79153766

Date: 2024-11-03 22:36:25
Score: 2.5
Natty:
Report link

I have same issue using MVC .NET 4.7.2

but solved by adding these configuration to web.config

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="UrlRoutingModule-4.0" />
      <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" />
    </modules>
  </system.webServer>
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): I have same issue
  • Low reputation (0.5):
Posted by: ASalameh

79153764

Date: 2024-11-03 22:35:23
Score: 6 🚩
Natty:
Report link

yes, I completed the certifcation process today with Spectrum Shades. What did you need to know?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Ünsal Genc

79153758

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

Make a logical calculation like a child divide 12÷5. Consider a longer digit 123456÷54321 and start with len function, this will enable you to identify that there are two folfs of 54321 in 123456. So seperate each digit of 54321 and multiply each with 2 (keep 10th adding to the next level). Now index the result and subtract from the index of 123456 individual digits. Make a program for 12÷5 and you will be able to divide large numbers upto google numbers and above.

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

79153755

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

I recently tried figuring out the math behind Gimp's Colour Erase blend mode (basically the same as the Colour to Alpha filter), and this is what I ended up with:
[C++ Code]
[Detailled explanations of how it works.]

The gist of it is: With a fully opaque bottom layer, Normal Blend is just a linear interpolation. With both layers fully opaque, Colour Erase is the inverse operation of that Normal Blend.

In your colour space of choice, trace a line that passes through both the Top and Bottom colours. Starting from Bottom, walk that line away from Top until it you meet the border of the unit cube (i.e, the limit your colour gamut). That point is your resulting colour. Its opacity is the proportion of the distance top-bottom, compared to the distance top-result.

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

79153750

Date: 2024-11-03 22:22:20
Score: 3
Natty:
Report link

I wrote a package for your need, try read the example section and implement that:

https://github.com/seddighi78/laravel-nats

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
Posted by: A.Seddighi

79153747

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

Under windows 11, the filedialog is so "old fashioned". But, I heard, in the next release, a "modern" version will be available. The current filedialog doesn't even show the correct starting folders, and is unusable in a prod environment.

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

79153744

Date: 2024-11-03 22:19:20
Score: 2.5
Natty:
Report link

Maybe use Runtime parameters?

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/runtime-parameters?view=azure-devops&tabs=script

"Runtime parameters let you have more control over what values can be passed to a pipeline. With runtime parameters you can:

Supply different values to scripts and tasks at runtime"

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: Bing Ren