79294770

Date: 2024-12-19 15:26:14
Score: 4
Natty:
Report link

Be sure to watch out for the fact that the interceptor object needs to be a singleton instance.

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

79294766

Date: 2024-12-19 15:25:13
Score: 4
Natty: 4.5
Report link

Also interested in this as we currently manage our Oracle and SQL Server schemas in Oracle SQL Developer Data Modeler but now also need to manage Databricks SQL as well. We would like to use the same tool but looks like we'll need to switch to a generic tool.

Unless support for Databricks JDBC drivers has been added since 2022?

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

79294765

Date: 2024-12-19 15:24:11
Score: 6 🚩
Natty:
Report link

not solving the issue. I am facing same issue in ladybug for a flutter project

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vishwanath Studios

79294763

Date: 2024-12-19 15:23:10
Score: 3.5
Natty:
Report link

I got this issue and solved it by putting #!/bin/sh as the first line of the pre-commit file.

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

79294757

Date: 2024-12-19 15:23:10
Score: 3.5
Natty:
Report link

Все гениальное просто! Скорее всего у Вас при установке почтового сервера скриптами поднялся фаервол, он и блокирует ваше соединение.

  1. Проверьте # nft -a list ruleset
  2. Добавьте правило если он настроен # nft add rule inet filter input tcp dport {5432} accept
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: user28857261

79294743

Date: 2024-12-19 15:18:09
Score: 0.5
Natty:
Report link

Use https://jwt.io/ to generate bearer token. Use this: Algorithm: ES256 Header: { "alg": "ES256", "kid": "[your key id]", "typ": "JWT" } Payload: { "iss": "[your issuer id]", "iat": 1734613799, "exp": 1734614999, "aud": "appstoreconnect-v1" } Note that 'exp' should be less than 1200 seconds from 'iat'. Insert your private key as entire text from downloaded p8 file into 'verify signature' field. Copy generated bearer token from the 'encoded' field.

POST https://api.appstoreconnect.apple.com/v1/authorization use your bearer token. It works for me.

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

79294741

Date: 2024-12-19 15:17:09
Score: 1.5
Natty:
Report link
CREATE OR REPLACE VIEW v_t 
COPY GRANTS 
AS 
SELECT * FROM t;

After running the above if I create a new column in source table and run select * from v_t it breaks with "query produces Y columns but declared only X"

Did anyone have a fix for this. Cannot hardcode the column names because the underlying table in my case in dynamic. I cannot recreate the view every time the table updates its DDL.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Muffle Fuse

79294736

Date: 2024-12-19 15:14:08
Score: 1.5
Natty:
Report link

First thing first, I see you create the interval every 2 seconds and it is used to fetch from Api from time to time i believe this is the reason for the lag.

Also I think if you want to update the amount of item in the cart icon you can make the state in the parent or the top of the component instead and pass the count to the component props. So whenever the state updated the component props become updated too.

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

79294734

Date: 2024-12-19 15:14:08
Score: 1
Natty:
Report link

Comment from raphael answers the question 100%! Django looks at your url patterns in order until it finds one that matches, so path("accounts/login", views.atest, name="login") will not ever be seen because path("accounts/", include("django.contrib.auth.urls")) matches first. Having said that, if all you want to do is create a user registration page, or style the login page, then you don't need this.

Check out developer.mozilla.org/en-US/docs/Learn/Server-side/Django/… (especially developer.mozilla.org/en-US/docs/Learn/Server-side/Django/…) –

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

79294730

Date: 2024-12-19 15:11:07
Score: 2
Natty:
Report link

I've tried with my logic, I feel I've given all possibilities.

=IF(OR(SUM(--ISBLANK(A2:C2))=1,SUM(COUNTIF(A2:C2,A2:C2))>3),"duplicate","")

Result

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

79294725

Date: 2024-12-19 15:09:06
Score: 5.5
Natty: 2.5
Report link

I have the same issue, i'm trying to use my own http client implementation in a scrapy project, i tried to yield the scrapy.items in a loop and it keep trying to access the attribute dont_filter which is normally found scrapy.Request

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Khalifa

79294720

Date: 2024-12-19 15:09:06
Score: 3.5
Natty:
Report link

I added the Panda for Python layer and that appears to include pytz. Error went away after adding this the layer.

enter image description here

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

79294716

Date: 2024-12-19 15:08:05
Score: 1.5
Natty:
Report link

This method also uses "</convas/>" and allows you to convert images to .png, .webp, and .jpeg. However, I would like to know an alternative method for working with 2D graphics, thanks.

<input id="myInput" type="file"></input>
<button onclick="myCanvas()">Convetr to png</button>
<a id="save">Download</a>

<br>
<img id="sorseImg" src="">
<br>
<canvas id="myCanvas"></canvas>

<script>

var canvas = document.getElementById("myCanvas");
var img = document.getElementById("sorseImg");
var ctx = canvas.getContext("2d");
var dat = "";

////////////////////////Uploader files//////////////////////////
document.getElementById("myInput").onchange = function exp(evt){
   var reader = new FileReader();
   reader.onload = function(evt){
   dat = evt.target.result;
   img.src = dat; //!Warning creates offline content in base64!
  };
  reader.readAsDataURL(event.target.files[0]);
};
/////////////////////////////////////////////////////////////////

//////////////////////////////Canvas/////////////////////////////
function myCanvas() {

  canvas.height = img.height;
  canvas.width = img.width;
  ctx.drawImage(img,0,0);

  mySave();  
}
/////////////////////////////////////////////////////////////////

//////////////////////////////Save///////////////////////////////
function mySave() {

  var link = document.getElementById("save");
  link.download = "MintyPaper.png";

  //toDataURL("image/jpeg", 1.0) quality max=1 min=0; or ("image/webp");

  link.href = canvas.toDataURL("image/png"); 
}
/////////////////////////////////////////////////////////////////

</script>
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1.5): I would like to know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cody toy

79294709

Date: 2024-12-19 15:06:05
Score: 3.5
Natty:
Report link

Finally figured it out ... didn't realize that I needed to first add a resource file in the resources view window.

Thanks all!

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

79294704

Date: 2024-12-19 15:05:04
Score: 5.5
Natty: 5
Report link

How to get rid off the word "Characteristic" at the beggining of the table created from gtsummary package?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Gustavo Tavares Lameiro da Cos

79294696

Date: 2024-12-19 15:01:02
Score: 1
Natty:
Report link

The problem is related to the case sensitivity of PHP class names and how they are treated in different contexts by GraphQL and REST API when working with DTOs in API Platform.

In your example, the class RequestDto is referred with different casing:

In GraphQL operations, it is referred to as RequestDTO. However, the real class is named requestDto (lowercase "Dto").

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

79294692

Date: 2024-12-19 15:00:02
Score: 1
Natty:
Report link

One solution with apply() which runs a given function on each row:

df = df.replace("Unk", np.nan)
df["A1"] = df.apply(lambda row: round(row["A"] / dic["A_" + str(row.name)[:4]], 3) , axis=1)
df["B1"] = df.apply(lambda row: round(row["B"] / dic["B_" + str(row.name)[:4]], 3) , axis=1)
display(df)

enter image description here

PS: row is a series and row.name is actually the index of the dataframe so the date.

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

79294683

Date: 2024-12-19 14:54:00
Score: 5.5
Natty:
Report link

are you using stripe?

i'm having the same issue, if i remove that library evertything works fine.

Reasons:
  • 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: Francesco De Giorgio

79294678

Date: 2024-12-19 14:52:59
Score: 2
Natty:
Report link

I don't think this is supposed to happen. Unfortunately, the only thing that works for me is to remove the remote repo and add it again. That way, it clears the cached branches.

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

79294669

Date: 2024-12-19 14:49:59
Score: 0.5
Natty:
Report link

I believe you could use something as simple as

UPDATE YourTable SET price = price * 1.22 

or

UPDATE YourTable SET price = price * YourField

if you have a field with the price value

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

79294661

Date: 2024-12-19 14:47:58
Score: 2
Natty:
Report link

Thomas didn’t answer the third question.

Yes, there’s a default PATH on RHEL defined in systemd. Other envvars can also be set through sshd.

See further https://www.reddit.com/r/linuxquestions/comments/pgv7hm/comment/hbfs2ws/

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

79294659

Date: 2024-12-19 14:46:58
Score: 3
Natty:
Report link

Thanks everone for helping me answer my question, indeed both time.perf_counter_ns() and timeit work as intended.

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

79294656

Date: 2024-12-19 14:44:57
Score: 5.5
Natty: 5.5
Report link

I meet the same problem, do you figure it out?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 一路向北

79294650

Date: 2024-12-19 14:43:57
Score: 1
Natty:
Report link

Other possibility which depends of your setup, and how you use Java, is when you installed the spring-boot-starter-validation, for example, but not stopped and started again the process running the continuous build or the bootRun (in Gradle)

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

79294645

Date: 2024-12-19 14:39:56
Score: 0.5
Natty:
Report link

code example here :

last updated code

enter image description here

int _selectedIndex = 0;
@override
Widget build(BuildContext context) {
 return Scaffold(
  body: Stack(
    children: [
      Offstage(
        offstage: _selectedIndex != 0,
        child: TickerMode(
          enabled: _selectedIndex == 0,
          child: MaterialApp(
              debugShowCheckedModeBanner: false, home: 
  NavigationBarTest()),
        ),
      ),
       Offstage(
        offstage: _selectedIndex != 1,
        child: TickerMode(
          enabled: _selectedIndex == 1,
          child: MaterialApp(
              debugShowCheckedModeBanner: false,
              home: NavigationBarTest2()),
        ),
      ),
      Offstage(
        offstage: _selectedIndex != 2,
        child: TickerMode(
          enabled: _selectedIndex == 2,
          child: MaterialApp(
              debugShowCheckedModeBanner: false,
              home: NavigationBarTest3()),
        ),
      ),
    ],
    ),

bottomNavigation_bar code ex:

    bottomNavigationBar: NavigationBar(
     destinations: const [
      NavigationDestination(icon: Icon(Icons.home), label: 'home'),
      NavigationDestination(icon: Icon(Icons.settings), label: 'setting'),
      NavigationDestination(icon: Icon(Icons.person), label: 'profile')
    ],
    selectedIndex: _selectedIndex,
    onDestinationSelected: (int index) => setState(() {
      _selectedIndex = index;
    }),
    animationDuration: const Duration(seconds: 1),
  ),

NavigationBarTest

  class NavigationBarTest extends StatelessWidget {
    Widget build(BuildContext context) {
      return Container(
       color: Colors.amber,
    );
   }
 }

  class NavigationBarTest2 extends StatelessWidget {
    Widget build(BuildContext context) {
     return Container(
       color: Colors.red,
      );
    }
 }

  class NavigationBarTest3 extends StatelessWidget {
    Widget build(BuildContext context) {
     return Container(
      color: Colors.teal,
      );
     }
   }
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ahmed tharwat

79294644

Date: 2024-12-19 14:39:55
Score: 8.5 🚩
Natty: 5.5
Report link

does anyone have newer information about this? As far as we can see, the intelligent albums are still noch reachable, are they?

Reasons:
  • RegEx Blacklisted phrase (3): does anyone have
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sabine

79294641

Date: 2024-12-19 14:38:54
Score: 2
Natty:
Report link

You can use plugin called Metaslider, It allows you to choose different sets of pictures for desktop, tablet and mobile.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tomas

79294639

Date: 2024-12-19 14:36:54
Score: 1.5
Natty:
Report link

n)end;end end else if l>5 then if 6>=l then do return t[n]end;else if 5~=l then repeat if 7<l then do return n(l,nil,n);end break;end;do return setmetatable({},{['__\99\97\108\108']=function(e,t,l,d,n)if n then return e[n]elseif d then return e else e[t]=l end end})end until true;else do return n(l,nil,n);end end end else if l==5 then local l=d;do return function()local e=e(n,l(l,l),l(l,l));l(1);return e;end;end;else local l=d;local d,o,t=t(2);do return function()local n,e,r,a=e(n,l(l,l),l(l,l)+3);l(4);return(ad)+(ro)+(e*t)+n;end;end;end end end end),...)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lộc Võ Đào Xuân

79294632

Date: 2024-12-19 14:34:53
Score: 1
Natty:
Report link

To speed up frame extraction, consider using FFmpeg (via imageio or ffmpeg-python) as an alternative to cv2.VideoCapture, as it's more optimized. You can also try threading to capture frames in parallel, reduce the video resolution, or enable hardware acceleration (e.g., cv2.cuda). These methods can help cut down the time spent on frame extraction.

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

79294624

Date: 2024-12-19 14:32:53
Score: 1.5
Natty:
Report link

implementation 'com.github.barteksc:AndroidPdfViewer:2.0.2'

try this, looks like library is renamed.

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sanjeet Kushwaha

79294621

Date: 2024-12-19 14:30:52
Score: 2
Natty:
Report link

To answer my question, it's not possible to achieve the feature described above. WhatsApp doesn't allow third-party applications to send messages on behalf of users using their personal phone numbers. This restriction applies universally, including to other applications like ClickSend. Messages can only be sent from owned numbers and not from an individual user's number.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Gabriel Guérin

79294609

Date: 2024-12-19 14:27:52
Score: 1.5
Natty:
Report link

It works correctly with SetValueEx()

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

79294604

Date: 2024-12-19 14:25:51
Score: 2.5
Natty:
Report link

See https://learn.microsoft.com/en-au/azure/search/search-get-started-portal-import-vectors?tabs=sample-data-storage%2Cmodel-catalog%2Cconnect-data-storage#supported-embedding-models for the list of allowed embedding models.

Import and vectorize data in Azure only supports text-embedding-3-small if you create that model in Azure Open AI.

If you are creating the embedding model in Azure Foundry (studio) you need to use Cohere-embed-v3-english or Cohere-embed-v3-multilingual

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

79294599

Date: 2024-12-19 14:24:51
Score: 3
Natty:
Report link

Posting my solution in case it helps anyone else. I needed to add the bearer token as a authentication scheme like this:

builder.Services.AddAuthentication()
    .AddBearerToken(IdentityConstants.BearerScheme);

builder.Services.AddIdentity<ApplicationUser, IdentityRole>()
    .AddEntityFrameworkStores<ApplicationDbContext>()
    .AddApiEndpoints()
    .AddDefaultUI()
    .AddDefaultTokenProviders();

I then needed to allow anonymous access to those API endpoints:

app.RegisterApiEndpoints();
app.MapIdentityApi<ApplicationUser>().AllowAnonymous();

Finally I needed to add a custom policy that accepted the bearer token and the cookie to the endpoints that were going to be accessed with the bearer token. The answer here really helped with that: Why am I redirected to Account/Login page when using WebApi and AspIdentityCore beside JwtBearer in dotnet 7?

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Growable

79294597

Date: 2024-12-19 14:23:50
Score: 0.5
Natty:
Report link

If you need decreasing sum, just reverse the condition T2.[ID] <= T1.[ID] as T2.[ID] >= T1.[ID] So it sums all items after and including the current.
For example the first line with T1.ID=1 sums whole table by condition T2.ID >= 1 that is true for all rows.

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

79294584

Date: 2024-12-19 14:19:50
Score: 3
Natty:
Report link

Nearly one year later and the feature is not yet implemented

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

79294582

Date: 2024-12-19 14:19:50
Score: 2.5
Natty:
Report link

Update the column to NULL to reduce its size, then vacuum the table to reclaim space, Copy the data to a new table without the column, then replace the old table - if your using version 13 or later-- you can try ALTER TABLE a DROP COLUMN b;try Use pg_repack (optional)

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

79294578

Date: 2024-12-19 14:17:49
Score: 4.5
Natty: 5
Report link

https://tunnel.imo.im/s/object/.G5nBZOJAjqbbqOhATYEBpZDXpTR/voice.aac"], ["", "2024-07-31 14:36:58", "me", "uploaded audio:

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

79294577

Date: 2024-12-19 14:17:48
Score: 0.5
Natty:
Report link

In response of @MiguelMunoz, here is a working implementation using LoggerContext.

Tested on JDK 17 with :

package logger;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.LoggerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LoggerTest {
  static final Logger LOGGER = LoggerFactory.getLogger(LoggerTest.class);

  public static void main(String[] args) {
    LOGGER.info("Should appear");
    LOGGER.debug("Should appear");

    LoggerContext ctx = (LoggerContext) LoggerFactory.getILoggerFactory();
    // Use the package name whose level you want to change
    ch.qos.logback.classic.Logger logger = ctx.getLogger("logger.LoggerTest");

    logger.setLevel(Level.INFO);
    LOGGER.debug("Should not appear");
    logger.setLevel(Level.DEBUG);
    LOGGER.debug("Should reappear");
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @MiguelMunoz
  • Low reputation (0.5):
Posted by: Pommepomme

79294569

Date: 2024-12-19 14:14:48
Score: 1
Natty:
Report link

After a lot of discussions and serious chats with my hosting provider, I was unable to get a proper resolution from them, they keep saying it is out of their scope, and, it's the responsibility of my web designer to sort out this error. So I took it upon myself and got a temporary fix from Chat-GPT 4o. I'm posting the rule below for open critique. The following rule satisfies all my current need viz. Non-existent URLs ending with .php is giving 404 with custom Error page, manual 301 Redirects are working as intended, & there is no "file not found" error.

# 301 Redirects
Redirect 301 /old-page.php /new-page.php
 
### This is CHATGPT Magic
# Custom 404 for .php files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} \.php$ [NC]
RewriteRule ^.*$ /404.php [L,R=404]
 
# General 404 for non-.php URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /404.php [L,R=404]

Now only thing I really want is the explanation of why I was having file not found page rather than URL not found/custom 404 page. I think it is something related to PHP routing, but, as a non-expert, I'm not sure the exact cause.

Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Reymond135

79294566

Date: 2024-12-19 14:13:47
Score: 1
Natty:
Report link

Just replace your highlighted line of code with the following code:

x = int(input(f"Score for game {i + 1}: "))

This would dynamically display the game number in the prompt rather than hardcoding it to "game 1".

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

79294560

Date: 2024-12-19 14:10:47
Score: 1
Natty:
Report link

I get an error telling me there are no data to split:

It's better to show the actual result, e.g., the error is IndexError Exception like:

>>> empty_str = ""
>>> country_abbreviation = empty_str.strip().split()[0]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: list index out of range

If this is the case, then we can say that the text got from columns[2].text.strip() is empty.

This may be the case you're reading from one column of a table and one row contains empty string.

To avoid this Exception, you should handle this empty-string case:

def get_first_word(column_data):
    if not isinstance(column_data, str):
        raise ValueError("column_data should be str")
    if not column_data.strip():
        return ""  # data is empty, return empty also
    return column_data.split(" ")[0]

And pass columns[2].text as argument to get_first_word to get the first word (if any).

>>> first_word_only = get_first_word(columns[2].text)
Reasons:
  • RegEx Blacklisted phrase (1): I get an error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: wu qi

79294557

Date: 2024-12-19 14:10:47
Score: 1.5
Natty:
Report link

Try flutter run --release or flutter run --profile. If that fails too, the chances are that your adb is damaged. Try to reinstall the adb.

Oh did you tried flutter clean too?

If all of it fails flutter run --no-devtools. It disables the VM service if i am sure...

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: MuSiC BoX

79294548

Date: 2024-12-19 14:07:46
Score: 1
Natty:
Report link

I used spring initializer to create the project and I added the lombok dependency using it However adding provided to my pom.xml fixed the problem

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <optional>true</optional>
    <scope>provided</scope>
</dependency>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Oumaima Ben Elhadj Ali

79294542

Date: 2024-12-19 14:06:45
Score: 5.5
Natty: 5.5
Report link

If i change a json value in en will it be reflected in es too?

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

79294535

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

The square symbol is u00b2. So, in Python it is written: print('R\u00b2 =',50)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jimm Euboeaeys

79294514

Date: 2024-12-19 13:58:42
Score: 4
Natty: 4.5
Report link

Currently, client credentials grant type is not supported by custom connectors.

https://learn.microsoft.com/en-us/connectors/custom-connectors/connection-parameters

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cezar P.

79294511

Date: 2024-12-19 13:57:42
Score: 2
Natty:
Report link

https://github.com/alexdredmon/cuteuid seems to be a project using leetspeak, which is kinda similar to real English "words", that fit into a GUID.

Found via Awesome GUIDs.

Edit: Okay, these are only UUIDs, no GUIDs!

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

79294510

Date: 2024-12-19 13:57:42
Score: 2
Natty:
Report link

Have you checked how the configuration path within the Ci is setup.

Also did you try creating a new ansible instance where you changed the tmp path to reflect and match the ansible playbook like the error message is prompting?

Reasons:
  • Whitelisted phrase (-2): did you try
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Coast

79294491

Date: 2024-12-19 13:50:41
Score: 1.5
Natty:
Report link

Bulk SMS Hyderabad is the answer if you wish to interact with clients in Hyderabad in an efficient manner. Businesses may send transactional and promotional SMS to thousands of people at once with RAT SMS. Our program offers real-time tracking and guarantees dependable and prompt delivery. RAT SMS ensures effectiveness whether you're sending out messages or managing marketing campaigns. Offering choices for personalized communications will help you effectively engage your audience. With RAT SMS's affordable bulk SMS services, you might contact more people in Hyderabad. Right now, use RAT SMS to make communication easier.

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):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ezhilarasi

79294490

Date: 2024-12-19 13:49:40
Score: 1
Natty:
Report link

Check your internet connection or firewall if they block that connection

model = lp.AutoLayoutModel('lp://EfficientDete/PubLayNet')

this will download models weights. That's why you got this error

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

79294483

Date: 2024-12-19 13:47:40
Score: 3
Natty:
Report link

If you get this error when connecting with dbeaver, set your time zone from Window-preferences (by default this field is empty):

enter image description here

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

79294472

Date: 2024-12-19 13:42:39
Score: 2
Natty:
Report link

In my case, This line was missing in MainAcitivty.java

GeneratedPluginRegistrant.registerWith(flutterEngine);

with it's import

import io.flutter.plugins.GeneratedPluginRegistrant;

enter image description here

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

79294469

Date: 2024-12-19 13:41:39
Score: 2
Natty:
Report link

I deleted app/build/intermediates and it worked

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

79294465

Date: 2024-12-19 13:40:38
Score: 1.5
Natty:
Report link

The template from next already includes a .git folder. The flag "--no-git" in "npx create-next-app@latest appName --no-git" (Where appName is optional) Worked in earlier versions, but it seems like a bug with the flag in current version. As other people have mentioned, the only workaround until the bug is fixes is to just remove the .git folder. Everything should work fine after that.

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

79294459

Date: 2024-12-19 13:39:37
Score: 10 🚩
Natty: 5.5
Report link

@rayad are you able to resolve this problem? I am facing same issue

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve this problem?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing same issue
  • Contains question mark (0.5):
  • User mentioned (1): @rayad
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: sarah shaikh

79294456

Date: 2024-12-19 13:38:36
Score: 2.5
Natty:
Report link

For mine, after the updating Android Studio to ladybug 2024.2.1 patch 3, the sdk proccessing warning was gone successfully. (the update was recommended by Android Studio itself)

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

79294455

Date: 2024-12-19 13:37:36
Score: 1.5
Natty:
Report link

@startuml class Manager { -Name: String -Id: int -PhoneNo: int -Location: String +PurchaseInventory(): void +RecordComplaints(): void +ManageStaff(): void }

class Chef { -Name: String -Id: int -Location: String +TakeOrders(): void }

class FoodItems { -Id: int -Name: String }

class Inventory { -Type: String -Status: String }

class Guest { -Name: String -Id: int -PhoneNo: int -Address: String -RoomNo: int +Check_In(): void +Check_Out(): void +PayBill(): void +OrderFood(): void +SubmitFeedback(): void }

class Receptionist { -Name: String -Id: int -PhoneNo: int -Location: String +CheckRoomAvailability(): void +BookRoom(): void +GenerateBill(): void +AcceptCustomerFeedback(): void }

class Rooms { -RoomNo: int -Location: String }

class Housekeeping { -Name: String -Id: int -Location: String +CleanRoom(): void }

class Bill { -BillNo: int -GuestName: String }

Manager "1" -- "" Inventory : manages Manager "1" -- "" Chef : manages Chef "1" -- "" FoodItems : prepares Guest "1" -- "1" Rooms : occupies Guest "1" -- "" Bill : receives Receptionist "1" -- "" Rooms : manages Receptionist "1" -- "" Guest : serves Receptionist "1" -- "" Bill : generates Housekeeping "1" -- "" Rooms : cleans

@enduml

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @startuml
  • User mentioned (0): @enduml
  • Low reputation (1):
Posted by: Gabriel Concepcion

79294449

Date: 2024-12-19 13:36:36
Score: 3
Natty:
Report link

In the newer versions of IntelliJ Ultimate it is enough to place cursor inside your tag, press alt+enter -> Inject language or reference -> JavaScript.

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

79294438

Date: 2024-12-19 13:31:35
Score: 0.5
Natty:
Report link

I would just wrap in a flex div to ensure it always works as expected.

html {
  line-height: 1.5;
}

span {
  background-color: red;
}

.col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
<pre>
<div class="col">
  <span>line 1</span>
  <span>line 2</span>
</div>
</pre>

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

79294431

Date: 2024-12-19 13:28:34
Score: 0.5
Natty:
Report link
import tkinter as tk
from tkinter import simpledialog
root = tk.Tk()
root.withdraw()
root.wm_attributes('-alpha', 0.0)
root.geometry("340x100+50+500")
user_input = simpledialog.askfloat(title="输入框", prompt="请输入内容:", parent=root, initialvalue=34)
user_input = user_input * 60
root.destroy()

add root.wm_attributes('-alpha', 0.0) it's work

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

79294426

Date: 2024-12-19 13:27:32
Score: 8.5 🚩
Natty: 5.5
Report link

I have the same issue too, any help!

Reasons:
  • Blacklisted phrase (1): any help
  • Blacklisted phrase (1): I have the same issue
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nour Mustafa

79294417

Date: 2024-12-19 13:24:30
Score: 6.5 🚩
Natty: 4.5
Report link

Am trying to renew an expired CA on ejbca using CLI : ./ejbca.sh ca renewca

and it took a lot of time without response.

Is there any idea?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Blacklisted phrase (1): any idea?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: neo

79294415

Date: 2024-12-19 13:22:30
Score: 0.5
Natty:
Report link

Use https://jwt.io/ to generate bearer token. Use this: Algorithm: ES256 Header: { "alg": "ES256", "kid": "[your key id]", "typ": "JWT" } Payload: { "iss": "[your issuer id]", "iat": 1734613799, "exp": 1734614999, "aud": "appstoreconnect-v1" } Note that 'exp' should be less than 1200 seconds from 'iat'. Insert your private key as entire text from downloaded p8 file into 'verify signature' field. Copy generated bearer token from the 'encoded' field.

POST https://api.appstoreconnect.apple.com/v1/authorization use your bearer token. It works for me.

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

79294414

Date: 2024-12-19 13:22:30
Score: 1
Natty:
Report link

I solved my problem.

I uninstalled all instances of WSL (wsl, ubuntu) and Rancher Desktop.

Then I followed the instructions for installing Docker Desktop exactly. Done.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Broken Dust

79294405

Date: 2024-12-19 13:17:28
Score: 2.5
Natty:
Report link

I may have found the solution : simply add a 2px transparent margin above and below the image and colors are not changed in dark mode.

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

79294401

Date: 2024-12-19 13:16:28
Score: 2
Natty:
Report link

Copying tcl and tk libraries in my python313 folder didn't work for me. I downloaded Matplotlib and I can run command

import matplotlib.pyplot as plt

without any problem, however using any other command, such as:

print(plt.plot([1,2,3],[2,4,6]))

doesn't work and I get a very long error.

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

79294387

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

I was facing the same problem and solved it using following steps

Checked my style.scss, there I found the following

* {

font-family: 'poppins'

}

I removed it and applied the same on body and it worked.

Thanks to the following post https://github.com/kolkov/angular-editor/issues/217#issuecomment-820259174

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jackz_sparrow

79294386

Date: 2024-12-19 13:08:26
Score: 4.5
Natty:
Report link

¡Hola! Parece que el problema surge porque el modelo Pydantic para Task define solution como un objeto individual (Optional[Solution]), pero en tu definición de SQLAlchemy solution es una lista debido a la relación uno a muchos.

Puedes ajustar el esquema de Pydantic para reflejar esto, cambiando la definición a algo como:

solution: Optional[List[Solution]]


solution: List[Solution] | None


Esto debería resolver el error de validación al devolver la lista de soluciones en la respuesta. Si solo quieres devolver una solución específica, asegúrate de manejar esto directamente en tu consulta antes de serializarla.
Reasons:
  • Blacklisted phrase (1): porque
  • Blacklisted phrase (2.5): solucion
  • Blacklisted phrase (3): solución
  • Whitelisted phrase (-2): solution:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: José Manuel Tena

79294368

Date: 2024-12-19 13:00:23
Score: 2
Natty:
Report link

You just need to put the file in the same folder as the jmeter script. In addition to that, you must fill the fields at the "File Upload" tab: File path: the absolute path of the file Parameter name: the field name MIME Type: the file type

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

79294367

Date: 2024-12-19 13:00:23
Score: 1.5
Natty:
Report link

Installing the pre-built binary, resolved the issue for me:

Downloading from: https://nodejs.org/en/download/prebuilt-binaries

unxz node-v22.12.0-linux-x64.tar.xz
tar -xvf node-v22.12.0-linux-x64.tar --strip-components=1 -C /usr/

credits: https://askubuntu.com/questions/1524639/usr-bin-node-cant-run-due-to-an-exec-format-error

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

79294366

Date: 2024-12-19 12:59:22
Score: 4.5
Natty:
Report link

Quick question - Did MSFT removed that option (Minimum number of approvals required dropdown) ? I can still see it on old environments but not anymore for a new environment that I just created ?

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

79294363

Date: 2024-12-19 12:58:22
Score: 2.5
Natty:
Report link

Google created this place to serve as an echo chamber where legitimate issues can be voiced without anyone listening.

But I wish you the best of luck.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Archefluxx Happy Hardcore

79294362

Date: 2024-12-19 12:58:22
Score: 0.5
Natty:
Report link

This is my current workaround - not an answer I like, because it doesn't use the actions directly:

import sys
import os
import gi

gi.require_version("Gtk", "3.0")
from gi.repository import GLib, Gio, Gtk

_curr_dir = os.path.split(__file__)[0]

# This would typically be its own file
MENU_XML = """
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <object class="GtkMenu" id="context_menu">
    <child>
      <object class="GtkMenuItem" id="option1">
        <property name="label">Option 1</property>
        <signal name="activate" handler="on_option1_activated"/>
      </object>
    </child>
    <child>
      <object class="GtkMenuItem" id="option2">
        <property name="label">Option 2</property>
        <signal name="activate" handler="on_option2_activated"/>
      </object>
    </child>
  </object>
</interface>
"""


class RightClickMenu(Gtk.Window):
    def __init__(self):
        super().__init__(title="Right-Click Context Menu")

        self.set_default_size(400, 300)
        self.connect("destroy", Gtk.main_quit)

        # Load the UI from the Glade file
        builder = Gtk.Builder()
        builder = Gtk.Builder.new_from_string(MENU_XML, -1)

        # Get the context menu defined in the XML
        self.context_menu = builder.get_object("context_menu")

        # Connect the signals for menu item activation
        builder.connect_signals(self)

        # Add a simple label
        self.label = Gtk.Label(label="Right-click to open context menu")
        self.add(self.label)

        # Connect the button press event (right-click)
        self.connect("button-press-event", self.on_right_click)

    def on_right_click(self, widget, event):
        # Check if it's the right-click (button 3)
        if event.button == 3:
            # Show the context menu
            # self.context_menu.popup(None, None, None, None, event.button, event.time)
            self.context_menu.show_all()
            self.context_menu.popup_at_pointer(event)

    def on_option1_activated(self, widget):
        print("Option 1 selected")

    def on_option2_activated(self, widget):
        print("Option 2 selected")

if __name__ == "__main__":
    win = RightClickMenu()
    win.show_all()
    Gtk.main()
Reasons:
  • Blacklisted phrase (1): not an answer
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DobbyTheElf

79294361

Date: 2024-12-19 12:58:22
Score: 0.5
Natty:
Report link
powershell.exe -WindowStyle minimized

solved the problem for me. this doesn't specifically applies to any shell but in general my PowerShell windows was not being minimized or getting to normal. I did some digging and above command worked fine for me.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amaresh Kumar Sharma

79294353

Date: 2024-12-19 12:55:21
Score: 1
Natty:
Report link

After hours of research, I found that it can be fixed by a few options:

Solution 1:

rm -rf vendor generated
composer install
php bin/magento setup:upgrade
php bin/magento setup:di:compile

Solution 2: Flush Redis Cache

redis-cli flushall
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: SIDDHANT JAIN

79294340

Date: 2024-12-19 12:50:20
Score: 3.5
Natty:
Report link

You can convert the set into an array and access each elements from it with index.

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

79294325

Date: 2024-12-19 12:45:18
Score: 3
Natty:
Report link

We actually make a product specifically designed for this. You could check out the Aardvark MDB Paylink Lite at http://aardvark.eu.com/products/lite/mdb.htm

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

79294319

Date: 2024-12-19 12:42:18
Score: 1.5
Natty:
Report link

Nothing worked for me, then i realised res.locals was made for this.

just do res.locals.user = yourUser and access it at res.locals.user. No config needed

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

79294317

Date: 2024-12-19 12:41:18
Score: 2
Natty:
Report link

You can check these requirements to create and manage catalogs:

enter image description here

To get started with Unity Catalog in Azure Databricks, the first Azure Databricks account admin must be an Azure Active Directory (Azure AD) Global Administrator.

When you log in as a Global Administrator into the Azure Databricks account console for the first time, they are automatically assigned the account admin role. After this initial setup, you no longer need the Azure AD Global Administrator role to manage Azure Databricks.

The first account admin can then assign additional account admins from the Azure AD tenant. These additional account admins don’t need any specific roles in Azure AD to perform their duties or to assign other account admins.

Here is the link to Login to ADB with Microsoft Entra ID.

Log in to the Azure Databricks account console using a Global Administrator account. Once logged in, you can ADD Users & groups.

Know more about Azure Databricks - Get started using Unity Catalog MS Q&A thread - How to access Azure Databricks account admin?

Reasons:
  • Blacklisted phrase (1): Here is the link
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Dileep Raj Narayan Thumula

79294314

Date: 2024-12-19 12:40:17
Score: 1.5
Natty:
Report link

developing a chrome extension just a beginner trying to console log a helloWorld string to a website but it's not working but my popup.html works here is my manifest.json:

{ "manifest_version": 3, "name": "My Chrome Extension", "version": "0.1.0", "description": "My first Chrome extension.", "action":{ "default_popup":"popup.html" }, "content_scripts": [ { "matches": ["<all_urls>"], "js": ["content.js"] } ] }

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: S.B.Prannav

79294310

Date: 2024-12-19 12:40:17
Score: 1.5
Natty:
Report link

I fixed this error by uninstalling and reinstalling Python

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Omar Tadjerouna

79294308

Date: 2024-12-19 12:38:17
Score: 1
Natty:
Report link

We can simply add this code to show the barcode in the email template:

{% if line.variant.barcode != blank %}
   <span class="order-list__item-variant">Barcode: {{ line.variant.barcode }}</span>
{% endif %}

Under:

{% for line in subtotal_line_items %}

So, It should look like:

{% for line in subtotal_line_items %}
    <!-- Some Code -->
    
    {% if line.variant.barcode != blank %}
        <span class="order-list__item-variant">Barcode: {{ line.variant.barcode }}</span>
    {% endif %}

    <!-- Some Code -->
{% endfor %}

Reference: https://help.shopify.com/en/manual/fulfillment/setup/notifications/email-variables#line-item

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

79294297

Date: 2024-12-19 12:34:16
Score: 2.5
Natty:
Report link

{"objName":"Stage", "children": [{"objName":"project" ,"variables":[ ] ,"scripts":[ [ 50 , 138 , [ ["whenGreenFlag" ] , ["doAsk" , "What's your name?" ] , ["doForever" ,[ ["doIfElse" , ["=" , ["letter:of:" , "1" , ["answer" ] ] , "t" ] ,[ ["say:" , "you have an rare name!" ] , ["wait:elapsed:from:" , "1" ] ] ,[ ["say:" , "common name... ok." ] , ["wait:elapsed:from:" , "1" ] ] ] ] ] ]] ] }],"info":{} }

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Adritim Levchenko

79294287

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

Are you the admin in manage.autodesk.com? Do you have Autodesk's premium Plan? If yes, then you are eligible to use Premium Reporting APIs

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have A
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Deepali Srivastava

79294282

Date: 2024-12-19 12:30:14
Score: 4
Natty:
Report link

They should be rotating multiple keys

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

79294281

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

Use monospace fo digist.

@Composable
fun orderedTextList(
    items: List<String>,
    style: TextStyle = LocalTextStyle.current,
    lineBreak: LineBreak = LineBreak.Paragraph
): AnnotatedString {
    val textMeasurer = rememberTextMeasurer()
    val monospaceStyle = style.copy(
        fontFamily = FontFamily.Monospace
    )

    val markerLen = items.size.toString().length
    val monospaceSize = textMeasurer.measure(text = " ", style = monospaceStyle).size
    val spaceSize =  textMeasurer.measure(text = " ", style = style).size
    val dotSize = textMeasurer.measure(text = ".", style = style).size

    return buildAnnotatedString {
        items.forEachIndexed { index, text ->
            val count = (index+1).toString().length
            val tailLen = markerLen - count
            withStyle(
                style = ParagraphStyle(
                    textIndent = TextIndent( restLine = with(LocalDensity.current) {
                        (monospaceSize.width *markerLen + dotSize.width + spaceSize.width).toSp()
                    }),
                    lineHeight = with(LocalDensity.current) { monospaceSize.height.toSp() },
                    lineBreak = lineBreak
                )
            ){
                withStyle(monospaceStyle.toSpanStyle()){
                    append("${index+1}")
                }
                append(".")
                if(tailLen > 0){
                    withStyle(monospaceStyle.toSpanStyle()){
                        append("".padEnd(tailLen))
                    }
                }
                append(" ")
                append(text)
            }
        }
    }
}

enter image description here

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

79294276

Date: 2024-12-19 12:29:13
Score: 0.5
Natty:
Report link

Yes, Flame has native support for implementing 9-patch images using the NineTileBox class. This is a great choice for creating scalable UI elements in a Flame game, such as RPG menus, shop interfaces, and other GUI elements. Here's how you can achieve it:

Using NineTileBox in Flame,

The NineTileBox class in Flame is designed specifically for 9-patch functionality. It allows you to stretch and scale parts of an image while keeping the borders intact, which is perfect for pixel art or UI design.

Steps to Use NineTileBox

  1. Prepare the 9-Patch Image:
  1. Load the Image in Flame: Use Flame's asset loader to load the image as a NineTileBox.

  2. Set Up the NineTileBox: Define the stretching areas using a Rectangle that specifies the coordinates and dimensions of the stretchable center.

  3. Draw the NineTileBox on the Canvas: Use the NineTileBox to draw scalable elements in your game.

import 'package:flame/components.dart'; import 'package:flame/flame.dart'; import 'package:flame/game.dart'; import 'package:flutter/material.dart';

class MyGame extends FlameGame {
late NineTileBox nineTileBox;

@override Future onLoad() async { // Load the image as a NineTileBox final image = await images.load('9patch_image.png'); nineTileBox = NineTileBox( image, tileSize: 16, // Size of each tile (based on your 9-patch design) destTileSize: 32, // Desired output size of the tiles ); }

@override void render(Canvas canvas) { super.render(canvas);

//Draw the NineTileBox final paint = Paint(); final rect = Rect.fromLTWH(50, 50, 200, 100); // Position and size nineTileBox.drawRect(canvas, rect, paint);
} }

void main() {
runApp(GameWidget(game: MyGame())); }

Why Use NineTileBox Over Flutter's centerSlice?

Pixel Art Optimization:

Seamless Integration:

Performance:

Key Points

You can find more information in the Flame documentation: NineTileBox.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @override
  • User mentioned (0): @override
  • Low reputation (0.5):
Posted by: K.D.Dilshan

79294267

Date: 2024-12-19 12:26:13
Score: 2
Natty:
Report link

Try changing monster-spawn-max-light-level and zombie-villager-infection-chance in paper-world.yml to an integer/number make moster... as 7 and zombie villager.... as 80 and check if it works

also use latest viaversion(5.2.0 as of now)

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

79294266

Date: 2024-12-19 12:26:13
Score: 2.5
Natty:
Report link

Add the library @types/jest globally via: File > Settings > Languages & Frameworks > JavaScript > Libraries

Webstorm config

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

79294258

Date: 2024-12-19 12:24:12
Score: 3.5
Natty:
Report link

Please any one provide full code for flink with rocksdb

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

79294253

Date: 2024-12-19 12:23:12
Score: 2
Natty:
Report link

Have you tried Unity_flutter_widget it might help what you are trying to achieve

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Harshil Jani

79294252

Date: 2024-12-19 12:22:12
Score: 0.5
Natty:
Report link

I have find how to do it

public void commit(JmsTemplate jmsTemplate) {
        jmsTemplate.execute((SessionCallback<Void>) session -> {
            try {
                JmsUtils.commitIfNecessary(session);
            } catch (JMSException e) {
                log.warn("Sending to MQ failed");
            }
            return null;
        });
    }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: mamol

79294249

Date: 2024-12-19 12:21:12
Score: 1
Natty:
Report link

Vite is fixing this in v6.1 according to this pull request

Until then, setting node options to '--import tsx' will work.

For Node v20.5.1+

> NODE_OPTIONS='--import tsx' vitest

For versions v20.5.1 and below

> NODE_OPTIONS='--loader tsx' vitest

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

79294248

Date: 2024-12-19 12:21:12
Score: 1.5
Natty:
Report link

so, i find tag it's can be use like text, my end solution for draw image:

fun test(view: View) {
    val resourceId = resources.getIdentifier(view.tag.toString(), "drawable", packageName)
    imageView.setImageResource(resourceId)}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user28550157

79294241

Date: 2024-12-19 12:18:11
Score: 1.5
Natty:
Report link

Hello i had the same issue when try to build android apk just open

platforms/android/app/src/main/java/com/silkimen/cordovahttp.java

And then Comment all codes commented source

It is working for me :)

Reasons:
  • Whitelisted phrase (-1): i had the same
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: starterProgrammer

79294238

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

I'm facing the same issue. I trained a YOLO11 model with only one class. The model performed well during training, validation, and testing.

Validating runs/detect/train/weights/best.pt... Ultralytics 8.3.49 🚀 Python-3.9.6 torch-2.2.2 CPU (Intel Core(TM) i3-8100B 3.60GHz) YOLO11n summary (fused): 238 layers, 2,582,347 parameters, 0 gradients, 6.3 GFLOPs Class Images Instances Box(P R mAP50 mAP50-95): 100%|██████████| 3/3 [00:09<00:00, 3.29s/it] all 79 1229 0.955 0.908 0.971 0.861 Speed: 3.1ms preprocess, 111.1ms inference, 0.0ms loss, 0.8ms postprocess per image

If you export the model with format=coreml and nms=true, it generates a .mlpackage file. In Xcode, this allows the preview to analyze images and detect objects correctly. However, it does not work when using model.prediction(input: input) from the class or with VNCoreMLRequest(model: YOLOModel).

To resolve this issue, you need to export the model using format=mlmodel with coremltools==6.2. This ensures compatibility with both methods, and everything works as expected, it's work with the two methods

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Filler text (0.5): ██████████
  • Low reputation (1):
Posted by: Guillaume

79294235

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

you should define like this {{ comment_form.as_p }} in html page

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

79294228

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

You got little spacing here in div container id remove the little spacing here

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

79294226

Date: 2024-12-19 12:13:09
Score: 1
Natty:
Report link

I'm a bit late here, but I want to share how I "solved" this in my Next JS app, so hopefully someone else does not have to spend as long time as I did.

What I tried:

What I noticed was that refeshing the same page worked fine in the production build. So I tried adding a delay before the server action is executed in the query, and that seems to have worked for developer mode.

const useMyQuery = () => {
  const {
    data,
    isLoading
  } = useQuery({
    queryKey: ['my-query'],
    queryFn: async () => {
      await new Promise((resolve) => setTimeout(resolve, 1));
      // HACK: this somehow fixes the issue where the query doesn't complete
      return await theServerAction();
    }
  });

  return {
    data,
    isLoading
  };
}
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MJUlstein