79247766

Date: 2024-12-03 13:25:48
Score: 1.5
Natty:
Report link

The memory saving of diskann is actually based on two thing,

  1. PQ you use -> we recommend to use 1/16 or 1/32 PQ
  2. cache size generally speaking diskANN can help you to save 3-10x memories. to learn more about diskANN, check https://zilliz.com/learn/DiskANN-and-the-Vamana-Algorithm

For 10M 3072dim data, a rough guess is 64GB diskANN is good enough.

Another suggestion is to try our managed service zilliz cloud, we offered capacity instance which use a index sharing similar idea of diskANN.

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

79247763

Date: 2024-12-03 13:24:48
Score: 1
Natty:
Report link

Kotlin's raw strings (""" ... """) primarily offer simplicity and readability over escaped strings when dealing with multi-line or complex text. While they don't inherently provide a performance benefit during execution (as all strings are ultimately processed as String objects in the JVM), there are several practical advantages and specific use cases where raw strings shine. Let's break it down:


Advantages of Raw Strings

  1. Simplified Syntax:

    • No need for escape sequences (\n, \t, etc.).
    • Easy to include quotes (") or backslashes (\) without escaping them.
    • Improves readability and reduces chances of errors when dealing with complex strings.
  2. Preservation of Format:

    • Retains the original formatting, including indentation and newlines.
    • Useful for handling preformatted text such as logs, configuration files, or code snippets.
  3. Ease of Multi-line Strings:

    • Multi-line content is written naturally, without the need for concatenation or explicit newline characters.
  4. Improved Debugging and Maintenance:

    • Raw strings are easier to read and modify, making them ideal for long strings or those that will be reviewed or edited often.

Use Cases for Raw Strings

1. Handling Multi-line Text

Example:

val multiLineText = """
    Dear User,
    Thank you for using our application.
    
    Regards,
    Kotlin Team
""".trimIndent()

2. Embedding Code or SQL

Example:

val sqlQuery = """
    SELECT * FROM users
    WHERE age > 18
    ORDER BY name ASC;
""".trimIndent()

3. Configuration Files or JSON/XML Content

Example:

val jsonConfig = """
    {
        "name": "Kotlin App",
        "version": "1.0.0",
        "features": ["raw strings", "multi-line", "readability"]
    }
""".trimIndent()

4. Improved Logging

Example:

val logMessage = """
    [ERROR] An exception occurred:
    - Type: NullPointerException
    - Message: Object reference is null
    - Time: 2024-12-03 14:00:00
""".trimIndent()

Do Raw Strings Offer Performance Benefits?


When to Prefer Raw Strings

In general, choose raw strings for readability and ease of use, especially in scenarios where string formatting matters.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): Regards
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Asghar Hosseini

79247761

Date: 2024-12-03 13:23:48
Score: 3
Natty:
Report link

can we just run 2 cmd at same time

Ubuntu

./gradlew assembleRelease && pkill java

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Starts with a question (0.5): can we
  • Low reputation (0.5):
Posted by: mzaifquraishi

79247760

Date: 2024-12-03 13:23:48
Score: 3.5
Natty:
Report link

I used the mono project objects and code instead of the microsoft ones. e.g.:CommonSecurityDescriptor

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

79247759

Date: 2024-12-03 13:22:48
Score: 1.5
Natty:
Report link

This is enough!

.q-focus-helper {
  visibility: hidden;
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Uhelliton

79247758

Date: 2024-12-03 13:22:47
Score: 0.5
Natty:
Report link

After fiddling, I found that this works

$job = Start-Job -ScriptBlock { ....
$null = Wait-Job $job | Out-Null
$output = Receive-Job $job -Wait -AutoRemove | Out-Null
$job = $null | Out-Null

note I had to restart the PS editor many times since it does not always take the modifications (VS Code or integrated PS editor)

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

79247756

Date: 2024-12-03 13:21:47
Score: 1
Natty:
Report link

Depends.

You notified others that you are going to make a change in this cacheline, which means you know what you are going to change in this cacheline. Simply, you can't scream to others "Hey, i'm going to change this block" without any idea about the new value, since you are an engineer, not a politician. =)

If this later load request, wants to read the part of the cache line you won't change, there is no difference between S or SM^AD.

If this later load request, wants to read the part of the cache line you will change, if a cacheline is in SM^AD stated, that means you'll change a part of this cacheline, maybe all of it, you should know the data you'll change right? Cache took that part of data in the older store request. So you have the data you'll write. You can respond with data you are holding to change, to this new request.

But ofc order of the load-store sequence should be kept till cache. Cache shouldn't see a load-store sequence as a store-load. (If you can escape from wrong responses in LSU or somewhere, it is ok too)

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Erkmen

79247747

Date: 2024-12-03 13:18:46
Score: 1
Natty:
Report link

A googler said:

The current behavior is working as intended. partialUpdate is not intended to be used for merging tree structure. In those cases, its safer to just push the full remoteViews, instead of keeping track to what sizes were pushed in the previous update (as the sizes could also have changed by then)

https://android-review.googlesource.com/c/platform/frameworks/base/+/3370144/comments/3206c3d3_c34e247a

It appears to be an undocumented works-as-intended limitation.

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

79247744

Date: 2024-12-03 13:18:46
Score: 0.5
Natty:
Report link

Update by Docker image version

It didn't work

I updated the Docker images like this:

Commit

But, the website threw the 500 error:

500 error

Bad restore

I had taken backups of Docker named volumes by this approach: https://stackoverflow.com/a/79247304/3405291

So, I did restore the Docker named volumes. However, the website threw this error:

Error establishing a database connection

Database error

Fix restore

The database connection error got fixed. To do so, I deleted everything inside the database volume by rm -rf * command:

/var/lib/docker/volumes/wordpress_dbdata/_data/

Then I restored the Docker volume of the database.

This screenshot shows the contents of the database volume before deleting/restoring and after:

Database volume: before & after

As can be seen, before deleting everything, there were some extra files. Probably those files were messing around with the database connection.

Implication

The update by modifying the version of Docker images didn't work. But backup/restore helped us.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Megidd

79247735

Date: 2024-12-03 13:14:45
Score: 0.5
Natty:
Report link

Following this issue, geographika proposed a workaround that I'm using for my own documentation:

.. raw:: html

   <div style="height: 0; visibility: hidden;">

My Title
========

.. raw:: html

   </div>

I added the height: 0; to avoid the title taking vertical space within the document.

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

79247717

Date: 2024-12-03 13:09:44
Score: 1.5
Natty:
Report link

To make whole list box read-only, you can set SelectionMode property to None. It will create read-only kind of Listbox.

listBox.SelectionMode = SelectionMode.None;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vishwasa

79247710

Date: 2024-12-03 13:06:43
Score: 3.5
Natty:
Report link

No, you cannot get by with just the offset. The math is complex, but in a nutshell, the delay is used to determine the best (offset, delay, dispersion, time) sets from the arriving packets to use to discipline the clock. The only/best place I've found that explains this well is in section 3.5, "Clock Filter Algorithm" on page 43 in the "Computer Network Time Synchronization: The Network Time Protocol" book by Dr. David L. Mills. As of this writing, a later version of this book can be found online here: http://lib.uhamka.ac.id/file?file=digital/47911-eBST-11030034.pdf. In this version, the relevant section is 3.7 on page 48. https://www.eecis.udel.edu/~mills/ntp/html/filter.html also explains it, but not as well. The SO link might help with the understanding, as well: How does NTP Clock Discipline work?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
Posted by: Andrew

79247703

Date: 2024-12-03 13:04:42
Score: 2
Natty:
Report link

Check the TERMINAL tab, not the OUTPUT tab, for your Ruby program's

ruby /home/dell1/rubytest.rb

enter image description here

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

79247701

Date: 2024-12-03 13:03:42
Score: 2.5
Natty:
Report link

It was not because of tensorflow. It is because of Keras, as you can see here

It needs Keras > 3.0. My Keras was also at 2.8.

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

79247690

Date: 2024-12-03 12:59:40
Score: 1.5
Natty:
Report link

The solution is:

  1. Switch to x86 instead of x64 in VS
  2. Remove Oracle.ManagedDataAccess.Client
  3. Install System.Data.OracleClient
  4. Update HomeController.cs with System.Data.OracleClient usage

Connection string is "OracleConnection": "Data Source=113.44.31.151:1521/SID;User Id=USR1;Password=PASSw2;Pooling=true;"

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Serguei Michine

79247687

Date: 2024-12-03 12:58:40
Score: 3
Natty:
Report link

OpenAI version 1.55.2 contains a bug resolved in OpenAI version 1.55.3.

In the Streamlit case, edit the version in requirements.

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

79247685

Date: 2024-12-03 12:58:40
Score: 1
Natty:
Report link

Use the syncTagsWithType, ex:

$article->syncTagsWithType($this->selectedTags, 'secondType');
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: francisco

79247680

Date: 2024-12-03 12:56:39
Score: 3
Natty:
Report link

Hosting locally requires your device to be on 24/7. You should invest in a VPS to host your code continuously.

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

79247677

Date: 2024-12-03 12:55:38
Score: 6.5 🚩
Natty: 6
Report link

here yawl go took me 3 min to make https://github.com/CCwithAi/MVP-YouTube-Transcript-Scraper

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: CCwithAI

79247674

Date: 2024-12-03 12:54:38
Score: 3.5
Natty:
Report link

I have had some issues recently with a WinU3 application which terminated in visual studio without generating any exceptions. My only solution was to comment out code test and uncomment until I got to the bottom of the issue.

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Niall O'Dwyer

79247671

Date: 2024-12-03 12:52:37
Score: 1
Natty:
Report link

The web resource adx_annotations/adx.annotations.html is included with Power Pages installations that leverage the file attachment feature with Azure Blob Storage. If it's not visible, please check the following steps:

  1. Verify Installation: Ensure that the required Power Pages solution and its dependencies are installed correctly in your environment. Check for any pending updates in the Power Platform Admin Center.
  2. Search for the Web Resource:Navigate to Advanced Settings > Customizations > Customize the System > Web Resources. Look for adx_annotations/adx.annotations.html.

If it's missing, it may not have been included during installation, or you might need to reinstall/repair the solution.

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

79247664

Date: 2024-12-03 12:50:36
Score: 1.5
Natty:
Report link

I am writing this for those who will encounter this problem in the future. This solution led me to another problem but it does not give this error anymore. The problem is caused by the inability to isolate some files when working with more than one hyperledger fabric version. When I tracked the source of the error, I saw that the fabric-network folder in the node_modules folder caused this error. Because it is not used in Hyperledger Fabric v2.4 and later versions (https://www.npmjs.com/package/fabric-network) and Fabric Gateway needs to be used instead. If you delete the relevant folder or adjust your runtime environment accordingly, this problem will be solved.

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

79247659

Date: 2024-12-03 12:49:36
Score: 2
Natty:
Report link

To fix this typescript error, add the following line:

import type {} from '@mui/material/themeCssVarsAugmentation';

see https://mui.com/material-ui/customization/css-theme-variables/usage/#typescript

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

79247634

Date: 2024-12-03 12:41:34
Score: 2
Natty:
Report link

Working for latest Angular v18 and v19

STEP 1: add import in app.config.ts

import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';

STEP 2: add provideAnimationsAsync in the providers array

providers: [ provideAnimationsAsync(), ]

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

79247626

Date: 2024-12-03 12:39:34
Score: 3
Natty:
Report link

if you are reffring to the space in gray color around the iframe element it can not be removed so if you dont want it use object tag with #view=fit parameter

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

79247617

Date: 2024-12-03 12:37:33
Score: 0.5
Natty:
Report link

We can do comparison directly by using WHERE clause, try following query:

select 
  (apply_json_data -> 'companyInformation' -> 'operationalAddress' ->> 'state') AS statvalue
from
  sat_application_apply
where 
  (apply_json_data -> 'companyInformation' -> 'operationalAddress' ->> 'state') = 'apple';

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Trushaba B. Jadeja

79247606

Date: 2024-12-03 12:33:32
Score: 0.5
Natty:
Report link

It ended up, that the IT did not set up correctly the DNS. Once fixed the A-Record(s), it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Emaborsa

79247605

Date: 2024-12-03 12:33:32
Score: 5
Natty: 4
Report link

for the last 3 years, I am looking for this. It is very surprising still there is no feature/development/application like that in 2024. Do you think can it be implemented easily with some coding ? (i don't want to juggle with windows handles)

Reasons:
  • Blacklisted phrase (2): I am looking for
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yuuyake

79247602

Date: 2024-12-03 12:32:31
Score: 3
Natty:
Report link

You can also convert Polars df to pandas df using .to_pandas() method, and then save to csv with mode="a+"

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

79247598

Date: 2024-12-03 12:30:31
Score: 1
Natty:
Report link

There seems to be an issue with the Node.js version, and there is a discussion about it in Prisma#25560. Some of the suggested solutions are:

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: TedMeftah

79247595

Date: 2024-12-03 12:30:31
Score: 5
Natty: 5
Report link

Depois de muito pesquisar descobrir que a solução é bastante simples. Só é necessário liberar o ip da sua maquina no firewall.

Reasons:
  • Blacklisted phrase (2): solução
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28606581

79247587

Date: 2024-12-03 12:29:30
Score: 1.5
Natty:
Report link

In case of using poetry, then simply: poetry add rpds

Docs

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

79247573

Date: 2024-12-03 12:26:29
Score: 2.5
Natty:
Report link

Yes this working "Click "Add" then tick both "Public" and "Private" checkbox" because sometime server automatic after restart change this check or other work by server - not change bind-address

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

79247571

Date: 2024-12-03 12:26:29
Score: 3.5
Natty:
Report link

Here is a link to a research paper comparing ZMQ vs gRPC

https://www.academia.edu/download/118825464/Comparative_Analysis_OF_GRPC_VS._ZeroMQ_for_vis3.pdf

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

79247555

Date: 2024-12-03 12:19:28
Score: 1.5
Natty:
Report link

As mentioned in this documentation regarding message retention duration the default value for the message retention duration is 7 days , the minimum time period for the retention is 10 minutes and the maximum value is 31 days. Here we can get clarity and confirmation regarding the different time duration mentioned for the message retention in Pub/Sub for both the Acked messages or the Unacked messages.

Reasons:
  • Blacklisted phrase (1): this document
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Dhiraj Singh

79247547

Date: 2024-12-03 12:17:27
Score: 3
Natty:
Report link

Go to indexes in mongodb collection next to find section and search for the index shown in the error and delete it. It will solve your problem.

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

79247546

Date: 2024-12-03 12:16:27
Score: 2.5
Natty:
Report link

Great question mate! To insert a new point, you can calculate the distance to each segment and insert the point between the two closest ones. Nice approach using Line with tension 0.5 – it’s an effective way to draw smooth curves.

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

79247544

Date: 2024-12-03 12:15:26
Score: 0.5
Natty:
Report link

Just use

=INDEX(GOOGLEFINANCE("CURRENCY:AUDUSD", "price", DATE(2021,7,1)), 2,2)

In this function, changed QUERY(...) formula by INDEX(datatable,row,column) and removed unnecessary GOOGLEFINANCE() parameters.

INDEX

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

79247540

Date: 2024-12-03 12:15:26
Score: 3.5
Natty:
Report link

Here you can find blog post with complete example of deploying lambda using terraform.

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

79247539

Date: 2024-12-03 12:15:26
Score: 3.5
Natty:
Report link

$ npm i --save @nestjs/passport passport you need

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

79247538

Date: 2024-12-03 12:14:26
Score: 1
Natty:
Report link

Change scope from 'test' to 'compile'

<scope>compile</scope>

Hope it works!

Reasons:
  • Whitelisted phrase (-1): Hope it works
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vamsi Krishna

79247536

Date: 2024-12-03 12:13:26
Score: 1.5
Natty:
Report link

The problem appears to be that you're not using leading-zero formatting. See the documentation for printf() or whichever formatting function you're using.

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

79247518

Date: 2024-12-03 12:05:24
Score: 2.5
Natty:
Report link

The default Ubuntu Server configuration does not install swapfile.

just install a swapfile

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

79247506

Date: 2024-12-03 12:02:23
Score: 0.5
Natty:
Report link

Redirect to web app to another page

Utilizing XFrameOptionsMode as discussed here worked for the situation on your code. I modified your given code.gs and got it to redirect to another page

Modified Code

// Function to handle web app requests
function doGet(e) {
  if (e.parameter.page) {
    var pageName = e.parameter.page.trim().toLowerCase();
    Logger.log(pageName);
    if (pageName !== "home") {
      //I modified this section to use setFrameOptionsMode
      var template = HtmlService.createTemplateFromFile(pageName);
      return template.evaluate().setSandboxMode(HtmlService.SandboxMode.IFRAME)
        .setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
    } else {
      return homePage();
    }
  } else {
    return homePage();
  }
}

function homePage() {
  var template = HtmlService.createTemplateFromFile("home");
  return template.evaluate();
}

Sample Output

Sample Output

References: XFrameOptionsMode

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

79247504

Date: 2024-12-03 12:02:23
Score: 1.5
Natty:
Report link

It seems you're encountering an issue with the security token when integrating ONLYOFFICE's document editor with your React frontend and Django backend. The error message "The document security token is not correctly formed" typically indicates that the token being passed from your backend to the ONLYOFFICE editor isn't properly generated or formatted.

See solution complete on GitHub

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

79247503

Date: 2024-12-03 12:02:23
Score: 0.5
Natty:
Report link

Turns out I accidentally swapped the ikm and salt arguments in the NodeJS code, here is the corrected code:

import crypto from 'crypto';

const input = Buffer.from("helloworld");
const salt = Buffer.alloc(32, 0); // Explicit salt

const output = crypto.hkdfSync('sha256', input, salt, Buffer.alloc(0), 48); // Correct use of `input` as IKM

console.log(Buffer.from(output).toString("hex"));
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ZeroByter

79247496

Date: 2024-12-03 12:01:22
Score: 2.5
Natty:
Report link

const connectionOptions = { host: 'Your ip address', port: 5432, database: 'node', user: 'emirb', password: 'emir123', };

Just change host working fine

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

79247493

Date: 2024-12-03 12:00:22
Score: 1
Natty:
Report link

if your memory were big, you can use your function to generate a lookup array of length=256 in compile time. when you do the reaarange job in run time, just look it up in the array. this can boost your speed up into 1 clockcycle in best case.

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: Yale Wang

79247488

Date: 2024-12-03 11:58:22
Score: 1
Natty:
Report link
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Gurunandan Rao

79247467

Date: 2024-12-03 11:54:21
Score: 1.5
Natty:
Report link
cat x.json | grep cred_def_id | cut -d\" -f 4
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Pero

79247466

Date: 2024-12-03 11:54:21
Score: 2
Natty:
Report link

If its working on postman, its probably with how your request is created, you are using SimpleClientHttpRequestFactory(), it could be something with authorization, try placing a breakpoint and finding the exact line of code where the stack trace is being thrown. It could also be something with a type mismatch ect... Try to match it with your postman

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

79247458

Date: 2024-12-03 11:52:19
Score: 7 🚩
Natty: 6
Report link

But the issue still exists for SSR (statically rendered) pages. Anyone knows a solution?

Reasons:
  • Blacklisted phrase (1): Anyone knows
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: James

79247455

Date: 2024-12-03 11:51:19
Score: 2
Natty:
Report link

Add the Visual Studio Extension - "Template Studio for Win UI C#". Create a new Win UI 3 Project using the Win UI3 Template - This will create a new project that contains sample code for sending Notifications to Windows.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Niall O'Dwyer

79247443

Date: 2024-12-03 11:49:18
Score: 0.5
Natty:
Report link

When setting the userInteraction property, also add/remove .notEnabled accessibility trait for that view

func disable() {
    view.isUserInteractionEnabled = false
    view.accessibilityTraits.insert(.notEnabled)
}

func enable() {
    view.isUserInteractionEnabled = true
    view.accessibilityTraits.remove(.notEnabled)
}
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: ikroop

79247440

Date: 2024-12-03 11:48:18
Score: 2.5
Natty:
Report link

I would suggest reaching out to Stripe Support instead, so they can look at your individual case: https://support.stripe.com/?contact=true

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

79247427

Date: 2024-12-03 11:44:17
Score: 1
Natty:
Report link

You can create a new Account Link

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

79247424

Date: 2024-12-03 11:43:17
Score: 1
Natty:
Report link

Check marketPlaceJobFilter, it has pagination_eq, e.g.

{ "marketPlaceJobFilter":
  { "titleExpression_eq": "JAVA" },
  { "pagination_eq": { first: 100, after: "0" }}
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mnovozhylov

79247422

Date: 2024-12-03 11:43:17
Score: 1
Natty:
Report link

They say, func parameter for bot.callback_query_handler is a filter. So you can check, if your query fits this handler or should go to another. maybe, this will work:

def get_announcement(message): markup = types.InlineKeyboardMarkup(row_width=2) item1 = types.InlineKeyboardButton("📎 Attach photo", callback_data='announce_attach_photo') item2 = types.InlineKeyboardButton("➡️ Skip", callback_data='announce_skip') markup.add(item1, item2) bot.send_message(chat_id=message.chat.id, text="Do you want to attach a photo?", reply_markup=markup)

@bot.callback_query_handler(func=lambda call: call.data.startswith("announcement_")) def handle_announcement_callback(call): if call.data == "announce_attach_photo": ... elif data == "announce_skip": ...

def get_notification_preference(message, announcement, photo): markup = types.InlineKeyboardMarkup(row_width=2) item1 = types.InlineKeyboardButton("🔈 Sand with notification", callback_data="notification_on") item2 = types.InlineKeyboardButton("🔇 Send silently", callback_data="notification_off") markup.add(item1, item2) bot.send_message(chat_id=message.chat.id, text="How to send an announcement?", reply_markup=markup)

@bot.callback_query_handler(func=lambda call: call.data.startswith("notification_")) def handle_notification_callback(call): if call.data == "notification_on": ... elif call.data == "notification_off": ...

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Малика Бахтиарова

79247416

Date: 2024-12-03 11:42:16
Score: 0.5
Natty:
Report link

This worked for me:

Tools>Options>Language>Formatter>Delphi>Profiles and Status, click Restore Defaults.

Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Neil Howie

79247411

Date: 2024-12-03 11:40:16
Score: 1
Natty:
Report link

try using an amazon linux compatible prebuilt wheel

you can using this container as it has same env as lambda

docker run -it --rm amazonlinux:2

in docker container install requirements make sure to use venv

yum install -y gcc gcc-c++ python3 python3-devel
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: exril

79247407

Date: 2024-12-03 11:39:16
Score: 3.5
Natty:
Report link

I Have debug the code and got the Answer that why this was happening because i have use the Animatedsize and i have removed and now it is running as i wanted

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

79247404

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

As it turns out, it seems the definition of a word as captured by \\w is unclear, and the following code extracts the proper sequence :

gsub(x="LCZBDT22.105",
     pattern="([A-Z]*\\d*)(\\.)(\\d+)", replacement = "\\3")

It's as if a word can not have an uppercase within it (and it kind of makes sense), so the string "LCZB" would not be captured at all and is repassed to the output of gsub, according to what the help page says :

Blockquote Elements of character vectors x which are not substituted will be returned unchanged

the "T" and the "." are matched as group 1 and 2 and are therefore not kept.

Maybe this can help some other R-base coders.

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

79247399

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

by using the common mobile-first approach you can simplify things:

here's the pen


/* defaults to full width */
.mobile {
  width: 100%;
}

/* changes when certain dimensions is passed - note how we changed this from "max-with" to "min-width" */
@media screen and (min-width: 576px) {
  .mobile {
    width: auto;
  }
}
Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Richard

79247383

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

This is what worked for me on my ubuntu-20 system. We can configure it in the phpmyadmin settings itself.

Please refer the screenshot and observe the send error reports field and set it to Never send error reports

enter image description here

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

79247380

Date: 2024-12-03 11:30:13
Score: 3.5
Natty:
Report link

As Jörg W Mittag pointed out in the comment, eclipse 3.3 is not supported anymore, so the up to date plugin to use is solargraph.

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

79247377

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

You can display the data you want by joining two tables and specifying the desired product IDs. The following expression provides this.

  SELECT c.* FROM Customers AS c LEFT JOIN Sales s ON s.CustId = c.Id WHERE s.ProdId IN (22,36);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mustafa

79247354

Date: 2024-12-03 11:21:10
Score: 0.5
Natty:
Report link

It is, in fact, best practice to cache things like SQL connections. That's regardless of language; here I'm doing the same in Go for example.

With regards to caching content to avoid hitting DBs/other services, I would say, yes, if the content is expensive to access and requested often enough i.e. the same execution environment ('function instance') will be asked for it multiple times, it's definitely worth it.

N.B. Since the typical way to do this is using global state, thread safety needs to be taken into account where appropriate

Reasons:
  • Blacklisted phrase (1): regards
  • No code block (0.5):
  • High reputation (-1):
Posted by: joakim

79247349

Date: 2024-12-03 11:20:10
Score: 2.5
Natty:
Report link

I am guessing this behavior is because you have the second bean annotated with @ConditionalProperty, which checks if the bean with the specific name is registered, if it is not its created, if it is it does nothing, that is why spring is not failing. You can also check if you are on intelij your active beans under dubug and actuator to see your live bean. Only one should be active.

Beans

Reasons:
  • No code block (0.5):
  • User mentioned (1): @ConditionalProperty
  • Low reputation (1):
Posted by: tv.tony

79247347

Date: 2024-12-03 11:19:09
Score: 0.5
Natty:
Report link

In the latest updates the way to do it is:

TreeChanges changes = repo.Diff.Compare<TreeChanges>(tree1, tree2);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: DomenPigeon

79247343

Date: 2024-12-03 11:18:09
Score: 1
Natty:
Report link

The root of the issue is the folder name

from the building logs: The maximum full path to an object file is 250

your project path is concatenated with /node_module/react-native..../Path_to_your_Project

This full path cant exceed 250 characters

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

79247336

Date: 2024-12-03 11:16:09
Score: 0.5
Natty:
Report link

I was able to finally fix it by just deleting all pubspec.lock files in my project and then running flutter pub get again.

There seems to have been an issue with one flutter beta version, that put the dependency there and I could not get rid of it without cleaning up the pubspec files.

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

79247333

Date: 2024-12-03 11:16:09
Score: 3
Natty:
Report link

if area chart then use chart.updateSeries([{ name: "Sales", data: GraphData }]); instead of chart.updateSeries(GraphData);

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

79247325

Date: 2024-12-03 11:10:06
Score: 7 🚩
Natty: 4
Report link

Can i get detailed steps on how to integrate the apk. I am closely following the official build guide for pixel 8a but i am stuck. Without this apk i have successfully build and flashed the OS into my device

I have mentioned MyApp in handheld_product.mk and my android.mk is as follow

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := MDMApk
LOCAL_MODULE_CLASS := APPS
LOCAL_SRC_FILES := MDMApk.apk
LOCAL_CERTIFICATE := platform
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)

I want to know that do i need to do something more like to sign this apk with grapeheneOS or anything else. Please tell me.

Reasons:
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (2.5): Please tell me
  • RegEx Blacklisted phrase (1.5): i am stuck
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Can i
  • Low reputation (1):
Posted by: Niraj Kumar

79247311

Date: 2024-12-03 11:07:05
Score: 4
Natty: 4.5
Report link

check current attributes, it should be helpful https://api.rubyonrails.org/v8.0.0/classes/ActiveSupport/CurrentAttributes.html

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

79247305

Date: 2024-12-03 11:06:04
Score: 4
Natty: 4.5
Report link

Check current attributes' docs. it will help you https://api.rubyonrails.org/v8.0.0/classes/ActiveSupport/CurrentAttributes.html

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

79247286

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

Make changes like this:

[HttpGet]
public async Task<ActionResult<IEnumerable<CarMakes>>> GetCars()
{
    var x = from f in _context.CarMakes
            group f by f.Make into g
            select new { Make = g.Key };

    var result = await x.ToListAsync();

    return Ok(result);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ali Mumtaz

79247279

Date: 2024-12-03 11:00:01
Score: 3.5
Natty:
Report link

MOVE FUNCTION DISPLAY-OF(FUNCTION NATIONAL-OF(WS-JTEXT 1140)) TO WS-CBLTEXT

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

79247277

Date: 2024-12-03 10:59:01
Score: 3
Natty:
Report link

I made this: https://github.com/artyom-razinov/llvm-project/tree/llvm-backend-riscw

Which is updated version of this: https://github.com/andresag01/llvm-project

Which is a repo for this article: https://sourcecodeartisan.com/2020/09/13/llvm-backend-0.html

Comment for last commit has some info on how to build and how to compile c to target architecture (some riscw architecture, I have no idea what it is): https://github.com/artyom-razinov/llvm-project/commit/cb8a38e1ed0e3101ba2a46b4dff683bc63abbc66

Off-topic: It's sad that github doesn't support markdown in commit messages...

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: artyom.razinov

79247273

Date: 2024-12-03 10:58:01
Score: 3.5
Natty:
Report link

I had this problem too when I re-hosted previously-working ClickOnce files on to another web host. The problem was Git messing with the text file line-endings just as @aduen commented above.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @aduen
  • Single line (0.5):
  • Low reputation (1):
Posted by: RustyF

79247268

Date: 2024-12-03 10:57:01
Score: 1
Natty:
Report link

The probably shortest way to convert milliseconds in HH:mm would be:

let timeInMilliseconds = 33000000 let timeInHHmm = ${Math.round(timeInMilliseconds/3600/1000)}h ${Math.round(((timeInMilliseconds/3600 / 1000)-(Math.round(timeInMilliseconds/3600/1000)))*60)}m;

console.log(timeInHHmm)

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

79247266

Date: 2024-12-03 10:57:01
Score: 2.5
Natty:
Report link

While @MayukhBhattacharya provided the sophisticated formula which perfectly works, the simple pivot table goodly gives the desired result:

enter image description here

I guess no explanation is required.

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

79247251

Date: 2024-12-03 10:48:59
Score: 3
Natty:
Report link

C:\Program Files\ODLStudio-1.4.1-Win-64-bit\graphhopper>java -Xmx2G -jar graphhopper-0.4-SNAPSHOT-jar-with-dependencies.jar config=config.properties osmreader.osm=C:\ODLDEMO\morocco-latest.osm.pbf

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

79247232

Date: 2024-12-03 10:42:57
Score: 2
Natty:
Report link

i also came around this same warning "GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1" .

which is solved by using "cam = cv.VideoCapture(0, cv.CAP_V4L2)" for linux.

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

79247224

Date: 2024-12-03 10:38:56
Score: 3.5
Natty:
Report link

Try a myFrame.setVisible(true) after you've called your loadCandidates func

If no luck, try hoist your invokeLater to after you've initialised your JFrame and Panels.

Reasons:
  • Blacklisted phrase (1): no luck
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mitchell Spangler

79247222

Date: 2024-12-03 10:37:55
Score: 9.5
Natty: 7
Report link

I have ran into the same issue. I found out that this has something to do with dynamic images. Did you solve that problem?

Reasons:
  • RegEx Blacklisted phrase (3): Did you solve that problem
  • RegEx Blacklisted phrase (1.5): solve that problem?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tomáš Lukáč

79247219

Date: 2024-12-03 10:36:54
Score: 2
Natty:
Report link

As Deinum indicates in his answer, it is currently not possible, but Spring developers are already looking into how to fix it.

Please note that it will be removed from Spring Boot 3.6 release onwards.

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

79247217

Date: 2024-12-03 10:36:54
Score: 2.5
Natty:
Report link

I use the comma method and it works. For example: winget install geeksoftwareGmbH.PDF24Creator, Python.Python.3.10, Mozilla.Firefox

Please note if you give generic names like chrome it will show multiple version. You should to know the package name like Google.Chrome

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

79247214

Date: 2024-12-03 10:35:54
Score: 1.5
Natty:
Report link

Pint has the concept of 'contexts' to convert between dimensions based on some pre-established (physical) relationships. I added this to my code to solve my specific problem:

ureg.enable_contexts('Gaussian')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dlukacic

79247206

Date: 2024-12-03 10:33:53
Score: 0.5
Natty:
Report link
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
import { globalRuleForm } from '../types/global-rule';

export function uniqueMainChildConditionValidator(): ValidatorFn {
    return (control: AbstractControl): ValidationErrors | null => {
        if (!Array.isArray(control.value)) {
            return null;
        }
        const mainObjects: globalRuleForm[] = control.value;
        for (let i = 0; i < mainObjects.length; i++) {
            const mainObj = mainObjects[i];
            // Ensure the current main object has child conditions to check
            if (mainObj.ChildCondition && mainObj.ChildCondition.length > 0) {
                const seenChildConditions = new Set<string>();

                // Check each child condition for duplication
                for (const [index, child] of mainObj.ChildCondition.entries()) {
                    const childConditionKey = `${child.Field}-${child.Condition}-${child.ConditionText}`;
                    // Check if the child condition matches the parent condition
                    const parentConditionKey = `${mainObj.Field}-${mainObj.Condition}-${mainObj.ConditionText}`;
                    if (childConditionKey === parentConditionKey) {
                        return { conditionMismatch: `${index} ${i} Child condition in main object ${i + 1} matches the parent condition.` };
                    }

                    // Check if the child condition has been seen before (duplicate check)
                    if (seenChildConditions.has(childConditionKey)) {
                        return { conditionMismatch: `${index} ${i} Child condition ${childConditionKey} is duplicated in main object ${i + 1}.` };
                    }

                    // Add the child condition to the set of seen conditions
                    seenChildConditions.add(childConditionKey);
                }
            }

            for (let j = 0; j < mainObjects.length; j++) {
                if (i !== j) {
                    const otherMainObj = mainObjects[j];                    
                    if (!otherMainObj.Logic &&
                        mainObj.Field === otherMainObj.Field &&
                        mainObj.Condition === otherMainObj.Condition &&
                        mainObj.ConditionText === otherMainObj.ConditionText
                    ) {
                        return { conditionMismatch: `Main object ${i + 1} has matching properties with main object ${j + 1}.` };
                    }
                }
            }
        }
        return null;
    };
}

can you make this validator more efficient the performance is slow

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): can you
  • Low reputation (1):
Posted by: user28604751

79247203

Date: 2024-12-03 10:32:53
Score: 1
Natty:
Report link

The hidden input stores the payment token securely within the form, making it available for submission without displaying it in the UI. wrap the field inside the form tag

<input type="hidden" name="token" id="Token" value="">
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sindhuja Karinki

79247202

Date: 2024-12-03 10:32:53
Score: 3
Natty:
Report link

the way it fixed for me that .. it was expecting the branch in format that like feature/[somefeaturegroup] . After that it accept it.

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

79247201

Date: 2024-12-03 10:32:53
Score: 1
Natty:
Report link

The Simple form of answer is,

To dicard all uncommited changes alone, [this will remove staged files as well] and you dont want them to be in the local. -> git reset --hard

To discard all unstaged changes or files, [this wont remove the files from the local, but will enable you to checkout to another branch] -> git stash

[try dry-run before doing this] To discard all untracked files: -> git clean

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

79247196

Date: 2024-12-03 10:31:53
Score: 0.5
Natty:
Report link

Thank you Abra for your requests. It made me rethink the problem. And here is the solution.

public void mousePressed(MouseEvent e)
  {
     DataButton jButton = (DataButton) e.getComponent();
     String caption = jButton.getData();

     JTextComponent focusElement = findFocusElement();
     if (focusElement != null)
     {
        int position = focusElement.getCaretPosition();
        String text = focusElement.getText();
        String before = text.substring(0, position);
        String after = text.substring(position);
        focusElement.setText(before + caption + after);
        focusElement.requestFocus();
        focusElement.setCaretPosition(position + 1);
     }
  }
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dragoness

79247193

Date: 2024-12-03 10:30:52
Score: 1.5
Natty:
Report link

I tried to repeat the approach above, but it didn't work for me in this case, maybe I did smth wrong.

I still don't understand you reason of not using "Deploy to container" plugin in order to deploy war files since it offers easier way to deploy war files directly to Tomcat server, but the only reason I see so far, is that maybe you want to deploy a war file to Tomcat 10 or higher versions, because "Deploy to container" plugin supports only versions up to Tomcat 9 version

Anyways, what I did instead was that I used Publish over SSH plugin

Once you install this plugin on Jenkins, you should go to Settings -> System (System Configuration) -> then find configurations of Publish over SSH

In there you should input values according to your Tomcat configuration setups like in this image. Also, if your Tomcat uses password to authenticate via username, don't forget to tick Use password authentication, or use a different key option and enter password. So, if your Tomcat username is admin, password is pass and IP address is 10.2.39.40, it will do ssh [email protected] and pass password behind the scene. Also, don't forget to enter port (default 22) where your server is running.

Next, go to your job (in my case it was Maven project job), then add Send files or execute commands over SSH option in Post Steps. Then enter values like in this image. So, it means that once your war file is built, it will output it to target folder by default and this plugin will search for all war files in target folder and will send it to the server.

BONUS

If this job builds only one war file, then you might need to add the following shell command

mv target/{your war file}*.war target/{your war file}.war

This is needed for file to be renamed from file-1.0.0.war to file.war, removing unneccessary version, so file.war will be delivered to Tomcat server, but make sure to add this execute shell command before executing send over ssh step.

Tutorial right here can give you more details.

Sorry, I can't attach images :/ , because I don't have rights to do so. I hope that this solution can help someone out there.

Reasons:
  • Blacklisted phrase (1): it didn't work for me
  • Blacklisted phrase (1): this plugin
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muratbek Bauyrzhan

79247186

Date: 2024-12-03 10:28:52
Score: 2.5
Natty:
Report link

Just wanted to share something super handy—there’s a free GPA calculator on OfficeEssence.net that’s a total lifesaver. It’s quick, easy, and makes tracking your grades so much less stressful.

Check it out here 👉 OfficeEssence.net You’ll love how simple it is!

Reasons:
  • Blacklisted phrase (0.5): Check it out
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hoang Anh

79247185

Date: 2024-12-03 10:28:52
Score: 3.5
Natty:
Report link

You have now the possibility to use a template for the menuItems: https://primeng.org/speeddial#api.speeddial.templates

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

79247164

Date: 2024-12-03 10:24:51
Score: 2.5
Natty:
Report link

this site helped me. https://github.com/ggerganov/llama.cpp/blob/master/docs/build.md

cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Choc_waffles

79247163

Date: 2024-12-03 10:24:51
Score: 1.5
Natty:
Report link
<script setup>
import { onBeforeUnmount, ref } from "vue";
let p5Instance = null;
const sketch = (p5) => {
  p5Instance = p5;

  p5.preload = () => {};

  p5.setup = () => {};

  p5.draw = () => {};

  p5.mousePressed = () => {};

  p5.mouseDragged = () => {};

  p5.mouseReleased = () => {};

  p5.mouseWheel = (event) => {};
  p5.keyPressed = (event) => {
    switch (event.keyCode) {
      default:
        break;
    }
  };
};

// p5 instance Cleanup on unmount component
onBeforeUnmount(() => {
  if (p5Instance) {
    p5Instance.remove();
  }
});
</script>

<template>
  <P5 style="overflow: hidden; height: 100dvh"/>
</template>

If anyone comes across this post with the same problem i had, this is the solution I found, save the p5 instance in a global variable and use the on unmount hook to remove the instance on navigation.

Sadly i dont remember where i found or who gave me this solution, otherwise i would give them some credit.

@emeik has a very similar solution

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @emeik
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ivo Heberle

79247162

Date: 2024-12-03 10:23:51
Score: 2
Natty:
Report link

type PickMulti<T, K extends (keyof T)[]> = {
  [Key in K[number]]: T[Key];
};

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

79247129

Date: 2024-12-03 10:14:48
Score: 1
Natty:
Report link

As user2138149 said in a comment above, you need to use docker-compose-v2. On Ubuntu 24.04 (docker 26.1.3) I installed using:

apt install docker-compose-v2

After that, the command went through:

docker compose up
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): user2138149
Posted by: fraber