instruction
stringlengths
0
30k
I have a gform where the 2nd question is mobile number. I want to make sure the same mobile number is not entered more than once. Responder should get an error when submitting that the number is already registered. How to use app script to do this. I have tried following code,which is executed successfully but didn’t w...
I have a task and I need to copy data from one SQLite table to almost identical postgreSQL table. I wrote a code that doesn't work and I can't figure out what's the problem. It prints that connection was established successfull, shows no errors, but when I go to the terminal to check `content.film_work` table with comm...
Using MathML, inside \<mrow>, I have an expression that is quite big (once rendered, the symbols occupy more space in vertical than the normal text). When I add a \<mo>(\<\mo> inside the same \<mrow>, the parenthesis is enlarged to match the size of the expression. For example: <math> <mrow> ...
Fences (parenthesis, braces) in HTML and MathML
|html|mathml|
The problem was the buffer size which was 30720 bytes. const int BUFFER_SIZE = 500000000; I just changed the size which is approximately 500MB and now select them from the heap. char* buffer = new char[BUFFER_SIZE];
your postgis host is the name of the postgis service, hence `postgis` you need to add it as environment variable to your second container or use `psql` client inside the container such as: ```psql -h $POSTGRES_HOST -d $POSTGRES_DB -U $POSTGRES_USER```
You have a couple options: 1. Skip the task manually: `./gradlew build -x doSomething` 2. Reconfigure the `check` task to remove any references of `doSomething` task. You can refer to https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:configuring_tasks for more details.
If somebody looking to do this in expo-router, const pathName = usePathname(); console.log(pathName);
I'm encountering an issue where I can access public projects without any problem, but when I attempt to access a private project, I receive an error message stating 'Cannot connect to the remote repository.' I've verified that my access token is correct and tried using it, but the issue persists. Any insights or sug...
Cant connect to any github repository from my netbeans 20
|apache|github|netbeans|repository|git-repo|
You can install pkg-config via homebrew: brew install pkg-config
Take a look at the examples in apollo server doc, on [how to implement resolvers](https://www.apollographql.com/docs/apollo-server/data/resolvers/) In the schema you have already included `comments` property to the `User` type ```gql type User { id: ID! username: String! "List of comments authored by th...
The project is the flutter default app and on macOS when I try to run build runner using (command+shift+b) I face this error on output: Running `flutter pub run build_runner build --delete-conflicting-outputs` Current working folder: `/Users/saeed/Documents/programming/Projects/flutter_bloc_test` Error: spawn flut...
This script tries to add or remove checkboxes from column A if columns B-D are populated or not. If every cell in those three columns of that row is populated then a checkbox is inserted in column A. If even one cell in those three columns of that row is not populated, then no checkbox is inserted. column A = checkb...
App script to prevent duplicate form submission
|forms|google-apps-script|google-forms|
null
I wrote a PHP function which can be used without Phar. It also works with long filenames and was tested with big TAR archives. Compatible with PHP 5 to 8. Usage: ``` <?php $ret = tar_extract ("filename.tar", "./path-to-extract/"); if (empty ($ret["errText"])) { print ($ret["fileCnt"]." files extracted.");...
I’ve created a image from my partition with the e2image tool like this: e2image -rap /dev/sdb2 /backup/sdb2.e2image The Partitions size is around 870GB, but it used only around 25GB. When I do a `ls -laht` to check it size, I get this: -rw------- 1 root root 868G 31. Mär 10:36 sdb2.e2image Then I c...
How to restore a e2image image backup
|backup|restore|ext4|lvm|
2024 method ----------- Use **defaultSuccessUrl** to redirect users after successfull login. You could add a second argument (boolean alwaysUse), but I would not recommand it, it will always redirect users after success login. .formLogin((form) -> form .loginPage("/login") .defaultSuccess...
Should your assignment demand a "purely functional" approach, then you might want to look into recursive solutions or into the `fold` function. Below the same algorithm in three versions. ``` let f1 eq1 vars = let mutable x = eq1 for v in vars do x <- A (B v) x x let rec f2 x vars = ma...
The `-n` option cannot be overridden, so you can't exclude a single tag when extracting all data. It can be activated on a per tag basis by appending a hash tag to the end if a tag name e.g `-TAG#`, but that requires listing only specific tags, not all of them. To override PYExiftool's default use of `-n`, see the [...
You can split your text into sentences make each clickable and then change the bg color fun ClickableSentences() { val paragraph = "This is the first sentence. This is the second sentence. This is the third sentence." val sentences = paragraph.split(". ").map { "$it." } var...
**Summary** I wrote a simple Class (InteractableObject) to help highlight when my hand is interacting with an object. What is a performant and Idiomatic way to script this interaction? I'm using the latest version 63 of both "meta all in one sdk" and Interaction SDK" https://assetstore.unity.com/packages/tools...
How to script a simple collision using hands in OVRCameraRigInteraction?
|c#|unity-game-engine|oculus|
You can use the following code to get seconds and minutes from the miliseconds fun main() { val mili = 150000 val min = mili/1000/60 val sec: Double = (mili.toDouble()/60000.0 - 2.0) * 60 println(mili) println(min) println(sec) }
Next.js not updating state during OnClick after router.push to same page with different ID
i have this page component for each product information: ``` export default function Product() { const { data } = useContext(ShopContext); const { id } = useParams(); if (!data) { return <div>Loading product...</div>; } const product = data.find((item) => item.id === id); return ( ...
{"Voters":[{"Id":1145388,"DisplayName":"Stephen Ostermiller"}],"SiteSpecificCloseReasonIds":[13]}
I'm trying to send an object to my api but i always get null values. Here is my angular method: `createNormalPost(post: CreateNormalPostInterface) { const formData = 'ceasdasdas' return this.httpClient.post<any>(this.API, formData, {headers: {'Content-Type': 'multipart/form-data'}} ); ...
From your code, it seems your `SelectedItem` component is being rerendered (as you could assess by placing a console.log statement in the component), but the selected item is being cached by your useState: ``` let [item, setItem] = useState(CurrentSelectedItem); ``` The first argument of useState is the ini...
My current challenge revolves around Azure Test Plan's robust test management features, which unfortunately [do not include built-in support for importing JUnit test results](https://learn.microsoft.com/en-us/azure/devops/test/associate-automated-test-with-test-case?view=azure-devops#test-types). This poses an obstacle...
onEdit() 'row is not defined' error using checkboxes
|google-apps-script|checkbox|undefined|
Have you tried wrapping the Editor inside `ClientOnly` (from remix-utils)?
hello you should do like this <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> import mysite.wsgi application = mysite.wsgi.application <!-- end snippet -->
For posterity, a guide to HTTP 1.1 *multipart/byteranges* `Response` implemented in Django. For more information on *multipart/byteranges* see *RFC 7233*. The format of a *multipart/byteranges* payload is as follows: <pre><code>HTTP/1.1 206 Partial Content Content-Type: multipart/byteranges; boundary=3d6b6a416f9b5...
null
null
null
null
null
null
I have an application that uses Pub/Sub on GCP. Subscribing works without an issue however whenever I add private final PubSubTemplate pubSubTemplate; I get get an error that reads Error creating bean with name 'pubSubTemplate' defined in ut.importer.eventprocessor.EventApplication: Unsatisfied depende...
Getting right answer on console.log but return function not giving right answer
Setting up the `android:paddingEnd="0dp"` parameter on Spinner xml tag solved my issue. Now the dropdown items list takes the width equal to the Spinner's whole width including it's dropdown arrow.
{"OriginalQuestionIds":[4660142],"Voters":[{"Id":14868997,"DisplayName":"Charlieface","BindingReason":{"GoldTagBadge":"c#"}}]}
How about dynamically creating a regular expression based on the user's input and using it to parse and format the matching parts of the suggestions: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> const searchBar = document.querySelector('#search-bar'); co...
|python|job-scheduling|or-tools|cp-sat|
I'm trying to write a simple parser for some yml config files (with serde) which involves some additional parsing for custom formats inside many params. My additional parsers are based on simple Regex'es, and I created a registry so that they are "compiled" only once. The registry is essentially a ```HashMap<String, _>...
Rust - mutable borrow problem with inserting Vacant entry into HashMap
|rust|borrow-checker|
1.at first register `@nuxtjs/tailwindcss` in nuxt.config.ts|js by putting module array. 2.back to the project and create `main.css` in this directory => `assets/css/main.css` then import your font in this file like this: @font-face { font-family: 'Montserrat'; font-style: normal; font-...
I'm having trouble correctly rendering my quarto document to HTML - it renders, but my tables aren't appearing. I'm using `DT::datatable()` because I want to have the flexibility to sort/filter rows - there isn't the same problem if I render using `kable`. I have data from a large survey and I want to create a docum...
url :-> `https://www.greenblottmetal.com/scrap-metal-prices` problem is :-> <iframe>---> #document(another url) ---> new <html> <table></table> </html> after inspect data avilable into <iframe> tag and inside iframe there is #document is there this is subtype of iframe and holding...
Try this: from keras import Sequential from keras.layers import Conv2D, ReLU, BatchNormalization model = Sequential( [ Conv2D(filters=10, kernel_size=3, strides=1) BatchNormalization() ReLU() ] )
In my Zephyr DTS binding I have a node with a given compatibility, let's call it `my_compatibilty`, with an optional property of type `phandles`, let's call it `things`, allowed to have up to two elements. In my driver code I can build up an array of the leaves of this tree; for instance, I can make an array of the v...
If the packageManger field in package.json is not specified, Corepack will download the **global** version of the package manager that Corepack is configured with (Corepack also calls these 'Known Good Releases'). To use a different version of yarn, you can either: - Set the packageManger field in your project's pa...
I'm trying to set up a Nginx reverse proxy and I'm slowly losing my mind trying to figure it out. I have my Nginx server listening at 80, and it performs great. I have a page with a form where I want to be able to send `.json` POSTs from that page to a Python HTTP server that can process the requests. I have the ser...
null
I have a problem with `drop_na()` function. I wanted to clean the dataset and erase the "NA" values, but when I entered the code, all datas are disseapperad. I do not understand why it happens. You can see clearly what my codes are in this picture: [![enter image description here][1]][1] ``` library(tidyverse...
Okay, so I have fixed it! Here is my updated, and completely rewritten code: /* Reset margins and padding */ * { margin: 0; padding: 0; box-sizing: border-box; } /* Main wrapper for the layout */ .wrapper { display: flex; justify-con...
Why array find returns nothing? using context and params
|reactjs|react-hooks|fetch-api|react-context|
null
``` static double CalculateMontlyRepayment(double loanAmount, double annualInterestRate, int loanTermYears) { //convert yearly interest into monthly interest. double monthlyInterestRate = annualInterestRate / 12.0; //Figure out number of monthly payments. int loanTermMonths = loanTermYears * 12;...
Can't figure out to properly implement formula to get monthly payment for a mortgage into C#
|c#|finance|
null
{"Voters":[{"Id":4657412,"DisplayName":"DavidW"}]}
I have a List of class/objects and I need to get a random item from the list. In a particular case I need to take a random item from a specific range OR a specific index. Meaning it's not just a Item item = List[Random.Next(2,10)]; //take one random item between index 2 and index 9 (to make an example) but I'...
C# Random getting vakue from a range or a specific value
|c#|list|random|
So I have a grid of 12 buttons with a set of 12 divs. when i click button 1 div 1 appears ! correct. however when i click button 2 div 2 appears, great. However button one still exists. How do I make it so that when i click button 2 div 1 is display none and div 2 is displaying. Below is what I have tried, I have th...
[STPyV8][1] [1]: https://github.com/cloudflare/stpyv8 It’s the successor to PyV8, owned by Cloudflare.
I'm currently trying to figure out what the six passcode integers are for this function. Every other example I've looked at, on this site and others, has used a "je" instruction for the first comparison, which allows us to deduce what the first integer input should be, however, the "bomb" that I'm working on seems to b...
This is more a hint than a question: The goal is to parse a command line **AND** create a useful *usage* message code: for arg in "$@" ; do case "${1:-}" in --edit) # edit file cd "$(dirname $0)" && exec $0;; --noN) # do NOT create 'NHI1/../tags' ...
You'd have to edit file `gradle/libs.versions.toml` and add in TOML format: [versions] androidx_compose_bom = '2024.03.00' androidx_compose_uitest = '1.6.4' androidx_media3 = '1.3.0' # ... [libraries] androidx_compose_bom = { module = "and...
Faced the same issue today when I updated my Kotlin version to **1.9.23**. After updating the hilt and moshi to the latest version it solved the problem. Moshi version -> **1.15.1** Hilt dagger version -> **2.51.1**
{"Voters":[{"Id":2386774,"DisplayName":"JeffC"},{"Id":9214357,"DisplayName":"Zephyr"},{"Id":20292589,"DisplayName":"Yaroslavm"}]}
in my RKE cluster(v1.3.14) there is no kube-proxy pod but kube-proxy container then how I install metallb give any solution for that .it is possible to install without kube-proxy pod then how?? Give me solution if someone faces same issue
null
{"Voters":[{"Id":21137419,"DisplayName":"Hang"}]}
Oooookay. And what do you want to achieve with this setup? :) Don't get me wrong but from my place it looks as if you were dispatching a job from controller, to be processed by a processor that doesn't do anything except for console.logging, but controller needs to wait until the job is done and returns some data. ...
You can not send multiple responses for one single HTTP request. However, you can achieve this by using web sockets or sending a stream of data. In frontend you will need to process this stream. def simulate_draft(): def generate_picks(): for pick, info in draft_results.items(): ...
I don't believe so. The reason why this is bad in Pandas is that it can trigger consolidation within [BlockManager](https://uwekorn.com/2020/05/24/the-one-pandas-internal.html). Polars lacks an equivalent of BlockManager. I don't believe there's any situation where it stores two columns within the same backing Arrow...
My dataset is ethogram responses. I had 5 raters score the same 53 videos each. These 53 videos contain 28 different dogs. I now have a dataset consisting of 55 columns and 265 rows. The first three columns are to identify which rater has scored that ethogram and which video that ethogram is from. I have divided my ord...
I have an array list of Location objects that I want to find the max and min value of. However, when calling collections.max(listN, PopulationComparator) it gives me the minimum value whereas for collection.min() it returns the max value. The problem is resolved once changing the order to be descending, but I don't und...
Collections.max with custom Comparator on list
|java|collections|interface|
null
SOLVED! - Assistance with sum for multiple separate rows using multiple criteria please
I have a project with multiple configuration files, I need to be able to read a specific configuration file (`MyTest.exe.config`). The file looks like this: <appSettings> <add key="Setting1" value="1.1.1.1"/> <add key="Setting2" value="34567"/> <add key="Setting3" value="blue"...
Use debounce function from npm packages which will make delay while user types then make request to API. ` const debounceDelay = 300; const handleDebouncedChange = debounce((event) => { console.log('Debounced value:', event.target.value); }, debounceDelay); <input ...
you can use keyboard shortcut shift + command + A to toggle appearance of simulator.