79219584

Date: 2024-11-24 07:44:59
Score: 2.5
Natty:
Report link

The !findWidgetVisible seems to be new and it throws a wrench in the works. I get the point that ALT-A means something in the global Find/Replace widget as well as in the search viewlet. But it creates a lot of funny behavior because sometimes Alt+A works and sometimes it doesn't. Surely the fact that I just opened the search viewlet should mean that I am using it and not the global Find/Replace widget.

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

79219578

Date: 2024-11-24 07:41:59
Score: 1.5
Natty:
Report link

Yes, it is possible to host a multi-page React application on GitHub Pages. GitHub Pages can serve static files for any type of web application, including a multi-page application. However, you need to ensure that the routing for your application is set up correctly, as GitHub Pages uses the URL structure to serve files. This typically means you will have to manage your routes either by using hash-based routing (using HashRouter) or configure your application to handle routing properly in a way that aligns with how GitHub Pages serves the files. Make sure that your build process generates a unique HTML file for each route in your MPA.

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

79219575

Date: 2024-11-24 07:39:58
Score: 0.5
Natty:
Report link

you have two way.

for gcp secret: you can encode the json in base64 and add it in secret manager. after you get the secret in your function and decode from base64 in runtime.

(long opération for each runtime)

in github secret: you can encode too but décode only in ci:cd or github secret provide you a file solution well you write directly the json without base64 step. ( work on gitlab not sûre for the file in github)

https://docs.github.com/fr/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-an-environment

you can provide a service account for each environnement and stage local with your dev environnement in .gitignore

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

79219568

Date: 2024-11-24 07:34:57
Score: 0.5
Natty:
Report link

I've followed @CoastalB and its worked but the problem is it's take some delay to get index. so I've used two separate listener (animate and tap) for get index.

The current code is implemented with GetX, but you can easily apply this approach with stateful widget:

class GenerateController extends GetxController with GetSingleTickerProviderStateMixin {
  late TabController tabController;
  RxInt activeTabIndex = 0.obs;

  @override
  void onInit() {
    super.onInit();
    tabController = TabController(vsync: this, length: 2);
    tabController.addListener(_onTabIndexChanged);
    tabController.animation?.addListener(_onTabAnimation);
  }

  void _onTabIndexChanged() {
    // Fires at the end of tab change animation
    activeTabIndex.value = tabController.animation!.value.round();
    print("Tab index finalized: ${tabController.index}");
  }

  void _onTabAnimation() {
    // Fires during the animation
    activeTabIndex.value = tabController.animation!.value.round();
  }
  @override
  void onClose() {
    tabController.dispose();
    super.onClose();
  }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @CoastalB
  • Low reputation (1):
Posted by: Rifat Khan

79219567

Date: 2024-11-24 07:33:56
Score: 1.5
Natty:
Report link

I was exposing port 7000 of cassandra to 0.0.0.0:9042 . I needed to map port 9042 of cassandra to 0.0.0.0:9042 . As cassandra's CQL client connections listens to port 9042.

As in docker

docker stop cassandradb
docker rm cassandradb
docker run -d --name cassandradb -p 9042:9042 cassandra

It fixes the Cassandra connection.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Arka Dash

79219563

Date: 2024-11-24 07:32:56
Score: 1
Natty:
Report link

you can try

"styles": [
          "src/styles.scss",
        ],

and on your styles.css add this lines

@import "primeng/resources/themes/mira/theme.css";
@import "primeng/resources/primeng.css";
@import 'primeflex/primeflex.scss';
@import "primeicons/primeicons.css";

also considers running an npm upgrade

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

79219562

Date: 2024-11-24 07:31:56
Score: 0.5
Natty:
Report link

Just in case this may help someone: I put a bogus password on my VPN settings in my jamf configuration profile and it fixed my issue. I'm running Mac OS 14.7.1 and was getting the error that the VPN Service could not be created.

In my case I was pushing a Netskope VPN configuration with Jamf Pro by following the instructions at "https://docs.netskope.com/en/jamf/#approve-vpn-popup-for-app-proxy-1". Based on my research, the issue seems to always be related to a profile misconfiguration. Additionally, VPN profiles now require a password in order to apply. The password can be anything you want as it's not necessarily used.

I hope this helps someone.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jeremy

79219559

Date: 2024-11-24 07:28:56
Score: 2
Natty:
Report link

catch the crash by yourself and log the total threads of the app. Find out whether there is a thread leakage.

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

79219554

Date: 2024-11-24 07:25:55
Score: 1.5
Natty:
Report link

The problem was that I did not use openInvoice correctly.

The way to call openInvoice using JavaScript is as follows:

window.Telegram.WebApp.openInvoice("linkOfInvoice","CallBack(optional)")

To obtain "linkOfInvoice", we can use the Telegram API and the createInvoiceLink method.

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

79219553

Date: 2024-11-24 07:25:55
Score: 2
Natty:
Report link

Make sure that the ..\ui\extension folder exists in the components directory of your Next.js project. If it does not exist, create it and then run the following command: npx @shadx/cli add carousel. It will work

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

79219549

Date: 2024-11-24 07:22:54
Score: 2.5
Natty:
Report link

Title: Type created with keyof cannot be used to index the type it was created from

Body: I’m trying to write a utility function in TypeScript to access properties inside an object. Specifically, I want the function to: 1. Take an object (of a known structure) as the first argument. 2. Take the name of a property within data (from the object’s type) as the second argument. 3. Return the value of that property, with TypeScript correctly inferring the type of the returned value.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Low reputation (1):
Posted by: Saidali Saidali.n

79219538

Date: 2024-11-24 07:14:53
Score: 0.5
Natty:
Report link

What you've already setup is a worker account, with multiple regions, so keep everything you have there.

The question is asking you to more or less setup an Organization in AWS (see details https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tutorials_basic.html) Within the organisation you can create accounts, under organizational units, that exist only for particular workloads or environments. The above link describes this in far more detail, so there's not much value summarising it.

With regards to your specific requirement:

Hope that helps

Reasons:
  • Blacklisted phrase (1): regards
  • Whitelisted phrase (-1): Hope that helps
  • Long answer (-1):
  • No code block (0.5):
  • Starts with a question (0.5): What you
  • Low reputation (0.5):
Posted by: AshleyJ

79219533

Date: 2024-11-24 07:10:52
Score: 3
Natty:
Report link

Open:

system/config/default.php

system/config/catralog.php

Find:

$_['session_engine'] = 'db';

Replace

$_['session_engine'] = 'file';

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

79219531

Date: 2024-11-24 07:05:52
Score: 2
Natty:
Report link

try this

  1. flutter clean
  2. flutter pub upgrade
  3. pod install
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Prithiviraj

79219517

Date: 2024-11-24 06:56:50
Score: 0.5
Natty:
Report link

Cloud Run uses Docker containers, but it does not support Docker Compose. If you're relying on that docker compose yaml to wire up your containers, it's not going to work. If you want to use a yaml file to store your service configuration, Cloud Run uses a Knative service as its native Yaml format.

Cloud Run also doesn't support disks, so unless you want to have a very slow database serving off of a GCS storage bucket or a very expensive database serving off of a $400/month NFS share, you probably should run that in Cloud SQL and use the built in connector to connect the database to your Cloud Run Service.

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

79219507

Date: 2024-11-24 06:51:49
Score: 0.5
Natty:
Report link

For me this fixed it

sudo apt install libei-dev

If you are still facing problems troubleshoot with the help of Claude Sonnet it helped me narrow down the issue step by step which led to the solution

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

79219504

Date: 2024-11-24 06:50:48
Score: 2.5
Natty:
Report link

I've found a solution here which is a windows application that works like a charm

And this is the github repo for the TentacleSoftware.Telnet package

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: Arash.Zandi

79219503

Date: 2024-11-24 06:49:48
Score: 3
Natty:
Report link

Kaggle doesn't have real competition, and that's the only reason why is No1. I always loose my nerves when I have to upload something.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Darijo Živković

79219498

Date: 2024-11-24 06:46:47
Score: 5
Natty: 7
Report link

Saved my day, thanks monster, after days searching, get the winutils (full) and put hadoop inside spark, and spark not in (spark-3.5.1) but simple in C:/spark. and hadoop on C:/spark/hadoop and bin winutils inside hadoop, after that configure global variables and works!!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (2): Saved my day
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nicolas Kondo

79219469

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

Ensure that the audio file is indeed accessible via the public URL. Even though the URL may appear correct, there might be issues with server configuration or firewall restrictions.

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

79219441

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

#a script I use on my seedbox to grind media files down #10-22-24

find -iregex "..(mp4|avi|mkv|asf|divx|flv|m4v|mkv|mov|mpeg|mpg|ts|wmv|rm|rmvb|webm|m2ts)" -not -name ".x264.mp4" ; -exec HandBrakeCLI -i {} -o {}.handbrake.x264.mp4 -q 14 -e x264 -E mp3 -Y 480 ; -exec tar zcvf {}.tar.gz {}.handbrake.x264.mp4 ; -exec rm -vfr {} {}.handbrake.x264.mp4 ;

#crunches and tar balls

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

79219411

Date: 2024-11-24 06:12:39
Score: 3.5
Natty:
Report link

This is because your controller layer returns a string "post" instead of the post object

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

79219397

Date: 2024-11-24 05:59:36
Score: 2
Natty:
Report link

To get the PresentationSource for a WPF MessageBox, you can access the PresentationSource property of the Window that is internally created by the MessageBox when it is shown; however, directly accessing this property is not recommended as the MessageBox is a system-level dialog and its internal structure might change across versions

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

79219387

Date: 2024-11-24 05:51:35
Score: 2.5
Natty:
Report link

Tab limiter helps you get back control over your browsing – by limiting the number of tabs you can open at once. You can specify the number of tabs in total and per window. Moreover, you can show a customizable message when the tab limit is hit.

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

79219381

Date: 2024-11-24 05:39:33
Score: 3.5
Natty:
Report link

Ok - thanks to the jmcilhinney comment - it got me thinking. I found a solution - although it is not working exactly the way I want/need it to.

  1. Create a new calculated field in the Detail table - with expression like Len(Child.TextField) This will put a number in that field for each child record.
  2. In the calculated field in the Master table - use the following expression IIF (Sum(Child.CalcLenField) > 0, true, false) This causes a summation of the Lengths of all the child records. If any one of them has text in this field - then it sets the value of the calculated field in the Master to TRUE.

Now - this part was exactly what I was hoping to do - but it only gets calculated when I move the to the active record in the grid attached to the Master table. This makes sense - but not what was I was trying to do. I need to have the boolean value in the Table showing in the grid all the time - not just when I move to that record... I need to know which Master records have at least one Detail record with text in that field...

I guess I will have to create a calculated field and populate it in code when ever the table is loaded - or either the Master or Detail table are changed. Many thanks to those who took time to comment!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: G Bradley MacDonald

79219380

Date: 2024-11-24 05:37:31
Score: 7 🚩
Natty: 6
Report link

Is anybody have solution for it ? I have same problem.

Reasons:
  • Blacklisted phrase (1): I have same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Gültekin Temtek

79219373

Date: 2024-11-24 05:32:30
Score: 3.5
Natty:
Report link

The Inverse Square Law might help. When you double the distance from the light source you get 1/4 the brightness of light.

https://petapixel.com/assets/uploads/2016/06/lightfalloffsquare.jpg

https://petapixel.com/inverse-square-law-light/

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

79219363

Date: 2024-11-24 05:20:28
Score: 1
Natty:
Report link

According to this post on a ExifTool forum thread, I found success by losslessly remuxing videos with FFmpeg to remove video metadata with:

ffmpeg -i Input.mp4 -vcodec copy -acodec copy Output.mp4
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: taivlam

79219334

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

Use this shortcut to it:

CTRL+M+O

You can go in Edit/Outlining/Colopse to Definions.

Not in all files, but is just one command and you collpse all your code.

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

79219326

Date: 2024-11-24 04:50:23
Score: 3.5
Natty:
Report link

google chrome old version v125.0.6422.112 is here.

https://www.mediafire.com/file/sqi7n349x1ge0oz/google-chrome-stable_current_x86_64_v125.0.6422.112.rpm/file

This is last version of chrome Centos7 support.

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

79219307

Date: 2024-11-24 04:25:18
Score: 2.5
Natty:
Report link

As we know printf stetment return the number of character printf("1") return 1 Then we go to condition Statment printf("0") returns 1 but here the statement is (!printf("0")) !1=0 and the condition get false and we get out from for loop

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

79219301

Date: 2024-11-24 04:19:18
Score: 3
Natty:
Report link

I've found that running test flows "Automatically" causes this issue (even if previous dependent "Manually" run test flow works) ... whereas a fresh "Manually" with the PDF/etc attached to email (i.e. not DragDrop) works.

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

79219281

Date: 2024-11-24 03:42:12
Score: 1
Natty:
Report link

No, the arch_free_page function can be called from an atomic context (such as an interrupt). It is not possible to place a mutex in this function as it is required to not block or wait.

The function must be written to support freeing the page atomically.

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

79219274

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

@Ben Gribaudo mentioned that a bug does not allow the <Application.Resources> to connect properly. In his blog: http://bengribaudo.com/blog/2010/08/19/106/bug-single-application-resources-entry-ignored he mentioned a fix where you add a 'dummy' style entry as the bug seems to take effect when only one entry is defined.

I added <Style x:Key="unused because Application.Resources does not load if only one entry is defined." /> at then bottom under my button style which did the trick. Shame that a bug reported in 2010 is still here almost a month to 2025.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Ben
  • Low reputation (1):
Posted by: AndresV

79219273

Date: 2024-11-24 03:29:08
Score: 2.5
Natty:
Report link

import matplotlib.pyplot as plt import numpy as np

fig = plt.figure()

ax = fig.add_subplot(111, projection='polar')

ax.set_xticks(np.arange(1, 25) * np.pi / 12) ax.set_xticklabels([str(number) for number in range(1, 25)])

ax.set_yticks(range(1, 32)) ax.set_yticklabels([str(number) for number in range(1, 32)])

ax.grid(True)

ax.scatter(np.pi / 12 * 24, 31)

ax.set_ylim(0, 32)

plt.show()enter image description here

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

79219263

Date: 2024-11-24 03:18:07
Score: 1.5
Natty:
Report link

I think the issue lies with the version of java used by default. Android studio V34 (at least the gradle version, which some plugins may use) uses Java 17. Take a look at https://developer.android.com/build/jdks#compileSdk and see if this might help.

PS - I don't think you need to reinstall Android Studio, just install the version of Java it wants

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

79219261

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

No way. It does not even make any sense. Attributes are static, they just add some metadata to the file. They are already known during build time. During runtime, you can only read the metadata related to the attributes. This is how you make runtime behavior dependent on the attributes.

And you are talking about actual parameters (not formal parameters, not their types). They not just runtime object, they are different in each stack frame.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79219257

Date: 2024-11-24 03:09:05
Score: 0.5
Natty:
Report link

Creating an app that generates a random video game and displays its cover is an excellent idea for gaming enthusiasts! This app could be a fun tool for users who are indecisive about what to play next. By including filters such as genres, platforms, or release years, it could cater to different gaming preferences. Adding features like game descriptions, reviews, or links to stores could make it even more engaging and useful. With a polished interface and a touch of creativity, this app could become a go-to resource for discovering hidden gems in the gaming world.

While exploring gaming ideas, don’t miss out on the engaging simplicity of Money Rush, a game that’s perfect for a quick, entertaining break. In Money Rush, players strategize to grow their wealth by navigating obstacles and making the right choices, all while enjoying its fast-paced and addictive gameplay. Similarly, your app could offer a quick and exciting way for users to explore new games, just like Money Rush delivers instant fun. Whether it's discovering random games through your app or diving into the thrilling mechanics of Money Rush, both provide unique and enjoyable gaming experiences!

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

79219246

Date: 2024-11-24 02:56:03
Score: 4.5
Natty:
Report link

I'm having same problem, but I figure out that inside the android folder delete .gradle this will fix the issue

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having same problem
  • Low reputation (0.5):
Posted by: Mon Mohon Singha

79219241

Date: 2024-11-24 02:50:02
Score: 1.5
Natty:
Report link

You'll need to install Rtools before updating htmltools.

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/

After installing Rtools, you can search for the htmltools package to update or navigate to Navigate Tools -> Check For package updates.

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

79219240

Date: 2024-11-24 02:48:02
Score: 2.5
Natty:
Report link

Python in Excel:https://support.microsoft.com/en-us/office/get-started-with-python-in-excel-a33fbcbe-065b-41d3-82cf-23d05397f53d It might help you

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

79219236

Date: 2024-11-24 02:43:01
Score: 1.5
Natty:
Report link

The on-board LED Unlike the original Raspberry Pi Pico, the on-board LED on Pico W is not connected to a pin on RP2040, but instead to a GPIO pin on the wireless chip. MicroPython has been modified accordingly. This means that you can now do:

import machine led = machine.Pin("LED", machine.Pin.OUT) led.off() led.on()

or even:

led.toggle()

to change the current state. However, if you now look at the led object:

led Pin(WL_GPIO0, mode=OUT)

You can also do the following:

led = machine.Pin("LED", machine.Pin.OUT, value=1)

which will configure the led object, associate it with the on-board LED and turn the LED on.  NOTE Full details of the Raspberry Pi Pico W can be found in the Raspberry Pi Pico W Datasheet. WL_GPIO1 is connected to the PS/SYNC pin on the RT6154A to allow selection of different operating modes, while WL_GPIO2 can be used to monitor USB VBUS.

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

79219215

Date: 2024-11-24 02:19:57
Score: 3.5
Natty:
Report link

Are you using OAuth2 or basic authentication?

https://answers.microsoft.com/en-us/outlook_com/forum/all/will-smtp-auth-continue-working-for-outlookcom/97e8f84c-53d4-4a3b-b3cd-69cfab95a3c1

"Yes, after September 16, 2024 Basic Authentication can no longer be used to access any Outlook account."

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

79219196

Date: 2024-11-24 02:05:55
Score: 1
Natty:
Report link

Try to access https://github.com/settings/tokens and create a New personal access token (classic) with permissions: repo, user, gist and copilot. Worked for me like a charm! :)

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Marcelo Luz

79219195

Date: 2024-11-24 02:03:54
Score: 0.5
Natty:
Report link

The reason your code fails is due to the following;

On your 1st iteration it takes the list ["Entry 1", 1, 5] which translates to writing "Entry 1" into the merged cells from 1 to 5 (A to E) on the next row where these cells are tested as 'empty'. You start your checking from row 2 using cell row/column co-ordinates and given its a new Sheet this row will be empty and so A2:E2 is merged and the value written.
On the 2nd iteration you now have the list ["Entry 2", 2, 6] which translates to writing "Entry 2" into the merged cells from cols 2 to 6 (B to F) on the next row where these cells again test as 'empty'. You start with row 2 again but this time you are checking the cells from Column B. What I guess you dont realise is that the cell B2 still exists and can be referenced. Many of its usual attributes remain including .value and this attribute will be None, therefore passing your test.

I'll note here if the referenced cell or attribute did not exist your code would crash at this point anyway.

So all the cells you test in row 2 in the range B2 to F2 exist and all will have None as the value and pass your test.
Your code then tries to merge that range, which will execute but corrupt your workbook in the process and then try to write the text to cell 'B2' at which you code crashes as cell B2 is a merged cell resulting in the error
'AttributeError: 'MergedCell' object attribute 'value' is read-only'.

if you checked the cell types instead

        for count_column in range(entry[1], entry[2]+1):
            print(type(ws.cell(row=count_row, column=count_column)))  # <--- Add this line 
            if ws.cell(row=count_row, column=count_column).value is None:

you would see for each cell the type is
<class 'openpyxl.cell.cell.MergedCell'>
except for the last cell which is not part of the previous merge. It's type will be
<class 'openpyxl.cell.cell.Cell'>
which is the type you'll see for all the cells A2:E5 on the 1st iteration

So you can see your test does not cover every eventuality that can cause a problems writing your data.
I don't know how sophisticated you want the check to be but certainly you can include the cell type check if you think that is necessary.

However one simple thing you could also do is skip the row your know your already wrote data to.
In you code rather than hardcoding the start of the row range as 2, use a variable that starts at the next row after the last one you used so after the 1st iteration when you wrote to row 2 the next start row should be 3.

    for count_row in range(2, 5):  # <--- Modify this range on each list iteration

This obviously means the end value of the range would need to be adjusted too as the start could possibly eventually be larger.
However the method used here may not be the best anyway given your directive If so, I want Python to skip to the next row and write it there. What if rows 2, 3, 4 fail the test, do you want to stop there or keep going until you find a row for each of your list entries?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: moken

79219185

Date: 2024-11-24 01:58:53
Score: 2.5
Natty:
Report link

I finally got it working! It's 2:44am here now and we're two weeks of fucking around later :-P

I don't known why, but I started getting in trouble with the VirtualizingWrapPanel constantly flickering up to the point it became unusable and when I breaked the program I saw in the stack trace that it was constantly measuring and arranging. So I reckoned it had trouble sticking to a constant item size so I set the ItemSize property of the VirtualizingWrapPanel to something constant. And now all of a sudden all of my problems are gone and everything is working:

<ListView.ItemsPanel>
    <ItemsPanelTemplate>
        <vwp:VirtualizingWrapPanel 
            SpacingMode="None" 
            Orientation="Vertical" 
            ItemSize="240,20">
        </vwp:VirtualizingWrapPanel>
    </ItemsPanelTemplate>
</ListView.ItemsPanel>
Reasons:
  • Blacklisted phrase (2): fuck
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: miss programmer

79219175

Date: 2024-11-24 01:45:50
Score: 1.5
Natty:
Report link

In more recent versions the library's api changed and now they use the argument additional_headers to add new headers:

async def connect():
    async with websockets.connect("wss://site.com/ws", additional_headers=headers) as websocket:
        response = await websocket.recv()
        print(response)

Reference: https://websockets.readthedocs.io/en/stable/reference/asyncio/client.html#opening-a-connection

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: André Duarte

79219159

Date: 2024-11-24 01:30:47
Score: 3.5
Natty:
Report link

As many here have already suggested, I would definitely check out nektos/act. In fact, I recently developed a VS Code extension called GitHub Local Actions which leverages nektos/act, but also provides an interface designed to feel as familiar as the official GitHub Actions extension.

You can check it out using the links below:

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sanjula G

79219156

Date: 2024-11-24 01:22:46
Score: 0.5
Natty:
Report link

You are making it hard on yourself.

Use the NavigationComponent. You'll then never need to make a FragmentTransaction manually, as it is all done internally. Your single activity should be AppCompatActivity, which is inherited from FragmentActivity.

Get rid of Platform.CurrentActivity, whatever that is. In a single Activity app, you can refer to Activity when inside a Fragment. There is only one, so it can never be null.

Look at the new project I mentioned the other day with the new BooksFragment, and check how it's RecyclerView.Adapter works.

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

79219144

Date: 2024-11-24 01:07:43
Score: 1
Natty:
Report link

This was the error:

providers: [AuthService]

I totally forgot that having this creates a new instance of the service.

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

79219121

Date: 2024-11-24 00:41:38
Score: 4.5
Natty:
Report link

Putting here both question and answer since I am not allowed to comment on post for I don't have 50 reputation.

Error

While building a docker image with node.js NPM tries to access registry "https://registry.npmjs.org/express" but it can't find the root certificate that a "network proxy " demands for verification before forwarding the request to internet.

> [6/7] RUN npm install:                                                                                                                                                                                                                                
0.870 npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
0.870 npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
0.873 npm ERR! request to https://registry.npmjs.org/express failed, reason: unable to get local issuer certificate
0.881 
0.881 npm ERR! A complete log of this run can be found in:
0.881 npm ERR!     /root/.npm/_logs/2024-11-24T00_00_24_287Z-debug.log
------
Dockerfile:17
--------------------
  15 |     
  16 | >>> RUN npm install
  17 |     
  18 |     COPY . .
--------------------
ERROR: failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1

Answer

The NPM needs a root certificate for verification by proxy before proxy allows it to go out to internet.

More secure way then turning off ssl check!

npm config set strict-ssl

or Running this which did not work.

npm config set registry http://registry.npmjs.org/

is as mentioned in the code, copy this to your VScode.

FROM node:14

# Here you are setting the environment variable for your docker environment, no certificate existing yet!
ARG NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt

# Export and save your Org/company's root certificate (./certificates.crt) to your DOCKERFILE location (In WSL copy to \\wsl$\home\wsl\location)
COPY ./Certificate.crt ./usr/local/share/ca-certificates/

# Now the contents are being copied to default location of certificates where npm will look, its same location as set in env variable of docker. 
RUN cat /usr/local/share/ca-certificates/Certificate.crt >>/etc/ssl/certs/ca-certificates.crt

WORKDIR /app

COPY package.json .

RUN npm install

COPY . .

EXPOSE 3000

CMD [ "node", "app.mjs" ]

[Note: Do check https://www.docker.com/blog/docker-best-practices-using-arg-and-env-in-your-dockerfiles/]

Reasons:
  • Blacklisted phrase (1): did not work
  • Blacklisted phrase (1): not allowed to comment
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): I don't have 50 reputation
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user562164

79219111

Date: 2024-11-24 00:33:36
Score: 1
Natty:
Report link

Inspect not just the table argument but also the value argument to your callback. It contains the object. You can check for things such as the fk_event property.

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

79219110

Date: 2024-11-24 00:33:36
Score: 2
Natty:
Report link

(TLDR at the end.) From OpenGroup POSIX specification:

in the locale definition, the expression "[[.ch.]]" shall be treated as an RE containing the collating symbol 'ch', while "[ch]" shall be treated as an RE matching 'c' or 'h'. Collating symbols are recognized only inside bracket expressions. If the string is not a collating element in the current locale, the expression is invalid.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03_05

The solution was to use double brackets. I will push upstream to document this better.

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

79219109

Date: 2024-11-24 00:32:36
Score: 1
Natty:
Report link

Well, this is supported. There are no extra steps necessary to do this. One issue I see is that you have random hashtags in your elements...?? Here is a full example of a video element in HTML:

<video id="video" preload="auto" muted>
 <source src="video.mp4" type="video/mp4">
 Your browser does not support the video tag.
</video>
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Cole Bauml

79219104

Date: 2024-11-24 00:27:34
Score: 4
Natty: 5
Report link

Thank you so much dude. It worked nicely. Nice and small code fixed it all. How about removing or changing labels near x and y-axis?

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): It worked
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Graz Wilson

79219098

Date: 2024-11-24 00:21:33
Score: 1
Natty:
Report link

do you use typescript? you might need to create a nativewind-env.d.ts file with just this line in it:

/// <reference types="nativewind/types" />

and in your metro.config.js file, make sure you have this setup:

const { getDefaultConfig } = require("expo/metro-config");
const { withNativeWind } = require("nativewind/metro");

const config = getDefaultConfig(__dirname);

module.exports = withNativeWind(config,{ input: "./styles/global.css" });

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

79219090

Date: 2024-11-24 00:18:32
Score: 2.5
Natty:
Report link

Not even close. I cannot even guess where did you get such ideas. What you are trying to do under init looks line constructor and belongs to a constructor.

As to real init it simply means “initialization-only”. This is the accessor used to make compilation fail if some code tries a write operation on a property except the constructor of the class having this property.

This is an example

class ReadWritePropertyDemo {
    internal ReadWriteDemo() {
        ReadableInternallyInitOnly = 42; // only here
        ReadablePubliclyAndWritablePrivately = 43; // and by other methods 
                                                   // of this class,
                                                   // see below
    }
    void SetterForOne(int value) {
        ReadablePubliclyAndWritablePrivately = value;
    }
    internal int ReadableAndWritableInternally { get; set; }
    public int ReadablePubliclyAndWritablePrivately { get; private set; }
    // write access only for derived classes in containing assembly:
    public int ReadablePubliclyLimitedWrite
        { get; private protected set; }
    public int ReadablePubliclyAndWritableByDerivedClasses
        { get; protected set; }
    internal int ReadableInternallyInitOnly { get; init; }
    // and a lot more combinations with public,
    // internal, private, internal protected, private protected...
}
Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (3): did you get
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79219083

Date: 2024-11-24 00:08:30
Score: 3.5
Natty:
Report link

qiskit is trash and doesn't work. use cirq or penylane

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

79219069

Date: 2024-11-23 23:54:28
Score: 1
Natty:
Report link

Alt bindings are supported now in VsVim

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Carlo V. Dango

79219066

Date: 2024-11-23 23:49:27
Score: 2
Natty:
Report link

logarithm-based solution does (some of) the same things the String-based one does internally, and probably does so (insignificantly) faster because it only produces the length and ignores the digits. But I wouldn't actually consider it clearer in intent - and that's the most important factor. Share

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

79219061

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

Here is some explenation on what goes on under the hood.

  1. The insertion of elements in a HashMap is not dependent on the order in which they are added. Instead, it relies on the hash code of the key and the availability of slots in the map’s internal array.
  2. If the computed slot for a key is already occupied (due to a hash collision), the HashMap resolves this by either chaining or probing. This resolution process does not preserve insertion order and can involve traversing or modifying multiple slots.
  3. When the map’s capacity is exceeded, a new, larger map is created, and all existing entries are rehashed and redistributed. This rehashing process ignores the original insertion order entirely.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: grimur82

79219048

Date: 2024-11-23 23:38:24
Score: 3
Natty:
Report link

Trying to install pmdarima and getting same issue. I solved it by unistalling py 3.13 and downgrading to 3.12.7.

Nice and smooth !!!

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): getting same issue
  • Low reputation (1):
Posted by: José Alberto De León

79219037

Date: 2024-11-23 23:32:23
Score: 2
Natty:
Report link
=DROP(REDUCE("", UNIQUE(FILTER(B2:B14, C2:C14 < 0)),
 LAMBDA(a, v, VSTACK(a, FILTER(A2:C14, B2:B14 = v)))), 1)

enter image description here

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

79219031

Date: 2024-11-23 23:23:21
Score: 1
Natty:
Report link

Configure your server app to load Azure app configurations and then expose the settings you want your Blazor WASM client to have via an API endpoint and a shared class. In the Blazor WASM app create a component that wraps the entire app and makes a call to that API. Obviously, you won't be able to read these settings using IConfiguration, so store them in another singleton service.

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

79219017

Date: 2024-11-23 23:16:19
Score: 1.5
Natty:
Report link

So, this question is both yes and no. Can you build CMake projects directly from premake? No. However, that doesn't mean it's not possible using alternative methods.

Here are some possible solutions:

  1. Because premake is just lua, you could use os.execute(), and pass along your cmake build command, at the top of the premake file. Then, later down in the file, just link the newly generated library.
  2. Make a batch script called something like "build.bat", that builds the cmake library, and runs the premake file, which includes the newly generated library file.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Xeno

79219011

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

You could just use the tqdm library for the progress bar instead of creating your own.

def myf(row):
    row['1'] = 100
    return row

tqdm.pandas(desc="Calculating")
df = df.progress_apply(myf, axis=1)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: keithwalsh

79219001

Date: 2024-11-23 23:08:17
Score: 4
Natty:
Report link

You have an @SecurityRequirement annotation that attempts to enforce the security level of the insert method.

https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Annotations#securityrequirement https://docs.swagger.io/swagger-core/v2.0.0-RC3/apidocs/io/swagger/v3/oas/annotations/security/SecurityRequirement.html

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @SecurityRequirement
  • Low reputation (0.5):
Posted by: anicetkeric

79218996

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

Bizarrely, I found that the pandas error has nothing to do with pytables which was the last error produced. Up higher in the stack trace, I noticed an error about Callables not being imported (typing support).

This fixed me:

 pip install --upgrade typing_extensions
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: leeprevost

79218993

Date: 2024-11-23 22:58:16
Score: 1.5
Natty:
Report link

This may be caused by the types of @Id fields not matching the types in id class. According to https://docs.oracle.com/javaee/7/api/javax/persistence/IdClass.html

The names of the fields or properties in the primary key class and the primary key fields or properties of the entity must correspond and their types must be the same.

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

79218989

Date: 2024-11-23 22:55:15
Score: 1
Natty:
Report link

I was having the same issue. Cookies were set when hitting the API directly, but not when hit from the Blazor WebAssembly app.

The accepted solution helped me a lot to fix the issue. I ended up creating a CredentialsHandler to always set the BrowserRequestCredentials.Include to my http requests, and added it to my HttpClient:

public class CredentialsHandler: DelegatingHandler
{
    protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    {
        request.SetBrowserRequestCredentials(BrowserRequestCredentials.Include);
        return base.SendAsync(request, cancellationToken);
    }
}
Reasons:
  • Blacklisted phrase (1): helped me a lot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hugo Oliveira Lamounier

79218988

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

Thanks to @Alfred Luu's idea of using keybindings.

When you are staging commits in the integrated terminal, it's useful to have copilot suggest the commit message, allow you to make any edits, and then commit- without needing the mouse and returning the focus to the terminal for further commands like git status and git log

To add this functionality:

  1. In VSCode open your keyboard shortcuts to add a new shortcut. You can do this by pressing f1 and then type Preferences: Open Keyboard Shortcuts (JSON). This will open your keybindings.json file where you can save your custom keybinds.

  2. Inside, paste these three new keybindings:

    {
        "key": "ctrl+oem_1",
        "command" : "runCommands",
        "args": {
            "commands": [
                "workbench.view.scm",
                "github.copilot.git.generateCommitMessage",
            ]
        }
    },
    {
        "key" : "ctrl+oem_7",
        "command" : "runCommands",
        "args": {
            "commands": [
                "git.commit",
                "workbench.action.focusActiveEditorGroup",
            ]
        },
        "when": "!terminalFocus"
    },
    {
        "key": "ctrl+oem_7",
        "command": "runCommands",
        "args": {
            "commands": [
                "git.commit",
                "workbench.action.terminal.focus",
            ]
        },
        "when": "terminalFocus"
    }
  1. Replace the "key" with the keyboard shortcut you want for the two behaviours.

    • E.g.: "key": "ctrl+m"
  2. Save keybindings.json

How to use

My defaults are:

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Alfred
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: SWA

79218985

Date: 2024-11-23 22:51:14
Score: 2
Natty:
Report link

And also you can use a functional options and this code generator: https://github.com/kazhuravlev/options-gen

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: kazhuravlev

79218984

Date: 2024-11-23 22:49:14
Score: 0.5
Natty:
Report link
  1. Make sure you've added /root to virtual file shares. It's not there by default (docs). You said you already did this.
  2. In my case, this was not enough, but switching from VirtioFS to gRPC FUSE in Docker desktop > Settings > General > Virtual Machine Options fixed it.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Faiz Farouk

79218982

Date: 2024-11-23 22:48:14
Score: 2
Natty:
Report link

Here are the steps to resolve this:

  1. First, close Visual Studio if it's running, as it might be locking these files
  2. Delete the .vs folder (it will be recreated automatically by Visual Studio)
  3. Add .vs/ to your .gitignore file if it's not already there
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: appsPoint Co

79218978

Date: 2024-11-23 22:44:12
Score: 1.5
Natty:
Report link

When trying the function in my use case:

model <- mlogit(choice ~ attr_1+attr_2+attr_3, ewc_df2,
            child.var="DealerCode",
            alt.var='altkey',
            choice='choice',
            shape='long')

I am getting the following error:

Error in $<-: ! Assigned data value must be compatible with existing data. ✖ Existing data has 18329 rows. ✖ Assigned data has 18300 rows. ℹ Only vectors of size 1 are recycled. Caused by error in vectbl_recycle_rhs_rows(): ! Can't recycle input of size 18300 to size 18329.

Can't seem to find the reason why it's happening.

Reasons:
  • RegEx Blacklisted phrase (1): I am getting the following error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Gaurav Pathak

79218977

Date: 2024-11-23 22:44:12
Score: 2
Natty:
Report link

Brett Montgomery has stalked me via VoIP phone services since 2016. Please stop using my family's devices for control for the narcissistic supply people who gather on this in secret gather. I wouldn't mind if it didn't result in editing of messages, conditional calling on all 12 devices.Montybrett and Monzey of Richmond, Melbourne not Virginia fraudster and time wasting of mine is my main concern which needs to be stopped. Not to mention the fraud involved. [email protected]

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

79218966

Date: 2024-11-23 22:37:10
Score: 1.5
Natty:
Report link

gRPC over HTTP/2 is generally faster than REST over HTTP/2, and the reasons come down to how each is designed. gRPC uses Protocol Buffers (protobuf), which is a compact and efficient binary format, unlike REST, which typically relies on JSON—a text-based format that's slower to process and takes up more space. Another advantage of gRPC is its built-in support for bidirectional streaming, allowing the client and server to send data back and forth in real-time. REST, on the other hand, sticks to the traditional request-response model, which isn’t as efficient for streaming. While both gRPC and REST benefit from HTTP/2 features like multiplexing and header compression, gRPC is designed to make the most of these features, resulting in lower latency and better performance, especially in high-throughput scenarios.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: oussama gadria

79218963

Date: 2024-11-23 22:34:10
Score: 4.5
Natty: 7.5
Report link

I am in need if assistance locating PIN2... my search results suggested/ recommended inputting 0000 ...it DID NOT WORK! I am now weary of inputting wrong info because of limited attempts. Someone said last four of phone number.... ALSO...DID NOT WORK!!Any info is appreciated. I have a lost device and trying to reset and change all info links pws etc.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): DID NOT WORK
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Veronica Acuña Cortez

79218960

Date: 2024-11-23 22:32:09
Score: 5.5
Natty: 5.5
Report link

kinda off topic but, what ascii is that?

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

79218958

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

I just ran into the same issue. It seems to be a bug with visual studio, as if you continue past the exception while debugging it seems to progress as normal.

Some discussion of the issue here:

https://github.com/dotnet/aspnetcore/issues/58967

https://github.com/dotnet/aspnetcore/issues/53996

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

79218956

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

Experiencing the same issue editing a typescript file with Visual Studio 2022 version 17.12.1. Found the issue to be related to the GitHub Copilot feature. I was able to stop the issue occurring by clicking GitHub Copilot, shown in the top-right corner of the editor, selecting Settings, then disabling Enable Copilot Completions.

I could not find any other condition that causes this issue. It seems to happen after some time developing when Enable Copilot Completions is enabled.

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

79218950

Date: 2024-11-23 22:21:05
Score: 1
Natty:
Report link

Old question, posting the update as I was searching for it. The images are updated periodically, but can be applied immediately via following command

multipass find --force-update
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Harish Kumar

79218946

Date: 2024-11-23 22:19:05
Score: 0.5
Natty:
Report link

I had to combine Craig Kelly's response with this one: https://stackoverflow.com/a/77911668/3776765

@pytest.fixture(scope='session')
def event_loop():
    try:
        loop = asyncio.get_running_loop()
    except RuntimeError:
        loop = asyncio.new_event_loop()

    yield loop

    pending = asyncio.tasks.all_tasks(loop)
    if pending:
        loop.run_until_complete(asyncio.gather(*pending))
    loop.run_until_complete(asyncio.sleep(1))

    loop.close()
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: M.Vanderlee

79218944

Date: 2024-11-23 22:15:04
Score: 1.5
Natty:
Report link

However, if you just want to run python programs, all you need is the python binary (and the libraries your script wants to use). The binary is usually at /usr/bin/python3 or /usr/bin/python3.9

This is incorrect, python depends on a number of Linux c libs which must be present. This is particularly important if you're looking to build distroless python images as they will not be present by default.

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

79218942

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

Answer found on Tooljet community support: Docker Compose file has been updated since the 3.0 version (Seems to be a Postgresql version change mostly)

Correct version of the docker compose file correct the issue.

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

79218941

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

You might use elasticlone for that. It supports bulk copying from a server to another server, with timeouts and retry. It also has couple useful options. It is also written in Go so ships to a single binary that can be used directly in most operating systems.

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: medunes

79218936

Date: 2024-11-23 22:06:02
Score: 1
Natty:
Report link

Apparently this is caused by the default MenuItem style, which wasn't adapted yet, as I only redefined the ControlTemplates for the different types of MenuItems.

I got rid of these messages by adding this to my application-wide styles:

    <Style TargetType="{x:Type MenuItem}">
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
    </Style>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: miss programmer

79218935

Date: 2024-11-23 22:04:01
Score: 10.5
Natty: 7.5
Report link

Anybody still having issues here? I get the same failed to serialize error with timetable class not being able to register. Any help is greatly appreciated. TIA.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help is greatly appreciated
  • RegEx Blacklisted phrase (2): TIA
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raghu K Para

79218927

Date: 2024-11-23 21:59:00
Score: 1
Natty:
Report link

This is kind of a slide out but still helpful. I realized that if you have a "Content-type": "multipart/form-data" or "Content-type": ""application/x-www-form-urlencoded" been set in the header, removing it will solve the issue, the form submits and passes it own headers content-type.

Enjoy ✌

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

79218925

Date: 2024-11-23 21:56:59
Score: 3.5
Natty:
Report link

https://colab.research.google.com/drive/1Lmbkc7v7XjSWK64E3NY1cw7iJ0sF1brl#scrollTo=Rvk8mHQ1UTbN

%%shell set -x dockerd -b none --iptables=0 -l warn & for i in $(seq 5); do [ ! -S "/var/run/docker.sock" ] && sleep 2 || break; done

include this before your docker call to start the daemon

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

79218923

Date: 2024-11-23 21:55:59
Score: 9
Natty: 8
Report link

Hi having the same problem on Galaxy S24. I don't know how to update the webview component. Sounds like that is for the techie people...what about us regulars, how do you do this? Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): how do you
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: i90chick

79218922

Date: 2024-11-23 21:55:58
Score: 3.5
Natty:
Report link

Set the Y pivot to 1, you will see that the panel will start growing to the bottom instead of both sizes simultaneously

Pivot = 1

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: João Pedro Andrade Marques

79218921

Date: 2024-11-23 21:54:58
Score: 2.5
Natty:
Report link

You have not defined "x"

start by defining the variable "x"

x = 2

if x > 3: print("case1") else: print("case2")

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: S.T.R.Y.K.E.R

79218917

Date: 2024-11-23 21:52:58
Score: 1.5
Natty:
Report link

Solved it by updating id "com.android.application" version "8.1.0" apply false to id "com.android.application" version "8.7.2" apply false in android/settings.graddle

android studio didn't told me there was a newer version

(got that info here)

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

79218908

Date: 2024-11-23 21:45:56
Score: 3.5
Natty:
Report link

 1- Click : https://github.com/protocolbuffers/protobuf/releases

  1. Download the ZIP file from https://github.com/protocolbuffers/protobuf/releases.

2- Extract the contents of the folder.

3-Add the path (e.g., C:/protoc) to the environment variables.

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

79218907

Date: 2024-11-23 21:45:56
Score: 1
Natty:
Report link

Yeah, the transformer needs a wildcard on the input data. Mine looks like this.

"transformers": [
    {
      "inputPath": "list[*].speechText",
      "outputName": "listSpeak",
      "transformer": "textToSpeech"
     }
]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tom Bruner

79218900

Date: 2024-11-23 21:41:55
Score: 5.5
Natty: 4.5
Report link

rdd = df .select (уҿы ӷәӷәахоит, арӷьарахь) KMeans. амаҵурҭа (рдд избан уажәгьы шәхы шәзыргәаҟуа) шәара шәеицынхалар шәылшоит шәхы ӷәӷәаны ишәымаз шәара шәԥҳәысуп шәсацәажәар шәылшоит текстк шәҩыргьы шәызҭаху шәысҭоит мчыда еизга #desertnaut @Yamur

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Yamur
  • Single line (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Jan Toybits

79218896

Date: 2024-11-23 21:37:54
Score: 1
Natty:
Report link

WHY?

In .NET, structs are value types, and when you mark a struct as readonly, it promises that the struct's internal state cannot change after it’s created. However, structs can have methods that modify their fields or internal state.

When a readonly struct is accessed, .NET needs to make sure this immutability promise is kept. If you call a method on a readonly struct that could modify its internal state, the runtime creates a defensive copy to protect the original struct.

Immutability Guarantee: Without the defensive copy, calling a method like MutatingMethod could break the immutability contract of a readonly struct.

Safety for Consumers: It protects the developer from unintended side effects caused by struct methods.

For example:

readonly struct MyStruct
{
    public int X { get; }

    public MyStruct(int x) => X = x;

    public void MutatingMethod()
    {
        // Hypothetically mutating the state
        Console.WriteLine("Mutating...");
    }
}

readonly MyStruct myStruct = new MyStruct(10);
myStruct.MutatingMethod(); // Defensive copy happens here

When myStruct.MutatingMethod() is called, a defensive copy of myStruct is made before invoking MutatingMethod. This ensures that the original myStruct stays unchanged, preserving its immutability.

  1. Readonly Fields Accessing methods or properties on a readonly struct field triggers a copy:

    class Example { private readonly MyStruct _myStruct;

     public void DoSomething()
     {
         _myStruct.MutatingMethod(); // Defensive copy is created
     }
    

    }

  2. Readonly Parameters Passing a readonly struct as an in parameter can also result in defensive copies if the struct’s method or property mutates the struct:

     void ExampleMethod(in MyStruct myStruct)
    

    { myStruct.MutatingMethod(); // Creates a copy of myStruct }

Read more about on Microsoft Docs on readonly structs which explains how readonly enforces immutability and when defensive copies occur -> https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#readonly-struct

Reasons:
  • Blacklisted phrase (0.5): WHY?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): WHY
  • Low reputation (1):
Posted by: Naman Madharia

79218894

Date: 2024-11-23 21:37:54
Score: 0.5
Natty:
Report link

Thanks @Carmelo Scandaliato for the answer.

I'm the original question poster. I gave up at that time because waiting on an update to verify just not ideal. It has been 2 years, now I encounter the same issue. (shoulda just waited lol) Here's my current config without installing gotify-cli:

[emitters]
emit_via = command

[command]
command_format = "curl 'https://<server-address>/message?token=<app-token>' -F 'title=DNF Automatic' -F 'message='{body}''"

stdin_format = "{body}"

PS. I don't know why I posted in python, it's not really a python question lol.

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

79218882

Date: 2024-11-23 21:30:52
Score: 5.5
Natty: 5
Report link

Quốc Đoàn's solution worked for me, but this solution seemed a bit silly, any idea why this happens and why the repetation solves it?

Reasons:
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1.5): solves it?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: scg