79170636

Date: 2024-11-08 15:34:15
Score: 1.5
Natty:
Report link

Although I can't supply a valid way to trigger this error message instantaneously, I can give other readers a snapshot of the current response Snowflake returns in this scenario after I waited the 24 hours for the cache to expire. The error message reads: Result for query "{queryId}" has expired

Some of the relevant data in the response includes:

code: 000710
name: OperationFailedError
sqlState: 02000

Unfortunately although Snowflake provides guidance on how to handle query responses, they don't appear to offer a comprehensive list of error messages and their meaning.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dan

79170635

Date: 2024-11-08 15:34:15
Score: 0.5
Natty:
Report link

The Microsoft.Data.SqlClient assembly ships with the SqlServer powershell module. Azure Automation gives you the ability to add powershell modules which you can import from your script. You can visit this link and/or follow the instructions below on how to do this.

And there you have it. 8 easy steps... just... 8 whole steps. UX at its finest.

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RiverHeart

79170629

Date: 2024-11-08 15:32:14
Score: 2
Natty:
Report link

Apache SupersetV4.0.2 on Ubuntu 24 LTS: I had challenges with dependencies versions for Python3.12(pkgutil and numpy) and Python3.9(python-geohash and psycopg2).
It all worked outh, with Python3.10, updates to pip and libraries. Thanks to author of below link, which was very helpful.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user2984447

79170627

Date: 2024-11-08 15:31:14
Score: 6
Natty: 9
Report link

What if you cin with, say, 2000 for trm and 8 for bs? It only works for 2 digit numbers, and has eights and nines in the hundred's, thousand's and so on place values. How can I change it to accommodate for all place values?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Low length (0.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): What if you
  • Low reputation (1):
Posted by: user28200127

79170623

Date: 2024-11-08 15:30:13
Score: 2
Natty:
Report link

Has anyone actually found a working solution for this issue. I'm struggling and not finding anything that is working for me.

flutter configure always times out. I can login and logout, I can list my projects. I'm completley stuck!

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

79170620

Date: 2024-11-08 15:29:13
Score: 0.5
Natty:
Report link

Deployment:

Deployments in standard environment are generally faster than deployments in flexible environment. It is faster to scale up an existing version in flexible environment than to deploy a new version, because the network programming for a new version is normally the long pole in a flexible environment deployment. One strategy for doing quick rollbacks in flexible environment is to maintain a known good version scaled down to a single instance. You can then scale up that version and then route all traffic to it using Traffic Splitting.

Note that Google App Engine flexible environment is based on Google Compute Engine, so it takes time to configure the infrastructure when you deploy your app.

The first deployment of a new version of an App Engine Flexible application takes some time due to setting up of internal infrastructure, however subsequent deployments should be relatively fast since it only modifies some GCP resources and then waits on the health checks.

The sample flex app already took 7 minutes to deploy. With readiness_check, it takes more time.

Found a similar request to make the deployment faster. You can upvote/comment on this public issue tracker.

As a last resort, try exploring Cloud Run instead of Google App Engine flex. Since GAE flexible is running on VMs, it is a bit slower than Cloud Run to deploy a new revision of your app, and scale up. Cloud Run deployments are faster.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: J_Dubu

79170618

Date: 2024-11-08 15:29:13
Score: 0.5
Natty:
Report link

I am using Odoo.sh enterprise version

After searching on internet and with my understanding about odoo platform related invoice, at last found a possible to way to get access token for a customer invoice and implemented in my system as per my requirement.

Way 1:

Steps

  1. Go to settings -> developer tools -> Activate developer mode.

  2. Go to settings -> Technical -> Automation -> Automation Rules.

  3. Create a new Automation rule.

  4. Choose Model as Journal Entry.

  5. Choose Trigger as State is set to -> Posted.

  6. Under Action to do -> Add an action -> Choose execute code.

  7. Enter this python code alone

    if record: record.preview_invoice()

  8. save code option and automation rule.

  9. Go to a draft State invoice and confirm it.

How it works:

After creating an invoice whether manually created on odoo platform or created via any third party API, Go to invoice and confirm so invoice state changes from draft to posted state, so at that time, automation rule will be triggered so that Access token for an customer invoice is again updated in journal entry model of that customer invoice.

In my project, when customer request to view their invoice, I query odoo using journal entry model with customer invoice ID, at that I will get access token and with formed URL I get pdf content and show to user with anchor tag with download option.

{1}/my/invoices/{2}?report_type=pdf&download=true&access_token={3}

  1. Odoo base Url
  2. Odoo customer invoice ID
  3. Access token retrieved

Way 2

After created an customer invoice in odoo platform manually or created in odoo platform, use below python code to get access token from any system.

My Idea is

Create a API project in any python framework and include this code and after hosting, any other API project can make use and get access token.

Python Code

import xmlrpc.client

url = 'http://localhost:8069'
db = 'my_database'
username = 'my_username'
password = 'my_password'
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate(db, username, password, {})

# Create a new XML-RPC client object
models = xmlrpc.client.ServerProxy('{}/xmlrpc/2/object'.format(url))

# Find the invoice you want to download
invoice_id = [9147]


# Download the PDF file for the first invoice in the list
invoice = models.execute_kw(db, uid, password, 'account.move', 'read', [invoice_id[0]], {'fields': ['name', 'invoice_date', 'amount_total']})

pdf_file = models.execute_kw(db, uid, password, 'account.move', 'preview_invoice', [invoice_id[0]])

access_token = pdf_file["url"].split("=")[1]

print(access_token)
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sureya Pragaash

79170617

Date: 2024-11-08 15:28:12
Score: 2.5
Natty:
Report link

If you plan to visualize wave spectra (that's what your data seems to have), using wave spectra package may save you lots of work (assuming your files are supported) https://wavespectra.readthedocs.io/en/latest/index.html

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

79170604

Date: 2024-11-08 15:23:11
Score: 0.5
Natty:
Report link

Deleting First Entry from Last to Up

I modified your code and created a sample data, this is the result.

Code.gs

function deleteshift() {
  const ss = SpreadsheetApp.getActiveSpreadsheet();
  const sheet = ss.getSheetByName('main');
  const dataSheet = ss.getSheetByName('deletDB');
  const existingId = sheet.getActiveCell().getValue();
  const existing = dataSheet.getRange(2, 6, dataSheet.getLastRow() - 1).getValues().flat();

  const index = (existing.length - existing.reverse().indexOf(existingId))  + 1;
  dataSheet.deleteRow(index);
}

Sample Data

Before: Sample 0

Sample 1

After:

Sample 2


Reference:

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

79170593

Date: 2024-11-08 15:20:10
Score: 0.5
Natty:
Report link

Before C99, even C doesn't support this, so Cython doesn't have any choice.

Starting from C99:

from libc.math cimport INFINITY
cdef double f():
    return INFINITY

See Cython source https://github.com/cython/cython/blob/master/Cython/Includes/libc/math.pxd

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

79170589

Date: 2024-11-08 15:19:10
Score: 1
Natty:
Report link

We have adapted our app to work with RecycleView. It is not a begineer friendly way of implementing scrolling in your app but is better than ScrollView if you're handling lots of data information. To my understanding, it doesn't worry so much about exceeding texture_size as above but lazy-loads and recycles your widgets. I'm surprised how ScrollView hasn't been deprecated yet, but after writing RV's... Kivy needs to find an easier way of implementing them otherwise it's a hassle.

I would recommend closely studying the docs on Kivy, removing and adding stuff as you seem to fit to see how everything functions. To my knowledge, it is much easier to use Kivy's builder from kivy.lang.builder to define your RV (RecycleView) in .kv lang and it's widgets. Use Kivy's Properties as it makes everything easier to reference. Make sure how Classes work in Python! At least, understand the basics. Even I until today don't know what super() does.

Links that helped us:

And many, many, many StackOverflow posts...

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kannick

79170587

Date: 2024-11-08 15:18:09
Score: 2.5
Natty:
Report link

I withdraw the question!

I have found my mistake! I assumed that the raspberry pi 5 has the same pagesize as the raspberry pi 4, 4kB like a x86_64. The raspberry pi 5 uses a kernel MMU configuration with 16k pagesize.

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

79170583

Date: 2024-11-08 15:17:09
Score: 1
Natty:
Report link

The solution is to use a single query with GROUP BY and a Grafana transformation that transposes the table:

SELECT roomid AS "room id", SUM(mvalue) AS "energy consumption in the room" FROM periodic_measurements WHERE ($__timeFilter(mtimestamp) AND apartmentid = $apartment AND metric = 5) GROUP BY roomid;

enter image description here

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Berni Hacker

79170576

Date: 2024-11-08 15:16:08
Score: 4
Natty:
Report link

Just wanted to pop by to say that I did eventually come up with a solution in case anyone stumbles upon this thread having the same issue. I'm not sure that the non-pickleability of the dataset applies to all TF datasets, but since in this case it was relevant, that is what needed to be addressed (or worked around).

What I did was put the TFRecord files on distributed storage (UC Volume in this case) and then instantiate the TF dataset object inside the objective function. I imagine in some cases there could be some overhead there, but even with an image dataset of about 8k images, that took well less than a second, so it was fine. That also tends to be approach for any other objects that won't pickle (which did end up being the case after getting the dataset thing sorted); just build it inside the objective function. That can be the dataset from objects on distributed storage, it can be the model itself, or it can be anything really.

This might be a totally basic "duh" answer to folks in the know, but it was my first time trying to actually leverage the power of a Spark cluster, so I was definitely in over my head and could've used the insight. Maybe someone else will be in the same boat and will benefit from this answer as well. Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: snakeeyes021

79170572

Date: 2024-11-08 15:15:08
Score: 2.5
Natty:
Report link

The solution is to use contentView instead of contentViewController.

Use:

onboardWindow?.contentView = NSHostingView(rootView: contentView)

Instead of:

onboardWindow?.contentViewController = NSHostingController(rootView: contentView)

I don't know why it broke. If somebody knows, please let me know.

Reasons:
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (2.5): please let me know
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Vojta Böhm

79170569

Date: 2024-11-08 15:15:08
Score: 2.5
Natty:
Report link

OK, I managed to get this sorted out. It seems I was looking in the wrong place. I Googled "Connecting to an MDF File in .NET 6.0" (which is the version of .NET I am using) and discovered that I need to go into "Server Explorer" (NOT "Data Sources"!) and connect to my .mdf file from there. It turns out I don't need to use an earlier version of .net.

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Student228

79170567

Date: 2024-11-08 15:14:07
Score: 0.5
Natty:
Report link

I agree with @DazWilkin, that you would need to profile your application to figure out exactly what’s going on and if/what can be done to significantly improve it.

If warmup requests aren't enough, the typical way is setting the min_idle_instances to 1 in the app.yaml’s scalability configurations to minimize the impact of cold start times.

Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @DazWilkin
  • Low reputation (0.5):
Posted by: KikoZam

79170562

Date: 2024-11-08 15:13:07
Score: 0.5
Natty:
Report link

As of at least Phaser v3.86.0 it is now like this (using a dash instead of an underscore):

create() {
    // ...
    this.input.keyboard.on('keydown-W', this.yourFunction, this);
    // ...
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user1160006

79170547

Date: 2024-11-08 15:09:06
Score: 1.5
Natty:
Report link

For me, what worked was:

  1. Enforcing SSL in my app (built on Ruby on Rails)
  2. Adding to GoDaddy the DNS record provided by Heroku's domain management. xxxx.herokuapp.com did not work at all !
Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Angelo Igitego

79170544

Date: 2024-11-08 15:08:06
Score: 3.5
Natty:
Report link

i have same problem- i need to use Persian date picker instead of default date picker into the material design component. i try to create custom template for (and use Arash persian date picker component )it but don't work- this is my code :

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters;assembly=MaterialDesignThemes.Wpf"
                    xmlns:internal="clr-namespace:MaterialDesignThemes.Wpf.Internal;assembly=MaterialDesignThemes.Wpf"
                    xmlns:wpf="clr-namespace:MaterialDesignThemes.Wpf;assembly=MaterialDesignThemes.Wpf"
                    xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
                    xmlns:PersianDateControls="clr-namespace:Arash.PersianDateControls;assembly=PersianDateControls">
    <ResourceDictionary.MergedDictionaries>


        <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.blue.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Secondary/MaterialDesignColor.Lime.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Shadows.xaml" />
        
        <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Calendar.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBox.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign2.Defaults.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/MaterialDesignColor.Green.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBox.xaml" />

    </ResourceDictionary.MergedDictionaries>
    <Style x:Key="MaterialDesignPersianDatePicker" TargetType="{x:Type DatePicker}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type DatePicker}">
                    <Grid>
                        <!-- TextBox to display selected date -->
                        <TextBox x:Name="PART_TextBox"
                             VerticalAlignment="Center"
                             HorizontalContentAlignment="Center"
                             Style="{StaticResource MaterialDesignTextBoxStyle}"
                             IsReadOnly="True"
                             Text="{Binding SelectedDate, RelativeSource={RelativeSource TemplatedParent}, StringFormat='yyyy/MM/dd'}" />

                        <!-- Button to open Persian Date Picker popup -->
                        <Button x:Name="PART_Button"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Center"
                            Style="{StaticResource MaterialDesignIconButtonStyle}"
                            >
                            <materialDesign:PackIcon Kind="Calendar" />
                        </Button>

                        <!-- Popup containing Persian Date Picker -->
                        <Popup x:Name="PART_Popup"
                           Placement="Bottom"
                           StaysOpen="False"
                           AllowsTransparency="True"
                           PlacementTarget="{Binding ElementName=PART_TextBox}">
                            <PersianDateControls:PersianCalendar
                            x:Name="PersianDatePicker"
                            SelectedDate="{Binding SelectedDate, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                            Background="{DynamicResource MaterialDesignPaper}"
                            BorderBrush="{DynamicResource MaterialDesignDivider}"
                            BorderThickness="1" />
                        </Popup>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <!-- Optional: Add additional Material Design properties for colors, padding, etc. -->
    </Style>


</ResourceDictionary>

Reasons:
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (1): i have same problem
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): i have same problem
  • Low reputation (1):
Posted by: Hassan

79170512

Date: 2024-11-08 14:58:04
Score: 2
Natty:
Report link

I spent several hours trying to figure out about the ignore_result=False parameter. Maybe it will help someone.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Шамиль Хайдаров

79170510

Date: 2024-11-08 14:57:01
Score: 9.5 🚩
Natty: 4
Report link

did u find an solution? i'm having the same issue

Reasons:
  • RegEx Blacklisted phrase (3): did u find an solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i'm having the same issue
  • Contains question mark (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: oumayma messaoudi

79170508

Date: 2024-11-08 14:57:01
Score: 0.5
Natty:
Report link

It seems that there is no inherent way to do this with configs or standard OpenAPI conventions. What I found is that creating a vendor extension that holds a boolean as to whether to use that class response or not in each operation then using it in template files is a way to override this. Specifically, using JavaJaxRS, customize the returnTypes.mustache template.

YAML Example:

openapi: 3.0.1
info:
servers:
paths:
    /sample:
        get:
            x-response: true

returnTypes.mustache changes:

{{#vendorExtensions.x-response}}Response{{/vendorExtensions.x-response}}{{! non-generic response:}}
{{^vendorExtensions.x-response}}{{!
}}{{{returnType}}}{{!
}}{{/vendorExtensions.x-response}}

One thing to consider is that doing this will override the useGenericResponse flag. If you want to continue having that option available, you'll have to account for that being set or not in the template.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Michael Rudd

79170504

Date: 2024-11-08 14:56:00
Score: 2
Natty:
Report link

I have updated the code with the final answer.

After the first call to CryptAcquireContext fails with error "Keyset does not exist" I make a second call to CryptAcquireContext with dwFlags parameter set to CRYPT_NEWKEYSET. This succeeded, and when it is run again, the first call now succeeds. The first CSP with PROV_RSA_FULL type: Microsoft Base Cryptographic Provider v1.0 now has a default Keyset. This implies none of my CSPs with PROV_RSA_FULL type had a default Keyset.

Thanks to bartonjs for catching the pszName parameter issue. "pszName is the name of the CSP, but you're passing it to CryptAcquireContext as the name of a key container" With this fixed, the first call to CryptAcquireContext still returned the same error "Keyset does not exist".

https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/SecCrypto/example-c-program-using-cryptacquirecontext.md is an example of creating a Keyset

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: John Rainey

79170484

Date: 2024-11-08 14:52:59
Score: 1
Natty:
Report link

In a confirmation phase of your package name you have to write it completely , here you just typed com instead of com.example.chatapp . If you can't type it completely , open it in android studio and try with terminal of android studio. I already faces with this issue and fixed it like this solution.

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

79170480

Date: 2024-11-08 14:51:59
Score: 2
Natty:
Report link

I use it in my yml file:

- name: Setup C/C++ Compiler
  id: setup-compiler
  uses: rlalik/setup-cpp-compiler@master
  with:
    compiler: gcc-latest

- name: Verify GCC Installation
  run: |
    gcc --version
    g++ --version

From this github: https://github.com/rlalik/setup-cpp-compiler

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

79170476

Date: 2024-11-08 14:50:59
Score: 2
Natty:
Report link

I fixed that. Changed my files which contain unvalid characters and fixed it.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yusuf Taha

79170469

Date: 2024-11-08 14:48:58
Score: 1
Natty:
Report link

If you are using multiple targets in a separate thread, you can proceed as follows:

export default pino(
  {
    level: 'debug',
    redact: {
      paths: ['req', 'res'],
      remove: true,
    },
  },
  transport,
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: William Magnabosco

79170462

Date: 2024-11-08 14:47:57
Score: 5.5
Natty: 5
Report link

@SScotti did you have to make any code changes? Trying to understand if the resolution was on your side or the eClinicalWorks side.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @SScotti
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Dan Bonistalli

79170457

Date: 2024-11-08 14:43:56
Score: 1.5
Natty:
Report link

Try to check below things. It will help you to solve your problem.

  1. Ensure you’re running the app in Debug mode, as changes in Debug mode typically take effect immediately without needing to restart the app.

  2. Enable Hot Reload in your project.

  3. Clear your browser cache. ( Sometimes, a caching issue might prevent changes from appearing ).

  4. Perform a full rebuild of the solution.

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

79170453

Date: 2024-11-08 14:42:56
Score: 1.5
Natty:
Report link

What u actually need to do is to change the way u are implementing ur models by converting it to a binary.

so that its:

class Announcements(models.Model): 
image = model.BinaryField()

this way u cn store it directly

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: wuh-yne

79170447

Date: 2024-11-08 14:40:55
Score: 5.5
Natty:
Report link

Is there a flavour of markdown that supports that?

Yes: markdown-it mostly does (as https://github.com/11ty/eleventy/issues/2438#issue-1271419451 well explains).

How do I do that?

markdownit().disable('code')
Reasons:
  • Blacklisted phrase (1): How do I
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is there a
  • Low reputation (0.5):
Posted by: RokeJulianLockhart

79170445

Date: 2024-11-08 14:39:55
Score: 1
Natty:
Report link

Answer

  1. Open the Required Port in the Firewall:
    In my case, the problem was that Ubuntu's firewall (ufw) was blocking traffic on port 5000. You can allow this traffic by running:

    sudo ufw allow 5000
    

    This should open the port for external connections, allowing the macOS container to access usbfluxd on the host.

  2. Restart usbfluxd on macos (if necessary):
    After updating the firewall, restart usbfluxd to ensure the changes take effect.
    enter image description here

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

79170438

Date: 2024-11-08 14:37:54
Score: 1
Natty:
Report link

A solution was provided by @kadyb and Ezder. In order to make this work during github actions, a suitable source of geos and installation of sf from source will be required. This is taken care of by default for Mac and Windows, but some more work is needed for linux.

Within the: .github/worflows directory you will need to modify up to 2 files, one is used for building the pkgdown website, the other is for the tests.

the R-CMD-check.yaml will need to be edited to this:

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
  push:
    branches: [main, master]
  pull_request:
    branches: [main, master]

name: R-CMD-check.yaml

permissions: read-all

jobs:
  R-CMD-check:
    runs-on: ${{ matrix.config.os }}

    name: ${{ matrix.config.os }} (${{ matrix.config.r }})

    strategy:
      fail-fast: false
      matrix:
        config:
          - {os: macos-latest,   r: 'release'}
          - {os: windows-latest, r: 'release'}
          - {os: ubuntu-latest,   r: 'devel', http-user-agent: 'release'}
          - {os: ubuntu-latest,   r: 'release'}
          - {os: ubuntu-latest,   r: 'oldrel-1'}

    env:
      GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
      R_KEEP_PKG_SOURCE: yes

    steps:
      - uses: actions/checkout@v4

      - uses: r-lib/actions/setup-pandoc@v2

      - uses: r-lib/actions/setup-r@v2
        with:
          r-version: ${{ matrix.config.r }}
          http-user-agent: ${{ matrix.config.http-user-agent }}
          use-public-rspm: true

      - uses: r-lib/actions/setup-r-dependencies@v2
        with:
          extra-packages: any::rcmdcheck
          needs: check
          
      - name: Update GEOS
        if: runner.os == 'Linux'
        run: |
          sudo apt-get install software-properties-common
          sudo add-apt-repository ppa:ubuntugis/ppa
          sudo apt-get update
          sudo apt-get install libgeos-dev

      - name: Commpile sf from source
        if: runner.os == 'Linux'
        run: install.packages("sf", type = "source", repos = "https://cran.rstudio.com/")
        shell: Rscript {0}

      - uses: r-lib/actions/check-r-package@v2
        with:
          upload-snapshots: true
          build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

and the pkgdown.yaml which will allow the website to render also needs to be updated:

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
  push:
    branches: [main, master]
  pull_request:
    branches: [main, master]
  release:
    types: [published]
  workflow_dispatch:

name: pkgdown.yaml

permissions: read-all

jobs:
  pkgdown:
    runs-on: ubuntu-latest
    # Only restrict concurrency for non-PR jobs
    concurrency:
      group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
    env:
      GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v4

      - uses: r-lib/actions/setup-pandoc@v2

      - uses: r-lib/actions/setup-r@v2
        with:
          use-public-rspm: true

      - uses: r-lib/actions/setup-r-dependencies@v2
        with:
          extra-packages: any::pkgdown, local::.
          needs: website
          
      - name: Update GEOS
        if: runner.os == 'Linux'
        run: |
          sudo add-apt-repository ppa:ubuntugis/ppa
          sudo apt-get update
          sudo apt-get install libgeos-dev

      - name: Commpile sf from source
        if: runner.os == 'Linux'
        run: install.packages("sf", type = "source", repos = "https://cran.rstudio.com/")
        shell: Rscript {0}

      - name: Build site
        run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
        shell: Rscript {0}

      - name: Deploy to GitHub pages 🚀
        if: github.event_name != 'pull_request'
        uses: JamesIves/[email protected]
        with:
          clean: false
          branch: gh-pages
          folder: docs

What has happened with both is the addition of:

      - name: Update GEOS
        if: runner.os == 'Linux'
        run: |
          sudo add-apt-repository ppa:ubuntugis/ppa
          sudo apt-get update
          sudo apt-get install libgeos-dev

      - name: Commpile sf from source
        if: runner.os == 'Linux'
        run: install.packages("sf", type = "source", repos = "https://cran.rstudio.com/")
        shell: Rscript {0}

Which allows for a suitable GEOS installation and sf from source.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @kadyb
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: steppe

79170423

Date: 2024-11-08 14:32:53
Score: 0.5
Natty:
Report link

Ok. The solution is like suggested on the micronaut docu (https://micronaut-projects.github.io/micronaut-test/4.0.0-M8/guide/index.html#junit5) Instead of using @Spy on all "normal" implementations. I just had to use

    @MockBean(ClassToBeMockedImpl.class)
    public ClassToBeMocked classToBeMocked() {
        return mock(ClassToBeMocked.class);
    }

on the class I want o mock. So all the field injection were uncessary.

Reasons:
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Zonko

79170409

Date: 2024-11-08 14:29:52
Score: 2
Natty:
Report link

I would simply use v[length(v):0]

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

79170402

Date: 2024-11-08 14:27:51
Score: 0.5
Natty:
Report link

I've provided some hints in the similar topic: How to Access Number of Views for Pages on Data Center (On-prem) Confluence?

The question there was explicitly restricted to Confluence Data Center (i.e. not cloud version of Confluence). The short summary of my reply by named topic is: there is no suitable official REST API for Data Center version available, but there are some tricks, which could be useful (however the interface might be restricted for usual users).

Current topic is not limited by Data Center version and in the Cloud version of Confluence - the REST API interface was extended, so now it could provide the statistical information. Please see the details here: https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-analytics/#api-group-analytics

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

79170378

Date: 2024-11-08 14:20:50
Score: 0.5
Natty:
Report link

Navigate to a screen in a nested navigator In React Navigation, navigating to a specific nested screen can be controlled by passing the screen name in params. This renders the specified nested screen instead of the initial screen for that nested navigator.

For example, from the initial screen inside the root navigator, you want to navigate to a screen called media inside settings (a nested navigator). In React Navigation, this is done as shown in the example below:

React Navigation

https://docs.expo.dev/router/advanced/nesting-navigators/

navigation.navigate('root', {
  screen: 'settings',
  params: {
    screen: 'media',
  },
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Geeker One

79170354

Date: 2024-11-08 14:12:47
Score: 0.5
Natty:
Report link

If you have access to script console can disable all jobs with

import hudson.model.*

disableChildren(Hudson.instance.items)

def disableChildren(items) {
  for (item in items) {
    if (item.class.canonicalName) {
      if (item.class.canonicalName == 'com.cloudbees.hudson.plugins.folder.Folder') {
          disableChildren(((com.cloudbees.hudson.plugins.folder.Folder) item).getItems())
      } else if (item.class.canonicalName != 'org.jenkinsci.plugins.workflow.job.WorkflowJob') {
        item.disabled=true
        item.save()
        println("DISABLED: ${item.name}")
      }
    }
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Erik Anderson

79170343

Date: 2024-11-08 14:08:46
Score: 1.5
Natty:
Report link

Late answer, but I had success using this: https://webpack.js.org/configuration/other-options/#ignorewarnings

For example:

module.exports = {
    ...
    ignoreWarnings: [
        {
            message: /WARNING in.*node_modules.esri-leaflet-geocoder.*/
        }
    ]
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jan Wegger

79170330

Date: 2024-11-08 14:05:45
Score: 2.5
Natty:
Report link

I'm having same trouble. I tried email sending with PHPMailer script from below link.

https://github.com/PHPMailer/PHPMailer

Email sent with this script but not sending from Laravel

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

79170321

Date: 2024-11-08 14:01:43
Score: 1
Natty:
Report link

install pkg for pkg-config, will help, if you dont have.

I make it work in my wsl env when i have the problem when libsqlite3-dev installed.

after sudo apt install pkg-config it can be work fine

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

79170315

Date: 2024-11-08 13:59:43
Score: 0.5
Natty:
Report link

ed dreaming. Every night, while others rested, Sam was up, working on his vision."

[Cut to Sam facing challenges, setbacks, exhausted, but pushing through]

Narrator: "Yes, he faced setbacks. Many times, he felt like giving up. People doubted him. But every time he fell, he got back up. He knew that success wasn’t just about talent or luck—it was about resilience."

[Scene shifts to a later time: Sam is now successful, standing in front of a company he built, helping others succeed]

Narrator: "Years later, Sam achieved his dreams. Not only was he successful, but he was also able to help others chase their own goals. His story wasn’t just about wealth; it was about proving that anyone can overcome the odds if they believe in themselves and never give up."

[Closing shot: Sam talking to a crowd, inspiring them with his journey]

Narrator: "Sam’s story is a reminder: no matter where you start, with vision, hard work, and persistence, anything is possible. Start today, push through, and let nothing hold you back. Your success story is waiting to

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

79170314

Date: 2024-11-08 13:59:43
Score: 1.5
Natty:
Report link

I was facing the same problem as you, and I could run the app after updating the Cocoapods to version 1.16.2. To do that, run the command below in your terminal.

sudo gem install cocoapods

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Y. Sampaio

79170313

Date: 2024-11-08 13:59:43
Score: 0.5
Natty:
Report link

Increasing the maximum-pool-size in your connection pool allows for more concurrent database connections. However, to take advantage of this, you need to ensure that your inserts are processed in multiple threads. By default, Spring Data JPA runs saveAll() in a single thread, using only one database connection at a time, regardless of the connection pool size.

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

79170308

Date: 2024-11-08 13:56:42
Score: 1
Natty:
Report link

It is in the documentation now (at least as of oracle 19).

drop_constraint_clause::=

drop ( 
  primary key |
  constraint *constraint_name* |
  unique (*column*, ...) 
) ... [ (drop | keep) index ]

(I did not want to copy paste the image, as I am not sure that's okay with oracle; I hope the notation is self-explanatory).

https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ALTER-TABLE.html#GUID-552E7373-BF93-477D-9DA3-B2C9386F2877__I2103997

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

79170299

Date: 2024-11-08 13:53:41
Score: 1.5
Natty:
Report link

Relative imports in Python, from one directory up

Let's imagine you have this directory structure:

dev/
    my_project/
        config.py
        sandbox/
            test.py

And you want to cd into my_project and run test.py, where test.py imports config.py. Python doesn't allow this by default: you cannot import anything from above your current directory, unless you use sys.path.insert() to insert that upper directory into your system path first, before attempting the import.

So, here's the call you want to make:

cd dev/my_project
./sandbox/test.py

And here's how to allow test.py to import config.py from one directory up:

test.py:

#!/usr/bin/env python3

import os
import sys

# See: https://stackoverflow.com/a/74800814/4561887
FULL_PATH_TO_SCRIPT = os.path.abspath(__file__)
SCRIPT_DIRECTORY = str(os.path.dirname(FULL_PATH_TO_SCRIPT))
SCRIPT_PARENT_DIRECTORY = str(os.path.dirname(SCRIPT_DIRECTORY))
# allow imports from one directory up by adding the parent directory to the 
# system path
sys.path.insert(0, f"{SCRIPT_PARENT_DIRECTORY}")

# Now you can import `config.py` from one dir up, directly!
import config

# The rest of your imports go here...


# The rest of your code goes here...

References

  1. My original answer where I first posted this content: How do I get the path and name of the python file that is currently executing?

Going further

  1. In Bash, which can be rather Pythonic by using if [ "$__name__" = "__main__" ], relative imports are more natural, and are done as follows:
    1. [main resource] My article on my website: GabrielStaples.com: How do you write, import, use, and test libraries in Bash?
    2. My answer: Importing functions from a shell script
    3. My answer: How do I get the directory where a Bash script is located from within the script itself?
Reasons:
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (1): How do you
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Gabriel Staples

79170292

Date: 2024-11-08 13:52:41
Score: 1
Natty:
Report link

With datatables (I'm using v 2.1.8) you can change color with CSS :

/* order arrows default */
table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order::after,
table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order::after {
    color: red;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Cyrille37

79170283

Date: 2024-11-08 13:50:40
Score: 17
Natty: 7
Report link

Did you manage to solve it? I have the same problem on iOS with React Native when using react-native-nfc-manager. Any solution?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1.5): Any solution
  • RegEx Blacklisted phrase (3): Did you manage to solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (2): Any solution?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Ailton Aires

79170267

Date: 2024-11-08 13:46:39
Score: 1
Natty:
Report link

Unless you are interested in no code tools like Power Automate, where we have some plugins like this one, to create a custom connector will require some developer skills.

If you are interested in following the dev part, you should start with basic tutorials and once mastered, you will be able to bend it to your need. By the way, there are also free 101 trainings.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: denis-grigor

79170261

Date: 2024-11-08 13:46:39
Score: 1
Natty:
Report link

I think this is what you want. Make color is optional and is not nullable

from pydantic import Field

...
  color: str = Field(None)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rumbarum

79170256

Date: 2024-11-08 13:43:38
Score: 3
Natty:
Report link

This bug has been fixed in org-mode upstream for quite some time, so it should now work for you out of box.

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

79170227

Date: 2024-11-08 13:37:37
Score: 3
Natty:
Report link

Issue seems to be fixed in Android Studio Meerkat. I myself have not been able to get this to work in Ladybug.

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

79170214

Date: 2024-11-08 13:32:36
Score: 1
Natty:
Report link

Looks like adding allowDangerousHtml:true to your options should allow the html elements to get through unchanged.

See the readme: https://github.com/micromark/micromark/blob/main/packages/micromark/readme.md#options

import { micromark } from 'micromark';
import { gfm, gfmHtml } from 'micromark-extension-gfm';

const mdd = `
# Title
<div>
  This is HTML inside markdown.
  <img src="image.jpg" alt="Example image" />
</div>
`;
console.log(micromark(mdd, { allowDangerousHtml:true, extensions:[ gfm() ] }));
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ray Wallace

79170205

Date: 2024-11-08 13:29:35
Score: 1
Natty:
Report link

i get the Answer Use the

php artisan vendor:publish --tag=laravel-pagination

Cmd to Create the Bootstrap Vendor file for Pagination and Then i have change the

            <div class="mt-4">
                {{ $distributorStock->links() }}
            </div> 
        </div>

code to this

  {{ $distributorStock->links('vendor.pagination.bootstrap-4') }}

  {{ $distributorStock->links('vendor.pagination.bootstrap-4') }}

then i get this output

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

79170197

Date: 2024-11-08 13:27:34
Score: 0.5
Natty:
Report link

Double check your private key. As detailed in the error message it was EC and not RSA.

Editing a single line would solve your issue:

client_key = OpenSSL::PKey::EC.new(File.read('/root/client/client.key'), keypass)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 473183469

79170188

Date: 2024-11-08 13:25:33
Score: 0.5
Natty:
Report link

Just do this and it will clean it for you:

jq 'del(.metadata.widgets)' YourNotebook.ipynb > YourNotebook.ipynb

Please note that it will work only if Jupyter JSON format is stable in that respect.

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

79170183

Date: 2024-11-08 13:23:33
Score: 2.5
Natty:
Report link

'sudo rm -rf /opt/anaconda3'

i.e. ~ removed

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

79170175

Date: 2024-11-08 13:21:32
Score: 4
Natty:
Report link

enter image description here

I found that 'index.pdf' is coming from the title as you mentioned, but I don’t know how to modify it because this is a popup opened by the Edge browser. –

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Resul Bekir Şahin

79170149

Date: 2024-11-08 13:13:30
Score: 0.5
Natty:
Report link

Yes it does allocate all memory at once.

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

79170141

Date: 2024-11-08 13:10:29
Score: 2
Natty:
Report link

Use the Unicode.

paste('my table title', '\U00B9, \U00B2, \U00B3')

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

79170134

Date: 2024-11-08 13:08:28
Score: 1
Natty:
Report link

Short answer

Instead of

resource :pages do
  get 'home' => 'pages#home'
end

use

get 'home/:id', to: 'pages#home'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Anton Bogdanov

79170121

Date: 2024-11-08 13:05:28
Score: 1.5
Natty:
Report link

I want to intercept function calls and found that proxies can do that

Far too complicated. All you need is a wrapper function:

// Trapping a function call with another function
const taggedTemplate = (...argArray) => {
  console.log("apply");
  return target(...argArray);
};

The proxy doesn't achieve anything else here.

I quickly found that the params passed to the function are not intercepted. Why is that?

Because only taggedTemplate is a proxy (or wrapped function), and the apply trap triggers when that particular taggedTemplate function object is called. There is no proxy involved in Num(). The expression taggedTemplate`my fav number is ${Num()}` is no different than doing

const value = Num();
taggedTemplate`my fav number is ${value}`

Is there any way to do that?

No.

Reasons:
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (0.5): Why is that
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Bergi

79170110

Date: 2024-11-08 12:59:24
Score: 8.5 🚩
Natty: 5.5
Report link

i am actually stuck with the same situation, did you find its solution?

Reasons:
  • RegEx Blacklisted phrase (3): did you find
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mubariz Ali

79170104

Date: 2024-11-08 12:57:23
Score: 1
Natty:
Report link

if you mean relative to the screen, you should use the code below

this.iw = window.innerWidth;
this.ih = window.innerHeight;

then use this code

      let tree = this.physics.add
          .sprite(500*this.iw, 300*this.ih, "tree")
          .setScale(0.5*(this.iw/this.ih));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Coco

79170087

Date: 2024-11-08 12:48:21
Score: 1.5
Natty:
Report link

Shortly, no. Regressors cannot know this. Your problem is a multi-class classification problem. You need to use classifier for your problem. Classifier model predicts probabilites of three labels. And sum of them will be 1 (100%).

https://scikit-learn.org/stable/modules/generated/sklearn.multioutput.MultiOutputClassifier.html

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

79170086

Date: 2024-11-08 12:48:21
Score: 3
Natty:
Report link

This issue seemed to have resolved on its own. I don’t really have an answer to why this happened. I’m going to assume it was a carrier issue limited to a small group of users.

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

79170082

Date: 2024-11-08 12:46:19
Score: 7 🚩
Natty: 4
Report link

I don't have the source code for the project but my server got crashed. Now I have changed the server and I got this server error in the new server.

<%@ control language="vb" autoeventwireup="false" inherits="MSFB.Header, App_Web_s7kv-y21" %>

What should I do now?

Reasons:
  • Blacklisted phrase (2): What should I do
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: MohanTech

79170081

Date: 2024-11-08 12:46:18
Score: 3.5
Natty:
Report link

Add bellow line, before your CMD ["/weather-api"]

RUN apk add libc6-compat

Full answer https://stackoverflow.com/a/66974607/8289710

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

79170073

Date: 2024-11-08 12:45:18
Score: 1
Natty:
Report link

If 'android.defaults.buildfeatures.buildconfig = true' is not enough, then perhaps the menu will help: Build -> Rebuild Project.

A 'java (genereted)' folder containing the 'BuildConfig' class should then be created in the project navigator.

Build -> Rebuild must be called separately for each build (release, debug, ...) so that the class is created.

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

79170072

Date: 2024-11-08 12:44:18
Score: 1
Natty:
Report link

Since Go 1.22, we can use the reflect.TypeFor function to get a reflect.Type value:

func main() {
    errorType := reflect.TypeFor[error]()
    err := errors.New("foo")
    println(reflect.TypeOf(err).Implements(errorType))
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: xianyukang

79170064

Date: 2024-11-08 12:42:17
Score: 0.5
Natty:
Report link

In the code you shared, the initial position uncertainties have a standard deviation of about 45 meters (=sqrt(2*10^3)). The process noise at each step is the same order of magnitude. So the filter's uncertainty in its position just from the model is on the order of tens or low hundreds of meters.

The measurement noise that you are adding has a standard deviation of 2.5 degrees in latitude and longitude. Let's do some quick math on that. The radius of the ISS orbit is about 6778000 meters. We can find the uncertainty in meters using the arc length formula: s = r * theta = (6778000) * (2.5 * pi / 180) = 295746. So the uncertainty in each measurement is on the order of hundreds of thousands of meters.

What will the filter do when it knows the position of the spacecraft accurate to tens of meters and then gets a measurement that's only accurate to hundreds of thousands of meters? It will, correctly, almost completely ignore the measurement. If you want the filter to pay attention to the measurements, then I would suggest turning the measurement noise way down. For example, if you wanted the measurements to have an uncertainty of 100 meters, a noise standard deviation of 0.0008 degrees is about what you would want.

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

79170059

Date: 2024-11-08 12:40:17
Score: 2.5
Natty:
Report link

Use a Cronusmax Plus (set via the Cronus Pro software to be a PS3/PC input and PS3/PC output adapter) connected to a PS3 to PS2 Brook Superconverter connected to a PS2 to Gamecube controller adapter. One these are connected together you can connect the program port of your Cronusmax Plus to your PC and you can set it up for any controller plugged into your PC to go out into your system of adapters to ultimately be recognized as a Gamecube controller signal.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Wired-Up Retro of Youtube

79170053

Date: 2024-11-08 12:37:16
Score: 3.5
Natty:
Report link

Thanks @Sinatr !! By setting Background property on Border element worked. For the next Google searches, now I have this and it's working

<Border Height="40" VerticalAlignment="Top"
        Background="{StaticResource ColorPrimary500}"
        x:Name="TitleBar" 
        Panel.ZIndex="1">
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Sinatr
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Dawid

79170042

Date: 2024-11-08 12:33:14
Score: 2
Natty:
Report link

Actually the problem is flowbite uses index.html for including dependecies so in react router v7 it not works so on same page if we refresh page

it works this is a big problem with flowbite js components

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: web devlopment king

79170031

Date: 2024-11-08 12:31:14
Score: 2
Natty:
Report link

Im having issues with // in requests so have used -

RewriteCond %{REQUEST_URI} ^(.)/{2,}(.)$ RewriteRule (.*) %1/%2

It tests correctly and does give a result changing the // to / but the destination page whilst served does not render correctly depending on the // position.

EG - https://www.brickfieldspark.org//data/greaterwaterboatman.htm renders correctly but - https://www.brickfieldspark.org/data//greaterwaterboatman.htm does not render -

I believe the served page image links - <a href="../images - are being mangled in some way ??, IE "jump back one level and go to images" is corrupted by the position of the //

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mike Hatch

79170029

Date: 2024-11-08 12:30:14
Score: 0.5
Natty:
Report link

After a tip to go through the output and check the first [project to fail with a missing dll I found a project that had not been built in debug. After that everything fails.

Recompiling that related project in debug started the dlls being written out to the ref folder.

Not a great error message but I thinl I'm sorted now

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

79170018

Date: 2024-11-08 12:26:13
Score: 0.5
Natty:
Report link

The error trace you're seeing is commonly related to issues with Android's WorkManager library, specifically when the system tries to query historical exit reasons for processes. Here’s a breakdown of the possible causes and solutions:

Restricted Access to System API: The error originates from ActivityManager.getHistoricalProcessExitReasons, which accesses historical process exit reasons. This API has restricted permissions, especially on certain devices and Android versions, and may throw exceptions if accessed by an app without the necessary permissions.

OS Compatibility and Manufacturer Customization: Some Android versions or device manufacturers modify system behavior, and accessing certain APIs may trigger exceptions. WorkManager calls getHistoricalProcessExitReasons to check if the app has been force-stopped, but if the OS restricts it, it could cause an error.

Unhandled Exceptions: WorkManager’s ForceStopRunnable checks if the app has been force-stopped, using APIs that may throw unexpected exceptions. If these exceptions aren’t handled, they may bubble up and crash the process.

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

79170015

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

Running npm install @rollup/rollup-win32-x64-msvc solved the issue.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Smart Manoj

79170007

Date: 2024-11-08 12:21:12
Score: 3.5
Natty:
Report link

As shown at https://github.com/aws/aws-cdk/issues/6953#issuecomment-2414652937 , it can be archived by base64 encoding the logo and just including it in the css.

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

79169998

Date: 2024-11-08 12:20:11
Score: 1.5
Natty:
Report link

I know this is an old post but, if anyone else is looking to do something similar i.e.: Count the number of active conections on a server, and when it hits a threshold notify HAProxy to drain connections... Thats exactly what the open source agent from Loadbalancer.org does... And it has both a Linux and Windows version.

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

79169994

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

In my case what make my CygWin slow to start up is nvm. If you have nvm installed it will add initial script to ~/.bashrc which would take a long time to run.All you need to do is to comment them out.

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: link89

79169991

Date: 2024-11-08 12:18:08
Score: 6 🚩
Natty:
Report link

Im not 100% sure but last time I have similar problem I do this:

Download snap7 https://sourceforge.net/projects/snap7/ Copy the dll on you win32 and when run it will recognize it

Reasons:
  • Blacklisted phrase (1): I have similar
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have similar problem
  • Low reputation (1):
Posted by: Alberttorm9

79169986

Date: 2024-11-08 12:17:07
Score: 2
Natty:
Report link

Setting useTextureView to false tells react-native-video to use a SurfaceView instead of a Texture View, which can mitigate issues when hardware acceleration is selectively enabled.

add this prop useTextureView={false}

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

79169976

Date: 2024-11-08 12:15:07
Score: 1.5
Natty:
Report link

For me, adding [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 solved, which is strange to me since this is an hosted pipeline, ran within a Linux vm.

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

79169975

Date: 2024-11-08 12:14:06
Score: 0.5
Natty:
Report link

The error was related to how I defined the path in the microservice. I initially thought that every request matching the base URL defined in the ingress file would be forwarded to the correct pod, with the rest of the URL being handled by the microservice itself. I simply misunderstood how route definitions in the ingress configuration actually work. The correct path definition for mounting the route is:

app.use("/v1/auth", authRouter);

just like defined in the Ingress config file.

Hope this can be helpful for someone.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Davide Aprea

79169974

Date: 2024-11-08 12:14:06
Score: 3.5
Natty:
Report link

Just type this.StartPosition = FormStartPosition.CenterParent before InitializeComponent() in constructor in child window.

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

79169970

Date: 2024-11-08 12:13:06
Score: 0.5
Natty:
Report link

It's no longer the part of express anymore ...

now you should install body-parser separately...

They have rich documents about this parser details about body and urlencoded with other parsers.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Wahab Khan Jadon

79169961

Date: 2024-11-08 12:11:05
Score: 4
Natty: 4.5
Report link

If you want cli, this is here.

https://crates.io/crates/vsixHarvester

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

79169960

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

You may need to add your user to the docker group with:

sudo usermod -aG docker $USER

If you get an error stating that the docker group doesn't exist, you can create it with:

sudo groupadd docker
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Niusha Sabahi

79169957

Date: 2024-11-08 12:10:02
Score: 12.5 🚩
Natty:
Report link

@Sufyan can you please tell me what changes you have made in pdfjs code in asset folder. I am facing similar issue. Also please let me know version of pdfjs you are using currently. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): can you please tell me what
  • RegEx Blacklisted phrase (2.5): please let me know
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing similar issue
  • User mentioned (1): @Sufyan
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Syed Saif Ali

79169955

Date: 2024-11-08 12:09:02
Score: 1
Natty:
Report link

Since crbug#40323993, socks5 is not supported by Chrome. The only way to make this work natively, would be to patch the source at Chromium.

You might however use some middleware, such as a proxy to forward socks to http

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

79169934

Date: 2024-11-08 12:00:59
Score: 4.5
Natty:
Report link

I have java-23 jdk installed in my ubuntu 24 but I am still getting this error. It occurs as soon as I open my vscode

Reasons:
  • RegEx Blacklisted phrase (1): I am still getting this error
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: berxo

79169923

Date: 2024-11-08 11:56:58
Score: 3.5
Natty:
Report link

It works buy only on real devices. Don't work in emulator

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

79169921

Date: 2024-11-08 11:56:58
Score: 1.5
Natty:
Report link

I’ve been exploring Android app development, and I agree that using Visual Studio Code offers flexibility but can present some challenges, especially when integrating complex functionalities like real-time data or payment systems. In my experience, optimizing workflow and integrating tools like Firebase or RESTful APIs for these needs became much smoother after utilizing a robust development approach. That's why I highly recommend checking out solutions that streamline mobile app development for industries like insurance, where reliability and security are paramount. A service like https://binary-studio.com/insurance-mobile-app-development/ provides advanced tools for integrating claims management systems, secure payments, and data synchronization—all while ensuring a smooth user experience.

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

79169915

Date: 2024-11-08 11:55:57
Score: 2
Natty:
Report link

You can try checking VS Code logs. They should be located at the bottom in a tab called OUTPUT. Perhaps an extension is acting up or something else is misconfigured. Here is a short manual: https://docs.oracle.com/en/cloud/paas/application-integration/adapter-builder/view-vs-code-extension-logs.html

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

79169913

Date: 2024-11-08 11:54:54
Score: 6 🚩
Natty:
Report link

Could you provide some example how to do that in df.write...saveAsTable

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you provide some
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tanmay Gupta

79169911

Date: 2024-11-08 11:54:54
Score: 0.5
Natty:
Report link

Build version: 2.4.0 Current date: 2024-11-08 19:47:54 Device: Vivo V2237 OS version: Android 14 (SDK 34)

Stack trace:
java.lang.RuntimeException: Using WebView from more than one process at once with the same data directory is not supported. https://crbug.com/558377 : Current process com.zenhub.gfx (pid 20575), lock owner unknown at org.chromium.android_webview.AwDataDirLock.b(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:202) at org.chromium.android_webview.AwBrowserProcess.j(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:16) at com.android.webview.chromium.N.e(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:207) at WV.rY.run(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:11) at android.os.Handler.handleCallback(Handler.java:1013) at android.os.Handler.dispatchMessage(Handler.java:101) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:328) at android.app.ActivityThread.main(ActivityThread.java:9188) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAn**

  1. strong text

**dArgsCaller.run(RuntimeInit.java:594) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)

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

79169910

Date: 2024-11-08 11:54:54
Score: 5.5
Natty:
Report link

How much clock speed and how many cores does your processor have? And how much operational memory does your computer have?

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

79169907

Date: 2024-11-08 11:53:54
Score: 2
Natty:
Report link

My guess is your tempdir() for julia is on C:.

You can try to change the values of ENV["TMP"] or TEMP or USERPROFILE

https://docs.julialang.org/en/v1/base/file/#Base.Filesystem.tempdir

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