instruction
stringlengths
0
30k
You're assigning your list incorrectly in your child component. It should be `this.props.suggestionsList` ```jsx class GoogleSuggestions extends Component { state = {suggestionsList: this.props.suggestionsList, searchInput: ''} } ```
I have used the mentioned script 2 times earlier to send email reminders based on a condition based on a specific text in a column. But when I am trying to modify the condition in terms of date then its not working.There is next follow up date in col T, which is 19th col. I want to check if nextfollowup date matches to...
To match today's Date as Condition for sending email reminders
|google-apps-script|
null
[enter image description here](https://i.stack.imgur.com/mPdLJ.jpg) I hello everyone, above given image is from trading. i tried to code for conditions given in image but i am unable to effecienty code for it. so, give it a try to solve this problem it would be helpfull..bellow are code
I am trying to make a container that has children Horizontally and moves from left to right Each of those children , when it reach the end of the container =\> goes to the start of the container let's imagine that it contain 4 children: ```lang-none 0% : ..1 | 2 | 3 | 4.. 25% : ..4 | 1 | 2 | 3.. ...
If I understand correctly, you need to wait for the downloading/buffering panel to complete before you action you next click, so we can do this a few ways. 1. We can simply check when the buffering panel is done. This can be done in several ways but an easy one is something like: const bufferingElement = p...
|javascript|playwright|playwright-test|
I want to display chart data based on the results sum(value) as total_value from my query. why can't the total_value attribute be displayed on the chart? query: $rooms2 = Room::query() ->join('notifications', 'notifications.room_id', '=', 'rooms.id') ->join('watt_histor...
Laravel Chart can't show attribute value from query
|laravel|charts|laravel-charts|
Consider replacing the default `ts-jest` runner with [SWC Jest](https://swc.rs/docs/usage/jest). It seems to be a drop-in replacement, but much faster. In my case, the execution time dropped from 5 seconds to 1 ms for a trivial test. First install SWC Jest: ``` npm i -D jest @swc/core @swc/jest ``` Then use ...
I am writing an app using WebView to load my html, css, js and get some problems when loading the html. Here is the MainActivity ``` public class MainActivity extends AppCompatActivity { HTMLDataBase myDB1; ContentTableDataBase myDB2; CloudTableDataBase myDB3; InterviewDataBase myDB4; Con...
Visual Studio edit view corrupt for xaml and Winforms design views
|c#|wpf|visual-studio|winforms|xaml|
Which approach is more better use of httpclient in .Net Framework 4.7 among the following two in terms of socket exhaustion and thread safe? Both are reusing httpclient instance.Right? I can't implement ihttpclientfactory right now.It is difficult to us implement dependency injection **First Code : -** ``` clas...
|c#|httpclient|dotnet-httpclient|sendasync|
Android Load WebView and Javascript
|javascript|android|
null
If you are building a react application then you can use "[react-pdftotext][1]" package to extract text from pdfs on browsers. For detail on how to use this package you can refer to this [article][2]. [1]: https://www.npmjs.com/package/react-pdftotext [2]: https://dev.to/utkarsh212/how-to-extract-plain-text-fro...
You have to rewrite the logic a bit, as you cannot update each row 'one by one'. First check for HS2: df.withColumn("testValveOpened", f.when(f.col("sourceName" == "GS2"), f.lit(1)).otherwise(0)) then do a cumulative sum and comparison to see if a GS2 was present before: df.withColumn("testValv...
I encountered a similar `Didn't find class "androidx.core.app.CoreComponentFactory"` issue using dynamic feature modules (SplitInstallManagerFactory) on a newer project. The issue occurred during the install of dynamic feature modules only when obfuscation was enabled (i.e., `isMinifyEnabled = true`). This keep rule...
Is there a way to automatically generate points of coordinates for the contour of islands using existing map ? For instance using directly the points of the map of openstreetmap (or other), let say with a certain number of datapoints ? I need to generate a geojson file with a certain number of islands. There ...
This playbook will copy all the gather fact content in `/tmp/ansible_facts_details.json` file on the host machine. You can run it from location where inventory file is located in the control machine (where Ansible is installed). 1. Command to run playbook is `ansible-playbook playbooks/gatherfacts_playbook.yaml`...
Module parse failed: Unexpected token (2:9801) in jwplayer-react.js
|reactjs|jwplayer|
I'm trying to create a dot indicator for a carousel slider. No idea why it's not rebuilding at all. Simple carousel of images with a dot indicator at the bottom that rebuilds when based on index of image on the carousel. CODE: class Testhome extends StatelessWidget { const Testhome({super.key}); ...
Dot indicator not working- Flutter -Should rebuild indicator on page change
|flutter|provider|
I am trying to update the value of an object in a deeply nested array in mongoose, but havn't been able to come up with the correct syntax. I have tried both atomic updates and the conventional way of updating items in mongodb still with no luck. **I want to update 'history[index].rideConfirmations[index].rideCo...
How do I update an object in a deeply nested array of objects with mongoose?
|javascript|node.js|mongodb|mongoose|mongoose-schema|
null
Lua doesn't have classes, where you can use a constructor to create a new instance of a type. But, being a flexible language, we can achieve something _like_ classes through clever use of metatables. So let's talk for a moment about how the `__index` [metamethod](https://www.lua.org/pil/13.4.1.html) works. When you ...
All answers provided so far are correct. Adding my version, in an attempt to make it bit easier for those who still need further clarification. **Task Role:** The ECS set up will have some containers. These containers will perform some tasks for which we are being created. To perform these tasks **containers** need...
I'm trying to make a web browser but i cant find a good tutorial for bookmarks and tabs in my web browser called **RadonNet** I'm using `PySide6` because i want my software to be open source I also use `QWebEngineView` which makes it harder to find tutorials for my browser Sure. Theres Bookmarks and Tabs Tutorial...
I am newbie in Delphi, but I need to fix Delphi code in order to make network disks to be mounted when "Service start" is executed. By default when my application is started by Windows Service network disks are not accessible for application, so the solution is to insert UNC mapping script in my service. Can you help m...
|python|pytorch|computer-vision|anaconda|
I have faced with such issue i am opening project that placed in my desktop (mac 14 pro m3 pro) I can see the folder where is my script: ![enter image description here](https://i.stack.imgur.com/pHR10.png) After running and stoping the script (i am getting some error) The folder is disappear: ![enter image descr...
null
Because type variable type are not the same enter code herevar1 = int(input("enter a number:")) num = str(var1)[::-1] var2 = int(num) if var1 == var2: print("its a palindrome") else: print("its not a palindrome") you need convert to integer type or there is another wa...
This may help you: https://developer.hashicorp.com/terraform/cli/commands/show terraform show -json *The terraform show command is used to provide human-readable output from a state or plan file. This can be used to inspect a plan to ensure that the planned operations are expected, or to inspect the current ...
Initially multiSelect is filled with 100 values, if the search string is not listed in the initial list then server side search is implemented on enter event. ``` <p-multiSelect [options]="options" class="multi-select-dropdown" [maxSelectedLabels]="0" resetFilterOnHide="true" [(ngModel)]=...
null
X A cryptographic error occurred while checking "https://github.com/": Handshake error in client You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have [![enter image description here](https://i.stack.imgur.com/d7WuZ.png)](https://i.stack.imgur.com/d7WuZ.png...
Here is another method, using a custom function named `fnDecimalDuration` **Custom Function Code**<br>*Paste into blank query and rename* ``` (durationString as text)=> let //split on space split = Text.Split(durationString," "), //convert values to numbers values = List.Transform(List.Alternate...
You can use Docker [Volumes](https://docs.docker.com/storage/volumes/) > Volumes can be more safely shared among multiple containers. You can define Volumes on `dockerfile`, `docker-compose` file or on `cli` But to share volumes, you should define named volumes. You can do so using `cli` or `docker-compose`...
I'm starting gettting my hands dirty with antlr4 and I don't unserstand the difference between **Getting started the easy way using antlr4-tools** and **Installation** decribed in the [Getting started guide][1]. - Can I choose either one? - Does antlr4 (easy start) correspond to antlr4 alias (installation)? - D...
We tried this with both VS 2022 17.8.3, 17.9.0 and 17.9.1 which is currently the latest. **Symptom:** When running XUnit test and hitting a breakpoint and we try to inspect properties of an object it just hangs for a while with a message "Busy" then in the Watch window if we expand the object it just shows three el...
Visual Studio 2022, XUnit test project, cannot inspect object properties if the class has a property of a Type from NuGet
|visual-studio|debugging|visual-studio-2022|xunit|
I have a data resolver for specific cms block. The configuration of the cms block stores the IDs of chosen property groups. It means that: ``` $config = $slot->getFieldConfig(); if (! $selectedProperties = $config->get('selectedProperties')) { return null; } var_dump($selectedPropert...
How can I get property groups with options for specific categories?
|shopware|shopware6|
null
I am using Raspberry4 , i have USB camera module that have 2 device ports (video0 - Raw video , video2 - H264 video) . I using gstreamer pipeline as capture device ``` cam = cv2.VideoCapture('gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-h264,width=640,height=480,framerate=10/1 ! x264enc ! h264parse ! videoco...
Difference between antlr4-tools and installation
|antlr|antlr4|
If tick stuck on the some code, this point on architecture problem, like inner infinite loop, or operations, which consume a lot of CPU, or blocking operations, like a syncronously reading of a huge file. JS have not waiting operations, or pause logic. You can understand that, using next diagram from [here][1]: ...
I am trying to do a transparent background for my MatDialog component. Here is the code: *parent.component.html* openDialog(){ const dialogConfig = new MatDialogConfig(); dialogConfig.width = '340px'; dialogConfig.height = '476px'; dialogConfig.autoFocus = false; d...
How do I delete white layer over dialog background in Angular?
|angular|angular-material|mat-dialog|
You can suggest last value if you have a loop: while [[ $continue != "y" ]] do echo "" read -p " - Enter the name : " -e -i "$name" name echo "" echo " - Chosen name is: $name " read -p " - continue (yes) ou retry (no) (y/n): " continue done echo " - We ...
I have a file called debian. I have made a flag of -d. Which turns on the termux-x11 server and the pulse audio server. To make a display I then have to type a different command I created called display which turns on xfce4. Is there any way to pass the command to the pd shell directly? This is the debian file insid...
How to give command to a different proot distro shell in termux?
|termux|
null
I am trying to derive some analytics for a set of data that I have on a csv file. The csv file has the following format[sniped from csv](https://i.stack.imgur.com/xdAnd.png) The first column contains an ID/schema, each other column represents time/generations. This happens N number of Runs. I want to be able to t...
Here is my Unit Test ``` import { render } from '@testing-library/react'; import { ChartCard } from '@/views/Dashboard/Reports/ChartCard'; import { ChartDataType } from '../types'; describe('ChartCard', () => { const mockData: ChartDataType = { xData: [ { total_count: 30, success_count: 20, fai...
H264 data changing after serial communication in Python
|python|camera|h.264|
null
The class `material-symbols-outlined` to `mat-icon` like this. ``` <mat-icon class="material-symbols-outlined">expand_content</mat-icon> ``` [There's notes on this in this issue](https://github.com/angular/components/issues/24845). [Also there's an NPM package](https://www.npmjs.com/package/material-symbo...
Hi Co-programmers, let's share some ideas on what make programming so enjoyable to Us, for me, it is just the ability to discover new line of code and then build, it makes me feel like a Hero who contributes to the growth of Tech globally.
What makes programming so cool and enjoyable to you?
|css|html|javascript|python|
I have two lists, one with vehicle IDs (column A) and dates they were used (Column B), another one with IDs (Column E) and all dates maintenance was performed on them (Column F). In Column C I would like a formula to return for each usage, the last time date when that specific vehicle was serviced. [enter image desc...
I've updated my Kotlin Android app, which uses Firebase Auth, Database, and Storage, increasing targetSdkVersion and dependencies to current versions. While everything operates as expected when deployed from Android Studio, downloading the app from the Play Store, or generating signed APK and deploying manually, result...
I have a webpage with two <picture> elements that each have <a> in front of them. The images are inline, next to each other. Whitespace is between these two elements (not sure why, but I'm fine with the small gap between them) and the whitespace itself has a little underscore or bottom-border type of characteristic to ...
Whitespace in document has a bottom border remnant or some other line at the bottom of the whitespace
|html|css|image|
null
|arrays|c|pointers|multidimensional-array|implicit-conversion|
I have written a code for finding prime numbers using sieve of Erasthenes algorithm, but the problem is my wcode as it is but for only some numbers. It shows like "entering upto-value infinitely" as the error and for some numbers it works perfectly. As I started recently studying C in-depth I couldn't find what is goin...
Error checking for my C code for finding prime numbers
|arrays|c|primes|sieve-of-eratosthenes|
null
I have written a code for finding prime numbers using sieve of Erasthenes algorithm, but the problem is my code as it is but for only some numbers. It shows like "entering upto-value infinitely" as the error and for some numbers it works perfectly. As I started recently studying C in-depth I couldn't find what is going...
AG Grid is a client-side grid that is designed to be framework **ag**nostic. It is not dependent on any framework, allowing it to be easily integrated with any of them. When posting, describe the problem, add some screenshots/code samples. Don't forget to specify if you integrate it with frameworks like Angular v...
run flutter doctor command facing Network resources issue
|android|flutter|dart|android-studio|flutter-doctor|
null
<!-- language-all: lang-js --> There's a way to allow a content script heavy extension to continue functioning after an upgrade, and to make it work immediately upon installation. # Install/upgrade The install method is to simply iterate through all tabs in all windows, and inject some scripts programmatically...
Moment gives a TypeError when testing with Jest
|reactjs|typescript|jestjs|react-typescript|
The while loop only continues as long as `__atomic_compare_exchange_n` fails. It'll only fail if the value of `count` doesn't match the value of `_M_use_count`. After it does fail the value of `count` will be updated to the current value of `_M_use_count`. See https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Buil...
I am trying to derive some analytics for a set of data that I have on a csv file. The csv file has the following format[sniped from csv](https://i.stack.imgur.com/xdAnd.png) The first column contains an ID/schema, each other column represents time/generations. This happens N number of Runs. I want to be able to t...
I wanted to install [react-scheduler][1] npm package to my react.ts project. I runed next command: ```D:\University\Degree project\TestingSchedule1\my-app>npm install '@bitnoi.se/react-scheduler'``` And got next error: ``` npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-repl...