79322129

Date: 2025-01-01 18:38:19
Score: 1.5
Natty:
Report link

training_args = TrainingArguments( no_cuda=True, # )

adding this works for me, this indicates Use CPU since MPS may have compatibility issues.

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

79322113

Date: 2025-01-01 18:32:17
Score: 10.5
Natty: 7.5
Report link

Hi I am facing same issues but in ms azure pipeline?? However it same Url able to access from my local laptop chrome browser but not from azure pipeline?? Can someone please help??? Url- eg- https/dev/auth/login???

Reasons:
  • Blacklisted phrase (1): ???
  • RegEx Blacklisted phrase (3): please help
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Ashu Rai

79322110

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

This is what Kinetic Merge was written to handle: https://github.com/sageserpent-open/kineticMerge.

It merges changes on one branch through code motion on the other branch.

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

79322099

Date: 2025-01-01 18:19:14
Score: 2.5
Natty:
Report link

Upgrading to Angular 19 fixes the issue. The timing of effects are now correct and the signal values propogate as desired/expected.

https://stackblitz.com/edit/stackblitz-starters-awtcv4ds?file=package.json,src%2Ftop-level%2Ftop-level.component.ts

enter image description here

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

79322095

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

Got it !!!
(Utterly by accident! :)) )

  1. Set the universal color theme to one of the universal versions, not any specially downloaded color themes!

It has to be a built-in, default theme (either light or dank)...one that InlijIdea has it by default!

  1. Go to Settings -> Editor -> Color Theme -> Console Colors and here, in the right-side menu, you will see the Background, Input, Output etc...click on them and they can be changed individually!

WARNING --- This will NOT work if you allready replaced the default color themes with ANY of the after-market/ custom downloaded ones, because those will override the settings for each panel!

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

79322093

Date: 2025-01-01 18:14:12
Score: 4
Natty:
Report link

Many thanks for that!!!! It works now perfectly

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: DanyBoy

79322087

Date: 2025-01-01 18:12:12
Score: 2
Natty:
Report link

For me just adding tls=true to my connection string worked. I'm hosting on render. Also it's important to note that the region of your cluster must be identical to that of your project region on your hosting provider.

Render

MongoDB

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Aidan Mc Intosh

79322069

Date: 2025-01-01 17:59:08
Score: 0.5
Natty:
Report link

It would probably increase performance since you have more endpoints you interact with, and the load is usually balanced between them.
It is a bit more safe, since a crash will wipe just a third of your data.
Not sure about cost, but if you have many changes in your topology in response to scaling etc. you'll get some moved errors, and you will have extra calls.
It has extra overhead in managing, but if you use a good client library, you wouldn't feel it, and you can also save costs using the latest valkey AZ affinity feature which supported by EC, and by valkey-glide client.

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

79322066

Date: 2025-01-01 17:58:08
Score: 1.5
Natty:
Report link

I don't understand why you created a null navigator object , instead of this you can try just use Navigator class like below

Navigator.push(context,MaterialPageRoute( builder: (context) => const Home(),),),

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

79322045

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

You have encountered this error because your directory does not contain package.json file.

You can fix it by running only one command that is npm init. This command will create the required file for you.

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

79322035

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

We were able to resolve this issue by following the suggestion posted in this github link

https://github.com/bjornvester/wsdl2java-gradle-plugin/issues/26 

We forked this code and then compiled using the dependency

Under PluginImpl the import statement was replaced with

NameConverter nc = (NameConverter) context.parent().getModel().getNameConverter();

With the following changes, we published the plugin code to our local repo and use this plugin in cxf-codegen-plugin

I shall commit the code sample shortly for reference

Thanks -Raghavan

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this plugin
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Raghavan

79322029

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

The error was that I use withCredentials as header. But it is property. I set up in index.js this property to true by default

axios.defaults.withCredentials = true;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Vladek

79322028

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

sudo apt update sudo apt install python3-dev build-essential libssl-dev

Works on python 3.13 too

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

79322020

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

As of PyInstaller 6.11.1, one can simply use the --copy-metadata PACKAGE or --recursive-copy-metadata PACKAGE flags to copy package metadata.

Documentation here

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

79322011

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

Use Floyd Warshall Algorithm to claculate distance from all sources to all destinations with distance between each node as 1 . Consider only those pairs where difference is n.

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

79321998

Date: 2025-01-01 17:04:57
Score: 1
Natty:
Report link
body {
  @apply !min-w-full;
}

html {
  @apply overflow-x-hidden;
}

Eventually adding this one in global CSS helped me since it just prevents the horizontal scrolling somehow, I got the issue fixed

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

79321991

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

"from PySide6.QtGui import QAction" fixed the issue. Its not "from PySide6.QtWidgets import QAction".

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

79321987

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

View: Reset all Menus paste in settings>command palette

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

79321978

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

you can use https://www.php.net/manual/en/function.pcntl-fork.php if you want real parallelism

and people hates php because they listen for those who don't know it )

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

79321977

Date: 2025-01-01 16:49:53
Score: 1
Natty:
Report link

The main difference between SharedFlow and StateFlow is how they work with data emission and state management in Kotlin's flow API.

  1. StateFlow is used for holding a single updatable state. It always have a current value, and if you update the value, it replace the old one. StateFlow is like LiveData in Android, it always hold the latest state and emit that when new subscriber come.

  2. SharedFlow is more like a broadcast mechanism. It don't hold any value. It is used to emit event or multiple values to many subscribers. SharedFlow is hot flow, so it keeps running even if there is no collector. And you can config it with replay, buffer size etc.

For example:

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

79321976

Date: 2025-01-01 16:49:53
Score: 2.5
Natty:
Report link

It looks like the reason for this behaviour was telescope. Although IΒ΄m running the script on the command line the memory rises as soon as telescope auto-refresh is active. As soon as I pause the auto-refresh, memory consumption stays at the same level.

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

79321972

Date: 2025-01-01 16:48:53
Score: 0.5
Natty:
Report link

As I mentioned in the comment this is because of aligning its behavior with other query engines like apache spark.

In older versions of Hive:

Behavior in Hive 2.3.9:

References:

There is a workaround to reach the old result? Let me know if you are intrested in hearing that. I will update the answer.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: Ali Saberi

79321964

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

The reuse-db will just skip recreating the tables on the DB, but the records you create within your tests are never actually saved, all tests are run in a transaction, and when the tests end, the transaction is rolled back.

So your table structure/models/migrations will be the same between different test runs, but data will not be kept between runs.

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

79321943

Date: 2025-01-01 16:30:48
Score: 6.5 🚩
Natty:
Report link

Can you post the specific error message.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you post
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you post the
  • Low reputation (1):
Posted by: jleiv01

79321936

Date: 2025-01-01 16:26:47
Score: 1.5
Natty:
Report link

Is it as simple as:

CreateRectRgn(yourLeft, yourTop, yourRight, yourBottom)

and set it to the window by

SetWindowRgn(Handle, RGN, true)

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): Is it as
  • Low reputation (0.5):
Posted by: Livius

79321897

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

activate ssl certificate on your cpanel hosting and domains

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

79321893

Date: 2025-01-01 16:11:44
Score: 0.5
Natty:
Report link

Polls need to be passed using poll keyword argument:

p = discord.Poll(question="idk", duration=timedelta(hours=1.0))
p.add_answer(text="1")
p.add_answer(text="2")
await ctx.send(poll=p)

Reference

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

79321886

Date: 2025-01-01 16:03:42
Score: 2.5
Natty:
Report link

right click the project name -> Maven -> Sync Project

enter image description here

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

79321885

Date: 2025-01-01 16:02:42
Score: 1
Natty:
Report link

You can do this

project tree

root
--user
----models.py

python manage.py shell
from user.models import CustomUser
CustomUser.objects.create_superuser(username="admin", email="[email protected]", password="admin")
quit()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Thermocarst

79321883

Date: 2025-01-01 15:56:40
Score: 7 🚩
Natty:
Report link

When I read my own question, I noticed that the Metadata is empty. What I really want is to get the ContentLength from the header. How do I do this?

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (1):
Posted by: Mark S.

79321863

Date: 2025-01-01 15:43:38
Score: 1.5
Natty:
Report link

The stacking order refers to the order in which elements are painted on the screen along the z-axis. Elements with a higher stacking order are painted on top of elements with a lower stacking order.

According to the stacking order, this issue occurs when the div.relative has a higher stacking order than the div.sticky (the div.sticky appears before the div.relative in html). There is no solution without z-index.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_positioned_layout/Understanding_z-index/Stacking_without_z-index

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

79321859

Date: 2025-01-01 15:39:37
Score: 3
Natty:
Report link

I suspect the reason is that ping is a reserved word on cloudfront

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

79321857

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

I understand the issue that you are facing. Actually your issue didn't content the styles part but, it's fine. I will help you out.

Reason for this was, if text length or text size was increased so while rendering negative text will take next row or go outside the Text component. The solution is use adjustFontSizeTofit & numbersOfline(1) Text component properties for implicitly handling.

Or use can debug using flex:1 , flexShrink :1, textAllign:'center' for Text style

Reasons:
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Low reputation (1):
Posted by: Utkarsh Atre

79321851

Date: 2025-01-01 15:33:36
Score: 1
Natty:
Report link

Can you please check the below code I tried with the sample data it was working

WITH data AS (
  SELECT
    row_num,
    step,
    conversion,
    LN(conversion) AS ln_conversion
  FROM `my_dataset.conversion_table`
)
SELECT
  row_num,
  step,
  conversion,
  -- The exponent of the cumulative sum of ln_conversion is our running product
  EXP(
    SUM(ln_conversion) OVER (
      ORDER BY row_num
      ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
    )
  ) AS total_conversion
FROM data
ORDER BY row_num;

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Can you please
  • Low reputation (0.5):
Posted by: subho

79321847

Date: 2025-01-01 15:32:35
Score: 7 🚩
Natty: 5.5
Report link

Have you got any ideas on that now?

Reasons:
  • Blacklisted phrase (1): any ideas
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Huan Zhao

79321842

Date: 2025-01-01 15:29:33
Score: 10.5
Natty: 7
Report link

I have the exact same problem, did you find the elegant solution?

Reasons:
  • RegEx Blacklisted phrase (3): did you find the
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the exact same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Daniel

79321834

Date: 2025-01-01 15:22:31
Score: 3
Natty:
Report link

From nextjs 15 params are asynchronous. Changelog and the doc.

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

79321830

Date: 2025-01-01 15:19:31
Score: 3
Natty:
Report link

Confirm this approach works :)

It solved the CROS issue yet decouple the internet requirement

https://gist.github.com/gbishop/9803b7ecc50b1930407ef4b98d1ba7c9

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

79321820

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

Removed size_hint_y: None and set explicit height and width using width: root.width * 0.8 and height: root.height * 0.6. Used FloatLayout for precise positioning. The pos_hint is used to ensure that the grid layout is centered both horizontally and vertically on the screen.

The new gridlayout section for scr 1 is below:

                GridLayout:
                    cols: 3
                    rows: 2
                    padding: "10dp"
                    spacing: "10dp"
                    size_hint: None, None  
                    width: root.width * 0.8  
                    height: root.height * 0.6  
                    pos_hint: {"center_x": 0.5, "center_y": 0.5}

Output: enter image description here

Cheers!!!

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

79321818

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

Sveltekit now has an option that allows inlining everything.

"We now have the ability to generate fully self-contained apps with the bundleStrategy: 'inline' option. Together with Vite’s assetsInlineLimit option, it’s possible to put an entire SvelteKit app β€” code, styles, fonts, images, audio and everything else β€” inside a single .html file that you can share with people on a floppy disk."

Announcement: https://svelte.dev/blog/advent-of-svelte#Day-22:-self-contained-apps

Docs: https://svelte.dev/docs/kit/configuration#output

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

79321812

Date: 2025-01-01 15:08:28
Score: 1
Natty:
Report link

Upon receiving receipt of success in the comments:

You are running Selenium with the wrong version of Java. 55.0 requires Java 11 or higher. Either try an older version of Selenium or Java 11+. Edit: For IntelliJ, navigate to Project Structure (Ctrl+Shift+A then search Project Structure) and set the Project SDK to be Java 11+.

This is largely a repost of, but specifies different versions of Java: Compile error "Class file has wrong version 52.0, should be 50.0"

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Java-Enthusiast

79321811

Date: 2025-01-01 15:07:28
Score: 2.5
Natty:
Report link

change the replicate verion in package.json to

"replicate": "^0.33.0"

don't forget npm install to apply the changes

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

79321810

Date: 2025-01-01 15:05:27
Score: 0.5
Natty:
Report link

It appears that the PHP mail command in combination with the postfix MTA will automatically wrap lines that are longer than about 998 characters, as far as I could ascertain. I believe ZF in all version uses mail when using the Sendmail transport.

I am not sure about other MTAs or other transport methods (e.g. SMTP).

While you have more control when wrapping the lines yourself, in certain configurations you do not NEED to wrap lines. It is best to just test this yourself. As others have pointed out, the limit of about 80 characters is just a recommendation.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Arno SchΓ€fer

79321804

Date: 2025-01-01 15:03:27
Score: 1
Natty:
Report link

I implemented similar thing by using laravel-crud-wizard-free coupled with sanctum for authorizing the requests and I did not had this issue. Leave AI out of your coding habit and you will be better.

I suggest you check the laravel https://laravel.com/docs/11.x/sanctum#api-token-authentication documentation on how to use sanctum + make sure each project has its own DB schema.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: marius-ciclistu

79321799

Date: 2025-01-01 15:00:26
Score: 2
Natty:
Report link

You can follow to the docs, maybe you missed one of this lines. Just insert this lines to file: tailwind.config.js: './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php'

refer by this: https://laravel.com/docs/11.x/pagination#tailwind-jit

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: KhΓ‘nh PhαΊ‘m

79321792

Date: 2025-01-01 14:56:25
Score: 1
Natty:
Report link

According to this pylance, The method "dict" in class "BaseModel" is deprecated The `dict` method is deprecated; use `model_dump` instead.Pylance, I used queried_blog.update(blog.model_dump())

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Muyiwa J. Obadara

79321786

Date: 2025-01-01 14:52:24
Score: 2.5
Natty:
Report link

Your app is throwing errors, as shown in the screenshot shared. Please fix them first. Mostly, there are no other issues. I have faced similar issues many times.

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

79321780

Date: 2025-01-01 14:49:23
Score: 1
Natty:
Report link

$data may be a reserved variable in Laravel. For example, I know that the $message is a reserved variable.

Replace $data with something like $content in your Blade template and in your PHP code.

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

79321770

Date: 2025-01-01 14:41:22
Score: 0.5
Natty:
Report link

My problem is solved by downloading the SDK instead of pulling from git.

Looks like git-pulled SDK has this issue some times.

Here is the pointer:

https://github.com/flutter/flutter/issues/122984#issuecomment-1483738042

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

79321765

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

The main issue that you'll have is not the email as an optional field but you will need to override the entire customer login feature, since Magento uses email / password combination to log and check user existance.

The easiest and less painfull way to achieve what you need is using a third party module. There are several vendors that you can find such as Magecomp and their module: https://magecomp.com/magento-2-mobile-login-email-optional.html

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: The Beardy Developer

79321761

Date: 2025-01-01 14:36:20
Score: 1
Natty:
Report link

You might be using the wrong commands or not the correct sequence of commands. Please refer to their sample applications, which are supposed to be working. What are you even messing around with com.felhr.usbserial when there is a X990 SDK?

https://verifone.cloud/docs/in-person-payments/verifone-x990/training-materials-technical-documentation/x990-demo-codes

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Martin Zeitler

79321752

Date: 2025-01-01 14:30:19
Score: 2
Natty:
Report link

It means that a function is an instance of a class named Function.

An instance is a reproduction of a model, a class, that conveys methods and attributes.

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

79321749

Date: 2025-01-01 14:29:19
Score: 1.5
Natty:
Report link
enter code here

NJnsbj Jsnjaja Ajisjssbgsusnsgsuajaahbaua Hshajanabsusjabshsshsjsnshssjsj Sorry rajnish

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

79321747

Date: 2025-01-01 14:28:19
Score: 0.5
Natty:
Report link

Lets come to basic and then compress the gifs, Gifs is a collections of images that run in a certain frame(15fps or 30fps), so if you want to compress a gifs you need to get the all the frame images then compress the images and then combine the images into a certain frame rate, one thing more gifs frame rate is different like in starting it's 15fps and at middle is 30fps and in the end 30fps, so make sure you track the frame rate in each second.

Next question is

  1. how you get the all the images of the gifs? Answer: you can use Gifs Decoder class to get all the images

  2. How you get the frame rate and gifs duration Answer: User Movie class, it's android build-in class for gifs processing. here you get frame rate, gifs duration

  3. How you compress the each image, Answer: After using Gifs Decoder you get images in bitmap you can compress by resize the bitmap their height and width and using this link

  1. now you can compile the images into a gifs using Gif Encoder class
Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Rishabh Gupta

79321745

Date: 2025-01-01 14:26:18
Score: 1
Natty:
Report link

This problem is because some folder names on path flutter/cache/artifacts/engine is generated with x64 suffix and you need change each folder path error to correct path renaming each folder. For example I have executed on one project:

flutter build apk

and get that error:

Target android_aot_release_android-arm failed: ProcessException: Failed to find "/home/jose/flutter/bin/cache/artifacts/engine/android-arm-release/linux-arm64/gen_snapshot" in the search path.

For that I need rename the folder ending with "-x64" to "-arm64" to each error that you found after re-execute the build command.

After correcting each folder you can generate apk and bundle on arm64.

Here show some warnings after corrections but generated the "apk" correct.

Important that here I not using Termux I installed flutter on IOT device with Rockchip RK3588 and Ubuntu 24.04 and published article about that: https://medium.com/@joseph.ferg/flutter-android-development-on-rockchip-rk3588-devices-arm64-aarch64-7055edb5f14a

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (0.5): medium.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hygens Colt

79321744

Date: 2025-01-01 14:26:18
Score: 2
Natty:
Report link

from my view , i thinks the use of import std; may be the problem . If you use #include instead it will work perfectly fine.

for use of import std; latest version of gcc will work ,i think

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

79321738

Date: 2025-01-01 14:18:16
Score: 4.5
Natty: 5
Report link

I have used the "UPI QR Code Payment Gateway" plugin (https://wordpress.org/plugins/upi-qr-code-payment-gateway/), and it works on localhost.

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

79321735

Date: 2025-01-01 14:17:15
Score: 5.5
Natty: 5
Report link

I have the exact same problem. Unfortunately, you don't detail the solution well enough for me to use it.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the exact same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: AMP59

79321724

Date: 2025-01-01 14:08:13
Score: 3.5
Natty:
Report link

I’m OBALOLUWA ChainPro, a Full-Stack Blockchain Professional with expertise across all blockchain categories, from development to consulting and marketing. I specialize in delivering tailored solutions to bring innovative blockchain ideas to life.

If you have any current or future blockchain projects, I’d be excited to collaborate and help achieve your goals. Let’s discuss how I can add value to your vision.

Looking forward to hearing from you.

Best regards, OBALOLUWA ChainPro

Here’s my telegram username πŸ‘‡ πŸ‘‡ πŸ‘‡ @obatoken001

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @obatoken001
  • Low reputation (1):
Posted by: Jimoh Mujeeb

79321723

Date: 2025-01-01 14:08:12
Score: 6 🚩
Natty: 4
Report link

Do you have the final answer? It seems unclear where BN layer should be placed, especialy the order of BN and Pooling is confused to me. I found few work about it.

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have the
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Leeha Laner

79321710

Date: 2025-01-01 14:02:11
Score: 2
Natty:
Report link

I was having the same issue tried all the about settings for couple of hours but no luck, finally i deleted the config.php file in the bootstrap/cache directory and it worked. This file is created when we run the artisan command

php artisan config:cache

Reasons:
  • Blacklisted phrase (1): no luck
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sohail anjum

79321705

Date: 2025-01-01 13:55:10
Score: 0.5
Natty:
Report link

You can still use bootstrap.yml with SpringBoot 3.X.X

You need to use following dependency

implementation('org.springframework.cloud:spring-cloud-starter-bootstrap')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: rakeeee

79321704

Date: 2025-01-01 13:55:10
Score: 1.5
Natty:
Report link

The reason why the weight modifier cannot be used in the definition of ActionButton is because it can only be used in scope of a column or row, thus it can't be used in a function because Compose doesn't "know" for sure whether the buttons will always be in or out of the column scope. You can find out by hovering your cursor over each use of Modifier.weight in your code.
Consider the following example (a simplified version of your ActionButton definition):

Button(
   onClick = { ... },
   modifier = modifier
      .fillMaxWidth()
      .weight(0.5f) // <-- not in a column
) { ... } 

Here Android Studio will highlight an error, and when you hover over the use of Modifier.weight you should see the suggestion β€œCreate extension function androidx.compose.ui.Modifier.weight”. In contrast, in this case:

Column(
   horizontalAlignment = Alignment.CenterHorizontally,
   modifier = Modifier
      .fillMaxSize()
) {
   Button(modifier = Modifier.weight(1f))
}

There is no problem with using the weight modifier as we're operating in the column scope. You can make sure of that by hovering your cursor over the usage of Modifier.weight - you will see androidx.compose.foundation.layout.ColumnScope.

Now that we've clarified what the column scope is all about - how do we actually solve this problem? We can't just move the column "context" to the ActionButton definition, right?

Of course we can.

The nice and simple way to ensure a specific size of elements in a column (even if they're wrapped in another function) is to add another parameter to the function definition, like this:

@Composable
fun ActionButton(buttonText: String, modifier: Modifier)

(PS: notice I've also changed the signature of buttonText as local variables shouldn't start with uppercase letters, it's typical for classes - best practice for the future :))

We also need to replace the original Modifier in the function body with the new one:

Button(
   onClick = { ... },
   modifier = modifier // <-- not "Modifier"
      .fillMaxWidth()
      .padding(18.dp)
) {
   Text(buttonText)
}

As you may have guessed, to pass the weight information to the single ActionButton we will just put it as an argument:

actionButtonsValues.forEach {
   ActionButton(
       buttonText = it.buttonText,
       modifier = Modifier.weight(1f)
   )
}

This way, you can not only set all buttons to equal size, but also add a weight field to ActionButtonData and make some buttons bigger than the others. You can find more about it here.

Reasons:
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Proteus

79321701

Date: 2025-01-01 13:54:10
Score: 1.5
Natty:
Report link

just commented the executable path now it used the default puppeteer browser, which is fine for me

executablePath: process.env.CHROMIUM_PATH || "/snap/bin/chromium",
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Noriz

79321686

Date: 2025-01-01 13:48:07
Score: 4
Natty:
Report link

I am also having the same issue, is there an answer on the above? it should be completely a client problem.

how to fix this issue "Turns out (in this case) it was a weird share permissions issue. The reboot caused a redirection of the user's HOME folder to remap to a share on the network. Because the machine hadn't been restarted when the policy was put in place, it hadn't taken effect until reboot.

This in itself was harmless, but there was an issue with the permissions on the share that hosted the network home folders, which caused the user to not have write privileges to their own home directories.

This was made apparent later, since the activity of attempting to create a new query window didn't error with a meaningful "can't create file xyz" type error."

if it is the problem

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am also having the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Garox Lee

79321683

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

For me, I had one key whose value is pretty long so Vscode broke a line to fit it all and this apparently isn't acceptable. So make sure none of your variables are too long/breaking a line.

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

79321681

Date: 2025-01-01 13:43:06
Score: 1.5
Natty:
Report link

Speaking purely technically, no, this is not supported in Swift.

If you do really want to achieve this, you can approach it in the following way:

Read Only

var content: String {
    return m.content
}

Read/Write

var content: String {
    get {
        return m.content
    }
    set {
        m.content = newValue
    }
}

All of this though, should have you asking, do you really NEED to do this? Does this really give you anything that just accessing m.content directly wouldn’t already give you?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Brandon Stillitano

79321667

Date: 2025-01-01 13:28:03
Score: 3
Natty:
Report link

sounds like you are on the same course as me. Or they are using the same workbook. Stuck on the same question.

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

79321656

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

A little change with the help @MrC aka Shaun Curtis Applying the get and @bind-Value:set triggered the events

<SfTextBox @bind-value:get=@Value
       @bind-value:set=@SetValue
       Placeholder=@Placeholder
       Enabled=@IsEnabled
       [email protected]
       CssClass="" />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @MrC
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ahmad Salim

79321655

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

Try to login user with google and look he has a mail or this field is empty (user.mail)?

And hide your secret keys, like this:

project tree

root
--config
----settings.py 
.env

first you need pip install python-dotenv

root/config/settings.py

import os
from dotenv import load_dotenv
    

load_dotenv()

SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = os.environ.get("GOOGLE_KEY")
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = os.environ.get("GOOGLE_SECRET")

.env it's file name is required, you can put it in root dir or other place you like (in .env not necessary to put quotation marks like GOOGLE_KEY="YOUR_KEY")

.env

GOOGLE_KEY=YOUR_KEY
GOOGLE_SECRET=YOUR_SECRET
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Thermocarst

79321653

Date: 2025-01-01 13:18:01
Score: 1
Natty:
Report link

Before you trying to delete the Child, you must to delete all entities related to him (SubChild), because of the SubChild holds the Child by REFERENCES (SQL) in Your SubChild class:

@ManyToOne
@JoinColumn(name = "CHILD_ID")
@EqualsAndHashCode.Exclude
private Child child;

So, when you going to remove the Child, remove firstly the all SubChild related to him and after it, remove the Child entity better to do this under @Transactional

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Transactional
  • Low reputation (0.5):
Posted by: Reuven Eliezer

79321652

Date: 2025-01-01 13:18:01
Score: 0.5
Natty:
Report link

Use react-pdftotext, works better. This will give you the texts, then you can just create an excel sheet in your application and pass the data their via other npm packages.

Good thing would be doing this to the backend if possible. Works better.

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

79321650

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

In JSON, by default, numbers are not enclosed in quotes, so if you haven't added quotes yourself, they won't be in the normalized string.

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

79321646

Date: 2025-01-01 13:13:00
Score: 3.5
Natty:
Report link

Dont mind guys, i just put my script not to camera but my character, so it was moving side to side

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Π¨Π΅Π»ΡƒΡ…ΠΈΠ½ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½

79321643

Date: 2025-01-01 13:08:59
Score: 1.5
Natty:
Report link

A single user_id can be associated with multiple traffic_sources. This is because the traffic_source represents the first touchpoint for each user_pseudo_id, not the user_id. The user_id is manually configured to track sessions across different devices, which can Not affect the values in built-in fields. However, you can create stitched_ids using SQL.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ali izadi

79321637

Date: 2025-01-01 13:05:59
Score: 2
Natty:
Report link

You can work with prop underlineStyle

underlineStyle={{display: 'none'}}

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

79321631

Date: 2025-01-01 12:59:57
Score: 3.5
Natty:
Report link

you just need to do this:

  1. Download Minikube:

    curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

  2. Install Minikube:

    sudo install minikube-linux-amd64 /usr/local/bin/minikube

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

79321626

Date: 2025-01-01 12:57:57
Score: 2.5
Natty:
Report link

Every file, written to run over a web browser is a child of window object, so we can implement that with or without window ad that is why all window properties are accessible globally.

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

79321622

Date: 2025-01-01 12:57:57
Score: 3
Natty:
Report link

react-intersection-observer solved my issue

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
Posted by: Shakil- The Coding monster

79321621

Date: 2025-01-01 12:57:57
Score: 2
Natty:
Report link

I know this is an old post, but still wanted to add my additional comments, for others like me that came looking for a solution.

I have had this issue of seemingly randomly expanding regions and non-regioned Subs/Functions for YEARS now...

Unfortunately, to this day, there still is NO solution or fix.

It happens randomly when Pasting/Cutting/Deleting code lines/blocks, which causes Visual Studio to re-evaluate the entire code, "solving problems" with how the code is displayed, thus resulting in the collapsed code blocks expanding.

I have just created another Microsoft Developer Community Issue Report about this issue. I hope this time Microsoft will take it more seriously, because it is really impacting my ability to finish projects....

Here is the link to the issue report: https://developercommunity.visualstudio.com/t/Collapsed-regions-keep-randomly-expandin/10821359

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

79321611

Date: 2025-01-01 12:50:55
Score: 1
Natty:
Report link

Introduction

I had a hard time finding a good answer on how to add a favicon to a JSP-based web application. Many answers on Stack Overflow solve the problem but lack explanation or steps (not to mention incorrect ones). As software engineers, it’s crucial to understand the why before the how. This is why i wrote this answer


Answer

1. Where Should I Place Static Resources Like Favicons?

The location for static resources (e.g., images, CSS, JavaScript) depends on your project structure:

Within these folders, you can create subdirectories for better organization. For example:

src/main/webapp/favicons/

For a deeper explanation, see this excellent answer by Sanjeev.


2. How to Link Resources in JSP?

Rule of Thumb: Always use paths relative to the application context to ensure your links work correctly, regardless of the deployment environment.

<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico">

This ensures the link adjusts dynamically to deployment paths. For example:

For more on this, see this answer by no.good.at.coding.


3. Addressing Browser Caching Issues

Browsers cache static resources aggressively, including favicons. If you update the favicon, users may still see the old one. To force the browser to reload the updated favicon, append a query parameter like ?v=1 to the URL:

<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico?v=1">

When you update the favicon, simply change the version:

<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico?v=2">

Why Does This Work? The browser treats URLs with different query parameters as unique resources.

Since the cache distinguishes resources from one another based on their URLs, the cache will not be reused again if the URL changes when a resource is updated.

source: this MDN article.

For further reading, see this answer by Mark.


4. Generating Favicons for Multiple Devices

To support various devices and resolutions, use a tool like RealFaviconGenerator. It generates a set of favicon files for different devices and screen sizes. Place these files in a folder like /favicons/ within your web root.

Example Directory Structure

src/
└── main/
    └── webapp/
        β”œβ”€β”€ favicons/
        β”‚   β”œβ”€β”€ apple-touch-icon.png
        β”‚   β”œβ”€β”€ favicon-96x96.png
        β”‚   β”œβ”€β”€ favicon.ico
        β”‚   β”œβ”€β”€ favicon.svg
        β”‚   β”œβ”€β”€ site.webmanifest
        β”‚   β”œβ”€β”€ web-app-manifest-192x192.png
        β”‚   └── web-app-manifest-512x512.png
        β”œβ”€β”€ index.jsp
        └── WEB-INF/
            └── web.xml

Linking Favicons in JSP

Include the following in the <head> section of your JSP file:

<!-- Generated by https://realfavicongenerator.net/ -->
<link rel="icon" type="image/png" href="${pageContext.request.contextPath}/favicons/favicon-96x96.png?v=1" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="${pageContext.request.contextPath}/favicons/favicon.svg?v=1" />
<link rel="shortcut icon" href="${pageContext.request.contextPath}/favicons/favicon.ico?v=1" />
<link rel="apple-touch-icon" sizes="180x180" href="${pageContext.request.contextPath}/favicons/apple-touch-icon.png?v=1" />
<meta name="apple-mobile-web-app-title" content="BrowserSnitch" />
<link rel="manifest" href="${pageContext.request.contextPath}/favicons/site.webmanifest" />

Conclusion

To successfully add a favicon to your JSP-based web application:

  1. Place the favicon in your project's webapp or WebContent folder.
  2. Use ${pageContext.request.contextPath} for dynamic linking to resources.
  3. Append a query parameter (?v=1) to handle caching issues.
  4. Use tools like RealFaviconGenerator for multi-device support.
Reasons:
  • Blacklisted phrase (1.5): Where Should I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: 0xamine

79321608

Date: 2025-01-01 12:45:54
Score: 1
Natty:
Report link

After further reflection, I realized that the poor performance of the adaptive Kalman filter based on maximum likelihood estimation (MLE) is fundamentally due to two key reasons:

Window Length Issue:

1.If the window length is too small, it becomes impossible to estimate the covariance matrices accurately.

2.Even with a large window length, the algorithm is prone to divergence.

3.In the early stages, when data is insufficient, once the algorithm starts diverging, it becomes irrecoverable later on, even with a large window length.

Observation Data Fluctuation:

The inherent fluctuations in the observation data can significantly affect the estimation of the noise covariance matrices, leading to instability.

Proposed Solution A better approach would be to:

1.Set a larger window length to improve the accuracy of covariance estimation.

2.In the early stages, when data is limited, set the noise covariance matrices as constants based on empirical knowledge.

3.However, this solution increases computational overhead.

This is my understanding and proposed solution to the issue I previously encountered.

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

79321602

Date: 2025-01-01 12:42:53
Score: 1
Natty:
Report link

Just do a truncated selection sort?

In QB64PE BASIC (just because we can) B-) ...

For i = 1 to m
    For j = i to Ubound(array)
        If array(j) < array(i) Then Swap array(j), array(i)
    Next j
Next i

You now have the smallest m items from array() in the first m positions.

I just implemented this in QB64PE (again, because why not?) to find the 10 smallest elements from an array of 27,100 integers, and it took just on 1 microsecond on an M3Max MBP.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Chris Cole

79321600

Date: 2025-01-01 12:41:52
Score: 5.5
Natty:
Report link

You can get approval only if you have enough text based article in it. Google needs more text in it. Just keeping only image will not be appreciated by AdSense. Even i am struggling to get approval for my blog were i write at least 1000 words per article. Here is my blog for reference : Evocode

So concentrate on adding more text and quality content.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): i am struggling
  • RegEx Blacklisted phrase (2): Even i am
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aravindh P

79321586

Date: 2025-01-01 12:30:50
Score: 2
Natty:
Report link

After taking a look at the code in ImageDataGenerator, the alternative I could come up is to use image-preprocessing layers and image-augmentation layers. the old ImageDataGenerator:

`train_datagen = ImageDataGenerator(
         rotation_range=40,# rotate the image 40 degrees
         width_shift_range=0.2, # Shift the pic width by a max of 10%
         height_shift_range=0.2, # Shift the pic height by a max of 10%
         rescale=1./255, # Rescale the image by normalzing it.
         shear_range=0.2, # Shear means cutting away part of the image (max 20%)
         zoom_range=0.2, # Zoom in by 10% max
         horizontal_flip=True) # Allow horizontal flipping`

the alternative by image-preprocessing layers and image-augmentation layers:

from keras.models import Sequential
from keras.layers import Rescaling, RandomFlip, RandomRotation, RandomTranslation, RandomZoom
from keras.layers import Flatten, Dense

train_datagen = Sequential()
train_datagen.add(Rescaling(1./255)) # Rescale the image by normalzing it.
train_datagen.add(RandomFlip(mode='horizontal')) # Allow horizontal flipping
train_datagen.add(RandomTranslation(0.2, 0.2)) # Shift the pic width and height by a max of 10%
train_datagen.add(RandomRotation(1./9)) # [-1.* 2*pi/18 radian, 1. * 2*pi/18 radian]
train_datagen.add(RandomZoom(0.2)) # Zoom in by 10% max

However, the missing part is RandomShear which I have no clue how to implement and the example of random_shear from tf.keras.preprocessing.image as seen here seems to be deprecated. Any better suggestion would be appreciated. REF: https://www.atmosera.com/blog/data-augmentation/

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (2): Any better suggestion
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wisarut Bholsithi

79321582

Date: 2025-01-01 12:29:50
Score: 0.5
Natty:
Report link

property ICollection

 CreateMap<Entities.City, Models.CityDto>().ForMember(dest => dest.PointsOfInterest, input => input.MapFrom(x => x.PointOfInterest));



CreateMap<Entities.PointOfInterest, Models.PointOfInterestDto>();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: soheil0910

79321581

Date: 2025-01-01 12:28:50
Score: 1.5
Natty:
Report link

Composition API version of the code provided by @ben-winding.

<template>
    <canvas ref="can" width="200" height="200"></canvas>
</template>

<script setup>
import { useTemplateRef, onMounted } from "vue";
import { fabric } from "fabric";

const can = useTemplateRef("can")

onMounted(() => {
    const canvas = new fabric.Canvas(can.value)
    const rect = new fabric.Rect({
        fill: 'red',
        width: 20,
        height: 20
    });
    canvas.add(rect);
})
</script>
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @ben-winding
  • Low reputation (1):
Posted by: holy-jesus

79321579

Date: 2025-01-01 12:26:49
Score: 2.5
Natty:
Report link

Apart from other answers I have an easy solution if your code is not proprietary.

I use online debugger to debug c++ code for programming problems it shows all stl values by default.

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

79321573

Date: 2025-01-01 12:23:48
Score: 1.5
Natty:
Report link

You just need to fix your 'for' loop condition

use for (int j = 0; j < 26; j++)

instead for (int j = 0; j < 25; j++)

your code is incorrect because it doesn't check 'z' letter

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

79321568

Date: 2025-01-01 12:21:47
Score: 11 🚩
Natty: 6.5
Report link

i have same issue - any solution ?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution ?
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): i have same issue
  • Ends in question mark (2):
  • Single line (0.5):
Posted by: Adil Saiyad

79321555

Date: 2025-01-01 12:12:45
Score: 2.5
Natty:
Report link

@Priti roy's solution worked for me. The only difference is, I'm using Bitbucket. In the last step (step 3), replace <user_name> with <project_name>, i.e., git remote set-url origin [email protected]:<project_name>/repo.git

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Priti
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: ewang

79321550

Date: 2025-01-01 12:06:44
Score: 2
Natty:
Report link

This worked fiine for me. emulator -avd <AVD_NAME> -gpu swiftshader_indirect

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Muhammed Sibly B

79321547

Date: 2025-01-01 12:04:43
Score: 1.5
Natty:
Report link

On page 373 of William Stallings' Computer Organization and Architecture, there is a proof. It is important to note that when it says, "The two values must be equal," there is an issue with the sign in the third line where it shows negative two raised to the power of n minus one; it should be positive, not negative. The sum from the third line to the fourth line is the sum of a geometric series.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shao Kahn

79321542

Date: 2025-01-01 12:00:42
Score: 5
Natty: 4
Report link

Ethan, this protocol works fine on my system with Gnuplot 6.0 except that pop up windows are built with white characters over a pale gray background. Thus, the text is not fully visible ! I can change the font size easily but not its color nor the background color. I have watched a lot on the net without finding an answer. Do you know a set of commands to remedy to that unfortunate situation. Happy new year. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Do you know a
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: P. Daegelen

79321541

Date: 2025-01-01 12:00:42
Score: 2
Natty:
Report link

If you add Internet permission to Manifest after running the app, you can delete the app from your device or emulator. Then you can run the app. Because the first time we run the app, it gets the permissions and then it doesn't get the permissions. I solve this problem with this way.

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

79321539

Date: 2025-01-01 11:56:41
Score: 1.5
Natty:
Report link

I am not sure what you want to define in line below but syntax is not correct.

var 1..N_ROUNDS: RoundOfMatch [m in 1..N_MATCHES];

I guess you want to define an array of variables. In such case you should use something like this

array[1..N_MATCHES] of var 1..N_ROUNDS: RoundOfMatch;

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

79321537

Date: 2025-01-01 11:55:40
Score: 4.5
Natty:
Report link

I've been fighting with KVM and virt-viewer 11.0-3build2 all day trying to get the displays to behave in some logical fashion. I'm on Ubuntu MATE 24.04.1 LTS, virt-manager 4.1.0-3 using QXL and spice-vdagent is running. No matter what I do, changing the VM window with the mouse causes the display to simply scale. I find ironic that Windows 11 in a VM under the same instance of KVM works seamlessly for resizing the VM window with the mouse; the displayed desktop of the VM window just grows and shrinks as you would expect, with the open windows keeping a constant size. Argh! If they can figure this out for Windows, why can't they get it right for Linux!?

For others who may face the same problem, the solution I've adopted is to just turn off Auto-resize, and inside the VM used Prefences-> Displays to adjust the window to the size I want. My two monitors have different resolutions, so the font is not the same size on both monitors, but good enough.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): face the same problem
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: guyr

79321528

Date: 2025-01-01 11:48:37
Score: 11 🚩
Natty: 6.5
Report link

Thank you for the code snippet!

We are encountering the following warning on our self-hosted agent: Warning: Requested platforms linux/amd64 do not match result platforms linux/amd64,linux/arm64

Environment Details:

Agent OS Type: Linux x86_64 Could you please help us understand the cause of this warning and how to resolve it?

Thank you in advance for your assistance!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (3): Could you please help us
  • RegEx Blacklisted phrase (3): Thank you in advance
  • RegEx Blacklisted phrase (1.5): how to resolve it?
  • RegEx Blacklisted phrase (1): help us
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kartik Hegde

79321526

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

signup.js:12

POST http://localhost:5000/signup net::ERR_CONNECTION_REFUSED signup.js:19 Error: AxiosError {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {…}, request: XMLHttpRequest, …} signup.js:12

POST http://localhost:5000/signup net::ERR_CONNECTION_REFUSED handleSubmit @ signup.js:12 ο»Ώ

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

79321514

Date: 2025-01-01 11:31:34
Score: 0.5
Natty:
Report link

before I start with my answer I have a couple of questions:

  1. filter(id == id)

    You are suggesting that both dataframes have a common field id, however the first_data and second_data do not share such an id! Why is that?

  2. You are using the Jaro-Winkler similarity with a max distance of 0.5. That value is way too low to match names successfully. Let me explain why:

Jaro-Winkler Similiarity Score

out

Let's take an example from your dataset:

> 1-stringdist('Ivan Sabe','Ivan Sabel',method='jw')
[1] 0.9666667
> 1-stringdist('Ivan Sabel','Jame Labes',method='jw')
[1] 0.6666667

As you can see, Ivan Sabel would be matched with James Labes, even though their names are wildly different, just because they have common characters and common name lengths! So using 0.5 is way too low! I would suggest, using 0.9 or even higher

Answer code

Is there a solution using duckdb and arrow to do this simultaneous fuzzy and exact join?

Yes! You can use this code, which matches both data_frames first based on the id f.id = s.another_id or the Jaro-Winkler Similiratiy between both fullnames above 0.95:

library(duckdb)
library(arrow)
library(dplyr)

first_data<- structure(list(user_id = c(441391106, 441514065, 442060539, 442158489, 
                                        438197192, 438206034, 438689594, 438881971, 440386286, 440479235
), fullname = c("Siva Kumar", "Ivan Sabe", "James Bigler", "Arthur Stephens", 
                "guy guy", "Rick Schlieper", "Tony Klemencic", "baiyu xu", "Michael Fritts", 
                "Daniel Wolf Roemele"), f_prob = c(0, 1, 0.005, 0.006, 0.005, 
                                                   0.002, 0.011, 0.389, 0.005, 0.004), m_prob = c(1, 0, 0.995, 0.994, 
                                                                                                  0.995, 0.998, 0.989, 0.611, 0.995, 0.996), white_prob = c(0.021, 
                                                                                                                                                            0.001, 0.994, 0.792, 0.547, 0.949, 0.948, 0.001, 0.995, 0.795
                                                                                                  ), black_prob = c(0.013, 0.003, 0.001, 0.198, 0.398, 0.004, 0.003, 
                                                                                                                    0.001, 0.001, 0.097), api_prob = c(0.904, 0.991, 0, 0, 0.001, 
                                                                                                                                                       0.002, 0.003, 0.994, 0.001, 0.061), hispanic_prob = c(0.005, 
                                                                                                                                                                                                             0.001, 0.001, 0.002, 0, 0.001, 0.039, 0.001, 0, 0.012), native_prob = c(0.006, 
                                                                                                                                                                                                                                                                                     0.002, 0, 0, 0, 0.005, 0, 0, 0, 0.003), multiple_prob = c(0.051, 
                                                                                                                                                                                                                                                                                                                                               0.002, 0.004, 0.008, 0.054, 0.039, 0.007, 0.003, 0.003, 0.032
                                                                                                                                                                                                                                                                                     ), degree = c("", "", "Bachelor", "", "", "Master", "Associate", 
                                                                                                                                                                                                                                                                                                   "", "", ""), other_id = c(1212616, 1212616, 1212616, 1212616, 1212991, 
                                                                                                                                                                                                                                                                                                                             1212991, 1212991, 1212991, 1212991, 1212991), id = c(62399, 
                                                                                                                                                                                                                                                                                                                                                                                  62399, 62399, 62399, 63907, 63907, 63907, 63907, 63907, 63907
                                                                                                                                                                                                                                                                                                                             )), row.names = c(NA, 10L), class = "data.frame")

second_data<- structure(list(gvkey = c(12825, 12945, 12945, 12945, 16456, 16456, 
                                       16456, 12136, 12136, 17254), another_id = c(7879, 8587, 18070, 40634, 
                                                                                   13142, 17440, 41322, 899, 27199, 26604), fname = c("Gerald", 
                                                                                                                                      "John", "Dean", "Todd", "Thomas", "Ivan", "Vinit", "Scott", "Jonathan", 
                                                                                                                                      "William"), mname = c("B.", "L.", "A.", "P.", "F.", "R.", 
                                                                                                                                                            "K.", "G.", "I.", "Jensen"), lname = c("Shreiber", "Nussbaum", 
                                                                                                                                                                                                   "Foate", "Kelsey", "Kirk", "Sabel, CPO", "Asar", "McNealy", "Schwartz", 
                                                                                                                                                                                                   "Gedwed"), companyname = c(NA, "Plexus Corp.", "Plexus Corp.", 
                                                                                                                                                                                                                              NA, NA, NA, NA, "Oracle America, Inc.", "Oracle America, Inc.", 
                                                                                                                                                                                                                              NA), fullname = c("Gerald Shreiber", "John Nussbaum", 
                                                                                                                                                                                                                                                "Dean Foate", "Todd Kelsey", "Thomas Kirk", "Ivan Sabel", "Vinit Asar", 
                                                                                                                                                                                                                                                "Scott McNealy", "Jonathan Schwartz", "William Gedwed")), row.names = c(NA, 
                                                                                                                                                                                                                                                                                                                        -10L), class = c("tbl_df", "tbl", "data.frame"))


# use JaroWinkler in DuckDb
con <- dbConnect(duckdb())
dbWriteTable(con, "first_data", first_data)
dbWriteTable(con, "second_data", second_data)
query <- "
SELECT 
    f.*, s.*,
    jaro_similarity(lower(f.fullname), lower(s.fullname)) as name_distance
FROM first_data f
JOIN second_data s ON 
f.id = s.another_id
OR (
    jaro_similarity(lower(f.fullname), lower(s.fullname)) >= 0.95 
)"

result <- dbGetQuery(con, query) 
dbDisconnect(con, shutdown = TRUE)
Reasons:
  • Blacklisted phrase (3): Is there a solution
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: G-Man