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

79239181

Date: 2024-11-30 09:12:52
Score: 1.5
Natty:
Report link

I can get the first half simply by using the same seed ie 12345 and generating 150 points, however how do i generate the next 150 points such that they are the same as 151-300 points generated in original sequence? what is the seed that i have to provide, is there a way to calculate that seed value?

I don't think you can do that. Your best bet is to use a different seed for every parallel section: generate 150 points on one machine with one seed, and 150 points with a different seed on the second machine.

Warning: Do not use the same seed in different parallel sections! Doing so will duplicate the work done by another machine and the randomness of your results will decrease.

You could alter your sequential program to change seed after 150 generated points. This way, you could achieve reproducibility between sequential and parallel program.

Reasons:
  • Blacklisted phrase (1): how do i
  • Blacklisted phrase (1): is there a way
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Janez Kuhar

79239156

Date: 2024-11-30 09:07:51
Score: 2.5
Natty:
Report link

It would be good to see the pubspec.yaml file and error message to solve this problem. When adding assets to the pubspec.yaml file, you need to make sure that the places you will put are correct, including spaces, it would be good to provide more details to solve the problem.

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

79239153

Date: 2024-11-30 09:06:50
Score: 2
Natty:
Report link

Powershell:

Get-Content <filename> -First 5
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andrei

79239152

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

From experience - it is not so simple. You need to have take into account:

  1. engine used for inference (TGI? pure transformers? llama-cpp)
  2. card type (really it matters whether it is H100 or L40S or A100)
  3. batch size
  4. is it a chatbot like experience or maybe you need to process offline?
  5. What is the maximum context you would like to process?

On basis of this you need to run some benchmark and generalize it

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: artona

79239151

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

correctify someone's answer

To @Róbert Nagy's answer

According to How to Use Tooltips in Jetpack Compose

There are now TooltipBox function (added in 1.2.1 version in androidx.compose.material3 dependency)

The TooltipBox function is defined as follows.

fun TooltipBox(
    positionProvider: PopupPositionProvider,
    tooltip: @Composable TooltipScope.() -> Unit,
    state: TooltipState,
    modifier: Modifier = Modifier,
    focusable: Boolean = true,
    enableUserInput: Boolean = true,
    content: @Composable () -> Unit,
)

To Art Shendrik's answer

There are no PlainTooltipBox function in 1.3.1 version in androidx.compose.material3 dependency.

No PlainTooltipBox function in 1.3.1 version in androidx.compose.material3 dependency.

Here are code snippets of libs.version.toml (I use the Maven)

libs.version.toml

[versions]
// ...
material3 = "1.3.1"

[libraries]
// ...

androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "material3" }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Róbert
  • Low reputation (1):
Posted by: GeeksMathGeeks

79239146

Date: 2024-11-30 08:59:49
Score: 2.5
Natty:
Report link

It could be a selection issue caused by the browser. Try user-select: none CSS rule

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

79239133

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

Do you not need to use AddHostedService. The default template code should work fine

Vs 2022 project creation

public class Program
{
    public static void Main(string[] args)
    {
        var builder = WebApplication.CreateBuilder(args);

        // Add services to the container.

        builder.Services.AddControllers();

        var app = builder.Build();

        // Configure the HTTP request pipeline.

        app.UseAuthorization();


        app.MapControllers();

        app.Run();
    }
}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zubaer Naseem

79239131

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

Why did you make a table with a construction from columns, and not from rows? All you had to do was pass the emit('delete', row.id). And in the parent component, where you store the rawTable reactive data, delete the row by index.

In your case, you need to delete data from the roleColumn, and you will have to go through all the columns and remove the row whose ID you pass. Since the data is reactive, there will be no need to refresh the page, and everything will be updated immediately.

Reasons:
  • Whitelisted phrase (-1): In your case
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why did you
  • Low reputation (1):
Posted by: Mentat_Radnor

79239120

Date: 2024-11-30 08:44:45
Score: 8 🚩
Natty: 5.5
Report link

I couldn't get it to work, do you have the complete code?

Reasons:
  • RegEx Blacklisted phrase (2.5): do you have the
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shanth Kumar

79239119

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

Use driver.quit() method and it will be solved.

Explaination: The rootcasue of this error is that the socket is not closed properly. Websocket is still open so when we are executing this class step definition then it won't get the socket when you are closing it and will throw the error. So, just use driver.quit() method and error will be gone.

enter image description here

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

79239111

Date: 2024-11-30 08:38:43
Score: 2
Natty:
Report link

You have to install OpenBLAS in Windows too. Since you don't have Conda you have to get the official binary packages for your Windows version in the releases section of the GitHub project page.

This link explains how to install. Here are the instructions:

There are separate packages for x86-64 and x86. The zip archive contains the include files, static and shared libraries, as well as configuration files for getting them found via CMake or pkg-config. To use these binaries, create a suitable folder for your OpenBLAS installation and unzip the .zip bundle there (note that you will need to edit the provided openblas.pc and OpenBLASConfig.cmake to reflect the installation path on your computer, as distributed they have "win" or "win64" reflecting the local paths on the system they were built on)

Reasons:
  • Blacklisted phrase (1): This link
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lewis

79239110

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

Thanks to the input from @FrankHeikens, i found the random_page_cost parameter. Indeed, lowering that value (to tell postgres its not that expensive to access random parts of the disk) makes postgres use the index.

I found that in my example on my system, for 10M rows, the value needs to be 1.15 or lower.

ALTER TABLESPACE pg_default SET (random_page_cost=1.1);

EXPLAIN ANALYZE SELECT COUNT(*) FROM auction_jsonb_indexed WHERE item->>'author' = 'Author 1';

Aggregate  (cost=10906.93..10906.94 rows=1 width=8) (actual time=4.152..4.154 rows=1 loops=1)
  ->  Bitmap Heap Scan on auction_jsonb_indexed  (cost=87.60..10882.00 rows=9970 width=0) (actual time=2.803..3.858 rows=10000 loops=1)
        Recheck Cond: ((item ->> 'author'::text) = 'Author 1'::text)
        Heap Blocks: exact=10000
        ->  Bitmap Index Scan on jsonb_author  (cost=0.00..85.11 rows=9970 width=0) (actual time=1.465..1.466 rows=10000 loops=1)
              Index Cond: ((item ->> 'author'::text) = 'Author 1'::text)
Planning Time: 0.076 ms
Execution Time: 4.271 ms

(Btw: Note that the number of different values in the indexed field also changes the plan. If I create the table with cnt % 10, a slightly different plan is used. It still benefits from the index, but is considerably slower.)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @FrankHeikens
  • Self-answer (0.5):
Posted by: dbu

79239109

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

You can’t use git-format-patch(1) as a transport format like git-clone(1) since it doesn’t deal with merge commits. There’s also the missing committer metadata problem.

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

79239101

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

The easiest way is to use Filter, month, and year:

=filter('Form Responses 1' !A2:N,month('Form Responses 1' !G2:G)=12,year('Form Responses 1' !G2:G)=2025)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ganesh Chandak

79239098

Date: 2024-11-30 08:30:40
Score: 9.5 🚩
Natty:
Report link

did you find a solution i tried this video but it work's only on version 7.6.3 of gradle and lower video : https://www.youtube.com/watch?v=o8FGDFtPqQk&t=533s

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • RegEx Blacklisted phrase (3): did you find a solution
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you find a solution i
  • Low reputation (1):
Posted by: yassine oubihi

79239091

Date: 2024-11-30 08:26:38
Score: 4
Natty:
Report link

The problem is that the h1 element has default margins that are pushing it down. You can fix the header alignment according to w3school guide: https://www.w3schools.com/css/tryit.asp?filename=trycss_website_layout_navbar

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

79239084

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

Use Modularization If your project is large, consider breaking it into smaller modules. This practice not only reduces the size of generated classes but also improves build times and maintainability.

Review Custom Resource Usage Custom implementations that dynamically generate a lot of resources can also contribute to this issue. Simplify such logic or use alternative approaches.

By applying these methods, you can effectively address the "Class too large" error and ensure your project is optimized for performance and maintainability. If the issue persists, consider analyzing the APK or AAB using the APK Analyzer in Android Studio to pinpoint oversized classes and resource usage. Read It For More Information!

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

79239081

Date: 2024-11-30 08:21:37
Score: 2
Natty:
Report link

Pushing from the local repository after converting all the branches can restore up to 95% of the repository. However, historical PR data does not get restored (this happened to me). If you don't need it, then it should be fine. But if you do, you should contact Atlassian support as soon as possible. It took about a week with continuous follow-ups, but the repository was eventually restored.

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

79239080

Date: 2024-11-30 08:21:37
Score: 2.5
Natty:
Report link

OpenJDK is available on Github. You could try forking it and creating a Pull Request.

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

79239074

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

Verify Digest-Tag Match: Ensure the digest matches the :latest tag. Run:

bash Copy code docker manifest inspect MY_REPO/my-product/development/my_artifact:latest Pull by Digest Only: Try pulling without the :latest tag:

bash Copy code docker pull MY_REPO/my-product/development/my_artifact@sha256:e911cd696274444426a8da826da75710cf6909e87887b57f929b9fb8741ffa9a Authenticate: Ensure you’re logged into the private registry:

bash Copy code docker login MY_REPO Check Registry Support: Confirm your registry supports digest-based pulls or verify using the API.

Clear Cache: Pull with --no-cache:

bash Copy code docker pull --no-cache MY_REPO/my-product/development/my_artifact@sha256:e911cd696274444426a8da826da75710cf6909e87887b57f929b9fb8741ffa9a Inspect Permissions: Ensure you have access to the repository and digest.

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

79239070

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

To reference to another table, the id referenced must be primary key, and in mysql or mariadb don't use serial but instead use AUTO_INCREMENT if you want the id to be generated

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

79239068

Date: 2024-11-30 08:16:35
Score: 2
Natty:
Report link

Answering an old post, but since I managed to get here I will add my findings. According this issue

The C files generated are for testing purposes only.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: A. Penner

79239065

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

To test it, I opened a sheet more than 60 times. On open, there were running some Google App script code. Each run took around 1 second. In my case, it ran more than 60 times and is still running if I open that particular Google Sheet. I think the execution limit might be like:

Execute it as many times as you want till the app script cumulative run time is not exceeding 90 minutes in a 24 hour time period. 90 minutes means 5400 seconds. To validate it, I can't test the 5400 second limit manually. Note: I have a free Google account.

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

79239063

Date: 2024-11-30 08:15:35
Score: 8
Natty: 8.5
Report link

how can we have this code for Products image widget ???

Reasons:
  • Blacklisted phrase (1): how can we
  • Blacklisted phrase (1): ???
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): how can we have this code for
  • Low reputation (1):
Posted by: Behnam mk