instruction
stringlengths
0
30k
|html|webrtc|video-streaming|
I am writing a program that embeds Deno however Deno has a lot of dependencies that are using static versions which conflict with the dependencies I have in my main project. To get around this I'm wondering if it's possible to compartmentalize my Deno integration into a seperate crate in my workspace that builds a d...
Can I compartmentalize dependencies of a crate within a local dynamic rlib?
|rust|
Checkmarx CxSuite is a unique source code analysis solution that provides tools for identifying, tracking, and repairing technical and logical flaws in the source code, such as security vulnerabilities, compliance issues, and business logic problems. Without needing to build or compile a software project's source co...
From what it looks like this your trying to put this at the bottom of your page, if that's the case it might be easiest to put in your CSS the attribute position and assign it to absolute and then in the attribute bottom to 0px <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang...
I have a dataframe which includes the following variables: `covid alert date`, `vax dose 1` to `vax dose 5` (these are vaccine brands), `date dose 1` to `date dose 5` (these are the vaccination dates). The dataset includes all covid vaccines they have ever received however I really only want to keep the vaccine bran...
https://docs.coqui.ai/en/latest/tutorial_for_nervous_beginners.html TTS demo in winodw Excute ``` set CUDA_VISIBLE_DEVICES=0 & python train.py ``` this is error message ``` RuntimeError: An attempt has been made to start a new process before the current process has finished its boot...
use tts demo but prompt file occupation
|text-to-speech|coqui|
null
def function1(dd:pd.DataFrame): if dd.pipe(len)<2: return dd.assign(tdiff='off',accum=0) else: dd1=dd.assign(tdiff=1,accum=range(0,dd.pipe(len))) dd1.loc[dd.index.min(),'tdiff']=pd.NA return dd1 col1=df1.state.ne(1).cumsum() df1.a...
{"Voters":[{"Id":44729,"DisplayName":"genpfault"},{"Id":1974224,"DisplayName":"Cristik"},{"Id":466862,"DisplayName":"Mark Rotteveel"}],"SiteSpecificCloseReasonIds":[13]}
I want to fetch the child user ID based on the parent ID. I have found a solution https://stackoverflow.com/questions/45444391/how-to-count-members-in-15-level-deep-for-each-level-in-php but am getting some errors. I have created a class - ``` <?php Class Team extends Database { private $dbConnect...
This question is a continuation of my previous one about https://stackoverflow.com/questions/78218233/re-binding-the-selectinput-of-a-datatable-after-being-updated. So, I made quite some progress on this app and I have reached a result that perfectly fits my needs. The app correctly updates the target database and ...
DataTable not diplaying correctly after being updated
|r|shiny|dt|shiny-reactivity|shinywidgets|
in way of optimization i decide to init push in other process, its works well in android 10 and higher but push isnt showen in lower versions of android i need it works well in all android versions this is my manifest code ``` <receiver android:name="com.google.firebase.iid.FirebaseInstanceIdRece...
Further digging into the documentation there is an attribute 'autoalign' which I need to set to false when creating the TableView
I got it to work! Go to https://build.docker.com/accounts/YourAccountName/builders Define a new builder there. Then try the create again with the name of the builder you just defined!
There Some doubts about used RDBMS. I will offer a solution without using regexp. ``` select id,words ,string_agg(w,'-' order by rn) newWords from( select * ,row_number()over(partition by id order by (select null)) rn ,count(*)over(partition by id order by (select null)) cnt from(sele...
I am trying to call a function included in the C standard library (namely, `puts`, but it shouldn't matter) from an assembly program. Creating an object file from the assembly code works but the linking stage does not. As I am a complete beginner on assembly programming I am basically unable to even interpret the error...
|c|assembly|x86-64|nasm|linker-errors|
I am using azure-devops-migration-tools to migrate from TFS 2017 to Azure Devops SERVER 2022. I have some questions. 1) Validation - Not all Test plans are migrated. Trying to come up with a way of quickly verifying all the Test Plans and Test Suite have been migrated. A Query in the source shows more test plans / s...
azure-devops-migration-tools and having difficulty validating results and it is not updating previously migrated Test Configurations
|azure-devops-migration-tools|
null
my task is to create drag and drop interface, where user drags an element, which changes its appearance during that short amount of time - till it is dropped in its destination. I would like to do it with native Web API. I have found the event called "dragstart" in [MDN Documentation][1]. And prepared this [fiddle][...
I'm currently confused about windows and states. Suppose I have a program that counts user access data every minute and needs to do sum statistics in each window. Assume that at this time, I configure checkpoint for the fault tolerance of the program. The checkpoint configuration is to trigger every 30 seconds. Then wh...
I want to be able to measure any code snippet time complexity. Is there a general rule or step by step approach to measure any big o (besides dominant term, removing constants and factors)? What math skills should I have, if so, what are the prerequisites for those skills? Here is one of those: ``` int fun(...
How to find big o of dependent loops and recursive functions?
|algorithm|time-complexity|big-o|complexity-theory|
null
The `cy.stub()` command uses Sinon under the hood, so the first thing you need is the [sinon types](https://www.npmjs.com/package/@types/sinon): ```js npm install --save @types/sinon ``` and add in **tsconfig.json** ```js { "compilerOptions": { ... "types": ["cypress", "@testing-library/cypress...
I am using an old shader used for a character model from the Unity asset store that has depreciated. The asset has been made free and some people have put out some updated versions but no one has put out a shader that works in VR without enabling the multipass. I have looked at Unity's guide for amending shaders for...
UNITY_VERTEX_INPUT_INSTANCE_ID use in custom shader
|c#|unity-game-engine|shader|mcs|
null
`idx.get_level_values` seems to be the fastest. However, since MultiIndexes are iterables, an easy way would be to use [`zip`](https://docs.python.org/3/library/functions.html#zip): ``` out = list(zip(*idx)) ``` Output: `[('A', 'A', 'B', 'B'), ('C', 'D', 'C', 'D')]` As lists: ``` out = list(map(list, zip(*i...
{"Voters":[{"Id":12265927,"DisplayName":"Puteri"},{"Id":466862,"DisplayName":"Mark Rotteveel"},{"Id":354577,"DisplayName":"Chris"}],"SiteSpecificCloseReasonIds":[18]}
I'm working on a blog in Astro, and I'm trying to render the markdown from the blog post to HTML in using @astropub/md? **Sample markdown blog post** ```md --- title: Sample image meta: description: This is a simple post to say hello to the world. pubDate: 2024-03-28 --- ![an image](./images/mountain.j...
null
VSCode happily supports this starting in January 2024 (version 1.86). See https://code.visualstudio.com/updates/v1_86#_review-multiple-files-in-diff-editor. Note the `...` menu with the "Inline View" toggle item seems to be missing though for "multi diff". So to get inline view you need to add ` "diffEditor.rende...
The reason for the error was I put the following code inside the for loop. After moving the code outside the loop, the only thing I changed was the code from: ``` $d = DateTime::createFromFormat("Y-m",$current_date); ``` to: ``` $d = DateTime::createFromFormat("Y-m-d",$current_date); ```
null
You create a `Proxy` with two parameters: * **target**: the original object which you want to proxy * **handler**: an object that defines which operations will be intercepted and how to redefine intercepted operations. The objects entries are called "traps". This is analogous to the concept of _traps_ in operating sy...
null
|cookies|proxy|reverse-proxy|http-proxy|forward-proxy|
So i have managed to store my image on firebase storage from my node js backend and storing the link to that image in my database also but when I try to go to the URL where my image is stored I get the error in the image attached so looked it up and tried changing my rules for my storage to allow read from all but stil...
You can do this, and I have managed to do it successfully. But it takes some effort. Here are some things I would suggest keeping in mind. 1) Figure out the Image format that you are extracting from. If you do a binwalk on `bzImage`, you'll see compressed images at various locations. 2) manually extract the kernel ...
You can delete a endpoint using the python azure ml sdk from azureml.core import Workspace, Webservice service = Webservice(workspace=ws, name='your-service-name') service.delete() Then if you want to re create you can re deploy the model from azureml.core.model import InferenceConfig ...
When you change the display of graph type to "Report" type, a different real time log window appears where _Total is replaced (continuously) by a real number.
I am porting some code that defined tty_ldisc_ops.ioctl() as: ```` static int ...ldisc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) ```` But the current spec (https://docs.kernel.org/driver-api/tty/tty_ldisc.html#id3) is: ```` static int ...ldisc_ioctl(struct tty_s...
Was there a previous version of tty_ldisc_ops.ioctl() that also required a file argument?
|tty|ioctl|
I am working on a web api that consumes Spotify API and I can't make the call for the search endpoint. It's my first time making an API consumes other and also my first time using stack overflow, so I really dont know how to explain to you guys but I will pass part of the code that I think its important ``` @Rest...
After following this doc https://github.com/Azure/azure-search-vector-samples/blob/main/demo-python/code/azure-search-vector-python-sample.ipynb I am trying to upload documents that are stored in a json format. When trying to run this command search_client = SearchClient(endpoint=service_endpoint, index_n...
- `tempArray will have more items in it, both longer and shorter pause` You don't have to keep maintaining the list. - ***Assuming*** there are no more than two consecutive square brackets (eg. `[[[`) in the document, otherwise, additional code would be needed to handle it. - The code replaces all instances in Wo...
{"Voters":[{"Id":2852165,"DisplayName":"SHR"}],"DeleteType":1}
|python|computer-vision|face-detection|
I have a monorepo with the following directory structure ``` backend/ frontend/ .vscode/ extensions.json ``` However, I would like to conditionally recommend an extension for the `frontend` project, when someone works on that. Is that possible? If yes, how? I have tried creating a `.vscode/extens...
Is there a way to specify recommended VSCode extensions for a subproject in a monorepo?
|visual-studio-code|vscode-extensions|
null
I got caught up on the Class being Bluetooth. It turns out my bluetooth headset stored the battery info in a device in the System Class. I found a way to filter to find the right device basically like Lockzsmith. Like for a jabra device you might do this: Get-PnpDevice -FriendlyName '*jabra*' | Select-Object Class,F...
null
Dafny is a programming language with built-in specification and verification constructs.
null
Supabase auth sessions are stored client-side, so in theory clearing local storage without calling your logout API endpoint should suffice. However the downside is that if the user is logged in on multiple devices, this will only log them out on the current one. Ideally yes, you would have the Supabase client on yo...
I concur with the point mentioned by @eliasah. You can implement checkpointing to improve the performance of the long lineage that is created. Additionally I would suggest you containerize the `List[(DataFrame, Seq[String], String)]` into a case class so that there is readability, type safety as the compiler will ca...
Find information about third-party cookie blocking in Chromium-based browsers at https://developers.google.com/privacy-sandbox/3pcd.
null
[![picture of the white space][1]][1] I want to make the white space around flex items smaller. This is essentially a parent flex box with child flex boxes. Here's my code: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-css --> .contain { width: 100vw; ...
Calling search endpoint for Spotify API in java
|java|spring-boot|api|spotify|webapi|
null
Firstly, I'm so sorry if this is a dupplicated question. let's say I have a simple python code named decorator.py with decorator here: ```python `def decorator(func): def wrapper(): print("Before function.") val = func() print("After function.") return val return wrapp...
different between "return func" and "return func()"
|python-3.x|function|variables|scope|python-decorators|
null
I am learning about design patterns in Python and wanted to combine the abstract factory with the delegation pattern (to gain deeper insights into how the pattern works). However, I am getting a weird recursion error when combining the two patterns, which I do not understand. The error is: [Previous line r...
How can I render images from markdown to HTML in Astro using @astropub/md?
|vite|astrojs|astro|
null
Here is the complete content of my .pro file (I have specified to add the network module): ``` QT += quick virtualkeyboard network # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disab...
class app : Application(), androidx.work.Configuration.Provider { override val workManagerConfiguration: androidx.work.Configuration get() = androidx.work.Configuration.Builder().setJobSchedulerJobIdRange(....).build()
I want to launch the touchpanel calibration program from within my application I'm developing. I am able to launch **MultiDigiMon** from regular cmd but I can't get it to work in the elevated Embarcadero IDE using `system("start C:\\Windows\\System32\\MultiDigiMon.exe -touch");` command. Any ideas what may be t...
Start a program from System32 in C++ Builder 11
|touch|c++builder|calibration|
Its because of the `*` which is a quantifier that allows for zero occurrences, meaning it can also match empty strings, change it to `+` which is quantifier for one or more occurrences of the preceding element <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> cons...
null
null
null
null
It appears you are handling the provider context wrong, instead of storing the context in a variable and using it later, consider using a callback or a notifier to trigger changes in your provider, something like this: import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; imp...
I got caught up on the Class being Bluetooth. It turns out my bluetooth headset stored the battery info in a device in the System Class. I found a way to filter to find the right device basically like Lockzsmith. Like for a jabra device you might do this: Get-PnpDevice -FriendlyName '*jabra*' | Select-Object Cla...
So, i wanted to make a website to change the font of the text that you enter in, basically like lingojam.com. I did make it but for some reason only some fonts are working and i have no idea why, can anyone help? sorry for the bad code, i am new to javascript, svelte, html etc ``` <script> let fonts = {1:{'abcde...
Solution: #include <sys/wait.h> #include <sys/mman.h> #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <time.h> #include <semaphore.h> #include "macros.h" #define SHM_NAME "/shm111" #...
Previously, Visual Studio Code was correctly applying formatting on save as specified in a _.clang-format_ file. However, recently (sometime in the last month or so) this broke on a case-sensitive file system. The following is what is getting printed in the output console when I try to format the file _myCamelCaseFil...
**UPDATE: 2023** You will need `s3fs` to be installed as that's what pandas uses now. This will most probably be a permission issue with either your IAM configuration or the way you're calling `boto3` not configured properly. Also depends if it's running locally, on an ec2 etc. **OLD ANSWER** Pandas uses `bo...