79602988

Date: 2025-05-02 07:51:29
Score: 1.5
Natty:
Report link

For Inspiration:
This is a simple proof of concept to find the minimal number of sets to cover these 3-number-sequences using Cartesian product blocks.

It checks all possible subsets of the input to identify those that form complete Cartesian blocks, then recursively searches for minimal sets of such blocks that cover the entire input.

The approach is brute-force and not optimized:

from itertools import combinations, product
from collections import defaultdict

input_combinations = {
    (1, 3, 5),
    (1, 4, 5),
    (1, 8, 5),
    (2, 4, 5),
    (3, 4, 5),
    (2, 4, 7)
}

# Check if a set of tuples forms a Cartesian product
def is_cartesian_block(subset):
    zipped = list(zip(*subset))
    candidate = tuple(set(z) for z in zipped)
    generated = set(product(*candidate))
    return generated == set(subset), candidate

# Find all possible Cartesian blocks within a set of combinations
def find_all_blocks(combos):
    all_blocks = []
    combos = list(combos)
    for r in range(1, len(combos)+1):
        for subset in combinations(combos, r):
            ok, block = is_cartesian_block(subset)
            if ok:
                all_blocks.append((block, set(subset)))
    return all_blocks

# Recursive search for all minimal covers
def search(combos, blocks, current=[], results=[]):
    if not combos:
        normalized = frozenset(frozenset(map(frozenset, block)) for block in current)
        if not results or len(current) < len(results[0][0]):
            results.clear()
            results.append((current, normalized))
        elif len(current) == len(results[0][0]):
            if normalized not in {n for _, n in results}:
                results.append((current, normalized))
        return
    for block, covered in blocks:
        if covered <= combos:
            search(combos - covered, blocks, current + [block], results)

def find_all_minimal_decompositions(input_combinations):
    all_blocks = find_all_blocks(input_combinations)
    results = []
    search(set(input_combinations), all_blocks, [], results)
    return [sol for sol, _ in results]


solutions = find_all_minimal_decompositions(input_combinations)

for i, sol in enumerate(solutions, 1):
    print(f"Solution {i}:")
    for row in sol:
        print(f"  {row}")

Output:
What was/is your use case?

Solution 1:
  ({2}, {4}, {7})
  ({2, 3}, {4}, {5})
  ({1}, {8, 3, 4}, {5})
Solution 2:
  ({2}, {4}, {7})
  ({1}, {8, 3}, {5})
  ({1, 2, 3}, {4}, {5})
Solution 3:
  ({3}, {4}, {5})
  ({2}, {4}, {5, 7})
  ({1}, {8, 3, 4}, {5})
Solution 4:
  ({2}, {4}, {5, 7})
  ({1}, {8, 3}, {5})
  ({1, 3}, {4}, {5})
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (0.5):
Posted by: Anonymous

79602982

Date: 2025-05-02 07:47:28
Score: 0.5
Natty:
Report link
  1. Install your Pro kit with your package manager

  2. Create a Nuxt plugin under (plugin/fontawesome.client.ts/js)

  3. Add fontawesome css to nuxt.config.ts

Plugin

import { defineNuxtPlugin } from 'nuxt/app'
import { library, config } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { fas } from '@awesome.me/your-kit/icons'
import { far } from '@awesome.me/your-kit/icons'
import { fal } from '@awesome.me/your-kit/icons'
import { fak } from '@awesome.me/your-kit/icons'

// This is important, we are going to let Nuxt worry about the CSS
config.autoAddCss = false

// You can add your icons directly in this plugin. See other examples for how you
// can add other styles or just individual icons.
library.add(fas,far,fal,fak)

export default defineNuxtPlugin(nuxtApp => {
    nuxtApp.vueApp.component('icon', FontAwesomeIcon)
})

**
Nuxt.config.ts**

export default defineNuxtConfig({
    compatibilityDate: '2024-11-01',
    devtools: {
        enabled: true,

        timeline: {
            enabled: true
        }
    },
    css: [
        '/assets/css/main.css',
        '@fortawesome/fontawesome-svg-core/styles.css'
    ]
})

**
How to use**

<icon :icon="['fas', 'house']" />
<icon :icon="['far', 'house']" />
<icon :icon="['fal', 'house']" />
<icon :icon="['fak', 'custom-icon-name']" />
Reasons:
  • Blacklisted phrase (1): this plugin
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RadB

79602975

Date: 2025-05-02 07:42:26
Score: 1.5
Natty:
Report link

Kasus penggunaan Anda sangat menarik dan cukup kompleks dari segi efisiensi penyimpanan dan kebutuhan akses dua arah (label → nilai dan nilai → label). Anda sudah berada di jalur yang sangat baik dengan pertimbangan penggunaan RocksDB dan transformasi representasi label. Saya akan menjawab pertanyaan Anda satu per satu secara terperinci:


1. Apakah RocksDB mendukung kompresi awalan kunci?

Ya, RocksDB mendukung kompresi awalan kunci (prefix compression) secara eksplisit melalui konfigurasi block-based table format. Mekanisme ini sangat berguna jika kunci-kunci Anda memiliki awalan yang panjang dan berulang seperti dalam kasus label hierarkis.

➡️ Rekomendasi: Simpan kunci label dalam bentuk string UTF-8 yang diurutkan leksikografis, dan manfaatkan prefix compression bawaan RocksDB.


2. Apakah RocksDB mendukung representasi efisien untuk referensi silang antar kolom?

RocksDB tidak mendukung secara langsung relasi antar kolom dalam satu database layaknya RDBMS (tidak ada foreign key atau join). Tapi:

➡️ Rekomendasi: Jika efisiensi penyimpanan jadi perhatian besar, maka duplikasi label panjang di column family berbeda tidak efisien. Gunakan teknik de-referencing seperti yang Anda jelaskan di poin 3.


3. Apakah menggunakan ordinal path-segment (ID numerik untuk segmen jalur) lebih efisien secara penyimpanan?

Ya, secara signifikan. Pendekatan menggantikan segmen jalur string dengan ID numerik kecil memiliki potensi manfaat besar dalam efisiensi ruang, terutama karena:

Untuk implementasinya:

➡️ Estimasi efisiensi:


Kesimpulan dan Rekomendasi:

  1. Gunakan prefix compression RocksDB – sangat sesuai dengan karakteristik label Anda.

  2. Untuk kebutuhan dua arah (label ↔ nilai), duplikasi string tidak efisien. Sebaiknya gunakan representasi indirected (ordinal/ID).

  3. Pendekatan segment ID sangat layak dan bisa membawa efisiensi besar dalam penyimpanan dan pencarian – dengan overhead yang bisa dikelola melalui transactional batch.

  4. Pertimbangkan untuk membuat tool internal seperti dictionary segment store + encoder/decoder jalur sebagai lapisan abstraksi di atas RocksDB.

Apakah Anda juga ingin contoh kode bagaimana menyimpan dan meng-encode label menjadi segmen ID di RocksDB dengan transaksi?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: giri pamungkas

79602967

Date: 2025-05-02 07:35:24
Score: 0.5
Natty:
Report link

This is likely happening because the zendframework/zend-mail package is no longer installed or has been replaced by Laminas in newer Magento versions.

Magento 2 moved from Zend to Laminas

Replace Zend\Mail\Message with Laminas\Mail\Message in your code

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

79602963

Date: 2025-05-02 07:34:24
Score: 2.5
Natty:
Report link

I have implemented all the steps for universal link to work, the deep link opens up the app from other apps in the device but when we try to open the app from browser it shows cannot get/ error.apple has added our AASA to its cdn.

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

79602958

Date: 2025-05-02 07:26:21
Score: 0.5
Natty:
Report link

Hei,

QoS AtMostOnce is meant such that each device subscribed will get the message AtMostOnce. Ultimately, since multiple devices are subscribed, multiple devices will receive the message.

If you want to achieve similar functionality than SQS, you would need to use AtLastOnce QoS, and handle the delivery logic on your own. E.g., let each connected device have their own downstream MQTT topic, and then using a lambda function iteratively try to publish the packet on the next available topic/thing until it passes (i.e. until it receives a PUBACK). In that case, the clients would have to use CleanSession = True when they reconnect.

However I'm not sure if it's the most ideal use of AWS IoT core.

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

79602944

Date: 2025-05-02 07:14:19
Score: 2.5
Natty:
Report link

For me it was straight,

I deleted the file and returned back (back CTRL+Z) and the error is gone.

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

79602942

Date: 2025-05-02 07:12:18
Score: 2
Natty:
Report link
You just have remove if you are using APIView:
if request=='GET':
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ameer Mukhar

79602940

Date: 2025-05-02 07:07:16
Score: 3.5
Natty:
Report link

in my case i got this exception when data contain '/' or '_'

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

79602938

Date: 2025-05-02 07:06:16
Score: 3
Natty:
Report link

The web search tool isn't currently available in the API for o3 and o4-mini.

Apparently, they accidentally enabled it when the models launched and it was available for 2 weeks.

I used it while it was available and OpenAI sent me an email to notify me that they would be disabling it on April 30th: enter image description here

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

79602935

Date: 2025-05-02 07:01:15
Score: 3
Natty:
Report link

This issue happen when I run emulator without play service supported device and I delete the device then create new emulator with play service its works

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hari A.R

79602932

Date: 2025-05-02 07:00:14
Score: 2.5
Natty:
Report link

@codemirror/basic-setup has been renamed to just codemirror

try npm install codemirror

source: https://discuss.codemirror.net/t/codemirror-6-0-has-been-released/4498

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

79602926

Date: 2025-05-02 06:57:13
Score: 1
Natty:
Report link

You can call this procedure from your application code where needed

delimiter //

create procedure insert_customer(IN a INT)
begin
    insert into customer (id) values (a);
end //

delimiter ;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Suparva Aggarwal

79602925

Date: 2025-05-02 06:57:13
Score: 2
Natty:
Report link

I think rather than passing style prop you should use contentContainerStyle that should do the trick

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

79602922

Date: 2025-05-02 06:55:13
Score: 2.5
Natty:
Report link

I've reviewed the issue you've encountered, and here are some key points to help resolve it clearly and effectively:

Why are you seeing errors?

The execution errors you're experiencing (40% failure rate) typically occur for these reasons in Gmail scripts within Google Apps Script:

Corrections for your script:

Your logic is mostly correct, but some critical corrections are needed:

  1. Adjusting the Gmail search criteria
    Currently, you're using:
var threads = GmailApp.search('is:inbox after:' + timeFrom);

The after: parameter in GmailApp searches expects a date formatted as YYYY/MM/DD, not a timestamp in seconds.

You should instead use:

var dateFrom = new Date(date.getTime() - (1000 * 60 * interval));
var formattedDate = Utilities.formatDate(dateFrom, "GMT", "yyyy/MM/dd");
var threads = GmailApp.search('is:inbox is:unread after:' + formattedDate);

2. Marking as read and important
This step is optional, but fine if you wish to keep it.

Corrected Full Script:

Here is the corrected script incorporating these changes:

function autoReply() {
  var interval = 5; // Script execution interval in minutes
  var date = new Date();
  var day = date.getDay();
  var hour = date.getHours();
  
  if ([6, 0].indexOf(day) > -1 || (day == 1 && hour < 8) || (day == 5 && hour >= 17)) {
    var dateFrom = new Date(date.getTime() - (1000 * 60 * interval));
    var formattedDate = Utilities.formatDate(dateFrom, "GMT", "yyyy/MM/dd");
    var threads = GmailApp.search('is:inbox is:unread after:' + formattedDate);
    
    for (var i = 0; i < threads.length; i++) {
      threads[i].reply("Our offices are closed for the weekend. If this is an urgent request (i.e., fallen tree on structure or impending traffic), please forward your message to [email protected] and our team will get back to you as soon as possible. If the request is not urgent, we will respond when our business reopens. Thank you!");
      threads[i].markRead();
      threads[i].markImportant();
    }
  }
}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2): urgent
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Luilly Barrantes

79602921

Date: 2025-05-02 06:53:12
Score: 1
Natty:
Report link

The "zoom in" command shortcut is Ctrl-=, so yes, the keyboard quirk is probably behind it.

The fix is to hit Ctrl-- (minus) a few times.

The zoom commands

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

79602918

Date: 2025-05-02 06:51:11
Score: 2.5
Natty:
Report link

The bandwidth is main limitation. Can do a work around like connecting the cameras into a USB3.2 hub, the host would be fallback to USB2.0 since the devices are USB2.0 type. Let give this a try.

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

79602917

Date: 2025-05-02 06:51:11
Score: 2
Natty:
Report link

System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. inD:\FINALPROJECT\DADC\DADS_orginial_live\Registration\frmRegistration.aspx.cs:line 725 at Registration.frmRegistration.btnEmailOTP_Click(Object sender, EventArgs e) in D:\FINALPROJECT\DADC\DADS_orginial_live\Registration\frmRegistration.aspx.cs:line 677

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

79602911

Date: 2025-05-02 06:42:09
Score: 1.5
Natty:
Report link

Obviously Typescript is very case sensitive and I was able to solve it by changing the name of the interface property to adresse_nr and then the interface output and get method were the same.

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

79602908

Date: 2025-05-02 06:39:08
Score: 1
Natty:
Report link

I believe there's a typo in this header:

x-amzn-access-token: ...

It should be

x-amz-access-token: ...
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: cebola

79602907

Date: 2025-05-02 06:37:08
Score: 2
Natty:
Report link

SQLite will auto-increment the primary key if it's declared as INTEGER PRIMARY KEY, even without the keyword AUTOINCREMENT.

References:

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

79602906

Date: 2025-05-02 06:36:08
Score: 0.5
Natty:
Report link

This happened to me while running flutter build ipa via the remote ssh command line. I ran the same command inside the remote desktop session command line and build went through fine with code signing.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Baz Guvenkaya

79602905

Date: 2025-05-02 06:35:07
Score: 1.5
Natty:
Report link

So the thing is flutter inspector does not navigate to code if you project path contains a folder name which has spaces

for an example :
Initially my folder was located at /Users/USER/Desktop/MY PROJECTS/MOB_DEMO

MY PROJECTS this name has space init , so if change it to MY_PROJECTS, it will resolve the issue of not navigating to the code /Users/USER/Desktop/MY_PROJECTS/MOB_DEMO

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

79602899

Date: 2025-05-02 06:26:04
Score: 5
Natty:
Report link

There's a stackoverflow article on this. It solves this by using default build tasks. Here's the link: Configure VS Code default Build Task based on file extension

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: K. S. Ashen De Silva

79602897

Date: 2025-05-02 06:24:04
Score: 1
Natty:
Report link

const options = [ "bold", "italic", "underline", "|", "font", "fontsize", "brush", "|", "ul", "ol", "lineHeight", "|", "image", "table", "hr", "|", "align", "undo", "redo", "|", "preview", "print", ]; const config = { readonly: false, uploader: { insertImageAsBase64URI: true, }, buttons: options, buttonsMD: options, buttonsSM: options, buttonsXS: options, sizeLG: 900, sizeMD: 700, sizeSM: 400, height: 600, style: { position: "static", minHeight: "600px" }, defaultLineHeight: 1.2, controls: { lineHeight: { list: [0.5], }, }, };

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

79602895

Date: 2025-05-02 06:21:03
Score: 1
Natty:
Report link

I was trying to look at natvis for my own uses. I am running on 17.13.6 in the same workload (winrt/winui3 native desktop). I notice natvis files were being loaded from somewhere on my system that didn't seem to line up with other things. Also, I see no indication that any natvis files included in my solution are even seen much loaded. I took a cursory look at some of the files being loaded and I think I saw some external code extensions to the debugger were supposed to be invoked but reported an error. I also got the feeling that they were trying to break through the COM system to get to the underlying data. It all became more complicated than I could deal with since there's no source or symbols. Sadly, it means that I can't see ANY of my underlying data for some reason. Everything seems to stop at an IUknown or IIinspectable with no further drill down to see the data. So my conclusion is that natvis is a great idea that's been poorly implemented for the WinRT or WinUI platform. Reminds me that what the user calls bugs, Microsoft calls a feature and when they fix the bug, it's an upgrade that'll cost you an upgrade fee. You'd think after 17 versions of VS they'd have stuff working acceptably. I mean Windows has become more stable (sort of) after only 11 versions (and I remember being excited when Win3.1 was released).

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

79602889

Date: 2025-05-02 06:14:01
Score: 6 🚩
Natty:
Report link

Why is req.cookies.token showing up as undefined in my /users/current route, even though I'm sending credentials and setting cookies?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Why is
  • Low reputation (1):
Posted by: manishpargai

79602886

Date: 2025-05-02 06:08:00
Score: 0.5
Natty:
Report link

Struggled with this for hours as a beginner, the issue i had was when I tried this command:

where python

It showed me that there were two instances of python

C:\Users\%username%\AppData\Local\Programs\Python\Python313\python.exe
C:\Users\%username%\AppData\Local\Microsoft\WindowsApps\python.exe

So I went and deleted the first python instance through the windows delete program function, deleted python from PATH as per this guide: https://answers.microsoft.com/en-us/windows/forum/all/how-to-remove-python-from-path/727a29e4-ff66-499f-b282-50b631958cb8

And then deleted the second instance following these commands through the cmd:

cd C:\Users\%username%\AppData\Local\Microsoft\WindowsApps
del python.exe
del python3.exe

Then I went installed a new instance of python through the official website, installed pygame through:

pip install pygame

And everything worked.

Might be a simple solution but I struggled with this for hours, hope this helps at least someone.

Reasons:
  • Blacklisted phrase (1): this guide
  • Whitelisted phrase (-1): hope this helps
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: daanos

79602878

Date: 2025-05-02 05:59:57
Score: 1
Natty:
Report link

I probably "find" the solution. I've added a net.sf.jasperreports.export.xls.auto.fit.column property to a reportElement in the text field and increased rightIndent to 7 in the paragraph section. Without rightIndent in docx text is also cut off.

I don't know how it works. I understand that it may not help but I don't have another solutions.

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

79602876

Date: 2025-05-02 05:57:56
Score: 4.5
Natty:
Report link

Thank you I enable the ActiveX controls, and now I can use the text field buttom

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tony Cz

79602870

Date: 2025-05-02 05:52:55
Score: 1.5
Natty:
Report link
SELECT value (c.id) FROM c
WHERE ARRAY_LENGTH(
ARRAY(
SELECT VALUE  p.name
FROM p IN c.stuff
group by p.name
)

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

79602858

Date: 2025-05-02 05:30:50
Score: 0.5
Natty:
Report link

This is my quick n' dirty:

size = 68719476736
for i, unit in enumerate(["B", "KB", "MB", "GB", "TB", "PB"]):
    if size >= 1024:
        size /= 1024
    else:
        break
print(size if i == 0 else f"{size:.2f}", unit)

Would show: 64.00 GB

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

79602855

Date: 2025-05-02 05:27:50
Score: 2
Natty:
Report link

Using the @mplungjan idea with some code:

Html:

<svg id="svg0" viewBox="0 0 250 250"></svg>
<input style="font-size:100px" type="textbox" id="tbName"></input>
<button style="font-size:100px" onclick=add()>Insert</button>

Javascript:

const startFontSize=30;
const minFontSize=1;
const fontSizeUnit="px";
const fontName="courier";
const fontStyle="";

var startRadius=100;//biggest circle radius
const rate=7/9;//font-size decreasing rate
gap=-2;//space between circles
let names=[['Mary','John','Paul','Lisa','Richard','Steve'],['Cristhian','Alex']];

const tsvg="http://www.w3.org/2000/svg";
const txlink='http://www.w3.org/1999/xlink';
const circlePath="M0 100 C 6 -33 194 -33 200 100 C 194 233 6 233 0 100 Z";//circle of radius 100 centered at (100,100)

function buildFontString(fontSize){
return fontStyle+ ' ' +fontSize +fontSizeUnit+' '+fontName; //font string
}

function calcStringHeight(fontString) {
  let text = document.createElementNS(tsvg,"text");
  text.style.setProperty("font", fontString);
  text.textContent = "AAA";
  document.getElementById("svg0").appendChild(text);
  let bb=text.getBBox();
  document.getElementById("svg0").removeChild(text);
  return bb.height;
}

function calcStringWidth(str, fontString) {
  let text = document.createElementNS(tsvg,"text");
  text.style.setProperty("font", fontString);
  text.textContent = str;
  document.getElementById("svg0").appendChild(text);
  let bb=text.getBBox();
  document.getElementById("svg0").removeChild(text);
  return bb.width;
}

const pad=calcStringHeight(buildFontString(startFontSize));//space required by text outside circle

//calcs all possible circle radius
function calcRadius(){
  let radius=[];
  let fontSize=startFontSize;
  let currRadius=startRadius;
  while(fontSize>minFontSize&&currRadius>gap) {
    radius.push(currRadius);
    fontSize*=rate;
    currRadius-=calcStringHeight(buildFontString(fontSize))+gap;
  }
  return radius;
}

const radius=calcRadius();

//draw one text circle
function drawTextCircle(str,index){
  const scale=startRadius/radius[index];
  const fontSize=startFontSize*Math.pow(rate,index);
  const path=document.createElementNS(tsvg,"path");
  path.id="circle"+index;
  path.setAttribute("fill","white");
  path.setAttribute("d",circlePath);
  path.setAttribute("transform",`translate(${pad+radius[index]*(scale-1)},${pad+radius[index]*(scale-1)}),scale(${1/scale})`);
  document.getElementById("svg0").appendChild(path);
  const text=document.createElementNS(tsvg,"text");
  text.style.setProperty("font", buildFontString(fontSize));
  const textPath=document.createElementNS(tsvg,"textPath");
  textPath.id="tp"+index;
  textPath.setAttributeNS(txlink,"xlink:href","#circle"+index);
  textPath.setAttribute("textLength",2*Math.PI*radius[index]-calcStringWidth(" ",buildFontString(fontSize)));
  textPath.textContent=str;
  text.appendChild(textPath);
  document.getElementById("svg0").appendChild(text); 
}

function insertName(name){
  const len=names.length;
  const maxCircles=radius.length;
  const currRadius=radius[len-1];
  const fontSize=startFontSize*Math.pow(rate,len-1);
  let str="",strWidth=0;
  //try to add in the current circle
  if(len>0){//one circle already exist
    for(var i=0;i<names[len-1].length;i++)
      str+=names[len-1][i]+" ";
    str+=name;
    strWidth=calcStringWidth(str,buildFontString(fontSize));
    if(strWidth<=2*Math.PI*currRadius)
      names[len-1].push(name);//add to the last
    else if(len<maxCircles)
      names.push([name]);//create new circle
    else return false;
  }
  else if(len<maxCircles)
    names.push([name]);//create new circle
  else return false;
  return true;
}

function drawNames(){
  let str="";
  for(var i=0;i<names.length;i++){
    str="";
    for(var j=0;j<names[i].length;j++)
      str+=names[i][j]+" ";
    drawTextCircle(str,i);
  }
}

function drawName(name){
  const tp=document.getElementById("tp"+(names.length-1));
  if(tp){
    const clone=tp.cloneNode(true);
    clone.textContent+=name+" ";
    tp.parentNode.replaceChild(clone,tp);
  }
  else
    drawTextCircle(name+" ",names.length-1);
}

function add(){
  const name=document.getElementById("tbName").value;
  if (insertName(name))
  drawName(name);
}

drawNames();

One thing that I dont understand is why the space between circles are greater than the calculated font-height... Thanks to SVG, Text does not render on textPath when I create it dynamically

More information in textPath could be found in https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/textPath

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @mplungjan
  • Low reputation (1):
Posted by: Eddi

79602853

Date: 2025-05-02 05:24:49
Score: 3
Natty:
Report link

@Eldlabs solution pointed me in the right direction with SSMS 20.2.1, I had to set permission from different place though.

enter image description here

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

79602852

Date: 2025-05-02 05:24:49
Score: 1.5
Natty:
Report link

Try to specify the work dir

https://slurm.schedmd.com/sbatch.html#SECTION_SCRIPT-PATH-RESOLUTION

copies from above link

1. If script starts with ".", then path is constructed as: current working directory / script
2. If script starts with a "/", then path is considered absolute.
3. If script is in current working directory.
4. If script can be resolved through PATH. See path_resolution(7).

Current working directory is the calling process working directory unless the --chdir argument is passed, which will override the current working directory.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Murari Saran Vikas

79602851

Date: 2025-05-02 05:24:49
Score: 0.5
Natty:
Report link

If you're facing errors while converting an ONNX model to TensorFlow Lite, first simplify the model using onnxsim to remove unnecessary operations. Then, use onnx-tf to convert the ONNX model into a TensorFlow SavedModel. While converting the SavedModel to TFLite, if you get errors related to unsupported operations, enable allow_custom_ops=True. For quantization errors, try using dynamic range quantization with converter.optimizations = [tf.lite.Optimize.DEFAULT]. Make sure your model's input shape is static, as dynamic shapes often cause issues. Start by converting the model without quantization to ensure it works in float. Lastly, always use the latest version of the ONNX and Tensor Flow tools for better compatibility.https://gtamob.com/

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Muhammad Kashif

79602848

Date: 2025-05-02 05:21:49
Score: 2
Natty:
Report link

The following compiler flags seems to produce desired result: -fPIE -pie -Wl,-pie

https://compiler-explorer.com/z/xvenTGG7c

Thanks to all commenters for giving me hints on how to approach this.

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

79602842

Date: 2025-05-02 05:12:47
Score: 1.5
Natty:
Report link

What I actually do is t

if [[ -d $ZDIR/code ]]; then# Autoload shell functions from $ZDIR/code with the executable bit on.for func in$ZDIR/code/*(N-.x:t); dounhash -f $func 2>/dev/null autoload +X $funcdonefi

I dont post much but I love a good lil bash script that can solve world hunger =)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What I
  • Low reputation (1):
Posted by: Jeremy Schoemaker

79602838

Date: 2025-05-02 05:06:46
Score: 1.5
Natty:
Report link

FWIW, if you do understand what the flamegraph is supposed to show you, then you might have it easier if you just use macOS's Instruments.app instead. I wrote a blog post about this back in 2015. In short, with Instruments you can get similar insights to those promised by the original flamegraph posts by Brendan Gregg (the creator of flamegraphs).

In 2015 we had Intel processors and now we're on ARM/Apple Silicon, but I think still applies, what with Apple's continued neglecting and kneecapping of DTrace.

Reasons:
  • Contains signature (1):
  • No code block (0.5):
Posted by: hmijail

79602834

Date: 2025-05-02 05:03:45
Score: 2
Natty:
Report link

Add .hero { padding: 0 !important; } on mobile devices to remove extra space at the top and bottom. Change height: auto - height: 100% on hero img so that the image still fills the entire screen.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ANGEL ESTUARDO MORALES RAMIREZ

79602832

Date: 2025-05-02 05:01:45
Score: 2
Natty:
Report link

Probably triggerLineEvent: true is what you want, see example

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

79602825

Date: 2025-05-02 04:52:42
Score: 2
Natty:
Report link

JJFYFB JF FJF VFJF VFJF FBF FJF FJF FJFJF FBF FBF JGF VXUF DYFJF EJE VEHGEH DBD VFH FJF BFUF VFJFUBB FKF FH VB F FBJF F BFHF FBJFBFBF YFYFJBBFJ VFJF BFJ FJF FBFBBFJF FBF FBJFBFJBFJR FBFBFJYF FHF FHF FBF VFBF FHFBYF FJ FJF FJGDOWNVSJEVHD FHF BFJFBFKF FBF FJFBFJFBF FBFVFJFBFJF FHFBJFBF FHFBFJF

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: William E. Tullume H.

79602824

Date: 2025-05-02 04:51:42
Score: 2
Natty:
Report link

LibreOffice Draw allows you to display and change the resolution of an embedded image in a PDF.

Open the document, right click on the image, select Compress.

Here is an example of a "tiny" image on an invoice template consuming 1.2MB

Display PDF embedded image resolution

After changing the resolution, the image is now just 20K

PDF embedded image reduced size

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

79602819

Date: 2025-05-02 04:49:42
Score: 2
Natty:
Report link

In PowerShell, function arguments are separated by spaces, not commas, and you don't enclose them in parentheses unless you're passing an array or an expression that evaluates to multiple arguments.

Correct way to call the function

foo "hello" "something"

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

79602816

Date: 2025-05-02 04:48:41
Score: 1
Natty:
Report link

you could try using height: 100% instead of auto for the media queries

.hero img {
  object-fit: cover;
  height: 100%;
  ...
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex

79602809

Date: 2025-05-02 04:38:38
Score: 1.5
Natty:
Report link

close

nodelalloc
mount -t ext4 -o remount,nodelalloc /${dev} /${mnt};
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: watchpoints

79602805

Date: 2025-05-02 04:36:38
Score: 0.5
Natty:
Report link

head is now implemented in Matlab

https://au.mathworks.com/help/matlab/ref/double.head.html

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

79602803

Date: 2025-05-02 04:34:37
Score: 2
Natty:
Report link
he file is in shared or co-edited mode or the file is in .xlsx format. Save as .xlsm (macro-enabled workbook).
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DULCE CLAUDIA MICHELLE RAMIREZ

79602802

Date: 2025-05-02 04:31:36
Score: 2
Natty:
Report link

padding: 0 !important; /* Remove the padding that created space / height: 100%; / The image still covers the screen */ The padding: 60px 0; left space below. The height: auto; of the image prevents it from expanding to full screen.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ANGEL ESTUARDO MORALES RAMIREZ

79602800

Date: 2025-05-02 04:26:35
Score: 3
Natty:
Report link

It looks like your email message isn't formatted correctly.

`Please click the following link to verify your new email address:\n\n{####}`

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-verificationmessagetemplate.html

https://regex101.com/

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

79602798

Date: 2025-05-02 04:25:35
Score: 0.5
Natty:
Report link

'order' is a reserved word in Postgresql; see https://www.postgresql.org/docs/current/sql-keywords-appendix.html

Try enclosing it in double-quotes; or changing the table name (which will always cause trouble).

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

79602796

Date: 2025-05-02 04:17:33
Score: 1.5
Natty:
Report link

For Intellij IDEA 2024.1.1(Ultimate Edition):

  1. Go to Intellij IDEA -> Settings -> Appearance & Behavior -> System Settings

  2. Under Project, click on "Ask" in the "Open Project in" options.

  3. Apply

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

79602792

Date: 2025-05-02 04:11:32
Score: 0.5
Natty:
Report link

throttled-py is a Python rate limiting library with multiple algorithms (Fixed Window, Sliding Window, Token Bucket, Leaky Bucket & GCRA) and storage backends (Redis, In-Memory).

If you want to throttle the same Key at different locations in your program, make sure that Throttled receives the same MemoryStore and uses a consistent Quota.

The following example uses memory as the storage backend and throttles the same Key on ping and pong:

from throttled import Throttled, rate_limiter, store

mem_store = store.MemoryStore()

@Throttled(key="ping-pong", quota=rate_limiter.per_min(1), store=mem_store)
def ping() -> str: return "ping"

@Throttled(key="ping-pong", quota=rate_limiter.per_min(1), store=mem_store)
def pong() -> str: return "pong"

ping()  # Success
pong()  # Raises LimitedError

Or use redis as storage backend:

from throttled import RateLimiterType, Throttled, rate_limiter, store

@Throttled(
    key="/api/products",
    using=RateLimiterType.TOKEN_BUCKET.value,
    quota=rate_limiter.per_min(1),
    store=store.RedisStore(server="redis://127.0.0.1:6379/0", options={"PASSWORD": ""}),
)
def products() -> list:
    return [{"name": "iPhone"}, {"name": "MacBook"}]

products()  # Success
products()  # Raises LimitedError
Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (0.5):
Posted by: crayon

79602791

Date: 2025-05-02 04:11:31
Score: 6.5 🚩
Natty: 5
Report link

Is this what your looking for?

https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md#request-handler-requesthandler

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this
  • Low reputation (0.5):
Posted by: user1607158

79602790

Date: 2025-05-02 04:08:30
Score: 0.5
Natty:
Report link

throttled-py can help you achieve fixed rate calls:

You can specify a timeout to enable wait-and-retry behavior. The rate limiter will wait according to the retry_after value in RateLimitState and retry automatically.

from throttled import RateLimiterType, Throttled, rate_limiter, utils

throttle = Throttled(
    using=RateLimiterType.TOKEN_BUCKET.value,
    quota=rate_limiter.per_sec(1_000, burst=1_000),
    # ⏳ Set timeout=1 to enable wait-and-retry (max wait 1 second)
    timeout=1,
)

def call_api() -> bool:
    # ⬆️⏳ Function-level timeout overrides global timeout
    result = throttle.limit("/ping", cost=1, timeout=1)
    return result.limited

if __name__ == "__main__":
    # 👇 The actual QPS is close to the preset quota (1_000 req/s):
    # ✅ Total: 10000, 🕒 Latency: 14.7883 ms/op, 🚀Throughput: 1078 req/s (--)
    # ❌ Denied: 54 requests
    benchmark: utils.Benchmark = utils.Benchmark()
    denied_num: int = sum(benchmark.concurrent(call_api, 10_000, workers=16))
    print(f"❌ Denied: {denied_num} requests")
Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): can help you
  • Low reputation (0.5):
Posted by: crayon

79602785

Date: 2025-05-02 04:01:28
Score: 1.5
Natty:
Report link
npx expo start --tunnel

I used this to solved above issue, (Provide a public URL accessible from anywhere)

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

79602784

Date: 2025-05-02 04:00:28
Score: 3.5
Natty:
Report link

Just for the sake of Mac community, this code works perfectly in My Mac M2 with Apple Silicon https://huggingface.co/docs/diffusers/en/optimization/mps

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

79602777

Date: 2025-05-02 03:42:23
Score: 1
Natty:
Report link

This can be solved using throttled-py.

from datetime import timedelta
from throttled import Throttled, rate_limiter, RateLimiterType

quota = rate_limiter.per_duration(timedelta(minutes=5), limit=5)

# Supports multiple algorithms, use Token Bucket by default.
@Throttled(key="StashNotes", quota=quota)
def StashNotes():
    return "StashNotes"

If the limit is exceeded, a LimitedError is thrown: throttled.exceptions.LimitedError: Rate limit exceeded: remaining=0, reset_after=300, retry_after=60..

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: crayon

79602769

Date: 2025-05-02 03:24:20
Score: 3
Natty:
Report link

Hola amigos estoy tratando de implementar sqliteassethelper en android studio kotlin pero no me permite. me sale unexpected tokens cuando escribo la implementacion. les agradezco su aporte. esta es la instruccion que le doy:

implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'
  
Reasons:
  • Blacklisted phrase (2): estoy
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luis Pinzon

79602762

Date: 2025-05-02 03:07:16
Score: 2.5
Natty:
Report link

If you set up a UserForm to appear immediately after a System Modal MsgBox, click on OK or the top right corner X. The MsgBox will force focus to the App where the macro is running. I have had to do this on a 30 minute loop for a macro to suggest an optional 5 minute break.

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

79602752

Date: 2025-05-02 02:51:13
Score: 1.5
Natty:
Report link

You should be able to concatenate the image like this:
text='positive <img src="green_check_mark">'

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

79602741

Date: 2025-05-02 02:35:09
Score: 2
Natty:
Report link

The problem for me was that I had a ".git" folder inside my context folder. Which couldn't be copied to the container on the build.

So what I had to do was create a .dockerignore file in the context folder and add the '.git' folder to it.

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

79602736

Date: 2025-05-02 02:27:07
Score: 1.5
Natty:
Report link

In my case there was an additional instance of the cl MSVC compiler command stuck running in the background, killing the process fixed the issue

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

79602734

Date: 2025-05-02 02:26:07
Score: 2.5
Natty:
Report link

It has been fixed in com.android.tools:desugar_jdk_libs:2.1.5

https://github.com/google/desugar_jdk_libs/blob/master/CHANGELOG.md#version-215-2025-02-14

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

79602732

Date: 2025-05-02 02:18:05
Score: 2.5
Natty:
Report link

I had this same issue. It turns out that each shape has many subshapes associated with it and you need to change all the attributes of those as well. Easiest way to work it out is to record a macro while you manually make the change and then use that as the basis for your code. You will likely find that you need about 20-40 lines of code (depending on what you are changing) to make it work.

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

79602727

Date: 2025-05-02 02:11:03
Score: 1
Natty:
Report link

Tim G, in the comments, points out that there is an easier data structure now that can be used for the sunburst plot.

https://github.com/JohnCoene/echarts4r/issues/207#issuecomment-718524703

df <- data.frame(parents = c("","earth", "earth", "mars", "mars", "land", "land", "ocean", "ocean", "fish", "fish", "Everything", "Everything", "Everything"),
                 labels = c("Everything", "land", "ocean", "valley", "crater", "forest", "river", "kelp", "fish", "shark", "tuna", "venus","earth", "mars"),
                 value = c(0, 30, 40, 10, 10, 20, 10, 20, 20, 8, 12, 10, 70, 20))

# create a tree object
universe <- data.tree::FromDataFrameNetwork(df)

# use it in echarts4r
universe %>% 
  e_charts() %>% 
  e_sunburst()
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gingie

79602726

Date: 2025-05-02 02:11:03
Score: 3
Natty:
Report link

you're not able to send apk directly in whatsapp if you using macOS because of security matters

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

79602725

Date: 2025-05-02 02:09:02
Score: 2.5
Natty:
Report link

I have this same problem, the front where go in localhost its wrong to vercel, i search and i found they have a case-sensitive, how my fonts its named as 'GOTHIC.TTF' its wrong to vercel. So, to fix this, lets change to 'gothic.ttf'. Here works sucessfully, try and say to me!

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

79602724

Date: 2025-05-02 02:09:02
Score: 0.5
Natty:
Report link

Ok, it is not quite an answer to the question but a work around that got me past the error.

My issue is that the Content Type was available in the Content type hub and I needed to sync from there.

string rootUrl = webURL.Substring(0, webURL.IndexOf("/", 8));

ClientContext clientContext2 = Task.Run(() => AuthManager.GetContextAsync(rootUrl).GetAwaiter().GetResult()).Result;

clientContext2.ExecutingWebRequest += delegate (object senderCC, WebRequestEventArgs eCC)
{
    eCC.WebRequestExecutor.WebRequest.UserAgent = "NONISV|EncompaaS|OricaConnector/1.0";
};

var web2 = clientContext2.Site.RootWeb;
clientContext2.Load(web2, w => w.AvailableContentTypes);
clientContext2.ExecuteQuery();
var ctype = web2.AvailableContentTypes.First(c => c.Name == ContentType);

var sub = new Microsoft.SharePoint.Client.Taxonomy.ContentTypeSync.ContentTypeSubscriber(clientContext);
clientContext.Load(sub);
clientContext.ExecuteQuery();
sub.SyncContentTypesFromHubSite2(webURL, new List<string>() { ctype.Id.StringValue });
clientContext.ExecuteQuery();

list.AddContentTypeToListByName(ContentType);
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tony C

79602720

Date: 2025-05-02 01:59:01
Score: 3.5
Natty:
Report link

Is this an error above?:

dy(2) = 1/dy(1); % tau

Seems like it should be

dy(2) = 1/y(1);

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Is this an
  • Low reputation (1):
Posted by: user30425349

79602719

Date: 2025-05-02 01:56:00
Score: 2.5
Natty:
Report link

I have a Module with OnTimer macros for a System Modal MsgBox to pop up every 30 mins to suggest I start a 5 Mins break. This gives way for a UserForm

I had to abandon the On Timer as it woud not trigger all the time, when App focus was not in Word where the 'Macro M reminder to Move WFH'.

I would like this solution as OnTimer uses virtually no CPU and battery charge when compared to a Timer with Do While DoEvents Loop, via monitoring Task Manager.

Struggled to find any solutions for a few weeks, before reverting back to a timer.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: James Martin

79602714

Date: 2025-05-02 01:36:56
Score: 1
Natty:
Report link

I simply run update for node in my laravel homestead. I follow the download npm code at https://nodejs.org/en/download. Now its running

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

79602709

Date: 2025-05-02 01:29:54
Score: 2
Natty:
Report link

You should not use a Kerberos ticket on two different machine at least with Microsoft Kerberos. Doing so is a pass the ticket attack. Likely your EDR will light up if you succeed at this. If it doesn't you should be concerned.

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

79602708

Date: 2025-05-02 01:28:53
Score: 1
Natty:
Report link

Each of these options has advantages and disadvantages, and also implications that aren't necessarily good or bad - they are just stuff you have to deal with. There is no option which is "best" in an absolute sense - options only have varying levels of suitability for a given problem.

Check to see if you have any guidance (e.g. architecture, internal standards or policies) that helps give direction.

If your architecture does not provide an answer on this then keep in mind that when you do make a decision you should record it as a pattern (noting when the pattern is applicable, when and why yo sue it, etc).

try and identify what "good" looks like, by drawing up a list of things that you think are important for any solution to be "good" (successful). Then score each option against that list. Things to consider when drawing up your list:

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Adrian K

79602700

Date: 2025-05-02 01:08:49
Score: 8.5 🚩
Natty: 5.5
Report link

Olá, importei o Macromed Flash Factory Object e Shockwave Flash Object na Toolbox do Visual Studio Community 2022. Já tenho o Adobe Flash Player instalado no Windows 10. O problema é que o controle fica desabilitado na caixa de ferramentas e não consigo adicioná-lo no formulário. Já tentei mudar a estrutura do projeto par x86 e importar novamente o Flash.ocx mas ainda assim não funciona. Antes disso executei o regsvr32 Flash.ocx de dentro da pasta do Adobe Flash Player onde fica o arquivo, mas o controle continua desabilitado. Alguma sugestão de solução?

Reasons:
  • Blacklisted phrase (1): não
  • Blacklisted phrase (2): solução
  • Blacklisted phrase (2): Olá
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thiago Sousa

79602698

Date: 2025-05-02 01:04:48
Score: 2
Natty:
Report link

2025
It worked after leaving the path in the order as show in the image:
Environment Variables

Reasons:
  • Whitelisted phrase (-1): It worked
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vlad Soares

79602695

Date: 2025-05-02 01:01:47
Score: 4
Natty:
Report link

Updating Android Studio to Narwhal preview version solved this problem.

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

79602690

Date: 2025-05-02 00:48:43
Score: 1.5
Natty:
Report link

Okay, I finally figured out how to disable "automatic scaling", once I discovered that this term existed...

If I call DrawImage() with two additional arguments (image width and height), then it does not auto-scale, and I get the required image copies...

graphics.DrawImage(clone, xdest, ydest, dx, dy);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gorlash

79602685

Date: 2025-05-02 00:31:41
Score: 1.5
Natty:
Report link

Step 1: Update your next.config.ts to this file

import type { NextConfig } from 'next'; const nextConfig: NextConfig = { productionBrowserSourceMaps: false, output: 'standalone', }; export default nextConfig;

Step 2: install this package npm install --save-dev rimraf

Step 3: replace you build script in package json "build": "next build && rimraf .next/cache",

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

79602668

Date: 2025-05-02 00:01:35
Score: 3
Natty:
Report link

Make sure to have the <IsTestProject>true</IsTestProject> between the <PropertyGroup></PropertyGroup> tags in .csproj of the test project. This atleast helped for my Test Explorer to finally run the XUnit tests.

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

79602664

Date: 2025-05-01 23:51:32
Score: 1
Natty:
Report link

The most likely issue is that react-awesome-reveal is trying to access browser APIs during server-side rendering. I think by ensuring these components only render on the client side, you should be able to get your animations working.

Try these steps

  1. Create a client-side wrapper component as shown in the first solution
  2. Use that wrapper in your Next.js pages or components
  3. Make sure your CSS doesn't interfere with animations
  4. Configure Next.js properly for Emotion (which react-awesome-reveal uses under the hood)
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sahan Randika

79602656

Date: 2025-05-01 23:33:29
Score: 1.5
Natty:
Report link

try use this command :flutter config --jdk-dir "your jdk path" which tells Flutter where to find the Java Development Kit (JDK) by manually setting the JDK path it means you don't need to put the link on JAVA_HOME

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

79602653

Date: 2025-05-01 23:24:27
Score: 0.5
Natty:
Report link

To filter for all records with only South codes only:

SELECT product_id, f.*
FROM table AS a
INNER JOIN LATERAL FLATTEN (input => a.location_codes) AS f
WHERE f.Key = 'South'

To filter for the record which has the value of 'south3':

SELECT product_id, f1.value::varchar AS location_code
FROM table AS a
INNER JOIN LATERAL FLATTEN (input => a.location_codes) AS f
INNER JOIN LATERAL FLATTEN (input =>f.value) AS f1
WHERE f.Key = 'South'
    AND f1.value::varchar = 'south3'
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tyler Moore

79602649

Date: 2025-05-01 23:15:25
Score: 1
Natty:
Report link

const canvas = document.createElement('canvas'); canvas.width = 600; canvas.height = 400; document.body.appendChild(canvas); const ctx = canvas.getContext('2d');

let circle = { x: 50, y: 200, radius: 20, dx: 2 };

function drawCircle() { ctx.clearRect(0, 0, canvas.width, canvas.height); ctx.beginPath(); ctx.arc(circle.x, circle.y, circle.radius, 0, Math.PI * 2); ctx.fillStyle = 'red'; ctx.fill(); ctx.closePath();

circle.x += circle.dx; if (circle.x + circle.radius > canvas.width || circle.x - circle.radius < 0) { circle.dx *= -1; } }

function animate() { drawCircle(); requestAnimationFrame(animate); }

animate();

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

79602648

Date: 2025-05-01 23:15:25
Score: 0.5
Natty:
Report link

I'm faced with a similar problem. In my case the reason was the use of styled-components >= 6. Since version 6 the automatic addition of prefixes has been disabled. You need to explicitly specify that they are needed using enableVendorPrefixes in StyleSheetManager.

Source

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

79602645

Date: 2025-05-01 23:13:24
Score: 3
Natty:
Report link
get-command -CommandType Application | ? {$_.Name -like '7z.exe'}

get-command gets all known commands; the -like operator filters out what is needed , in this case '7z.exe'.

7z.exe is a Application (not a Powershell Cmdlet), thus the switch -CommandType Application . It may or may not have an entry in the registry.
Without the -Commandtype switch, you would get a clunky error (which you also manage with a try/catch block, that would be clunky)

Cheers, Sudhi

Reasons:
  • Blacklisted phrase (1): Cheers
  • Contains signature (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Sudhi

79602642

Date: 2025-05-01 23:10:23
Score: 2.5
Natty:
Report link

5 years later. You could also create a fake URL and set the window.location to that in JavaScript, then check your onBeforeBrowse notification handler for that URL, cancel the browse, then show your form.

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

79602641

Date: 2025-05-01 23:09:23
Score: 2
Natty:
Report link

You cannot create a webview in a headless test environment. A webview in Visual Studio Code relies on the graphical user interface to render its contents, and headless environments lack the necessary GUI support to display the webview.

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

79602635

Date: 2025-05-01 22:55:20
Score: 4.5
Natty:
Report link

I'm not sure if this works, but it seems Heroku Registry does not support contained, as it's mentioned on this link. Disable it from Docker Desktop as shown in the image

enter image description here

Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ragar90

79602626

Date: 2025-05-01 22:41:17
Score: 1
Natty:
Report link

After extensive troubleshooting, the solution that ultimately worked for me was switching to Python 3.10 or 3.9. To implement this fix, ensure your workspace is configured to use Python 3.10 as the interpreter (this can typically be adjusted through your IDE/editor settings). Updating the interpreter version should resolve compatibility issues and allow your code to run properly.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yassin gouti

79602623

Date: 2025-05-01 22:38:16
Score: 1
Natty:
Report link

You have to use wlr-layer-shell to tell the compositor where to place the taskbar it works in hyprland, sway but I don't about DE's like gnome which uses mutter and doesn’t support it directly you would use gtk-layer-shell.

This might be helpful

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

79602615

Date: 2025-05-01 22:33:15
Score: 0.5
Natty:
Report link

Approach 2 - abstract them out as a port.

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

79602612

Date: 2025-05-01 22:30:14
Score: 1
Natty:
Report link

I managed to do that by creating a a new component for each entry https://codepen.io/azmvth/pen/PwwQWvj

const app = Vue.createApp({
    data() {
        return {
            log: []
        }
    },

    methods: {
        add() {
            const self = this

            const n = window.btoa(String(Date.now()))
            self.log.push(n)
            
            const a = {
                data() {
                    return {
                        started: 0,
                        passed: 0
                    }
                },
                created() {
                    const _self = this
                    _self.started = Date.now()
                    
                    setInterval(()=>{
                        _self.passed = Math.floor((Date.now()-_self.started)/1000)
                    }, 1000)
                },
                template: `<div>Entry added {{passed}} ago!</div>`
            }
            
            app.component(n, a)
        }
    }
})

app.mount('#app')
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.5.4/vue.global.min.js"></script>
<div id="app">
    <component v-for="l of log" :is="l"></component>
    <div style="margin-top: 1rem"><i>Click the button to add a new entry </i><button @click="add()">+</button></div>
</div>

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

79602611

Date: 2025-05-01 22:29:14
Score: 1
Natty:
Report link

I initially tried Azure with Entra ID, but personally found it a bit slow, hard to customize, and more complex than I needed due to its API and external dependencies.

I believe a good general rule for authentication and authorization is to strike a balance between security and user experience. If your security measures frustrate users, it might be worth improving the UX.

Aside from third-party auth like Google, I like the passwordless approach used by apps like Canva and Skype—where users receive a code via email instead of entering a password.

I built my own solution. You can check the source code or use the package if you prefer not to build your own.

The frontend part is available as an npm package, though, it includes more than just auth features. If you're only interested in login, registration, or Google auth, you can check the source code and just use the parts that you need.

Example use case (access token expires in 15 minutes, refresh token in 24 hours):

  1. User logs in → receives access and refresh tokens.
  2. Possible scenarios:
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Filip Trivan

79602605

Date: 2025-05-01 22:22:12
Score: 4.5
Natty: 4.5
Report link

@scribe: thanks, your registry changes in combination with changing the port to 587 (SMTPServerPort setting in the rsreportserver.config file) worked for me!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @scribe
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Bart Prüst

79602596

Date: 2025-05-01 22:14:09
Score: 6 🚩
Natty:
Report link

fuck you

30char30char30char30char30char

Reasons:
  • Blacklisted phrase (2): fuck
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: joe biden

79602595

Date: 2025-05-01 22:13:08
Score: 4.5
Natty:
Report link

I am with you on this scratching my head.

It is expecting Token and Token:TenantId

I got the token using https call to get the bearer token as well as passing tenant id but i am still getting the same eror I am with you on this scratching my head.

I am with you on this scratching my head.

            "statuses": [
                {
                    "status": "Error",
                    "target": "Token",
                    "error": {
                        "code": "Unauthenticated",
                        "message": "This connection is not authenticated."
                    }
                }
            ]

@Microsoft is there any way to automatically create a connection for at least built-in connectors? May be an API call using Service Principal?

Reasons:
  • Blacklisted phrase (1): is there any
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Ashar

79602578

Date: 2025-05-01 21:48:02
Score: 4
Natty: 4.5
Report link

I had the same issue and was resolved with this comment https://github.com/kulshekhar/ts-jest/issues/4561#issuecomment-2676155216

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Omar

79602559

Date: 2025-05-01 21:35:59
Score: 0.5
Natty:
Report link

Using CancellationToken in an ASP.NET Web Application

CancellationToken is a feature in .NET that allows tasks to be cancelled gracefully. It is particularly useful in ASP.NET applications where requests may need to be terminated due to user actions, timeouts, or resource limitations. Learn More

Why Use CancellationToken?

  1. Improve Performance – Prevent unnecessary resource consumption when a request is abandoned.

  2. Handle User Actions – Allow cancellation if a user navigates away or closes the browser.

  3. Support Long-Running Processes – Cancel background tasks when no longer needed.

Example Usage in an ASP.NET Controller | Video Tutorial

When handling HTTP requests in ASP.NET Core, you can pass CancellationToken as a parameter:

csharp

[HttpGet("long-operation")]
public async Task<IActionResult> PerformLongOperation(CancellationToken cancellationToken)
{
    try
    {
        // Simulate a long-running task
        await Task.Delay(5000, cancellationToken);
        return Ok("Operation completed successfully");
    }
    catch (OperationCanceledException)
    {
        return StatusCode(499, "Client closed the request");
    }
}

Using CancellationToken in Background Services

If you are running background tasks (e.g., fetching data periodically), use CancellationToken in services:

csharp

public class MyBackgroundService : BackgroundService
{
    protected override async Task ExecuteAsync(CancellationToken stoppingToken)
    {
        while (!stoppingToken.IsCancellationRequested)
        {
            // Perform periodic work
            await Task.Delay(1000, stoppingToken);
        }
    }
}

Key Points to Remember

Video Tutorial

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

79602558

Date: 2025-05-01 21:35:59
Score: 3
Natty:
Report link

From the lttng documentation:

Why are trace event records discarded?

When your application generates trace data, it's passed to the consumer daemon through channels. Each channel contains ring buffers and this is where your trace data is stored, as event records, before LTTng saves it somewhere, for example on the disk, or over the network.

Your application and the consumer daemon are a classic producer-consumer model: one puts data into the channel's ring buffers, the other takes it out.

But if the application writes data faster than the consumer can read it, you can quickly run into trouble.

---

Who is the consumer here? Is Babeltrace a consumer?

Could it mean that babeltrace could be slow to read/output the data, and so it can get discarded?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Vikas Agrahari