79363795

Date: 2025-01-17 06:24:15
Score: 0.5
Natty:
Report link

After conducting a little research, I decided for myself that the most correct way is to

    munmap
    ftruncate
    mmap

Q: Wouldn't it be extremely costly if you need to change the size of a mapped file all the time (transfer data from HDD to RAM back and forth)?

A:

Q: Does the munmap syscall provide writing back to the disk file?

A: Yes, munmap = munmap + msync + MS_ASYNC.

Q: Does

munmap + truncate + mmap

show better performance than

msync + munmap + truncate + mmap ?

A: Only the use of msync + MS_SYNC causes the overhead of excessive writing operations to HDD. To avoid it, you can omit using msync (it will be the same as using msync + MS_ASYNC).

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Fyodor

79363794

Date: 2025-01-17 06:23:14
Score: 0.5
Natty:
Report link

First of all you need to know difference between peerDependencies and dependencies.

peerDependencies:

dependencies:

NOTE:

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

79363791

Date: 2025-01-17 06:21:14
Score: 1.5
Natty:
Report link

Updating the struct definition to include a tag does not impact the ABI for C or C++ users of the library. This is because the memory layout, size, and alignment of the struct remain unchanged. Adding a tag is purely a syntactical change, providing a name for the struct without altering its underlying representation or behavior.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: oran ben david

79363789

Date: 2025-01-17 06:20:14
Score: 3
Natty:
Report link
$('#datePickerId').datepicker('setEndDate', new Date());
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Keval Maisuriya

79363786

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

You can Use just greyScale and then try other OCR like paddleOCR which can help you to detect text and then detected text can be extracted using paddle itself or some better OCR like google vision api.

Also you can check for confidence incase text is not clear

Reasons:
  • Whitelisted phrase (-1.5): You can Use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Suvigya Yadav

79363781

Date: 2025-01-17 06:17:13
Score: 2
Natty:
Report link

This numpy einsum expression works as torch's bmm function:

np.einsum('bmn,bnk->bmk', x, y) 

enter image description here

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

79363770

Date: 2025-01-17 06:06:11
Score: 1
Natty:
Report link

console.log("Графики функсияи y = x * (x - 5)");
console.log("Қиматҳои x ва y:");
console.log("x        y");
console.log("----------------");

for (let x = -3; x <= 3; x += 0.1) {
    let y = x * (x - 5);
    console.log(x.toFixed(2) + "    " + y.toFixed(2));
}

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ҳусейн Талбаков

79363769

Date: 2025-01-17 06:05:10
Score: 8 🚩
Natty: 5.5
Report link

Facing same issue, any sollution for this?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Facing same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sarman Modhavadiya

79363765

Date: 2025-01-17 06:01:09
Score: 0.5
Natty:
Report link

I've fixed it like this now btw, by ditching optimization and just using the simple CSS background-image property in the hero section:

<div
        className='flex z-[1] flex-col lg:gap-[52px] pt-[30px] lg:pt-[104px] pb-[52px] lg:px-[284px] px-4'
        style={{
          backgroundImage: "url(/landing-pages/blue-tiled-background.svg)",
          backgroundRepeat: "no-repeat",
          backgroundPosition: "center center",
          backgroundSize: "cover"
        }}
      >
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Abdullah Ahmad

79363756

Date: 2025-01-17 05:56:08
Score: 1
Natty:
Report link

you can also use SUMPRODUCT() function to achieve this result.

=SUMPRODUCT((A2:C9="foo")*(D2:D9=1)*(E2:E9=2))

output = 2.0

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

79363747

Date: 2025-01-17 05:53:07
Score: 2
Natty:
Report link

I can say that iOS development and custom backend development work hand in hand. When I was building my app, iOS development focused on creating a smooth and visually appealing user experience. At the same time, the custom backend ensured that all the data processing, user authentication, and integrations with other systems worked flawlessly.

For example, my custom backend handled tasks like syncing user data across devices, securely storing app content, and processing real-time updates. This made the iOS app faster and more reliable because the backend was designed to meet its requirements. In my experience, having a strong custom backend was critical to making the app scalable and delivering a great user experience on iOS.

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

79363744

Date: 2025-01-17 05:51:07
Score: 2.5
Natty:
Report link

Pass the notification into setTimeout() and this will resolve your issue. E.g setTimeout(() => notifications.error("Error!", "Payload and Response is not matching"), 100);

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

79363738

Date: 2025-01-17 05:46:05
Score: 1.5
Natty:
Report link

On visual studio, you can filter the log at the Debug – Output window by clicking the right. enter image description here

In addition, The Android logs cannot be filtered in the Visual Studio.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Guangyu Bai - MSFT

79363731

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

So I have two collections coops and notification my code above is trying to create a document inside the notifications collection. The notification document requires an attribute called coopId which relates it to a document within the coops collection the reason why I was getting the "Document with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID." error is because the coopId attribute's relation is set to one-to-one which was causing the error the solution was to set the attribute to many-to-one.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Diane Gutierrez

79363728

Date: 2025-01-17 05:41:04
Score: 2
Natty:
Report link
String s = "ABCÃࠁ";
byte[] bytes = s.getBytes();
char[] charArray = s.toCharArray();

The above in debug with the default Charset of UTF-8 enter image description here

In the above, the last character in the string, which is the last element in the charArray, is "represented" by 3 bytes. Can we still say a "char" is 2 bytes? Since an array is a contiguous sequence of bytes in memory with equal number of bytes for each element, how many bytes-long might be each element of the charArray ?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Madhu

79363727

Date: 2025-01-17 05:40:04
Score: 1.5
Natty:
Report link

Just do this!!!

rm -rf .git/rebase-apply
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Abdelaziz Elrashed

79363686

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

This issue usually comes for Windows when you have large files to be cloned, and Windows have some size restrictions while clonning, So you can run below Global command to allow it clone longpath files

git config --global core.longpaths true
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pravin Pawar

79363650

Date: 2025-01-17 05:11:58
Score: 3.5
Natty:
Report link

tried with the query like this

mongodb+srv://username:password@hostname/databasename?authSource=admin

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yatin Davra

79363641

Date: 2025-01-17 05:07:57
Score: 0.5
Natty:
Report link

You would need to use data-testid not data-qa. PrimeNG passes through data-testid to the browser.

Playwright then uses it in getByTestId().

See Playwright docs - locate-by-test-id

Locate by test id

<button data-testid="directions">Itinéraire</button>
await page.getByTestId('directions').click();

Here is the PrimeNG sample with data-testid added

enter image description here

data-qa is similarly passed through in the app, but Playwright does not use it.

Here is the point where Playwright applies getByTestId()

// locator.ts, line 155
getByTestId(testId: string | RegExp): Locator {
  return this.locator(getByTestIdSelector(testIdAttributeName(), testId));
}

// locator.ts, line 441
let _testIdAttributeName: string = 'data-testid';   // must be this attribute

export function testIdAttributeName(): string {
  return _testIdAttributeName;
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Penzias

79363636

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

In C++11, aggregate types are not allowed to have default member initializers. This restriction was removed in C++14. See N3605.

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

79363634

Date: 2025-01-17 05:04:56
Score: 1.5
Natty:
Report link

class C {
  *[Symbol.iterator]() {
    for (let i = 0; i < 3; i++) yield i;
  }
}
const c = new C();
for (const item of c) {
  console.log(item);
}

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

79363632

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

With NgRock.

install ngRock on the remote server. And expose the server the server api's public. With ngRock new url you can access the server api from outside the server.

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

79363619

Date: 2025-01-17 04:47:53
Score: 2.5
Natty:
Report link

(r_env) PS F:\e_commerce_recommendation> pip install scikit-suprise==1.1.4 ERROR: Could not find a version that satisfies the requirement scikit-suprise==1.1.4 (from versions: none)
ERROR: No matching distribution found for scikit-suprise==1.1.4 and i also have vs build tool 2022. what i have to do tell me

Reasons:
  • Blacklisted phrase (1): i have to do
  • No code block (0.5):
  • Low reputation (1):
Posted by: Priyanshu Dhaked

79363617

Date: 2025-01-17 04:44:52
Score: 0.5
Natty:
Report link

Try using the package I created. It will be easier to use than mplfinance.

import numpy as np
import seolpyo_mplchart as mc

dates = pd.date_range(end=datetime.now(), periods=50, freq='D')
data = {
    'date': dates,
    'open': np.random.uniform(100, 200, len(dates)),
    'high': np.random.uniform(110, 210, len(dates)),
    'low': np.random.uniform(90, 190, len(dates)),
    'close': np.random.uniform(95, 205, len(dates)),
    'volume': np.random.randint(1000, 5000, len(dates))
}
df = pd.DataFrame(data)


class Chart(mc.OnlyChart):
    def generate_data(self):
        x = (self.df.loc[200 < self.df['high']].index + 0.5).to_numpy()
        y = self.df.loc[200 < self.df['high'], 'high'].to_numpy()
        self.ax_price.scatter(x, y)

chart = Chart()
chart.set_data(df)

mc.show(Close=True)

dot sample

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

79363610

Date: 2025-01-17 04:39:51
Score: 1
Natty:
Report link

Update: I resolved the issue by removing the custom URI scheme configuration for Facebook posts in my project.

The deep link based on the Universal Link configuration is now working as expected for affected users after testing the new app update on the old app.

NOTE: The Android counterpart of Apple's Universal Links is called App Links.

Here’s a comparison of Deep Links and Universal Links to clarify their differences:

Steps to remove the custom URL scheme for iOS project refer the following SO answer: https://stackoverflow.com/a/43421247/2241037

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-2): I resolved
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Peer Mohamed Thabib

79363609

Date: 2025-01-17 04:37:51
Score: 1.5
Natty:
Report link

Solution location file config /lib/systemd/system/jenkins.service

follow step Reference : Enable HTTPS in jenkins?

in my case in file jenkins.service you must uncomment the line

Environment="JENKINS_WAR=/usr/share/java/jenkins.war"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Need Solution

79363607

Date: 2025-01-17 04:37:51
Score: 3.5
Natty:
Report link

gk bisa basa inggris dan i dont know about you

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

79363602

Date: 2025-01-17 04:28:49
Score: 0.5
Natty:
Report link

express session has an option called rolling = true which will reset your maxAge on every server interaction. This is probably what you are looking for. Don't use expires, use maxAge, it's what they recommend anyway.

rolling: Force the session identifier cookie to be set on every response. The expiration is reset to the original maxAge, resetting the expiration countdown.

The default value is false.

With this enabled, the session identifier cookie will expire in maxAge since the last response was sent instead of in maxAge since the session was last modified by the server.

This is typically used in conjuction with short, non-session-length maxAge values to provide a quick timeout of the session data with reduced potential of it occurring during on going server interactions.

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

79363595

Date: 2025-01-17 04:23:48
Score: 2
Natty:
Report link
docker pull alpine/socat

docker run -d --restart=always \
-p 0.0.0.0:2375:2375 \
-v /var/run/docker.sock:/var/run/docker.sock \
alpine/socat \
tcp-listen:2375,fork,reuseaddr,ignoreeof unix-connect:/var/run/docker.sock

pycharm docker connection

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

79363591

Date: 2025-01-17 04:21:47
Score: 1
Natty:
Report link

Try adding the implementation for your default constructor in Skeleton.cpp

Skeleton::Skeleton()
{
    
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: robotrage

79363578

Date: 2025-01-17 04:13:45
Score: 4
Natty: 4.5
Report link

alert&confirm currently are not supported in webview_flutter

https://github.com/flutter/flutter/issues/30358#issuecomment-512763237

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nhat Minh Luong

79363562

Date: 2025-01-17 03:58:39
Score: 2.5
Natty:
Report link

From this post: https://stackoverflow.com/a/78353968/8031370

In App.razor:

<base href="@BaseUrl" />

At the bottom of App.razor add:

@code {
    [CascadingParameter]
    private HttpContext HttpContext { get; set; } = null!;
    private string BaseUrl => $"{HttpContext.Request.PathBase}/";
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jonathan B.

79363561

Date: 2025-01-17 03:56:38
Score: 1
Natty:
Report link

There is power in voodoo,I'm living example I lost my husband to third party we been marriage for the past Seven years, my man was never a cheat he Shower me love, respect me and our kids, I never knew he was in any relationships with third party due to my Job, 20th May, my man lift me with our Two kids and never return home I call his phone know response, i search for he but never find he i believe some worst must have happen to he, 2rd Dec, I came to conclude my man must have been in prison after sometime I try move on but my friend never allow me to do that she introduce me to Dr Akin voodoo,i never did this in my hole life but i just have to because my husband safely very important to our family, I was told my man been living with third party i never knew about it was really hard to believe this, but he under a spell that he moved to United kingdom but promise to return my man home I never believe this could work but i just want my man back I have to give it a try within five days my man return home this was like magic i must thank Dr Akin voodoo you really doing great Job my man return home and beg for my forgiveness I'm happy and all thanks Dr Akin voodoo is so Amazing contract he https://www.facebook.com/profile.php?id=100094035050805&mibextid=ZbWKwL

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tonia Kyle

79363559

Date: 2025-01-17 03:51:36
Score: 1.5
Natty:
Report link

Two potential issues here:

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

79363554

Date: 2025-01-17 03:47:34
Score: 1
Natty:
Report link

This problem was solved by changing CPU to one of the older versions, in my case, instead of SYSTEM.CPU bcm63268, I changed it to SYSTEM.CPU bcm6318 and commented out

;CORE.NUMBER 2
;SYSTEM.CONFIG.IRPOST  0. 5.
;SYSTEM.CONFIG.IRPRE   10. 5.
;SYSTEM.CONFIG.DRPOST  0. 1.
;SYSTEM.CONFIG.DRPRE   2. 1.

The system was able to get in ready state.

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

79363552

Date: 2025-01-17 03:44:33
Score: 1.5
Natty:
Report link

var exclusionRects = listOf(rect1, rect2, rect3)

fun onLayout( changedCanvas: Boolean, left: Int, top: Int, right: Int, bottom: Int) { // Update rect bounds and the exclusionRects list setSystemGestureExclusionRects(exclusionRects) }

fun onDraw(canvas: Canvas) { // Update rect bounds and the exclusionRects list setSystemGestureExclusionRects(exclusionRects) }

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tanvir hossen Emon

79363524

Date: 2025-01-17 03:18:23
Score: 1.5
Natty:
Report link

This solution don't work for me. I still can override mini-cart.php. I'm clear woocommerce caches but ı cant get result. I see overrided mini-cart in elementor designer page but ı cant see front-end. I try open web site different browser and i see overrided mini-cart. This is interesting. I clear all cache but i cant see. But this solition now is work.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mustafa Bükülmez

79363509

Date: 2025-01-17 02:59:15
Score: 1
Natty:
Report link

For WSL :

ps aux | grep dockerd

This will give you the daemon.json path, for me it was --config-file=/var/snap/docker/2963/config/daemon.json

Then add the

{
    "insecure-registries" : [ "hostname.cloudapp.net:5000" ]
}

and restart wsl.

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

79363506

Date: 2025-01-17 02:57:14
Score: 1.5
Natty:
Report link

mindmap root((Lignina)) (Definición) (Polímero natural) (Componente de la pared celular) (Segunda sustancia orgánica más abundante) (Estructura Química) (Unidades fenilpropanoides) (p-hidroxifenilo) (guayacilo) (siringilo) (Enlaces covalentes) (Estructura tridimensional) (Fuentes Naturales) (Madera) (Plantas vasculares) (Residuos agrícolas) (Propiedades) (Color marrón característico) (Resistencia mecánica) (Hidrofobicidad) (Resistencia a la degradación) (Aplicaciones) (Industria del papel) (Biocombustibles) (Materiales compuestos) (Adhesivos naturales) (Importancia Biológica) (Soporte estructural) (Protección contra patógenos) (Transporte de agua) (Evolución de plantas terrestres)

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

79363504

Date: 2025-01-17 02:57:14
Score: 1
Natty:
Report link

you have to add the directories you want it to discover the .h files in to the properties,

    [project name] Properties -> Configuration -> C/C++ -> General -> Additional Include Directories

add the directory path to this entry and it should be able to see your .h file now

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

79363498

Date: 2025-01-17 02:47:10
Score: 3
Natty:
Report link

The code you show is not ugly.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Programnik

79363497

Date: 2025-01-17 02:47:10
Score: 2
Natty:
Report link

In this case, what worked for me was

@array('["1", "2"]')

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Carlos Eduardo Tovar

79363490

Date: 2025-01-17 02:42:09
Score: 0.5
Natty:
Report link

There is no Visual C++ 98.

For Visual C++ 6.0, add Header directory in Project Setting >C/C++ >Category:(Preprocessor)> Additional include directories.

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

79363486

Date: 2025-01-17 02:35:05
Score: 11 🚩
Natty: 6.5
Report link

did you find any solution here? am facing the same prb

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): did you find any solution
  • RegEx Blacklisted phrase (2): any solution here?
  • 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 find any solution
  • Low reputation (1):
Posted by: Yassine Grib

79363483

Date: 2025-01-17 02:29:03
Score: 1
Natty:
Report link

You should Try BigInt, BigInt provide better percion than numbers in javascript

console.log(Number('712577413488402631964821329'))
console.log(BigInt('712577413488402631964821329712577413488402631964821329'))

run this code and check it by yourshelf

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

79363479

Date: 2025-01-17 02:25:01
Score: 5.5
Natty: 5.5
Report link

I want to know this too, who can tell me.

Reasons:
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (1): I want
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Celebrimbor

79363478

Date: 2025-01-17 02:22:59
Score: 3
Natty:
Report link

I finally solved this problem by downgrading GCC version to 7.5. I had to make a compromise because the project needs to progress. This can't really be considered a solution because the real reason for why higher version GCC doesn't work still remains unresolved.

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

79363471

Date: 2025-01-17 02:14:55
Score: 4
Natty:
Report link

Reverting to setuptools==75.6.0 helped me

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

79363470

Date: 2025-01-17 02:14:55
Score: 0.5
Natty:
Report link

I had the same issue, what worked for me, was renaming the stack.yaml file to stack_notrequired.yaml (or what ever name you want to give) probably deleting the file will also work. But I usually don't like deleting files.

The language server after this change stared working in the intellij environment for the Haskell hls plugin.

All other solutions did not work for me. I don't have an explanation as to why this is the case.

Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): I had the same
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vivek Ramaswamy

79363466

Date: 2025-01-17 02:12:54
Score: 1.5
Natty:
Report link

Try z-index: -1;, worked for me.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: zangbianxuegu

79363461

Date: 2025-01-17 02:06:52
Score: 2.5
Natty:
Report link

You can try this free online tool base64 to image

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

79363460

Date: 2025-01-17 02:04:51
Score: 1.5
Natty:
Report link

The only solution I was able to find was to update the server agent, which was surprising simple.

From Build section (blue rocket) of your devOps project select "Deployment groups".
Click the three dot to the right of the label for the offending server.
Select "Update target".

Thats it. My release then worked.

Screen grab to illustrate the above instruction

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

79363456

Date: 2025-01-17 02:00:50
Score: 2
Natty:
Report link

Thanks for @Brooke information.

Got it working with

Host="https://app-money.tmx.com/graphql"
Payload = {
        "operationName": "getQuoteBySymbol",
        "variables": 
        {
            "symbol": "BNS",
            "locale": "en"
        },
        "query": "query getQuoteBySymbol($symbol: String, $locale: String) {\n getQuoteBySymbol(symbol: $symbol, locale: $locale) {\n symbol\n name\n price\n priceChange\n percentChange\n }\n}"
    }

    response = requests.post(Host, json=Payload)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • User mentioned (1): @Brooke
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dilbert

79363445

Date: 2025-01-17 01:53:47
Score: 1.5
Natty:
Report link

Open this folder \Arduino\libraries\Blynk\src\Blynk then open the BlynkApi.h file then comment these lines

#if !defined(BLYNK_TEMPLATE_ID) || !defined(BLYNK_TEMPLATE_NAME)
 #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
#endif

i hope this was helping

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

79363441

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

when creating windows service using python , if "Error 1053: The service did not respond to the start or control request in a timely fashion" shows , just ensure this command: pyinstaller --onefile python_file.py --hidden-import=win32timezone --clean --uac-admin

(that importing win32timezone is importent::: )

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): when
  • Low reputation (1):
Posted by: Muhammed Fayiz

79363419

Date: 2025-01-17 01:21:35
Score: 1.5
Natty:
Report link

This issue is occurring because of the CSS. The tag is stretched to fit the container because it inherits the properties. The JavaScript events are used correctly. However, it seems like it occurs on the containing div because the image expands the container's area. If you use Chrome dev tools and hover over the elements it will make more sense. Here is the code I have updated. Please let me know if this works for you.

function mouse_entered() {
  console.log("mouse entered!")
}

function mouse_left() {
  console.log("mouse left!")
}
.image-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
<div class="image-container">
  <img src="https://lh3.googleusercontent.com/-s05ILbxi6YA/AAAAAAAAAAI/AAAAAAAAACc/yAd6W8jNSBI/photo.jpg?sz=256"
     class="image"
     onmouseenter="mouse_entered()"
     onmouseleave="mouse_left()"
>
</div>

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dram95

79363418

Date: 2025-01-17 01:20:33
Score: 8.5 🚩
Natty:
Report link

Did anyone find a definitive solution or cause for this? I am running into the same issue and it's going to make using Stripe Elements nearly impossible. It seems to dynamically adjust the height of the iframe when the window is resized, so I can't even set it using jQuery.

I tried unsetting the zoom css property for all the surrounding elements, but that didn't work. It's possible I missed one, though. If anyone found a solution to this, I'd love to hear about it.

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (2): anyone found
  • RegEx Blacklisted phrase (3): Did anyone find a
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did anyone find a
  • Low reputation (1):
Posted by: Kareem Badr

79363416

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

Creating view or materialized view on top of streaming data and accessing it frequently will increase the cost like anything. One better solution can be write the data in the table in flatten format.

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

79363413

Date: 2025-01-17 01:14:31
Score: 2.5
Natty:
Report link

Here is a link to the answer. It is not sendgrid specific but Python version specific. I was able to use the link provided in this answer to find the script that I needed to run to update the SSL certs for python.

urllib and "SSL: CERTIFICATE_VERIFY_FAILED" Error

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mitchell Leefers

79363412

Date: 2025-01-17 01:14:31
Score: 0.5
Natty:
Report link

First, create utils/mongodb.js, we will use this to connect to MongoDB.

import { MongoClient } from 'mongodb';

export const connectToDatabase = async () => {
  const uri = process.env.MONGODB_URI;
  const dbName = process.env.MONGODB_DB;

  const client = new MongoClient(uri);

  try {
    // Connect to the MongoDB cluster
    await client.connect();

    // Access the specified database
    const db = client.db(dbName);

    return { client, db };
  } catch (error) {
    console.error('Failed to connect to MongoDB', error);
    throw error;
  }
};

then create a Server-Side API Endpoint server/api/products.js

import { connectToDatabase } from '../../utils/mongodb';

export default defineEventHandler(async () => {
  const { client, db } = await connectToDatabase();
  event.node.res.setHeader('Cache-Control', 'no-store');

  try {
    const collection = db.collection('products');
    const products = await collection.find({}).limit(10).toArray();

    return { products };
  } catch (error) {
    console.error('Failed to fetch products:', error);
    throw createError({
      statusCode: 500,
      statusMessage: 'Failed to fetch products',
    });
  } finally {
    await client.close();
  }
});

then Fetch Data in the Nuxt Page Using useFetch

<template>
  <div class="container mx-auto">
    {{ products }}
  </div>
</template>

<script setup>
const { data: products, error } = await useFetch('/api/products')

if (error.value) {
  console.error(error.value)
}
</script>

enter image description here

enter image description here

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

79363404

Date: 2025-01-17 01:05:29
Score: 3
Natty:
Report link

file:///storage/emulated/0/Download/step14.html dosya indirmek istiyorum fakat tarayıcılar sitenin güvenli olmadığı uyarısı veriyor dosyayayı imdiremiyorum

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

79363402

Date: 2025-01-17 01:02:28
Score: 0.5
Natty:
Report link

All this dates back to the early days of QuickBasic (for DOS) where there was no direct concept of DataTyping your variables. i.e. you couldn't do: Dim A As Integer Instead, there were symbols to represent the different data types. As I recall, they were:

  1. $ for strings
  2. ! for single-precision numbers
  3. # for double-precision numbers
  4. % for standard integers
  5. & for long integers

You may have noticed that if you try to concatenate variables, like A&B, you get an error, but A &B works. What seems to be happening is that the archaic data-typing still exists, so it interprets A&B as "Take the long integer variable A, aka A&, and the untyped variable B and, oops...no operator between them so it's an error." If you were to use A&&B, it would work because that's interpreted as "Take the long integer variable A, aka A&, and concatenate it (&) with untyped variable B"

It seems that the "^" must also be included in that group of type symbols, although I don't recall ever running into it. By putting the space (or parentheses) before the symbol, it separates the variable from its archaic data type. Similar to &, it seems that doubling the ^ applies one as the data type for the first variable, then applies the power operate from the first to the second value. It's also why you can't use the ^ twice because it's like using ++ or // to add or divide.

So the answer is to always use a space before any symbol at the end of a variable to avoid this archaic interpretation.

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

79363401

Date: 2025-01-17 01:02:28
Score: 0.5
Natty:
Report link

You can get the output in json and use jq

pactl -fjson list sink-inputs |jq '.[]|select(.properties["application.name"] == "app-name").index'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: lights

79363398

Date: 2025-01-17 00:57:27
Score: 0.5
Natty:
Report link

At the moment, this is where you find the VMWare Tools: https://packages.vmware.com/tools/frozen/darwin/

You download darwin.iso, attach it as CD in the settings of VMware Player, then start your machine, autorun will run, you jump through all hoops and dialogs, and there you go.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ilya.chepurnoy

79363382

Date: 2025-01-17 00:45:23
Score: 10.5 🚩
Natty:
Report link

I had the same issue, have you found any solution yet?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Whitelisted phrase (-1): I had the same
  • RegEx Blacklisted phrase (2.5): have you found any solution yet
  • RegEx Blacklisted phrase (2): any solution yet?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zoe Zheng

79363362

Date: 2025-01-17 00:32:20
Score: 1
Natty:
Report link

As mentioned Bober02's answer, a k-d tree may be built by partitioning via either a presorting algorithm or a median of medians algorithm. These two algorithms are discussed in detail in the following two publications.

https://www.jcgt.org/published/0004/01/03/

https://arxiv.org/abs/1410.5420

Both publications provide source code for implementations of the tree-building algorithms; however, the arXiv publication provides highly optimized implementations relative to the Journal of Computer Graphics Techniques publication.

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

79363358

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

I found out my libraries were installed in a few different directories so I added a custom.config file in

/etc/ld.so.conf.d/custom.config

and added the directories of all the locations

/usr/lib/x86_64-linux-gnu
/usr/local/lib
/usr/lib

then update:

sudo ldconfig
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Laura Budurlean

79363340

Date: 2025-01-17 00:09:16
Score: 1
Natty:
Report link

So, what I had to do was to DELETE the app and rebuild. This would erase all previous settings, a new token will be created and with the new permission parameters the notifications will show on the lock screen.

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

79363339

Date: 2025-01-17 00:07:16
Score: 2
Natty:
Report link

Found a one-line solution with a key prop passed to the SessionProvider:

<SessionProvider session={session} key={session?.user.id}>
  <NextIntlClientProvider messages={messages}>
      {children}
   </NextIntlClientProvider>
</SessionProvider>

Credits: https://github.com/nextauthjs/next-auth/issues/9504#issuecomment-2516665386

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

79363338

Date: 2025-01-17 00:05:15
Score: 3
Natty:
Report link

If you delete a log file then you have to restart service, so I'd rather use the command "truncate", which empties the log file without deleting it.

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

79363335

Date: 2025-01-17 00:03:14
Score: 4.5
Natty:
Report link

I've tried your code but to no avail.

My full code reads as following:

<iframe id="soundcloud_player" width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/1647126214&color=%23ff5500&auto_play=true"></iframe>
<script src="https://connect.soundcloud.com/sdk/sdk-3.3.2.js"></script>
<script>
$(document).ready(function(){

    //Variable declaration
    var player = SC.Widget($('iframe.sc-widget')[0]);
    var randomVal;

    //player initialisation
    player.bind(SC.Widget.Events.READY, function() {

        randomSong(player);
        player.play();
    }); 

     //Set the random song
     function randomSong(player) {

        randomVal = Math.random() * 10;
        for(i = 0; i < randomVal; i++)
        {
            player.next();
        }
    }
});
</script>

You can find it on cerculintreg.ro.

Any suggestion why it still starts linearly?

Reasons:
  • RegEx Blacklisted phrase (2): Any suggestion
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29234445

79363334

Date: 2025-01-17 00:03:14
Score: 3.5
Natty:
Report link

Close the simulator press (cmd + Q) and open the simulator again and re build the app

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

79363325

Date: 2025-01-16 23:56:12
Score: 1
Natty:
Report link

I had the same issue with the planetscale-stream-ts library. It turns out it was related to compilerOptions.moduleResolution in tsconfig.json.

When I set it to NodeNext, I received the same error. However, when I set it to Node or Bundler, the error went away.

Since I plan on using tsx to run the code, I'm going to use Bundler.

https://www.typescriptlang.org/docs/handbook/modules/guides/choosing-compiler-options.html

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aryeh B

79363322

Date: 2025-01-16 23:51:11
Score: 1
Natty:
Report link

Ok here is what was happening.

This notation in CLI script did not work

  python preprocessing_script.py
  --Y_df ${{outputs.Y_df}} 
  --S_df ${{outputs.S_df}}

Thats because hydra does not like that notation (I think)

Instead this notation worked:

  python data_processing.py '+Y_df=${{outputs.Y_df}}' '+S_df=${{outputs.S_df}}'

What this does is that it adds those 2 new variables - Y_df and S_df into the config file These variables can be accessed in the program just like all other variables in the config file by doing cfg.Y_df or cfg.S_df

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ameya Bhave

79363298

Date: 2025-01-16 23:31:08
Score: 2.5
Natty:
Report link
  1. I have downloaded the firebase-cli with npm
  2. Then added "C:\Users\{username}\AppData\Roaming\npm" to PATH
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: hjtomi

79363279

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

Here is an extension to define a daterange type with inclusive upper bound

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

79363277

Date: 2025-01-16 23:18:05
Score: 3
Natty:
Report link

You are missing confluent's magic byte. It has to be the first byte in the message or you'll get this error.

https://www.confluent.io/blog/how-to-fix-unknown-magic-byte-errors-in-apache-kafka/

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

79363267

Date: 2025-01-16 23:09:03
Score: 1
Natty:
Report link

Whether b equals 2 or 4 depends on your representation of input size.

If the size of the input is n (i.e., the size of one dimension of each input array), then the running time of the naive algorithm is O(n3) and each square array in each subproblem has dimension n/2. Thus b is 2 and the running time for Strassen's is O(nlog27).

If the size of the input is the number of elements in each array m=n2, then the running time of the naive algorithm is O(m m1/2) = O(m3/2) and each square array in each subproblem has m/4 elements in it. Thus b is 4 and the running time for Strassen's is O(mlog47).

Relative to their representations of input size, these running times are identical since you can map between them by changing the representation with m=n2:

For the naive algorithm, O(n3)=O((m1/2)3) = O(m3/2).

For Strassen's, O(nlog27) = O((m1/2)log27) = O(m(log_2 7)/2)=O(m(log27)/(log24)) = O(mlog47).

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

79363242

Date: 2025-01-16 22:50:59
Score: 0.5
Natty:
Report link

In case you haven’t tried yet, please check the troubleshooting guide for recommended steps to rule out application side failure:

Another thing to consider is investigating if there’s a mismatch in the location of your resources. This solution works here and could be useful to you (hopefully).

If the above options still won’t resolve it, this could be a Cloud Run specific issue and better addressed by the Google Cloud Support team. You may reach out to them via below channels:

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

79363236

Date: 2025-01-16 22:46:58
Score: 1.5
Natty:
Report link

You have to manually do it without any deps or Bean

class Util{
  public static Validator validator(){
    return Validation.buildDefaultValidatorFactory().getValidator();
  }
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: viespring

79363234

Date: 2025-01-16 22:46:58
Score: 2.5
Natty:
Report link

var options = new JsonSerializerOptions(); var client = new RestClient(BaseURL, configureSerialization: s=> s.UseSystemTextJson(options));

Should do it.

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

79363211

Date: 2025-01-16 22:34:55
Score: 6 🚩
Natty: 4.5
Report link

Hello I have almost same problem on crDroid 11.0 Android 15 on Oneplus 9 Pro:

https://paste.crdroid.net/tPRvFA

Any advice on how to fix this please?

Reasons:
  • RegEx Blacklisted phrase (1.5): how to fix this please?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Dominik Kozmáli

79363199

Date: 2025-01-16 22:27:53
Score: 1.5
Natty:
Report link

Since you are already logged in with OIDC via the azure/login task, you should be able to login to azcopy through the --identity flag:

azcopy login --identity

Additional details here: https://learn.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-login

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

79363192

Date: 2025-01-16 22:23:52
Score: 1.5
Natty:
Report link

I agree with @Doug Stevenson. The upload speed is determined by various factors, including the protocol used, available bandwidth, network latency, and the size and quality of the images or videos being uploaded.

For Cloud Storage for Firebase location, you must consider choosing the location of your bucket close to you to reduce latency and increase availability. (This post might give you insights)

If you are uploading using Firebase Client SDKs, the upload speed is slower compared to using gsutil. This is because, unlike the direct communication between gsutil and Cloud Storage, the SDKs must evaluate Security Rules, which introduces latency due to the time spent on these evaluations.

You can also try reducing the size and quality of the images or videos, as well as increasing your internet speed. (see this post)

For ways to track upload progress and other useful methods, check out these blogs :

  1. 5 tips for Firebase Storage

  2. Uploading Images, Videos and files to an API in Flutter: Best Practices and Methods

  3. Firebase Cloud Storage

I hope the above helps.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Doug
  • Low reputation (0.5):
Posted by: HerPat

79363191

Date: 2025-01-16 22:23:52
Score: 0.5
Natty:
Report link

I think I may have sorted this out... I had:

authority: "https://login.microsoftonline.com/common",

And I've changed it to include the tenant / directory id:

authority: "https://login.microsoftonline.com/XXXXX-XXXXX-XXXX-XXXXX",

Not sure why having it set to common vs. the tenant / directory id would ignore the other settings and allow anyone to login, but that's what it's looking like.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ben in CA

79363187

Date: 2025-01-16 22:22:52
Score: 2
Natty:
Report link

This can help if you get error while updating:

sudo nix-channel --update
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Adb

79363185

Date: 2025-01-16 22:20:51
Score: 1
Natty:
Report link

I have a project NextJS 15.1.4 that was throwing this error (Typescript & utilizing app router) ended up creating a pages folder with an empty file .keep. Upon re-running next build the error went away.

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

79363170

Date: 2025-01-16 22:09:47
Score: 10.5 🚩
Natty:
Report link

Ok, based of everyone's suggestions, and after trying quite a few different things, I sort of found a solution. I had to delete the MoveC script, then close vs code. I then opened vs code again, created a new script but changed the name from MoveC to MyMoveC.hlsl. I then pasted back my old MoveC code, but had to change the name of the Move struct as well. I then changed all references to both the struct and the MoveC script. I then had to close vs code and open it again, and finally all the errors disappeared. However, if I only changed the name of the script, or the struct, but not both, I would still get the same errors, and if i didn't close and restart vs code in between it also would't work. Does anyone have any idea what was going on?

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have any idea
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): get the same error
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Frank

79363167

Date: 2025-01-16 22:08:47
Score: 1
Natty:
Report link

There is no way to set the quantity manually. It is managed by Play Store. Users can select the quantity at checkout time.

enter image description here

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

79363159

Date: 2025-01-16 22:03:46
Score: 0.5
Natty:
Report link

I suggest creating a new field from your date time then group and summarise by date:

df2 <- df %>%
  mutate(Date=as.Date(Date_Time_Variable)) %>%
    group_by(Date) %>%
      summarise(Mean_Temp=mean(TemP_Variable, na.rm=T))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: BEVAN

79363155

Date: 2025-01-16 22:01:45
Score: 2
Natty:
Report link

Use: Set SheetShell = CreateObject("WScript.Shell") SheetShell.SendKeys "~", True

'for sending the "Enter" key for example.

This approach works consistently.

Using the Application.SendKeys "~", True approach will toggle the the Numlock On and Off if you run the the script multiple times (for example)

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

79363153

Date: 2025-01-16 22:00:45
Score: 3
Natty:
Report link

I know, it's not Chrome as asked for, but in Firefox there is the "measure portion of the page" tool.

Portion of a browser window showing a box drawn onto the screen with an annotation showing its width and height.

It lets you draw boxes and shows their dimensions.

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

79363145

Date: 2025-01-16 21:56:43
Score: 4
Natty:
Report link

Yes, this is possible now for HTTPS endpoints (launched at re:Invent): https://aws.amazon.com/about-aws/whats-new/2024/12/amazon-eventbridge-step-functions-integration-private-apis/

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

79363144

Date: 2025-01-16 21:56:43
Score: 3
Natty:
Report link

the #eclipse plugin #corrosion (yes they really like to call things like that) it is a wee bit buggy but it worked on hello world :) https://dwaves.de/2025/01/10/howto-step-debugging-rust-in-eclipse-rust-game-engines-3d-running-in-the-browser/

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

79363141

Date: 2025-01-16 21:54:42
Score: 6 🚩
Natty: 5.5
Report link

does it also support sending fragments?

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

79363140

Date: 2025-01-16 21:53:42
Score: 0.5
Natty:
Report link
  1. Install "EFCore.BulkExtensions" on EntityFrameworkCore module.

  2. Create a custom repository interface in your Core.Shared module:

   public interface ICustomRepository : IRepository where TEntity : class, IEntity
{
    int CountAsNoTracking();

    int CountAsNoTracking(Expression> predicate);

    Task CountAsNoTrackingAsync();

    Task CountAsNoTrackingAsync(Expression> predicate);

    TEntity FirstOrDefaultAsNoTracking(TPrimaryKey id);

    TEntity FirstOrDefaultAsNoTracking(Expression> predicate);

    Task FirstOrDefaultAsNoTrackingAsync(TPrimaryKey id);

    Task FirstOrDefaultAsNoTrackingAsync(Expression> predicate);

    IQueryable GetAllAsNoTracking();

    IQueryable GetAllIncludingAsNoTracking(params Expression>[] propertySelectors);

    List GetAllListAsNoTracking();

    List GetAllListAsNoTracking(Expression> predicate);

    Task> GetAllListAsNoTrackingAsync();

    Task> GetAllListAsNoTrackingAsync(Expression> predicate);

    TEntity GetAsNoTracking(TPrimaryKey id);

    Task GetAsNoTrackingAsync(TPrimaryKey id);

    TEntity LoadAsNoTracking(TPrimaryKey id);

    long LongCountAsNoTracking();

    long LongCountAsNoTracking(Expression> predicate);

    Task LongCountAsNoTrackingAsync();

    Task LongCountAsNoTrackingAsync(Expression> predicate);

    T QueryAsNoTracking(Func, T> queryMethod);

    TEntity SingleAsNoTracking(Expression> predicate);

    Task SingleAsNoTrackingAsync(Expression> predicate);

    Task BulkInsert(IList entities);

    Task BulkUpdate(IList entities);

    Task BulkDelete(IList entities);

}

public interface ICustomRepository : ICustomRepository where TEntity : class, IEntity
{

}
  1. Create your custom repository in EntityFramework module:
    public class CustomRepository : ProjectNameRepositoryBase, ICustomRepository where TEntity : class, IEntity
  {
      private readonly IDbContextProvider _dbContextProvider;

      public CustomRepository(IDbContextProvider dbContextProvider) : base(dbContextProvider)
      {
          _dbContextProvider = dbContextProvider;
      }

      public virtual IQueryable GetAllAsNoTracking()
      {
          return GetAll().AsNoTracking();
      }

      public virtual IQueryable GetAllIncludingAsNoTracking(params Expression>[] propertySelectors)
      {
          return GetAllAsNoTracking();
      }

      public virtual List GetAllListAsNoTracking()
      {
          return GetAllAsNoTracking().ToList();
      }

      public virtual Task> GetAllListAsNoTrackingAsync()
      {
          return Task.FromResult(GetAllListAsNoTracking());
      }

      public virtual List GetAllListAsNoTracking(Expression> predicate)
      {
          return GetAllAsNoTracking().Where(predicate).ToList();
      }

      public virtual Task> GetAllListAsNoTrackingAsync(Expression> predicate)
      {
          return Task.FromResult(GetAllListAsNoTracking(predicate));
      }

      public virtual T QueryAsNoTracking(Func, T> queryMethod)
      {
          return queryMethod(GetAllAsNoTracking());
      }

      public virtual TEntity GetAsNoTracking(TPrimaryKey id)
      {
          var entity = FirstOrDefaultAsNoTracking(id);
          if (entity == null)
          {
              throw new EntityNotFoundException(typeof(TEntity), id);
          }

          return entity;
      }

      public virtual async Task GetAsNoTrackingAsync(TPrimaryKey id)
      {
          var entity = await FirstOrDefaultAsNoTrackingAsync(id);
          if (entity == null)
          {
              throw new EntityNotFoundException(typeof(TEntity), id);
          }

          return entity;
      }

      public virtual TEntity SingleAsNoTracking(Expression> predicate)
      {
          return GetAllAsNoTracking().Single(predicate);
      }

      public virtual Task SingleAsNoTrackingAsync(Expression> predicate)
      {
          return Task.FromResult(SingleAsNoTracking(predicate));
      }

      public virtual TEntity FirstOrDefaultAsNoTracking(TPrimaryKey id)
      {
          return GetAllAsNoTracking().FirstOrDefault(CreateEqualityExpressionForId(id));
      }

      public virtual Task FirstOrDefaultAsNoTrackingAsync(TPrimaryKey id)
      {
          return Task.FromResult(FirstOrDefaultAsNoTracking(id));
      }

      public virtual TEntity FirstOrDefaultAsNoTracking(Expression> predicate)
      {
          return GetAllAsNoTracking().FirstOrDefault(predicate);
      }

      public virtual Task FirstOrDefaultAsNoTrackingAsync(Expression> predicate)
      {
          return Task.FromResult(FirstOrDefaultAsNoTracking(predicate));
      }

      public virtual TEntity LoadAsNoTracking(TPrimaryKey id)
      {
          return GetAsNoTracking(id);
      }

      public virtual int CountAsNoTracking()
      {
          return GetAllAsNoTracking().Count();
      }

      public virtual Task CountAsNoTrackingAsync()
      {
          return Task.FromResult(CountAsNoTracking());
      }

      public virtual int CountAsNoTracking(Expression> predicate)
      {
          return GetAllAsNoTracking().Where(predicate).Count();
      }

      public virtual Task CountAsNoTrackingAsync(Expression> predicate)
      {
          return Task.FromResult(CountAsNoTracking(predicate));
      }

      public virtual long LongCountAsNoTracking()
      {
          return GetAllAsNoTracking().LongCount();
      }

      public virtual Task LongCountAsNoTrackingAsync()
      {
          return Task.FromResult(LongCountAsNoTracking());
      }

      public virtual long LongCountAsNoTracking(Expression> predicate)
      {
          return GetAllAsNoTracking().Where(predicate).LongCount();
      }

      public virtual Task LongCountAsNoTrackingAsync(Expression> predicate)
      {
          return Task.FromResult(LongCountAsNoTracking(predicate));
      }

      public virtual async Task BulkInsert(IList entities)
      {
          var _context = await _dbContextProvider.GetDbContextAsync();
          var bulkConfig = new BulkConfig { BulkCopyTimeout = 0, BatchSize = 4000 };
          _context.Database.SetCommandTimeout(600);
          await _context.BulkInsertAsync(entities, bulkConfig);
      }

      public virtual async Task BulkUpdate(IList entities)
      {
          var _context = await _dbContextProvider.GetDbContextAsync();
          var bulkConfig = new BulkConfig { BulkCopyTimeout = 0, BatchSize = 4000 };
          _context.Database.SetCommandTimeout(600);
          await _context.BulkUpdateAsync(entities, bulkConfig);

      }

      public virtual async Task BulkDelete(IList entities)
      {
          var _context = await _dbContextProvider.GetDbContextAsync();
          var bulkConfig = new BulkConfig { BulkCopyTimeout = 0, BatchSize = 4000 };
          _context.Database.SetCommandTimeout(600);
          await _context.BulkDeleteAsync(entities, bulkConfig);
      }

  }
  1. Register this repository on PreInitialize (EntityFrameworkCoreModule):

    IocManager.IocContainer.Register(Component.For(typeof(ICustomRepository)).ImplementedBy(typeof(CusomRepository)).LifestyleTransient());
  2. Use:

  public class TestAppService : ProjectAppServiceBase, ITestAppService
 {
     private readonly ICustomRepository _carRepository;

     public TestAppService(ICustomRepository carRepository)
     {
         _carRepository = carRepository;
     }


     public async Task Test(TestInput input)
     {
         // do a logic
         // await _carRepository.BulkInsert(input.cars);
     }
 }
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Frederico Pires

79363135

Date: 2025-01-16 21:51:41
Score: 1
Natty:
Report link

There is an undocumented Win32 API call named NtRaiseHardError which can be called using P/Invoke and ntdll. This is actually the way that the Memz trojan triggers a BSOD without requiring administrator rights. https://github.com/peewpw/Invoke-BSOD/blob/master/Program.cs http://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%20Functions%2FError%2FNtRaiseHardError.html

using System;
using System.Runtime.InteropServices;

namespace App
{
    class Program
    {
        [DllImport("ntdll.dll")]
        public static extern uint RtlAdjustPrivilege(int Privilege, bool bEnablePrivilege, bool IsThreadPrivilege, out bool PreviousValue);

        [DllImport("ntdll.dll")]
        public static extern uint NtRaiseHardError(uint ErrorStatus, uint NumberOfParameters, uint UnicodeStringParameterMask, IntPtr Parameters, uint ValidResponseOption, out uint Response);

        static unsafe void Main(string[] args)
        {
            Boolean t1;
            uint t2;
            RtlAdjustPrivilege(19, true, false, out t1);
            NtRaiseHardError(0xc0000022, 0, 0, IntPtr.Zero, 6, out t2);
        }
    }
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jamie Howell

79363121

Date: 2025-01-16 21:47:39
Score: 6 🚩
Natty:
Report link

It seems like it's is not possible. :(

https://docs.cypress.io/app/references/trade-offs#Multiple-browsers-open-at-the-same-time

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

79363118

Date: 2025-01-16 21:46:39
Score: 1.5
Natty:
Report link

You can define a summarizer agent with a cheap LLM such as GPT-3.5 and have a custom function to use that agent for message summarization. Something like this:

import autogen
from autogen import ConversableAgent

api_key = open('api.txt').read().strip()

llm_config = { "config_list": [
    { "model": "gpt-4o", "api_key": api_key },
    { "model": "gpt-3.5-turbo", "api_key": api_key },
] } 

cheap_filter = {"model": ["gpt-3.5-turbo"]}

john = ConversableAgent(
    name="John",
    system_message="You are a comedian in a play role.",
    llm_config=llm_config,
    human_input_mode="NEVER",
    max_consecutive_auto_reply=6,
)

david = ConversableAgent(
    name="David",
    system_message="You are a comedian in a play role.",
    llm_config=llm_config,
    human_input_mode="NEVER",
    max_consecutive_auto_reply=3,
    description="Writes Frontend code for the website and start each task.",
)

summarizer = ConversableAgent(
    name="Summarizer",
    system_message="You are a chat summarizer. You receive one chat message at a time and summarize it.",
    llm_config={'config_list': autogen.filter_config(llm_config['config_list'], cheap_filter)},
    human_input_mode="NEVER",
    max_consecutive_auto_reply=1,
)

def summarizeChat(sender, receiver, summary_args):
    summarizer = summary_args['summarizer']
    result = receiver.initiate_chat(
                summarizer, 
                message=receiver.last_message(sender)['content'],
                max_turns=1,
                silent=True
                )
    return result

david.initiate_chat(john,
                    message="Do you know why the computer went to the doctor?",
                    summary_method=summarizeChat,
                    summary_args={"summarizer": summarizer})

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you know why
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mohammad Hossein Amini

79363115

Date: 2025-01-16 21:42:38
Score: 1.5
Natty:
Report link

/storage/emulated/0/Download/the long drive mobile_1.0_APKPure/icon.png Bad or unknown format /storage/emulated/0/Download/the long drive mobile_1.0_APKPure/icon.png archive

/storage/emulated/0/Download/the long drive mobile_1.0_APKPure/manifest.json Bad or unknown format /storage/emulated/0/Download/the long drive mobile_1.0_APKPure/manifest.json archive

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