instruction stringlengths 0 30k ⌀ |
|---|
In CSS I want have underline as dotted below my text, but text can be short or long by user input and dotted underline must draw until end of line (page A4).
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-html -->
<p style="font-size: 13px;">
I come from ៖ <u sty... |
|html|css|css-transitions| |
Combining this answer: https://stackoverflow.com/a/74080336/3220983,
with those prior to me here, I solved how to do this for STATIC libraries (.lib) using **CMake 3.27** and **Visual Studio 2019**:
set_target_properties(${TARGET_NAME} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY $<0:>)
Note how there is:
- no co... |
|python|sqlalchemy| |
My app have 5 modules previously,
I converted one of them to dynamic module and pushed new aab to playstore (version code = n ),
So now my app have 4 normal module and 1 dynamic module,
But the issue is, after updating to this app version the app datas are all cleared(shared prefrence). It seems like a fresh inst... |
Converting an existing module to dynamic module caused data loss, after update looks like fresh installed app with no data, lost all the datas |
|android|kotlin|dynamic-delivery| |
null |
I am trying to disable the top bar in "https://www.msn.com/de-de/wetter/vorhersage" with python and selenium.
This is what I am doing:
```
element = driver.find_element("id", "header")
driver.execute_script("""
var element = arguments[0];
element.parentNode.removeChild(element)... |
@MainActor + Combine inconsistent compiler error behavior |
|swift|swiftui|combine|swift-concurrency| |
null |
I have the following MySQL query implemented in PHP. I use statements to prevent SQL-injection.
The query scans a database of articles and search for the word $derired_word. If the word is contained in the article's title it is weighted 1000, in the summary 100 and if is contained in the text only 10. Two JOINs retrie... |
MySQL function generates pseudo-random syntax error |
|mysql| |
null |
<!-- language-all: js -->
*You may try this in **Cell_H6**:*
=map(B7:B18,lambda(Σ,hstack(countifs(Archiv!R:R,"<>",Archiv!V:V,Σ,Archiv!N:N,"Person2"),sumifs(Archiv!U:U,Archiv!V:V,Σ,Archiv!N:N,"Person2")))) |
|r|numerical-integration|log-likelihood| |
It is not logically correct to create two containers for one db, for maria db you have already created a container in your first file, as your two docker services are running in a single network, you can just connect to it. `mariadb already in use` this means that this container name has already taken in your network, ... |
Why parent no-arg constructor is called? |
|java|inheritance|constructor| |
null |
I have react native project and tried to connect firebase. I did all steps according to documentation. I have jdk21 and react-native-firebase npm version is 19.1.1 . When i run my app console log is
Execution failed for task ':react-native-firebase_app:compileDebugJavaWithJavac'.
> Could not resolve all files for ... |
Failed to transform core-for-system-modules.jar to match attributes |
|firebase|react-native| |
null |
|google-maps|google-maps-api-3| |
{"Voters":[{"Id":269970,"DisplayName":"esqew"},{"Id":4370109,"DisplayName":"Brian Tompsett - 汤莱恩"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[13]} |
In Keycloak logs, we used to found often this exception:
> Caused by: java.lang.RuntimeException: action URI not set at
> org.keycloak.forms.login.freemarker.model.UrlBean.getLoginAction(UrlBean.java:48)
> ... 110 more
Here is how we corrected it.
In a custom theme the ‘base’ had been changed in such a way t... |
The problem was with Android studio and after restarting it and making project problem solved. |
|php| |
null |
**About**
I am trying to post Listing in Ebay Trading API. As we can see that there is brand info mentioned as per the Ebay API documentation here: https://developer.ebay.com/devzone/xml/docs/Reference/eBay/AddItem.html#Input
but still it gives below error. Am I missing anything in the XML?
**Error details**
... |
connect strapi to postgresql on railway.app |
|javascript|database|postgresql|strapi|railway| |
I'm trying to create a simple CRUD system using `Vercel's posgresql` database with my `nuxt3` project. At first I found it easy to get started and didn't think there would be any problems. On the system I created an API with nuxt3 features in the server directory, I deployed the template from Vercel and at first I didn... |
I originally simply had a hardcoded array with all the names of the players at each position, but then tried to automate it by splitting it based on two other arrays. I am more of a beginner coder, so I don't understand where it went wrong. Additionally, line 20 was a suggestion by IntelliJ
I had one loop (that got ... |
method doesn't fill the array with correct values - instead it leaves it at null |
|java|arrays|methods| |
null |
Access database table
```
ID Long Integer 4
FirstName ShortText 255
```
ID Primery key indexed
Stored Prcedure UpdateTest
```
UPDATE Test SET Test.FirstName = [@FirstName]
WHERE (((Test.ID)=[@ID]));
```
C# code
```
public void updateTest(int ID,string FirstName)
{
OleDbCommand TestCmd = new OleDbC... |
{"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":3027266,"DisplayName":"Wernfried Domscheit"},{"Id":839601,"DisplayName":"gnat"}]} |
I have a CMake Project in which I am using boost through conan.
a) I am building boost with python3.9 <br>
b) Window <br>
c) Using this generator from conan <br>
conanfile.txt: Generator cmake created conanbuildinfo.cmake <br>
B.T.W this works fine on linux environment.
I have attached images for minim... |
Including boost-1.83.0 is causing compilation errors on windows |
|c++|windows|boost|conan| |
null |
**df.max()** function won't work if there is **NaN values**. You can avoid this problem 2 different ways.
You can use **fillna()** function to filling your NaN values with any type of value or you can use **dropna()**.Both will help u to get your max() value.
However, If you want to keep your row that has NaN valu... |
If the id is dynamic and you can't use it, you can use class to select the element.
Your html element has `collapsed focus-visible` class.
If you don't want to use it, and rather use __filterButton__, you should edit your html and add __filterButton__ to classes.
(currently on your html, 'filterButton' is not de... |
Using a JSON file for storing data is not recommended. However, if you still want to use a JSON file, you can use this npm package. [lowdb][1]
[1]: https://www.npmjs.com/package/lowdb |
I'm trying to create a commutative diagram in LaTeX and it creates dozens of errors in the editor. Here's the code of the diagram:
```
\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainfont{Times New Roman}
\setdefaultlanguage{english}
\setotherlanguage{greek}
\usepac... |
I am experimenting with Rust and ran into something very unexpected.
If I wrap state in a RwLock, then I cannot combine two statements using this state into a single one. If I remove the RwLock and use state directly, this works.
```rust
use parking_lot::{RwLock};
pub struct State {
pub current: u8,
... |
Cannot combine two lines in one when RwLock is used |
|rust|rwlock| |
|sql-server|docker|sql-server-2019|sql-server-linux| |
I wish to determine, at runtime, whether CUDA-aware MPI is about to `sendrecv` data directly between VRAM of my GPUs, or whether it is going to silently fall-back to routing the data through RAM. I wish to avoid the latter scenario, because I can do that cloning _faster_, _and_ avoid out-of-memory issues. I _must_ perf... |
|pytorch|tensor| |
I want to add an automatic JDK installation feature to my Java project so that users can get started without having to install the JDK manually. What tools or methods can I use to accomplish this in my project? I am using the Gradle build tool for dependency management.
I can't find a solution anywhere, or anything ... |
Automatically install JDK for Windows in a Java program |
|java|gradle| |
null |
{"Voters":[{"Id":874188,"DisplayName":"tripleee"},{"Id":1940850,"DisplayName":"karel"},{"Id":466862,"DisplayName":"Mark Rotteveel"}],"SiteSpecificCloseReasonIds":[18]} |
Temporarily set `GIT_CONFIG=/dev/null` for the duration of `pre-commit install`.
```
GIT_CONFIG=/dev/null pre-commit install
```
I did not have success setting dummy `XDG_CONFIG_HOME` like previous answers suggested. Setting `GIT_CONFIG` works.
With _my_ workaround, I am willing to accept the resolution on i... |
disabling top bar in msn weather with selenium |
|python|selenium-webdriver|msn| |
null |
Alfred's solution did the trick to get a right arrow button. I wanted this to be dynamic so I could reuse it across multiple projects and easily adjust the width and height of the button. I was able to use CSS variables to do the calculations to modify the button according to the base width and height.
See live demo... |
CSS how to set auto length of dotted underline below text |
I'm building a React app and have a need to generate unique UUIDs. I am trying to use the function `randomUUID()` from `self.crypto`. See: https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID
If I don't want my code to explode if this runs in an unsupported browser, would this be sufficient?
<!-- be... |
How do you check if self.crypto.randomUUID() is available in Javascript? |
|javascript|uuid| |
The purpose of the `is` operator is to say whether two variables reference the same object. The only scenario where this is _guaranteed_ is when they have been explicitly set up that way.
```
>>> a = "random string"
>>> b = a
>>> a is b
True
```
There are other scenarios wher Python might notice that two unre... |
Updating Access Database using C# and stored procedure does not work |
|c#|ms-access|stored-procedures| |
I have a `httpd` service on Amazon EC2 that hosts a Wordpress site on a `/wordpress` subdirectory (the Wordpress is live on `https://example.com/wordpress`).
Now I want that the Wordpress site to be hosted on the root: `https://example.com/` should point to the Wordpress site.
What should be done? Is it enough to... |
Moving a website from a subdomain to the domain root |
|php|wordpress|amazon-ec2|apache2|httpd.conf| |
null |
I have an `httpd` service on Amazon EC2 that hosts a Wordpress site on a `/wordpress` subdirectory (the WordPress is live on `https://example.com/wordpress`).
Now, I want the Wordpress site to be hosted on the root: `https://example.com/` should point to the Wordpress site.
What do you think should be done? Is it... |
I'm following [this][1] example to provision multiple Databricks catalogs (see [provider method][2]) using `for_each`, however terraform doesn't detect any differences from the state. The provider method definitely works - rather it seems the issue is the HCL syntax to perform a loop, which is not noticing anything.
... |
I noticed an issue after I installed breeze on my Laravel application.
When trying to register my user I was receiving the following error:
``` Call to a member function prepare() on null ```
Which pointed to the following :
```
$user = User::create([
"name" => $request->name,
... |
The HTTP endpoint for the SOAP service is
http://localhost:8080/soap/Iservice1
Here is how a SOAP request to invoke the "sum" operation on this service might look:
POST /soap/Iservice1 HTTP/1.1
Host: localhost:8080
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:service1In... |
|react-native|assets| |
I have the following view model:
```
@MainActor
final class ProfileViewModel: ObservableObject {
let authService: AuthService
@Published var userHandle: String = "Unknown"
nonisolated init(authService: AuthService, appState: AppState) {
self.authService = authService
appState.$userData
... |
Until I can get hands on a working version, I made a bash function for this:
pg () {
grep --line-number --recursive --with-filename "$@" | sed -re 's%^([^:]+):([0-9]+):\s+%File "'$PWD'/\1", line \2\n\t%
}
Disclaimer: only works for python files ...
I've seen someone made a similar one, and sh... |
The thing here is that
> async def on_message(message):
is just a wrapper for discord's [api gateway][1] [message create event][2] which is always sent by discord when a message in any of the servers that the bot is in is sent, so the only way to only read messages from one channel is what you have done:
... |
I'm trying to write my vector, to realize the function of the one in STL as much as possible.
However when I tried to run a test project, Visual Studio told me that, `const` version of `begin()`, `const` version of `end()`, `cbegin()` and `cend()` trigger `C2373` errors due to redefinitions.
I'm sure I didn't defin... |
I am running Jenkins in a docker container:
docker run --privileged -d --name jenkins -p 8080:8080 -p 50000:50000 -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker -v jenkins_data:/var/jenkins_home --network minikube jenkins/jenkins:lts
I faced the same problems when starting a j... |
I have a console app that I install as a Windows Service using the Topshelf extension.
I thought I should give it a UI so I changed the sdk in the.csproj
from
Project Sdk="Microsoft.NET.Sdk"
to
Project Sdk="Microsoft.NET.Sdk.Web"
I then copied code and folders (wwwroot, Controllers etc) from a ASPNET Cor... |
That is the expected behavior based on your routes hierarchy structure. GoRouter uses declarative routing (aka Flutter Navigator 2.0). Navigating to a destination using declarative routing will replace the current stack of "screens" with the stack of "screens" configured to be displayed for the destination route.
On... |
|php|mysql|mysqli| |
null |
null |
I just got the same alert from Mongo. Looks like there is an issue with their infrastructure.
Response from the support team:
`
There appears to be an issue with the underlying infrastructure which our team is currently aware of.
` |
i've been trying to implement a new feature on a django ecommerce project that i'm working on. i created a separate model in the models.py file just for key features and i linked this model to the product model using the manytomanyfield method. the problem is that i can't get the data to be output at all. when i try pr... |
Optimize multiple SQLAlchemy queries to one query |
I faced a similar issue with firebase firestore's setDoc() function
for me the problem was actually due to firestore rules being set too restrictively and not allowing to setdocs.
check the rules and adjust them:
service cloud.firestore {
match /databases/{database}/documents {
match /{docu... |
I am developing an azure web app service called emailservice, which is supposed to communicate to a mailbox created in office365 exchange online. The webapp is supposed to retrieve messages form the inbox. I have decided to use Microsoft graph api for this matter.
To be able to have successful call to graph API, I ... |
azure web app how to organize code and folder structure |
|azure-web-app-service| |
My Android app have 5 modules previously,
I converted one of them to dynamic module and pushed new aab to playstore (version code = n ),
So now my app have 4 normal module and 1 dynamic module,
But the issue is, after updating to this app version the app datas are all cleared(shared prefrence). It seems like a fr... |