79363115

Date: 2025-01-16 21:42:38
Score: 1.5
Natty:
Report link

/storage/emulated/0/Download/the long drive mobile_1.0_APKPure/icon.png Bad or unknown format /storage/emulated/0/Download/the long drive mobile_1.0_APKPure/icon.png archive

/storage/emulated/0/Download/the long drive mobile_1.0_APKPure/manifest.json Bad or unknown format /storage/emulated/0/Download/the long drive mobile_1.0_APKPure/manifest.json archive

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

79363105

Date: 2025-01-16 21:35:36
Score: 0.5
Natty:
Report link

This can now be achieved using onError:

const doc = new dom({
    onError: (level: 'warning' | 'error' | 'fatalError', msg: string) => {
      if (level === 'fatalError') {
        console.error(msg);
      }
    },
}).parseFromString(body);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Burns

79363094

Date: 2025-01-16 21:26:33
Score: 3
Natty:
Report link

Try including 'vs' in the grouping you wrote like this :

group_by(am, vs) %>%

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mohammed Nizar Ben Maallem

79363093

Date: 2025-01-16 21:26:33
Score: 1
Natty:
Report link

Thanks everyone I have gotten the answer through the hint gotten from the answers posted.the breakdown of the answer I used was to convert my code above to a function and pass it in side a window event.

    window.addevenElistener('resize', () => {
  if(window.innerwidth =< 992){
     RunsSomeFunction()
   } else {
do something }
})
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alkhaira Media

79363089

Date: 2025-01-16 21:25:33
Score: 2.5
Natty:
Report link

you can use float-left in your sidenav

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Amrit Iphone

79363088

Date: 2025-01-16 21:24:32
Score: 5.5
Natty: 5.5
Report link

Colab Version has changed to version 3.11. Has somebody an uodate for wrapper?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kai Wang

79363076

Date: 2025-01-16 21:16:30
Score: 3
Natty:
Report link

Using MAMP version 7.2 you start MySQL from the terminal's command line with: /Applications/MAMP/Library/bin/mysql80/bin/mysql -uroot -proot

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

79363074

Date: 2025-01-16 21:16:30
Score: 1.5
Natty:
Report link

I have resolved the issue. It was an layer 8 (usage) issue from me.

The libraries linking arguments must be after the sources with GCC/G++ of course, not before:

$ g++ -o vkExtension vkExtension.cpp -lvulkan

Totally forgotten this behavior from GCC/G++. Sorry, to other SO users for wasting your time.

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

79363073

Date: 2025-01-16 21:16:30
Score: 1.5
Natty:
Report link

i made a mistake when i called client.connect() with username option:

before:

client.connect(host, username, key_filename=os.path.join(os.path.expanduser('~'), ".ssh",private_key_file))

after:

client.connect(host, username=username, key_filename=os.path.join(os.path.expanduser('~'), ".ssh",private_key_file))

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

79363066

Date: 2025-01-16 21:13:29
Score: 1.5
Natty:
Report link

This can be done using the proxyUrlPrefixToRemove. Adapted from https://wiremock.org/docs/proxying/#remove-path-prefix

{
    "request": {
        "method": "GET",
        "urlPattern": "/foo/.*"
    },
    "response": {
        "proxyBaseUrl": "http://backend.com/bar"
        "proxyUrlPrefixToRemove": "/foo"
    }
}

Requests to mock.com/foo?paramA=valueA&paramB=valueB would be forwarded to http://backend.com/bar?paramA=valueA&paramB=valueB

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

79363065

Date: 2025-01-16 21:12:29
Score: 3.5
Natty:
Report link

I think I have a valid use case that is related to the original question.

Some Python caching libraries let you specify caching policy using a decorator, e.g.:

@cache(ttl=100)
def retrieve_data():

If I want to include that code in a package and I want the package users to be able to set the cache TTL value that is appropriate to their end applications, is that possible without sacrificing the simplicity of decorator syntax?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Elk

79363053

Date: 2025-01-16 21:04:27
Score: 1
Natty:
Report link

Docker creates defaultServer from server template by default.

RUN command can be used to create a new server. After this setup, when the container is started, there will be two servers defaultServer and namedserver, created using RUN command.

FROM icr.io/appcafe/open-liberty:[version-you-need]

# Create new Liberty server (namedServer)
RUN server create "namedServer"

... any other config 

# Overwrite default CMD
CMD ["server", "run", "namedServer"]
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yogesh Valvaikar

79363046

Date: 2025-01-16 21:03:27
Score: 1.5
Natty:
Report link

It is not very clear, how you set up everything, but maybe it is just a minor issue:

You are trying to do this.element.requestSubmit, the form is not submitting anything after a change of the filter. I am not familiar with "Polaris", but it looks like you are using radio buttons....

maybe you can try to change the code to listen for events when the selected radio changed?

export default class extends Controller {
  connect() {
    // here we start and attach the "change" event listener...
    this.element.querySelectorAll("input[type='radio']").forEach((radio) => {
      radio.addEventListener("change", this.submit.bind(this));
    });
  }

  disconnect() {
    // after the page is left, we "un-listen"
    this.element.querySelectorAll("input[type='radio']").forEach((radio) => {
      radio.removeEventListener("change", this.submit.bind(this));
    });
  }

  submit() {
    this.element.requestSubmit();
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Michael W.

79363025

Date: 2025-01-16 20:51:23
Score: 2
Natty:
Report link

SortMyFiles Extension

https://marketplace.visualstudio.com/items?itemName=CanklotSoftware.SortMyFiles

After having the same problem and reading this page I decided to make my own extension. Because the other recommended extensions don't use the default VS Code file explorer. Instead they create another section.

VS Code API normally doesn't support re-ordering files. But I found a work around. My extension changes the default sort type to modified. And changes last modified date of the files listed in its config file. After installing the extension (SortMyFiles from canklotsoftware) you need to create a file named .order. Then write the name of the files in the order you want to display them.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same problem
  • Low reputation (0.5):
Posted by: mustafa candan

79363024

Date: 2025-01-16 20:51:23
Score: 2.5
Natty:
Report link

check your package.json dependencies if you have any "undefined":""

eg: "undefined": "firebase/app"

If there is, remove and reinstall

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

79363022

Date: 2025-01-16 20:50:23
Score: 3
Natty:
Report link

If anyone is still having the same problem, try using this command in your mac terminal.

~/Library/Android/sdk/emulator/emulator -avd <AVD_NAME> -dns-server 8.8.8.8

it basically changes your emulator dns settings as google's dns.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same problem
  • Low reputation (0.5):
Posted by: mbayram93

79363018

Date: 2025-01-16 20:46:20
Score: 12.5 🚩
Natty: 6.5
Report link

did you fix it? I have the same problem now

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

79363006

Date: 2025-01-16 20:41:19
Score: 3
Natty:
Report link

You can install regular in same way. There is no special need mongodb website -> products -> community edition -> download community -> version - whaterver current version platform - ubuntu 24.04 x64 package - server

then download.

after that right click on downloaded file and open with app center ( or do regular installation like in this video https://www.youtube.com/watch?v=HSIh8UswVVY) and install.

now start the service by opening terminal and typing :

sudo systemctl status mongod

sudo systemctl start mongod

sudo systemctl status mongod

now your mongodb should be installed. also install mongosh or compass

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tanmay Pandey

79362999

Date: 2025-01-16 20:38:18
Score: 0.5
Natty:
Report link

If you want to do something if it does or doesnt exist you can run the following command against TempDb. It returns NULL if the temp table does not exist and the numeric id if it does.

SELECT object_Id('tempdb..#some_temp_table')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: roblem

79362997

Date: 2025-01-16 20:38:18
Score: 3
Natty:
Report link

I had the exact same issue. I updated Ruby version to 3.3.5 and the problem was solved. I hope it's useful for you.

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

79362985

Date: 2025-01-16 20:30:15
Score: 12
Natty: 7.5
Report link

@lucien-dubois did you manage to solve the issue?

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to solve the
  • RegEx Blacklisted phrase (1.5): solve the issue?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @lucien-dubois
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Manja

79362983

Date: 2025-01-16 20:29:15
Score: 0.5
Natty:
Report link

I think the issue isn’t about where the processing happens, but how the data is handled after processing. When you run client.query(query).to_dataframe(), BigQuery executes the query and then transfers the entire result set to your Colab instance. I suppose this is where the bottleneck occurs.

What you can try is to perform as much processing as possible within BigQuery itself. Instead of pulling the entire result set into a DataFrame, export the results to a destination like Cloud Storage. Then, you can process the data in smaller chunks or use tools designed for large datasets within your Colab environment.

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

79362980

Date: 2025-01-16 20:28:15
Score: 3
Natty:
Report link

Inadvertently attempted to link to run on an Xcode Sim. My Bad!

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

79362979

Date: 2025-01-16 20:26:14
Score: 2
Natty:
Report link

I ran into the same challenge managing notifications. While GitLab for Slack App doesn’t offer the exact filtering you’re looking for, tools like https://leanhub.co can help. you can configure notifications for specific branches, and it send merge request updates, pipeline statuses, and approval events to your selected Slack channel for those branches.

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

79362977

Date: 2025-01-16 20:25:14
Score: 0.5
Natty:
Report link

Setting the DSCP on a socket can be done like this: socket_.set_option(boost::asio::detail::socket_option::integer<IPPROTO_IP, IP_TOS>(value << 2))

(Note the left shift to set the 6 most significant bits and clears the ecn bits.

For verifying whether the socket sets the correct DSCP values I suggest you use Wireshark or if you need to test programmatically something like pcap or bpf.

Reasons:
  • No code block (0.5):
Posted by: Ruurd Adema

79362971

Date: 2025-01-16 20:24:14
Score: 0.5
Natty:
Report link
  1. Skip the current test if the module cannot be imported.
@pytest.importorskip("extra_name")
def test_something():
    # Test logic here
    pass
  1. Skip all tests in a module if some import is missing.
extra_name = pytest.importorskip("extra_name")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: defalt

79362965

Date: 2025-01-16 20:23:13
Score: 3.5
Natty:
Report link

If your looking for where the duplicates could be, this answer should be able to help.

How to find the location of duplicate symbol

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

79362960

Date: 2025-01-16 20:22:13
Score: 1.5
Natty:
Report link

The fix was as simple as passing in another param in the Worker class.

const worker = new Worker(new URL("../lib/worker.js", import.meta.url), {
 type: "module"
})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: jiamijiang

79362948

Date: 2025-01-16 20:16:11
Score: 3
Natty:
Report link

I had to move the PULL_REQUEST_TEMPLATE.md file to the project's root folder and the PR template auto-populates the PR's description.

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

79362944

Date: 2025-01-16 20:15:11
Score: 12.5
Natty: 8
Report link

did you get any improvement? I have stucked on the same issue. Any help is appreciated

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): did you get any
  • RegEx Blacklisted phrase (3): Any help is appreciated
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: nisbusra

79362941

Date: 2025-01-16 20:13:10
Score: 3.5
Natty:
Report link

It looks like I just needed to be patient. I checked the site just now after letting it be for a couple hours and everything is displaying as expected.

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

79362939

Date: 2025-01-16 20:13:10
Score: 2.5
Natty:
Report link

Use CI4 to set headers: https://codeigniter4.github.io/userguide/outgoing/response.html#setting-headers

I added the following to the controller and that fixed it!

$this->response->setHeader('Content-Type', 'text/xml'); 
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: xanabobana

79362935

Date: 2025-01-16 20:12:09
Score: 4
Natty:
Report link

I will definitely get this fixed.

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

79362932

Date: 2025-01-16 20:09:08
Score: 4.5
Natty:
Report link

Do you extend the theme from Theme.MaterialComponents? Here's a link that might help: Getting started with Material Components for Android

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Juan Ortiz Couder

79362931

Date: 2025-01-16 20:08:07
Score: 4
Natty:
Report link

Sometimes, clearing cookies can help.

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

79362929

Date: 2025-01-16 20:08:07
Score: 3.5
Natty:
Report link

Try using browser.log('foo');.

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eugene Martynov

79362928

Date: 2025-01-16 20:06:06
Score: 1
Natty:
Report link

What you are trying to do is push an object but instead only pushing an array.

Correct implementation:

let Loads = []
let load = [
  {
    "Depositorcode":"VEN02"
  },
  {
    "Depositorcode":"BAS18"
  }
]
Loads.push({load: load})
console.log(Loads)

Your implementation is simply adding more data to the array, as if you were doing:

let data = ['foo']
data.push('bar')
//data = ['foo', 'bar']
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): What you are
  • Low reputation (1):
Posted by: Jacques Rossouw

79362927

Date: 2025-01-16 20:06:06
Score: 5
Natty:
Report link

Thank you for the information! In crypto.h.in file I see the following:

# if defined(OPENSSL_THREADS) && !defined(CRYPTO_TDEBUG)
480 #  if defined(_WIN32)
481 #   if defined(BASETYPES) || defined(_WINDEF_H)
482 /* application has to include <windows.h> in order to use this */
483 typedef DWORD CRYPTO_THREAD_LOCAL;
484 typedef DWORD CRYPTO_THREAD_ID;
485
486 typedef LONG CRYPTO_ONCE;
487 #    define CRYPTO_ONCE_STATIC_INIT 0
488 #   endif
489 #  else
490 #   if defined(__TANDEM) && defined(_SPT_MODEL_)
491 #    define  SPT_THREAD_SIGNAL 1
492 #    define  SPT_THREAD_AWARE 1
493 #    include <spthread.h>
494 #   else
495 #    include <pthread.h>
496 #   endif
497 typedef pthread_once_t CRYPTO_ONCE;
498 typedef pthread_key_t CRYPTO_THREAD_LOCAL;
499 typedef pthread_t CRYPTO_THREAD_ID;

We have our own wrappers for the above pthread_once_t, pthread_t. So, we are getting an error in compilation of our code. Could you please let me know how do I avoid this issue with reference to the above openssl variables or any other workaround that is available? In openssl 1.0.2 version these pthread variables were not present. We were using openssl 1.0.2 before. We do not want to declare the above pthread variables of openssl 3.0.15 as we have our own wrappers. Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): how do I
  • RegEx Blacklisted phrase (2.5): Could you please let me know how
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sank

79362926

Date: 2025-01-16 20:06:06
Score: 1
Natty:
Report link

There's no built-in method for that, you'd have to query and compare; or do full index comparison using the scroll / PIT APIs.

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

79362925

Date: 2025-01-16 20:06:06
Score: 2
Natty:
Report link

You can't use your own UI fields to capture raw card information as passing raw card information to Stripe's API comes with some requirements and requires approval from Support.

I'd recommend reading https://support.stripe.com/questions/enabling-access-to-raw-card-data-apis and reaching out to their Support team if you meet the requirements.

According to docs - CardForm and CardField both do support style parameter. Have you tried using that to customize the look?

https://stripe.dev/stripe-react-native/api-reference/index.html#CardField

https://stripe.dev/stripe-react-native/api-reference/index.html#CardForm

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: hanzo

79362923

Date: 2025-01-16 20:05:06
Score: 1
Natty:
Report link

Solution 2025

I faced the same issue while connecting to mongo through mongo-express. Below are the steps i followed to get rid of the issue.

  1. First replace ME_CONFIG_MONGODB_SERVER with ME_CONFIG_MONGODB_URL.

It should look like "docker run -it -p 8081:8081 -e ME_CONFIG_MONGODB_URL=mongodb://root:root@{IP address of mongodb container} mongo-express " this will work if your mongo server is not running on a separate network.

IP Address can be found using "docker inspect {mongo server container id}"

  1. Alternatively, If your mongo server has been created using custom network.

Your command would be "docker run -it -p 8081:8081 -e ME_CONFIG_MONGODB_URL=mongodb://root:root@{Mongo server name (or) IP address of mongodb container} --network {network id} mongo-express ".

Network id can be found using "docker network ls". search for your mongo server.

Please Upvote if you find this helpfull.

Reasons:
  • Blacklisted phrase (0.5): Upvote
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hafeez Mohammad

79362921

Date: 2025-01-16 20:05:06
Score: 1
Natty:
Report link

Finally the solution for this case was to modify the app code by doing the following changes:

app.UseHttpsRedirection();

app.UseForwardedHeaders(new ForwardedHeadersOptions { ForwardedHeaders = Microsoft.AspNetCore.HttpOverrides.ForwardedHeaders.XForwardedProto,
});

Additionally, I performed some adjustments in apache server in the VirtualHost that handles requirements with port 80. This line was added:

Redirect permanent / "https://example.com/"

after those changes, the application was authenticated sucessfully against azure entra and the redirection was correct.

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

79362920

Date: 2025-01-16 20:03:05
Score: 0.5
Natty:
Report link

I changed time filter and loading/ loaded filter, could you please try this?

SELECT b.bill_number, 
       b.detail_line_id, 
       b.callname, 
       b.destname, 
       a.trip_number, 
       b.deliver_by, 
       a.status_code
FROM odrstat a
LEFT JOIN tlorder b 
  ON a.order_id = b.detail_line_id
WHERE a.trip_number = 62886 
  AND NOT EXISTS (
      SELECT 1 
      FROM odrstat c
      WHERE c.order_id = a.order_id 
        AND c.status_code IN ('LOADING', 'LOADED')
  )
  AND b.deliver_by >= CURRENT_TIMESTAMP + INTERVAL 3 HOUR
  AND b.deliver_by < CURRENT_TIMESTAMP + INTERVAL 4 HOUR
GROUP BY b.bill_number, 
         b.detail_line_id, 
         b.callname, 
         b.destname, 
         a.trip_number, 
         b.deliver_by, 
         a.status_code;
Reasons:
  • Whitelisted phrase (-1): try this
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: bsraskr

79362919

Date: 2025-01-16 20:03:05
Score: 1.5
Natty:
Report link

If you simply want to display it on a web page (e.g. within HTML) I use <pre><xmp>$xml</xmp></pre>

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

79362918

Date: 2025-01-16 20:03:05
Score: 2
Natty:
Report link

While the pricing calculator docs still say that no API exists, it's worth noting their does seem to be an SDK. https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bcm-pricing-calculator/

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

79362917

Date: 2025-01-16 20:03:05
Score: 2.5
Natty:
Report link

What to do to change this not for all disks, but for a particular disk? So for example:, C: alert at 80% D: alert at 80% E: alert at 95% Because the E partition is very large and so an alert at 80% means there is still a lot of free space left.

Actually would perhaps even be better to check for a minimum of ex. 150GB free disk space on F: Is that possible?

( I use Zabbix 7)

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

79362916

Date: 2025-01-16 20:02:05
Score: 2
Natty:
Report link

-- Fetch all branches from the remote repository

git fetch

-- List all branches, including remote branches

git branch -a

-- Create a new local branch tracking the remote branch

git checkout -b feature-branch origin/feature-branch

-- Verify that you are on the new branch

git branch

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

79362914

Date: 2025-01-16 20:01:04
Score: 1
Natty:
Report link

Do you have sample code? my passwords not sync with ns flux-system in k8s github up to date password as encrypted

i shown code structure

ns: flux-system has my-secrets

i placed secret encrypted under /apps/test

apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
  name: podinfo
  namespace: flux-system
spec:
  interval: 5m
  url: https://github.com/narayanab16/podinfo
  ref:
    branch: main
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: podinfo
  namespace: flux-system
spec:
  interval: 10m
  targetNamespace: flux-system
  sourceRef:
    kind: GitRepository
    name: podinfo
  path: "./apps/test"
  prune: true
  timeout: 1m
  # Decryption configuration starts here
  decryption:
    provider: sops
    secretRef:
      name: sops-age

enter image description here

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Narayana Basetty

79362891

Date: 2025-01-16 19:54:03
Score: 1
Natty:
Report link

Publishing a branch is the act of making a branch available on a remote repository (e.g., GitHub, GitLab, or Bitbucket) for the first time. When it Happens: If the branch exists only locally (on your machine), it has not been uploaded to the remote repository. When you "publish" it, the branch gets created in the remote repository, and you can share it with others.

Pushing is the action of uploading your commits (changes) from your local branch to the corresponding branch in the remote repository. When it Happens: If the branch already exists on the remote, you "push" changes to update it. This keeps the remote branch in sync with your local branch.

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

79362879

Date: 2025-01-16 19:48:01
Score: 2.5
Natty:
Report link

I have made a small Project to calculate the intersection Point of 4 Spheres in 3D Space. The approach is a set of geometrical calculations between Circles, Planes, Speres etc. in 3D space some of which migth be usefull for other purposes.

Basically i implemented this: https://gamedev.stackexchange.com/questions/75756/sphere-sphere-intersection-and-circle-sphere-intersection

The Project: https://github.com/flhel/geometricCalcuations

Side note: This is not how GPS Calculates the Position due too measurment errors. For GPS like purposes you could use something like the Bancroft-Algorithm.

Source: https://www.researchgate.net/publication/296816047_Mathematische_Grundlagen_fur_GPS

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

79362878

Date: 2025-01-16 19:47:00
Score: 5
Natty:
Report link

@Prateek, could you help on where can we find the jdk-8u101 for mac os aarm chip (M2 pro). I tried https://www.azul.com/downloads/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk#zulu but getting null pointer exception.

java -jar V998597-01.jar -ignoreSysPrereqs Launcher log file is /private/var/folders/5j/0sp1k0g92_376dtjgdlr357w0000gn/T/OraInstall2025-01-16_11-17-24AM/launcher2025-01-16_11-17-24AM.log. Extracting the installer . . . . . . . Done Exception in thread "main" java.lang.NullPointerException at com.oracle.cie.nextgen.common.inventory.InventoryUtils.getDefaultInvPtrLoc(InventoryUtils.java:131) at com.oracle.cie.nextgen.launcher.PlatformHelper.getDefaultInventoryPointerFile(PlatformHelper.java:496) at com.oracle.cie.nextgen.launcher.Utils.getInvPtrLoc(Utils.java:449) at com.oracle.cie.nextgen.launcher.Launcher.doMainHelper(Launcher.java:2334) at com.oracle.cie.nextgen.launcher.Launcher.execute(Launcher.java:4107) at com.oracle.cie.nextgen.launcher.Launcher.main(Launcher.java:3969)

Reasons:
  • RegEx Blacklisted phrase (3): could you help
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Prateek
  • Low reputation (1):
Posted by: Jagadeesh

79362877

Date: 2025-01-16 19:47:00
Score: 1
Natty:
Report link

Another way would be:

words.removeIf( name -> name.toLowerCase().startsWith( letter.toLowerCase() ));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Marce Puente

79362873

Date: 2025-01-16 19:42:59
Score: 1
Natty:
Report link

https://pub.dev/packages/sim_card_code

final phoneContry = await SimCardInfo.simCountryCode;

worked well for me, the good thing about it is that it is

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

79362869

Date: 2025-01-16 19:40:58
Score: 2.5
Natty:
Report link

don't assign the variables inside private void InitializeComponent(); instead "Double click on the form and in it's Load event" make the assignments. (this will keep the designer happy). Kudos to "https://mbmproject.com/blog/tutorials/windows-forms-c-variables-strings-and-boolean"

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

79362868

Date: 2025-01-16 19:40:58
Score: 1.5
Natty:
Report link

There might be an overlapping element that is not clickable.

Try Actions instead of click.

For java it would be:

new Actions(driver).moveToElement(yourElement).click().perform();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pekotski Bit

79362863

Date: 2025-01-16 19:38:57
Score: 1
Natty:
Report link

I would suggest to create a bean for RestClient client; When spring load bean properly while starting the app.

@Bean 
RestClient client() {
return RestClient.builder().baseUrl(url).build();
}

and use the bean in service directly instead of setting the url in service class

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

79362858

Date: 2025-01-16 19:35:57
Score: 2
Natty:
Report link

you need to update/downgrade ruby please follow these instructions as i had the same issue and fixed by this one

https://dev.to/luizgadao/easy-way-to-change-ruby-version-in-mac-m1-m2-and-m3-16hl

Reasons:
  • Whitelisted phrase (-1): i had the same
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user3148077

79362856

Date: 2025-01-16 19:34:55
Score: 8 🚩
Natty: 5.5
Report link

Do you know how we can do that on windows containerd ?

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you know how
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mohamed Ashraf

79362854

Date: 2025-01-16 19:33:55
Score: 1
Natty:
Report link

Solution 2025

I faced the same issue while connecting to mongo through mongo-express. Below are the steps i followed to get rid of the issue.

  1. First replace ME_CONFIG_MONGODB_SERVER with ME_CONFIG_MONGODB_URL.

It should look like "docker run -it -p 8081:8081 -e ME_CONFIG_MONGODB_URL=mongodb://root:root@{IP address of mongodb container} mongo-express " this will work if your mongo server is not running on a separate network.

IP Address can be found using "docker inspect {mongo server container id}"

  1. Alternatively, If your mongo server has been created using custom network.

Your command would be "docker run -it -p 8081:8081 -e ME_CONFIG_MONGODB_URL=mongodb://root:root@{Mongo server name (or) IP address of mongodb container} --network {network id} mongo-express ".

Network id can be found using "docker network ls". search for your mongo server.

Please Upvote if you find this helpfull.

Reasons:
  • Blacklisted phrase (0.5): Upvote
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hafeez Mohammad

79362853

Date: 2025-01-16 19:33:54
Score: 4
Natty: 5
Report link

Yes, it is changed to sorttable. And this solution does work. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mani Subramaniyan

79362831

Date: 2025-01-16 19:23:52
Score: 1.5
Natty:
Report link

Okay.. I found the reason why my job getting moved so early.. It often get moved with the error "maxAttemps[..]".

=> Although I set the timeout inside the job to 900sec, my worker retried the job after the default time. That results in the described behaviour. The job get finished, but appeared already as failed.

The solution for me is to set the worker timeout parameter to 0sec (--timeout=0) in that way I can choose the timeout in my jobs and now it works as intended :)

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

79362825

Date: 2025-01-16 19:21:50
Score: 9.5 🚩
Natty: 5.5
Report link

Were you ever able to resolve this? I'm having the same issue, except it's when it comes to the Fine Grin ACL Permissions. Microsoft Docs indicate that if there is no RBAC the storage will check the ACL permissions. I've fully configured the ACL, and yet I can't get in. I can get in if I use RBAC, but then the ACL gets ignored.

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve this?
  • RegEx Blacklisted phrase (3): Were you ever
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Carlos Silva

79362821

Date: 2025-01-16 19:20:50
Score: 1
Natty:
Report link

As of now, this can’t be done across different GCP projects, subscriptions are only where the topic resides.

On Google side, there is a ‘feature request’ that you can file, but there is no timeline on when it can be done.

What I can suggest for now is to create a separate topic for prod and test environments then configure your Play Store RTDN to receive your desired notification.

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

79362805

Date: 2025-01-16 19:16:49
Score: 0.5
Natty:
Report link

starting with as you mentioned eventDidMount() and inset-inline-start, gave me an head-start or an idea as to where to start off, so using inspect found that each element of was positioned absolute and with css inline inset values automatically by the fullCalendar library, played around a little with classes and the inset values,

after doing all these i was sure that i need to change the inset values, which was already told by ADyson, but for having an clear picture i still checked it out once,

FAILED SOLUTION 1

now it was straight-forward like just overwrite the css inset left to 25% and right to 0 and rest to default set by the lib, the problem was all the elements were aligned in a single column overlapping each other, maybe even this is what you have tried and mentioned, which i realised it later, anyways

inset: unset 25% unset 0 !important;

FAILED SOLUTION 2

so to tackle the issue, the option left was using js, used the setProperty() to overwrite the left and right values, according to a condition, basically if the pre-set value by the lib was

it worked like a charm , but later when tried it on different real-world cases, i found out that it only worked for at least 3 events, which were in the same row, this failed miserably with 2 events, even after cracking around about it for a while, i felt thinking of another solution would be better as, literally everything was same, there was no way to distinguish between row with 3 and row with 2 events, so even this solution was scarped

FAILED SOLUTION 3

similar to the solution 2 we use javascript, and instead of using simple if-else based upon the pre-set left value, i used different data structures like array and dictionary, the idea was to add the start and end time values to the data structure, but before adding , i checked whether there is a an overlapping of the current event with the previously added events, if present then increase the left with 25%, it was the perfect solution for two events, but when the third event was introduced, it wasnt being positioned as expected,

tried different method on how the overlapping was checked, but still no progress, so had to again discard this method

SUCCESSFUL SOLUTION 4

using the dictionary data-structure, simply put i divide the whole width of the table into 4 parts with 25% for each part, as it was mentioned that the maximum events is 4 and the width is maximum of 25%,

so after dividing the page into 4 parts, kept adding events to each part based upon the overlapping status for that single part instead of all the events ( method used in solution 3 ),if not overlapping then add that event to that part, as simple as that

var dicte= new Map(); // dictionary to store the events of each part

eventDidMount: function(info) {
    // this function is called when everytime a new evented is added to the table

     var e = info.el.parentNode; // accessing the container class for current event, basically where the inset was added
     var sT = info.event.start; // to access the start time of the current event
     var eT = info.event.end; // to access the end time of the current event

     var startTime = new Date(sT).toTimeString().split(' ')[0]; // extract the start time in hh:mm:ss format
     var endTime = new Date(eT).toTimeString().split(' ')[0]; // extract the end time in hh:mm:ss format

     startTime = parseInt(startTime.split(":")[0].trim())*3600 + parseInt(startTime.split(":")[1].trim())*60 + parseInt(startTime.split(":")[2].trim()) // converting the start time to total seconds
     endTime = parseInt(endTime.split(":")[0].trim())*3600 + parseInt(endTime.split(":")[1].trim())*60 + parseInt(endTime.split(":")[2].trim()) // converting the end time to total seconds
     
     var base=0; // variable used to mention which part of the table, will the event be added to
     var skip=0; // used as an variable to determine, whther to go to the next part or not 
      for (const [key, value] of dicte) { // iterating over the dict
        for (const data of value){ // iterating over the array of current part's event time positions
          var currentstart=data[0] // extracting the start-time
          var currentend=data[1] // extracting the end-time
          if( // if cases to check all the possible overlapping conditions
            (startTime<=currentstart && (endTime>=currentstart && endTime<currentend)) || // checks for events starting earlier than the previous event but ending after the start of previous event 
            ((startTime>=currentstart && startTime<currentend) && endTime>=currentend) || // checks for events starting in between of previous event but ending after the completion 
            ((startTime>=currentstart && startTime<currentend) && (endTime>=currentstart && endTime<currentend)) || // checks for events starting and ending inbetween of previous events
            (startTime<=currentstart && endTime>=currentend) // checks for events starting before and ending later than the previous events
            ){
            skip=1; // if any of the condition satisfies, then break from the loop and skip to the next part of the body
            break;
          }
        }
        if(skip==1){
          base+=25; // skipping to next part by adding 25%
        }else break;// if skip == 0 meaning no collision or overlapping found in this part
        skip=0;// to reset the value for new part
      }

     var arr=(dicte.get(base)||[]);// get or create a new array for storing current part's events time
     arr.push([startTime,endTime]);// adding the current event time
     dicte.set(base,arr);// updating the dict

     e.style.setProperty("left",(base+"%"),"important"); // positioning the event based upon the base value
     e.style.setProperty('right','0%','important'); // setting it to zero always, providies clarity of logic
}

added an image which was used to develop the overlapping check condition, not sure if you understand it due to incomplete drawing, but still for reference

overlapping check condition

so the working in simple words is that the time is converted to seconds,for example

used 24-hr format, to make this solution work use 24hr format only to get the time and conversion to seconds, hope the above example was enough to understand why 23-hr format is used

okay so after converting the time to seconds it becomes way easier to compare with other event times, specially when dealing with a fixed size column ( 25% width ), instead of a matrix or table with uneven row sizes

so the control flow is like when an event is added the event time is converted to seconds , then every part of the table from beginning is checked in a column wise manner, where the event can be replaced without overlapping, after checking. the part is returned and required changes are made to the left and right style property of the event

according to me , while developing the code i have taken care of all the possible use cases, if i have left out any, please feel free to reach out

also if there is any part of the code that you feel, i havent explained, you can still contact

Reasons:
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (1): worked like a charm
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (1): i have left out any, please
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Daksh Rawal

79362802

Date: 2025-01-16 19:14:48
Score: 2
Natty:
Report link

[Yecau]<

8842R70718 WARY PRAIRIE GOTHENBURG

5706584133 here methodologies

][9] you yas have here SERVER

Heights from generation https://Gorebox/please 8 200 SERVER version

Blockquote

strong text

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Валентина Назарук

79362801

Date: 2025-01-16 19:13:48
Score: 1
Natty:
Report link

The following worked for me: In my VS Code terminal, instead of "Powershell" I just opened "Command Prompt" terminal.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Asad Zubair Bhatti

79362798

Date: 2025-01-16 19:10:47
Score: 2
Natty:
Report link

For futures references. The following works:

df = spark.read.option("delimiter", ";").option("quote", "").csv(path, header=False, inferSchema=False)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Javier Sevillano

79362794

Date: 2025-01-16 19:09:47
Score: 0.5
Natty:
Report link
#include <stdint.h>

uint16_t rotate_right_16bit(uint16_t value, uint8_t num_rotates)
{
    num_rotates %= 16;

    while (num_rotates--)
    {
        uint16_t lsb = (value & 1) << 15;
        value = (value >> 1) | lsb;
    }
    return value;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alon Alush

79362789

Date: 2025-01-16 19:08:46
Score: 4.5
Natty: 7
Report link

Very much appreciated. It works amazingly fine!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Salvador Martinez

79362773

Date: 2025-01-16 19:00:44
Score: 1.5
Natty:
Report link

You can also add multiple file types in the "in" parenthetical list. For example, I am working with thousands of various pictures as part of an archival effort, and this includes .jpg, .jpeg, and .PNG file types. Since the pictures came from numerous cameras and backup sources, there are duplicate file names to deal with. I modified the original batch file to meet my needs as follows:

@echo off for %%a in (*.txt) do ren "%%a" "DUP~%%a.tmp" ren *.tmp *.

Note: in my Windows 10 environment, I did not need to add the file type extension on the last line. When I did test with the final entry to address only .jpg files as: ren *.tmp *.jpg The resulting rename caused the file extension to be .jpg.jpg Leaving the line as I posted it in my example properly renamed as needed, and the correct file extensions were assigned according to the original file's extension (.jpg, .jpeg, or .PNG) as appropriate.

Hope this helps someone!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @echo
  • Low reputation (1):
Posted by: user29231773

79362762

Date: 2025-01-16 18:53:43
Score: 3
Natty:
Report link

Saved my life! I updated Expo from 49 to 50 and started having problems. Now it's solved. God bless you my friend!

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

79362755

Date: 2025-01-16 18:51:42
Score: 1
Natty:
Report link

This checks if string is not empty before extracting its first character and comparing it, case-insensitively, to "s" and avoid errors with empty strings.

words.removeIf(name -> !name.isEmpty() && name.substring(0, 1).equalsIgnoreCase("s"));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sim

79362753

Date: 2025-01-16 18:50:42
Score: 0.5
Natty:
Report link

I solved the problem by requesting the auth product.

I don't know why they didn't just give me access to auth right away.

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

79362751

Date: 2025-01-16 18:49:42
Score: 2
Natty:
Report link

add &connect_timeout=10 at the end of your env variable. This error comes because your neon DB connection gets cut after 5 min of inactivity. Read about it in the following url: https://neon.tech/docs/guides/prisma#connection-timeouts

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

79362747

Date: 2025-01-16 18:48:41
Score: 2.5
Natty:
Report link

Same. I have a sheet with 500 images inserted via Apps Script sheet.insertImage(). I can rebuild the sheet a thousand times by running the script a thousand times, but sooner or later, insertImage() will fail and the user has to make a copy of the spreadsheet to make the same code work the way it used to.

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

79362728

Date: 2025-01-16 18:38:39
Score: 3
Natty:
Report link

sometimes, if error still occurs, we just define the llm model in all of the agents, as they have been assigned a default model.

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

79362727

Date: 2025-01-16 18:38:39
Score: 3
Natty:
Report link

I understand this is an old post but it's one of the first that showed up in google so here I am. I found Pinax's API endpoints and after testing them, I can say they are the fastest API I found for Near also using cross-chain features, especially for indexers using RPCs. Curious if you guys found another faster provider? Was aiming to beat the TOP3 out there but none could make the cut to get Near AND also SOlana's data in one fast sitting.

Another test made with substreams gave me 300ms faster calls than RPCs. Curious? Just google: Substreams for Near, it's in Rust btw.

Thoughts on any of these?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Louis-Philippe Bellier

79362725

Date: 2025-01-16 18:36:38
Score: 0.5
Natty:
Report link

import pandas as pd

Step 1: Load the Excel file

input_file = 'Corporate Fin. Assignment.xlsx' # Replace with your actual file name output_file = 'Financial_Ratios_Calculations.xlsx' # The output file name

Load sheets

income_statement = pd.read_excel(input_file, sheet_name='Income Statement & Balance shee') financial_ratios = pd.read_excel(input_file, sheet_name='Financial Ratio')

Step 2: Merge both sheets on 'Company' and 'Year'

data = income_statement.merge(financial_ratios, on=['Company', 'Year'])

Step 3: Calculate ratios

data['Calculated_Current_Ratio'] = data['Current Assets'] / data['Current Liabilities'] data['Calculated_Quick_Ratio'] = data['Current Assets'] / data['Current Liabilities'] # No inventory data data['Calculated_Gross_Profit_Margin'] = (data['Gross Profit'] / data['Revenue']) * 100 data['Calculated_Net_Profit_Margin'] = (data['Net Income'] / data['Revenue']) * 100 data['Calculated_ROA'] = (data['Net Income'] / data['Total Assets']) * 100 data['Calculated_ROE'] = (data['Net Income'] / data['Shareholder Equity']) * 100 data['Calculated_Debt_to_Equity'] = data['Total Liabilities'] / data['Shareholder Equity'] data['Calculated_Asset_Turnover'] = data['Revenue'] / data['Total Assets'] data['Calculated_Interest_Coverage'] = data['Operating Income'] / data['Interest Expense'] data['Calculated_EPS'] = data['Net Income'] / data['Average Shares Outstanding'] data['Calculated_PE_Ratio'] = data['Market Price per Share'] / data['Calculated_EPS']

Step 4: Save the results to an Excel file

output_columns = [ 'Company', 'Year', 'Current Ratio', 'Calculated_Current_Ratio', 'Quick Ratio', 'Calculated_Quick_Ratio', 'Gross Profit Margin (%)', 'Calculated_Gross_Profit_Margin', 'Net Profit Margin (%)', 'Calculated_Net_Profit_Margin', 'Return on Assets (ROA) (%)', 'Calculated_ROA', 'Return on Equity (ROE) (%)', 'Calculated_ROE', 'Debt-to-Equity Ratio', 'Calculated_Debt_to_Equity', 'Asset Turnover Ratio', 'Calculated_Asset_Turnover', 'Interest Coverage Ratio', 'Calculated_Interest_Coverage', 'Earnings per Share (EPS)', 'Calculated_EPS', 'Price to Earnings (P/E) Ratio', 'Calculated_PE_Ratio' ]

Select relevant columns and save

data[output_columns].to_excel(output_file, index=False)

print(f"Financial Ratios have been saved to {output_file}")

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

79362720

Date: 2025-01-16 18:35:38
Score: 2.5
Natty:
Report link

We also need to do something similar for an air-gapped device. I.e build a patch in CI and then copy the patch across and apply it on a device that is fully offline.

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

79362706

Date: 2025-01-16 18:29:36
Score: 0.5
Natty:
Report link

You should use a combination of dir with the /B flag and findstr

@echo off
setlocal enabledelayedexpansion

set "zipMask=ZipForCloudMaster ????-??-??_??-??-??.zip"
set "zcnt=0"

REM Use dir and pipe through findstr to handle the specific pattern
for /f "delims=" %%A in ('dir /b /a-d ^| findstr /r /i "^ZipForCloudMaster [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]_[0-9][0-9]-[0-9][0-9]-[0-9][0-9]\.zip$"') do (
    if !zcnt!==0 echo Zip files present:
    echo %%A
    set /a zcnt+=1
)

if !zcnt!==0 (
    echo WARNING: Older zip files found. Proceeding will include these in the new zip.
) else (
    echo No older zip files found. Safe to proceed.
)
Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Swapnil Prakash

79362688

Date: 2025-01-16 18:23:34
Score: 2.5
Natty:
Report link

Just generate new keys, it works for me as my time was correct

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: siesto1elemento

79362677

Date: 2025-01-16 18:19:33
Score: 3.5
Natty:
Report link

check out this link: https://github.com/longld/peda/issues/177

apt install python3-six and then inside the peda folder remove the six.py from lib folder.

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Moritz Hasenleithner

79362675

Date: 2025-01-16 18:19:32
Score: 7 🚩
Natty: 4
Report link

Did you ever figure this out? We are having this issue right now as well.

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever figure this out
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: Dean Friedland

79362674

Date: 2025-01-16 18:18:31
Score: 1.5
Natty:
Report link

The problem with slow connection opening may be caused by using the outdated Microsoft OLE DB Provider for SQL Server (Provider=SQLOLEDB.1).

In this case, switching to Microsoft OLE DB Driver for SQL Server (Provider=MSOLEDBSQL.1) should help.

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

79362672

Date: 2025-01-16 18:18:31
Score: 2.5
Natty:
Report link

I found a way, just adding ToList().AsQueryable(), resolved the issue:

I change my query line with the following: query = (_context.FormCellSouches).Select(a => mapper.Map<FormCellSouch, DTOFormCellSouches>(a)).ToList().AsQueryable();

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

79362671

Date: 2025-01-16 18:17:31
Score: 1
Natty:
Report link

(From this github issue) Instead of using react-native-reanimated runOnJS on your frame processor, switch to https://github.com/margelo/react-native-worklets-core

"Use const myFunctionJS = Worklets.createRunInJsFn(myFunction) and then call myFunctionJS from the frame processor"

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

79362670

Date: 2025-01-16 18:17:31
Score: 3.5
Natty:
Report link

Sergei's solution works for my case too. But I didn't find any content about the REP socket type in the libzmq documentation, and they are using SUB socket in their code example. So is the documentation wrong?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bo Zhang

79362668

Date: 2025-01-16 18:15:29
Score: 11.5 🚩
Natty: 5
Report link

I'm trying to create a workspace this API call: https://learn.microsoft.com/en-us/rest/api/power-bi/groups/create-group

Previously I created a service entity profile and sent in body request for create workspace like this: 'Authorization' => 'Bearer ' . $accessToken, 'X-PowerBI-Profile-Id' => $profileId, 'Content-Type' => 'application/json', In Azure Portal I have granted specific permissions for the handling API based on this article: https://learn.microsoft.com/es-es/power-bi/developer/embedded/embed-multi-tenancy#create-a-profile Azure Permissions

I don't see the workspace associated to service entity profile in Power BI Service.

Do you have any idea?

Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (1): any idea?
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: David Monreal

79362653

Date: 2025-01-16 18:10:28
Score: 0.5
Natty:
Report link
  1. Understand the Engine’s Rendering System

Disassemble the existing OpenGL DLL and Render DLL to understand how they interact with the game engine. Use dependency walkers (like Dependency Walker or Ghidra) to inspect function calls and dependencies.

If available, check the engine’s documentation or modding community for insights into how rendering works.

  1. Reverse-Engineer the Existing DLLs

If the engine is closed-source, you may need to reverse-engineer the DLLs using IDA Pro, Ghidra, or similar tools. Identify function calls related to rendering (e.g., glBegin, glEnd, glDrawArrays). Map the function signatures to their equivalent in modern OpenGL or another rendering API.

  1. Create a Wrapper DLL

A common approach is to create a wrapper DLL that mimics the original DLL’s exported functions but redirects calls to a modern renderer. This way, the engine still believes it is calling the original OpenGL functions, but your wrapper handles rendering differently. Use tools like Detours (for Windows) or LD_PRELOAD (for Linux) to intercept and replace function calls.

  1. Develop a New Render DLL Once you understand the rendering flow, you can develop a new Render DLL that directly communicates with a newer API like Vulkan, DirectX, or Modern OpenGL (Core Profile). Implement an abstraction layer that translates old OpenGL calls to newer equivalents.

  2. Inject and Test

Replace the old DLLs with your new ones and test for compatibility. Use debugging tools like RenderDoc or apitrace to check if rendering commands are working correctly. Expect crashes initially—use logs and debugging tools to diagnose issues.

  1. Optimize and Expand

Once you have the basics working, you can introduce performance improvements, new shaders, and modern rendering techniques. Alternative Approach: Use an Existing Wrapper Some projects already provide OpenGL wrappers that modernize older versions. Check:

GLShim (translates OpenGL 1.x calls to OpenGL ES). Mesa3D’s llvmpipe (a software OpenGL renderer). Let me know if you need specific guidance on implementation.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: GO4IT NICOLAS FREELANCER IT

79362652

Date: 2025-01-16 18:09:28
Score: 1.5
Natty:
Report link

To send an 8-bit keycode (which includes multimedia keys), you need to add the modifier. E.g. KEY_MUTE is defined as 0x7F, but the library always clears the 8th bit unless the key is Shifted. So, use:

​DigiKeyboard.sendKeyStroke(KEY_MUTE, MOD_SHIFT_LEFT).​
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Richard

79362642

Date: 2025-01-16 18:07:27
Score: 3.5
Natty:
Report link

Just do the link thingy in SwiftUI, and as the url, put imessage:// That will open the app. But to start a chat with a person in iMessage, the url will be imessage://

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

79362640

Date: 2025-01-16 18:06:27
Score: 1.5
Natty:
Report link

Thank you very for all of you. I found

I found the answer. It was a rookie syntax error This is the working code

FDQuery1.sql.Text := 'INSERT INTO tblTags ("Group", "Title", "Keys", "AllKeys") VALUES (:group, :title, :keys, :allkeys)';
 FDQuery1.ParamByName('group').asString := ComboBox1.Text;
 FDQuery1.ParamByName('title').asString := cxTextEdit2.Text;
 FDQuery1.ParamByName('keys').asString := cxTextEdit3.Text;
 FDQuery1.ParamByName('allkeys').asString := cxRichEdit2.Text;
 FDQuery1.ExecSQL;

The problem was that I didn't put the fields in the table under " "

Thanks again to everyone.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dusko Jovic

79362633

Date: 2025-01-16 18:03:26
Score: 1
Natty:
Report link

I have verified the following solution and it working as expectedly jasper report text exports.

<property name="net.sf.jasperreports.export.text.line.separator" value="&#x0D;&#x0A;"/>

After changing LF to CRLF

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

79362630

Date: 2025-01-16 18:03:26
Score: 0.5
Natty:
Report link

Regression is a classification problem, where the output function y is 0,1 or True, False. Then it is enough to fit_transform your original data.

from sklearn import preprocessing
y = y_train.ravel()
lab = preprocessing.LabelEncoder()
y_transformed = lab.fit_transform(y)
print(y_transformed)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: novice_cplusplus

79362628

Date: 2025-01-16 18:01:25
Score: 1.5
Natty:
Report link

The answer was:

import { jest } from "@jest/globals";

jest.unstable_mockModule("../const/a", () => ({
  isOn: true,
}));

const { b } = await import("func/b");
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Davi Caamano

79362607

Date: 2025-01-16 17:53:23
Score: 2.5
Natty:
Report link

Have you tried adding the following to the background.service_worker file?

chrome.sidePanel
  .setPanelBehavior({ openPanelOnActionClick: false })
  .catch(console.error);
Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: WarrenMfg

79362604

Date: 2025-01-16 17:52:22
Score: 0.5
Natty:
Report link

For Angular 18+ I use the appropriate overrides mixin for customization of angular material components. For example, to make the border width 4 add this to your styles.scss file and override the outlined-outline-width and/or outlined-focus-outline-width varriables :

@use '@angular/material' as mat;

html,
body {
  @include mat.form-field-overrides((
    outlined-outline-width: 4px,
    outlined-focus-outline-width: 4px
  ));
}

I would avoid overriding classes because those classes are NOT part of an API and are subject to change so could break if you upgrade. There are a variety of variables that can be overridden. I look at this file and search on overrides to see the various mixins: node_modules@angular\material_index.scss

Then you can find the scss file for a form fields. For example the form-fields-override:

@forward './form-field/form-field-theme' as form-field-* show form-field-theme, form-field-color, form-field-typography, form-field-density, form-field-base, form-field-overrides;

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @forward
  • Low reputation (1):
Posted by: Sean Segura

79362599

Date: 2025-01-16 17:52:22
Score: 1.5
Natty:
Report link

--tunnel

is the culprit. Seems like this is specifically a Windows 11 issue. To fix:

Go to Wifi Settings -> CLick on your wifi properties -> Switch to private network Configure firewall and security settings -> Disable firewall After this just run

npx expo start

without any additional args and it should work. I faced a similar issue and just solved it with this.

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

79362598

Date: 2025-01-16 17:52:22
Score: 4
Natty:
Report link

Where is the query funtion that uses that query key ‘session’

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Where is the
  • Low reputation (1):
Posted by: Owusu Gideon

79362594

Date: 2025-01-16 17:50:21
Score: 1
Natty:
Report link

I was advised to find a well-maintained React library because well-maintained code tends to be more reliable.

My coworker found this React library: Idle Timer.

Here are the considerations we had when implementing a user logout feature for inactivity:

The user should be logged out if they remain inactive after being shown a modal warning. Multiple tabs must be synchronized. For example, if the user is active in one browser tab, they shouldn't be logged out just because another tab is idle. If the user's computer goes into sleep mode, JavaScript timers will pause. When the user returns, the system must detect if they've been away too long and either prompt them to refresh the page or automatically log them out, requiring them to log back in.

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