Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Search
Take the newly Temporal.PlainDate class as an example. New instances can be created via the constructor: new Temporal.PlainDate(year, month, day) new Temporal.PlainDate(year, month, day, calendar...
Based on the activity here and discussion in chat, I've enabled MathJax on this community. I don't know Mathjax myself, so as verification, I'm copying some Math I found in this Mathematics post: ...
Continuing from What is the advantage of creating instances from a method rather than constructor?, I want to construct a method that create a new instance of a class without using the constructor....
This question is about the general case of subprocess-exited-with-error. It's intended to help you understand the situation if you get an error like this, and there are some common workarounds - ...
I think this is a judgment call. If the answerer appears to be a human, you can caution them with How We Do Things Around Here and edit the answer. If they do it again (and this user has)...
These are my theories, but I'm not particularly excited about either of them. Something to see They need something to show when you visit the website's index. Otherwise, https://www.github.com/yo...
Blow it away if it's truly spam (the link is unrelated to the question topic). Any user who posts blatant spam should be disabled or deleted too. If the link is proplerly labeled and goes to a pr...
I'm currently working on an architecture for a microservices-based platform and I would like to get some feedback in this regard — best way to handle integrations between the internal microservices...
Does the Rate limit (Tokens per minute) of an Azure OpenAI instance corresponds to the input tokens, the output tokens or the sum of both? Crossposted at: https://serverfault.com/q/1176440/...
I figured out a solution myself. I'm not a zsh expert so this may be improved, but it works. 1) make a custom completion file for the diff command The completion file that zsh uses for the diff ...
I follow Azure's tutorial on fine-tuning GPT. I'm stuck at the deployment phase. Code: # Deploy fine-tuned model import json import requests token = '[redacted]' subscription = '[redacted...
I have several resource groups and instances in my Azure account. Yet, the Azure Command-Line Interface (CLI) lists no groups and no resources in my Azure account: franck [ ~ ]$ az group list [] ...
I don't think there exists a straightforward solution. Likely you can achieve this with rules but you'll have to define and finetune them on each of the jobs. (template jobs may help a bit here.) ...
I've seen many examples of Python scripts that include a line that says: if __name__ == '__main__': Sometimes the following block contains a bunch of code, but other times it just makes a singl...
venv is indeed part of the standard library. However, some Linux distros modify Python to exclude some parts for various reasons, and venv might be among them. On Debian-based Linux distros you ...
From PureScript's Data.Functor.Invariant documentation (emphasis mine): A type of functor that can be used to adapt the type of a wrapped function where the parameterised type occurs in both the...
I already know that the pip command might not correspond to the same Python that python runs. But in my case, it seems not to exist at all. I can't even run it as a Python module: $ python -m pip ...
I tried installing package-installation-test[1] using Pip, and it appeared to be successful. But I can't use it as advertised, either by itself or by importing it from my code: Failed attempts ...
At startup, Python loads the sys standard library module (without waiting for any code to import it) and sets up several useful values. Among these is sys.argv, which stores command-line arguments ...
In many other programming languages, the execution of code starts in a specifically named function (such as main) which is expected to have a specific signature, which allows that function to recei...
Whenever Python loads code from a .py file, that code gets its own namespace for global variables - so they're not truly global, but per-file values. (When you look at an imported module "from outs...
As per the troubleshooter I updated to the latest SDK Platform Tools (35.0.1) and it detected the device. The Xenial VM has 35.0.0 so I'm not convinced, but it's working.
First, we need to define some semantics. While it may not matter for your actual inputs, I propose that it should be valid for the output elements - the parts of the text found outside of brackets ...
Python has inbuilt list filtering syntax: l = [1,3,5,6,7,8] trimmed_list = [item for item in l if item > 4]
The pip freeze command may output individual dependencies with format zipp @ file:///Users/abcxyz/work/recipes/ci_py311/zipp_1677907997878/work Using this output will not work (unless you happen ...