StackOverflow.com

VN:F [1.9.22_1171]
Rating: 9.2/10 (11 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

Why CMake failed to find krb5 while g++ succeed?

28 October 2025 @ 3:23 am

I have already install the package "krb5-devel" on my AlmaLinux. The head-files is located at /usr/include and the lib-files /usr/lib64. $ sudo dnf install krb5-devel Last metadata expiration check: 3:13:07 ago on Tue 28 Oct 2025 07:34:14 AM CST. Package krb5-devel-1.18.2-32.el8_10.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! $ find /usr/include /usr/local/include -name krb5.h /usr/include/krb5/krb5.h /usr/include/krb5.h $ find /usr/lib64 -name "*krb5*" /usr/lib64/libgssapi_krb5.so.2 /usr/lib64/pkgconfig/krb5-gssapi.pc /usr/lib64/pkgconfig/krb5.pc /usr/lib64/pkgconfig/mit-krb5-gssapi.pc /usr/lib64/pkgconfig/mit-krb5.pc /usr/lib64/sssd/modules/sssd_krb5_localauth_plugin.so /usr/lib64/sssd/modules/sssd_krb5_idp_plugin.so /usr/lib64/sssd/libsss_krb5_common.so /usr/lib64/sssd/libsss_krb5.so /usr/lib64/krb5 /usr

How to customize the scrollbar of a pseudo-element?

28 October 2025 @ 3:17 am

Is it possible to customize the scrollbar of a pseudo-element with css? I have tried using: *::-webkit-scrollbar { background-color: transparent; height: 13px; } ::-webkit-scrollbar-thumb { border: 2px solid rgba(111, 70, 24, 0.471); border-radius: 16px; } ::-webkit-scrollbar-thumb:hover { border: 4px solid rgba(111, 70, 24, 0.471); } and it doesn't seem to affect the pseudo-elements.

How to filter data into another spreadsheet based on two values in the same column in google sheets

28 October 2025 @ 3:12 am

I'm making a book spreadsheet where I'd like formats to filter into a spreadsheet for physical books (Hardcover and paperback) and another for Digital books (ebooks and audiobooks). I can only seem to filter the items based on one not both. =FILTER('Master TBR'!B5:N1000,'Master TBR'!G5:G1000="Ebook") Can anyone help to get the filter to filter both ebook and audiobook into the same spreadsheet?

Soneium (OP-Stack L2): Why is the gas price floored at 0.001 gwei even though the explorer shows much lower values?

28 October 2025 @ 3:01 am

I am working with Soneium Mainnet (Sony’s OP-Stack Layer 2, RPC: https://rpc.mainnet.soneium.org). When I query the current gas price with Web3.py/Ethers.js I always get ≥ 0.001 gwei: from web3 import Web3 w3 = Web3(Web3.HTTPProvider('https://rpc.mainnet.soneium.org')) print(w3.from_wei(w3.eth.gas_price, 'gwei')) # → 0.001 (or slightly higher) However, on the official explorer (BlockScout) many transactions display Gas Price = 0.000… gwei (sometimes as low as 1e-9 gwei) and the total fee is only a few cents. Is 0.001 gwei a hard-coded minimum gas-price floor in the Soneium op-node?

What does the "only diagonals can be replaced" error in netmeta mean?

28 October 2025 @ 3:00 am

I've fit a network meta-analysis using netmeta and now doing a meta-regression using the netmetareg function that is a wrapper function from rma.mv in the metafor package. Here's the df: library(netmeta) data(df_vol) head(df_vol) # A tibble: 6 × 6 id treat_1 treat_2 g se_g sets_total <dbl> <chr> <chr> <dbl> <dbl> <dbl> 1 1 control placebo 0.0307 0.241 2 2 1 maltodextrin cont

How to resize html component on Flutter fetched from Instagram oEmbed api

28 October 2025 @ 3:00 am

I'm facing issue with Instagram oEmbed api on flutter. I sucessfully fetched html to embed content on my flutter web using instagram oembed api and was able to display it. But issue is that I can't resize the view of embed post. Please enlighten me what I'm missing here. ps. I've checked official document as much as I can but had no luck of finding much information other than how to fetch json data for embed post. enter image description here _fetchDebugOembed run oEmbed api and get json for embed instagram post. Future<void> _fetchDebugOembed() async { // debug setState(() { // debug _isFetchingDebug = true; // debug }); // debug try { // debug final url = 'https://graph.facebook.com/v24.0/instagram_oembed?url=${Uri.encodeComponent(_debugIgmUrl)}&maxwidth=360&access_token=${Uri.encodeComponent(_debugAccessToken)}&omitscript=true'; // debug final resp = await http.get(Uri.parse(url)); // de

Spring boot Handling AWS Secrets Manager rotation handling to connect to AWS DocumentDB

28 October 2025 @ 2:57 am

I have a spring boot application deployed on ECS running on 2 tasks, It is fetching username and password from AWS Secrets Manager using AWS SDK and connecting to AWS DocumentDB using spring data mongo. After secret rotation my application is running successfully for some requets and then getting authentication issue. Can I refresh my connection without restarting ECS without using any AWS Native solutions like EVentBridge. Here is my connection code public MongoClient mongoClient() { try { KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); try (InputStream tsInputStream = trustStore.getInputStream()) { keyStore.load(tsInputStream, trustStorePassword.toCharArray()); } TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); trustManagerFactory.init(keyStore); SSLContext sslContext = SSLContext.getIn

How to deploy application developed using Laravel 12, Livewire 3 and MySQL on cPanel or Shared Hosting Server? [closed]

28 October 2025 @ 2:54 am

I wanted to deploy an application developed using Laravel 12, Livewire 3 and MySQL on cPanel / Shared hosting server. I have tried but there are some issues with Livewire 3. Livewire.js not found after deployed.

In hmmlearn, how are state predictions made by predict() different from probabilities returned by precit_proba()?

28 October 2025 @ 2:41 am

I have simple 2-state system. I am trying to get the state probabilities for each time point with model.predict_proba(). I expected this to correspond to the states decided by model.predict() but the probabilities don't agree with the state predictions. There are a lot of time points where p<0.5 but state=1 and vice versa. Probability of being in the state other than the one assigned by predict() goes as high as 90% sometimes. enter image description here From the documentation: predict(X, lengths=None) Find most likely state sequence corresponding to X. predict_proba(X, lengths=None) Compute the posterior probability for each state in the model. Why isn't the state with the highest posterior probability the state reported by predict()?

How to close a round object opening border to be filled later?

28 October 2025 @ 2:08 am

I wanted to close the border of object. Some of the object could be rectangles too. I already tried using dilation and closing with 2 iteration but it seems the border isn't completely close. Here is my output, i put every step that i did here. The image here is resized the actual size in px of each frame should be 2560x1440 but i resized it too 800 with the same scaling debug_view Here is the code i use, its simple def extra_process(img): sm = cv2.bilateralFilter(img, d=9, sigmaColor=75, sigmaSpace=75) lab = cv2.cvtColor(sm, cv2.COLOR_BGR2LAB) l, a, b = cv2.split(lab) clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8)) l_clahe = clahe.apply(l) lab_cl = cv2.merge((l_clahe, a, b)) return cv2.cvtColor(lab_cl, cv2.COLOR_LAB2BGR) def process_pipeline(img): enhanced = extra_process(img) gray = cv2.cvtColor(enhanced, cv2.COLOR_BGR2GRAY) blur = cv2.Gaus