79499838

Date: 2025-03-11 06:37:09
Score: 5
Natty:
Report link

Following your feedback, I looked at the ConsumeKafkaRecord and I think that yes you're right I could apply the following Flow: ConsumeKafkaRecord(ScriptedReader, CSVWriter) => MergeContent => UpdateAttributes => PutFile.

1/ In the ConsumeKafkaRecord, I'd like to use a ScriptedReader to convert and modify the json message and a CSVWriter to write the new message.

2/ MergeContent to merge the stream files.

3/ UpdateAttributes to change the file name.

4/ PutFile to write the file

The only problem is the header I want to write to the CSV file, as I only want one header.

Do you agree with this flow?

Thanks a lot.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Patrick Baie

79499833

Date: 2025-03-11 06:36:08
Score: 1
Natty:
Report link

To crawl a face image using Google Image Search engine, follow these steps:

1. Use Reverse Image Search

2. Use Google Lens

3. Automate with Python (For Crawling at Scale)

Crawling face images without consent may violate privacy laws. Always follow ethical and legal guidelines.

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

79499825

Date: 2025-03-11 06:32:07
Score: 1.5
Natty:
Report link

There 3 types of repos. you can delete like below.

local repo -> git branch -d branch_name

origin repo-> git branch --delete --remotes origin/branch_name

upstream repo-> git branch --delete --remotes upstream/branch_name

source : https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/delete-remote-Git-branches-github-gitlab-bitbucket-tracking-local

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

79499816

Date: 2025-03-11 06:28:06
Score: 1.5
Natty:
Report link

I have not looked into this specifically from the APS side of things, but The Building Coder shares quite a few posts on setting up section boxes:

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

79499807

Date: 2025-03-11 06:23:05
Score: 3.5
Natty:
Report link

Check the newest suggested standards here: https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3

Sorry, I can't find the about:blank sniffing technique that was referred to by ruakh

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

79499803

Date: 2025-03-11 06:21:05
Score: 1.5
Natty:
Report link
@Service("customuserdetails")
public class CustomUserDetails implements UserDetailsService {
    @Autowired
    private UserRepo userrepo;
 
    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {   
        Supplier<UsernameNotFoundException> s= () -> new UsernameNotFoundException("Error finding the user");
        
        User user=userrepo.findByUsername(username).orElseThrow(s);
        return user;
    }}

This is the implementation which is working. I had to change my security beans to @configuration, and I added @repository to my repo interfaces. I also ended up changing my User class to implement UserDetails.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @configuration
  • User mentioned (0): @repository
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Fitz chivalry farseer

79499782

Date: 2025-03-11 06:10:02
Score: 4
Natty:
Report link

Here is a demo given by react flow on how to download a diagram as image https://reactflow.dev/examples/misc/download-image

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

79499781

Date: 2025-03-11 06:10:02
Score: 2
Natty:
Report link

We and our 94 partners store and/or access information on a device, such as unique IDs in cookies to process personal data. You may find out more about the purposes for which we and our partners use cookies or exercise your preferences by clicking the ‘Cookie Settings’ button below. You can revisit your consent choices or withdraw consent at any time by clicking the link to your cookie settings in our Cookie Policy. These choices will be signaled to our partners and will not affect browsing data.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lynette Sewell

79499776

Date: 2025-03-11 06:06:00
Score: 4
Natty: 4.5
Report link

I too faced a similar issue when using parallel stream API.

Below is the scenario; I have a list of transaction objects in reader part of a spring batch , when this list if passed to processor, used parallel stream to process the transaction object in a multi threaded mode. but unfortunately, the parallel stream is not consistent. it is skipping the records at times.

Any fix added in java.util.stream API?

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

79499769

Date: 2025-03-11 05:58:59
Score: 1.5
Natty:
Report link

Use a set instead of an array for storing the visited nodes. Sets have O(1) lookup time, resulting in a total time complexity of O(n) for your algorithm, which is otherwise correct.

As for the statement that "going from node a to b to a isn't a cycle",

This is true if you consider simple graphs only and have to use the same edge twice, in multigraphs you may have more than one edge connecting a and b in which case a-b-a over distinct edges counts as a cycle.

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

79499762

Date: 2025-03-11 05:55:58
Score: 1.5
Natty:
Report link

Might be unrelated but I just had an experience with this, and the problem I had was the directory it was trying to build in which at that time was the Desktop, I've changed into a subfolder and it worked without any other steps required.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vlad Pop

79499756

Date: 2025-03-11 05:52:57
Score: 1
Natty:
Report link

Use importlib.util for a clean check Let me know if this code works for you.

import importlib  
if importlib.util.find_spec("library_name") is not None:  
    print("Installed")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vikas Anand

79499752

Date: 2025-03-11 05:50:57
Score: 3.5
Natty:
Report link

Body must be at least 30 characters; you enteredBody must be at least 30 characters; you enteredBody must be at least 30 characters; you entered

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

79499746

Date: 2025-03-11 05:48:57
Score: 2
Natty:
Report link

enter image description hereHere it is, tune.

It also has other siblings such as tune_outline, tune_rounded, tune_sharp.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Covenant T. Junior

79499744

Date: 2025-03-11 05:47:56
Score: 3
Natty:
Report link

You can try again But now upgrade the ext.kotlin_version in this code and give me feedback if it is Run.

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

79499743

Date: 2025-03-11 05:47:56
Score: 1
Natty:
Report link
  1. Remove flexGrow: 1 from contentContainerStyle
  2. Setstyle={{flex:1}} on flatlist
  3. Ensure all parent view have flex:1
  4. Avoid Wrapping Flatlist inside another Scrollview
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mahammad Momin

79499724

Date: 2025-03-11 05:30:53
Score: 3
Natty:
Report link

I found that the methods mentioned in other answers are either unavailable on the online website or too complicated to operate. Let me recommend the latest available method I found. It supports removing line numbers and controlling fonts.

It can solve the problem of code display effect in Word.

https://www.codeinword.com/

example:

enter image description here

enter image description here

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 李亚楠

79499720

Date: 2025-03-11 05:29:53
Score: 1.5
Natty:
Report link

The 80 column IBM punch cards can contain binary data with each column representing a full binary byte. I used this all the time to output binary data. A compiler or assembler can produce and Object deck of cards, which is fed into a linker for execution. The obj was binary information. The object deck had different record types, the most typical format was the TXT record (https://www.ibm.com/docs/en/hla-and-tf/1.6?topic=output-txt-record-format)

there also was a REP type which allowed you to patch an object deck on the fly. I did this on an IBM 360 & 370 machines

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

79499717

Date: 2025-03-11 05:28:53
Score: 2.5
Natty:
Report link
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ZONGLUN YUE

79499716

Date: 2025-03-11 05:27:53
Score: 0.5
Natty:
Report link

Use the reflect package to reduce this type of duplication.

// GetJsons decodes the JSON responses to the slice pointed
// to by target. The target argument must be a pointer to 
// a slice of cheese.
func GetJsons(urls []string, target any) []error {
    errors := make([]error, len(urls))
    v := reflect.ValueOf(target).Elem()
    v.Set(reflect.MakeSlice(v.Type(), len(urls), len(urls)))
    var wg sync.WaitGroup
    wg.Add(len(urls))
    for i, url := range urls {
        go func() {
            defer wg.Done()
            errors[i] = GetJson(url, v.Index(i).Addr().Interface())
        }()
    }
    return errors
}

Replace calls to GetJsonAs*Multiple with calls to GetJsons:

var hashmaps []Map
errors := GetJsons(urls, &hashmaps)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Cathy Wood

79499713

Date: 2025-03-11 05:22:52
Score: 1
Natty:
Report link

I spent several days researching and trying to determine why it was serving what appeared to be a cached instance of this file. Since I was at the end of my rope, I decided why not increment the version of the library and see what happens.

I incremented the package version from 0.0.1-alpha.0 to 0.0.1-alpha.1.

I then re-packaged the library and updated the dependency link in the workspace to reference the new version of the identity.worker tar ball.

Spooled up karma jasmine and executed some tests. to my surprise the karma dev server served the updated file.

The take away from this is in order for karma dev and maybe the angular dev environment to serve an updated file from a node modules location, the package version must be incremented.

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

79499705

Date: 2025-03-11 05:12:50
Score: 0.5
Natty:
Report link

Many of companies policies have restricted use of NVM on windows due to several reasons. In such cases there is another way we can manage multiple versions on windows.

First uninstall all node versions from your system control panel. Then you need to either download the binary / archived versions from the node page.

Download from here https://nodejs.org/en/download

If you don't found your exact version from above page then please check from node dist - https://nodejs.org/dist/

Then unzip the downloaded file, now add the location of unzip folder to path variable inside System environment variable.

NOTE : You need to close and restart all terminals to affect the changes.

If you need to change the version just update path variable to point point out another version location inside System environment variable and ready to use.

enter image description here

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

79499702

Date: 2025-03-11 05:09:50
Score: 2.5
Natty:
Report link

I have this problem when I use different wifi, I can't make calls to each other, but when I connect to the same network, I can still make calls to each other. I don't know what's wrong, I hope everyone can help me. This is my source code.

Code Fe:
https://github.com/qminhminh/test_call_video_webrtc
BE:
https://github.com/qminhminh/call_wbrtc_server

ERROR LOG
👍
016:064][60451] (stun_port.cc:460): Port[4918800:0:1:0:host:Net[en1:2405:4803:b48b❌x❌x:x/64:Wifi:id=2]]: StunPort: stun host lookup received error 8
[016:064][60451] (basic_port_allocator.cc:1118): Port[4918800:0:1:0:host:Net[en1:2405:4803:b48b❌x❌x:x/64:Wifi:id=2]]: Port completed gathering candidates.
[016:064][60451] (stun_port.cc:460): Port[4918e00:0:1:0:host:Net[lo0:0:0:0❌x❌x:x/128:Loopback:id=4]]: StunPort: stun host lookup received error 8
[016:064][60451] (basic_port_allocator.cc:1118): Port[4918e00:0:1:0:host:Net[lo0:0:0:0❌x❌x:x/128:Loopback:id=4]]: Port completed gathering candidates.
[016:064][60451] (stun_port.cc:607): UDP send of 20 bytes to host demo.espitek.com:3478 (14.224.216.x:3478) failed with error 0 : [0x00000031] Can't assign requested address
[016:064][60451] (stun_port.cc:460): Port[49a2600:1:1:0:host:Net[en1:2405:4803:b48b❌x❌x:x/64:Wifi:id=2]]: StunPort: stun host lookup received error 8
[016:064][60451] (basic_port_allocator.cc:1118): Port[49a2600:1:1:0:host:Net[en1:2405:4803:b48b❌x❌x:x/64:Wifi:id=2]]: Port completed gathering candidates.
[016:064][60451] (stun_port.cc:607): UDP send of 20 bytes to host demo.espitek.com:3478 (14.224.216.x:3478) failed with error 0 : [0x00000031] Can't assign requested address
[016:064][60451] (stun_port.cc:460): Port[49a2c00:1:1:0:host:Net[lo0:0:0:0❌x❌x:x/128:Loopback:id=4]]: StunPort: stun host lookup received error 8

016:128][60451] (turn_port.cc:877): Port[601ea00:0:1:0:relay:Net[lo0:127.0.0.x/8:Loopback:id=3]]: Failed to send TURN message, error: 49
[016:128][60451] (turn_port.cc:1348): Port[601ea00:0:1:0:relay:Net[lo0:127.0.0.x/8:Loopback:id=3]]: TURN allocate request sent, id=484861424a35586a6d786465
[016:128][60451] (turn_port.cc:396): Port[6134000:1:1:0:relay:Net[en1:192.168.1.x/24:Wifi:id=1]]: Trying to connect to TURN server via udp @ demo.espitek.com:3478 (14.224.216.x:3478)

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have this problem
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: quang minh

79499698

Date: 2025-03-11 05:06:49
Score: 3
Natty:
Report link

I just face the same problem. There's probably not id but instance. You'll may resolve relate form's model to database table's Model

forms.py

from .models import DbTable # DbTable is your database table

def StudentRequestForm(forms.ModelForm):
/* your many forms */
class Meta:
    model = DbTable
    fields = '__all__' 
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): face the same problem
  • Low reputation (1):
Posted by: BRSO

79499695

Date: 2025-03-11 05:04:49
Score: 0.5
Natty:
Report link

To connect Godaddy domain with Firebase Hosting with www redirect:

(Process to point www.yourdomain.com -> yourdomain.com)

  1. Goto Godaddy portal -> Forwarding -> Subdomains -> Add Forwarding -> Enter subdomain as www -> Add destination url as yourdomain.com

  2. Step 1 will add two A records

  3. Goto Firebase hosting -> Connect Domain -> Enter domain yourdomain.com -> Connect

  4. Add the A and TXT records provided by Firebase in the DNS records on Godaddy portal.

This steps worked for me & should solve the issue.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Akash Jadhav

79499694

Date: 2025-03-11 05:03:49
Score: 2
Natty:
Report link

Can you try if below code chunk works?

WHERE sets.importDate >= :beginDate AND (sets.importDate <= :endDate OR :endDate IS NULL)
Reasons:
  • Whitelisted phrase (-2): Can you try
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Amit K.

79499684

Date: 2025-03-11 04:54:47
Score: 5.5
Natty:
Report link

Thank you for outlining the issue you’ve been experiencing with the sheet metal bends and the beveling on the edge of the bend line. I understand that this slight bevel is causing a double cut during the laser cutting process, which can be quite challenging.

Regarding your question about using the InventorServer API, we will study the feasibility of extracting just the top or bottom face of the flat pattern using the API in combination with Forge. To better understand your specific situation and provide the most accurate solution, we would appreciate it if you could provide more details, such as:

  1. The specific version of Inventor you are using.

  2. Any sample data set or files where the beveling issue is occurring (if non-confidential and permissible).

  3. Any additional context on how you are currently exporting the flat pattern via DataIo.

  4. A video demonstrating the issue would be particularly helpful.

Once we have more information, we can explore possible solutions and API functionalities to address the problem.

Looking forward to your response.

Thanks and regards,

Chandra shekar G

Developer Advocate

Autodesk Platform Services (formerly Forge)

Stay updated with Autodesk Platform Services!

DevCon 2025 goes to Amsterdam! Join us - https://autode.sk/4eWNw66

Follow us on LinkedIn | YouTube
Subscribe to our Newsletter | Explore Tutorials & Code Samples
Join our Upcoming Events

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (1.5): Looking forward to your
  • Blacklisted phrase (1.5): would appreciate
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chandra6ma

79499662

Date: 2025-03-11 04:33:43
Score: 1.5
Natty:
Report link

A 301 redirect means that the move is permanent.

  1. The browser caches the new URL and does not request the old one again.

  2. Search engines update their index, replacing the old URL with the new one.

  3. The new URL inherits the SEO ranking of the old URL.

A 302 redirect means that the move is temporary.

  1. The browser does not cache the new URL.

  2. Search engines do not update their index; they continue using the old URL.

  3. Each time the user requests the old URL, they get redirected again.

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

79499653

Date: 2025-03-11 04:23:41
Score: 3.5
Natty:
Report link

Not enough rep to post a comment so I'm writing an answer.

Sounds like you could have an SSH configuration mismatch between your /etc/ssh/sshd_config file on your Pi, and your /etc/ssh/ssh_config file on your Mac.

Can you post the uncommented text from your Pi's sshd_config file, your Mac's ssh_config file, and the ssh_config file from another computer that can successfully connect?

That should give us some starting information to debug what might be going on and I can edit my answer as we go.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you post
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: warp9000

79499650

Date: 2025-03-11 04:21:40
Score: 0.5
Natty:
Report link

If there is an issue when the form is rendering improperly due to css, then make sure that /static/ is same with STATIC_URL setting


css = {'all': ('/static/admin/css/widgets.css',), }

Reference https://www.dangtrinh.com/2014/01/django-use-django-admin-apps.html

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

79499635

Date: 2025-03-11 04:04:37
Score: 1
Natty:
Report link

After some try-and-error, I found a simple solution.

At the .env file, just add this

_PIP_ADDITIONAL_REQUIREMENTS=apache-airflow-providers-oracle 

and run the

docker compose up -d 

command will do.

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

79499622

Date: 2025-03-11 03:58:36
Score: 1.5
Natty:
Report link

I had the same problem, then i updated the drivers and restarted the computer. It worked.

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

79499620

Date: 2025-03-11 03:55:35
Score: 6.5 🚩
Natty:
Report link

Like your post, thanks for sharing

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (2): thanks for sharing
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fuver Viet Nam

79499617

Date: 2025-03-11 03:48:33
Score: 1
Natty:
Report link

As per official doc, you can override or change the default user agent the browser uses

export default defineConfig({
  e2e: {
    ...,
    userAgent: 'Mozilla/5.0 ~',
  },
  ...
})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CHOI

79499609

Date: 2025-03-11 03:40:32
Score: 4
Natty: 4
Report link

Creating and Publishing React Npm Packages simply using tsup https://medium.com/@sundargautam2022/creating-and-publishing-react-npm-packages-simply-using-tsup-6809168e4c86

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

79499591

Date: 2025-03-11 03:18:28
Score: 2
Natty:
Report link

First, you can check the devices that is available for inference.

import openvino as ov

core = ov.Core()

core.available_devices

Note that GPU devices are numbered starting at 0, where the integrated GPU always takes the id 0 if the system has one. For instance, if the system has a CPU, an integrated and discrete GPU, we should expect to see a list like this: ['CPU', 'GPU.0', 'GPU.1'].

If the GPU doesn't appear on the list, we would need to follow the steps below to configure your GPU drivers to work with OpenVINO.

The steps you can refer to this links in order to get the latest update.

https://docs.openvino.ai/2024/get-started/configurations/configurations-intel-gpu.html

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

79499586

Date: 2025-03-11 03:17:27
Score: 6 🚩
Natty: 5.5
Report link

https://rajrock38.medium.com/lost-your-uncommitted-changes-in-git-there-is-a-fix-2357ef58466 thank me later for sharing answer

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hemil

79499571

Date: 2025-03-11 03:03:24
Score: 1
Natty:
Report link

I had this problem today. Solved it by calling tcpip_init() before calling pppos_example_init():

  tcpip_init( NULL, NULL );
  pppos_example_init();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: grove188

79499569

Date: 2025-03-11 03:02:24
Score: 1
Natty:
Report link

I solve same problem with js function like that

function onDataBoundTree() 
{
jQuery.event.simulate = function () 
{
};
} 

My problem is there is filter textbox top of the treecomponent but I can't input any value on them. This Way solved my issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Y. Sinan ŞİMŞEK

79499566

Date: 2025-03-11 02:59:23
Score: 1
Natty:
Report link
minreturn = min(R)
dayofminreturn = R.index(midreturn)

mindepart = min(D[:dayofminreturn+1])
 #can fly there and back in the same day #


cheapestroundtrip = mindepart + minreturn
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: TACNY84

79499558

Date: 2025-03-11 02:51:22
Score: 0.5
Natty:
Report link

This issue nearly took my life, its been one month I have been trying to resolve this issue. But in the last I came to know that Antivirus was blocking me to send email and hence getting "Could not reach the remote Mailgun server" issue in my project.
I just disabled AVG Antivirus and it worked fine. I hope this will help someone.
Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): hope this will help
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ahsan Alamgir

79499540

Date: 2025-03-11 02:28:18
Score: 1.5
Natty:
Report link

please add ,it should resolve the issue

<dependency>
    <groupId>org.springframework.ai</groupId>
    <artifactId>spring-ai-openai-spring-boot-starter</artifactId>
</dependency>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shahmim

79499522

Date: 2025-03-11 02:07:15
Score: 0.5
Natty:
Report link
from random import randint

x = randint(1, 6)

class Die():
    """Make a class Die with one attribute called sides"""
    def __init__(self, sides = 6):
        self.sides = sides


    """Write a method called roll_die() that prints a random number"""
    def roll_die(self):
         for i in range(10):
            dice = randint(1, self.sides)
            print("Rolling " + str(dice))

print("\nRolling a 6 sided die:")
six_sided_die = Die()
six_sided_die.roll_die()

print("\nRolling a 10 sided die:")
ten_sided_die = Die(10)
ten_sided_die.roll_die()

print("\nRolling a 20 sided die:")
twenty_sided_die = Die(20)
twenty_sided_die.roll_die()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29962454

79499517

Date: 2025-03-11 02:04:14
Score: 0.5
Natty:
Report link
# Configurar el directorio base donde están los proyectos
$BaseDir = "C:\Ruta\A\Proyectos"

# Ruta al ejecutable de Visual Studio 2019 (ajustar si está en otro directorio)
$VSPath = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.com"

# Archivo CSV de salida
$OutputCSV = "C:\Ruta\De\Salida\metricas.csv"

# Encabezados del CSV
"Project, MaintainabilityIndex, CyclomaticComplexity, DepthOfInheritance, ClassCoupling, LinesOfCode" | Out-File -FilePath $OutputCSV

# Buscar todos los archivos .csproj en el directorio y subdirectorios
$Projects = Get-ChildItem -Path $BaseDir -Recurse -Filter "*.csproj"

# Procesar cada proyecto
foreach ($Project in $Projects) {
    $ProjectPath = $Project.FullName
    $SolutionDir = Split-Path -Path $ProjectPath -Parent

    # Ejecutar análisis de métricas en el proyecto
    $MetricsOutput = & "$VSPath" "$ProjectPath" /Clean /Rebuild /ProjectMetrics
    
    # Extraer los valores de métricas del output
    if ($MetricsOutput -match "Maintainability Index:\s+(\d+).*Cyclomatic Complexity:\s+(\d+).*Depth of Inheritance:\s+(\d+).*Class Coupling:\s+(\d+).*Lines of Code:\s+(\d+)") {
        $MaintainabilityIndex = $matches[1]
        $CyclomaticComplexity = $matches[2]
        $DepthOfInheritance = $matches[3]
        $ClassCoupling = $matches[4]
        $LinesOfCode = $matches[5]

        # Guardar resultados en CSV
        "$($Project.Name),$MaintainabilityIndex,$CyclomaticComplexity,$DepthOfInheritance,$ClassCoupling,$LinesOfCode" | Out-File -FilePath $OutputCSV -Append
    }
}

Write-Host "Métricas generadas y guardadas en: $OutputCSV"
Reasons:
  • Blacklisted phrase (1): está
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alan Godinez Rodriguez

79499514

Date: 2025-03-11 02:01:13
Score: 4
Natty:
Report link

For large log files, I found this AI-powered debugging tool that automates

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

79499506

Date: 2025-03-11 01:49:11
Score: 1.5
Natty:
Report link

I had this with an Azure automation runbook. I found that I had to install/import ldap3 and then pyasn1 0.6.1.

The module import on my laptop brought down pyasn1 0.6.1 as well. Looks like Azure Automation didn't.

hth.

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

79499502

Date: 2025-03-11 01:45:11
Score: 1
Natty:
Report link

Other answers did not work for me, but I found another solution.

I installed Xcode, and then the upgrade succeeded.

Additional info:

Environment: MacBook Pro 2016, macOS Monterey

Using `brew upgrade glib -v`, I found that `/usr/bin/python3` was used during the `gobject-introspection` build.

Things I tried (but failed):

- Changed `PATH` to prioritize `/usr/local/bin/python3`

- Updated `PKG_CONFIG_PATH` to include `/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/pkgconfig`

Checked `python-3.9.pc`, which had 'prefix=/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9' so,
- Changed it to 'prefix=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9'

Since other formulae required Xcode, I installed Xcode, and that resolved the issue.

One more thing I haven't tried yet:

/usr/bin/python3 -m pip install pkgconfig

might also help.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: やたすずめ

79499500

Date: 2025-03-11 01:44:11
Score: 1
Natty:
Report link
If you pre-pend "E.C.P.C" to every sting from your 255maxlength  DB you should be ok.

j/k this is not possible
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dominik Weber

79499498

Date: 2025-03-11 01:38:10
Score: 0.5
Natty:
Report link

I had a similar issue. I was able to gain access to repos i couldn't see by going here:

https://github.com/apps/claude-for-github/installations/select_target

Using this link, select the github user or organization, the all or specific repos to delegate access to the claude-for-github app.

Once granted, you still may not see all repos in the list, but I was able to successfully use the "paste Github URL" link in the Claude desktop app to add a private repo that did not appear in the list.

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • High reputation (-1):
Posted by: jxstanford

79499490

Date: 2025-03-11 01:32:08
Score: 1
Natty:
Report link

I also use Ubuntu on Virtualbox with a Windows 10 host. I managed to create a virtual environment with the following command successfully:
sudo python3 -m virtualenv --always-copy .venv

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

79499487

Date: 2025-03-11 01:28:08
Score: 3
Natty:
Report link

./filename.exe -extractdrivers filename_extracted

powershell command line , just change to same directory

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

79499485

Date: 2025-03-11 01:27:07
Score: 0.5
Natty:
Report link

Original define in the NVIDIA docs #define IDX2F(i,j,ld) ((((j)-1)*(ld))+((i)-1)) has no space between IDX2F and (i,j,ld). If there is the mistaken space then the IDX2F is substituted by (i,j,ld) ((((j)-1)*(ld))+((i)-1)) that is not expected. Since a fixed format is used for Fortran source then due to extra `(i,j,ld) ` resulting string exceeds 72 symbols and some right parenthesis 'are eated'. However, the used define operator has correct numbers of the left and right parenthesis.

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

79499484

Date: 2025-03-11 01:26:07
Score: 0.5
Natty:
Report link

Thanks for the clarification through the comment.

Since you cannot share the entire code, let's try to be in the same page.

  1. const data = (await request.json()) as ResumeFormData; → I assume this is post data coming from client http request.

  2. The following code launches chromium with the binary.

const browser = await puppeteer.launch({
    headless: true,
    args: [...chromium.args, "--no-sandbox", "--disable-setuid-sandbox"],
    executablePath: await chromium.executablePath(chromiumPack),
});
  1. This is the RAW html content that you will pass to the puppeteer page.
<!DOCTYPE html>
      <html>
        <head>
          <meta charset="utf-8">            
          <style>          
            @font-face {
              font-family: 'Noto Sans JP';              
              src: url('file://${process.cwd()}/public/fonts/NotoSansJP-Medium.ttf') format('truetype');
            }
            body {
              font-family: 'Noto Sans JP', sans-serif;
              margin: 0;
              padding: 20mm;
            }
            h1 {
              text-align: center;
              font-size: 24px;
              margin-bottom: 2rem;
            }
            h2 {
              font-size: 20px;
              margin-bottom: 1rem;
              border-bottom: 1px solid #ccc;
              padding-bottom: 0.5rem;
            }            
          </style>
        </head>
        <body>
          <h1>職務経歴書</h1>
          <h1>test</h1>

          <div class="section">
            <h2>基本情報</h2>
            <p>氏名: ${data.basicInfo.lastName} ${data.basicInfo.firstName}</p>
            <p>フリガナ: ${data.basicInfo.lastNameKana} ${
      data.basicInfo.firstNameKana
    }</p>...

I created a simple version since I don't have vercel, but tried to make it the same code as much as possible.

import puppeteer from "puppeteer";

(async () => {
  const document = `
    <!DOCTYPE html>
    <html>
    <head>
      <style>
        @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');
        body { font-family: 'Noto Sans JP', sans-serif; padding: 20px; }
        h1 { color: blue; }
        p { font-size: 14px; }
    </style>
    </head>
    <body>
      <h1>Hello world!</h1>
      <p>This is a PDF generated from raw HTML content.</p>
      <p>こんにちは、世界!</p>
    </body>
    </html>
  `

  puppeteer.launch().then(async browser => {
    let page = await browser.newPage()
    await page.goto('data:text/html;charset=UTF-8,' + document, {waitUntil: 'networkidle0'});
    await page.pdf({
      path: 'print.pdf',
      format: 'A4'
    })
    browser.close()
  });
})();

The following code will generate the following PDF with node index.js command.

proper Japanese genrated PDF

The important things to note are the following:

  1. Specify UTF-8.
await page.goto('data:text/html;charset=UTF-8,' + document, {waitUntil: 'networkidle0'});

If I remove the UTF-8, this will be the output.

garbled test

If you are still experiencing problem, it would be great if you can share the code that you are using to output the PDF. (No need to share your HTML content code)

Regards,

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Regards
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tatachiblob

79499458

Date: 2025-03-11 01:01:08
Score: 9 🚩
Natty: 6
Report link

Did you ever find the answer to this? I am struggling with this presently.

Reasons:
  • Blacklisted phrase (1): answer to this?
  • Blacklisted phrase (1): I am struggling
  • RegEx Blacklisted phrase (3): Did you ever find the answer to this
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: grove188

79499438

Date: 2025-03-11 00:39:04
Score: 1.5
Natty:
Report link

The solution is very simple,

just when this error shows while trying to push file/files

do 'git push' again, it works!

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eslam Seadawi

79499435

Date: 2025-03-11 00:38:04
Score: 1
Natty:
Report link

Xcode Version 16.2/iOS 13 with view animation

@IBAction func keyPressed(_ sender: UIButton) {
        playSound(soundName: sender.currentTitle!)
        sender.alpha = 0.5
        UIView.animate(withDuration: 0.2) {
            sender.alpha = 1
        }
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Javier Rivero

79499429

Date: 2025-03-11 00:31:03
Score: 3.5
Natty:
Report link

you just need too save the other file before calling any function from another file

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

79499425

Date: 2025-03-11 00:29:02
Score: 4
Natty:
Report link

Running your script directly in the R console (instead of within RStudio) might help, as RStudio can sometimes introduce additional memory overhead or restrictions. Are you on Windows?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Adna Zujo Lakisic

79499419

Date: 2025-03-11 00:22:01
Score: 2
Natty:
Report link

The issue was an incompatibility between my cluster's filesystem and the caching behavior. using the --cache_dir flag to point at the worker node's tmp

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

79499417

Date: 2025-03-11 00:18:00
Score: 4
Natty: 3.5
Report link

check out mine sudoku solver , it handle such as error

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

79499414

Date: 2025-03-11 00:15:59
Score: 5
Natty:
Report link

thank you very much Magdalena. we realize that the CSS isnt influencing the export and adding the styling via attributes does the trick

best regards

edwin

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): best regards
  • Blacklisted phrase (1): regards
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: edwin.koh

79499410

Date: 2025-03-11 00:14:59
Score: 0.5
Natty:
Report link

Install Powershell 7 see this article

winget search Microsoft.PowerShell
winget install --id Microsoft.PowerShell --source winget
Reasons:
  • Blacklisted phrase (1): this article
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: YMH

79499409

Date: 2025-03-11 00:13:58
Score: 0.5
Natty:
Report link

Django’s default authentication backend (ModelBackend) expects username as the identifier. However, when a custom user model defines email as USERNAME_FIELD, Django does not recognize it during authentication.

To fix this, a custom authentication backend must be implemented as rightly highlighted by @7berlin above.

Step 1: Create a Custom Authentication Backend

Create a new file inside an appropriate app (e.g., users/auth_backend.py) and add:

from django.contrib.auth.backends import ModelBackend
from django.contrib.auth import get_user_model

UserModel = get_user_model()

class EmailBackend(ModelBackend):
    """
    Custom authentication backend to authenticate users using email instead of username.
    """

    def authenticate(self, request, email=None, password=None, **kwargs):
        if email is None or password is None:
            return None

        try:
            user = UserModel.objects.get(email=email)
        except UserModel.DoesNotExist:
            return None

        if user.check_password(password) and self.user_can_authenticate(user):
            return user

        return None

Step 2: Register the Custom Authentication Backend

Modify settings.py to tell Django to use this custom authentication backend:

AUTHENTICATION_BACKENDS = [
    'users.auth_backend.EmailBackend',  # Adjust path based on the project structure
    'django.contrib.auth.backends.ModelBackend',  # Keep Django's default
]

Why keep ModelBackend?

If Django’s default authentication (e.g., admin login with username) is still required, keeping ModelBackend as a fallback is a good practice.

Step 3: Update the Login Function

Modify the view handling authentication to use the new backend:

from django.contrib.auth import authenticate, login
from django.contrib.auth.models import update_last_login
from rest_framework.response import Response
from rest_framework.decorators import action
from rest_framework.permissions import AllowAny

@action(detail=False, methods=["post"], permission_classes=[AllowAny])
def login(self, request):
    email = request.data.get("email")
    password = request.data.get("password")

    user = authenticate(request, email=email, password=password)  # Now works correctly
    if user:
        login(request, user)
        update_last_login(None, user)  # Updates last login timestamp
        return Response({"message": "Login successful!"})

    return Response({"error": "Invalid credentials"}, status=401)

Step 4: Restart the Django Server

After making these changes, restart Django to ensure the new authentication backend is applied:

python manage.py migrate
python manage.py runserver

Expected Outcome:

Additional Debugging Tips

If login still fails, check the following:

  1. Ensure migrations are applied (python manage.py migrate)
  2. Confirm that the email exists in the database
  3. Use print(user.check_password(password)) in the backend to verify password hashing
  4. Clear Django sessions (python manage.py shell → from django.contrib.sessions.models import Session; Session.objects.all().delete())

This solution was verified with the help of AI, but tested and refined manually.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @7berlin
  • Low reputation (0.5):
Posted by: krtk30

79499408

Date: 2025-03-11 00:13:58
Score: 3
Natty:
Report link

Select2 V.4.0.8

$('#dropdown_name').select2({ width: '100%', dropdownAutoWidth: true });

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

79499399

Date: 2025-03-11 00:03:57
Score: 3
Natty:
Report link

I experienced this issue and found the cause was importing vitest in the .stories file. Removing vitest as an imported dependency fixed the issue.

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

79499392

Date: 2025-03-10 23:57:55
Score: 11
Natty: 7.5
Report link

I have the same problem, if i change any configuration with the visual tool it brokes the file. Any suggestion?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (2): Any suggestion?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sebastian

79499382

Date: 2025-03-10 23:48:53
Score: 0.5
Natty:
Report link

This worked for me

override func loadView() {
    super.loadView()
    createWebView()
}
Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29962222

79499379

Date: 2025-03-10 23:44:52
Score: 1.5
Natty:
Report link

Based on my understanding, the term "buffer" generally refers to a temporary storage space used to reduce the difference between input speed and output speed.

A buffer can be analogized as a bucket that collects rainwater. Even after the rain has stopped, we can still take water from the bucket.

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

79499365

Date: 2025-03-10 23:30:50
Score: 2.5
Natty:
Report link

Another simple way in pySpark of get the first value in a cell from a column in a pyspark Dataframe is:

myDF.first()["myColumn"]

this will give you the first value

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

79499361

Date: 2025-03-10 23:27:49
Score: 3
Natty:
Report link

Thanks all for the inputs and helps. I have not able to resolved this but there is a change of direction that we are to use front-end react implementation instead of optimising via backend implementation. React optimisation is also free.

Please close this question.

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

79499358

Date: 2025-03-10 23:25:49
Score: 0.5
Natty:
Report link

When you have an object property such as public UserDto Creator , this gets added to the generated OpenAPI schema as a $ref.

As per this issue, "In OpenAPI 3.0.x, in order to combine a $ref with other properties, the $ref needs to be wrapped into allOf"

I found the simplest solution was to add the below to the SwaggerGen initialization:

builder.Services.AddSwaggerGen(options =>
{
    ...
    options.UseAllOfToExtendReferenceSchemas();
}

Swashbuckle will then wrap the $ref in an allOf, and correctly set readOnly to true.

One issue with the accepted answer is that the UserDto object will be readOnly everywhere in the schema, not just for the BlogDto object. This can be a problem if you also need to specify an API for creating a UserDto, in which case the object would not appear in a POST request in the UI.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you have an
  • Low reputation (1):
Posted by: Tom Dron

79499355

Date: 2025-03-10 23:23:48
Score: 3
Natty:
Report link

im my case the problem was the mapper that not map the other proprerties when return to resource

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

79499353

Date: 2025-03-10 23:22:48
Score: 0.5
Natty:
Report link

Obviously it is possible to set up offline maps using a node.js web server to provide tiles from an .mbtiles file. However, I managed to set it up without any server. I used @capacitor-community/sqlite to extract tiles and serve them to openLayers. My code is

--- map.page.ts ----

async createMap() {
(...)
case 'offline':
  credits = '© MapTiler © OpenStreetMap contributors'
  await this.server.openMbtiles('offline.mbtiles');
  const olSource = await this.createSource();
  if (!olSource) return;
  olLayer = new VectorTileLayer({ source: olSource, style: vectorTileStyle });
break;
(...)
// Create map
this.map = new Map({
  target: 'map',
  layers: [olLayer, this.currentLayer, this.archivedLayer, this.multiLayer],
  view: new View({ center: currentPosition, zoom: 9 }),
  controls: [new Zoom(), new ScaleLine(), new Rotate(), new CustomControl(this.fs)],
});
(...)

createSource() {
  try {
    // Create vector tile source
    return new VectorTileSource({
      format: new MVT(),
      tileClass: VectorTile,
      tileGrid: new TileGrid({
        extent: [-20037508.34, -20037508.34, 20037508.34, 20037508.34],
        resolutions: Array.from({ length: 20 }, (_, z) => 156543.03392804097 / Math.pow(2, z)),
        tileSize: [256, 256],
      }),
      // Tile load function
      tileLoadFunction: async (tile) => {
        const vectorTile = tile as VectorTile;
        const [z, x, y] = vectorTile.getTileCoord();
        try {
          // Get vector tile
          const rawData = await this.server.getVectorTile(z, x, y);
          if (!rawData?.byteLength) {
            vectorTile.setLoader(() => {});
            vectorTile.setState(TileState.EMPTY);
            return;
          }
          // Decompress
          const decompressed = pako.inflate(new Uint8Array(rawData));
          // Read features
          const features = new MVT().readFeatures(decompressed, {
            extent: vectorTile.extent ?? [-20037508.34, -20037508.34, 20037508.34, 20037508.34],
            featureProjection: 'EPSG:3857',
          });
          // Set features to vector tile
          vectorTile.setFeatures(features);
        } catch (error) {
          vectorTile.setState(TileState.ERROR);
        }
      },
      tileUrlFunction: ([z, x, y]) => `${z}/${x}/${y}`,
    });
  } catch (e) {
    console.error('Error in createSource:', e);
    return null;
  }
}

---- server.service.ts -----

async getVectorTile(zoom: number, x: number, y: number): Promise<ArrayBuffer | null> {
  console.log(`🔍 Trying to get vector tile z=${zoom}, x=${x}, y=${y}`);
  if (!this.db) {
    console.error('❌ Database connection is not open.');
    return null;
  }
  // Query the database for the tile using XYZ coordinates
  const resultXYZ = await this.db.query(
    `SELECT tile_data FROM tiles WHERE zoom_level = ? AND tile_column = ? AND tile_row = ?;`,
    [zoom, x, y]  
  );
  if (resultXYZ?.values?.length) {
    console.log(`✅ Tile found: z=${zoom}, x=${x}, y=${y}`);
    const tileData = resultXYZ.values[0].tile_data;
    // Ensure tileData is returned as an ArrayBuffer
    if (tileData instanceof ArrayBuffer) {
      return tileData;
    } else if (Array.isArray(tileData)) {
      return new Uint8Array(tileData).buffer; // Convert array to ArrayBuffer
    } else {
      console.error(`❌ Unexpected tile_data format for ${zoom}/${x}/${y}`, tileData);
      return null;
    }
  } else {
    console.log(`❌ No tile found: z=${zoom}, x=${x}, y=${y}`);
    return null;
  }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Filler text (0.5): --------
  • Low reputation (1):
Posted by: Enric Terradellas

79499350

Date: 2025-03-10 23:20:47
Score: 0.5
Natty:
Report link

thanks guys for help,here is my take(from your ideas,incorporating incompatibilities vim<>sed)

i needed to delete lines(and not keep empty spaces) in owntracks logging where accuracy was higher than 400(i might refine later) inside .rec files:

sed -Eiz '/^.*\"acc\"\:([4-9][0-9][0-9])|([0-9]{4,})\}/d' *.rec

hope this helps someone edit: -E for [0-9] matching,-i for inplace edit,-z probably not usefull

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): i need
  • Whitelisted phrase (-1): hope this helps
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pavel Brand

79499346

Date: 2025-03-10 23:14:46
Score: 1
Natty:
Report link

When the engine executes bytecode, the C++ handlers stack up on the C++ call stack. At the same time, V8 maintains a virtual representation of the JavaScript stack, which holds the state corresponding to the JS calls. Thus, even though the actual call occurs on the C++ stack through the handler functions, V8 associates a frame in its virtual JS stack with each call. In other words, the JavaScript call stack relies on the C++ stack for the physical execution of calls, but it is enhanced by an abstraction layer that allows V8 to manage optimizations and specific execution details of the JavaScript code.

This approach enables V8 to benefit from the memory management and optimization of the native stack while retaining a logical and manipulable view of the JavaScript code execution.

In summary, the JavaScript call stack is not an independent memory stack; it is implemented by leveraging the C++ stack along with an abstraction layer that provides the specialized management necessary for executing JS in either interpreted mode or when compiled by TurboFan.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Starts with a question (0.5): When the
  • Low reputation (1):
Posted by: user29962136

79499328

Date: 2025-03-10 23:04:44
Score: 0.5
Natty:
Report link

i know this late response but it could help someone
I don't know the real cause of your problem, but I recommend testing the SQL Server name first using the SQLCMD command in PowerShell. If it connects successfully, then the SQL Server name is correct, and there may be other issues to address:

  1. You might need to create the SSIS catalog (SSISDB) if it doesn't exist

  2. You may need to create the appropriate folder structure within the SSISDB

  3. Check the permissions of the user account you're using to ensure it has sufficient access rights

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

79499323

Date: 2025-03-10 22:59:43
Score: 1.5
Natty:
Report link

I kept getting the error message "TF401180: The requested pull request was not found." even though it worked fine locally using my own PAT token.

I am trying to check the status of a PR in a remote repo hosted in Azure DevOps while running a pipeline from a different repo in the same org and same project. I am using the access token of the pipeline, and the Build Service has permissions on the remote Git repo.

You can either turn off the protection for "Protect access to repositories in YAML pipelines" or review this documentation to understand it better: Secure access to Azure Repos from pipelines | Microsoft Docs.

It is probably a better option to simply checkout that other repo in your pipeline to ensure that your access token is scoped for that repo too.

settings

Reasons:
  • Blacklisted phrase (1): this document
  • Blacklisted phrase (1): I am trying to
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Josh Wright

79499309

Date: 2025-03-10 22:51:42
Score: 1
Natty:
Report link

Either Configure saml using configuration as code

or

Configure your saml using ui.

Go to configuration as code menu & copy "securityRealm" section.

Your configuration as code is stored not on disk but in jenkins-jenkins-jcasc-config configmap. Edit it (kubectl edit or kubectl get oyaml + apply) & replace local section with saml copied from configuration as code UI (add proper indents, probably 4).

Done.

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

79499304

Date: 2025-03-10 22:48:41
Score: 1
Natty:
Report link

I didn’t notice any specific typos in my code, but by navigating to my Flutter SDK installation directory and running,

git status  
git diff  

I was able to see that some changes had been made to my Flutter SDK. I discarded them using Git, and that solved the problem.

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

79499302

Date: 2025-03-10 22:47:41
Score: 1.5
Natty:
Report link

A problem occurred configuring project ':flutter_blue'.

\> Could not get unknown property 'source' for generate-proto-generateDebugProto of type org.gradle.api.internal.file.DefaultSourceDirectorySet.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Shahed Oali Noor

79499299

Date: 2025-03-10 22:45:41
Score: 1
Natty:
Report link

Try watching your property like this

const fuelCostWatch = watch('fees.fuel_costs.0');

Instead of

const fuelCostWatch = watch('fees')?.['fuel_costs']?.[0];
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Quartz_

79499295

Date: 2025-03-10 22:44:40
Score: 1.5
Natty:
Report link

Step 1: create a group-level Sum (or Max) of the 0/1 formula.

Step 2: Create a Group Selection Formula of @Group_Sum_Formula > 0
(or @Group_Max_formula = 1).

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Group_Sum_Formula
  • User mentioned (0): @Group_Max_formula
  • High reputation (-1):
Posted by: MilletSoftware

79499294

Date: 2025-03-10 22:41:40
Score: 3
Natty:
Report link

You can also use phpmyadmin to dump a MySQL database, which the puts the CREATE INDEX statements after all the data tables.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: D.j. Molny

79499279

Date: 2025-03-10 22:25:37
Score: 1.5
Natty:
Report link

Everyone made some good comments and helped me find my issue, the printf was an indicator that somewhere else in my code that was wrong. What I found out is that there was a call to a timer that doesn't exist due to a poor code clean up, leading the watchdog timer to immediately trigger a cleanup on something that is null.

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

79499278

Date: 2025-03-10 22:25:37
Score: 4.5
Natty: 5.5
Report link

Thanks for this. It helped me configure my application.

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

79499264

Date: 2025-03-10 22:13:34
Score: 0.5
Natty:
Report link

I don't think there is a way you can do this reliably. As soon as you manually put focus on the invalid input, the screen reader is going to stop announcing your list of errors in the live region and announce the input you focused. You could put a delay on the focus to give the screen reader a chance to announce all of the errors in the live region, but then you'll be guessing how long that will take.

One common method for announcing a list of errors is to move focus to the list and make each error message a link to its input. You could also not move the focus at all and just add the errors to the live region. Also, creating a master list of errors is not required. You can just add the error messages to their inputs and put focus on the first invalid input. If you are going to do a master list then I would recommend you move focus to it and add links to the inputs.

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

79499245

Date: 2025-03-10 22:05:32
Score: 1
Natty:
Report link
def is_installed(pkg):
    try:
        __import__(pkg)
        return True
    except ImportError:
        return False

if is_installed("foo"):
    print("Foo installed")
else:
    print("Foo not installed")

This code defines a function that checks if a package is installed using __import__

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

79499237

Date: 2025-03-10 21:56:30
Score: 1
Natty:
Report link
--Prior year begin and end date
    SELECT TO_DATE(EXTRACT(YEAR FROM SYSDATE)-1 || '-01' || '-01') AS Begin
        ,ROUND(SYSDATE, 'YEAR') -1 AS End
    
    FROM DUAL
;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: FriskyKitty

79499235

Date: 2025-03-10 21:54:30
Score: 7.5
Natty: 7
Report link

currently in the same situation. Was there a solution? If so, can you please share with me?

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): can you please share
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: ssesq98

79499227

Date: 2025-03-10 21:49:29
Score: 1.5
Natty:
Report link

I solved the problem by creating a big canvas and small text in canvas and than i cut it with shaders.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bn'R

79499219

Date: 2025-03-10 21:46:28
Score: 3
Natty:
Report link

I have this same problem and my clipboard history is already off. Something else is at play here. From a different message I learned that the macro only fails when called by an on-screen button. Calling the macro from the Macros box seems to work fine.

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

79499211

Date: 2025-03-10 21:43:27
Score: 6 🚩
Natty:
Report link

Can we add IP range in the allowed IPs list instead of individual IPs?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can we add
  • Low reputation (1):
Posted by: user2647367

79499206

Date: 2025-03-10 21:41:25
Score: 1.5
Natty:
Report link

It's still a problem today. I tried everything. On web is works fast, on mobile scroll is bad. What is interesting that on the same screen it's sometimes almost good and sometimes very laggy.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Shakle

79499202

Date: 2025-03-10 21:37:25
Score: 1
Natty:
Report link

Sorry for the late response. If anyone is encountering this issue with Deno 2 after running:

deno run -RWE npm:create-vite-extra@latest

and selecting deno-svelte as the template, the simplest fix is to update the file extension from svelte.config.js to svelte.config.ts

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

79499199

Date: 2025-03-10 21:36:24
Score: 0.5
Natty:
Report link

BusyBox uses sh -c differently, and tini is trying to execute the whole command as a binary rather than passing it to the shell.

Modify command like this:

command: ["/bin/sh", "-c", "mkdir -p /usr/local/unbound/cachedb.d && chown -R 1000:1000 /usr/local/unbound/cachedb.d/"]
services:
  unbound-db-socket:
    image: busybox:latest
    container_name: unbound-db-socket
    init: true
    tty: true
    command: ["/bin/sh", "-c", "mkdir -p /usr/local/unbound/cachedb.d && chown -R 1000:1000 /usr/local/unbound/cachedb.d/"]
    volumes:
       - "cachedb.d:/usr/local/unbound/cachedb.d/"

volumes:
  cachedb.d:

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

79499196

Date: 2025-03-10 21:35:24
Score: 1
Natty:
Report link

Mantine now supports transformation in forms (https://mantine.dev/form/values/#transformvalues).

You can easily substitute values like that :

const form = useForm({
    initialValues: {
        status: 0,
    },
    transformValues: (values) => ({
        status: Number(values.status) || 0,
    }),
});

<NativeSelect
    description="Status"
    data={["0","1","2"]}
    {...form.getInputProps('status')}
/>
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yann Bizeul

79499172

Date: 2025-03-10 21:22:21
Score: 1
Natty:
Report link

Is your goal to get a list of the values in your id column? you can cast your Series to a list if that is the case. ids = list(row['id']) Then you will get something like [1, 2, 3, 4] with your values from your id column from the records returned by the the filtering you did with the Delete column previously.

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

79499166

Date: 2025-03-10 21:18:20
Score: 1.5
Natty:
Report link

Turns out the libraries are different depending on whether you are building libunwind from the LLVM project repository or from the other distribution.

CLang searches for the version that links with libunwind.so.1 (the one that comes with the LLVM project), while the ladder produces libunwind.so.8, which I am not sure is even compatible with clang.

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

79499164

Date: 2025-03-10 21:17:20
Score: 1
Natty:
Report link

Reduce some of the code duplication by using standard library types designed for the scenario. Use sync.WaitGroup for your scenario.

func GetJsonAsMapMultiple(urls []string) (hashmaps []Map, errs []error) {
    hashmaps = make([]Map, len(urls))
    errs = make([]error, len(urls))
    var wg sync.WaitGroup
    wg.Add(len(urls))
    for i, url := range urls {
        go func() {
            defer wg.Done()
            hashmaps[i], errs[i] = GetJsonAsMap(url)
        }()
    }
    wg.Wait()
    return
}
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Antony Blinken

79499157

Date: 2025-03-10 21:11:19
Score: 0.5
Natty:
Report link

You will need to first access the Start_Part key value pair if you want to get to 'A5E02578419'. The value for the Start_Part key is a list, of which one of the elements is 'A5E02578419'.

If you want to get 'A5E02578419':

myDictionary.get('Start_Part', [])[0]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: twrought