79416282

Date: 2025-02-05 21:57:04
Score: 3
Natty:
Report link

IronPython or Python.Net alternative in 2025 maybe:

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

79416280

Date: 2025-02-05 21:55:03
Score: 2.5
Natty:
Report link

There are other alternatives to IronPython which might be easier to integrate:

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

79416266

Date: 2025-02-05 21:47:02
Score: 3
Natty:
Report link

I'm encountering the same error when I connect PostgreSQL to my app and run migrations. Even though I set the port to 5402, the error still persists.

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

79416263

Date: 2025-02-05 21:45:01
Score: 0.5
Natty:
Report link

You can get it like this, it will also work with keys containing dots :

ConfigObject getConfigObjectFromKey(String key) {
    List<String> keyParts = key.split('\\.')
    ConfigObject conf = Holders.config
    keyParts.each { String part -> conf = conf[part] as ConfigObject }
    return conf
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Skirlyx

79416259

Date: 2025-02-05 21:43:00
Score: 3.5
Natty:
Report link

Can you move it to new org as Attachment and then use the Magic mover app exchange tool from SF Labs to convert to files.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Anand Narayan

79416256

Date: 2025-02-05 21:40:59
Score: 4
Natty:
Report link

Thank you for your reply. I added 1 resourcepool and a Doctor agent with name and schedule parameters. I am still encountering initialisation error. Could you please explain step by step if i need to do more or a different approach? Should i use a doctor population or should i change doctors' names from string to integer?

I have written a list to the Main's On startup section as :

List<Doctor> doctorList = new ArrayList<>(Arrays.asList(                                       
    new Doctor("doctorX", schedule_doctorX),
    new Doctor("doctorY", schedule_doctorY),                              
    new Doctor("doctorZ", schedule_doctorZ)
));
doctorPool.set_capacity(doctorList.size());
doctorPool.resourceUnits().clear();  
doctorPool.resourceUnits().addAll(doctorList);

and added a "createDoctor" function

Doctor doctor = new Doctor();
doctor.name = name;
doctor.schedule = schedule;
return doctor;

also on seize block, i used your code but the simulation cant be initialized with the error of:

Error during model startup:

UnsupportedOperationException

java.lang.UnsupportedOperationException

at java.base/java.util.AbstractList.add(AbstractList.java:153)

at java.base/java.util.AbstractList.add(AbstractList.java:111)

at java.base/java.util.AbstractCollection.addAll(AbstractCollection.java:336)

at multiple_pathyways_mech.Main.onStartup(Main.java:4087)

at com.anylogic.engine.Agent.h(Unknown Source)

at com.anylogic.engine.Agent.start(Unknown Source)

at com.anylogic.engine.Engine.start(Unknown Source)

at com.anylogic.engine.ExperimentSimulation.e(Unknown Source)

at com.anylogic.engine.ExperimentSimulation.run(Unknown Source)

at com.anylogic.engine.ExperimentSimulation.h(Unknown Source)

at com.anylogic.engine.internal.m$m.run(Unknown Source)
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (2.5): Could you please explain
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Selin Ozen

79416250

Date: 2025-02-05 21:38:59
Score: 1
Natty:
Report link

I tried to solve it on the same website (Test dome), and the answer was interesting. Try to solve it with recursion and no problems; therefore your code can run on negative test cases too!

#include <stdlib.h>
#include <stdio.h>

int inspect_bits(unsigned int number)
{
    if(number == 0) return 0;
    if((number & 3) == 3) return 1;
    return inspect_bits((number>>1));
}

#ifndef RunTests
int main ()
{
    printf("%d", inspect_bits(13));
}
#endif
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Hussein Barakat

79416248

Date: 2025-02-05 21:36:57
Score: 12.5 🚩
Natty: 6.5
Report link

did you solve the problem? I have the same problem right now

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): did you solve the problem
  • RegEx Blacklisted phrase (1.5): solve the problem?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you solve the
  • Low reputation (1):
Posted by: Javier Yahir

79416246

Date: 2025-02-05 21:35:56
Score: 1.5
Natty:
Report link

This worked for me (.NET Framework 4.8.1) VS 2022 C# The JSON or any serializer object need to be generated with not to include typeinformation settings. Below is an example:

var settings = new DataContractJsonSerializerSettings();
settings.EmitTypeInformation = EmitTypeInformation.Never;

var serializer = new DataContractJsonSerializer(yourType, settings);

or

var serializer = new DataContractJsonSerializer(yourType, new DataContractJsonSerializerSettings() {EmitTypeInformation=EmitTypeInformation.Never});

Thanks to: Daniel https://stackoverflow.com/users/572644/daniel-hilgarth in

How do I tell DataContractJsonSerializer to not include the "__type" property

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dr. Venkata Goli

79416245

Date: 2025-02-05 21:35:56
Score: 2
Natty:
Report link

Although @FiloCara 's answer is reliable, it did not work for me until I put the warning-generating code in a context:

with warnings.catch_warnings():
    warnings.simplefilter("ignore", category=pd.errors.PerformanceWarning)
    # code that generates warnings ...
Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @FiloCara
Posted by: The other other Alan

79416243

Date: 2025-02-05 21:31:56
Score: 0.5
Natty:
Report link

Since it’s working on other functions, few factors for this behavior could be, there is a mismatch in the topic name, a small difference can prohibit the trigger to execute, check for the case sensitivity or even a whitespace could make a difference. Same project ID is a must also, verify if you have the same on both .firebaserc file and Pub/Sub Trigger topic. Also, try to clear the cache of the emulator at your firebase.

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

79416235

Date: 2025-02-05 21:26:55
Score: 1.5
Natty:
Report link

In python if a variable has a value if will return True, using not inverses the result.

The variable "is_not_dna" is being set as a bool when you use the "not" before the d_n_a in the following line. "is_not_dna = not d_n_a"

If you are wanting to compare values I would recommend looking into sets or list comprehensions.

As a note it is easier to read and understand the question if the code snippet is formatted correctly rather than squashed into one line.

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

79416230

Date: 2025-02-05 21:23:54
Score: 1.5
Natty:
Report link

Now it can be fixed with setting modal={false]

<DropdownMenu modal={false}>
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: IMRAN H

79416215

Date: 2025-02-05 21:14:51
Score: 4
Natty: 4.5
Report link

Here is a good sample with using Python, Kivy:

https://github.com/mathpathconsole/DrumPad-with-Kivy

Music Pad with kivy

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

79416211

Date: 2025-02-05 21:13:50
Score: 4.5
Natty: 4.5
Report link

Refer this code for streams in bloc

https://github.com/tejasthonge/Flutter-Bloc-State-mangement/blob/main/4_streams/_1streas/lib/stream1/bloc/streams_bloc.dart

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: TEJAS RAJENDRA THONGE

79416188

Date: 2025-02-05 21:05:48
Score: 2
Natty:
Report link

You should download signed and notarized framework directly from vendor. If it is not possible, you have to sign it yourself (with your certificate), but there are lot of challenges because you must know which entitlements this framework need (vendor's documentation might help).

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

79416177

Date: 2025-02-05 21:00:47
Score: 0.5
Natty:
Report link

Have you tried setting the locale?

locale: const Locale('en', 'GB'), // GB changes it to "dd/MM/yyyy"

It goes right before builder. It will change it only for that date picker

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: luenib

79416173

Date: 2025-02-05 20:58:46
Score: 2
Natty:
Report link

heres what I did, my lazy fix. renamed "Cloud SDK" to "Cloud". went into "AppData\Local\Google\Cloud\google-cloud-sdk" and ran install.bat.

then under windows user variables edit path to have an entry for " C:\Users\username\AppData\Local\Google\Cloud\google-cloud-sdk\bin"

windows is retarded that you have to put spaces in quotes. Use command "gcloud info" after install.bat to check the gcloud installation path name is accurate without the spaces now.

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

79416165

Date: 2025-02-05 20:54:45
Score: 3
Natty:
Report link

You just need to switch sm for max-sm

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

79416154

Date: 2025-02-05 20:49:44
Score: 3
Natty:
Report link

The default dateformat of en-US is mm/dd/yyyy, this is why the conversion fails.

If your string-date is always formatted as dd/mm/yyyy hh:mm:ss you should use DateTime.ParseExact as shared on this StackOverflow-post:

How to Convert a Date String with Format "dd/MM/yyyy" to OS Current Culture Date Format

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

79416150

Date: 2025-02-05 20:45:43
Score: 1.5
Natty:
Report link

In a situation like this, I'd typically create an invisible h1, like:

<h1 style={{ display:none }}>Login</h1>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joss Gitlin

79416146

Date: 2025-02-05 20:44:42
Score: 1
Natty:
Report link

If this is matplotlib, you can change the default font in plots using this:

import matplotlib.pyplot as plt
plt.rcParams["font.family"] = "Arial"

Then you can match that font to your LaTeX settings

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

79416135

Date: 2025-02-05 20:39:41
Score: 1
Natty:
Report link

It will only use values found in import.meta.env.

You could do something like this:

define: {
 ...,
 'import.meta.env.REACT_APP_BACKEND_URL': 'the-url'
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jonathan

79416134

Date: 2025-02-05 20:39:41
Score: 1
Natty:
Report link

2025, I fix same problem by add "geometry"

script src="https://maps.googleapis.com/maps/api/js?libraries=geometry,places&key=123&loading=async&callback=initMap"

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: hoogw

79416127

Date: 2025-02-05 20:36:40
Score: 1
Natty:
Report link

It seems the issue was with my curl command. and the resolve

curl -kLvv  --resolve httpbin.example.com:444:XXX.XXX.XXX.XXX https://httpbin.example.com:444/get?foo=bar

Use the resolve option and changing from the IP address to the actual hostname works. Not sure what the difference is.

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

79416123

Date: 2025-02-05 20:34:40
Score: 2
Natty:
Report link

Ok... knew I just neeeded more coffee: Solution with @media

added to css:

@media (max-width: 817px) {
  .header {
    width: 100%;
    min-width:auto;
  }
  .main {
    width: 100%;
    min-width:auto;
  }
  .mainCol { min-width: auto; }
}

this resets things so unwanted min widths etc go away, I also added:

@media (max-width: 649px) {
  #sideNav { display: none;}
}

to remove the side bar if screen is very small...

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @media
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Paul

79416113

Date: 2025-02-05 20:28:37
Score: 9 🚩
Natty:
Report link

Can you share the GitHub repository?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you share the
  • Low reputation (1):
Posted by: twjaymes

79416109

Date: 2025-02-05 20:26:36
Score: 1.5
Natty:
Report link

Today i had two new ideas.

  1. Seperated the tables in to two tables, deleted the body 0 margins to get back reply paddings and pushed the second table to the left edge:

<table1 width="100%">email regular text</table>

<table2 width="120%" style="margin-left: -30px;">footer signature</table>

Result: Works, reply text has normal paddings again, but on some email clients still tiny small white paddings. Because of the width 120% the email window gets scrollable horizontally:

  1. Deleted the body 0 margins and seperated the tables in to two also. Put a fat outline around the second table, colored in footer bg color

<table1 width="100%">email regular text</table>

<table2 width="100%"style="outline: solid 25px #98DBCE;">footer signature</table>

Result: Works, but on some email clients still tiny small white paddings too.

I am searching for better Ideas :(

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

79416107

Date: 2025-02-05 20:25:36
Score: 2
Natty:
Report link

In my case, I opened the wrong file (opened the .xcodeproj instead of .xcworkspace). In case someone else suffers the same lapsus 😅

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Pablo Quemé

79416103

Date: 2025-02-05 20:23:36
Score: 3
Natty:
Report link

The solution provided by Cristian above works also for CoreUI, which is based on Bootstrap 5. Definitely the right answer

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

79416098

Date: 2025-02-05 20:20:35
Score: 3.5
Natty:
Report link

For Jupyter notebook the keybind to change indentation is CTRL+ { and CTRL + }. Highlight the lines you wish to change.

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

79416090

Date: 2025-02-05 20:15:34
Score: 0.5
Natty:
Report link

An Access application option Move After Enter exists, with three alternatives:

These can be set programmatically but it's easiest to go to Access Options > Advanced > Editing and tick the appropriate button. This option applies application-wide.

TextBox.EnterKeyBehavior has two options, Default and "New Line In Field". The latter overrides the application-wide Access option for that text box, and doubtless is the better choice for any multi-line text box.

Better to trigger the Submit button otherwise. Clicking on it is always an option. If it follows the text box in the tab order, then tabbing from the text box will highlight it and then, pressing Enter will trigger it.

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

79416074

Date: 2025-02-05 20:09:32
Score: 1.5
Natty:
Report link

This is an updated version of @Anjali 's answer

    import PyPDF2

    pages = [] 
    pdf_file = <Enter your file path> 
    reader = PyPDF2.PdfReader(pdf_file) 
    number_of_pages = len(reader.pages) 
    for page_number in range(number_of_pages):   
        page = reader.pages[page_number].extract_text().split(" ")  # Extract page wise text then split based on spaces as required by you
        pages.append(page)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Anjali
  • Low reputation (1):
Posted by: dawndance

79416070

Date: 2025-02-05 20:08:32
Score: 0.5
Natty:
Report link

For context, not another answer: As @Evert said there is no place for a TimeZone in an iCAL date value, just a year, month and day:

https://www.rfc-editor.org/rfc/rfc2445#section-4.3.4

Formal Definition: The value type is defined by the following
notation:

 date               = date-value

 date-value         = date-fullyear date-month date-mday
 date-fullyear      = 4DIGIT
 date-month         = 2DIGIT        ;01-12
 date-mday          = 2DIGIT        ;01-28, 01-29, 01-30, 01-31
                                    ;based on month/year

...

 Example: The following represents July 14, 1997:

 19970714
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Evert
  • Low reputation (0.5):
Posted by: Craig.C

79416060

Date: 2025-02-05 20:05:31
Score: 1.5
Natty:
Report link
unset NODE_OPTIONS

If you're using Node.js 18+, you probably don't need --openssl-legacy-provider anymore.

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

79416058

Date: 2025-02-05 20:05:31
Score: 4
Natty: 4.5
Report link

here is good sample with using Python Kivy:

https://github.com/mathpathconsole/ChessApp-with-Kivy

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

79416057

Date: 2025-02-05 20:05:31
Score: 1
Natty:
Report link

I use windsurf and to support not just line numbers but also a column number,

I've set my Semantic History command to this:

~/.codeium/windsurf/bin/windsurf -g \1:\2:\(semanticHistory.columnNumber)

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

79416046

Date: 2025-02-05 20:00:29
Score: 1.5
Natty:
Report link

you forgot to register the ScrollToPlugin

try gsap.registerPlugin(ScrollTrigger, ScrollToPlugin);

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

79416038

Date: 2025-02-05 19:56:28
Score: 1
Natty:
Report link

By adding cssMinify to my vite build configuration and setting it to 'lightningcss' it seems to get it working again.

import tailwindcss from "@tailwindcss/vite";

export default defineNuxtConfig({
  vite: {
    plugins: [
      tailwindcss()
    ],
    build: {
      cssMinify: 'lightningcss'
    }
  },
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Patrick van Marsbergen

79416036

Date: 2025-02-05 19:55:28
Score: 2.5
Natty:
Report link

I figured this out - somehow I managed to get Python 2.7 and 3.9 on my machine, and the plain 'python' command was invoking Python 2. By using the command 'python3 myscript.py' it is now working as expected

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

79416035

Date: 2025-02-05 19:54:28
Score: 1.5
Natty:
Report link

In addition to all the other answers, it's worth remembering that an ICMP packet contains content of its own. In the case of my ping request, it's 32 bytes: the alphabet and then the message "hi." Depending on the implementation, different data can be placed here — even your own MAC address — though that is more of a hypothetical scenario. Traditionally, random data or something similar is placed here.

ICMP packet content

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

79416024

Date: 2025-02-05 19:49:26
Score: 1
Natty:
Report link

A video file in a request but it's not being received. Try it out

   <form action="{{ route('upload.video') }}" method="POST" enctype="multipart/form-data">
    @csrf
    <input type="file" name="video" required>
    <button type="submit">Upload</button>
</form>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: zain malik

79416023

Date: 2025-02-05 19:48:26
Score: 1.5
Natty:
Report link

Super easy solution without using VBA. This works if you have dates for your x-axis. Use UNIQUE and FILTER to populate the values needed for your x-axis.

Chart using unique axis

Chart using original axis

In this example, the original x-axis values are in F9:F25. The data values are in G9:G25. In K9, I am using the formula UNIQUE(FILTER(F9:F25,G9:G25<>"")), which results in showing the dates for only the data values that are not empty. Even though the x-axis range is from K9:K25, the chart will stop at the last value in column K.

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

79416014

Date: 2025-02-05 19:46:25
Score: 2.5
Natty:
Report link

i faced the same issue, i switched gradle version to 8.9 and it worked

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

79416011

Date: 2025-02-05 19:45:25
Score: 2
Natty:
Report link

I am not sure if I understood the question correctly. Here is what I thought: You have two groups of images (group A and group B). Each group contains 100 images. You want to measure the similarity between group A and group B. Maybe one thing you can look into is the Wasserstein distance, which quantifies the dis-similarity between two distributions.

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

79416010

Date: 2025-02-05 19:45:25
Score: 0.5
Natty:
Report link

This is not how Hasura works. You cannot omit a required role header. Hasura will not "try" out each role. Your request must specify a role to run as. As the developer, you should have no problem knowing which role you should be requesting as for a given request. If you are running multiple queries or actions in one request that depend on different roles, I can hear why you'd want to do this. But you shouldn't still. Just break them into different requests. Composite, or Inherited Roles might be helpful to you but I can't say for certain as you haven't specified why you'd want to do it your way.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Abraham Labkovsky

79415994

Date: 2025-02-05 19:36:23
Score: 2
Natty:
Report link

https://www.rfc-editor.org/rfc/rfc2445#section-4.6.1

The "DTSTART" property for a "VEVENT" specifies the inclusive start
of the event. For recurring events, it also specifies the very first instance in the recurrence set.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Craig.C

79415991

Date: 2025-02-05 19:35:23
Score: 3.5
Natty:
Report link

How about this?

fn flatten_vectors(vectors: Vec<Vec<i32>>) -> Vec<i32> {
    let mut result = Vec::new();
    let max_len = vectors.iter().map(|v| v.len()).max().unwrap_or(0);

    for i in 0..max_len {
        for vec in &vectors {
            if let Some(&val) = vec.get(i) {
                result.push(val);
            }
        }
    }

    result
}

fn main() {
    let v = vec![vec![1, 2, 3], vec![4, 5, 6], vec![7, 8, 9]];
    let flattened = flatten_vectors(v);
    println!("{:?}", flattened);
}


Output: [1, 4, 7, 2, 5, 8, 3, 6, 9]

Playground

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: Ron Slosberg

79415990

Date: 2025-02-05 19:34:22
Score: 2.5
Natty:
Report link

Check out the javascript library called "SuperMarquee".

It has a lot of features you are looking for (speed, direction). Check out the example of their website.

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

79415981

Date: 2025-02-05 19:31:21
Score: 1.5
Natty:
Report link

Sometimes, you don’t always know what you're after or what direction you're heading in, and that’s perfectly fine. There's something refreshing about that uncertainty, where the possibilities are endless. It's like jumping into the unknown, where you don't need a plan – just a willingness to see where things go. Maybe it's a random idea, a little adventure, or just a moment to embrace that you don’t have it all figured out. Sometimes, it's about trying things without knowing the end result, and discovering along the way. That’s where you learn new things, stumble upon unexpected treasures, and realize that the journey is worth more than the destination itself.

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

79415977

Date: 2025-02-05 19:30:21
Score: 2
Natty:
Report link

Check if the "cnp" field exists in the model. If so, you know that at least the module is installed. If not check that the status is "Installed" and not something like "Pending" or "Updating".

If the "cnp" field does exist, check if you're correctly referencing the view file in the manifest https://www.odoo.com/documentation/18.0/developer/tutorials/define_module_data.html?highlight=manifest#data-declaration

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

79415975

Date: 2025-02-05 19:29:20
Score: 2.5
Natty:
Report link

A lightweight and easy-to-use module for implementing native in-app updates for Android and iOS

https://github.com/SohelIslamImran/expo-in-app-updates

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: Sohel Islam Imran

79415969

Date: 2025-02-05 19:28:20
Score: 3.5
Natty:
Report link

The library must be listed as public and you have to add it to your manifest.

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

79415965

Date: 2025-02-05 19:27:20
Score: 0.5
Natty:
Report link

Check if all pixels rgba data is zero.

function isEmptyCanvas(canvas) {
    let imageData = canvas.getContext('2d', { willReadFrequently: true }).getImageData(0, 0, canvas.width, canvas.height);

    return imageData.data.every(p => p === 0);  // true if all pixels are zero
} 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: stomtech

79415954

Date: 2025-02-05 19:24:19
Score: 3
Natty:
Report link

I also had to close and reopen Visual Studio to get this warning to go away, in addition to deleting the contents of my bin and obj folders for all projects in my solution.

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

79415942

Date: 2025-02-05 19:21:17
Score: 4.5
Natty:
Report link

I'm also stuck at the same point , from what I read we need to call the generatePlacementOptions to generate the shipmentId , but unable to call this API , new version is crazy

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm also stuck
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: develop2learn

79415935

Date: 2025-02-05 19:18:16
Score: 1
Natty:
Report link

So delicious lovely cute sushi rolls! Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi Sushi

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Seven Rolls of Sushi

79415934

Date: 2025-02-05 19:17:16
Score: 0.5
Natty:
Report link

dart:ui package has two properties that can handle what you need.

import 'dart:ui';
PlatformDispatcher.instance.views.first.physicalSize.height
PlatformDispatcher.instance.views.first.physicalSize.width

good luck!

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

79415931

Date: 2025-02-05 19:17:16
Score: 0.5
Natty:
Report link

Found the answer animateEnterExit is within the AnimatedVisibility scope:

https://developer.android.com/develop/ui/compose/animation/composables-modifiers#animatedvisibility-enter-exit

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

79415928

Date: 2025-02-05 19:16:15
Score: 0.5
Natty:
Report link

I believe part of my confusion was caused by the "caching behavior" of Xcode and the Simulator. Initially, I managed to sign in with a gmail account using the bundle ID, com.google.DaysUntilBirthday. After that none of my changes to Google's client ID or its URL scheme seems to matter. I'm still puzzled by this behavior because I think an invalid client ID should cause some kind of error.

At some point during my troubleshooting, I erased the simulator's content, restarted Xcode, I then observed the same behavior with both bundle IDs. I think this is a good tip to remember, i.e., resetting the tool/environment when some strange behavior/result is observed during testing.

My test project is available in github.

When I use an invalid bundle ID, the sign-in still works. I need to understand why that is the case.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: litbe

79415926

Date: 2025-02-05 19:15:15
Score: 1
Natty:
Report link

This is a simple mistake . dateTimeMilDS3231() is returning a String and asprintf in formatting string "%s" expect a C-style string . String can be "converted" to C-style string with calling .c_str() on it . : Correct code is :

char *buf;
asprintf(&buf, "%lu\t%s\n", now(), dateTimeMilDS3231().c_str() );
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: g1ra

79415914

Date: 2025-02-05 19:08:13
Score: 4.5
Natty:
Report link

Please share debug logs. Are you able to show the notification running the example app of the plugin ?

Also, 5.0.0 was just released. It might fix your issue.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please share
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: gdelataillade

79415912

Date: 2025-02-05 19:08:13
Score: 1
Natty:
Report link

Leek - https://tryleek.com

It's newer, better and has more features

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

79415904

Date: 2025-02-05 19:05:12
Score: 0.5
Natty:
Report link

You may try:

=index(sign(mmult(transpose(C3:F7),K3:P7)))

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • High reputation (-2):
Posted by: rockinfreakshow

79415902

Date: 2025-02-05 19:05:12
Score: 1.5
Natty:
Report link

You are using wrong filename in this src/app/api/regions/rotue.ts change /rotue.ts to route.ts.

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

79415891

Date: 2025-02-05 19:02:11
Score: 1
Natty:
Report link

coverage xml -i doesn't work for me.

I found out that the <tmpdir>/_remote_module_non_scriptable.py is generated by pytorch.

Solution: add to pyproject.toml

[tool.coverage.run]
omit = [
    # omit pytorch-generated files in /tmp
    "/tmp/*",
]
Reasons:
  • Whitelisted phrase (-2): Solution:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniele Franceschi

79415884

Date: 2025-02-05 19:01:11
Score: 0.5
Natty:
Report link

a quick and dirty is to mock the variable in the jest files and avoid the import altogether:

jest.mock("~/config", () => ({ ENV_VARIABLE: "//MOCK_BASE_PATH/api/v0" }));

you may need to re-export the file from a ts file:

~/config.ts

export const ENV_VARIABLE = import.meta.env.VITE_ENV_VARIABLE
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: KHB

79415876

Date: 2025-02-05 18:57:09
Score: 1.5
Natty:
Report link

Answering in case someone else comes looking.

The default user in the Registration test and the default user in the DatabaseSeeder have the same email so the test fails. Just change the email in the seeder or the test.

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

79415873

Date: 2025-02-05 18:56:09
Score: 2
Natty:
Report link

My understanding of CMM is that it is not "prescriptive". It doesn't dictate exact methods or steps to follow, but instead provides a set of best practices and maturity levels. It is "DIAGNOSTIC" and describes your level of maturity. Six Sigma is an advanced data driven, closed loop, TOOL/method that could be applied at CMM Level 4 (Quantitative) or above. Six Sigma is one of many actual methods to improve performance. An entity would have no success implementing Six Sigma if they are at CMM Level 1, 2, or even 3 because the Numerical Data maturity level for key processes has not been achieved.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: andy

79415872

Date: 2025-02-05 18:56:09
Score: 1
Natty:
Report link

Not sure if this helps, but I was running into the same problem, apperently this problem is occuring to CPU's that are older than haswell series.

There's also an issue opened on GitHub about this problem, you can check this issue here for more information https://github.com/JaidedAI/EasyOCR/issues/704

Since i couldn't make it work for my CPU, because of the aforementioned problem, i tried using PaddleOCR and got decent results. For context, I also tested TesseractOCR and Keras-OCR, but neither worked well for my specific case. PaddleOCR ended up solving the problem for me. Hope this can be of help for you or anyone else facing this problem until they fix this issue

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

79415869

Date: 2025-02-05 18:54:08
Score: 0.5
Natty:
Report link

Done! It worked for me

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Adib Ahbab

79415864

Date: 2025-02-05 18:52:08
Score: 1.5
Natty:
Report link

I ran the query SET NAMES 'utf8mb4' on MySQL, and it worked perfectly fine. The result was as expected. See the screenshots below.

enter image description here

enter image description here

Reasons:
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Syed

79415862

Date: 2025-02-05 18:50:08
Score: 1.5
Natty:
Report link

The solution is quiet strange. I just reimported the model with mesh collider and it worked! Maybe it was a bug while importing although the issue was only in the build

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michael

79415855

Date: 2025-02-05 18:48:07
Score: 1
Natty:
Report link

The question is asked for testing an API. But I had a similar issue when I was trying to use GitBash in Windows and connect to Github. What helped me was:

I uninstalled the GitBash. When reinstalling, I noticed a setting regarding SSL:

enter image description here

I chose the second one (Use the native Windows ...) and it fixed the problem.

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

79415850

Date: 2025-02-05 18:45:06
Score: 1
Natty:
Report link

This is likely due to Next attempting to pre-render the Suspense boundary, despite the useSuspenseQuery falling under a client component (https://nextjs.org/docs/app/building-your-application/rendering/client-components) -- since the pre-render attempt is missing the client's headers/cookies, it is presumably failing your authorization.

Some notes on Suspense behavior with useSuspenseQuery can be found here: https://tanstack.com/query/latest/docs/framework/react/guides/ssr#a-quick-note-on-suspense.

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

79415842

Date: 2025-02-05 18:43:05
Score: 1
Natty:
Report link

I think the most Unix solution is to use 'head'

head -c-1 infile > outfile
Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cosine

79415835

Date: 2025-02-05 18:42:04
Score: 4
Natty:
Report link

You can reference those articles.

How to hide Temporary tables in PgAdmin 4

https://www.pgadmin.org/docs/pgadmin4/8.13/preferences.html?utm_source=chatgpt.com

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

79415827

Date: 2025-02-05 18:38:03
Score: 2
Natty:
Report link

thank you Tore - the problem was with the samesite feature on the backend - this code resolved the issue

builder.Services.ConfigureApplicationCookie(options =>
{
    options.Cookie.SameSite = SameSiteMode.None;
});
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Farid Omarzadeh

79415823

Date: 2025-02-05 18:36:03
Score: 1
Natty:
Report link

2025, I fix same problem by add "geometry"

script src="https://maps.googleapis.com/maps/api/js?libraries=geometry,places&key=123&loading=async&callback=initMap"

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: hoogw

79415821

Date: 2025-02-05 18:34:02
Score: 5
Natty:
Report link

Have the same problem in my case the reason was enable ENABLE_USER_SCRIPT_SANDBOXING (User Script Sandboxing enter image description here).

I turned off this flag and it fixed my problem

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): Have the same problem
  • Low reputation (1):
Posted by: Anton Semenov

79415816

Date: 2025-02-05 18:33:01
Score: 2.5
Natty:
Report link

ps aux | grep terraform Then, kill any stuck Terraform processes:

sh

CopyEdit

kill -9

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: hassaan hameed

79415809

Date: 2025-02-05 18:31:00
Score: 1
Natty:
Report link

Use Edit Interactions to change the behaviour to no impact

https://learn.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions?tabs=powerbi-desktop

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

79415807

Date: 2025-02-05 18:31:00
Score: 1.5
Natty:
Report link

There are many PKCS#11-over-the-network implementations by the way of an openssl 'engine'. Each HSM manufacturer has its own and each HSM on cloud provider has one too. I recently test the Thales Luna implementation of their .so library as an engine. Ok, it never worked (pb of symbols) but it should work.

But the real blocking point was the price: 25 k/year for 1 key (at the beginning) that's unreasonable. That's nearly the price of a standalone rackable HSM (~30-40k). Ok, we generally need 2 HSM as-a-box for redundancy.

I don't want to use AWS nor Azure for sovereignty considerations. The KMS system and KMIP protocol is a decent proposal. Alas, there is NO openssl implementation of KMIP, yet.

db

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: D. Blas

79415801

Date: 2025-02-05 18:29:00
Score: 1
Natty:
Report link

Does anyone know which environment variable or configuration file might have been responsible for ensuring charset compatibility in the previous setup?

Any insights would be greatly appreciated!

You have to redo the migration. And before redoing the migration you have to migrate the serialized data first and fix the column type of the affected fields.

(OR: If your setup currently works with the workaround you may be able to do this without redoing the migration. After applying the fix (see below), it must work without the workaround and the workaround should be removed.)

As outlined in XXX (Q&A), serialized data must not be stored in text fields with a character encoding other than BINARY.

To remove the double negation: PHP serialized data should be stored in BINARY columns. If you do otherwise problems like the ones you describe might arise.

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (2): Does anyone know
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: hakre

79415791

Date: 2025-02-05 18:27:00
Score: 3
Natty:
Report link

Looks like you have a typo. Property is case sensitive so you should write it in lowercase: productGroupDataContainer.productgroupid

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

79415790

Date: 2025-02-05 18:27:00
Score: 1.5
Natty:
Report link

I know this is a really old thread but the answer is a simple modifier of

.allowsHitTesting(false)

on the Map object.

This disables all Map interaction.

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

79415788

Date: 2025-02-05 18:25:58
Score: 4
Natty:
Report link

@nitgeek's answer is correct. It needs to be upper case but I think you may also need to install the dependency so that it is available for your code.

https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/llms/ollama.py#L398

https://pypi.org/project/langchain-community/

Also make sure that you have the langchain_community community module installed via pip

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @nitgeek's
  • Low reputation (1):
Posted by: IZZYACADEMY.AI

79415784

Date: 2025-02-05 18:22:58
Score: 1
Natty:
Report link

Since the concept is not part of the module, but part of a "traditional" header file, you cannot import it as part of that module. However, you can continue to #include the header file that declares the concept in the file that needs the concept.

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

79415783

Date: 2025-02-05 18:22:58
Score: 0.5
Natty:
Report link

Solved it. Ended up being pretty straightforward. Need to do the OFFSET x ROWS FETCH NEXT y ROWS ONLY in an inline view.

DECLARE
  l_hits SYS_REFCURSOR;
BEGIN 
  OPEN l_hits for
    SELECT CURSOR(SELECT *
                    FROM emp) hits
      FROM (SELECT * 
              FROM dept
             ORDER BY deptno
            OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY) dept;
END;

Hopefully it is useful for others in the future.

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

79415778

Date: 2025-02-05 18:20:57
Score: 0.5
Natty:
Report link

Getting Google Meet attendance statistics in the context of Google Classroom via the API requires a bit more research into how Classroom and Meet are related. You correctly noted that activities.list requires meet_code, but the Google API doesn't provide a direct way to extract all Meet codes associated with a specific username or course.

One workaround I found was to use the courses.courseWork.list and courses.courseWorkMaterials.list APIs in Google Classroom. Sometimes, links to Meet meetings are stored in assignments or course materials, and you can try to extract them from there. However, this does not guarantee that all sessions will be found.

Another option is if you have access to Google Workspace logs via the Admin SDK Reports API, you can try meet_log_events, which records user activity in Meet. Here you can filter by email address or other attributes, which can help you find all meetings organized by a specific teacher.

If the task is not only to obtain meeting codes, but also to analyze the data, then you can connect third-party services, such as Sembly AI. It allows you to automatically record and analyze meetings, as well as record participants and their activity. You can integrate it with Google Meet and get detailed reports without having to manually pull statistics through the API.

Google does not yet offer a convenient solution for automatically obtaining all Meet codes by nickname.

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

79415775

Date: 2025-02-05 18:19:57
Score: 0.5
Natty:
Report link

Ten years late to the party, but if you don't want to pull down the branch, this variant is a bit simpler:

git difftool origin/master..origin/<branch_name>

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

79415767

Date: 2025-02-05 18:16:56
Score: 0.5
Natty:
Report link

Another solution using array_unique, to check if first array is onto another one.

$arr1 = [1,2,3];
$arr2 = [1,2,3,4,5,6,7];
$arrayContains = count(array_unique([...$arr1, ...$arr2])) === count($arr2);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nicolas Bonnici

79415763

Date: 2025-02-05 18:14:55
Score: 0.5
Natty:
Report link

Whatever you do, don't do this.

Map.prototype.toJSON = function() {
    return Object.fromEntries(this);
};

const map = new Map();
map.set('a', 1);
map.set('b', { datum: true });
map.set(false, [1, 2, 3]);
map.set('d', new Map([['e', true]]) );

const json = JSON.stringify(map);

console.log(json);

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

79415755

Date: 2025-02-05 18:11:55
Score: 0.5
Natty:
Report link

I figured this out. If you are using the Umbraco Delivery API, you should pretty much be able to use this out of the box just providing your own RichTextFieldBlockItem component if you are embedding block components in your rich text. For others using a similar JSON rich text or other hierarchical json structure, this might be a helpful pattern.

There are two key elements in the following block of code:

  1. The import RenderRichTextComponent is a reference to itself. Thus it becomes a recursive component.
  2. const GenericTag = genericNode?.tag || 'div' allows for creating custom tags. Note the GenericTag variable name must be capitalized otherwise astro would just write out the variable name instead of the variable value.

code:

---
// filepath: /src/components/richText/RenderRichText.astro
import RichTextFieldBlockItem from './RichTextFieldBlockItem.astro';
import type { ApiBlockItemModel, RichTextGenericElementModel, RichTextRootElementModel, RichTextTextElementModel } from "@/api/umbraco";
import RenderRichTextComponent from './RenderRichText.astro';

interface Props {
  node: RichTextGenericElementModel | RichTextRootElementModel | RichTextTextElementModel | null | undefined;
  blocks: ApiBlockItemModel[] | null | undefined;
}

const { node, blocks } = Astro.props;

if (!node) return null;

const isText = node.tag === '#text';
const textNode = isText ? node as RichTextTextElementModel : null;
const isRoot = node.tag === '#root';
const rootNode = isRoot ? node as RichTextRootElementModel : null;
const isBlock = node.tag === 'umb-rte-block';
const blockNode = isBlock ? node as RichTextGenericElementModel : null;
const block = isBlock ? blocks?.find((b) => b.content && b.content.id === blockNode?.attributes['content-id']) : null;
const isGeneric = !isText && !isRoot && !isBlock;
const genericNode = isGeneric ? node as RichTextGenericElementModel : null;
const GenericTag = genericNode?.tag || 'div';
---

{isText && textNode?.text}

{isRoot && rootNode?.elements.map((child, i) => 
  <RenderRichTextComponent node={child} blocks={blocks} />)}

{isBlock && <RichTextFieldBlockItem block={block} />}

{isGeneric && (
  <GenericTag {...genericNode?.attributes}>
    {genericNode?.elements.map((child, i) => 
    <RenderRichTextComponent node={child} blocks={blocks} />)}
  </GenericTag>
)}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: J Fo

79415740

Date: 2025-02-05 18:05:54
Score: 3
Natty:
Report link

With some pointers from @Yogi I got a working solution.

issue 1: no events fired in js - only happens when caret is placed before "space" -> always set caret position to end of element

issue 2: key=229 is returned in keydown -> handle it the same as backspace and reset the inputs content to " " in onkeyup

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Yogi
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Maze

79415736

Date: 2025-02-05 18:04:53
Score: 1.5
Natty:
Report link

BUG (currently latest version) - events not working:

"@ionic/vue": "^8.4.3",
"@ionic/vue-router": "^8.4.3",

NO BUG (correct previous version):

"@ionic/vue": "^8.4.2",
"@ionic/vue-router": "^8.4.2",
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: devVue123

79415735

Date: 2025-02-05 18:03:53
Score: 3
Natty:
Report link

My problem was similar, but it resulted that the problem was not in the bundle but in one of its 18 products that was protected.

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ms. Garcia Store

79415733

Date: 2025-02-05 18:03:53
Score: 1
Natty:
Report link

To test your API rules in local environment first you would need to enable them in your Catalyst CLI using the below command

catalyst apig:enable

Once enabled, all your default URL will be inaccessible in your local environment. To access your application and function URL you would need to pull the APIG rules from the Catalyst Console using the below command

catalyst pull:apig

You can check the official documentation here.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Prabhu Raam Yogaraj

79415731

Date: 2025-02-05 18:02:53
Score: 0.5
Natty:
Report link

Done! It worked for me

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Adib Ahbab

79415730

Date: 2025-02-05 18:02:53
Score: 1
Natty:
Report link

It works as you requested with the react-native-orientation-locker package. You can configure your desired screen orientation and restrict its rotation.

Please find the related package link:
react-native-orientation-locker

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