79239837

Date: 2024-11-30 15:15:32
Score: 3
Natty:
Report link

When I tried to add an ed25519 key to Jenkins to authenticate with a key, Jenkins would refuse it as an unsupported key format. This is Jenkins 2.487 with a current sshd plugin on Debian bookworm (12.8).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (1):
Posted by: tmlpy

79239832

Date: 2024-11-30 15:12:32
Score: 2
Natty:
Report link

After a long struggle and feedback by several very helpful testers I think that I have found a reliable way to implement a CompanionDeviceService with startObservingDevicePresence.

In regard to your question, the behavior differs wildly across different Android versions and I highly recommend to test it on several devices. However, you should in any case start coroutines to handle your communication and (if applicable) show a notifiation to act as a foreground service and only use onDeviceAppeared as a launcher and onDeviceDisappeared as a hint on when to clean up.

However, things are complicated, so allow me to use this to share all my findings.

Background

For a few months now I am working on an open source BLE remote control for Sony cameras. I implemented it as a CompanionDeviceService and rely entirely on startObservingDevicePresence to start it. At the time of writing this, Android 15 is the most recent OS and I support a minimum of Android 12 (earliest startObservingDevicePresence). I am running a public beta and am confident about it enough by now to hopefully do a "proper release" in 1-2 weeks.

So, all of the following refers to BLE and you can find the code and user feedback I refer to on github.

How onDeviceAppeared/onDeviceDisappeared behaved in my tests

I have tested my app on a Pixel 6 with Android 15, a Pixel 3 with stock Android 12 and various LineageOS 20/21 images and on a few other Android 12 devices. I also got some logs from users with Android 14 devices and a Pixel 9 Pro with Android 15.

Across these devices I have found at least 4 different patterns for the onDeviceAppeared/onDeviceDisappeared callbacks:

Takeaways

The best solution seems to be to use the "outer" onDeviceAppeared and onDeviceDisappeared events to start/stop a service, but handle actual Bluetooth disconnects and reconnects independently inbetween. I think that this is actually the intended way to use these events: As indicator for when to start or stop the service. In fact, I think that these indicate the time during which you have the priviledged state of a companion service and are very unlikely to be killed. But the very different ways the events occur on different Android version and the barely existant documentation makes it really hard to figure out what you can expect. Even worse, the additional events since late Android 14 mean that you will have to ignore some cases.

My solution

So, I ended up literally counting the onDeviceAppeared events to only react to the first onDeviceAppeared and the last onDeviceDisappeared. I initialize my Bluetooth classes and call connectGatt on the first onDeviceAppeared. I free resources and terminate the service on the last onDeviceDisappeared (although, I think that Android would kill it eventually anyway).

Inbetween I let the "autoConnect" parameter of connectGatt keep the connection alive and observe its state through onConnectionStateChange of my BluetoothGattCallback. Especially any online/offline notification for the user is based on this. I actually even remove the notification when the device disconnects, so the users sees my service vanishing immediately (even though on Android 13/14 it actually stays around for a few minutes). So far, this seems to work well enough.

Note that this is not perfect for the Android 12 case where there is no matching onDeviceDisappeared after the very first connection. If you need that, you might have to handle Android 12 separately, but otherwise this only means that your service will stick around a bit longer afer the first startObservingDevicePresence and will eventually be cleaned by the system anyway

Also note, that according to the response I got on the Android issue tracker things might become easier with Android 16 when you can directly use onDevicePresenceEvent instead, but it will be a while until enough users have Android 16 to rely on. So, readers from the future with your fancy flying cars: Is it now nice to write BLE apps for Android or do you have more yearly API changes to worry about as we have seen since Android 4?

Reasons:
  • Blacklisted phrase (1): any help
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Sebastian Staacks

79239822

Date: 2024-11-30 15:08:31
Score: 10
Natty: 8
Report link

Do you have any fix for sqlite? Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1.5): fix for sqlite?
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Đorđe Petrović

79239794

Date: 2024-11-30 14:59:29
Score: 3.5
Natty:
Report link

Why not use:

Test-Path (path goes here) -ErrorAction Stop

to generate a trappable exception that you can handle? That way, you don’t have to comb through the error record for the specifics?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why not use
  • Low reputation (1):
Posted by: Todd Seward

79239777

Date: 2024-11-30 14:51:27
Score: 2.5
Natty:
Report link
android:layout_alignWithParentIfMissing="true"
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sunny Jha

79239774

Date: 2024-11-30 14:50:27
Score: 2.5
Natty:
Report link

Yes, you can run Google Colaboratory notebooks from VS Code using the jupyter extension or through the VS Code integration with Google Colab via the Google Colab API. This allows you to edit and run code in Colab from within your local VS Code environment.

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

79239773

Date: 2024-11-30 14:48:26
Score: 3
Natty:
Report link

The problem is solved by adding the below statement in "gradle.properties" file located in [App_name] > android > gradle.properties The statement that is added,

org.gradle.java.home=C:/Program Files/Java/jdk-17.0.x

The right side of equal sign is the location of JDK. Change the location accordingly. Thanks

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

79239768

Date: 2024-11-30 14:45:26
Score: 2
Natty:
Report link

Chromes new tab URL is:

chrome://new-tab-page
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Phillip Rodseth

79239753

Date: 2024-11-30 14:34:23
Score: 0.5
Natty:
Report link

At least for NextJS 14 I have found some problems using server actions as fetcher, for some reason sometimes it didn't fetch data when changing the server action. Suppose that we have an object DataSource = { getRows: async (params: GetRowsParams) => await serverAction(params.filter, params.sort, params.pagination); }

Now we put it as useSWR(params, dataSource.getRows);

If I have a client component with this hook, and use it in two or more pages with different data source objects, the data could get stale and useSWR won't fetch for the new server action. It could be for several reasons, one of them could be the ID of server actions, suppose that we have two files: users.ts and schedules.ts, if both files have 4 server actions and we make an index.ts file exporting all of these server actions, it will find an error for server actions $$ACTION_1, $$ACTION_2, $$ACTION_3, $$ACTION_4, as NextJS assign these IDs for the server actions of each file, so, if the useSWR sees them in the same way, it won't detect changes on the fetcher and hence won't fetch new data. So I recommend to make the server action a regular function and put it in a route handler, then use the fetch API.

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

79239744

Date: 2024-11-30 14:30:22
Score: 0.5
Natty:
Report link

In my case, the problem was coming up because I had two database servers running on the same machine: [1] Postgresql 14 which uses scram-sha-256 and [2] Postgresql 9.6 which uses md6. So I needed to specify the port number, and it worked!

$psql -U postgres -d dbname -p 5523  -f *path/to/file*
Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Cap.Auh3b

79239733

Date: 2024-11-30 14:25:20
Score: 4
Natty:
Report link

body{background-image:url("Enter your image location");}

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Praveen Bhandari

79239725

Date: 2024-11-30 14:20:19
Score: 1
Natty:
Report link

Not all websites allow automated access

Hey @MITHU, the reason you are getting ConnectionError is because some websites simply don't allow automated access to prevent from bots. You can check that by using webiste_url/robots.txt Usually they would have something like below:

User-agent: *
Disallow: /

You can try out this working example:

import requests

url = 'https://github.com/'

headers = {
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
    'accept-language': 'en-US,en;q=0.9',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'
}

with requests.Session() as session:
    session.headers.update(headers)

    response = session.get(url)

    print("Status Code:", response.status_code)
    print("Page Snippet:", response.text[:500]) 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @MITHU
  • Low reputation (1):
Posted by: Pratik

79239713

Date: 2024-11-30 14:12:16
Score: 3.5
Natty:
Report link

I search and saw some solution, but they are too simple. My code is from: https://www.gradio.app/guides/creating-a-custom-chatbot-with-blocks , like below:

It is very common to get current session user in bot function, but bot function cannot get Request parameter, I don't know how to get session information in bot function. Their demo only has very simple case, does anyone know how to get request in this case? Thanks!

def add_message(history, message):
for x in message["files"]:
    history.append({"role": "user", "content": {"path": x}})
if message["text"] is not None:
    history.append({"role": "user", "content": message["text"]})
return history, gr.MultimodalTextbox(value=None, interactive=False)

def bot(history: list):
    response = "**That's cool!**"
    history.append({"role": "assistant", "content": ""})
    for character in response:
        history[-1]["content"] += character
    time.sleep(0.05)
    yield history


with gr.Blocks() as demo:
chatbot = gr.Chatbot(elem_id="chatbot", bubble_full_width=False, type="messages")

chat_input = gr.MultimodalTextbox(
    interactive=True,
    file_count="multiple",
    placeholder="Enter message or upload file...",
    show_label=False,
)

chat_msg = chat_input.submit(
    add_message, [chatbot, chat_input], [chatbot, chat_input]
)
bot_msg = chat_msg.then(bot, chatbot, chatbot, api_name="bot_response")
bot_msg.then(lambda: gr.MultimodalTextbox(interactive=True), None, [chat_input])

chatbot.like(print_like_dislike, None, None, like_user_message=True)

demo.launch()

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2): does anyone know
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: peter

79239711

Date: 2024-11-30 14:11:16
Score: 2.5
Natty:
Report link

Hello my friend long time I want to tell my story and the girls you search this number can't see anything +971504347899 she in my family but my be seeker yousing my number and email and showing in my be group in I can't tel mor you can't check my friend you can see anything 😰 I want to tell she's family but I can't iwant anything because on mor time I'm telling she's mother but not believe me this brother Tel me I'm report to polic fur you my sister Claire I don't no she's give young sister one more time I don't no she's hacking my mobil sumbuy in group any time showing body in cam after download in twwit and Flickr wiki tomuc site one time challenge me in hospital open cam and one boy showing and she's using my mobile address I can't listen to voice in my mobile phone long story but my lungoch I want to speak Arabic. Anything mor time after transfer English

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shahriar Agnostic

79239697

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

No No Pend Nama NPM Kelas Keterangan 1 I241962 A Farhan Assidqi 10824001 1MA01 S1-Ilmu Komunikasi Pagi Depok 2 T241585 Adiendha Putri Lasyalwa 10824011 1MA01 S1-Ilmu Komunikasi Pagi Depok 3 I242166 Ahmad Fauzan Elvansyah 10824038 1MA01 S1-Ilmu Komunikasi Pagi Depok 4 I246271 Amanda Aprilia 10824086 1MA01 S1-Ilmu Komunikasi Pagi Depok 5 T242537 Annisa Dwi Kasyafani 10824123 1MA01 S1-Ilmu Komunikasi Pagi Depok

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: patricia amanda hariyanti

79239694

Date: 2024-11-30 14:00:13
Score: 2
Natty:
Report link

Actually, the link you posted in the past received a new answer in Aug 2024. This one: https://stackoverflow.com/a/78876788/9151070

The suggestion is to use --collect-datas=fake_useragent in the pyinstaller. I was facing the same issue as you and this suggestion fixed it. Example:

pyinstaller --collect-datas=fake_useragent --onefile -w my_project.py
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: NLP10

79239692

Date: 2024-11-30 13:59:13
Score: 4
Natty:
Report link

dotnet new classlib -o ApplicationName

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hüseyin coban

79239660

Date: 2024-11-30 13:43:09
Score: 2.5
Natty:
Report link

Try resetting the app cache. If you are in windows you have to create a environment variable by creating going to windows registers

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

79239659

Date: 2024-11-30 13:43:09
Score: 1.5
Natty:
Report link

SSL Certificate Issues:

Check if your SSL certificate is still valid. An expired certificate will trigger this error. If the certificate is installed incorrectly or doesn't match your domain name (e.g., it’s for example.com but your site is www.example.com), you’ll get this error.

If the certificate is self-signed or from an untrusted authority, browsers may block the connection.

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

79239654

Date: 2024-11-30 13:40:08
Score: 2
Natty:
Report link

I encountered the same issue with the module pyscreeze, I tried to downgrade the Pillow package version from 11.0.0 to 10.4.0 and it worked.

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

79239640

Date: 2024-11-30 13:33:06
Score: 4
Natty:
Report link

No, they should not be globals.

Here are the globals listed by Node.js https://nodejs.org/api/globals.html

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

79239639

Date: 2024-11-30 13:33:06
Score: 3.5
Natty:
Report link

It is not best practice. I would implement this using a placeholder in the video tag.

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

79239622

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

The implementation of Interaction.GetObject changed.

.NET Framework way to use GetObject with only a Class Specified:

CATIA = GetObject(,"CATIA.APPLICATION")

.NET way to use GetObject with only a Class specified:

CATIA = GetObject("","CATIA.APPLICATION")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mike Meinz

79239612

Date: 2024-11-30 13:20:02
Score: 2.5
Natty:
Report link

I had Python 3.13 and got the same error when tried to install psycopg2-binary. I downgrade Python to 3.12 as per FlyingTeller recommendation and it fixed the error. Please see the answer on how to downgrade Python: https://stackoverflow.com/a/75710481/15400268

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

79239611

Date: 2024-11-30 13:20:02
Score: 6.5 🚩
Natty: 5.5
Report link

I'm also learning how to implement it. Can I ask you how to do that?

Reasons:
  • Blacklisted phrase (1): Can I ask
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Duy Trung Nguyễn

79239609

Date: 2024-11-30 13:20:01
Score: 1
Natty:
Report link

If you want to plot in a specific figure number your figure using fig1 = plt.figure(1), fig2 = plt.figure(2) etc. To plot a graph in a specific figure define axes ax1 = fig1.gca() gca = get current axis and instead of using plt.plot() use ax1.plot() to plot in the figure 1

import matplotlib.pyplot as plt

x1 = [0,1] x2 = [0,2]

y1 = [0,1] y2 = [0,-1]

fig1 = plt.figure(1) ax1 = fig1.gca()

fig2 = plt.figure(2) ax2 = fig2.gca()

ax1.plot(x1,y1,'b') ax2.plot(x2,y2,'r')

plt.show() If you want to create 5 figures use lists :

fig = [] ax = [] for i in range(5) : fig.append(plt.figure(i)) ax.append(fig[i].gca()) if the figure 1 is already opened and you want to plot an additional curve you just have to type these lines :

fig3 = plt.figure(1) ax3 = fig1.gca() ax3.plot(x1,y2,'g') fig3.canvas.draw()

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

79239608

Date: 2024-11-30 13:19:01
Score: 0.5
Natty:
Report link

I'll try to summarize the comments under you post and add my two cents:

Your question is too broad to be answered simply:

From there you have two options IMO:

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: el_grezeq

79239597

Date: 2024-11-30 13:10:59
Score: 1.5
Natty:
Report link

I found that I needed to simplify how I copied from the const TValue to a local variable so I could access the contents without getting the error regards Value being const but function not.

This code did not make MyValue = Value, it changed it to a "tkRecord" type.

TValue MyValue;
#ifndef __clang__
  MyValue = TValue::_op_Implicit(Value);
#else
  MyValue = TValue::From(Value);
#endif
bool myVal = MyValue.AsBoolean();

All I actually needed to do was simply copy the value into my own variable. Then I could access the Kind and determine what type the TValue is.

TValue MyValue = Value;
System::Typinfo::TTypeKind Kind = MyValue.Kind;

In my case I found Kind was "tkString", once I knew this, I was able to do a string compare to determine the boolean value "True" and "False".

Reasons:
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Barry Andrews

79239592

Date: 2024-11-30 13:07:59
Score: 0.5
Natty:
Report link

I had the similar problem. The package.json::devDependencies were in docker ignored, because the $NODE_ENV environment variable was set to production.

The

npm install --production=false

solved the problem.

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

79239591

Date: 2024-11-30 13:07:58
Score: 4
Natty:
Report link

read more about the solution here: https://impetusorgansseparation.com/ianbi3jc?key=34c29b515c616d5e290c09a87949387a

read more about the solution here: https://impetusorgansseparation.com/ianbi3jc?key=34c29b515c616d5e290c09a87949387a

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

79239589

Date: 2024-11-30 13:06:58
Score: 4
Natty:
Report link

read about this from here: https://impetusorgansseparation.com/ianbi3jc?key=34c29b515c616d5e290c09a87949387a

more details are here: https://impetusorgansseparation.com/ianbi3jc?key=34c29b515c616d5e290c09a87949387a

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

79239580

Date: 2024-11-30 13:01:57
Score: 2
Natty:
Report link

Idk what game we’re waiting for but I wanted to join a waiting list. So here I am. My rendition of a bucket list; giving myself something to look forward to instead of finding something new to cross off

:)

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

79239576

Date: 2024-11-30 12:56:56
Score: 0.5
Natty:
Report link

Below code might help the people who started learning nextjs api calls. to get dynamic routing id.

app/api/events/[event]/route.js
export async function GET(request, { params }) {
  const slug = (await params).event //event id
}

this slug will return to get [event] value

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

79239570

Date: 2024-11-30 12:55:55
Score: 0.5
Natty:
Report link

Oh man, adding module to Vtiger top menu not super hard, but kinda confusing if you're new. So, first, you make the module, yeah? Like in /modules/ folder. Add all files there, PHP stuff. After that, go to database, table vtiger_tab. Add a new row for your module name. Make sure it has isentitytype=1, so Vtiger knows it's legit.

Then for menu, there's a table called vtiger_parenttab. You add your module to a category there, or it won't show in the top menu. If still invisible, clear cache or log out/in. About WhatsApp pop-up, you'll need API, like Twilio. Pop-ups? Use Vtiger’s JS modal things. Might take time, but works if you're patient.

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

79239569

Date: 2024-11-30 12:54:55
Score: 1
Natty:
Report link

for the recent updates Sep 2024 and up. you need to go : C:\Users\[username]\AppData\Roaming\Google\AndroidStudio4.1\disabled_plugins.txt and empty the text file. then relaunch the IDE

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

79239561

Date: 2024-11-30 12:45:53
Score: 4
Natty:
Report link

Thanks to @bodo,Now I know that though I can install the package onto windows, but my ubuntu may not support the latest version. I never knew that before

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

79239554

Date: 2024-11-30 12:41:51
Score: 0.5
Natty:
Report link

The idea was correct, just the port was wrong. PIND is to be used instead of PORTD, and it makes sense: it's the input port register, from which the T0 value is taken.

$repeat 1000
   PIND=0xFF // Set PORTD high
   #800000 // wait 50ms
   PIND=0x00 // Set PORTD low
   #800000 // wait 50ms
$endrep
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Buzz

79239546

Date: 2024-11-30 12:36:50
Score: 4.5
Natty: 5
Report link

https://github.com/woocommerce/woocommerce/tree/trunk/plugins/woocommerce-blocks/docs/

If you dont find anything useful, remove WooCommere.

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

79239529

Date: 2024-11-30 12:28:48
Score: 0.5
Natty:
Report link

You should use classList, not setAttribute:

const p = document.createElement('p');
p.classList.add("your-class");
// do whatever you need with the new p

Replace the your-class with the class that you need to add.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Petəíŕd the Wizard

79239527

Date: 2024-11-30 12:27:48
Score: 1
Natty:
Report link

All the above answers have DIFFERENT MENUs to me.

"Files -> setting -> Android SDK -> you can see the 'edit' that you can change the path of the Android SDK. -> click the download button"

No download button

"File > Setting > Appearance & Behavior > System Settings > Android SDK > [Edit] Button Click (Blue Color Link Button)"

No Android SDK button

"Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure)."

No drop down list

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

79239524

Date: 2024-11-30 12:26:47
Score: 0.5
Natty:
Report link

I suggest you split the task into three steps:

  1. Create a temporary staging table
  2. Copy CSV file/files into staging table
  3. INSERT INTO my_table SELECT * FROM staging ON CONFLICT DO NOTHING

This way you will benefit from the batch insertion of COPY and still have to flexibility of SELECT statement

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

79239523

Date: 2024-11-30 12:25:47
Score: 2.5
Natty:
Report link

I have given all the required scopes but some fields were not getting updated like mobile phone, and company name when I assigned role as global administration the details were getting updated but I can't assign every one as global administrator right.(On behalf of user)

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

79239514

Date: 2024-11-30 12:20:45
Score: 1.5
Natty:
Report link

Ultimately, you probably want the POJOs to live with the interfaces, because that's what they return. Even if type inference could figure it out, it's difficult for someone reading the code to reason about it.

But answering your question as-written... I'd probably include a base POJO along with the interfaces, change your generic to something extending that POJO, and have a blank class extending that base in your individual projects.

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

79239507

Date: 2024-11-30 12:18:45
Score: 1
Natty:
Report link

I got same error, found out you have to await for params, like this

const {slug} = await params;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Muhammad Seerat Awan

79239504

Date: 2024-11-30 12:17:44
Score: 6 🚩
Natty:
Report link

read about this in this article: https://impetusorgansseparation.com/ianbi3jc?key=34c29b515c616d5e290c09a87949387a

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 3001_Rohit

79239494

Date: 2024-11-30 12:14:43
Score: 3.5
Natty:
Report link

VS code debuggers start a new shell each time, so even if you write all the commands in the same shell, as soon as it runs with debug set to true all env variables are reset.

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

79239479

Date: 2024-11-30 12:08:42
Score: 2
Natty:
Report link

Looking at your scenario, one of the first things that comes to mind is what is the reason for data from one database being used in another? Are any changes needed? Will the data be manipulated

Make sure you understand the business rules first.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Andrew McFall III

79239478

Date: 2024-11-30 12:06:39
Score: 6.5 🚩
Natty:
Report link

For me on Ubuntu 24, the text editor fails to show anything, showing error:

org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.dltk.ruby.ui" was unable to instantiate class "org.eclipse.dltk.ruby.internal.ui.editor.RubyEditor".
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:242)

(and many hundreds of lines more, similar to this). I have downloaded the All-in-One DLTK SDK - includes binaries and source code of DLTK Core Frameworks, Ruby IDE and TCL IDE for Eclipse Platform 3.3 package (https://www.eclipse.org/dltk/downloads.php), and copied and pasted the files from the plugins and features folders to the ones of my eclipse directory.

When I also install the DLTK from Help->Install new software (all three), the script explorer shows my project folder and I can generate Ruby files etc., but I cannot configure the interpreter any more, getting this error message:

Unable to create the selected preference page.
org/eclipse/dltk/internal/debug/ui/interpreters/InterpreterPreferencePage 

My Ruby interpreter is set to usr/bin/ruby, which is what comes up for which ruby in my terminal.

Does anybody know how I could resolve my setup ?

enter image description here

Reasons:
  • Blacklisted phrase (1): anybody know
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (2): Does anybody know
  • RegEx Blacklisted phrase (1.5): resolve my setup ?
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: MoritzMoreira

79239470

Date: 2024-11-30 12:02:38
Score: 3.5
Natty:
Report link

After some investigation, I realized that since the subclassed model is just a wrapper for training two functional models, I need to:

  1. Explicitly compile the functional models inside the wrapper to save their training configurations.
  2. Override the call function in the wrapper model and explicitly invoke it before saving the subclassed model.

I hope this helps anyone facing the same issue in the future.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: lbrandao

79239467

Date: 2024-11-30 12:01:38
Score: 1.5
Natty:
Report link

Use regex (^\n$) to find more than one empty line in a row

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

79239462

Date: 2024-11-30 11:57:36
Score: 0.5
Natty:
Report link

First try using URI not URL, it should work!

header("Location: index.php");

Try using localhost like this :

header("Location: http://127.0.0.1/Doubler/index.php");

OR

header("Location: http://localhost/Doubler/index.php");

And if using Domain then

header("Location: https://whateverdomain.com/index.php");

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

79239460

Date: 2024-11-30 11:57:36
Score: 2
Natty:
Report link

Try pip install faiss-gpu or pip install faiss-cpu.

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

79239440

Date: 2024-11-30 11:45:33
Score: 2
Natty:
Report link

Use the ZKteco Push API as documented at https://zkteco.uk/api/index.htm, which enables communication with the biometric machine without using BioTime software. Please note that this API is a paid, licensed service.

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

79239431

Date: 2024-11-30 11:41:33
Score: 3
Natty:
Report link

It requires push api. Please refer https://zkteco.uk/api/ for their api support from zkteco

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

79239428

Date: 2024-11-30 11:40:31
Score: 8.5 🚩
Natty: 6
Report link

Have you found the solution to your problem? I'm facing the same issue and a cannot find something useful.

Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found the solution to your problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gianmarco Santi

79239422

Date: 2024-11-30 11:35:30
Score: 2.5
Natty:
Report link

-webkit-font-smoothing: antialiased;

-moz-osx-font-smoothing: grayscale;

line-height: 1.6rem; /* نفس قيمة Figma */

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

79239415

Date: 2024-11-30 11:30:28
Score: 1.5
Natty:
Report link

The reason you are getting this error is your flutter project is been synced with the icloud . Just unsync the Directory where you flutter project is being runned. For me I did this and it solved by problem. Also mnake sure to push in git before u unsync coz after disable syncing all code will be lost .

enter image description here

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

79239413

Date: 2024-11-30 11:28:27
Score: 2.5
Natty:
Report link

The only difference I see in the 2 codes is the si register. In the first code you did not use it, you used values to access the memory adress.
I don't know how PutStr is implemented, probably in io.mac, but it seems like it is changing the si register.

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

79239396

Date: 2024-11-30 11:19:25
Score: 1.5
Natty:
Report link

This is a general solution for this type of errors that have appeared with recent android studio and flutter updates.

Modify android>settings.gradle file with this;

id "com.android.application" version "8.3.2" apply false

Modify android>gradle>gradle-wrapper.properties file with this;

distributionUrl=https://services.gradle.org/distributions/gradle-8.4-all.zip

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

79239390

Date: 2024-11-30 11:13:24
Score: 1.5
Natty:
Report link

I figure it out! using this password = jsondecode(data.aws_secretsmanager_secret_version.db_password_version.secret_string)["password"]instead of password = data.aws_secretsmanager_secret_version.db_password_version.secret_string

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

79239387

Date: 2024-11-30 11:10:23
Score: 2
Natty:
Report link

It all started on April 20th 1889 in a small town called brow am in in Austria a baby boy was born to Alois and Clara Hitler they named him Adolf no one knew this little boy would grow up to shake the world as a child Adolf wasn't special he loved playing outside drawing pictures and imagining a big future but life wasn't perfect his father Alois was very strict Alois wanted Adolf to study hard and get a government job just like him but Adolf had a different dream I want to be an artist he would tell his mother Clara his mother loved him deeply and supported his dream but she couldn't change Alois his mind adolf's childhood was full of fights with his father his father would shout art is not a real job and Adolf would stay quiet hiding his tears when he was 13 years old his father died suddenly some people thought Adolf would feel free but losing his father left a hole in his heart Adolf started skipping school he was once a good student but now he didn't care teachers would say Adolf is smart but he is lazy all he wanted to do was draw after finishing school Adolf packed his bags and moved to Vienna the capital of Austria he was so excited Vienna is the city of art I will become a famous painter here he thought he applied to the Academy of Fine Arts a big Art School but when the results came his heart broke he didn't get in the school told him your work is not good enough adol felt humiliated I'll try again he said but the next year the school rejected him again he was devastated without school or a job adolf's life became hard he lived in tiny dirty rooms and sometimes slept on the streets he painted postcards and sold them to tourists for a little money why is life so unfair he often thought during this time adolf's mother passed away he was alone and angry he started to blame other people for his failures it's not my fault he would say in 1914 everything changed World War I started and Adolf saw a chance to make his life meaning ful he joined the German Army he loved being a soldier finally I am part of something big he thought Adolf was Brave in the war he carried messages across dangerous battlefields and received two medals for his courage but in 1918 Germany lost the war Adolf was Furious our leaders betrayed us he shouted he felt Germany needed someone strong to bring it back to Power after the war Adolf returned to Germany the country was in chaos people were poor and hungry many were angry about the war's end Adolf saw this as his opportunity he joined a small political group called the German Workers Party Adolf was a powerful speaker when he spoke people listened his words were full of anger passion and Promises Germany will rise again he would say slowly more and more people started following him Adolf changed the name of the group to the National Socialist German Workers Party also known as the Nazi party he designed their symbol a red flag with a black swastika this will become the most powerful symbol in the world he declared his speeches became famous thousands of people came to hear him they believed in his dream of a strong Germany but adolf's ideas were dangerous he blamed certain groups of people for Germany's problems and wanted to make Germany only for Germans after World War I Germany was in big trouble people had no jobs food was expensive and many families were hungry the country had to pay a lot of money to other nations because they lost the war Germans were angry and sad Adolf Hitler saw this pain he told the people it's not your fault I know who is to blame his words gave people hope but they also made them angry at others slowly Adolf became a popular name Adolf worked hard to grow his party he held big meetings and gave loud emotional speeches Germany can be great again he shouted people people clapped and cheered they believed in his dream in 1923 Adolf tried to take control of the German government by force this was called The Beer Hall PCH but it failed Adolf was arrested and sent to jail for 9 months while in jail Adolf wrote a book called mine comp which means my struggle in this book he wrote about his ideas he said Germany needed to become powerful and that certain groups of people were the enemy the book became popular and many Germans started to believe in his ideas after getting out of jail Adolf worked even harder the Nazi party became Stronger by 1933 Adolf Hitler was chosen as the chancellor of Germany the country's top leader this was the start of a new chapter Adolf promised jobs a strong military and a bright future the people trusted him but they didn't know what he was planning next as Chancellor Adolf made many changes he built roads factories and schools more people got jobs and Germany started to look strong again the people were happy they said Hitler is a hero but behind this success Adolf had dangerous plans he controlled newspapers radios and schools people were told you can only believe in Adolf Hitler those who didn't agree with him were punished or sent to prison Adolf created a strong Army called the SS and a group of young boys called the Hitler Youth they trained to fight and spread Nazi ideas everywhere in Germany people saw the swastika flag it became the symbol of adolf's power adolf's speeches became even more powerful he would say Germany is the best we will rule the world crowds cheered and shouted H Hitler in 1939 Adolf made his boldest move he ordered his army to invade Poland this act started World War II adolf's dream was to take over all of Europe and make Germany the most powerful country in the world at first adolf's Army won many battles they were strong and well trained but as the war went on things started to go wrong Adolf had made too many enemies while the War was happening Adolf was doing something terrible he wanted to remove all Jewish people and others he thought didn't belong in his vision of Germany this was called the Holocaust one of the darkest chapters in human history millions of innocent people were killed killed in camps by 1944 Germany started losing the war adolf's enemies like the United States the Soviet Union and Britain were too strong bombs fell on German cities and the people who once called Adolf a hero began to lose hope Adolf became paranoid he trusted no one and spent most of his time hiding in his bunker by 194 four Adolf Hitler's dreams of ruling the world were falling apart his army which once seemed Unstoppable was now losing battles everywhere the Soviet Union one of his biggest enemies pushed the German Army back from the East at the same time American and British soldiers attacked from the West German cities were bombed day and night families lost their homes and the people began to turn against Adolf why did we follow him many asked but Adolf didn't give up he sat in his bunker giving orders to his generals we will not surrender he shouted but deep inside even Adolf knew the war was lost in early 1945 Adolf stayed in a bunker deep underground in Berlin the bunker was cold and dark but it was safe from bombs inside Adolf spent his his time planning though there was little hope left he was not alone his most loyal followers were with him including his girlfriend Ava Brown Ava had been by his side for many years though Adolf kept their relationship private she loved him even in his Darkest Days outside the bunker the sound of gunfire grew louder every day the Soviet Army was getting closer to Berlin the end is near whispered his advisers leaders from other countries begged Adolf to surrender save the people of Germany they said but Adolf refused he believed surrender was a sign of weakness if Germany loses it is because the people were not strong enough he said coldly by April 1945 Berlin was surrounded the Soviet Army attacked the city from all sides buildings collapsed fires burned and people ran for their lives on April 29th 1945 Adolf made a surprising decision he married Ava Brown in the bunker it was a simple ceremony with just a few people you've always been by my side Ava Adolf said Ava smiled even though she knew this was not a happy moment after the wedding Adolf and Ava spent hours together talking about their lives and what they had done they both knew the end was near on April 30th 1945 Adolf made his final decision he called his closest followers Into the Bunker and told them I will not be captured alive Adolf believed it was better to die than to let his enemies take him he and Eva went to a small room moments later they took their own lives Adolf was 56 years old when the Soviet soldiers reached the bunker they found Adolf and Eva's bodies the war in Europe ended shortly after Germany surrendered on May 8th 1945 the people of Germany were left with nothing but ruins adolf's dream of making Germany powerful had instead brought destruction and sorrow millions of lives were lost because of his actions after adolf's death the world worked to rebuild Germany became a peaceful country people remembered the horrors of the Holocaust and World War II to ensure such events never happen again today Adolf Hitler's name is a reminder of the dangers of hatred unchecked ambition and misuse of power power finally his story teaches us every decision we make shapes our future adolf's choices led to pain and loss not just for him but for millions of others this reminds us that every action no matter how small matters we must Choose Wisely and always think about the impact our decisions have on others and importance of compassion and unity hate and division only tear people apart the world is a much better place when we come together respect each other and work towards peace life is too short for anger and judgment by being kind and understanding we can create a future filled with hope not regret so remember Choose Love over hate humility over pride and unity over division these simple lessons can make our world a better place this was the story of Adolf Hitler a man whose life changed the world forever it's a story of Dreams power and the mistakes that led to tragedy remember history is not just about the past it teaches us how to build a better future

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Computer Skills

79239380

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

Code Placement Issue: Ensure the header code is in the and footer code before . Ad Blockers: Visitors with ad blockers won't see ads. JavaScript Conflicts: Check for errors or script conflicts in the browser console. Non-Responsive Ads: Use responsive ad units for mobile. Policy or Inventory Issues: Ensure compliance with Google Ads policies. PHP Errors: Fix any warnings in your PHP error logs. Vensen Digital Marketing Agency in Coimbatore can help resolve these issues for seamless ad performance. for more info. https://vensen.in/unlimited-images/

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

79239368

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

I will teach you.

  1. Learn how to use The GNU Project Debugger.
  2. Debug your project and see where error occurs.
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Александр Алибеков

79239356

Date: 2024-11-30 10:54:19
Score: 0.5
Natty:
Report link

To combine ON CONFLICT DO NOTHING to ensure data integrity and improve insertion efficiency during batch insertions, you can follow these steps to modify: First, you need to make sure that the database you're using (SQLite in this case) supports the ON CONFLICT DO NOTHING statement. For your existing code, suppose you want to insert the table is MarketData, can modify bulk_insert_mappings part code like this: the from sqlalchemy. Dialects. Sqlite import inserts

Build a list of data to insert

data_to_insert = [ { 'date': date.fromtimestamp(ts), 'time': some_time, 'asset': some_asset_id, 'opening': some_opening_value, 'high': some_high_value, 'low': some_low_value, 'closing': some_closing_value, 'volume': some_volume_value } for ts, some_time, some_asset_id, some_opening_value, some_high_value, some_low_value, some_closing_value, some_volume_value in your_data_source ]

Perform the insert operation

insert_stmt = insert(MarketData).values(data_to_insert) on_conflict_stmt = insert_stmt.on_conflict_do_nothing(index_elements=['date']) # Assume that the 'date' column is a possible conflict column session.execute(on_conflict_stmt) session.commit() In the above code, you first create an insert statement insert_stmt and then use the on_conflict_do_nothing method to specify that no operation is performed in the event of a conflict (based on the specified column date). Finally, the statement is executed through session.execute and the transaction is committed. In this way, when the newly inserted data conflicts with the existing data in the date column, no operation is performed. In this way, the insertion efficiency is improved while data integrity is ensured. Note that you need to modify the column values in the data_to_insert and specify appropriate columns that may conflict based on the actual table structure and data.

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

79239354

Date: 2024-11-30 10:54:19
Score: 1
Natty:
Report link

According to the node-canvas wiki you need install some packages first:

sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

After installation i was able install canvas on Raspberry Pi 4.

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

79239348

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

Okay so the code itself has no problem. I guess i just forgot to save or build the solution but every time i run the code, the solution automatically builds itself. Eitherway, nothing is wrong with the code and everything is working now. The password is also being hashed properly and added to the database

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

79239339

Date: 2024-11-30 10:42:16
Score: 1
Natty:
Report link

Given known batch_size is equal to 2:

batch_size=2
inversed = np.unique(slided.reshape(batch_size, -1)).reshape(batch_size, -1)

Outputting:

[[ 1  2  3  4  5  6  7]
 [ 8  9 10 11 12 13 14]] (2, 7)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Muhammad Ikhwan Perwira

79239338

Date: 2024-11-30 10:42:16
Score: 3
Natty:
Report link

Excel worksheet cell has limitations to maximum characters in can contain and that may be causing this. Try saving the cookie in a text file.

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

79239335

Date: 2024-11-30 10:41:16
Score: 3
Natty:
Report link

Make sure ID in this table auto increment, and tru to run migrate.

see image here

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

79239334

Date: 2024-11-30 10:41:16
Score: 1
Natty:
Report link

You're getting this error because in Next.js 15, params is actually a Promise that needs to be awaited. Here is how you can fix this,

export async function GET(
  req: Request, 
  context: { params: Promise<{ providerId: number }> }
) {
  const providerId = (await context.params).providerId;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Durgesh Upadhyay

79239329

Date: 2024-11-30 10:37:15
Score: 4
Natty: 4
Report link

Key generated inside current folder even if windows prompt shows C:/user/.ssh/id_rsa as path of rsa key. Thanks @Gupiter.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Gupiter
  • Low reputation (1):
Posted by: Badr Louachama

79239325

Date: 2024-11-30 10:34:14
Score: 2.5
Natty:
Report link

Hello everyone I'm from Pakistan 🇵🇰 and I'm 12 years old and who adopted me

Blockquote

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

79239324

Date: 2024-11-30 10:34:14
Score: 1
Natty:
Report link

Alternatively, if you don't mind whether those key values exist NOW but just want to add the constraint for future entries, you can turn off validation on your alter table statement by adding NOVALIDATE at the end:

ALTER TABLE table2
ADD FOREIGN KEY (EMPNO)
REFERENCES table1(EMPNO) 
NOVALIDATE;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: crilopez

79239321

Date: 2024-11-30 10:32:14
Score: 1.5
Natty:
Report link

I faced with a very similar case after Spring Boot 3 and Spring Security 6 upgrade with one of the custom token authenticated WebSocket service. I used the CustomWebSocketHandshakeHandler handler for extracting the token from websocket connection and then stored the user information in "simpUser" parameter of the websocket session. Afterwards, spring security could manage to authenticate the user with RabbitMQ easly. Here is the whole implementation details: https://medium.com/@ysrgozudeli/handling-custom-websocket-authentication-in-spring-boot-3-0-upgrade-619168d1a1c9

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: A. Yasar G.

79239315

Date: 2024-11-30 10:26:12
Score: 2
Natty:
Report link

Changing the number of views limits in a dashboard (Microsfot Dynamics CRM)

Go to MSCRM_CONFIG

Go to DeploymentProperties Table

Where ColumnName = DashboardMaximumControlsLimit

Set IntColumn = 50

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mazyar Shafaat Doust

79239313

Date: 2024-11-30 10:26:12
Score: 2
Natty:
Report link

import numpy as np

def softmax(x): """ Softmax函数实现 """ e_x = np.exp(x - np.max(x)) return e_x / e_x.sum()

假设的带符号8个整数输入

input_numbers = np.array([-2, 1, 3, -1, 0, 2, 4, -3])

softmax_result = softmax(input_numbers)

print(softmax_result)

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

79239302

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

If you are using compose and edgeToEdge is enabled, you can use Modifier.displayCutoutPadding() or Modifier.safeDrawingPadding() to get rid of this issue.

Do not try to apply the padding yourself by using WindowInsets.displayCutout.asPaddingValues() because it will not work.

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

79239290

Date: 2024-11-30 10:16:09
Score: 2
Natty:
Report link

Solution (thanks to @MrMT's answer in comments):

var isPaused = false;
// replaced a random number with a counter to check that it doesn't reset
let num = 0;
function draw() {
    function loop() {

        if (isPaused === false) {
            num++;
            testArea.textContent = `${num}`;
        }
        else {
            return;
        }

        setTimeout(() => { requestAnimationFrame(loop); }, 200);
        return;
    }
    loop();
}
function pauseMenu() {
    pauseScreen.classList.remove("hide");
    console.log("paused");
    isPaused = true;

    resumeButton.addEventListener("click", pauseResume);
}

function pauseResume() {
    isPaused = false;
    console.log("unpaused");
    pauseScreen.classList.add("hide");
    
    // otherwise after passing over if (isPaused === false)
    // current line will exit the loop altogether!
    draw();
}

It worked in my canvas animation code too with a few edits. Much appreciated!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): appreciated
  • Whitelisted phrase (-1): It worked
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @MrMT's
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: touchofstatic

79239280

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

I also faced the same problem. They are tracing lines inside my bidurcation diagram. I found this solution.

Here is my code.

import matplotlib.pyplot as plt
import numpy as np

def logistic(x, a):
    return a * x * (1 - x)

# Range of 'a' values
k = np.linspace(2.8, 4, 1000)

# Number of iterations and data collection after transients
n = 200
m = 50  # Collect the last 50 points to visualize bifurcation

x_axis = []
y_axis = []

for a in k:
    x0 = 0.1  # Initial value of x
    # Iterate to remove transient behavior
    for i in range(n):
        x0 = logistic(x0, a)
    # Collect data for plotting bifurcation
    for i in range(m):
        x0 = logistic(x0, a)
        x_axis.append(a)
        y_axis.append(x0)

# Plotting the bifurcation diagram
plt.figure(figsize=(10, 7))
plt.plot(x_axis, y_axis, ',k', alpha=0.25)  # Small markers for clarity
plt.title("Bifurcation Diagram")
plt.xlabel("Parameter a")
plt.ylabel("Population")
plt.show()

But the problem here why is it loop until 100 at the first loop and then continue the iteration?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Muhd Izzat

79239278

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

I am having problems with Case 'No' only. Let me explain, Under Case "No" i have want to find with range in coulmn A(there are multiple cells to find with word doument) and paste value in 2 different way. Let assume 1 way is to paster value in the next para . So i used below code and it works

Set wordRange = newWordDoc.Content

            With wordRange.Find
                .Text = Left(description, 255)
                .Replacement.Text = ""
                .Forward = True
                .Wrap = 1
                .Format = False
                .MatchCase = False
                .MatchWholeWord = False
                .MatchWildcards = False
                .MatchSoundsLike = False
                .MatchAllWordForms = False
            End With
            

If wordRange.Find.Execute Then ' Paste the value in the next paragraph after the description wordRange.Collapse Direction:=0 wordRange.MoveEnd Unit:=4, Count:=1 wordRange.Text = wordRange.Text & valueToPaste wordRange.Font.Bold = False End If

however there are some para where table are appearing in the word doc and these have 3 columns , i want to paste with under table at specificed row let support ....in excel column a text appearing "A.4" at cell A320 the same text is in word document "A.4" is appearing and there is table after than , so i want to paste value from column E (say cell E320) with function cell offset (0,5) under row 2 column 3 of the table (2,3) appearing in the word document , then "A.4" is also appearing in cell A321 of in excel now i want to paste value of cell E320 in the "A.4" para appearing in word but now in the table row 3 column 3 (3,3) . I used the below code but its only pasting value of E319 in row 2 and 3 .....so how can i define multiple criteria for pasting value for example then next criteria for "A.5"..... "? also the how to limit the first criteria .Text = Left(description, 255) to not execute on A.4 , A.5 as its is find a paste funciton for all the value matched

Else If wordRange.Find.Execute.Text="A.4" Then If wordRange.Tables.Count > 0 Then ' Paste the value in the respective row and last column

        Set table = wordRange.Next(wdParagraph).Tables(1)
        table.cell(2,3).Range = valueToPaste
             
Reasons:
  • Blacklisted phrase (0.5): how can i
  • Blacklisted phrase (1): I am having problem
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Anas Zubair

79239274

Date: 2024-11-30 10:03:07
Score: 1.5
Natty:
Report link

Yes you can. The context is allways created, and if you check the generated code, you can see the context as uses 'this' when the correspoding listener function is called, so it must be exist!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: György Gulyás

79239265

Date: 2024-11-30 09:59:06
Score: 0.5
Natty:
Report link

I found what is wrong in my code...

its bcz of Color(0xE8024585) where i have used opacity E8 (first two letters showing opacity value).. and i changed to FF and it is solved..

it was overlaping with safearea default colors...Thats it.

Reasons:
  • Whitelisted phrase (-1): it is solved
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Irfan Ganatra

79239263

Date: 2024-11-30 09:57:05
Score: 2
Natty:
Report link

The BigDecimal class is part of the java.math package, not java.lang. The Javadoc for methods using BigDecimal should refer to the correct package: java.math.BigDecimal. If you're able to submit an issue, submit the reference to java.math.BigDecimal to avoid confusion.

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

79239257

Date: 2024-11-30 09:56:05
Score: 2.5
Natty:
Report link

as far as I know, Visual Studio Code does not have this feature built in. But I solved this problem with this plugin: VSCode Highlight Matching Tag Extension

Here's how it works, I recommend you use it: VSCode Highlight Matching Tag Extension Working Screen Video (GIF)

Thanks...

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this plugin
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Agah Toruk

79239255

Date: 2024-11-30 09:55:05
Score: 2
Natty:
Report link

also try:

int[] numbers = { 1, 2, 3, 4, 5 };
double average = numbers.Average();
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ben Sella

79239249

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

The Answer is Here: Article by Doctor Scripto and is referenced in many places for solutions to System log queries via Powershell.

get-winevent -ComputerName $CompName -FilterHashtable @{logname='system'; level=1; StartTime=(get-date).AddDays(-30) } | Format-Table -Auto -Wrap

The key is the -FilterHashtable parameter. It seems to be specifically designed to process this type of information. Furthermore, it delivers the error's Message, it runs exponentially faster!

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

79239238

Date: 2024-11-30 09:47:03
Score: 1.5
Natty:
Report link

yes, exactly I observed the same problems in using the pytube library since the last days: Everything I tried duced to same Error: HTTP Bad Request By inspecting the network traffic I have recognized, that the problems ist too complicated for my knowledge. I hope, that the creators of pytube can fix it.

Greetings

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

79239236

Date: 2024-11-30 09:46:02
Score: 1.5
Natty:
Report link

You need to set the vertical alignment of buttons.

button {
  vertical-align: middle;
}

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

79239230

Date: 2024-11-30 09:42:01
Score: 0.5
Natty:
Report link

In my case, the pom file is right, the java version, source, target version are set correctly, but I was compiling from command line and the default java interpreter is set to JAVA 1.8. Updating it to JAVA 17 made it work.

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

79239224

Date: 2024-11-30 09:39:00
Score: 1.5
Natty:
Report link

This is a general solution for this type of errors that have appeared with recent android studio and flutter updates.

Modify android>settings.gradle file with this = id "com.android.application" version "8.3.2" apply false

Modify android>gradle>gradle-wrapper.properties file with this => distributionUrl=https://services.gradle.org/distributions/gradle-8.4-all.zip

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

79239219

Date: 2024-11-30 09:37:00
Score: 1.5
Natty:
Report link

Well, meanwhile I found out that the problem could be caused by incorrect assignment of X, Y arrays to (x, y) variables in plot. I swapped them to:

ax.pcolormesh(Y, X, C)

and the problem is gone. Hope, that some day this will help somebody.

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

79239218

Date: 2024-11-30 09:36:00
Score: 2
Natty:
Report link

You might try the unofficial Zeppelin Notebook extension with Remote-SSH.

FYI, The local notebook file will sync its metadata with the server when changes happen in cells. To make git version control easier, when you compare a notebook in history, you may disable metadata change view via "..." botton at the top right corner.

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

79239216

Date: 2024-11-30 09:34:59
Score: 7 🚩
Natty: 5.5
Report link

What permissions do i need to fully finish this. now i hane only whatsapp_business-messages. When requesting whatsapp_buisness_management im getting rejection. Can you help , please And after making request https://graph.facebook.com/v21.0/496216376907463/register i get such error

"message": "(#12) Deprecated for versions v21.0 or higher", "type": "OAuthException",

Reasons:
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (3): Can you help
  • RegEx Blacklisted phrase (1): i get such error
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Fingroup Projects

79239214

Date: 2024-11-30 09:32:58
Score: 2.5
Natty:
Report link

Make sure road side is safely because life is pressure life is xpersifu Make money in honest way because tomorrow you may live it and go different world 🌎**

  1. strong text

**

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

79239211

Date: 2024-11-30 09:31:57
Score: 1.5
Natty:
Report link

There's a maximum of 65535 characters in a line of code. (I had serialized a file for testing purposes into one line). If you exceed this line length, you'll get this error. I also went the route "repair" and that didn't work. I'm using VS 2017, C#, ASP.Net Core 2.1. 一行代码中最多有 65535 个字符。(为了测试目的,我已将一个文件序列化为一行)。如果超过此行长度,则会收到此错误。我也走了 “repair” 的路线,但没有用。我正在使用 VS 2017、C# ASP.Net Core 2.1。

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

79239210

Date: 2024-11-30 09:30:57
Score: 3
Natty:
Report link

Just make sure to exclude your gradle & project folder at your antivirus if you still need the antivirus on

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

79239204

Date: 2024-11-30 09:28:56
Score: 6 🚩
Natty: 4.5
Report link

Do you see any Autofac Resolve performance issue with HostApplicationBuilder?

I am asking a question about that at Autofac Resolve is extremely slow in .NET Generic Host HostApplicationBuilder. Please share your experience if any.

Thank you very much.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): Please share your
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kelvin Nguyen

79239203

Date: 2024-11-30 09:27:56
Score: 0.5
Natty:
Report link

First of all, you must instead of GLES31.glTexImage2D create immutable texture to be able a compute shader to write on it:

    GLES31.glTexStorage2D(
        GLES31.GL_TEXTURE_2D,
        1,                       // 1 level
        GLES31.GL_RGBA32F,
        1,                       // Texture width
        1,                       // Texture height
    )

Secondly, referring to this answer https://stackoverflow.com/a/53993894/7167920 ES version of OpenGL does not support using texture image data directly, you should use FrameBuffer.

Initialize it when you init:

frameBuffers = IntArray(1)
GLES20.glGenFramebuffers(1, frameBuffers, 0)

And here the working code of readAndLogPixelFromTexture():

checkGLError { GLES31.glBindFramebuffer(GLES31.GL_FRAMEBUFFER, frameBuffers[0]) }
checkGLError {
        GLES31.glFramebufferTexture2D(
            GLES31.GL_FRAMEBUFFER,
            GLES31.GL_COLOR_ATTACHMENT0,
            GLES31.GL_TEXTURE_2D,
            textures[texture],
            0
        )
    }
if (GLES31.glCheckFramebufferStatus(GLES31.GL_FRAMEBUFFER) != GLES31.GL_FRAMEBUFFER_COMPLETE) {
   throw RuntimeException("Framebuffer is not complete")
}
val pixelData = FloatArray(4)
GLES31.glReadPixels(pixel.first, pixel.second, 1, 1, GLES31.GL_RGBA, GLES31.GL_FLOAT, FloatBuffer.wrap(pixelData))
checkGLError { GLES31.glBindFramebuffer(GLES31.GL_FRAMEBUFFER, 0) }

// Log the color value to verify it
val r = pixelData[0]
val g = pixelData[1]
val b = pixelData[2]
val a = pixelData[3]
Log.d(TAG, "Compute shader result: R: $r, G: $g, B: $b, A: $a")
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Max Lebedev

79239200

Date: 2024-11-30 09:26:55
Score: 1.5
Natty:
Report link
You can implement like this.
    
 public IActionResult SignIn()
 {
    var redirectUrl = Url.Action("LoginCallback", "Account");
    var properties = new AuthenticationProperties { RedirectUri = redirectUrl };
    return Challenge(properties, OpenIdConnectDefaults.AuthenticationScheme);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Nitin P

79239195

Date: 2024-11-30 09:21:54
Score: 3.5
Natty:
Report link

The Project's Cmake has been changed, but Clion is not reloading the cmake file, so another way to fix it is to just reload the cmake project and it would fix the issue.

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