79572567

Date: 2025-04-14 07:31:27
Score: 0.5
Natty:
Report link

There is no build-in function like std::swap in C++.

However, this code can perform the task:

def my_swap(obj1, obj2):
    obj1[:], obj2[:] = obj2[:], obj1[:]
l1 = [1, 2, 3]
l2 = [4, 5, 6]
my_swap(l1, l2)
print("l1:", l1)
print("l2:", l2)

Output:

l1: [4, 5, 6]
l2: [1, 2, 3]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Subir Chowdhury

79572566

Date: 2025-04-14 07:31:27
Score: 0.5
Natty:
Report link

Hit the delete key on the keyboard while the stale string is selected.

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

79572564

Date: 2025-04-14 07:30:27
Score: 1
Natty:
Report link

Thanks @furas for the hint: simply uninstalling qt6-main using `conda remove qt6-main` worked for me (conda installed/uninstalled a lot of other packages, unfortunately I didn't really paid attention and just clicked ok). Just in case someone is interested: that's what my environment looks now:

_openmp_mutex             4.5                       2_gnu    conda-forge
ampl-asl                  1.0.0                he0c23c2_2    conda-forge
brotli-python             1.0.9           py312h5da7b33_9
bzip2                     1.0.8                h2466b09_7    conda-forge
ca-certificates           2025.2.25            haa95532_0
cairo                     1.16.0               hc68a040_5
colorama                  0.4.6              pyhd8ed1ab_1    conda-forge
contourpy                 1.3.1           py312h214f63a_0
cycler                    0.11.0             pyhd3eb1b0_0
deepdiff                  8.1.1              pyhd8ed1ab_0    conda-forge
double-conversion         3.3.1                he0c23c2_0    conda-forge
expat                     2.6.4                h8ddb27b_0
font-ttf-dejavu-sans-mono 2.37                 hd3eb1b0_0
font-ttf-inconsolata      2.001                hcb22688_0
font-ttf-source-code-pro  2.030                hd3eb1b0_0
font-ttf-ubuntu           0.83                 h8b1ccd4_0
fontconfig                2.14.1               hb33846d_3
fonts-anaconda            1                    h8fa9717_0
fonts-conda-ecosystem     1                    hd3eb1b0_0
fonttools                 4.55.3          py312h827c3e9_0
freetype                  2.13.3               h0620614_0
geojson                   3.2.0              pyhd8ed1ab_0    conda-forge
glib                      2.78.4               hd77b12b_0
glib-tools                2.78.4               hd77b12b_0
graphite2                 1.3.14               hd77b12b_1
harfbuzz                  10.2.0               hf458a27_0
icu                       73.1                 h6c2663c_0
intel-openmp              2024.2.1          h57928b3_1083    conda-forge
ipopt                     3.14.17              h905d1ba_0    conda-forge
jpeg                      9e                   h827c3e9_3
kiwisolver                1.4.8           py312h5da7b33_0
krb5                      1.21.3               hdf4eb48_0    conda-forge
lcms2                     2.16                 hb4a4139_0
lerc                      4.0.0                h5da7b33_0
libblas                   3.9.0              26_win64_mkl    conda-forge
libcblas                  3.9.0              26_win64_mkl    conda-forge
libclang13                14.0.6          default_h8e68704_2
libdeflate                1.22                 h5bf469e_0
libexpat                  2.6.4                he0c23c2_0    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libflang                  5.0.0           h6538335_20180525    conda-forge
libgcc                    14.2.0               h1383e82_2    conda-forge
libglib                   2.78.4               ha17d25a_0
libgomp                   14.2.0               h1383e82_2    conda-forge
libhwloc                  2.11.2          default_ha69328c_1001    conda-forge
libiconv                  1.17                 hcfcfb64_2    conda-forge
libintl                   0.22.5               h5728263_3    conda-forge
libjpeg-turbo             2.0.0                h196d8e1_0
liblapack                 3.9.0              26_win64_mkl    conda-forge
liblzma                   5.6.3                h2466b09_1    conda-forge
libpng                    1.6.39               h8cc25b3_0
libpq                     12.15                h906ac69_0
libsqlite                 3.48.0               h67fdade_1    conda-forge
libtiff                   4.5.1                h44ae7cf_1
libwebp-base              1.5.0                h3b0e114_0    conda-forge
libwinpthread             12.0.0.r4.gg4f2fc60ca      h57928b3_9    conda-forge
libxcb                    1.17.0               h0e4246c_0    conda-forge
libxml2                   2.13.5               h24da03e_0
libxslt                   1.1.41               h0739af5_0
libzlib                   1.2.13               h2466b09_6    conda-forge
llvm-meta                 5.0.0                         0    conda-forge
llvmlite                  0.44.0          py312h8b1c7eb_1
lxml                      5.3.0           py312h395c83e_1
lz4-c                     1.9.4                h2bbff1b_1
matplotlib                3.10.1          py312h2e8e312_0    conda-forge
matplotlib-base           3.10.1          py312h90004f6_0    conda-forge
minizip                   4.0.3                hb68bac4_0
mkl                       2024.2.2            h66d3029_15    conda-forge
mumps-seq                 5.7.3                h7c2359a_6    conda-forge
networkx                  3.4.2              pyh267e887_2    conda-forge
numba                     0.61.0          py312hcccf92d_1    conda-forge
numpy                     2.1.3           py312h49bc9c5_0    conda-forge
openjpeg                  2.5.2                hae555c5_0
openmp                    5.0.0                    vc14_1    conda-forge
openssl                   3.4.0                ha4e3fda_1    conda-forge
orderly-set               5.2.3              pyh29332c3_1    conda-forge
packaging                 24.2               pyhd8ed1ab_2    conda-forge
pandapower                3.0.0              pyhd8ed1ab_0    conda-forge
pandas                    2.2.3           py312h72972c8_1    conda-forge
pcre2                     10.42                h0ff8eda_1
pillow                    11.1.0          py312h096bfcc_0
pip                       25.0               pyh8b19718_0    conda-forge
pixman                    0.44.2               had0cd8c_0    conda-forge
ply                       3.11               pyhd8ed1ab_3    conda-forge
pthread-stubs             0.3                  h3c9f919_1
pyomo                     6.8.2           py312h275cf98_1    conda-forge
pyparsing                 3.2.0           py312haa95532_0
pyside6                   6.7.2           py312hf8997a8_0
python                    3.12.3          h2628c8c_0_cpython    conda-forge
python-dateutil           2.9.0.post0        pyhff2d567_1    conda-forge
python-tzdata             2025.1             pyhd8ed1ab_0    conda-forge
python_abi                3.12                    5_cp312    conda-forge
pytz                      2024.1             pyhd8ed1ab_0    conda-forge
qhull                     2020.2               h59b6b97_2
qtbase                    6.7.2                h0804d20_0
qtdeclarative             6.7.2                h5da7b33_0
qtshadertools             6.7.2                h5da7b33_0
qtsvg                     6.7.2                hf2fb9eb_0
qttools                   6.7.2                h0de5f00_0
qtwebchannel              6.7.2                h5da7b33_0
qtwebengine               6.7.2                h601c93c_0
qtwebsockets              6.7.2                h5da7b33_0
scipy                     1.13.1          py312h1f4e10d_0    conda-forge
setuptools                75.8.0             pyhff2d567_0    conda-forge
six                       1.17.0             pyhd8ed1ab_0    conda-forge
sqlite                    3.45.3               h2bbff1b_0
tbb                       2021.13.0            h62715c5_1    conda-forge
tk                        8.6.13               h5226925_1    conda-forge
tornado                   6.4.2           py312h827c3e9_0
tqdm                      4.67.1             pyhd8ed1ab_1    conda-forge
typing_extensions         4.12.2          py312haa95532_0
tzdata                    2025a                h78e105d_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_1    conda-forge
unicodedata2              15.1.0          py312h827c3e9_1
vc                        14.42                haa95532_4
vc14_runtime              14.42.34433         h6356254_24    conda-forge
vs2015_runtime            14.42.34433         hfef2bbc_24    conda-forge
wheel                     0.45.1             pyhd8ed1ab_1    conda-forge
xorg-libxau               1.0.12               h0e40799_0    conda-forge
xorg-libxdmcp             1.1.5                h0e40799_0    conda-forge
xz                        5.6.4                h4754444_1
zlib                      1.2.13               h2466b09_6    conda-forge
zstd                      1.5.6                h8880b57_0
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @furas
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Andre

79572560

Date: 2025-04-14 07:29:26
Score: 1.5
Natty:
Report link

For this, you need to implement the IAutoComplete2 interface. Ask chatgp for "Implements IAutoComplete2 in c#", you will get a basic implementation, and sample how to attach it to a winform textbox.

Now, all you need to provide ACO_NOPREFIXFILTERING flag, when creating your new autocomplete.

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

79572558

Date: 2025-04-14 07:27:26
Score: 1
Natty:
Report link

The problem was decimal type values.

They were exported with point and not comma

Conventing them to double, i resolved hte problem

Reasons:
  • Whitelisted phrase (-2): i resolved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: paolo130881

79572553

Date: 2025-04-14 07:25:24
Score: 6 🚩
Natty: 6.5
Report link

difflib.get_close_matches gives amazing results with high accuracy. do give it a try. But also does anyone know how to do this same process on golang?

Reasons:
  • RegEx Blacklisted phrase (2): does anyone know
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arul Prasad

79572548

Date: 2025-04-14 07:21:22
Score: 3.5
Natty:
Report link

Dear Team,

Please find below the Excel upload format I am using to update item texts for multiple purchase requisitions (PRs) in SAP. The file contains PR numbers, corresponding line item numbers, and the desired item text to be uploaded.

PR Number PR Item Number PR Item Text
3400001460 10 8 HOLES
3400001460 20 PMI TESTING
3400001460 30 HARDNESS TESTING
3400000875 10 MECHANICAL TESTING
3400000875 20 LADDLE ANALYSIS
3400000875 30 HARDNESS TEMPERATURE

I kindly request your support in providing a VBA macro that can:

This automation will help reduce manual efforts and ensure consistency in text updates.

Please let me know if you need any additional details or adjustments to the format.

Thank you for your support!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Surendra Bhilare

79572527

Date: 2025-04-14 07:10:19
Score: 1.5
Natty:
Report link

安装对应版本的devel,我是python3.11 我安装python3-devel不能解决问题,安装python311-dev可以解决问题了

yum install python311-devel
pip3 install uwsgi 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (0.5):
Posted by: user1232595

79572524

Date: 2025-04-14 07:05:18
Score: 1.5
Natty:
Report link

I tried accessing the pusher api key in my Next.js project like this

process.env.PUSHER_APP_KEY

but received the same error but when I replaced the value with the litral value it worked just fine but due to obvious security reasons this cannot be used like this. First doubt was that I might be making some kind of typo but it wasn't the case, the following helped me so replace the above snippet with the below

`${process.env.PUSHER_APP_KEY}`

This solved my issue I hope helps other facing the same issue. Happy coding.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: deepak mahto

79572519

Date: 2025-04-14 07:01:17
Score: 0.5
Natty:
Report link

I think you might be mixing up a few concepts.

When working with Convolutional Neural Networks (CNNs), the goal is typically to perform automatic feature extraction and model training directly from images. It's not like working with traditional models where you have predefined columns or features — in CNNs, those features are implicitly learned from the images themselves.

Regarding your question "whether to freeze the model or to extract until Dense(128...)," — it's quite common to include one or more dense layers after the convolutional and max pooling layers, before the final classification output. This is because connecting the convolutional outputs directly to the output layer would be too raw and inefficient. Dense layers help consolidate and interpret the extracted features before making the final prediction.

As for "whether to use a number of folds or if that's only for machine learning," — CNNs can also benefit from techniques like K-Fold cross-validation. In my case, I usually start with a small number of epochs and use something like a 5x10 K-Fold setup to get an initial idea of model performance. Based on that, I adjust hyperparameters and experiment with different fold sizes.

Also, if your dataset is large or training from scratch is too slow, you might want to try transfer learning — it can save a lot of time and resources.

Regarding dropout layers, they are definitely useful and commonly used to prevent overfitting by randomly deactivating neurons during training. However, if dropout is too aggressive (e.g., using very high dropout rates), it can prevent the network from learning effectively. So again, it comes down to experimentation — finding the right balance is key.

In the end, there’s no single “right” way to do this — trial and error, careful tuning, and adapting to your specific dataset and task is what usually leads to the best results.

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

79572504

Date: 2025-04-14 06:47:13
Score: 0.5
Natty:
Report link

Here's a quick solution without needing Lodash or other libraries:

function areObjectsEqual(a: any, b: any): boolean {
  return (
    JSON.stringify(a, Object.keys(a).sort()) ===
    JSON.stringify(b, Object.keys(b).sort())
  );
}

This can also handle nested objects and different order of properties.

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

79572492

Date: 2025-04-14 06:40:11
Score: 1.5
Natty:
Report link

In my original post, I omitted the fact that I was saving the URI to RoomDB between creating and trying to read from it. My custom URI TypeConverter for RoomDB was calling uri.path to convert it to a string, but the path attribute cuts off the URI scheme (thanks to @CommonsWare for pointing this out in the comments). After changing my TypeConverter to use uri.toString(), when I retrieve the value from RoomDB I get the complete URI including the content:// prefix indicating the scheme. From there, it's simple to create a bitmap from the retrieved uri using ImageDecoder and ContentResolver:

val bitmapSource = ImageDecoder.createSource(contentResolver, uriFromDb)
val bitmap = ImageDecoder.decodeBitmap(bitmapSource)
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @CommonsWare
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: theasianpianist

79572486

Date: 2025-04-14 06:37:10
Score: 1
Natty:
Report link

I had this issue only when working with Docker and Nestjs, above solutions didn't worked. This one eventually helped:

in package.json:

"pnpm": {
    "onlyBuiltDependencies": ["bcrypt"]
},

in Dockerfile:

RUN pnpm install
RUN pnpm rebuild bcrypt
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Michał Cesarczyk

79572481

Date: 2025-04-14 06:35:09
Score: 5
Natty: 4.5
Report link

Add exception for those urls in Avast :

https://repo.packagist.org/\*

https://api.github.com/\*

https://getcomposer.org/\*

https://packagist.org/\*

https://raw.githubusercontent.com/\*

https://codeload.github.com/\*

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

79572480

Date: 2025-04-14 06:33:09
Score: 1.5
Natty:
Report link

This question only comes up if multiplications and divisions are to be "optimised" by shifts. Since decades, this is done by the compiler, and never performance relevant; just obfuscates the program.

So if a number shall be divided by 8, the proper type should be used and the division written. If a certain number of bits has to be moved right, use an unsigned integer; the high order bits are irrelevant in this case.

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

79572478

Date: 2025-04-14 06:32:08
Score: 1.5
Natty:
Report link

Thanks to F. Hauri - Give Up GitHub comment above I just had to remove -tt

What -tt does:

Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services.

Multiple -t options force tty allocation, even if ssh has no local tty.

Reference

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

79572472

Date: 2025-04-14 06:30:07
Score: 4
Natty:
Report link

flood, flood, flood, flood, flood, flood, flood, flood, flood, flood

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

79572471

Date: 2025-04-14 06:30:07
Score: 1
Natty:
Report link

Add androidXBrowser = "1.8.0" in the android/build.gradle file under ext block

ext {
        ...
        androidXBrowser = "1.8.0"
    }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ali Abbas

79572461

Date: 2025-04-14 06:23:05
Score: 0.5
Natty:
Report link

Try working with this -- it handles all data types and uses recursion to go arbitrarily deep into complex JS object structures. I got tired of looking for something which wasn't either a bloated library or too simple to deploy easily. Wanted to guard against folks poking holes in my SQL (I do use parameterization, but...), logging, server code, whatever. You can easily change the regexes, etc. to fit your needs. Just wrote it this afternoon, so would appreciate feedback if there are things I overlooked.

function sanitizeVar(jsVar, options = {}) {

    const type = typeofComplete(jsVar)

    if (type == 'object') 
        Object.keys(jsVar).forEach(key => { jsVar[key] = sanitizeElement(jsVar[key])})

    else if (type == 'array')
        for (let idx = 0; idx < jsVar.length; idx++) { jsVar[idx] = sanitizeElement(jsVar[idx]) }

    else // string, boolean, number, bigint, null, undefined, function, symbol
        jsVar = sanitizeElement(jsVar) 

    return jsVar // return mutated value -- end of main function

    /*
        helper functions -- keep in this scope
    */
    function typeofComplete(jsVar) { // what the native JS typeof should do...

        return jsVar == null ? 'null' : Array.isArray(jsVar) ? 'array' : typeof jsVar
    }

    function sanitizeElement(val) {

        const type = typeofComplete(val)

        if (type == 'string') return sanitizeString(val)

        // return back up to sanitizeVar(); will likely recurse back here...
        else if (['object', 'array'].includes(type)) return sanitizeVar(val) 

        else if (['boolean', 'number', 'bigint', 'null', 'undefined'].includes(type)) 
            return val // these are safe as they are

        else if (['function', 'symbol'].includes(type)) return null // never in a client request
    }

    function sanitizeString(str) { // sanitizing crux; add regex and options as needed

        // DIAG to make sure it's working:  str = str.replace(/\d/g, 'X')

        return str.replace(/[^\x00-\x7F]/g, '')                 // remove non-ASCII chars
            .replace(/[\\|`"';<>]/g, '')                        // remove \ | ` " ' ; < >
            .substring(0, options.max_str_length || undefined)  // undefined => no limit
    }
}

I know the question is super-old, but I ran across it before I gave up looking for a more robust light-weight solution. Another idea is to pass regex(es) in as part of options object arg.

Reasons:
  • Blacklisted phrase (1.5): would appreciate
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: monist

79572459

Date: 2025-04-14 06:22:05
Score: 1
Natty:
Report link

In addition to @fepegar answer - you probably don't want to save the images as .jpg format, since .jpg is a lossy-compression type, which means it losses important information. You should save the images to a lossless compression file types, such as .pgm for a single channel image, .png for 3 channels image, or .tiff (using python's package tifffile) for any other number of channels - which is probably what you'd want in this case.

pip install tifffile

import tifffile as tiff
tiff.imwrite(file_path, image, dtype=np.float32)  # Save the image as a TIFF file as FP32
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @fepegar
  • Low reputation (1):
Posted by: Call Saul

79572458

Date: 2025-04-14 06:22:05
Score: 3
Natty:
Report link

I am going to share how did it help me. I also have spent two days just to find it was a small issue.

I have updated the profile name to the user name which was showing under git config ls (only username before @).

code pushed successfully.

Reasons:
  • Blacklisted phrase (1): help me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Poonam Jha

79572452

Date: 2025-04-14 06:17:03
Score: 0.5
Natty:
Report link

AFAIK, you cannot simulate a cancellation in Simulators. However, it's possible on a real device with a sanbox account. These steps are:

  1. Create a sanbox account in AppStoreConnect
  2. On your real device, login to this account by

Settings -> AppStore -> SANDBOX ACCOUNT

  1. When logged in, you're able to manage the account's subscription. i.e. purchase a transaction outside the app or cancel a subscription.

enter image description here

enter image description here

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

79572442

Date: 2025-04-14 06:12:01
Score: 1
Natty:
Report link

Ambulance service simulation is a critical tool used to enhance the efficiency and effectiveness of emergency medical services. In a fast-paced and densely populated city like Mumbai, simulation plays a vital role in preparing ambulance teams for real-life scenarios. By using advanced technology and training modules, Ambulance Service in Mumbai can simulate emergencies such as accidents, cardiac arrests, or mass casualty incidents to train staff in quick decision-making, patient care, and route optimization.

These simulations help identify potential challenges, test response times, and improve coordination between ambulance drivers, paramedics, and hospitals. As a result, they significantly enhance the overall quality and reliability of emergency care services in the city. With Mumbai’s complex traffic and varied infrastructure, simulation ensures that the ambulance services are well-prepared to save lives efficiently and swiftly.

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

79572441

Date: 2025-04-14 06:11:01
Score: 3.5
Natty:
Report link

If you can drop a code snippet, it'll be easier to see what's happening and help.

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

79572419

Date: 2025-04-14 05:58:57
Score: 0.5
Natty:
Report link

Complement based on @Saad Malik's answer,

Conclusion:

  1. Golang will load the CA certificate file and all certificates under the CA certificate directories as it's root CA certificates.
  2. The CA certificate file and directories have default values shown in below code snippets.
  3. CA certificate file can be overridden with environment variable SSL_CERT_FILE (the customized CA certificate file path)
  4. CA certificate directories can be overridden with system environment variable SSL_CERT_DIR (colon separated list of directories)

Source path: https://golang.org/src/crypto/x509/root_linux.go.

var certFiles = []string{

    "/etc/ssl/certs/ca-certificates.crt",                // Debian/Ubuntu/Gentoo etc.

    "/etc/pki/tls/certs/ca-bundle.crt",                  // Fedora/RHEL 6

    "/etc/ssl/ca-bundle.pem",                            // OpenSUSE

    "/etc/pki/tls/cacert.pem",                           // OpenELEC

    "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", // CentOS/RHEL 7

    "/etc/ssl/cert.pem",                                 // Alpine Linux

}


// Possible directories with certificate files; all will be read.

var certDirectories = []string{

    "/etc/ssl/certs",     // SLES10/SLES11, https://golang.org/issue/12139

    "/etc/pki/tls/certs", // Fedora/RHEL

}

Source Path: https://golang.org/src/crypto/x509/root_unix.go.

    // certFileEnv is the environment variable which identifies where to locate

    // the SSL certificate file. If set this overrides the system default.

    certFileEnv = "SSL_CERT_FILE"


    // certDirEnv is the environment variable which identifies which directory

    // to check for SSL certificate files. If set this overrides the system default.

    // It is a colon separated list of directories.

    // See https://www.openssl.org/docs/man1.0.2/man1/c_rehash.html.

    certDirEnv = "SSL_CERT_DIR"
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Saad
  • Low reputation (1):
Posted by: Guilin Liang

79572418

Date: 2025-04-14 05:57:56
Score: 9 🚩
Natty: 6
Report link

Facing this exact situation, did someone find the answer?

Reasons:
  • RegEx Blacklisted phrase (3): did someone find the answer
  • 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: user30264386

79572409

Date: 2025-04-14 05:52:55
Score: 2
Natty:
Report link

I found for Tomcat on Windows, the following worked.

If the Tomcat AppServer is configured as a Windows Service, you need to run the tomcatw.exe command and then enter the values in the fields as per below:

enter image description here

Restart Tomcat and check the Catalina log. You should see something like this:

enter image description here

If the Tomcat AppServer is NOT configured as a Windows Service, you need to create file setenv.bat in the Tomcat bin folder and add the following entries:

set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 -server -Xms512m -Xmx2g -Xss4m

You should see something like this in the catalina.log

enter image description here

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

79572407

Date: 2025-04-14 05:50:53
Score: 8 🚩
Natty: 5.5
Report link

I am having the same issue/error.

is the above answer works ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30264332

79572406

Date: 2025-04-14 05:49:53
Score: 3.5
Natty:
Report link

Please check your python version. it should be 3.9+

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

79572401

Date: 2025-04-14 05:45:52
Score: 1.5
Natty:
Report link

The following two commands (to restart Windows NAT driver) successfully get rid of this error.

  1. net stop winnat
  2. net start winnat

And whala, it is now working, again.

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

79572397

Date: 2025-04-14 05:41:50
Score: 0.5
Natty:
Report link

I also made a try : https://framagit.org/FBibonne/poc-java/-/tree/iso8859?ref_type=heads : this litle project tries to reproduce your context with the class ConfigRestClient which provides RestClients to retrieve Product entites (simplified version of your )

Then I made tests mocking a server which serves xml encoding with ISO-8859-1 : https://framagit.org/FBibonne/poc-java/-/blob/iso8859/src/test/java/poc/java/springrestclient/ConfigRestClientTest.java?ref_type=heads : each test configures a mock server to return xml, gets a ResClient from ConfigRestClient and calls retrieve with the RestClient as your method getStuff() does.

The different tests try to explain the problem and suggest a fix :

If you introduced such a RestClient in your application, you would only use it for the problematic endpoint thanks to @Qualifier adn/or @Primary.

I don't think the problem resides in Spring RestClient : in fact, it seems impossible to set up externally the encoding used by Jaxb unmarshalling : see Override declared encoding during unmarshalling with JAXB : the suggested solution is to process byte decoding outside jaxb to control encoding. I neither found in Jaxb a way to do it : jakarta.xml.bind.helpers.AbstractUnmarshallerImpl#setProperty does not support any property set (raise exceptions)

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): solution is
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Qualifier
  • User mentioned (0): @Primary
  • Low reputation (0.5):
Posted by: FBibonne

79572396

Date: 2025-04-14 05:40:50
Score: 2
Natty:
Report link

1 from random import *

2 import os

3 u_pwd =input("Enter a possword: ")

4 pwd=['a' , 'b' , 'c' , 'd' , 'e' ,'f' , 'g' , 'h' , 'i' , 'j' , '1' , '2' , '3' , '4' , '5' , '6']

5

6 pu=''

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

79572391

Date: 2025-04-14 05:30:47
Score: 0.5
Natty:
Report link

On click of your button you get the following errors in the console The invalid form control with name=‘building_budget’ is not focusable. The invalid form control with name=‘drainage_budget’ is not focusable.

The thing that is happening is that the input fields with building_budget and drainage_budget are required, but they have display: none.

To fix this either make them optional or show the fields. After that your submit should be working fine. Make sure to check the url that it is submitting to, as currently you dont seem to have escaped the <?php tag, leading to getting a post url that is different from the one you desire. If you are unsure of how to check these things, look up a guide on how to use the chrome/firefox (or any other browser youre using) inspector tools and console

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

79572387

Date: 2025-04-14 05:23:46
Score: 0.5
Natty:
Report link

An explaination of PrintWindowW

Right After this line in your code

compatible_dc.BitBlt((0, 0), (width, height), dc_object, (0, 0), win32con.SRCCOPY)

add

 ctypes.windll.user32.PrintWindow(hwnd, compatible_dc.GetSafeHdc(), 2)

instead of win32gui.GetClientRect(hwnd), use win32gui.GetWindowRect(hwnd)

This will cleanup the image that you are converting to a numpy array for OpenCV. As far as the offset, you're going to end up with a boarder around the window itself because of shadowing around the window that is actually part of the window as you can see there isn't any spacing along the top of the images below.

Before: Before

And after enter image description here

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

79572386

Date: 2025-04-14 05:21:45
Score: 2.5
Natty:
Report link

Bigtable now supports SQL GROUP BY with aggregation functions SUM, AVG, COUNT, MIN, MAX, HLL_COUNT.MERGE... and Continuous Materialized Views to calculate aggregations incrementally into materialized views.

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

79572385

Date: 2025-04-14 05:21:45
Score: 2.5
Natty:
Report link

This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free.

Got a question about the site itself? meta is the place to talk about things like what questions are appropriate, what tags we should use, etc.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mickys home

79572384

Date: 2025-04-14 05:20:45
Score: 2
Natty:
Report link
  1. Download the google-services.json file from Firebase.

  2. Close Android Studio.

  3. Restart your system.

  4. Open Android Studio.

  5. Copy and paste the google-services.json file to the following location:
    [Project Name]/android/app/google-services.json.

  6. Rebuild the project.

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

79572383

Date: 2025-04-14 05:19:45
Score: 3.5
Natty:
Report link

I got to realise that there were typos in my assembly code that was causing the tests to not compile. Thanks for the help.

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

79572378

Date: 2025-04-14 05:15:43
Score: 3.5
Natty:
Report link

check if there are any locks on the resource group of the app service. if there is delete it.

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

79572374

Date: 2025-04-14 05:06:41
Score: 1
Natty:
Report link

Make sure you escape all the $ that are part of the output document that aren't a variable. To escape / quote them you double up the $ so, $$

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

79572355

Date: 2025-04-14 04:41:36
Score: 1
Natty:
Report link

This document outlines the procedure for downgrading the Flutter plugin in Android Studio from version 85.0.4 to 85.0.3, including the configuration steps to prevent automatic updates.


✅ Step 1: Download the Target Plugin Version

  1. Navigate to the official JetBrains Plugin Repository.

  2. Locate version 85.0.3 of the Flutter plugin.

  3. Click Download to obtain the .zip archive of the plugin.


✅ Step 2: Install the Plugin from Disk

Follow the official JetBrains procedure to manually install the downloaded plugin:

  1. Open Android Studio.

  2. Press Ctrl + Alt + S (Windows/Linux)
    or go to:
    FileSettings (or Android StudioPreferences on macOS).

  3. In the Settings window, select Plugins.

  4. Click the ⚙️ gear icon in the top-right corner.

  5. Select Install Plugin from Disk….

  6. Locate and select the downloaded .zip file (e.g., flutter-intellij-85.0.3.zip) and click OK.

  7. Click OK to apply the changes.

  8. Restart Android Studio when prompted.

ℹ️ This is the official method provided by JetBrains for manual plugin installation.

Reference here: https://github.com/flutter/flutter-intellij/issues/8051

Reasons:
  • Blacklisted phrase (1): This document
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Estelson

79572351

Date: 2025-04-14 04:37:35
Score: 1.5
Natty:
Report link

This also works and skips the view creation

SELECT * INTO [REMOTEDB].[SCHEMA].[NEW_TABLE]
FROM OPENQUERY([REMOTESERVER],'SELECT * FROM [REMOTEDB].[SCHEMA].[TARGET_TABLE]');
GO
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Geoffrey McDonald

79572345

Date: 2025-04-14 04:33:34
Score: 1
Natty:
Report link

java-sqs-listener a lightweight, dependency-free library was developed for exactly, with a design that supports seamless future upgrades. Refer to java-sqs-listener-springboot-example for a demonstration of how to integrate the java-sqs-listener library within a Spring Boot application.

Disclaimer: I’m the author.

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

79572327

Date: 2025-04-14 04:00:27
Score: 1
Natty:
Report link

I would start by making sure that API.cs and program.cs are part of different projects. The way I open projects is I pin Visual Studio to the taskbar (you should pin both of your versions). Once you've opened the correct project right right-click on that version of Visual Studio in the taskbar and pin the project to the recent files list. Then all you have to do going forward is right-click on the appropriate version of Visual Studio and left-click on the desired project.

enter image description here

If you want to make your two versions of Visual Studio look vastly different you can customized their icons:
enter image description here

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

79572322

Date: 2025-04-14 03:57:25
Score: 4.5
Natty: 5
Report link

I am finding the above filter function prevents the cart from having shipping added for Express checkout type payment methods including Apple Pay. Has anyone else experienced this?

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

79572315

Date: 2025-04-14 03:46:22
Score: 10
Natty: 7
Report link

I am also facing same issue with intelliJ. Please let me know for evaulate Java8 Stream in IntelliJ?

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Haribabu

79572296

Date: 2025-04-14 03:24:16
Score: 2.5
Natty:
Report link

Fewest steps:

Step 1 - Select count(*)/2 as Limit1 from table1

Step 2 select variable1 from table1 order by variable limit Limit1

No brainer way to do it unless you have a truly large dataset or incredibly slow computing infrastructure.

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

79572295

Date: 2025-04-14 03:20:15
Score: 1.5
Natty:
Report link

I finally found the answer to new arch library in React Native. Please follow the link for more information.

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

79572283

Date: 2025-04-14 03:08:12
Score: 2.5
Natty:
Report link

I saw a post that help me to solve that problem,
Cucumber project build success but console Test run 0, Test skip 0

Basically, he did the next thing:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>3.0.0-M5</version>
    <dependencies>
      <dependency>
        <groupId>org.apache.maven.surefire</groupId>
        <artifactId>surefire-junit47</artifactId>
        <version>3.0.0-M5</version>
      </dependency>
    </dependencies>
  </plugin>
Reasons:
  • Blacklisted phrase (1): help me
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Diego-Santiago

79572278

Date: 2025-04-14 02:57:10
Score: 1.5
Natty:
Report link

This is an old thread, but this is what I use to go back:

REF1 = Request.ServerVariables("HTTP_REFERER")
    
RESPONSE.REDIRECT REF1
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Penguin

79572275

Date: 2025-04-14 02:54:09
Score: 3.5
Natty:
Report link

I recommend the book "Grokking Machine Learning" - everything is described there perfectly.
My repository for this book: https://github.com/cr00z/PythonMLBackup/tree/main/grokking_dl

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

79572274

Date: 2025-04-14 02:54:09
Score: 1
Natty:
Report link

Refer System.Text.Json.JsonSerializer instead of newton soft json serializer... Sorry Dinesh I had to repeat your answer as I couldn't upvote... But I tested it and it worked like a charm

class OTPData{ public string OTP {get;set} ....... }

var result = System.Text.Json.JsonSerializer.Deserialize<OTPData> 
(response.ToString());

string otp = result.OTP;
string username = result.UserName;
string type = result.type;
Reasons:
  • Blacklisted phrase (0.5): upvote
  • Blacklisted phrase (1): worked like a charm
  • Whitelisted phrase (-1): it worked
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kaustav Das

79572273

Date: 2025-04-14 02:54:09
Score: 1.5
Natty:
Report link

The async pipe unsubscribes automatically.

So do Signals and Effects.

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

79572272

Date: 2025-04-14 02:52:08
Score: 2
Natty:
Report link

Pandas 3.0 rolling will add support to first and last natively. However, as of writing of this answer this is still in dev branch:

https://pandas.pydata.org/docs/dev/reference/api/pandas.core.window.rolling.Rolling.last.html#pandas.core.window.rolling.Rolling.last

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

79572270

Date: 2025-04-14 02:41:07
Score: 2
Natty:
Report link

I asked copilot itself about an API interface to send prompts and get responses and it said it doesn't support that as it's intended for integration into IDEs. It also said "If you're looking for programmatic access to AI-powered code generation, you might want to explore OpenAI's GPT APIs or similar services, which are specifically designed for such use cases."

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

79572268

Date: 2025-04-14 02:37:06
Score: 0.5
Natty:
Report link

Compression comes in two flavors: lossy, and lossless. Lossy compression can take file sizes down significantly, but some data will be lost (hence the name). Lossless compression on the other hand keeps all original data intact, but usually can't take file sizes down as much.

Due to the nature of SVGs being vector-based[^1] XML-defined[^2] graphics, unless you manually optimize them you can't get much better compression than removing the whitespace and comments in the files (if any).

If you want to maintain acceptable visual quality and are ok with them being quite small, you can rasterize them into a PNG, for example. Online tools such as CloudConvert or command-line tools such as ImageMagick can help you with this.

tl;dr: unless you need to use SVGs, convert them into tiny raster graphics.


[^1]: i.e. the image is defined as a series of curves and shapes instead of pixels. This generally results in less information per image ∴ smaller file sizes.

[^2]: i.e. it's written in plaintext, which can't be compressed without overhead.

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

79572262

Date: 2025-04-14 02:21:02
Score: 3.5
Natty:
Report link

If you're asking what the default window color is, then its #F0F0F0

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

79572260

Date: 2025-04-14 02:07:59
Score: 3.5
Natty:
Report link

You are my hero. I just wanted you to know that this snippet works perfectly for me and is exactly what I needed. :)

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Laura Webster Lola

79572257

Date: 2025-04-14 02:05:59
Score: 2
Natty:
Report link

I encountered the same issue. I disabled the antivirus and restarted my Windows PC. After that, I was able to log in successfully using Chrome. There was no need to install any additional browser

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

79572254

Date: 2025-04-14 01:55:57
Score: 3
Natty:
Report link

This issue can be resolved by setting the following code
viewer.scene.logarithmicDepthBuffer = false;
This is the reference link

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

79572251

Date: 2025-04-14 01:52:56
Score: 2.5
Natty:
Report link

I was succeed!

In conclusion, this was done!

I tried again, noting that it might be interpreted as a non-member status. When selecting an account on the OAuth authorization screen, I had chosen the account with my email address, but instead of doing so, I chose my YouTube channel account created with the same email address. I did that and got a response without 403 forbidden.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: coeurl

79572248

Date: 2025-04-14 01:51:55
Score: 1
Natty:
Report link

So I just spent hours trying to figure this out... I was working with device emulation turned on in the dev console. The device I was using was even configured as desktop non-touch device. I was working on Edge, I will assume Chrome will behave the same way.

IF DEVICE EMULATION IS TURNED ON DRAGOVER EVENT WONT FIRE AND CURSOR WILL BE MARKED AS BLOCKED!

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

79572242

Date: 2025-04-14 01:44:53
Score: 1
Natty:
Report link

Fixed, for some reason the ios project was setup in "Release mode". I did the change in Xcode -> edit schemes enter image description here

Then In Run Section, The build configuration was in "release", did the change to "Debug". Close xcode enter image description here then in vscode, run again: npm start npm run ios After that, the app runs well again and able to send logs to debugger. And if someone don't know, I wasn't able to see the logs inmmediately, as I read before in some posts around internet about RN >= 0.77, it is necessary to have some third-party debugger, but i wanted to put it simple, just downloaded Chrome browser first, and then run the npm commands. In simulator, once the app is launched, press "j" key, to see the option "open dev tools", with that the chrome dev tools will open and you'll see the logs. I were about 4 days with this trouble,I hope these details can help others

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

79572241

Date: 2025-04-14 01:42:53
Score: 0.5
Natty:
Report link

You should enable "Depth Test".

So all you have to do is just to add one line.

viewer.scene.globe.depthTestAgainstTerrain = true;

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

79572238

Date: 2025-04-14 01:32:50
Score: 3.5
Natty:
Report link

I found out.. https://github.com/pallets-eco/cachelib/blob/9a4de4df1bce035d27c93a34608a8af4413d5b59/src/cachelib/file.py#L50 because of __wz_cache_count

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: webhack31333

79572235

Date: 2025-04-14 01:27:48
Score: 5
Natty: 4
Report link

You can try using onlyoffice(https://api.onlyoffice.com/docs/docs-api/get-started/frontend-frameworks/vue/)

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

79572230

Date: 2025-04-14 01:19:46
Score: 3
Natty:
Report link

Remove the aria-hidden="true" from the modal div. Line #68 of your index.html file.

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

79572219

Date: 2025-04-14 00:59:42
Score: 1.5
Natty:
Report link

Yeah you can ignore it It worked for me. i got this on tensor flow app.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: john cena

79572210

Date: 2025-04-14 00:47:38
Score: 3
Natty:
Report link

I received this error today. In my case, the ssh agent service was not running. After enabling, I was able to clone a repo with SSH.

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

79572204

Date: 2025-04-14 00:37:36
Score: 1.5
Natty:
Report link

Breaking @poke answer into some basic pieces for additional clarity:

current_frame = inspect.currentframe()
parent_frame = inspect.getouterframes(current_frame)[1].frame
parent_function_name = parent_frame.f_code.co_name
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @poke
  • Low reputation (0.5):
Posted by: DocOc

79572202

Date: 2025-04-14 00:35:36
Score: 0.5
Natty:
Report link

Facing similar SSL failure. exceptions with Docker python:3.13-alpine
and rabbitmq-amqp-python-client library.
Apparently, while building proton package, it rely on pkgconf / pkg-config.
So after adding packages, proton.SSL.present() again works

apk add --no-cache build-base pkgconf openssl openssl-dev
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergey Motyrev

79572196

Date: 2025-04-14 00:24:33
Score: 2.5
Natty:
Report link

Bonjour à chaque fois que j'essaie d'utiliser swiper avec react js ça ne fonctionne pas. Est ce que quelqu'un a une idée "swiper": "^11.2.6" Merci d'avance

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

79572191

Date: 2025-04-14 00:22:32
Score: 1.5
Natty:
Report link

Okay, we already have an accepted answer, but let me add a few thoughts on this as well.

First of all, it's important to understand that most features in any tool or technology are introduced to solve existing challenges. This includes everything from design changes to improvements in problem-solving.

But why version catalogs?

Well, when working on projects loaded with dependencies, keeping everything healthy and consistent is a real challenge. For example, imagine a project with multiple modules—say, 3 to 10—where each one uses a different set of dependencies. Some modules might even use the same dependency, but with different versions or from different repositories. Managing this mess and keeping everything up to date can quickly become a nightmare!

Having a centralized approach to manage all these artifact references and version strings in one place is like achieving peace on earth. I say this with confidence because I’ve faced many issues while working on large, real-world projects packed with dependencies.

And that’s it—in practical terms, version catalogs help us tackle this exact problem.

Of course, for simple projects that use very few dependencies—or for quick prototypes or throwaway projects—there’s no need to worry about using version catalogs. Sometimes we create projects just to test something, and maybe they don't even have any extra dependencies or plugins. In those cases, it’s totally fine not to use a catalog.

But as your project grows, you should really consider migrating your dependency strings to a catalog.

Also, remember that Gradle is used to build environments beyond Android. Kotlin and even C++ are well-supported by Gradle!

Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Lucas Sousa

79572189

Date: 2025-04-14 00:21:31
Score: 10
Natty: 7.5
Report link

None of the above worked for me. I have environment variables pointed to flutter bin folder. I have android APK support enabled. I have the new 2024 version of Android Studio and nothing I have tried is working. Can someone help me please?

Reasons:
  • Blacklisted phrase (1): help me
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (3): Can someone help me
  • RegEx Blacklisted phrase (2): help me please
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joseph

79572187

Date: 2025-04-14 00:10:29
Score: 1
Natty:
Report link

Each variable comes from a "context". config.toml file defines the config, frontmatter in _index.md files define section and frontmatter of every other markdown file defines a page context to be used in templates. When you are referring to a variable from a context, you should mention variable name along with the context it comes from separated with DOTs, like context.my_variable or context.extra.my_extra_variable if defined after [extra].

We are going to declare titles for different contexts, and none of them will overwrite each other.

config.toml

base_url = "https://murtezayesil.me/"
title = "Murteza Y"

config.title = Murteza Y

content/blog/_index.html

---
title = "Blog"
---
# Blog
Welcome to my corner of the internet.

section.title = Blog

content/blog/my-first-post.md

---
title = "Blogging in 2025?"
---
Of course.

page.title = Blogging in 2025?

template/index.html

{% set title = "Home" %}

{{ title }} = Home
{{ this.title }} = Home
this is a special context that refers to that file. It can be omitted. Since you didn't specify any context, Tera reasonably assumed that you were omitting this and looked for this.title.


This might be confusing early on. Luckily, Tera provides {{ __tera_context }} variable which prints out all defined variables in all known contexts. If that is hard to comb through, ShawnPConroy on Zola's Discourse Forum shared this script which organizes them.

In case of the issue you are having, here is a snippet from my theme:

<title>
  {% block window_title %}
    {% if page.title %}
      {{ page.title }} - 
    {% elif section.title %}
      {{ section.title }} - 
    {% endif %}
    {{ config.title }}
  {% endblock window_title %}
</title>

This means,
if page.title exists, print {{ page.title }} - {{ config.title }}
else if section.title exists, print {{ section.title }} - {{ config.title }}
otherwise, just {{ config.title }}

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

79572185

Date: 2025-04-14 00:08:28
Score: 2.5
Natty:
Report link

If node is installed which you can check by 'node -v' and ng is not recognized, Use this command

npm link @angular/cli

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

79572175

Date: 2025-04-13 23:53:25
Score: 1
Natty:
Report link

It looks like both do the same thing, at least in Java it does. Please see output below:

System.out.println("Stackover\rflow");
System.out.println("Stackover\nflow");

Result:

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

79572171

Date: 2025-04-13 23:46:22
Score: 6.5
Natty:
Report link

I am facing same issue , service is not able to connect to db after 15 minutes . I have added logic to generate toke every 14 minutes still no luck.

Reasons:
  • Blacklisted phrase (1): no luck
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am facing same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vidya Karthick

79572165

Date: 2025-04-13 23:32:19
Score: 4
Natty: 4
Report link

ITS WHEN THE CORRUPT FEDS ARE MONITORING YOUR COMPUTER ILLEGALLY THAT THESE THINGS OCCURT

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

79572163

Date: 2025-04-13 23:30:18
Score: 2
Natty:
Report link

or the same as REST API, using gcloud:

gcloud organizations list

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

79572159

Date: 2025-04-13 23:22:16
Score: 3.5
Natty:
Report link

removing object-cache.php worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: robert

79572149

Date: 2025-04-13 23:09:12
Score: 3.5
Natty:
Report link

If you use google colab with the runtime T4, you may face this issue many times. Try changing your runtime. It fixes all the versioning issues.

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

79572142

Date: 2025-04-13 22:53:08
Score: 1.5
Natty:
Report link

I've realized the solution here; after listing all permissions in the directory:

$ ls -l /etc/ssl/mongo/
-rw------- 1 root root  1234 Apr  9 22:00 mongodb.pem

You can see from above that the certificate isn't correctly allowed; yet the directory is. To quickly solve, just:

chmod 644 /etc/ssl/mongo/*.pem
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: DeveloLongScript

79572139

Date: 2025-04-13 22:44:06
Score: 4
Natty:
Report link

I know it sucks, it really does. A sunrise at 03:44 seems out of sync

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

79572130

Date: 2025-04-13 22:30:02
Score: 2.5
Natty:
Report link

I encountered a similar problem as well and just solved it. There are two different presentation options: Projects Presentation and Package Presentation. I was automatically going to the Projects Presentation and selecting Hierarchical or checking this option. To view the hierarchical structure in packages, I selected Package Presentation - Hierarchical, and then I was able to see a properly structured hierarchy.

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

79572119

Date: 2025-04-13 22:25:01
Score: 1.5
Natty:
Report link

Is your account's encoding set to UTF-8 ?

"More Options" at http://www.paypal.com/cgi-bin/websrc?cmd=_profile-language-encoding

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Preston PHX

79572117

Date: 2025-04-13 22:23:00
Score: 2.5
Natty:
Report link

pip install Flask-Reuploaded

try that i also tried it and worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ronald Kisitu

79572116

Date: 2025-04-13 22:19:59
Score: 1.5
Natty:
Report link

@alek has it right. Just to show as an example:

declare -Ar array1=( [5]=true [10]=true [15]=true )
declare -Ar array2=( [20]=true [25]=true [30]=true )
declare -A array_both

eval "array_both=( ${array1[*]@K} ${array2[*]@K} )"

for key in ${!array_both[@]}; do
    echo "array_both[${key}]=${array_both[${key}]}"
done

produces

$ bash /tmp/test.sh 
array_both[30]=true
array_both[5]=true
array_both[25]=true
array_both[20]=true
array_both[10]=true
array_both[15]=true

The single line and the eval are key to this. I did it on single steps (in an attempt to make it clear) and it produces some very odd results (all keys and no values)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @alek
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: GraemeV

79572108

Date: 2025-04-13 22:13:57
Score: 1.5
Natty:
Report link

Using switch statement, write a C# program that prompts the user to input a

student's name and mark. The program then evaluates the mark and displays the

corresponding grade based on the following criteria:

Excellent for marks 90 and above.

Very Good for marks between 80 and 89.

Good for marks between 70 and 79.

Average for marks between 60 and 69.

Passed for marks between 50 and 59.

Failed for marks below 50.

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

79572106

Date: 2025-04-13 22:11:56
Score: 4
Natty:
Report link

You can try to use my @longpress event that wraps JS library for this purpose:
https://github.com/Kebechet/Blazor.EventHandlers.LongPress

https://www.nuget.org/packages/Kebechet.Blazor.EventHandlers.LongPress

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @longpress
  • High reputation (-1):
Posted by: Kebechet

79572102

Date: 2025-04-13 22:08:55
Score: 0.5
Natty:
Report link

After some research I found several solutions to this problem:

  1. Use gradle plugins like fat-aar, however most of them are currently (07.2024) unsupported or don't give the necessary flexibility
  2. Make each module of the application a part of one big library
  3. Gradle Composite Builds but it was very slow and forced us to have all the source code (of the projects) locally, so we abandoned this option

As a prod solution, option 2 was preferred, because it would allow us to connect individual functions without depending on other unnecessary ones


For this purpose, I wrote a small plugin for publishing in buildSrc

plugins {
    `maven-publish`
}

afterEvaluate {
    publishing {
        publications {
            register<MavenPublication>("release") {
                from(components.findByName("release"))

                groupId = project.hierarchy.concatGroup()
                artifactId = project.name
                version = libs.versions.versionName.get()
            }
        }
        repositories {
            maven("...") {
                credentials {
                    username = getLocalProperty("MAVEN_USERNAME")
                    password = getLocalProperty("MAVEN_PASSWORD")
                }
            }
        }
    }
}

And some utils in buildSrc

val Project.hierarchy get(): List<Project> =
    generateSequence(this, Project::getParent).toList().reversed()

fun List<Project>.concatGroup(): String {
    return dropLast(1).joinToString(".") { it.name }
}

Thus, we get the name of the dependencies in the repository the same as the name of the modules tree of your project

And don't forget to connect your maven repository to the gradle project

Then you can connect this plugin to the modules you want to put into the repository (or another plugin as in my case)

plugins {
    id("com.android.library")
    kotlin("android")
    /* ... */
    id("publishing-plugin")
}

After that, you can call the publishAndroidReleasePublicationToMavenRepository or publishReleasePublicationToMavenRepository task, depending on the configuration of your project (KMP or Android).

After that, all modules to which the plugin has been applied will be uploaded to the specified maven repository.


The client can then download any module as a dependency, and that in turn will download all other modules required for correct work

your-app-feature = { group = "YourProject.features.feature", name = "feature", version.ref = "your-proj-version" }

Advantages:

Minuses:


upd:

After a year from the previously found solution.

I Found an article on a Russian resource on this topic using a more modern version of the fat-aar solution - Grease

It may be worth considering switching to such a solution

Reasons:
  • Blacklisted phrase (1): this plugin
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: qveex

79572098

Date: 2025-04-13 21:57:53
Score: 1.5
Natty:
Report link

Yesterday I spent the whole day trying to fix this error. Today, I deleted Crashlytics from the Runner's Build Phases, and finally, my app built successfully. Hope this helps someone!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Manuel Vivanco

79572095

Date: 2025-04-13 21:55:52
Score: 1
Natty:
Report link

Your keys shouldn't be readable by everyone on your system.
Your problem should be that Mosquitto switches to a different user.

Your mosquitto.conf omits user, which defaults to the user "mosquitto".
Either ensure the certificate files can be read by that user, or configure to use a different user 👍

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

79572094

Date: 2025-04-13 21:53:51
Score: 1.5
Natty:
Report link

This adds nuance to the other answers:

d = {}.fromkeys(s,0)

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

79572091

Date: 2025-04-13 21:48:50
Score: 1.5
Natty:
Report link

Have you tried disabling the usb hub/root device?

I'm on Arch Linux using the Linux Editor obviously.
And I had a similar issue.
I have a faulty USB hub that I use, it is mostly ok 90% of the time.
But it does this stupid thing where it like tries to detect weather you plugged something into it and show you an indicator light.
Which that feature didn't work right from the get go.
Point being turning it off fixed it for me.
Thanks, you gave me a clue as to what was wrong!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): Have you tried
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Rafael López

79572081

Date: 2025-04-13 21:39:48
Score: 3.5
Natty:
Report link

Love and sympathy and confidence. It is a place where kindly affections exist among all the members of the family

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

79572075

Date: 2025-04-13 21:34:46
Score: 3
Natty:
Report link

My problem was I had to run

ng build --configuration production

With this action I could publish my project! Thank you everyone for your help!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Fabian Rico

79572067

Date: 2025-04-13 21:25:43
Score: 1.5
Natty:
Report link

Do view Binding and databinding both true for this, and check this again.

android {
buildFeatures {
     dataBinding = true
     viewBinding = true
}
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ali Hamza

79572051

Date: 2025-04-13 21:11:39
Score: 4
Natty: 6
Report link

Niczem Olaske how would I grab an access key from duck duck go maps page? Please and thank you.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: x x

79572048

Date: 2025-04-13 21:08:38
Score: 1
Natty:
Report link

If you're sending information over the internet, get yourself a free SSL cert from browser-approved Let's Encrypt. There's no excuse not to be at least this secure in 2025.

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