79261588

Date: 2024-12-07 23:30:00
Score: 2.5
Natty:
Report link

I would go with SQLAlchemy, it's recommended because it helps to avoid SQL injection if used as it should be. Also, it helps a lot to solve issues when coding.

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

79261585

Date: 2024-12-07 23:26:59
Score: 7 🚩
Natty: 4
Report link

Muchas Gracias!, funciona perfecto!

Reasons:
  • Blacklisted phrase (2): Gracias
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jonathan

79261581

Date: 2024-12-07 23:23:56
Score: 7.5 🚩
Natty:
Report link

I'm having the same issue, did you ever find a solution?

Funny actually it worked for like a day then stopped working again

Reasons:
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (3): did you ever find a solution
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: James Watts

79261579

Date: 2024-12-07 23:22:55
Score: 0.5
Natty:
Report link

I had the same problem, but with a different hosting provider - hmara.io. I have a vps server on ubuntu 22 + laravel 11. I wrote to support with this problem, they told me that all providers renting out vps block mail ports by default, especially sending (587).

In order to unblock you need to write a ticket to open the mail ports, I opened literally for 10 minutes and mail worked, I think on hosting will be the same way

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dmitry Tarasevich

79261575

Date: 2024-12-07 23:19:55
Score: 0.5
Natty:
Report link

You can use set_position() to change the dimensions of one of the subplot:

plt.figure(1).axes[1].set_position([0.6,0.4,0.25,0.3])  # left, bottom, width, height

It gives: res

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rehaqds

79261574

Date: 2024-12-07 23:19:55
Score: 1.5
Natty:
Report link

The root cgroup acts as the parent of all other cgroups and is an administrative entry point. It focuses on enabling a hierarchical structure for the resource control in child cgroups. And it does not manage tasks or applies resource limits on itself etc; instead, it aggregates data and controls for all child cgroups like I already mentioned.

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

79261570

Date: 2024-12-07 23:18:54
Score: 2
Natty:
Report link

Try ColourScript.

Not only does it have colours, it has background colours, bright colours, dark colours, data, and every colour named in programming (r,g,b), which is not possible in other modules and in octal (what you are doing right now).

pip install ColourScript.

https://pypi.org/project/ColourScript/

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

79261569

Date: 2024-12-07 23:16:54
Score: 3
Natty:
Report link

I’m looking for exactly this functionallity. Maybe I’m missing something, but the code provided only works for the owner. The users can write on top of eachother’s cells and edit everything except the sell that the owner wrote.

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

79261568

Date: 2024-12-07 23:14:54
Score: 1.5
Natty:
Report link

As recommended by @Siamak, i managed to implement require.context() to solve the issue, so here is the final code

function About() {
    
    const imgFolder = require.context('./img/', false)
    
    const tempImg =['./img/Horseback-riding.jpg','./img/Snowshoeing.jpg','./img/yoga3.3.jpg','./img/rope.jpg']

    const [counter, setCounter] = useState(0);
    const [aboutImg, setAboutImg] = useState(require('./img/rope.jpg'))

    //make the image change every 5secs
    useEffect(() => {
        //Implementing the setInterval method
        const interval = setInterval(() => {
            counter === 3 ? setCounter(0) : setCounter(counter + 1);
            setAboutImg( require(`${tempImg[counter]}`))
            console.log(`aboutImg = ${aboutImg}`)
        }, 5000); // every 5secs it changes

        //Clearing the interval
        return () => clearInterval(interval);
    }, [counter]);

        return (
           <img src={aboutImg}/>
        )
    
 }
    
 export default About;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Siamak
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Emma

79261567

Date: 2024-12-07 23:14:54
Score: 3
Natty:
Report link

".available()" function returns true when you have a signal or bytes on RX. You may have no signal or bytes on BTSerial RX pin.

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

79261554

Date: 2024-12-07 23:04:51
Score: 2
Natty:
Report link

I see a lot of recommendations online and it’s already obvious there are bad eggs online who will only add to your mystery. I can only recommend one and you can reach them via mail on (Recoveryeagles aT gmail com) if you need help on recovering what you lost to scammers. Reply

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

79261552

Date: 2024-12-07 22:59:49
Score: 4.5
Natty: 7.5
Report link

My okwin gifts code free 2000 hajar ka plz help mi sir Gift code de do sar

Reasons:
  • Blacklisted phrase (1): plz help
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Subhir Koshle

79261545

Date: 2024-12-07 22:56:49
Score: 3
Natty:
Report link

If you are using Visual Studio Code, just try to reopen the vscode code editor since it does not save the changes properly.

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

79261539

Date: 2024-12-07 22:48:47
Score: 2
Natty:
Report link

Define server-side metadata in the main route's file (page.tsx) using the metadata export. Handle client logic by isolating components using "use client" where needed. Don’t mix server logic and client logic, or you’ll hit these boundaries.

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

79261537

Date: 2024-12-07 22:48:47
Score: 2.5
Natty:
Report link

Please share the client code which triggers the otp sending. And as well the logs of this

      const storedOtp = await prisma.otp.findFirst({
        where: { email, otp },
        orderBy: { createdAt: "desc" },
      });

      // add debugging
      console.log('OTP: ', otp)
      console.log('storedOtp: ', storedOtp)
      console.log('Email: ', email)

      if (
        !storedOtp ||
        new Date() - new Date(storedOtp.createdAt) > 10 * 60 * 1000
      ) {
        return res.status(400).json({ message: "Invalid or expired OTP" });
      }
Reasons:
  • RegEx Blacklisted phrase (2.5): Please share
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rizzling

79261525

Date: 2024-12-07 22:32:43
Score: 3
Natty:
Report link

The error comes from the server after analyzing and seeing that even the pip: https://pypi.org/project/dgii-rnc has the same issue.

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

79261521

Date: 2024-12-07 22:27:42
Score: 2.5
Natty:
Report link

Chalk version 5, being a pure 'ESM' package, can't be directly used in your current CommonJS project. Here are your options:

  1. Migrate your project to ESM (Best): This is the cleanest solution. Your project can then use both ESM and CommonJS modules seamlessly.
  2. Install Chalk version 4 (Easy): A quick fix, but you might miss out on the latest Chalk features. See a demo here.
  3. Use Node.js 22 (Not Recommended): Requires --experimental-require-module flag to import ESM in CommonJS, which is not ideal.
  4. Install Chalk 5 with 'dynamic import': You're missing some necessary configurations. For instance, regardless of using dynamic imports, you'll need TypeScript version 4.7 or higher. For more information on the required configurations, please check this link.

Recommendation: Migrating to ESM is the best long-term approach for a more organized and modern project structure."

Reasons:
  • Blacklisted phrase (1): please check this
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Giancarlo Sotelo

79261520

Date: 2024-12-07 22:27:42
Score: 1
Natty:
Report link

I'm answering my own question in order to post the final solution to my problem, but it's mainly thanks to Lewis answers and comments below. Thank you Lewis ! the input .wav file must be PCM 16 bit mono, wich can be obtain with "ffmpeg -i "speech3.wav" "outfile.wav" in windows cmd after installing ffmpeg.

import wave
import json
from vosk import Model, KaldiRecognizer, SetLogLevel


#.wav file must be PCM 16-bit mono !

def vosk(wavFile):
    SetLogLevel(0)

    wf = wave.open(wavFile, "rb")

    model = Model(model_path="voskSmallFr", model_name="vosk-model-small-fr-0.22")
    rec = KaldiRecognizer(model, wf.getframerate())
    rec.SetWords(True)
    rec.SetPartialWords(True)
                    
    text = []    
    while True:
        data = wf.readframes(4000)
        if len(data) == 0:
             break
        # if silence detected save result
        if rec.AcceptWaveform(data):
            text.append(json.loads(rec.Result())["text"])
    text.append(json.loads(rec.FinalResult())["text"])

    text=str(text)[2:-2]
    return text



print(vosk("outfile.wav"))
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rémi Descamps

79261511

Date: 2024-12-07 22:21:40
Score: 3
Natty:
Report link

This is wierd because on the documents they mention to this package that will get installed. https://packagist.org/packages/tatumio/tatum-php

Then it will lead to this repo which itself is a fork: https://github.com/markjivko/tatum-php

My recommendation is to fork the main repo yourself which includes version 2 then load it in composer. How to require a fork with composer?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
Posted by: TEFO

79261507

Date: 2024-12-07 22:19:40
Score: 1
Natty:
Report link

I looked at the documentation, and the way to make an analogous function to 'insertAfter' except for XML is as follows:

Sub InsertXMLAfter(ByRef newDoc As Document, ByRef strXML As String)
  Dim rng As Range
  Set rng = newDoc.Content
  rng.Collapse Direction:=wdCollapseEnd
  rng.InsertXML strXML
End Sub
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mark Springer

79261495

Date: 2024-12-07 22:14:39
Score: 3
Natty:
Report link

en el código de ejemplo de paypal que puedes descargar de su documentación oficial podrás ver que se utiliza el objeto window para construir la instancia de paypal.Buttons() globalmente así: window.paypal.Buttons(...).

Lo anterior no lo veo en tu código y es necesario para mantener el contexto de ejecución de Buttons dado que al terminar el usuario de hacer su flujo de aprobación el flujo retorna a buscar la función onApprove() donde haces la captura de la orden, con lo que la transacción queda finalizada o le das manejo a los errores.

Ahora, no sé qué es todo lo que tienes dentro de onApprove, pero ahí debería estar el llamado a la ruta /api/orders/${data.orderID}/capture.

Saludos y suerte con tu implementación.

Reasons:
  • Blacklisted phrase (2): código
  • Blacklisted phrase (1.5): Saludos
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Odair Augusto Trujillo Orozco

79261488

Date: 2024-12-07 22:08:38
Score: 1
Natty:
Report link

I resolved the error by specifically entering the project folder, as it was a few levels above, that is, I created the project inside another folder.

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Diego

79261473

Date: 2024-12-07 21:58:36
Score: 1
Natty:
Report link

name: btsv description: "A new Flutter project." publish_to: 'none'

version: 1.0.0+1

environment: sdk: ^3.5.4

dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.8 flutter_svg: flutter_bloc: hydrated_bloc: path_provider: firebase_core: ^3.8.1 firebase_auth: ^5.3.4 get_it: dartz: cloud_firestore: ^5.5.1

dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^5.0.0

flutter: uses-material-design: true

assets: - assets/fonts/ - assets/images/ - assets/vectors/

fonts: - family: Satoshi fonts: - asset: assets/fonts/Satoshi-Black.ttf weight: 900 - asset: assets/fonts/Satoshi-Bold.ttf weight: 600 - asset: assets/fonts/Satoshi-Medium.ttf weight: 500 - asset: assets/fonts/Satoshi-Regular.ttf weight: 400 - asset: assets/fonts/Satoshi-Light.ttf weight: 300 this is my pubsec file but it is giving me error saying that pigeon thing...

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

79261461

Date: 2024-12-07 21:50:34
Score: 1
Natty:
Report link

I encountered the same issue. It turns out that the Authorization Code live time is 5 minutes. When testing, it's expired. After redo the authorization and new code. The invalid_grant went away. Hope this helps others.

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

79261434

Date: 2024-12-07 21:32:29
Score: 1.5
Natty:
Report link

It sounds like a frustrating situation, there could be a few reasons why your collaborators are experiencing this issue. Try to Role Changes like Double-check that their roles haven't inadvertently changed. Sometimes, permissions can get altered without anyone realizing it. Also Repository Settings try to make sure the repository settings haven't been updated to restrict push access. Also SSH Keys If they're using SSH keys, confirm that their keys are still valid and haven't been revoked or changed. This can sometimes cause permission issues and Branch Protection Rules Check if there are any branch protection rules in place that might be preventing pushes to the branch

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

79261426

Date: 2024-12-07 21:24:28
Score: 1
Natty:
Report link

The code here works, you just have to change

p = ggplot(global, aes(x=as.factor(id), y=value, fill=group)) + 

to

p = ggplot(data, aes(x=as.factor(id), y=value, fill=group)) + 

grid_data, used in the geom_segment, is derived from data at this point.

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

79261424

Date: 2024-12-07 21:23:26
Score: 7.5 🚩
Natty: 4.5
Report link

did u find a solution? let me know if you did, please

Reasons:
  • RegEx Blacklisted phrase (3): did u find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: Alex Rubanov

79261423

Date: 2024-12-07 21:23:26
Score: 0.5
Natty:
Report link

Thanks to CorxitSun for his answer; also thanks to bits and pieces from these answers:

I was able to boil it down to a more concise JavaScript solution that doesn't require accessing hidden APIs, and works both in a native iOS webview and in iOS Safari. This is still a little hacky, but hopefully a little less hacky than previous attempts.

There is one remaining issue – although the selection handles and selection background now show, the text selection menu (with copy, share, etc.) doesn't show unless a user taps a second time.

const selectParagraph = (event) => {
  const selection = window.getSelection();
  const range = document.createRange();
  range.selectNodeContents(event.currentTarget);
  selection.removeAllRanges();
  selection.addRange(range);
}

const paragraphs = document.querySelectorAll('p');
for (paragraph of paragraphs) {
  paragraph.addEventListener('click', selectParagraph);
}


// WORKAROUND CODE

// 1. Determine the browser, and keep track of whether selection has been initialized
const isIosSafari = /^((?!Chrome|Firefox|Android|Samsung).)*AppleWebKit/i.test(navigator.userAgent) && navigator.maxTouchPoints && navigator.maxTouchPoints > 1;
let selectionIsReady = false;

// 2. Allow focus to be set programmatically (in addition to fixing iOS Safari, this also prevents "tap to search" in Android Chrome from interfering with text selection)
document.body.tabIndex = -1;

// 3. Initialize selection by temporarily moving focus to a hidden input element, the first time a user taps anywhere on the page. When the browser refocuses the page as part of its normal tap handling, selection UI (selection handles and colored background) will be visible. Known issue: Even with this workaround, the user has to tap the selected text again to show the text selection menu
window.addEventListener('pointerdown', (event) => respondToPointerDown(event));
const respondToPointerDown = (event) => {
  if (isIosSafari && !selectionIsReady) {
    const tempInput = document.createElement('input');
    tempInput.style.position = 'fixed';
    tempInput.style.opacity = 0;
    tempInput.style.height = 0;
    tempInput.style.fontSize = '16px'; // Prevent zoom on focus
    tempInput.inputMode = 'none'; // Don't show keyboard
    document.body.prepend(tempInput);
    tempInput.focus();
    setTimeout(() => {
      tempInput.remove();
      selectionIsReady = true;
    }, 200);
  }
}

// 4. If the window or tab goes in the background, selection needs to be initialized again
window.addEventListener('blur', (event) => selectionIsReady = false);
<p>Tap to select this paragraph.</p>
<p>Or this paragraph.</p>

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

79261422

Date: 2024-12-07 21:20:25
Score: 1.5
Natty:
Report link

You can remove adb plugin from the plugin array since Zsh already has official completion built-in.

You can refer to: https://github.com/ohmyzsh/ohmyzsh/discussions/12577.

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

79261415

Date: 2024-12-07 21:17:25
Score: 0.5
Natty:
Report link

What happens when the image is broken, depends on the browser. Chrome and Safari use the dimensions specified in the img tag. A width of 790px then must overflow a container with a width of 600px. To avoid that i would either not specify them in that manner or overwrite it in css later. To control the layout and make it independent from the image while loading i recommend:

  1. Defining the layout rather by controlling the dimensions of the containers than the content.

  2. Giving relative values (flex, percentages), not fixed (px).

These definitions seem to have the desired outcome:

.container{
  display:flex;
  width:600px;
  align-items:center;
}
.column{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  flex: 1 1 40%; /* moved to container level */

}
img{
        height:auto;
        min-width:0;
        min-height:0;
        max-width: 100%;
        width: auto; /* added */
}
p{
          flex: 1 0 60%;
}

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Patrick Schlieker

79261397

Date: 2024-12-07 21:06:22
Score: 0.5
Natty:
Report link

When I initially created my application, Oblivion's approach worked well for a while. However, as I added more widgets, the customized scheme seemed not working as expected, though the exact issue remains unclear. To get a similar design effect, I used TNotebook and TNotebook.Tab control styles to customize the settings, following an approach similar to @Brōtsyorfuzthrāx.

self.style.theme_use("alt")
self.style.configure("TNotebook",
                             tabmargins = [0, 1, 2, 0],  #[left, top, right, bottom]
                             background="lightgray"
                             ) 
                             
 self.style.configure("TNotebook.Tab",
                             padding = [25, 1.5], 
                             font=("Arial", 10),
                             relief="flat"
                             )
 self.style.map("TNotebook.Tab", 
                       background=[("selected", "skyblue"), ("active", "lightblue")],
                       foreground=[("selected", "white"), ("active", "black")])
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Brōtsyorfuzthrāx
  • Starts with a question (0.5): When I init
  • Low reputation (0.5):
Posted by: aVral

79261392

Date: 2024-12-07 21:02:21
Score: 1
Natty:
Report link

It sounds like your script might be caught in an infinite loop or performing too many operations per frame, which causes the "Script Timeout" error. Try optimizing your code by using RunService.RenderStepped or RunService.Heartbeat for smoother execution instead of using loops like while true do.

On a side note, if you're exploring advanced tools to enhance your ROBLOX experience, I’ve been using the Fluxus Executor, and it’s working flawlessly. It’s great for custom projects and might offer some inspiration for debugging and testing your game efficiently.

With some adjustments to your script's logic, you should be able to fix the issue. Good luck with your passion project!

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

79261390

Date: 2024-12-07 21:01:21
Score: 1.5
Natty:
Report link

The important thing is, what part causes too many queries. If we only talk about custom attribute, then the ->payments() causes the problem. Why? because you are trying to sum the duration of days by querying everytime.

What are the solutions?

  1. Eager load the relation and use that.
  2. Join tables and use the SQL sum it in the query.
  3. Use SubQuery just like you did.

Eager load:

First, you need to use with or load for eager loading, then you need to use the relation without parentheses. Final code:

class Subscription extends Model {
   use HasFactory;

   public function payments(): HasMany {
      return $this->hasMany(SubscriptionPayment::class, 'sub_id');
   }

   public function totalDurationDays(): Attribute {
      return Attribute::make(
         get: fn() => $this->payments->sum('duration_days')
      );
   }
}

And Just like @Tarashdeep-Singh mentioned:

$subs = SharedServer::from('subscriptions AS ss')
    ->with('payments')
    ->paginate();`

But two things keep in mind 1- Remove the parentheses and use payment-> for relation 2- Dont forget to use the eager loading methods like with or load. If you forget any of these two you will have an n+1 problem.

Join:

This is the most performant way to query this data:

$subs = SharedServer::query()
    ->select([
        'subscriptions.*', 
        DB::raw('SUM(subscription_payments.duration_days)')
    ])
    ->join('subscription_payments', 'subscriptions.id', '=', 'subscription_payments.sub_id')
    ->paginate();`

This may not give you the result you want because it depends on how do you want to filter the result, and inner join or left join can be the possible answers. But with this, you have one and only one query so its most performant.

Subquery:

Subqueries is a nice and very clean way to query and to be honest it is easy as well. But the cost is if the subquery is Correlated then it might be less performant than joins. I won't include the example because you already included the subquery in your description. As you can see your subquery relies on the ss (subscriptions) table as a Correlated Subqueries.

Reasons:
  • Blacklisted phrase (1): how do you
  • Blacklisted phrase (0.5): Why?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Tarashdeep-Singh
Posted by: TEFO

79261389

Date: 2024-12-07 21:01:21
Score: 0.5
Natty:
Report link

Since noone has provided any answer will provide my solution, which uses delayed variable expansion for variables used inside for loop.

@echo off
setlocal EnableDelayedExpansion
cd e:\WORK\NetBeansProjects\potyczki
pwd
set testdir=D:\___Potyczki_Algorytmiczne\2024\mro_tests
for %%f in (%testdir%\*.in) do (
    set inname=%%f
    call set outname=%%inname:in=out%%
    call java -classpath target/classes/ pl.kazanik.potyczki._2024.Mrowki !outname! < !inname!
)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: 10101101

79261388

Date: 2024-12-07 21:01:21
Score: 0.5
Natty:
Report link

You can use this command instead of deleting .git file

git remote remove origin

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 0x8D

79261383

Date: 2024-12-07 20:54:20
Score: 2.5
Natty:
Report link

No answer for why Expo dev builds don't have QR codes, but I do have an answer for why my phone camera couldn't open the QR code. Turns out google pixels can't scan app links.

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

79261368

Date: 2024-12-07 20:40:16
Score: 1
Natty:
Report link

Turns out this question should be moved to Data Science or similar. The problem was the web scrape. Hidden HTML tags were breaking the indices. Since the array is built in so many places, from so many sources it's easiest, (not optimal) to fix it in situ ...

$a = is_string($a) ? trim(strip_tags($a)):$a;
$b = is_string($b) ? trim(strip_tags($b)):$b;
$c = is_string($c) ? trim(strip_tags($c)):$c;

//Associative indices now working as expected

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

79261367

Date: 2024-12-07 20:40:16
Score: 1
Natty:
Report link

I managed to fix this error by creating a ~/.bash_profile file and sourcing the nvs.sh script

~/.bash_profile

source ~/AppData/Local/nvs/nvs.sh
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lordofmax

79261365

Date: 2024-12-07 20:38:16
Score: 1.5
Natty:
Report link

It will return 403 with a empty response according to privacy preferences of target user.

If you try with your own profile after changing all privacy preferences to public, then you will get the expected response.

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

79261354

Date: 2024-12-07 20:33:14
Score: 1
Natty:
Report link

Heyy the problem is that on m1 or silicon based arch it need linux arch, but your docker is pulling the normal image of kafdrop, so one thing you can do pull the image built for m1

obsidiandynamics/kafdrop:4.0.3-SNAPSHOT

try this image instead of normal one and this will resolve

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: frankenstein

79261346

Date: 2024-12-07 20:28:14
Score: 1
Natty:
Report link

This blog post (https://jimgar.github.io/posts/vs-code-macos-r/post.html) presents a solution that resolved the '--nosave', '--no-restore', '--r-binary' error on my machine (mac) by adding an additional r.rterm.option list:

{
  "r.bracketedPaste": true,
  "r.rpath.mac": "/usr/local/bin/R",
  "r.rterm.mac": "/Library/Frameworks/Python.framework/Versions/3.11/bin/radian",
  "r.rterm.option": [
    "--no-save",
    "--no-restore",
    "--r-binary=/usr/local/bin/R"
  ]
}

The path for r.rterm.mac can be found by running which radian in the terminal. Similarly, the path for r.rpath.mac can be found by with which R.

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

79261339

Date: 2024-12-07 20:26:13
Score: 0.5
Natty:
Report link

Installing Visual Studio (Community) 2022 will install the missing parts enabling you to run your app on GraalVM.

I had a Spring Boot app that I ran on GraalVM (to benefit for the instant startup), I had to:

  1. Download the Visual Studio Build Tools 2022 or later (C development environment) from visualstudio.microsoft.com.

  2. Start the installation by opening the file you downloaded, and then click Continue: visual_studio_installer

  3. Select the Desktop development with C++ checkbox in the main window. On the right side under Installation Details, make sure that the two requirements, Windows 11 SDK and MSVC (…) C++ x64/x86 build tools, are selected. Continue by clicking Install. desktop_development_with_C

Then, I used Visual Code and not Visual Studio. (the terminal uses the Visual Studio components)

More:

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

79261314

Date: 2024-12-07 20:14:09
Score: 7 🚩
Natty: 5.5
Report link

i have the same problem, i don't know either

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: bruno pospiesh

79261306

Date: 2024-12-07 20:10:08
Score: 1
Natty:
Report link

Since I was working in a virtual env, I was installing jwt extended inside venv just like any other package.

what actually solved my issue was by running the command in a user cmd and directly installing it in the system.

pip install flask flask-jwt-extended
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ritik Raj Chauhan

79261303

Date: 2024-12-07 20:09:07
Score: 3
Natty:
Report link

Use width: 100% and height: 100% in your image tag class and see if this works. I often use Tailwind, and this issue doesn't arise with me.

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

79261302

Date: 2024-12-07 20:09:07
Score: 1
Natty:
Report link

What I believe the OP wants is to select a menu item, and have the check box change while the menu is still displayed. This is the rational for the attribute UIMenuElementAttributesKeepsMenuPresented.

Unfortunately I cannot seem to get this to work either as the OP mentions that the UIAction is a mutable object. So the checkmark cannot be changed.

All the comments above require the menu to be re-displayed, and then the checkmarks are valid.

But what's missing, is the ability for the menu to dynamically change as the items are selected (their action).

Note: Keeping the menu presented lets you select a menu item multiple times - so when done and the menu re-displayed, the state might be checked or unchecked.

I've gone to not using the presented feature.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What I
  • Low reputation (1):
Posted by: KonaCurrents

79261295

Date: 2024-12-07 20:03:06
Score: 0.5
Natty:
Report link

You can't really change the font size separately in the "Search and Replace" window. Also, there's no need to change the whole Visual Studio window size. Instead, you need to adjust the font for the environment and text editor separately. Here are my recommendations:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Владимир Оношко

79261294

Date: 2024-12-07 20:03:06
Score: 1
Natty:
Report link

I searched this functionality in Postman and found your this question. When i try this answer nothing worked. But i changed key pointing and tried remove the "." after indexing my key's (cars[0].car_img_1 -> cars[0]car_img_1).

So my solution this:

Image

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cho'girmali yigit

79261287

Date: 2024-12-07 19:55:05
Score: 2.5
Natty:
Report link

You Checkout this Github Wordpress Pluginn which i developed. not yet tested on live server.

https://github.com/naeemprasla/GitThemeSync

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

79261285

Date: 2024-12-07 19:55:04
Score: 9.5 🚩
Natty: 4.5
Report link

I am still seeing the same issue, but I cannot downgrade the version because the 1.6.x series have the dependency overt the old httpclient jar. so what should i do now?

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Blacklisted phrase (2): what should i do
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): seeing the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: JackMa

79261283

Date: 2024-12-07 19:54:04
Score: 0.5
Natty:
Report link

IMEX does have effect, but it works in a crazy way : It depends on what proportion of data is returned as text by theTypeGuessRows parameter.

Detailed explanation is available here : https://web.archive.org/web/20211215203520/https://www.etl-tools.com/imex1.html

My solution is to always set IMEX=1 with TypeGuessRows=1 AND ensure my Excel files always include a first "dummy" row with the data type I need the ADO driver to interpret data as. This is also explained in this article.

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): solution is
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AlexLaforge

79261276

Date: 2024-12-07 19:47:02
Score: 0.5
Natty:
Report link

Yes, a "set of elements" is potentially ambiguous, but in my opinion, what you have here is a TOC and thus all of the links are elements of the TOC. So I think it might be a reach to consider each nested list of links as a separate set.

As for as whether you can do this, if you look at the ARIA 1.3 docs, it says that "Authors SHOULD only mark one element in a set of elements as current with aria-current." That "should" is important. It means that it is strongly encouraged and considered a best practice, but it's not "illegal". So technically, it is permitted to have multiple aria-current attributes in a set and thus you "can" do it, but whether you should is another question.

Most accessibility professionals will tell you that the only way you can really determine what works best is to test with your users. My suggestion would be to start out as simple as possible and only make it more complex if you find out through feedback/testing that you need to do more. Thus, I would recommend you start with only one aria-current at a time and put it on the link for the actual section that is currently in view.

Reasons:
  • Blacklisted phrase (1): another question
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roland McLeod

79261270

Date: 2024-12-07 19:44:01
Score: 1.5
Natty:
Report link

I'd suggest that you make a server action for the api call. That way you just have to update the useEffect to call the server action instead of the direct fetch. Do not pass any auth or session data from the client to the server action directly, instead get fresh session auth/data on each request (server action call). And do not forget to validate the input before running the client input on the server, using a middleware is a very good solution in most cases.

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

79261267

Date: 2024-12-07 19:41:00
Score: 1.5
Natty:
Report link

I found out one more thing, if the line below is removed from the example it also works,

enableEdgeToEdge()

And, it work better for the devices which have on screen navigation buttons (back, recent and home button)

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

79261252

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

Welcome in 2022 (version of SQL Server). We can generate a series of numbers within a given interval and step between series values with GENERATE_SERIES function:

SELECT * FROM GENERATE_SERIES(1, 10000);

Source: https://learn.microsoft.com/en-us/sql/t-sql/functions/generate-series-transact-sql?view=sql-server-ver16

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

79261241

Date: 2024-12-07 19:24:57
Score: 1
Natty:
Report link

I see @partial = "workbar_work". When render (partial: workbar_work, ...) is not found, the _workbar_work.html.erb file. Because it is inside the work folder

$('#workbar_switch').html("<%= j render(partial: "work/#{@partial}", :locals => {exercise: @exercise@}) %>");

or

You can set @partial = "work/#{permitted_params[:partial].to_s}"

$('#workbar_switch').html("<%= j render(partial: @partial, :locals => {exercise: @exercise@}) %>");

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @exercise
  • User mentioned (0): @partial
  • User mentioned (0): @exercise
  • Low reputation (0.5):
Posted by: LihnNguyen

79261240

Date: 2024-12-07 19:23:55
Score: 4
Natty:
Report link

Any luck resolving this?

I am experiencing the same thing, and just created an Instance Tracker issue for it.

Reasons:
  • Blacklisted phrase (1.5): Any luck
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: Timothy Johns

79261239

Date: 2024-12-07 19:23:55
Score: 5
Natty: 4.5
Report link

My implementation that uses OSM https://github.com/joric/location-bot example Telegram bot https://t.me/joricslocationbot

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

79261236

Date: 2024-12-07 19:20:54
Score: 3.5
Natty:
Report link

Download and install Android studio gradle offline this actually decreased the build time to 45 seconds 30k files no wonder it takes so much time thanks for the answer i will get better hardware as soon as i can

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sam

79261234

Date: 2024-12-07 19:19:53
Score: 5
Natty:
Report link

Here are some resources that provide example code for discord.py slash commands:

Reasons:
  • Blacklisted phrase (1): How do i
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: cast

79261204

Date: 2024-12-07 19:06:50
Score: 3
Natty:
Report link

structuredClone was added in Node.js 17. So, update your Node.js to the latest version, and the issue will be fixed.

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

79261202

Date: 2024-12-07 19:05:50
Score: 2
Natty:
Report link

Yeah, Qt had massive growth in 2019. Still growing now, though the pace is different. Would be cool to know if insiders are investing in the company. I usually use prismo.pro for insider trade analytics. The problem is, they don’t have data on Qt as it’s a Finnish company but the platform only supports US-based stocks for now. They’ve promised to add European companies down the line, so I’m bookmarking it just in case.

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

79261197

Date: 2024-12-07 19:03:49
Score: 3
Natty:
Report link

Later, I download a ODBC Driver from github, and make a little change in the connect function: I write a cpp dll, extern the connect function to replace the native one, works good for me now.

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

79261195

Date: 2024-12-07 19:01:49
Score: 1.5
Natty:
Report link

I think you may run your terraform code from your local machine. So try to run you code in Azure environment such as Azure cloud shell then you may surprise that your terraform code will work well.

If you still need to run your terraform code from your local machine to provision azure resources. I think you may need to authenicate with service principal so you can follow this https://learn.microsoft.com/en-us/azure/developer/terraform/authenticate-to-azure-with-service-principle?tabs=bash

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

79261189

Date: 2024-12-07 18:57:48
Score: 0.5
Natty:
Report link

There are a lot of possible "right" and "not-right" ways of programming.

As you said, OOP aims to structure your code in order to do not lose your sanity when you will take back your code to code new features. Actually OOP is great for code design, watch about Design patterns and SOLID architecture for example...

BUT this is not the only reason. Let's suppose you wanna implement new functionalities like "police" or "bike" in a future. Actually you obviously can create a class and invoke that class from main.py. But when you implement a lot of these features you actually will have a gargantuan function which calls different classes in different modules and each time you have to modify one of these modules if class is not well written.

The best principle you can follow is Single-responsability (S of SOLID architecture), this means that one function has ONE responsability, so if car_generator is a function that generates car, actually should not generate bikes. In this way, when you will read your code again you know that car_generator doesn't implement bikes.

Now, you could think "Well, I rename car_generator in generator and I fix the problem". Actually you can, but the point is generator must do only one thing. When you add code in generator to check how many vehicles are in game in a specific time, you broke this principle and in 3 months you will forget that you added this functionality in this function.

Re-read your code now and think "do this function actually does only one thing?", if answer is yes, you can go over, but if in a future you program to implement a vehicle counter, you have to manage fact car_generator actually already does one thing, it creates vehicles.

You can extend this fact to modules too. main.py actually is like a wizard . It must invoke other functions and maintain a "logic" in your game. You can obviously instantiate objects in it, but what if one day you will have twenty classes each one creating twenty vehicles?

The problem is that car_generator is more a function which generates car so it should not stay in main.py. In this way, when you think "ok, I have to create a car" you know you have to visit and modify Car.py and not main.py.

Another thing is that actually you are "thinking" in C. That's really cool to start programming, but actually OOP is great cause of inheritance and polimorphism, two principles of OOP. You will understand why you prof. did this when you will meet these two principles.

I REPEAT: Your solution is not actually "clearly wrong" or "clearly good". Depends on what you will implement next. If the course teaches you that, probably it's because the tutor after years of coding found this is the most clear and beautiful way of creating this kind of things. I suggest you to read books and watch online tutorials of clean code and Design patterns to understand what your teacher is "implicitly saying"

Greetings

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

79261188

Date: 2024-12-07 18:57:48
Score: 0.5
Natty:
Report link

Solution extended from answer @smichr where I rewrote the list comprehension with 'for' loops so I can immediately solve the imaginary part, and put in the result through subs to get the final_result and update the dict. Then I check if the dicts are unique before returning the result.

result = sp.solve(AllEquestions, AllVariables, dict=True)
want = set(AllVariables)
unk = []
for s in result: #loop through all solutions
    for key, value in s.items(): #loop through individual values
        if value.is_real is None and value.free_symbols&want: #check if value is img and is free_symbol e.g. value = 1.03077640640442*I*(10.0 - z4) + 16.25
            result_img_part = sp.solve(sp.im(value), want) #solve only the img part e.g. result_img_part = [{z4: I*im(z4) + 10.0, re(z4): 10.0000000000000}]
            for result_real_part in result_img_part[0].values(): #search for the real part in the solution
                if result_real_part.is_real:
                    final_result = value.subs(list(value.free_symbols)[0], result_real_part) #solve the function (value) to get the real value
                    s[key] = final_result # update the dictionary
    unk.append(s) 

#return unique solutions
res = []
for _dict in unk:
    if _dict not in res:
        res.append(_dict)

if result == []:
    raise Exception("No solution found!")
else:
    return res

Final thoughts. Code should be further improved, in the case there are multiple free_symbols to solve the imaginary part.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @smichr
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Achaibou Karim

79261184

Date: 2024-12-07 18:54:48
Score: 2
Natty:
Report link

For whoever gets the same problem following code was wrong (Thanks to @tyg for finding)

            flow<T?> {
                try {
                    emit("Value")
                } catch (e: Exception) {
                    println("Something went wrong ${e.message}")
                }
            }.firstOrNull()

In this usage CancellationException getting caught and causes the log I posted in question.

The correct usage is at below.

            flow<T?> {
                emit("Value")
            }.catch { e ->
                println("Something went wrong ${e.message}")
            }.firstOrNull()
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @tyg
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mobile Dev

79261174

Date: 2024-12-07 18:47:46
Score: 0.5
Natty:
Report link

Ensure the image dimensions match those used in the original training dataset. If your dataset has different sizes, you might need to resize or crop them. For volumetric data, 3D resampling to match the voxel resolution can be necessary.If the original dataset used intensity normalization (e.g., scaling pixel values between 0 and 1), you’ll need to apply the same preprocessing to your dataset.

Convert your dataset into the format the model expects, or modify the data loader in the codebase to handle your dataset’s format. If your task requires ground truth labels (e.g., segmentation maps or landmarks for registration), ensure your dataset has corresponding labels and they are formatted correctly.

FBCT and CBCT images likely have different intensity distributions compared to the MRI images the model was initially trained on. You may need to retrain the model from scratch or use domain adaptation techniques (e.g., transfer learning). Modality-specific preprocessing might be necessary. For example, MRI images often have non-linear intensity variations that may not exist in FBCT/CBCT, so consider using preprocessing pipelines suited to your modalities. If the model is expecting a specific number of channels (e.g., grayscale or multi-modal input), ensure your data matches these requirements.

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

79261173

Date: 2024-12-07 18:47:46
Score: 1.5
Natty:
Report link

The problem is that design of Gaussian blur is isotropic, meaning it diffuses the intensity of each pixel equally in all directions.

You should try generating a binary mask of the black region, computing its distance transform, and than applying a scaling curve (exponential decay) to map the distance values to intensity values.

If I understood correctly what you are trying to achieve, reading this might help you with the realization.

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

79261158

Date: 2024-12-07 18:39:45
Score: 1
Natty:
Report link

I was trying to implement apple signin in an react-native expo app with firebase. I addeed all the steps and then encountered the error. This is what fixed it for me:

  1. Make sure you are signed in the simulator with your appleid
  2. Do a production build using xcode. Doing that might have added some entitlements that were missing before.
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sebastian Gomes

79261157

Date: 2024-12-07 18:38:45
Score: 3
Natty:
Report link

I found the solution here: https://www.youtube.com/watch?v=PeKq_cGZcnY Check if it helps you.

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Whitelisted phrase (-2): I found the solution
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alex Gevorkyan

79261155

Date: 2024-12-07 18:37:44
Score: 6.5
Natty: 7.5
Report link

how can i see only the modified/added content ?

Reasons:
  • Blacklisted phrase (0.5): how can i
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): how can i
  • Low reputation (1):
Posted by: Asaf Ben Shabat

79261134

Date: 2024-12-07 18:29:42
Score: 0.5
Natty:
Report link

Here is a field that comes close

{ IF { CreateDate \@ "ddd" } = "Mon" "{ CreateDate \@ "dddd d MMMM  yyyy" }" }
"{QUOTE
{SET Delay 1}
{SET Weekday 0}
{SET a{=INT((14-{CREATEDATE \@ M})/12)}}
{SET b{={CREATEDATE \@ yyyy}+4800-a}}
{SET c{={CREATEDATE \@ M}+12*a-3}}
{SET d{CREATEDATE \@ d}}
{SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045+Delay}}
{SET jd{=INT(jd/7)*7+Weekday}}
{SET e{=INT((4*(jd+32044)+3)/146097)}}
{SET f{=jd+32044-INT(146097*e/4)}}
{SET g{=INT((4*f+3)/1461)}}
{SET h{=f-INT(1461*g/4)}}
{SET i{=INT((5*h+2)/153)}}
{SET dd{=h-INT((153*i+2)/5)+1}}
{SET dd{=((dd<8)+(dd>14)*(dd<22))*7+dd}}
{SET mm{=i+3-12*INT(i/10)}}
{SET Limit{=IF((mm=2),28+((MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0)),IF((mm=4)+(mm=6)+(mm=9)+(mm=11)=1,30,31))}}
{SET yy{=100*e+g-4800+INT(i/10)}}
{IF{mm}> 28 "{SET dd{=dd+14-Limit}}{SET mm{=MOD(mm,12)+1}}{SET yy{=yy+(mm=1)}}"}
"{mm}-{dd}-{yy}" \@ "dddd, d MMMM yyyy"}" }
{ IF { CreateDate \@ "ddd" } = "Mon" "{ CreateDate \@ "dddd d MMMM  yyyy" }" }
"{QUOTE
{SET Delay 1}
{SET Weekday 0}
{SET a{=INT((14-{CREATEDATE \@ M})/12)}}
{SET b{={CREATEDATE \@ yyyy}+4800-a}}
{SET c{={CREATEDATE \@ M}+12*a-3}}
{SET d{CREATEDATE \@ d}}
{SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045+Delay}}
{SET jd{=INT(jd/7)*7+Weekday}}
{SET e{=INT((4*(jd+32044)+3)/146097)}}
{SET f{=jd+32044-INT(146097*e/4)}}
{SET g{=INT((4*f+3)/1461)}}
{SET h{=f-INT(1461*g/4)}}
{SET i{=INT((5*h+2)/153)}}
{SET dd{=h-INT((153*i+2)/5)+1}}
{SET dd{=((dd<8)+(dd>14)*(dd<22))*7+dd}}
{SET mm{=i+3-12*INT(i/10)}}
{SET Limit{=IF((mm=2),28+((MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0)),IF((mm=4)+(mm=6)+(mm=9)+(mm=11)=1,30,31))}}
{SET yy{=100*e+g-4800+INT(i/10)}}
{IF{mm}> 28 "{SET dd{=dd+14-Limit}}{SET mm{=MOD(mm,12)+1}}{SET yy{=yy+(mm=1)}}"}
"{mm}-{dd}-{yy}" \@ "dddd, d MMMM yyyy"}" }

It is based on one from Paul Edstein (macropod)'s tutorial. The date shown will be in the format Monday 9 December 2024 without the ordinal. I do not have the ability to format it that way. It is likely a bit more complex than would be needed.

Here is a CreateDate field formatted to use the ordinal form for the day of the month: { CreateDate \@ "dddd" } { CreateDate \@ "d" \* ordinal } of { CreateDate \@ "MMMM yyyy" }.

You should not try to type this field! Here is a link to a document containing the field and the process I used to construct it. You could copy and paste from it if it will meet your needs.

Otherwise, you could use this Add-In from MVP Graham Mayor to create the field from the text.

Here is my article on the Microsoft Answers site on Dealing with Fields.

See also the vba solution suggested at How to have Word VBA TypeText 45 days after today's date, but have it display the following Monday?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Charles Kenyon

79261124

Date: 2024-12-07 18:20:39
Score: 1.5
Natty:
Report link

The issue occurs because the Times.exactly(1) conflicts with the current MockServer API. When you specify Times.exactly(1), MockServer enforces strict validation to ensure the request is matched exactly once. If there's a mismatch, it throws an error.

Removing Times.exactly(1) defaults to allowing unlimited calls (Times.unlimited()), bypassing the strict validation and preventing the error.

Solutions: Simplify: Remove Times.exactly(1) if precise matching isn't critical. Update Syntax: Replace Times.exactly(1) with a method more aligned with the updated API as for example Times.once()

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

79261119

Date: 2024-12-07 18:17:38
Score: 5
Natty:
Report link

It can be installed https://www.python.org/ftp/python/3.10.6/ from python.org

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

79261111

Date: 2024-12-07 18:14:37
Score: 2
Natty:
Report link

when you convert old code to actual version of Unity change

using Cinemachine; 

to

using Unity.Cinemachine;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): when you
  • Low reputation (1):
Posted by: mikhail.kozin2013 Козин

79261108

Date: 2024-12-07 18:10:36
Score: 0.5
Natty:
Report link

Svelte needs instruction that data can be bound and may be reactive in the child-to-parent direction. This can be accomplished by using the $bindable() rune.

type Props = {
  data: PageData;
};

let { data = $bindable() }: Props = $props();

<input bind:value={data.product.name} />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amanda

79261105

Date: 2024-12-07 18:09:36
Score: 1
Natty:
Report link

My testing is showing that this is working properly with NVDA/Chrome but is producing the behavior you described with NVDA/Firefox. I was able to fix this by using aria-live=assertive instead of role=alert. I'm assuming there is a bug in NVDA when used with Firefox that is causing it to read the link text three times in alert roles.

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

79261101

Date: 2024-12-07 18:06:35
Score: 3.5
Natty:
Report link

You can do dag.active_trail_nodes("A", observed=["L", "D"])) instead

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrés Mireles

79261083

Date: 2024-12-07 17:56:33
Score: 2
Natty:
Report link

Understand the issue: Turbo C++ use c:\TURBOC3\INCLUDE as default path

You can see in this image

You can find this in Options->Directory

You can find this in Options->Directory

Two solutions here

  1. Update the PATH
  2. Mount the application directory (where you extract TURBOC3 folder) (EASY)

In my case: Mr.mohit extract TURBOC3 in home/mohit/_apps directory

enter image description here

so i user mount C: ~/mohit/_apps/

or either you can edit your config file by this cmd gedit .dosbox/dosbox-0.74-3.conf

enter image description here

Thank you 😄,
"Don't Give up MEN 💪"

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohit G

79261076

Date: 2024-12-07 17:51:31
Score: 1
Natty:
Report link

It is not currently possible using the tools currently available in tail sampling in the Otel Collector in Dec 2024.

This is because, you cannot filter out a specific NAME of a SPAN in a Trace.

Why? Because the match happens for ANY span in a Trace, ANY child span not named 'MyEvent' INSIDE the 'MyEvent' root level span/trace, WILL BE MATCHED. And this causes us to capture all traces again.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: James

79261062

Date: 2024-12-07 17:40:28
Score: 1.5
Natty:
Report link

December 2024 and the problem is still there, solution is delete proxy from both local and global gradle.properties

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: kamal douma

79261031

Date: 2024-12-07 17:16:23
Score: 2
Natty:
Report link

I think you can try to add the Headers with User Agents to your request

Like:

headers = { 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8", 'User-Agent': "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0" }

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

79261027

Date: 2024-12-07 17:14:22
Score: 1
Natty:
Report link

Eu resolvi simplesmente criando uma constante com a string svg da imagem entre

Exemplo:

const imgSvg = <svg .... </svg>

E no docDefinition {

 -- Onde usar imagem
 {
   svg: imgSvg,
   wid..: 80,
   hei ..:80,
  },

}

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: José de Ávila de Avila

79261020

Date: 2024-12-07 17:10:21
Score: 1
Natty:
Report link

@Dexxe's answer worked for me as did quickSuggestions: false:

var editor = monaco.editor.create(document.getElementById("editorContainer"), {
  value: jsCode,
  language: "typescript", //can use your custom language here
  quickSuggestions: false,
});
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Dexxe's
  • Looks like a comment (1):
Posted by: HyperActive

79260995

Date: 2024-12-07 17:00:19
Score: 2.5
Natty:
Report link

Solved it. Both my server and browser were on the same (local) network. My browser could not access the FQDN, so Google Meet, started in my browser, could also not access the FQDN. When I start Google Meet from a browser not connected to my LAN it all went fine.

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

79260980

Date: 2024-12-07 16:52:18
Score: 3
Natty:
Report link

Sometimes the Issue Template doesn't show up due to incorrect format. You can see if there is anything wrong with the template by going to the file in the GitHub itself.

https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms

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

79260976

Date: 2024-12-07 16:51:18
Score: 0.5
Natty:
Report link

Try this :

<script> 
document.addEventListener('alpine:init', () => {
    Alpine.data('MyForm', () => ({ 
        title: @json($post->title),
    })) 
 }) 
</script> 
Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RedocTsuj

79260974

Date: 2024-12-07 16:49:17
Score: 2
Natty:
Report link

You're not handling the event. The buttons default click event will submit the page.

acc[i].addEventListener("click", function(event) { event.preventDefault();...

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

79260970

Date: 2024-12-07 16:47:15
Score: 7.5 🚩
Natty: 5
Report link

Somebody answer this I am looking for the answers for a long time https://stackoverflow.com/staging-ground/79260969

Reasons:
  • Blacklisted phrase (2): I am looking for
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nick Pap

79260966

Date: 2024-12-07 16:42:14
Score: 2
Natty:
Report link

After following @sir Rufo suggestion by using "dotnet publish" for single file deployment, I started a comprehensive search and came across the solution below. I tried it and it worked perfectly!!! :)

-In the solution explorer of your project, you need to edit the ".csproj" file by adding the following

true true none win-x64 true

-Once that is added, you need to run "dotnet publish -c Release -o publish" -Rebuild the project, then you will notice a folder called "publish" in your project directory

*Thank you all so very much for trying to help, I'm glad I have folks like you in my life. I hope the solution above can benefit others!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @sir
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sammie

79260964

Date: 2024-12-07 16:39:11
Score: 16 🚩
Natty: 5
Report link

I have the same problem enter image description here

I also try add powerline font to VSCode Setting and it's the same as terminal font but issue still occurs: enter image description here enter image description here

Could u please help me to fix it? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (1): help me to fix
  • RegEx Blacklisted phrase (3): Could u please help me to fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: LV_Embedded

79260951

Date: 2024-12-07 16:30:09
Score: 1.5
Natty:
Report link

Ok it's solved by just using 2 bool markers. They act according to their logical names

send_name_button_event_was_triggered = False
send_name_button_event_was_finished = False

code https://pastebin.com/hJx1Y80c

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

79260944

Date: 2024-12-07 16:22:07
Score: 1
Natty:
Report link

There's a good chance the data is outdated (in my experience those reports aren't updated very frequently, especially if the URLs aren't regularly crawled). I can't see any noindex directive via my browser (server-side HTML, rendered HTML, or HTTP headers) so this is probably the case assuming your website isn't serving differently depending on user-agent/IP.

As Tony suggested, try inspecting an example URL in GSC and see if it reports the noindex in a live test. If not, validating the issue in GSC should "fix" it although it might take some time for all of them to be re-crawled and indexed.

Failing that, you'll probably have better luck with asking the GSC Help Community.

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

79260935

Date: 2024-12-07 16:15:05
Score: 3.5
Natty:
Report link

The dependencies you introduced may be in conflict with each other

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

79260934

Date: 2024-12-07 16:14:05
Score: 1.5
Natty:
Report link

this is the problem: for example https://docs.google.com/forms/d/{formId}/edit is your edit link when you change "edit" to "viewform": https://docs.google.com/forms/d/{formId}/viewform google will imediately change your {formId} to a random Id this is for your security so that no one can get access to your edit form

but you can try another option make a copy of your form each time u need a new id and save all the respond in one sheet i'm building it now so i don't have the right code for u but trust me it's work

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Khang Doan phuc

79260920

Date: 2024-12-07 16:05:02
Score: 5.5
Natty:
Report link

i am also trying to implement that now , can i contact with u for some doubt clearing.

Reasons:
  • Blacklisted phrase (2): can i contact
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rohit Ranaware

79260917

Date: 2024-12-07 16:04:02
Score: 1
Natty:
Report link

It depends what authentication method you are using to "deploy". More detail is needed to actually answer here.

Are you talking about infrastructure deployment or application deployment. In either case the most likely issue is that whatever authentication solution you are using to "deploy" such as a service principle, most likely only has the correct role/permissions in the scope of you development environment. Which again I can only assume and guess based on the lack of information would be in a separate subscription to your production one.

Make sure that whatever authentication method you are using has the correct roles to perform the desired actions within the correct scope.

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

79260916

Date: 2024-12-07 16:04:02
Score: 1.5
Natty:
Report link

I found out the answer;

It's because my Supports Live Activities key was in the widget's Info.plist instead of my main target!

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

79260914

Date: 2024-12-07 16:02:00
Score: 11.5 🚩
Natty:
Report link

I'm also facing the same. Were you able to figure out the issue?

Reasons:
  • RegEx Blacklisted phrase (3): Were you able to figure out
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Manan Raja