79087573

Date: 2024-10-14 20:08:25
Score: 2
Natty:
Report link

Update the package open_file to 3.5.9, you experiment a bug in this package.

See: https://pub.dev/packages/open_file/changelog and https://github.com/crazecoder/open_file/issues/303

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

79087567

Date: 2024-10-14 20:07:24
Score: 2.5
Natty:
Report link

arm processor xcrun --find bitcode_strip

# Step 2: Strip Bitcode from all frameworks that contain it
if [ -f bitcode_frameworks.txt ]; then
  echo "Stripping bitcode from frameworks..."
  while read -r binary_path; do
    xcrun --find bitcode_strip "$binary_path"
  done < bitcode_frameworks.txt
else
  echo "No frameworks found containing bitcode. Exiting."
  exit 1
fi

https://stackoverflow.com/a/79068675/9752882

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Xprof

79087566

Date: 2024-10-14 20:06:24
Score: 5.5
Natty: 4.5
Report link

Checkout this repository with live bus tracking https://github.com/LismaxB/Ceylon-Public-Transit

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

79087565

Date: 2024-10-14 20:05:23
Score: 2
Natty:
Report link

I had this error happen when Firebase had automatically signed in an existing user, but the UI was not checking for this and allowed users to atempt to sign in when already authenticated

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

79087548

Date: 2024-10-14 19:56:21
Score: 4.5
Natty:
Report link

Having a similar issue, looks like SAP are not supporting .NET core.

Only two options we have are to re-write thousands of reports in something else but not sure what else out there can duplicate the crystal reports functionality, which we use a lot of.

Our only solution so far is to have the main app in .Net 8 and crystal in the old framework.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): Having a similar issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: chris

79087534

Date: 2024-10-14 19:51:19
Score: 9
Natty: 8.5
Report link

can you please share the code you used for the LED? Please, i need it for an urgent project for university.

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (2.5): can you please share the code you
  • RegEx Blacklisted phrase (2): urgent
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): can you please share the code you use
  • Low reputation (1):
Posted by: Zakaria

79087511

Date: 2024-10-14 19:43:17
Score: 0.5
Natty:
Report link

Opera is chrome based, and it already supports Chrome extensions. Head to https://chromewebstore.google.com/ and you can install in Opera, just as you would in Chrome.

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

79087504

Date: 2024-10-14 19:41:16
Score: 2.5
Natty:
Report link

It will be work in sql server. select * from (select ROW_NUMBER() over(order by salary) as rownumber,Id,Dept,salary from Employee) as Employee where rownumber=2

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

79087501

Date: 2024-10-14 19:40:16
Score: 2.5
Natty:
Report link

I was so excited when i thought of returning (1<< LCS(str1, str2) lcs, longest common subsequence.

I'm not able to figure out why it fails.

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

79087483

Date: 2024-10-14 19:34:13
Score: 6 🚩
Natty: 4
Report link

Were you ever able to get this figured out? I am running into a similar issue for my applications and to get past it we are using our firewall to block the requests at that path and serve the response json which is not ideal.

Reasons:
  • RegEx Blacklisted phrase (3): Were you ever
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michael Luck

79087475

Date: 2024-10-14 19:31:12
Score: 3.5
Natty:
Report link

Are you able to create an instance with the no.of gpus mentioned in the CLI command? It looks like CLI is probably dropping the gpu attribute.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jyoti Saini

79087474

Date: 2024-10-14 19:31:12
Score: 2
Natty:
Report link

HTML can be a bit finicky like that. This is the only solution I could find.

a {
  display: inline-block;
}
<p>
  <a href="stackoverflow.com">
    Run.
  </a>
  <span>(Explanation)</span>
</p>

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

79087472

Date: 2024-10-14 19:31:12
Score: 4.5
Natty:
Report link

Issue solved, I have posted the issue for the owner of the project itself and it have fixed the issue : https://github.com/msantos/sods/issues/6#issuecomment-2412005202

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: AhmedSCRIPT Hacker بالعربية

79087464

Date: 2024-10-14 19:29:11
Score: 3.5
Natty:
Report link

For you guys using WinGet, "winget search microsoft.dotnet" is the option.

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

79087458

Date: 2024-10-14 19:23:10
Score: 2
Natty:
Report link

You can write something like

ax.annotate(rf"$f_{i}$")
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Slavensky

79087450

Date: 2024-10-14 19:22:09
Score: 6 🚩
Natty: 5
Report link

use powershell and that script to export all data.

https://robertostefanettinavblog.com/2022/04/30/export-sql-data-to-csv-or-xml-file-via-powershell/

regards DFK-Consult

visit https://dfk-consult.at

Reasons:
  • Blacklisted phrase (1): regards
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: DFK-Consult

79087446

Date: 2024-10-14 19:20:08
Score: 6.5
Natty: 7.5
Report link

How can i get a value if i include a CTkEntry?

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

79087444

Date: 2024-10-14 19:19:07
Score: 2
Natty:
Report link

Change to . instead of ./, it is not windows path.

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

79087433

Date: 2024-10-14 19:16:07
Score: 2.5
Natty:
Report link

Found that the most recent Windows update (Oct 2024) had changed the permissions of the c:\programdata\ssh\log folder had added a domain user. Removing all but SYSTEM and the Administrators group did the trick (was able to restart SSH Server service).

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

79087431

Date: 2024-10-14 19:16:07
Score: 1.5
Natty:
Report link

for Almalinux

> sudo dnf -y install php-bcmath

don't forget restart server

> sudo service httpd restart`
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammad Saeed

79087428

Date: 2024-10-14 19:15:06
Score: 1.5
Natty:
Report link

Note the for loop as shown above has another problem: it will allocate memory for a growing array on the fly. You can save some time by allocating memory for the output array in advance, e.g.

vector_y = zeros(size(vector_x));

before the loop. But the simplest and fastest solution for that task would be

vector_y = vector_x .^ 2; % . denotes element wise operation

Faster by a factor 1000 compared to the loop!

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

79087422

Date: 2024-10-14 19:14:06
Score: 1
Natty:
Report link
#include <windows.h>
#include <processthreadsapi.h>

SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Luis Moita

79087421

Date: 2024-10-14 19:13:06
Score: 2.5
Natty:
Report link

I could never get this working in these versions of the products. I worked around it by using includes and manual menus. Eventually, I dumped both Wagtail and django templating completely. Not because they weren't functional. This was just costing too much time and it didn't seem solvable. The bigger issue altogether seemed to be that CSS styling was too much of a hassle for that level of work. Two weeks later I switched to react/javascript on the front-end and turned django into a headless RestAPI using django-restframework. Django was not the issue, but I just didn't seem to be able to make any headway on getting themes and menus to behave the way I wanted using the combo I was using. Moving to Google @mui components made the entire thing do-able, simply because I could dump CSS altogether and code to what I wanted. Although I could've spent 6 months learning CSS and fixing the issues, that didn't seem to be a productive use of time. With Javascript I can still make my pages easily editable through config files and not have to worry about how they're displaying and clobbering everything around them.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @mui
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: K. Trotman

79087420

Date: 2024-10-14 19:13:06
Score: 2.5
Natty:
Report link

I have updated ar_flutter_plugin. I have created a fork from it and updated it. I uploaded the changes in a new package called ar_flutter_plugin_updated.

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

79087418

Date: 2024-10-14 19:11:05
Score: 2
Natty:
Report link

You need to set URL maps in the "Routing Rules" config

So you have to create as Backends as Serverless Functions, and map every one of them to a url path as it requries.

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

79087417

Date: 2024-10-14 19:11:05
Score: 1
Natty:
Report link

You can select one database dynamically (i.e. test or prod) in a query using OPENQUERY with dynamic SQL sp_executesql. You will need to construct the query dynamically and then run it, as OPENQUERY does not support dynamic queries.

Follow an example:


DECLARE @t NVARCHAR(250) = 'test'; — Database name eg : ( test or prod )

DECLARE @query NVARCHAR(MAX);

DECLARE @storeId int = 1; -- optional filter

SET @query = 'SELECT INTO #Category FROM OPENQUERY([MYSQLLINKEDSERVER], '' SELECT * FROM '+@t+'. category WHERE id = ' + CAST(@storeId AS NVARCHAR(10))===';

EXEC sp_executesql @query;

With this solution, there will be no headache of creating the temporarily table schema whenever you change your database. It also supports filtering with @storeId or any other parameter.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @storeId
  • Low reputation (1):
Posted by: Mohammed Faruk

79087412

Date: 2024-10-14 19:10:04
Score: 7.5 🚩
Natty: 6
Report link

Is there any chance you could share the key?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: Hero1337

79087410

Date: 2024-10-14 19:10:04
Score: 3
Natty:
Report link

Please check the tf [code]. I'm not sure if "provider" or "project" can be used inside the google_composer_environment block.

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

79087373

Date: 2024-10-14 18:58:00
Score: 0.5
Natty:
Report link

I found a handling. It accepts the following:

@Query(
   value = "SELECT MAX(CONVERT('TIMESTAMP', \"inv-date\") + (\"inv-time\" * 1000)) " +
   "rest of query...",
   nativeQuery = true
)
Optional<Date> findLastPaymentInvoiceDate(Long aAccountId);

So while I don't know why the odbc_convert command doesn't work, this convert command does work.

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

79087369

Date: 2024-10-14 18:55:59
Score: 3.5
Natty:
Report link

Can this solution be applied for Selenium WebdriverJavaScript? I have the same query, but cannot pulled it out 😔

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can this solution
  • Low reputation (1):
Posted by: kakomako vakosako

79087344

Date: 2024-10-14 18:45:57
Score: 2.5
Natty:
Report link

Visual Studio 2022 has it inbuild user "CTRL + SHIFT + T" to open search and it will search for files and code in single window and search here is case insensitive

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

79087342

Date: 2024-10-14 18:44:56
Score: 1.5
Natty:
Report link

If I remember correctly, VB6 accepts icons up to 24 bits. I usually use the Greenfish Icon Editor to create an icon with multiple layers of different sizes and bits. I personally use 16x16, 32x32, and 48x48 and 8, 16, 24 and 32 bits.

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

79087327

Date: 2024-10-14 18:40:56
Score: 0.5
Natty:
Report link

In Firefox, the width of the img container isn't random. In fact it is the original width of the img (600px), CSS alone can't determine the rendered width when the image's height is based on a percentage.. What exactly do you want to achieve? if you really want to force it, use JS to determine the image width on page load.

function changeWidth() {
  const container = document.querySelector('img-container');
  const img = document.querySelector('img1');
  container.style.width = img.clientWidth + 'px';
}
window.onload = changeWidth
windw.onresize = changeWidth
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Math Freak

79087325

Date: 2024-10-14 18:39:55
Score: 1.5
Natty:
Report link

Hey What happens if you do echo $JAVA_HOME in your zsh shell,

And in android studio you could go to Preferences > Build, Execution, Deployment > Build Tools > Gradle, There should be a Gradle JDK option try Changing it to JDK 17.

Please make sure that zsh is your default shell.

May this guide help you if the above does not work, https://www.devgem.io/posts/resolving-flutter-s-java-home-error-on-macos-step-by-step-guide

Reasons:
  • Blacklisted phrase (1): this guide
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: AYUSHMAN TIWARI

79087320

Date: 2024-10-14 18:37:55
Score: 1.5
Natty:
Report link

In QuTiP's documentation for the function, there is tol, a parameter specifically meant for that task. Also, it's worth noticing that you can change the base from e to 2. Since smaller log bases will be more precise, it might have a good effect on your calculations.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bruno Augusto Veloso

79087307

Date: 2024-10-14 18:32:53
Score: 1
Natty:
Report link

To solve this problem you need to add heigh 100% to the 3 elements in the slick carousel.

Add this code below after the end of your css code and will appear again:

/* Solutions */
.slick-list,
.slick-track,
.slick-slide h3 {
   height: 100%;   
}

Reference link: https://github.com/kenwheeler/slick/issues/367

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

79087305

Date: 2024-10-14 18:31:53
Score: 2
Natty:
Report link

Other answer is nearly correct but they mixed up left and right. I was able to fix this problem in my code with .ag-pinned-left-header { border: none; }

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

79087298

Date: 2024-10-14 18:26:51
Score: 2
Natty:
Report link

This might help anyone trying to code an asp.net core web application connecting to Informix database.

Upgrade the Informix.Net.Core package to the latest available in Nuget Package Manager.

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

79087295

Date: 2024-10-14 18:25:51
Score: 1.5
Natty:
Report link

Moved Main.fxml file to resources and

Parent root = FXMLLoader.load(Objects.requireNonNull(getClass().getResource("/Main.fxml")));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ilya Muromtsev

79087292

Date: 2024-10-14 18:24:49
Score: 8.5 🚩
Natty: 6.5
Report link

I am beginner in programming. Please explain me this - "stream << self". Is it left shift operator with two objects? But it works only with integers in Python...

Reasons:
  • RegEx Blacklisted phrase (2.5): Please explain me
  • RegEx Blacklisted phrase (2): I am beginner
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dmit

79087285

Date: 2024-10-14 18:21:48
Score: 1
Natty:
Report link

Use the following options for auto merge.

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

79087280

Date: 2024-10-14 18:19:47
Score: 2
Natty:
Report link

It turns out that the issue was not code-related, but a Cloud Run configuration related. The service account for Cloud Run must have the role Cloud Trace Agent.

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

79087278

Date: 2024-10-14 18:18:46
Score: 13.5 🚩
Natty:
Report link

Did you find a better option to set ssl verify to false for the Connector Builder on Airbyte?

If not, can you share more detail on how to create a custom HTTP connector?

Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): can you share
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (3): Did you find a
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you find a
  • Low reputation (1):
Posted by: aguida79

79087271

Date: 2024-10-14 18:16:46
Score: 0.5
Natty:
Report link

For v3, you can use

Drive.Permissions.create( { 'role': 'writer', 'type': 'user', 'emailaddress': '[email protected]' }, file‐id, { 'supportsAllDrives': true, 'sendNotificationEmails': false });

Google documentation - https://developers.google.com/drive/api/guides/manage-sharing

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

79087266

Date: 2024-10-14 18:14:45
Score: 0.5
Natty:
Report link

Which way are things?

There is a mess because of "Mojibake". Each accented letter was stored as two "latin1" bytes.

Before pursuing the problem further, please provide

SHOW CREATE TABLE T;
SELECT HEX(columnname) FROM T ...;  -- (for a sample)

What will you do with the rows that are returned? This may impact the answer.

As of about a decade ago "latin1" is the wrong way to store accented letters. So, I will also recommend converting the dataset to utf8mb4.

What version of MySQL are you running? (This impacts whether utf8mb4 is available and whether regexp can handle things like what is in the Comments.)

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Which
  • High reputation (-2):
Posted by: Rick James

79087263

Date: 2024-10-14 18:13:45
Score: 1
Natty:
Report link

Firefox is a little different when it comes to absolute positioning. Try to understand what actually absolute position works. The element having abs with height: 100% will cover fully if the parent container is also 100%

you also have a padding-bottom i don't understand why do you need padding bottom, this will make your children appear smaller.

Try adding width: 100%; to img-container. i tinkered with your code in the inspector. it seemed to fix it. Try and let me know how it goes

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

79087247

Date: 2024-10-14 18:09:44
Score: 3
Natty:
Report link

It is relative to the local system, so rcv is about the incoming direction of the tcp flow relative to the local system, snd is about the outgoing direction of the tcp flow relative to the local system.

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

79087242

Date: 2024-10-14 18:06:43
Score: 1
Natty:
Report link

This problem arises from using a different version of python to pip install source rather than the version that is owned by root and has its setuid bit set. It comes from not understanding what python -m pip install -e . does, which is to set up the dependencies for the version of python used by the source in a directory (in the example, ~/SaltSource/3006.9/salt). The solution is to install the version of python which will be used for the source, run python -m pip install -e . and THEN change the owner/group of the installed python version (in the case of the example given, ~/.pyenv/versions/3.10.15/bin/python3.10) to root and set its setuid bit. As mentioned by @dan1st, the original question did not mention the fact that the python version must run as root, so I am amending it to make this clear.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @dan1st
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: dnessett

79087238

Date: 2024-10-14 18:03:42
Score: 4
Natty: 4.5
Report link

I wonder anything new for this topic? I am wondering, in np.random.exponential(lambda_param, random_size), lambda_param is actually the scale parameter, which is inverse of the actual lambda in exponential distribution. While in what pm.Exponential() takes is actually lambda itself. Not sure if I understand correctly about your original question, but is this possibly the actual reason?

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

79087229

Date: 2024-10-14 18:01:41
Score: 3
Natty:
Report link

This is old I know but I was looking for exactly this and I just added this to my settings.local: $settings['config_exclude_modules'] = ['simplesamlphp_auth'];

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

79087223

Date: 2024-10-14 17:59:40
Score: 5.5
Natty:
Report link

Hello I am having trouble with my site. it is saying it did not follow community standards. When I check isitban.com they are saying nothing is wrong with my site.

Reasons:
  • RegEx Blacklisted phrase (2): I am having trouble
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Colin

79087212

Date: 2024-10-14 17:53:38
Score: 1.5
Natty:
Report link
import { useRouter } from 'expo-router';


const router = useRouter();

const goToRoot = (): void => {
    router.dismissAll()
};
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: david zuleta

79087203

Date: 2024-10-14 17:51:38
Score: 3
Natty:
Report link

All tailwind utilities are stroe in index.css file. and run I think everything is alright.

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

79087190

Date: 2024-10-14 17:48:37
Score: 1.5
Natty:
Report link

You probably really need to figured out a divider for your messages: https://docs.spring.io/spring-integration/reference/ip/tcp-connection-factories.html#tcp-codecs

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

79087185

Date: 2024-10-14 17:46:37
Score: 2
Natty:
Report link

The problem is that mdsvex is a Markdown preprocessor for Svelte components, thus acting at compile-time. Though it can be made use of in dynamic contexts, there are better solutions for this.

Something like svelte-markdown (based on Marked) that renders Markdown dynamically will do the job better here

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

79087184

Date: 2024-10-14 17:46:37
Score: 0.5
Natty:
Report link

Not sure why, but this is just happening to me with Stripe 16.9.0, try downgrading to that version and see if it works.

Also, I don't think that's related to Firebase, as I'm not using it.

PS: I found a related open issue.

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

79087171

Date: 2024-10-14 17:42:36
Score: 2
Natty:
Report link

this does not work I suggest that you should probably stop being so different and figure out how to make yourself fit in a situation in which you are able to do some things in that situation similarly to somebody else or something else that is better or worse at processing things such as somebody with the likes as you

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

79087166

Date: 2024-10-14 17:40:34
Score: 7 🚩
Natty: 4.5
Report link

I'm having same issue here. Did you able to find solution?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having same issue
  • Ends in question mark (2):
  • Single line (0.5):
Posted by: ftdeveloper

79087150

Date: 2024-10-14 17:36:32
Score: 9.5 🚩
Natty: 6
Report link

did you manage to make ot work? I'm facing the same issue and I've been hitting a wall for two days.

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: jsber

79087146

Date: 2024-10-14 17:35:32
Score: 3.5
Natty:
Report link

The answer is: Alembic: alembic revision says Import Error After that i also add "." to the prefix="sqlalchemy" in env.py def run_async_migrations().

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

79087144

Date: 2024-10-14 17:34:31
Score: 2
Natty:
Report link

Based on git config docs:

If the alias expansion is prefixed with an exclamation point, it will be treated as a shell command.

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

79087142

Date: 2024-10-14 17:34:31
Score: 1
Natty:
Report link

Transferring files from your on-premises virtual machines (VMs) to Azure Blob Storage can be achieved using several methods:

1- AzCopy

2- Azure Data Factory -A cloud-based data integration service that allows you to create data-driven workflows for moving data between services. -You can set up pipelines to automate the transfer of files from your VMs to Blob Storage, with scheduling and monitoring capabilities.

3- Third-Party Tools -There are several third-party tools available that can facilitate the transfer of files to Azure Blob Storage, such as CloudFuze or Gs Richcopy. And many of these tools offer built-in automation features.

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

79087139

Date: 2024-10-14 17:33:31
Score: 0.5
Natty:
Report link

Your Java compiler does not store method parameter names in bytecode. Therefore, Spring cannot use reflection to match the value it receives in a request with a parameter of the method that should handle this request. To solve this problem, you can enable storing parameter names in bytecode using the -parameters compiler option. Or you can explicitly specify the name of the parameter to match in the @PathVariable("code") annotation.

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

79087130

Date: 2024-10-14 17:28:30
Score: 1
Natty:
Report link

From the reference: https://developer.apple.com/videos/play/wwdc2020/10652/. Dismiss the picker inside didFinishPicking function. The below code will dismiss the picker when the cancel button is pressed.

func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) {
    dismiss(animated: true)
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: S.V.Sudarshini

79087125

Date: 2024-10-14 17:28:30
Score: 0.5
Natty:
Report link

you could have two virtual cameras with different zoom settings then just turn on and off the camera. On the unity camera for the cinemachine brain set the blend type and duration.

simply just turn it on or off and no other code is needed

zoomedMachine.setActive(true);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mike The Elf

79087124

Date: 2024-10-14 17:28:30
Score: 4
Natty: 4
Report link

Use syncfusion_flutter_charts library for customized line chart

official site

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

79087100

Date: 2024-10-14 17:20:27
Score: 1
Natty:
Report link

You want to use Parameter Sets. You can think of them like C# overloaded functions.

[Cmdlet(...)]
public sealed class MyExample : Cmdlet
{
    [Parameter(Mandatory = true, ParameterSetName = "only parameter A")]
    public string ParameterA { get; set; }

    [Parameter(Mandatory = true, ParameterSetName = "only parameter B")]
    public string ParameterB { get; set; }
}

Just found this for the first time as another resource! https://learn.microsoft.com/en-us/powershell/scripting/developer/cmdlet/cmdlet-parameter-sets?view=powershell-7.4

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

79087095

Date: 2024-10-14 17:19:27
Score: 2
Natty:
Report link

For my students, I created the java21-quickstart and javafx-quickstart archetypes using Java 21, Junit 5, Log4j2, Lombok, and a second one JavaFX. So getting started with Java is a little bit easier. Both archetypes are published in https://mvnrepository.com

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

79087089

Date: 2024-10-14 17:17:26
Score: 0.5
Natty:
Report link

I just got the same exception. Not sure if the cause is same with yours, but it went away after I changed the access modifiers of my class and its properties from internal to public.

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

79087083

Date: 2024-10-14 17:16:26
Score: 1.5
Natty:
Report link

The error seems to be a bug with current release of keras package. Please remove it and try keras3 instead as suggested here

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

79087082

Date: 2024-10-14 17:15:26
Score: 2
Natty:
Report link

I've created a plugin for this: https://github.com/PDMLab/tailwindcss-striped-grid/

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

79087078

Date: 2024-10-14 17:12:25
Score: 2
Natty:
Report link

I had this issue on Databricks with pandas==1.5.3 and SQLAlchemy==2.0.34. Nothing above helped, and for some reason after I included typing_extensions==4.12.2 in requirements.txt everything started working fine.

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

79087076

Date: 2024-10-14 17:12:25
Score: 3
Natty:
Report link

Great solutions! I found another one, found the lost version in Restore Previous Versions button when right-clicking the file in File Explorer. Screenshot

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

79087074

Date: 2024-10-14 17:11:25
Score: 1.5
Natty:
Report link

I suspected that this was a java dependency tree issue and bounced the idea off of some my coworkers. Further analysis identified that our old ant build was packaging multiple versions of the same jar in the application deployment .war file causing a classic library collision issue.

So we decided to drop the old ant build process and use Maven. After building out a Maven pom file to support our legacy application we were able to build and deploy a new image to AWS and the issue went away. I have seen class path issues like this in the past when running the same java application in windows and linux before, but expected a containerized deployment to mitigate the possibility of this occurring. Boy was I wrong.

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

79087066

Date: 2024-10-14 17:09:24
Score: 3
Natty:
Report link

I didn't find any files in a backup location, but found the lost version in Restore Previous Versions button when right-clicking the file in File Explorer.

enter image description here

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

79087057

Date: 2024-10-14 17:06:23
Score: 2
Natty:
Report link

I was using @rspack/core: 1.0.8, now I am using the latest release of 1.0.10 which fixed my issue.

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

79087056

Date: 2024-10-14 17:06:23
Score: 3
Natty:
Report link

Use ContentDialog control.

To know more, Refer this page on how to use ContentDialog

Also, you need to use Task.Async() and await for this.

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

79087043

Date: 2024-10-14 17:01:22
Score: 3
Natty:
Report link

I would recommend this demonstration with source from Apple: https://developer.apple.com/videos/play/wwdc2024/10152/

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

79087039

Date: 2024-10-14 17:00:22
Score: 0.5
Natty:
Report link

Steps to Solve the Issue: Check App Permissions:

Go to Settings on your Android TV. Find Apps and locate the FILMON or live TV app. Check its permissions and ensure it has access to the internet, storage, and any other necessary permissions. Update the App:

Ensure that the FILMON or live TV app is updated to the latest version. An outdated app might have compatibility issues with the Android version on your box. Clear App Cache and Data:

Go to Settings > Apps > Select the live TV app. Choose Clear Cache and Clear Data, then restart the app and try again. Use an External Player:

If the internal player is having issues, you might want to use an external media player like VLC or MX Player. In some live TV apps, you can change the default player in the settings, allowing you to use a more stable external player. Factory Reset (if necessary):

If all else fails and the problem persists, you could try resetting the Android TV box to factory settings. This can clear out any underlying software bugs or misconfigurations. Check for Android Updates:

Sometimes a software update for the Android TV box may resolve permission issues. Check in Settings for any available updates for the Android system.

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

79087035

Date: 2024-10-14 16:58:21
Score: 1.5
Natty:
Report link

It seems to be that you put the file in a different directory from where the code is running or that the name of the file is not exactly "m2.txt". If you put the file in side of its own folder in the correct directory you would have to enter the name as "FolderName\m2.txt" where "FolderName" is the name of the folder you put the file in.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kevin Ghossoub

79087027

Date: 2024-10-14 16:55:20
Score: 3.5
Natty:
Report link

Did this ever get resolved as I don't have the pg_Agent option in Application Stack Builder and I'm running PostgreSQL 17 ..?

I am running it locally on the server.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did this
  • Low reputation (1):
Posted by: Shaba Ludhera

79087025

Date: 2024-10-14 16:55:20
Score: 4
Natty:
Report link

I know this is an older thread. I also know I'm asking a question instead of leaving an answer, but I don't know any other way to get advice for a similar question without asking a duplicate question.

I have a dynamic solution created with VBScript that's similar to Darren's first solution. My users typically have two or more IBM Personal Communications (PCOMM) sessions open on their Desktop to do their daily tasks. Some of those sessions are logged into business proprietary applications and need to be left alone. They also can't use their "A" session as that's their production session. To handle this, I've developed this logic:

Set Connect_Manager = CreateObject("pcomm.autECLConnMgr")
Set autECLConnList = CreateObject("PCOMM.autECLConnList")
Set ObjEmulator = CreateObject("pcomm.auteclsession")

autECLConnList.Refresh
Num = autECLConnList.Count
PrevNum = Num

If Num = 0 Then
   MsgBox "You must have at least two PCOMM sessions open to use this tool." & vbnewline & vbnewline &  "Program is now terminating.", vbOKOnly + vbExclamation + vbSystemModal, "No Session Error"
   SetEverythingToNothing
   WScript.Echo "EXIT"
   WScript.Quit
End If

strSession = autECLConnList(Num).Name
Connect_Manager.autECLConnList.Refresh

ObjEmulator.SetConnectionByName (strSession)
Window_Title = ObjEmulator.autECLWinMetrics.WindowTitle

If InStr(Window_Title, "HOSTORS") <> 0 Or strSession = "A" Or InStr(Window_Title, "NDB") <> 0 Then
   Set ObjEmulator = Nothing
   Loop_Count = 1
   Do
      ResEmulator = "No"
      PrevNum = PrevNum - 1
      If PrevNum = 0 Then
         MsgBox "You need to have more than one session open." & vbnewline & "Program is now terminating.", vbOKOnly + vbExclamation + vbSystemModal, "One Session Error"
         SetEverythingToNothing
         WScript.Echo "EXIT"
         WScript.Quit
      Else
         strSession = autECLConnList(PrevNum).Name
         If strSession = "A" Then
            MsgBox "You cannot use your production (A) session." & vbnewline & "Please open another session." & vbnewline & "Program is now terminating.", vbOKOnly + vbExclamation + vbSystemModal, "Production Session Error"
            SetEverythingToNothing
            WScript.Echo "EXIT"
            WScript.Quit
            Exit Do
         Else
            Set ObjEmulator = CreateObject("pcomm.auteclsession")
            Connect_Manager.autECLConnList.Refresh
            ObjEmulator.SetConnectionByName (strSession)
            Window_Title = ObjEmulator.autECLWinMetrics.WindowTitle
            If InStr(Window_Title, "NDB") <> 0 Or InStr(Window_Title, "HOSTORS") <> 0 Then
               Set ObjEmulator = Nothing
            Else
               ResEmulator = "Yes"
            End If
         End If
      End If
      Loop_Count = Loop_Count + 1
      If Loop_Count = 10 Then
         MsgBox "Unable to connect to a session." & vbnewline & "Please make sure you have working sessions." & vbnewline & "Program is now terminating.", vbOKOnly + vbExclamation + vbSystemModal, "Production Session Error"
         SetEverythingToNothing
         WScript.Echo "EXIT"
         WScript.Quit
         Exit Do
      End If
   Loop Until ResEmulator = "Yes"
End If

My department is moving away from VBScript and towards C#.NET. I've created a VERY similar version of the VBScript code.

AutConnList autECLConnList = new AutConnList();
AutConnMgr Connect_Manager = new AutConnMgr();
AutSess ObjEmulator = new AutSess();
       
autECLConnList.Refresh();
int Num = autECLConnList.Count;
int PrevNum = Num;

if (Num == 0)
{
    MessageBox.Show("You must have at least two PCOMM sessions open to use this tool." + Environment.NewLine + Environment.NewLine + "Program is now terminating.", "No Session Error", MessageBoxButtons.OK, 
    MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, 
    MessageBoxOptions.DefaultDesktopOnly);
    return;
}

string strSession = autECLConnList[Num].Name;
autECLConnList.Refresh();

ObjEmulator.SetConnectionByName(strSession);
string Window_Title = ObjEmulator.autECLWinMetrics.WindowTitle;


if (Window_Title.IndexOf("HOSTORS") == 0 || strSession == "A" || Window_Title.IndexOf("NDB") == 0)
{
    ObjEmulator = null;
    int Loop_Count = 1;
    string ResEmulator = "No";
    do
    {
        PrevNum -= 1;
        if (PrevNum == 0)
        {
            MessageBox.Show("You need to have more than one session open." + Environment.NewLine + "Program is now terminating.", "One Session Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
            return;
        }
        else
        {
            strSession = autECLConnList[PrevNum].Name;
            if (strSession == "A")
            {
                MessageBox.Show("You cannot use your production (A) session." + Environment.NewLine + "Please open another session." + Environment.NewLine + "Program is now terminating.", "Production Session Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
                return;
            }
            else
            {
                AutSess ObjEmulator = new AutSess();
                autECLConnList.Refresh();
                ObjEmulator.SetConnectionByName(strSession);
                Window_Title = ObjEmulator.autECLWinMetrics.WindowTitle;
                if (Window_Title.IndexOf("HOSTORS") > 0 || Window_Title.IndexOf("NDB") > 0)
                {
                    ObjEmulator = null;
                }
                else
                {
                    ResEmulator = "Yes";
                }
            }
        } 
        Loop_Count++;
        if (Loop_Count == 10)
        {
            MessageBox.Show("Unable to connect to a session." + Environment.NewLine + "Please make sure you have working sessions." + Environment.NewLine + "Program is now terminating.", "Production Session Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
            return;
        }
    } while (ResEmulator == "Yes");
}

My issue is I'm getting the CS0136 - A local or parameter named 'ObjEmulator' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter when I'm trying to redeclare AutSess ObjEmulator = new AutSess();. I'm looking for a similar way to keep this dynamic like the VBScript code. Since ObjEmulator = null; doesn't fully kill the object in C#.NET like Set ObjEmulator = Nothing does in VBScript, does anyone have advice on how this can be done?

Reasons:
  • RegEx Blacklisted phrase (3): does anyone have
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Lou

79087023

Date: 2024-10-14 16:54:19
Score: 2
Natty:
Report link

The except clause in Python is used to catch specific exceptions. In this case, you are using ButtError in the except clause, which is not a built-in or existing error type. However, this does not cause a NameError immediately because Python does not evaluate the name of the exception (e.g., ButtError) unless the exception is actually raised. The code runs up until an exception is triggered, and only then does Python check whether the exception being raised matches any of the except clauses.

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

79087016

Date: 2024-10-14 16:53:19
Score: 2.5
Natty:
Report link

Be sure to issue an update before accessing these dimensions, otherwise you will only get the original set values. You can issue an update using e.g. root.update() (where "root" is the name of the master window you created by calling root=Tk())

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

79087010

Date: 2024-10-14 16:51:19
Score: 3.5
Natty:
Report link

Sorry, I resolve this by upgrade 6.1 to 6.2

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

79087007

Date: 2024-10-14 16:50:18
Score: 1
Natty:
Report link

As iPDFDev suggested here, pass the full timestamp raw bytes exactly as received from GlobalSign to the timeStampResponse parameter.And for the trust problem, try importing the TSA's root and intermediate certificates into Adobe's Trusted Certificates. In the Edit > Preferences > Signatures > Trusted Certificates, Click Import and add the TSA's root and intermediate certificates.

Sometimes,any version incompatibilities between syncFusion, GlobalSign's service, and Adobe reader might cause the error too.

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

79087003

Date: 2024-10-14 16:49:18
Score: 2.5
Natty:
Report link

In my lambda, I have updated the python version to the latest. And it worked perfectly.

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

79086998

Date: 2024-10-14 16:48:18
Score: 1.5
Natty:
Report link

I made the changes suggested in answer 1. The form sorts correctly but now the recordset is not updateable. When I take the join out of the sql, the from is updateable (but does not sort correctly).

Did some searching around the internet. Many of the answers related to primary key. My tables all have an autonumber field and I usually make that the primary key. I went into Task-TrainingStatus and changed the primary key from the autonumber to the Id that I used for the combobox and it works!

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

79086961

Date: 2024-10-14 16:37:15
Score: 3.5
Natty:
Report link

Is this what you are looking for?

library(tidyverse)

data %>% 
  select(
    ., 
    - any_of(
      select(., matches('^cx[12]')) %>% keep(~ sum(.x) == 0) %>% names()
    )
  )
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this
  • Low reputation (0.5):
Posted by: maike

79086950

Date: 2024-10-14 16:32:14
Score: 1.5
Natty:
Report link

first i ran this command in console:

flutter pub cache repair

then deleted this line of code in android/app build.gradle

classpath 'com.android.tools.build:gradle:8.1.2'

and ran this command :

flutter pub get

eventually after afew hours of downloading, it fixed.

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

79086944

Date: 2024-10-14 16:27:12
Score: 1
Natty:
Report link

I faced the same problem and the issue was escalated to the production environment. Based on my learning, you can use two approaches.

  1. Create a new worker class (The safest one)
  2. Add the new parameter with a default value.

I've put the details in my personal notes

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: rslhdyt

79086940

Date: 2024-10-14 16:24:11
Score: 1.5
Natty:
Report link

At first open PowerShell then run bellow commands.

  1. Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
  2. Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
  3. Get-ExecutionPolicy -List
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Lutfor Rahman

79086931

Date: 2024-10-14 16:22:10
Score: 6 🚩
Natty: 5.5
Report link

have you fixed this problem or not?

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

79086926

Date: 2024-10-14 16:20:09
Score: 2
Natty:
Report link

@chux When I used system time as the seed, sleeping 1 sec after EACH call to srand, the first call to rand also gave linear or almost-linear results.
If graphing the seed vs the result of the first call to rand, the graph apparently would look like a line.
Anyway, it's now clear that rand IS intended to generate the behavior I described. SO, if the program is run at short intervals and time is used as the seed, it will not generate a pseudorandom output. So, I'll run rand with time as the seed, then use the first call to rand, modulus a small number, to determine how many times rand is called to generate the actual random result.

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

79086914

Date: 2024-10-14 16:16:08
Score: 2.5
Natty:
Report link

Solution for Chrome that worked for me:

  1. Open HTTP Strict Transport Security (HSTS) settings in your Chrome through this link: chrome://net-internals/#hsts
  2. Remove "localhost" under "Delete domain security policies"

enter image description here

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Booo

79086890

Date: 2024-10-14 16:09:06
Score: 0.5
Natty:
Report link

So you got a partial answer already, but there's a number of things I want to point out.

First, you can simply use place.get() as any other int/str/whatever. So you can just use it directly in your if statements. Using a single choice = place.get() can be used as well, and this would make sense if you need to access the value a gazillion times in the function. However,

Second, the if/elif/else is no longer needed. Starting from python 3.10 there's a case/switch statement available (took way too long for that to be implemented, but that's a different can of worms).
There's one weird drawback in this though, the match/case statement doesn't like direct variables, and as per this answer there's a relatively easy fix. Be sure to also change the relevant assignment in your combobox.

The if/elif/else statements in the choose() function don't make sense, and the 8 place functions make even less sense. Code duplication is really an antipattern that can very easily lead to code spaghetti and increases the chances of bugs.
You're using the value from place as the row so you can directly pass that to the function that sets the row for the widget. Or you could just use the place.get() directly in that function.

Another thing to take into account is that you're not keeping track of the actual placed widgets. There's nothing stopping you from placing 9001 different widgets in the same row. This is likely unwanted behavior, so you will need to keep track of the widget. So, create a list to hold the widgets. This also solves the problem that you cannot access the created widgets easily, as they are not assigned to a variable directly. Whether this is intended or not is not for me to determine.

### NO CHANGE HERE
from tkinter import *
from tkinter import ttk

root = Tk()
frame = ttk.Frame(root, style="color.TFrame")
s = ttk.Style()
s.configure("color.TFrame", background="black", borderwidth=5, relief="sunken")
root.title("Widget Manipulator")
frame.grid(column=0, row=0)

root.columnconfigure(0, weight=1)
root.rowconfigure(0, weight=1)


### CODE BELOW CHANGES
# this link explains the needed usage of a class
# https://stackoverflow.com/a/66159622/9267296
class WidgetTypes:
    a = "Spinbox"
    b = "Entrybox"
    c = "Checkbox"
    d = "RadioButton"
    e = "Combobox"
    f = "Listbox"
    g = "Scale"
    h = "Progressbar"


# create a list with 8*None to prevent out of bound errors
# Since lists are zero-indexed, we put a dummy value in index 0
# in prod, this should be another None to reduce resource usage
widget_list = ["0-indexed workaround", None, None, None, None, None, None, None, None]


def choose():
    if place.get() >= 1 and place.get() <= 8:
        place_widget(place.get())
    else:
        placetext.set("Please choose an Option for the place")


def place_widget(choice: int):
    # this only works in python 3.10+
    # check if widget type is selected and also if row
    # is already existing widget and destroy if needed
    # this will prevent memory leaks (I think)
    if widget.get() != "" and widget_list[choice] != None:
        widget_list[choice].destroy()

    match widget.get():
        case WidgetTypes.a:
            widget_list[choice] = ttk.Spinbox()
            widget_list[choice].grid(column=1, row=choice)
        case WidgetTypes.b:
            widget_list[choice] = ttk.Entry()
            widget_list[choice].grid(column=1, row=choice)
        case WidgetTypes.c:
            widget_list[choice] = ttk.Checkbutton()
            widget_list[choice].grid(column=1, row=choice)
        case WidgetTypes.d:
            widget_list[choice] = ttk.Radiobutton()
            widget_list[choice].grid(column=1, row=choice)
        case WidgetTypes.e:
            widget_list[choice] = ttk.Combobox()
            widget_list[choice].grid(column=1, row=choice)
        case WidgetTypes.f:
            widget_list[choice] = Listbox()
            widget_list[choice].grid(column=1, row=choice)
        case WidgetTypes.g:
            widget_list[choice] = ttk.Scale()
            widget_list[choice].grid(column=1, row=choice)
        case WidgetTypes.h:
            widget_list[choice] = ttk.Progressbar()
            widget_list[choice].grid(column=1, row=choice)
        case _:  # this is the final catch-all statement.
            widgettext.set("please enter widget")


# Widgets
place = IntVar()
widget = StringVar()
placetext = StringVar()
widgettext = StringVar()
Label(frame, textvariable=placetext).grid(column=2, row=1)
Label(frame, textvariable=widgettext).grid(column=0, row=1)
Button(frame, text="Change", command=choose).grid(column=1, row=0)
ttk.Combobox(
    frame,
    textvariable=widget,
    values=(
        WidgetTypes.a,
        WidgetTypes.b,
        WidgetTypes.c,
        WidgetTypes.d,
        WidgetTypes.e,
        WidgetTypes.f,
        WidgetTypes.g,
        WidgetTypes.h,
    ),
).grid(column=0, row=0)
ttk.Combobox(frame, textvariable=place, values=(1, 2, 3, 4, 5, 6, 7, 8)).grid(
    column=2, row=0
)

root.mainloop()
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Edo Akse

79086879

Date: 2024-10-14 16:04:05
Score: 2
Natty:
Report link

Use gunicorn to test my_not_async_view.

gunicorn async_django.wsgi:application
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Reaz Nahid

79086877

Date: 2024-10-14 16:03:04
Score: 2
Natty:
Report link

You just can't change the color of emojis glyphs, they are essentially images. If you want to use those emojis and change the color, try use non-emoji characters. Like: 😊︎ 😐︎ ☹︎ Instead of: 🙂 😐️ ☹️

Result is like Test in PowerBI

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

79086875

Date: 2024-10-14 16:03:04
Score: 2.5
Natty:
Report link

You can display the image in markdown using html / css.

How about something like this?

<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSVoFq3XlAYVa5ThUCMFuzv_C7zei7KhT9Nag&s" alt="Avatar" style="width:100px; height:100px; border-radius:50%;">

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

79086871

Date: 2024-10-14 16:02:04
Score: 2
Natty:
Report link

You must add the persistence unit name to the @PersistenceContext annotation:

@PersistenceContext(unitName = "primary")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @PersistenceContext
  • Low reputation (0.5):
Posted by: Andrey Smelik