instruction stringlengths 0 30k ⌀ |
|---|
```
// useWebVitals.ts
'use client';
import opentelemetry, { TimeInput } from '@opentelemetry/api';
import { CARE_APP } from '@/components/shared/constants/careAppConstants';
import { useReportWebVitals } from 'next/web-vitals';
const DEFAULT_ROUTE = 'Home';
const EVENTS = [
{ metric: 'FCP', name: '... |
Is their any way for sql developer to show query result vertical one after other
Like below I want to set
If i run 2 select query the ouptut should come vertically one after other
vertically want 2 output

Any properties available to achieve it |
null |
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-28 23:34:35```
When setting the timezone in ClickHouse to Asi... |
I'm new to sequelize and I have 2 tables:
User
Adress
MERISE methods:
A user can have one ore more address: 0,n.
An address is related to only one user: 1,1.
So my Foreign Key is id_user in Address table.
My question is: HOW TO DO IT in sequelize ?
My current code:
```
module.exports = (se... |
I'm using react native. when I run the project I'm getting an error which is
error: Multiple commands produce '<APP_NAME>.app/PrivacyInfo.xcprivacy'
note: Target 'AppV2Stage' (project 'AppV2') has copy command from '<ProjectPath>/ios/PrivacyInfo.xcprivacy' to '<DerivedData_Path>.app/PrivacyInfo.xcprivacy'
... |
Multiple commands produce while adding Target |
null |
> \`I need to implement Firebase push notification, so I added the packages of latest version into my Maui .net8.0 project. Here are the packages added in csproj file for push notifications. I'm getting error when I upgraded to the latest version of these packages related to error- JAVA0000.
121.2.0.2
... |
Can MySQL be configured to visually display NULL values differently? |
|mysql| |
Using Alex and Happy on a tiny grammar for arithmetic expressions (only `+` and `-` among integers), I want to implement an `eval()` function, which parses as an `Expr` the string given as an argument.
Here's an example of the expected result:
```
$ stack run
1 + eval("3-2")
Plus (ConstInt 1) (Minus (ConstInt 3... |
I am trying to run a Selenium script from a JAR file on a Raspberry Pi Zero 2, and get this error:
```none
Exception in thread "main" org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: Capabilities {browserName: chrome, goog:chromeOptions: {args: [--headless=new], binary: /usr/bin/chromedriver, ext... |
Selenium with Chromium driver on Raspberry Pi |
As already recommended in the comments you can improve the sieve using [wheel factorization](https://en.wikipedia.org/wiki/Wheel_factorization#:~:text=Wheel%20factorization%20is%20a%20method,with%20n%3D2x3x5%3D30.).
This is an example that I created some time ago using a wheel of size 30 for the range of use you ask... |
iget this error when install tulind by usin npm install tulind when install instedy of runing server I get this erro aing-bot\node_modules\tulind
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-buildinstall |
npm install tulind in my crypto server side |
|cryptography|tradingview-api| |
null |
can someone tell me how to search for MongoDB collection documents by the value of the _id field, if this field is of type UUID? I can't figure out how to use the Delphi driver to transfer the value of the desired UUID to the server? Therefore, I can't implement the simplest MongoDb query like
```
db.MongoCollection... |
I am trying to understand Eclipse RCP to maintain an Eclipse application. I created a template example with the "RCP 3.x application with a view" wizard. It opens a bare window with a single view, no toolbar, no nothing. A tutorial showed me how to add a basic "File" > "Exit" action like so:
```
plugin.xml
<ext... |
|oracle|plsql|oracle11g| |
you need to run ```npx tailwindcss init``` to generate the config file and if afterwards the file is generated but your app in unable to read the classes especially for react apps you might follow the instructions here even though they are kind of weird but it works.[tailwindcss](https://v2.tailwindcss.com/docs/guides/... |
Finally I could get it working. I separated everything in 2 Terraform files. Here is the final code:
1) File `vm_insights.tf` (this one is almost identical than the original version posted in the question, but you can see that now a `SystemAssigned` identity is being used):
```
# Deploy the Azure data collectio... |
This answer should work with a single page push-state app,
or a multi-page app, or a combination of the two.
*(Corrected to fix the `History.length` bug addressed in Mesqualito’s comment.)*
### How it works ###
We can easily listen for new entries to the history stack.
We know that for each new entry, the [speci... |
I have a GBM pickle object i want to convert this pickle object into RDS object using reticulate package in R environment.
I have attempted to convert pickle to json and json to RDS
while converting pickle to json i am extracting parameters from pickle model object then saving in a dictionary and converting dict to... |
I want to convert pickle object to RDS object |
I have a problem with a java future and an handler function. code example:
```
public HealthCheckResponse call() {
String redisHost = this.configuration.getRedisHost();
log.info("connect to redis host: {}", redisHost);
Future<RedisConnection> redisConnectionFuture = Redis.createClient(Vertx.vertx(),... |
Spying on useReportWebVitals in vitest |
|next.js|vitest|core-web-vitals|web-vitals| |
null |
## Context
After creating a `root_dir/docs/source/conf.py` that automatically generates the `.rst` files for each `.py` file in the `root_dir/src` (and `root_dir/test/`) directory (and its children), I am experiencing some difficulties linking to the `src/projectname/__main__.py` and `root_dir/test/<test files>.py` wi... |
Let say I have a video with a Vtuber singing songs and talking between songs, for example:
https://www.youtube.com/watch?v=GjYSd1ykmFw
I would like to mark the starting time and ending time of each song, but it is a bit time consuming to mark it manually, and it seems there is no existing tools for this. I am consi... |
Is there a way to differentiate music and talking from a video? |
|audio| |
Azure AD guest account in web app authentication user claims data |
I am trying to combine multiple macros into one. How do I add a loop so that it repeats itself 'x' amount of times, with 'x' being the values of Sheet3!A1, and then it executes the print preview function?
This is the VBA code I have so far. I cant seem to get the loop to work correctly. Im trying to work out what I ... |
I have a class Table which exposes some properties via magic `__get()` and also provides array-like access, e.g `$table['col1']` is instance of Column. Compact example:
```php
$table = new Table();
// via magic getter
$table->readonly = false;
// $table['id'] returns Column object
$table['id']->readonly = true;... |
Documenting PHP ArrayAccess objects |
|php|phpdoc| |
Have you checked in the browser dev tools that the 'my-sticky-gridfield' class is actually added? I think the GridFieldConfig_RecordEditor doesn't have an addExtraClass method.
So, you could use the fieldset id in combination with the row (e.g. '.sortable-header') you want to have sticky.
Have you had a look at ... |
I'm trying to obtain information about land use for vineyards using R by selecting the vineyard category from the TIFF downloaded from CORINE Land Cover.
```corine <- rast(paste(dir$land, "U2018_CLC2018_V2020_20u1.tif", sep = "/"))
unique_values <- unique(corine)
print(unique_values) #15 vineyards
vineyard <- co... |
How to extract vineyard land cover from CORINE in R? |
After adding the packages of "Xamarin.Firebase.Messaging", getting error related to JAVA0000 "Compilation failed" |
|firebase|xamarin|push-notification|maui| |
null |
I'm solving a system of stochastic differential equations:
```
#define drift fuction
F!(du,u,t,p)=...
#define noise function
G!(du,u,t,p)=...
#constructing and solving the problem
u_0=zeros(100,100)#initial condition
tspan=(0.0,10.0)
problem=SDEProblem(F!,G!,u_0,tspan,p)
solution=solve(problem,SOSRA(... |
Getting updates from SDE solver in Julia |
|julia|differential-equations|stochastic-process|differentialequations.jl| |
null |
I know it's an old post but for those who came here looking for an answer, I found this one:
https://marketplace.visualstudio.com/items?itemName=henryclayton.context-menu-toggle-comments |
I am learning api development with php now. While experimenting the password hashing i came up with a problem. **Initally i used bcrypt algorithm, it successfully works.** but when i tried **Argon2i or Argon2id it not works**.
```
public function test_hash() {
if(isset($this->_request['pass'])) {
$h... |
null |
I have a problem with a java future and an handler function. code example:
```
public HealthCheckResponse call() {
String redisHost = this.configuration.getRedisHost();
log.info("connect to redis host: {}", redisHost);
Future<RedisConnection> redisConnectionFuture = Redis.createClient(Vertx.vertx(),... |
I have a primitive `Flux` of `String`s, and run this code in the `main()` method.
```java
package com.example;
import reactor.core.publisher.Flux;
import reactor.core.scheduler.Schedulers;
import reactor.util.Logger;
import reactor.util.Loggers;
import java.util.Arrays;
import java.util.List;
... |
|qt-creator|qmake| |
The error occurs because you don't stub static `DriverManager.getConnection` in your test code.
Preferable way is to replace `DriverManager` with `DataSource`
See [DriverManager javadoc](https://docs.oracle.com/en/java/javase/21/docs/api/java.sql/java/sql/DriverManager.html)
> The DataSource interface, provide... |
Eclipse RCP: Is the "Window > Show View" Menu Predefined Somewhere |
|eclipse|rcp| |
I did a couple of test deployments and they actually seem to overlap and influence eachother.
For example:
- If you enable the `enableBasicAuth` property in the `portalconfigs`, you also enable the `portalsettings` with name `signup` and vice versa.
- If you set the terms of service text via the `portalsettings` ... |
We wave a new way to make this on D.js v14
const attachment = new AttachmentBuilder('./image.png', { name: 'image1.png' });
const embed = new EmbedBuilder()
.setTitle('Attachments')
.setImage(`attachment://${attachment.name}`);
channel.send({
embeds: [embed],
files: [a... |
The top answer to [this stackoverflow question][1] mentioned a [calculator][2], but I cannot find dataflow in it.
[![enter image description here][3]][3]
[1]: https://stackoverflow.com/questions/74050648/how-can-i-calculate-costs-for-apache-beam-pipelines-running-on-google-dataflow
[2]: https://cloud.googl... |
how can i get a sense of the cost of my dataflow prime job? |
|google-cloud-dataflow| |
It drives me crazy. Why can't I navigate using step forward or into in callstack frames? It works only with the current frame (if you try to step into in a previous frame it will switch you to the step into of the current one)
So there's some code executed, I don't want to reexecute it or change execution line or ... |
|r|geospatial|raster| |
null |
With the appropriate configuration of Microsoft cloud settings, B2B collaboration, and cross-tenant access policies, an application in the Azure Government Cloud can access resources in the public cloud using Azure Active Directory for authentication and collaboration purposes.
[More Details][1]
[1]: https://... |
|laravel|postman| |
I am designing an eye-tracking / head-tracking application in VR with the Varjo Aero HMD in Unity with Unity Experiment Framework (UXF; see [here][1]) (for a bit of background : <https://link.springer.com/article/10.3758/s13428-020-01388-2>).
I am sampling the eye-tracking data at 200 Hz as per the HMD specification... |
Raycast sample frequency in Unity C# |
|c#|unity-game-engine| |
|javascript|html| |
I was trying to decode red line markup file (file with .rdl extension) which is used by Metaweb CGM Plugin. For my work, I need to use this rdl file. I tried many options but there is no much information regarding rdl file in the internet. I also tried reaching out to the team who developed this Metaweb CGM Plugin, but... |
RDL File Decoding from Metaweb CGM Plugin |
|decoding| |
null |
I am trying to visualise a google slide presentation embeded in an iframe.
This I frame is suppose to be running on a touchscreen tv, which means on touch (click) it will react as a mobile.
It works fine until i try to click to get to the new slide (doesn't work only swiping works) or try to click on a link to anothe... |
Embeded Google slides opens new tab on screen touch (mobile mode) |
|javascript|iframe|google-slides| |
null |
I encountered the following problem: I have a pandas dataframe that looks like this.
| id_tranc | sum | bid |
|:-------- |-----:|:----------:|
| 1|4000|2.3%|
| 1|20000|3.5%|
| 2|100000 |if >=100 000 - 1.6%, if < 100 000 - 100$ |
| 3|30000| if >=100 000 - 1.6%, if < 100 000 - 100$|
| 1|6... |
Trying to setup a formula in excel to compare 2 colums, sample data set below.
Considering there will be blanks in column B and we must go in order
| Column A | Column B |Column C
| -------- | -------- |
| 3 | 3 |match
| 4 | 3 |difference
| 5 | blank |skipped
| 6 | ... |
requesting excel formula to compare columns but going in order and skipping blanks |
|excel|excel-formula|compare| |
null |
I have this problem while running C++ headers files on VS code on mac, my computer is new so I don't know if that is causing the problem. Basically, I need to read header files to have object from another class in my class but I'm getting this error, 'unknown type name 'Accounts' ' in my customer.h file when I run my d... |
C++ - Unknown type name |
|c++|class|header-files| |
null |
To send on-premise server metrics to Cloudwatch, do I need direct connect or a AWS VPN to connect my on-premise server to AWS ?
I haven't yet tried anything. This is just for planning purpose. We will start sending metrics to Cloudwatch in a few days. |
Sending metrics data from on-premise Linux server to Cloudwatch |
|amazon-web-services|amazon-cloudwatch|on-premises-instances| |
null |
Have a custom command with 7 arguments. It works perfectly for my application. I would like to however have a hover box appear that shows "\tab{colDef}{titleRow}{Rows}[Caption][Label][Width][align]" when my curser hovers over the command, so I can easily recall the arguments as I am implementing it. I have latex and la... |
{"Voters":[{"Id":712649,"DisplayName":"Mathias R. Jessen"},{"Id":476,"DisplayName":"deceze"}]} |
I try to connect from an old centos 6 system to a "brand new" AWS linux 2023 in ssh and I have an error "**no hostkey alg**".
From the AWS docummentation, on AWS linux 2023, ssh-rsa keys are disabled, but we can authorize them (https://docs.aws.amazon.com/linux/al2023/ug/ssh-host-keys-disabled.html), so that is done... |
Why can I not login to a new linux system (amazon linux 2023) from an old one (CentOS 6) |
|ssh|ssh-keys|openssh| |
just use `com.android.vending`
I use this in my React native project
here is the reference : [link][1]
[1]: https://stackoverflow.com/questions/66896154/getinstallerpackagenamestring-string-is-deprecated-deprecated-in-java/78238044#78238044 |