79369669

Date: 2025-01-19 20:06:58
Score: 3.5
Natty:
Report link

If you have a Swagger/OpenAPI doc then you could find useful the tool like swagger-coverage-cli

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

79369659

Date: 2025-01-19 19:54:55
Score: 3.5
Natty:
Report link

Turns out all the div needed was a "position: absolute !important;" style.

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

79369657

Date: 2025-01-19 19:54:55
Score: 2.5
Natty:
Report link

Fill the values by '####' or unknown, then convert it Sometimes we can't convert before fill or drop the missing data if its a lot

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rama Al saket

79369650

Date: 2025-01-19 19:47:54
Score: 1
Natty:
Report link

To highlight focused tab one can clone konsole repo and add some code there.

src/widgets/TerminalHeaderBar.h, class TerminalHeaderBar definition:

private:
    QPalette m_palette = QPalette();

src/widgets/TerminalHeaderBar.cpp, TerminalHeaderBar::paintEvent() implementation:

void TerminalHeaderBar::paintEvent(QPaintEvent *paintEvent)
{
    if (m_terminalIsFocused) {
        m_palette.setColor(QPalette::WindowText, QColor(200, 200, 50));
        m_palette.setColor(QPalette::Window, QColor(50, 50, 0));
    } else {
        m_palette.setColor(QPalette::WindowText, QColor(200, 200, 200));
        m_palette.setColor(QPalette::Window, QColor(46, 48, 43));
    }

    setPalette(m_palette);

enter image description here

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

79369646

Date: 2025-01-19 19:46:54
Score: 1
Natty:
Report link

Update the Kotlin version in your build.gradle (project level) to 1.9.0:

plugins {
    id "org.jetbrains.kotlin.android" version "1.9.0" apply false
}

Sync your project and run ./gradlew clean build.

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

79369645

Date: 2025-01-19 19:46:54
Score: 1.5
Natty:
Report link

two-liner:

cumsum = ts.cumsum().ffill()
(pd.Series(np.where(ts.isna(), -cumsum, np.nan)).ffill().fillna(0) + cumsum).fillna(0)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vito Anania

79369640

Date: 2025-01-19 19:45:54
Score: 1.5
Natty:
Report link

Alpine linux container or bare installation, simple way as root:

apk add python3

apk add py3-setuptools

apk add py3-pip

You can try to use --update or --no-cache too.

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

79369639

Date: 2025-01-19 19:45:53
Score: 4.5
Natty:
Report link

I'm new to their API too, but searching around it seems like you actually want the POST version batch-get endpoint, from either the BIM360 API or the ACC API, not the Data Management API.

Xiaodong Liang posted an article about it here: https://aps.autodesk.com/blog/custom-attributes-apis-bim-360-document-are-now-public-beta.

He also has a related question/answer here: Not able to get custom attribute data from Autodesk BIM360 for data management API

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Zulphide

79369636

Date: 2025-01-19 19:42:52
Score: 5
Natty:
Report link

After continuing to work on this Issue, I think one "problem" that I have had to date is to think of our modules too much as a compartment within our app_server.R that can be "paused" as a group and not as an elegant namespace solution that it should be.

Any ideas how I can use the currently displayed tabname ("assumptionsa","assumptionsb") to influence whether the input$sidebar_selected_ety_id will invalidate the session_tbl() within each module? How does shiny namespace reactives?

Reasons:
  • Blacklisted phrase (1): Any ideas
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Christian Bodenstein

79369633

Date: 2025-01-19 19:41:51
Score: 2
Natty:
Report link

It seems to me that if you don't need any actual formatting then the concatenation operator would probably be fairly simple to do.

splash:evaljs('document.querySelectorAll("a[title*=further]")['..myVar..']')

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

79369615

Date: 2025-01-19 19:31:49
Score: 1
Natty:
Report link

Async fixtures in pytest need to be marked with @pytest_asyncio.fixture so that they get awaited before passing to the test. The error message tells you that you're getting a coroutine passed into your test method rather than the results of the coroutine being executed.

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

79369613

Date: 2025-01-19 19:30:49
Score: 1
Natty:
Report link

on Kali Linux (also Debian based), the message; 'error: cannot communicate with server: Post "http://localhost/v2/snaps/snapd": dial unix /run/snapd.socket: connect: no such file or directory' Is solved with something like this;

└─$ sudo systemctl unmask snapd.service [sudo] password for cicada:

┌──(cicada㉿blackkali)-[~] └─$ sudo systemctl enable snapd.service Created symlink '/etc/systemd/system/multi-user.target.wants/snapd.service' → '/usr/lib/systemd/system/snapd.service'.

┌──(cicada㉿blackkali)-[~] └─$ sudo systemctl start snapd.service

┌──(cicada㉿blackkali)-[~] └─$ sudo snap install snap-store

Then you may see; 2025-01-20T02:18:17+07:00 INFO Waiting for automatic snapd restart... snap-store (2/stable) 0+git.7a3a49a6 from Canonical✓ installed WARNING: There is 1 new warning. See 'snap warnings'.

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

79369610

Date: 2025-01-19 19:29:48
Score: 4
Natty: 4
Report link

the publisher id start with: "ca-" you code no have it.

the correct is: ca-pub-xxxxxxxxxxxxxxxx

see: https://support.google.com/adsense/answer/9274516?hl=en&sjid=8011425263000445431-NA

and: https://support.google.com/adsense/answer/10762946?hl=en&ref_topic=9183242&sjid=8011425263000445431-NA#:~:text=Hiding%20unfilled%20ad-,units,-using%20CSS

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Filler text (0.5): xxxxxxxxxxxxxxxx
  • Low reputation (1):
Posted by: Diego Sanchez

79369600

Date: 2025-01-19 19:19:46
Score: 0.5
Natty:
Report link

First you should add !important to your slider styles and then instead of top: 0; you should write top: -59px !important; (59px is the size of the navbar).

Here is the corrected functional code:

Codepen

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #8b5656;
}

.navbar {
    --margin: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    width: calc(100vw - 2 * var(--margin));
    z-index: 1000;
    border-radius: 80px;
    margin-left: var(--margin);
    margin-right: var(--margin);
    padding: 12px 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.carouselslide{
    width: 100%; 
    height: 700px;
    overflow: hidden;
    position: relative;
    top: -59px !important;
}

.carouselslide img {
    filter: blur(8px);
    filter:brightness(0.3);
}
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
    <link rel="stylesheet" href="/Projeto Final/styles.css">
<!-- Nav bar-->

<nav class="navbar navbar-expand-lg">
          <a class="navbar-brand" href="#">
            <img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fclipground.com%2Fimages%2Fstackoverflow-logo-9.png&f=1&nofb=1&ipt=0765153ba1b0a57a6befd023995864bfb1337b7daee2a4d8360747a2051096cc&ipo=images" alt="Logo" width="30" height="30" class="d-inline-block align-text-top img-fluid">
            FlokkiFur </a>
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <i class="bi bi-list-nested"></i>
          </button>
  <div class="navbar-collapse collapse justify-content-between align-items-center w-100" id="navbarSupportedContent">
      <ul class="navbar-nav mx-auto text-md-center text-left">
          <li class="nav-item">
              <a class="nav-link" href="#top">HOME</a> 
          </li>
          <li class="nav-item">
              <a class="nav-link" href="#cartoes">PORTFOLIO</a>
          </li>
          <li class="nav-item">
              <a class="nav-link" href="#">ABOUT ME</a> 
          </li>
          <li class="nav-item">
              <a class="nav-link" href="#">CONTACT</a> 
          </li>
      </ul>
      <ul class="nav navbar-nav flex-row justify-content-md-center justify-content-start flex-nowrap">
          <li class="nav-item"><a class="nav-link" href="..." target="_blank"><i class="bi bi-twitter"></i></a> </li>
          <li class="nav-item"><a class="nav-link" href="..." target="_blank"><i class="bi bi-instagram"></i></a> </li>
          <li class="nav-item"><a class="nav-link" href="..." target="_blank"><i class="bi bi-tiktok"></i></a> </li>
      </ul>
</nav>

<!-- Bg carossel-->

    <div id="fotosCarousel" class="carouselslide carousel-fade" data-bs-ride="carousel" data-bs-pause="false">
      <div class="carousel-inner">
        <div class="carousel-item active">
            <img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fpreview.redd.it%2Fzfohxnf8t3pa1.jpg%3Fwidth%3D1024%26format%3Dpjpg%26auto%3Dwebp%26v%3Denabled%26s%3D0f660e0a56476991ee3b97f2885d8c010fec5b97&f=1&nofb=1&ipt=abc443565a4307bf540effd4e35273c0e8a9c3242503f6956ce59029b3e53501&ipo=images" class="d-block w-100" alt="...">
        </div>
        <div class="carousel-item">
            <img src="https://softauthor.com/wp-content/uploads/2021/08/CSS-Background-Image-Full-Screent-With-background-Image-1536x1355.png" class="d-block w-100" alt="...">
        </div>
        <div class="carousel-item">
            <img src="https://wonderfulengineering.com/wp-content/uploads/2014/10/image-wallpaper-15.jpg" class="d-block w-100" alt="...">
        </div>
      </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eliseo

79369599

Date: 2025-01-19 19:19:46
Score: 2.5
Natty:
Report link

I had similar issue and it was due to version of Spring

https://docs.spring.io/spring-ai/reference/getting-started.html -> Spring AI supports Spring Boot 3.2.x and 3.3.x

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>3.3.5</version>
    <relativePath/>
</parent>
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29269932

79369597

Date: 2025-01-19 19:17:45
Score: 3.5
Natty:
Report link

There are lists of supported css by gmail (I don't have a link but you can probably visit: https://globalverifyed.com

https://globalverifyed.com/buy-new-usa-gmail-accounts

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

79369596

Date: 2025-01-19 19:17:45
Score: 2.5
Natty:
Report link

Find a file called Firebase.Editor (on my project is in Assets/Editor/Firebase.Editor.dll), click on it, and on the inspector uncheck "Validate References".

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

79369592

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

xterm has block select as of version 397 if compiled with --enable-block-select. The default binding is:

Meta <Btn1Down>:select-start(block)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: adsr

79369591

Date: 2025-01-19 19:14:44
Score: 3.5
Natty:
Report link

i use windows but old value = GOOS=linux then i change to GOOS=windows it work

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

79369579

Date: 2025-01-19 19:08:43
Score: 3.5
Natty:
Report link

Are you looking for the POST projects/:project_id/storage endpoint, which creates a storage location in the OSS where files can be uploaded to?

I'm guessing they may have retired the BIM360 documentation, this is the one I've been testing with: https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-storage-POST/.

I recall running into either the same or a similar error when I tried to use the root folder ID. Do you know if your folder ID is the root folder or a sub folder?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Zulphide

79369577

Date: 2025-01-19 19:07:42
Score: 3
Natty:
Report link

Got the same error , but i was on a server , simply had to generate the client "npx prisma generate"

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

79369575

Date: 2025-01-19 19:05:42
Score: 4
Natty: 4
Report link

Supwi primary school is the school that I did my grade one to grade seven

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

79369572

Date: 2025-01-19 19:04:41
Score: 2
Natty:
Report link

Would you like to check out a similar project where everything works correctly for all browsers? Hierarchical HTML Entitling.

You will find the documentation page and an HTML sample.

You are welcome to ask further questions.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79369570

Date: 2025-01-19 19:03:41
Score: 2.5
Natty:
Report link

You can try Doqlens https://doqlens.com/retreview.

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

79369560

Date: 2025-01-19 18:55:39
Score: 0.5
Natty:
Report link

I don't know of a way to return true or false. But usually you just want to use the string, and assert that it's a string literal (at least this is what I needed in some code). I developed a macro that returns the string value if it is a string literal, but breaks the compilation if it is not:

#define string_literal(s)  ("" s "")

This is quite safe against accidental misuses. One can still break it (thanks to @chqrlie https://stackoverflow.com/users/4593267/chqrlie for showing the way to break it): string_literal(""[0] + p + *""), but that code looks suspicious anyway, so I wouldn't call it unsafe.

You can make it more robust, at the expense of some readability:

#define NELEMS(a)  (sizeof(a) / sizeof((a)[0]))
#define string_literal(s)  ("" s "" + 0 * NELEMS(s))

This will warn about non-arrays in some recent compilers. GCC would warn with -Wsizeof-pointer-div. In C2y, there will be a new keyword that will make it a constraint violation, which will make it more robust. See https://thephd.dev/the-big-array-size-survey-for-c.


Actually, I only used this for calling strdupa(3) safely. Thus, I skipped the string_literal() macro entirely, and wrote a wrapper macro around strdupa(3) that made sure that it was always called with a string literal as argument:

#define STRDUPA(s)  strdupa("" s "")

I considered implementing it in the following way for more robustness, but for simplicity and readability reasons, I have stayed with the implementation above. Anyway, here it is:

#define STRDUPA(s)  strndupa("" s "", NITEMS(s))
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @chqrliefor
  • High reputation (-1):
Posted by: alx - recommends codidact

79369559

Date: 2025-01-19 18:52:39
Score: 1
Natty:
Report link

Replace Your Code in Model `save()` Function

if($this->upload->do_upload('img')){
  // Get data about the file
  $uploadData = $this->upload->data();
  $file_name = $uploadData['file_name'];
  $data['response'] = 'successfully uploaded '.$file_name;
}else{
  $data['response'] = 'failed';
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sawan Shakya

79369542

Date: 2025-01-19 18:45:37
Score: 3.5
Natty:
Report link

I was able to find the error myself. When importing, I added the parent folder “MyApp”. Now I have used the “myapp” folder within it. This solved the problem.

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

79369540

Date: 2025-01-19 18:45:37
Score: 1.5
Natty:
Report link

In Objective-C, where

  1. 'self...is a UIView object
  2. 'txtNotes' is a UITextView object...what works for me is:

[self.view.superview bringSubviewToFront: txtNotes];

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: RichApple

79369534

Date: 2025-01-19 18:41:36
Score: 3.5
Natty:
Report link

I have updated the (really great) example provided by daniel-cruz to get it working with current reactflow version. See it here: https://codesandbox.io/p/sandbox/pensive-cohen-lv4hfx

There are also some other changes:

P.S. I am very new to react/web app development (just for 2 days now), it means some parts probably can be made much better.

Example for editable edge in reactflow

Reasons:
  • Blacklisted phrase (1): days now
  • RegEx Blacklisted phrase (1.5): I am very new
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Wladi

79369517

Date: 2025-01-19 18:31:33
Score: 5.5
Natty:
Report link

Have you added env files to the production?

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

79369504

Date: 2025-01-19 18:22:32
Score: 2
Natty:
Report link

I had the same issue. Solved by connecting my network to a shieldvpn. It installed successfully.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sheryar Ahmed

79369499

Date: 2025-01-19 18:14:30
Score: 2.5
Natty:
Report link

Thank you for this answer. I had the same problem in the django installment. "python -m pip install django" this command is worked at my machine

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sonali Liyanahetti

79369493

Date: 2025-01-19 18:09:30
Score: 2
Natty:
Report link

The following code uses the MusicBrainz API to find all artist relations of Queen - Made in Heaven. It uses musicbrainz-api, a module I wrote, to ease communication with the MusicBrainz API.

async function findReleaseGroup(mbApi, artist, title) {
  const query = `artist:"${artist}" AND release:"${title}"`;
  console.log('Resolving release group: ' + query);
  const result = await mbApi.search('release-group', {query});
  return result.count > 0 ? result["release-groups"][0] : undefined;
}

async function findAllRelatedArtist(mbApi, mbidRelease) {
  // Lookup metadata Queen: "Made In Heaven" release group
  const mbidMadeInHeaven = '780e6a16-9384-307d-ae65-02e1d6313753';
  const relInfoGrp = await mbApi.lookup('release-group', mbidMadeInHeaven, ['releases', '']);
  let release = relInfoGrp.releases[0]; // Pick the first (some) release from the release-group
  console.log(`Using Release MBID=${release.id}`);
  release = await mbApi.lookup('release', release.id, ['artists', 'recordings']);
  
  const seenRelations = new Set(); // Set to track unique relations

  for(const media of release.media) {
    for(const track of media.tracks) {
      const recording = await mbApi.lookup('recording', track.recording.id, ['artists', 'artist-rels']);
      for(const relation of recording.relations) {
        const relationKey = `${relation.type}-${relation.artist.name}`; // Create a unique key
        if (!seenRelations.has(relationKey)) {
          seenRelations.add(relationKey); // Add the key to the set
          console.log(`relation ${relation.type}: ${relation.artist.name}`); // Print unique relation
        }
      }
    }
  }
}

async function run() {
  console.log('Loading musicbrainz-api...');
  const {MusicBrainzApi} = await import('https://cdn.jsdelivr.net/npm/[email protected]/+esm');
  const mbApi = new MusicBrainzApi({
    appName: 'stackoverflow.com/questions/74498924',
    appVersion: '0.1.0',
    appContactInfo: 'Borewit',
  });
  const releaseGroup = await findReleaseGroup(mbApi, "Queen", "Made in Heaven");
  console.log(`Using Release Group MBID=${releaseGroup.id}`);
  await findAllRelatedArtist(mbApi, releaseGroup.id);
}

run().then(() => {
  console.log('The End.');
}, err => {
  console.error(err);
});

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Borewit

79369491

Date: 2025-01-19 18:07:29
Score: 1
Natty:
Report link

it is disabling the time slots but not according to what I want ,I wanted it to disable the time slots according to IST time zone but it was disabling according to UTC time , that was the problem I was facing but I got the answer to this , so I installed vercel in my vs code and deployed it to vercel through cli and I found the logs on the vercel project which i deployed through cli and the website was deployed on vercel only so I found that my server was in washington DC and when I was doing new Date() it was giving the local time zone of washington and not UTC time , as vercel and many other cloud platforms by default work in UTC only this thing I knew but it was not working and I had to explicitely mention .toIsoString() to get date in utc , also I did correction on the disabling dates logic ,earlier what I was doing was that I was creating a new Date by giving time and date to create a new Date so this was in utc and I thought it was in local time which was wrong on my side , I wanted some specific time of the selected date like 9:00 am, 10:00 am etc of ist and I was comparing it with current ist date ,if curr date time is greater than the time slots date and time like 9:00 or 10:00 etc then it would disable it but the mistake which I was making was that I was giving date and time to new Date () and thought it was local date and time but it was utc date and time and I was comparing utc time with curr Date because of which It was providing disabling according to utc time ,so what I did was first got the local date and specific time (9:00,10:00 etc) through datefns library I converted it into utc time using and then again converted that utc time to local time and then compared currDate with the formed date and if the currDate is greater than input date time then it will get disabled so now the logic is working correctly .

let {date}=req.params;
     console.log(date);
   
     const services = await Service.find({});
      const orders = await Order.find({date:date});
     
      let bookedTime = [];
      if(orders.length){
       bookedTime =orders.map((ord) => {
         return ord.time;
       });
      }
      
     const allTime = ["09:00","10:00","11:00","12:00","14:00","15:00","16:00","17:00","19:00","20:00"];
     let inputDateTime = [];

     const utcDate = new Date().toISOString();  // Current UTC time
     console.log("new Date() .to isostring : ",utcDate);
     const timeZone = 'Asia/Kolkata'
// Convert to IST (UTC + 5:30)
const istDate = dateFnsTz.toZonedTime(utcDate,timeZone);
console.log("backend ist date : ",istDate);
let currDate = istDate.getTime();

      for(let j=0;j<allTime.length;j++) {
        console.log(allTime[j]);
        let inputDateTimeString = `${date} ${allTime[j]}:00`;
    
// console.log(dateFnsTz);
// Convert to UTC
const utcDateTime = dateFnsTz.fromZonedTime(inputDateTimeString, timeZone);
       
        console.log("inputDate utc : ",utcDateTime);
        inputDateIST=dateFnsTz.toZonedTime(utcDateTime,timeZone);
        console.log( "input Date ist : ",inputDateIST);
    
        inputDateTime[j] = inputDateIST.getTime();
      }
      console.log('currDate in backend:',currDate);
console.log('inputDateTime in backend:', inputDateTime);

     res.render("orders/newTwo.ejs",{services,bookedTime,date,allTime,inputDateTime,currDate});
 

Note: the major reason behind this confusion , which I think was that when we run new date() in local environment and do console.log(date)then it prints date in utc and not localtime but internally it stores local time ,it is because of Node js which is running the javascript in our system it by default prints utc date even if the date stored is in localtime and on server side the new Date () by default gives utc date for many cloud platforms like vercel, it does it knowingly to standardise the server side configuration so that it is not dependent on server location, basically to standardise the process it uses utc by default on server side .

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Harsh

79369487

Date: 2025-01-19 18:05:28
Score: 0.5
Natty:
Report link

okay im stupid i did a rookie mistake and called load_data before _metier_map is init so it was just

class FleetManager:
    def __init__(self, json_path='component/default.json'):
        
        self.current_fleet_index = 0
        self.__metier_map = {
            "Pilote": Pilote,
            "Technicien": Technicien,
            "Armurier": Armurier,
            "Marchand": Marchand,
            "Entretien": Entretien
        }
        self.party = self.load_data(json_path)

instead of :

class FleetManager:
    def __init__(self, json_path='component/default.json'):
        self.party = self.load_data(json_path)
        self.current_fleet_index = 0
        self.__metier_map = {
            "Pilote": Pilote,
            "Technicien": Technicien,
            "Armurier": Armurier,
            "Marchand": Marchand,
            "Entretien": Entretien
        }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user29268996

79369481

Date: 2025-01-19 18:02:27
Score: 1
Natty:
Report link

To set up your domain, you’ll need to use an A Record for the root domain because GoDaddy doesn’t allow CNAMEs for the root (@). In your GoDaddy DNS settings, add an A Record with the name @ and point it to Railway's IP address, which you can find in their settings or documentation. This connects your root domain (myapp.com) directly to Railway.

For www.myapp.com, you’ll use a CNAME since subdomains can have CNAMEs. Add a CNAME record with www as the name and myapp.com as the value. This makes www.myapp.com point to the same place as the root domain.

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

79369474

Date: 2025-01-19 17:59:26
Score: 2
Natty:
Report link

Or another viable solution is using PartiQL

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

79369469

Date: 2025-01-19 17:56:26
Score: 1.5
Natty:
Report link

enter image description here

  1. Go to -> "Edit Configurations" from the menu options
  2. Click on "+" Add sign to add new configuration
  3. Add "dotnet-watch" configuration (this will effectively run dotnet watch run --project <path-to-your-project>)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sharukh Rahman

79369464

Date: 2025-01-19 17:54:24
Score: 9.5 🚩
Natty:
Report link

Thanks to advices from all, I was able to create following code:

package taskbar_test;

import com.sun.glass.ui.Window;
import javafx.application.Application;
import javafx.stage.Stage;
import taskbar_test.gen.CLSID;
import taskbar_test.gen.ITaskbarList3;
import taskbar_test.gen.ITaskbarList3Vtbl;
import taskbar_test.gen.ShObjIdl_core_h;

import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
import java.lang.foreign.ValueLayout;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class FxWinTaskbar extends Application {

    public static final String GUID_FORMAT = "{%s}";

    // CLSID of ITaskbarList3
    public static final String CLSID_CONST = "56FDF344-FD6D-11d0-958A-006097C9A090";
    // IID of ITaskbarList3
    public static final String IID_CONST = "EA1AFB91-9E28-4B86-90E9-9E9F8A5EEFAF";

    @Override
    public void start(Stage stage) throws Exception {
        var button = new javafx.scene.control.Button("Click Me");
        button.setOnAction(e -> handleClick());

        var root = new javafx.scene.layout.StackPane(button);
        var scene = new javafx.scene.Scene(root, 300, 200);

        stage.setTitle("JavaFX Stage with Button");
        stage.setScene(scene);
        stage.show();
    }

    void handleClick() {
        long rawHandle = Window.getWindows().getFirst().getRawHandle();
        Executors.newSingleThreadExecutor().submit(() -> {
            try (var arena = Arena.ofConfined()) {
                // https://learn.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-clsidfromstring#remarks
                // The CLSID format is {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.
                var clsidString = arena.allocateFrom(GUID_FORMAT.formatted(CLSID_CONST), StandardCharsets.UTF_16LE);
                var iidString = arena.allocateFrom(GUID_FORMAT.formatted(IID_CONST), StandardCharsets.UTF_16LE);
                var clsid = arena.allocate(CLSID.layout());
                var iid = arena.allocate(CLSID.layout());
                var taskbarPtr = arena.allocate(ShObjIdl_core_h.C_POINTER);
                MemorySegment windowHandle = arena.allocate(ValueLayout.ADDRESS, rawHandle);

                int hr = ShObjIdl_core_h.CoInitializeEx(MemorySegment.NULL, ShObjIdl_core_h.COINIT_MULTITHREADED());
                if (hr != ShObjIdl_core_h.S_OK()) {
                    throw new RuntimeException("CoInitialize failed with error code: " + hr);
                }

                hr = ShObjIdl_core_h.CLSIDFromString(clsidString, clsid);
                if (hr != ShObjIdl_core_h.S_OK()) {
                    throw new RuntimeException("CLSIDFromString failed with error code: " + hr);
                }

                hr = ShObjIdl_core_h.IIDFromString(iidString, iid);
                if (hr != ShObjIdl_core_h.S_OK()) {
                    throw new RuntimeException("IIDFromString failed with error code: " + hr);
                }

                hr = ShObjIdl_core_h.CoCreateInstance(clsid, MemorySegment.NULL, ShObjIdl_core_h.CLSCTX_ALL(), iid, taskbarPtr);
                if (hr != ShObjIdl_core_h.S_OK()) {
                    if (hr == ShObjIdl_core_h.REGDB_E_CLASSNOTREG()) {
                        System.out.println("COM class is not registered!");
                    }
                    throw new RuntimeException("CoCreateInstance failed with error code: " + hr);
                }
                var taskbarAddress = taskbarPtr.get(ValueLayout.ADDRESS, 0);
                var taskbarInstance = ITaskbarList3.reinterpret(taskbarAddress, arena, memorySegment -> {
                    System.out.println("Some cleanup...");
                });

                ITaskbarList3Vtbl.HrInit.Function functionHrInit = _x0 -> {
                    System.out.println("HrInit called");
                    return ShObjIdl_core_h.S_OK();
                };
                MemorySegment functionHrInitPtr = ITaskbarList3Vtbl.HrInit.allocate(functionHrInit, arena);

                var taskbarVtbl = ITaskbarList3.lpVtbl(taskbarInstance);
                hr = ITaskbarList3Vtbl.HrInit.invoke(functionHrInitPtr, taskbarVtbl);
                if (hr != ShObjIdl_core_h.S_OK()) {
                    throw new RuntimeException("HrInit failed with error code: " + hr);
                }

                ITaskbarList3Vtbl.SetProgressState.Function functionSetProgressState = (_x0, _x1, _x3) -> {
                    System.out.println("SetProgressState called");
                    return ShObjIdl_core_h.S_OK();
                };
                MemorySegment functionSetProgressStatePtr = ITaskbarList3Vtbl.SetProgressState.allocate(functionSetProgressState, arena);
                ITaskbarList3Vtbl.SetProgressState.invoke(functionSetProgressStatePtr, taskbarVtbl, windowHandle, ShObjIdl_core_h.TBPF_NORMAL());

                ITaskbarList3Vtbl.SetProgressValue.Function functionSetProgressValue = (_x0, _x1, _x2, _x3) -> {
                    System.out.println("SetProgressValue called");
                    return ShObjIdl_core_h.S_OK();
                };
                MemorySegment functionSetProgressValuePtr = ITaskbarList3Vtbl.SetProgressValue.allocate(functionSetProgressValue, arena);
                ITaskbarList3Vtbl.SetProgressValue.invoke(functionSetProgressValuePtr, taskbarVtbl, windowHandle, 50, 100);

                ITaskbarList3Vtbl.Release.Function functionRelease = _x0 -> {
                    System.out.println("Release called");
                    return ShObjIdl_core_h.S_OK();
                };
                MemorySegment functionReleasePtr = ITaskbarList3Vtbl.Release.allocate(functionRelease, arena);

                hr = ITaskbarList3Vtbl.Release.invoke(functionReleasePtr, taskbarVtbl);
                if (hr != ShObjIdl_core_h.S_OK()) {
                    throw new RuntimeException("Release failed with error code: " + hr);
                }

            } catch (Throwable ex) {
                ex.printStackTrace();

            } finally {
                ShObjIdl_core_h.CoUninitialize();
            }
        });
    }

    public static void main(String[] args) {
        launch(args);
    }
}

This code runs without any errors, but unfortunately it does not set any progress on a taskbar window. Does anyone have any advices on how to fix it?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks to advices
  • RegEx Blacklisted phrase (1.5): how to fix it?
  • RegEx Blacklisted phrase (3): Does anyone have any advices
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Petr Štechmüller

79369463

Date: 2025-01-19 17:54:24
Score: 2
Natty:
Report link

It does support remote uploading. I was trying to do this, but with koltin for Android app, I was having problems because of the resolution of the video. It has to have an Aspect Ratio

9 x 16

So make sure that the video that you are trying to upload meets these requirements.

https://developers.facebook.com/docs/video-api/guides/reels-publishing/

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

79369462

Date: 2025-01-19 17:53:24
Score: 3
Natty:
Report link

To clean a VHD file inflected by computer virus, one might convert the VHD to VDI using clonehd.

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

79369458

Date: 2025-01-19 17:50:23
Score: 1.5
Natty:
Report link

In my case, Xcode recovered the files so there were two file references.

In project navigator (CMD+1), search the file name appearing in the build error.

Reasons:
  • Low length (1):
  • No code block (0.5):
Posted by: Hasaan Ali

79369455

Date: 2025-01-19 17:49:22
Score: 0.5
Natty:
Report link

Android use the adaptive-icon.png file for the app icon.

The path to this file is defined in app.json in android.adaptiveIcon.foregroundImage

Once you updated the file, you must do npx expo prebuild to apply the change made in app.json.

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

79369450

Date: 2025-01-19 17:45:22
Score: 1
Natty:
Report link

Using this stylesheet for QLineEdit achieves the purpose:

QLineEdit::disabled{
    background-color:#eeeeee;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Malik

79369429

Date: 2025-01-19 17:36:20
Score: 2
Natty:
Report link

Importing necessary library to handle video files

import mimetypes

Checking the file type to ensure it can be opened as a video

file_path = '/mnt/data/stock-footage-shiny-particles-sparks-rotating-magic-circle-fire-portal-spinning-fireworks-waving-sparklers-in.webm' file_type, _ = mimetypes.guess_type(file_path)

file_type

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

79369423

Date: 2025-01-19 17:34:19
Score: 0.5
Natty:
Report link

This solution worked for me:

cd "$(pwd)"
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alejandro CM

79369419

Date: 2025-01-19 17:31:18
Score: 5
Natty: 5.5
Report link

any code example you may share with us on the above conclusion? I have almost the same problem and trying to figure out how it may work. Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): share with us
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Spaha

79369412

Date: 2025-01-19 17:27:17
Score: 1
Natty:
Report link

Now PHP-8.2.9 opendir() and readdir() work OK.

I opened localhost Win10 Pro IIS my sites. But all my changes for access to "DataDir" did not give results. It was insufficient "Authenticated Users" in Permission Dialog under Security tab for "DataDir" on the site.

I renamed "DataDir_P" (in Win10) and created "DataDir" as new with default Win10 settings. The Data Files copyed from "DataDir_P".

Then I made restart all sites (by IIS Win10) on the localhost. I can read now list of files in "DataDir" with PHP.

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

79369406

Date: 2025-01-19 17:23:16
Score: 1
Natty:
Report link

you can wrap your stopPropagation in a function. then add/remove.

function stopProp(event){
    event.stopPropagation(); // or stopImmediatePropagation();
}
yourTarget.addEventListener("click", stopProp);
yourTarget.removeEventListener("click", stopProp);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Youssef

79369401

Date: 2025-01-19 17:21:15
Score: 0.5
Natty:
Report link

So here is my work-around. Before I download to a csv file, I add a column, and following the save, I make the column invisible. If I save again the same data it does not add another column, probably because the column is the same name.

Solution is not ideal but unless someone can come up with something cleaner, it works! Code for download change is below;

document.getElementById("download-csv").addEventListener("click", function(){
    tableCues.addColumn({title:"id", field:"id"},true);
    tableCues.download("csv", "data.csv");
    tableCues.hideColumn("id");
    });
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: David Banning

79369398

Date: 2025-01-19 17:19:15
Score: 2
Natty:
Report link

Looks like .rsample() is doing the trick here, which is keeping the computational graph alive...

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

79369393

Date: 2025-01-19 17:18:15
Score: 3.5
Natty:
Report link

Thanks for the explanations! This is the only thread that helped me understand why my CHM Help file Favorites cannot be backed up, and are difficult to even find.

In my case I had a bunch of Favorites from AutoIt CHM help file that got corrupted and had to be painfully recreated. I then tried to back up the new Favorites list but there is no option. The Help CHM file itself never changed Size, no matter how many Favorites were added. Where was all that extra info stored ???

I see now the only solution to back up Favorites it to copy the entire hh.dat file, but a lot of the info in there is not relevant. HH.dat seems to hold ALL the Favorites of every CHM Help file for that user on that computer. At least now I can do that. Again, thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tony4219

79369385

Date: 2025-01-19 17:13:14
Score: 1
Natty:
Report link

channel.setSound(null, null);

this worked for me

Reasons:
  • Whitelisted phrase (-1): this worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Husnain Rafique

79369383

Date: 2025-01-19 17:12:13
Score: 1
Natty:
Report link
  1. mean_square_error is a single number, so mean1 takes the mean of that number, which returns the number.

  2. Where is mean evaluated?

  3. Again, as mean_square_error is a single number, the standard deviation of it is zero.

  4. accuracy rounds numbers of to integers, so it might not be an appropriate metric for regression.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): is a
  • Low reputation (0.5):
Posted by: Slavensky

79369375

Date: 2025-01-19 17:05:12
Score: 1
Natty:
Report link

hi i just met this problem. I found that adding next headers to your service layer (OR where you use the api written in route.ts) would make it works.

import { headers } from "next/headers"

const res = await fetch("api/post", {
  headers: headers()
})

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

79369368

Date: 2025-01-19 17:00:11
Score: 3
Natty:
Report link

Jyton doesn't support android, so you can't use it with android studio or sketchware or any android app builder.

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

79369366

Date: 2025-01-19 17:00:11
Score: 3
Natty:
Report link

Seems using a breadboard is not always a good idea. Soldering everything to a perfboard was the solution

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

79369360

Date: 2025-01-19 16:58:10
Score: 1.5
Natty:
Report link

This question was asked 11 years ago and I am answering it today. :)

STEPS:

  1. Downloaded "Source Code Pro"
  2. Installed it per instructions
  3. PyScripter "tools" Tab > Options > Editor options
  4. Select "Source Code Pro" from list of fonts
  5. Select Style and Size
  6. Press OK to accept Font options
  7. Press OK to accept Edition options and apply settings to current environment
  8. Source Code Pro will be the default font!
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: divyansh927

79369345

Date: 2025-01-19 16:51:08
Score: 2
Natty:
Report link

I was able to solve my problem by adding RestClient.Builder as a parameter of the bean created in the class RestClientConfig.

So for valid handling Trace ID by RestClient in Spring Boot 3 application the class RestClientConfig should be configured in following way:

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestClient;
import org.springframework.web.client.support.RestClientAdapter;
import org.springframework.web.service.invoker.HttpServiceProxyFactory;

import com.example.clients.BeClient;

@Configuration
public class RestClientConfig {

    @Value("${api.url}")
    private String apiUrl;

    @Bean
    public BeClient beClient(RestClient.Builder restClientBuilder) {

        RestClient restClient = restClientBuilder
                .baseUrl(apiUrl)
                .build();
        var restClientAdapter = RestClientAdapter.create(restClient);
        var httpServiceProxyFactory = HttpServiceProxyFactory.builderFor(restClientAdapter).build();
        return httpServiceProxyFactory.createClient(BeClient.class);

    }

}

Working source code you can find here: https://github.com/wisniewskikr/chrisblog-it-cloud/tree/main/spring-cloud/observability/springcloud-springboot3-observability-grafana-stack-restclient

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

79369344

Date: 2025-01-19 16:50:07
Score: 8
Natty: 8.5
Report link

i want to install quickfix on raspberry pi python, but i'm unable to install it due to alot of throw exceptions. has anyone installed it??? please let me know your steps! thanks, Kunal.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): ???
  • RegEx Blacklisted phrase (2.5): please let me know your
  • RegEx Blacklisted phrase (1): i want
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: K-Luxuriant

79369337

Date: 2025-01-19 16:46:06
Score: 2
Natty:
Report link

For bookworm when you install samba smb.conf is not automatically installed and as another user stated if you make your samba server a active directory domain controller then it will work out because that process results in one being made. However you can just make a smb.conf file and copy one of the examples from the samba wiki "Setting up Samba as a Standalone Server" page. the key detail is that you have: [global] server role = standalone server

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

79369335

Date: 2025-01-19 16:45:05
Score: 1
Natty:
Report link

The code below helps to dismiss the keyboard without losing clearing contents on the SearchView.

searchView.setQuery(searchView.getQuery(), false);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Moz

79369334

Date: 2025-01-19 16:45:05
Score: 4
Natty:
Report link

Yes, Annolive(annolive.com) lets you do that. It free as well. try it here(https://app.annolive.com/playground/ner)

NER annotation

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

79369327

Date: 2025-01-19 16:43:04
Score: 2
Natty:
Report link

What error message you're getting when you try the state push?

When you run the state push, try with verbose logging: TF_LOG=DEBUG to extract the exact details of the error faced.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: ZimCanIT

79369311

Date: 2025-01-19 16:36:02
Score: 1.5
Natty:
Report link

You can escape everything inside the comment.

Within the comment, < becomes &lt; and > becomes &gt;.

Here is the link to escape characters reference - https://developer.mozilla.org/en-US/docs/Glossary/Character_reference

Here is an example -

<html>
  <body>
    <p>This is a paragraph</p>
    <!-- This is a <!-- problem comment --> comment -->
    <!-- This is a &lt;!-- fixed comment --&gt; comment -->
  </body>
</html>
Reasons:
  • Blacklisted phrase (1): Here is the link
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohan Sandesh

79369303

Date: 2025-01-19 16:31:01
Score: 0.5
Natty:
Report link

I see 3 issues

  1. make sure next.js is compatible with Node.js versions like 18.x or 20.x
  2. Install Peer Dependencies Manually npm install typescript eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y ts-node --save-dev
  3. There is Deprecated Punycode Module so install npm install --legacy-peer-deps
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dileep Kommineni

79369302

Date: 2025-01-19 16:31:01
Score: 2.5
Natty:
Report link

The problem is coming from the fact that you should use Python 3.11 or older, instead of Python 3.12 or 3.13. Some packages like gensim encounter problems when using Python 3.12 or 3.13.

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

79369300

Date: 2025-01-19 16:30:01
Score: 0.5
Natty:
Report link

PyFi is a library that helps converting fixed-point to floating-point and vice-versa. Here is an example:

PYTHON FIXED POINT CONVERTER
Configuration:
-Type of conversion: Floating to fixed point
-Signedness: Signed
-Total bits: 32
-Fractional bits: 31
WARNING: 1.0 can not be represented, 0.99999999977 will be used instead ( index: 0 )
Converted values:
-Dec (Input): 0.99999999977,-0.50000000000
-Hex (Output): 0x7fffffff,0xc0000000
-Bin (Output): 0b01111111111111111111111111111111,0b11000000000000000000000000000000
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (1):
Posted by: Cesar Pires Severo

79369293

Date: 2025-01-19 16:25:00
Score: 2
Natty:
Report link

In my German version this works with

Ctrl-Alt-i
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lucky Joe

79369290

Date: 2025-01-19 16:22:59
Score: 1.5
Natty:
Report link

Not a direct answer, which may well be possible, but you could also name the modules in a particular way, such as L1.Intro, L2.Seq, etc.

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

79369286

Date: 2025-01-19 16:21:59
Score: 1
Natty:
Report link

If you dont want upgrade you android studio, you can follow this step

  1. Open your project's build.gradle file. You'll see something like this:

plugins{ alias(libs.plugins.android.application) }

  1. Click on application -> right click -> go to declaration

  2. you will go to lib.versions.toml file

  3. find agp and change it to 8.2.1

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

79369284

Date: 2025-01-19 16:20:57
Score: 10 🚩
Natty: 5
Report link

I do have exactly same question, why it’s not showing up on the screen until it gets saved?

Another question, on the first screen, you can see that the Description attribute is missing on UI, but I’m sure, it’s provided in manifest. This is what I have in my case as well, all the custom policies are shown in the list without descriptions… Does anybody know if this is a feature or bug?

Reasons:
  • Blacklisted phrase (1): Another question
  • Blacklisted phrase (1): anybody know
  • RegEx Blacklisted phrase (2): Does anybody know
  • No code block (0.5):
  • Me too answer (2.5): have exactly same question
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Dzmitry T.

79369283

Date: 2025-01-19 16:19:57
Score: 1
Natty:
Report link

If you dont want upgrade you android studio, you can follow this step

  1. Open your project's build.gradle file. You'll see something like this:

    plugins{ alias(libs.plugins.android.application) }

  2. Click on application -> right click -> go to declaration

  3. you will go to lib.versions.toml file

  4. find agp and change it to 8.2.1

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

79369277

Date: 2025-01-19 16:16:56
Score: 3.5
Natty:
Report link

In project properties , Set Debug Symbols to PDB files....

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

79369276

Date: 2025-01-19 16:16:56
Score: 1.5
Natty:
Report link

I have the exact issue as yours, I found an answer here that works for me. https://stackoverflow.com/a/79221315/15019598

I hope it helps.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): hope it helps
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Talkbiz

79369258

Date: 2025-01-19 16:02:53
Score: 6.5 🚩
Natty: 6
Report link

Could you please provide a little bit more information? What kind of errors have you faced? May I also ask you to share a stack trace or inspections that were thrown?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you please provide
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: JSMonk

79369250

Date: 2025-01-19 15:56:51
Score: 3
Natty:
Report link

This repo here has a simple vim setup with included custom configuration: https://github.com/CesarPiresSevero/vimconfig

Hope it helps!

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cesar Pires Severo

79369249

Date: 2025-01-19 15:56:51
Score: 2.5
Natty:
Report link

I have a solution for this when i was trying to compile my code in bash shell g++ solution.cpp -o solution it gave an error of this collect2.exe: error: ld returned 116 exit status the issue I faced was there were two g++ bin file in my computer one is ucrt64 folder and one in mingw64

you want to test by which your code is running and use that one or else you can download the code runner extension on vscode it does the job and compiles the c++ file into .exe and then you just run the .exe file simply

but if you want to this in terminal you can always and set an alias of g++ to your bin path g++ file

or you can simply do export PATH=/c/msys64/ucrt64/bin:$PATH

if all this doesnt work then sorry bro :(

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Engineering student

79369248

Date: 2025-01-19 15:56:50
Score: 5.5
Natty: 6
Report link

do you have problem with me? im nooooooooooooooooob

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Filler text (0.5): ooooooooooooooooo
  • Low reputation (1):
Posted by: Mahdi.y

79369232

Date: 2025-01-19 15:45:48
Score: 1
Natty:
Report link

if you installed by vcpkg

import os 

gtkbin = r'<path-to-vcpkg-installed-folder>\installed\x64-windows\bin'
os.environ['PATH'] = os.pathsep.join((gtkbin,os.environ['PATH']))
 
import cairosvg
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: the9an

79369227

Date: 2025-01-19 15:42:47
Score: 0.5
Natty:
Report link

array_merge function is used to combine arrays not to concatenate array values. You can achieve your desired results using concatenation operator .

<?php
$array = ["a", "b", "c", "d", "e", "f"];

$pdl = $array[4] . $array[5]; // Concatenate "e" and "f"

echo $pdl; // Outputs: ef
?>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Raja Jahanzaib

79369222

Date: 2025-01-19 15:39:47
Score: 3
Natty:
Report link

I think you need to get rid of your docker and re-install it

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

79369203

Date: 2025-01-19 15:26:45
Score: 1
Natty:
Report link

Anaconda should show up in the Python interpreter list, not as a language option. Try to ensure Python extension is in VS Code. Afterwards select Interpreter and choose your Anaconda environment.

When you create a new .py file, it’ll use the selected interpreter. If you’re using Jupyter, you can select that for .ipynb files.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Duru Cynthia Udoka

79369193

Date: 2025-01-19 15:15:43
Score: 1.5
Natty:
Report link

Refresh tokens are generally needed in offline scenarios like PWA or client which are able to "long live" and may have their token expired. Unless you have such a scenario, there is no need to deal with refresh token. MSAL will take care of most the flows for you.

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

79369177

Date: 2025-01-19 15:09:42
Score: 1
Natty:
Report link

Create a list container and loop through the IDs

activity_in_use <- list()

for (i in 1:length(active_people))
{
activity_in_use[[i]] <- filter(d_activity, Id %in% i)
}

Put the list together

dfout <- Reduce(rbind, activity_in_use)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anthony Basooma

79369176

Date: 2025-01-19 15:09:42
Score: 0.5
Natty:
Report link

In PostgreSQL, you don't need the current_timestamp, it automatically calculates.

CREATE TABLE Customer (
  customerID SERIAL PRIMARY KEY,
  name VARCHAR(255) NOT NULL,
  address TEXT,
  birthdate DATE,
  CONSTRAINT age_check CHECK (AGE(birthdate) >= INTERVAL '18 years')
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Syed Bilal Haider

79369174

Date: 2025-01-19 15:08:41
Score: 1.5
Natty:
Report link

AWS S3 Sync is definitely your best option for downloading everything from your bucket, but if you prefer a graphical interface, tools like Cyberduck or Mountain Duck are great alternatives. These tools let you easily browse and download from S3 buckets, including bulk downloads. They do require setting up your AWS credentials, but they offer a more intuitive, user-friendly way to manage your files.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Duru Cynthia Udoka

79369168

Date: 2025-01-19 15:06:40
Score: 2
Natty:
Report link

It was removed, use StaggeredGrid.count or use GridView.custom

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

79369167

Date: 2025-01-19 15:04:40
Score: 0.5
Natty:
Report link

This is achievable using csvsql, like this:

csvsql --query "select * from joined limit 2, 4;" joined.csv

This would print lines 2-4 from the output. Note that the table name is the same as the basename of the CSV file (in this case "joined").

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

79369161

Date: 2025-01-19 15:03:40
Score: 1.5
Natty:
Report link
    If any CORS policy is injected into your backend project, you can put your frontend URL in this configuration. We have shared an example of how to add CORS to our project. I hope this solution is okay. If not, please let us know.

builder.Services.AddCors(options =>
{
    options.AddPolicy(name: MyAllowSpecificOrigins,
                      builder =>
                      {
                          builder.WithOrigins("http://localhost:5173"); // You can add value in configuration file
                      });
});
Reasons:
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (2.5): please let us know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dattatray Patil

79369156

Date: 2025-01-19 15:00:39
Score: 1
Natty:
Report link

You should:

  1. Enable RocksDB State Backend: Set state.backend: rocksdb in the flink-conf.yaml file. Add state.checkpoints.dir: s3:/// for S3 checkpoint storage.

  2. Enable S3 Plugin: Include the S3 plugin in your Flink image or deployment. Add the flink-s3-fs-hadoop or flink-s3-fs-presto jar to the plugins directory.

  3. Provide S3 Credentials: Configure access keys using environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) or add them to flink-conf.yaml.

  4. Deploy on Kubernetes: Use a custom Flink Docker image with the S3 plugin enabled, or mount the plugin directory into your Kubernetes pods.

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

79369153

Date: 2025-01-19 14:57:39
Score: 2.5
Natty:
Report link

In my opinion, I think the best way would be to end comments prematurely and for large files, I don't think there's a smart tool to do the job.

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

79369151

Date: 2025-01-19 14:55:38
Score: 4
Natty:
Report link

Here's similar question: Can you determine if Chrome is in incognito mode via a script?

The FileSystem API is disabled in incognito mode.

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

79369150

Date: 2025-01-19 14:55:38
Score: 0.5
Natty:
Report link

iOS 18 now renders text beginning with "https://..." in a FooterText as clickable links.

See this Q/A for how to add a footer text.

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

79369146

Date: 2025-01-19 14:53:38
Score: 1.5
Natty:
Report link

Yes, there are several free text-to-voice websites available. Here are a few options:

These websites allow you to paste text and listen to it being read aloud.

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

79369139

Date: 2025-01-19 14:46:36
Score: 4
Natty:
Report link

You can highlight the block of text you wish to comment out and then use the (command + /) on mac or (ctrl + /) on windows to comment it

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dennis Jr

79369135

Date: 2025-01-19 14:44:35
Score: 3.5
Natty:
Report link

I see on my Win10 Pro localhost IIS PHP8:

Sorry, it is not an answer on your question. In my opinion,it shows that PHP works incorrect in this function.
I can read (or write) any file with fopen("DataDir", "r"), but I cannot read list of files in this "DataDir". Copy code opendir() under "DataDir" does not work.

Vitaly Eremenko 2025-01-19

Reasons:
  • Blacklisted phrase (1): not an answer
  • Blacklisted phrase (0.5): I cannot
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vitaly Eremenko

79369134

Date: 2025-01-19 14:43:35
Score: 2
Natty:
Report link

Turns out the animation was built with R15 and I had set the game to only R6 and due to the different body parts between the two types, the game couldn't play the R15 animation on the R6 body.

A misconception I had was R6 means the character is blocky and R15 means the character is not blocky. However it's only the body parts that are different.

R6 VS R15 Picture On Blocky Character

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

79369133

Date: 2025-01-19 14:41:35
Score: 1
Natty:
Report link

Looking at the comments something that caught me out when working with indexedDB from the service worker is that it the extension has it's own area for the db.

When saving from a content script it saves to your browsers indexedDB

When saving from the service-worker it saves to the extension indexedDB, the easiest way to open this inspecting your popup then going to the application > Indexed DB

This might be why you couldn't find the object store from options_page. You might have to do some syncing up to make sure you are saving to just one location.

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

79369127

Date: 2025-01-19 14:41:35
Score: 2.5
Natty:
Report link

Your schema.prisma has to be populated with one model which then has references to any of the other models you defined in other .prisma. Essentially, the feature works by tracking deps.

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