instruction
stringlengths
0
30k
Fine grained resource mangement and heap memory in flink task slot
|apache-flink|flink-streaming|
I’m making an in app purchase for my game on Steam. On my server I use python 3. I’m trying to make an https request as follows: conn = http.client.HTTPSConnection("partner.steam-api.com") orderid = uuid.uuid4().int & (1<<64)-1 print("orderid = ", orderid) key = "xxxxxxxxxxxxxxxxxxx" # omitted for...
In base R, it is possible to automatically use the Freedman-Diaconis rule for setting bin width in a histogram: ```r hist(rnorm(100), breaks = "FD") ``` There does not appear to be this behavior in base ggplot. I have been trying to implement this method for easier use with `geom_histogram`. I would like to...
Call ggplot2 aesthetics in another function
|r|ggplot2|
null
This should be a [question](https://stackoverflow.com/questions/ask), not a discussion post.
null
In my case, I am sure the defendency is included, but even if the dependency is included, we need ensure the JAR file containing ObjectMapper is on the classpath. This usually happens automatically with build tools, but double-check if you're manually managing the classpath. i was able to solve this error by cha...
After drop_na it shows 0 obs. of 68 variables: [![enter image description here][1]][1] [![enter image description here][2]][2] [![enter image description here][3]][3] [![https://i.stack.imgur.com/R7nfg.png[4][4] After drop_na I don't see any results in the Table except dates. This was not the case when I...
Method 1:- Try to remove imports of 'dart:js_interop' as it may be imported by default in many of your project files. Method 2:- NOTE that this import are certainly due to usage of StreamBuilder in your app , so try to use any alternative widgets to do the same work inorder to solve your problem if NOT solved by first...
Sorry my bad English. 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 t...
Preventing Google Analytics from counting traffic to a custom URL
|google-analytics|google-tag-manager|
null
I have created Monorepo The problem is that share eslint I think package dependencies can be linked together But, my package doesn it! At root .eslintrc.js, it extends '@packages/eslint-config-custom' but output msg say that: [![enter image description here](https://i.stack.imgur.com/5s3OD.png)](https://...
Why my Monorepo eslint-config-custom's dependencies doesn't installed together?
|monorepo|yarn-workspaces|yarn-berry|
null
solution: ``` CREATE OR REPLACE FUNCTION set_note_id() RETURNS TRIGGER AS $f$ DECLARE max_identifier INTEGER; BEGIN SELECT MAX(id)+1 INTO max_identifier FROM test.notes WHERE user_id = NEW.user_id; IF max_identifier IS NULL THEN max_identifier := 1; END IF; NEW.id := max_identifier; RETURN NEW; ...
``` Below is sample doc of collection. { name:"sam", age:20, hobbies: [ {id:1, value: "football"}, {id:2 value:"chess"} ] }, { "name": "Bob", "age": 30, "hobbies": [ { "id": 1, "value": "painting" }, { "id": 2, "value": "gardening" } ] }, { "name": "Charlie", "age": 22, "hobbies"...
In Normal Operation, Maven Calculates and Downloads Transitive Dependencies --- There's a presumption in the question that it was _normal and expected_ by Wiremock's development team that you would add jetty-util as a dependency. That's not true: *This was a bug.* The alternative to standalone jars is not needin...
I have a jiobook 2023, I want to flash a costume rom in it. Specifically ubuntu touch. Is there any way to flash? Flashing laptops by going into bios mode doesn't work. It is more like a Android mobile without volume buttons.
Jiobook flashing
|android|arm|flashing|
null
The first thing I noticed was the lack of dots next to the php variables, I didn't check the code. ``` $qurty=mysqli_query($conn,"select * from tblattendance where subject = ".$id." and date = ".$dateTaken." and status = '1'"); $count = mysqli_num_rows($qurty); $qquery=mysqli_query($conn,"update tblattendance ...
Is there any difference between using map and using function if everything is known at compile time. (I'm new to Kotlin/Java and i couldn't find answer to this) Maximal number of items will never be higher than 200 and for the most of the time it would be below 10 Example: ```kt val mappings = mapOf( "PL" t...
null
After drop_na it shows 0 obs. of 68 variables: [![enter image description here][1]][1] [![enter image description here][2]][2] [![enter image description here][3]][3] After drop_na I don't see any results in the Table except dates. This was not the case when I tried it before, I could see the values ​​in ...
null
the main problem is in Multi-part form data it not using in react-admin : details: I have a Django REST Framework backend API with a ProductViewSet that handles product creation. When creating a new product, I'm expecting to receive an image file along with other product data from a React-admin frontend. Here's the r...
just do `npm i pnpm --global` it will install pnpm global.
{"Voters":[{"Id":1544327,"DisplayName":"user1544327"}],"DeleteType":1}
For elevation you'd need some data source / provider. `elevatr` package potentially can provide you values for point locations, for example through *Amazon Web Service Terrain Tiles*, but you'd probably need to evaluate those results and work out acceptable resolution / zoom levels. Here I'm assuming that "relative...
I am using nestJS (typescript) for developing server. I have to access GCP datastore to update and fetch data. Currently I am doing development locally so I want to access GCP datastore locally. In GCP console, I have done following steps in already created project: 1. Created Service Account with role as Owner....
Unable to call datastore using GCP service account key json
|node.js|google-cloud-platform|nestjs|google-oauth|google-cloud-datastore|
So I have a "sign in with google" button on my site that uses the oauth2 flow to identity the user, but we don't request their email address as we don't strictly need it. This works fine and I can use the returned subject to identify users. I would now like to create a file in a drive, and share it with this logged ...
Microsoft doesn't provide the clearest documentation on the autodetect of relationships. It has been improving over the years. It used to be so bad, many developers would go into the settings and turn off autodetect for relationships. We would then manually create them. In general, it's a good practice to investigate e...
I have a react native iOS app in which I have to get/record user voice query and respond to that. Now the thing is that I want this feature 'Interaction Less'. Like I don't want how ChatGPT mobile app did it. Like they had a headphone button, I press it, record my query and get answer. I don't want like this. I w...
How to incorporate Siri in React Native iOS app
|ios|react-native|siri|sirikit|sirishortcuts|
null
What is the required mapping to rename a column label with a string function? e.g. this works for all columns: df.rename(columns=str.upper) But with df.rename(columns={'Col 2': str.upper}) the resulting label is: <method 'upper' of 'str' objects> ---- import pandas as pd im...
Mapping to rename a single column label with a function?
|pandas|indexing|rename|
So basically, I'm trying to do a Task manager on Android Studio with some additionnal features. I began the project by doing a drawer menu which led me to do some fragment. I am now doing the Task managing part, following this tutorial : https://www.youtube.com/watch?v=27MXFSWC1_4&list=PLzEWSvaHx_Z2MeyGNQeUCEktmnJBp...
Are C labels instructions or constants
|c|label|goto|
null
I have this data the id here (lr_01HT89SX627dFDPCAXBS4H2T9d) is dynamic. https://www.example.com/api/pub/v2/verifications/lr_01HT89SX627dFDPCAXBS4H2T9d I need to extract the id- lr_01HT89SX627dFDPCAXBS4H2T9d from https://www.example.com/api/pub/v2/verifications/ the id will be different for every response. ...
`foo()` is taking in a primitive `int` *by value*, so it is a *copy* of whatever value you pass in. There is no reference. It doesn't matter what `foo()` does to `y`, that value is not reflected back to the caller. Also, there is no such thing as "point at a value", either. You can point at a variable, but not a...
I think you have misunderstood CORS. You try to fetch some youtube URLs from localhost (with xhr I assume) which YOUTUBE doesn't allow with its CORS. Changing your own API CORS will allow other sites to fetch from your API I also have a couple of notes on the question/update: 1. When asked what OPTIONS **return...
I figured it out. I had to change the folder that this component was in. I had it in the same folder as the page. The `/src` folder had both `page.tsx` and `icon.tsx` I moved the `icon.tsx` to `/src/api/` and that resolved it. I feel silly for not realizing that but this page of the Next.js docs helped: https://nextj...
Can you use the Drive API to share a file in Google Drive to an oath2 subject rather than email address?
|google-drive-api|
null
Step 1: Install VS Code\ Step 2: Get ESP-IDF Explorer Extension\ Step 3: Click View -> Command Palette\ Step 4: Write "ESP-IDF: Configure ESP-IDF extension" and click\ Step 5: Click "EXPRESS" I then get the error message: Invalid ESP-IDF
I get error message "Invalid ESP-IDF" when I configure the ESP-IDF extension
I am trying to add overlay text to images using the GD library in php, while it works perfectly for characters in english, I am having rendering issues when the text is in hindi, even when the font used supports hindi text. Upon transformation and rendering on the image using the font, the result is not as desired. ...
I have stuck with a pretty simple problem - I can't communicate with process' stdout. The process is a simple stopwatch, so I'd be able to start it, stop and get current time. The code of stopwatch is: ```python import argparse import time def main() -> None: parser = argparse.ArgumentParser() par...
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...
I write code for the ESP32 microcontroller. I set up a class named "dmhWebServer". This is the call to initiate my classes: An object of the dmhFS class is created and I give it to the contructor of the dmhWebServer class by reference. ``` #include <dmhFS.h> #include <dmhNetwork.h> #include <dmhWebServer.h> ...
I'm encountering an issue in Code::Blocks where attempting to build C++ code results in the error message "Error: id returned 5 exit status," even when there are no syntax errors present in the code. Here's an example: ``` #include <iostream> int main() { std::cout<<"hello world"; } ``` Even for this...
Title: Error: id returned 5 exit status when building C++ code in Code::Blocks
|c++|access-denied|
null
i implemented chatbot in dart ... my issue which is i have many lists like greeting list , bye list and so on when the use enter the question , the response will be only for the longest key for example : greeting list has [ hello ] --> return Hello how can i help you bye list has [ Good Bye ] --> see you...
chatbot respond to onequery type
|flutter|firebase|dart|package|chatbot|
null
I define a dx-data-grid with its proper dataSource (defined on the component) and a <dx-<dxo-master-detail [enabled]="true" template="detail"> </dxo-master-detail> <div *dxTemplate="let item of 'detail'">.. I'm trying to invoke a function when one of the grid rows is expanded. The function makes ...
DevExtreme dxo-master-detail load data function
|typescript|devextreme|angular11|
As stated in the top rated answer, it is not possible to directly configure a fallback font via JavaFX's css. But it is possible when leveraging the internal JavaFX API. It is possible by directly manipulating the underlying `FontResource` of the `Font` via the Reflection API. Here is a [demo](https://github.com/...
There are two ways to filter documents that match a kNN query [pre-filters and post-filters][1]: You can choose the one that suits your use case. 1. pre-filtering – filter is applied during the approximate kNN search to ensure that `k` matching documents are returned. 2. post-filtering – filter is applied after the...
I'm 5 years late, but in case anybody else ever runs into this issue, you need to use the [browser runtime module][1] if you want to refer to files in your project directory. Something like this should work: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> const ...
{"Voters":[{"Id":2152082,"DisplayName":"Stephan"},{"Id":1940850,"DisplayName":"karel"},{"Id":3074564,"DisplayName":"Mofi"}],"SiteSpecificCloseReasonIds":[11]}
You can only **EMBED** Youtube videos in an *iframe* and it'll only work if they're not very popular (ie: most music videos with tons of views get blocked). Here's how I do it, however... it is based on **data:text/html** to create a "openable" page on the fly and I'm not sure if this still works in the latest brows...
On successful paid orders for all payment gateways *others than Bank wire, cheque or Cash on delivery,* you can use dedicated [`woocommerce_payment_complete` hook located in `WC_Order` `payment_complete()` method][1] instead of more generic hook `woocommerce_thankyou`, like: ``` add_action( 'woocommerce_payment_comp...
I have the following bash shell script which I want to schedule every day at 5:00 PM using lambda custom run time. ``` #!/usr/bin/bash declare -a end_points end_points=$(aws ec2 describe-vpc-endpoints --filters "Name=vpc-endpoint-type,Values=Interface" --query 'VpcEndpoints[*].VpcEndpointId' --output text) for ...
Unable to run Bash Script using AWS Custom Lambda Runtime
|amazon-web-services|aws-lambda|
<!-- language-all: js --> *Here's one approach (**`non-regex`**) you may test out in Sheets:* =let(Λ,A2, Σ,map(sequence(rounddown(len(Λ)/2)),lambda(Σ,{left(Λ,Σ),left(Λ,Σ)=mid(Λ,Σ+1,Σ)})), ifna(+filter(Σ,index(Σ,,2)),"-")) [![enter image description here][1]][1] - lists all probabilities using...
Creating a module for this purpose is inevitable and not a strenuous task at all. All u need is a `package.json` with an `exports` field to limit which submodules can be loaded from within the package. From the [official Node.js docs](https://nodejs.org/api/packages.html#exports): > The "exports" field allows defini...
`app` defined in *app.py* and `app` created within the `client` fixture are **two different `Flask` instances**, and the instance from the fixture doesn't have the route applied via the `@app.route` decorator. The solution is to use the same `app` object from *app.py* in your tests. That obviously means that you wou...
How to solve compiler error: no matching function for call to 'class::ctor()' in my case?
|c++|class|object|constructor|esp32|
null
I am trying to configure records on aws by looping instructions from my data source. the data source looks like this: ``` data "dns_instructions" "example-dns-instructions" { id = "123" instructions { name = "www.example.com" type = "A" value = "1.2.3.4" } ...
Terraform - loop over complex data in data source
|terraform|
I'm working on a Rails application where I'm using amCharts 5 to create charts. I have a requirement to display the legend name along with its corresponding color in the tooltip text for each series in the chart. I've tried several approaches, including customizing the tooltip function, but I'm encountering difficultie...
How to display legend box in tooltip text for amCharts 5 in Rails application?
|javascript|ruby-on-rails|chart.js|tooltip|amcharts|
null
I have developed a tool [here](https://github.com/ae-creator/CosmosJS/tree/fix-declarations ) to facilitate my development with bun.sh using workspaces that will be used as npm package however I have 2 problems, When I bun install the 'core' packages from npm and test a sample, I get this error: Could not fi...