79320007

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

When you call df2.cache(), Spark begins to cache the result of the DataFrame df2, but the action to materialize this cache is still delayed until the action is executed.

The transformation pipeline is executed two times when the df2.cache() call is made and df2.show() is executed.

The correct order of executions is below: Make changes in your code:

df2.count() #Transformations will be materialized
df2.cache()
df2.show() # Now it fetches from the cached data
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Srinimf

79319994

Date: 2024-12-31 12:49:17
Score: 2.5
Natty:
Report link

Fetching dynamic site using Google Sheets

Following discussions like this and related Stackoverflow posts like this Google Sheets seems to be lacking the capability of fetching sites that uses dynamic data. Also, the site that you are trying to access may also be implementing ways to avoid web scrapers from accessing their data. I tried scraping it using Apps Script but it gave almost the same data as you are getting (seen from the screenshot you provided).

Output Using Apps Script output

You can check this SO post for possible ways to scrape a dynamic website like the one you are trying to.

References: Unable to Get Website Data using =importxml ImportHTML table but values are missing How to scrape dynamic content from a website?

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: 4thAnd1

79319990

Date: 2024-12-31 12:47:16
Score: 1
Natty:
Report link

I just had the same issue.

enter image description here

I was lacking the role, and then I was assigned the Global Administrator role. After that, I had to sign out and sign back in. It asked me to update my password, and then it worked.

enter image description here

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

79319987

Date: 2024-12-31 12:47:16
Score: 3.5
Natty:
Report link

For Using PrimeNg 16 version and its components Follow this Link

PrimeNg 16

Reasons:
  • Blacklisted phrase (1): this Link
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: M Ali Imtiaz

79319973

Date: 2024-12-31 12:35:14
Score: 1.5
Natty:
Report link

Thank You ! It helped me debug and finde the issue. I did as @Justinas said:

try:
  httprequest = Request(base_url + end_point, data=postdata, method="POST", headers=headers)
  with urlopen(httprequest) as response:
    responddata = json.loads(response.read().decode())
  AccessToken = responddata['AccessToken']
  ServerId = responddata['ServerId']
  UserId = responddata['User']['Id']
except:
  AccessToken = "null"
  ServerId = "null"
  UserId = "null"

return {"ak_proxy": {"user_attributes": {"additionalHeaders": {"X-Emby-Token": AccessToken, "X-Emby-ServerId": ServerId, "X-Emby-UserId": UserId}}}}

I seperated each output and the issue was with the Value of ID. JSON Data is an array and the value if ID is part of User.

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Justinas
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Asem Khen

79319972

Date: 2024-12-31 12:35:14
Score: 3
Natty:
Report link

Try to use example code from this article https://datascrape.tech/blog/scriptable-and-headless-wb/

There are two code examples, Selenium and Playwrite, that both use proxies. Also, doublecheck that your proxy is working using cURL

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: greggyNapalm

79319963

Date: 2024-12-31 12:30:13
Score: 1.5
Natty:
Report link

I assume to modify the request and process 3rd party payload, you need something like https://openresty.org/en/ to write the logic in Lua.

If you just need to auth in incoming request in reverence proxy - ther is nginx module for that https://nginx.org/en/docs/http/ngx_http_auth_request_module.html

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

79319961

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

destruct <term> replaces all occurrences of <term> with a constructor applied to its arguments (which are generated as variables in the context), with one goal per constructor. With an evar, you can choose which constructor should be applied by doing the instantiation yourself, e.g. with instantiate (p := (?[p1], ?[p2])).

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

79319956

Date: 2024-12-31 12:27:12
Score: 2.5
Natty:
Report link

The error indicates that an invalid value (1) was assigned to the module_procurement_jit setting, likely due to a misconfiguration or missing module.

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

79319954

Date: 2024-12-31 12:25:12
Score: 3
Natty:
Report link

Just user LostFocus of the text box because after scanning the barcode with barcode reader lostfocus of the text box called automatically and can be handled very easily.

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

79319953

Date: 2024-12-31 12:25:12
Score: 2
Natty:
Report link

Try to take a look at the HTTP reply headers; there should be a redirect with the target address. With high probability, the Upstream - the Jenkins generating these links and including its original address, which is 8888 port. You can repeat the test with and w/o a reverse proxy and compare the header value.

If it's true - try to find "main" URL in the Jenkins settings.

Reasons:
  • Blacklisted phrase (1): these links
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: greggyNapalm

79319950

Date: 2024-12-31 12:24:12
Score: 1
Natty:
Report link

First of all, you need to localize the root cause:

  1. Does the download speed(or throughput) change over time and is lower than usual for the problematic sites/pages? Try to download test data samples in parallel from the other domain. And add Mbit/s metric to monitor the target sites. It will help you to find out if the target sites limiting you or not. If so - try to spread the data flow among unique IPs. The basic principles can be found here datascrape.tech/blog/pyramid-of-efficient-scraping

2.Double-check the pages/URLs queue size. It might be that you have local maximums of URLs number and this causes the problem, not the network throughput.

  1. Double-check that you haven't reached your VPCs throughput maximum. Haven't checked that recently, but usually throughput(network speed) depends on the disk size and is limited by default for the VPCs.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: greggyNapalm

79319945

Date: 2024-12-31 12:22:11
Score: 2
Natty:
Report link

What exact risk has your penetration test highlighted? If both front and back authentification and authorize your users the right way - it's not clear to me why direct access to the front is good and direct access to the back is not.

Solutions that have been mentioned in the previous answer, like AntiDDOS, Application layer Firewall, AntiBot scoring, etc, are useful. But have to put them before the front and back.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: greggyNapalm

79319941

Date: 2024-12-31 12:20:11
Score: 0.5
Natty:
Report link

I had to restart my machine along with deleting the folder(s) like the main answer mentions

Folders to delete for Windows:

Folder to delete for Mac:

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

79319939

Date: 2024-12-31 12:20:11
Score: 1
Natty:
Report link

Do cmd+shift+P on mac or ctrl+shift+P on windows, and type >enable copilot. This will toggle the option (Enables if already disabled and vice-versa).

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Sandeep Amarnath

79319932

Date: 2024-12-31 12:15:10
Score: 1.5
Natty:
Report link

Get.changeTheme requires a daily !

Get.changeTheme(currentThemeData);

await Future<void>.delayed(const Duration(milliseconds: 500));
await Get.forceAppUpdate();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohammad Bagher Fakouri

79319931

Date: 2024-12-31 12:13:09
Score: 1.5
Natty:
Report link

I want connet my django project with postgresql and I face this problem could not translate host name "postgres.railway.internal

DATABASES = { 'default': {

    'ENGINE': 'django.db.backends.postgresql',

    'NAME': 'railway',

    'USER': 'postgres',

    'PASSWORD': 'DthcDHERJBIMhRhPkifnnrevSozYGRTE',

    'HOST': 'postgres.railway.internal',

    'PORT': '5432',
}

this is my postgresql database setup on my setting

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

79319922

Date: 2024-12-31 12:08:08
Score: 2.5
Natty:
Report link

To use Admin API, please enable the below setting as well for service principal 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: Nandan

79319916

Date: 2024-12-31 12:05:08
Score: 3.5
Natty:
Report link

this might have been caused by any DEPRECATED imports in the app.module that can be identified by running "ng serve --prod" which will show the error .

https://stackoverflow.com/questions/60264933 this is the similar issue.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user29001979

79319914

Date: 2024-12-31 12:04:07
Score: 4
Natty:
Report link

For future reference, this was answered in an mlr3extralearners issue

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

79319913

Date: 2024-12-31 12:04:06
Score: 9.5 🚩
Natty:
Report link

Fase 1: Validar y descartar problemas con el perfil del usuario Crear un perfil de prueba en el mismo dispositivo: Configurar un perfil de prueba con los mismos permisos y política DLP. Intentar reproducir el problema. Resultado esperado: Si el problema no se presenta en el nuevo perfil, el perfil del usuario original podría estar corrupto. Regenerar el perfil del usuario afectado:Copia de seguridad de los datos del usuario. Eliminar el perfil en el dispositivo y forzar su recreación al iniciar sesión. Fase 2: Validar el cliente DLP en el dispositivo Reiniciar servicios relacionados con DLP:

Ejecutar: powershell Copiar código Restart-Service -Name "DlpSvc" Resultado esperado: Forzar la aplicación correcta de la política en el cliente. Borrar caché del cliente DLP:

Ubicación: %LOCALAPPDATA%\Microsoft\DLP. Eliminar los archivos y reiniciar el dispositivo. Actualizar componentes DLP:

Asegurarse de que el cliente de Microsoft Defender for Endpoint esté actualizado: powershell Copiar código MpCmdRun.exe -SignatureUpdate Fase 3: Validar y sincronizar políticas con Intune Sincronizar políticas desde Intune:

Desde el dispositivo, ejecutar: powershell Copiar código Start-ScheduledTask -TaskName "Sync Policy Task" Eliminar y volver a registrar el dispositivo en Intune:

Desde el portal de Intune, desvincular el dispositivo afectado. En el dispositivo, ejecutar: powershell Copiar código dsregcmd /leave Luego, registrar nuevamente el dispositivo. Verificar la política en Intune:

Confirmar que la política DLP asignada no tiene conflictos o exclusiones superpuestas. Asegurarse de que esté asignada correctamente al grupo del usuario. Fase 4: Análisis de registros y comportamiento Registros del cliente DLP:

Habilitar registros detallados: powershell Copiar código Set-MpPreference -EnableControlledFolderAccessAudit 1 Reproducir el problema y revisar los registros en: shell Copiar código %PROGRAMDATA%\Microsoft\Windows Defender\DlpLogs Visor de eventos:

Revisar eventos específicos en: Copiar código Aplicación y Servicios Logs/Microsoft/Windows/DLP/Operational Fase 5: Soluciones provisionales Transferencia alternativa:

Permitir temporalmente que el usuario utilice un medio seguro, como OneDrive empresarial, para las transferencias. Exclusión temporal de la política DLP:

Excluir al usuario o dispositivo de la política para confirmar si esta es la causa raíz. 3. Ejecución y Validación Implementar las acciones descritas en las fases anteriores paso a paso. Documentar los resultados de cada paso y las observaciones. Validar si el problema persiste tras cada cambio. 4. Escalación (si el problema persiste) Si el problema no se resuelve tras aplicar todos los pasos:

Escalar a Microsoft Support con: Detalles del entorno. Registros recopilados (Visor de eventos y DLP Logs). Políticas de Intune aplicadas al dispositivo. Herramientas y Comandos Clave Sincronización de políticas: powershell Copiar código Start-ScheduledTask -TaskName "Sync Policy Task" Borrar caché DLP: shell Copiar código %LOCALAPPDATA%\Microsoft\DLP Verificar servicios DLP: powershell Copiar código Restart-Service -Name "DlpSvc" Registros detallados: powershell Copiar código Set-MpPreference -EnableControlledFolderAccessAudit 1

Reasons:
  • Blacklisted phrase (2): código
  • Blacklisted phrase (2.5): Solucion
  • Blacklisted phrase (2): Crear
  • RegEx Blacklisted phrase (2.5): mismo
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: KEVIN VASALLO SUAREZ

79319912

Date: 2024-12-31 12:04:06
Score: 2
Natty:
Report link

There is one for java based micro service builder https://ec2-13-60-96-234.eu-north-1.compute.amazonaws.com/microservice

Here you just fill up the form and your project is ready to download. I thought it will helpfull for you in case working with java

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

79319909

Date: 2024-12-31 12:03:05
Score: 9.5 🚩
Natty: 5.5
Report link

I have the same issue. Any solutions? Issue is that our company security scanners scans all possible URLs of APIM. Even the ones which not exist. We also have alerts enabled, so whenever security scan is done we receive alerts that smth is down.

Reasons:
  • Blacklisted phrase (1.5): Any solution
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (2): Any solutions?
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Aurimas Tutinas

79319908

Date: 2024-12-31 12:03:05
Score: 0.5
Natty:
Report link

A workaround, if you have Firebase 9.x, is removing "ABSL_CONST_INIT " in that line of code. Modify that line to:

extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited = Settings::CacheSizeUnlimited;

Save the file and build again

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sebastián de Prada Gato

79319904

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

maybe a little late, but I think the following entries need to be added to tailwind.config.js to take all pages into account:

"./resources/**/*.js", "./resources/**/*.vue"

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

79319901

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

You can add RobolectricTestRunner to make it run within Android.

@RunWith(RobolectricTestRunner.class)
@Config(sdk = Config.NEWEST_SDK)
public class TestClass {
  // Tests
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: nvdk

79319882

Date: 2024-12-31 11:52:01
Score: 3
Natty:
Report link

Okay I got a tip from r/cloudflare that if you enable Strict SSL, it would work. And it did. No idea why, but posting here if someone has the same problem.

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

79319876

Date: 2024-12-31 11:51:01
Score: 4.5
Natty:
Report link

As @dacort mentioned, The memory shown in the Spark UI is different than the memory allocated for the executor, it's the memory available for storage (a fraction of the total memory). See https://stackoverflow.com/a/47014697/5141922

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @dacort
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Roobal Jindal

79319863

Date: 2024-12-31 11:43:59
Score: 1
Natty:
Report link

For wildcard LetsEncrypt TLS certs, you need to use dnsChallenge and specify main/sans (doc):

tls:
  certResolver: myresolver
  domains:
    - main: "example.com"
      sans:
        - "*.example.org"

I recommend to set TLS globally on entrypoint (example).

Traefik and LetsEncrypt will recognize that the Host() domains are included in the wildcard and will not create separate certs.

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: bluepuma77

79319861

Date: 2024-12-31 11:41:58
Score: 5
Natty: 5
Report link

Component ChildComponent is standalone, and cannot be declared in an NgModule. Did you mean to import it instead?

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

79319852

Date: 2024-12-31 11:33:56
Score: 0.5
Natty:
Report link

Many times, we face similar error when declaring custom variables.

Example:

struct ContentView: View {
  var body: some View {
    header
  }

  var header: some View {
    Image("someimage")
    Text("Hello")
  }
}

Solution: We can use @ViewBuilder. This macro creates the content as closer and hence avoid us to give this error.

struct ContentView: View {
  var body: some View {
    header
  }

  @ViewBuilder
  var header: some View {
    Image("someimage")
    Text("Hello")
  }
}

PS: When we are searching for same error in search engine it is taking us to this solution so added this another case to help others.

Reasons:
  • Whitelisted phrase (-2): Solution:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): face similar error
  • User mentioned (1): @ViewBuilder
Posted by: Rajat Jain

79319845

Date: 2024-12-31 11:29:55
Score: 2.5
Natty:
Report link

In can also be caused by the way how it is interpreted OR condition. Have you tried to log the performed query?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: artiomi

79319827

Date: 2024-12-31 11:22:54
Score: 1.5
Natty:
Report link

Via the Stack Exchange API:

Here's a Python implementation, which uses StackAPI:

from stackapi import StackAPI
from datetime import datetime
from dateutil.relativedelta import relativedelta

year = (datetime.now() - relativedelta(years=1)).timestamp()

SITE = StackAPI('stackoverflow', key = '') # add your key

# fill user ids
user1 = 0
user2 = 0

# fetch all posts by user1 and user2 in the last year
posts = SITE.fetch(
    'users/{ids}/posts',
    ids=[user1, user2],
    filter='!*Ju*n-1rscDl8QtK',
    fromdate=round(year)
)
ids = [item['post_id'] for item in posts['items']]

# fetch the reputation history of user1 and user2
history = SITE.fetch('users/{ids}/reputation-history', ids=[user1,user2])
total1 = sum(item['reputation_change'] for item in history['items'] if item['post_id'] in ids and item['user_id'] == user1)
total2 = sum(item['reputation_change'] for item in history['items'] if item['post_id'] in ids and item['user_id'] == user2)
print(total1)
print(total2)

Make sure to register your application in order to obtain a key.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (1.5): reputation
  • RegEx Blacklisted phrase (1.5): the reputation
  • Long answer (-1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: double-beep

79319825

Date: 2024-12-31 11:21:53
Score: 1
Natty:
Report link

std::string is itself a type, simply defining an array of it will work.

std::string strArray[5] = {""}; // Initialize each using empty string.
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PkDrew

79319816

Date: 2024-12-31 11:20:53
Score: 3.5
Natty:
Report link

yt-dlp --quiet --no-warnings --get-filename --no-simulate $url

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

79319805

Date: 2024-12-31 11:16:51
Score: 2.5
Natty:
Report link

If you type Shift+J with a Farsi keyboard, it will insert:
ـ
If you type it after ی, it will appear like یـ

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

79319803

Date: 2024-12-31 11:15:51
Score: 1
Natty:
Report link

for me (using spring boot version- 2.5.8) this worked- spring.data.rest.max-page-size=2147483647 not spring.data.web.max-page-size

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Md.Habibur Rahman

79319800

Date: 2024-12-31 11:13:51
Score: 2
Natty:
Report link

I assume that this is experimental - where you have control of both ends of the exchange yourself, rather than trying to actually use an emulator in place of a smart phone for communicating WITH OTHERS via SMS. Because numerous other sources say that the latter simply isn't possible, due to how the data is transferred: through cell systems, not over "the internet" per se.

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

79319796

Date: 2024-12-31 11:10:50
Score: 3
Natty:
Report link

Very simple, enter in address bar in google chrome: https://gitlab.bluhbluhbluh.com/api/v4/groups/a_name_of_your_group

Then, you can search id of all projects in the selected group.

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

79319790

Date: 2024-12-31 11:08:50
Score: 3.5
Natty:
Report link

Have you seen the top answer for this similar question? https://stackoverflow.com/a/70766323/23314369

You will need some fileIO and permissions to write to external storage and this above answer seems to cover both. Happy New Year :)

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: ProblemOverflow97

79319789

Date: 2024-12-31 11:07:49
Score: 1
Natty:
Report link

I feel daft, but I dont see how the code helps you resume from where an error/exception is thrown. I have a similiar issue with a script that takes days to execute, and thus can get stuck or "die" for various reasons. I need it to resume where it stopped without me intervening. My current go-to-solution is saving pickle files and reopening them, but not sure it is the most efficient one.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nanaki

79319785

Date: 2024-12-31 11:05:49
Score: 2.5
Natty:
Report link

For now using expect(page.locator).toMatchAriaSnapshot() method is possible only in scope of Playwright Test runner since the matcher checks testInfo and takes a snapshot dir path from there:

https://github.com/microsoft/playwright/blob/main/packages/playwright/src/matchers/toMatchAriaSnapshot.ts

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

79319783

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

After struggling for days, I discovered that this is a known issue on Windows specifically for the SageMaker Python SDK.

You can find more details and track the progress of the fix here: resolve infinite loop in _find_config on Windows systems

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

79319781

Date: 2024-12-31 11:03:48
Score: 1.5
Natty:
Report link

After struggling for days, I discovered that this is a known issue on Windows specifically for the SageMaker Python SDK.

You can find more details and track the progress of the fix here: resolve infinite loop in _find_config on Windows systems

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

79319777

Date: 2024-12-31 11:03:48
Score: 1.5
Natty:
Report link

After struggling for days, I discovered that this is a known issue on Windows specifically for the SageMaker Python SDK.

You can find more details and track the progress of the fix here: resolve infinite loop in _find_config on Windows systems

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

79319776

Date: 2024-12-31 11:03:48
Score: 2
Natty:
Report link

The typical workflow would be to launch your application through the RenderDoc UI, check if the module (dll/so) is loaded, and use the in-application API if it is available, but this is not strictly necessary. You should be able to just preload the relevant module, verify it is open in your app in the same way, and use the API that way without going through the UI.

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

79319773

Date: 2024-12-31 11:01:47
Score: 4
Natty:
Report link

you can just create a middleware

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

79319769

Date: 2024-12-31 10:59:47
Score: 1.5
Natty:
Report link

The best solutions';

wp_trim_words(get_the_excerpt(), 15, '...');
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ashnet

79319768

Date: 2024-12-31 10:58:46
Score: 3.5
Natty:
Report link

I didn't encounter this error in the q version either

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

79319766

Date: 2024-12-31 10:56:45
Score: 8.5 🚩
Natty: 5.5
Report link

i have it too please help me for my life

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me
  • RegEx Blacklisted phrase (1): i have it too please
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Khai Phan Van

79319751

Date: 2024-12-31 10:44:42
Score: 2
Natty:
Report link

During the first call, since x is not defined, the else block is executed. In the else block, x is declared as a global variable. During the second call, since x was defined in the else block during the first call, the condition evaluates to true.

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

79319747

Date: 2024-12-31 10:42:42
Score: 3
Natty:
Report link

I suggest you to shift to PostgreSQL or another SQL database, if you are planning to scale up in the future.

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

79319742

Date: 2024-12-31 10:40:41
Score: 0.5
Natty:
Report link

The problem isn't with your rotation logic - it's with the assumption that you're dealing with ARGB data.

If you're getting the buffer from the camera (which I suspect you are), it's actually in YUV format, not ARGB. That's why vImageRotate90_ARGB8888 crashes - you're telling it to rotate data in a format that doesn't match what's actually in memory.

There are two ways to fix this:

  1. If you're dealing with camera buffers (YUV format):
  1. For everything else:

The real gotcha here is that camera buffers are almost always YUV, not ARGB. Once you handle the planes correctly, the rotation works fine.

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

79319739

Date: 2024-12-31 10:38:41
Score: 1.5
Natty:
Report link

Thanks to skink's answer I could go through different articles about smart and dumb components. Actually what I was looking for relies in BehaviorSubject of RxJS: by creating an additional service, we can notify the DataComponent that an action was performed, without worrying about that it is far away from the relation parent-child. Not sure about the over-using of this approach, but in my case it seems to work fine.

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

79319729

Date: 2024-12-31 10:31:39
Score: 1
Natty:
Report link

(Unsure where should I put this but wanted to list potential actionable solutions can be done other than already listed by other answers)

...given that each thread called it with its own arguments and no threads are relying on anything global or shared. When I used 4 threads, the time for some reason went up from 315 sec to 710 seconds, and when I used 8 threads, the time went up to 1400 seconds, even though each thread is doing exactly the same work that the one thread without multithreading was doing, and was taking 315 seconds to complete. So, what the hell??

Answer: Most likely you are observing contention in glibc malloc with heavy usage of malloc and there two possible options to achieve fix it.

A. Use Mimalloc instead of GNU Libc's malloc

Mimalloc is a general purpose allocator library with great benchmark result. It consistently outperform GNU Libc's performance in various benchmark performed by mimalloc[1]

Requirement: Willing to use mimalloc as dependency of your program/library/project

Reason: Don't have internal point of contentions[2] so any contention observed disappear under mimalloc and you should observe the performance you're looking for.

Application: Mimalloc can replace your malloc and free function dynamically[3] through LD_PRELOAD case of your glibc based system[4] or statically linking Mimalloc[5]

B. Object pools

A pattern inspired from Java which the idea is reusing existing allocated objects so as to avoid overhead of creating and destroying them.

Which when to C mean keeping list of existing allocated instances of objects to be reused later avoiding overhead of lots of malloc/free for short lived objects

Requirement: Your program has lots of short lived object, most of short lived object is the same size and type and preferably have clear point where you can deallocate whole pool (e.g. before returning calculation result)

Reason: Minimize the time taken spent in malloc/free by reusing previous instance of same object which just recently free'd by current thread as written in your question that those threads share nothing


Footnotes

[1] https://github.com/microsoft/mimalloc/blob/master/readme.md?plain=1#L61 (Permanent link at the time of writing)

[2] https://github.com/microsoft/mimalloc/blob/master/readme.md?plain=1#L58 (Permanent link at the time of writing)

[3] https://github.com/microsoft/mimalloc/blob/master/readme.md?plain=1#L391 (Permanent link at the time of writing)

[4] https://www.gnu.org/software/libc/manual/html_node/Replacing-malloc.html (Archived link at the time of writing in case of its gone)

[5] https://github.com/microsoft/mimalloc/blob/master/readme.md?plain=1#L474 (Permanent link at the time of writing)

This line probably shouldn't be here: this is my first time I try write detailed answers

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: Foxie Flakey

79319725

Date: 2024-12-31 10:28:38
Score: 5.5
Natty: 6.5
Report link

I wrote a code.

What I want is that the page content appears in the same place in all browsers

and appear.

I want there to be no distortion even at all zoom ratios, how can I adapt this to wordpress?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Aybike İclal Yılmaz

79319706

Date: 2024-12-31 10:16:35
Score: 5.5
Natty: 7
Report link

thank you very much, it help me a lot

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): help me
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mohsin Khan

79319698

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

ahdgwai7hdgJAKDBAJKUHSIQOvfyuqwgrqbfjkasudAKBFUKAWHFIEFHawuiOWJAEGIFA JABFUWIQDGKWQJHEOIW WDWJQDGIWQHDQWHIORUFCNIVEsakjbwdwudwwdqui3giq3wgri23ihri32;2hr23ruh23r32ur32 h3 r23r 43tg43 ue 3ih c38o22 c r3 r 23ih 2r32 2ihe ouwc 2i wekwfwejkbewbew

efew wfwef wef we 3w

r 43f 4 r3 rf 23 23r 32r23 r32

32 f 23f 23re3 f wef ew few f 3 g ewf ewf weVRJTHSABDJFASFNWEUIGFOwbf seofwakjfjAWKJFAWHFawkjFVJKAWFL BWHAWQ UKE W;D q bej q

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: WWEIOW 'KL J W

79319694

Date: 2024-12-31 10:09:33
Score: 4.5
Natty: 5.5
Report link

tranks i was struggling with this really really thank you

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vasco

79319687

Date: 2024-12-31 10:07:32
Score: 2.5
Natty:
Report link

Thanks for the suggestions. In the end, I moved away from the idea of configuring my own logging, and instead just used print statements and fetch the logs from Cloudwatch right before the function exits.

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

79319681

Date: 2024-12-31 10:06:32
Score: 1
Natty:
Report link
"merge-plugin": {
    "include": [
        "Modules/*/composer.json"
    ]
}

Manually need to add the above code in composer.json file. After we run the command composer dump-autoload

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

79319679

Date: 2024-12-31 10:05:31
Score: 0.5
Natty:
Report link

In my case, the problem was solved by manually calling the garbage collector using gc.collect() after the with block.

I believe this does not agree with the multiprocessing documentation. There, it is suggested that a context manager is sufficient to properly handle the resources and that we should not rely on the garbage collector to do it.

Warning

multiprocessing.pool objects have internal resources that need to be properly 
managed (like any other resource) by using the pool as a context manager or by
 calling close() and terminate() manually. Failure to do this can lead to the
 process hanging on finalization.

Note that it is not correct to rely on the garbage collector to destroy the
 pool as CPython does not assure that the finalizer of the pool will be called
 (see object.__del__() for more information).
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Stefanos Anagnostou

79319676

Date: 2024-12-31 10:04:31
Score: 2.5
Natty:
Report link

The problem of this post is solved. Thanks to @shingo and @Polynormial. The list has two reference of the anim instance, and the IndexOf returns the first one.

I think I know what may caused the situation after all. It's a reference I didn't cleaned up before releasing into the pool, and that dirty reference was at the index of 1 in the list. So after releasing it into the pool and getting it out, then adding it again at index of 29, the one at index 1 still exists.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • User mentioned (1): @shingo
  • User mentioned (0): @Polynormial
  • Self-answer (0.5):
Posted by: ArtS

79319671

Date: 2024-12-31 10:01:30
Score: 1.5
Natty:
Report link

you can use htmlrunner for run any type of html,css and js code online and also here are a features you can see output in a new tab.

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

79319668

Date: 2024-12-31 10:00:30
Score: 2
Natty:
Report link

Add this line in your /android/app/build.gradle file:

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

then run: npx react-native link react-native-vector-icons npx react-native run-android

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

79319661

Date: 2024-12-31 09:56:28
Score: 2
Natty:
Report link

Dissolve is working when I try it, it finishes in a few seconds:

import geopandas as gpd
df = gpd.read_file(r"C:\Users\bera\Downloads\TM_WORLD_BORDERS-0.3.shp")
df.plot(column="NAME")

enter image description here

df2 = df.dissolve()
df2.plot()

enter image description here

There are some invalid geometries that might cause problems for you? Try fixing them:

#df.geometry.is_valid.all()
#np.False_

#Four geometries are invalid
df.loc[~df.geometry.is_valid]
#     FIPS ISO2  ...     LAT                                           geometry
# 23    CA   CA  ...  59.081  MULTIPOLYGON (((-65.61362 43.42027, -65.61972 ...
# 32    CI   CL  ... -23.389  MULTIPOLYGON (((-67.21278 -55.89362, -67.24695...
# 154   NO   NO  ...  61.152  MULTIPOLYGON (((8.74361 58.40972, 8.73194 58.4...
# 174   RS   RU  ...  61.988  MULTIPOLYGON (((131.87329 42.95694, 131.82413 ...
# [4 rows x 12 columns]


df.geometry = df.geometry.make_valid()
#df.geometry.is_valid.all()
#np.True_
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Bera

79319658

Date: 2024-12-31 09:55:28
Score: 2
Natty:
Report link

Thank you so much for your clear answer. Im starting to understand now (I think :-)).

If im correct the only thing I need to do is change the 'payment_id' with my Mollie ID? Do I need to include the code "// For other payment gateways than Mollie" ? Because im not using any other payment gateway. I think it will look like this?

    // Utility function: Get the custom order status by product category
function get_custom_order_status_by_cat( $order, $status = false ) {
    // Loop through order items
    foreach ( $order->get_items() as $item ) {      
        $product_id = $item->get_product_id(); // Get product ID

        if ( has_term( 'met-gravure', 'product_cat', $product_id ) ) {
            $status = 'ord-maatwerk'; // Aangepaste status
            break;
        } elseif ( has_term( 'moedermelk', 'product_cat', $product_id ) ) {
            $status = 'ord-moedermelk'; // Aangepaste status
            break;
        } elseif ( has_term( 'last-minute-gepersonaliseerd-juweel', 'product_cat', $product_id ) ) {
            $status = 'ord-lastminute'; // Aangepaste status
            break;
        }
    }
    return $status;
}


// For Mollie Payments
add_filter( 'woocommerce_payment_complete_order_status', 'update_order_status_by_category_for_mollie', 10, 3 );
function update_order_status_by_category_for_mollie(  $status, $order_id, $order  ){
    // HERE bellow, define Mollie payment method ID
    $targeted_payment_id = '*******';

    $custom_status = get_custom_order_status_by_cat( $order ); // Get custom order status
    
    // If a custom order status is found and if it's a Mollie payment
    if ( $custom_status && $order->get_payment_method() === $targeted_payment_id ) { 
        return $custom_status;
    }
    return $status;
}

Again thank you so much!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Marco

79319655

Date: 2024-12-31 09:50:27
Score: 1.5
Natty:
Report link

Workaround fix to this would be to ... just remove the aria-hidden="true" from your span - that way the error will not appear.

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

79319653

Date: 2024-12-31 09:49:26
Score: 4
Natty:
Report link

Check out ShixxNOTE 7.net network enabled desktop sticky notes program. www.shixxnote.com

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

79319652

Date: 2024-12-31 09:49:26
Score: 2
Natty:
Report link

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. You can visit https://www.udemynote.com/notion/16d15d47-52e7-8095-9d40-dcdeea64c0af to see detail

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

79319651

Date: 2024-12-31 09:49:26
Score: 2
Natty:
Report link

تنظیم دقت محاسباتی mpmath.mp.dps = 2000

تعریف عدد گنگ پایه

a = mpmath.mpf('3.840375671501416')

تابع LaMega

def la_mega(n): result = a for _ in range(n): result = mpmath.power(10, result * a) return result

محاسبه LaMega برای n = 0, 1, 2, 3

for i in range(4): print(f"LaMega({i}):", la_mega(i)) \end{verbatim}

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

79319627

Date: 2024-12-31 09:36:23
Score: 1.5
Natty:
Report link

You can import ESM modules (including pure ESM modules, like `p-limit), in CommonJS.

The reason this does not work in a TypeScript module, is because the TypeScript compiler converts the import() to a require(). The asynchronous import(), also called dynamic import, is requried to load an ESM module.

The following code will load an ESM module in a CommonJS project:

The load-esm library performs the import operation outside the scope of the TypeScript compiler, avoiding the import being transpiled to require().

There are several methods to workaround this problem.

import {loadEsm} from 'load-esm';
(async () => {
const esmModule = await loadEsm('esm-module');
})();

To incude the types of the project, you need to make the following changes:

import {loadEsm} from 'load-esm';
(async () => {
const esmModule = await loadEsm<typeof import('esm-module')>('esm-module');
})();

This answer is based on:

An alternative approach is wrapping the import() in an eval(), yet that has some disadventages, see: Why is using the JavaScript eval function a bad idea?

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

79319625

Date: 2024-12-31 09:33:22
Score: 0.5
Natty:
Report link

I found what was causing the issue for me on Bazzite. I had a keybind to change keyboard layout set to alt+shift (by default), and it prevented that keybind from being used anywhere else.

The keybind does not reside in the normal keyboard settings, instead you have to find it in gnome-tweaks (in my case it the app that launched gnome-tweaks was called "extra settings").

In there, go to "keyboard" -> "additional layout options".

There will be a setting "Switching to another layout", and if it is modified, it will be shown in bold. You have to unset it or set to a different keybind to make alt+shift work in other apps like VSCode. If you unset it, the default layout switch keys in linux is alt+space.

Unfortunately I don't think there is a way to both have layout switching and VSCode use alt+shift at the same time.

For screenshots of where to find this setting take a look at this - https://askubuntu.com/a/967493. My system is not on english so my screenshots would be confusing.

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

79319621

Date: 2024-12-31 09:31:21
Score: 7.5 🚩
Natty:
Report link

Propuesta para Java Swing Tips.

Hola, es un placer saludarte.

Te escribo porque sería interesante comentar contigo la opción de que Java Swing Tips posicione en los primeros lugares de internet y que aparezca cada mes como noticia en cientos de periódicos digitales, con artículos reales dentro del periódico que no se marcan como publicidad y que no se borran.

Estas noticias se publicarán en más de cuarenta periódicos de gran autoridad para mejorar el posicionamiento de tu web y la reputación.

¿Podrías facilitarme un teléfono para aplicarte un mes gratuito?

Muchas gracias.

Reasons:
  • Blacklisted phrase (1): ¿
  • Blacklisted phrase (2): gracias
  • Blacklisted phrase (1): porque
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Marina

79319619

Date: 2024-12-31 09:31:21
Score: 0.5
Natty:
Report link

Simply add a configuration to angular.json :

“configurations": {
...
    “dev-with-css": {
        “optimization": false,
        “extractLicenses": false,
        “sourceMap": true,
        “outputHashing": ‘none’,
        “budgets": []
    }
}

And run: ng serve --configuration dev-with-css

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

79319604

Date: 2024-12-31 09:26:20
Score: 2.5
Natty:
Report link

RestAssured is also available in .NET. You can use that. See https://github.com/basdijkstra/rest-assured-net

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: akshat narang

79319598

Date: 2024-12-31 09:22:19
Score: 2
Natty:
Report link

I just tested this. https://claude.ai/new?q={PLACE_HOLDER}, it works.

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

79319595

Date: 2024-12-31 09:17:18
Score: 0.5
Natty:
Report link

I’m not entirely sure this belongs as an answer here, but I did encounter the same “PermissionError” before I found the following workaround.

While submitting jobs from an HPC login node at my institution, I discovered the PermissionError came from a parent directory many levels higher than my working directory — one whose permissions I couldn’t modify. My workaround was to switch to a different login node and submit the exact same job.

This problem of the original login node throwing up PermissionError seems temporary and should be fixed once the HPC finds out about it.

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

79319594

Date: 2024-12-31 09:17:18
Score: 2
Natty:
Report link

This file structure comes from ratatui: since it's a framework, not just a library, it dictates the file/project structure to stick to (obviously, I understand that I can deviate from it, but not an expert enough to think that "I know better").

Ratatui maintainer here. You're smart enough to deviate. Feel free. My feelings won't be hurt.

Libs and Cli tools in the same crate can be a pain. In particular it's difficult to have dependencies which are just for the cli which you don't want to be included in the lib. You can feature flag them and make them optional, but this is suboptimal for cli tool installation using cargo (as it means that you need to specify feature flags all the time).

The best available approach (at the time of writing end of 2024) is to release two crates my-game and my-game-cli.

See also How can I specify binary-only dependencies?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Joshka

79319572

Date: 2024-12-31 09:04:11
Score: 5.5
Natty: 4.5
Report link

Does anyone know of any way to convert a simple GIF to XAML? E.G. A tool that would look at an image and create ellipses, rectangles, and paths based upon a GIF / JPG / bitmap? This reminds me of a time when I was working on a project that required transitioning a static logo from a JPG to vector format for better scalability and customization. The process was similar to what you're asking about—turning an image into shapes that can be manipulated in design software. While XAML conversions might be more niche, tools like Adobe Illustrator or Inkscape can convert raster images into vector graphics, which could then be adapted into XAML paths with some tweaking. It’s a fascinating intersection of design and development!

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: EmbPunch

79319566

Date: 2024-12-31 09:02:11
Score: 0.5
Natty:
Report link

In ratatui 0.30.0 (coming early 2025), we'll introduce a ratatui-core crate, which should be more stable and see version bumps rarely. This should solve this for most situations.

There's quite a few places where this sort of thing has come up in widget libs. This particular problem is caused by the fact that >=23 really means the largest available version that matches >=24 (i.e. 24). It does not mean any version which is also compatible with all other versions that are in the dependency tree.

Solving this more generally - if a lib wants to support multiple versions like this (0.23 and 0.24), then it's best to add a feature flag per version. You'll see this in a few different crates when there's a major breaking change (e.g. axum springs to mind as one lib where this happens). This wouldn't generally be a good idea for Ratatui libs however as we've been happy to regularly release breaking releases (and hence bump semver to indicate that). As mentioned about that will change soon.

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

79319562

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

You can clear all menu items in the opening event:

toolStripDropDownButton1.DropDownItems.Clear();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Viorel

79319560

Date: 2024-12-31 08:58:10
Score: 1
Natty:
Report link

Depends on you use case, I have struggle too, because I work with highly inheritance architecture and it's incredibly annoying to implement all methods of interface to all children. (I'm creating event based simulation similar to Anylogic)

The only working solution I was thinking is creating python style architecture, where everything is map[string]interface{} and create classes and function in functional way to work with that interface.. and when thinking more about it this way probably fixes my rust struggles with same problem.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Erik Palenčík

79319553

Date: 2024-12-31 08:57:10
Score: 0.5
Natty:
Report link

OK I already found the solution.

Since NeoForge 21.4.x items' models are searched in directory /assets/<mod_id>/items. So, I had to create two files in this directory for my two items respectively like this:

.
└── assets
    └── utilz
        └── items
            ├── target_clear_stick.json
            └── target_stick.json

and reference the actual models from them.

target_stick.json:

{
  "model": {
    "type": "minecraft:model",
    "model": "utilz:item/target_stick"
  }
}

target_clear_stick.json:

{
  "model": {
    "type": "minecraft:model",
    "model": "utilz:item/target_clear_stick"
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: who is this bro xd

79319552

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

in classes, you have a few extra features that allow you to have more performance than the object method:

  1. inheritance: Each instance of Dog shares the same constructor and bark() method. It only references that to a certain place in the memory. BUT in the object method, you declare the method and variables within the loop all over again, reducing performance.
  2. caching: methods and everything you construct in classes is cached, no matter how many times you initialize the class (new Dog();) it will only declare for once and will be referred to the cached value or method, unless your class uses a dynamic value for the constructor. but in objects, you are redeclaring the methods 1000000 times. but it's declared once in class

these are the main concepts that classes are faster in this scenario

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

79319546

Date: 2024-12-31 08:53:08
Score: 0.5
Natty:
Report link

The easiest way to make this work is to render the TUI to stderr instead of stdout (see the backend methods which accept a writer e.g. https://docs.rs/ratatui/latest/ratatui/backend/struct.CrosstermBackend.html#method.new). The second easiest is to write explicitly to the tty device instead of stdin / stdout. E.g. open the /dev/tty file and use that as the writer. (Notably, the Termwiz backend uses the tty by default IIRC).

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

79319542

Date: 2024-12-31 08:50:08
Score: 1
Natty:
Report link

this is one of those case where I started with a perfectly good setup but since it was not working I fiddled around loosing track

basically the app is listening on 8080 and at first I tried

docker run -p 8080:80 omp-ssp-api

instead of

docker run -p 80:8080 omp-ssp-api
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: pf12345678910

79319536

Date: 2024-12-31 08:48:07
Score: 3
Natty:
Report link

You may use a gunicorn to launch the flask app. That solves the memory leak problem that I used to encountered.

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

79319530

Date: 2024-12-31 08:45:06
Score: 2
Natty:
Report link

if you are rendering with ssr or ssg, the component in app would be server component .when we pass server component to client component the server component renders on server and along with placeholder in client component is sent to client where further rendering takes place.

if you are rendering with csr entire render process takes place on client

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

79319529

Date: 2024-12-31 08:44:06
Score: 3.5
Natty:
Report link

The problem was that although the document libraries were in the same site, even visually placed next to each other, one list had a path similar to this: https://blabla.sharepoint.com/sites/SiteName/Lists/ListName/Forms/AllItems.aspx and the other had a path: https://blabla.sharepoint.com/sites/SiteName/ListName/Forms/AllItems.aspx And because I was using the same path to access both libraries, this error occurred

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

79319526

Date: 2024-12-31 08:43:06
Score: 1
Natty:
Report link

The dependency exclusion approach, for Gradle, in Kotlin DSL (*.gradle.kts):

configurations.all { exclude(group = "org.slf4j", module = "slf4j-log4j12") }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: YektaDev

79319522

Date: 2024-12-31 08:41:04
Score: 6 🚩
Natty: 5.5
Report link

Have you get answer or still not i have same issue but i have 114 pages

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nasser R

79319513

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

To enable it go to gradle.propreties and find this line

org.gradle.caching

and make it to true, like that you can build more faster

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

79319505

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

route list

I got this problem when I started serving static files directly from nginx. It went away when I removed JS from being served by NGINX and send it to PHP.

The Livewire files are served via a dynamic route. These are not located in the folder structure in those specific paths. So it is better to let Laravel/Filament handle these files.

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

79319504

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

You can create a Setting without using transaction.on_commit. This ensures that if the main transaction fails, the entire transaction, including all records created in signals and within the save method of your model, is rolled back.

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

79319501

Date: 2024-12-31 08:32:01
Score: 2
Natty:
Report link
  1. If you have installed C# Dev Kit (extension) by Microsoft, then uninstall it.

  2. Left click on C# (extension) by Microsoft and select settings. enter image description here

  3. Then type this on the search bar appearing on C# extension's settings.

    @ext:ms-dotnettools.csharp omnisharp Search bar

  4. Then select the following option. Use Omnisharp

  5. Now reload the window or reopen the VS Code if necessary.

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

79319492

Date: 2024-12-31 08:25:00
Score: 1
Natty:
Report link

In 2024, you can use structuredClone, majorly for arrays and objects. It provides a deep clone of the given value. For shallow copy you can use the above answer given by @xynon - https://stackoverflow.com/a/60460458/11410210, which I would suggest to use as per requirement.

structuredClone example usage:

const originalArray = [1, 2, 3];
const newArray = structuredClone(originalArray);
newArray.push(4);

console.log('originalArray', originalArray); // [1, 2, 3]
console.log('newArray', newArray); // [1, 2, 3, 4]

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1.5): you can use
  • Has code block (-0.5):
  • User mentioned (1): @xynon
  • Low reputation (1):
Posted by: Vishakha

79319487

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

The JSON input text should neither be null nor empty

This error is generated because the response body is empty. I just simulated the request you are using and I only see response headers (not a JSON response body), check the input parameters, such that a JSON response is received. enter image description here

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

79319485

Date: 2024-12-31 08:18:59
Score: 2
Natty:
Report link

you are right i have a circular reference but it's normal because my CDM is like that : enter image description here

i will have 2 methods GetPublishers and GetBooks. When i will have the result for GetPublishers, i wanted to have this

    [
  {
    "PublisherId": 1,
    "PublisherName": "NamePublisher1",
    "BookPublisher": [
      {
        "BookPublisherId": 1,
        "BookId": 1,
        "PublisherId": 1,
        "Book": {
          "BookId": 1,
          "BookName": "TEST1",
        }
      },
      {
        "BookPublisherId": 2,
        "BookId": 2,
        "PublisherId": 1,
        "Book": {
          "BookId": 2,
          "BookName": "TEST2",
        }
      },
    ]
  }
]

and when i want the result of GetBooks, the result have to be this

[
  {
    "BookId": 1,
    "BookName": "TEST1",
    "BookPublisher": [
      {
        "BookPublisherId": 1,
        "BookId": 1,
        "PublisherId": 1,
        "Publisher": {
          "PublisherId": 1,
          "PublisherName": "NamePublisher1",
        }
      }
    ]
  },
  {
    "BookId": 2,
    "BookName": "TEST2",
    "BookPublisher": [
      {
        "BookPublisherId": 2,
        "BookId": 2,
        "PublisherId": 1,
        "Publisher": {
          "PublisherId": 1,
          "PublisherName": "NamePublisher1",
        }
      }
    ]
  }
]

So my class define before are ok and on the methode "OnModelCreating" i don't put relation.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Newbie_thefirst

79319481

Date: 2024-12-31 08:17:58
Score: 2
Natty:
Report link

This is just a version issue...I did

!pip install torch==1.4 torchvision==0.14.1

and it seems to work fine!

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jeya Maria Jose Valanarasu