instruction
stringlengths
0
30k
I need to display alt characters
|css|fonts|squarespace|
I've developed iOS Safari extension and a little confused how extension, like Honey shows top Additional Permissions Requested banner when user enables extensions and has to provide allow tracking web sites. Manifest example <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lan...
I had a similar issue when my iOS was updated to the most recent version. The scope bar did not show up when the search bar was activated. My solution is to add the following code in my configuration method: private func configSearchControll() { let sc = UISearchController(searchResultsController: nil...
I have build the angular lib named "my-lib" and I am also the assets folder where my shared styles sheet files are there and publish inside the npm repository. Now in my consumer app called "my-app", I have installed the above library using the npm command.In node_modules folder I can see the assets folder of that l...
Angular import styles from angular library assets
|angular|angular-library|
I have a simple container, that I've built with a Dockerfile. I am running on `Ubuntu-20.04` with `enroot-3.4.1-1` and `Docker version 26.0.0`. My `Dockerfile` takes a simple executable (compiled from C) and prints out 'Hello World', i.e. : # syntax=docker/dockerfile:1 FROM scratch ADD hello / ...
|python|tensorflow|tf.keras|calibration|tensorflow-probability|
I am trying to get data from a csv file that is uploaded via a ReactJs front end and then import it into a sqlite database in a Django/Python backend. I am trying to use the same code for several different imports and I have at least two cases that work but when I try to replicate the code, it is not working. It ...
Import CSV file from React front end to Django/Python backend proving unreliable
|python|reactjs|django|csv|
For xampp 8.2.12 had fixed Tomcat batch files: **tomcat_service_install.bat** ``` @echo off if "%OS%" == "Windows_NT" goto WinNT :Win9X echo Don't be stupid! Win9x don't know Services goto exit :WinNT echo [XAMPP]: Searching JDK HOME with reg query ... set KeyName=HKEY_LOCAL_MACHINE\SOFTWARE\JavaS...
I was also unable to launch Jupyter due to the same error that was present. Initially I tried upgrading the specific version of tornado however anaconda stated that upgrading to tornado 5.0 is incompatible with the version of python. Running the `conda update --force conda` command in anaconda prompt managed to r...
I had a similar problem where my service log where suppressed due to the amount of messages received inside the RateLimitInterval window. But if it's always exactly 6 hours... quite weird. Could it be that there are RateLimitInterval / RateLimitBurst misconfigured somewhere? Did you notice any suppression message in...
{"OriginalQuestionIds":[17143628],"Voters":[{"Id":-1,"DisplayName":"Community","BindingReason":{"DuplicateApprovedByAsker":""}}]}
For a project I'm trying to make a certain `User` a `Trainer` of a given `Club`. For this, I created an entity, `Trainer` which has a one to one with `User`. The club then has Collections of Users and Trainers. It all goes fine when adding trainers to the club, and they are added correctly to the database. But onc...
I've been experimenting with the use of `dplyr::if_any()` within a `dplyr::filter()` function in R. I've noticed that if we pass column names that don't exist in the current data frame (as in the last two examples below), the entire data frame is returned. This seems odd; shouldn't it return a data frame with `nrow = 0...
[![enter image description here][1]][1] [![enter image description here][2]][2] [![enter image description here][3]][3] I have a line chart - and want to adjust it to take on different styles/create trend lines. Showcasing the current time with an axis line and adding a trend area/circle point. Generating icons...
|python|google-search|
Based on a combination of a few of the answers here, this is what has worked for me. <Switch android:trackTintMode="src_over" android:thumbTint="@color/white" android:trackTint="@color/shadow" android:checked="true" android:layout_width="wrap_content" android...
{"Voters":[{"Id":4369919,"DisplayName":"N69S"},{"Id":1255289,"DisplayName":"miken32"},{"Id":1974224,"DisplayName":"Cristik"}]}
Properties Files Naming Convention: Spring Cloud Config Server by default looks for properties files named after the application name and the profile, separated by a hyphen. For example, if your application name is configserver and you're using the default profile, the properties file should be named configserver-defau...
I'm rendering a page which uses states to store data and it contains several event handlers that needs async/await because it contains fetch function. How would I go about this? I've read about using useEffect, but how would I integrate it inside a handler in this case? Is it possible? Here's a snippet of one of ...
In C++, I am receiving red squiggly lines under cout, endl, vectors, etc. even though I run the code there is no error=. I am using Studio Code and using C++ Extension Pack. This has only become an issue as of last week for some unknown reason, nothing has been changed within the settings. [Example](https://i.stack....
identifier "cout" is undefinedC/C++(20)
|c++|visual-studio-code|
null
I'm working on a TypeScript project in Visual Studio Code and I want Intellisense to search for classes and give me tips not only in my project folder but also in another folder. This is my folder structure: ├───@lib │ └───typescript │ └───src │ └───logger.ts │ └──...
please suggest how can I intercept or extract skis commands from a running Chromium instance so that sane can be replayed on another browser. I am looking at DisplayItemList usage in blink module, but cannot figure out what to change. Please advise or point to a relevant example I am trying to figure out where to ...
zeline=line.strip().split(',') this will create a list of strings, and if you want to access to your ip and desc using this "hosts[0].ip", you'll need to follow this format : ip, desc = line.strip().split(',') hosts.append(dest(ip, desc)) now this is a list of objects and not strings.
I know there are already threads on this topic but unfortunately they don't help me, also because it seems that everything is OK at the configuration level. I added the following dependency to the POM: ```xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation<...
Upon executing the following query in my ClickHouse database: ```SELECT formatDateTime(now(), '%Y-%m-%d %H:%M:%S', 'Asia/Tehran'); ``` I received an unexpected result: ```2024-03-29 00:34:35``` However, the expected output was: ```2024-03-29 23:34:35``` When setting the timezone in ClickHouse to Asi...
Timezone Issue with Clickhouse
|timezone|clickhouse|clickhouse-client|
You can try pageview for that just make the PageView with physics NeverScrollableScrollPhysics(), now whenever you want to go from one page to another just call PageView Controller function controller.animateToPage(2ndPageIndex,duration:Duration.zero) But here you need to handle all values at higher level ...
I'm trying to perform a CAPM regression analysis with a Bayesian GLM. I have developed the R code below but when I try to fit the model for the posterior predictive checks `posterior_intercept <- fitted(model_capm)$Estimate[1,]` I got `Error in fitted(model_capm)$Estimate:$ operator is invalid for atomic vectors`. I t...
How can be the `$ operator is invalid for atomic vectors` error solved?
|r|vector|glm|bayesian|brms|
The error message indicates that the executor failed to send a heartbeat message to the driver within the expected time frame. The timeout is controlled by the `spark.executor.heartbeatInterval` configuration parameter. To solve this error, you can try increasing the value of `spark.executor.heartbeatInterval` to a ...
As The Rust Reference documents under [Identifier patterns](https://doc.rust-lang.org/reference/patterns.html#identifier-patterns): > By default, identifier patterns bind a variable to a copy of or move from the matched value depending on whether the matched value implements [`Copy`](https://doc.rust-lang.org/refere...
iOS Safari Extension - Additional Permissions Requested banner
|javascript|safari-extension|
>Use Below query for WHERE operation with JSON Datatype Field in mysql ```sql SELECT meta_data->'$.first_name' meta_data FROM users WHERE INSTR(meta_data->'$.first_name', '123') > 0 ```
null
Use below query for WHERE operation with JSON Datatype Field in MySQL: ```sql SELECT meta_data->'$.first_name' meta_data FROM users WHERE INSTR(meta_data->'$.first_name', '123') > 0 ```
I want an SQL query to find all my customers that spent more than > $500 in a rolling period of 24 hours based on their IDs numbers in the month of Jan and Feb. Say example: if a customer bought stuff for **$100, $300, $50, $200**, sale date/s resp **2024-02-13 11:23:23,2024-02-13 13:23:23,2024-02-13 20:23:23, 2024-02...
24-hours period rolling totals SQL query
|python|sql|mysql|
null
When I use: `threadGroup(50, Duration.ofSeconds(10)` I see no issues it works fine, 100% of the time. But when we use **rpsThreadGroup**, even though there are so much less throughput gets generated most of the time we see socket connection closed error: `rpsThreadGroup() .maxThreads(50) .rampToAndH...
Jmeter Java DSL - getting issues when using rpsThreadGroup
|java|jmeter|dsl|
null
|computer-vision|augmented-reality|pose-estimation|
One problem I see is when you are extracting the `Content-Length` value from your `header`, you are expecting `Content-Length` to be the last HTTP header stored in the `header`, but it is not the case in your example. The reason you are making that assumption is because when you are calling `substring()` to grab the...
Since ECMAScript 2023 there are some array methods that iterate backwards, like for instance [`findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findLast). As long as in the callback you don't return a truthy value, it will visit all elements from end to start: <!-- be...
Instead of doing save as, just save the installer as is and run the original installer you downloaded after the orca edit and then the installation will go through.
I am doing an integration between Jira Rest API + Karate that allows my team to generate Test Cases automatically the first time running a new scenario. I added an `afterScenario` hook in order to send the scenario results to Jira. Each time the scenario fails, the test stopped and afterScenario hook is skipped. Is the...
afterScenario hook not running when scenario fails
|karate|
null
I have this code, which prints `1`: ```python s = 0 def dfs(n): global s if n > 10: return 0 s += dfs(n + 1) return n dfs(0) print(s) ``` If I modify `dfs` like this: ```python def dfs(n): global s if n > 10: return 0 i = dfs(n + 1) s += i retu...
Python global variables in recursion get different result
|python|recursion|global|
To meet the requirement, I aim to dynamically adjust the dark and light mode theme of the email template based on the user's system preferences after sending the email. This functionality will enhance the user experience by automatically adapting to their preferred theme settings. How to achieve this functionality u...
How can I automatically apply dark and light themes using the Lightning Email Template Builder in Salesforce based on the user's system preferences?
|salesforce|salesforce-lightning|email-templates|
null
{"Voters":[{"Id":7758804,"DisplayName":"Trenton McKinney"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":1974224,"DisplayName":"Cristik"}]}
I tried to show the logo in the Next JS Image Component. but, showing this issue. I tried many ways. but, I couldn't fix this warning Here is my simple code. <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> <Link href="/"> <Image src="/logo.svg" width={...
How to fix the aspect-ratio related issue in the Next JS 14 Image component?
|css|reactjs|next.js|
I have a question about loading dynamic content for an offline website version saved via a browser (like Google Chrome). For the website: [link](https://live.itftennis.com/en/live-scores/), is it possible to replicate dynamic content loading, specifically the statistics calculation, so that the offline version looks th...
_Firebase__WEBPACK_IMPORTED_MODULE_1__.auth.signInWithEmailAndPassword is not a function this error is displayed everytime i try to sign in to my react project with firebase. i tried using the auth object in different ways as well as verified the password n email registered with firebase. how to handle this error ...
how to handle the signinwithemailandpassword not a function error to login to react project with firebase?
|reactjs|firebase|google-cloud-firestore|firebase-authentication|
null
{"Voters":[{"Id":8690857,"DisplayName":"Drew Reese"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":1974224,"DisplayName":"Cristik"}]}
A few things to fix : (A) You need to change the form tag of your HTML form from ``` <form action="mailto:mymail@gmail.com" method="post" enctype="text/plain"> ``` to ``` <form action="process_form.php" method="post"> ``` (B) and change this line in PHP from ``` $email_headers = "From: $name <$email>...
I want to return records from a table in postgresql that when a distinct value in column 1 has more then one different values in column 2 spread over multiple records. As a simple example: table1: column1 - column2 1 – 1 1 – 2 2 – 1 2 – 1 3 - 3 4 - 5 return: 1 - 1 1 - 2 There is a lot of examp...
Postgresql non distinct pairs across multiple columns
|postgresql|
null
I'm deploying a Python Flask Application to Azure for the first time (free version). I have a Python Flask application that connects to a SQL Server database using SQLAlchemy. The connection to the database and tables happen as the website is loading. Locally, this runs perfectly. However, when I deploy the application...
I need to train a model to add the SSML tags and punctuation to the input text. For example, from the sentence "Hello world." I'd like to get the `<speak> Hello! world. </speak>` output. Another example: Input: "In reverse bias, the electrons flow from anode to cathode (P -> N), while the holes (positive charg...
I've been looking for an answer to this and outputting to STDOUT and to a pipe all works, but I wound up figuring out a very simple solution. Create a sql file that has a copy command in it and output to a temp file > \copy (query of data you want to get) to '/usr/local/sbin/temp_file.csv' DELIMITER ',' CSV ...
I have created an api route to handle the `getAllAddresses` that the currently logged in user has created. But I only get an empty array. I imagined that req cannot get the ID of the currently logged in user. I checked nextauth configuration and I got the ID. To be more certain, I console.log the session configurati...
I cannot get ID from session in GET method in Next.js 14
I created module `react-native-inactivity` for this purpose. By using this module you can actually get if the app is inactive for X ms. You can use in this way. ```js import ReactNativeInactivity from "react-native-inactivity"; export default function App() { return ( <View style={{ flex: 1 }}> <R...
# Absolutely perfect 2019 solution [![enter image description here][1]][1] Without further ado, here's exactly how you do this. 1. Don't actually use the "basic" layer that comes with the view 2. Make a new layer *only for* the image. You can now mask this (circularly) without affecting the next layer 3. Mak...
{"Voters":[{"Id":18157,"DisplayName":"Jim Garrison"},{"Id":573032,"DisplayName":"Roman C"},{"Id":466862,"DisplayName":"Mark Rotteveel"}],"SiteSpecificCloseReasonIds":[13]}
{"Voters":[{"Id":1902010,"DisplayName":"ceejayoz"},{"Id":476,"DisplayName":"deceze"}],"SiteSpecificCloseReasonIds":[16]}
Based on MsQuic source code max SO_RCVBUF is INT32_MAX
I'm trying to implement the HPF interface to Mastercard. Their web site includes a url to the Javascript file required for that. It's <script id="hpfScript" src="https://in.gateway.mastercard.com/form/v3/hpf.js"></script> But my html says it can't find it. Can somebody suggest a working url? Used that ur...
It turns out the way to fix this is to define the measure as type: 'count' instead of as a number.
Please suggest how can I intercept or extract skis commands from a running Chromium instance so that sane can be replayed on another browser. Saw this in another thread asking the same problem https://stackoverflow.com/questions/60293524/how-to-intercept-skia-draw-commands-from-chromium-browser?rq=2 What confuses ...
I'm using VScode + PHP Intelephense. Currently if using `HTML` as heredoc tag, it will highlight the HTML code: return <<<HTML <input name="$name" /> HTML; But the following code is not highlighted: return <<<h <input name="$name" /> h; So how can I get the code t...
In VScode, How to custom the PHP heredoc tag "HTML" to others?
|php|visual-studio-code|