79192644

Date: 2024-11-15 13:49:38
Score: 6 🚩
Natty: 6
Report link

is there any update? I got the same error after reinstall python 3.12 appreciate if you can share any update on this Thank you~

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): update on this
  • Blacklisted phrase (1): is there any
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): is there any
  • Low reputation (1):
Posted by: Truong Trinh

79192641

Date: 2024-11-15 13:49:38
Score: 2
Natty:
Report link
ssh-keygen -t rsa << EOD
y


EOD

Don't forget the two spaces.

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

79192633

Date: 2024-11-15 13:47:37
Score: 1
Natty:
Report link

h1 {
  padding: 2px;
  background: cyan;
  font:bold,italic;
}
 span {
  background: linear-gradient(102deg, #ffffff00 5%, lightblue 5% 95%, #ffffff00 95%);
  display: inline-block;
  padding: 5px;
  color: #FFF;
  margin-left:30px;
  padding:10px;

}

  
<h1> <span> This is a title <span> </h1>

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

79192631

Date: 2024-11-15 13:46:37
Score: 1.5
Natty:
Report link

After much debugging, uncertainty, and many hours of suffering, it came down to uninstalling and reinstalling dependency. There was no specific error message or change in git history that I could identify as the source of this. I literally ended up painfully removing code from the App till I discovered the issue with the library.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pratik Prakash Bindage

79192623

Date: 2024-11-15 13:43:36
Score: 1
Natty:
Report link

which dbt version you are in? DBT 1.7 both team and enterprise gives option of job chaining.

To avoid duplicate runs, you can schedule job A to run Monday through Sunday excluding wednesdays as it will run as part of AB job. Cron schedule for that could be 0 0 * * 1-2,4-7

After that you could set up AB with job chaining like below as given in documentation

enter image description here

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): which
  • Low reputation (0.5):
Posted by: samhita

79192622

Date: 2024-11-15 13:43:36
Score: 0.5
Natty:
Report link

I found that using a box-shadow like inset -1px 0 #ccc for simulating a right border works fine with fixed columns and makes them fully scrollable.

For me preserving the table's default border-collapse: collapse; was quite important...

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

79192618

Date: 2024-11-15 13:42:35
Score: 1
Natty:
Report link

After digging a ton, the issue was caused by the workspace setting "editor.formatOnSaveMode": "modificationsIfAvailable". Removing this allowed me to configure the formatter for HTML as Prettier in the workspace without needing to set any User settings.

Not sure why format on save still worked with the same configuration but a different formatter, but at least it works now.

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

79192612

Date: 2024-11-15 13:41:35
Score: 1
Natty:
Report link

This is due to the behaviour of PRNG. Different code paths might be used. There is no guarantee that all different sequence length will produce exactly the same output samples from the PRNG.

The outputs from 1-15 match while starting from 16 another (probably vectorized) code path will be used. Changes in the sequence length could dispatch to faster code paths

Source: Odd result using multinomial num_samples...

It seems that this may not be an issue in downgraded torch versions.

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

79192611

Date: 2024-11-15 13:41:35
Score: 2.5
Natty:
Report link

So I need some help, after heroku updated how their REDIS_URL config variable works (talked about in link #1) my app stopped working. I tried to implement the fix (discussed in link #2) but it isnt working and i am stumped on what else to try.

My REDIS URL variable is saved in the Heroku Server and then it is saved in the Heokru REDIS and is updated automatically about once a month on the REDIS via the Heroku key value store mini add-on. This does not update the variable that is saved on the server and i need to update that every time the Redis one changes but thats a different problem.

Here is how my code looks for this variable in my server.js file

const Redis = require('ioredis');

const redisUrl = process.env.REDIS_URL.includes('?')
  ? `${process.env.REDIS_URL}&ssl_cert_reqs=CERT_NONE`
  : `${process.env.REDIS_URL}?ssl_cert_reqs=CERT_NONE`;


// Create a job queue
const workQueue = new Queue('work', {
  redis: {
    url: redisUrl
  }
});

And here is how my code look for the variable in my worker.js code

const redisUrl = process.env.REDIS_URL.includes('?')
      ? `${process.env.REDIS_URL}&ssl_cert_reqs=CERT_NONE`
      : `${process.env.REDIS_URL}?ssl_cert_reqs=CERT_NONE`;
    
    
     const workQueue = new Queue('work', {
       redis: {
         url: redisUrl
       }
     });

This is the error that shows up in my server logs

2024-11-15T13:06:10.107332+00:00 app[worker.1]: Queue Error: Error: connect ECONNREFUSED 127.0.0.1:6379
2024-11-15T13:06:10.107333+00:00 app[worker.1]: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1610:16) {
2024-11-15T13:06:10.107333+00:00 app[worker.1]: errno: -111,
2024-11-15T13:06:10.107333+00:00 app[worker.1]: code: 'ECONNREFUSED',
2024-11-15T13:06:10.107333+00:00 app[worker.1]: syscall: 'connect',
2024-11-15T13:06:10.107333+00:00 app[worker.1]: address: '127.0.0.1',
2024-11-15T13:06:10.107333+00:00 app[worker.1]: port: 6379
2024-11-15T13:06:10.107334+00:00 app[worker.1]: }

Link #1 https://help.heroku.com/45F0AY28/what-are-the-upcoming-changes-to-the-redis_url-config-var-for-heroku-key-value-store-mini-add-ons

Link #2 https://stackoverflow.com/questions/65042551/ssl-certification-verify-failed-on-heroku-redis#:~:text=I%20solved%20my%20problem%20by%20adding%20%3Fssl_cert_reqs%3DCERT_NONE%20to%20the%20end%20of%20REDIS_URL%20in%20my%20Heroku%20config.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): I need some help
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chris Marshall

79192609

Date: 2024-11-15 13:40:35
Score: 0.5
Natty:
Report link

If already upgraded to 365

=LET(res,CONCAT(TOCOL(IF(A1:A11<>1,ADDRESS(ROW(A1:A11),COLUMN(A1:A11),4,1),1/0),2)&","),
LEFT(res,LEN(res)-1))

enter image description here

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

79192601

Date: 2024-11-15 13:39:34
Score: 4
Natty: 6.5
Report link

I need this file:

https://github.com/giswqs/leafmap/raw/master/examples/data/wind_global.nc.

I have worked with this but lost the file. Plz provide me if available

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Imran

79192591

Date: 2024-11-15 13:36:33
Score: 0.5
Natty:
Report link

Don't inject the constructer. Instead create a normal constructor and only inject the repository.

@AndroidEntryPoint 
class CustomClass(val name: String) {

    @Inject
    lateinit val repository: Repository
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: spruce

79192587

Date: 2024-11-15 13:35:33
Score: 2
Natty:
Report link

Another thing that wasn't mentioned is that some people may use browser plugins to translate selected text (e.g. Google Translate plugin for Chrome). In this case, the user should be able to select the needed text.

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

79192569

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

I managed to fix the issue by following these steps:

  1. Shut down the application server (I was running it with npx expo start, so I just used Ctrl-C)
  2. Clean the NPM cache with npm cache clean --force
  3. Remove the node_modules folder (rm -fr node_modules in the project root), and also delete package-lock.json
  4. Reboot your computer (this was a necessary step for me)
  5. Open the project and do npm install.

After following these steps, I was able to run my app again!

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

79192555

Date: 2024-11-15 13:25:31
Score: 1.5
Natty:
Report link

Foot note to @Luis

If you are using python you can add fields argument the presigned post like this

    response = s3_client.generate_presigned_post("bucket",
                                             object_name,
                                             fields={"Content-Type": "application/octet-stream"},
                                             ExpiresIn=3600)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Luis
  • Low reputation (1):
Posted by: Göktürk

79192551

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

I was able to solve the issue, thanks to Luke's comment. The problem is not just limited to TouchableOpacity, but also affects other components such as Button and Pressable when using the onPress event in headerRight or headerLeft of Stack.Screen. By changing onPress to onPressIn, the issue was resolved for all these components. Here's the updated code:

<Stack.Screen
  name="notes/index"
  options={{
    title: "Dodo",
    headerRight: () => (
      <TouchableOpacity onPressIn={() => console.log("Button pressed!")}>
        <Text>Click Me</Text>
      </TouchableOpacity>
    ),
  }}
/>

Thanks again to Luke for pointing me in the right direction!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Francesca Bozzoli

79192550

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

I haved the same problem, just restart de database with "SQL SERVER CONFIGURATION MANAGER", and that it's true "MS SQL Server never store your password for security reason. MS SQL Server store only the HASH of your password.

Therefore settings form can't shown the password. Instead it shows some mysterious 15 character.", the password is the same that you set up, just need to restart de database server

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

79192548

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

https://docs.vespa.ai/en/operations-selfhosted/multinode-systems.html and https://docs.vespa.ai/en/operations-selfhosted/config-sentinel.html#cluster-startup are useful to understand the start sequence - in short, make sure the config server(s) is/are started first, making sure they run, then other pods can start, configured with config server locations.

https://github.com/vespa-engine/sample-apps/tree/master/examples/operations/multinode-HA/gke is also useful

Finally, your log message above indicates that you have not deployed the application to Vespa: "No application exists" - see https://docs.vespa.ai/en/application-packages.html - so there are no services to start

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

79192543

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

My understanding is that your qas branch is out of sync with the origin I would try to debug and resolve the state, by investigate the logs.

git fetch git log origin/qas --oneline

git log qas --oneline

Maybe it shows you why git is confused.

If you know that you dont need the other branch current state and dont care that others may hate you, you can always force =)

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

79192531

Date: 2024-11-15 13:20:29
Score: 2.5
Natty:
Report link

I've tried solving this with the following terraform code snippet

provider "databricks" {
  alias      = "account"
  account_id = "00000000-0000-0000-0000-000000000000"
  host       = "https://accounts.azuredatabricks.net"
}

provider "databricks" {
  account_id = "00000000-0000-0000-0000-000000000000"
  host       = module.databricks.workspace_url
}

locals {
  workspace_user_groups = toset([
    "my_account_group",
  ])
}

data "databricks_group" "workspace_user_groups" {
  provider   = databricks.account
  for_each   = local.workspace_user_groups

  display_name = each.value
}

resource "databricks_permission_assignment" "workspace_user_groups" {
  for_each = local.workspace_user_groups

  principal_id = data.databricks_group.workspace_user_groups[each.key].id
  permissions  = ["USER"]
}

resource "databricks_group" "workspace_user_groups" {
  depends_on = [databricks_permission_assignment.workspace_user_groups]
  for_each   = local.workspace_user_groups

  display_name = each.value
}

but this fails with a claim issue like the following when reading the account groups:

Error: cannot read group: io.jsonwebtoken.IncorrectClaimException: Expected iss claim to be: https://sts.windows.net/9652d7c2-1ccf-4940-8151-4a92bd474ed0/, but was: https://sts.windows.net/4ed310c5-f7a0-49ec-982b-34aeeeaea662/

anyone knows what's the issue here ?

Reasons:
  • Blacklisted phrase (1): anyone knows
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: clowa

79192517

Date: 2024-11-15 13:17:29
Score: 0.5
Natty:
Report link

Ooh. Thanks tkausl. It seems I just forgot to call lambda. Here is fixed snippet:

template<typename... Args>
std::vector<std::shared_ptr<int>> createSourceVector(Args... args)
{
    std::vector<std::shared_ptr<int>> result;
    (
        [&]() {
            result.push_back(std::make_shared<int>(args));
        }(),
        ...);
    return result;
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: qloq

79192516

Date: 2024-11-15 13:17:29
Score: 2.5
Natty:
Report link

I stumbled upon this old thread whilst looking for a solution, in the end I just changed the 'protected $page' class variable to 'public $page' and then you can just change the current page with $pdf->page = 1;

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dan - See Green

79192513

Date: 2024-11-15 13:16:26
Score: 7.5 🚩
Natty:
Report link

I'm having the same issue. As far i know, that featured thingy is a premium feature in Artifactory. Are you using the 'oss' version or the 'pro' one?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: David Gómez Collado

79192511

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

Because you do not check for:

fgets(string, 256, fp) != NULL

You do not write something in your variable anymore but you did not reach EOF so you continue to print the last known value of string.

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

79192509

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

You have to specify the column type as a DataGridViewComboBoxColumn

var relatedColumn = (DataGridViewComboBoxColumn)paymentTable.Columns[0]; 
// 0 is your name column index

relatedColumn.Items.Add("New Item");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Musa AKYUZ

79192503

Date: 2024-11-15 13:12:25
Score: 4
Natty:
Report link

I suggest you follow the migration guide from the ESLint documentation. You can start using the configuration migrator on your existing configuration file.

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

79192484

Date: 2024-11-15 13:07:23
Score: 1.5
Natty:
Report link

Possibly, the system is still looking for python3.8. Have you exported python3.13 to the system path in your bashrc? Also, you can have multiple Python versions at once. A common practice is to work with a Python virtual environment, which you can set up with any of the versions available on your system. See https://docs.python.org/3/library/venv.html

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ravi

79192482

Date: 2024-11-15 13:07:23
Score: 1
Natty:
Report link

I found the answer!!! I saw it on JetBrain's official site. (Here)

Basically, In Settings > Plugins, Disable IdeaVim. At first, it disabled my ability to select altogether, but then I restarted Rider and it worked ok.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Daksh Saxena

79192474

Date: 2024-11-15 13:05:23
Score: 0.5
Natty:
Report link

What you are locking for is the property transform: skew().

Just give the container its value and its child elements the opposite one.

.skew {
  background: #ff00ff;
  text-align: center;
  padding: 1rem;
  width: 60%;
  transform: skew(-20deg);
  margin: 0 auto;
}

h1 {
  transform: skew(20deg);
}
<div class="skew">
  <h1>Hello World!</h1>
</div>

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): What you are
  • Low reputation (0.5):
Posted by: MrJoky

79192471

Date: 2024-11-15 13:04:22
Score: 1
Natty:
Report link

You also have to add the recipe to the image you are building. In one of the layers there should be a st-image-qt.bb file. It should be in <layername>/recipes-core/images. There, you have to add it with IMAGE_INSTALL:append = " mygui " (Note the space after the "). Only then the recipe is included in the image, only adding the layer is not enough.

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

79192470

Date: 2024-11-15 13:04:22
Score: 0.5
Natty:
Report link

Replace YOURFIELD with your field. And you can omit the ISNULL part if you like.

 SELECT ISNULL(CAST(CAST(YOURFIELD AS VARBINARY(MAX)) AS
 NVARCHAR(MAX)),'NA') AS YOURFIELD FROM YOURTABLE
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MTMDev

79192468

Date: 2024-11-15 13:03:22
Score: 2.5
Natty:
Report link

You probably have to View / Debug Area / Activate Console

enter image description here

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

79192467

Date: 2024-11-15 13:02:22
Score: 2.5
Natty:
Report link

After some testing i found a solution, and it works. If anyone has any alternative and better method please let me know. Thank you :)

#include <gtk/gtk.h>

gboolean single = TRUE;
gboolean longPress = FALSE;

void click_event (GtkGesture *gesture,
                  int n_press,
                  gdouble x,
                  gdouble y,
                  gpointer user_data)

{
    if (n_press > 1) single = FALSE;
        longPress = FALSE;
}

void stopp_event (GtkGesture *gesture, gpointer user_data)
{
     if (single == FALSE){
         g_print("Double click\n");
     
     }else {
           if (longPress == FALSE)
               g_print("Single click\n");
     }
     single = TRUE;
     longPress = TRUE;
}

void long_press (GtkGestureLongPress* self,
                 gdouble x,
                 gdouble y,
                 gpointer user_data)
{
     g_print("long pressed\n");
}

static void
activate (GtkApplication* app,
          gpointer        user_data)
{
  GtkWidget *window;

  window = gtk_application_window_new (app);
  gtk_window_set_title (GTK_WINDOW (window), "Window");
  gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
  gtk_window_present (GTK_WINDOW (window));

  GtkGesture *gesture = gtk_gesture_click_new();
  gtk_gesture_single_set_button(GTK_GESTURE_SINGLE(gesture), GDK_BUTTON_PRIMARY);
  gtk_widget_add_controller(window,(GTK_EVENT_CONTROLLER(gesture)));
  g_signal_connect (gesture, "released", G_CALLBACK (click_event), NULL);
  g_signal_connect (gesture, "stopped",G_CALLBACK(stopp_event), NULL);

  GtkGesture* gesture_long_press = gtk_gesture_long_press_new();
  gtk_gesture_single_set_button(GTK_GESTURE_SINGLE(gesture_long_press), GDK_BUTTON_PRIMARY);
  gtk_gesture_single_set_exclusive (GTK_GESTURE_SINGLE (gesture_long_press), TRUE);
  gtk_event_controller_set_propagation_phase((GtkEventController  *)gesture_long_press, GTK_PHASE_CAPTURE);
  gtk_gesture_long_press_set_delay_factor ((GtkGestureLongPress *)gesture_long_press, 1);
  gtk_widget_add_controller (window, GTK_EVENT_CONTROLLER (gesture_long_press));
  g_signal_connect (gesture_long_press, "pressed", G_CALLBACK (long_press), NULL);

  gtk_window_present ((GtkWindow *)window);
}

int
main (int    argc,
      char **argv)
{
  GtkApplication *app;
  int status;
  #if GLIB_CHECK_VERSION(2, 74, 0)
      app = gtk_application_new ("org.gtk.example", G_APPLICATION_DEFAULT_FLAGS); 
  #else
        app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE); 
  #endif
  g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
  status = g_application_run (G_APPLICATION (app), argc, argv);
  g_object_unref (app);

  return status;
}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dibyendu

79192453

Date: 2024-11-15 12:57:21
Score: 2
Natty:
Report link

You can add geom_vline(xintercept = c(-0.75, 1.00, 2.75, 4.25, 6.00, 7.75), linewidth = 3, color = 'gray92') + below your firt geom_vline

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Yacine Hajji

79192450

Date: 2024-11-15 12:56:20
Score: 1
Natty:
Report link

Every EventCard uses the same ViewModel so the same PictureViewModel.bitmap is used in every card. You should save the Bitmap in the Event model, so each Event will have its Image.

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

79192446

Date: 2024-11-15 12:55:20
Score: 1.5
Natty:
Report link

I think i have solution for query. I've tried this way it will work for you.

here are some steps of implementation of Dependency Injection.

1. Add Hilt Dependencies Add the necessary dependencies in your build.gradle file:.

Add this into your app build.gradle.kts file

dependencies {
    ksp("com.google.dagger:hilt-compiler:2.48")  // for dagger
    implementation("com.google.dagger:hilt-android:2.48") // for hilt

    implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1") // viewmodel

    implementation("com.squareup.retrofit2:converter-gson:2.9.0") // retrofit 
    implementation("com.google.code.gson:gson:2.10.1") // gson
}

And add this into your project build.gradle.kts file

    plugins {
        id("com.android.library") version "8.0.2" apply false
        id("com.google.dagger.hilt.android") version "2.48" apply false
        id("com.google.devtools.ksp") version "1.9.0-1.0.13" apply false 
}

Add this plugins id to your app build.gradle.kts file

plugins {
    id("com.google.dagger.hilt.android")
    id("com.google.devtools.ksp")
}

Okay perfect now , we have completed our dependency step.

We will head to implementation step.

2. Initialize Hilt in the Application Class Annotate your Application class with @HiltAndroidApp

@HiltAndroidApp
class WeatherApplication : Application()

3.Create a Network Module Define a Hilt module to provide dependencies like Retrofit and OkHttpClient.

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object NetworkModule {

    @Provides
    @Singleton
    fun provideRetrofit(): Retrofit {
        return Retrofit.Builder()
            .baseUrl("https://api.weatherapi.com/v1/")
            .addConverterFactory(GsonConverterFactory.create())
            .build()
    }

    @Provides
    @Singleton
    fun provideWeatherApi(retrofit: Retrofit): WeatherApi {
        return retrofit.create(WeatherApi::class.java)
    }
}

4. Create an API Interface Define an interface for the API endpoints.

import retrofit2.http.GET
import retrofit2.http.Query

interface WeatherApi {
    @GET("forecast.json")
    suspend fun getCurrentWeather(
        @Query("key") apiKey: String,
        @Query("q") location: String,
        @Query("days") days: Int,
        @Query("aqi") aqi: String,
        @Query("alerts") alerts: String
    ): WeatherResponse
}

5. Create a Repository Use the WeatherApi in a repository class. Mark the class with @Inject to enable dependency injection.

import javax.inject.Inject

class WeatherRepository @Inject constructor(private val api: WeatherApi) {

    suspend fun fetchWeather(location: String): WeatherResponse {
        return api.getCurrentWeather("your-api-key", location, 7, "yes", "yes")
    }
}

6. Create a ViewModel Use the repository in your ViewModel. Annotate the ViewModel with @HiltViewModel.

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import javax.inject.Inject

@HiltViewModel
class WeatherViewModel @Inject constructor(
    private val repository: WeatherRepository
) : ViewModel() {

    private val _weatherData = MutableLiveData<WeatherResponse>()
    val weatherData: LiveData<WeatherResponse> get() = _weatherData

    fun loadWeather(location: String) {
        viewModelScope.launch {
            try {
                val weather = repository.fetchWeather(location)
                _weatherData.value = weather
            } catch (e: Exception) {
                // Handle error
            }
        }
    }
}

7. Inject Dependencies in an Activity or Fragment Use the @AndroidEntryPoint annotation to enable dependency injection in your activity or fragment.

import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.example.test.databinding.ActivityMainBinding
import com.example.test.di.WeatherViewModel
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class WeatherActivity : AppCompatActivity() {

    private val viewModel: WeatherViewModel by viewModels()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_weather)

        viewModel.weatherData.observe(this) { weather ->
            // Update UI with weather data
        }

        // Fetch weather for a location
        viewModel.loadWeather("New York")
    }
}

Remember one thing that WeatherResponse is your data class and that could a lot longer so i've mentioned here.

Reasons:
  • Blacklisted phrase (1): this plugin
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Inject
  • User mentioned (0): @AndroidEntryPoint
  • Low reputation (1):
Posted by: Benjamin Lawson

79192438

Date: 2024-11-15 12:54:20
Score: 4.5
Natty: 5.5
Report link

how can we update the picklist field with parameter value in the ADO through ADO yaml pipeline

Reasons:
  • Blacklisted phrase (1): how can we
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how can we
  • Low reputation (1):
Posted by: Shafi Shaik

79192437

Date: 2024-11-15 12:53:19
Score: 1
Natty:
Report link

matplotlib.rcdefaults(). And, on the same page

matplotlib.style.use('default') or rcdefaults() to restore the default rcParams after changes

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

79192436

Date: 2024-11-15 12:53:19
Score: 0.5
Natty:
Report link

The updates I made based on a friend's answer worked. I wish he hadn't deleted the answer. I would consider it valid. Unfortunately, someone gave -1 point and he deleted the answer.

I change it: IIS -> Application Pools -> Advanced Settings

Identity = NetworkService

and I add code base:

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls | SecurityProtocolType.Ssl3;

my problem is solved.

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

79192420

Date: 2024-11-15 12:47:18
Score: 1.5
Natty:
Report link

You could:

Buffer points - it looks like your points are fairly uniformly spaced, so buffer by their spacing (radius + 1 metre) so they overlap with their neighbour.

Dissolve resulting buffer points, specifying your "abk" field. This will create a separate multipart polygon for each "abk" code.

Set up the labelling to label each multipart, and set symbology to "no symbology" and you will have something like the below.

Might need to play around with it a bit but hopefully should get you there.
Final points grid

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

79192417

Date: 2024-11-15 12:46:18
Score: 3
Natty:
Report link

Windows shutil

pip install pytest-shutil

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

79192416

Date: 2024-11-15 12:45:17
Score: 5
Natty: 4
Report link

please do you know what the conditions would be for a three-digit tape? Sum of 3 numbers? For example 101_10_110.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Radovan Němec

79192406

Date: 2024-11-15 12:42:14
Score: 7.5 🚩
Natty: 5.5
Report link

I am looking for same solution. Have you got any leads?

Reasons:
  • Blacklisted phrase (2): I am looking for
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Iman Owais

79192399

Date: 2024-11-15 12:40:13
Score: 4
Natty:
Report link

solution can be found from this comment

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

79192386

Date: 2024-11-15 12:36:12
Score: 3.5
Natty:
Report link

pip3 install ls5 the pypi package, view the code and you'll find what you need.

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

79192383

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

sudo nano /etc/docker/daemon.json Add the following configuration to disable IPv6 { "ipv6": false } After modifying the daemon.json file or disabling IPv6 on the host, restart the Docker service to apply the changes sudo systemctl restart docker

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

79192372

Date: 2024-11-15 12:31:10
Score: 1
Natty:
Report link

I think I've found a solution, which is though not as convenient as direct indexing:

i, j = mask.nonzero(as_tuple = True)
x[i, j, :, :3] = y[i, j]

However, in situation that shape of the masked dimensions are unknown, an additional reshaping will be involved to squeeze the unknown dimensions in one, which still cause extra time and memory. So I still think that it is nonsense that mask and slice assignment cannot be used simultaneously.

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

79192368

Date: 2024-11-15 12:30:10
Score: 1
Natty:
Report link

I found an answer here.

A possible way to do this is:

expect(repository).to receive(:clone) do |**kwargs|
  expect(kwargs).not_to include(:branch)
end

Admittedly not as neat as a single matcher but it get the job done.

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

79192359

Date: 2024-11-15 12:26:09
Score: 1.5
Natty:
Report link

Using MANAGE_EXTERNAL_STORAGE is not a viable solution, especially if you’re planning to publish your app on the Play Store, as it will likely get rejected. The proper way to save files on Android 34 is by using the MediaStore API. It doesn’t require any special permissions to write to public folders.

I’ve developed a Flutter plugin that solves this issue for you. Feel free to give it a try, and if you encounter any problems, you can open an issue on the repository. I’d be happy to help!

https://pub.dev/packages/downloadsfolder

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

79192344

Date: 2024-11-15 12:21:08
Score: 0.5
Natty:
Report link

How it works? It works exactly as you described. And the behavior you described is perfectly expected. Let's see.

Nothing prevents the user from typing whatever this person wants, even not a number. If you need to write code guarded against incorrect input, you need to read not even a number, but the string, try to parse it into a number in the required domain of values and handle all the unsuitable input accordingly.

The purpose of subrange types is completely different. This is a static (that is, based on compile-time data) feature. In other words, the valid range is known statically. First, it allows the compiler to choose the underlying integer type automatically, based on the range known from the code during compile-time. Also, it makes necessary compile-time checks and validates that the range and operations like assignment or comparison operations are compatible. This check can work with constants or immediate constants (the examples of immediate constants are created when you write the literals 41 and 1 under your IF and REPEAT&hellip; UNTIL) statements. You have described one of the situations.

In other words,

VAR
j: 1..40;

//..

j := 41; // compile-time error, failure to build the code

//..

IF (j <= 40) AND (j >= 1) //... compile-time warning: it is statically 
// analyzed that you cannot do, for example, assignment j := 41,
// therefore, the comparison operator will always return true,
// so, the IF condition is always met

In this sense, the subrange types are extremely useful.

The data entered by the user is the run-time data. It has nothing to do with the subranges. In the case of your subrange type, the input is interpreted according to the underlying type created during the build of the code.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How it
  • Low reputation (1):
Posted by: Sergey A Kryukov

79192337

Date: 2024-11-15 12:20:07
Score: 5
Natty:
Report link

If types of parameters are the same, may be easier to create a vector (to iterate by indexing) or map (to iterate by names) and iterate over it?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: qrspeter

79192333

Date: 2024-11-15 12:18:06
Score: 1
Natty:
Report link

Using macOS Sequoia & postgres version 15
Add following line to your bash file:

export PATH="/usr/local/opt/postgresql@15/bin:$PATH"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Muhammad Waqar Shahid

79192332

Date: 2024-11-15 12:18:06
Score: 2.5
Natty:
Report link

This error also happens when writing into a folder without specifying the name of the file to be created

solution ...\filename.txt'

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

79192326

Date: 2024-11-15 12:17:06
Score: 0.5
Natty:
Report link

Use the --debug-sql option of the Django test runner.

Enables SQL logging for failing tests. If --verbosity is 2, then queries in passing tests are also output.

./manage.py test --debug-sql
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: salomvary

79192325

Date: 2024-11-15 12:17:06
Score: 1
Natty:
Report link

Great. the SECOND I look onto the post, I find my typos in MoneyForm.

passing {{control}} instead of {control} to my TextInputForm. Duhh!

Not that I haven't stared at the code for an hour before writing all this up :-)

Hilarious.

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

79192323

Date: 2024-11-15 12:15:06
Score: 0.5
Natty:
Report link

What I was missing was to set ZBX_SERVER_HOST to the name of the service defined in the docker-compose file.

Maybe I am missing a point but I believe ZBX_SERVER_HOST should be present in the docker-compose example because the default localhost that ZBX_SERVER_HOST goes to will result in a correct connection in most containerized configuration of Zabbix web server + Zabbix server.

In my case the relevant part of the docker compose is:

services:
  zabbix-server:
  ...
  zabbix-web:
    environment:
      ...
      - ZBX_SERVER_HOST=zabbix-server
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (0.5):
Posted by: Andrea Montalbani

79192320

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

Good news! Fixed the problem, thanks for the answers. here the function now:

size_t
    TileSet_encode (struct TileSet_s *tileset,
        bytes_t **bytes, size_t bytes_offset, size_t bytes_size)
{
    // next we collect the vertices, duplicated aren't stored so we need to collect
    // them and then calculate.
    struct UnitSet_s set;

    if (!UnitSet_init(&set))
    {
        return 0;
    }

    for (TileSet_Size_t ti = 0; ti < tileset->count; ++ti)
    {       // translation of this stuff:
            // iterate each tile and iterate each vertex of each tile.
        for (unsigned short vi = 0; vi < TILE_VERTICES_MAX; ++vi)
        {       // dump the vertex into the set, if we fail terminate operation.
            if (UnitSet_add(&set, tileset->tilearray[ti]->tiledata.vertices[vi]) == UNIT_SET_NOMEM)
            {
                UnitSet_destroy(&set);
                return 0;
            }
        }
    }

    // size is ok. :P
    size_t size_tiles = tileset->count * TILE_ENCODED_SIZE;
    size_t size_vertices = sizeof(double) * set.list.length;
    size_t bytes_to_write = 8 + size_tiles + size_vertices;

    if ((bytes_size - bytes_offset) < bytes_to_write)
    {       // now we know how much space the whole thing takes.
            // ensure to increase space if needed.

        bytes_size = bytes_offset + ((bytes_size - bytes_offset) + bytes_to_write);
        bytes_t *newbytes = realloc(*bytes, sizeof(**bytes) * bytes_size);

        if (!newbytes)
        {       // failed to increase bytes buffer.
            return 0;
        }

        *bytes = newbytes;
    }

    // ******************************************************************
    // improvements from here.

    uint16_t chunk_x = 20;
    uint16_t chunk_y = 40;

    memset((*bytes) + bytes_offset, 0xAA, bytes_size - bytes_offset);   // TEST, remove garbage.

    memcpy((*bytes) + bytes_offset, &chunk_x, sizeof(uint16_t));
    memcpy((*bytes) + bytes_offset + 0x02, &chunk_y, sizeof(uint16_t));
    memcpy((*bytes) + bytes_offset + 0x04, &tileset->count, sizeof(uint16_t));

    for (TileSet_Size_t tnum = 0; tnum < tileset->count; ++tnum)
    {
        size_t bytes_tile_offset = bytes_offset + 0x08 + (tnum * TILE_ENCODED_SIZE);
        struct TileSet_Tile_s *tiledata = tileset->tilearray[tnum];

        uint8_t tile_id = (uint8_t) tiledata->id;

        memcpy((*bytes) + bytes_tile_offset, &tile_id, sizeof(tile_id));

        for (size_t vi = 0; vi < TILE_VERTICES_MAX; ++vi)
        {
            uint16_t tile_vidx = (uint16_t) vi;

            memcpy((*bytes) + bytes_tile_offset + 1 + (vi * sizeof(uint16_t)),
                &tile_vidx, sizeof(tile_vidx));
        }
    }

    for (size_t vi = 0; vi < set.list.length; ++vi)
    {
        double unit = (double) set.list.array[vi];

        memcpy((*bytes) + bytes_offset + 0x08 + size_tiles + (sizeof(unit) * vi),
            &unit, sizeof(unit));
    }

    // ******************************************************************

    UnitSet_destroy(&set);

    return bytes_to_write;
}

In Short

The result buffer is what I want. The function needs some extra tweaks and over-all it works.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: magg

79192316

Date: 2024-11-15 12:14:05
Score: 1.5
Natty:
Report link

For filtering, sure! Use Filters:

enter image description here

If sheet protection doesn't work, I'm afraid there is no way to protect the PT.

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

79192306

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

Resolved it myself, as there was no response.

Firebase Hosting doesn't support Quartz directly as it supported Gatsby

So, i had to host the site via Cloud Run using Caddy and then had to do firebase deploy --only hosting

Quite a learning. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sushanth Bobby Lloyds

79192305

Date: 2024-11-15 12:10:04
Score: 1
Natty:
Report link

The presence of NOTRACK rules in raw may have an effect

-A PREROUTING -p tcp -j NOTRACK 
-A OUTPUT -p tcp -j NOTRACK

If they are present, it is worth removing or adjusting them

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

79192297

Date: 2024-11-15 12:09:04
Score: 1.5
Natty:
Report link

Following @sudip-parajuli's suggestions I modified my PromoCode serializer as below:

class PromoCodeSerializer(serializers.ModelSerializer):
    code = serializers.CharField(allow_blank=True)
    class Meta:
        model = PromoCode

I also overrode the validate method of the OrderSerializer to remove promo_code data when the code value is empty:

def validate(self, data: dict):
    promo_code_data: dict = data.get("promo_code", None)
    if promo_code_data and promo_code_data.get("code"):
        return data
    else:
        data.pop("promo_code", None)
        return data

Solved my problem.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @sudip-parajuli's
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: devKOfori

79192292

Date: 2024-11-15 12:07:03
Score: 2.5
Natty:
Report link

I had a problem with the @types/node package. I just set the latest version of the @types/node package in the package.json file ("@types/node": "^16.15.0")

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

79192282

Date: 2024-11-15 12:04:02
Score: 3.5
Natty:
Report link

This might be another solution for modern browsers https://www.udacity.com/blog/2021/04/javascript-cookies.html

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

79192276

Date: 2024-11-15 12:02:01
Score: 4.5
Natty:
Report link

guys!

So, my team migrated from Oracle to Redhsift and we need to move the logic. Redhsift doesn't have MODEL clause and I have trouble with implementation of this recursive logic into regular sql with windowing functions (LAG). Would you share some hints on how to approach?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kondjitsu

79192268

Date: 2024-11-15 12:00:00
Score: 0.5
Natty:
Report link

If the AMI is public (in this case it is) you can use http://www.tools-4.cloud/amisearch , see the returned result below:

{ "id": "ami-06358f49b5839867c", "name": "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20190722.1", "creation_date": "2019-07-25T19:49:32.000Z", "public": true, "region": "eu-west-1" }

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

79192267

Date: 2024-11-15 11:59:00
Score: 0.5
Natty:
Report link

Just putting this out there - if like me you're using the default of expressJS - you can add the following middleware in the app.js file:

app.use(function (req, res, next) {
  res.locals.req = req;
  next();
});

and then in the nunjucks template you can reference it simply by putting {{req.originalUrl}}

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

79192255

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

You can get a list of the unique values using the constructor of HashSet

List<int> numbers = new() { 1, 2, 2, 2, 5, 6};
List<int> uniqueValues= new HashSet<int>(numbers).ToList();
int numberOfElements = uniqueValues.Count;

Credit to: https://josipmisko.com/posts/c-sharp-unique-list

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

79192251

Date: 2024-11-15 11:54:59
Score: 4
Natty:
Report link

Change the commiter_date, solve the problem

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

79192249

Date: 2024-11-15 11:54:59
Score: 3.5
Natty:
Report link

please i have these same issue ..

my owasp scan has been loading for about 1hr now..

don't know if you have an idea of what could be wrong..

Reasons:
  • Blacklisted phrase (1): what could be
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nkwa Jude tambe

79192245

Date: 2024-11-15 11:53:59
Score: 1.5
Natty:
Report link

Limitations of Google Apps Script: Web Apps

For starters, with your specific questions. It would require you to share your whole code to get some decent suggestions from the community for the reasons there is really no documented specific list that Web Apps has limitation from, based on the documentations.

Second, Best Practices that are in the documentation are all provided on this documentation, while restrictions are on this documentation.

With my previous experiences, it has a very quirky and limiting nature in terms using front end solutions like what you currently have in your Tech Stack, definite information about it is not documented and with that it is more on just slowly building it and just find out where the issue starts. Depending on your project, it might steer you away from using the platform and checks what are the non-negotiable and negotiable for your project.

References:

HTML Service: Best Practice

HTML Service: Restriction

Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Babanana

79192244

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

here is the file location. account/views/report_invoice.xml,

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

79192243

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

add parameter to job service

QUARKUS_PROFILE: events-support
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Алексей Нерода

79192229

Date: 2024-11-15 11:48:55
Score: 14 🚩
Natty: 5
Report link

I saw your post and I am in the same situation as you mentioned and I can't find the solution.

Were you able to find the solution to this error?

Regards.

Reasons:
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (2): I am in the same situation
  • RegEx Blacklisted phrase (1.5): can't find the solution
  • RegEx Blacklisted phrase (3): Were you able
  • RegEx Blacklisted phrase (2): can't find the solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: jmrufo

79192215

Date: 2024-11-15 11:45:54
Score: 1
Natty:
Report link

Here is a more simplified approach:

question = input("Enter an input like x^3, x^25 etc...: ")

n = question[question.index('^')+1:]
power = str(int(n) - 1)
derivative = n + 'x' + '^' + power
print(derivative)

Output:

Enter an input like x^3, x^25 etc...: x^25
25x^24

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

79192211

Date: 2024-11-15 11:43:53
Score: 0.5
Natty:
Report link

According to the AWS EMR documentation:

The last release of Amazon EMR to include Ganglia was Amazon EMR 6.15.0. To monitor your cluster, releases higher than 6.15.0 include the Amazon CloudWatch agent.

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

79192209

Date: 2024-11-15 11:43:53
Score: 3.5
Natty:
Report link

Please try create templates and static folders inside your application.

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

79192207

Date: 2024-11-15 11:42:53
Score: 0.5
Natty:
Report link

I guess you are using an open-source OpenOCD version. Stepping through the code doesn't work for STM32H7xx CPUs using the official OpenOCD (but flashing works fine, as you have found out).

To make your debug setup work properly, you can create a debug configuration in STMCubeIDE and use that instead. That uses ST's OpenOCD version, which includes modifications to OpenOCD by ST for it to work correctly with their MCUs.

You can possibly copy ST's OpenOCD scripts into your project and make it work properly.

Note that STMCubeIDE's version is ahead of https://github.com/STMicroelectronics/OpenOCD, as ST haven't kept the public version up-to-date, so do not use that, it won't work.

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

79192199

Date: 2024-11-15 11:40:53
Score: 3.5
Natty:
Report link

Fixed: Issue was I had all 3 charts called myCharts. Once I named them myChart1, myChart2, and myChart3, resizing worked

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

79192197

Date: 2024-11-15 11:39:52
Score: 3
Natty:
Report link

I can't believe I am writing this but... it was because the component is called "tabs". I changed it to "AppTabs" and intellisense immediately accepted the dynamic slots and the errors no longer appeared in vue-tsc.

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

79192196

Date: 2024-11-15 11:39:52
Score: 1.5
Natty:
Report link

You can achieve this effect by applying the .inner shadow modifier directly to your foreground style.

Example:

Image(systemName: "heart.fill")
  .font(.system(size: 64, weight: .semibold))
  .foregroundStyle(
    .white
    .shadow(
      .inner(color: .black, radius: 3)
    )
  )

Resulting SwiftUI View

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

79192181

Date: 2024-11-15 11:36:52
Score: 2
Natty:
Report link

you're doing great. All clouds have souls. IF clouds had souls it would never stop raining. The boat was like a pea floating in a great bowl of blue soup. I was at some place other than my body. I felt awful and nobody believed me. We just sat there and said nothing.

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

79192180

Date: 2024-11-15 11:36:52
Score: 0.5
Natty:
Report link

I solved it with the following command :)

export CPATH=$(xcrun --sdk macosx --show-sdk-path)/usr/include/

Refs:

Reasons:
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: chck

79192177

Date: 2024-11-15 11:34:51
Score: 3
Natty:
Report link

This crash is possible even when using dequeueReusableCell by different objects inside the same method. Maybe it can save someone time..

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

79192171

Date: 2024-11-15 11:33:50
Score: 3.5
Natty:
Report link

The question is similar to the following: How to ignore double-clicks and detect single-clicks in C with GTK4 (< 4.10)? . It is therefore important that the program waits for the timeout and only then decides how to evaluate the click.

How this can be programmed, I have shown here:

https://stackoverflow.com/a/79159604/22768315.

Have fun programming.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Holger

79192162

Date: 2024-11-15 11:31:50
Score: 1
Natty:
Report link

I was struggling as well to get the actual counts. In the current UI , there might be some issue with selecting resources (I was not able to do so). Hence I used PromQL language.

  1. Go to the metric explorer in monitoring.

  2. select promQL on right hand side.

  3. Enter this code:

sum by (response_code_class)(run_googleapis_com:request_count{monitored_resource="cloud_run_revision"})

Give the dashboard some time to refresh and collect the data , Later you can see the request cumulatively adding up based on you selected filter on time.

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

79192158

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

Better to use MudDataGrid and than you can use Format="d" parameter.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tibor

79192151

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

Since the inclusion of PSReadline I tend to encapsulate anything I want to paste (that's not a function) in a try/catch block; then the paste will complete before execution, even if a block inside is concluded.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rune

79192147

Date: 2024-11-15 11:25:48
Score: 0.5
Natty:
Report link

Thanks to everyone who made suggestions. Especially MTO and no-comment.

In the end the following code worked:

def substring_sieve(data):
    prev, *remaining = sorted(data)
    output = [prev]
    for value in remaining:
        value = value.rstrip('/') + '/'
        if not value.startswith(prev):
            output.append(value)
            prev = value
    return output

This handles edge cases where there is a duplicate entry in the input list, and where one of the paths is a substring of another. For example: ['/home/greatlon/test_site2', '/home/greatlon/test_site']

Thanks again all!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: the_slug

79192143

Date: 2024-11-15 11:23:47
Score: 2
Natty:
Report link

"An Integrator key was not specified" indicates that your request was missing the Authorisation header needed to authenticate your request. I'd recommend checking if your application is setting the authorization header after obtaining the access token

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

79192139

Date: 2024-11-15 11:21:46
Score: 2
Natty:
Report link

Actually, if we think in terms how Postgres identify types int4, int8 and so on, then:

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types

In the accepted answer int8 is mentioned as sbyte, but I hardly believe that anyone would define byte (even sbyte) as int8

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

79192138

Date: 2024-11-15 11:21:46
Score: 3.5
Natty:
Report link

Is there a faster way to move multiple blob objects from one bucket to another for gcp bucket as backup storage? i mean by using the Google Storage Transfer Service

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: Hemant Mishra

79192135

Date: 2024-11-15 11:21:46
Score: 5
Natty: 4.5
Report link

This is a known issue: IJPL-91127 Pasting text from MS Office document into .md file creates an image

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

79192133

Date: 2024-11-15 11:20:46
Score: 3.5
Natty:
Report link

Maybe this will help you, I wrote an article about lerna + rollup settings

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

79192123

Date: 2024-11-15 11:17:45
Score: 1
Natty:
Report link

We can use pricehub package

Installation:

pip install pricehub

Usage:

from datetime import datetime, timedelta

import matplotlib.pyplot as plt
from pricehub import get_ohlc

now = datetime.now()
df = get_ohlc("binance_futures", "BTCUSDT", "1d", now - timedelta(days=365), now)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Evgenii Lazarev

79192120

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

yep i am getting the same response for for getting follower, though the docs in no so good conveying this but we need atleast basic tier it seems..

When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.

{ "client_id": "29610191", "detail": "When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.", "registration_url": "https://developer.twitter.com/en/docs/projects/overview", "title": "Client Forbidden", "required_enrollment": "Appropriate Level of API Access", "reason": "client-not-enrolled", "type": "https://api.twitter.com/2/problems/client-forbidden" }

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

79192103

Date: 2024-11-15 11:12:43
Score: 4.5
Natty:
Report link

I don't have enough reputations to leave this as a comment.

Check this if this helps. Undoing a git rebase

Reasons:
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tobi Akintunlese

79192101

Date: 2024-11-15 11:11:43
Score: 1.5
Natty:
Report link

You Can Command Your cache clean with this command.

php artisan optimize:clean

After that your artisan properly run with database connection.

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

79192100

Date: 2024-11-15 11:11:43
Score: 2.5
Natty:
Report link

I was able to solve this issue by opening the example/android folder in the Android Studio

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

79192099

Date: 2024-11-15 11:11:43
Score: 1
Natty:
Report link

You can convert the sys_time to local_time with std::chrono::current_zone()->to_local(now). Then you can convert the local_time to year_month_day.

const std::chrono::sys_days now = std::chrono::system_clock::now();
const std::chrono::local_days local_now = std::chrono::current_zone()->to_local(now);
const std::chrono::year_month_day ymd{ local_now };
Reasons:
  • Blacklisted phrase (1): days now
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: cpplearner

79192095

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

I've been through and documented BOTH Windows Procedures here;

Windows SSH ‘No Matching Key’

And for macOS here;

macOS – SSH Error ‘No Matching Exchange Method Found’

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