79241535

Date: 2024-12-01 12:30:41
Score: 1.5
Natty:
Report link

With this regular expression I was able to match most difficult cases:

(?:[ \t]*Rem\s+|')(?![^"]*"(?:[^"]*"[^"]*")*[^"]*(?=[\r\n]+))[^\r\n]*

It only misses the lines of multiline comments after the first line (last two lines of my test code), but I think that we could get there too with some more work...

enter image description here

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

79241527

Date: 2024-12-01 12:26:40
Score: 4
Natty:
Report link

The enrichers using HttpContext will not work when using dotnet-isolated mode.

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

79241512

Date: 2024-12-01 12:12:37
Score: 1
Natty:
Report link

What many have not thought of is that the uploads.ini requires the correct authorization.

Especially with dockremap user e.G.

chown -R 100000:100000 uploads.ini

Otherwise, this is exactly what happens in the container:

root@c5cf31571ea5:/var/www/html# cat /usr/local/etc/php/conf.d/uploads.ini
cat: /usr/local/etc/php/conf.d/uploads.ini: **Permission denied**
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: TheLegendOfZelda keiner

79241510

Date: 2024-12-01 12:10:36
Score: 1
Natty:
Report link

Thanks to Yaroslavm's suggestion on the stackoverflow dated Apr. 7, 2024(Click on element in shadow-root Selenium Python), this solution has been accomplished. The point is to wait enough before clicking the button inside shadow DOM. In this case, I found that we have to use time.sleep instead of Webdriverwait.

By the way, use of lxml.html may contribute to faster collecting of the attributes of listings.

import lxml.html
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from time import sleep

driver = webdriver.Chrome()
driver.implicitly_wait(5)
actions = ActionChains(driver)
url='https://es.wallapop.com/app/search?engine=gasoline&min_horse_power=1&max_horse_power=1000&min_year=2006&max_year=2024&min_km=40000&max_km=200000&min_sale_price=1000&max_sale_price=90000&gearbox=automatic,manual&brand=Honda&model=Civic&filters_source=default_filters&keywords=&category_ids=100&longitude=-3.69196&latitude=40.41956&order_by=price_high_to_low'

driver.get(url)
sleep(8)
WebDriverWait(driver, 10).until(EC.presence_of_all_elements_located((By.XPATH, "//body")))

#cookie accept
driver.find_element(By.XPATH,"//button[@id='onetrust-accept-btn-handler']").click()
sleep(20)

#click load more button
for i in range(2):
    try:
        button =WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.XPATH,"//walla-button[@id='btn-load-more']")))
        
    except:
        break
    else:
        driver.execute_script('arguments[0].scrollIntoView({behavior: "auto", block: "center"});', button)
        shadow = button.shadow_root#only currently works in Chromium based browsers
        
        button2 =WebDriverWait(shadow, 20).until(EC.presence_of_element_located((By.CSS_SELECTOR,  "button.walla-button__button--medium")))
        
        sleep(10)#fail without this
        #WebDriverWait(driver, 50).until(EC.element_to_be_clickable(button2))#This is not effective
        button2.click()
        print('\nload more button clicked-- {}'.format(i+1))


#load more by scrolling down
pre_count = 0
same_count_times = 0
for i in range(40):
    sleep(2)
    for pd in range(20):
        actions.send_keys(Keys.PAGE_DOWN).perform()
    
    WebDriverWait(driver, 20).until(EC.presence_of_all_elements_located((By.XPATH, "//body")))
    #get whole html (by Selenium) 
    page = driver.page_source # type : text 
    #transfer to lxml
    p_root = lxml.html.fromstring(page)
    
    list_elements = p_root.xpath("//a[@class='ItemCardList__item']") 
    new_count = len(list_elements)
    print('len(list_elements): ',new_count)
    if new_count == pre_count:
        same_count_times += 1
    else:
        same_count_times = 0
    pre_count = new_count
    if same_count_times > 2:
        break

while True:
    a= input('Do you close this session?')
    if a == 'y':
        break
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: yamskii-k

79241500

Date: 2024-12-01 12:04:35
Score: 3.5
Natty:
Report link

Thanks to RuthC for providing the answer in a comment, the following seems to solve my problem:

fig.savefig('test.pdf', format='pdf',bbox_inches='tight', pad_inches='layout')

https://matplotlib.org/stable/users/prev_whats_new/whats_new_3.8.0.html#pad-inches-layout-for-savefig

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Simon Schey

79241491

Date: 2024-12-01 11:58:33
Score: 2.5
Natty:
Report link

Why it might seem stupid to some to ask such a question it is 100% sensible to ask. There are a couple of events that may want to make you use such a method: hiding the url. Look at your mobile apps, do they show the urls? NO.

It looks elegant and customised to hide your url tab in some cases. For instance you have a web app for quiz and want them not to know what url they are hitting. Just enter your registration number or exam number and start the exam. This may make some sort of sense.

However, the way it is is that it's quite not easy to achieve that out rightly but there is always a way out of everything. What are programmers for? I have seen a couple of exams taken using customised browsers that do not reveal the search bar/url bar, just the content. It is also a method I am currently researching; that is even why I am able to see this. Any simple useful tip will serve.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why it
  • Low reputation (1):
Posted by: Emmanuel Whesu

79241480

Date: 2024-12-01 11:53:31
Score: 2.5
Natty:
Report link

Make sure the your testing browser is not effecting the playback or the controls of the video, I recommend using Edge for testing, you can avoid all of this hassle and use Express.static to handle everything.

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

79241471

Date: 2024-12-01 11:50:31
Score: 4.5
Natty:
Report link

https://medium.com/p/865d084be817 You can write a custom view by extending the BottomNavagationView.

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

79241469

Date: 2024-12-01 11:49:30
Score: 0.5
Natty:
Report link

The function create_all is a SQLAlchemy function, so you need to feed tables in SQLAlchemy table type:

SQLModel.metadata.create_all(engine, tables=[Table1.__table__, Table2.__table__])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: serialx

79241468

Date: 2024-12-01 11:48:30
Score: 2.5
Natty:
Report link

I got this issue from copy/pasting code from a previous project and forgot to change this line to match the current project name (xxx) package com.example.xxx

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eemeli Häyrynen

79241463

Date: 2024-12-01 11:41:27
Score: 0.5
Natty:
Report link

Fiddle

WITH first_reversal AS (
    SELECT 
        Payment_Ref,
        Payment_Log,
        Log_Date,
        activity_type,
        Source,
        [User], -- 'User' is a reserved word, so we use square brackets
        amount,
        credit_or_debit,
        Comment,
        ROW_NUMBER() OVER (PARTITION BY Payment_Ref ORDER BY Log_Date) AS rev_rank
    FROM test
    WHERE activity_type = 'Payment_Rev' AND Payment_Log LIKE '%-Reverse'
)
-- Select the first reversal and its corresponding 'Pay' log
SELECT 
    pr.Payment_Ref,
    REPLACE(pr.Payment_Log, '-Reverse', '-Pay') AS Payment_Log,
    t.Log_Date,
    t.activity_type,
    t.Source,
    t.[User],
    t.amount,
    t.credit_or_debit,
    t.Comment
FROM first_reversal pr
JOIN test t ON pr.Payment_Ref = t.Payment_Ref
           AND REPLACE(pr.Payment_Log, '-Reverse', '-Pay') = t.Payment_Log
WHERE pr.rev_rank = 1;

Output

enter image description here

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

79241451

Date: 2024-12-01 11:33:26
Score: 3.5
Natty:
Report link

Thanks for getting back to me. Looks like you are right Dmitry. The problem is not specific to 2007. I get the same message in 2010. Getting a license for Redemption (looks like a great tool btw.) seems a bit of overkill to get to the one value.

I have been reading the article “read and parse a recurrence pattern” using the C++ Mapi route. Even if I could figure out how to properly do that. I would not know how to integrate that in my C# project.

I was kind of hoping that something like this would work:

var test = appointment.GetType().InvokeMember("dispidApptRecur", BindingFlags.GetProperty, null, appointment, null);

This works fine with the public properties of the appointment like Subject, but not with the property I am after. Name Unknown.

Any other ideas?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: RudiBoy

79241446

Date: 2024-12-01 11:25:24
Score: 1
Natty:
Report link

Unfortunately this is not generally possible. You can get some intuition for why that's the case by considering, as an example, a two-dimensional decision space. The constraint you're asking for would look like "either I'm on the x-axis, or on the y-axis", which is not convex.

A formal proof would probably be something like: For a linear problem, the feasible region is convex, so if (x, 0) and (0, y) are feasible so too must (x/2, y/2) be.

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

79241428

Date: 2024-12-01 11:14:21
Score: 5
Natty:
Report link

Just follow the solution provided by Next https://nextjs.org/docs/messages/sync-dynamic-apis

I have installed the npx package and no more problems.

I had posted this solution a while ago but it was delete by a moderator, not sure why?

Reasons:
  • Blacklisted phrase (0.5): why?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: stefdec

79241427

Date: 2024-12-01 11:14:20
Score: 0.5
Natty:
Report link

You can try this one to calcualte time in 2 database columns like that.

select END_TIME, START_TIME,to_char(END_TIME,'HH24') end_time, to_char(START_TIME,'HH24') start_time, case when (to_number(to_char(START_TIME,'HH24')) > 12) then extract( HOUR from ( cast(END_TIME+ INTERVAL '1' DAY AS TIMESTAMP) - cast( START_TIME AS TIMESTAMP) ) ) else extract( HOUR from ( cast(END_TIME AS TIMESTAMP) - cast(START_TIME AS TIMESTAMP) ) ) end working_hours from DB_TABLE

Reasons:
  • Whitelisted phrase (-1): try this
  • No code block (0.5):
  • Low reputation (1):
Posted by: Md. Forhad

79241422

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

Generally a negative R-sq value means that the model predictions are worse than simply using the mean but I suspect that there is an issue in the code itself. If you could provide a code showing how you calculated it I can help more perhaps.

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

79241421

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

You are trying to build Kirstone release, but the post you mentioned is bit outdated and based on older BB language.

Try to do

IMAGE_INSTALL:append = " apache2"

instead of:

IMAGE_INSTALL_append = " apache2"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: wiesniak

79241416

Date: 2024-12-01 11:08:18
Score: 3
Natty:
Report link

As I said in the comments, I found out, in new versions, Bubblewrap doesn't automatically generate the assetlinks.json file during the build step, even though the documentation suggests it might.

Thus, I need to manually create the file using your app's signing information (SHA256) provided by Google Play (App signing page) or using keytool command on my own local keystore – Deleter

Reasons:
  • Blacklisted phrase (0.5): I need
  • Contains signature (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Deleter

79241401

Date: 2024-12-01 11:00:17
Score: 3.5
Natty:
Report link

Tried it does not work at all, gives error messages like socket not plugged etc

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

79241395

Date: 2024-12-01 10:56:15
Score: 2.5
Natty:
Report link

In Django >5.0 you can use GeneratedField.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
Posted by: simplylizz

79241394

Date: 2024-12-01 10:55:15
Score: 2
Natty:
Report link

Read more about the solution here: https://impetusorgansseparation.com/avnneqwn?key=670ae0c3b093d8e8ac42c57aa7da8c14

Improving Precision for Ray-Ellipsoid Intersection You are currently working with an Atmospheric scattering GLSL fragment shader, and you're attempting to improve the precision of ray-ellipsoid intersection calculations, particularly for large distances (e.g., 100 AU). Since the issue arises primarily due to precision loss when working with floating point values in GLSL, you're using double precision (fp64) for the core calculations.

From your explanation and shader code, it seems like you've already done a lot of the right things, but you are still facing some issues with artifacts and the precision is not good enough at higher zoom levels or for large distances.

Here are some potential strategies to further improve the precision:

  1. Address Numerical Stability with Alternative Forms In ray-ellipsoid intersection problems, numerical stability is often a problem due to the sensitivity of the quadratic equation when the ray and ellipsoid are nearly parallel. Here are a couple of techniques you could apply to improve the robustness of your computations:

a. Alternative Roots of the Quadratic Equation You have already mentioned an alternative solution using q = -0.5 * (b + sign(b) * d) for computing l0 and l1. This form, while computationally more expensive, is known to reduce rounding errors and is more numerically stable for certain conditions. It could help improve precision for cases where the ray and ellipsoid are nearly tangent.

// Alternative more stable approach for l0 and l1
if (b < 0.0) {
    d = -d;
}
d = -0.5 * (b + sign(b) * d);
l0 = d / a;
l1 = c / d;

This approach is designed to be more stable when the discriminant is close to zero and can help in cases of nearly tangential intersections.

b. Using a Higher-Precision Method (Newton-Raphson) If the intersection points are very close to each other, you can also consider using an iterative refinement technique like Newton-Raphson to solve for l0 and l1 more accurately after an initial guess. This can improve the precision by performing iterative corrections.

  1. Using Range Shifting (which you already attempted) You're already shifting the result to preserve accuracy by subtracting a large number (view_depth_max). This is effective at reducing precision loss, but you may be seeing diminishing returns beyond a certain threshold. However, for large distances, this technique is often essential to maintain precision.

Another thing to check is if you can make the range shift more adaptive, i.e., only apply it when the values exceed a certain threshold rather than a fixed value (view_depth_max).

  1. Optimizing the Quadratic Equation The standard quadratic formula for intersections:

enter image description here

is prone to numerical instability when the discriminant 𝑏2−4ac is small or when the values of b and a are very similar. One way to improve the precision is to use the exact quadratic formula when dealing with small discriminants:

d = sqrt(abs(b*b - 4.0*a*c)); // ensure that d doesn't become NaN due to small differences
  1. Shifting the View Position (p0) You mentioned shifting the view position (p0) closer to the center, which can help improve precision for small distances. However, this requires carefully ensuring that the ray's direction (dp) and position (p0) are adjusted correctly to prevent artifacts. Be aware that this method may not be applicable in all cases since it can introduce additional errors when you are dealing with large distances or high zoom levels.

  2. Increase the Precision of Your Inputs You mentioned that double precision inputs are being converted to float by GLSL. This could be a major source of the artifacts, especially when the ray intersects at extremely large or small distances. Unfortunately, you cannot directly pass double-precision values through the pipeline because GLSL has limitations regarding double-precision support for interpolators and attributes.

However, you can upcast the ray parameters in the vertex shader before passing them to the fragment shader, but this requires support for fp64 in your hardware and shader profile:

  1. Using fp64 Interpolators in GLSL To answer your second question directly:

Q2: Is there a way to pass double interpolators from vertex to fragment shader?

In GLSL, you cannot directly pass dvec4 values (double precision) from the vertex shader to the fragment shader because GLSL does not support fp64 interpolators on all hardware. However, there are a few techniques you can consider:

a. Manually Pass Doubles as Separate Float Components You can manually pass the dvec4 values as separate vec4 or vec2 components in the vertex shader and reconstruct them in the fragment shader. This avoids relying on fp64 interpolation but requires more shader complexity.

// Vertex Shader
out vec4 vertexPosition;
out vec4 vertexDirection;
out vec4 vertexEllipsoid;

void main() {
    // Convert the dvec4 to vec4 for passing as attributes
    vertexPosition = vec4(p0.x, p0.y, p0.z, 1.0);
    vertexDirection = vec4(dp.x, dp.y, dp.z, 1.0);
    vertexEllipsoid = vec4(r.x, r.y, r.z, 1.0);
}

Then in the fragment shader, you can reconstruct these components back into dvec3 values. Although this avoids the need for fp64 interpolators, it does introduce some complexity.

b. Use Multiple Render Passes with fp64 in a Fragment Shader Another method is to separate the computations into multiple passes. In the first pass, compute the dvec3 values in a fragment shader using fp64, then store these values in a texture. In the second pass, retrieve the values from the texture and perform further calculations.

Read more about the solution here: https://impetusorgansseparation.com/avnneqwn?key=670ae0c3b093d8e8ac42c57aa7da8c14

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: John_doe

79241362

Date: 2024-12-01 10:31:08
Score: 8.5
Natty: 7
Report link

I know it's been a while, but does anybody know where I can find the labels for the dataset?

Reasons:
  • Blacklisted phrase (1): anybody know
  • Blacklisted phrase (1): I know it's been
  • RegEx Blacklisted phrase (2): does anybody know
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: paul7aa

79241360

Date: 2024-12-01 10:30:08
Score: 1.5
Natty:
Report link

This worked for me. Thanks !

sudo service rabbitmq-server start

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: hermann priso

79241356

Date: 2024-12-01 10:29:07
Score: 1.5
Natty:
Report link

It looks like GlassFish doesn't have permissions to create the file \domains\domain1\logs\server.log.lck. Did you run GlassFish with the same user which owns the GlassFish installation? Can you check if you can create a file in \domains\domain1\logs\ manually?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Ondro Mihályi

79241349

Date: 2024-12-01 10:23:06
Score: 1
Natty:
Report link
Solution 1: Use Multiple Targets
1. Create a new target for each file with a main() function:
   Go to the File menu, select New, then Target.
   Choose a C executable template.
   Name the target (e.g., Program1, Program2).

2. Add the desired file to the new target:
   In the file inspector on the right, ensure the correct target is checked 
   for each file.
3. Build and run the target you want:
   Select the desired target from the dropdown menu in the toolbar.
   Press Run.

This keeps each main() function in its own target, avoiding conflicts.

Read more about the solution here: https://impetusorgansseparation.com/avnneqwn?key=670ae0c3b093d8e8ac42c57aa7da8c14

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

79241347

Date: 2024-12-01 10:22:05
Score: 3
Natty:
Report link

Use

console.warn() & console.error() instead.

console.log() is removed.

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

79241339

Date: 2024-12-01 10:16:04
Score: 0.5
Natty:
Report link

The previous two answers dont appear to be completely correct. He noted that

I want to print the first occurrence of it before the string "data reached"

The accepted answer will print every occurrence, and does not check for data reached at all. Leaving a slightly incorrect solution.

This solution will look for the ETN: name/name line, then it will look for the matching name/name line. It will stop at data reached and start looking for ETN: name/name lines again. Here is the code

#!/usr/bin/perl -w

my $etnFound = 0;
my $etnName = "";

while(<>){
  if(!$etnFound){
    #search for ETN: name1/name2 line
    if(/^ETN: (name\d+\/name\d+) *$/){
      $etnName = $1;
      $etnFound = 1;
    }
  }elsif($etnFound){
    #search for corrosponding name1/name2 line until data reached
    if(/data reached/){
      $etnFound = 0;
      $etnName = "";
    }elsif(/$etnName/){
      #instructions were only print *first occurence* of $etnName
      #then resume searching for ETN: name1/name2 lines
      print;
      $etnFound = 0;
      $etnName = "";
    }
  }
}

Output looks like this

$ perl print.matched.string.pl print.matched.string.txt 
   name1/name2/ZN                 (abcLVT)    
   name3/name4/ZN                 (fhLVT)    
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user3408541

79241330

Date: 2024-12-01 10:14:03
Score: 5
Natty: 4
Report link

In this link you have all the detailed explanation including pictures about run vsCode as an admin

https://medium.com/@bonguides25/how-to-always-run-vs-code-as-an-administrator-3d9367006d09

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

79241321

Date: 2024-12-01 10:07:01
Score: 4
Natty:
Report link

There are three things. Here are the details:

  1. The table, if defined as Live.table_name, the DLT assumes that the DLT pipeline manages this table.
  2. If defined as catalog_name.schema_name.table_name. The DLT interprets as a reference to the external table.
  3. Finally, when you have the same table name in both scenarios and if you miss LIVE. prefix in your code, which causes ambiguity and gives warnings.

Please let me know if you need any more information.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • No code block (0.5):
  • Low reputation (1):
Posted by: Srinimf

79241318

Date: 2024-12-01 10:06:00
Score: 1.5
Natty:
Report link

This method works for me. return $scheme://$server_name/your_reqeust_uri_name.html;

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

79241316

Date: 2024-12-01 10:03:00
Score: 1.5
Natty:
Report link

I had the same issue but I needed to use @prisma/client/edge. The solution for me was that I forgot to set my server action to run on the server using use server.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Johan stling Sober Joe

79241310

Date: 2024-12-01 10:00:59
Score: 1.5
Natty:
Report link

You'll need a macro to do this, but basically you split each word into letters, sort the letters into alphabetical order, and then check if the results match. I have C code to do this which you can find here, but translating it into a LibreOffice Basic macro would require work. I think LibreOffice now supports Python macros, and it might be easier to translate C into Python.

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

79241307

Date: 2024-12-01 09:59:59
Score: 3
Natty:
Report link

non riesco a modificare la password. Mi esce questo messaggio "Forbidden You don't have permission to access this resource. Apache Server at areaclientitin.alice.it Port 443"

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

79241290

Date: 2024-12-01 09:50:57
Score: 1
Natty:
Report link

The first line declares a Galois field. The second line declares a field member.

k.<a> = GF(2^8, modulus=x^8+x^4+x^3+x+1)
k.from_integer(0b1010101)

It outputs:

a^6 + a^4 + a^2 + 1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Robert

79241283

Date: 2024-12-01 09:46:56
Score: 0.5
Natty:
Report link

Apply something similar like this:

activesheet.chartobjects(1).chart.chartgroups(1).doughnutholesize=75

The result

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Black cat

79241281

Date: 2024-12-01 09:45:56
Score: 2.5
Natty:
Report link

What has happening for me was my deeplink was redirecting to another firebase url and I had to add that to the deeplink whitelist using regex.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What has
Posted by: Horatio

79241279

Date: 2024-12-01 09:45:56
Score: 1
Natty:
Report link

at the beginning of your MainActivity.java:

remove

package com.your.app;

as this will cause

import com.your.app.R to be greyed out.

and then add it to ensure that R is correctly imported in MainActivity.java

import com.your.app.R;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eldo Martadjaya

79241277

Date: 2024-12-01 09:44:56
Score: 2.5
Natty:
Report link

Use the line-height property from the CSS. you can set it by px, em, %, whatever suits your project. Or if they are different tags, just use padding-top.

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

79241276

Date: 2024-12-01 09:44:55
Score: 4
Natty:
Report link

I believe django 5.1 querystring tag is a solution here :) https://docs.djangoproject.com/en/5.1/ref/templates/builtins/#std-templatetag-querystring

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

79241274

Date: 2024-12-01 09:43:55
Score: 1
Natty:
Report link

I don't know how to do this with Power BI, but if you make the daily extract (I presume some sort of script) save both the new and previous day's Excel files as .CSV's, you can identify the changes with a simple diff.

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

79241261

Date: 2024-12-01 09:35:52
Score: 5.5
Natty:
Report link

Why not use three separate repositories with cross-links in the README.md pages?

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): Why not use
  • Low reputation (0.5):
Posted by: Richard Parkins

79241250

Date: 2024-12-01 09:26:50
Score: 2
Natty:
Report link

It works when I updated to the latest react-router-bootstrap using this command npm install react-router-bootstrap@latest

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

79241243

Date: 2024-12-01 09:22:50
Score: 0.5
Natty:
Report link

To address you issue, I would advise you to use one of these solutions:

In-Place Resource Resize which allows you to adjust CPU and memory for running applications without needing to restart them, which is particularly useful for managing varying resource needs during different phases of your app's lifecycle.

Kube Startup CPU Boost from Google which is a tool that temporarily increases CPU resources during the startup phase of your applications and then reduces them once the applications are stable.

Kyverno Policies can also be used to automatically adjust resources based on the application's status. For example, you can create a policy that reduces CPU resources once the application reaches a ready state.

Dynamic Resource Allocation DRA which can also be useed to manage various types of resources, including CPUs and GPUs, through ResourceClaims and ResourceClaimTemplates

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

79241229

Date: 2024-12-01 09:14:48
Score: 1.5
Natty:
Report link

refs are automatically unwrapped when referenced in templates, please remove .value in the template:

<template>
  <div>
    Title: {{ data?.title }}
  </div>
</template>

Ref: https://vuejs.org/api/sfc-script-setup.html#reactivity

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

79241227

Date: 2024-12-01 09:12:47
Score: 5.5
Natty: 5.5
Report link

And then you have a new imageList... But: how can you store it as a component for afterwards using???

Reasons:
  • Blacklisted phrase (1): ???
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: dherrmann

79241226

Date: 2024-12-01 09:12:47
Score: 0.5
Natty:
Report link

Please see my comment to the question: Your approach is not efficient enough. Below, you can find an almost fully functional generic state machine. You instantiate the generic class StateMachine<STATE> with the concrete enumeration type TestState (corresponding to your enumeration State). The enumeration members are collected using Reflection and converted to State instances, they populate the set of states. Then you create an instance of StateMachine<TestState> and populate the state machine transition graph with the arcs representing both valid and some (sic!) invalid transitions. Why invalid ones, too? Because this is a good place to place some delegate instances returning the string explaining why the transition is not allowed, please see the demo in Main. After the state machine is populated, you can perform the transitions. If a transition is valid, you can invoke some delegate instances created during the population. Basically, that's it. You have an abstraction used to configure a concrete state machine in any application field on Earth.

using Console = System.Console;
using Type = System.Type;
using BindingFlags = System.Reflection.BindingFlags;
using FieldInfo = System.Reflection.FieldInfo;
using StateSet = System.Collections.Generic.HashSet<State>;
using StateGraph = System.Collections.Generic.Dictionary<StateGraphKey, StateGraphValue>;

sealed class State {
    internal State(string name, object underlyingMember) {
        Name = name;
        UnderlyingMember = underlyingMember;
    } //State
    internal string Name { get; init; }
    internal object UnderlyingMember { get; init; }
} //class State

delegate void StateTransitionAction(State startingState, State endingState);
delegate string InvalidStateTransitionAction(State startingState, State endingState);

class StateGraphKey {
    internal StateGraphKey(State starting, State ending) {
        StartingState = starting; EndingState = ending;
    }
    public override int GetHashCode() { // important!
        string representation = StartingState.Name + EndingState.Name;
        return representation.GetHashCode();
    }
    public override bool Equals(object @object) { // important!
        if (@object == null) return false;
        return GetHashCode() == @object.GetHashCode(); //sic!
    }
    internal State StartingState { get; init; }
    internal State EndingState { get; init; }
} //class StateGraphKey

class StateGraphValue {
    internal StateGraphValue(StateTransitionAction valid, InvalidStateTransitionAction invalid) {
        ValidAction = valid; InvalidAction = invalid;
    }
    internal StateTransitionAction ValidAction { get; init; }
    internal InvalidStateTransitionAction InvalidAction { get; init; }
    } //class StateGraphValue

abstract class StateTransition : StateGraphKey {
    internal StateTransition(State starting, State ending) :
        base(starting, ending) { }
    internal abstract bool IsValid { get; }
} //StateTransition

class ValidStateTransition : StateTransition {
    internal ValidStateTransition(State starting, State ending) :
        base(starting, ending) { }
    internal override bool IsValid { get { return true; } }
} //class ValidStateTransition

class InvalidStateTransition : StateTransition {
    internal InvalidStateTransition(State starting, State ending) :
        base(starting, ending) { }
    internal override bool IsValid { get { return false; } }
} //class ValidStateTransition

class StateMachine {

    internal StateMachine(STATE initialState = default(STATE)) {
        Type type = typeof(STATE);
        FieldInfo[] fields = type.GetFields(BindingFlags.Static | BindingFlags.Public);
        foreach (var field in fields) {
            State state = new State(field.Name, field.GetValue(null));
            stateSet.Add(state);
            if (initialState.ToString() == field.Name)
                CurrentState = state;
        } //loop
    } //StateMachine
    internal State CurrentState { get; init; }
    static State CreateState(STATE value) => new State(value.ToString(), value);
    static bool IsValid(StateGraphValue value) => value.ValidAction != null;
    internal void AddValidStateTransition(STATE startingState, STATE endingState, StateTransitionAction action) {
        StateGraphKey key = new(CreateState(startingState), CreateState(endingState));
        if (stateGraph.TryGetValue(key, out StateGraphValue value))
            return; //SA???
        stateGraph.Add(key, new StateGraphValue(action, null)); 
    } //AddValidStateTransition
    internal void AddInvalidStateTransition(STATE startingState, STATE endingState, InvalidStateTransitionAction action) {
        StateGraphKey key = new(CreateState(startingState), CreateState(endingState));
        if (stateGraph.TryGetValue(key, out StateGraphValue value))
            return; //SA???
        stateGraph.Add(key, new StateGraphValue(null, action));
    } //AddInvalidStateTransition
    internal string IsTransitionValid(STATE startingState, STATE endingState) {
        State starting = CreateState(startingState);
        State ending = CreateState(endingState);
        StateGraphKey key = new(starting, ending);
        bool found = stateGraph.TryGetValue(key, out StateGraphValue value);
        if (found && !IsValid(value) && value.InvalidAction != null) {
            return value.InvalidAction(starting, ending);
        }
        return null;
    } //IsTransitionValid
    internal bool PerformTransition(STATE startingState, STATE endingState) {
        State starting = CreateState(startingState);
        State ending = CreateState(endingState);
        StateGraphKey key = new(starting, ending);
        bool found = stateGraph.TryGetValue(key, out StateGraphValue value);
        if (IsValid(value))
            value.ValidAction(starting, ending);
        return found;
    } //PerformTransition
    internal void PerformTransitionIndirect(STATE startingState, STATE endingState) {
        //SA??? complicated algorithm of graph search
    } //PerformTransition
    StateSet stateSet = new();
    StateGraph stateGraph = new();
} //class StateMachine

enum TestState { Draft, Denied, Approved, WaitForApprovalManager, WaitForApprovalTechnical, WaitForApprovalFinance, }
class Test {
    static void Main() {
        var stateMachine = new StateMachine<TestState>();
        stateMachine.AddValidStateTransition(TestState.Draft, TestState.WaitForApprovalManager, (starting, ending) => { });
        stateMachine.AddValidStateTransition(TestState.Draft, TestState.WaitForApprovalTechnical, (starting, ending) => { });
        stateMachine.AddValidStateTransition(TestState.Draft, TestState.WaitForApprovalFinance, (starting, ending) => { });
        stateMachine.AddInvalidStateTransition(TestState.Denied, TestState.WaitForApprovalManager, (starting, ending) =>
            $"{TestState.Denied} to {TestState.WaitForApprovalManager}? Come on! It is already denied, don't wait!");
        Console.WriteLine(stateMachine.IsTransitionValid(TestState.Draft, TestState.WaitForApprovalManager));
        Console.WriteLine(stateMachine.IsTransitionValid(TestState.Denied, TestState.WaitForApprovalManager));
    } //Main
} //class Test
Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79241217

Date: 2024-12-01 09:04:46
Score: 3
Natty:
Report link

You can just switch your network/wifi to private network, and you're good to go.

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

79241213

Date: 2024-12-01 09:02:45
Score: 1.5
Natty:
Report link
pip uninstall yara

pip install yara-python

Does the trick. Basically, you need to install yara-python instead of yara

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

79241211

Date: 2024-12-01 09:02:45
Score: 0.5
Natty:
Report link

dbB.close(); is causing the above mentioned error. Closing of db connection can be ideally achieved in two ways: 1. You may close the connection automatically by setting idle time in configuration 2. Or Initiating db connection on api call and closing the db connection after executing the query.

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

79241201

Date: 2024-12-01 08:57:44
Score: 1
Natty:
Report link

this too removes the last character in the string

alphabets = 'abcdefgh'


print(alphabets[:-1])

the[:-1] slices the last character specified in the -1. hence the output is abcdefg. slicing h

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

79241195

Date: 2024-12-01 08:51:43
Score: 0.5
Natty:
Report link

Try setting frontentUrl to loadbalancer's host and port in realm settings. In your case, https://scdf-01.aws.net/

Keycloak is very picky about URLs. It adds a backend URL to access token claims (the issuer claim IIRC), and if it doesn't match a hostname/port from request url, it will reject the token after successful authentication.

Reasons:
  • Whitelisted phrase (-1): In your case
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Andrey M.

79241193

Date: 2024-12-01 08:51:43
Score: 3.5
Natty:
Report link

Ay, using @@index() instead of @@fulltext.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hữu Nhân Nguyễn

79241186

Date: 2024-12-01 08:44:42
Score: 2
Natty:
Report link

I made a small tool that removes transitive dependencies in the .yaml file. This essentially cleans the environment. It doesnt remove unused dependencies at this stage yet.

Maybe its helpful to you or others. Also im happy for any feedback and ideas.

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

79241178

Date: 2024-12-01 08:38:40
Score: 2
Natty:
Report link

It seems that I was looking for "Inverse distance weighting" and not "heatmaps".

Someone already modified an existing Leaflet heatmap plugin to do this kind of interpolation. I haven't gotten it to work yet, but it looks promising.

https://github.com/spatialsparks/Leaflet.idw

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Moritz von Schweinitz

79241175

Date: 2024-12-01 08:33:38
Score: 2
Natty:
Report link

The biggest pro of using VBA code over macros is that it allows for extreem powerful programming. It helps to build Access applications that are very versatile and fast. In my 30 years as VBA programmer I have done things that many IT-ers thought were impossible, until I proved them wrong. VBA gives the opportunity of building really smart functions/applications.

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

79241172

Date: 2024-12-01 08:30:37
Score: 6.5 🚩
Natty: 5.5
Report link

how to open google map app with adres?

Reasons:
  • Low length (2):
  • 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: Gheorghe Vasilachi

79241167

Date: 2024-12-01 08:25:35
Score: 7 🚩
Natty: 5.5
Report link

Is it possible to convert to powershell? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Is it possible to
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: Laurentiu Ioan

79241166

Date: 2024-12-01 08:24:35
Score: 0.5
Natty:
Report link

doing it from the terminal was much easier for me -

 gcloud functions add-iam-policy-binding <your func> \    
      --region="us-central1" \
      --member="allUsers" \                                    
      --role="roles/cloudfunctions.invoker"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kenzo

79241158

Date: 2024-12-01 08:19:34
Score: 3.5
Natty:
Report link

This didn't worked for me it gave me below error in NextJs

enter image description here

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: AshirAzeem_Dev

79241157

Date: 2024-12-01 08:19:34
Score: 1.5
Natty:
Report link

These are many approaches you can do with Azure OpenAI and AI Search, from your option A and B, it falls under:

What's better?

A is simple and straightforward. If you search for an item and AI Search returns no information, then OpenAI takes no further action, and the conversation ends early. This often happens because not every user asks for information in the first query or may not know how to phrase their question.

B helps expand the conversation context and allows OpenAI to decide which function to run, making the interaction feel more human-like. It absolutely depends on your business needs to branch the conversation scenario in more customizable ways. For example, when a user asks, "How's the weather today?", it's necessary to have two parameters: "location" and "unit" (Celsius or Fahrenheit). Without providing enough parameters, OpenAI will prompt the user with something like, "Please let me know your location and unit." It will keep asking if either parameter is missing and will run the function once it has all the necessary information.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know your
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Alfred Luu

79241143

Date: 2024-12-01 08:12:33
Score: 4
Natty: 4
Report link

QTreeView will return 0 if the item is folded

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

79241141

Date: 2024-12-01 08:11:32
Score: 1
Natty:
Report link

To maintain synchronization between distributed processes in Python, consider the following steps: First, for operations like "set_current" and "read_current", make sure that they are implemented reliably and consistently on both the client and server sides. Next, messaging mechanisms can be used for communication and synchronization between processes. For example, use a message queuing framework such as RabbitMQ or ZeroMQ. When a process completes a key operation, such as "set_current", it sends a specific message to the message queue to notify other processes. Then, distributed locks are used to control access to critical resources. For example, using Redis to implement distributed locks ensures that only one process can perform certain critical synchronization operations at any given time. In addition, you can set up monitoring and logging mechanisms to detect and diagnose problems that occur during synchronization. Finally, the entire system is fully tested, including under different loads and abnormal conditions, to ensure the stability and reliability of the synchronization mechanism. In short, synchronization between distributed Python processes can be achieved well with reliable communication, effective locking mechanisms, sound monitoring, and adequate testing.

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

79241140

Date: 2024-12-01 08:10:32
Score: 2.5
Natty:
Report link

VirtualPathUtility class at System.Web provides utility methods for common virtual path operations.

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

79241138

Date: 2024-12-01 08:06:31
Score: 0.5
Natty:
Report link

Using React Native 75 and "@react-native-google-signin/google-signin" 13.0+ For me the issue was I needed to remember to always call .configure before calling signIn. Ultimately it had nothing to do with my info plist

GoogleSignin.configure({
        webClientId:
          "My web client id - found here for rnfirebase https://rnfirebase.io/auth/social-auth#google",
      });
await GoogleSignin.hasPlayServices();
const { data } = await GoogleSignin.signIn();
... rest of your code
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Uch

79241136

Date: 2024-12-01 08:04:31
Score: 2
Natty:
Report link

Financial solutions, and swift means to gain access to cash, sale funding, low credits fixing, easy Financial assistance Offer Unsecured loans services, reliable source for immediate credit approval services. What has concern funds that trouble you lately, be it, any kind of financial difficulties bring it to our table we can solve it, if it’s concern financial issues offer rate is as low as 3% interest rate unsecured financing, mainly on businesses, companies, personal financing, sales increment, business boosting, contact with your honest and sincere budgets, purposes, and be rest assured to gets unsecured loan credit financing, offer from $5, 000.00) to $100, 000, 000.000 USD minimum and maximum, for more inquiry E-mail: [email protected]) thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mark Henry

79241134

Date: 2024-12-01 08:02:30
Score: 1
Natty:
Report link

Firstly you need to convert the model. Use this page. Its based on the llama.cpp repo

https://huggingface.co/spaces/ggml-org/gguf-my-repo

And to run, you can use Ollama to run any GGUF model.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alvin Rachmat

79241130

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

Do you have middleware.ts file in the convex directory? It should be in src/.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shawn L

79241129

Date: 2024-12-01 07:55:28
Score: 1.5
Natty:
Report link

Interesting answer ASH, I just think that having commented lines could help. Example; "Order of columns shown on Excel sheet depends on weather link" , "some links may require subscription for using their data".

Adding a few code lines for writing data sheets in a specific path directory with a dated file name, for utilizing. A good piece of code written by ASH on Apr 16, 2020 at 0:57.👍

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

79241126

Date: 2024-12-01 07:53:28
Score: 3
Natty:
Report link
r = requests(url, json={"id":"good"})
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
Posted by: user2155362

79241125

Date: 2024-12-01 07:52:27
Score: 2.5
Natty:
Report link

blank_issues_enabled: false contact_links:

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

79241121

Date: 2024-12-01 07:48:27
Score: 2.5
Natty:
Report link

There are a bunch of modern package managers for Python. I'd recommend you to read some articles like this before writing pyproject.toml from scratch.

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

79241119

Date: 2024-12-01 07:46:26
Score: 1
Natty:
Report link

you can run in the terminal which python3 to find the dir where python installed this way you will know the package manager that was used to install python by the category then use the same package manager to update the version.

Hope this Helps :)

Reasons:
  • Whitelisted phrase (-1): Hope this Helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Felobateer Saadalla

79241113

Date: 2024-12-01 07:43:25
Score: 2.5
Natty:
Report link

To run code other than Python in Jupyter Notebook you have to install a kernel for that language, in this case a Mojo kernel.
Here is a link for Linux users, don't know if it works with your system.

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

79241107

Date: 2024-12-01 07:39:25
Score: 1.5
Natty:
Report link

Did you use?:

builder.AddServiceDefaults();

In your projects program.cs right after creating your builder, make sure you have a reference to servicedefault net aspire project in your api project

And if you did not have addservices then maybe you need to add to

App.MapDefaultEndpoints();

Before something like swagger and after app.addRouting()

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you use
  • Low reputation (1):
Posted by: Maick

79241091

Date: 2024-12-01 07:26:22
Score: 4
Natty: 4.5
Report link

Okay but I get this message when using "xargs -0", specifically:

pushd /some/dir && find {*,.?*} -print0 2>/dev/null | xargs -0 /some/command/using/command/substitution && popd

Isn't "xargs -0" parsing the entries using the null byte from "find -print0"? If so why is it passing along that null byte to the command it's executing with the parsed entry as a parameter?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Dohn Joe

79241081

Date: 2024-12-01 07:18:20
Score: 1
Natty:
Report link

It's true that VSCode Developer Tool cannot inspect extension network because it's running under separate process called the Extension Host. You can take a look here but it seems complicated to setup https://stackoverflow.com/a/67099176/3789481

A simpler approach is to use Fiddler Classic as a forward proxy. By doing this, all API requests from VSCode will go through Fiddler, allowing you to inspect them, including HTTPS requests through TLS Inspection.

Fiddler setup:

enter image description here

VSCode setup: enter image description here

After that, you can inspect for any *.githubcopilot.com directly, e.g. inline suggestion

enter image description here

VSCode will send prompt and get response back as Content-Type: text/event-stream enter image description here

You can also inspect GHCP Chat with that same endpoint

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: Alfred Luu

79241080

Date: 2024-12-01 07:18:20
Score: 3.5
Natty:
Report link

Can you explain the style you want in a bit more detail? ( try using AI for translation if you have problem in describing it in english )

only part I understand right now is that you want a setting portion of div has black color and other half is transparent which can be achieved as follows

<body style="background-color: pink;">
  <div class="main-div" style="display: flex;width: 324px; height:40px;border:2px solid red; position: relative;">
    <p style="position: absolute; left: 0; width: 100%; color:white; font-size: 20px;">This is some random text for testing</p>
    <div class="black-div" style="width: 50%; background-color: black">

    </div>
    <div class="transparent-div" style="width: 50%; background-color:pink;">
    </div>
  </div>
</body>

Pay main attention to display: flex, position:relative, position: absolute.

enter image description here

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you explain
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: coder_newbie

79241071

Date: 2024-12-01 07:14:19
Score: 0.5
Natty:
Report link

I think you're trying to make an element like a switch div that changes color between black and transparent on state change. you can put 2 divs inside the div and change the color of each separately even if you are trying to make the black color seems to be moving between the divs you can make 2 linear gradient moving to the side.

Hope this Helps :)

Reasons:
  • Whitelisted phrase (-1): Hope this Helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Felobateer Saadalla

79241062

Date: 2024-12-01 07:11:18
Score: 0.5
Natty:
Report link

For me, the most important improvement was to NOT use conda, but install all necessary modules with pip. This decreased the size of the executables in many projects by a factor of 10.

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

79241060

Date: 2024-12-01 07:05:17
Score: 2
Natty:
Report link
#!/bin/bash
while IFS= read -r line
do
  aws s3 cp --no-sign-request s3://.../$line E:/Papua_New_Guinea/ --region us-east-1 --no-sign-request
done <E:/Papua_New_Guinea/filenames.txt

I have the same need, which is to download a subset of dataset based on a list of file names saved in a txt file. Above is my code. When I directly executed the code in one line in Git Bash prompt, it returned nothing. But when I saved it as .sh script then call bash command to execute the script, it always threw such error message: "fatal error: An error occurred (404) when calling the HeadObject operation: Key " does not exist..."


Each file names in the txt file was listed as "132122233.tif", which "132122233" is the file id and ".tif" is the file format. Which part of my code went wrong? Could anyone offer some helps?

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

79241059

Date: 2024-12-01 07:05:17
Score: 4
Natty:
Report link

ok seems it's a bug that's reported already and google developers are working on it:

https://issuetracker.google.com/issues/378566922

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

79241055

Date: 2024-12-01 07:02:16
Score: 2
Natty:
Report link

If wandb.init runs I don't think it's a problem with parallelization. In any case, you should check if the arguments were all passed correctly by the executor.
You have to take into account that ThreadPoolExecutor uses a pool of threads to execute calls asynchronously. If the threads do not run independently and wait on the results of another deadlocks can occur.

Have you try to parallelize W&B Sweep agents within a Jupyter Notebook, heres the link.

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

79241045

Date: 2024-12-01 06:57:14
Score: 8.5 🚩
Natty: 5.5
Report link

running on same issue, did u figure this out ?

Reasons:
  • RegEx Blacklisted phrase (3): did u figure this out
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ziyaDev

79241042

Date: 2024-12-01 06:54:13
Score: 2
Natty:
Report link

Here is the solution that worked for me,

Right click on project folder > At the very bottom click maven > Click Download Sources or Download Sources and Documentation.

Picuture of intellij ide showing the download sources option under maven

If similar issues happens in eclipse IDE, it can be resolved by doing

Right Click on project folder > Maven > Download Sources

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Atulit Anand

79241035

Date: 2024-12-01 06:47:11
Score: 1.5
Natty:
Report link

Wasted 20 min on this. in your env file, make sure to add the database name before the ?. like mongodb.net/YOUR_DB_NAME?retryWrites=true&w=majority&appName . Not sure why but the mongodb/Atlast provided connection string doesnt have that part when you copy.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Edtimer

79241032

Date: 2024-12-01 06:45:10
Score: 3.5
Natty:
Report link

Scaffold-DbContext "Username=postgres;Password=12345;Host=localhost;Port=5432;Database=postgres;Pooling=true;" Npgsql.EntityFrameworkCore.PostgreSQL

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

79241030

Date: 2024-12-01 06:43:10
Score: 1
Natty:
Report link

You can override the Math.random method right before you run the function.

Math.random = function() { return 0 };

Depending on your setup, it's best to have each test independent so that it won't affect the other tests.

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

79241029

Date: 2024-12-01 06:40:09
Score: 2.5
Natty:
Report link

use Jw palyer command, jwplayer().setVolume(<Volume Amount>);

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

79241017

Date: 2024-12-01 06:26:07
Score: 1
Natty:
Report link

Just remove the following code from the .csproj file. Its working for me.

<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rashedul Alam

79241014

Date: 2024-12-01 06:24:06
Score: 4
Natty:
Report link

Use this link you can download any old android versions👉🏻 archive

I HOPE THIS IS HELP YOU. THANK YOU:)

Reasons:
  • Blacklisted phrase (0.5): THANK YOU
  • Blacklisted phrase (1): this link
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tulsi virani

79241010

Date: 2024-12-01 06:18:05
Score: 2.5
Natty:
Report link

go to the setting and click Appearance and Behavior then click system setting and click HTTP proxy. you need to check no proxy, you can't set that without no proxy. click No proxy then login codeium after it auto download and update By itself. Now see if it works.

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

79241008

Date: 2024-12-01 06:16:04
Score: 7.5
Natty: 8
Report link

how do i change the color of the wallpaper?

Reasons:
  • Blacklisted phrase (1): how do i
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how do i
  • Low reputation (1):
Posted by: user28568637

79240998

Date: 2024-12-01 06:06:02
Score: 4.5
Natty:
Report link

我今天为我的应用程序签署了一个新版本。 我添加了facebook登录到它。当我在上传到 google play之前尝试时,它显示:无效键哈 希。键哈希不匹配任何存储的键哈希我使用 这个命令创建哈希输入facebook: keytool -exportcert -alias XXXX-keysi 我检查了我使用相同的密钥存储库和密钥, 我使用时,我签名的应用程序。它对我的开发 工作,但不是生产。你知道吗?我不能换应用 程序的钥匙。

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: user28568567

79240994

Date: 2024-12-01 06:06:02
Score: 1
Natty:
Report link

These are known as "Sitelinks" - they are automatically created by search engines and website authors have very little control over them.

https://developers.google.com/search/docs/appearance/sitelinks

I recommend following SvelteKit's general recommendations for improving SEO, as well as following recommendations for improving Sitelink SEO that would work for any web framework.

If your website ranks #1 on any search engine for a specific query, you can expect that the search engine will create & manage Sitelinks for you automatically.

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

79240992

Date: 2024-12-01 06:04:01
Score: 2
Natty:
Report link

You need to place your classpath dependencies block within the buildscript block, right after the repositories block but before anything else (such as allprojects, etc.).

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

79240990

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

Set CARGO_PROFILE_dev_OPT_LEVEL=0.

ref: https://doc.rust-lang.org/cargo/reference/environment-variables.html

  • CARGO_PROFILE_<name>_OPT_LEVEL — Set the optimization level, see profile.<name>.opt-level.
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
Posted by: virchau13

79240985

Date: 2024-12-01 06:00:00
Score: 2
Natty:
Report link

Xcode 16:

I encountered the same error and discovered it was due to an Xcode settings issue. In my case, I had to set the project's 'Project Format' value to Xcode 16. If this value is not set to Xcode 16, the object version in your pbxproj file will be 70 instead of 77.

github image

credit: https://github.com/CocoaPods/CocoaPods/issues/12671#issuecomment-2467142931

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

79240982

Date: 2024-12-01 05:55:59
Score: 2
Natty:
Report link

None of the answers here worked for me, but I found this really helpful! https://www.geeksforgeeks.org/alias-command-in-linux-with-examples/ There is a section on alias persistent, and that's what I needed

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aaditya S

79240979

Date: 2024-12-01 05:51:59
Score: 0.5
Natty:
Report link

Web searches are always helpful to perform if you're looking for information.

https://firebase.google.com/docs/reference/admin/java/reference/com/google/firebase/messaging/MulticastMessage

A single MulticastMessage may contain up to 500 registration tokens.

See also:

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: Doug Stevenson

79240976

Date: 2024-12-01 05:44:58
Score: 2
Natty:
Report link

this was actually a major frustration of mine with building Docker-based assets in cdk... Injecting tokens into my build seems very important to me and I was surprised that there was no elegant support for it.

The way to solve this is to create a CodeBuild project and use a Provider and CustomResource to trigger it at deployment time.

I've actually built a pretty neat solution that I've used with great success in my own personal projects: https://constructs.dev/packages/token-injectable-docker-builder

You can check it out here: https://medium.com/p/3914fc08ca1e. It's called the TokenInjectableDockerBuilder, and it's open source. If you want to dig through the code itself, you can check it out here: https://github.com/AlexTech314/TokenInjectableDockerBuilder/blob/main/src/index.ts.

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Blacklisted phrase (0.5): check it out
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alex Stepansky