79196608

Date: 2024-11-17 06:32:36
Score: 0.5
Natty:
Report link

To add to answer from Christopher Orr
For second option run following in terminal in android studio

c:\Users\<your-username-in-windows>\AppData\Local\Android\Sdk\emulator\emulator.exe -list-avds 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user1371666

79196605

Date: 2024-11-17 06:30:36
Score: 2
Natty:
Report link

I have same issue. I fixed it by copying the file HiQPdf.dep file in "bin" folder.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same issue
  • Single line (0.5):
  • High reputation (-1):
Posted by: SHEKHAR SHETE

79196604

Date: 2024-11-17 06:30:36
Score: 1.5
Natty:
Report link

We can monitor both AWS and On-Prem using Zabbix.

Solution 1: We can use AWS Template by Zabbix, It Available from zabbix 6.0 and above.

What Services can be monitored?

  1. EC2 instances
  2. S3 buckets
  3. RDS

What Metrics? (Its uses AWS EC2 monitor metrics)

  1. CPU
  2. CPU credits
  3. Memory
  4. Volume
  5. Network

How to configure?

Using AWS access key and Secret Key.

More About: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/cloud/AWS/aws_http/README.md?at=refs%2Fheads%2Frelease%2F7.0

Solution 2:

  1. Install Zabbix agent on (Remote) client machines.
  2. Install Zabbix-proxy on same network.
  3. Now Allow only Zabbix-proxy host to connect to your Zabbix-server network. (instead of allowing all remote endpoints)

More About: https://www.zabbix.com/documentation/current/en/manual/concepts/proxy

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Karthick Dkk

79196601

Date: 2024-11-17 06:25:34
Score: 4.5
Natty:
Report link

I solve my issue using custom base query which check if there is token, if not, it will fetch token first, then customBaseQuery continue to fetch data. @Drew Reese Thank you very much for you help and hints.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Drew
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jakub Husařík

79196598

Date: 2024-11-17 06:22:33
Score: 2
Natty:
Report link

The error occurs because Azure CDN requires a valid CNAME record pointing your domain (e.g., contoso.com) to the CDN endpoint (cdn-name.azureedge.net) before allowing you to associate the domain. However, contoso.com (apex or root domain) cannot directly have a CNAME record due to DNS restrictions. Root domains cannot use CNAME records but can use ALIAS/ANAME.

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

79196591

Date: 2024-11-17 06:15:32
Score: 2
Natty:
Report link

Extremely late to the party but, for what it's worth, just in case or if someone else bumps into the thread: What you're looking for is: fixedOverflowWidgets option. The issue is css-related.

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

79196588

Date: 2024-11-17 06:14:31
Score: 1
Natty:
Report link

When you include stdio.h, it provides declarations of functions like printf, but the actual implementations are precompiled in the C standard library (e.g., glibc) as binary files like libc.so, located in directories like /lib or /usr/lib. These implementations are written in source files (e.g., stdio.c) within the glibc source code, which is not installed by default but can be downloaded separately. During compilation, gcc links your code to this library, so there is no need for a visible stdio.c on your system.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you in
  • Low reputation (1):
Posted by: Urooz Fatima

79196583

Date: 2024-11-17 06:11:31
Score: 1
Natty:
Report link

Verify the following Spark configuration properties:

  1. spark.sql.adaptive.skewJoin.enabled (default: true): Enables or disables adaptive skew join handling.
  2. spark.sql.adaptive.skewJoin.skewedPartitionFactor (default: 5): A multiplier used to determine if a partition is skewed. A partition is considered skewed if its size is more than 5 times the median partition size.
  3. spark.sql.adaptive.skewJoin.skewedPartitionThresholdInBytes (default: 256MB): A minimum size threshold for a partition to be considered skewed.

A partition is identified as skewed when: Its size exceeds the product of the skewedPartitionFactor and the median partition size. Its size is greater than the skewedPartitionThresholdInBytes.

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

79196582

Date: 2024-11-17 06:10:30
Score: 3.5
Natty:
Report link

Atleast for a quick solution, remove the 'inplace = True'.

See this other post for reference or Pandas documentation on set_index(). StackOverflowQuestion

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

79196580

Date: 2024-11-17 06:09:30
Score: 3.5
Natty:
Report link

The answers here do not include a solution for updating the database so the move will only be there while the view is active.

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

79196577

Date: 2024-11-17 06:04:29
Score: 2
Natty:
Report link

Use Navigate if: You need automatic or conditional navigation during the render process (e.g., redirection after successful login etc.).

Use useNavigate if: You need navigation to occur in response to user actions or events (e.g., button click, form submission, or similar interactive events).

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

79196570

Date: 2024-11-17 05:56:27
Score: 3
Natty:
Report link

Main menu Value if .else "company lone x " Info.find Next ("b") K=r²×m⅖×!¼

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

79196567

Date: 2024-11-17 05:54:27
Score: 1.5
Natty:
Report link

When a processor is interrupted while executing a jump instruction, the address of the next instruction after the jump (not the address where the jump is supposed to go) is typically saved to the stack or the link register (depending on the architecture). Here's why:

  1. Interrupt Handling Basics

When an interrupt occurs, the processor must save the current execution state so that it can resume execution after handling the interrupt. The saved state includes the return address (the address of the instruction where execution will resume after the interrupt).

  1. Behavior with a Jump Instruction

A jump instruction modifies the program counter (PC) to a new target address. If the interrupt occurs while the jump instruction is being processed: The return address saved on the stack (or link register) is the address of the next instruction after the jump instruction. This ensures that once the interrupt service routine (ISR) is completed, the processor resumes correctly by re-executing the jump if needed or continuing execution as intended.

  1. Why the Address After the Jump?

Saving the address after the jump ensures the state of the program flow is preserved. Interrupts are typically asynchronous, meaning they may not be precisely synchronized with the execution stages of an instruction. By the time the interrupt is handled, the jump may already have been partially or fully executed.

  1. Examples in Common Architectures

ARM Architecture:

In ARM state, the return address is generally the address of the instruction after the one being executed when the interrupt occurred, saved in the link register (LR). x86 Architecture:

In x86 processors, the current program counter (instruction pointer, EIP/RIP) is pushed onto the stack, which contains the address of the next instruction to execute.

Summary:

The processor saves the address of the instruction after the jump to the stack (or link register) during an interrupt. This ensures proper resumption of execution, preserving program flow integrity.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When a
  • Low reputation (1):
Posted by: Barath Kumar. S

79196566

Date: 2024-11-17 05:54:27
Score: 2
Natty:
Report link

I want to add to code given by VelocityPulse
I found that following was required in manifest section of AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Also you need to add following

val policy = ThreadPolicy.Builder().permitAll().build()
StrictMode.setThreadPolicy(policy)

just after 'super.onCreate(savedInstanceState)' in 'override fun onCreate(savedInstanceState: Bundle?)'

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: user1371666

79196559

Date: 2024-11-17 05:48:25
Score: 1
Natty:
Report link

I had the same problem before when I used Terraform to create the ACA, after 3 monthes of investigation with microsoft we end up finding that terraform set the min scale to null this cause the container to scale down to min 1 and the UI was alwasys showing this null and zero

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: asem mokllati

79196557

Date: 2024-11-17 05:44:25
Score: 3.5
Natty:
Report link

Sorry, V does not support unions, but u can use structs !

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

79196554

Date: 2024-11-17 05:40:24
Score: 1
Natty:
Report link

In the AppHost project go to the Properties folder, then open launchSettings.json and add this line to the environmentVariables.

"ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true"

Your launchSettings.json should become like this : enter image description here

Now you can run your Aspire AppHost project as well.
For more information read here

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

79196552

Date: 2024-11-17 05:37:23
Score: 0.5
Natty:
Report link

The issue is very simple, Let me break down what is happening here. So, when you call http://localhost:5001/oWBI, this matches with /:id route syntax. So in order to fix this issue you would have to change the order of the route definitions, if you do that this will fix your problem.

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

79196546

Date: 2024-11-17 05:30:21
Score: 2.5
Natty:
Report link

The issue arises because MongoDB expects valid JSON and BSON structures during the import, and there are a few syntax and data-type issues in your input.And another thing is, Strings like "1728714859000" will not be interpreted correctly as timestamps.Hope this solves your problem

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

79196544

Date: 2024-11-17 05:27:21
Score: 0.5
Natty:
Report link

CHECKED EXCEPTION:

Basically Checked Exception are the exception, which actually occurs when we are dealing with any resources, like File,Database,Network etc.So,during loading another class for any purpose like when we use Class.forName(String ClassName) for dynamically load the Driver class at runtime during connection of database or any other purpose we are dealing with another class , which acts as a resource for our class and another one is when we use File for write or read some data the file also is a resource so basically in my observation when we handling with resources then they throws checked exception which we need to catch explicitly by try-catch block or after method declaration we can write with throws which will be handle by JVM's default exception handler.

And , another thing all the checked exception are directly subclass of either java.lang.Exception or java.lang.Throwable

Unchecked Exception

Unchecked Exception are sub-class of RuntimeException class.this is the way to identify unchecked exception.An Unchecked exception is rare and most of the the time these are not linked with any resource . These are directly handled by default exception handler by jvm . it is upto the programmer to handle the exception. if we do not handle exception application will terminate abnormally throwing that perticular exception. if we handle it then program throws exception, we can provide user-friendly message to user related to exception.because our client might a non technical person if he is dividing a number by 0 and we provide him java.lang.ArithmeticException may be he could not understand ,by providing user-friendly message "Like Dont divide any number by 0" it would be better approach.so it is reccomended to catch every possible exception(whether checked or unchecked ) in our application to provide user-friendly message and a normal termination.

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

79196538

Date: 2024-11-17 05:20:20
Score: 1
Natty:
Report link

I had a similar problem as OP. I was writing a package that contained a function (tryCapture(what, args, quote)) that should wrap any other function (what), pass args to what, and capture either the result of what or any error. In either case, any warnings should also be captured. The kicker, tho, was making sure any error and warnings reported a full stack trace.

@Martin Morgan's answer proved to be what I needed to solve the problem.

Those familiar with do.call() (which wraps a function and passes a list of arguments) will note that I borrowed the parameter semantics -- i.e., what is the function to be wrapped, args is a named list of arguments, and quote determines if the arguments are quoted.

The motivation was to place tryCapture() in a script (say, foo.R) that could be called from the command line using Rscript. This way, any function would be passed to what could be executed in a non-interactive production environment knowing that all errors and warnings would be trapped in a way that the error and/or warnings and their stack traces could written to a log file or reported to a webhook or database.

Within tryCapture(what, args, quote), my approach was to wrap do.call(what, args, quote) within withCallingHandlers(). This way, the associated warning handler can add the stack trace to the $message member of any warning, save the modified warning, and resume processing. The associated error handler can add the stack trace to the $message member of any error and then throw the modified error.

By wrapping the withCallingHandlers() in a tryCatch() any error from what (now including the stack trace in the $message member of the error) can be captured and returned. Thus, the tryCatch() will return either the result of what (if there is no error) or the error generated by what, (modified to include the stack trace in the associated error message).

Finally, the result from the tryCatch() can be combined in a list with the stored warnings and the list is returned from tryCapture()

Here is the code:

tryCapture <- function(what, args = list, quote = FALSE) {
  warning_list <- list()

  store_warning_with_trace <- function(w) {
    # the `head()` call removes four calls that represent error handling, so that
    # the call list ends with the call that created the warning
    calls <- head(sys.calls(), -4)
    w$message <- makeConditionMessage(w$message, calls)
    warning_list <<- c(warning_list, list(w))
    invokeRestart("muffleWarning")
  }

  throw_error_with_trace <- function(e) {
    # the `head()` call removes a call that represent error handling, so that
    # the call list ends with the call that created the warning
    calls <- head(sys.calls(), -1)
    e$message <- makeConditionMessage(e$message, calls)
    # raise the modified error to call the `error =` function in tryCatch()
    stop(e)
  }

  echo_error <- function(e) e

  result <-
    tryCatch (
      withCallingHandlers(
        {
          do.call(what, args, quote)
        },
        error = throw_error_with_trace,
        warning = store_warning_with_trace
      ),
      error = echo_error
    )

  list(result = result, warnings = warning_list)
}

To test the approach, we can imagine a set of dependent functions that would create a stack trace similar to OP's that might look like this:

x <- function(characters, numeric) {
  y(characters, numeric)
}

y <- function(chars, nums) {
  z(chars, nums)
}

z <- function(cs, n) {
  as.numeric(cs) + n
}

If we call x(c("0", "1"), 2), z() should return c(2,3) with no warnings or errors.

If we call x(c("a", "1"), 2), z() should return c(NA, 3), but with a warning because as.numeric(v) will return c(NA, 1) with a warning about NA's resulting from coercion to a numeric.

If we call x(c("a", "1", "text"), z() should return first the warning regarding NA's resulting from coercion to a numeric, followed by an error because "text" can't be added to c(NA, 1)

Here is tryCapture() in action, with the three test cases described above:

> tryCapture(x, list(characters = c("0", "1"), numeric = 2))
$result
[1] 2 3

$warnings
list()

> tryCapture(x, list(characters = c("a", "1"), numeric = 2))
$result
[1] NA  3

$warnings
$warnings[[1]]
<simpleWarning in z(chars, nums): NAs introduced by coercion
  Stack trace:
    tryCapture(x, list(characters = c("a", "1"), numeric = 2))
    result <-
        tryCatch (
          withCallingHandlers(
            {
              do.call(what, args, quote)
            },
            error = throw_error_with_trace,
            warning = store_warning_with_trace
          ),
          error = echo_error
        )
    tryCatchList(expr, classes, parentenv, handlers)
    tryCatchOne(expr, names, parentenv, handlers[[1L]])
    doTryCatch(return(expr), name, parentenv, handler)
    result <-
        tryCatch (
          withCallingHandlers(
            {
              do.call(what, args, quote)
            },
            error = throw_error_with_trace,
            warning = store_warning_with_trace
          ),
          error = echo_error
        )
    do.call(what, args, quote)
    (function(characters, numeric) {y(characters, numeric)})(characters = c("a", 
    "1"), numeric = 2)
    y(characters, numeric)
    z(chars, nums)
    as.numeric(cs) + n>


> tryCapture(x, list(characters = c("a", "1"), numeric = "a"))
$result
<simpleError in as.numeric(cs) + n: non-numeric argument to binary operator
  Stack trace:
    tryCapture(x, list(characters = c("a", "1"), numeric = "a"))
    result <-
        tryCatch (
          withCallingHandlers(
            {
              do.call(what, args, quote)
            },
            error = throw_error_with_trace,
            warning = store_warning_with_trace
          ),
          error = echo_error
        )
    tryCatchList(expr, classes, parentenv, handlers)
    tryCatchOne(expr, names, parentenv, handlers[[1L]])
    doTryCatch(return(expr), name, parentenv, handler)
    result <-
        tryCatch (
          withCallingHandlers(
            {
              do.call(what, args, quote)
            },
            error = throw_error_with_trace,
            warning = store_warning_with_trace
          ),
          error = echo_error
        )
    do.call(what, args, quote)
    (function(characters, numeric) {y(characters, numeric)})(characters = c("a", 
    "1"), numeric = "a")
    y(characters, numeric)
    z(chars, nums)
    as.numeric(cs) + n>

$warnings
$warnings[[1]]
<simpleWarning in z(chars, nums): NAs introduced by coercion
  Stack trace:
    tryCapture(x, list(characters = c("a", "1"), numeric = "a"))
    result <-
        tryCatch (
          withCallingHandlers(
            {
              do.call(what, args, quote)
            },
            error = throw_error_with_trace,
            warning = store_warning_with_trace
          ),
          error = echo_error
        )
    tryCatchList(expr, classes, parentenv, handlers)
    tryCatchOne(expr, names, parentenv, handlers[[1L]])
    doTryCatch(return(expr), name, parentenv, handler)
    result <-
        tryCatch (
          withCallingHandlers(
            {
              do.call(what, args, quote)
            },
            error = throw_error_with_trace,
            warning = store_warning_with_trace
          ),
          error = echo_error
        )
    do.call(what, args, quote)
    (function(characters, numeric) {y(characters, numeric)})(characters = c("a", 
    "1"), numeric = "a")
    y(characters, numeric)
    z(chars, nums)
    as.numeric(cs) + n>
Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): what could be
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Martin
Posted by: Geoffrey Poole

79196525

Date: 2024-11-17 05:02:17
Score: 0.5
Natty:
Report link

Ensure Your Data is Properly Structured Your data should include the following: Latitude and longitude coordinates for the ports (already done). A time field indicating the year (or exact time period) of the data. Traffic flow values for each port and year. Create a Time-Enabled Layer. In ArcGIS Pro, right-click on your feature layer and choose Properties. Navigate to the Time tab. Enable Time and configure it to use the time field in your data. Use Graduated Symbols for Circle Sizes .Open the Symbology pane for your layer. Choose Graduated Symbols as the symbology type. Set the traffic flow value field (e.g., TrafficFlow) as the value field. Define the size range for the circles based on the range of your traffic flow data. Dynamic Circle Size Changes Over Time. Ensure that the time field is enabled as described in Step 2. The time-enabled layer will now animate based on the time field, and the graduated symbol sizes will adjust according to the traffic flow values for the respective time period. Configure the Time Slider. Open the Time Slider tool in ArcGIS Pro. Use the slider to configure how the animation progresses (e.g., interval, playback speed). Preview the animation to ensure the circles grow/shrink as expected over time. Export the Time-Lapse Animation Once satisfied with the animation, go to the View tab and select Animation. Use the Animation Timeline to refine playback. Export the animation as a video or GIF to share your results. Common Issues to Check: Ensure the Traffic Flow column is numeric and correctly linked to each year. Confirm that the symbology is set to dynamically scale based on the traffic flow field. Verify that the time field is properly formatted. If you follow these steps and your circles still don't change size, double-check that the traffic flow data is properly linked to the time periods. The graduated symbol ranges match the range of your data.

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

79196518

Date: 2024-11-17 04:57:16
Score: 4.5
Natty: 4.5
Report link

Simple fix for me

Project Settings

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

79196510

Date: 2024-11-17 04:51:14
Score: 2
Natty:
Report link

Fixed. Cargo expects the crates to be uploaded under /crates directory in your repository. The issue was "include pattern" for permission target of my user in Artifactory. Setting it to crates/** worked.

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

79196508

Date: 2024-11-17 04:50:14
Score: 0.5
Natty:
Report link

Backend User Permission Issue

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

79196506

Date: 2024-11-17 04:49:13
Score: 5
Natty:
Report link

Loving this, I also have a .cfg file that I'm trying to implement.. Super helpful from my router.. having backups config files, that I have to decipher and rewrite in order to use. Thanks for your advice AKX, sadly it's waaaay less effort to reconfigure the unreadable settings by hand.. I love computer sciences, but routers and printers make me long for the old days when we humans where just chillin in caves.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks for your advice
  • No code block (0.5):
  • Low reputation (1):
Posted by: Castor_Z3

79196504

Date: 2024-11-17 04:47:11
Score: 6 🚩
Natty: 6
Report link

I am running into this exact issue. While doing an erase I see a black line created along my drag path. Once my path is complete the area along the path is erased. It doesnt erase while I am dragging only once the action is complete. Does anyone know how to enable blendMode.clear while dragging?

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: MarkM

79196500

Date: 2024-11-17 04:41:10
Score: 0.5
Natty:
Report link

Yes, its possible. First, clone your current fork, add original repo as a remote and fetch all data

git clone [email protected]:YOUR-USERNAME/fork.git
git remote add upstream [email protected]:user1/original.git
git fetch --all

Then, create a new branch and add user2's repo as another remote

git checkout -b restructured upstream/main
git remote add user2repo [email protected]:user2/copy.git

Then, cherry-pick user2's commits and your own commits from your fork.

git log user2repo/main
git cherry-pick FIRST_COMMIT^..LAST_COMMIT
git cherry-pick YOUR_FIRST_COMMIT^..YOUR_LAST_COMMIT

Finally push the restructured branch to your fork

git push -u origin restructured

It will create a new branch with the exact structure you want: original base + user2's commits + your commits, all with proper attribution and timestamps

You can then use this restructured branch as the base for your future pull request to the original repository. The commit history will be clean and linear, making it easier to review and merge.

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): user2
  • User mentioned (0): user2
  • User mentioned (0): user2
  • Low reputation (0.5):
Posted by: Steven

79196496

Date: 2024-11-17 04:34:08
Score: 2.5
Natty:
Report link

output_pdf_path = "/mnt/data/Cuidado_del_agua_Ensayo_Maricarmen_Colin.pdf" pdf.output(output_pdf_path)

output_pdf_path

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mari Carmen Colin

79196481

Date: 2024-11-17 04:20:06
Score: 4.5
Natty: 4.5
Report link

Check out this https://medium.com/@jonessunil9601/send-sms-in-ios-without-editing-7aa277b21470 works and does exactly what you're looking to do.

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jessicardo

79196469

Date: 2024-11-17 04:04:59
Score: 10.5 🚩
Natty: 5.5
Report link

Were you able to resolve this issue?

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve this issue?
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user26912109

79196459

Date: 2024-11-17 03:49:56
Score: 4
Natty: 5
Report link

Es una mierd* para el usuario final, que no está interesado en codificar. Queremos cosas que se instalen y simplemente funcionen.

Reasons:
  • Blacklisted phrase (1): está
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Crito

79196458

Date: 2024-11-17 03:49:56
Score: 2.5
Natty:
Report link

This most likely is caused by an incorrect Sugar version. Make sure you are on the latest version that accounts for the new Token Metadata account sizes.

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

79196451

Date: 2024-11-17 03:43:55
Score: 2.5
Natty:
Report link

If you come after reading google docs , note that the notation deliveryType.set("[ install-time | fast-follow | on-demand ]") is meaning that delivery type can be one of "install-time","fast-follow" or "on-demand" not strictly copy and paste the snippet, google docs is a little bit ambiguous

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

79196449

Date: 2024-11-17 03:41:54
Score: 1
Natty:
Report link

In order to import Realm dependencies in Android Studio, write these in build.gradle (app level):

apply plugin: 'realm-android'
....
android {
    .......
    realm {
        syncEnabled = true;
    }
}
dependencies {
       .......
        implementation 'io.realm:realm-android-library:10.11.0'
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eldo Martadjaya

79196444

Date: 2024-11-17 03:34:53
Score: 1
Natty:
Report link

Update your dependencies in pubspec.yml to the compatible version

dependencies:
  flutter:
    sdk: flutter
  url_launcher: ^6.1.7
  url_launcher_ios: ^6.1.7

Run

flutter pub get

Then clean and build cache

flutter clean
flutter pub get
cd ios
pod install
flutter run
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: K.pen

79196440

Date: 2024-11-17 03:27:51
Score: 2.5
Natty:
Report link

You can set a shortcut key combination in the properties of your flow (Alt+S) for example, then in Excel Developer tab insert a button and assign a macro to it. In the code use the SendKeys function to simulate the keystroke. You do need to find available combinations that Excel hasnt already consumed which can be somewhat annoying since almost every function in Excel seems to have a shortcut. But its possible and works really well.

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

79196438

Date: 2024-11-17 03:23:51
Score: 3.5
Natty:
Report link

Try convert your telnet request into an http request then send it again over port 80

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

79196433

Date: 2024-11-17 03:18:49
Score: 0.5
Natty:
Report link

it tried this and it worked i was able to update tags in helm values file

script: - docker build -t "$DOCKER_IMAGE_NAME" . - docker tag "$DOCKER_IMAGE_NAME" "$DOCKER_IMAGE_NAME:$BUILD_NUMBER" - docker push "$DOCKER_IMAGE_NAME:$BUILD_NUMBER" - git clone $HELM_REPO_URL - cd helm-chart-repo - | sed -i 's/tag: "[^"]*"/tag: "'"$BUILD_NUMBER"'"/' values.yaml

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Low reputation (1):
Posted by: O4supplies Sales

79196431

Date: 2024-11-17 03:16:48
Score: 4
Natty:
Report link

I am running on a broken laptop that only runs RAM, yet you always keep fucking up my settings and it effects my phones, also that I try to not let collect any information.

I am always trying to erase history, you all will stop fucking up my system.

Reasons:
  • Blacklisted phrase (2): fuck
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Drc Reeves

79196426

Date: 2024-11-17 03:08:47
Score: 2
Natty:
Report link

Please post the code instead of an image of it. We can't do test with screenshots. Your code is badly indented around the for/end blocks. In for i, each iteration overwrites xin and fin values.

Here is a working input example:

mode(1)
for i=1:3, xf(i,:) = evstr(input("Enter data x, value f : ","s")); end
Enter data x, value f : 2, 34
Enter data x, value f : 3, 11
Enter data x, value f : 5, 67

Then

--> xf
 xf  = 
   2.   34.
   3.   11.
   5.   67.
--> Mean = sum(prod(xf,"c"))/sum(xf(:,2))
 Mean  = 
   3.8928571
Reasons:
  • RegEx Blacklisted phrase (2.5): Please post the code
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: S. Gougeon

79196424

Date: 2024-11-17 03:05:46
Score: 2.5
Natty:
Report link

It seems to work for me. I believe you also wrote extraAction1 code as below?

>             extraAction1 =
>                 NotificationCompat.Action.Builder(
>                 IconCompat.createWithResource(context, R.drawable.call_24px),
>                 "My Text",
>                 myPendingIntent
>                 ).build()
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: horizons17

79196413

Date: 2024-11-17 02:41:42
Score: 1.5
Natty:
Report link

A bug in subplot() is fixed since Scilab 2024.0. Here is a simple example with 2024.0:

clf
title("Titre général", "fontsize",4)
gca().title.position(2) = 1.09;
grey = color("grey");
for i = 1:4
    subplot(2,2,i), plot(1:2), xgrid(grey), title(msprintf("Graphe n° %d",i));
end

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: S. Gougeon

79196411

Date: 2024-11-17 02:39:41
Score: 1
Natty:
Report link

You can try to set your environment environment to your local machine.

export KAGGLE_USERNAME=datadinosaur
export KAGGLE_KEY=xxxxxxxxxxxxxx

For Colab, you can store your username and key token in Colab secrets.

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

79196388

Date: 2024-11-17 02:07:36
Score: 2.5
Natty:
Report link

If you get this error then follow the steps below

step 1 - windows command prompt(CMD) run as administrator

step 2 - Type wsl --update in your terminal and run it

Solution Image

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: K.H. Shihan Nuwanjith Udayanga

79196380

Date: 2024-11-17 02:02:32
Score: 8 🚩
Natty:
Report link

Hello @jkff and @Graham: I am having dataflow streaming pipeline, which uses WriteToBigQuery after reading from original source. I have similar requirement where I want to achieve two things: 1. handling WriteToBigQuery error records and 2. execute big query SQL which has to be executed only after WriteToBigQuery. For 2nd requirement: Approach mentioned by @jkff wont work for me as it will submit separate dataflow steaming job which will be async with original job. I have question about Approach mentioned by @Graham, If I do that way, will that get executed everytime there is streaming data coming from original source?

Reasons:
  • Blacklisted phrase (1.5): I have question
  • Blacklisted phrase (1): I have similar
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @jkff
  • User mentioned (0): @Graham
  • User mentioned (0): @jkff
  • User mentioned (0): @Graham
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: ChitsC

79196375

Date: 2024-11-17 01:58:30
Score: 1.5
Natty:
Report link

Shout out to @TemaniAfif, we've now got it figured out.
Edit: @TayneLeite solution worked as well!

So just removing that solves the problem. Also, it is better to use padding rather than width when defining the thickness of the <div class="vertical-line"></div>.

Here's my revised code:

<div class="post-title-container d-flex align-items-center">
    <div class="vertical-line"></div>
    <h1 class="post-title">
        Lorem ipsum dolor sit amet consectetur adipisicing
    </h1>
</div>
.vertical-line {
    padding: 3px;
    background-color: #007bff; 
    margin-right: 1rem;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @TemaniAfif
  • User mentioned (0): @TayneLeite
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: hanzoera

79196364

Date: 2024-11-17 01:45:28
Score: 0.5
Natty:
Report link

1 - Check you Nodejs version if it meets Angular 16 requirement

1 - re-Install all the dependencies with the command npm i

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

79196359

Date: 2024-11-17 01:40:27
Score: 1
Natty:
Report link

Hopefully, by breaking change Microsoft does not mean anything that you could not figure out using your own logic. However, everything depends on what you mean by “correct value”. The correctness of an evolution of a data contract depends on what you want to achieve.

To see it, let's review the entire cycle of moving from one version to another one.

Consider:

[DataContract(Namespace = "https:/www.my.site.org/namespaces.demo")]
class Demo {
    internal Demo() { MyField = 13;  }
    [DataMember]
    public int MyField { get; init; }
}

The only reason I've changed your fields to properties was to demonstrate the benefits of the init access modifiers. Everything else would work on fields as well.

Use this type as a root of your data contract, write it to a file, and read from the same file. As expected, you will get MyField with the value 13. Now, wipe out the member MyField from our XML file and only read. You will no exception (as expected) and the value of 0. So, the data contract still worked on MyField and gave you the default integer value, otherwise, you would get what is prescribed in the constructor, that is, 13. So, the constructor worked first, and then the value 13 assigned by the constructor was overwritten by the data contract. That's why I say it still works on this field.

Now, let's mark the old member with System.DeprecatedAttrubute and add a new one, MyField1:

[DataContract(Namespace = "https:/www.my.site.org/namespaces.demo")]
class Demo {
    internal Demo() { MyPropety1 = "anything"; }
    [DataMember, System.Obsolete]
    public int MyProperty { get; init; }
    [DataMember]
    public string MyProperty1 { get; init; }
}

Isn't it surprising that the obsolete member MyProperty is still taken by the data contract and placed in the output XML file (at least for the .NET version I'm using right now)? It makes perfect sense: the use of the attribute [System.Obsolete] simply fails your build if you try to read the obsolete member explicitly or try to assign a value to it. It should not affect the behavior of data contracts, so, it deals with the obsolete fields the same way as with, say, private members. The data contract mechanism is based on Reflection and overcomes any access specifiers the same way as [System.Obsolete]. Still, this attribute is very useful for the data contract migration.

Now, what happens if you completely remove the old MyPropery from our data contract? You can do it by commenting out of all its attributes in the previous code sample, or, optionally, remove the member itself, with all the references. Still, nothing bad. The data perfectly reads, but, in this case, you will get the unmodified value "anything", as written in the class constructor. But I would say, you may or may not need it.

All you need is backward compatibility. When you migrate your software, the change involving removed data contract members is a non-incremental modification of the data contract, as opposed to the incremental change when you only add new members. You can do both, but with the non-incremental change, you face the following situation: you can have mixed XML data. Some files are created with the older software with the essential use of MyProperty, and some — with the newer software without it.

In some cases, you don't care, but in many cases, it would mean lost data. And here is the place where the class System.Version can help. You can add a member of this type to the root object of your data graph used by your data contract and introduce some version policy. I, for example, reserve the major version for non-incremental changes, and everything else for incremental changes only. This way, you reserve yourself room for reinterpreting your obsolete member read from the data created by older software versions. In cases when you cannot ignore the obsolete data but need to reinterpret it, you have the possibility to read data, inspect the version member, and create an if condition in your code using the version number. Of course, such things should be avoided by all means, but they give you a chance to work around a code design mistake created in the past.

Note that for using this technique, it would be best to have separate version schemas for your solution's assemblies and for data contracts.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Sergey A Kryukov

79196352

Date: 2024-11-17 01:35:26
Score: 1
Natty:
Report link

A TCP protocol is oriented to the correct transmission of data, for this it makes a connection before sending data called ‘Three way handshake’ in which by means of three packets it makes a synchronisation and recognition between transmitter and receiver which ensures that the data path will be carried out, however this process will cause a considerable delay in the sending of data that can cause the receiver to listen to or receive data with a considerable delay and even with messages being mixed up.

However, UDP, despite skipping the connection stage and therefore ensuring a higher data transmission speed, also has the disadvantage of not guaranteeing that the data being sent will arrive correctly at its destination, which is necessary in the operation of real-time systems.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Martínez Cruz Luis Alberto

79196350

Date: 2024-11-17 01:34:26
Score: 1.5
Natty:
Report link

The issue is that -n1 and -I can't be used together in xargs. The correct command to create sub-folders in select_images with the same structure as download_resave/ is:

ls download_resave/ | xargs -I {} mkdir -p select_images/{}

Why the second command didn't work is because $0 refers to the script name, not the argument passed to xargs. You need to use {} as the placeholder for the argument, not $0.

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

79196346

Date: 2024-11-17 01:23:24
Score: 3
Natty:
Report link

What range of values do your images end up taking? It looks like values between 0 and 256. Best practice is to normalize them between (0,1) or (-1,1), so just divide by 256.

Also could try larger batch size/lower LR as suggested.

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

79196344

Date: 2024-11-17 01:18:23
Score: 7.5
Natty: 7
Report link

I am trying to use the script to pull in CBOE data - any luck someone could spell this out so I can ? what is Panda ?

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (1.5): any luck
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: J leo Arsenault

79196328

Date: 2024-11-17 00:46:18
Score: 0.5
Natty:
Report link

in my case rvm get master and then rvm install 3.2.0 works for me

Note: rvm install 3.2.0 is the version that am using, you might be using something different

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gift Akari

79196327

Date: 2024-11-17 00:45:18
Score: 2
Natty:
Report link

Tensors have a "put_" method taking 2 arguments:

  1. A Long tensor of indices
  2. A tensor of values

i.e.

t.put_(torch.tensor(list(mapping.keys()),dtype=torch.long),torch.tensor(list(mapping.values())))

speedup of about 10-15x over manual indexing. Graph of speedup

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

79196318

Date: 2024-11-17 00:37:16
Score: 3
Natty:
Report link

이건 codeigniter4에서 php의 intl이 없어서 나는 오류이고 /writable/아래의 cache가 쓰기 권한이 없어서 나는 오류임. php의 intl설치 먼저하고 chmod 777 -R ./writable 또는 chmod 755 -R ./writable 해줘야 함.

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

79196317

Date: 2024-11-17 00:37:16
Score: 0.5
Natty:
Report link

Java often presents more challenges in setting up a proper working environment compared to other languages like Node.js or Python, which are generally easier to configure.

Requirement

Maven 3.9.9 and JDK 17

> mvn --version
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\Users\benchvue\maven\apache-maven-3.9.9
Java version: 17.0.12, vendor: Amazon.com Inc., runtime: C:\Program Files\Amazon Corretto\jdk17.0.12_7
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"

enter image description here

File Tree

C:.
│   docker-compose.yml
│   pom.xml
│
├───.idea
│       .gitignore
│       compiler.xml
│       encodings.xml
│       jarRepositories.xml
│       misc.xml
│
└───src
    └───main
        ├───java
        │   └───ro
        │       └───tuc
        │           └───ds2020
        │               │   Ds2020Application.java
        │               │
        │               ├───config
        │               │       RabbitMQConfig.java
        │               │
        │               ├───consumer
        │               │       RabbitMQJsonConsumer.java
        │               │
        │               ├───controllers
        │               │       MessageJsonController.java
        │               │
        │               ├───dtos
        │               │       MeasurementDTO.java
        │               │
        │               └───publisher
        │                       RabbitMQJsonProducer.java
        │
        └───resources
            │   application.properties
            │
            └───static

enter image description here

RabbitMQConfig.java

package ro.tuc.ds2020.config;

import org.springframework.amqp.core.*;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    @Value("${rabbitmq.queue.name}")
    private String queue;

    @Value("${rabbitmq.queue.json.name}")
    private String jsonQueue;

    @Value("${rabbitmq.queue.exchange}")
    private String exchange;

    @Value("${rabbitmq.queue.routing_key_one}")
    private String routingKeyOne;

    @Value("${rabbitmq.queue.routing_key_json}")
    private String routingKeyJson;

    @Bean
    public Queue queue() {
        return new Queue(queue);
    }

    @Bean
    public Queue jsonQueue() {
        return new Queue(jsonQueue, true);
    }

    @Bean
    public TopicExchange exchange() {
        return new TopicExchange(exchange, true, false);
    }

    @Bean
    public Binding binding() {
        return BindingBuilder.bind(queue()).to(exchange()).with(routingKeyOne);
    }

    @Bean
    public Binding jsonBinding() {
        return BindingBuilder.bind(jsonQueue()).to(exchange()).with(routingKeyJson);
    }

    @Bean
    public MessageConverter converter() {
        return new Jackson2JsonMessageConverter();
    }

    @Bean
    public AmqpTemplate amqpTemplate(ConnectionFactory connectionFactory) {
        RabbitTemplate rabbitTemplate = new RabbitTemplate(connectionFactory);
        rabbitTemplate.setMessageConverter(converter());
        return rabbitTemplate;
    }
}

RabbitMQJsonConsumer.java

package ro.tuc.ds2020.consumer;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;
import ro.tuc.ds2020.dtos.MeasurementDTO;

@Service
public class RabbitMQJsonConsumer {

    private static final Logger LOGGER = LoggerFactory.getLogger(RabbitMQJsonConsumer.class);
    private final ObjectMapper objectMapper = new ObjectMapper();

    @RabbitListener(queues = {"${rabbitmq.queue.json.name}"})
    public void consumeJsonMessage(MeasurementDTO measurementDTO) {
        try {
            String jsonMessage = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(measurementDTO);
            LOGGER.info("Received JSON message here -> \n{}", jsonMessage);
        } catch (JsonProcessingException e) {
            LOGGER.error("Failed to convert message to JSON", e);
        }
    }
}

MessageJsonController/java

package ro.tuc.ds2020.controllers;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import ro.tuc.ds2020.dtos.MeasurementDTO;
import ro.tuc.ds2020.publisher.RabbitMQJsonProducer;

import java.util.HashMap;
import java.util.Map;

@RequestMapping("/api/v1")
@RestController
public class MessageJsonController {

    private final RabbitMQJsonProducer jsonProducer;

    public MessageJsonController(RabbitMQJsonProducer rabbitMQJsonProducer) {
        this.jsonProducer = rabbitMQJsonProducer;
    }

    @PostMapping("/publish")
    public ResponseEntity<Map<String, String>> sendJsonMessage(@RequestBody MeasurementDTO measurementDTO) {
        jsonProducer.sendJsonMessage(measurementDTO);

        // Create a JSON response body
        Map<String, String> response = new HashMap<>();
        response.put("message", "Json message sent to RabbitMQ");
        response.put("status", "success");

        return ResponseEntity.ok(response);
    }
}

MeasurementDTO.java

package ro.tuc.ds2020.dtos;

import com.fasterxml.jackson.annotation.JsonProperty;

public class MeasurementDTO {

    @JsonProperty("sensorId")
    private String sensorId;

    @JsonProperty("value")
    private double value;

    @JsonProperty("unit")
    private String unit;

    @JsonProperty("timestamp")
    private String timestamp;

    // Getters and Setters
    public String getSensorId() {
        return sensorId;
    }

    public void setSensorId(String sensorId) {
        this.sensorId = sensorId;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "MeasurementDTO{" +
                "sensorId='" + sensorId + '\'' +
                ", value=" + value +
                ", unit='" + unit + '\'' +
                ", timestamp='" + timestamp + '\'' +
                '}';
    }
}

RabbitMQJsonProducer.java

package ro.tuc.ds2020.publisher;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import ro.tuc.ds2020.dtos.MeasurementDTO;

@Service
public class RabbitMQJsonProducer {

    @Value("${rabbitmq.queue.exchange}")
    private String exchange;

    @Value("${rabbitmq.queue.routing_key_json}")
    private String routingKeyJson;

    private static final Logger LOGGER = LoggerFactory.getLogger(RabbitMQJsonProducer.class);

    private RabbitTemplate rabbitTemplate;

    @Autowired
    public RabbitMQJsonProducer(RabbitTemplate rabbitTemplate) {
        this.rabbitTemplate = rabbitTemplate;
    }

    public void sendJsonMessage(MeasurementDTO measurementDTO) {
        LOGGER.info(String.format("Json message sent -> %s", measurementDTO.toString()));
        rabbitTemplate.convertAndSend(exchange, routingKeyJson, measurementDTO);
    }
}

Ds2020Application.java

package ro.tuc.ds2020;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Ds2020Application {
    public static void main(String[] args) {
        SpringApplication.run(Ds2020Application.class, args);
    }
}

application.properties

spring.rabbitmq.host = localhost
spring.rabbitmq.port = 5672
spring.rabbitmq.username = guest
spring.rabbitmq.password = guest

rabbitmq.queue.name = queue_1
rabbitmq.queue.json.name = queue_json
rabbitmq.queue.exchange = exchange
rabbitmq.queue.routing_key_one = routing_key_1
rabbitmq.queue.routing_key_json = routing_key_json

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>ro.tuc</groupId>
    <artifactId>ds2020</artifactId>
    <version>1.0.0</version>
    <packaging>jar</packaging>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.5</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <dependencies>
        <!-- Spring Boot Starter Web -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!-- Spring Boot Starter AMQP -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-amqp</artifactId>
        </dependency>

        <!-- Jackson for JSON serialization -->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>

        <!-- Spring Boot Starter Test -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <!-- Spring Boot Maven Plugin -->
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*</include>
                </includes>
            </resource>
        </resources>        
    </build>
</project>

docker-compose.yml

version: '3.8'

services:
  rabbitmq:
    image: rabbitmq:3-management
    container_name: rabbitmq
    ports:
      - "5672:5672" # RabbitMQ messaging port
      - "15672:15672" # RabbitMQ management UI
    environment:
      RABBITMQ_DEFAULT_USER: guest
      RABBITMQ_DEFAULT_PASS: guest

Launching RabbitMQ

docker compose up

enter image description here

Access RabbitMQ UI

username: guest
password: guest
http://localhost:15672/#/

enter image description here

Compile jar

mvn clean install

enter image description here

dir target

enter image description here

launching Java project

java -jar target/ds2020-1.0.0.jar

enter image description here

Call REST API by Postman

POST http://localhost:8080/api/v1/publish

Input Body

{
    "sensorId": "12345",
    "value": 67.5,
    "unit": "Celsius",
    "timestamp": "2024-11-16T18:30:00Z"
}

enter image description here

Java Side enter image description here

Consumer will display in Spring Log

2024-11-16 19:11:43.964  INFO 22464 --- [ntContainer#0-1] r.t.d.consumer.RabbitMQJsonConsumer      : Received JSON message here ->
{
  "sensorId" : "12345",
  "value" : 67.5,
  "unit" : "Celsius",
  "timestamp" : "2024-11-16T18:30:00Z"
}

You can see the Spike in Rabbit UI enter image description here

If you want to see the queue message by RabbitMQ UI

you need to comment out RabbitMQJsonConsumer.java

From

@RabbitListener(queues = {"${rabbitmq.queue.json.name}"})

To

//@RabbitListener(queues = {"${rabbitmq.queue.json.name}"})

Then build jar and run it again

enter image description here

Good Luck!

Reasons:
  • Blacklisted phrase (1): to comment
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @RabbitListener
  • User mentioned (0): @RabbitListener
  • High reputation (-1):
Posted by: Bench Vue

79196313

Date: 2024-11-17 00:33:15
Score: 1.5
Natty:
Report link

Even simpler:

iex> bit_size(<<433::16, 3::3>>)
19
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Guy Argo

79196311

Date: 2024-11-17 00:32:15
Score: 1
Natty:
Report link

If anyone else is exploring System Colors, I've a simple web page that displays the CSS System Colors.

Unlike others, it displays them with both 'light' and 'dark' modes set. Uniquely it also displays the actual RGBA color displayed for the current browser/Operating system combination.

(The displayed colors are derived from the user's operating system's color scheme, so will vary based on your environment.) Sample display

Its a work in progress, but should be helpful to see them in action! Its available at https://github.com/eoconline/css-system-colors

Suggestions for enhancement are welcome!

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

79196306

Date: 2024-11-17 00:24:14
Score: 3.5
Natty:
Report link

Maybe someone find this helpful. I corrected this problem unchecking 32bits preference on project properties > compile tab

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

79196305

Date: 2024-11-17 00:24:14
Score: 1
Natty:
Report link

You can try this plugin:

BuddyPress Featured Groups
https://wordpress.org/plugins/bp-featured-groups/

The BuddyPress Featured Groups plugin allows for an enjoyable experience in creating and displaying lists of featured groups.
It is highly flexible in how the lists are displayed (slider, list, theme default, or custom).
Additionally, it provides a simple API for marking/unmarking groups as featured.

Reasons:
  • Blacklisted phrase (1): this plugin
  • Whitelisted phrase (-1): try this
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hank Ku

79196304

Date: 2024-11-17 00:24:14
Score: 1
Natty:
Report link

For me this was an error based on the subset of my rows I was trying to test more quickly - this subset didn't have at least one of each label, so it was giving this error.

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

79196301

Date: 2024-11-17 00:21:13
Score: 1
Natty:
Report link

Please make sure to set Environment Variable GOOGLE_APPLICATION_CREDENTIALS with the secured key JSON file path. Example

C#:

Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", "secured-service-account.json");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Martin Borowitz

79196257

Date: 2024-11-16 23:51:07
Score: 0.5
Natty:
Report link

You want the sequence of keystrokes to include NumLock.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: J_H

79196232

Date: 2024-11-16 23:26:02
Score: 1
Natty:
Report link

For me, on Alpine, following line did the job:

apk add php7-simplexml

php7-xml appeared to be a different library.

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

79196215

Date: 2024-11-16 23:06:59
Score: 2
Natty:
Report link

Have you tried this way?

.vertical-line { height: auto; /* Automatically adjusts to the height of its container */ width: 4px; /* Adjust the width as needed */ background-color: #007bff; margin-right: 1rem; align-self: stretch; /* Makes sure the line stretches to match the height of the container */ }

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

79196207

Date: 2024-11-16 22:59:58
Score: 0.5
Natty:
Report link

Could anyone explain why useFormContext is causing these re-renders and suggest a way to prevent them without removing useFormContext?

The useFormContext hook is not causing extra component rerenders. Note that your InputX and InputY components have nearly identical implementations*:

function InputX() {
  const { register, control } = useFormContext();

  const renderCount = useRef(0);
  const x = useWatch({ name: "x", control });

  renderCount.current += 1;
  console.log("Render count InputX", renderCount.current);
  const someCalculator = useMemo(() => x.repeat(3), [x]); // *

  return (
    <fieldset className="grid border p-4">
      <legend>Input X Some calculator {someCalculator}</legend>
      <div>Render count: {renderCount.current}</div>
      <input {...register("x")} placeholder="Input X" />
    </fieldset>
  );
}
function InputY() {
  const { register, control } = useFormContext();
  const renderCount = useRef(0);
  const y = useWatch({ name: "y", control });

  renderCount.current += 1;

  return (
    <fieldset className="grid border p-4">
      <legend>Input Y {y}</legend>
      <div>Render count: {renderCount.current}</div>
      <input {...register("y")} placeholder="Input Y" />
    </fieldset>
  );
}

* The difference being that InputX has an additional someCalculator value it is rendering.

and yet it's only when you edit inputs Y and Z that trigger X to render more often, but when you edit input X, only X re-renders.

This is caused by the parent MainForm component subscribing, i.e. useWatch, to changes to the y and z form states, and not x.

const [y, z] = useWatch({
  control: methods.control,
  name: ["y", "z"],
});

If you updated MainForm to also subscribe to x form state changes then you will see nearly identical rendering results and counts across all three X, Y, and Z inputs.

const [x, y, z] = useWatch({
  control: methods.control,
  name: ["x", "y", "z"],
});

I expected that InputX would only re-render when its specific data or relevant form state changes (like its own input data).

React components render for one of two reasons:

InputX rerenders because MainForm rerenders.

Now I suspect at this point you might be wondering why you also see so many "extra" console.log("Render count InputX", renderCount.current); logs. This is because in all the components you are not tracking accurate renders to the DOM, e.g. the "commit phase", all the renderCount.current += 1; and console logs are unintentional side-effects directly in the function body of the components, and because you are rendering the app code within a React.StrictMode component, some functions and lifecycle methods are invoked twice (only in non-production builds) as a way to help detect issues in your code. (I've emphasized the relevant part below)

You are over-counting the actual component renders to the DOM.

The fix for this is trivial: move these unintentional side-effects into a useEffect hook callback to be intentional side-effects. 😎

useEffect(() => {
  renderCount.current += 1;
  console.log("Render count Input", renderCount.current);
});

Input components:

function InputX() {
  const { register, control } = useFormContext();

  const renderCount = useRef(0);
  const x = useWatch({ name: "x", control });

  useEffect(() => {
    renderCount.current += 1;
    console.log("Render count InputX", renderCount.current);
  });

  const someCalculator = useMemo(() => x.repeat(3), [x]);

  return (
    <fieldset className="grid border p-4">
      <legend>Input X Some calculator {someCalculator}</legend>
      <div>Render count: {renderCount.current}</div>
      <input {...register("x")} placeholder="Input X" />
    </fieldset>
  );
}
function InputY() {
  const { register, control } = useFormContext();

  const renderCount = useRef(0);
  const y = useWatch({ name: "y", control });

  useEffect(() => {
    renderCount.current += 1;
    console.log("Render count InputY", renderCount.current);
  });

  return (
    <fieldset className="grid border p-4">
      <legend>Input Y {y}</legend>
      <div>Render count: {renderCount.current}</div>
      <input {...register("y")} placeholder="Input Y" />
    </fieldset>
  );
}

Any advice on optimizing this setup would be greatly appreciated!

As laid out above, there's really not any issue in your code as far as I can see. The only change to suggest was fixing the unintentional side-effects already explained above.

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (2.5): Could anyone explain
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Drew Reese

79196190

Date: 2024-11-16 22:47:55
Score: 4.5
Natty:
Report link

My best guess is that you wanted to use v3 of the api but used v1 witch did not work maybe try using the v3 api like https://www.youtube.com/youtubei/v3/player?key=[MY API key]

Reasons:
  • Blacklisted phrase (1): did not work
  • Blacklisted phrase (1): youtube.com
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 4UPanElektryk

79196188

Date: 2024-11-16 22:46:55
Score: 0.5
Natty:
Report link

I found out what the problem was in my case.

I initially had a gigantic image file of around 70 mb with a gigantic resolution. I'm no image expert. So what I did was compress, and re-compress the file over and over again until it got to 7 mb.

What I didn't do was "resize" it. So the dimension metadata of the image file was still saying its gigantic. And apparently Nextjs Image API went out of memory and just returned the unoptimized image.

After using a tool to resize it it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dince-afk

79196174

Date: 2024-11-16 22:41:53
Score: 1
Natty:
Report link

i was having the same problem, the one solution that worked was updating the django-redis

using pip

pip install --upgrade django-redis

or if you are using pipenv

pipenv update django-redis
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Subhan Wasif

79196172

Date: 2024-11-16 22:38:53
Score: 1.5
Natty:
Report link

Silly mistake, KIKO Software pointed out that I used

$stmt -> bind_param("ssssi",$emp_fname,$emp_lname,$emp_gender,$emp_dob,$emp_id);

I store emp_id as varchar not interger so it should be "sssss".

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

79196171

Date: 2024-11-16 22:38:52
Score: 4
Natty:
Report link

I had the same issue, and I found that I declared a @Environment(.dismiss) in the parent view but never called it. Getting rid of it in the parent view solved it for me, so I wanted to share in case others have similar issues.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): have similar issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: DisplacedTurtle

79196170

Date: 2024-11-16 22:37:52
Score: 0.5
Natty:
Report link

If the GROUP_CONCATs are definitely the culprit then you could consider having a dedicated index table which pre-builds all the concatenated strings into columns.

The index table would be a copy of the data from the other tables in your query above, but would already have the data formatted as required. You would have a script which can build this table at any time (could run every hour, for example to re-build).

You can then query this index table instead from the frontend for much faster querying.

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

79196163

Date: 2024-11-16 22:30:50
Score: 2
Natty:
Report link

There is no inbuilt function for hashing in PowerBI you can simply use the folder path column in the folder step to create a unique ID combining the file name as well.

folder path column

You can split the path by a delimiter "\" and use different parts of the folder to create a unique ID

split the path

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

79196150

Date: 2024-11-16 22:21:47
Score: 3.5
Natty:
Report link

The word AUTHID means to connect, between the user and the action (code)

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

79196139

Date: 2024-11-16 22:12:46
Score: 5.5
Natty: 5
Report link

Further to the comment from @thepatel - it looks like it has now moved to https://play.google.com/store/apps/details?id=com.appsbybirbeck.android.nowplayinghistory

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @thepatel
  • Single line (0.5):
  • Low reputation (1):
Posted by: EDIflyer

79196133

Date: 2024-11-16 22:09:45
Score: 2
Natty:
Report link

I believe your while condition is being met by the invalid input.
Perhaps try something like:

String userInput = "";

while (true) {  // loop until valid input 
  userInput = scanner.nextLine();
  if (isInteger(userInput)) 
    break;
  System.out.print("Please enter a valid number.");
}
  
private static boolean isInteger(String str) {
  try {
    Integer.parseInt(str); 
    return true;
  } catch(NumberFormatException e) {
    return false;
  }

These previous answers may also help: https://stackoverflow.com/a/53904761/6423542 https://stackoverflow.com/a/24836513/6423542

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bryon Nicoson

79196126

Date: 2024-11-16 22:03:44
Score: 2.5
Natty:
Report link

I created a tool that keeps your code snippets up to date in Readme:) it can be used either as 🪝 pre-commit hook or as a Github action, and it supports whole scripts, sections of scripts and 🐍 Python objects. It’s extremely easy to use, feel free to check it out! https://github.com/kvankova/code-embedder

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kateřina Vaňková

79196110

Date: 2024-11-16 21:56:42
Score: 2
Natty:
Report link
from sklearn import datasets
import pandas as pd

whole_data = datasets.load_iris()
whole_data

print('The full description of the dataset:\n',whole_data['DESCR'])

x_axis = whole_data.data[:,2]  # Petal Length
y_axis = whole_data.data[:, 3]  # Petal Width

# Plotting
import matplotlib.pyplot as plt

plt.scatter(x_axis, y_axis, c=whole_data.target)   
plt.title("Violet: Setosa, Green: Versicolor, Yellow: Virginica")
plt.show()

I have chosen petal width and petal length for visualization as they show high class correlation ... why just me?

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

79196093

Date: 2024-11-16 21:40:39
Score: 1
Natty:
Report link

Both Trie and Trie2 end up taking 216 bytes because of how memory alignment works. Even though Trie2 has an extra char variable, the compiler adds padding after it to make sure the array of pointers (child[26]) starts at an 8-byte boundary (which is required for pointers on a 64-bit system). This padding makes the total size of both classes the same, even though the structure of the two classes is slightly different.

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

79196089

Date: 2024-11-16 21:38:39
Score: 1
Natty:
Report link
from itertools import groupby

sorted_list = [1, 1, 2, 3, 3, 3, 6, 6, 8, 10, 100, 180, 180]

unique_list = [key for key, _ in groupby(sorted_list)]

print(unique_list)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nabil Akhlaque

79196075

Date: 2024-11-16 21:29:37
Score: 0.5
Natty:
Report link

You may follow these below:

  1. Enhanced Waiting Strategies:

Use WebDriverWait with expected_conditions like visibility_of_element_located, element_to_be_clickable, or custom conditions to handle dynamic delays.

  1. Robust Locators:

Avoid relying on class names or IDs that are non-static. Use XPath or CSS selectors based on unique combinations of attributes or parent-child relationships.

  1. Handle AJAX Delays:

Wait for specific JavaScript variables or network requests to complete using execute_script or libraries like requests in Python.

  1. JavaScript Interaction:

If standard Selenium methods fail, use execute_script to directly manipulate or interact with the element.

  1. Handle Shadow DOM:

If elements are inside a shadow DOM, use Selenium's shadow DOM support or execute_script to access them.

  1. Use Explicit Event Waits:

Wait for specific DOM changes or element states using mutation observers or polling loops.

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

79196071

Date: 2024-11-16 21:26:36
Score: 1.5
Natty:
Report link

It seems like you're dealing with an intermittent issue where Spark fails while trying to rename temporary files in your Data Lake, probably due to file locks or race conditions. Since manually deleting the table resolves it temporarily, it points to a problem with leftover files or some contention in the storage. You could try tweaking how you partition the data to reduce the chance of multiple processes trying to write to the same file at once, or scale up your Spark resources to handle more parallelism. It might also help to add a cleanup step before each run to clear out any old files or locks. Also, check if your Azure storage is getting throttled or running into other performance issues. Finally, enabling retries for those file operations could help make the job more robust against these occasional problems.

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

79196064

Date: 2024-11-16 21:22:35
Score: 2.5
Natty:
Report link

We solved the problem by letting the script of step 2 generate a timestamp into the target file. If then the commit time of the 2nd file is newer than that timestamp, we know that the 2nd step has not been executed (properly).

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

79196061

Date: 2024-11-16 21:21:34
Score: 2
Natty:
Report link

The issue arises because json.decode generates new objects each time it's called, and indexOf in Dart compares objects by reference for complex types like lists, maps, or other objects

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

79196057

Date: 2024-11-16 21:17:34
Score: 1
Natty:
Report link

Given some CFG with start S you want to be able to add the start S to the PDA's stack only once because if you "Push S onto the empty stack by empty transition to sef" then you can push infinetly many S which is no longer the same language. i.e. this wouldnt work : (q,ε,ε) ->(q, S)

So the trick is to have the transtion:

(q,ε,$) ->(q, SZ)

where $ is the start bottom stack symbol and Z is some dummy variable that will be used as the new bottom stack symbol. This disallows you from re-suing the above transition more than once. Now for every production A -> x where x can be any combination of symbols or variables you have:

(q,ε,A) -> (q,x)

For every symbol c you must also have: (q,ε,c) -> (q,c)

Lastly, a transtion to the accepting state q1 can be added

(q,ε,Z) -> (q1,Z)

Which enforces the stack to be empty before going to the accept state. This creates a PDA with two states for any CFG

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

79196056

Date: 2024-11-16 21:17:34
Score: 3
Natty:
Report link

You are right, the build does not detect those problems. Why? Because it would dramatically compromise build performance.

What could be the approaches? I can see two:

  1. Static analysis. By static I mean inspecting assemblies using Reflection without re-building them. The analysis can be performed against the root of the object graph. Collect all types and members, create associations related to the usage of other types in each type, and then find out all members included in Data Contract. And then search for possible inconsistencies like the one you show. This is quite a solvable problem, but the code will be too big for a single question. If you have questions about some specific inconsistencies, most likely I could answer and build a code sample detecting them, but I would not take so much time to create an entire utility.

  2. Testing. :-(

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Blacklisted phrase (1): What could be
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sergey A Kryukov

79196048

Date: 2024-11-16 21:10:32
Score: 2
Natty:
Report link

I managed to resolve the issue thanks to the helpful comment I received. I realized the problem was caused by setting the DataContext of the StackPanel to SelectedFilm.

After removing the DataContext="{Binding SelectedFilm}" from the StackPanel, everything started working as I wanted.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ela Škalič

79196047

Date: 2024-11-16 21:10:32
Score: 0.5
Natty:
Report link
    {% macro render_form(form, action) %}
        {% from "_formhelpers.html" import render_field %}
        <div id="Product" class="variant-block" style="display: block;">
            {% from "_formhelpers.html" import render_field %}
            {% import "bootstrap/wtf.html" as wtf %}
            {{ wtf.quick_form(form, action=action, extra_classes="size-options", button_map={'submit':'light'}) }}
        </div>
    {% endmacro %}

More info. here: https://bootstrap-flask.readthedocs.io/en/stable/macros/

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Ahrimann Steiner

79196046

Date: 2024-11-16 21:10:32
Score: 4.5
Natty:
Report link

I have a little bit confusion. Can anyone please verify this Data Flow/Architecture..enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shorif Uddin Al Mahamud

79196040

Date: 2024-11-16 21:07:31
Score: 0.5
Natty:
Report link

I was trying to make a similar "transparent" window to experiment with Avalonia.

After a few hours of digging, I found that...

ExtendClientAreaToDecorationsHint="True"

...seemed to be the culprit in my case.

Try to set the value to "False" - the border and shadows should disappear.

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

79196036

Date: 2024-11-16 21:04:30
Score: 1
Natty:
Report link

it does not seem like CORS problem, if you take a closer look at the browser logs, you'll see it says net::ERR_DISCONNECTED_INTERNET,

The net::ERR_DISCONNECTED_INTERNET error in JavaScript usually indicates that the browser has lost its connection to the internet. This error often occurs when trying to make network requests (e.g., using fetch, axios, or WebSocket) while the device is offline or there is a problem with the network.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Тамирлан Жукасаев

79196019

Date: 2024-11-16 20:48:26
Score: 0.5
Natty:
Report link

I solved this issue using Flask Lazy loading views. Rather than importing everything in your main application .py file, just use lazy loading. This got my Flask app cold boot loading from 37 seconds down to 6-8 seconds. This doc helped me solve it: https://flask.palletsprojects.com/en/stable/patterns/lazyloading/

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jan Verderber

79196016

Date: 2024-11-16 20:42:23
Score: 9 🚩
Natty:
Report link

Facing the same. Opened this https://developers.facebook.com/community/threads/1217443149319715/?post_id=1217443152653048

Did you find any workaround?

Reasons:
  • RegEx Blacklisted phrase (3): Did you find any
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: lidor gonsho

79196014

Date: 2024-11-16 20:41:23
Score: 2.5
Natty:
Report link

When I went in to pull the new stack trace I realized it was still trying to reference SQLite3. Looking at the database.yml file and noticed it was still trying to load some SQLite3 items through the "Default". I took out the default reference under production and put in info for PostgreSQL instead. That fixed the issue. The build completes successfully now and the application loads. As a note, the app I was trying to do was static pages only with no backend database.

Thanks everyone for your help and guidance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): When I we
  • Low reputation (1):
Posted by: David Stine

79196008

Date: 2024-11-16 20:37:22
Score: 3.5
Natty:
Report link

Make sure that project name of "inet" is without any version number. Renaming (folder) "inet4.4" to "inet" solved my issue. enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Neha Nagapurkar

79195982

Date: 2024-11-16 20:23:19
Score: 0.5
Natty:
Report link

Adding

abbr {
  white-space: nowrap;
}

solves this, though I'm open to other comments.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Garrett

79195976

Date: 2024-11-16 20:17:17
Score: 4
Natty: 4.5
Report link

To look up the coding horror article you might need the wayback machine

https://web.archive.org/web/20100218180335/http://www.codinghorror.com/blog/2007/03/primary-keys-ids-versus-guids.html

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

79195974

Date: 2024-11-16 20:15:17
Score: 2.5
Natty:
Report link

how are you? The solution is to put the name of your DB...

mongodb+srv://USER:[email protected]/BD_NAME?retryWrites=true&w=majority&appName=holixd

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): how are you
  • Low reputation (1):
Posted by: Chancho Brujo

79195965

Date: 2024-11-16 20:10:16
Score: 1
Natty:
Report link
import re

pattern = r".*\.(?<!\\\.)(.*)"

r = "MyLine.Text.Swap\\ Numbered\\ and\\ Unnumbered\\ List.From\\ -\\ -\\ -\\ to\\ Numbered\\ list\\ 1\\.\\ 2\\.\\ 3\\.\\ "

matches = re.findall(pattern, r)
print(matches)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kanika Singh