instruction
stringlengths
0
30k
|excel|excel-formula|
If there is in fact no way to add that content to its own section which is set to be full width (instead of it being a part of the main body), then the following CSS, added to the CSS you posted in your question, will achieve the full-width effect that you're looking for. width: calc(100vw - 17px); margin-l...
This is not a complete answer, but a demonstration of a strategy. You could try pre-parsing your input statements to extract parenthesised blocks, and replace them with placeholders. After that, it should be trivial to parse the other statements. And with the placeholders in the original string, it is easy to reassembl...
null
null
null
null
{"OriginalQuestionIds":[72895405],"Voters":[{"Id":3001761,"DisplayName":"jonrsharpe"},{"Id":9072753,"DisplayName":"KamilCuk"},{"Id":724039,"DisplayName":"Luuk"}]}
|avaloniaui|avalonia|
I have Map in Java: Map<Pair<String, String>, MyClass> myMap; I need the Pair to **NOT** be case-sensitive. The solution in case of regular string key is simple: TreeMap<String, MyClass> myMap= new TreeMap(String.CASE_INSENSITIVE_ORDER); But, what about case of strings-pair key? I need to compa...
Case-insensitive map key where key is Pair<String, String>
I am looking for an operation that creates a matrix from a colwise operation in Eigen. I could not find an appropriate operation in [VectorwiseOp](https://eigen.tuxfamily.org/dox/classEigen_1_1VectorwiseOp.html) (sorry if I overlooked one). It seems that it is supported for some operations. First output compiles ...
Converting rowwise back to matrix
|eigen|eigen3|
I'm working on a project with a multi-tenant database (MySQL, Java JDBC). Each tenant can be considered a "group", and each "group" has multiple "users". My main confusion is how best to secure this, so members of a group can only access data from that group, even though they're all logging in with separate credentials...
I'm facing a perplexing issue in Visual Studio Code where the string "\<ctrl63\>" is unexpectedly appearing in my code when using autocompletion. I'm pretty sure it's related to Copilot. Here's a couple of random examples of how it just throws in the \<ctrl63\>: ``` app.get (""), (req, res) =>...
If you enable warnings in your compiler, you'll see something like this: ``` warning: passing argument 1 of 'redim' from incompatible pointer type [-Wincompatible-pointer-types] 41 | if (lista->lungime == lista->capacitate) redim(&lista); | ^~~~~~ ...
An internal error occurred during: "Updating Maven Project". Receiver class com.baselet.plugin.MavenProjectChangedListener does not define or inherit an implementation of the resolved method 'abstract void mavenProjectChanged(java.util.List, org.eclipse.core.runtime.IProgressMonitor)' of interface org.eclipse.m2e.core...
Maven Eclipse Pom Error. I was trying to edit my pom to change the java but now I am getting a builder error and I cannot update maven pom
{"Voters":[{"Id":9952196,"DisplayName":"Shawn"},{"Id":22180364,"DisplayName":"Jan"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]}
Found a workaround! For some reason, setting the system property in the serenity.properties file or serenity.conf will not work for msedgedriver. But if your project is a gradle build, you can set the system property in there and it will work: test { systemProperty("webdriver.edge.driver", "src/te...
Below we will be discussing about one of the workaround solution that has been identified. In this approach one will be relying on adb (Android databridge command) to switch between primary and secondary display. So when ever the scripts needs to perform action on the secondary screen the app activity running on that...
I am investigating some flakiness in e2e Cypress tests which are testing a web site that uses [Monaco Editor for React](https://github.com/suren-atoyan/monaco-react#readme). When I do `.type('{{} "e2e-custom-data": 9999 }')` into the editor (`.view-line`), the tests crash on approximately every third run with the fo...
I faced with that problem on Windows and other answers didn't help. That's because I have two versions of Python3 (3.8 and 3.12) on my machine. In this case call: ``` pip3 install setuptools ``` just installs `setuptools` for Python 3.8: ``` $ pip3 install setuptools Requirement already satisfied: setuptoo...
Is there a possibility to mark specific enum values as deprecated in OpenAPI defintion? For example, how can I mark Value1 as deprecated? ``` type: string title: CustomEnum enum: - Value1 - Value2 ```
I need to run that hook which fetch documents with currentUser.uid names but it fails. The hook starts before i get currentUser so basically it starts when the currentUser is null. Also i can't understand such behaviour. TypeError: Cannot read properties of null (reading 'uid') Source src/layout/SideBar/index.tsx ...
TypeError: Cannot read properties of null (reading 'uid')
|reactjs|react-hooks|react-context|
I am trying to use `geofirestore` to get from the documents of a collection those that are a certain distance from the user's location in a `react native Cli` application, when trying to implement geofirestore I get the following TypeError: >error: _$$_REQUIRE(_dependencyMap[9 ], "(...)estore").GeoFirestore.collect...
|java|eclipse|maven|pom.xml|
null
|javascript|reactjs|svg|path|
I learned that common practice in django is, to put your css files into the static folder, although it should be possible to link them with `<link rel="stylesheet" href="styles.css">` too, when stored in together with the html in templates. .../templates/newyear/ both html and css stored here. For a short test ...
Linking CSS from the same directory in Django
|html|django-templates|
null
From the `plm` packages first vignette we see both function can estimate the common correlated effects MG (CCEMG) model (and also from `?plm::pmg` and `?plm::pcce`): > `pmg`: estimators for mean groups (MG), demeaned MG (DMG) and common > correlated effects MG (CCEMG) for heterogeneous panel models > `pcce`: es...
{"Voters":[{"Id":573032,"DisplayName":"Roman C"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]}
There is a code like this: ``` using d2dArray = vector<vector<double>>; // Псевдоним d2dArray calcNextArray(d2dArray array) { d2dArray nextArray; int nextArrSize = array.size() - 1; d2dArray detArray = { {0, 0}, {0, 0} }; for (int i = 0; i < nextArrSize; i++) // Идём по столбцу { ...
|c++|vector|emplace|
I have a `ChildView` that you can access via `NavigationLink` and that will display in a `NavigationSplitView`’s detail pane. NavigationSplitView { ListView() } detail: { } And .navigationDestination(for: ChildModel.self) { post in ChildView() } `ChildView` declares a...
Crash accessing SwiftData model context from environment in a child SwiftUI view in NavigationSplitView resulting in ability to @Query successfully
|swiftui|swift-data|swift-data-modelcontext|
I just included below header file and everything worked for me. #include <algorithm>
I can run lintDebug or the test cases in my local Android studio terminal, builds are successful. I am currently learning CI/CD and trying to run Github Actions to do the job when I push my code. But when pushing, CI fails on the first job with below exception: ``` > Could not resolve all files for configuration ':cl...
I was solving this problem on Leetcode but I am unable to understand why my solution is wrong I am using the hash map approach to solve this, the time complexity is O(n) but the error is not something related to time exceeding **Question:** You are given two strings `s` and `t`. String `t` is generated by ran...
null
|javascript|firebase|react-native|google-cloud-firestore|geofirestore|
null
Assuming that the legal document will not be just a single-line sentence. In that case one can use a loop. First use a minimum line height and generate the pdf and calculate the total number of pages, then increase the line height by say 0.05 each time (line height=line height +0.05) and perform the iteration until...
A thread must own the `Lock` which created the `Condition` before it can invoke the latter's methods. If the thread does not own the lock then an exception is thrown. If you look at the rest of the implementation, you will see the values of those two fields are never used, and the two fields are never written to, unles...
I'm working with the library `PyYAML==6.0.1` and trying to retrieve an object from a string representation of a YAML. The problem is, when I use `yaml.safe_load` with a text containing a line break then it removes the whitespaces. For example: data = yaml.safe_load("first\n\n second") returns a ...
I found a funny solution. plot(mpg ~ hp, data = mtcars) curve(expr = cbind(1, poly(x, degree = 2, raw = TRUE)) %*% fit$coefficients, add = TRUE, col = "red") Essentially, it simply applies the matrix definition of a linear regression. a %*% coef = b Here, the matrix `a` can be expres...
I have come up with this which returns the correct matches. (?i)((?!:xyz-\d{8})&(?<![.\d])\d{8}(?![\d.])|abc?.\s?\d{8})|(\s\d{8}\s)
My problem was that the objects $Right and $Left are not exposed unless they are in a script block so the way to get the desired output in my example is: $objectA = @( @{ "Id"="1" "Name"="Bob" }, @{ "Id"="2" "Name"="Bill" }, @{ "Id"="3" "Name"="Ted" } ...
You can try one of these publicly accessible RFC 3161 compliant time-stamping services: 1. https://freetsa.org Supports HTTP, HTTPS and TCP transports and has other features 2. http://time.certum.pl 3. http://zeitstempel.dfn.de (errors out) 4. http://tsa.tecxoft.com Requires registration ...
I was using this code in my Cypress tests using Cypress version 8: ``` beforeEach(() => { Cypress.Cookies.preserveOnce( 'csrftoken', 'sessionid', // ...other cookies... ) }) ``` and now I have finally upgraded to Cypress 13 and am told to use `cy.session` instead. I'm having trouble figuri...
I'm trying to show an awesome dialog after the user signs up to tell him that he got a message to verify his email, but when the user signs up it goes to the login page without clicking on any button that's my function code, and my awesome dialog. showDialogawesomeregister(BuildContext context, String text) as...
If you want to require your users to access their location. You can try : "requestForegroundPermissionsAsync" and get the current location: "getCurrentPositionAsync"
I am trying to: Copy an entire row from Sheet1 if cell value in the row is for example >3000. Paste that row in sheet2. It gets stuck at `EntireRow.EntireRow` while I am trying to copy that entire row to sheet2. ```vba Sub deviation() Dim DataRg As Range Dim blankrng As Range Dim cell As R...
Copy entire row based on a cell value and paste in another sheet
null
I face some problem in excel file. I am exporting excel file with data. This code is **working fine in localhost**. But in **live server**, the **excel file is not opening** and display message as > Excel cannot open the file "users_download_.xlsx" because the file format or > file extension is not valid. Verify t...
Excel file is not opening while export data in excel, but working fine in localhost
|cakephp|export-to-excel|
I am currently working on a complex ReactJS project and have encountered an issue. I am sharing the reduced version of the problem I have identified. ``` import { useEffect, useState } from "react"; function App() { const [clicked, setClicked] = useState(false); const [text, setText] = useState(null); ...
{"Voters":[{"Id":18157,"DisplayName":"Jim Garrison"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]}
This is a bug in AppiumLibrary and how it handles its dependencies. It pulls in python appium bindings that have stuff deprecated that AppiumLibrary still expects to be present. Fix: `pip install --force-reinstall "Appium-Python-Client<4.0.0"` I've filed an issue and pull request to fix it: * https://gi...
I'm currently trying to deploy my MERN application's backend on Vercel. Before this try, I learned to deploy the MERN site on Vercel by small todo project. I work fine now and I do the same for the following project. but it shows a 404 error This is my file structure [![enter image description here](https://i....
Enumerations are members of the *class* in C++, not any specific object (they are in essence static). Because of this you need to use the class-name and the scope operator `::` to access the enumeration values. As in ``` RayCast(ray, CEntityManager::FAll, range); ```
|curl|postman|
|javascript|payment-gateway|mastercard|
|javascript|reactjs|next.js|
|node.js|mongodb|mongodb-query|
|python|bing|bing-ads-api|
I'm encountering an issue when it comes to applying a lag/windows function to entire dataframe on a condition. I want to times the previous rows value(value1), with the current rows value(value2), from week 2 onwards. Here is my data: ''' from pyspark.sql import functions as f data = [ (...
Pyspark windows function not applying to entire dataframe
|pyspark|
|c#|reactjs|.net|azure|
|facebook|post|charts|
|javascript|next.js|whatsapp|brevo|
As @rici said, for CGF, but in other words [1] (p.179)"any derivation has an equivalent leftmost and an equivalent rightmost derivation." Furthermore, @rici wrote > This has nothing to do with which way the parse tree leans. The same parse tree is produced regardless. (Or the same parse trees, if the grammar is amb...
|vba|charts|ms-word|
null
I am looking for some help getting with sending emails from VBA using the MS Graph API. I have registered an app in Azure|Entra ID, and recorded the Tenant ID, Client ID and Client Secret. I know I have them correct, as I have tested them by sending an email via the graph API using PowerShell. This worked a drea...
Yes with the help of Arrays you can initialize an unmodifiable `List` (instead of an `ArrayList`) in one line, List<String> strlist= Arrays.asList("aaa", "bbb", "ccc");
This code that I took form another web, works! but only when I put my Instagram ID. Otherwise when I want to get a media from another user (changing the variable `userid`) it stops working. To be sure I use https://www.otzberg.net/iguserid/index.php to get the user ID. And to get the Access Token (only with my acc...
null
|php|instagram-api|
Yes. With the help of [`Arrays`](https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/util/Arrays.html) you can initialize an immutable `List` (instead of an `ArrayList`) in one line: List<String> strlist = Arrays.asList("aaa", "bbb", "ccc");
The mistake was that my index.ts file was inside a src folder. I moved the index.ts outside the src folder, and now all changes are reflected correctly
I would like to color my boxplot-outliers in my Seaborn Boxplot when using a hue variables. Something along the line of this, from [seaborn boxplot examples][1], [![sns.boxplot(data=titanic, x="class", y="age", hue="alive", fill=False, gap=.1)][2]][2] but, with the code below, I get this. What should I change? ...
Seaborn boxplot color outliers by hue variable
|python|plot|seaborn|
FastAPI runs the dependency for each request, meaning that each request gets a new `MockUserRepo` instance. If you want it to persist per test, you could to something like ```python @fixture(scope="function") def user_repo(app: FastAPI): print("created") @dataclass class User: id: int ...
Why Backend deployment show 404 error message when deploy project on Vercel?
null
I'm implementing uploading big files to OneDrive by using the BITS protocol. Here is the [documentation][1]. [1]: https://gist.github.com/rgregg/37ba8929768a62131e85 I'm having the following issue. After a certain period of time of being logged in when I'm trying to create a session I'm receiving 401 error. Her...
Uploading files to OneDrive results in a 401 error
ok if i have this right, you have some div's in your main page body and would like to know when they scroll into view so that you can perform some action i believe this does the trick <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> window.onload=function(){...