79164016

Date: 2024-11-06 19:38:09
Score: 3
Natty:
Report link

If your host computer is running ubuntu. Changeing the variable PACKAGE_CLASSES in local.conf. from package_rpm to package_deb made it work.

#PACKAGE_CLASSES ?= "package_rpm"

PACKAGE_CLASSES ?= "package_deb"

That was alot of headache!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: oskar edvall

79164015

Date: 2024-11-06 19:38:09
Score: 1
Natty:
Report link

Ever since I first read about that it seems to me that autodiff really is symbolic differentiation implemented in an efficient way for computer programs.

From my point of view if you are not approximating the derivative by a small, non zero "h" it is, from a mathematical perspective, symbolic differentiation.

However, in the practical world there is a big difference in performance between working with symbolic expressions and their derivatives in a computer (for instance in Mathematica or SymPy) or using autodiff.

That is why my opinion today is that from a "mathematical" point of view there is no difference, from a "computer science" point of view there is a difference, which I summarize as "autodiff is an efficient implementation of symbolic derivatives".

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

79164009

Date: 2024-11-06 19:34:08
Score: 2
Natty:
Report link

I was looking for an opensource Java solution to convert DOC/DOCX to PDF without loosing the design of the document.

I came to know about the usage of LibreOffice on Linux machine for the same in the following post. Thank you, Anmol.

https://stackoverflow.com/a/73711219/3085879

So, I gave a try installing LibreOffice on windows machine, and running the following command.

*C:\Users\ABCD\Desktop\sofficetest>"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to pdf:writer_pdf_Export --outdir "C:\Users\ABCD\Desktop\sofficetest\output" .docx

Please note that I have used double quotes for paths to avoid space related issues. It works like a charm. :)

I found the syntax of the command when I ran the following command on the command prompt.

C:\Users\ABCD\Desktop\sofficetest>"C:\Program Files\LibreOffice\program\soffice.exe" --help

Please refer the highlighted section in the command run result screenshot.

enter image description here

The environment and software details are as follows.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rama Krishna Hati

79163991

Date: 2024-11-06 19:28:06
Score: 2
Natty:
Report link

In my case I had this issue because I was logged in as Administrator instead of my usual user id. Environment variable for path did not include location of VSCode for Administrator user. Updating the path variable fixed the issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: M.A.Naseer

79163990

Date: 2024-11-06 19:28:06
Score: 1.5
Natty:
Report link

As per AWS, Mongo Compass do not support correct NodeJs driver.

Drivers that support Amazon DocumentDB 5.0 and the MONGODB-AWS authentication mechanism should work with the IAM authentication implementation in Amazon DocumentDB. There is a known limitation with NodeJS drivers which are currently not supported by Amazon DocumentDB for IAM authentication. NodeJS driver support will be updated once the limitation is resolved

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

79163988

Date: 2024-11-06 19:28:06
Score: 1.5
Natty:
Report link
@Query("select p FROM Partner p JOIN p.partnerIdentifier")
    List<Partner> findAfterDates();

You don't need NOT NULL statement you'd just get null values if using LEFT JOIN

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

79163971

Date: 2024-11-06 19:22:04
Score: 2
Natty:
Report link

When working with big file editing, I would simple save the file I'm working on into a duplicate with :w somefile, do whatever editing I need to by yanking, deleting, and putting working only one file then do a bash diff or compare on the two files to see if the correct changes are indeed correct. If they are and you still have extensive editing then save the working file to a second :w some2ndfile and so forth ... Keep track of your changes in Note.file just in case you have to go back and reconstruct something. Best done if line numbering is turned on. Also, use NerdTree to navigate between files. Some mapping that I put in .vimrc are: map the keystroke jj to go to command mode when in insert mode and map to get a command prompt : when in command mode, to save a file in both command and insert modes, to open nerdTree in a side pane, ctrl-w navigates through the nerdTree panes. I also set my default window nearly as big as the screen so I have plenty room navigating between and into files. If you are using vim as a quassi IDE another handy tool is to map a function key to generate a tagfile in your /home/projects/directory/file so that if you can't quite remember some command you used some time ago, it is easy to without leaving vim using nerdTree.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Carl Richard

79163968

Date: 2024-11-06 19:21:04
Score: 3
Natty:
Report link

TylerH, I think this happens when you try to use the v3 link instead of the v2 in the package sources. I did that in one project, then changed the link to v2 and the Package Manager wouldn't load. Used this fix and all is good.

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

79163962

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

Looks ok to me, this may be throwing it:

 --border-radius: 50px;

Doesn't render for me because I'm not calling a variable

var( --border-radius);

But that should not matter. Copy the code into another editor or run in another browser. Good luck!

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

79163947

Date: 2024-11-06 19:12:02
Score: 1.5
Natty:
Report link

I have figured it out! As it turns out i had this in my web.php file:

Route::get('/starter', function () {
    return view('logged.start');
})->name('start');

After deleting it everything started working as it should.

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

79163939

Date: 2024-11-06 19:08:01
Score: 5.5
Natty: 6.5
Report link

https://medium.com/@6386391ritesh/unity-websocket-support-ea2420df452c

you might Find answer here as this article Describes how to connect to Web socket Server.

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: God Of Truth

79163925

Date: 2024-11-06 19:02:59
Score: 1
Natty:
Report link

It is important to note that there are TWO SymmetricDS Docker images: one open-source and another for the PRO version (paid license). https://hub.docker.com/u/jumpmind

The open-source SymmetricDS Docker image depends on YOU to provide details of database connection in the .properties engine file (as described in the User guide). So this is working as designed. https://symmetricds.sourceforge.net/doc/3.15/html/user-guide.html

The PRO version of SymmetricDS has many more features, including a web console UI. This image works out of the gate and allows web console user to configure all database connections (multiple if you wish), provide license details and reboot to apply changes. https://downloads.jumpmind.com/symmetricds/doc/3.15/html/user-guide.html

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

79163907

Date: 2024-11-06 18:56:54
Score: 6 🚩
Natty:
Report link

@null doesn't work for me. I use

@android:color/transparent

Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @null
  • Low reputation (1):
Posted by: Dmitriy Milkin

79163903

Date: 2024-11-06 18:55:53
Score: 1.5
Natty:
Report link

Solved it, the call to UseStatusCodePagesWithReExecute needs to go before calling UseRouting. That way, I can use UseExceptionHandler without 404s going unhandled by the ErrorController. It's worth noting that if you use UseExceptionHandler, the controller will need to have logic to log the exception, else, it just gets swallowed.

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

79163895

Date: 2024-11-06 18:53:53
Score: 1.5
Natty:
Report link

After generating the document test.html (typically located at C:\xampp\htdocs\test.html or where your xampp is installed), simply try to access it using the address http://localhost/test.html

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

79163884

Date: 2024-11-06 18:50:52
Score: 0.5
Natty:
Report link
  1. Login: Generate and Store the Token On the React frontend, log in and store the token

  2. Token Verification and Auto-Logout Use Axios interceptors in React to catch 401 Unauthorized responses globally. This way, if the token is expired or invalid, you can automatically log out the user and redirect them to the login page.

  3. Token Deletion on Logout In your Laravel API, use the logout function to revoke all tokens. When logging out on the frontend, clear the token from localStorage and remove it from Axios defaults.

  4. Token Expiration/Invalidation on Laravel With Laravel Sanctum, tokens do not expire by default. To achieve auto-expiration, you can:

Set a custom expiration time for tokens. Use a middleware to handle token expiration.

  1. React - Auto Logout on Expired Token When the backend sends a 401 Unauthorized response due to expiration, the Axios interceptor we set up earlier will handle it, logging the user out and redirecting them to the login page.

Complete Flow User logs in: The token is generated by Laravel and saved in the React frontend’s localStorage. User navigates protected routes: Axios sends the token with each request. Token verification: Laravel verifies the token; if it’s expired, it responds with a 401 Unauthorized. Auto logout on expiration: The Axios interceptor in React catches the 401 and logs the user out automatically. User logout: On manual logout, the token is removed from both the frontend and backend, ensuring it cannot be reused.

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

79163881

Date: 2024-11-06 18:50:52
Score: 4
Natty:
Report link

There is now an implementation of RoPE at torchtune.modules.RotaryPositionalEmbeddings; torchtune is authored by the official pytorch team.

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

79163880

Date: 2024-11-06 18:49:49
Score: 6 🚩
Natty: 5.5
Report link

How did you installed it manually? Is there a site or microsoft store?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How did you in
  • Low reputation (1):
Posted by: Alexandra Rosi

79163874

Date: 2024-11-06 18:47:49
Score: 2
Natty:
Report link

As for my understanding (I'm not a dev), when faced with that kind of errors (FP, Cocoa), it usually could point to a few things:

  1. App blocked from accessing fp/cocoa (perms)
  2. Network/connectivity/not enough required system resources
  3. FP/Cocoa is failing and restarting but the app cannot resume the connection with service.

I know that's not a lot, but hopefully, it will point you in the right direction.

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

79163868

Date: 2024-11-06 18:45:48
Score: 0.5
Natty:
Report link

Only app:layout_optimizationLevel="barrier" is required to be used on corresponding parent ConstraintLayout If we use app:layout_optimizationLevel="none" layout rendering might take longer, as each constraint will be re-evaluated more thoroughly. For complex layouts, this can cause performance issues.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vikash Kumar Tiwari

79163867

Date: 2024-11-06 18:45:48
Score: 2
Natty:
Report link

Thanks to @Diego who opened an issue with geopandas (https://github.com/geopandas/geopandas/issues/3433), I came across two different ways to solve this problem (which originates from pyproj):

Option 1: Disable network use

As described at https://github.com/pyproj4/pyproj/issues/705, add these lines to the preamble:

import pyproj
pyproj.network.set_network_enabled(False)

Option 2: Pre-download projection data

As described at https://pyproj4.github.io/pyproj/stable/transformation_grids.html, add the proj-data package to the conda environment. It's also safest to use a single channel. Either run conda install -c conda-forge proj-data or use this environment:

name: geotest
channels:
  - conda-forge
dependencies:
  - python
  - geopandas
  - proj-data
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Diego
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: patman

79163865

Date: 2024-11-06 18:45:48
Score: 2
Natty:
Report link

Add to Gemfile

gem 'activerecord-import'
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ana

79163862

Date: 2024-11-06 18:44:48
Score: 1.5
Natty:
Report link

I ran into something but it is not very similar, it causes EOF error though. I changed my config in the php.ini in the xdebug entry as follows:

xdebug.connect_timeout_ms=20000 xdebug.max_nesting_level = 2048

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

79163856

Date: 2024-11-06 18:42:47
Score: 1
Natty:
Report link

I think this might work. Let you give it a try.

REG_MATCH(POSTAL_CODE, '^(?:\\d{3}|[A-Za-z]\\d[A-Za-z])')
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: high5dev

79163854

Date: 2024-11-06 18:40:47
Score: 1.5
Natty:
Report link

I ran into something but it is not very similar, it causes EOF error though. I changed my config in the php.ini in the xdebug entry as follows:

xdebug.connect_timeout_ms=20000 xdebug.max_nesting_level = 2048

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

79163853

Date: 2024-11-06 18:40:47
Score: 2
Natty:
Report link

Please make sure that the ConnectorExporter is selected in the CompositeExporter module when you are exporting the CAR file / running inside the embedded Micro Integrator.

enter image description here

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

79163835

Date: 2024-11-06 18:35:46
Score: 0.5
Natty:
Report link
        if (_allowances[from][to] < value) {
            revert ERC20InsufficientAllowance(to, _allowances[from][to], value); //error
        }

        _spendAllowance(from, to, value);

Here you are using to as spender, but the spender is actually msg.sender.

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

79163833

Date: 2024-11-06 18:35:46
Score: 1
Natty:
Report link

Not sure what the difference, maybe the version. But to make it work, I explicitly created a docker network and ran the containers to make use of it. They were then able to connect after that.

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

79163824

Date: 2024-11-06 18:33:45
Score: 3
Natty:
Report link

The only exif info I want is the gps location and the direction the camera is pointing, mine does.

Exif info can be displayed on some of my software and pics on the web My thought is There is ocr software that lets you select the area and will convert it to text. This might be a place to start

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: buddy

79163820

Date: 2024-11-06 18:31:45
Score: 0.5
Natty:
Report link

If you want to continue using truffle/ganache, then you have to change the solidity version to 0.8.19.

I suggest however to get rid of truffle/ganache since they are deprecated. Try hardhat or forge.

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

79163816

Date: 2024-11-06 18:30:44
Score: 0.5
Natty:
Report link

I was having the exact same error with some fairly simple dataset. Apparently the CRAN version of prophet is pretty outdated. I installed the latest version with:

remotes::install_github('facebook/prophet@*release', subdir = 'R')

After re-running my code, the error simply went away.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Daniel B.G

79163812

Date: 2024-11-06 18:26:43
Score: 1.5
Natty:
Report link

Force a Full Build on Each Run:

You can configure Android Studio to always perform a clean build before running: Go to Run > Edit Configurations. Select your app configuration and scroll down to Before Launch. Click on Add (+), then select Gradle-aware Make. This ensures that a Gradle build task runs before launching the app, forcing it to rebuild and apply any XML changes. It works 100%

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

79163809

Date: 2024-11-06 18:24:43
Score: 1
Natty:
Report link

I don't think you posted enough info to solve this problem, but that error means that somewhere in the code there is something called identity_trans and that somewhere in the code you are trying to access an attribute of that object that is not an attribute of that object.

I would look for identity_trans in the code and see where it's trying to reference dataspace_is_numerical as a start.

You posted some of your code but you need to show the part of the code that has dataspace_is_numerical in it for us to really help you.

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

79163808

Date: 2024-11-06 18:24:43
Score: 1.5
Natty:
Report link

Alternatively you could append the following to the end of the line that is generating the error:

# type: ignore

That will silence any Pylance errors on that line only

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

79163805

Date: 2024-11-06 18:23:42
Score: 2.5
Natty:
Report link

I have been able to get around this limitation by adding a few checks when shift end time move into the next day morning. Here is the modified code, that works well for all intervals along with break deductions:

 function calculateHoursGroups(startShift, endShift) {
    
        
      const parseTime = (timeStr) => {
      const [hours, minutes] = timeStr.split(":").map(Number);
      return hours * 60 + minutes;
    };
  
    const formatHours = (minutes) => (minutes / 60).toFixed(2);
    var check = false;
    var endTime;
    const NORMAL_START = parseTime("06:00");
    const NORMAL_END = parseTime("18:00");
    const EVENING_START = parseTime("18:00");
    const EVENING_END = parseTime("21:00");
    const NIGHT_START = parseTime("21:00");
    const NIGHT_END = parseTime("06:00");
    
  
    const BREAK_TIMES = {
      normal: { start: parseTime("12:00"), end: parseTime("12:30") },
      evening: { start: parseTime("20:00"), end: parseTime("20:30") },
      night: { start: parseTime("04:00"), end: parseTime("04:30") },
      midnightBreak: { start: 1680, end: 1710 }, // Midnight break from 28:00 to 28:30
    };
  
      
    const startTime = parseTime(startShift);
    if(parseTime(endShift) < startTime) {
        endTime = parseTime(endShift) + 1440;
        check = true;  
      } 
      else {
        endTime = parseTime(endShift);
      }
  
    const shiftDuration = endTime - startTime;
  
  
  
    let breakDuration = 0;
    if (shiftDuration == 6 * 60) breakDuration = 20;
    else if (shiftDuration > 6 * 60) breakDuration = 30;
  
    const calculateOverlap = (start, end, rangeStart, rangeEnd) => {
  
      // console.log(start)
      // console.log(end)
      const overlapStart = Math.max(start, rangeStart);
      const overlapEnd = Math.min(end, rangeEnd);
      return Math.max(0, overlapEnd - overlapStart);
    };
    
      const calculateShiftHoursInRange = (rangeStart, rangeEnd) => {
        return calculateOverlap(startTime, endTime, rangeStart, rangeEnd);
      };
    
      let normalHours = calculateShiftHoursInRange(NORMAL_START, NORMAL_END);
      let eveningHours = calculateShiftHoursInRange(EVENING_START, EVENING_END);
      let nightHours = calculateShiftHoursInRange(NIGHT_START, NIGHT_END + 1440); 
    
      if (breakDuration > 0) {
        if (calculateOverlap(startTime, endTime, BREAK_TIMES.normal.start, BREAK_TIMES.normal.end) > 0) {
          normalHours -= breakDuration;
        } if (calculateOverlap(startTime, endTime, BREAK_TIMES.evening.start, BREAK_TIMES.evening.end) > 0) {
          eveningHours -= breakDuration;
        } if (calculateOverlap(startTime, endTime, BREAK_TIMES.night.start, BREAK_TIMES.night.end) > 0) {
          nightHours -= breakDuration;
        }
      }
    
        
        // console.log(shiftDuration);
    
      if(check){
           console.log(startTime);
           console.log(endTime)
           console.log("Into the Next Day");
          //  console.log(BREAK_TIMES.midnightBreak.start)
          //  console.log(BREAK_TIMES.midnightBreak.end)
    
           if(nightHours == 360 && startTime < BREAK_TIMES.midnightBreak.start && endTime > BREAK_TIMES.midnightBreak.end){
            nightHours = nightHours - 20;
           }
           if(nightHours > 360 && startTime < BREAK_TIMES.midnightBreak.start && endTime > BREAK_TIMES.midnightBreak.end){
            nightHours = nightHours - 30;
           }
           
           if(endTime > 1800){
            normalHours = endTime - 1800;
           }
    
         }
    
    
      if (startTime < NORMAL_START) { // Handle shifts starting before 06:00
          console.log("Into before normal start time")
          console.log(startTime);
          console.log(endTime);
          nightHours = Math.min(NORMAL_START, endTime) - startTime; 
          normalHours = Math.max(0, endTime - NORMAL_START);
          var totalHours = nightHours + normalHours;
          console.log("Sum: ", totalHours)
          
          if(totalHours == 360 && startTime < 240 && endTime > 270){
            nightHours = nightHours - 20;
          }
  
          if(totalHours > 360 && startTime < 240 && endTime > 270){
           nightHours = nightHours - 30;
          }
          console.log(nightHours);
          console.log(normalHours)
        }
      
          return {
            normal: formatHours(normalHours),
            evening: formatHours(eveningHours),
            night: formatHours(nightHours)
          };
  }
  
    
 function testShiftCalculation(){
      const result = calculateHoursGroups("16:00", "00:00");
      console.log(result); 
    
    }

These added checks, explicitly get start and end time, compare them with the break intervals and then compile the results, any suggestions to improve the overall efficiency of the script would be much appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (2): any suggestions
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: EagleEye

79163800

Date: 2024-11-06 18:21:42
Score: 2.5
Natty:
Report link

Using update.effective_chat.send_message instead of update.message.reply_text solved a similar problem for me. Thanks Никита К

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

79163789

Date: 2024-11-06 18:18:41
Score: 0.5
Natty:
Report link

The issue ended up being with puppeeter, heroku has an issue with it, to fix it we have to add a flag to the build.

When Puppeteer is installed, it triggers a download of a large file such as Chrome. Depending on the network, this can cause a build to timeout. We've found that users no longer see timeouts after adding a PUPPETEER_SKIP_DOWNLOAD config var and setting it to true. This skips the Chrome download and has improved build time.

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

79163785

Date: 2024-11-06 18:17:41
Score: 2.5
Natty:
Report link

enter image description here

.slider-position-prev is good enter image description here

.slider-position-next is not enter image description here

code: main.js const swiper = new Swiper('.slider', { loop: true, grabCursor: true, spaceBetween: 30, observer: true, observeParents: true, parallax:true, pagination: { el: '.swiper-pagination', clickable: true, dynamicBullets: true },

navigation: { prevEl: '.slider-position-prev', nextEl: '.slider-position-next', },

breakpoints: { 0: { slidesPerView: 1, }, }, });

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

79163781

Date: 2024-11-06 18:16:40
Score: 2.5
Natty:
Report link

i got the answer, thanks to smartbear support team.

The ans. is in Testexecute behavior, the Testexecute application check on license availability before getting start, if license is available in the pool then only Testexecute application will open.

Hence in loop i kept running below command, until testexecute open: Start-Process -FilePath $testExecutePath -ArgumentList "/SilentMode /Exit /AccessKey:$AccessKey" -PassThru -Wait

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: prashant

79163779

Date: 2024-11-06 18:16:40
Score: 0.5
Natty:
Report link

Your code is well-organized for processing keyboard and mouse events using chromedp. Since you're dealing with user-input events in JSON format from an external source, security checks are essential to prevent unexpected or malicious inputs from interfering with Chrome's behavior. Here are some recommendations for security checks and improvements:

  1. Validate the JSON Schema Ensure that the JSON input strictly follows the DispatchKeyEventParams or DispatchMouseEventParams format. You might want to enforce specific properties or restrict certain values. This can prevent malformed or unexpected data from causing unintended behavior.

For example:

DispatchKeyEventParams: Validate fields like Type, Modifiers, Key, etc., to ensure they are within the expected range or type. DispatchMouseEventParams: Check X, Y coordinates and event Type to ensure they align with your application's requirements. Using a JSON schema validator can help automate this, but a manual check for critical fields is also viable.

  1. Limit Event Rate If the input source can flood your application with a large volume of events, it might overwhelm your application or Chrome. Consider rate-limiting or debouncing these events to reduce excessive, rapid events. Implement a mechanism to limit the number of events processed per second or per client session.

  2. Restrict Allowed Key Combinations For keyboard events, you might want to restrict certain key combinations or sequences that could be harmful. For example:

Disallow System Keys: Prevent triggering keys like F12, Alt+Tab, or Ctrl+Alt+Delete that might interfere with Chrome’s operation or the host system. Block Keys with Side Effects: Prevent actions that could change Chrome’s state, like Ctrl+W (close tab), Ctrl+N (new window), etc., unless these are explicitly required for your use case. You can filter keys by validating keyevt.Key, keyevt.Modifiers, and keyevt.Type fields, and reject combinations that could pose issues.

  1. Coordinate Bounds Check for Mouse Events For DispatchMouseEventParams, ensure that the X and Y values are within the bounds of the intended viewport. Large values, either accidentally or maliciously, could cause erratic behavior or even unintended scrolling.

  2. Limit Event Types for Both Keyboard and Mouse Ensure that only supported event types are allowed to go through. For example:

For keyevt.Type, allow only legitimate types like "keyDown", "keyUp", or "char". For ptrevt.Type, allow only types like "mousePressed", "mouseReleased", "mouseMoved", etc. Rejecting unsupported or unusual event types can reduce potential abuse.

  1. Authenticate and Authorize Clients If your server is exposed to multiple clients, use an authentication mechanism to verify their identity. You could also add an authorization layer to ensure only certain clients are allowed to send specific events.

Example: Implement an API token or other identity checks when clients connect.

  1. Log Suspicious Events Implement logging to record unusual or suspicious input patterns. For example, rapid consecutive events, extreme coordinate values, or restricted key combinations could trigger warnings. These logs can be used to audit client behavior and detect potential abuse.
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: TANISH SHARMA

79163777

Date: 2024-11-06 18:16:40
Score: 1
Natty:
Report link

I found the problem. The thing is that when adding angle, geom_image seems to be adding some blank square around the image. The solution is to remove the background through the argument image_fun :)

geom_image(
    aes(
      image = image, 
      angle = orientation_degree
      ), 
    image_fun = \(img) {
      img %>%
        magick::image_background('none')
    }
  ) 

enter image description here

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Iñigo Urrestarazu-Porta

79163774

Date: 2024-11-06 18:15:40
Score: 3
Natty:
Report link

help I need answers to this too. What I've tried doing is the tile way. since it takes 8 tiles to complete a 'circle' at 1 radius, i did something like:

radius= 10;

r= 0;

offset= 360/(r * 8);

i= i+offset;

if i===360, r+1;

if r===radius, r=0;

posx= sin(i)*r+originx;

posy= cos(i)*r+originy;

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Optimal-performer

79163772

Date: 2024-11-06 18:15:40
Score: 4
Natty:
Report link

Complementig Andos answer on why to update apache-airflow-providers-fab https://github.com/apache/airflow/issues/43685

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

79163762

Date: 2024-11-06 18:12:39
Score: 1.5
Natty:
Report link

After remove the lines

"-framework",
"\"Reachability\""

of OTHER_LDFLAGS on ios/Runner.xcodeproj/project.pbxproj, now i'm able to run my project without problems.

if it doesnt work maybe you must also remove theReachabilitySwift line on HEADER_SEARCH_PATHS at the same file.

In my case, i use connectivity_plus package and it seems like it removed its dependency over reachability so its doesnt needed it anymore. Make sure you do that for all your schemas

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel Diaz

79163758

Date: 2024-11-06 18:10:38
Score: 4
Natty:
Report link

do this {KEYdown[SHIFT]}{KEYdown[FN]}{KEYpress[F12]}

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rahul Bheke

79163755

Date: 2024-11-06 18:08:37
Score: 1.5
Natty:
Report link

I had the same problem, I tried to install from cmd as admin and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): I had the same
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nico Gilardoni

79163747

Date: 2024-11-06 18:05:37
Score: 0.5
Natty:
Report link

FFT processing really won't help. It may erase some of the directional scratches but what good is that gonna do? Right, not much. And it will introduce other artefacts. My recommendation: forget about FFT.

Input:

enter image description here

Spectrum with blanked-out areas (visualization, not the true data):

enter image description here

After inverse FFT:

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Christoph Rackwitz

79163739

Date: 2024-11-06 18:00:35
Score: 4
Natty: 4.5
Report link

You'll have to remove the Atlas Network Peering Connections, see instructions here: https://www.mongodb.com/docs/atlas/security-vpc-peering/#remove-an-service-network-peering-connection

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

79163721

Date: 2024-11-06 17:54:33
Score: 1.5
Natty:
Report link

Answer from Nov 2024: Remove this android:enableOnBackInvokedCallback="true" from your Manifest (application tags) and onBackPressed will work in regular way.

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

79163717

Date: 2024-11-06 17:53:33
Score: 1.5
Natty:
Report link

Here's a list of Android supported ABIs:

https://developer.android.com/ndk/guides/abis#sa

In summary, there are 4 general supported ABIs, but they can have sub-divisions...I guess you have to print the result of: System.getProperty("os.arch"); in order to know what's the response on a real cellphone.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ramiro G.M.

79163708

Date: 2024-11-06 17:50:32
Score: 3
Natty:
Report link

Is this close to what you need?

Something like this?

The code:

# Load packages
library(tidyverse)
library(ggplot2)

# Make some fake NMDS results:
sampsize <- 10
treatments <- c("start", "end", "1%", "4%")
treatment <- rep(treatments, each = sampsize)
nmds1means <- c(-0.3, 0, 0.3, 0.6)
nmds2means <- c(0.2, -0.7, -0.1, -0.4)
nmds1 <- sapply(nmds1means, FUN = function(x){rnorm(n = sampsize, mean = x, sd = 0.12)}) %>% as.vector
nmds2<- sapply(nmds2means, FUN = function(x){rnorm(n = sampsize, mean = x, sd = 0.2)}) %>% as.vector

df <- data.frame(treatment, nmds1, nmds2)

# Plot as "normal" NMDS plot:
ggplot(data = df, mapping = aes(x = nmds1, y = nmds2)) +
  geom_point()

# Prepare data for summarised NMDS plot:
df2 <- df %>%
  dplyr::group_by(treatment) %>%
  dplyr::summarise(nmds1_mean = mean(nmds1),
                   nmds1_se = sd(nmds1),
                   nmds2_mean = mean(nmds2),
                   nmds2_se = sd(nmds2))

# Plot summarised NMDS plot:
ggplot(data = df2, mapping = aes(x = nmds1_mean, y = nmds2_mean, shape = treatment)) +
  geom_point(size = 4) +
  scale_shape_manual(values = c(15, 16, 17, 18)) +
  geom_errorbar(mapping = aes(ymin = nmds2_mean - nmds2_se, ymax = nmds2_mean + nmds2_se)) +
  geom_errorbar(mapping = aes(xmin = nmds1_mean - nmds1_se, xmax = nmds1_mean + nmds1_se)) +
  lims(x = c(-1, 1), y = c(-1, 1)) +
  xlab("NMDS1") +
  ylab("NMDS2")
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: Teodor

79163707

Date: 2024-11-06 17:50:32
Score: 1.5
Natty:
Report link

Ah, this works:

(dolist (dir (uiop:subdirectories "audio"))   
  (print (first (last (pathname-directory dir)))))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kflak

79163679

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

To avoid exception messages from crashed BackgroundService instances in the .NET console output (STDOUT), you can handle exceptions more gracefully by using one or more of the following techniques:

1**.Override ExecuteAsync in the BackgroundService:**

Override ExecuteAsync and wrap your background task in a try-catch block. This lets you catch exceptions without them bubbling up to STDOUT.

2.Set IHostLifetime to Null:

If the exception is unhandled and crashes the application, the default behavior of IHostLifetime (like ConsoleLifetime in a console app) can propagate the exception to STDOUT.

3.Suppress Unobserved Task Exceptions:

Sometimes, background services crash due to unobserved task exceptions.

4.Graceful Shutdown with Try-Catch:

Add try-catch around the shutdown code.

5.Logging and Custom Logger Configurations:

Consider logging exceptions using a logger instead of writing to STDOUT. Configure logging providers to direct messages to files or databases rather than the console.

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

79163672

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

After carefull investigation of the API documentation, I've arrived to the conclusion that there is no parameter that we can add to the changes.list endpoint to get the name or path for removed files.

Therefore, As I'm developing an app tha synces changes to a google drive account with the local file system, to be able to process the removal of files, I've ended up maintaining a dictionary with the fileId as the key, and the full path of each file as value. That way, each time a I get notified about a removed operation I know which phisical file it refers to and I'm able to delete it.

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

79163671

Date: 2024-11-06 17:36:29
Score: 3.5
Natty:
Report link

You should put await device.disableSynchronization(); before action that leads to Sync issue

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

79163669

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

Check for Incompatible Dependencies in Intellij's Dependency Tree

In Intelllij: Go to view -> Tool Windows -> Maven -> Dependencies and check if multiple versions of JUnit or Spring libraries are present.

If you find conflicting versions, try forcing specific versions in pom.xml

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

79163665

Date: 2024-11-06 17:34:28
Score: 2
Natty:
Report link

There are 3 places where this error could be thrown - the web application server (Kestrel), Azure Web Application Firewall, Azure APIM. As the web application that connects to the API is able to send this request and only the Postman requests are failing, I suspect this is due to Azure Web Application Firewall. Refer this article to modify the limits in WAF.

For controlling content length in APIM please refer this thread

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

79163662

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

During assignment to ENV_VAR, add the '\' slash characters to escape the new lines '\n' and double quotes.

ENV_VAR="{\"example\": \"multi\\nline\\n\"}"
echo $ENV_VAR > example.json

Output

cat example.json 
{"example": "multi\nline\n"}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: slovelo

79163660

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

try

cd pods
git clone https://github.com/google/boringssl.git
cd ..
pod deintegrate
pod repo update
pod update
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hasan koç

79163659

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

I managed to get it working with a combination of afterTickToLabelConversion callback and the major option for ticks by adding a major tick in the callback which represents the latest value displayed on the X axis. For the code, please see my answer: https://stackoverflow.com/a/79163446/28101131

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

79163658

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

I don't know if this will work for you, based on your explanation, I wanted to give you a possible solution.

For better visualization, just color the divs, that will give you a general idea.

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

79163635

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

dialogClass option in jQuery UI Dialog has been deprecated in favor of the classes option.

Here's how to use the classes option to add a custom class to your dialog: JavaScript

$( "#dialog" ).dialog({
  classes: {
    "ui-dialog": "my-dialog-class"
  }
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chad Rainey

79163631

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

I just read from

older version with warning message with textsize

which says that pillow==9.5.0 still supports textsize.
Looks OK for me now.
But they said you will get a warning message for using outdated pillow.

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

79163628

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

I've gotten through this finally, yay!

I have been building by modifying the Makefile.PL and using make and make install. I no longer remember exactly how I created the original _wrap.cxx file, it most certainly would have been via swig.

Regardless, I simply did a swig -perl on the existing .i file, and this time it created a .c wrapper. I hacked the Makefile to replace the .cxx extension with .c, and we're now past the Perl error, we're getting into the C code.

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

79163614

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

For a dockerfile like:

FROM alpine:latest
ENV VAR='{"example": "multi\nline\n"}'
RUN apk add jq

something like:

$ echo "${VAR}" | jq -c . > example.json
$ cat example.json 
{"example":"multi\nline\n"}

would work. The -c just disables the pretty print jq does by default.

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

79163613

Date: 2024-11-06 17:22:22
Score: 6 🚩
Natty: 5.5
Report link

How to mouse focus on specific line after scroll ? without clicking on mouse ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: angga

79163595

Date: 2024-11-06 17:16:19
Score: 1.5
Natty:
Report link

Why not do

torch.tensor(np.random.default_rng().choice(max_value, size=(num_samples,), replace=False))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (0.5):
Posted by: Fırat Kıyak

79163594

Date: 2024-11-06 17:16:19
Score: 3.5
Natty:
Report link

Warning ⚠️ by cyber security

Your will give a warning ⚠️ don't spread fake information ℹ️ Otherwise our team will be get hard ways Suspense:- don't call be anywhere without any reason Complaint:- *******726

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Cyber security

79163567

Date: 2024-11-06 17:09:18
Score: 2
Natty:
Report link

It worked for me when Disable SSL verification on Git globally and pull from my branch.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28166460

79163533

Date: 2024-11-06 17:01:15
Score: 4.5
Natty: 7
Report link

This works for me for a SPA at /my-app, but if my webapp defines a route for /my-app/newpage, that gives a 404. Is there something I need to do to make that work?

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: billp

79163532

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

Here is my solution.

def show_time_of_pid(line):
  pattern = r"(\w+ \d [\d:]+)([\S ]+)\[(\d+)\]"
  result = re.search(pattern, line)
  return "{} pid:{}".format(result.group(1), result.group(3))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: A K

79163527

Date: 2024-11-06 17:00:14
Score: 1.5
Natty:
Report link

You will need to add maven-processor-plugin to the pom.xml

To ensure the generated classes are created before compilation. This plugin runs annotation processors like those required for Lombok and Hibernate JPA model generation during the generate-sources phase.

https://mvnrepository.com/artifact/org.bsc.maven/maven-processor-plugin[maven-processor-plugin]

Reasons:
  • Blacklisted phrase (1): This plugin
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Oussama Makhlouk

79163524

Date: 2024-11-06 17:00:14
Score: 1.5
Natty:
Report link

I am a developer and also seeking for how to implement password reset logic but found nothing. So finally by reading so many docs and learning about new technologies I have finally implemented password reset logic. I have create a blog in which I talked in depth about logic behind password reset. Right from flow chart to proper working implementation. I have used latest technologies like NextJS 15, jsonwebtoken, nodemailer, bcryptjs, MongoDB atlas. Check out my article :- link

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

79163516

Date: 2024-11-06 16:57:13
Score: 0.5
Natty:
Report link

To set "equal height of elements inside grid item with CSS grid layout", just set the height of the direct children of the grid to 100%. After that is done, you can set the height of inner elements (inside the children) as you see fit.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Antonio Brandao

79163515

Date: 2024-11-06 16:57:13
Score: 1.5
Natty:
Report link

I came across this post from Google, and although it's old, it does cover some key concepts that I have seen users struggle with. Providing people with a fully featured WebRTC Phone, rather than a script library was the inspiration for Starting Siperb. Then, also providing people with the tools they need to connect this Phone to any Asterisk box (even and older one) or a hosted one was a natural next step. If you are not up for the challenge of sip.js or sipml5, just head over to https://www.siperb.com/

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

79163514

Date: 2024-11-06 16:57:13
Score: 1
Natty:
Report link

Adding: proxy_set_header Host $host:1337; worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jupe

79163504

Date: 2024-11-06 16:51:12
Score: 3
Natty:
Report link

As mentioned in following article: https://www.freecodecamp.org/news/how-to-update-npm-dependencies/ , npm update doesn't update to a major breaking-changes version. I don't know if it's your case, but it is something that you could check

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

79163502

Date: 2024-11-06 16:50:11
Score: 2.5
Natty:
Report link

To access timestamp info you should first send message without any cmsg structure, and then extract it from socket error buffer using recvmsg call with MSG_ERRQUEUE flag specified https://docs.kernel.org/networking/timestamping.html#transmit-timestamps-with-msg-errqueue

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

79163495

Date: 2024-11-06 16:47:11
Score: 3.5
Natty:
Report link
File /r "C:\Program Files\YoureCurrentProgramName\*.*"
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ririto Ninigaya

79163489

Date: 2024-11-06 16:46:10
Score: 1.5
Natty:
Report link

So, to remedy this situation, I moved the Error Window to another monitor. Kind of stupid to not allow you to "hide" it but this works

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

79163486

Date: 2024-11-06 16:45:10
Score: 1.5
Natty:
Report link

you could set the count as 0 in the begining of the function

def bubbleSort(arr):
    swap.calls = 0

and the decorator on the swap


@swapCount
def swaparr):
    pass
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ivans

79163484

Date: 2024-11-06 16:45:10
Score: 2
Natty:
Report link

I'm adding an answer from late 2024 for VSCode. I realise the question was about old Visual Studio, but when googling the same for vscode it is this page that is the most popular result.

In VSCode the approach is different. You have to install one of the plugins for this reason. No native ways to use another compare/merge tool definitely, as I have found in many sources. I tried a couple of plugins and Meld Diff was exactly what I needed. It works extremely well for me!

The setup for Meld Diff is very simple:

  1. Install the plugin
  2. Go to settings, type "meld-diff.diffCommand" in search field and insert path to your comparison tool into the result setting. (The screenshot shows the same setting among the others, so that you clearly see the arguments are automatically configured correctly in the other fields.) Meld Diff settings to launch Araxis Merge

The path for MacOS should be /Applications/Araxis Merge.app/Contents/Utilities/compare. For Windows the path should be to the Araxis' ConsoleCompare.exe file (have seen this in their docs) but didn't check it myself.

And that's it! You can now go and use it right away.

You can right-click a file in the Source Control panel and use the respective command "Open with meld diff..." and so on. Or you can select a couple of files in VSCode's Explorer panel and run similar command (mentioning "meld") to compare them. Same for folders.

NOTE: Merge functionality didn't work for me (when selecting 3 files), but I don't need it too much so didn't dig into that matter. If anyone wants to invest into investigating further - please share the feedback here, too!

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Denis P

79163481

Date: 2024-11-06 16:44:10
Score: 0.5
Natty:
Report link

Your GetFormula function expects a range.

Function GetFormula(Target As Range) As String
    GetFormula = Target.Formula
End Function

But when you call it, you pass an address/a string:

c.Formula = Eval(GetFormula(c.Adress))

So, change this line to:

c.Formula = Eval(GetFormula(c))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Abdallah El-Yaddak

79163476

Date: 2024-11-06 16:43:10
Score: 1
Natty:
Report link

What is the problem in this programm :

"a = print(input("entrez votre note"))

b = print(input("entrez votre note"))

c = print(input("entrez votre note"))

d = print(input("entrez votre note"))

e = print(input("entrez votre note"))

if (a+b+c+d+e)/5<10:

print("Redouble ! ")

if (a+b+c+d+e)/5>=10 and (a+b+c+d+e)/5<12:

print("Passable ")

if (a+b+c+d+e)/5>=12 and (a+b+c+d+e)/5<14:

print("Assez bien ")

if (a+b+c+d+e)/5>=14 and (a+b+c+d+e)/5<16:

print("Bien ")

if (a+b+c+d+e)/5>=16 and (a+b+c+d+e)/5<18:

print("Très bien ")

if (a+b+c+d+e)/5>=18:

print("Excellent ")"
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): What is the
  • Low reputation (1):
Posted by: Ray

79163474

Date: 2024-11-06 16:42:09
Score: 3
Natty:
Report link

Solved it by adding a div in the root component of my app, that wraps everything.

<div id="mfe-container">
   ...everything that was in the app.component.html before...
</div>

I also use my own theme now (using a prebuilt theme was meant as temporary solution anyway). Instead of including the theme in the html element, I include it for the wrapper element from above in my styles.scss

@use '@angular/material' as mat;

// my custom theme file
@use './m3-theme';

// The core mixin must be included exactly once for your application, even if you define multiple themes. 
// Including the core mixin multiple times will result in duplicate CSS in your application.
// https://material.angular.io/guide/theming#the-core-mixin
@include mat.core();

#mfe-container {
  @include mat.all-component-themes(m3-theme.$light-theme);
}

I don't know how to solve this for a prebuilt theme (as that defines the variables for the element). If my solution inspires you to solve it without custom theme, please add it as answer or comment as well. In may case I planned to add a custom theme anyway. If this solution inspires you to solve the same

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (2): I don't know how to solve
  • RegEx Blacklisted phrase (2): know how to solve
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: andymel

79163470

Date: 2024-11-06 16:41:09
Score: 2
Natty:
Report link

Make sure you are not in a venv, as by default it does not inherit the system env variables that you probably have set.

So, try installing it system-wide, or try adding the env variables definitions to the venv's Script file.

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

79163449

Date: 2024-11-06 16:34:07
Score: 1
Natty:
Report link

You can set maxWidth to false if you need it for a specific container.

<Container maxWidth={false} sx={{ width: "100%" }}>{children}</Container>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Eskil Mjelva Saatvedt

79163447

Date: 2024-11-06 16:34:07
Score: 1
Natty:
Report link

If you have that problem with an angular elements based microfrontend with ViewEncapsulation.ShadowDom set you maybe have the same problem as I had:

Why it did not work
My dive into the code showed that

As the shadow DOM is a border between the CSS of the host page and the CSS of the Microfrontend/Webcomponent, everything inside that shadow-root does not have access to css outside of the shadow-root (defining something for the tag in a tag inside the shadow-root does not work).

My Solution
I added a div in the root component of my app, that wraps everything.

<div id="mfe-container">
   ...everything that was in the app.component.html before...
</div>

Instead of including the theme in the html element, I include it in that wrapper element in my styles.scss

@use '@angular/material' as mat;

// my custom theme file
@use './m3-theme';

// The core mixin must be included exactly once for your application, even if you define multiple themes. 
// Including the core mixin multiple times will result in duplicate CSS in your application.
// https://material.angular.io/guide/theming#the-core-mixin
@include mat.core();

#mfe-container {
  @include mat.all-component-themes(m3-theme.$light-theme);
}
Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • High reputation (-1):
Posted by: andymel

79163434

Date: 2024-11-06 16:27:05
Score: 1
Natty:
Report link

I've solved this by adding.htaccess file in htdocs folder of XAMPP. Here is the code:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ [NC]
RewriteCond %{REQUEST_URI} ^/addonfolder/(.*)$
RewriteRule ^(.*)$ - [L,R=404]

Now domain.com/sub.domain.com has no access to sub.domain.com folder in htdocs, it retunrs 404 error.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nazmul Hasan Pias

79163428

Date: 2024-11-06 16:26:05
Score: 4.5
Natty:
Report link

https://github.com/onurkanbakirci/trendsgit is the ultimate tool for tracking trending repositories over time.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): is the
  • Low reputation (0.5):
Posted by: Onurkan Bakırcı

79163425

Date: 2024-11-06 16:25:04
Score: 4.5
Natty:
Report link

https://github.com/onurkanbakirci/trendsgit is the ultimate tool for tracking trending repositories over time.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): is the
  • Low reputation (0.5):
Posted by: Onurkan Bakırcı

79163421

Date: 2024-11-06 16:25:04
Score: 4.5
Natty:
Report link

https://github.com/onurkanbakirci/trendsgit is the ultimate tool for tracking trending repositories over time.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): is the
  • Low reputation (0.5):
Posted by: Onurkan Bakırcı

79163416

Date: 2024-11-06 16:24:03
Score: 1.5
Natty:
Report link

Here is how we can do this

k = ['name', 'age', 'city']    
v = ('Zubair', 22, 'Pakistan') 

d = dict(zip(k, v))

print(f"Name\t{d['name']}")
print(f"Age\t\t{d['age']}")
print(f"City\t{d['city']}")

enter image description here

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

79163414

Date: 2024-11-06 16:24:03
Score: 3
Natty:
Report link

Use https://github.com/yoori/flare-bypasser - run as docker get target site cookies from it, and use requests with these cookies after. This works stable for me

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: юрий кузнецов

79163413

Date: 2024-11-06 16:24:03
Score: 2
Natty:
Report link

I had this issue when calling a Blazor component and supplying an EventCallback.

The issue arose because I had defined the same method twice.

Removing one of them solved the issue.

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

79163412

Date: 2024-11-06 16:24:03
Score: 2.5
Natty:
Report link

Sorry for the inconvenience. After searching all day the solution came five minutes after I posted the message here.

The problem was the DNS configuration. We had opened the ports in the wrong DNS zone.

As I may not be the only one to have this symptom it may still be useful.

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

79163407

Date: 2024-11-06 16:23:03
Score: 2
Natty:
Report link
request.Order.FirstOrDefault(x => x.Name == "From")?.Name = "FromDate";
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: alex

79163404

Date: 2024-11-06 16:22:02
Score: 1.5
Natty:
Report link

If you set np.seterr(all='ignore') or np.seterr(under='ignore') numpy is smart enough to set the result to zero without raising any error.

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

79163403

Date: 2024-11-06 16:22:02
Score: 3.5
Natty:
Report link

Found the issue!

It was because drawing the texture onto the screen draws on top of the gui. I had to separate the functions out into a "DrawScreenTexture()" function and then just a "SwapWindow()" function. Code now looks like this.

ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplSDL2_NewFrame();
ImGui::NewFrame();

ImGui::Begin("Material Controls");
ImGui::Text("Hello World!");
ImGui::End();

_myFramework.DrawScreenTexture();

ImGui::Render();
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());

_myFramework.SwapWindow();

Also shout out to whoever downvoted my question and to whoever edited my question to take any kind of personality out much appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (2): downvote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: James Comer

79163401

Date: 2024-11-06 16:20:02
Score: 1
Natty:
Report link

Many years passed, I am (hopefully) wiser now and can give some advice on how to deal with the problem described above.

First of all, 'removing last significant digit' is not going to help at all. It makes problem worse. Say, you got want to round to remove last three digits. If your start with numbers a=1.499 and b=1.501 you end up with a'=1 and b'=2. So, although such rounding can 'smooth out' small discrepancies it will also significantly increase some of them.

The approach, which seems to work instead, is using algorithms, like Kahan summation to reduce numerical error. It works particularly well, if you want to find a sum of elements in, say vector. Straightforward summation will give you a result, which depends on order of elements in the vector. Using Kahan summation will almost always give you the same answer.

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