Quantcast
Channel: User blacktide - Stack Overflow
Browsing all 44 articles
Browse latest View live
↧

Comment by blacktide on numpy build fail in M1 Big sur 11.1

It failed for me on the first time. I tried it again and it downloaded numpy instead of compiling it and it succeeded. Also works with pyenv on 3.8 and 3.9. pyenv with 3.12 still fails.

View Article


Comment by blacktide on Bancommand discord api (JDA5) gives an error

You have a NullPointerException on line 14 in BanCommand.java. Make sure you're not calling a method on a potentially null object (like a missing/optional parameter).

View Article

Comment by blacktide on Use the redis lock

Yes, Redis lock is a good solution to the problem. ShedLock is also commonly used.

View Article

Comment by blacktide on Syntax error: "(" unexpected when running Docker...

This question may be helpful. You might need to add #!/bin/sh as the first line in your start script. Or try running it with bash instead of sh.

View Article

Comment by blacktide on Unit testing c++. How to test private members?

The updated link for the previous comment is here now: Testing Private Code.

View Article


Comment by blacktide on Kotlin -> Java API call is not using the method I...

In Kotlin Array<Int> is a Integer[] under the hood, and IntArray is an int[] (more info here). Not sure if it will help in this case but does changing c to c.toIntArray() on the last line solve...

View Article

Comment by blacktide on Installing JavaFX (with no java knowledge whatsoever)

The Zulu JDK builds have JavaFX built into them, just download the version for your OS.

View Article

Comment by blacktide on How to convert List to

You can use entry.getValue().toString() or String.valueOf(entry.getValue()) instead of (String) entry.getValue().

View Article


Comment by blacktide on Access token and API action

I think your question is unclear, what exactly are you having an issue with? Are you getting a specific error?

View Article


Comment by blacktide on Hitachi Content Platform (HCP) S3 - How to I disable...

Thanks for your comment @Sudhi, this doesn't work either. I've tried deleting versions but it also doesn't work. I actually met with Hitachi on this and what I'm trying to do is not possible. All...

View Article

Comment by blacktide on java.lang.NoClassDefFoundError:...

Can you try adding the docker-java-api dependency to your pom.xml as well and see if that resolves the issue? Just from a quick glance it seems that the docker-java dependency doesn't transitively...

View Article

Comment by blacktide on CORS Spring Boot

FYI for others: for the addMapping call, you have to use /** to enable CORS for all endpoints. Using * or ** won't work.

View Article

Comment by blacktide on Git commit editor

The Git editor uses Vim by default. You can check this answer for details on how to exit Vim (press the i key to insert text) and this answer for changing the editor.

View Article


Answer by blacktide for How to set project.version by passing version...

I've found this to be the easiest and cleanest way, without requiring a gradle.properties file or changing the version variable name.In build.gradle:// Note - there is intentionally no equals sign...

View Article

Answer by blacktide for How to scale up all OpenShift pods before scaling...

You can combine the rollout strategy with readiness checks with an initial delay to ensure that all the new pods have time to start up before the old ones are all shut down at the same time.In the case...

View Article


In Vim, how can I delete everything between quotes including the quotes?

For example, in the following:Testing "deleting" within quotesWith the cursor inside of deleting, how can I delete the text within the quotes and include the quotes, leaving:Testing within quotes

View Article

Answer by blacktide for In Vim, how can I delete everything between quotes...

You can use the following sequence to delete everything including the quotes:da"Keep in mind this only works on a single line, and will remove any trailing spaces after the last quote.As pointed out by...

View Article


Answer by blacktide for Spring Boot - Running one specific background job per...

What I need is to deploy separate parts of application (like 1 queue listener only) per pod in the cloud yet keep the monolith code architecture.I agree with @jacky-neo's answer in terms of the...

View Article

Image may be NSFW.
Clik here to view.

Answer by blacktide for Kubernetes deployment error with Java/Micronaut:...

Your Dockerfile is exposing port 8002 (EXPOSE 8002), but your app is started on port 8080.Additionally, your Kubernetes configuration is pointing to port 80 of your pod.You should set it so that all...

View Article

Answer by blacktide for Schedule CronJob for last day of the month using...

You can use the date command to control whether or not to execute another script or command:# Tested using GNU coreutils date 8.30/bin/sh -c "[ $(date -d +1day +%d) -eq 1 ] && echo 'It is the...

View Article
Browsing all 44 articles
Browse latest View live