79261902

Date: 2024-12-08 05:37:24
Score: 1.5
Natty:
Report link

similar to @hdg1955's answer, the other way around

not wanting to change either virsh nor virt-manager's default for now, I've been using

virsh -c qemu:///system list --all
virsh --connect qemu:///system snapshot-list win11

etc.

when I'll get tired of the additional keystrokes, I'll change either of the default

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @hdg1955's
  • Low reputation (0.5):
Posted by: the-citto

79261899

Date: 2024-12-08 05:34:23
Score: 5.5
Natty: 5.5
Report link

when we run, I could see all the scenarios execute sequentially whether we can run parallel?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): when we
  • Low reputation (1):
Posted by: Bobby Stefy chris

79261892

Date: 2024-12-08 05:29:21
Score: 2
Natty:
Report link

There is no issue without use of GridSearchCV in your machine learning model, but it can reduce the overall performance if you don't use appropriate parameters. The scikit-learn library provides a number of parameters for each algorithm. The main goal of using the GridSearchCV method is to select the best parameters for your model to improve its accuracy.

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

79261891

Date: 2024-12-08 05:26:21
Score: 3
Natty:
Report link

Nevermind, figured out the issue. Variables can't start with a number. I just have to put a _ before them all and it works fine, I think. What a miserable experience batch is. I love this

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

79261887

Date: 2024-12-08 05:20:20
Score: 2
Natty:
Report link

I had a similar issue and solved it by removing the trailing / in the mount path definition.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: live.laugh.libra

79261883

Date: 2024-12-08 05:09:18
Score: 1.5
Natty:
Report link

This is my preferred solution.

(defun my-eshell ()
  (interactive)
  (eshell)
  (rename-buffer (generate-new-buffer-name "eshell")))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: johan ard

79261859

Date: 2024-12-08 04:47:13
Score: 0.5
Natty:
Report link

I encountered the same issue.

I am using several drawing indicators in my strategy, as shown below:

        bt.indicators.ExponentialMovingAverage(self.datas[0], period=25)
        bt.indicators.WeightedMovingAverage(self.datas[0], period=25,subplot=True)
        # bt.indicators.StochasticSlow(self.datas[0])
        bt.indicators.MACDHisto(self.datas[0])
        rsi = bt.indicators.RSI(self.datas[0])
        bt.indicators.SmoothedMovingAverage(rsi, period=10)
        bt.indicators.ATR(self.datas[0], plot=False)

When I comment out bt.indicators.StochasticSlow(self.datas[0]), the problem does not occur. I don't have enough time to research it, but I hope this information is helpful to you.

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

79261857

Date: 2024-12-08 04:43:12
Score: 3.5
Natty:
Report link

I used FAT system. The problem solved. Some SD modules only support FAT type.

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

79261855

Date: 2024-12-08 04:40:10
Score: 6.5 🚩
Natty:
Report link

I'm have similar issue with me , not sure if the "randomforest" libarary from CRAN is supported for my R version

RStudio 2024.09.0+375 "Cranberry Hibiscus" Release (c8fc7aee6dc218d5687553f9041c6b1e5ea268ff, 2024-09-16) for macOS Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.09.0+375 Chrome/124.0.6367.243 Electron/30.4.0 Safari/537.36, Quarto 1.5.57

Appreciate if any one can help, I have a project assignment to submit tomorrow EOD. sunday Dec-8-2024

Reasons:
  • RegEx Blacklisted phrase (3): any one can help
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm have similar issue
  • Low reputation (1):
Posted by: user27556210

79261849

Date: 2024-12-08 04:31:08
Score: 1.5
Natty:
Report link

i understand that this is off topic.

But to help you make the decision there's a couple of elements that you want to put into consideration.

  1. What are the events that you are looking to consume? Use case?
  2. Will you be pushing or just subscribing.
  3. Lastly frequency.

A less known feature in SFDC is the data change function, but its been a few years since i work on it. But you can explore if that helps. https://developer.salesforce.com/docs/atlas.en-us.change_data_capture.meta/change_data_capture/cdc_intro.htm

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: lancegoh

79261844

Date: 2024-12-08 04:30:07
Score: 2.5
Natty:
Report link

The best approach is to overwrite all the templates you don't need and point them to a 404 page, for example.

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

79261843

Date: 2024-12-08 04:28:07
Score: 3.5
Natty:
Report link

Failed to retrieve authorization token code i used https://docs.unity.com/ugs/en-us/manual/authentication/manual/platform-signin-google-play-games

[screenshot of game authentication with google play game fail token id request1

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

79261842

Date: 2024-12-08 04:27:07
Score: 1.5
Natty:
Report link

Just a note, some of the hand-on lab can be outdated with the content. I suggest you post on the help.salesforce forum.

There's the salesforce trailbrazer there which can probably provide inside if this is the issue with outdated content.

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

79261838

Date: 2024-12-08 04:25:06
Score: 0.5
Natty:
Report link

I had the same issue on 5-12-2024. I did all the things, like putting '@vite(['resources/css/app.css', 'resources/js/app.js'])' at the top of the layout's HTML file and running the command 'npm run dev.' Yet it didn't work for me.

Then suddenly a thought came to my mind: what if I try to run 'npm run build'. I did this and boom! It worked.

Reasons:
  • Blacklisted phrase (1): it didn't work for me
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shafiqul Hasan Russell

79261829

Date: 2024-12-08 03:59:02
Score: 2
Natty:
Report link

Similar to tylerbryceobier. I am using the default bootstrap setup in rails 7.2.2 (rails new myapp -c bootstrap), and I changed bootstrap.min.js to bootstrap.bundle.min.js (in ./importmap.rb & ./config/initializers/assets.rb) and it finally worked! Yay!

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

79261823

Date: 2024-12-08 03:51:01
Score: 1.5
Natty:
Report link

Try typing

python3 imgviewer.py

If that does not work try

python --verison

If it errors that means you installed python wrong on your device

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

79261822

Date: 2024-12-08 03:51:01
Score: 1
Natty:
Report link

This fixed my problem.

gem install eventmachine -v '1.2.7' -- --with-cppflags="-I$(brew --prefix)/include -I$(xcrun --show-sdk-path)/usr/include/c++/v1" --with-ldflags="-L$(brew --prefix)/lib"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Amir Hallaji

79261816

Date: 2024-12-08 03:46:59
Score: 4.5
Natty:
Report link

I can not create comments yet, but if you do not find a better answer than this, or you can not wait until this is implemented in aspire as they told you in discussion in github

Consider creating a local project api that will act as a proxy for you external(s) apis, this will help for other things too (evaluate if you want this project to be publish or just for development).

you in this proxy you can implement strategys as retries, fallback, cache...

Reasons:
  • Blacklisted phrase (3): comments yet
  • No code block (0.5):
  • Low reputation (1):
Posted by: Maick

79261814

Date: 2024-12-08 03:45:59
Score: 1
Natty:
Report link

This is a bad practise. Use hooks and filters instead.

You can fetch the event list using this code.

if (function_exists('google_calendar_events_get_events')) {
   $events = google_calendar_events_get_events();
   foreach ($events as $event) {
   }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ishan Jayman

79261800

Date: 2024-12-08 03:29:56
Score: 0.5
Natty:
Report link

The answer from @maxim helped me. I ended up creating this extension class to load all services derived from the base class ProcessorBase automatically. Sharing in case it helps

public static class ServiceCollectionExtensions
{        
    public static IServiceCollection AddJobProcessors(this IServiceCollection services, Assembly assembly = null)
    {
        assembly ??= Assembly.GetCallingAssembly();

        var processorTypes = assembly.GetTypes()
            .Where(t => t.IsClass
                && !t.IsAbstract
                && t.BaseType != null
                && t.BaseType.IsGenericType
                && t.BaseType.GetGenericTypeDefinition() == typeof(ProcessorBase<>));

        foreach (var processor in processorTypes)            
            services.AddTransient(typeof(IHostedService), processor);            

        return services;
    }
}    

Usage:

services.AddJobProcessors();
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @maxim
  • Low reputation (0.5):
Posted by: rbohac

79261783

Date: 2024-12-08 03:09:51
Score: 1
Natty:
Report link

just use this gradle version 8.5, this will solved

distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sujeet kumar

79261780

Date: 2024-12-08 03:00:49
Score: 7 🚩
Natty: 6.5
Report link

enter image description here

enter image description here

Have you added the configuration in the .pro file?

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: white

79261771

Date: 2024-12-08 02:57:48
Score: 2.5
Natty:
Report link

You must add a dir to PATH before loading Cygwin as I explained in my post : View windows environment variables in Cygwin
You can try to type bash -c ss after doing the above.

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

79261765

Date: 2024-12-08 02:48:45
Score: 4.5
Natty: 5
Report link

this is complete crap. why did they deprecate direct sound are they fricken crazy??? what the hell is the meaning of this.

Reasons:
  • Blacklisted phrase (1): ???
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Magnus Wootton

79261753

Date: 2024-12-08 02:44:44
Score: 2
Natty:
Report link

java: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid'

this is mine problem , i jave tried looking at some of the solutions here but still not work

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

79261746

Date: 2024-12-08 02:33:42
Score: 5.5
Natty:
Report link

I am having the same issue "ValueError: '-' is a bad directive in format '%a %-d %b %Y'"

The trouble is that this is happening after removing all the code except 2 lines.

from datetime import datetime
df=xl("output[[#All],[Event]:[Taste]]", headers=True)

Is there a error cache or similar with Excel?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: James Park

79261740

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

In the current digital age, SMS marketing has emerged as one of the most effective methods for engaging customers. RAT SMS provides cutting-edge solutions to help you achieve your marketing goals with Bulk SMS Hyderabad services tailored to your business's needs.RAT SMS makes it simple to send notifications, order confirmations, and OTPs. Work with the best bulk SMS service provider in Hyderabad to enhance your communication efforts.

https://www.ratsms.com/bulk-sms-service-provider-in-hyderabad

#BulkSMS #BulkSMSServices #SMSMarketing #TextMessaging #PromotionalMessages #TransactionalSMS

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

79261736

Date: 2024-12-08 02:16:39
Score: 2
Natty:
Report link
  1. You must add a dir to PATH before loading Cygwin as I explained in my post : View windows environment variables in Cygwin
    You can try to type bash -c ss after doing the above.
  2. When bash -c foo.sh is executed, bash uses the PATH when Cygwin is loaded.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: exactzen

79261725

Date: 2024-12-08 01:59:35
Score: 2.5
Natty:
Report link

The error occurs because the load function is returning either (A|B) which is not detected by the type checker in that function, as it was expecting an object . Therefore, it is giving an error of incompatible types.

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

79261720

Date: 2024-12-08 01:46:34
Score: 3.5
Natty:
Report link

You can try this tool I created: https://hosts.click/

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shuki Vaknin

79261717

Date: 2024-12-08 01:41:33
Score: 3
Natty:
Report link

you can just do it: =SUM($A$1:A$1) and pull down

$A$1 - is the starting row which will always remain fixed

enter image description here

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

79261714

Date: 2024-12-08 01:32:30
Score: 10
Natty: 7
Report link

i am trying to bypass http ddos please help i am getting stuck no bad sources rule @julien-desgats thank you very match i lav u!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): i am trying to
  • RegEx Blacklisted phrase (3): please help
  • RegEx Blacklisted phrase (1): i am trying to bypass http ddos please
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @julien-desgats
  • Single line (0.5):
  • Low reputation (1):
Posted by: bettercallworker

79261712

Date: 2024-12-08 01:29:30
Score: 1.5
Natty:
Report link

Add your registry info here. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MaintenanceTool (The name is optional.)

You'll need to provide: UninstallString (Your command for uninstallation, if I'm correct.) InstallLocation (The folder or directory where the person installed their app.)

I don't really have a lot of experience on this kind of thing, so I assume this is the correct answer based on my knowledge.

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

79261711

Date: 2024-12-08 01:26:29
Score: 3
Natty:
Report link

You need account to log on repo.spring.io https://spring.io/blog/2022/12/14/notice-of-permissions-changes-to-repo-spring-io-january-2023 So to download, go to maven repo and download from there https://mvnrepository.com/artifact/org.springframework/spring-core

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

79261707

Date: 2024-12-08 01:23:28
Score: 2.5
Natty:
Report link

In Cygwin type cmd.exe /c "C:\Program Files\Notepad++\notepad++.exe" .
Note \ , not / , in dir name. Note also that cmd.exe , not 'cmd' .

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

79261706

Date: 2024-12-08 01:23:28
Score: 1
Natty:
Report link
fun dialPhoneNumber(phoneNumber: String) {
val intent = Intent(Intent.ACTION_DIAL).apply {
    data = Uri.parse("tel:$phoneNumber")
}
if (intent.resolveActivity(packageManager) != null) {
    startActivity(intent)
}

}

Use fun like this.

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

79261700

Date: 2024-12-08 01:12:26
Score: 3
Natty:
Report link

In case anyone is using Nuxt 4 compatibility mode, make sure that the layouts folder is inside the app folder (where your app.vue is located)

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

79261699

Date: 2024-12-08 01:12:26
Score: 2
Natty:
Report link

I did not find any typo and the way you are trying to get the boost count seems correct.

But as the error says, it looks like your guild is null. Are you using this command in the guild or DM? Let's do basic and simple debugging. Check what you get from console.log(interaction.guild) or even console.log(interaction).

If you get normal data, the problem could be in approaching to the Discord API and getting data from Guild.

  1. Try fetching the guild (e.g. AWAIT bot.guilds.fetch(interaction.guild) await is important!)
  2. Check if the guild is available (if (interaction.guild.available))

By the way, premiumSubscriptionCount could be null (check docs here)

PS Are you using the latest discord.js version?

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

79261686

Date: 2024-12-08 00:59:23
Score: 14.5
Natty: 7.5
Report link

I'm having the same problem. Were you able to solve it?

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Isaque França

79261685

Date: 2024-12-08 00:58:22
Score: 7.5 🚩
Natty: 4
Report link

lo solucione.... Instale PyQt5 como recomiendan: $ pip install PyQt5

Aun así no funcionaba.

Luego instale el tkinter en WSL

sudo apt-get install python3-tk

luego, lo implemente de esta manera:

import seaborn as sns

import matplotlib

matplotlib.use('TkAgg')

import matplotlib.pyplot as plt

al principio del código. luego lo ejecute y se mostró el grafico sin problemas… saludos.

Reasons:
  • Blacklisted phrase (2): código
  • Blacklisted phrase (2.5): solucion
  • Blacklisted phrase (1.5): saludos
  • No code block (0.5):
  • Low reputation (1):
Posted by: Julio Rucobo

79261674

Date: 2024-12-08 00:41:19
Score: 0.5
Natty:
Report link

If you are a beginner, do the following:
1)Create a dir called F:\1MY\0CMD . In this dir, create a file named qqq.cmd that contains :

set ZZZZZZ=123aBBC1111111111111  
set zZZz=123aBBC  
set pathz=i:\mingw\bin;F:\1MY\0CMD  
set path=%pathz%;%path%  
I:\CYG\bin\mintty.exe -i /Cygwin-Terminal.ico -  
goto  
goto  
goto  
goto  
goto  
::note many 'goto' : if the file is modified when being executed , then ...  
exit  
exit  
exit  
 

2)In this dir, create another file named ss that contains :

#ss  
#in notepad++  :  click Edit , choose EOL conversion , then choose unix  for this file  ss.  (no extension).  
  
ln -s /cygdrive/n /n  
ln -s /cygdrive/e /e  
ln -s /cygdrive/f /f  
ln -s /cygdrive/i /i  
  
echo $path"assss----------"  
echo $PATH  
echo $ZZZZZZ  
echo $zZZz  
echo $ZZZZ--=====++++++  
echo $zZZz  
echo $ZZZZZZ  
  
cd /f/1Scite  
cd scintilla/gtk  
pwd  
  
if false; then  
  # ... Code I want to skip here ...  
  fdsgfsdsgfs  
  dfsdgfdsgfds  

fi  
  
  
exit  
exit  
exit  

3)Then execute qqq.cmd and now you have Cygwin. Type ss and check the output!!

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

79261673

Date: 2024-12-08 00:41:19
Score: 1
Natty:
Report link

From official Discord.js documentation:

// Remove a nickname for a guild member
guildMember.setNickname(null, 'No nicknames allowed!')
  .then(member => console.log(`Removed nickname for ${member.user.username}`))
  .catch(console.error);

Just use null as an argument in the guildMember.setNickname() function.

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

79261672

Date: 2024-12-08 00:39:18
Score: 0.5
Natty:
Report link

You can in your tabulator.js initialization function set this eventlistener:

rowClickPopup: rowPopupFormatter, 

and then write a function like the one in the tabulator.js documentation like this:

var rowPopupFormatter = function (e, row, onRendered) {
var data = row.getData(),
container = document.createElement("div"),
contents = "<strong style='font-size:1.2em;'>Row Details</strong><br/><ul style='padding:0;  margin-top:10px; margin-bottom:0;'>";
contents += "<li><strong>Name:</strong> " + data.name + "</li>";
contents += "<li><strong>Gender:</strong> " + data.gender + "</li>";
contents += "<li><strong>Favourite Colour:</strong> " + data.col + "</li>";
contents += "</ul>";
container.innerHTML = contents;
return container;

};

Here is the link to that particular part of the documentation: doc

Reasons:
  • Blacklisted phrase (1): Here is the link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: netfed

79261671

Date: 2024-12-08 00:39:18
Score: 3.5
Natty:
Report link

Thanks, your advice helped! It's a pity that Outlook didn't take care of this...

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Шаповалов Вячеслав Борисович

79261669

Date: 2024-12-08 00:38:18
Score: 3.5
Natty:
Report link

You can try this tool I created: https://hosts.click/

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shuki Vaknin

79261668

Date: 2024-12-08 00:38:18
Score: 1
Natty:
Report link

You probably want radius + epsilon instead of radius - epsilon if you want to include the border (imagine you are increasing the radius of the circle a bit to include the border). Maybe you also have to swap true and false, because currently the function will return true when the point is outside the circle.

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

79261665

Date: 2024-12-08 00:35:16
Score: 5.5
Natty: 4
Report link

Read this documentation first: tabulator.js doc

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

79261664

Date: 2024-12-08 00:34:15
Score: 1.5
Natty:
Report link

That's simply because the dependent variable in the UECM should be Δy instead of y, i.e. D(logKINBU).

You actually said "the summary result is very different with R-squared that is very high" which could lead you to the solution.

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

79261661

Date: 2024-12-08 00:30:14
Score: 0.5
Natty:
Report link

I was missing spring-cloud-starter-bootstrap dependency on my pom.xml, so all I needed was to add this:

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-bootstrap</artifactId>
        </dependency>

Hope it helps somebody ;)

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): Hope it helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: torokoko

79261660

Date: 2024-12-08 00:29:14
Score: 1
Natty:
Report link

To expand slightly on @Juguang's answer:

extension AttributedString {
    func toString() -> String {
        return self.characters.map { String($0) }.joined(separator: "")
    }
}

Usage:

print("Working value = \(workingAttribStrng.toString())")

Current Swift (as of December 2024, Xcode 16.1, Swift 5.10) won't accept the earlier answers, but this seems to work fine, and this thread is what comes up first when searching for "Swift AttributedString to plaintext".

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Juguang's
  • Low reputation (0.5):
Posted by: ConfusionTowers

79261657

Date: 2024-12-08 00:26:13
Score: 0.5
Natty:
Report link

If you are using video_player or any package forked from video_player e.g cached_video_player_plus to preview the video, then add this line to your pubspec.yaml:

 dependency_overrides:
      video_player_android: 2.7.1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Theo

79261656

Date: 2024-12-08 00:26:13
Score: 1.5
Natty:
Report link

Thanks to S2B for pointing out that <div> wrappers were needed. Below is the shortest code that I was able to get working...

FluentAccordionTest.razor

@page "/dashboard"
<FluentAccordion>
<div>
    <FluentAccordionItem Heading="My Heading" Expanded="true">
            my content
    </FluentAccordionItem>
</div>
</FluentAccordion>

FluentAccordionTest.razor.css

::deep > fluent-accordion-item::part(heading) {
    background-color: yellow;
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mitch

79261651

Date: 2024-12-08 00:20:12
Score: 1.5
Natty:
Report link

You can install the Qt libraries

sudo apt install libxcb-xinerama0 libxcb-xkb1 libxcb1 libxcb-glx0 libqt5gui5 libqt5core5a libqt5widgets5 qt5-qmake qtbase5-dev
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Divyajyoti

79261644

Date: 2024-12-08 00:17:11
Score: 4.5
Natty:
Report link

Have your tried os.replace() or shutil.move()?

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: dauinh

79261642

Date: 2024-12-08 00:14:10
Score: 0.5
Natty:
Report link
window.webContents.on("before-input-event", (event, input) => {
  if (
    (input.control || input.meta) && // Control for Windows/Linux, Command (meta) for macOS
    (input.key === "+" || input.key === "-" || input.key === "0")
  ) {
    event.preventDefault();
    console.log(`Blocked zoom action: ${input.key}`);
  }
});

this blocks keyboard zoom commands and solved it

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

79261637

Date: 2024-12-08 00:11:10
Score: 1.5
Natty:
Report link

I solved it by installing that GMP version -- 4.3.1. I didn't read over the CONFIGURE file, but it's probably a bug in the script.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: RBK

79261634

Date: 2024-12-08 00:10:09
Score: 1.5
Natty:
Report link

Beware of "Friendly URLs"!

@Aravamudan's response was the solution to my problem. My website (via my web.config file) was using "Friendly URLs" (via the IIS URL Rewrite 2.0 module). I had previously designed my "Friendly URLs" to remove file extensions from webpage URLs (eg, "foobar.aspx" showed up as "foobar" on the browser's address line). However, these "Friendly URLs" were also converting my "POST" requests into "GET" requests. These HTTP Method conversions were nullifying my HTML-POST-to-ASPX functionality.

So, the simple solution was for me to just exclude the ".aspx" file extension from my HTTP POST requests.

Longstoryshort, to add a nuanced solution to the question... you can POST data from an HTML form to an ASPX page with the following adjustment:

POST | HTML Form to ASPX

Moreover, you can POST data from AJAX to an ASPX page with the following adjustment:

POST | AJAX to ASPX

I hope that helps you.

footnote: I would've written this 'answer' as a comment under @Aravamudan's answer, but I don't have enough reputation points (43 out of 50). So, I just upvoted his (which, unfortunately, was at a -1); and fleshed out these additional details.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Whitelisted phrase (-1): hope that helps
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation points
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Aravamudan's
  • User mentioned (0): @Aravamudan's
  • Low reputation (1):
Posted by: Elias

79261632

Date: 2024-12-08 00:06:08
Score: 3
Natty:
Report link

Checkout Order of Execution documentation: https://docs.unity3d.com/6000.0/Documentation/Manual/execution-order.html

You can change order of execution like in this thread with an Attribute: https://stackoverflow.com/questions/27928474/programmatically-define-execution-order-of-scripts#:~:text=you%20can%20use%20the%20attribute%3A

I like to have in general just one Monobehaviour and the rest are normal C# classes (until you need some prefabs and scripts which do change just one single object) and the main Monobehaviour controls which Update is called first. Anyway you could also use Events for some particular cases.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: VisDesign

79261631

Date: 2024-12-08 00:04:08
Score: 1.5
Natty:
Report link

I followed the steps at https://www.geeksforgeeks.org/how-to-install-mysql-workbench-on-ubuntu/ and it successfully installed. Although since I'm using Pop!_OS, there was a warning about the platform possibly being incompatible.

sudo apt install snap sudo apt install snapd sudo snap install mysql-workbench-community

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

79261619

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

Article: for informative short or large chunks of text related to or about/referencing something in or outside of current site. "section" or "aside" can be used in separate instances not defined as similar to in usage as mentioned above for the "article". So an example would be, needing to reference a book and including author for crediting purposes only, and description about author and outside of this, the book and or author is unrelated to content held on site and used for ref only, would be good for this scenario. If it's more relative to content of site or "section" would be good

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 辛いだるま

79261618

Date: 2024-12-07 23:55:06
Score: 10
Natty: 8
Report link

Can someone please help me understand how to solve the following error: "zsh: bus error python show_laptop_V2.py --simulation" ?

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (3): please help me
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Can someone please help me
  • Low reputation (1):
Posted by: Nadia

79261611

Date: 2024-12-07 23:52:05
Score: 1
Natty:
Report link

The issue is solved.

My problem was that invite_btn was the <a> tag on my button - I just used the parent element of it (the entire button) to observe:

observer.observe(this.invite_btn.nativeElement.parentElement as HTMLElement);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Razzer

79261602

Date: 2024-12-07 23:41:02
Score: 2
Natty:
Report link

If you are using the desktop app, log into your Asana account in a browser, then visit https://app.asana.com/api/1.0/projects

It will spit out an array with the name and ID of every project you have access to in ALL of your workspaces.

When I did it (in Dec 2024) it sorted them by workspace by default. Your mileage may vary.

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

79261601

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

If what you want is to know what changes were made to the spreadsheet...

function sendResultsEmail(e) {
  const content = e.changeType;
  console.log(content);
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: YellowGreen

79261588

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

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

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

79261585

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

Muchas Gracias!, funciona perfecto!

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

79261581

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

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

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

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

79261579

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

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

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

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

79261575

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

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

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

It gives: res

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

79261574

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

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

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

79261570

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

Try ColourScript.

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

pip install ColourScript.

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

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

79261569

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

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

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

79261568

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

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

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

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

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

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

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

79261567

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

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

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

79261554

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

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

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

79261552

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

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

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

79261545

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

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

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

79261539

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

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

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

79261537

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

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

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

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

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

79261525

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

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

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

79261521

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

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

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

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

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

79261520

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

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

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


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

def vosk(wavFile):
    SetLogLevel(0)

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

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

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



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

79261511

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

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

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

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

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

79261507

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

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

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

79261495

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

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

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

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

Saludos y suerte con tu implementación.

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

79261488

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

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

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

79261473

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

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

version: 1.0.0+1

environment: sdk: ^3.5.4

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

dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^5.0.0

flutter: uses-material-design: true

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

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

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

79261461

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

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

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

79261434

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

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

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

79261426

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

The code here works, you just have to change

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

to

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

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

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

79261424

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

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

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

79261423

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

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

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

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

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

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


// WORKAROUND CODE

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

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

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

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

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

79261422

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

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

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

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

79261415

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

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

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

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

These definitions seem to have the desired outcome:

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

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

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

79261397

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

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

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

79261392

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

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

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

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

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

79261390

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

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

What are the solutions?

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

Eager load:

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

class Subscription extends Model {
   use HasFactory;

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

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

And Just like @Tarashdeep-Singh mentioned:

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

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

Join:

This is the most performant way to query this data:

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

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

Subquery:

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

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

79261389

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

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

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

79261388

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

You can use this command instead of deleting .git file

git remote remove origin

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

79261383

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

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

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