instruction stringlengths 0 30k ⌀ |
|---|
1. Sure you did not update accidentaly to 4.27.**3** or later? I got exactly your problem, after I installed the 4.28.0 Version - see below...
2. You need Hyper-V enabled for this. If you are using Windows Home Edition (check with PWS `Get-WindowsEdition -Online`, which should answer at least `Edition : Professional... |
How can I emulate Microsoft Excel's Solver functionality (GRG Nonlinear) in python? |
|python|machine-learning|statistics|non-linear-regression| |
null |
I am relatively new to the web development and I am writing backend for webapp for practicing chemical elements and compounds and their formulas in our school. I am using Django and Django Rest Framework. I have encountered a dilemma where I can't decide whether to use GET method or POST method. In frontend it requests... |
Should i use GET or POST for request with body in DRF? |
|django|django-rest-framework|django-views|backend|http-method| |
Did you look at the details of the [error][1]?
> Causes:
>
> - The column name list must be specified following the table name of the common table expression. &1 is the common table expression name.
> - The sequence column name and the set cycle column name cannot be referenced in the column list of the recurs... |
{"Voters":[{"Id":6243352,"DisplayName":"ggorlen"},{"Id":9214357,"DisplayName":"Zephyr"},{"Id":7599833,"DisplayName":"Helder Sepulveda"}],"SiteSpecificCloseReasonIds":[13]} |
I have an Azkaban executor server process, which is a Java service.
I noticed that when running a random sleep script, the CPU usage becomes very high, consistently exceeding 2000%, and the "top" command shows high sys usage.
I captured a jstack file hoping to analyze the cause, but I found that many of the sta... |
The snippet below is suppose to add and remove event listener `handleBeforeUnload`. On checking the browser console I see the "inside else" getting printed however loading the page still throws the alert.
Any ideas why the event listener might not be getting removed?
```
useEffect(() => {
const handleBefor... |
I have a sheet that I am collecting data from, I have part of the data that is 7 rows and part is only 1. I would like to append the data from the singular rows 7 times to match the 7 rows. Currently using set values but this only transfers singular row.
current outcome desired outcome data collection sheet
```
... |
Appending data from data source (single row) into multiple rows within specified sheet |
|google-sheets|google-apps-script| |
null |
I'm trying to integrate a existing DLL project (3rd party dependencies) to Blank UWP. The Blank App project build fine but throws error when it is lauched.
In Event Viewer, log suggests Error code: The app didn't start.. Activation phase: COM ActivateExtension.
Below is the article about "How to: Use existing C++... |
If you initialize a structure pointer to NULL, and try to change its members, is that what you call undefined behaviour(UB)?
I have this code:
#include <stdio.h>
typedef struct aStructure {
int testInt;
}aStructure;
int main(void) {
aStructure * a=NULL;
a-... |
Initialize a structure pointer to NULL, then try to change its members |
I have an Enum that I already use for multiple other purposes, however in those cases I use the Enum like a public variable of the class meaning I can access it like `EntityManager.FAll`.
However, in the new use case I have for it I want to use the Enum in that class as a function parameter of another class's function... |
for kali linux or oher debian `sudo apt purge code-oss` remove the existing vscode
sudo apt-get install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/p... |
I'm encountering an issue with the QR code scanner on my iPad 7th Gen running ipadOS 17.4. While the scanner seems to be functioning normally on the latest iPad 10th Gen (also on ipadOS 17.4), it's not working at all for ipad 7th gen (ipadOS 17.4) on my device.
It's possible that this problem affects other iPad mode... |
Here are 2 vanilla examples of inserting a "menubar" which provides additional choices in the standard "choose from list" menu...
[1] This activates a secondary menu from the top menu item.
```
return my choosefromList(lst)
property lst : ("
1
2
3
")
property prev : {}
on choosefromList(lst)
repeat
... |
I have a basic express app. Providing token based auth. Dealing with zod to create a schemas to validate the incoming data.
Saying I have two schemas:
- createuserSchema {firstname, lastname, email, pass, passConfirm}
- loginUserSchema {email, pass}
Zod allows us to infer types based on our schemas like:
`type ... |
|c|pointers|struct|undefined-behavior| |
I am trying to find a proper way to query m2m data using supabase client.
I have three tables:
#### public.sites
| column | format |
|:---- |:------:|
| id | int8 |
| name | text |
#### auth.users (supabase auth table)
| column | format |
|:---- |:------:|
| .. | ... |
| id | uuid ... |
I am currently trying to create a sunburst chart using the sunburst library. Thanks to the help from [this forum][1], I was able to add an update function. Now, I always get the following error message at the transition of an ARC-element when my Datasource will be updated (image below):
<path> attribute d: Expec... |
In React Router v6, the way to specify components for routes has changed. Instead of using the `component` prop, you now use the `element` prop and pass the component as JSX.
Here's how you can adjust your App.js to conform to React Router v6 conventions:
import React from "react";
import {Routes, Route ... |
|windows|powershell|messagebox| |
With registry settings (requires admin), you could subscribe to notifications via
`HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SilentProcessExit`
Note that 32-bit programs shall subscribe under `WOW6432Node` key:
`HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\SilentProcessExit`
https... |
I got a compiled dll file (no source code) and built a nuget package out of it, so it can be distributed within our company.
If I copy the nuget package to my local nuget package store, it shows as normal release. If i deploy it to JFrog Artifactory, the same nuget package is considered as prerelease and is only shown... |
How to properly extend the generic interface with a new generic parametr using decration merging in Typescript? |
|typescript|express|merge|request|type-declaration| |
null |
The asyncio API and best practices have changed a bit. If you schedule your coroutines/futures with `asyncio.create_task()` you'll get task objects back from `asyncio.wait()`. These task objects can get you a workable frame and you can recover the arguments from there.
```
# schedule multiple instances of `my_awa... |
Imagine having a `Document` dynamically containing objects like `Header` or `Paragraph` via a trait implementation of `Element`
On Execution, I want handlebars to render the document with its children. Therefore, it should select the template according to the type of the `Element`
```rust
use std::{cell::RefCell... |
Rust Handlebars dynamically select child Template |
Another option is to use the `delete` operator, then filter the array:
```js
const myArray = [1, 2, 3, 4];
// Delete the first item
delete myArray[0];
// Delete the last item
delete myArray[myArray.length - 1];
console.log(myArray) // Output: [null, 2, 3, null]
const finalResult = myArray.filter(x => x... |
In MATLAB, [`relu`][1] is a _method_ of [`dlarray`][2]. So you need to pass in a `dlarray` instance as input, like this:
```matlab
out = relu(dlarray(1)) % or whatever value you wish
```
[1]: https://www.mathworks.com/help/deeplearning/ref/dlarray.relu.html
[2]: https://www.mathworks.com/help/deeplearnin... |
What's the simplest yet most elegant way to NOT short-circuit and instead collect errors until their values are used?
What's so hard in accumulating errors? Short circuit only if a function call receives an error value as value. But then return all errors accumulated since.
Insights:
- Monad short-circuits on an... |
In my project, we work with constantly update of components. In a specific screen, we have a TabView with a dynamic list of items, these items may be updated. The problem is: If these items is inside a TabView with .tabViewStyle(.page), the item updated isn’t updated. I made a example code that can reproduce this behav... |
|rust|handlebars.js| |
I've been using selenium to take screenshots of Reddit posts and comments, and I've run into an issue that I can't find a fix for online. My code gives selenium the ID of the object I want to take a screenshot of, and with the main reddit post itself, this works great. When it comes to the comment though, it always tim... |
My script can extract all IMEI numbers and device colors along with a lot of other informations.
It is here: https://github.com/micro5k/microg-unofficial-installer/blob/main/utils/device-info.sh
Note: The device color info will likely be present on just Huawei / Xiaomi devices. |
{"OriginalQuestionIds":[41265266],"Voters":[{"Id":1746118,"DisplayName":"Naman","BindingReason":{"GoldTagBadge":"java"}}]} |
Download the video using `filetransfer` and then that video I try to open in <video> tag is not loading:
```
this.fileTransferDownload.download(this.videoUrl + this.videoObj.video_file_path, path + "Downloads/" + `${filename}`).then((entry: any) => {
console.log('download complete: ' + entry.nativeURL);
... |
This is my code. It uses logic in the sense that it checks if the current number can be divisible by any number that came before it, excluding any even numbers.
sub is_prime {
my ($num) = @_;
return 0 if $num <= 2;
return 0 if $num % 2 == 0 ;
for (my $i = 3; $i < $num; $i ... |
I'm new to this field.
I upload my model and try to add the textures I need to it.
`const textureloader = new THREE.TextureLoader();
const material = new THREE.MeshStandardMaterial({
map: textureloader.load('./assets/textures/albedo/albedo-wood.png'),
});
var mat;
... |
Problem with texture mapping on my glb model three.js |
|vue.js|three.js|3d| |
null |
If you look at the page, the borders overlap and thicken due to the detail section. Why doesn't the following work? I tried removing all the borders of the details class with CSS, but it didn't work. The bottom border is always there and overlaps.
[enter image description here][1]
`td colspan="100%" class="deta... |
To showcase users who have used your GitHub repository template, you might not be able to automatically update the "`Used by`" section, as this typically refers to GitHub Actions or packages being used by other repositories.
However, you can manually track and display this information in your README file by followi... |
null |
Here's a possible solution, developing @Paulie_D's comment further:
It takes the 300px width of the single blocks and the 32px gap as given and not to be changed (that's what I understood from your question and comments), plus that there should be no "gap" right of the rightmost blocks.
The (centered) container h... |
I have the following three tables in a mysql database:
grades:
| id | st_id | Q1 | Q2 |
| --- | ------ | --- | ---- |
| 1 | 20001 | 93 | 89 |
| 2 | 20002 | 86 | 84 |
| 3 | 20003 | 82 | 83 |
| 4 | 20001 | 86 | 89 |
| 5 | 20002 | 89 | 54 |
| 6 | 20003 | 81 | 94 |
s... |
Use GUI application on Github Codespace |
|github|user-interface|browser| |
null |
I'm trying to ggplot2 as facet_wrap box plot, but I'm having trouble in few things:
1- triangle symbol isn't showing in the graph but it shows in the environment window and console
2- in facet_wrap I'm using theme_lindraw and I want to remove x axis labels and leave it at the bottom panel only
3- I want to add geom... |
geom_signif in facet_wrap in r |
|r|ggplot2|facet-wrap|geom| |
null |
In the structure you describe there are no unique senders and receivers, as that would be a one way chat, instead there only chats, chat members and messages.
So create a chats table, create a chat_members (chat_id, user_id) pivot table linking the chat to however many users are in your chat. And a chat_messages (ch... |
I had a matrix visual created in my pbi report having regions in columns field
State in rows field and population in values field
Population is a calculated column made by using a formula
I need to create a table in an horizontal format showing max population per region with their respective State name ,... |
Pbi horizontal visual table |
|powerbi|dax|visualization|powerbi-desktop| |
null |
|swift|xcode|square| |
In your original post at first picture i can see a lot of stencils which are opened in separated windows as Read-Only [RO]…
It is not ShapeSheet windows!!!
I have not documents with same issue and I create one with code
Option Base 1
Sub Prepare()
Dim pth(3) As String, curpath As String, i A... |
{"Voters":[{"Id":23845872,"DisplayName":"Rollo"}]} |
How to plot horizontal lines for all the weekly high and lows, to be used on lower timeframes.
I've been trying to code this for awhile now and cant seem to get all weekly high and lows plotted just 1 pair of them, the first pic is weekly chart and how it looks, second pic is 1m chart.
can anyone help would love... |
How to plot horizontal lines for high and low of all weekly candles to be used on 1m and 5m charts |
|pine-script|pine-script-v5|pine-script-v4| |
null |
|java|apache-kafka| |
Git does not have a so call "porcelain" command ready to be used easily to achieve the desired task. But all tools necessary to construct the merge commit do exist, of course. These commands are called "plumbing". You would do it like this:
cmtid=$(git commit-tree -p master -p feature \
-m "commit msg" f... |
I have developed an app for a company that will deploy it to their devices for internal use on an MDM managed device. They have asked me to provide a signed IPA file to them. I am a small company with no enterprise account. Also because the users are often changing they asked me to allow it to be used on 'all device... |
How can I provide a signed iOS app IPA file to an organization for MDM distribution? |
|ios|xcode|ipa|mdm| |
I found the same error message in this discussion: https://forums.developer.apple.com/forums/thread/722490. Buried in this discussion is a nugget, one that lay hidden among the other suggestions I came across in this link here: https://stackoverflow.com/questions/74318052/cant-compile-fortran-on-macos-monterey-ld-... |
I am an novice in HOG. I am trying to print total gradient magnitude for 100 in the below array
img=[[150,50,121],[12,100,25],[201,243,244]]
Below is the code I tried
```
from skimage.feature import hog
from skimage import data, exposure
fdt, hog_image = hog([[150,50,121],[12,100,25],[201,243,244]], orientati... |
Find Gradient Magnitude using skimage.feature.hog module |
|python-3.x|image-processing|feature-extraction| |
My question is about accessing data from a dedicated file by offsets, without any database or serialization frameworks. While textbooks say it is recommended to access data by blocks, such as retrieving/flushing 4KiB at once, I sometimes doubt the necessity.
Memory/disks and systematical buffers are controlled by O... |
null |
My problem is simply like the title mentionned, while on the hololens my app does not display the colors as they are in the editor. In the editor, they are as the image linked but at runtime with the headset, they white with
a small tint of blue. Even the captured footage with hololens show the color correctly, the bu... |
Why do colors are whiter on Hololens 2 than in editor or captured footage? |
|unity-game-engine|uwp|hololens|windows-mixed-reality| |
null |
the extension and formatter are not very accurate. for every kind of code format need to add special regex.
for example this code format shape
class:"flex"
(only different is, the `"` after `:` has not any space)
need the regex like this for snippet work:
"class:\"(.*)\""
the different with abov... |
If you have the situation where the HEAD is a merge commit, I found this solution to return the most recent tag among the parent commits, using PowerShell.
# Find the latest tag for each of the current commit's parents.
$parentsTags = git rev-parse HEAD^@ | ForEach-Object {
git describe --tags --a... |
Is it actually allowed to use the header tag twice? e.g. I have two important head-sections in my **header.php** where both could have header tag.
|
Using <header> or <footer> tag twice? |
I looked for solutions and other answers regardign the similar issues. Nothing is working for my case.
Scenerios: We have to develop an application using Java and iText 8.0.3, whose purpose is to sign pdf documents. The signing key is held by another company, let’s say it’s CompanyA.
These are the steps we are fo... |
|matlab|relu| |
Only TSQL can modify warehouse tables. You can read the Delta files directly or with Spark, but you can't modify them.
TSQL can ***read*** **lakehouse** tables, and ***read*** and ***write*** **warehouse** tables.
Spark can ***read*** **warehouse** tables, and ***read*** and ***write*** **lakehouse** tables.
... |
### What are the details of your problem?
I have a [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) that has an unknown number of hosted repositories for the [Maven-3 m2](https://maven.apache.org/settings.html) format. I'd like to easily make sure all available options... |
VBA strings are enclosed in double-quotes and any double-quotes inside a VBA string are escaped by using two consecutive double quotes.
So
> Hi "there"
becomes:
Dim s as String
s = "Hi ""there"""
In you case the string should be
requestBody = "{""message"":{""subject"":""" & subject & """,... |
I am trying to replicate what another program is doing to interface with some hardware, where there is next to no documentation, and the business that made the device no longer exists. I know that in pyserial, I can directly set the RTS pin with `Serial.rts`, but when I run the existing program, it does `IOCTL_SERIAL_C... |
Given the code shown in your question, this works:
```java
public static TypedProducer<?, ?> instantiateTypedProducer(Class<?> keyType, Class<?> valueType) {
return new TypedProducer<>();
}
```
I would guess that having a `TypedProducer<?, ?>` (with unspecified bounds) is useless though. Don't you want to... |