79315763

Date: 2024-12-29 14:23:45
Score: 2.5
Natty:
Report link

On a Mac, in Visual Studio Code, go to Code>Settings>Settings and search for Emmet: Trigger Expansion On Tab. Make sure it's enabled. Then ! + Tab works and inserts the HTML boilerplate.

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

79315761

Date: 2024-12-29 14:22:44
Score: 11
Natty: 7
Report link

i have same issue with next js 15.1.0, any solution yet for this problem?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution yet for this problem?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: James Indra

79315757

Date: 2024-12-29 14:18:43
Score: 1
Natty:
Report link

For codicon
Add the following lines into .vscodeignore :

!node_modules/@vscode/codicons/dist/codicon.css
!node_modules/@vscode/codicons/dist/codicon.ttf

The 2 files will be embedded into the ...vsix package at the expected place.

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

79315755

Date: 2024-12-29 14:16:43
Score: 1
Natty:
Report link

I found correct way of catching error for express not to break listening:

jwt.verify(token, SECRET, async function(err, decoded) {
    if (err) {
      if (err.name === 'TokenExpiredError') {
        return res.status(401).json({ error: 'Token expired' });
      }
      if(err.name === 'JsonWebTokenError') {
        return res.status(401).json({ error: 'Token invalid' });
      }
    }
    else {
      return res.status(200).json('Token verified');
    }
 })
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: SolisQuid

79315752

Date: 2024-12-29 14:16:43
Score: 2
Natty:
Report link

Perhaps you could try creating a new project, but make sure its name does not contain Arabic or Hindi numerals or symbols that might not comply with Java naming conventions. The package name must adhere to the naming standards. sorry for my English I use translation

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

79315739

Date: 2024-12-29 14:09:41
Score: 0.5
Natty:
Report link

I'm revisiting this for the purpose of completion and posterity. @Roar's answer hints at the solution but excludes actuals a live project is likelier to entail. Building upon his submission, what currently works involves the following classes:

@Configuration
@EnableWebFluxSecurity
public class SecurityConfig {

    @Autowired
    private JwtReactiveAuthenticationManager authenticationManager;

    @Bean
    public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
        return http
                .csrf(ServerHttpSecurity.CsrfSpec::disable)
                .cors(httpSecurityCorsConfigurer -> httpSecurityCorsConfigurer.configurationSource(request -> {
                    CorsConfiguration config = new CorsConfiguration();
                    // bunch of config
                    return config;
                }))
                .authorizeExchange(authorizeExchangeSpec -> {
                    authorizeExchangeSpec.pathMatchers(
                            "api/v1/user/login",
                            "api/v1/user/register","webjars/**",
                            "/v3/api-docs/**", "/swagger-ui.html",
                            "/swagger-ui/**").permitAll();
                    authorizeExchangeSpec.anyExchange().authenticated(); // NOTE THIS
                })
                .addFilterAt(jwtAuthenticationFilter(), SecurityWebFiltersOrder.AUTHENTICATION)
                .build();
    }

    private AuthenticationWebFilter jwtAuthenticationFilter() {
        var authenticationWebFilter = new AuthenticationWebFilter(authenticationManager);

        authenticationWebFilter.setServerAuthenticationConverter(exchange -> {
            String authHeader = exchange.getRequest().getHeaders().getFirst("Authorization");
            if (authHeader != null && authHeader.startsWith("Bearer ")) {
                var token = authHeader.substring(7);
                // System.out.println(token); // correctly logs
                // instance is passed to JwtReactiveAuthenticationManager#authenticate
                return Mono.just(new UsernamePasswordAuthenticationToken(token, token));
            }
            return Mono.empty();
        });

        return authenticationWebFilter;
    }
}
@Component
@AllArgsConstructor
public class JwtReactiveAuthenticationManager implements ReactiveAuthenticationManager {

    private final JwtTokenProvider jwtTokenProvider;
    private final UserRepository userRepository;

    @Override
    public Mono<Authentication> authenticate(Authentication authentication) {
        String token = authentication.getCredentials().toString();

        if (!jwtTokenProvider.validateToken(token)) {
            System.out.println("Invalid token");
            return Mono.empty();
        }
        String username = jwtTokenProvider.getUsernameFromToken(token);
        return userRepository.findByEmail(username)
            .switchIfEmpty(Mono.error(new RuntimeException("User not found")))
            .map(user -> {
                //System.out.println(user); // correctly logs

                return new UsernamePasswordAuthenticationToken(user, token,
                        Collections.singletonList(new SimpleGrantedAuthority("ROLE_USER")));
            });
    }
}

And for retrieval on the controller side,

@GetMapping("/{id}")
public ResponseEntity<Flux<SomeDocument>> fetchDocuments(Authentication auth, @PathVariable String id) {
    User user = (User) auth.getPrincipal();

    // work with user.getId()
    }

I believe you can jwtTokenProvider off some internet tutorial but the above successfully binds decoded user to reactive security context.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Roar's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: I Want Answers

79315720

Date: 2024-12-29 13:58:38
Score: 2
Natty:
Report link

Since the last update almost nothing with yfinance works anymore. Is this a Yahoo issue or a yfinance library issue?

Just to mentioned a few „strange“ changes:

  1. Multi-index when downloading data, why, really nobody needs that?
  2. No ‚Adj Close‘ anymore. You can not calculate reliable or comparable SMA anymore.
  3. No documentation regarding significant and serious changes in the library

At this point yfinance is almost useless…

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: no_idea

79315719

Date: 2024-12-29 13:58:38
Score: 3
Natty:
Report link

All of my keys expire annually and I update them each year.

See https://security.stackexchange.com/questions/14718/does-openpgp-key-expiration-add-to-security for more details.

Since I'm on the glibc security team you can get my updated key from https://sourceware.org/glibc/security.html

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Carlos O'Donell

79315711

Date: 2024-12-29 13:54:37
Score: 2
Natty:
Report link

Project IDX runs in a virtualized environment and primarily supports running applications on emulated devices (like Firebase emulators or AVDs). Physical device debugging is not natively supported as of now because of the virtual nature of IDX and its limitations in accessing external hardware directly like your Physical Device.

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

79315709

Date: 2024-12-29 13:52:36
Score: 1
Natty:
Report link

Found the sollution. Problem was in the definition of the download path. Selenium requires a path with double "\" in stead of "/" separators.

adjusted prefs:

prefs = {
    "download.default_directory": "D:\\Lokale schijf\\COMPANYNAME\\datafiles\\SOFTWEAR_STOCKDATA",  
    "download.prompt_for_download": False,
    "safebrowsing.enabled": True,
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ron Kieftenbeld

79315702

Date: 2024-12-29 13:49:36
Score: 1
Natty:
Report link

Apparently the issue was what I suspected in my edit. The nextjs config I had was for turbo which only works in development mode, hence the worked in dev server but not during the build. Adding a very similar config for webpack for the build solved the issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Işık Kaplan

79315699

Date: 2024-12-29 13:46:35
Score: 1.5
Natty:
Report link

add argument lookahead = barmerge.lookahead_off it will fix the issue on lower timeframe. However it won't for timeframe higher than 15min. This is the issue i am having at the moment

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

79315691

Date: 2024-12-29 13:42:34
Score: 1
Natty:
Report link

Use the Tags attribute. I've found Scalar will group the methods under those tags perfectly. Something similar to:

[EndpointDescription("Retrieve a paged list of people based on a set of filters")]
[EndpointSummary("List People")]
[Tags("People")]
[HttpGet("people")]
[ProducesResponseType<PagedResultDto<PersonDto>>(StatusCodes.Status200OK, "application/json")]
public async Task<IActionResult> GetPeople([FromQuery] GetPeopleInputDto inputDto)
{ ... }

enter image description here

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

79315690

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

SOLVED: So it's ranking them, I had so little data it was ranking the unliked highest. When I added more data I could see that it's working, it just returns something no matter what.

The code above in the post worked for me.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: lando2319

79315673

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

Detour steps:

  1. Create virtual environment with default GIL enabled (non-free threaded) python interpreter, argument '--copies'.
python -mvenv --copies .venv
  1. Copy both python3.13t.exe and pythonw3.13t.exe (which ever required) from default interpreter path to venv\Scripts\ (virtual python interpreter location).
  2. Activate venv
.venv\Scripts\activate
  1. Use the interpreter whichever required.
    Running python in console will use GIL enabled interpreter and python3.13t will use experimental free-threading build as usual.

    Tried:
    Now outputs as expected.
python3.13t aiohttp_file.py

Note: I don't know how it works, just discovered it works.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Koushik Ghosh

79315671

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

Sometimes all you need is : <RuntimeIdentifiers Condition="$(TargetFramework.Contains('-android'))">android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>

This is based on MSBuild can already tell the architecture of the target device. Read more here.

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

79315669

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

My issue turned out to be in the placement of my global.css file that was in the root instead of the app...that solved my issue..also check the path for the global.css file in the metro.config file

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

79315666

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

Guten Tag everybody,

I had the same issue with Exchange rejecting sideloading. The error I received was:

-Error sideloading!-- Error: Command failed: npx @microsoft/teamsapp-cli install --xml-path (×) Error: M365.PackageServiceError: Request failed with status code 400 (tracingId:...) BadRequest: Sideloading rejected by Exchange

In my case the issue was caused by the closing curly brace } in some URLs, which invalidated the manifest.

I ran npm run validate to check the manifest and found the following errors:

Error #1: XML Schema Validation Error: The 'DefaultValue' attribute is invalid. The value 'https://localhost:3000}assets/icon-16.png' is not a valid URL.

Error #2: XML Schema Violation: The manifest does not adhere to the required XML schema definitions.

After correcting the issue, the validation result showed: The manifest is valid.

This resolved the sideloading issue, and I was able to proceed successfully.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: elvisor

79315665

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

I think the error is related to TS, could you take a look here

https://react-svgr.com/docs/next/#typescript

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

79315659

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

The problem is here:

F: for<'a> FnOnce(&'a mut Transaction<'b>) -> Fut,

You are indicating that the reference must stay alive at least until the closure finishes executing. However, the first query you run consumes the transaction reference that you pass. I suggest that you pass the transaction itself to the closure and make sure the closure returns it back.

You will also need to create an Err-Ok result struct that contains the transaction, so you can either commit or abort the transaction in the outer method.

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

79315644

Date: 2024-12-29 13:14:28
Score: 2
Natty:
Report link

Have you considered multiplying the PDE loss by a constant factor? For example, I tried this approach in one of my projects:

model.compile("adam", lr=0.003,loss_weights=[1, 100])

The second loss term here is multiplied by a factor of 100 (in my case, this term is associated with observations). This adjustment significantly improved performance.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: saluisto

79315638

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

I have reviewed your code, and as far as I know, it was working fine when I added the button to your HTML container. It is still working. You may experience some delay, possibly due to the use of external CSS or JavaScript, as they can be heavy to load. It’s better to include both the CSS and JS inline to reduce the delay

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

79315634

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

you can create .env file in root folder and then to get access .env variables write :"import.meta.env.VITE_API_KEY"

that will works

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

79315632

Date: 2024-12-29 13:04:26
Score: 4
Natty:
Report link
Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user28768185

79315629

Date: 2024-12-29 13:03:25
Score: 2
Natty:
Report link

I encountered the same error, but after uninstalling the sass package, everything started working again.

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

79315624

Date: 2024-12-29 13:00:25
Score: 2
Natty:
Report link

You can solve the issue by loading the dll from your code:

string assemblyLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

string xceedDllPath = Path.Combine(assemblyLocation, "Xceed.Wpf.Toolkit.dll");

Assembly.LoadFile(xceedDllPath);

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

79315621

Date: 2024-12-29 12:59:24
Score: 1.5
Natty:
Report link

Zendesk's Messaging widget location customisation can be achieved by in-product settings by going to admin console -> Channels > Messaging > Style tab. Screen shot of how it looks: [Messaging channel settings within zendesk with style tab opened

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

79315619

Date: 2024-12-29 12:57:23
Score: 5
Natty:
Report link

Thanks to Pieterjan’s reply, I tried implementing two-way binding. However, to fix the issue, I had to create a new component with the same logic. Here’s the change I made :

  @Output() page: EventEmitter<number> = new EventEmitter<number>();

With this:

  @Output() indexChange: EventEmitter<number> = new EventEmitter<number>();

Despite this change, it didn’t work in the old component, and I had to create a new pagination component.

I’m not sure why this change didn’t take effect in the existing component. Does anyone know why this might happen?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2): Does anyone know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pawan yadav

79315616

Date: 2024-12-29 12:56:23
Score: 0.5
Natty:
Report link

You must have come to a solution to this by now. Here is how I performed the permutation for the Present Cipher.

The permutation is stored as a list, where each input bit is mapped to the output bits.

permutation = [0,16,32,48,1,17,33,49,2,18,34,50,3,19,35,51,4,
           20,36,52,5,21,37,53,6,22,38,54,7,23,39,55,8,24,
           40,56,9,25,41,57,10,26,42,58,11,27,43,59,12,28,
           44,60,13,29,45,61,14,30,46,62,15,31,47,63]

def pLayer(data):
    """
    data is 64-bit hex
    """
    original_data = list(format(data, '#066b')[2:])
    permuted_data = list(format(data, '#066b')[2:])
    for i, j in enumerate(permutation):
        permuted_data[j] = original_data[I]
    return int("0b" + "".join(permuted_data), 2)

The code list(format(data, '#066b')[2:]) converts the hexadecimal number to a Python list of ones and zeros in string, making it easier for substitution and permutation.

Usage:

>>> a = 0xcccccccccccccccc
>>> permuted_a = pLayer(a)
>>> hex(permuted_a)
'0xffffffff00000000'

You can view my full implementation here.

I have also discussed the details of the Present cipher in my blog.

Hoping this helps :).

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

79315611

Date: 2024-12-29 12:53:22
Score: 4
Natty: 4
Report link

I am not sure if you are still looking for an answer, but if you do it might be worth checking the NestJS documentation on how you should idealy implement a mongoDB schema.

The documentation: https://docs.nestjs.com/techniques/mongodb

There they are describing a different more NestJS like way of defining the schema. It might help.

If it doesn't, please provide further information on how the AdminService and the MemberService is injecting the model/schema.

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • No code block (0.5):
  • Low reputation (1):
Posted by: LeonTM

79315583

Date: 2024-12-29 12:34:18
Score: 3
Natty:
Report link

JDK 8 or later required

yourArrayListName.forEach(e -> yourcomboboxname.addItem(e));

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

79315572

Date: 2024-12-29 12:30:17
Score: 0.5
Natty:
Report link

My problem solved by this command: flutter create .

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Free Palestine

79315563

Date: 2024-12-29 12:24:16
Score: 1
Natty:
Report link

In Angular 19, it's possible to use the mat.icon-button-overrides:

@use '@angular/material' as mat;

:host {
  @include mat.icon-button-overrides(
    (
      state-layer-size: 32px,
    )
  );
}

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

79315562

Date: 2024-12-29 12:23:16
Score: 0.5
Natty:
Report link

I’m using the Npgsql driver in a .NET application to connect to a CockroachDB instance. I set Minimum Pool Size=100 in the connection string, expecting the pool to pre-open 100 connections at application startup.

What's your expectation here exactly with regards to "application startup"? Opening a connection is a heavy, asynchronous operation, when exactly are you expecting that to occur?

Because there's no natural, implicit place for such a startup operation, as @UtlaMincykun wrote you can simply do a quick for loop and open the connections yourself wherever is suitable for you.

Reasons:
  • Blacklisted phrase (1): regards
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @UtlaMincykun
  • High reputation (-2):
Posted by: Shay Rojansky

79315559

Date: 2024-12-29 12:23:16
Score: 3.5
Natty:
Report link

In vscode/typescript,This feature is called references CodeLens and implementations CodeLens.

Unfortunately, the go plugin for vscode currently does not have similar functionality, but I found relevant discussions: https://github.com/golang/vscode-go/discussions/1735

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

79315536

Date: 2024-12-29 12:07:12
Score: 3
Natty:
Report link

you can do it by using ollama. install ollama and follow the ollama github repo to do so. they have very well described it

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

79315530

Date: 2024-12-29 12:03:11
Score: 1
Natty:
Report link

com.google.cloud:google-cloud-core requires com.google.guava:guava jar yet you have overridden Guava with a newer version. Please verify if you are using right version of guava when you override by doing mvn dependency:tree

maven repositroy for google-cloud can be found at https://repo1.maven.org/maven2/com/google/cloud/

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

79315515

Date: 2024-12-29 11:48:08
Score: 1
Natty:
Report link

SageMath has a function longest_path to do that.

sage: g = graphs.PetersenGraph()
sage: lp = g.longest_path(0,3)
print(len(lp.edges()))

9

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

79315514

Date: 2024-12-29 11:46:08
Score: 3
Natty:
Report link

This is resolved from comments. Thanks @VPfB and @user2357112. This issue was due to a misunderstanding of how decorators work in Python. The get_requests() is first called inside of the decorator as opposed to as outside of the decorate as I initially thought. The correct implementation should call status_code = func(*args, **kwargs), inspect the status_code and return the status_code.

Alternatively,@SIGHUP offered the requests module retry logic. This completely doable and works as an alternative to setting up best methods to retry requests.

Marked the answer as Community Wiki

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @VPfB
  • User mentioned (0): @user2357112
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: and

79315496

Date: 2024-12-29 11:36:05
Score: 1
Natty:
Report link

InnoDB automatically appends fields that you have as your pk to all secondary indexes.

The only exception is when you yourself specify some or all of the primary key fields in the secondary index, in any order - it does account for that and avoids duplicating them again. So no, it is not redundant, in fact it is preferred so you can control the order of indexed columns (should it be distinct from pk's) and to make RDBMS more aware of the actual capacities of the index.

Relevant blog post: https://lefred.be/content/mysql-innodb-primary-key-always-included-in-secondary-indexes-as-the-right-most-columns-or-not/

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

79315494

Date: 2024-12-29 11:35:05
Score: 2
Natty:
Report link

I found out that version 4.22.0 of tensorflow is not compatible with node 23 due to util_1.isNullOrUndefined. This util and others were removed in node 23. Solution was to downgrade node to version 22.

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

79315488

Date: 2024-12-29 11:30:04
Score: 2.5
Natty:
Report link

this might be a bit too late for the thread, but I'm using a pretty damn good tool converter.objectverse.io which actually does the job really well. They support KTX2, multichannel textures so you can keep some tex as PNG (normals) and other as WEBP or AVIFF to have best quality/speed balance. Check them out here: https://converter.objectverse.io

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

79315480

Date: 2024-12-29 11:25:02
Score: 4
Natty:
Report link
Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anand Kumar

79315471

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

MAVLink v2 provides security with signing: https://ardupilot.org/planner/docs/common-MAVLink2-signing.html

That being said - I don't think that you should rely only on this feature alone. Security should be handled by technology used to transmit packets. For example commonly used WFB-NG requires you to setup keys on both drone and ground station to work at all. If other technology is used - that technology should use similar approach.

Reasons:
  • No code block (0.5):
Posted by: Serhii Mamedov

79315458

Date: 2024-12-29 11:13:59
Score: 1
Natty:
Report link
server {
        ....
        client_max_body_size 1024M;
        ....
    }

remember to restart nginx

sudo nginx -s reload

or 

sudo nginx -s restart

Remember to restart php fpm also

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

79315456

Date: 2024-12-29 11:12:58
Score: 1
Natty:
Report link

I’d like to provide an answer (even if it’s an old question).

I always thought you could enter "Download Mode" by simply holding the Volume Down and Power button when turning on the phone. However, Samsung changed the process to the following:

  1. Connect a USB cable to a powered-on PC or Mac (it won’t work if it’s not connected to a data source). Dont put it into your phone. Not now.
  2. Turn off your phone.
  3. Press BOTH Volume Buttons (+ / -) simultaneously. (No, don´t press the Power button or any other buttons than V+ and V-)
  4. Plug the USB cable (connected to the running PC/Mac) into the powered-off phone. Again, do not press the Power button!
  5. The phone will automatically turn on and enter "Download Mode," where you’ll see the wanted options.

(Note: Maybe you must first unlock the hidden “Developer Menu” and enable “USB Debugging.” You might also need to enable “OEM Unlock,” which only becomes visible after using the phone with an active internet connection.")

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

79315447

Date: 2024-12-29 11:01:57
Score: 2.5
Natty:
Report link

you can get this error because for other column has values and this new column has no values so if you create a column at the time where where other column has value so create with default value , it will create easily

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

79315443

Date: 2024-12-29 11:00:55
Score: 10 🚩
Natty: 4.5
Report link

Did you get a solution to this? I am facing the same issue.

Reasons:
  • RegEx Blacklisted phrase (3): Did you get a solution to this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Sheena

79315439

Date: 2024-12-29 10:58:55
Score: 0.5
Natty:
Report link

You also have yum whatprovides <string> for example: yum whatprovides iptables

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Ricky Levi

79315436

Date: 2024-12-29 10:57:55
Score: 2
Natty:
Report link

The correct solution (at least in my case) wass to avoid combining async with database transactions. Transactions do not support running queries asynchronously. If you want to run I/O operations concurrently, I suggest getting rid of the transaction.

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

79315433

Date: 2024-12-29 10:55:53
Score: 8.5
Natty: 7.5
Report link

I have the same issue ... could you please identify to which file you have added this code?

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mohammad ALMalakh - Ph.D

79315431

Date: 2024-12-29 10:54:53
Score: 1
Natty:
Report link

I have managed to solve this problem by creating custom component that extends GanttView then edited the viewStartOf function as below

viewStartOf(date: GanttDate) {
    return date.startOfWeek({ weekStartsOn: 6 });
  }

You can also find more details in their github example

https://github.com/worktile/ngx-gantt/tree/master/example/src/app/gantt-custom-view

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

79315426

Date: 2024-12-29 10:51:52
Score: 2
Natty:
Report link

Use BB_GENERATE_MIRROR_TARBALLS="1" and then copy the tar to your local mirror, share and use "SOURCE_MIRROR_URL" flag to point to your mirror. This is used when you don't want to be dependent on internet for downloading files everytime you build. I prefer "--runall=fetch" flag to download all at once and then push all download to local mirror.

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

79315421

Date: 2024-12-29 10:46:51
Score: 2
Natty:
Report link

I found this is the best way for my case

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

79315415

Date: 2024-12-29 10:42:50
Score: 0.5
Natty:
Report link

app_links: ^6.3.2

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.INTERNET"/>
    <application>
        <activity>
            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" android:host="medexsepeti.com" android:pathPrefix="/" />
                <data android:scheme="https" android:host="medexsepeti.com" android:pathPrefix="/" />
            </intent-filter>
        </activity>
    </application>
</manifest>
class DeepLinkConfiguration {
  DeepLinkConfiguration();
  final appLinks = AppLinks();
  StreamSubscription<Uri>? sub;
  void initDeepLinkListener(context) async {
    sub = appLinks.uriLinkStream.listen((uri) async {
      await Future.delayed(Duration(seconds: 4));
      _handleDeepLink(uri,context);
    });
  }

  Future<void> _handleDeepLink(uri,context) async {
    final productId = uri.pathSegments.last;
    // Code to redirect
  }

ON MAIN INIT STATE

@override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
      _deepLinkConfiguration = DeepLinkConfiguration();
      _deepLinkConfiguration.initDeepLinkListener(context);
    });
  }

But remember you can only test deep link if you build your app with release mode, and if you publish it on playstore add playstore SHA-1

on

enter image description here

may be available on

https://www.medexsepeti.com/.well-known/assetlinks.json

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

79315401

Date: 2024-12-29 10:33:46
Score: 4
Natty:
Report link

Thank you @hamzasgd.

Converted your approach in laravel 10 and used Signify/Shopify package to achieve the similar result. Adding here for future references:

Shopify Files API Create Flow in Laravel

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @hamzasgd
  • Low reputation (1):
Posted by: lalit bafna

79315400

Date: 2024-12-29 10:32:46
Score: 2.5
Natty:
Report link

i typically use this command:
conda init --reverse --all

the reference:
https://docs.anaconda.com/anaconda/uninstall/

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

79315388

Date: 2024-12-29 10:26:44
Score: 1.5
Natty:
Report link

Yes, you can pass flags to gcsfuse using the volume attribute mountOptions in the yaml as described in this section of the docs.

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

79315383

Date: 2024-12-29 10:20:43
Score: 1
Natty:
Report link

It looks like you have not initialized @user instance variable and please find the solution below:

Intead of this:

def new
end

Use this

def new
  @user = User.new
end
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sonu Singh

79315379

Date: 2024-12-29 10:17:43
Score: 2
Natty:
Report link

The problem was because of this line:form = AddToCartProductForm(request) I should have written this instead : form = AddToCartProductForm(request.**POST**)

I had to take the POST from the request and give it to the AddToCartProductForm class.

Anyway, thank you.

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: Aminsnaie

79315378

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

It was my mistake, but posting the answer for anyone else's future reference.

Follow as mentioned in here https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account/subscribed_apps/ to subscribe the with the WABA.

I got the issue resolved by doing the same.

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

79315360

Date: 2024-12-29 10:07:40
Score: 2
Natty:
Report link
  1. High-resolution storage : Securely manage large video files.
  2. Metadata tagging : Simplify organization and acquisition.
  3. Access control : Protect content with user-specific permissions.
  4. Streaming and preview : Enable live playback on the system.
  5. Integration : Seamless workflow with editing tools and platforms.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: CHIRANJEEVI TAMMANA

79315357

Date: 2024-12-29 10:03:39
Score: 3
Natty:
Report link

you should run "bitbake linux-variscite" to build just the patched kernel and dtb first. You can also do a devshell and ensure the patch changes takes place.

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

79315356

Date: 2024-12-29 10:02:39
Score: 3
Natty:
Report link

Once remove .vite folder from node_modules and re run the npm run dev or npm start command

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

79315343

Date: 2024-12-29 09:53:37
Score: 3.5
Natty:
Report link

Try to rename your root home page to index. It did work for me!

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

79315342

Date: 2024-12-29 09:52:37
Score: 3.5
Natty:
Report link

your solution is perfect. May I ask how to automatically add the recipients, subject and body of the email too?

Thanks for any replies

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): May I ask
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Max Justin

79315325

Date: 2024-12-29 09:39:34
Score: 4
Natty:
Report link

Is there a better Tutorial for it. I really dont know what to do.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: Indiana Stones

79315317

Date: 2024-12-29 09:34:33
Score: 3
Natty:
Report link

Incase using latest version of tensorflow then try like -

from tensorflow import keras

from keras.api.layers import Dense

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

79315314

Date: 2024-12-29 09:32:32
Score: 3.5
Natty:
Report link

after I watch for avaliable styles, It shows an error

import matplotlib.pyplot as plt
print(plt.style.avaliable)
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
   print(plt.style.avaliable)
         ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'matplotlib.style' has no attribute 'avaliable'. 
Did you mean: 'available'?

Please help

Reasons:
  • RegEx Blacklisted phrase (3): Please help
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Владимир Ковалев

79315312

Date: 2024-12-29 09:31:32
Score: 3
Natty:
Report link

To my understanding you are to put Bearer before the API key. Refer to this for more details: 401 unauthorized with Gemini

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

79315305

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

Container( color: Colors.white, height: 1, width: 100, );

Reasons:
  • Low length (1.5):
  • No code block (0.5):
Posted by: Maryam Azhdari

79315302

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

I think the best one is GROBID

GROBID: Advanced tool for extracting structured content from PDFs. Handles complex layouts, multi-page tables.

Camelot> It is best for detecting multiple tables and handling multi-page tables with custom logic. GROBID is the most robust, but setup and use are more complex.

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

79315293

Date: 2024-12-29 09:17:29
Score: 2.5
Natty:
Report link

In fact, it is better to force savefig to recompute the bounding box, so all the text is shown; like this:

pdf.savefig(bbox_inches='tight')

Then, you can add a very long text or several lines as "a paragraph". For example:

txt = 'this is an example with several lines' * 6 + '\n and another line' * 7

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

79315289

Date: 2024-12-29 09:15:28
Score: 1.5
Natty:
Report link

I wanted to try NFC for a while and i started off by interfacing PN532 NFC RFID Read / Write Module V3 Kit with beaglebone black Link-From-Where-I-Bought-This-Kit

Initially, I connected this kit with BBB and I tried enabling this through DTS. Plus also enabled NFC though menuconfig. But couldn't get image booted up. It hung at place where pn532_i2c driver was getting loaded

Here are the changes i did

OS-Release-info

DTS changes i did

i2c-1-pins DeviceTree-Updates

I had ensured that on i2cdetect, I was able to see this NFC kit detected

After a while i started exploring, libnfc and i had good success with this, i had this libnfc cloned on my BBB and compiled using steps below

autoreconf -vis ./configure --with-drivers=pn532_i2c ./configure --prefix=/usr --sysconfdir=/etc --with-drivers=pn532_i2c make make install

libnfc that i used is here libnfc

updated libnfc.conf.sample as below and moved it to /etc/nfc/

libnfc.conf

I was able to get NFC up and running, its important to update conf in right way to get this module up and running. Ensure you update device.name and device.connstring that matches with your hardware connections

Results i had

Setup nfc-list-output nfc-poll-output

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

79315286

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

Spark 3.4.4 officially supported Java version are 8/11/17. Please refer following quotes from Spark 3.4.4 documentation:

Spark runs on Java 8/11/17, Scala 2.12/2.13, Python 3.7+, and R 3.5+. Python 3.7 support is deprecated as of Spark 3.4.0. Java 8 prior to version 8u362 support is deprecated as of Spark 3.4.0. When using the Scala API, it is necessary for applications to use the same version of Scala that Spark was compiled for. For example, when using Scala 2.13, use Spark compiled for 2.13, and compile code/applications for Scala 2.13 as well.

Please refer documentation link at https://archive.apache.org/dist/spark/docs/3.4.4/

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

79315281

Date: 2024-12-29 09:10:27
Score: 1
Natty:
Report link

There's no way you're still waiting for an answer 11 years later, but for anyone else with the same question... I'd recommend using Flask on the server to listen for HTTP requests. Flask is very quick to get started. But you'll need to write a helper function to convert the json data in the incoming request to arguments that you pass into the server functions.

I actually made a package that does exactly what you're asking. It lets you call server functions from the client: https://github.com/mariusfacktor/forthright

Check out the example in the readme and it should be straight forward to understand.

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

79315275

Date: 2024-12-29 09:09:27
Score: 2
Natty:
Report link

For your not-working solution, one of the case I found that doesn't make sense is when your input is 10. In this case, if you step through your program, you will find your output is 1, but the correct output should be 2. This is also why you don't pass the secret test case for group 1, which is meant for testing when there is no remaining block left.

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

79315273

Date: 2024-12-29 09:07:27
Score: 3
Natty:
Report link

I finally found it after many tries, I was searching for "editorGroupHeader.tabsBackground" :

enter image description here

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

79315272

Date: 2024-12-29 09:07:27
Score: 2
Natty:
Report link

I had misnamed the variable in the post. I added the column is_announcement in the SQL query, but I named it is_announcements in the post class.

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

79315266

Date: 2024-12-29 09:03:26
Score: 1
Natty:
Report link

In Ubuntu:

$> sudo apt install libgirepository1.0-dev 
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: arrmani88

79315264

Date: 2024-12-29 09:01:25
Score: 2
Natty:
Report link

Please see the documentation for how to connect the telegram wallet and obtain all needed info - https://docs.ton.org/v3/guidelines/ton-connect/overview

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

79315261

Date: 2024-12-29 09:01:25
Score: 4
Natty:
Report link

(Blowing the dust off this old one, as all similar google community threads are locked)

Having the same issue here, with the following setup:

Private Gmail with external domains that just forward to this gmail account using cloudflare. I like to send myself mails for reasons.

Emails to all these external accounts won't show up in inbox, but in sent. Pretty much like https://stackoverflow.com/a/52534520/635876 said - gmail recognizes the mail coming from and going to the same account and is not showing it in inbox.

I was able to get them into my inbox by adding an explicit filter for those mail addresses, setting to 'not spam, mark important, categorize as general'.

They show up as read, but that's fine for me as my inbox is kinda' my todo list.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): Having the same issue
  • Low reputation (0.5):
Posted by: Max

79315260

Date: 2024-12-29 09:01:24
Score: 2
Natty:
Report link

Did you try enable User permission stuff? Go to Users & Permissions plugin > User-permissions >

and enable these chechboxes.

Note: Be sure these configuration is ok for your application structure and logic. Maybe you don't wanna give user details. Check, happy coding.

enter image description here Strapi User Permissions

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Whitelisted phrase (-2): Did you try
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: compbyter

79315251

Date: 2024-12-29 08:53:23
Score: 3.5
Natty:
Report link

you can redirect websites from Shopify inbuild functionality bellow is URL Shopify redirect STEP BY STEP : How to Create Redirect Rules in Shopify (Step-by-Step Guide)

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

79315245

Date: 2024-12-29 08:51:23
Score: 2.5
Natty:
Report link

After some trial and error i was able to get the expected behavior of codeblock

Answer : you have to write codeblock one after other without any text in between. (refer image below)

markdown img on leetcode

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

79315229

Date: 2024-12-29 08:43:21
Score: 1.5
Natty:
Report link

The answer is to replace innerText with innerXml in the code snippet; ie.

 findElements("content").first.innerXml
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: sigjak

79315219

Date: 2024-12-29 08:40:19
Score: 10 🚩
Natty: 6
Report link

@user144131 @user20271414

Hi, I'm trying to connect to https://xapi.xtb.com:5124 by Postman and got an error "socket hang up"

Did you ever found this problem before ?

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever found this problem
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • User mentioned (1): @user144131
  • User mentioned (0): @user20271414
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Mark

79315218

Date: 2024-12-29 08:39:18
Score: 4
Natty: 5
Report link

hello mester panahi thank you for helping me

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mahdi.y

79315217

Date: 2024-12-29 08:39:18
Score: 3.5
Natty:
Report link

i forget my i'd name and password in wordpress login

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

79315215

Date: 2024-12-29 08:37:17
Score: 1
Natty:
Report link

Maybe count the number of occurrences of each item in the set of the list:

def issublist(lin, lout):
inset = set(lin)
for item in inset:
    if lin.count(item) > lout.count(item):
        return False
return True

I think it works, at least for your test cases.

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

79315205

Date: 2024-12-29 08:32:16
Score: 1
Natty:
Report link

The code i wrote for my program.you can try doing this inside the button container CSS

align-items: center;
justify-content: center;

It is working on VScode, and it allows them to stay in the middle even when the window is resized.

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

79315199

Date: 2024-12-29 08:32:16
Score: 3
Natty:
Report link

Hope you are doing well. here is my script:

import dicom2jpg
dicom_img_01 = "C:/Users/PACS/dir_a/dcm-2.dcm"
export_location1 = "C:/Users/PACS/dir_b"

# convert single DICOM file to jpg format
dicom2jpg.dicom2jpg(dicom_img_01,target_root=export_location1)

I use your script but following error appeared:


concurrent.futures.process.BrokenProcessPool: A process in the 
process pool was terminated abruptly 
while the future was running or pending.

Would you help to let me know how to use your code? any settings before using????

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

79315189

Date: 2024-12-29 08:28:15
Score: 1
Natty:
Report link
#set($percent = (($totalSponsored*1.0) / ($totalAppliesAllJobs*1.0))*100)

In the above way it will become decimal/decimal which gives the ratio. Multiple it with 100 for percentage.

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

79315182

Date: 2024-12-29 08:24:14
Score: 4
Natty: 5
Report link

acw1668, this worked beautifully, thank you!

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

79315179

Date: 2024-12-29 08:23:13
Score: 1
Natty:
Report link

chatGPT says option 2 is better

Option 2 is typically better because it preserves the existing database schema, data, and migration history, ensuring consistency. You simply dump the full database (schema + data) from the old server and restore it on the new one, then update Django settings to connect to the new database. This approach avoids complications with regenerating migrations and ensures Django recognizes the current database state.

Option 1 involves deleting migration files, recreating the schema with makemigrations and migrate, and importing only the data. While it provides a clean schema, it can be error-prone, especially for complex data relationships, and removes migration history, which may cause tracking issues later.

Choose Option 2 for established projects with significant data and synchronized migrations. Use Option 1 only if the migration files are problematic or outdated, and you’re confident in handling potential data integrity issues.

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

79315177

Date: 2024-12-29 08:21:12
Score: 2
Natty:
Report link

In my opinion, move project with migration files is better, because you copy all lifecycle of developing, then you can just update database using existing migrations. Also, you will have option to rollback to previous migration on new database or do retrospective on bugs using migrations. If you make migration on moved database you will lose those oportunities

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

79315171

Date: 2024-12-29 08:19:11
Score: 4.5
Natty: 4
Report link

A NEW HAND TOUCHES THE BEACON!

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

79315168

Date: 2024-12-29 08:16:11
Score: 1
Natty:
Report link

In case of other people who might find this question.

Adding _C.OUTPUT_DIR will change the directory where the model files are written.

Please read the following doc for more details: https://detectron2.readthedocs.io/en/latest/modules/config.html enter image description here

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

79315161

Date: 2024-12-29 08:10:09
Score: 3.5
Natty:
Report link

I have also experience the same issue, i just install the crystalReport run time file and work for me . you can take help from (https://www.tektutorialshub.com/crystal-reports/how-to-download-and-install-crystal-report-runtime/)

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

79315157

Date: 2024-12-29 08:09:09
Score: 3.5
Natty:
Report link

Takes you to the current page.

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