instruction stringlengths 0 30k ⌀ |
|---|
Slow pagespeed render delay |
|performance|pagespeed| |
null |
```
const date = ref(new Date(2024, 1, 19))
<v-date-picker v-model="date" :rows="2" :step="1" class="bg-surface" locale="tr" />
```
[enter image description here](https://i.stack.imgur.com/0Er7c.png)
I am using vue nuxtjs vuetify. I want to show more than one selected date in date picker. I tried the Multiple... |
There is currently no way to access the Track Changes feature with the Office JavaScript APIs. But it is a good idea, so please raise it at [M365 Dev Platform Ideas](https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform). First search to see if someone has already m... |
had the same issue just recently. my problem was that my view classes were inhereting from `dajngo.views.generic.<view name>` instead of `rest_framework.generics.<view name>` and yasg was ignoring them since they were not REST endpoints. |
"I'm puzzled why post.title and post.body aren't updating as expected. I attempted to manage separate state variables for title and body, but the issue persisted."
**CreatePost.jsx**
```
export default function CreatePost() {
const [post, setPost] = useState({ title: "", body: "" });
function addNewPos... |
According to [the manual][1], when defining
```java
http.oauth2Login(oauth2 -> {
oauth2.loginPage("/login/oauth2");
});
```
> You need to provide a `@Controller` with a `@RequestMapping("/login/oauth2") ` that is capable of rendering the custom login page.
You could write something like that in a servlet:
... |
|react-native|notifications|react-native-permissions| |
If you use CDN, you have to load components individually (see [docs](https://primevue.org/cdn/#component)), so for datatable and column, you need to add:
```html
<script src="https://unpkg.com/primevue/datatable/datatable.min.js"></script>
<script src="https://unpkg.com/primevue/column/column.min.js"></script>
```
... |
If you can install Libreoffice in your environment. You can use it to convert Excel files to CSV in Python and use read_csv instead of read_excel.
The sample code is below:
def convert_excel_to_csv(input_file):
exe_path = 'C:/Program Files/LibreOffice/program/soffice.exe'
command = [
... |
### **How Can I Fix this, italic to Normal Style! ***[see this image for better understanding] (https://i.stack.imgur.com/qlGtZ.png)
I want to make it normal style without italic version. how can I achieve this, please solve me this. this italic version makes me so anger. now I want to make it simple and without ita... |
How should I formulate a function that passes the agent from Exit to Enter?

|
How can i do this nav-bar Call to Action Button with border:3px in Divi theme ?
or Question: how can i split Nav menu item with border: 3px in Divi theme?
[image](https://i.stack.imgur.com/U17ZD.png)
#divitheme #divi #problem #AyanSujon
#wordpress
i want to create a "Call to Action Buttom" in nav-menu w... |
How can i do this nav-bar Call to Action Button with border:3px in Divi theme? |
null |
Try uninstalling Visual Studio, then reinstalling it. And make sure you choose to download the .net 6 runtime from the 'individual components tab'. And also .net desktop dev for wpf. |
## Short Answer
In practice, the measured histogram discrepancy with a 4:2:2 jpg is ~1%, therefore one would expect about 16,609,443 colors—this is mainly due to factors other than YCbCr, such as the DCT compression.
# Longer Answer
The above value based on compressing using 4:2:2, and 100% quality. DCT artifa... |
Player input not working properly in unity |
|input| |
null |
I would like to use uuid as primary key in an intermediate table. I know you can add the following to a model:
```use Illuminate\Database\Eloquent\Concerns\HasUuids;```
and
```use HasUuids;```
But as I don't have/need a model for my intermediate table I'm not sure if it's possible to create the uuids automatically ... |
Using uuid as primary key in intermediate table? |
|laravel|eloquent| |
Simple question. Are you sure you need to have those fields omitted or passed through at the dto level? How about?
```typescript
@Injectable()
export class UserService {
constructor(
@Inject(REQUEST) private request: Record<string, unknown>,
private readonly userRepository: RepositoryForUser,
) {}
... |
I have a parser written on puppeteer, where i download a file, so how to use this downloaded file in js code?
```const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
headless: false,
defaultViewport: false,
args: ['--start-maximized']
});
const page = await brows... |
I am trying to access google calendar api, I have the OAuth 2.0 set up, I am trying to use a raspberry pico W to access the api |
|python|google-calendar-api|micropython|raspberry-pi-pico| |
null |
I connected my website to Analytics 4 via GTM. However, I have a request: I want GA4 not to count the traffic coming to a link I specify within my site. Is something like this possible?
For example, let's say I set website.com/link_url. It won't count traffic to it.
But it will continue to calculate all traffic t... |
Hope, This will help, you can try once.
Step 1: Created a Animate segment Controller view
struct AnimatedSegmentedControl: View {
let items: [String]
@Binding var selectedItemIndex: Int
var body: some View {
GeometryReader { geometry in
HStack(spacing: 0) {
... |
Today, I thought I'd implement a simple new visual into the little web-based space game I've been working on. I'd already implemented some nice looking twinkly stars in the background behind the ship, but I decided I wanted those stars to move downwards to make the ship seem like it was moving through space. The faster... |
Cutting multimedia files based on start and end time using ffmpeg |
|ffmpeg| |
null |
I tried to cut the video using the start and end time of the video by using the following command:
ffmpeg -ss 00:00:03 -t 00:00:08 -i movie.mp4 -acodec copy -vcodec copy -async 1 cut.mp4
By using the above command I want to cut the video from `00:00:03` to `00:00:08`. But it is not cutting the video between t... |
I am trying to resolve the avoid large layout shifts in PagespeedInsights
The solution is to set with and height of the below div element.
```<div id="HomeNewsEventsWrapper" class="section fixedheight1 introduction table">```
```
@media (min-width:0px) and (max-width:580px) {
#HomeNewsEventsWrapper{
}... |
How to set specific width and height of a div element when media queries are present in css file? |
|html|css|media-queries|seo|pagespeed| |
Copy activity advanced editor and collection reference is only supported for the Array of Objects.

Your array is a simple array without any objects. So, copy activity won't support this kind of array.
However, you can try below workaround in thi... |
I found the answer partly through this question, and one I asked which was asking exactly the same thing, but for me, it was:
C:\Users\VssAdministrator\Downloads |
This isn't an answer but I wanted to report that this issue is still occurring as of FF 124.0.1. Chrome (123.0.6312.59) works as expected. You would think Mozilla would have resolved this by now. |
I need a help to use or build a regular expression to mask alphanumeric with *.
I tried it with this expression, but it doesn't work correctly when it has zeros in the middle of the string:
```
(?<=[^0].{3})\w+(?=\w{4})
```
Live samples:
https://www.regexplanet.com/share/index.html?share=yyyyf47wp3r
... |
Java Regular Expression for Masked Alphanumeric Codes |
|java|regex|pcre|replaceall| |
null |
I got it working in the end. I was missing the `coverlet.msbuild` NuGet package in my project. It turns out both `coverlet.collector` (which I had installed) and `coverlet.msbuild` are required.
The reference to the `project.runsettings` file was correct. Its content needed to be slightly updated:
```xml
<?xml v... |
I would avoid messing with the focus default styles. You could use outline instead?
.in:focus {
outline: 1px solid #002f86;
}
|
You should not need a variable to do this.
I can't test this at the moment but I think this should work.
=SUM(
IIF(
Month(Fields!ReportDate.Value) = (Parameters!Month.Value + 2 MOD 12) -1,
1,
0
)
)
All I've done here is calc the previous month ... |
count the number of field values prior to the current id then group by and aggregate
eg
select rn,
max(case when name = 'Finished' then value else null end) 'Finished',
max(case when name = 'faculty' then value else null end) 'faculty',
max(case when name = 'Characteristic' then... |
I'm working with a new JavaFX project. I have legacy Swing control panels. When I try to do `new SwingNode`, I get an exception:
Caused by: java.lang.IllegalAccessError: superclass access check
failed: class com.sun.javafx.embed.swing.SwingNodeHelper (in unnamed
module @0x35dc99d5) cannot access class
com.s... |
|wordpress|menubar|divi|divi-theme|wp-nav-menu-item| |
null |
|c++|sqlite| |
I am trying to iterate over an array of objects which I then need to process another array of items that I need to query the database for and process the data to push into an array while updating a value in the array.
The below code does what I want in the sense of the order, the lookups, data processing etc howeve... |
Returning default data not updated data |
|javascript|node.js|express|foreach| |
null |
The pgAgent Service will not start on Windows 10 with a AzureAD login.
I ran EnterpriseDB’s PostgreSQL Stack Installer as an Administrator to install the pgAgent. During multiple installation attempts, at the "pgAgent service account" setup step, I tried the following values for the "Operating system username": `m... |
Move navigation container out of view |
I have an existing go webserver that has a route that accepts form elements (one of which is a file) and uploads the resulting file (after resizing and renaming) into the images folder that the webserver serves up. I am changing the application to use lambda (go) and a static website on s3. Other things like storing th... |
Golang lambda upload image into s3 static website |
|image|go|amazon-s3|aws-lambda| |
**SOLUTION:**
> Need to additionally the libs in your pom.xml if that is acceptatble for you: The [docusign 4.5.0][1] using [jerseay-version 3.0.9][2] but the following dependencies not retrieved with docusign. The Spring Boot 3.2 had dependencies jersey libraries 3.1.5 built in.
<dependency>
... |
Without `docker-compose.yml` (as most VPS CPanels (open-source PaaS like Dokku, Caprover, Easypanel) don't support `docker-compose.yml`) so I had to find an alternate solution using `--env-file` option in a `Makefile`:
```make
.PHONY: build-staging
build-staging: ## Build the staging docker image.
docker build -... |
The thing you should know is that the size of a pointer is independent of its data type and it is based on the computer architecture; for example, on a 64-bit machine this code snippet always returns 8 which means whatever the type of pointer is it always takes 8 bytes;
int main()
{
int *p;
... |
I have done chunking of the data prior to this and intend to do embeddings and store in pinecone. I have reffered youtube on this as well and found this code and its not working.
```
docsearch = pc.from_documents([t.page_content for t in text_chunks], embeddings, index_name= 'mcahtbot')
```
I get this error.
... |
I am unable to perform the vector embeddings with the help of pinecone and python |
{"Voters":[{"Id":807126,"DisplayName":"Doug Stevenson"},{"Id":10802527,"DisplayName":"K J"},{"Id":13376511,"DisplayName":"Michael M."}],"SiteSpecificCloseReasonIds":[13]} |
I am trying to have the album images for each of the top tracks shown next to their song but no matter what I do they are showing up as little green boxes.
[
Photo of Whats Happening](https://i.stack.imgur.com/MFFak.png)
Here is the relevant code:
```
public void onGetUserProfileClicked() {
if (mAcces... |
Album Images Not Showing Up When Called From Spotify API Android Studio |
|android|spotify| |
null |
I am trying to implement a higher order component in TypeScript so that I can pass my ErrorBoundary as a parameter to the higher order component and then the higher order component returns the current location of the user so that I can use it in my ErrorBoundary component.
ErrorBoundary:
```
import React from "r... |
The top rated answer does not work with the new Reflection implementation of [JEP416](https://openjdk.org/jeps/416) in e.g. Java 21 that uses MethodHandles and ignores the flags value on the Field abstraction object.
One solution is to use Unsafe, however with [this JEP](https://openjdk.org/jeps/8323072) Unsafe and ... |
For a given `MaxDegreeOfParallelism` and fixed amount of objects that need to be processed (i.e. have certain code executed on them) it would seem `Parallel.ForEach` and an `ActionBlock` would be equally useful.
What considerations would need to be taken into account when choosing one over the other? |
I use eslint and tslint to help me avoid silly mistakes.
However, today, I made a mistake when declaring an event listener to catch uncaught promise rejections:
window.addEventListener('unhandledRejection', debugError)
The correct type is `unhandledrejection`, not `unhandledRejection`. I wasted a lot o... |
Is there a way to lint event listener types in JS/TS? |
|javascript|eslint|tslint|typescript-eslint| |
io.cucumber.core.exception.CucumberException: Could not find object factory org.example.CustomObjectFactory.
Cucumber uses SPI to discover object factory implementations.
Has the class been registered with SPI and is it available on
the classpath?
at io.cucumber.core.runtime.ObjectFactoryServiceLoader.loadSele... |
Facing issue while running Testcases from runner class in the Cucumber with ObjectFactory with Latest Version of Cucumber |
|cucumber|cucumber-jvm|cucumber-java| |
null |
I just set up firebase in my angular project. I have a problem while trying to use a firestore function.
I have this service:
```
import { Injectable } from '@angular/core';
import { Firestore } from '@angular/fire/firestore';
import {
doc,
getDoc,
} from 'firebase/firestore';
@Injectable({
provided... |
null |
When I run my next js project it gives me this feedback:
next\swc-win32-x64-msvc\next-swc.win32-x64-msvc.node is not a valid Win32 application.
\\?\C:\Users\ABDUL-MOOMIN IS-HAQ\Desktop\Desktop\lms_app\node_modules\@next\swc-win32-x64-msvc\next-swc.win32-x64-msvc.node
⨯ Failed to load SWC binary for w... |
Try using Scala 2 syntax (still working in Scala 3 so far)
fastparse.parse("1234", implicit p => parseAll(MyParser.int(p)))
https://scastie.scala-lang.org/DmytroMitin/MrFZ0EhiSPeFDHd1IyBhrA
Possible Scala 3 syntaxes are a little awkward:
fastparse.parse("1234", p => {given P[_] = p; parseAll(MyParse... |
The following code (at [Playground here](https://www.typescriptlang.org/play?#code/MYGwhgzhAEDKCuAHApgJwMLigKAN7ekOgDN4A7YACjFQHMAuaSgW2UYBcALASwgEpoAXgB80AG4B7bgBMB+Iguipk7eKjLQatAkQC+2fdlCQYAETTcxyaZhPRkAD3bIy0mAhQYsEPDsJiabjAAIxBkIWguXgA6UgpKSgERaFxdPgBuA2wjCTIIdmgJYIArRg80WygIsmQAd2hzVEtrSohE9KA)) gives an error `T... |
Ok. I have fixed this issue by using `useEffect` and `ReactDOM.render` method:
**Code:**
import React, {useEffect} from "react";
import ReactDOM from "react-dom";
import CustomTooltip from "./CustomTooltip";
const BBCodeComponent = ({content}) => {
useEffect(() => {
... |
I often got solution from chatgpt after writing many prompts it actually comes to the point back.
What is 'chatGBT' ? why you all are talking about 'chatGBT' its a discussion of chatgpt ? |
null |
When C++ creates `std::ofstream` it instantly and implicitly creates the underlying file.
I am totally fine with this behaviour unless I have a code which only during its run can see if any data at all will be produced.
So, I want to avoid creating empty files when no data sent to them (kind of transactional int... |
Why is my border not working as I would like? |
I'm trying to scrape from Linkedin hrefs to better filter the results. However, for some reason the code will only return results 1-7 only. Results 8 or more will not return, even if explicitly stated. I have included sleep timers to help the website complete the load, but still only 1-7. Is there a bug, a security mea... |
I'm trying to create a code for **perfectly optimal chess endgame**.
This code for chess endgame is my currently best [one](https://pastebin.com/zkcbgANy)
import chess
def simplify_fen_string(fen):
parts = fen.split(' ')
simplified_fen = ' '.join(parts[:4]) # Zachováváme pouze info... |
chess endgame engine in Python doesn't work perfectly |
|python-3.x|chess|python-chess| |
If the variable being checked is not an argument to the method, then it would be bad. The ArgumentNullException.ThrowIfNull throws an [ArgumentNullException][1] which explicitly means that caller of the function did something wrong.
If the checks are for the state of the object then you are probably after an [Invali... |
I don't understand why the results display 'cat' first, followed by 'dog', and then 'bird'. I expect to see 'bird' first, followed by 'dog', and finally 'cat'.
```
async function asyncOperation1() {
return new Promise(resolve => {
let x = 0;
for (let i = 0; i < 10000000; i++) {
x += 1;
}
... |