79189913

Date: 2024-11-14 17:56:45
Score: 0.5
Natty:
Report link

To achieve this, you need to utilize the URL rewrites of the load balancer. This will allow you to change host, path, or both of them before directing traffic to your backend services.

Assuming everything is already set up, you just need to edit the routing rules of your load balancer.

  1. Edit the load balancer and select Routing Rules.

  2. In the mode section, select “Advanced host and path rules”.

  3. On the YAML file, create a “rouetRules” with “matchRules” for your URL request that will distinguish your backend service.

  4. Indicate your desired path by creating “urlRewrite” with “pathPrefixRewrite”.

Sample YAML code below:

name: matcher
routeRules:
- description: service
  matchRules:
  - prefixMatch: /bar                 # Request path that need to be rewrite.
  priority: 1
  service: projects/example-project/global/backendServices/<your-backend>
  routeAction:
    urlRewrite:
      pathPrefixRewrite: /foo/bar      # This will be your desired path.

For a more comprehensive guide, you can follow this article.

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

79189911

Date: 2024-11-14 17:55:44
Score: 3
Natty:
Report link

Actually this happened because of visual studio based error. I tried on different computer and it is working correctly. I assume the visual stuido did not installed properly. After I checked Event Viewer, I saw an MSVCP140.dll error.

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

79189909

Date: 2024-11-14 17:53:44
Score: 11
Natty: 7.5
Report link

how did you solve this problem ?

Reasons:
  • RegEx Blacklisted phrase (3): did you solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem ?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): how did you solve this
  • Low reputation (1):
Posted by: Rajesh kothari

79189908

Date: 2024-11-14 17:53:44
Score: 1
Natty:
Report link

SELECT * FROM your_table WHERE field1 NOT LIKE CONCAT('%', field2, '%');

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Teshan N.

79189904

Date: 2024-11-14 17:53:44
Score: 1.5
Natty:
Report link

I would like to add that you can also use TextRenderer.MeasureText() to help adjust the size of the controls that refuse to scale properly.

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

79189891

Date: 2024-11-14 17:48:40
Score: 11.5 🚩
Natty: 6
Report link

I'm trying to update to VS2022 but I did all the steps up and this error continue:

Severity Code Description Project File Line Suppression State Details Error LNK2019 unresolved external symbol _MainTask referenced in function __Thread@4 UI_SIM C:\EVO_WIN32\jura_evohome_main_app\GUISim.lib(SIM_GUI_App.OBJ)

Do you know how to solve this?

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1.5): how to solve this?
  • RegEx Blacklisted phrase (2.5): Do you know how
  • RegEx Blacklisted phrase (2): know how to solve
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: David Hernandez

79189887

Date: 2024-11-14 17:47:39
Score: 11
Natty: 8.5
Report link

didnt you find any solution ???

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Blacklisted phrase (1): ???
  • RegEx Blacklisted phrase (2): any solution ?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: Swayam

79189879

Date: 2024-11-14 17:45:38
Score: 1.5
Natty:
Report link

For anyone who may run into this same issue and is looking for how to solve it, here's the fix.

spring:
  cloud:
    function:
      definition: myPayloadConsumerFromTopic1;myPayloadConsumerFromTopic2

Note that previously I was using commas to separate the function definitions, whereas now I am using semicolons. That fixed this issue.

Reasons:
  • Blacklisted phrase (1): how to solve
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Keith Bennett

79189874

Date: 2024-11-14 17:44:37
Score: 0.5
Natty:
Report link

To Monitor DB behaviour using SQL queries the DB user should have the SELECT ANY DICTIONARY privilege if you‘re not using a system account. Keep in mind that selecting from some views like AWR views (DBA_HIST_xxx) requires the Enterprise Edition with Diagnostics Pack rsp. Tuning Pack license.

To learn how to select several states of the DB by SQL you may use the free analysis tool „Panorama for Oracle“. Setting the environment variable PANORAMA_LOG_SQL=true before starting the app will log all SQL statements to the console that are executed while using the browser GUI of this app.

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

79189873

Date: 2024-11-14 17:43:37
Score: 2.5
Natty:
Report link

Since Rust hasn’t yet solved these problems, I’ve extended a better solution (without closure, so no need to shut up clippy) and published it.

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

79189857

Date: 2024-11-14 17:39:36
Score: 1.5
Natty:
Report link

Following the dagger documentation here

What you can do is using the @AssistedInject annotation and create a factory to be used.

class CustomClass @AssisgtedInject constructor (
    val repository: Repository, 
    @Assisted val name: String
) {

    @AssistedFactory
    interface CustomClassFactory {
        fun create(name: String): CustomClass
    }
}

Then you can have the @Inject CustomClassFactory and call the CustomClassFactory.create() to create your object.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @AssistedInject
  • User mentioned (0): @Inject
  • Low reputation (1):
Posted by: Gab

79189839

Date: 2024-11-14 17:32:34
Score: 1.5
Natty:
Report link

It has been found that an output directory can be specified when running using maven and specifying a system property when invoking maven. The system property is karate.output.dir. For example:

mvn test -Dkarate.env="QA" -Dkarate.options="classpath:ui/test-to-run.feature" -Dkarate.output.dir="karate-custom-output-dir"

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

79189802

Date: 2024-11-14 17:18:30
Score: 1
Natty:
Report link

These are 3 alternative ways to avoid DST handling:

  1. Use an aware datetime (with tzinfo=UTC) instead of naive:

    >>> before_utc = before.replace(tzinfo=timezone.utc)
    >>> after_utc = after.replace(tzinfo=timezone.utc)
    >>> after_utc.timestamp() - before_utc.timestamp()
    3600.0
    >>> after_utc - before_utc
    datetime.timedelta(seconds=3600)
    

The following 2 alternatives continue using naive datetime, as in the OP. In the context of the datetime.timestamp() method naive means local time and is delegated to the platform function mktime() (as shown in the @anentropic answer).

  1. Set the environment variable TZ=Etc/Utc

  2. Debian specific. Change the content of /etc/timezone. In my system it contains Europe/Madrid. An interactive way to change it is through the dpkg-reconfigure tzdata command

If several of those methods are used at the same time, the order of preference is the same in which they are listed.

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

79189790

Date: 2024-11-14 17:14:28
Score: 2.5
Natty:
Report link

maybe you could accomplish this with the infinitely confusing "condition" feature: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-auth-abac-attributes#list-blobs

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

79189778

Date: 2024-11-14 17:10:27
Score: 2
Natty:
Report link

https://www.alitajran.com/conditional-access-mfa-breaks-azure-ad-connect-synchronization/

Synchronization Service Manager Sign in on the Microsoft Entra Connect server. Start the application Synchronization Service Manager. Look at the start and end times.

In the screenshot below, the start time and end time are 4/11/2021. Today is 4/19/2021. It’s been more than a week that Azure AD Connect synced.

Conditional Access MFA breaks Azure AD Connect synchronization before Microsoft 365 admin center Sign in to Microsoft 365 admin center. Check the User management card.

We can confirm that the Azure AD Connect last sync status was more than three days ago, and there is no recent password synchronization happening.

Conditional Access MFA breaks Azure AD Connect synchronization not syncing Azure AD Connect synchronization error Run Windows PowerShell as administrator. Run a force sync Microsoft Entra Connect with PowerShell. It will show the error below.

PS C:> Import-Module ADSync PS C:> Start-ADSyncSyncCycle -PolicyType Delta Start-ADSyncSyncCycle : System.Management.Automation.CmdletInvocationException: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. Start-ADSyncSyncCycle : System.Management.Automation.CmdletInvocationException: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

The screen below shows how it looks after running the AD Sync command.

Conditional Access MFA breaks Azure AD Connect synchronization errors Event Viewer application events Start Event Viewer. Go to Windows Logs > Application. The following Error events show up:

Event 662, Directory Synchronization Event 6900, ADSync Event 655, Directory Synchronization Event ID 906, Directory Synchronization Click on Event ID 906.

Conditional Access MFA breaks Azure AD Connect synchronization Event Viewer errors Event 906, Directory Synchronization GetSecurityToken: unable to retrieve a security token for the provisioning web service (AWS). The ADSync service is not allowed to interact with the desktop to authenticate [email protected]. This error may occur if multifactor or other interactive authentication policies are accidentally enabled for the synchronization account.

Solution for AD Connect synchronization failing The solution for AD Connect synchronization breaking after implementing Azure AD MFA is to exclude the Azure AD Connect Sync Account from Azure AD MFA.

Service accounts, such as the Azure AD Connect Sync Account, are non-interactive accounts that are not tied to any particular user. They are usually used by back-end services allowing programmatic access to applications, but are also used to sign in to systems for administrative purposes. Service accounts like these should be excluded since MFA can’t be completed programmatically.

Find Azure AD synchronization account In the event log error, which we looked at in the previous step, you can copy the account you need to exclude from Azure MFA.

If you want to check the account in Synchronization Service Manager, click on Connectors. Click the type Windows Azure Active Directory (Microsoft). Click Properties.

Conditional Access MFA breaks Azure AD Connect synchronization Connectors Click Connectivity and find the UserName.

Conditional Access MFA breaks Azure AD Connect synchronization Azure AD Connect Sync Account Read more: Find Microsoft Entra Connect accounts »

Exclude MFA for Azure AD Connect Sync Account Sign in to Microsoft Azure. Open the menu and browse to Azure Active Directory > Security > Conditional Access. Edit the Conditional Access policy that’s enforcing MFA for the user accounts.

In this example, it’s the policy MFA all users.

Read more: How to Configure Microsoft Entra Multi-Factor Authentication »

Conditional Access MFA breaks Azure AD Connect synchronization Conditional Access policy Under Assignments, click Users and groups and select Exclude. Check the checkbox Users and groups. Find the synchronization account that you copied in the previous step. Ensure that the policy is On and click on Save.

Conditional Access MFA breaks Azure AD Connect synchronization exclude user Verify Azure AD Connect sync status You can wait for a maximum of 30 minutes, or if you don’t want to wait that long, force sync Microsoft Entra Connect with PowerShell.

PS C:> Import-Module ADSync PS C:> Start-ADSyncSyncCycle -PolicyType Delta The start time and end time changed to 4/19/2021.

Conditional Access MFA breaks Azure AD Connect synchronization after Green checks for Azure AD Connect sync in Microsoft 365 admin center.

Conditional Access MFA breaks Azure AD Connect synchronization syncing Did this help you to fix the broken Azure AD Connect synchronization after configuring Conditional Access MFA?

Keep reading: Add users to group with PowerShell »

Conclusion You learned why Azure AD Connect synchronization service stopped syncing after implementing Azure AD Multi-Factor Authentication. It’s happing because MFA is enabled on the Azure AD Connect Sync Account. Exclude the Azure AD Connect Sync Account from Azure Conditional Access policy, and it will start syncing.

A better way is to create a security group named Non-MFA and add the Azure AD Connect Sync Account as a member. This way, you will keep it organized if you need to add other service accounts in the future.

Did you enjoy this article? You may also like How to Connect to Microsoft Entra with PowerShell. Don’t forget to follow us and share this article.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mark O'Donnell

79189777

Date: 2024-11-14 17:10:27
Score: 4.5
Natty: 5
Report link

Thanks, helped for me as well...

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

79189776

Date: 2024-11-14 17:10:27
Score: 3
Natty:
Report link

Not an answer, but an additional information. I am having the same issue with varnish. I tried a different docker image to listen on port 80 and it works:

docker run --rm -it -p 80:80 strm/helloworld-http

But varnish gives the same error as author posted. The very same varnish config/run command on a different server works just fine.

So the bottom line, it's not as simple as "requires root to acquire port 80". Cause other images use port 80 just fine. At the same time the very same varnish config on a different server work well. So it must be smth on the cross of a particular docker config and the internals of a varnish image.

Reasons:
  • Blacklisted phrase (1): Not an answer
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the same issue
  • Low reputation (0.5):
Posted by: Sergey Belonozhko

79189769

Date: 2024-11-14 17:08:26
Score: 2
Natty:
Report link

The easiest way would be to use paper spigot. It got way more optimizations than normal spigot and you can access the pathfinder of every mob easily.

 Villager entity = // your entity
 Location location = // your location
 entity.getPathfinder().moveTo(location);

https://jd.papermc.io/paper/1.21.1/com/destroystokyo/paper/entity/Pathfinder.html

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

79189758

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

first, it's getElementsById

Then look https://dev.to/colelevy/queryselector-vs-getelementbyid-166n. This site explains better

use CanIuse too

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

79189750

Date: 2024-11-14 17:05:25
Score: 3
Natty:
Report link

Well it looks like username: root password: root works

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

79189739

Date: 2024-11-14 17:01:23
Score: 1.5
Natty:
Report link

Blockquote 0

Enable it from the Role manager option under the WPBakery (visual composer) settings. Give administrator--> Post Type---> Custom and select the required option to display.

Blockquote

I didn't work, it's not adding the editor option.

Blockquote After scratching my head for a little bit, the solution is to use the wordpress do_shortcode.

The answer is

<?php
    $desc = $product->get_description();
    echo do_shortcode($desc);
?>

With the above I get the data from visual composer to formated HTML, hope this can help other programmers. good night!

Blockquote

Can you explain a little bit more how you did?, I'm not a developer but I'll appreciate some steps of how to do it.

Reasons:
  • Whitelisted phrase (-1): hope this can help
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (2.5): Can you explain
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Manuel Gordoa

79189733

Date: 2024-11-14 16:59:20
Score: 6.5 🚩
Natty: 4.5
Report link

I write a solution in C++.

here is the link: https://khobaib529.medium.com/solving-electrical-circuits-a-graph-based-algorithm-for-resistance-calculations-921575c59946

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Blacklisted phrase (1): here is the link
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Khobaib

79189729

Date: 2024-11-14 16:56:19
Score: 0.5
Natty:
Report link

There is currently a trial for this in Chrome.

To test the File System Observer API locally, set the #file-system-observer flag in about:flags. https://developer.chrome.com/blog/file-system-observer

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

79189725

Date: 2024-11-14 16:56:19
Score: 1.5
Natty:
Report link

<p style="text-align: center;">
  <iframe src="//youtube.com/embed/4liKzXo2lRM?rel=0&autoplay=1";; modestbranding=1&amp;controls=0&amp;showinfo=1" width="700" height="394" frameborder="0" allow="autoplay; allowfullscreen="allowfullscreen">
    <span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
  </iframe>
</p>

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Saifullah Almomani

79189724

Date: 2024-11-14 16:56:19
Score: 1
Natty:
Report link

Thank you for all the help! I have a solution below. I used a dictionary but stored the file as key and path as value. This allowed me to get around having duplicate paths. I also used the replace function to convert the path into the proper format.

I will look into the proposed solution of using ttk.Treeview to see if this is a better solution but as of now my program is working as hoped!

Thanks again!

import tkinter as tk
from tkinter import BOTH, LEFT, Button, Frame, Menu, Toplevel, filedialog
import os

ws = tk.Tk()
ws.title('Select Files to Import')
ws.geometry('500x200')
ws.config(bg='#456')

f = ('sans-serif', 13)
btn_font = ('sans-serif', 10)
bgcolor = '#BF5517'

dict = {}

def sort():
  global second
  second = Toplevel()
  second.geometry('800x400')
  menubar=Menu(second)
  menubar.add_command(label="Save List", command=save)
  menubar.add_command(label="Add Files", command=add)
  second.config(menu=menubar)
  global listbox
  listbox = Drag_and_Drop_Listbox(second)
  listbox.pack(fill=tk.BOTH, expand=True)
  directory = filedialog.askopenfilenames()
  n = 0
  for file in directory:
    key = os.path.basename(file)  
    value = os.path.dirname(file)  
    update_dict(key, value)
    listbox.insert(n, os.path.basename(file))
    n=n+1

def update_dict(key, value):
  if key in dict:
    dict[key].append(value)
  else:
    dict[key] = [value]

def add():
  directory = filedialog.askopenfilenames()
  n = 0
  for file in directory:
    key = os.path.basename(file)  
    value = os.path.dirname(file)  
    update_dict(key, value)
    listbox.insert(n, os.path.basename(file))
    n=n+1

def save():
  image=listbox.get(0, listbox.size())
  for x in image:
    string = str(dict[x]).replace('[','').replace(']','').replace('/','\\').replace('\'','')
    print(string + '\\' + x)

class Drag_and_Drop_Listbox(tk.Listbox):
  def __init__(self, master, **kw):
    kw['selectmode'] = tk.SINGLE
    kw['activestyle'] = 'none'
    tk.Listbox.__init__(self, master, kw)
    self.bind('<Button-1>', self.getState, add='+')
    self.bind('<Button-1>', self.setCurrent, add='+')
    self.bind('<B1-Motion>', self.shiftSelection)
  def setCurrent(self, event):
    self.curIndex = self.nearest(event.y)
  def getState(self, event):
    i = self.nearest(event.y)
    self.curState = self.selection_includes(i)
  def shiftSelection(self, event):
    i = self.nearest(event.y)
    if self.curState == 1:
      self.selection_set(self.curIndex)
    else:
      self.selection_clear(self.curIndex)
    if i < self.curIndex:
      x = self.get(i)
      selected = self.selection_includes(i)
      self.delete(i)
      self.insert(i+1, x)
      if selected:
        self.selection_set(i+1)
      self.curIndex = i
    elif i > self.curIndex:
      x = self.get(i)
      selected = self.selection_includes(i)
      self.delete(i)
      self.insert(i-1, x)
      if selected:
        self.selection_set(i-1)
      self.curIndex = i

frame = Frame(ws, padx=20, pady=20, bg=bgcolor)
frame.pack(expand=True, fill=BOTH)

btn_frame = Frame(frame, bg=bgcolor)
btn_frame.grid(columnspan=2, pady=(50, 0))

sort_btn = Button(
  btn_frame,
  text='Individual Sort',
  command=sort,
  font=btn_font,
  padx=10, 
  pady=5
)
sort_btn.pack(side=LEFT, expand=True, padx=(5,5))

# mainloop
ws.mainloop()
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ohtis

79189714

Date: 2024-11-14 16:52:18
Score: 1.5
Natty:
Report link

The solution is to add this to the editor options :

      fixedOverflowWidgets: true,

https://microsoft.github.io/monaco-editor/typedoc/enums/editor.EditorOption.html#fixedOverflowWidgets

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

79189710

Date: 2024-11-14 16:52:18
Score: 1
Natty:
Report link

S D:\FasoSmart\Enroulement\enrollement\next-js> npm install @mui/material --force npm warn using --force Recommended protections disabled. npm warn ERESOLVE overriding peer dependency npm warn While resolving: @mui/[email protected] npm warn Found: [email protected] npm warn node_modules/next npm warn next@"^15.0.3" from the root project npm warn npm warn Could not resolve dependency: npm warn peer next@"^13.0.0 || ^14.0.0" from @mui/[email protected] npm warn node_modules/@mui/material-nextjs npm warn @mui/material-nextjs@"^5.16.6" from the root project npm warn npm warn Conflicting peer dependency: [email protected] npm warn node_modules/next npm warn peer next@"^13.0.0 || ^14.0.0" from @mui/[email protected] npm warn node_modules/@mui/material-nextjs npm warn @mui/material-nextjs@"^5.16.6" from the root project

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

79189707

Date: 2024-11-14 16:51:18
Score: 2.5
Natty:
Report link

Check if version and release are properly set in conf.py: In Sphinx, the version and release are typically defined in the conf.py configuration file. The version represents the short version number, and the release can be the full version number (e.g., 1.0.0).

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

79189702

Date: 2024-11-14 16:47:17
Score: 4
Natty:
Report link

I created a conversation using conversation memory then asked the llm to summarize the conversation. If you use a vector database to initialize the conversation then assess the memory message chat history

conversation = [
    {"user": "Hey Louise, can you help me with something?"},
    {"ai": "Of course! What do you need help with today?"},
    {"user": "I’m trying to organize a surprise birthday party for my friend. Any ideas?"},
    {"ai": "That sounds fun! What does your friend enjoy? We can brainstorm a theme based on their interests."},
    {"user": "They love the outdoors and hiking. I was thinking of doing something in a park."},
    {"ai": "Great idea! How about a picnic party? You could set up a cozy area with blankets, snacks, and decorations that reflect nature. Maybe even some outdoor games!"},
    {"user": "I love that! What kind of snacks should I include?"},
    {"ai": "Consider packing finger foods that are easy to eat outdoors. Sandwiches, fruit skewers, veggie platters, and some homemade cookies would be perfect. Don’t forget refreshing drinks!"},
    {"user": "Good call! How about decorations? I want it to feel special."},
    {"ai": "You could use biodegradable decorations like paper lanterns, wildflower bouquets, and string lights. A nature-themed cake would also be a nice centerpiece!"},
    {"user": "These are awesome suggestions! How many people should I invite?"},
    {"ai": "It depends on the size of the park area you’ll be using. A smaller group of close friends might make it feel more intimate, while a larger group could bring more energy. What do you think?"},
    {"user": "Maybe around 10-15 people. That feels manageable."},
    {"ai": "Perfect! Just remember to send out the invites soon so everyone can mark their calendars. Do you need help with the invitation wording?"},
    {"user": "Yes, please! I want it to be fun and casual."},
    {"ai": "How about this: “Join us for a surprise outdoor adventure to celebrate [Friend’s Name]’s birthday! Bring your favorite snacks and your love for nature. Let’s make some unforgettable memories!”"},
    {"user": "I love it! Thanks, Louise. You’ve been a huge help."},
    {"ai": "Anytime! Have a blast planning the party, and let me know if you need anything else."}
]

def example_tool(input_text):
    system_prompt = "You are a Louise AI agent. Louise, you will be fair and reasonable in your responses to subjective statements. Logic puzzle the facts or theorize future events or optimize facts providing resulting inferences. Think"
    return f"{system_prompt} Processed input: {input_text}"

# Initialize the LLM
llm = LangChainChatOpenAI(model="gpt-4o-mini", temperature=0, openai_api_key=key)

# Define tools
tools = [
    Tool(
        name="ExampleTool",
        func=example_tool,
        description="A simple tool that processes input text."
    )
]

# Initialize memory
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)

# Loop through the conversation and add messages to memory
for message in conversation:
    if "user" in message:
        memory.chat_memory.add_user_message(message["user"])
    elif "ai" in message:
        memory.chat_memory.add_ai_message(message["ai"])

# Initialize the agent with memory
agent = initialize_agent(
    tools,
    llm,
    agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
    verbose=True,
    handle_parsing_errors=True,
    memory=memory
)

# Query to recall previous discussion
query = "Tell me in detail about our previous discussion about the party. Louise enumerate the foods that will be served at the party."
response = agent.run(query)

# Print the response
print(response)


print(memory.chat_memory.messages)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): Any ideas
  • RegEx Blacklisted phrase (3): can you help me
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: ListenSoftware Louise Ai Agent

79189699

Date: 2024-11-14 16:47:17
Score: 1
Natty:
Report link

Sure! Here's a more detailed step-by-step manual for setting up Django in a virtual environment for a new project:


Django Installation in a Virtual Environment: Step-by-Step Guide

When working with multiple Django projects, it's best practice to create a new virtual environment (virtualenv) for each project to keep dependencies isolated and avoid conflicts. This guide walks you through the steps to install Django in a virtual environment.

Steps to Set Up Django in a Virtual Environment

1. Install virtualenv (if you haven’t already)

If you don’t have virtualenv installed, you can install it globally using pip:

pip install virtualenv

2. Create a New Virtual Environment

Navigate to the directory where you want to create your new project, and then create a new virtual environment. Replace myprojectenv with your desired virtual environment name.

virtualenv myprojectenv

This will create a new folder called myprojectenv containing the isolated environment.

3. Activate the Virtual Environment

Once the environment is created, activate it. The method to activate depends on your operating system:

When activated, your command prompt will change to show the name of the virtual environment (e.g., (myprojectenv)).

4. Install Django

With the virtual environment active, install Django using pip. This will install the latest stable version of Django:

pip install django

5. Create a Django Project

Once Django is installed, you can create your new Django project using the django-admin tool. Replace myproject with the name of your project.

django-admin startproject myproject

This will create a new myproject directory with the necessary files to get started with Django.

6. Verify Django Installation

To make sure Django was installed successfully, you can check the version of Django by running:

django-admin --version

This should output the installed version of Django.

7. Create a requirements.txt File (Optional but Recommended)

To keep track of your project’s dependencies, you can generate a requirements.txt file. This file can later be used to recreate the environment.

Run the following command to generate a requirements.txt file for your project:

pip freeze > requirements.txt

This will list all the installed packages in the environment, including Django, in a file named requirements.txt.

8. Deactivate the Virtual Environment (When Done)

Once you’re done working in the virtual environment, you can deactivate it by running:

deactivate

This will return you to your system's default Python environment.


Why Use Virtual Environments?


How to Reinstall Django for Future Projects

If you start a new Django project and want to set up a new virtual environment:

  1. Create a New Virtual Environment (repeat Step 2).
  2. Activate the Environment (Step 3).
  3. Install Django (Step 4).
  4. Generate requirements.txt (Step 7) if needed.

Each time you create a new virtual environment, you'll need to reinstall Django and other dependencies, but this ensures your projects remain isolated and have their own specific package versions.


Common Issues and Tips


This workflow ensures each Django project has a clean, isolated environment with the correct dependencies, providing better stability and compatibility across different projects.

Reasons:
  • Blacklisted phrase (1): This guide
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kritika Singh

79189684

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

Create your table with NOT NULL primary key constraint

create table if not exists inx_test_table
(
    id int unsigned NOT NULL auto_increment primary key,
    ...
)

And add $fillable in your model

protected $fillable = [
    'name'
];
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Payal Desai

79189681

Date: 2024-11-14 16:42:15
Score: 1.5
Natty:
Report link

I had the same question and it turns out that the figure needs to be in it's own paragraph (preceded and followed by a newline and two spaces) in order to show the caption, as described here.

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

79189680

Date: 2024-11-14 16:42:15
Score: 1.5
Natty:
Report link

Try to add this

@EnableJpaRepositories(basePackages = "com.soib.kwbo.repository")

and check your datasource is properly configured.. :D

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

79189679

Date: 2024-11-14 16:41:15
Score: 2.5
Natty:
Report link

Thanks to @Gustav for altering me to your post.

As my article made clear, when the Total Row feature was added, The Access team didn't add a VBA approach to enable / disable the total rows in form VBA. 17 years on from 2007, they aren't going to do so now! However, the code I provided in my article using CommandBars does the job perfectly

Application.CommandBars.ExecuteMso "RecordsTotals"

Indeed, I supplied an example app which shows this code in use in a datasheet form. NOTE: So I could include buttons on the datasheet, its actually a split form with the single record view hidden

So I'm not sure what functionality you want that I haven't provided. Feel free to email me using the link in my article if you need further help. We can always add further info to this thread later for the benefit of others.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Gustav
  • Low reputation (1):
Posted by: Isladogs

79189672

Date: 2024-11-14 16:40:14
Score: 3.5
Natty:
Report link

The RAS daemon (rasdaemon) provides AER reporting capabilities. Can be found in both Redhat and Ubuntu Linux.

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

79189661

Date: 2024-11-14 16:36:13
Score: 0.5
Natty:
Report link

To add a little more understanding to this:

What you're trying to do with ext['bouncycastle.version'] = '1.72' is override a variable that is created and used by the io.spring.dependency-management plugin you likely have imported at the top of your build.gradle.

Those variables are not exhaustive, nor are they magic. They cover a lot of very common packages, but there are plenty that they don't cover.

Here is a list from the spring docs of the variables that the plugin introduces (or rather, most of them. You can check the source code under the tag for your spring version for a comprehensive list). You'll notice that bouncycastle.version isn't a variable that the plugin actually creates or references.

For transitives that aren't covered by the plugin, I find that gradle's recommended default solution of constraints is best. However, it doesn't give us a remedy for the problem we have here, which is that the desired version of the package only exists in a new package that the old package has moved to.

I didn't find a stellar answer to this question anywhere, so I ended up implementing this at the top of my build.gradle:

configurations.all {
    resolutionStrategy {
        eachDependency { DependencyResolveDetails details ->
            if (details.requested.group == 'org.bouncycastle' && details.requested.name == 'bcpkix-jdk15on') {
                details.useTarget('org.bouncycastle:bcpkix-jdk18on:1.78')
            }
            if (details.requested.group == 'org.bouncycastle' && details.requested.name == 'bcprov-jdk15on') {
                details.useTarget('org.bouncycastle:bcprov-jdk18on:1.78')
            }
        }
    }
}

I'm not in love with this solution, but of everything I've seen it's the most direct answer to the question "how do I replace jdk15on with jdk18on?": you identify usages of jdk15on and replace them with jdk18on.

Reasons:
  • Blacklisted phrase (1): how do I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Reed M

79189655

Date: 2024-11-14 16:33:12
Score: 0.5
Natty:
Report link

The org.jboss.arquillian:arquillian-bom version you are using is from 2017 - https://mvnrepository.com/artifact/org.jboss.arquillian/arquillian-bom - while the org.jboss.arquillian.junit:arquillian-junit-core is recent. So the classpath misalignment is very likely the culprit.

Also, obtain complete stacktraces and try running maven with -X,--debug for more debug information.

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

79189653

Date: 2024-11-14 16:33:12
Score: 1.5
Natty:
Report link

Got the similar issue here. "numpy._core._exceptions._ArrayMemoryError: Unable to allocate 3.58 GiB for an array with shape 500000000"

My PC has 16G mem, but it is not able to allocate 3.58G for an array. It seems to be the contiguous memory management issue "NumPy requires a contiguous block of memory to allocate the array. Even if your system has enough total memory, it might not have a single contiguous block large enough to satisfy the request".

Maybe try using mem-mapped array in numpy: data = np.memmap('data.dat', dtype='int64', mode='w+', shape=(500000000,)) Or breaking the dataset into smaller chunks and process them separately.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): 00000000
  • Filler text (0): 00000000
  • Low reputation (1):
Posted by: Julian Zhu

79189648

Date: 2024-11-14 16:32:12
Score: 2.5
Natty:
Report link

As you've shown, you cannot do this.

You should follow your ideal path and follow @linda-lawton-daimto advice.

Workspace APIs including Slides are not governed by Cloud IAM and so setting the Editor role on the Service Account is ineffectual. Workspace APIs work with OAuth scopes which you're correctly setting.

The problem is that Workspace APIs protect user content and the only way an arbitrary Service Account can access Workspace API user-content is:

Domain-wide delegation to approve the Service Account for this purpose Designating a specific user for the DWD'd Service Account to impersonate. There's a hacky (!?) alternative approach which involves sharing a Workspace document (e.g. Slides presentation) with an arbitrary Service Account's email address (~ {account}@{project}.iam.gserviceaccount.com).

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @linda-lawton-daimto
  • Low reputation (1):
Posted by: JEEVAN KUMAR

79189639

Date: 2024-11-14 16:30:11
Score: 2.5
Natty:
Report link

I am using Superset 4.0.2, it is possible to export dashboards AND charts in PDF and image (jpeg).

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Reda Arté Kejji

79189638

Date: 2024-11-14 16:29:11
Score: 1
Natty:
Report link
import androidx.compose.ui.text.intl.Locale
val local =  Locale.current

java.util.Locale(locale.language)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ben.Slama.Jihed

79189626

Date: 2024-11-14 16:26:10
Score: 4.5
Natty: 5.5
Report link

download links 32bit and 64 bit -

https://cdn.mysql.com/archives/mysql-8.0/mysql-server_8.0.33-1ubuntu18.04_amd64.deb-bundle.tar

https://cdn.mysql.com/archives/mysql-8.0/mysql-server_8.0.33-1ubuntu18.04_i386.deb-bundle.tar

https://downloads.mysql.com/archives/community/?version=8.0.33

thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ratheesh

79189612

Date: 2024-11-14 16:23:09
Score: 1
Natty:
Report link

EarlyStoppingRounds was added to XGBoost in 1.4.0.

If the version is below 1.4.0, upgrade XGBoost with:

pip install --upgrade xgboost

xgboost/releases/tag/v1.4.0

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

79189611

Date: 2024-11-14 16:23:09
Score: 1.5
Natty:
Report link

I've found a solution using the <wbr> element and a little bit of JavaScript.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr

Here is the code :

let element = document.getElementById("paragraph"); // Get the element
let width = element.offsetWidth; // Get the current width of the element
element.style.width = width - 1 + "px"; // Set the new width to be the original width minus 1px
#paragraph {
  white-space: nowrap; 
  width: fit-content
}
<p id="paragraph">
  one two<wbr /> three four
</p>

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

79189606

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

What you describe was a bug in FMX in 10.3, and presumably in 10.4 as well. It was fixed in a later version.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What you
  • High reputation (-2):
Posted by: Remy Lebeau

79189597

Date: 2024-11-14 16:18:07
Score: 2.5
Natty:
Report link

Thanks for the A2A. @A_B : I have gone through both of the microservices code and seems in RouteValidator in the line : public static final List openApiEndpoints = List.of("/api/auth/v1/register","/api/auth/v1/token","/eureka","/api-docs");

just add "/api/auth/v1/"

public static final List openApiEndpoints = List.of("/api/auth/v1/","/api/auth/v1/register","/api/auth/v1/token","/eureka","/api-docs");

As 403 forbidden error indicates : A 403 Forbidden Error occurs when you do not have permission to access a web page or something else on a web server

I hope you are aware of this error code , since the request can't even hit the controller itself thus in sysout or logger info you are not getting display for /getRolesByUsername.

For your reference please check for the error code: https://www.howtogeek.com/357785/what-is-a-403-forbidden-error-and-how-can-i-fix-it/

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @A_B
  • Low reputation (1):
Posted by: Sajal Saha

79189595

Date: 2024-11-14 16:18:07
Score: 0.5
Natty:
Report link

Love using answers from 2009! (re: Susannah [Google Employee]) You can also disable the mouse-scroll:

//cancels scroll
google.maps.event.addDomListener(div, 'mousewheel', cancelEvent);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RBILLC

79189593

Date: 2024-11-14 16:18:07
Score: 2
Natty:
Report link

Not working:

System.Threading.ThreadStateException: 'The ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded container.'

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Johnatan López

79189591

Date: 2024-11-14 16:18:07
Score: 5
Natty:
Report link

Ionic provides ion-footer component. https://ionicframework.com/docs/api/footer

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

79189589

Date: 2024-11-14 16:17:07
Score: 4.5
Natty:
Report link

with the help of one of my friends here who guided me, I modified the js code like this:

window.onscroll = function () {
    Scroll_Indicator_blog_function()
};

function Scroll_Indicator_blog_function() {
    var winScroll = document.body.scrollTop || document.body.scrollTop;
    var height = document.body.scrollHeight - document.body.clientHeight;
    var scrolled = (winScroll / height) * 100;
    document.getElementById("Scroll_Indicator_blog").style.width = scrolled + "%";
}
.progress-container {
    position: fixed;
    top: 0;

    display: block;
    width: 100%;
    height: 8px;
    background: var(--vesal-background-color7);
    z-index: 9999;
}
.progress-bar {
    height: 100%;
    background: var(--vesal-background-color2);
    box-shadow: 0 5px 10px 0 var(--vesal-boxshadow-color-1);
    width: 0%;
    transition: ease-in-out 0.5s;
}
<div class="progress-container">
    <div class="progress-bar" id="Scroll_Indicator_blog"></div>
</div>

But now I came to a new problem! In the height calculated by this script, the height continues from the highest point of the Mojo account to the bottom of the page, that is, from the top of the header to the bottom of the footer, which is naturally not interesting to show how much of the content has been read by the reader! How can I make it so that the height is only limited to the section in question, that is, for example, it counts the height of the page from the beginning of a section to its end, and does not count the comments section, header and footer? Thanks again for the advice

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (3): Thanks again for the advice
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: محمد مهدی زارعی

79189575

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

Use cookies. When user logs in, send cookie with proper domain with name lets say "auth-cookie". It will contain your jwt token. These cookies will be automatically sent back to you everytime user sends a request. Set httpOnly field to true so that hijacker cannot read the token using javascript. On logout, set the "auth-cookie" cookie to blank.

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

79189539

Date: 2024-11-14 16:04:02
Score: 1
Natty:
Report link

Stemming isn’t really intended to handle transformations like "America" to "American" (or vice versa), because they don’t share a common morphological root. Stemming generally aims to reduce inflected forms of a word to a base form (e.g., "running" to "run"), focusing on suffix-stripping rather than transforming between nouns and adjectives.

I created a script and achieved the same results with Porter Stemming as you find. However, using Lancaster stemming from NLTK I achieved Runner --> Run

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

79189533

Date: 2024-11-14 16:02:02
Score: 0.5
Natty:
Report link

Add watermark to ChartJS 4.4.6:

const myCustomPlugins = {
    // beforeDraw or afterDraw
    beforeDraw:function(chartInstance){
        // Get ctx of chart
        const context = chartInstance.ctx;
        // Set backgournd color for chart
        context.fillStyle = "white";
        // Set sizes and positions
        context.fillRect(0, 0, context.canvas.width, context.canvas.height);
        // Create new image
        let img = new Image();
        // Set srouce of image
        img.src = "assets/images/watermark.svg";
        // Draw the image on the canvas context
        context.drawImage(img,context.canvas.width/4-img.width/2,context.canvas.height/4-img.height/2);
    }
}

new Chart(document.getElementById('myChart'),{

     // Set your chart type, chart data, chart options here 

     plugins: [myCustomPlugins]
});

https://www.chartjs.org/docs/latest/developers/plugins.html

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

79189511

Date: 2024-11-14 15:58:00
Score: 1
Natty:
Report link
public void AddNewColumn(string columnName)
    {
        string query = $"ALTER TABLE YourTable ADD COLUMN {columnName} TEXT";
        using (SQLiteConnection connection = new SQLiteConnection(connectionString))
        {
            SQLiteCommand command = new SQLiteCommand(query, connection);
            connection.Open();
            command.ExecuteNonQuery();
        }
    } 
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Weol

79189510

Date: 2024-11-14 15:58:00
Score: 2
Natty:
Report link

Replace desired_capabilities with options as

from selenium.webdriver.chrome.options import Options as ChromeOptions driver = webdriver.Remote(command_executor=executor, options=options)

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

79189506

Date: 2024-11-14 15:56:00
Score: 1
Natty:
Report link

Simply create a feed and call it, say, bookmark.

If a user bookmark a post on, say another feed called "timeline", then you would add reaction on that post of kind called, say, "bookmark", and at the same time you would use "targetFeeds" to put it there.

Example: const bookmark = await client.reactions.add( 'bookmark', {id: '6d47e970-d317-11eb-8080-800109d57843'}, {}, { targetFeeds: ["bookmark:zoro"] } );

Then that feed will have these bookmarks.

You can check "own reaction" to see if activity on main feed (e.g timeline), which you did make the bookmark from, is already bookmarked or not and show banner to user or icon. And of course you have now the bookmark feed which can list all the bookmarks.

All likes/comments would be visible on all feeds, as this is fan out.

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

79189505

Date: 2024-11-14 15:56:00
Score: 1.5
Natty:
Report link

I tried installing using the pip install picamera and it installed but is this different than picamerazero? Or are they essentially the same?

I was also getting an error trying to install picamerazero. It said the following:

"× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
    This module only works on linux
     [end of output]"

I'm trying to download on a Windows computer as well.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28301804

79189479

Date: 2024-11-14 15:47:58
Score: 1.5
Natty:
Report link

I would do this as an inset axes rather than subplots, then the axes will line up, and the decorations on the top axes will not move the axes:

https://matplotlib.org/stable/gallery/lines_bars_and_markers/scatter_hist.html#defining-the-axes-positions-using-inset-axes

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

79189473

Date: 2024-11-14 15:44:57
Score: 1
Natty:
Report link

I know this is an old question but for anyone looking, one solution may be to clear your cached images and data in your browser.

This has been particularly prevalent for me on Google Chrome, especially if any CSS changes were made.

On Chrome (Windows):

  1. Hit Ctrl+Shift+Delete to bring up the "Delete Browsing Data..." menu.

  2. Select only the "Cached images and files" checkbox.

  3. Press "Delete data"

You may need to refresh the page, but the bulk of the time I've encountered this issue working with Blazor this has remedied the issue.

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

79189472

Date: 2024-11-14 15:44:57
Score: 0.5
Natty:
Report link

Found a couple of things. The reason I was getting the ERR_TOO_MANY_REDIRECTS, was due to the system looking for a PageNotFound view and there wasn't one. So added one and that fixed that problem.

Loading the UserList page was giving the Status Code: 302 Found. This was a middleware problem -

Category: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware EventId: 1 SpanId: 2ff3e9926a1b6c03 TraceId: 7314731274212a962b5c1323b0299200 ParentId: 0000000000000000 RequestId: 400070d4-0005-f900-b63f-84710c7967bb RequestPath: /UserAdmin/UserList An unhandled exception has occurred while executing the request.

The problem was System.InvalidOperationException: There is already an open DataReader associated with this Connection which must be closed first.

This was solve by adding

 MultipleActiveResultSets=True

to the connection string.

Thank you for your help.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-0.5): Thank you for your help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Filler text (0.5): 0000000000000000
  • Low reputation (0.5):
Posted by: KevBarri

79189468

Date: 2024-11-14 15:43:55
Score: 7 🚩
Natty:
Report link

This also happened to me today as well. How to fix this?

Reasons:
  • RegEx Blacklisted phrase (1.5): How to fix this?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fang Ying Sham

79189461

Date: 2024-11-14 15:41:54
Score: 3
Natty:
Report link

For what it's worth - my issue was that my .env file was missing the '.' (aka I named it just 'env').

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

79189460

Date: 2024-11-14 15:40:54
Score: 3
Natty:
Report link

settings "terminal.integrated.shellIntegration.enabled" to false fix the issue. This settings seem to impact other issue related to other terminal too

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

79189457

Date: 2024-11-14 15:40:54
Score: 2.5
Natty:
Report link

I know this topic has an accepted answer, but the answer redirects towards the use of Tkinter.

For anyone looking for a Dearpygui specific solution, I gave an answer here : https://stackoverflow.com/questions/79189436/how-to-display-a-gif-in-dearpygui/79189437#79189437 on how to animate gif and videos in dpg.

NB: Sound is however not supported by my solution.

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

79189424

Date: 2024-11-14 15:28:51
Score: 0.5
Natty:
Report link

I was getting the same error and was able to fix it downgrading SQLite to 1.0.113. It seems that this error was introduced in Sqlite version 1.0.115. See here:

https://sqlite.org/forum/info/f80d7580fc07ce5c

I was using .net 8 and sqlite 1.0.119. On the development computer it was working just fine but when deployed on an container (windows nano server ltsc 2019) I got that error.

So I downgraded the SQLite package version on my Visual Studio project to 1.0.113.0. But note that it is not available directly in the nuget package repository. You have to download it from the Sqlite website:

https://system.data.sqlite.org/blobs/1.0.113.0/Stub.System.Data.SQLite.Core.NetStandard.1.0.113.0.nupkg

And then, under Visual Studio add a folder where this file is located (anywhere, in my case the project folder) as a local package repository (right-click on the project -> Manage NuGet Packages -> click on the wheel at the top right -> Package sources -> click on "+" -> set the path below. done

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

79189421

Date: 2024-11-14 15:28:49
Score: 6 🚩
Natty: 4.5
Report link

were you able to modify fields via script? I had the same question and your code helped me. I'm trying to modify via mutation, but it doesn't seem to work.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Guilherme Lima

79189418

Date: 2024-11-14 15:27:46
Score: 8.5 🚩
Natty: 5
Report link

did you get a working solution for this?

Reasons:
  • RegEx Blacklisted phrase (3): did you get a
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (0.5):
Posted by: frost2709

79189417

Date: 2024-11-14 15:27:45
Score: 1
Natty:
Report link

Model classes should generally be final.

Abstract classes are incomplete classes with few method implementations pending.

If you want an Entity which is abstract, you are perhaps trying to implement some feature on top of your entity.

You can do that, but it wouldn't be advisable. Those logics you can be put inside a service class which will perform the CRUD operation. This fulfils "Single Responsibility" principle

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

79189411

Date: 2024-11-14 15:26:45
Score: 2
Natty:
Report link
  height: 100vh;
  @supports (height: 100dvh) {
    height: 100dvh;
  }
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: QLJ球

79189406

Date: 2024-11-14 15:25:45
Score: 3
Natty:
Report link

The issue was that the append action was called on one point after the finish action, which led to the creation of a new file with the _unfinished suffix, even though the file had already been marked as 'finished'.

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

79189396

Date: 2024-11-14 15:23:44
Score: 2.5
Natty:
Report link

I couldn’t find the right answer to the problem with the prometheus.io/scrape annotation not working in Kubernetes, so I decided to dig into the original Prometheus Helm chart. For those facing the same issue, here’s an explanation.

Understanding Prometheus Configurations in Kubernetes

First, it’s important to note that Prometheus can be configured in multiple ways within Kubernetes. One common method is using the Custom Resource Definition (CRD) called ServiceMonitor. In this setup, the Prometheus Operator continuously monitors resources specified by ServiceMonitor objects.

•   serviceMonitorSelector Parameter: This parameter in the Prometheus Operator configuration selects which ServiceMonitor resources to consider.

serviceMonitorSelector: matchLabels: team: frontend

•   No Default Annotations: By default, services or pods aren’t monitored based on annotations alone. You need to:
•   Create a ServiceMonitor: Define a ServiceMonitor resource that matches your services or pods.
•   Set Appropriate Labels: Ensure your services or pods have labels that match the matchLabels in your ServiceMonitor.

However, the default kube-prometheus-stack Helm chart doesn’t create a ServiceMonitor for your deployments out of the box.

The Origin of prometheus.io/scrape Annotation

This brings up the question:

Where does the prometheus.io/scrape annotation come from, and how can I use it?

The answer lies in the original Prometheus Helm chart, which you can find here. Unlike the kube-prometheus-stack, this Helm chart doesn’t rely on Prometheus CRDs. Instead, it:

•   Deploys Prometheus Directly: Runs Prometheus in a pod with manual configurations.
•   Uses kubernetes_sd_configs: Specifies how Prometheus should discover services.

kubernetes_sd_configs:

This tells Prometheus to use the endpoints role, allowing it to scrape targets based on annotations like prometheus.io/scrape.

•   Relabeling Configurations: Includes additional settings to manipulate labels and target metadata.

How to Resolve the Issue

If you’re using kube-prometheus-stack, you have two main options:

1.  Set Up a ServiceMonitor
•   Create a ServiceMonitor Resource: Define it to match your services or pods.
•   Adjust serviceMonitorSelector: Ensure the Prometheus Operator picks up your ServiceMonitor.

apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: my-service-monitor labels: team: frontend spec: selector: matchLabels: app: my-app endpoints: - port: web

2.  Modify Prometheus Configuration
•   Include endpoints Role: Adjust your Prometheus config to use the endpoints role like in the original Helm chart.
•   Leverage Annotations: This allows you to use annotations like prometheus.io/scrape without needing ServiceMonitor.

prometheus: prometheusSpec: additionalScrapeConfigs: - job_name: 'kubernetes-service-endpoints' kubernetes_sd_configs: - role: endpoints relabel_configs: - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape] action: keep regex: true

Summary

If the prometheus.io/scrape annotation isn’t working with kube-prometheus-stack:

•   Use a ServiceMonitor: It’s the preferred method when using the Prometheus Operator.
•   Copy Configuration from Original Helm Chart: Adjust your Prometheus configuration to manually include endpoint discovery based on annotations.

By following these steps, you should be able to enable Prometheus to scrape your services or pods as expected.

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: Oleg Plakida

79189393

Date: 2024-11-14 15:22:42
Score: 15 🚩
Natty: 4.5
Report link

I have the same error. The strange thing is that it gives me error now that I recreated the project with git clone. On another pc with the same project and libraries it gives no problem.

Were you able to solve it?

Reasons:
  • Blacklisted phrase (1): you able to solve
  • Blacklisted phrase (2): gives me error
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (1): I have the same error
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same error
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: elcid

79189388

Date: 2024-11-14 15:21:41
Score: 5.5
Natty:
Report link

https://github.com/j-oss2023/mysql-dynamic-inventory

I check your solution, but it post following problem: [WARNING]: * Failed to parse ca-dynamic-inventory-sqlserver.yaml with auto plugin: No module named 'pyodbc' [WARNING]: * Failed to parse ca-dynamic-inventory-sqlserver.yaml with yaml plugin: Plugin configuration YAML file, not YAML inventory [WARNING]: * Failed to parse ca-dynamic-inventory-sqlserver.yaml with ini plugin: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed, this character is reserved to provide a port. [WARNING]: Unable to parse ca-dynamic-inventory-sqlserver.yaml as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available

Do you have any suggest?

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Robert

79189378

Date: 2024-11-14 15:17:40
Score: 2
Natty:
Report link

activity

Premium Content Area

You are currently in a trial version, please take a monthly subscription to enjoy full and unlimited access to Instagram hacking panel (view/edit password, send/read messages...)

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

79189374

Date: 2024-11-14 15:16:39
Score: 0.5
Natty:
Report link

        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
            <version>2.6.0</version>
        </dependency>

Use this one. Remove any other configuration you might have added. Access it on ${baseUrl}/swagger-ui/index.html

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

79189368

Date: 2024-11-14 15:15:39
Score: 1.5
Natty:
Report link

If I search for that element in chrome console as:

$('#screening_questions[0].multiple_choice[0]-dealbreakerField')

The XPath selection method in the Chrome browser console is: $x('xpathValue')

A more detailed explanation of the XPath selection console feature can be found here: https://stackoverflow.com/a/22571294/512463

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: chicagoCrazy

79189353

Date: 2024-11-14 15:11:37
Score: 1.5
Natty:
Report link

Hello it seem this error came from torch, you can tried this, note that my python version is 3.10.15

conda install pytorch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 -c pytorch
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tuấn Nguyễn

79189343

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

I don't think it's a good idea to "ignore" warnings.

Tracking expression caused re-creation of the DOM structure.

The identity track expression specified in the @for loop caused re-creation of the DOM corresponding to all items. This is a very expensive operation that commonly occurs when working with immutable data structures. For example:

@Component({
  template: `
    <button (click)="toggleAllDone()">All done!</button>
    <ul>
    @for (todo of todos; track todo) {
      <li>{{todo.task}}</li>
    }
    </ul>
  `,
})
export class App {
  todos = [
    { id: 0, task: 'understand trackBy', done: false },
    { id: 1, task: 'use proper tracking expression', done: false },
  ];
  toggleAllDone() {
    this.todos = this.todos.map(todo => ({ ...todo, done: true }));
  }
}

In the provided example, the entire list with all the views (DOM nodes, Angular directives, components, queries, etc.) are re-created (!) after toggling the "done" status of items. Here, a relatively inexpensive binding update to the done property would suffice.

Apart from having a high performance penalty, re-creating the DOM tree results in loss of state in the DOM elements (ex.: focus, text selection, sites loaded in an iframe, etc.).

Fixing the error : Change the tracking expression such that it uniquely identifies an item in a collection, regardless of its object identity. In the discussed example, the correct track expression would use the unique id property (item.id):

@Component({
  template: `
    <button (click)="toggleAllDone()">All done!</button>
    <ul>
    @for (todo of todos; track todo.id) {
      <li>{{todo.task}}</li>
    }
    </ul>
  `,
})
export class App {
  todos = [
    { id: 0, task: 'understand trackBy', done: false },
    { id: 1, task: 'use proper tracking expression', done: false },
  ];
  toggleAllDone() {
    this.todos = this.todos.map(todo => ({ ...todo, done: true }));
  }
}

https://angular.dev/errors/NG0956

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @for
  • Low reputation (1):
Posted by: Yuki Tiger

79189342

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

I'm posting this answer for anyone that stumbles here in the future.

Currently (2024) you can enable address sanitizer in godbolt by passing in the -fsanitize=address limit. It works!

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

79189340

Date: 2024-11-14 15:07:36
Score: 1
Natty:
Report link

One year later, the issue still seems not to be fixed. I am using node v22.11.0. The problem comes from whatwg-url node module

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Philippe Corrèges

79189326

Date: 2024-11-14 15:04:36
Score: 2.5
Natty:
Report link

I finally got a working example from the Azure ResourceManager github project:

https://github.com/Azure/azure-sdk-for-net/issues/46369#issuecomment-2469693141

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

79189317

Date: 2024-11-14 15:04:36
Score: 0.5
Natty:
Report link

As phd said in his comment what was missing was this:

unset $(git rev-parse --local-env-vars)

before

test=$(cd ../../; git remote -vv | grep 'my_special_repo')

so that environment variables like GIT_DIR are reset and therefore the hook's script works as expected. This is based on this answer.

PS: Now that it works I reworked my script to its more appropriate form (in my opinion):

test=$(git -C ../../ remote -vv | grep 'my_special_repo')
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: GiatManos

79189316

Date: 2024-11-14 15:04:36
Score: 0.5
Natty:
Report link

You can wrap your method into something new and add ReSharper instruction. E.g. make a log wrapper like this:

public static class BDebug
{
        public static void LogException(Exception e)
        {
            _logException(e);
        }

        // THIS WILL DISABLE PERFORMANCE ANALYS

        // ReSharper disable Unity.PerformanceAnalysis
        private static void _logException(Exception e)
        {
            UnityEngine.Debug.LogException(e);
        }
}

Actually. I don't recommend you disabling it. I have seen Unity profiler log samples, and when stack traces are enabled it causes enormous CPU spikes, specially on weak devices (mobile).

ZTE Blade L9:

ZTE Blade L9, Unity.Log(), 4ms

The code behind: enter image description here

For comparison. This is bush-made gizmo render, rendering 1k shapes, the same ZTE Blade L9: enter image description here

The code behind:

using System.Collections.Generic;
using Beast.Claw.Common;
using Beast.Claw.Debug;
using Beast.Claw.GameCycle;
using Beast.Claw.Graphic;
using Beast.Claw.Mathematics;
using Cysharp.Threading.Tasks;
using Unity.Collections;
using Unity.Mathematics;
using UnityEngine;
using UnityEngine.Profiling;
using UnityEngine.Rendering;

namespace Beast.Claw.Gizmo
{
    public class GizmoRender : Controller, IGizmoManager, IGameCycleListener
    {
        private struct HandleInfo
        {
            public GizmoHandle handle;
            public IController owner;
        }

        private const int MAX_TEXTURE_SIZE = 128;
        
        private readonly ICameraTransform _camera;
        private readonly IScreen _screen;
        private readonly GizmoConfig _config;

        private RenderTexture _canvas;
        private int2 _canvasSize;
        private List<HandleInfo> _handles;
        private Material _canvasMaterial;
        private Material _shapeMaterial;

        private Texture2D[] _texturePool;
        private NativeArray<ushort> _floatBuffer;

        private CommandBuffer _commandBuffer;

        private int _prevTexturePower;
        private int _prevShapeCount;

        public GizmoRender(
            ICameraTransform camera, 
            IScreen screen,
            GizmoConfig config)
        {
            _camera = camera;
            _screen = screen;
            _config = config;
        }
        
        public void Register(IGameCycleHandle handle)
        {
            handle.ListenConcurrent(ActionID.WARMUP, _warmup);
            handle.ListenBlocking(ActionID.RENDER, _render);
            handle.ListenBlocking(ActionID.DISPOSE, _dispose);
        }
        
        public IGizmoHandle CreateHandle(IController owner)
        {
            owner.ValidateNotNullThrowException(nameof(owner));

            HandleInfo info = new ()
            {
                handle = new GizmoHandle(),
                owner = owner,
            };

            _handles.Add(info);

            return info.handle;
        }
        
        private UniTask _warmup(ConcurrentContext context)
        {
            Texture2DParameters textureData = new()
            {
                createInitialized = false,
                format = TextureFormat.RGBAHalf,
                isLinear = true,
                mipChain = false,
                texture = new PlanarTextureData
                {
                    filterMode = FilterMode.Point,
                    wrapMode = TextureWrapMode.Clamp
                }
            };
            
            int maxTexturePower = BMath.CeilToInt(BMath.Log2(MAX_TEXTURE_SIZE));
            _texturePool = new Texture2D[maxTexturePower + 1];
            
            for (int i = 0; i <= maxTexturePower; i++)
            {
                _texturePool[i] = BGraphic.CreateTexture2D(this, textureData.WithSize(1 << i));
            }
            
            _handles = new List<HandleInfo>(64);
            
            _canvasMaterial = BGraphic.CreateMaterial(this, _config.canvasShader);
            _shapeMaterial = BGraphic.CreateMaterial(this, _config.shapeShader);
            _commandBuffer = new CommandBuffer();

            _canvas = _setupCanvas(_screen.Size);
            
            return UniTask.CompletedTask;
        }

        private void _render(BlockingContext context)
        {
            if (!_canvasSize.Equals(_screen.Size))
            {
                BGraphic.Dispose(_canvas);

                _canvas = _setupCanvas(_screen.Size);
            }

            int shapeCount = 0;
            
            Profiler.BeginSample("CreateFloatBuffer");
            for (int i = 0; i < _handles.Count; i++)
            {
                HandleInfo handle = _handles[i];

                if (handle.handle.IsDisposed)
                {
                    _handles.RemoveAtSwapBack(i--);
                    continue;
                }

                int handleShapeCount = handle.handle.shapeCount;
                if (handleShapeCount == 0)
                {
                    continue;
                }
                
                GizmoUtil.EnsureCapacity(ref _floatBuffer, shapeCount + handleShapeCount);
                
                _floatBuffer.Slice(shapeCount * GizmoUtil.FLOAT_PER_SHAPE, handleShapeCount * GizmoUtil.FLOAT_PER_SHAPE)
                    .CopyFrom(handle.handle.buffer.Slice(0, handleShapeCount * GizmoUtil.FLOAT_PER_SHAPE));

                shapeCount += handleShapeCount;
            }
            Profiler.EndSample();

            if (shapeCount == 0)
            {
                return;
            }

            int textureSize = BMath.CeilToInt(BMath.Sqrt(_floatBuffer.Length / 4.0f));
            if (textureSize > MAX_TEXTURE_SIZE)
            {
                BDebug.LogError(this, $"Too big gizmo buffer: ({textureSize * textureSize})");
                return;
            }

            int texturePower2 = BMath.CeilToInt(BMath.Log2(textureSize));
            Texture2D texture = _texturePool[texturePower2];
                
            Profiler.BeginSample("SetPixelData");
            texture.SetPixelData(_floatBuffer, 0);
            texture.Apply();
            Profiler.EndSample();

            if (_prevTexturePower != texturePower2)
            {
                Profiler.BeginSample("SetShapeMaterialParams #2");
                _shapeMaterial.SetTexture("_DataTexture", texture);
                _shapeMaterial.SetFloat("_DataTextureSize", 1 << texturePower2);
                _prevTexturePower = texturePower2;
                Profiler.EndSample();
            }

            _setupMaterialsRare();
            
            Profiler.BeginSample("SetShapeMaterialParams #1");
            _shapeMaterial.SetFloat2("_RenderCenter", _camera.Position);
            _shapeMaterial.SetFloat("_RenderDistance", _camera.ViewDistance);
            Profiler.EndSample();
            
            Profiler.BeginSample("SetRenderTarget");
            Graphics.SetRenderTarget(_canvas);
            Profiler.EndSample();
            
            GL.Clear(true, true, Color.clear);

            if (_prevShapeCount != shapeCount)
            {
                Profiler.BeginSample("SetCommandBufferParams");
                _commandBuffer.Clear();
                _commandBuffer.SetRenderTarget(_canvas);
                _commandBuffer.DrawMeshInstancedProcedural(_config.quadMesh, 0, _shapeMaterial, 0, shapeCount);
                Profiler.EndSample();
                _prevShapeCount = shapeCount;
            }

            Profiler.BeginSample("ExecuteCommandBuffer");
            BGraphic.ExecuteBuffer(_commandBuffer);
            Profiler.EndSample();

            Graphics.SetRenderTarget(null);
            
            Profiler.BeginSample("DrawCanvas");
            BGraphic.DrawMeshDelayed(new DrawMeshTask
            {
                material = _canvasMaterial,
                matrix = new Float4x4TRS
                {
                    rotation = Quaternion.identity,
                    scale = new float3(_screen.Aspect, 1, 1),
                    translation = new float3(0, 0, RenderOrderZ.Gizmo)
                },
                mesh = _config.quadMesh
            });
            Profiler.EndSample();
        }

        private RenderTexture _setupCanvas(int2 screenSize)
        {
            RenderTexture canvas = BGraphic.CreatePermRenderTexture(this, new RenderTextureData
            {
                format = RenderTextureFormat.ARGB32,
                texture = new PlanarTextureData
                {
                    filterMode = FilterMode.Point,
                    wrapMode = TextureWrapMode.Clamp,
                    size = screenSize
                },
                temp = new TempRenderTextureData
                {
                    antiAliasing = 1
                }
            });
            
            _canvasSize = screenSize;
            
            _setupMaterialsRare();

            return canvas;
        }

        private void _setupMaterialsRare()
        {
            Profiler.BeginSample("_setupMaterialsRare");
            
            _shapeMaterial.SetFloat2("_ScreenSize", _canvasSize);
            _canvasMaterial.SetTexture("_Texture", _canvas);

            float rollCos = BMath.Cos(_camera.RotationRad.roll);
            float pitchCos = BMath.Cos(_camera.RotationRad.pitch);
            
            float2x2 rotation = float2x2.Rotate(_camera.RotationRad.roll * -1);
            float2x2 scale = float2x2.Scale(1, pitchCos);
            
            _shapeMaterial.SetFloat2x2("_ViewMatrix0", rotation);
            _shapeMaterial.SetFloat2x2("_ViewMatrix1", scale);
            
            _shapeMaterial.SetFloat("_ProjectionScale", 1f / (rollCos * pitchCos));
            
            Profiler.EndSample();
        }
        
        private void _dispose(BlockingContext context)
        {
            BGraphic.Dispose(_canvas);

            foreach (Texture2D texture in _texturePool)
            {
                BGraphic.Dispose(texture);
            }

            _floatBuffer.Dispose();
            _commandBuffer.Dispose();

            BGraphic.Dispose(_canvasMaterial);
            BGraphic.Dispose(_shapeMaterial);
        }
    }
}

Particularly, I have been googling for this question, because I needed to disable it in the very specific case, where it is allowed:

        // ReSharper disable Unity.PerformanceAnalysis
        public static string ToStringNonAlloc(this int value)
        {
            if (value < 0 && -value <= _negativeBuffer.Length)
            {
                return _negativeBuffer[value * -1 - 1];
            }

            if (value >= 0 && value < _positiveBuffer.Length)
            {
                return _positiveBuffer[ value];
            }

            if (!_allocationReported)
            {
                _allocationReported = true;
                
                Debug.LogError("ToStringNonAlloc() Failed. Not withing range: " + value);
            }
            
            return value.ToString();
        }

Note, that log can be produced only once: enter image description here

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Victor

79189312

Date: 2024-11-14 15:03:35
Score: 3
Natty:
Report link

ThinkGeo recently formalized GeoPackage support using the GdalFeatureLayer. There is a blog post and samples here.

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

79189308

Date: 2024-11-14 15:02:35
Score: 1.5
Natty:
Report link

Be careful that you haven't restricted a property like this

owner: String @auth(rules: [{allow: owner, operations:[read, create]}])

And try to delete the parent, when a property doesn't have the delete operation, which will prevent the parent from being deleted.

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

79189304

Date: 2024-11-14 15:02:35
Score: 2
Natty:
Report link

The same, as @John Nyingi's answer, but just with async test method

 [Fact]
public async Task Test()
{
    Task createUserTask = service.CreateUser(user);
    await createUserTask; // there is no lock of the current thread here

    Assert.True(createUserTask.IsCompletedSuccessfully);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @John
  • Low reputation (1):
Posted by: VladimirK

79189298

Date: 2024-11-14 15:01:33
Score: 7.5 🚩
Natty: 4.5
Report link

How did you get on using the API? Was this before they put it behind a paywall? If not do you mind me asking what the fees are?

I really appreciate any help you can provide.

Reasons:
  • Blacklisted phrase (1): any help
  • RegEx Blacklisted phrase (3): did you get
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How did you
  • Low reputation (1):
Posted by: user28300818

79189295

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

The problem is that i don't have configured the jdk-dir in flutter

flutter config --jdk-dir /Library/Java/JavaVirtualMachines/jdk-20.jdk/Contents/Home
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Luis Alberto Murcia Solivella

79189281

Date: 2024-11-14 14:57:31
Score: 4.5
Natty:
Report link

I am facing the same issue, I created the NCC, I am able to reach from onprem. yet, when not able to send traffic to the internet, thus I created a VPN tunnel between HUB-SPOKE, and a default route using the tunnel from the spoke and a reverse route to the nodes subnet on the HUB, yet the Traffic is intermittent, return traffic is lost somewhere. I really appreciate to share the best practice, so the solution proposed will be able to assist all possible traffic scenarios (will the DNS-based endpoint solve it) rather than using a mix of NCC+VPN

Thanks,

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ayman

79189234

Date: 2024-11-14 14:48:28
Score: 1.5
Natty:
Report link

one year too late, but maybe it will help someone. Fastify library binds by defualt to localhost interface only. So if you have dockerized enviroment and the app is not visible from outside, try specify the ip address to bind to, ie

await app.listen(port, '0.0.0.0')

to listen on all interfaces ...

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

79189218

Date: 2024-11-14 14:44:27
Score: 2.5
Natty:
Report link

Is this what you mean?

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import LinearSegmentedColormap

x = [1, 2, 3, 4, 5]
y1 = [1, 1, 2, 3, 5]
y2 = [0, 4, 2, 6, 8]
y3 = [1, 3, 5, 7, 9]

y = np.vstack([y1, y2, y3])

labels = ["Fibonacci", "Evens", "Odds"]

fig, ax = plt.subplots()

# Create a custom colormap
cmap = LinearSegmentedColormap.from_list("custom_cmap", ["green", "transparent"])

# Plot the first two areas normally
ax.stackplot(x, y1, y2, labels=labels[:2])

# Plot the "Odds" area with a gradient
for i in range(len(x) - 1):
    ax.fill_between(x[i:i+2], y1[i:i+2] + y2[i:i+2], y1[i:i+2] + y2[i:i+2] + y3[i:i+2], 
                    color=cmap(i / (len(x) - 1)))

ax.legend(loc='upper left')
plt.show()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: GaTe

79189209

Date: 2024-11-14 14:42:26
Score: 0.5
Natty:
Report link

Ionic and Capacitor generally aim to support a wide range of Android versions, but there can be limitations based on the libraries and plugins you are using, as well as the minimum SDK version specified in your project.

  1. Minimum SDK Version: Check the build.gradle file in your Android project (usually located at android/app/build.gradle). Look for the minSdkVersion setting. If it's set to a value higher than 24 (which corresponds to Android 7), your app won't run on Android 7 devices.

  2. Plugin Compatibility: Some Capacitor plugins may require a minimum version higher than Android 7. Review the documentation for any plugins you are using to ensure they support Android 7.

  3. WebView Compatibility: Older Android versions use older WebView implementations, which may not support newer JavaScript features or CSS. Ensure that your app's code is compatible with older browsers. Testing on Real Device: Sometimes, emulators can behave differently than real devices. If possible, test on a physical Android 7 device to see if the issue persists.

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

79189200

Date: 2024-11-14 14:40:25
Score: 4.5
Natty:
Report link

I am not sure why my previous answer was hidden.

There is a possibility to report the issue in this window. Please send me an ID of the reported issue.

If you are unable to do it, then please create a ticket via YouTrack: https://youtrack.jetbrains.com/newIssue

Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): Please send me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Anton Mefodichev

79189193

Date: 2024-11-14 14:39:25
Score: 3
Natty:
Report link

Search for "@builtin" in extension list and enable basic extensions. This resolved my issue.

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

79189187

Date: 2024-11-14 14:38:25
Score: 1
Natty:
Report link
Modifier.clickable(
    interactionSource = null,
    indication = null,
    onClick = {})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user2912087

79189168

Date: 2024-11-14 14:33:24
Score: 1.5
Natty:
Report link

I found the setting and the name of the bar. It is the Results: Show Action Bar.

screenshot snippet of settings showing the showActionBar toggle

You can add "queryEditor.results.showActionBar": false, to your settings.json to hide it.

Have a nice day!

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Daniel 'Dang' Griffith

79189164

Date: 2024-11-14 14:32:23
Score: 2.5
Natty:
Report link

shnf r 84jn [3oijh3we6rt235pj3nwreg y24 phfg uwya th 43eqw5t bgrtfwe8ytfnewrg6yt43085j 4yt 743564895y87345873495y874t834 y438976y439y598746y598349875y435y87qa1239y4393458yt43597y43976y4396y30459345897y349y y43t3 4 4y8 tg34t7y529ay pyt eptghe344 to44 tli45tyhjj

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

79189162

Date: 2024-11-14 14:31:20
Score: 6 🚩
Natty:
Report link

Answer from @xtermi2 worked for me. i can't upvote so

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (2): can't upvote
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @xtermi2
  • Single line (0.5):
  • Low reputation (1):
Posted by: yashas r

79189157

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

i was facing same issue, but in my case i was papulating the 'user' object in the requests collection, so i had to import the usermodal , in the api of the next js , like in route.js file, code image

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

79189151

Date: 2024-11-14 14:26:19
Score: 1
Natty:
Report link

Launching lib\main.dart on Android SDK built for x86 in debug mode... main.dart:1 Parameter format not correct -

FAILURE: Build failed with an exception.

File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: C:\Users\DELL\Desktop\ahmed1\student management\android\app\src\debug\google-services.json C:\Users\DELL\Desktop\ahmed1\student management\android\app\src\google-services.json

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