instruction stringlengths 0 30k ⌀ |
|---|
What is url of Mastercard hpf.js script? |
|html|mastercard|hpf| |
null |
I'm reading "Programming in Lua, Forth Edition", and I'm stuck on exercise 13.1, because Lua does not seem to behave like in the book. The section 13.2, about Unsigned Integers, states:
```
> x = 13835058055282163712 -- 3ul << 62ul
> x --> -4611686018427387904
```
But if I do that in Lua... |
64 unsigned integers in Lua 5.3/5.4 do not behave like in "Programming in Lua" |
|lua|unsigned-integer| |
I use the example of `plotmf` function in the [document](https://www.mathworks.com/help/fuzzy/plotmf.html) and at the same time, I want to change the font of `x` label. So I use the code below:
```
fis = readfis('tipper');
plotmf(fis,'input',1)
xlabel('\fontname{宋体} 论域')
ylabel('\fontname{宋体} 隶属度')
```
But... |
I'm working on a project where I have a Bison parser that parses a custom language. I've encountered an issue where the parser stops after encountering the first error in the input file, but I need it to continue parsing and capture multiple errors.
When the parser encounters an error (e.g., a syntax error), it call... |
AWS DynamoDB QueryRequest multiple sort key values |
|c#|.net|amazon-web-services|amazon-dynamodb| |
One option would be to pass a vector of colors to `hc_colors` where the order of the colors is set according to the order of your categories:
``` r
library(highcharter)
colors <- df |>
dplyr::distinct(name, COLOR) |>
dplyr::arrange(name) |>
dplyr::pull(COLOR)
hchart(df,
"line",
hcaes(x = row_la... |
null |
Try this
const resp = await fetch(`/api/bmi?${queryParams}`, {method: "GET",
headers: {
"Content-Type": "application/json",
},
}).then(res => res.json());
https://developer.mozilla.org/en-US/docs/Web/API/Response/json |
I have created a tcp socket with `/dev/tcp/localhost/9999`.
I have a `nc` listening on port 9999.
When you create a socket with `/dev/tcp`, it usually finishes its connection after data is transferred. But when you create a tcp socket by `bash > /dev/tcp/localhost/9999 0<&1`, it keeps the connection alive waiting for... |
How does bash > /dev/tcp/"ip"/"port 0<&1 keep its connection alive? |
|linux|bash|shell|sockets|tcp| |
First please ignore above answers. you need to create isUnique class:
```js
import { Injectable } from '@nestjs/common'
import { ValidationArguments, ValidatorConstraint, ValidatorConstraintInterface } from 'class-validator'
import { EntityManager } from 'typeorm'
@ValidatorConstraint({ name: 'IsUniqueConstrai... |
I am trying to use Gearman with my Spring project. But when i try to connect to the job server, it gets stuck, no exception, the client seems to go into some kind of endless loop.
I use docker for the gearman job server like this:
docker run --name gearman -p 4730:4730 dockage/gearmand
In my pom.xml i add ... |
Overlaying frame number with ffmpeg |
|windows|batch-file|ffmpeg| |
null |
|ios|swift|uikit| |
I want to test hotel booking application api in jmeter.
I want to test this application with first 2 search api with increasing load and then decreasing the load with normal booking api for bookin process.
How can I configure load test for each http request under testplan?
I have created normal testplan add all th... |
How to configure api http request with load testing |
|performance|api|testing|jmeter|load| |
null |
This needs to be separate actions: one read followed by an update. Slick allows the composition of actions in a neat way:
<!-- language: scala -->
val targetRows = listItems.filter(_.uid === uid).map(_.isSelected)
val actions = for {
booleanOption <- targetRows.result.headOption
updateActio... |
I downloaded Code::Blocks with the 2012 compiler (so that the compiler would not complain about “GO TO”), ran the code and it gave me a bunch of errors, most of which were related to lines 290-311. Tell me, please, how to fix them? I copied these lines from the book and corrected some errors by combining several lines ... |
null |
I believe you need to run the Analyze Network first and create the view, but I haven't looked at RINAlyzer in a long time. Let us know if that doesn't work and we can dive into it more completely...
|
One use case is for when you want the indices only of a list. const works for this because it throws away the second argument.
```hs
map fst $ zip [0..] "hello"
```
is equal to
```hs
zipWith const [0..] "hello"
```
which returns `[0,1,2,3,4]` |
Actually, it's pretty easy. As part of your app initialization in your CyActivator, you could easily poll your remote site. The CyActivator start method gets called when Cytoscape starts up (or you app changes). I would strongly suggest that you do your poll in a separate thread since Cytoscape won't actually start ... |
I have a custom `get_posts()` query that loads Simple and Variable products, I am posting my code that works when I am filtering simple products **by price** but variable products use a different price field which should be `variable_regular_price[$key]` however... If I just use it, it doesn't work, any idea of how to ... |
Filtering WooCommerce Variable and Simples Products using get_posts() |
I'm not sure how you were able to import a network without a name column. On initial import, the name and shared name columns should be the same. In any case, you could just add an equation to the name column that sets everything to the shared name column.
To do this, click on a cell in the Name column, click on t... |
Cannot trace my own model using torch.jit.trace |
|model|torch|jit| |
null |
Based on this [video][1], why the **click** event affecting the other index of arrays ?
I've trying to use **.eq()** , **.index()** and change the **id** to **class** selector, but how ? Maybe i'm doing some mistake ?
**Foreach :**
[1]: https://drive.google.com/file/d/1k8K5MMn9x7TkLwZbpdi2J4UoVe84YuV-/view
... |
jQuery - Click and enable Button without affecting other foreach Laravel arrays |
|jquery|laravel|indexing|foreach| |
I am making a multiselect component in Next.js and I am using states and setting states. But this error occurs: [](https://i.stack.imgur.com/m8zuP.png) Whenever I click this: [](https:... |
Unhandled Runtime Error TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) |
|javascript|reactjs|typescript|mongodb|next.js| |
null |
I am trying to send a notification to slack channel through salesforce flow.
But I am getting this error
This error occurred when the slackPostMessage action tried
to execute the Slack API method: chat.postMessage.
Error: channel_not_found.
The slack channel exists.
I have ... |
Handling multiple errors in Bison parser |
|parsing|error-handling|bison| |
null |
|python|constraints|cvxpy| |
I am new to Python and have been trying to resolve this.
There is an AWS lambda function written in Python which calls a REST point like this:
```requests.post(Url,headers=Headers,data=Payload)```
Payload in the above call is being passed like this:
```Payload='[{"Code": "'+someCode+'","version": "v1","itemNu... |
Pass integer value in json serializable Python Object |
|python|python-3.x|aws-lambda| |
In your code, the worker threads continuing to execute even after main() has exited:
```lang-none
this is thread 1
this is thread 2
main exists
thread 2 exists
thread 1 exists
thread 1 exists
```
This behavior can lead to unpredictable results.
--
First, you should array your code:
```cpp
#includ... |
Hi guys please am stuck on this code, so I have created the spread sheet table called register and created 2 tables email and username and then put in the javascript code in google sheet app script and deployed it as control authority myself and view access as anyone, then I created the index.html as the register page ... |
How to delete register users from google spread sheet database using javascript when the user clicks the delete buttton |
Java gearman-client wont connect to german job server |
|java|gearman| |
{"Voters":[{"Id":2943403,"DisplayName":"mickmackusa"},{"Id":874188,"DisplayName":"tripleee"},{"Id":2756409,"DisplayName":"TylerH"}]} |
You need a newer QEMU -- the support for reporting the vector registers via the gdbstub looks like it wasn't added until QEMU 7.0 (and there may have been some other bug fixes after that).
(In general, with a new and fast-moving target architecture like RISC-V, you're likely to have better luck using as new a versio... |
So I've kind of solved it... Basically Vite doesn't load `.env` files by default as the files to load can only be determined after evaluating the Vite config, for example, the `root` and `envDir` options affect the loading behaviour. However, you can use the exported loadEnv helper to load the specific .env file if nee... |
Get index of listview's last item
final int lastItemIndex=
controller.pendingTasks.lenght;
Then on the itemBuilder
Write
if index==lastItemIndex? Container(
//Add decoration and shadow
): Container(
//Normal container
),
Let me know if you get any issue |
In Langserve API, created below route
eg: http://localhost:8000/get_gpt4/invoke
```lang-py
app = FastAPI(title=" API",
version="1.0",
description="Helper APIs to augment language models"
)
add_routes(
app,
PredictCustomOutput(),
path="/get_gpt4",
)
```
in **xyz.py**
```lang-py
fro... |
I think this is more or less what you want:
import time
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(headless=False)
context = browser.new_context()
page = context.new_page()
page.goto('https://a... |
I was wondering if anyone out there who has had some extensive experience with **Calyptia Fluentd** might be able to help me with an issue I'm having. I've kind of reached a dead end.
I am running **Calyptia Fluentd** version **1.15.3** on four **Rocky Linux 8.8** servers. The servers themselves are virtual serv... |
The recommendation for a read-only platform (basically what is considered an "extension") is to use Stripe Apps and just utilize [the backend functionality][1]. You could also request Restricted Keys from users as you noted but this is a higher burden than an App installation.
Overall creating a Stripe Connect platf... |
I've set up a Flask API running with Gunicorn inside a Docker container (with Docker Desktop on Windows 11). Everything seems to be working fine, but I'm encountering a recurring issue. Occasionally, I see the following error message in Gunicorn logs:
[1] [ERROR] Worker (pid:649) was sent SIGTERM!
[![docker l... |
I downloaded Code::Blocks with the 2012 compiler (so that the compiler would not complain about “GO TO”), ran the code and it gave me a bunch of errors, most of which were related to lines 290-311. Tell me, please, how to fix them? I copied these lines from the book and corrected some errors by combining several lines ... |
I have a code for Arduino Nano RP2040 written with the usage of Raspberry Pi SDK (it was written to use with Raspberry Pi Pico, but then I switched to Arduino Nano Connect RP2040). Now I want to add WiFi functionality to it, so I want to control the WiFi NINA which is on the board.
I'm trying to port Arduino's WIFIN... |
A few things to fix :
(A) You need to the form tag of your HTML form from
```
<form action="mailto:mymail@gmail.com" method="post" enctype="text/plain">
```
to
```
<form action="so29mar24.php" method="post">
```
(B) and change the PHP from
```
$email_headers = "From: $name <$email>";
```
to
``... |
When I replace `google_service_account_iam_member` [here][a] with `google_project_iam_member` it still works. Which makes me think that `google_project_iam_*` provides more broad permissions: permissions that target any so to say target, be it a service account or whatever. And it seems like it's best to avoid it if th... |
If you are creating the `LogGroup` then you need to set the retention on the [log group][1] itself:
```
const logGroup = new logs.LogGroup(this, 'ServiceLogGroup', {
logGroupName: ecsInfos['logGroup'],
removalPolicy: RemovalPolicy.DESTROY,
retention: logRetention
});
```
When you are specifying log c... |
null |
```
import {
GridColumnMenuContainer,
GridFilterMenuItem,
HideGridColMenuItem,
} from "@mui/x-data-grid";
const CustomColumnMenu = (props) => {
const {hideMenu, currentColumn, open} = props;
return (
<GridColumnMenuContainer
hideMenu={hideMenu}
currentColumn=... |
I solved with this command (even if I don't know why, comments are appreciated):
sudo systemctl restart display-manager |
We just deploy our web gaming platform and starts ads in Facebook and Google.
Per day facebook send us 10k users. We use a tool call mouseflow to check user behaviours and we have around 9k users.
But Google analytics visitors is 116.
We don't really what to do.
Our configuration is simple. We just copied and p... |
Firebase analytics data not accurate |
|angular|firebase|google-analytics| |
Published applications do not rely on the environment variable.
When running your application, you have the option to specify the ASPNETCORE_ENVIRONMENT environment variable on your server to access the corresponding configuration. Just as you added it to Visual Studio launch settings, you can configure it within yo... |
The following code fixes the issue you described and gives the visual effect your example intended. It also looks ahead to the next problem that you are likely to encounter, turtle can have a single handler respond to any key you type, but it won't know what key triggered it. Since you need that key, I've included a ... |
Sending Slack Message to channel from salesforce flow |
|salesforce|slack| |
You could use the `LastActivityTime` with middleware to update the user's last activity time only if a certain amount of time has passed since the last recorded activity. This will reduce the database load. you could use in-memory cache to store the last activity time.
Startup.cs:
public void ConfigureService... |
I have 2 projects.
Project A is written with React but does not use the Next.js framework. It is intended to be served as a headless UI library, allowing any project that imports it to access its components.
Project B is written with React and utilizes the Next.js framework. This project serves as the website's ... |
I am trying to use Ruby to emulate an `append` function from DrRacket. However, when I try it, I get `((1 2 3) . 99)` instead of `(1 2 3 . 99)`. I believe it has something to do with my `to_s` method, so I am trying to make a new copy of the list first before appending the new value. However I am not sure what to do. P... |
I have a Regular Expression `.*\/(\d+)(?![^(]*\))` that it works in other program e.g., C#. And I want to use it in MYSQL, and it return error
```
SELECT REGEXP_SUBSTR(myStr, '.*\/(\d+)(?![^(]*\))'), c.* FROM mytable c;
/* SQL Error (1139): Regex error 'unmatched closing parenthesis at offset 16' */
```
The Re... |
null |
|python| |
I have an application built to PC(.exe) and android(.pak), when executing in the PC I pass the arguments via shortcut + -RCWebControlEnable. It works perfectly.
Unfortunately, this cannot be directly replicated in android. How Am I supposed to do this? Via manifest, correct? But where exactly and in which field shoul... |
Android application with arguments via manifest |
|android|arguments|apk|manifest|autostart| |
null |
{"Voters":[{"Id":8162520,"DisplayName":"Mayukh Bhattacharya"}]} |
> `I am using SpringBoot with Groovy.
> SpringBoot = 2.7.18
> Java version = 1.8
> Gradle = 8.6
> IDE = Intellij Idea
>
> I am getting the below exception while building the application.
>
> **Stacktrace**
>
> Unable to start the daemon process.
> This problem might be caused by incorrect configuration of... |
Exception: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon |
|java|spring-boot|groovy|build.gradle| |
null |
I need to convert a integer column with Julian date values to gregorian date in netezza sql. The source column has values like '41606', '100702', please help |
convert a Julian date to gregorian date in netezza |
The diffusion algorithm is described in the paper: Carlin DE, Demchak B, Pratt D, Sage E, Ideker T. Network propagation in the cytoscape cyberinfrastructure. PLoS Comput Biol. 2017 Oct;13(10):e1005598. doi: 10.1371/journal.pcbi.1005598. eCollection 2017 Oct. PubMed PMID: 29023449; PubMed Central PMCID: PMC5638226. Gen... |