79239051

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

Interesting short code by James Black January 14,2013. Just an idea for the given answer;

Line from code quoting:- "
WriteToFile(pngData, length, "plot.png"); " Adding a path to where the file is written could make it easier to find, such as "C:\users\myFolder\plot.png". Or even a path to send this graph image via Bluetooth or email.

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

79239040

Date: 2024-11-30 08:01:32
Score: 0.5
Natty:
Report link

As of 2024, the Natim's answer does not seem to work. I ran

pip install torch==2.5.0
pip install torchvision

and this automatically upgraded torch to 2.5.1. The correct way now is to pass the --no-deps argument to pip:

pip install torch==2.5.0
pip install torchvision --no-deps
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fizz Areh

79239030

Date: 2024-11-30 07:50:29
Score: 1.5
Natty:
Report link

I suspect there is no way to do this in git, unless there has been some recent addition. Although the question asked isn't exactly the same, the answers to What is the opposite of `git diff HEAD^`?, Referencing the child of a commit in Git, and How do I find the next commit in Git? (child/children of ref) seem to suggest that there is no way to do this in git.

(Many of the answers erroneously suggest that this is impossible as a matter of principle — but it's not impossible, as git log --oneline --graph --all shows; git just won't let you do it.)

Reasons:
  • Blacklisted phrase (1): How do I
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Wyatt Carpenter

79239026

Date: 2024-11-30 07:48:29
Score: 0.5
Natty:
Report link

Looks like tp add custom data on dashboard page I need to create a new card with command like :

php artisan nova:card vendor/package

But not lense, as I tried

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

79239017

Date: 2024-11-30 07:39:27
Score: 1
Natty:
Report link

You can add a script to a GameObject if the class is derived from MonoBehaviour.

In this case:

public class RopeEditor : Editor

The class "RopeEditor" is derived from "Editor". There is probably a script called "Rope" which can be added to your game objects. Good luck!

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

79239016

Date: 2024-11-30 07:38:27
Score: 2
Natty:
Report link

I encountered the same problem, but I think the only way to do these is just manually create the secret by using GCP UI or gcloud cli. In the Secret Manager UI, when creating the screct it will ask whether the secret should auto replicated or manually set locations.

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

79238999

Date: 2024-11-30 07:27:24
Score: 5
Natty:
Report link

any workaround how to solve the issue. I'm also getting the error when configuring IAM identity center as external provider for keycloak

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1): I'm also getting the error
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Swarnim Pratap Singh

79238995

Date: 2024-11-30 07:24:23
Score: 5.5
Natty:
Report link

have you found an answer to your question? I'm just looking into the same functionality and wondering the same questions.

Reasons:
  • RegEx Blacklisted phrase (2.5): have you found an answer to your question
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sami Ali

79238975

Date: 2024-11-30 07:05:19
Score: 0.5
Natty:
Report link

This way, we’ll have all the object’s fields initialized at the moment of creation. Final modifiers in fields’ declaration won’t let us change their values in future. To make this object deserializable, we simply need to add a couple of annotations to this constructor:

  @JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
public Employee(@JsonProperty("id") long id, @JsonProperty("name") String name) {
    this.id = id;
    this.name = name;
}

Let’s take a closer look at the annotations we have just added.

First of all, @JsonCreator tells Jackson deserializer to use the designated constructor for deserialization.

There are two modes that can be used as a parameter for this annotation – PROPERTIES and DELEGATING. PROPERTIES is the most suitable when we declare an all-arguments constructor, while DELEGATING may be useful for single-argument constructors.

After that, we need to annotate each of constructor arguments with @JsonProperty stating the name of the respective property as the annotation value. We should be very careful at this step, as all the property names must match with the ones that we used during serialization.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @JsonCreator
  • User mentioned (0): @JsonProperty
  • Low reputation (1):
Posted by: 刚刚好

79238971

Date: 2024-11-30 07:04:19
Score: 2.5
Natty:
Report link

You need to define main method signature like this public static void main(String[] args) because this is entry point of your program. Also, You can save your .java filename with the same name of defined public class of your source code.

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

79238967

Date: 2024-11-30 07:00:18
Score: 4.5
Natty: 5
Report link

Connecting Modbus Devices to the Cloud - https://iiotdatareader.com/blog/connecting-modbus-devices-to-the-cloud.html

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

79238964

Date: 2024-11-30 06:55:17
Score: 2
Natty:
Report link

%PDF-1.5 %âãÏÓ 4 0 obj <</Filter/FlateDecode/Length 609>>stream xœ­U]kA½0…)4­©ó"Ô—qfö+ñQÐBßÔ}3>YZ#„þÓ!Ї¾˜Zc@lkIÏ]·FAwC6vöknν眹û^>Ž¥ª¦ U¼+ŸÄò™tj‡ŸZe0xnúNÅùð©UÖ¨xOn=ˆßðÚÙ£^wþ ²¡Ñ^¤"ÏéÐÿì”sŒ©+Ž<üÔ4IÄóíô¢»/·DM”¨GS±BÔãYÔèPlâê”x^¢¯ôwqÿƒ®èX´ßÑP”4«˜¯ðr,ÚèˆcñpÎFíã|µ\þQÄËW8ï&$d”çG:p*Œ<Ýr×åÙË›•ACš ÁÊ5ð‚X¾ÉÃ9í=Ñ�+k a…Îh ÖÚ]º,ˆl£¼¡K.eNÄ P^¦aAPÏæÖ;! ø˜úûÞèõm6½e± 1G zŠI4 b6æ¡nÄp~”1¥Ïn8ÇžY”[ëtdsÒëØå}8)õ&X™­Ô#1ã]xú §ŠKÛ„Y¬$&NuþÝw’žƒt@Ï}Œ*iŒ*=JGá´<4Ëì¼Ñ9Gs$l¶v·(" r˜Ø j«Sjs‚q;ß™µôô8£Õ‘A¤×o勹 BäÎÍ tº‹£_}bO±„%¬YC«º‰s®º@DŽ³Ô®cƒ ÐcÆxÃφLÂ1°î¯Õÿù*íÀ†7±É)éJÉGr¶‹¢6=O~ð:Ý¢Ût§h›²‘vìÄ(Û‰5ZÅñ*è•ôn99ø-_vÎêT_�ü' ÉúÇ endstream endobj 1 0 obj <</Tabs/S/Group<</S/Transparency/Type/Group/CS/DeviceRGB>>/Contents 4 0 R/Type/Page/Resources<</ColorSpace<</CS/DeviceRGB>>/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]/Font<</F1 2 0 R/F2 3 0 R>>>>/Parent 5 0 R/MediaBox[0 0 595 842]>> endobj 6 0 obj [1 0 R/XYZ 0 852 0] endobj 2 0 obj <</Subtype/Type1/Type/Font/BaseFont/Helvetica/Encoding/WinAnsiEncoding>> endobj 7 0 obj <</Length1 12664/Filter/FlateDecode/Length 6276>>stream xœí;yxWïÍXÖ-ÍèÖHi$Y’%˲äÛNl7Žs8 I줹HR’iÚ„ÐBép—Ò– ÉmH/ Ô»@”v¶ß.eS(=ØJwé·´|-´[ •ö÷ތƒ“B—]þØïÃÓŸÞofÞ¼÷»™a„F,²ï<tPDnDþŽ0çí×EúÙcÀoAx×…—Ÿw25·nÁ¬Ø¯öìÞ±ë¹/<ÐP‚<Ó³.è®l ÂyÎ¥=¼ìØ}Ì4œŸ‹÷ú…ïÜQìKYʽ!¶vÑŽËö·õ· #T„s$î¿t÷þ“uÀùA8o#´Àyvê$2NÏü=Æ×ÏžÄõ¿9‰ÆB_šÙm[s'ΊâøÞ±y¼N˜,\ÈDc³âÄ<›˜X;ŸçĹÉ]sℸgÇ®ù¶áÆî¹ÙNq­›Ù ¿ï˜‰ÎÌ4t÷ìl¬ÓFÖi£ëÌÍ ç«+œOW€Þ„Iºì”8Ï&§gÖÌÌ ÌŒÍ¢Qq|þé™ùÆÑÙY˜¥×(…ñê½^•fhÖg�1(«¬›™ Ì£Ù¹9å,?<7˜>Ôó“èE0Z|aD½�’ +²‰ñ“øð4½u8 ñh< tÎŽÁÞÆìÔº™q 4:›õ¢.ø¹†MƒUpÈ J:A…b;¢¬#ê®ysž™¿ù+6ýÆo˜—ß´!ŒÜõ‡ÐçÁ2Œô ú„O–»+%½Ç}Wòâ}©ý}—ß}üC‡?ÿYb1Ê3wiÏ]8x¦âæâ=ån¹ÄßuqòbøïÅÛßݱÏ|øjåtú6zhk¦¬/—¾}Ï=·Eéœ|ý÷è�†dŽæ°t]}<äô”ºø«Õí¶Z=Aeðçê/ÕŸÃ<~Q]«kqÜ…ùZ-YÇ/¾ùc"´3(R/Ç?E6¡³Ûv;ÌN¸9ØF&lÃFÏuËÉxŒ |©«Òƒ—‹é+Ób<½|y:–ò…{*aŸ7\

Reasons:
  • Blacklisted phrase (1): ¿
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: เกล้าตะวัน ศรีวงศ์

79238963

Date: 2024-11-30 06:55:17
Score: 3
Natty:
Report link

The issue seems to be related to the scrolling mechanism in Flutter Web when running on iOS browsers like Safari and Chrome. Here are some steps you can try to fix the issue:

  1. Change the Renderer: Make sure you are using the right graphics option in Flutter (like html instead of CanvasKit) to improve compatibility with iOS browsers.
  2. Disable Overscroll: iOS browsers add an Overscroll effect which can cause issues. You can adjust the scroll settings to disable this effect.
  3. Test the production version: Sometimes the issues are related to development mode only. Create a production version (flutter build web --release) and test it on your device.
  4. Update the Flutter environment: Make sure you are using the latest version of Flutter, as updates may contain improvements or fixes for this issue.
  5. Check the performance: If the issue is related to performance, you can reduce the graphics load through design improvements like reducing the use of complex graphics.

If the issue persists, please share more details about the settings you are using (such as browser type and version)

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ftoon Salem 443051942

79238960

Date: 2024-11-30 06:54:17
Score: 1
Natty:
Report link

To solve this problem, you need to check the definition and use of the escape function. Make sure that it is called correctly and that it can handle the incoming string parameters. In addition, this part of the code coloror =','. Join (data ['color'] for data in product_data) looks like an attempt to concatenate multiple colors into a string. In general, first focus on checking whether the escape function is used correctly, and then see if there are any errors in the way the parameters associated with it are passed.

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

79238957

Date: 2024-11-30 06:51:16
Score: 1.5
Natty:
Report link

You can add this line in your application.properties

springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true
springdoc.swagger-ui.path=/swagger-ui.html
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Girish G

79238956

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

This error may appear in the windows system after updating the java version to a newer one. In System Variables, even after updating the java version and deleting all files of the previous version, the path will still point to non-existent files of the old version. Read more here

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

79238950

Date: 2024-11-30 06:43:14
Score: 1
Natty:
Report link

Stack Overflow, founded in 2008 by Jeff Atwood and Joel Spolsky, is a popular computer programming question-and-answer site with over 23 million registered users. It offers a secure knowledge-sharing solution for businesses, and in July 2023, generative AI will be integrated into both its public platform and Stack Overflow for Teams.As your legal counsel, I strongly advise reviewing all documentation thoroughly before proceeding. It’s crucial to ensure compliance with applicable laws to avoid potential liabilities.truck accidents

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

79238947

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

I tried every solution mentioned here but nothing worked. But what worked for me was that I did the following git configurations Fire these commands from project terminal

git config --global http.lowSpeedLimit 60
git config --global http.lowSpeedTime 99999999
git config --global http.postBuffer 524288000

if I list my git config list it looks like below

git config --global --list 

I hope this will work for you as well.

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Whitelisted phrase (-1): worked for me
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Inzimam Bhatti

79238945

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

RCP 2.0 parameters cannot update from Swift code. It's a one way ticket.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Andy Jazz

79238939

Date: 2024-11-30 06:35:13
Score: 3
Natty:
Report link

If you're using SingleChildScrollView(), it's not using lazy loading. Use ListView() instead. ListView will improve performance

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

79238934

Date: 2024-11-30 06:30:11
Score: 6 🚩
Natty:
Report link

I am facing the same issue, i have used nginx for load balancing

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Palash Mahajan

79238924

Date: 2024-11-30 06:26:10
Score: 2.5
Natty:
Report link

it took me some time but it figured it out i just wanted to remove the slash after the mongodb.net/ in.env file

before MONGODB_URI= mongodb+srv://ruhith:[email protected]/

After MONGODB_URI= mongodb+srv://ruhith:[email protected]

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

79238919

Date: 2024-11-30 06:24:09
Score: 1
Natty:
Report link

First, check that your dependency configuration is correct. Make sure that when you update the Kotlin version in the toml file, the relevant plug-ins and dependencies are updated correctly. Second, make sure that your project uses libraries or code structures that are outdated or incompatible with Kotlin 2.0. You need to check all the dependencies in the project to see if you need to update to a version that supports Kotlin 2.0. In addition, it may also be a problem of building the configuration. Check your Gradle configuration file to make sure there are no missing or incorrect configuration items.

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

79238909

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

In Bootstrap 5, this code may NOT work

<td class="text-right">
  text aligned
</td>

But this one will:

<td class="text-end">
  text aligned
</td>

It seems that start and end is now preferred in this situation.

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

79238904

Date: 2024-11-30 06:00:05
Score: 1
Natty:
Report link

I agree with @youssef and @user17726418 answer, just adding extension to it if you are working with multiple states.

 BlocBuilder<UploadPhotoBloc, UploadPhotoState>(
      builder: (context, state) {
        if (state is UploadPhotosLoading) {
          return const LoadingButton();
        }
        return BlocBuilder<UserProfileBloc, UserProfileState>(
            builder: (context, state) {
          if (state is UserProfileLoading) {
            return const LoadingButton();
          } else {
            return CustomButton(
              title: 'Submit',
              onTapCallBack: () async {
                 // your logic
                },
               ),
            }
           })
        }),
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @youssef
  • User mentioned (0): @user17726418
  • Low reputation (1):
Posted by: Priyanshi Pandya

79238902

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

Could be several reasons:

I presume, that's because of size limitation issue, try to increase the buffer size:

# following sets the buffer to 500Mb
git config --global http.postBuffer 524288000

Reference: http.postBuffer

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

79238899

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

this is complete connection block. try using a complete block

connection {
    type        = "ssh"
    user        = "ec2-user"
    private_key = file("keypair2.pem")
    host        = aws_instance.my_instance.public_ip
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kashish B

79238897

Date: 2024-11-30 05:52:04
Score: 1
Natty:
Report link
arr = [2, 0, 1, 2,5]

count = 0

for i in range(len(arr)):
    if arr[i] != 0:
        arr[count] = arr[i]
        count += 1

while count < len(arr):
    arr[count] = 0
    count += 1
    
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Danyal Ahmed

79238892

Date: 2024-11-30 05:45:02
Score: 1
Natty:
Report link

On API 24+, use android_get_device_api_level().

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

79238890

Date: 2024-11-30 05:44:02
Score: 1.5
Natty:
Report link

using patch package will solve the issue, in my case I just add

"postinstall": "patch-package" in package.json script object. and and then run npm i patch-package

After the install finish I create the build and upload it to testflight and it works.

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

79238889

Date: 2024-11-30 05:41:01
Score: 2
Natty:
Report link

This is what worked for me https://cloud.google.com/artifact-registry/docs/docker/pushing-and-pulling#token

I skipped the impersonation since my account already had required permissions

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mark Carlton

79238888

Date: 2024-11-30 05:41:01
Score: 4
Natty: 6.5
Report link

https://github.com/onotelli/justniffer?tab=readme-ov-file#example-3-capture-all-tcp-traffic

or sudo justniffer -l "%request.header" -i any -p "port 80"

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

79238887

Date: 2024-11-30 05:41:00
Score: 6.5 🚩
Natty:
Report link

Facing same issue not able to solve

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): Facing same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Open access journals

79238884

Date: 2024-11-30 05:34:59
Score: 1.5
Natty:
Report link
  1. First of all, the necessary information for database connection is prepared.
  2. Create a prepare statement and specify a placeholder to insert the data. 3.Definitions of the integer array values to insert.
  3. Use the PgArray class to create an array object compatible with PostgreSQL. 5.Use the setObject method to set the array parameters.
  4. Finally, the update operation is performed.
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Zean

79238875

Date: 2024-11-30 05:26:57
Score: 4
Natty:
Report link

need to import html,escape() frist

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

79238873

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

ng version

Angular CLI: 19.0.2 Node: 22.3.0 Package Manager: npm 8.17.0 OS: win32 x64

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

79238872

Date: 2024-11-30 05:23:57
Score: 3.5
Natty:
Report link

You can check with "Dim Rst As Object" as well. This should preserve.

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

79238863

Date: 2024-11-30 05:14:55
Score: 3
Natty:
Report link

Since ScriptingOptions dont change you should define them outside of the foreach loops to improve efficiency

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

79238856

Date: 2024-11-30 05:06:54
Score: 2.5
Natty:
Report link

The following logic does not look correct

The username extracted from token and the one coming from userDetails will always be the same. Why is it comparing the two?

public Boolean validateToken(String token, UserDetails userDetails) {

    final String username = getUsernameFromToken(token);
    return (username.equals(userDetails.getUsername()) && 
            !isTokenExpired(token));
    }

}
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Rajesh Java guy

79238843

Date: 2024-11-30 04:54:52
Score: 1
Natty:
Report link

This error is usually caused by a type mismatch. In your code, the type signature of the defined match function is (Int-> b)-> [Token]-> Either String b1, while the type of matchInt function in the instance is (Int-> b)-> [Token]-> Either String b. Here b1 and b are treated as different type variables, resulting in a type mismatch error. To solve this problem, you need to make sure that the type of the match function and the matchInt function are exactly the same, that is, they both use the same type variable b. You may need to check the implementation and type declaration of the function to ensure that they are coordinated and consistent in type.

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

79238839

Date: 2024-11-30 04:53:51
Score: 0.5
Natty:
Report link

Thanks to @EdanMaor for the S and cc suggestions, they are helpful. Something that started to make this bearable for me was the <C-f> (control-f) binding in insert mode, which performs the equivalent of == (but with the convenience of insert mode). It's set by default in the indentkeys option.

So if you go into insert mode, start writing and see indent is 0 (cursor indicated by | char):

function main() {
        // ...
        
        // ... deeply nested function...
        function something() {
          console.log("ok");
// Star|ted writing a comment
          console.log("after");
        }
        // ...
}

you can hit <C-f> and it will indent on the spot, even if your cursor is in the middle of the line:

function main() {
        // ...
        
        // ... deeply nested function...
        function something() {
          console.log("ok");
          // Star|ted writing a comment
          console.log("after");
        }
        // ...
}

I experimented with this mapping to make it more automatic:

:nnoremap I I<c-f>

It automatically indents the line whenever you insert at the beginning of the line. I'm sure there are ways to make it more seamless.


For the issues with python files, for me it was due to the default python plugin (running neovim v0.9.1). It runs the python#GetIndent() function when pressing == or <C-f>, which doesn't pick up the previous indent you would expect.

I added these few lines to the end of the python#GetIndent() function (right before the default return of -1). It seems to fix the issue, but I'm sure it's broken in some way.

  if a:lnum - plnum < 3
    if getline(a:lnum) =~ '^\s*def\>'
    " dedent if current line is a def (maybe class too?)
        return max([indent(plnum) - shiftwidth(), 0])
    else
    " keep same indent as previous line
        return indent(plnum)
    endif
  endif

The python#GetIndent function is defined in $VIMRUNTIME/autoload/python.vim. If you can't edit it, you can copy the whole file into ~/.config/nvim/after/plugin/python.vim for neovim, and ~/.vim/after/plugin/python.vim for vim, then do the edits there.


References:

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

79238832

Date: 2024-11-30 04:47:50
Score: 0.5
Natty:
Report link

Correct the following snippet

     draw_contours(
            &mut output_image,
            &contours,
            -1, // Draw all contours
            Scalar::new(0.0, 255.0, 0.0, 0.0), // Green color
            3,                                 // Thickness
            imgproc::LINE_8,
            &mut hierarchy,
            255,
            Point::new(0, 0),
        ).unwrap();
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Shivank Anchal

79238827

Date: 2024-11-30 04:44:50
Score: 3
Natty:
Report link

Graph_WS.Range("B330").Formula should bypass Excel's implicit intersection operator as this is a dynamic array formula

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

79238816

Date: 2024-11-30 04:36:48
Score: 1
Natty:
Report link

I think the problem was probably the fact that I was using the replace function wrong, but anyway I have found another way to do this which is to use the copy function.

car_sales_cp = car_sales.copy()
car_sales_cp["Price"] = car_sales_cp["Price"].str.replace(r"[$,]", "", regex=True)
car_sales_cp["Price"] = pd.to_numeric(car_sales_cp["Price"])
car_sales_cp.groupby("Make")["Price"].mean()
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 200 OK

79238815

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

reslove steps:

1.press f12

2.select network tab

3.select disabe cache

4.then restart django server

5.then try to open http://127.0.0.1:8000/

6.Now it opens

7.this is the optional step that again in network tab you can untick the disable cache(optional)

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

79238811

Date: 2024-11-30 04:31:47
Score: 1
Natty:
Report link

Blob is primarily a browser-side API for file-like objects and, i guess to handle this, Buffer is the preferred way to handle binary data to persist images in db.

Here what you should do:

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

79238810

Date: 2024-11-30 04:31:47
Score: 0.5
Natty:
Report link

I like to use maplist/2 with =/2 for this. For example,

| ?- length(L, 3), maplist(=(a), L).

L = [a,a,a]

yes
| ?- length(L, 9), maplist(=(abc), L).

L = [abc,abc,abc,abc,abc,abc,abc,abc,abc]

yes
| ?-
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sail0r

79238803

Date: 2024-11-30 04:21:44
Score: 6 🚩
Natty: 5
Report link

I wonder is it possible to directly place svg or pdf image into the circos plot rather than converting it to raster?

Reasons:
  • Blacklisted phrase (1): is it possible to
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Furina

79238788

Date: 2024-11-30 04:00:41
Score: 1.5
Natty:
Report link

You should be able to see the values of config_autoTimeSourcesPriority by inspecting the file core/res/res/values/config.xml.

To enable GNSS as a time source, you must set config_enableGnssTimeUpdateService to true and add gnss to the list of sources in config_autoTimeSourcesPriority (these can both be done by modifying the config file mentioned above).

Sources:

https://source.android.com/docs/core/connect/time/gnss-time-detection#implement
https://source.android.com/docs/automotive/time/automatic_time_detection#gnss

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

79238779

Date: 2024-11-30 03:52:39
Score: 2
Natty:
Report link

29 nov 2024 10:45 pm est ( gmt - 5 ) : Lftp seems can synchronise directory in 2 different computer without ssh : https://www.cyberciti.biz/faq/lftp-mirror-example/ from google ( lftp mirror command ) result 1 from 'lftp' in How to synchronise FTP directory from command line? from google ( ftp synchronize command ) result 1

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

79238773

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

No Google act as proxy for SAML IDP What Google identity platform does

  1. User Request: The user initiates a request to access an application that is configured to use Google's Identity Platform for authentication.

  2. Google Identity Platform as a Proxy: The Google Identity Platform acts as an intermediary (or proxy) for the authentication process. It is configured to use SAML (Security Assertion Markup Language) as the authentication protocol.

  3. Redirect to the SAML Identity Provider (IdP): Based on the SAML configuration, the Google Identity Platform redirects the user to the login page of the specified SAML Identity Provider (IdP) — for example, Microsoft’s identity service.

  4. User Logs In: The user provides their credentials on the SAML IdP’s login page (e.g., Microsoft login), and the IdP authenticates the user.

  5. Return to Identity Platform: After successful authentication, the SAML IdP generates a SAML assertion and redirects the user back to the Identity Platform's specified redirect URL. This is typically a backend service managed by Google.

  6. Token Creation (JWT): The Google backend service receives the SAML assertion artifact, processes it, and creates a JSON Web Token (JWT) that contains the user's authentication details and claims.

  7. Redirect with JWT: The backend service then redirects the user to the original application with the JWT attached. The JWT is used by the application to validate the user's identity and grant access.

In essence, Google’s Identity Platform acts as a middleman that facilitates SAML-based authentication. It redirects the user to the IdP for login, processes the authentication response, and returns a JWT to the application, allowing it to verify the user's identity and provide access to the requested resources.

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

79238772

Date: 2024-11-30 03:39:34
Score: 10.5 🚩
Natty:
Report link

I have the same problem, is your problem solved?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (1.5): solved?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Luqman Aldi Prawiratama

79238771

Date: 2024-11-30 03:39:34
Score: 1
Natty:
Report link

Just edit the index.html as this:

<!-- replace this -->
<!-- <script src="flutter_bootstrap.js" async></script> -->

<!-- with this -->
<script>
  {{flutter_js}}
  {{flutter_build_config}}

  _flutter.loader.loadEntrypoint({
    onEntrypointLoaded: async function (engineInitializer) {
      let appRunner = await engineInitializer.initializeEngine({
        // JsFlutterConfiguration goes here...
        canvasKitBaseUrl: "/canvaskit/",
      });
      appRunner.runApp();
    },
  });
</script>

References:

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

79238756

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

Worked out the issue. Included a reference to a 32 bit SQLite.Interop.dll. Also, SQLite.Interop.dll was wasn't getting added in the build. Added x64 and x86 folders in teh base of my project. Included x64\SQLite.Interop.dll and x86\SQLite.Interop.dll in my project and setting to always copy for both DLLs fixed the issue. Hope that helps anyone that comes across the same issue. Thanks you everyone for your help and suggestions.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): Hope that helps
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fullyworked

79238750

Date: 2024-11-30 03:13:29
Score: 2
Natty:
Report link

29 nov 2024 10:6 pm est ( gmt - 5 ) : Lftp seems can synchronise directory in 2 different computer without ssh : https://www.cyberciti.biz/faq/lftp-mirror-example/ from google ( lftp mirror command ) result 1 from 'lftp' in How to synchronise FTP directory from command line? from google ( ftp synchronize command ) result 1

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

79238745

Date: 2024-11-30 03:04:28
Score: 1
Natty:
Report link

You can use this .NET tool by creating an artifact from JSON documents and then deploy the artifact to an Azure Cosmos DB account, works well with build/release Azure DevOps pipelines: https://github.com/alexanderkozlenko/cotopaxi

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Oleksandr Kozlenko

79238742

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

You can write an expression that mainly uses the XXX_PAGEs info, such as:

(?i)(?:"([^"]*)"\s+(?:\band\b|\bor\b|\band_or\b))?\s+"([^"]*)"\s+in\s+[^_]{3}_page$
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: aaa

79238741

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

I was also facing the same issue every class needs models.Model and issue should get sorted -

class Department: name= models.CharField(max_length=100, unique=True) def unicode(self): return self.name[:50]

class DeviceGroup: name= models.CharField(max_length=100, unique=True) def unicode(self): return self.name[:50]

class Location: description= models.CharField(max_length=100, unique=True) def unicode(self): return self.description[:50]

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

79238739

Date: 2024-11-30 02:58:27
Score: 3.5
Natty:
Report link

Configuring the Custom CodecRegistry worked great for me. All work with documents was reduced to working with Java POJOs.

You can get configurations and usability examples here: https://mongodb.github.io/mongo-java-driver/3.7/driver/getting-started/quick-start-pojo/ https://www.mongodb.com/developer/languages/java/java-mapping-pojos/

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

79238729

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

I have a similar situation. I have Oracle EBS R12 which is installed on Unix & has its database.

I want to keep my Java class file on the Unix box, as there are many other Java classes, which I can use to accomplish the tasks.

However, I want to call the Java class from pl/sql block in the database.

And running into the same issue of "class does not exist".

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

79238725

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

It is correct to use raw counts as input for pydeseq2. DESeq2 is designed to handle raw count data. The package models the count data using a negative binomial distribution. TPM and RPKM are normalization methods that are not suitable for input into pydeseq2 for differential expression analysis. The statistical methods in pydeseq2 assume a count - based distribution and handle normalization and other necessary adjustments internally. Using pre - normalized values like TPM or RPKM can disrupt the assumptions of the model and lead to inaccurate results.:)

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

79238724

Date: 2024-11-30 02:36:23
Score: 1.5
Natty:
Report link

I use usbipd-winfor sharing locally connected USB devices to other machines, including Hyper-V guests and WSL 2.After that my application can scan serial port in docker

https://github.com/dorssel/usbipd-win

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

79238720

Date: 2024-11-30 02:31:22
Score: 0.5
Natty:
Report link
AT+CIPMODE=1 
OK 
AT+NETOPEN 
OK +NETOPEN: 0 
AT+CIPOEPN=0,"UDP","1.241.xxx.xxx",45000 
ERROR 
AT+CIPOEPN=0,"UDP","1.241.xxx.xxx",45000, 25000,-1 
ERROR
AT+CIPOEPN=0,"UDP","1.241.xxx.xxx",45000, 20000
CONNECT 115200 

Finally I can send AT+CIPOPEN command without error.
I misunderstood syntax of this AT+CIPOPEN command, I missed my local port (ex. 20000 in above command usage) FYI. +++ is the exit code in transparent mode

Thank you for the hint !

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mike ChanSeong Kim

79238716

Date: 2024-11-30 02:21:20
Score: 3
Natty:
Report link

You can do this with the google-api-python-client

https://developers.google.com/youtube/v3/quickstart/python

It's never too late to answer a question.

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

79238715

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

Same issue here! Try use VPN to access google's service, that might be help. It works for me, since google's service is blocked in China. lol

Reasons:
  • Whitelisted phrase (-1): works for me
  • RegEx Blacklisted phrase (1): Same issue
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: rocky

79238695

Date: 2024-11-30 01:52:16
Score: 3
Natty:
Report link

Use localstorage

localstorage.setitem("hi", "bye"); const hi = localstorage.getitem("hi");

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

79238694

Date: 2024-11-30 01:50:14
Score: 6 🚩
Natty:
Report link

Thanks to @woxxom, it is not doable.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (2):
  • No code block (0.5):
  • User mentioned (1): @woxxom
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: byq

79238692

Date: 2024-11-30 01:47:13
Score: 6 🚩
Natty: 5
Report link

please I need help on installing the new stable nuget package "Microsoft.iOS.Sdk.net9.0_18.1" on my Mac machine.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (2.5): I need help
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ManLikeCliff

79238662

Date: 2024-11-30 01:03:04
Score: 1
Natty:
Report link

It turns out that using this command line after emulator is booted:

adb shell “cat /proc/meminfo”

I'm able to see that the RAM size allocated for emulator is exactly what I put in the command line:

emulator -avd myEmulator -m ${RAM_SIZE}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Truong

79238652

Date: 2024-11-30 00:47:00
Score: 6.5 🚩
Natty:
Report link

Thanks for sharing, this is at least a workaround. We cannot fetch preview_url for all search result at once (would mean about 30 calls per search),but indeed we can fetch the preview_url only if user taps the play button of a song (in that case would be only one extra call). We can show a quick loading animation if the scraping logic doesnt take much time. What overall delay are you experiencing?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (2): Thanks for sharing
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user25414071

79238647

Date: 2024-11-30 00:37:58
Score: 4
Natty:
Report link

Thanks for your reply. I have read in other questions about the issue regarding the distance to the origin point. My problem is that I am importing the model from ACC, and I need to retrieve the issues along with their viewerState. When I set globalOffset: new THREE.Vector3(0, 0, 0), distortion occurs, but the viewerState of the issue works as expected. However, if I remove the globalOffset: new THREE.Vector3(0, 0, 0), the distortion disappears, but the viewerState takes me to a different location than where I saved the issue in ACC.

What would be the best approach to retrieve the issue within the model without causing distortion while also ensuring that the viewerState points to the correct location?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: RENZO GIANCARLO RIOS RUGEL

79238635

Date: 2024-11-30 00:29:56
Score: 2
Natty:
Report link

RAID-1 is generally reserved for 2 hard drives only; one disk mirrors the other.

You can only add more disks to a RAID-1 Array if your RAID Controller supports more than 2 disks on a RAID-1 array.

Please see Oracle's Documentation for reference on RAID array configurations.

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

79238634

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

I actually wrote the documentation for how to use the angular language service in neovim. I think the built in neovim LSP is really bad. I prefer COC. Especially for typescript and likewise.

Here is the URL to the docs, for how to use the angular language service with neovim. It should also work for vim, although I haven't tested it on vim

https://v17.angular.io/guide/language-service#neovim

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

79238623

Date: 2024-11-30 00:18:54
Score: 1
Natty:
Report link

El valor _RLIMIT_POSIX_FLAG es un "flag" definido en el encabezado sys/resource.h y generalmente está relacionado con el sistema de límites de recursos en sistemas compatibles con POSIX, como macOS y otros sistemas Unix.

Este "flag" sirve como un indicador para cumplir estrictamente con las especificaciones de POSIX al trabajar con límites de recursos (rlimits).

Cuando este flag se usa, indica que se debe aplicar un comportamiento específico que respete el estándar POSIX.

Esto afecta principalmente funciones relacionadas con la configuración y consulta de los límites de recursos, como getrlimit y setrlimit.

Reasons:
  • Blacklisted phrase (1): está
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: GEKKO

79238614

Date: 2024-11-30 00:08:53
Score: 2.5
Natty:
Report link

In python idle editor

There is target in properties in idle shortcut

That is C:\Users\user1\AppData\Local\Programs\Python\python312\pythonw.exe "C:\Users\user1\AppData\Local\Programs\Python\python312\Lib\idlelib\idle.pyw"

Can we replace by C:\Users\user1\anaconda\conda.exe "C:\Users\user1\anaconda\Lib\idlelib\idle.pyw"

Reasons:
  • No code block (0.5):
  • User mentioned (1): user1
  • User mentioned (0): user1
  • User mentioned (0): user1
  • User mentioned (0): user1
  • Low reputation (1):
Posted by: Vasantha Kumar

79238601

Date: 2024-11-29 23:59:50
Score: 3
Natty:
Report link

May I inquire if it is possible to obtain devices from other users without the application? For instance, customers.

For me it's not a problem I can add my devices but how can I get user devices.

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Dyaa Kassoma

79238600

Date: 2024-11-29 23:57:50
Score: 1.5
Natty:
Report link

As mentioned by @kofemann, this will work, as long as $CUR_GIT_VERSION is referenced in the subsequent job.

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

79238591

Date: 2024-11-29 23:51:48
Score: 6 🚩
Natty: 6
Report link

No matter what I try i keep getting an external IP in my VM. is there a solution to that.

thank you.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (3): is there a solution
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ourdou Marouane

79238590

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

Well, as always, I find the answer immediately after I grow frustrated enough to post a public question. The issue was with my range. I had assumed that the GridRange parameter worked like A1 notation, where applying to rows 3-3 would simply apply to row 3:

StartRowIndex = 3, EndRowIndex = 3

Instead, it seems to ignore the first row in the range and apply to each following row. For example:

StartRowIndex = 3, EndRowIndex = 5

This will apply the update to the cells in rows 4 and 5, but crucially not row 3. I hope this helps someone!

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Astral Winter

79238584

Date: 2024-11-29 23:48:45
Score: 8.5 🚩
Natty: 5.5
Report link

Hey man did you find a solution for this?

Reasons:
  • RegEx Blacklisted phrase (3): did you find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nano Oyun

79238583

Date: 2024-11-29 23:48:45
Score: 1
Natty:
Report link

I'd use a local variable and a WHILE loop to avoid the recursive function call:

public function generateToken($length = 5)
{
    $token_exists = true;
    while ($token_exists) {
        $token = strtoupper(substr(md5(rand()), 0, $length));
        $token_exists = $this->tokenExistsAlready();
    }
    return $token;
}
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Tom

79238579

Date: 2024-11-29 23:41:44
Score: 0.5
Natty:
Report link

Type services.msc into your start menu. Find SQL Server in the list (the instance name will be in parenthesis next to SQL Server.) Start that service. You might also want to see it to Automatically start, so you can just reboot to address the issue in the future.

enter image description here

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

79238575

Date: 2024-11-29 23:40:43
Score: 2
Natty:
Report link

I ran into this and than updated to node v22; i was on 18. before installind react-pdf package.

i use nvm to control node versions.

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

79238572

Date: 2024-11-29 23:37:43
Score: 1
Natty:
Report link

dont forget to add @RequestParam to your variables on the server side

@GetMapping("/android/played")
public ModelAndView getName(@RequestParam(value = "name") String name) {
    //do stuff
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @RequestParam
Posted by: shieldgenerator7

79238564

Date: 2024-11-29 23:28:41
Score: 3.5
Natty:
Report link

Nov 29, 2024. I just followed the instructions for https://stylebot.dev/ by visiting "Options" (the gear), then clicked on "styles" and added one style:

an asterisk on the top box, then

A:visited { color: red ! important }

Thanks for the tip!

enter image description here

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

79238538

Date: 2024-11-29 23:06:36
Score: 2
Natty:
Report link

You seem to be using React. Github Pages isn't usually used for hosting a React app because of its static nature.

However, here is a tutorial on how to do it. It might be a good starting point for your issues.

Vercel is a more popular option for free react hosting.

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

79238536

Date: 2024-11-29 23:04:36
Score: 1.5
Natty:
Report link

The System.Text.Json namespace provides the Utf8JsonReader class, which is analogous to JsonReader/JsonTextReader from Newtonsoft.Json.

Migrate from Newtonsoft.Json to System.Text.Json

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

79238535

Date: 2024-11-29 23:03:35
Score: 0.5
Natty:
Report link

Try this current version update:

classpath 'com.github.jengelman.gradle.plugins:shadow:8.1.1'
Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eldo Martadjaya

79238521

Date: 2024-11-29 22:50:32
Score: 2
Natty:
Report link

Tools -> Kotlin -> Show Kotlin bytecode

this path can decompile your Kotlin code into Java.

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

79238513

Date: 2024-11-29 22:45:32
Score: 2.5
Natty:
Report link

A more straightforward method would be:

RETURN count(SELECT * FROM person)

which will directly return the number of rows in the 'person' table.

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

79238505

Date: 2024-11-29 22:41:30
Score: 2
Natty:
Report link

Yes, we can use CSS max-height and calc which have been supported in Chrome since 2013.

Hide If Overflowing

The idea is that we can push the "show more" button down if there is remaining space, but leave it unchanged if there is no remaining space.

  1. calc(MAX-HEIGHT - 100%)
    • Calculate the remaing space using calc and -
  2. calc((MAX-HEIGHT - 100%) * 10000)
    • Multiply by a large number, so 1px remaining results in an a large offset. This prevents the button from being partially visible.
  3. position: absolute; bottom: calc((MAX-HEIGHT - 100%) * 10000);
    • Offset the button from the bottom.
    • If there is any remaining space, bottom will be set to a large negative value, resulting in the button being hidden.

CSS Based Button

We can use CSS to make a button which toggles behavior. This can be done by taking advantage of the :checked css selector, and the sibling selector +.

The checkbox must exist before the content it controls, we have to a label with for to toggle it. for allow clicking on the label to also click on the checkbox.

#expand-toggle:checked + .ShowMoreContainer {
    max-height: none;
}

Code Example

Using contenteditable you can remove text to dynamically reduce the size of the content, and see that the "Show More" button will hide as soon as the content stops overflowing.

Unfortunately, contenteditable also results in scrolling the parent if you move the cursor down. Similar issues happen if hidden content is focused. I only know how to solve this issue with JavaScript so I left it as is.

.ShowMoreContainer {
    max-height: 100px;
}
#expand-toggle:checked + .ShowMoreContainer {
    max-height: none;
}
#expand-toggle:checked + div .show-more {
    display: none;
}
#expand-toggle:not(:checked) + div .show-less {
    display: none;
}
<input type="checkbox" id="expand-toggle" style="display: none" />
<div
    class="ShowMoreContainer"
    style="overflow: hidden; position: relative; border: 1px solid black; box-sizing: content-box" 
>
    <div contenteditable>1<br/>2<br/>3<br/>4<br/>5<br/>6</div>
    <div class="show-more" style="position: absolute; bottom: calc((100% - 100px) * 10000)">
        <label for="expand-toggle">
            <div style="background: white; cursor: pointer;">Show More ...</div>
        </label>
    </div>
    <div class="show-less">
        <label for="expand-toggle">
            <div style="background: white; cursor: pointer;">Show Less ...</div>
        </label>
    </div>
</div>

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1): Similar issue
  • RegEx Blacklisted phrase (2): know how to solve
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: yeerk

79238500

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

If you shut down your SQL Server and can’t connect, try this

Open SQL Server Configuration Manager:

Search for it in the Start menu and open it. Find Your Server:

Go to SQL Server Services. Look for your server ( SQL Server (SQLEXPRESS01)). Start the Server:

Right-click on it and choose Start. Try Connecting Again:

Open SQL Server Management Studio and connect. It should work now

Reasons:
  • Whitelisted phrase (-1): try this
  • No code block (0.5):
  • Low reputation (1):
Posted by: 443052282 sec448 PSAU

79238497

Date: 2024-11-29 22:36:29
Score: 2.5
Natty:
Report link

Hit the Tab key on your keyboard, then press Enter

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

79238478

Date: 2024-11-29 22:25:27
Score: 2.5
Natty:
Report link

To change the color of an SVG icon in PowerPoint using Office.js, make sure to insert it as an inline shape instead of an image. Once inserted as an inline shape, you can modify properties like color in the SVG.

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

79238477

Date: 2024-11-29 22:25:27
Score: 0.5
Natty:
Report link

1.) Be sure to check what System.out.println("Generated JWT token: " + jwt) in your backend returns

2.) In your frontend, can you place console.log("Token set:", jwt) before the setToken(jwt) function and see what it logs?

3.) I am sure the token expected to be passed in the headers in authenticated requests is supposed to be a string type. Be sure what is being logged in number 2 above are strings. Otherwise, extract the token from the object in the frontend and send to your setToken(jwt) function.

4.) After the user logs in, check the value of the token in the localStorage to be sure it's a string. Otherwise, something is wrong in either step 1 or 2.

5.) On a final note, using typescript would help to catch bugs of this nature.

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

79238474

Date: 2024-11-29 22:25:27
Score: 1
Natty:
Report link

This gives me two split views: assembly + registers, I didn't have time to play a lot to figire out why it doesn't work with that comment, if you figure out please let me know and I'll update my answer

$ cat ~/.gdbinit | grep -v "^#"
set disassembly-flavor intel

layout reg
layout split                     # Split view
layout asm

enter image description here

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: humkins

79238465

Date: 2024-11-29 22:15:24
Score: 12.5 🚩
Natty: 6.5
Report link

Did you manage to solve it? I have the same problem

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): Did you manage to solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Mateus Lima

79238462

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

I still do not know why but this method works:

import mysql.connector

cnx = mysql.connector.connect(user='scott', password='password',
                              host='127.0.0.1',
                              database='employees')
cnx.close()

But this method does not:

from mysql.connector import (connection)

cnx = connection.MySQLConnection(user='scott', password='password',
                                 host='127.0.0.1',
                                 database='employees')
cnx.close()

What puzzles me is that in the MYSQL Connector/Python developer guide it states that both work and that the first method is preferred, my luck of course.

Any ideas why, I would like to learn, fix and resolve.

Thanks,

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

79238459

Date: 2024-11-29 22:08:22
Score: 3
Natty:
Report link

Did you register the service?

// App.xaml.cs
DependencyService.Register<IBluetoothConnector, BluetoothConnector>();

Also, see this question MAUI: DependencyService.Get<IMyService>() return null

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: Renerick

79238450

Date: 2024-11-29 22:03:21
Score: 1.5
Natty:
Report link

After changing to spring boot version to 3.4.0 from 3.3.6

With following configuration @EmbeddedKafka(partitions = 1, bootstrapServersProperty = "spring.kafka.bootstrap-servers:localhost:9092", topics = {example-topic}) got exception Topic example-topic not present in metadata after 60000 ms.

Used only @EmbeddedKafka it worked. Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • User mentioned (1): @EmbeddedKafka
  • Low reputation (0.5):
Posted by: Debmalya Jash