79398300

Date: 2025-01-29 21:59:52
Score: 0.5
Natty:
Report link

Disclaimer: Two months new to programming Swift/Xcode, so please forgive me for any errors.

Like others here, I needed to apply some watermarks as well, and in a multi-platform app. Most examples depended on "AppKit" components, which I'm learning are exclusive to macOS (again, I'm new); or they depended on "UIKit" components, which are apparently exclusive to iOS. Plus, the most helpful/capable suggestions for me that I found here used "UIGraphicsBeginImageContext". When I caved-in (iOS only) to use the examples, they worked great, but that one, particular UI method is marked as 'deprecated' (at least by late 2024), so I felt I had to look further.

My endeavors led me down to the core, the 'Core' that is. All the lower-level graphics I had to do forced me into Core Imaging and Core Graphics frameworks anyway, where everything is touchy, optional, somewhat tricky, and can differ to UI orientations, but I got it to all work great, and decided I should try to share, hoping it might help someone else. There are small preliminary steps to convert other images back down to CI/CG, which seems to be their basis anyway but it's not hard to do and feels native to UIImage and NSImage.

You'd need to add the 'import CoreImage.CIFilterBuiltins' to your standard imports, if you hadn't already by that point. Also, in the example, I have 2 pre-made overlays with transparent alpha channels stored prior ("theWatermarkCIImage" and "theClippingRectCIImage") that are the same size [easiest] as the expected underlaid (background) image is, and the func lets the input boolean choose which to apply (this choice-function is custom for my uses, but you could just pass in an overlay/watermark image instead of the boolean as the second input, and edit the code with "let dummer.inputImage = myWatermarkImage"). And also, there is an 'if false {}' block which I switched on and off while developing for immediately testing the results. May be helpful for you too, so left it in here:

import CoreImage.CIFilterBuiltins


func applyOverlayToCIImage(_ theUnderlaidImage: CIImage, _ useWatermark: Bool) -> CGImage {

    let dum = CIContext()
    let dummer = CIFilter.sourceOverCompositing()
    dummer.inputImage = (useWatermark ? theWatermarkCIImage : theClippingRectCIImage)
    dummer.backgroundImage = theUnderlaidImage

    let dummest = dummer.outputImage!
    let cgImage = dum.createCGImage(dummest, from: dummest.extent)

    if false {
        let dumURL = URL(filePath: "/Users/someUserName/Desktop/someUniqueFileName.jpg")
        do {try dum.writeJPEGRepresentation(of: dummest, to: dumURL, colorSpace: CGColorSpaceCreateDeviceRGB()) }
        catch { print("Could not write JPEG to file to: \(dumURL)\nBecause Error: \(error)") } }

    return cgImage!
}

Hope it helps.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): Hope it helps
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: LGLB

79398291

Date: 2025-01-29 21:56:51
Score: 2
Natty:
Report link

Logger package is not supported for web \ wasm since it imports dart:io. You can see more details in logger dart Under "Platform Support" section. You can also take a look at related question at stack overflow

You can try logging for logging web apps.

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

79398290

Date: 2025-01-29 21:55:50
Score: 9
Natty: 7.5
Report link

Could you resolve this? I am getting the same error and have confirmed that my adata also has image slot. Thanks so much.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1.5): resolve this?
  • RegEx Blacklisted phrase (1): I am getting the same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am getting the same error
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Madhurima Kaushal

79398287

Date: 2025-01-29 21:54:48
Score: 8 🚩
Natty: 5.5
Report link

Did you manage to fix this? I'm experiencing the same problem and I haven't been able to find a working solution yet.

Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to fix this
  • RegEx Blacklisted phrase (1.5): fix this?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: DanteC

79398286

Date: 2025-01-29 21:54:48
Score: 2
Natty:
Report link

We work in the .Net framework. It doesn't like Async methods. The solution is to change from MessageResource.CreateAsync to MessageResource.Create and change all the async methods signatures.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alexander Samuel

79398274

Date: 2025-01-29 21:48:47
Score: 3.5
Natty:
Report link

I'm quite late to this but I pull job metrics every morning to report on with run times as well as send alerts for any jobs in a non runnable state.

https://github.com/jacksoneyton/DataStage/blob/master/Get-DSJobsRunMetaData.ps1

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

79398271

Date: 2025-01-29 21:47:46
Score: 3.5
Natty:
Report link

Did you select the option to install the "debug modules" when installing python, this specifically mentions "Visual Studio 2017" in the setup screen.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Matt W

79398265

Date: 2025-01-29 21:44:46
Score: 0.5
Natty:
Report link

WriteOnlyCollection requires an additional query to access its items.

self.db_session.scalars(part.health_indicators.select()).all()

part.health_indicators.add_all(self.db_session.scalars(fill_query).all())

This is a correct way to add a list of items to an empty WriteOnlyCollection.

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

79398264

Date: 2025-01-29 21:44:46
Score: 1
Natty:
Report link

Issue was with the useFetch custom Hook, its expecting

const {
loading: loadingCreateJob,
error: errorCreateJob,
data: dataCreateJob,
fn: fnCreateJob,
 } = useFetch((token, options, questions, jobData) => {
 return addNewJob(token, questions, jobData);
  });
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ammar Anjum

79398261

Date: 2025-01-29 21:43:45
Score: 8
Natty: 7
Report link

Looking for the same. How can I add a delay between two messages in a topic flow? The answer provided is not clear to me. Can someone please explain?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (2.5): Can someone please explain
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bart van Doveren

79398254

Date: 2025-01-29 21:41:44
Score: 1
Natty:
Report link

Just incase anyone is facing the same challenge specifically in docker setup. Here's how you navigate it using @CZoellner fix

docker exec -it <container_name/ID> odoo -d <DB_name> -u <Module_name>  -c <location to your config file inside container (/etc/odoo/odoo.conf)> --xmlrpc-port=8070 <You might need to specify the port especially if 8069 is already commited by the running instant> 
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @CZoellner
  • Low reputation (0.5):
Posted by: chacha kairu

79398253

Date: 2025-01-29 21:41:44
Score: 3
Natty:
Report link

On searching found this link - https://github.com/facebook/react-native/issues/10027.

  1. Open Xcode.
  2. Select Edit Scheme.
  3. Add the following under Environment Variables:
Name: OS_ACTIVITY_MODE
Value: disable
  4. Run your app again
Reasons:
  • Blacklisted phrase (1): this link
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user3839336

79398251

Date: 2025-01-29 21:39:43
Score: 1.5
Natty:
Report link

This side note by @Sludge solved my problem. I had all the appropriate permissions in the main AndroidManifest.xml but not in the debug AndroidManifest.xml.

I'll ask the developers of the permission_handler package if they can please specify which AndroidManifest.xml is the culprit.

Just a side note: There are different AndroidManifest.xml files in your project (...src/debug, ...src/profile, and ...src/main). Adding the permissions to the main version described above should work but if you're noticing inconsistent behavior make sure you're putting all of your permissions in the same AndroidManifest file.

Many thanks, @Sludge

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Sludge
  • User mentioned (0): @Sludge
  • Low reputation (1):
Posted by: user3341673

79398247

Date: 2025-01-29 21:37:43
Score: 3
Natty:
Report link

fswebcam -l 10 -r 640x480 --no-banner -save pic-%Y-%m-%d_%H-%M-%S.jpg

This will take a picture every 10 seconds and save it to a new filename.

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

79398239

Date: 2025-01-29 21:34:42
Score: 2
Natty:
Report link

nest update is not available in latest versions e.g. like 11

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

79398202

Date: 2025-01-29 21:16:37
Score: 1
Natty:
Report link

I think this looks good

return conditionA ? a
  : conditionB ? b
  : conditionC ? c
  : default;

In your context:

return foo ? 1 
  : bar ? 2
  : 3;

Lining up the variables would look nice too

return foo ? 1 
     : bar ? 2
     : 3;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Devin Li

79398201

Date: 2025-01-29 21:15:37
Score: 0.5
Natty:
Report link

Indded the UK map seems unusual, it looks like the north part is more stretched than the south part of the map. Looking at your code, I see: projection=dict(type="equirectangular").

On Wikipedia page for this type of projection, they have this map which shows that the distorsion is not symmetric around UK as it is pretty far from the Equator:
map

On this website they say that

The map projection commonly used for Britain is the Ordnance Survey National Grid projection which is a Modified Transverse Mercator projection.

And on Plotly website they give a long list of map projection types that are available:

Code: fig.update_geos(projection_type=) Type: enumerated , one of ( "airy" | "aitoff" | "albers" | "albers usa" | "august" | "azimuthal equal area" | "azimuthal equidistant" | "baker" | "bertin1953" | "boggs" | "bonne" | "bottomley" | "bromley" | "collignon" | "conic conformal" | "conic equal area" | "conic equidistant" | "craig" | "craster" | "cylindrical equal area" | "cylindrical stereographic" | "eckert1" | "eckert2" | "eckert3" | "eckert4" | "eckert5" | "eckert6" | "eisenlohr" | "equal earth" | "equirectangular" | "fahey" | "foucaut" | "foucaut sinusoidal" | "ginzburg4" | "ginzburg5" | "ginzburg6" | "ginzburg8" | "ginzburg9" | "gnomonic" | "gringorten" | "gringorten quincuncial" | "guyou" | "hammer" | "hill" | "homolosine" | "hufnagel" | "hyperelliptical" | "kavrayskiy7" | "lagrange" | "larrivee" | "laskowski" | "loximuthal" | "mercator" | "miller" | "mollweide" | "mt flat polar parabolic" | "mt flat polar quartic" | "mt flat polar sinusoidal" | "natural earth" | "natural earth1" | "natural earth2" | "nell hammer" | "nicolosi" | "orthographic" | "patterson" | "peirce quincuncial" | "polyconic" | "rectangular polyconic" | "robinson" | "satellite" | "sinu mollweide" | "sinusoidal" | "stereographic" | "times" | "transverse mercator" | "van der grinten" | "van der grinten2" | "van der grinten3" | "van der grinten4" | "wagner4" | "wagner6" | "wiechel" | "winkel tripel" | "winkel3" )

Ordnance Survey is not available but Mercator is and you can try several projections until you find one you prefer?

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

79398196

Date: 2025-01-29 21:13:36
Score: 1
Natty:
Report link

The sticky header behavior is working as expected. Try putting the header inside the items function and try again.

items(...) {
    Column {
        CategoryHeader(...)
        ItemRow(...)
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: João Ferreira

79398192

Date: 2025-01-29 21:11:36
Score: 1.5
Natty:
Report link

solution is:

.partials {
    overflow-y: auto;
    max-height: 420px;
  }
Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Falkys

79398189

Date: 2025-01-29 21:10:34
Score: 8.5 🚩
Natty: 6
Report link

Could you please explain in more detail how you fixed this? I am trying to fix this on my SSD1306 (64x48) with ESP32.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • RegEx Blacklisted phrase (2.5): Could you please explain
  • RegEx Blacklisted phrase (1.5): fixed this?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lBeJIuk

79398188

Date: 2025-01-29 21:10:34
Score: 3
Natty:
Report link

In my case the encoding was set to "UTF-16 BE BOM" on the actual script file. I used notepad++ to change to UTF-8-BOM (similar to other scripts)

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

79398182

Date: 2025-01-29 21:07:32
Score: 9.5 🚩
Natty: 5.5
Report link

i have the same issue, did you guys find the way to solve it ?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve it ?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alex Castro

79398177

Date: 2025-01-29 21:04:30
Score: 9 🚩
Natty: 6.5
Report link

Did you solve this problem? I am also trying to get screw tightening data with copco.

Reasons:
  • RegEx Blacklisted phrase (3): Did you solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • 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 you solve this
  • Low reputation (1):
Posted by: Namık Kemal ARSU

79398176

Date: 2025-01-29 21:04:30
Score: 0.5
Natty:
Report link

If the solution I mentioned earlier did not work, you can try disabling the keyboard focus when the page first opens as another method.

Write a initState right above build widget like this:

@override
void initState() {
  super.initState();
  WidgetsBinding.instance.addPostFrameCallback((_) {
    FocusScope.of(context).requestFocus(FocusNode());
  });
}

or like this:

 final FocusNode _textFieldFocusNode = FocusNode();

  @override
  void initState() {
    super.initState();
    _textFieldFocusNode.unfocus();
  }

 ...

TextField(
          focusNode: _textFieldFocusNode,
          autofocus: false,
        ),
Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yusuf

79398172

Date: 2025-01-29 21:03:29
Score: 4
Natty:
Report link

There is no version 2.5.1+cpu of torch available for macos.

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

79398159

Date: 2025-01-29 20:57:27
Score: 4
Natty:
Report link

Okay I changed this a bit and its working. But I still don't understand why and how? Below is the component

import React from "react";
import "./clientLayout.css";

import Sidebar from "../../containers/Sidebar";
import HeaderPanel from "../../containers/HeaderPanel";
import ContentPanel from "../../containers/ContentPanel";

const ClientLayout = () => {

  return (
    <div className="client-layout-container collapsed">
      <Sidebar />
      <HeaderPanel />
      <ContentPanel />
    </div>
  );
};

export default ClientLayout;

This is the ContentPanel

import React from "react";
import { Route, Routes } from "react-router-dom";
import { SidebarMenus } from "../dataProvider/SidebarMenus";

const ContentPanel = () => {
  return (
    <Routes>
      {SidebarMenus.map((menu, index) => (
        <Route key={index} path={menu.path} element={menu.element} />
      ))}
    </Routes>
  );
};

export default ContentPanel;

And this is one of the route

import React from "react";

const Dashboard = () => {
  const generateParagraphs = () => {
    const paragraphs = [];
    for (let i = 0; i < 1000; i++) {
      paragraphs.push(<p key={i}>Hello {i + 1}</p>);
    }
    return paragraphs;
  };

  return (
    <div className="component-container">
      <div className="main-content">
        <div className="form">
          <h2>Dashboard Content</h2>
          {generateParagraphs()}
        </div>
      </div>
      <div className="side-content">
        <h3>Side Content</h3>
        {generateParagraphs()}
      </div>
    </div>
  );
};

export default Dashboard;

and its working with this css for now:

.client-layout-container {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: 4rem auto;
  grid-template-columns: 15rem auto;
  grid-template-areas: "sidebar header" "sidebar content";
  gap: 0.3rem;
}

.client-layout-container.collapsed {
  grid-template-columns: 7rem auto;
}

.client-layout-container > :nth-child(1) {
  grid-area: sidebar;
}

.client-layout-container > :nth-child(2) {
  grid-area: header;
  background: red;
}

.client-layout-container > :nth-child(3) {
  grid-area: content;
  height: 100%;
  background: blue;
}

.component-container {
  display: grid;
  grid-template-columns: auto 20rem;
  overflow: auto;
}

.main-content {
  overflow: auto;
}

.side-content {
  overflow: auto;
}

can anyone explain why I cannot remove the overflow auto on the component-container as I only want its children div to scroll, so why do I need to specify that there as well. Without that I again lose the scroll on both main-content and side-content.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (2.5): can anyone explain
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bibek Bhattarai

79398153

Date: 2025-01-29 20:54:26
Score: 3
Natty:
Report link

in my case the issue was i had python 3.11.9 and 3.12.8 installed on my system. after uninstalling the 3.12.8 (which was preferd by vs code) the error "import "moviepy.editor" could not be resolved" gone. how stupid of me

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

79398151

Date: 2025-01-29 20:53:26
Score: 3
Natty:
Report link

After some research i went with using OpenSSL as provides everything needed for proper ssl encryption

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

79398147

Date: 2025-01-29 20:53:24
Score: 7 🚩
Natty:
Report link

************* Insomnia 10.0.0 ****************

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Filler text (0.5): *************
  • Filler text (0): ****************
  • Low entropy (1):
  • Low reputation (1):
Posted by: user3292797

79398142

Date: 2025-01-29 20:51:23
Score: 2
Natty:
Report link

There is now a GitHub Actions Marketplace action to delete workflow runs in a repository.

This is configurable and executable as either a manual or scheduled job.

See https://github.com/marketplace/actions/delete-workflow-runs

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

79398138

Date: 2025-01-29 20:51:22
Score: 8.5 🚩
Natty: 6.5
Report link

Is there any update on this?..

Reasons:
  • Blacklisted phrase (1): update on this
  • Blacklisted phrase (1): Is there any
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: Mahmoud Nasr

79398132

Date: 2025-01-29 20:49:21
Score: 1.5
Natty:
Report link

From Command Prompt use the following command:

 Tree 'Path'

Use a screen capture utility to capture 'scrolling window' and point to the CMD window. Save the file as .jpg. Beautiful!!!

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

79398121

Date: 2025-01-29 20:42:19
Score: 1
Natty:
Report link

In my case, @SayeedHussain was correct. None of the answers where helping me.

I had to change the inbound rule of my security group for my instance to "My IP".

I used This Ask Ubuntu Answer to help me get the public IP address of my machine.

There may be other InBound Security Group rules that work too, but this one worked for me.

Reasons:
  • Blacklisted phrase (1): help me
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @SayeedHussain
  • High reputation (-1):
Posted by: Thom Ives

79398119

Date: 2025-01-29 20:40:18
Score: 0.5
Natty:
Report link

I think I was able to fix it.

First, I needed to update 'qemu', as otherwise compiling libGL.so wouldn't work (see details https://askubuntu.com/questions/1339558/cant-build-dockerfile-for-arm64-due-to-libc-bin-segmentation-fault). The command for this is (and I admit I'm not sure what it actually does):

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -c yes

Then, having this solved, I added following to my Dockerfile:

RUN apt-get clean
RUN apt-get update
RUN apt-get install libc-bin -y
RUN apt-get install libgl1-mesa-glx -y

Without the first step, 'RUN apt-get install libc-bin -y' was failing with a segmentation fault, and so was 'RUN apt-get install libgl1-mesa-glx -y'

With those, I was able to get the libGL.so compiled, but still not "included" by pyinstaller. But at this point, it was sufficient to manually copy the file from one place to the other, by adding the following to the Dockerfile:

RUN cp /usr/lib/aarch64-linux-gnu/libGL.so.1.7.0 $MY_DIRECTORY/dist/$MY_APP_NAME/_internal

Note that you need to adjust the line above to suit your exact needs, i.e. to copy the right file to the right location.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Alan Meller

79398109

Date: 2025-01-29 20:33:17
Score: 1
Natty:
Report link

In this link from Microsoft it says:

For ACPI, if the system contains multiple tables with the same name, they are all enumerated with EnumSystemFirmwareTables. However, GetSystemFirmwareTable retrieves only the first table in the list with this name.

So you may need to look into EnumSystemFirmwareTables() to get all the data.

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Brecht Sanders

79398104

Date: 2025-01-29 20:31:17
Score: 3.5
Natty:
Report link

It should be

llm_with_tools = llm.bind_tools(tools=tools)

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

79398095

Date: 2025-01-29 20:26:15
Score: 1.5
Natty:
Report link

See this

p span:before {
    animation: dots 2s linear infinite;
    content: '';   
}

  @keyframes dots {
    0%, 20% {
      content: '.';
    }
    40% {
      content: '..';
    }
    60% {
      content: '...';
    }
    90%, 100% {
      content: '';
    } 
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SimoneMSR

79398088

Date: 2025-01-29 20:23:14
Score: 0.5
Natty:
Report link

You can use the annotate() method along with the Count aggregation function of the Django ORM to find and store the number of objects stored in the QuerySet.

from django.db.models import Count
...
"categories": Category.objects.annotate(post_count=Count('post')),

The Count('post') aggregates the number of Post objects related to each Category through the ForeignKey. Then you may refer to your own annotation, post_count, in your templates:

<ul>
    {% for category in categories %}
        <li>
            <a href="{{ category.get_absolute_url }}">{{ category.name }}</a>
            ({{ category.post_count }} posts)
        </li>
    {% endfor %}
</ul>

Don't worry about the replacement of the all() method, there's no difference really - What is difference between objects.all().annotate and objects.annotate?

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: 3iM0ViY

79398079

Date: 2025-01-29 20:20:14
Score: 3.5
Natty:
Report link

I have used this npm package to create unit tests for my velocity templates.

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

79398074

Date: 2025-01-29 20:16:13
Score: 0.5
Natty:
Report link

Steps that I took to get this to work:

  1. Browsed to the Azure psql flexible server instance and the Diagnostic Settings blade to create the Diagnostic resource. This is a prerequisite to set up the Query Store for enhanced logs.

  2. On the sae psql flexible instance, I clicked on the Settings | Server parameters blade and filtering on "auto_explain" I confirmed that at minimum the following were set:

    1. auto_explain.log_analyze to ON
    2. auto_explain.log_buffers to ON
    3. auto_explain.log_timing to ON
    4. auto_explain.log_verbose to ON
  3. Browsed to the Monitoring | Troubleshooting guides blade. Confirmed there was a graph at the bottom. Selected the Queries tab and the interval of time (e.g. last hour). There were a list of (5) slowest queries each with a unique id.

  4. Opened an admin (read) connection to the database instance and ran the following sql query against the azure_sys database: SELECT query_sql_text FROM query_store.query_texts_view WHERE query_text_id = <query_id>; and interpolate the query_id with the numeric id gathered from the previous step. This is the raw sql query that ranked as one of the slowest (if not the slowest) in the query time range.

References:

  1. https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-and-access-logs?...
  2. https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-identify-slow-queries
Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dat

79398072

Date: 2025-01-29 20:16:13
Score: 2
Natty:
Report link

How do I achieve the following, making sure functionB() executes after functionA() finishes?

I think what you want is a third async function and then call that one. Like this:

function functionThatCannotHaveAsyncKeyword() {
    functionC()
    .then((resp) =>{
        // this code will execute after functioA and fucntionB finish. 
        // They will execute in that order thanks to functionC.
    });
}

async function functionC() {
    await functionA();
    await functionB();
}

async function functionA() {
    console.log('first');
    await someServiceThatMakesHTTPCall();
}

async function functionB() {
    console.log('second');
    await someServiceThatMakesHTTPCall();
}
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): How do I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (0.5):
Posted by: Jose Luis Quiroga Beltran

79398070

Date: 2025-01-29 20:15:13
Score: 2.5
Natty:
Report link

I was trying to do the same thing (my own text before the newline) and arrived here. To add to @Willeke's suggestion above, I removed the \n I was adding in my string and added my own text one character after the edited range and that did the trick. So if you change your code to:

textStorage.mutableString.insertString("$$$$", atIndex: editedRange.location + 1)

I think that should give you what you're after.

Reasons:
  • Blacklisted phrase (1): trying to do the same
  • Has code block (-0.5):
  • User mentioned (1): @Willeke's
  • Low reputation (1):
Posted by: Jon Hellebuyck

79398062

Date: 2025-01-29 20:09:11
Score: 1
Natty:
Report link

For me, I was using QUEUE_CONNECTION=redis on both production and locally, which meant they shared the same data about pusher - including the app id. Locally, I switched it to QUEUE_CONNECTION to 'sync', cleared the redis data and it worked how it should locally and in production.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nick

79398047

Date: 2025-01-29 20:03:10
Score: 0.5
Natty:
Report link
    // High Performance, highe readability, and greater ease of use.
    public static String bytesToHex(byte[] bytes) {
        return Base64.getEncoder().encodeToString(bytes);
    }

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

79398040

Date: 2025-01-29 20:01:09
Score: 3.5
Natty:
Report link

comment out pgpass parameter in Patroni config resolve the overridden. Basically, Patroni config override the PostgreSQL pgpass because PostgreSQL manage by Patroni

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

79398033

Date: 2025-01-29 19:59:08
Score: 1
Natty:
Report link

Since Android 14 introduced stricter policies regarding SMS handling in work profile mode, including limitations that affect the use of SmsManager, developers are facing challenges in maintaining SMS functionality.

If you're open to using an alternative approach, SMS Textr could be a viable solution. It is a cloud-based, pay-as-you-go SMS API service designed to work independently of the device's native SMS functionality. This makes it immune to Android's restrictions in work profile mode.

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

79398028

Date: 2025-01-29 19:56:07
Score: 0.5
Natty:
Report link

I was able to get it working by adding an output formatter to my controller middleware that will omit the 204 No Content response code. I'm not sure if this is the best approach, but I'm trying to avoid returning an IActionResult in my controller:

builder.Services.AddControllers(o =>
{
    o.InputFormatters.Insert(0, KoJPIF.GetJsonPatchInputFormatter());
    o.OutputFormatters.RemoveType<HttpNoContentOutputFormatter>();
    
}).AddNewtonsoftJson();

I found this workaround here: RemoveNoContent

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

79398018

Date: 2025-01-29 19:52:07
Score: 2
Natty:
Report link

Please refer to this answer similar to your situation: https://stackoverflow.com/a/79397909/19420247

A good idea is not to set id in the @PrePersist annotated method, use a generator instead.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andy Zhang

79398016

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

I didn't love the idea of silencing all warnings in case something else comes up but you can supress a specific warning using :

warnings.filterwarnings("ignore", message="Workbook contains no default style", category=UserWarning)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vivek Gera

79398015

Date: 2025-01-29 19:52:07
Score: 1.5
Natty:
Report link

I know that's is old, but this is the answer at the time that it works:

first import your createApi function name:

import {
  usersApi,
} from "../components/store/service/UsersData";

and after that call this after login(or wherever you want):

usersApi.util.resetApiState()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: lucas barbosa

79398007

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

I just realised it's now working as expected. I noticed my subscription was "In Review" and is now in "Developer Action Needed". Maybe the price cannot be updated while the subscription is "In Review".

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

79398005

Date: 2025-01-29 19:48:04
Score: 6 🚩
Natty: 5
Report link

Error: Cannot find module '/storage/emulated/0/Download/Bot_Div/script.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1409:15) at defaultResolveImpl (node:internal/modules/cjs/loader:1060:19) at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1065:22) at Module._load (node:internal/modules/cjs/loader:1214:37) at TracingChannel.traceSync (node:diagnostics_channel:322:14) at wrapModuleLoad (node:internal/modules/cjs/loader:234:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:151:5) at node:internal/main/run_main_module:33:47 cara eu tô tendo uma problema que não encontra,alguém poderia me ajudar?

Reasons:
  • Blacklisted phrase (1): não
  • RegEx Blacklisted phrase (2): encontra
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Darko off

79397996

Date: 2025-01-29 19:44:03
Score: 3
Natty:
Report link

try to update Flutter and android studio (if your cmmand line is outdated it will prompt you to update it)

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

79397991

Date: 2025-01-29 19:40:03
Score: 1.5
Natty:
Report link

There are no tolerations in following yaml files. if you are using a tainted node, you'll need to add something similar to the code below to the yaml files noted. You'll need to change the path of the below, depending on the yaml file. Also, you'll need to add the tolerations option to the values.yaml.

gossip-encryption-autogenerate-job
tls-init-job
tls-init-cleanup-job

{{- if .Values.global.acls.tolerations }}
tolerations:
{{ tpl .Values.global.acls.tolerations . | indent 8 | trim }}
{{- end }}

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

79397980

Date: 2025-01-29 19:35:00
Score: 8 🚩
Natty:
Report link

Precisa de ajuda com um desafio profissional? Quer contribuir ajudando outras pessoas?

Então, a plataforma “Bindways Network” é perfeita para você!

Aqui, você pode encontrar profissionais em diversas áreas, dispostos a te ajudar com qualquer desafio, tudo sem custos financeiros.

Venha fazer parte da plataforma e comece a fazer mentorias profissionais e networking.

🌐 bindways.com/bwn

🔗 Apoie compartilhando esse post.

#networking #mentoria #startups

Reasons:
  • Blacklisted phrase (3): você
  • Blacklisted phrase (1): Então
  • RegEx Blacklisted phrase (2): encontrar
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Hoiama Rodrigues

79397973

Date: 2025-01-29 19:32:59
Score: 3.5
Natty:
Report link

found answer for original question with below

Jest Unit tests are failing

and and the follow up error with change to bablrc as advised in answers here -

TypeError: Invalid attempt to spread non-iterable instance

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

79397970

Date: 2025-01-29 19:31:59
Score: 1.5
Natty:
Report link

Finally, in your index.html add the following tag:

<script src="https://cdn.auth0.com/js/auth0-spa-js/2.0/auth0-spa-js.production.js" defer></script>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Karthikeyan SB

79397967

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

you can also read the number from stdin:

$ echo 10 | perl -ane 'print "a" x $F[0]; print "\n"'
aaaaaaaaaa
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: honestSalami

79397962

Date: 2025-01-29 19:29:58
Score: 4.5
Natty:
Report link

Please check this GitHub repo (Credits: Aniruddha Prithul). I also suggest checking out Open3D for ML-related tasks.

Reasons:
  • Blacklisted phrase (1): Please check this
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Annaji Rao Challa

79397958

Date: 2025-01-29 19:28:56
Score: 14.5 🚩
Natty:
Report link

did u find any solution ?? I have the same problem.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): did u find any solution
  • RegEx Blacklisted phrase (2): any solution ?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: rafael barrios

79397954

Date: 2025-01-29 19:28:56
Score: 5
Natty: 5.5
Report link

This works! thanks for posting this!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29422338

79397952

Date: 2025-01-29 19:26:54
Score: 4.5
Natty: 3.5
Report link

I have not found a solution to after googling.

The question is

I want to gzip my JS and load it without a webserver (using Kestrel) and need to supply a 17 mb uncompressed file to regions with slow inet, my page and data are being loaded from EU,

I can get geoloaction and would like to include the gzip file from a simple kestrel in countries like China

Any advice please

Thanx

Reasons:
  • Blacklisted phrase (1): Thanx
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (1): have not found a solution
  • No code block (0.5):
  • Low reputation (1):
Posted by: user2298075

79397947

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

just hacked gogaurdian because im too smart

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

79397942

Date: 2025-01-29 19:23:53
Score: 2
Natty:
Report link

for me the issue occurred because I was inside another repo and was trying to clone another one by mistake. just check if you are not inside a repo or the dir should not have git related files.

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

79397935

Date: 2025-01-29 19:21:52
Score: 5.5
Natty: 3.5
Report link

To my mind, all these answers simply confirm that node.exe is installed. Is there a self-test or test suite that will confirm that all the components that come with node.js were installed and configured properly and are working? Does "node -v" do all that?

Reasons:
  • RegEx Blacklisted phrase (2): working?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
Posted by: mnemotronic

79397932

Date: 2025-01-29 19:19:51
Score: 1.5
Natty:
Report link

The easiest solution (ggplot2 v3.5.x) is currently:

i <- 'x'
ggplot(data=t, aes(w, {{i}})) + geom_line()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mercurol

79397926

Date: 2025-01-29 19:19:51
Score: 1.5
Natty:
Report link

if you add a stl file in your repo and add the link to that file in your readme, then in your readme a link to the file is generated and by clicking on it, the stl is correctly rendered in a dedicated page of github. It is not clear how to embed in the readme the stl file, without inserting the ascii strings as suggested in the previous answer in this page.

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

79397923

Date: 2025-01-29 19:17:51
Score: 1.5
Natty:
Report link

Regarding Encryption, S3 now encrypts all new puts where customer doesn't specify an encryption type , with SSE-S3 by default. You can have object level encryption when you do a put object request by changing the encryption type in the x-amz-sse encryption headers. You can also set a bucket level encryption policy to encrypt all new objects with the bucket key ( KMS key used at time of bucket creation for bucket level encryption )

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

79397920

Date: 2025-01-29 19:16:50
Score: 5.5
Natty:
Report link

could you try to put +0 at the end of the dax measurements?

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

79397918

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

private int getAttempts(ConsumerRecord<?, ?> consumerRecord) { Header header = consumerRecord.headers().lastHeader(RetryTopicHeaders.DEFAULT_HEADER_ATTEMPTS); return header != null ? header.value()[header.value().length-1] : 1; }

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

79397891

Date: 2025-01-29 19:07:47
Score: 0.5
Natty:
Report link

The accepted commands are: insertOne() or insertMany()

db.mycol.insertOne({
_id: ObjectId(7df78ad8902c),
title: 'MongoDB Overview', 
description: 'MongoDB is no sql database',
by: 'tutorials point',
url: 'http://www.tutorialspoint.com',
tags: ['mongodb', 'database', 'NoSQL'],
likes: 100

})

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

79397884

Date: 2025-01-29 19:05:46
Score: 10.5
Natty: 8.5
Report link

@mikeQ Can you please confirm what How did you manage to embed that pixel?

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @mikeQ
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Saurabh Darji

79397879

Date: 2025-01-29 19:01:45
Score: 0.5
Natty:
Report link

TypeError: Cannot convert undefined or null to object at Function.keys () at ./src/utils/modules.js (betterdiscord://plugins/ShowHiddenChannels.plugin.js:647:36) at webpack_require (betterdiscord://plugins/ShowHiddenChannels.plugin.js:847:41) at ./src/components/UserMentionsComponent.jsx (betterdiscord://plugins/ShowHiddenChannels.plugin.js:429:6) at webpack_require (betterdiscord://plugins/ShowHiddenChannels.plugin.js:847:41) at ./src/components/Lockscreen.jsx (betterdiscord://plugins/ShowHiddenChannels.plugin.js:299:80) at webpack_require (betterdiscord://plugins/ShowHiddenChannels.plugin.js:847:41) at plugin (betterdiscord://plugins/ShowHiddenChannels.plugin.js:1035:36) at eval (betterdiscord://plugins/ShowHiddenChannels.plugin.js:1998:16) at eval (betterdiscord://plugins/ShowHiddenChannels.plugin.js:1999:7) at eval (betterdiscord://plugins/ShowHiddenChannels.plugin.js:2001:3) at eval (betterdiscord://plugins/ShowHiddenChannels.plugin.js:2004:12) at N.requireAddon (betterdiscord/renderer.js:5:28601) at N.loadAddon (betterdiscord/renderer.js:5:6221) at N.loadAddon (betterdiscord/renderer.js:5:26269) at N.loadAllAddons (betterdiscord/renderer.js:5:9278) at N.initialize (betterdiscord/renderer.js:5:3093) at N.initialize (betterdiscord/renderer.js:5:25382) at Object.startup (betterdiscord/renderer.js:5:408589)

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

79397876

Date: 2025-01-29 19:01:45
Score: 3
Natty:
Report link

This directive in my wp-config.php made the trick, after many research...

define('FORCE_SSL_ADMIN', false );

Now, it is working as expected...

Thank you very much!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: jlguacaran

79397872

Date: 2025-01-29 19:00:45
Score: 0.5
Natty:
Report link

How to do this with a single command without disabling BuildKit

BUILDX_EXPERIMENTAL=1 docker buildx debug --invoke bash build --progress=plain 

Optionally, you can add --on=error to only start the shell if an error occurs.

--progress=plain is important because the shell will act really weird without it

More about this: https://github.com/docker/buildx/blob/master/docs/debugging.md

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): How to
  • Low reputation (0.5):
Posted by: splaytreez

79397871

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

MDM documentation states that the change event is fired:

"When a <input type="radio"> element is checked (but not when unchecked)"

https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event

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

79397870

Date: 2025-01-29 18:59:43
Score: 8.5 🚩
Natty: 5
Report link

Hi please help friends I am looking for a macro.let me explain my data first.it is a list of customer who have taken loan from multiple bank.in my data where ever a customer have multiple Bank that many rows will be there.what i want is by running a macro All customer name should be unique in single column but the multiple Bank and its address should come in single row also the headers should be mentioned automatically like bank1,bank1address,bank2',bank2address like wise.

Reasons:
  • Blacklisted phrase (2): I am looking for
  • RegEx Blacklisted phrase (3): please help
  • RegEx Blacklisted phrase (1): i want
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29422000

79397867

Date: 2025-01-29 18:59:43
Score: 0.5
Natty:
Report link

The Series.append function has been removed since pandas=2.0 (see Issue #35407). As of today, pandas_ta version 0.3.14b0 works with pandas=1.5.3 but produces this bug if you use Pandas 2+. Apparently, this has been fixed in the development branch (see Issue #695). Try downgrading Pandas or switching to the development branch of Pandas TA to resolve this issue.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nanashi No Gombe

79397865

Date: 2025-01-29 18:57:42
Score: 1
Natty:
Report link

I ran into the same issue with my laptop (3840x2160) extending to my dual monitors, which have a native resolution of 2560x1440.

What fixed it for me was to close all my open xaml files, close Visual Studio, then go to the Display Settings and set the Display Resolution on all of my monitors to the same resolution; for me that was 2560x1440.

I guess Visual Studio didn't like that I accidently had one monitor extending to 3840x2160 while the other one was at 2560x1440.

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

79397863

Date: 2025-01-29 18:57:42
Score: 2.5
Natty:
Report link

This chain helped me troubleshoot as I recently faced this same issue. What ended up working for me was when pasting the token I had to hold ctrl and then right click on Windows. Ctrl + V my normal method of pasting led to an error every time.

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

79397861

Date: 2025-01-29 18:55:42
Score: 3.5
Natty:
Report link

You can change your system navigation settings to 3-button instead of navigation.

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

79397849

Date: 2025-01-29 18:49:40
Score: 1.5
Natty:
Report link

u can try to replace open_filex by open_file , it worked for me

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Francois LE NAIR

79397848

Date: 2025-01-29 18:49:40
Score: 2.5
Natty:
Report link

If Next.js is misidentifying a component's parent as a client, check your "use client" directives and component hierarchy. I had a similar issue while working on a Fapello ( https://fapello.org.uk/ ) project, and cleaning up imports fixed it!

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

79397845

Date: 2025-01-29 18:48:40
Score: 0.5
Natty:
Report link

@doubleunary said it correctly. In addition, to improve the code, I suggest using this code to combine all functions into one. In the last part, I changed tempFolder.removeFile(newTempFile); to tempFolder.getFilesByName(newTempFile).next().setTrashed(true); because the removeFile method is deprecated.

Code:

function onFormSubmit(e) {
  const info = e.namedValues;

  const pdfFolder = DriveApp.getFolderById("1g58GUQLPjPonsHtxj5LlxyoDgXs5wj2R");
  const tempFolder = DriveApp.getFolderById("1Fkzf0xeZcedfq7BF2k3V4mn4Pz_LsXsv");
  const templateDoc = DriveApp.getFileById("1eOqom8SqhuDUpIqYEVum-EvQ09cVz2d_XCLcRNAz8jE");

  const newTempFile = templateDoc.makeCopy(tempFolder);

  const openDoc = DocumentApp.openById(newTempFile.getId());
  const body = openDoc.getBody();
  body.replaceText("{fn}", info['First Name'][0]);
  body.replaceText("{ln}", info['Last Name'][0]);
  body.replaceText("{bd}", info['Birthday'][0]);
  body.replaceText("{em}", info['Email'][0]);
  body.replaceText("{pn}", info['Phone Number'][0]);
  body.replaceText("{pv}", info['Province'][0]);
  body.replaceText("{cm}", info['Contact Method'][0]);
  body.replaceText("{lg}", info['Language'][0]);
  body.replaceText("{ts}", info['Type Of Service'][0]);
  body.replaceText("{cn}", info['Child Name'][0]);
  body.replaceText("{cbd}", info['Child Birthday'][0]);
  body.replaceText("{sr}", info['Services Required'][0]);
  body.replaceText("{stf}", info['Staff Requested'][0]);
  body.replaceText("{pri}", info['Priority'][0]);
  body.replaceText("{ref}", info['Referral'][0]);
  body.replaceText("{jc}", info['Jane Consent'][0]);

  openDoc.saveAndClose();

  const blobPDF = newTempFile.getAs(MimeType.PDF);
  pdfFolder.createFile(blobPDF).setName(info['First Name'][0] + ' ' + (info['Last Name'][0]));
  // tempFolder.removeFile(newTempFile);
  tempFolder.getFilesByName(newTempFile).next().setTrashed(true);
}

References: setTrashed(trashed)

Reasons:
  • Blacklisted phrase (0.5): Contact Me
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @doubleunary
  • Low reputation (0.5):
Posted by: leylou

79397844

Date: 2025-01-29 18:47:39
Score: 6 🚩
Natty:
Report link

did you check the camera usage hardware in signing & capabilities ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: Nasserallah Hourichi

79397843

Date: 2025-01-29 18:47:39
Score: 1
Natty:
Report link

In vs code it was giving option to install jupyter. I downloaded that and after thatit worked for me

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yash Kumar

79397842

Date: 2025-01-29 18:47:39
Score: 1.5
Natty:
Report link

Add AIRFLOW__WEBSERVER__SHOW_TRIGGER_FORM_IF_NO_PARAMS=True in .env.localrunner in config folder. If you are using airflow version >2.7 it requires this parameter.In earlier Airflow versions the Play button opened a dropdown menu with two options Trigger DAG and Trigger DAG w/ config. The Trigger DAG w/ config button allowed you to pass params to the DAG run even if no params were defined at the DAG level.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: user3858193

79397840

Date: 2025-01-29 18:46:39
Score: 2
Natty:
Report link

I'm using this system, but I can't animate the layout change with Transition in any way. At the same time there is a page change. Transition somehow works, but crookedly, namely animation leave works, but enter - not. Specifically: there is layout with fixed panel and there is layout without it and different layout is used on different pages.

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

79397839

Date: 2025-01-29 18:46:39
Score: 2
Natty:
Report link

Make sure that the sources are defined in the "Module" section inside the "Project Settings".

How to access: File/Project Structure/Modules

enter image description here

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

79397833

Date: 2025-01-29 18:44:38
Score: 2
Natty:
Report link

It looks like there are SOAP APIs for this in the Resource Mangement WSDL, maybe this one: Submit_Purchase_Order

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

79397828

Date: 2025-01-29 18:42:37
Score: 1
Natty:
Report link

add a prop key to MapView like this <MapView key={Platform.OS === "android" ? ${Key} : "map"} ... /> and define a state: const [key, setKey] = React.useState(0);

and add useEffect:

useEffect(() => {
    if (Platform.OS === "android") {
      setKey((prev) => prev + 1);
      setIsMapReady(false);
    }
  }, [storeMarkers]);
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: torodebout

79397824

Date: 2025-01-29 18:41:37
Score: 0.5
Natty:
Report link

You can edit how the value is displayed by giving it a format like this, where I give it and ending of "Hours" instead of ".0%"

    donut: {
    label: {
      format: function(value, ratio, id) {      return value +"Hours";       }
    }
  },

For more info on this, you can see how billboard does it here. https://naver.github.io/billboard.js/demo/#DonutChartOptions.MultilineLabel

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

79397800

Date: 2025-01-29 18:29:35
Score: 2.5
Natty:
Report link

You wouldn't need to do gradient descent because what it does is search the global minimum (which you already have). But calculating a global minimum is is most cases impossible, that's why we use GD to approximate it.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: João Gabriel Cardozo Castro

79397793

Date: 2025-01-29 18:28:34
Score: 1.5
Natty:
Report link

There's a library called paretoset that calculates Pareto frontiers. It provides both numpy and numba implementations, and self-reports benchmark values that are comparable to the fastest implementations provided here: paretoset can process 1e6 observations of 3 objectives in under 1 sec

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Kale Kundert

79397777

Date: 2025-01-29 18:22:32
Score: 4
Natty: 4.5
Report link

I just saw that Plotly has a sidebar option explained here: https://dash.plotly.com/dash-ag-grid/enterprise-sidebar

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

79397771

Date: 2025-01-29 18:20:31
Score: 1
Natty:
Report link

! ========== Building Definition ========== Building, Residential_Building, !- Name 0.0, !- North Axis {deg} City, !- Terrain 0.04, !- Loads Convergence Tolerance Value 0.4, !- Temperature Convergence Tolerance Value {deltaC} FullExterior, !- Solar Distribution 25; !- Maximum Number of Warmup Days

! ========== Thermal Zones ========== Zone, First_Floor, !- Name 0, 0, 0, !- X, Y, Z Coordinates {m} , , , !- Floor, Ceiling, Walls Exposed to Sun Yes; !- Part of Total Building Area

Zone, Second_Floor, 0, 0, 3, , , , Yes;

Zone, Third_Floor, 0, 0, 6, , , , Yes;

! ========== Materials ========== Material, Brick, !- Name Rough, !- Roughness 0.2, !- Thickness {m} 0.9, !- Conductivity {W/m-K} 2000, !- Density {kg/m3} 900; !- Specific Heat {J/kg-K}

Material, Insulation, MediumSmooth, 0.1, 0.04, 50, 1200;

Material, Tile_Roof, MediumSmooth, 0.15, 0.72, 1800, 900;

! ========== Constructions ========== Construction, Wall_Construction, Brick, Insulation;

Construction, Roof_Construction, Tile_Roof, Insulation;

! ========== HVAC System ========== ZoneHVAC:Baseboard:Convective:Water, First_Floor_Radiator, First_Floor, AlwaysOn, autosize, 0.85;

ZoneHVAC:Baseboard:Convective:Water, Second_Floor_Radiator, Second_Floor, AlwaysOn, autosize, 0.85;

ZoneHVAC:Baseboard:Convective:Water, Third_Floor_Radiator, Third_Floor, AlwaysOn, autosize, 0.85;

! ========== Heat Pump System ========== HVACTemplate:Plant:Boiler, HeatPump_Boiler, HotWaterLoop, NaturalGas, 0.85, 80, 60, autosize;

HVACTemplate:Plant:HotWaterLoop, HotWaterLoop, HeatPump_Boiler, autosize, autosize, 60, 40, 0.1, 0.1;

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Filler text (0.5): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Filler text (0): ==========
  • Low reputation (1):
Posted by: Ruchi

79397770

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

os.chdir() does not return any value.

Your for loop is therefore basically:

for file in None:
   ...

Which obviously does not work, as None doesn't implement the iterator protocol.

Did you mean os.listdir() perchance?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: digitalarbeiter

79397768

Date: 2025-01-29 18:19:30
Score: 8 🚩
Natty: 5.5
Report link

Could you share the pypdf2 layer or its arn which you have used to run this lambda code?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you share
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Prashant Mittal

79397766

Date: 2025-01-29 18:18:29
Score: 1.5
Natty:
Report link

You're trying to access the 'agGrid' object but there's no import or declaration for it. Couple of things you can try doing is:

  1. Declare a. variable named 'agGrid' at the very top. or
  2. Add an import for agGrid from the installed package.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: nd10

79397765

Date: 2025-01-29 18:18:29
Score: 3.5
Natty:
Report link

You can test fire the event by using this link: https://pubsubhubbub.appspot.com/publish

  1. Publish video to your channel.
  2. Check Atom feed: https://www.youtube.com/feeds/videos.xml?channel_id=<CHANNEL_ID_STARTING_WITH_UC>
  3. https://pubsubhubbub.appspot.com/publish Publish the event.

Then you can test to see how your callback is receiving data from the YouTube.

Yet, you won't be able to know when the post call was made for the newly uploaded video since this is manually triggered. New upload trigger seems to be flaky: https://issuetracker.google.com/issues/204101548.

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • Low reputation (1):
Posted by: SpiqUp Com