79227912

Date: 2024-11-26 18:45:12
Score: 4
Natty:
Report link

Excellent discussion on this here.

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

79227906

Date: 2024-11-26 18:43:12
Score: 5.5
Natty:
Report link

Hi everyone ı got same problem and ı solved that here is the link https://www.youtube.com/watch?v=3WueA6ZJV5c .Its so simple to understand and do you are only should assignt the folder on the visual studyo and after that you can reach go live have a good day

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): good day
  • Blacklisted phrase (1): here is the link
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ömer Yasin Karabağ

79227904

Date: 2024-11-26 18:42:11
Score: 2
Natty:
Report link

I think the updated version Answer to this question is:

"the API does not explicitly provide a separate "Added/Excluded" column, so you'll need to analyze the data to determine the status based on whether the search term is present in your negative keyword list."

so you have to pull the search term and compared to see if it is already in the adgroup, adgroup negative keyword, campaign negative keyword and or 'Shared Library' 'Exclusion lists'

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

79227891

Date: 2024-11-26 18:38:10
Score: 1
Natty:
Report link

i was able to get this to work for my aws aurora postgresql instance by running the following command first:

grant set on parameter log_statement to <master_user>;

then i was able to run the alter role command

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

79227887

Date: 2024-11-26 18:37:10
Score: 1.5
Natty:
Report link

I had the same problem. Removing app.UseHttpsRedirection(); in program.cs made it work.Se code here Github ApireDaprPubSubDemo

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

79227886

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

If I correctly understood your question, you have a tank which is composed of a body, which moves with WASD, and a turret linked with the camera which move with mouse movement. Since you haven't posted code, I suppose you wanna hear the concept more than the code.

The problem is how you structured your tree. You said:

I have a tank on the scene with a turret attached as a child object

Since the turret is a child of the tank, EVERY rotation, POSITION, scale update on father are applied to childs (for Godot's logic). So this is a problem, because if you rotate the tank, even the turret will rotate even if you haven't moved the mouse.

In order to fix this, you should have a tree where the father is a generic Node with two childs (two nodes), one for the turret and the camera and one for the body, both with their own script to change with user input.

This should fix this

I implemented something similar, but when the tank rotates, the turret rotates with it,

To do something "smoothly rotate" I suppose you want a system where camera rotates and after a "delay" turret rotates too. You can do so using lerp. I link to the official documentation for more

As isherwood mentioned, your question is incomplete. Please, provide more informations (and some code) if you need more assistance/what I said is not what you are searching for.

Greetings

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

79227885

Date: 2024-11-26 18:36:09
Score: 1
Natty:
Report link

The issue I thought I had with generating a uuid from my octave script was a red herring. Within the the function I was calling, I'm doing extract(epoch from tts.timestampt); it was the numeric value returned by postgres that was actually giving octave trouble. Changing that data type allowed my function to execute as expected with a uuid parameter.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nate Anderson

79227882

Date: 2024-11-26 18:33:09
Score: 5
Natty:
Report link

yes it works. I think this is what I am looking for, however, it creates a fake URL entry point that cannot be linked back to if you copy and paste the address directly.

Reasons:
  • Blacklisted phrase (2): I am looking for
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bushra Rauf

79227878

Date: 2024-11-26 18:30:08
Score: 5
Natty: 4.5
Report link

A better Way I think is Using COllama here is a Video explain How

https://youtu.be/3tkmnItNXJM?si=SPIqTlYYjROv4m0d

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

79227877

Date: 2024-11-26 18:29:07
Score: 5
Natty: 6.5
Report link

Resolve your Google Sheets Slicer/ Pivot Table Issues- Read this blog -

https://fixyourdatatools.blogspot.com/2024/11/resolving-google-sheets-slicer-issues.html

Reasons:
  • Blacklisted phrase (1): this blog
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abhay Agastya

79227865

Date: 2024-11-26 18:24:05
Score: 0.5
Natty:
Report link

This can be due to a WAF (web application firewall) rule that blocks a NonBrowserUserAgent (Postman).

See here for how you can make an exception to that rule on aws

This would explain why using the Postman web app works (as noted here). While the Postman Desktop Application, VS Code extension or Jetbrains http client will be blocked, as those aren't Browser User Agent's.

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

79227859

Date: 2024-11-26 18:22:05
Score: 1.5
Natty:
Report link

I'm posting an answer here because your question is recent and highly ranked on Google Search at the moment.

First, you need an actual git binary installed in your runtime. This is mentioned in the GitPython docs:

GitPython needs the git executable to be installed on the system and available in your PATH for most operations. If it is not in your PATH, you can help GitPython find it by setting the GIT_PYTHON_GIT_EXECUTABLE=<path/to/git> environment variable.

Unfortunately, the Python Lambda runtime does not include git by default. We fix this by using a docker image, then building that during a cdk deploy.

Dockerfile

FROM public.ecr.aws/lambda/python:3.12

RUN dnf -y install git

COPY requirements.txt .

RUN  pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}"

WORKDIR ${LAMBDA_TASK_ROOT}
COPY *.py .

CMD [ "index.handler" ]

Your lambda code will be called index.py

import shutil
from git import Repo
from aws_lambda_powertools import Logger

logger = Logger()
REPOSITORY_URL = "https://github.com/gitpython-developers/QuickStartTutorialFiles.git"
LOCAL_CODE_DIRECTORY = "/tmp/repo"


@logger.inject_lambda_context(log_event=True)
def handler(event, context):

    logger.info("Cloning repository...")

    repo = Repo.clone_from(
        url=REPOSITORY_URL,
        to_path=LOCAL_CODE_DIRECTORY,
        allow_unsafe_protocols=True,
        allow_unsafe_options=True,
    )
    logger.info("Repository cloned!")

    # Get the last 10 commits and print them.
    commits = repo.iter_commits("main", max_count=10)

    for commit in commits:
        logger.info(
            f"{commit.message} - {commit.author} - {commit.authored_date}"
        )

    tree = repo.head.commit.tree

    # Print files to confirm it works and we have the right repo.
    files_and_dirs = [(entry, entry.name, entry.type) for entry in tree]
    logger.info(files_and_dirs)

    # Docs here: https://gitpython.readthedocs.io/en/stable/quickstart.html#git-repo

    shutil.rmtree(LOCAL_CODE_DIRECTORY)

Deploy all this with CDK code:

from aws_cdk.aws_lambda import (
    Architecture,
    DockerImageFunction,
    DockerImageCode
)
from aws_cdk import Duration


_lambda = DockerImageFunction(
    self,
    "SourceCodeThingy",
    description="Updates the source code repository with some cool changes.",
    code=DockerImageCode.from_image_asset(
        directory='path/to/your/function/code'
    ),
    memory_size=128,
    architecture=Architecture.X86_64,
    retry_attempts=1,
    timeout=Duration.seconds(15)
)
Reasons:
  • RegEx Blacklisted phrase (3): you can help
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Mr. C

79227858

Date: 2024-11-26 18:22:04
Score: 4
Natty:
Report link

I am writing a paper on results of a model I used. I am not sure how to cite it as my professor wrote most of it and I can't find the actual model online since the prof just sent it to us as an .ipynb file.

Does anyone know how I would cite something like this in a paper? I really only know the name of the file, the Professors name (who wrote the code), and version of python I am using.

I figured I could just put the professors name, year, title of model since this is just a project for class.

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tanuj Grandhi

79227845

Date: 2024-11-26 18:17:03
Score: 0.5
Natty:
Report link
  1. use .editorconfig file:

    [**/Migrations/**.cs]
    generated_code = true
    dotnet_analyzer_diagnostic.severity = none
    
  2. or use .csproj:

    <Project>
        <ItemGroup>
        <Compile Remove="Migrations\**\*.cs" />
        <None Include="Migrations\**\*.cs" />
        </ItemGroup>  
    </Project>
    
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jervis

79227842

Date: 2024-11-26 18:16:02
Score: 0.5
Natty:
Report link

The official docs explain it quite well. Simply import the quote function with:

from prefect.utilities.annotations import quote

Then, within your flow use:

def my_flow():
    # ...
    large_item = task_1()
    result = task_2(quote(large_item))
    # ...

instead of directly passing large_item to the next task.

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

79227838

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

Jdk-23 will not work. Try jdk17 or jdk11 of jetbrains (android studio).

Further more:

1- Clean flutter and generated build files in your projects android side.

If it does not work then:

1-Update your flutter version, dart version and your .yaml dependencies.

2- Clean flutter and generated build files in your projects android side.

If it does not work and you have not done gradle migration:

1-You should change settings.gradle, build build.gradle and app build.gradle according to documentation. https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply ( Alternatively you can update your (1)android studio and (2)flutter plugin of android studio to create a new flutter project. (3)Then compare files that I stated. ( java and kotlin versions stated in documentation))

2- Clean flutter and generated build files in your projects android side.

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

79227837

Date: 2024-11-26 18:14:02
Score: 2.5
Natty:
Report link

I had taken a course from learncloudguru on Azure data engineering which was really helpful. please checkout

https://www.learncloudguru.com/#/home

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

79227832

Date: 2024-11-26 18:13:02
Score: 3
Natty:
Report link

export all data from the tables you need from Oracle into csv files and use DBeaver to import to your HSQLDB schema

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

79227831

Date: 2024-11-26 18:11:01
Score: 3
Natty:
Report link

Sometime it is as simple as not having "www" on the domain name you're calling.

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

79227829

Date: 2024-11-26 18:11:01
Score: 2.5
Natty:
Report link

Not working in UWP, giving systematic error

Failed to assign to property 'Windows.UI.Xaml.Media.GradientBrush.GradientStops'

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

79227818

Date: 2024-11-26 18:07:00
Score: 1
Natty:
Report link

i was able to get this to work for my aws aurora postgresql instance by running the following command first:

grant set on parameter log_statement to <master_user>;

then i was able to run the alter role command

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

79227816

Date: 2024-11-26 18:03:59
Score: 1
Natty:
Report link

Looks like this config in Angular.json fixes the issue for Angular 17

"stylePreprocessorOptions": {
              "includePaths": [
                "."
              ]
            }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Oleh Kosar

79227804

Date: 2024-11-26 17:58:58
Score: 4.5
Natty:
Report link

I have the same issue.

Or you using turbopack, like that for dev : next dev --turbopack ? I tried without and the 'error' disappeared.

And of course I've awaited my params like that for exemple :

export default async function Blog({
  params,
}: Readonly<{
  params: Promise<{ lang: Locale }>;
}>) {
  const { lang } = await params;

I haven't found any issue on github about this, I'll think about opening one.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: R2u26A1

79227803

Date: 2024-11-26 17:58:55
Score: 6.5 🚩
Natty:
Report link

I have exactly the same error. Run the given command

pip install --upgrade openai

Reasons:
  • Blacklisted phrase (0.5): exactly the same error
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have exactly the same error
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28499661

79227797

Date: 2024-11-26 17:56:54
Score: 0.5
Natty:
Report link

I advise against continuing this research. WebAssembly, which would have to use the same WebSocket API's as JavaScript (via web-sys), is totally irrelevant to whether HTTP is allowed. You cannot use tungstenite in WebAssembly because it requires a raw TCP stream, and browsers don't offer them due to security concerns.

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

79227795

Date: 2024-11-26 17:55:54
Score: 1.5
Natty:
Report link

From what I can gather, there isn't a real way outside of creating a map for everything. With Rune, I find most of the 1/2 byte looking characters have Plane set to 0 and BMP is set to True, but that isn't in all cases.

You will notice that \u23f0 has an extra space and \ud83c\udd8f is missing the space. I guess I'll just map out the ones I'll support and leave it to the user to append a space when they need it.

Examples I used, where it states Padded: True, means I added \ufe0f: enter image description here

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

79227792

Date: 2024-11-26 17:55:54
Score: 3
Natty:
Report link

Add --pyi_out=. to the parameters. This will generate .pyi files with the necessary information for intellisense.

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

79227782

Date: 2024-11-26 17:52:53
Score: 0.5
Natty:
Report link

We can use FlatList to generate grid view and space evenly.

<FlatList
  data={ITEMS}
  numColumns={3}
  keyExtractor={(item) => item.key}
  renderItem={({ item }) => <Item instance={item} style={styles.item}/>}
  contentContainerStyle={styles.flat_list}
  columnWrapperStyle={styles.flat_list}
/>


const styles = StyleSheet.create({ 
  flat_list: {
    gap: 16,
  },
item: {
   flex: 1,
   padding: 16,
   borderRadius: 8,
   alignItems: 'center',
   justifyContent: 'center',
  },
});

enter image description here

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

79227781

Date: 2024-11-26 17:52:53
Score: 1
Natty:
Report link

change parentFragment.viewLifecycleOwner to this

if you want to keep observe in onCreate

viewModel.responseState.observe(this, Observer {
    updateUI(it)
})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Satendra Behre

79227773

Date: 2024-11-26 17:49:52
Score: 4
Natty:
Report link

While thinking about possible solution, it was realized that PGADMIN is sending NULL for valid_until parameter and hence function is failing to execute. This is because the account for which I was trying to reset password has no expiry set. I then added an expiry date to the account and then tried to change password and function worked as expected and extended expiry date to current_date + 90 days. Thank you @adrian for your valuable input.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • No code block (0.5):
  • User mentioned (1): @adrian
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: girish chalke

79227772

Date: 2024-11-26 17:48:52
Score: 3.5
Natty:
Report link

I ended up downloading the community edition of 2022 version and selecting it instead of our current version.

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

79227770

Date: 2024-11-26 17:48:52
Score: 1
Natty:
Report link

Run php artisan route:list first to confirm that your code can see the route. If it exists, it could be a laravel route cache issue. run the following command to clear the cache

php artisan route:clear
php artisan cache:clear
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Motunrayo Koyejo

79227769

Date: 2024-11-26 17:48:52
Score: 1
Natty:
Report link

It seems you want that option set for any test that you run.

To do that, open the Run/Debug Configurations window (select Edit Configurations from the drop down), click on Edit configuration templates, then add the option to the appropriate kind of configuration (JUnit, TestNG, or whatever is used to run the tests).

New test runs will use the option, but existing configurations will not be changed.

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

79227768

Date: 2024-11-26 17:48:52
Score: 3.5
Natty:
Report link

The only EFS metrics I find today are:

BurstCreditBalance

PermittedThroughput

PercentIOLimit

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sceptapular

79227766

Date: 2024-11-26 17:46:49
Score: 8.5 🚩
Natty:
Report link

I am facing the same issue and is unable to solve it with headerTemplate and footerTemplate, their results have weird behaviour. Is there any else solution or can you provide the solution code you applied.

Reasons:
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (2.5): can you provide the solution code you
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: LAIQUE MIRZA

79227762

Date: 2024-11-26 17:45:48
Score: 3
Natty:
Report link

Just type sudo mount in your Linux wsl It will mount itself in home folder

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

79227757

Date: 2024-11-26 17:44:48
Score: 2.5
Natty:
Report link

One other common spot to look at is to check your connection string for any issues. Even capital and small letters (letter case issue) can falsely flag as DTC issue. Make sure the connection string parameters are spelled/cased properly. In doing so, you can compare them with a working connection string.

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

79227743

Date: 2024-11-26 17:37:46
Score: 1
Natty:
Report link

Finally hired support since I was in a hurry. Seems that at some point the port set somewhere in Docker (don't ask me where exactly) was changed and was not anymore the one set also in CloudFront associated to the instance. This was discovered with the command: docker ps Which printed something like: 0.0.0.0:8081->8080/tcp, :::8081->8080 8081 was the value in the Docker configuration, but in CloudFront we had a 8080. I changed this last to 8081 too and now it works. Certainly the error messages were quite confusing.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ángel Fas

79227737

Date: 2024-11-26 17:36:46
Score: 1
Natty:
Report link

I found that decreasing the "background sampling duration" in instruments preferences helped. The default value is 5, I think, and I set it to 3s.

instruments preferences panel highlighting the Background sampling duration setting

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

79227732

Date: 2024-11-26 17:34:45
Score: 3.5
Natty:
Report link

I did something similar by overriding the render method from RoutablePageMixin. Here is a gist of my implementation.

Reasons:
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: cnk

79227726

Date: 2024-11-26 17:31:42
Score: 7.5 🚩
Natty:
Report link

Can you share the your solution? I'm running into a similar issue

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you share the you
  • Low reputation (1):
Posted by: Ahmad Hasan

79227724

Date: 2024-11-26 17:30:41
Score: 1
Natty:
Report link

i was able to get this to work for my aws aurora postgresql instance by running the following command first:

grant set on parameter log_statement to <master_user>;

then i was able to run the alter role command

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

79227716

Date: 2024-11-26 17:28:41
Score: 2
Natty:
Report link

How some reason nothing worked for me, I had to manually annotate my class with @@JsonSerializable(). Then only build_runner is generating the .g.dart file

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How some
  • Low reputation (0.5):
Posted by: Saravanan

79227712

Date: 2024-11-26 17:27:41
Score: 3
Natty:
Report link

It looks like you have the view field declared in radians from 0 to pi (180°) changing that to your desired radians could fix it

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

79227708

Date: 2024-11-26 17:25:40
Score: 1.5
Natty:
Report link

For new versions: File | Manage IDE Settings | Export Settings

RubyMine printscreen

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Rafael Gomes Francisco

79227707

Date: 2024-11-26 17:25:40
Score: 2
Natty:
Report link

You should explore accessing InventoryAllocDetEnq, setting the filter with your inventory values and availability rules to come up with Quantities

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

79227706

Date: 2024-11-26 17:25:40
Score: 5.5
Natty: 4
Report link

I have the same question. My best guess is that it's only useful when polling from multiple servers to filter the ones that are closer to the client. Apart from that, I don't see how can it be useful to calculate the "proper client time" considering that both formulas use the same parameters, though I might be missing something, it's annoying the lack of explanation on what to do with those variables to sync the client time.

Reasons:
  • Blacklisted phrase (0.5): how can i
  • Blacklisted phrase (1): I have the same question
  • No code block (0.5):
  • Me too answer (2.5): I have the same question
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: César Muñoz

79227701

Date: 2024-11-26 17:24:39
Score: 1
Natty:
Report link

Open the asset catalog file in Xcode - it's usually named Assets.xcassets. Find the AccentColor entry there - it's automatically generated. Set it to the color you need.

Asset catalog opened in Xcode

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

79227698

Date: 2024-11-26 17:23:39
Score: 3
Natty:
Report link

What I did is I shifted the updating and reordering logic on backend, so my frontend would send only edited item, not the whole state of items.

And based on the nearest right item id I update position of changed item on backend

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (1):
Posted by: IJustStartedLearningCode

79227693

Date: 2024-11-26 17:21:38
Score: 3
Natty:
Report link

According the official RabbitMQ website, messages can be lost for network connection problems and congestions. You do need configure a retry loop if there an error.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sanderson Corrêa

79227686

Date: 2024-11-26 17:17:37
Score: 0.5
Natty:
Report link

Not sure if this is the best way but it works by using the InsertHeader transformer and setting the header name prefixed with "CamelHeader." so that it gets picked up by the connector.

Example yaml configuration:

  class: org.apache.camel.kafkaconnector.https.CamelHttpsSinkConnector
  config:
    transforms: addContentTypeHeader
    transforms.addAuthHeader.type: org.apache.kafka.connect.transforms.InsertHeader
    transforms.addAuthHeader.header: CamelHeader.Content-Type
    transforms.addAuthHeader.value.literal: application/json
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: mkueng

79227684

Date: 2024-11-26 17:17:37
Score: 1
Natty:
Report link

You can create a target/deployment directory within each module that contains a thin jar of the code of that module, plus the dependencies of that module, then invoke gcloud functions deploy with --source=modulename/target/deployment.

Check out the documentation for Build and deploy a thin JAR with external dependencies for the pom.xml adjustments needed.

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

79227682

Date: 2024-11-26 17:16:37
Score: 1
Natty:
Report link

dont return the res. instead use void return after res. like

res.status(400).send({ message: 'You are not valid for this website.' });
return;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Samiul Karim

79227677

Date: 2024-11-26 17:14:36
Score: 2.5
Natty:
Report link

Not sure if relevant after all this time but I have found that setting "R8 code shrinker" under the Android settings for the project will produce a mapping.txt file. May help somebody :)

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

79227674

Date: 2024-11-26 17:14:36
Score: 1.5
Natty:
Report link

there's a couple ways you can do N dimensional keep, some of them better suited for some problems than others, here's some examples

these can all probably be improved and tweaked in different ways to better fit a specific problem, for more information consider joining our discord, linked in uiua.org

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

79227673

Date: 2024-11-26 17:14:36
Score: 2.5
Natty:
Report link

I compiled LLVM/Clang for rooted aarch64 cellphone following BLFS instructions with LLVM_TARGETS_TO_BUILD="host", which is aarch64 and not using DEFAULT_TARGET_TRIPLE. The build crashed Termux until I made and did swapon for 20G swap file and ran the build with "-j1"

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

79227662

Date: 2024-11-26 17:10:35
Score: 2
Natty:
Report link

You can often directly access the tokenizer from the pipe and call it with your string to get the attention mask:

>>> pipe.tokenizer("Blah blah blah.")
{'input_ids': [101, 27984, 27984, 27984, 1012, 102], 'attention_mask': [1, 1, 1, 1, 1, 1]}

>>> pipe.tokenizer("Blah blah blah.")['attention_mask']
{'attention_mask': [1, 1, 1, 1, 1, 1]}

But even if that's not an option, it looks like you have access to the tokenizer at initialization. Why not use that directly?

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

79227648

Date: 2024-11-26 17:04:34
Score: 2.5
Natty:
Report link

You should download the command line tools first from Android Website then using SDK Manager install the SDK

Note: the command line tools include the AVDManager as well See More

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

79227647

Date: 2024-11-26 17:03:34
Score: 4
Natty: 4.5
Report link

As of 2024, Twilio has released a portability api: https://www.twilio.com/docs/phone-numbers/port-in/portability-api

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

79227640

Date: 2024-11-26 17:00:33
Score: 1
Natty:
Report link

If you get on Windows this error:

failed building wheel for qiskit aer

then you need to replace Python in your conda env:

conda install python=3.12

And now you can install qiskit_aer:

pip install qiskit_aer
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Oleksii Sylichenko

79227637

Date: 2024-11-26 16:59:33
Score: 3.5
Natty:
Report link

Use NMKD Typescale from OpenModelDB. it's really good one.

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

79227628

Date: 2024-11-26 16:57:32
Score: 3.5
Natty:
Report link

downgrading to numpy version 1.25.1, solved the error!

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

79227625

Date: 2024-11-26 16:56:32
Score: 1
Natty:
Report link

I agree that there is no hard-margin SVM in scikit-learn.

To make our soft-margin SVM closer to a hard-margin SVM

SVC solves the following primal problem:

\begin{align}\begin{aligned}\min_ {w, b, \zeta} \frac{1}{2} w^T w + C \sum_{i=1}^{n} \zeta_i\\begin{split}\textrm {subject to } & y_i (w^T \phi (x_i) + b) \geq 1 - \zeta_i,\ & \zeta_i \geq 0, i=1, ..., n\end{split}\end{aligned}\end{align}

https://scikit-learn.org/1.5/modules/svm.html#svc

$C$ is called the penalty parameter. $C$ is a hyperparameter and will not be changed when training or running the model. The minimiser will only control the $\zeta_i$ parameters.

If $C$ is high, the minimiser gives more importance to reducing the sum of errors. A hard margin classifier has $0$ error. So we need to set $C$ to $\infty$ to make our Soft Margin Classifier act like one.

(However, due to integer value limits in computer programming, we won't be able to set it to $\infty$ itself. We can instead set it to a very large value, which isn't perfect, but replicates the effects)

Higher $C$: Prioritising getting more classifications correctly

Lower $C$: Prioritising having a larger margin

Further Reference:

  1. https://youtu.be/lva5Xn85fHs?si=VBYONQASCg7-YnnM
Reasons:
  • Blacklisted phrase (1): youtu.be
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Andhavarapu Balu

79227620

Date: 2024-11-26 16:55:31
Score: 3.5
Natty:
Report link

Since the dependencies in the answer above are deprecated, I suggest this dependency that does the job.

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

79227611

Date: 2024-11-26 16:52:31
Score: 3.5
Natty:
Report link

Use the point tool to paint a fireball sprite! Shrink your sprite using the size field in the sprite menu if necessary

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

79227609

Date: 2024-11-26 16:51:30
Score: 2
Natty:
Report link

do you change your configMap manually? how do you install the operator into your cluster? how is the operator webhook configured? can you list all settings you defined? what is operator version?

when you asked it restart sometimes do you mean K8sDeployment restarts ? - in this case it is totally normal and your job should take state of your previous job (of course if you set property job.upgradeMode = 'last-state') unless you mean FlinkDeployment restarts - in this case it is treated as a newly created job.

Reasons:
  • Blacklisted phrase (1): how do you
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: mrdinklage

79227604

Date: 2024-11-26 16:50:29
Score: 0.5
Natty:
Report link

For anyone looking to test overriding an existing js file:

I realize this is not the exact nature of the question here, but this is the post I found when looking for how to override a js file in Chrome, so maybe it'll help someone else.

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

79227601

Date: 2024-11-26 16:50:29
Score: 8
Natty: 7
Report link

Can anyone help me to build like groupsor.link

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can anyone help me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can anyone help me to
  • Low reputation (1):
Posted by: John Paul

79227600

Date: 2024-11-26 16:50:29
Score: 4
Natty:
Report link

If unauthenticated users should use your post request, there are several ways:

  1. Add RECAPTCHA. Just use this package react-google-recaptcha-v3 in your form, and verify user on submit.
  2. Use FingerprintJS or alternative one to identify abusive users and store the fingerprint in your database to track requests.
  3. And read this issue as well: How effective is the honeypot technique against spam?
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Akbarjon

79227599

Date: 2024-11-26 16:50:29
Score: 3
Natty:
Report link

FIXED: Since I was always checking if the team already exists, the new colors could never be set

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

79227598

Date: 2024-11-26 16:50:29
Score: 4
Natty:
Report link

Given that you are making four separate function calls for each Event ID that you iterate through, 3000 records in 30 seconds might be an optimal result already.

What is it those function calls are doing to return the status? Is there any way you can combine them into fewer functions to save on the amount of exec statements that need to be evaluated and processed?

If there is any way you can avoid a cursor in the first place, you will probably see significant performance improvements. Cursors are handy but typically slower. Could you replicate what the entity function is doing in a CTE or temp table and then join that table to the access/privilege tables to determine the access for each user?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Ryan Smith

79227590

Date: 2024-11-26 16:47:28
Score: 2.5
Natty:
Report link

it worked for me, deleted all folders

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kavita

79227585

Date: 2024-11-26 16:46:27
Score: 0.5
Natty:
Report link

Modify Scrollbar Size in settings.json

"editor.scrollbar.horizontalScrollbarSize": 14,
"editor.scrollbar.verticalScrollbarSize": 14,
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Suryateja KONDLA

79227582

Date: 2024-11-26 16:45:27
Score: 2
Natty:
Report link

just an update, I have managed to make it work by completely creating another resource group and then the function, there seems to be an issue with the resource group as it was made years ago. One other thing that I want to mention is that the client must match the type if you are using strong typed hubs, return Clients.All.newMessage(new NewMessage(invocationContext, message)); on the client side would look like connection.On<NewMessage>("Broadcast", (value) => Console.WriteLine(Serialize(value)));

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pultea Robert

79227580

Date: 2024-11-26 16:45:27
Score: 1
Natty:
Report link

Up to now (Channel 24.05), the recommended way is to use environment.shellAliases.

environment.shellAliases = {
  l = null;
  ll = "ls -l";
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: yaner

79227579

Date: 2024-11-26 16:43:27
Score: 2
Natty:
Report link

The log file would be useful to troubleshoot your problem.

But without it you can try using a tool like: Bulk Crap Uninstaller or RevoUninstaller to remove all XAMPP's files and try to reinstall the same version or an older one (if the problem is related with the build).

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

79227573

Date: 2024-11-26 16:41:26
Score: 3.5
Natty:
Report link
var displayRepresentation: DisplayRepresentation {
    DisplayRepresentation(
        title: LocalizedStringResource(stringLiteral: name ),
        subtitle: "Door",
        image: .init(named: image!),
        synonyms: ["Gate"]
    )
}

where name & image are defined as:

@Property(title: "Name")
var name: String

@Property(title: "Image")
var image: String?
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): where
  • Low reputation (1):
Posted by: user28498496

79227570

Date: 2024-11-26 16:40:26
Score: 0.5
Natty:
Report link

The original poster is probably done with this by now but, for the benefit of any who follow:-

Custom Document Properties are visible to and can be modified by any user via the 'File' tab then select 'Info'. On the 'Info' page look for the 'Properties' section which has a small drop-down control. This control provides an option called 'Advanced Properties'. Select it and a dialog opens that contains several tabs. Select the 'Custom' tab. You can now inspect, create and edit any Custom Document Property. Most basic and non-inquisitive Excel users are unlikely to stumble on this.

Note that - The 'Properties' drop down is locked and inoperable if the Workbook structure has been password protected.

If you want to hide things better than that then 'Custom Properties' (CPs) are the way to go as they are, as far as I have been able to discover, only accessible programmatically. It is important to understand that Custom Properties are properties (children) of a specific worksheet - as selected/specified when the CPs are created. If that 'parent' worksheet is deleted then the associated CPs are lost. I recommend that you have a dedicated worksheet specifically allocated for this purpose and hide it to avoid user instigated harm. I usually use a single ellipsis character "…" as the worksheet name but that is up to you.

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

79227558

Date: 2024-11-26 16:37:25
Score: 1
Natty:
Report link

I had same issue. In my case this was missing packages in the system. Trying bitbake core-image-minimal gave me better diagnostics (sorry, I didn't copy the exact output).

I installed the missing packages. In my case it was # apt install chrpath diffstat lz4. Then bitbake-layers started to work.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dominik Wójt

79227552

Date: 2024-11-26 16:36:25
Score: 4.5
Natty:
Report link

Sorry to comment here, but I was having difficulty with this too. I didnt want to make a new question, as my code is identical, but my problem is related to after having done a long click and moving the mouse around and then stopping moving, but maintaining the click, the code in the timer for mousedown is no longer being called, or rather they don't start again when the mousemove part stops:

    let isMouseDown = false;
    let intervalId = null;
    
    canvas.addEventListener('mousedown', (event) => {
        if (!isMouseDown) {
            isMouseDown = true;
            handleMouseClick(event);
            intervalId = setInterval(() => {
                handleMouseClick(event);
            }, 30); 
        }
    });
    
    canvas.addEventListener('mouseup', () => {
        isMouseDown = false;
        clearInterval(intervalId);
    });
    
    canvas.addEventListener('mousemove', (event) => {
        if (isMouseDown) {
            handleMouseClick(event);
            clearInterval(intervalId);
        }
    });

So can someone help me with this scenario, to reiterate, click and hold, move mouse, stop moving mouse, mousedown calls cease. I consider this to be valuable to the question that was asked and so I maintain the validity of the comment.

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (3): can someone help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Leigh Hobson

79227539

Date: 2024-11-26 16:34:24
Score: 1
Natty:
Report link

A wrong cases offered in comments: s = ababac, t = abac.

According to the logic of the original code, the pointer s should move back by a certain position each time in the else{} statement, but the original code overlooks it.

I rewrite it like :

        if (*ptrT == *ptrS) {
            ptrT++;
        } else {
            ptrS -= (ptrT - t);
            ptrT = t;
        }
        ptrS++;

it works.

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

79227531

Date: 2024-11-26 16:32:23
Score: 0.5
Natty:
Report link

Below script works form me.

az monitor scheduled-query list --query "[?tags.regionspecific=='yes'].{name:name, resourceGroup:resourceGroup}" -o tsv |  
while IFS=$'\t' read -r alert_name resource_group; do  
    echo "Disabled log query alert rule: $alert_name in resource group: $resource_group"  
done 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Vowneee

79227530

Date: 2024-11-26 16:32:23
Score: 3
Natty:
Report link

The program "import unittest; print(unittest)" shows the location of an (unexpected) self written module "unittest". That module has blocked the builtin module.

Thanks to wrandrea!

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

79227525

Date: 2024-11-26 16:31:23
Score: 2
Natty:
Report link

To get the full name in mdesc, use

mdesc, ab(36)

Ab means abbreviate, but you can put in a big number that covers the length of your variable names.

(Asking someone to search the the Stata help menu to dive though pages of text is to misunderstand the power of web-search engines to help people find the exact info they need).

Reasons:
  • Blacklisted phrase (1): help me
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ChrisD

79227521

Date: 2024-11-26 16:31:23
Score: 3
Natty:
Report link

{"update_id":937988537,"message":{"message_id":7095,"from":{"id":7428318017,"is_bot":false,"first_name":"\u5927\u5409\u5927\u5229","username":"xxxx"},"chat":{"id":-4581955586,"title":"xxx","type":"group","all_members_are_administrators":false},"date":1732638232,"migrate_to_chat_id":-1002315289604}}

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: VAN.CY

79227518

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

Service principal can also be created using PAC CLI pac admin create-service-principal command. It sets up right permissions on service principal including call to /providers/Microsoft.BusinessAppPlatform/adminApplications

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

79227516

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

For me the key was switching to using shallowRef() instead of ref() for the dom element references. Once I made that switch everything started working.

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

79227514

Date: 2024-11-26 16:28:22
Score: 1
Natty:
Report link

You Just need to attach the soap service as a connected service in VS. Right Click in your project ==> Add Service Reference ==> Select "WCF Web Service" and follow the form inserting WSDL url or the WSDL xml file. After that all the classes and methods you need (including response class models) will be generated by VS.

You can also use HttpClient passing the xml request in body, but it will require more effort generating class models. If you still prefer this way, vs past special can help you generating the class, for example you can do the calls using postaman, and then copying the xml result pasting with "paste special" in a new class file.

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

79227511

Date: 2024-11-26 16:27:21
Score: 0.5
Natty:
Report link

Ours was a somewhat specific use case, but we were able to access all of the same props as before by switching from the cell slot to a wrapper in the renderCell method in our column definitions.

export const authorColumns: GridColDef[] = [
  {
    field: 'Actions',
    ...
    renderCell: props => (
      <CellBase {...props}>
        <ActionsCell {...props} />
      </CellBase>
    ),
    ...
  },
  ...
]

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

79227510

Date: 2024-11-26 16:27:21
Score: 1.5
Natty:
Report link

For FMX, I'm using hexadecimal (RGB) value:

Label1.TextSetting.FontColor := $FF00FF;
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wellington Telles Cunha

79227489

Date: 2024-11-26 16:20:20
Score: 0.5
Natty:
Report link

If canvas matrix is not set, and you transform every path by the matrix before drawing it, it works a little faster. At least when the number of paths is too big

path.transform(matrix)

On every path instead of:

canvas.setMatrix(matrix)

Or

canvas.concat(matrix)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: takluiper

79227466

Date: 2024-11-26 16:15:18
Score: 2.5
Natty:
Report link

Thanks for the answers. I got a solution from another programmer:

kivy adjusts the size of the window to the desktop settings. There the desktop was set to 125%. The program is ok, it scales 25% up and then the borders appear. A behavior that I do not expect when explicitly specifying the window size in pixels.

I do not know how to detect or solve this. Someone outside will have this behavior too when using my program. Maybe I find out later.

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

79227454

Date: 2024-11-26 16:12:17
Score: 1
Natty:
Report link

Problem You want to initialize the VideoPlayerMediaKit plugin with platform-specific libraries in your Flutter project.

Solution Below is the implementation to ensure the VideoPlayerMediaKit is initialized for supported platforms and the necessary dependencies added to the pubspec.yaml void main() { VideoPlayerMediaKit.ensureInitialized( android: true, iOS: true, macOS: true, windows: true, linux: true, ); runApp(const MyApp()); }

dependencies: flutter: sdk: flutter video_player: ^2.9.2 video_player_media_kit: ^1.0.5

Platform-specific native libraries

media_kit_libs_android_video: any media_kit_libs_ios_video: any

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

79227444

Date: 2024-11-26 16:09:16
Score: 0.5
Natty:
Report link

You can use a pointer directly to point to the desired section of the array.Like for eg instead of double *smallarr[10] = &bigarr[297]; you can just do double smallarr = &bigarr[297]; and then use a loop to process (as in smalllar[i]....)

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

79227435

Date: 2024-11-26 16:06:15
Score: 1
Natty:
Report link

Save the Vectors

vectorstore = SKLearnVectorStore.from_documents(
        documents=doc_splits,
        persist_path=PERSIST_PATH,
        embedding=OllamaEmbeddings(model="Gemma-2:9b"),
        serializer="parquet",
    )

vectorstore.persist()

Load the Saved parquet file

vectorstore = SKLearnVectorStore(
            persist_path=PERSIST_PATH,
            embedding=OllamaEmbeddings(model="Gemma-2:9b"),
            serializer="parquet"
        )
docs = vectorstore.similarity_search(query)

*Note: PERSIST_PATH is the path where you would like to save the file and load it.

Refer: https://python.langchain.com/docs/integrations/vectorstores/sklearn/*

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

79227432

Date: 2024-11-26 16:05:15
Score: 1
Natty:
Report link

Have noticed that using AddQuotes might be useful here. Hence somehow path is being broken at the end.

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

79227420

Date: 2024-11-26 16:02:14
Score: 5
Natty: 6.5
Report link

[enter image description here][1]

[1]: https://i.sstatic.net/9nqeCCDK.png**strong text**

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

79227419

Date: 2024-11-26 16:02:14
Score: 4
Natty: 5
Report link

I was looking for the same after Vandad Playlist . Thank you for the solution

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lakshay Gupta

79227415

Date: 2024-11-26 16:00:13
Score: 1
Natty:
Report link

- Perfect emulation + perfect simulation = identical to the target system

Bonus:

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jacob Miller

79227414

Date: 2024-11-26 15:59:12
Score: 2
Natty:
Report link

Found the solution this morning.

  1. I converted my packages.config to package reference See docs
  2. I updated my csproj of the NuGet package to be:
<None Include="Xsds\*.xsd">
  <pack>true</pack>
  <PackagePath>contentFiles\any\any\Xsds\</PackagePath>
  <PackageCopyToOutput>true</PackageCopyToOutput>
  <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>

I would like to know if this is possible to do with a packages.config. It's rather annoying that this NuGet package simply won't work unless the user is doing it a specific way..

Reasons:
  • Blacklisted phrase (1.5): I would like to know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: RED